2003-10-03 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9b540880
AC
12003-10-03 Andrew Cagney <cagney@redhat.com>
2
3 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
4 convert a descriptor to a function when it's in the ".opd"
5 section.
6
8748518b
CV
72003-10-03 Corinna Vinschen <vinschen@redhat.com>
8
9 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
10 reg_size to keep GCC silent.
11
0fd85043
CV
122003-10-03 Corinna Vinschen <vinschen@redhat.com>
13
14 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
15 base for DW_EH_PE_textrel encodings.
16 (read_encoded_value): Add a DW_EH_PE_textrel case.
17 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
18 section.
19
37b517aa
MK
202003-10-03 Mark Kettenis <kettenis@gnu.org>
21
22 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
23
12c266ea
AC
242003-10-02 Andrew Cagney <cagney@redhat.com>
25
26 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
27 REGISTER_RAW_SIZE.
28 * gdbarch.h, gdbarch.c: Re-generate.
29 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
30 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
31 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
32 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
33 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
34 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
35 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
36 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
37 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
38 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
39 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
40 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
41 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
42 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
43 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
44 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
45
78ba4af6
JB
462003-10-02 Jim Blandy <jimb@redhat.com>
47
48 * dwarf2read.c (struct die_info): Doc fix.
49
617daa0e
CV
502003-10-02 Corinna Vinschen <vinschen@redhat.com>
51
52 * sh-tdep.c: Running thru gdb_indent.sh.
53
e5e33cd9
CV
542003-10-02 Corinna Vinschen <vinschen@redhat.com>
55
56 * sh-tdep.c (sh_justify_value_in_reg): New function.
57 (sh_stack_allocsize): Ditto.
58 (flt_argreg_array): New array used for floating point argument
59 passing.
60 (sh_init_flt_argreg): New function.
61 (sh_next_flt_argreg): Ditto.
62 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
63 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
64 Fix argument passing strategy.
65 (sh_push_dummy_call_nofpu): Ditto.
66
5fe830e4
AC
672003-10-01 Andrew Cagney <cagney@redhat.com>
68
69 * value.h (register_value_being_returned): Declare. Replace
70 "value_being_returned".
71 * infcall.c (call_function_by_hand): Use
72 register_value_being_returned.
73 * infcmd.c (print_return_value): Call
74 "register_value_being_returned", handle struct return locally.
75 * values.c (register_value_being_returned): New function. Replace
76 "value_being_returned".
77
782003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
79
80 * linux-proc.c (linux_do_registers): New function.
81 (linux_make_note_section): Use linux_do_registers in case of
82 single threaded inferior programs.
83
64f395bf
AC
842003-10-01 Andrew Cagney <cagney@redhat.com>
85
86 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
87 use STRUCT_ADDR. When not using "struct return convention", pass
88 "0" to "value_being_returned". Add FIXMEs.
89 * infcmd.c (print_return_value): Pass an explicit 0/1 to
90 value_being_returned. Add comments.
91 * values.c (value_being_returned): Add fixme.
92 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
93 (hppa_value_returned_from_stack): Add FIXME.
94
639d11d3
DC
952003-09-30 David Carlton <carlton@kealia.com>
96
97 * dwarf2read.c (struct die_info): Add 'parent' field; replace
98 'has_children' and 'next' by 'child' and 'sibling'.
99 (read_comp_unit): Rework algorithm, breaking body into
100 read_die_and_children and read_die_and_siblings.
101 (read_die_and_children, read_die_and_siblings): New.
102 (read_full_die): Add 'has_children' argument; set it instead of
103 the die's 'has_children' field. Minor formatting cleanup.
104 (free_die_list): Use die->child and die->sibling instead of
105 die->next.
106 (dump_die_list): Ditto.
107 (sibling_die): Use die->sibling.
108 (psymtab_to_symtab_1): Use die's 'child' field in place of its
109 'has_children' and 'next' fields.
110 (process_die, read_file_scope, read_func_scope)
111 (read_lexical_block_scope, read_structure_scope)
112 (read_enumeration, read_array_type, read_common_block)
113 (read_namespace, read_subroutine_type, dump_die): Ditto.
114
5bffac25
AC
1152003-09-30 Andrew Cagney <cagney@redhat.com>
116
117 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
118 to 224, not 220.
119
f30992d4
AC
1202003-09-30 Andrew Cagney <cagney@redhat.com>
121
122 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
123 REGISTER_VIRTUAL_SIZE.
124 * gdbarch.h, gdbarch.c: Regenerate.
125 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
126 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
127 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
128
2e092625
AC
1292003-09-29 Andrew Cagney <cagney@redhat.com>
130
131 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
132 DEPRECATED_REGISTER_VIRTUAL_TYPE.
133 * gdbarch.h, gdbarch.c: Regenerate.
134 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
135 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
136
137 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
138 * remote-vxmips.c (vx_read_register): Ditto.
139 * remote-vx68.c (vx_read_register): Ditto.
140 * gnu-nat.c (inf_validate_procs): Ditto.
141
7a5dd6ee
JB
1422003-09-29 J. Brobecker <brobecker@gnat.com>
143
144 * infcall.c (call_function_by_hand): Fix build failure
145 introduced in the previous change to this file.
146
1fe43d45
AC
1472003-09-29 Andrew Cagney <cagney@redhat.com>
148
149 * NEWS: Mention Objective-C.
150
e28a332c
JG
1512003-09-29 Jerome Guitton <guitton@act-europe.fr>
152
153 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
154 test if the register has been saved on the stack.
155 (arm_scan_prologue_cache): When analysing the instruction
156 "str lr, [sp, #-4]", save the address where lr has been stored.
157
9ff63c35
AC
1582003-09-28 Andrew Cagney <cagney@redhat.com>
159
7f5f525d
AC
160 * frame.c (frame_read_unsigned_register): Delete function.
161 * frame.h (frame_read_unsigned_register): Delete declaration.
162 * sparc-tdep.c (sparc_init_extra_frame_info): Use
163 get_frame_register_unsigned.
164 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
165 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
166 * d10v-tdep.c (d10v_print_registers_info): Ditto.
167
168 * frame.h (frame_read_register): Delete declaration.
169 * frame.c (frame_read_register): Delete function.
170 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
171 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
172 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
173 * mips-tdep.c (mips_register_to_value): Ditto.
174 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
175 * d10v-tdep.c (d10v_print_registers_info): Ditto.
176
177 * frame.c (frame_read_signed_register): Delete function.
178 (frame_read_unsigned_register): Update comments.
179 * frame.h (frame_read_signed_register): Delete declaration.
180 * h8300-tdep.c (h8300_print_register): Use
181 get_frame_register_signed.
182 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
183
9ff63c35
AC
184 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
185 Rename VALUE_RETURNED_FROM_STACK.
186 * infcmd.c (print_return_value): Update.
187 * infcall.c (call_function_by_hand): Update.
188
41d041d6
MK
1892003-09-28 Mark Kettenis <kettenis@gnu.org>
190
191 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
192 regcache argument and reverse the order of the other two
193 arguments. Remove local regcache variable. Determine
194 architecture from REGCACHE. Update comments.
195 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
196 reverse the order of the other two arguments. Remove local
197 regcache variable. Determine architecture from REGCACHE. Update
198 comments.
199 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
200 prototypes. Update comments.
201 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
202 comment.
203 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
204 Update.
205 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
206 * i386-interix-nat.c (supply_fpregset): Update.
207 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
208 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
209 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
210 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
211 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
212 Update.
213 * i386obsd-tdep.c (fetch_core_registers): Update.
214 * i386v4-nat.c (supply_fpregset): Update.
215 * x86-64-linux-nat.c (supply_fpregset): Update.
216 * x86-64-linux-tdep.c (fetch_core_registers): Update.
217
1cb97e17
MK
2182003-09-27 Mark Kettenis <kettenis@gnu.org>
219
5716833c
MK
220 * i386-tdep.h: Put opaque declarations in alphabetical
221 order. Remove spurious whitespace.
222 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
223 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
224 * i386-tdep.c (MM0_REGNUM): Remove define.
225 (i386_mmx_regnum_p): Add gdbarch argument.
226 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
227 Rewrite using new macro definitions for FPU/SSE registers.
228 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
229 definitions from i387-tdep.h.
230 (i386_register_name): Update.
231 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
232 new macro definitions for FPU/SSE registers.
233 (i386_extract_return_value): Determine whether floating-point
234 registers are present by examining REGCACHE's architecture.
235 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
236 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
237 FPU/SSE registers.
238 (i386_register_type): Update.
239 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
240 definitions for FPU registers. Use REGCACHE's architecture to
241 determine the appropriate register numbers.
242 (i386_pseudo_register_read, i386_pseudo_register_write,
243 i386_register_reggroup_p): Update.
244 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
245 TDEP->mm0_regnum.
246 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
247 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
248 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
249 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
250 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
251 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
252 *' to `void *'.
253 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
254 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
255 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
256 definitions for FPU/SSE registers.
257 (FXSAVE_MXCSR_ADDR): New define.
258 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
259 TDEP->mm0_regnum.
260 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
261 (I387_ST0_REGNUM): Define.
262
41d35cb0
MK
263 * regcache.h (get_regcache_arch): New prototype.
264 * regcache.c (get_regcache_arch): New function.
265
54e74f72
MK
266 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
267 whitespace.
268
1cb97e17
MK
269 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
270 Initialize using ARRAY_SIZE.
271
0968aa8c
AC
2722003-09-27 Andrew Cagney <cagney@redhat.com>
273
274 * arch-utils.c (deprecated_init_frame_pc_default): Rename
275 "init_frame_pc_default".
276 * arch-utils.h (deprecated_init_frame_pc_default): Update.
277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
278 * vax-tdep.c (vax_gdbarch_init): Update.
279 * v850-tdep.c (v850_gdbarch_init): Update.
280 * sh64-tdep.c (sh64_gdbarch_init): Update.
281 * s390-tdep.c (s390_gdbarch_init): Update.
282 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
283 * mcore-tdep.c (mcore_gdbarch_init): Update.
284 * h8300-tdep.c (h8300_gdbarch_init): Update.
285 * cris-tdep.c (cris_gdbarch_init): Update.
286 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
287
54c84734
MK
2882003-09-26 Mark Kettenis <kettenis@gnu.org>
289
290 * regset.h: New file.
291 * Makefile.in (regset_h): Add.
292
1b1d3794
AC
2932003-09-25 Andrew Cagney <cagney@redhat.com>
294
295 * frame.h (deprecated_frame_saved_regs): Rename
296 get_frame_saved_regs.
297 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
298 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
299 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
300 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
301 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
302
e6beb428
AC
3032003-09-25 Andrew Cagney <cagney@redhat.com>
304
305 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
306 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
307 and Java.
308 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
309 arm*-*-* do not use the new frame code.
310
710122da
DC
3112003-09-25 David Carlton <carlton@kealia.com>
312
313 * c-exp.y: Remove 'register' declarations.
314 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
315
79c2c32d
DC
3162003-09-25 David Carlton <carlton@kealia.com>
317
318 * c-exp.y: Include cp-support.h. Add qualified_type.
319 (yylex): Delete nested type hack; add comments.
320 * cp-namespace.c (cp_lookup_nested_type): New function.
321 * cp-support.h: Declare cp_lookup_nested_type.
322 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
323 instead of value_struct_elt_for_reference.
324 * valops.c: Include cp-support.h.
325 (value_aggregate_elt): New function.
326 (value_namespace_elt): Ditto.
327 (value_struct_elt_for_reference): Make static.
328 * value.h: Delete declaration of value_struct_elt_for_reference;
329 add declaration for value_aggregate_elt.
330 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
331 (valops.o): Ditto.
332
898c62f5
DJ
3332003-09-25 Daniel Jacobowitz <drow@mvista.com>
334
335 * stack.c: Include "reggroups.h".
336 (frame_info): Only display registers in all_reggroup.
337 * Makefile.in (stack.o): Update dependencies.
338
28cd8767
JG
3392003-09-25 Jerome Guitton <guitton@act-europe.fr>
340
341 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
342 "add ip, sp #n" in the prologue.
343 (arm_scan_prologue): Ditto.
344
a4ab2b5d
JG
3452003-09-25 Jerome Guitton <guitton@act-europe.fr>
346
347 * MAINTAINERS (write after approval): Add myself.
348
3f244638
AS
3492003-09-25 Andreas Schwab <schwab@suse.de>
350
351 * m68k-tdep.c: Include "dwarf2-frame.h".
352 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
353 * Makefile.in (m68k-tdep.o): Update dependencies.
354
1c0159e0
CV
3552003-09-25 Corinna Vinschen <vinschen@redhat.com>
356
357 * sh-tdep.c (struct frame_extra_info): Remove.
358 (struct sh_frame_cache): New structure.
359 (GET_SOURCE_REG): New macro extracting source register of an opcode.
360 (GET_TARGET_REG): Ditto but target register.
361 (GET_PUSHED_REG): Remove.
362 (IS_MOV_ARG_TO_REG): New macro.
363 (IS_MOV_ARG_TO_IND_R14): New macro.
364 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
365 (IS_MOVW_PCREL_TO_REG): New macro.
366 (IS_MOVL_PCREL_TO_REG): New macro.
367 (IS_SUB_REG_FROM_SP): New macro.
368 (IS_ARG_MOV): Remove.
369 (IS_MOV_TO_R14): Remove.
370 (IS_RESTORE_FP): New macro.
371 (IS_RTS): New macro.
372 (IS_LDS): New macro.
373 (IS_MOV_FP_SP): New macro.
374 (IS_ADD_REG_TO_FP): New macro.
375 (IS_ADD_IMM_FP): New macro.
376 (sh_skip_prologue_hard_way): Remove.
377 (sh_saved_pc_after_call): Remove.
378 (sh_frame_chain): Remove.
379 (sh_find_callers_reg): Remove.
380 (sh_nofp_frame_init_saved_regs): Remove.
381 (sh_fp_frame_init_saved_regs): Remove.
382 (sh_init_extra_frame_info): Remove.
383 (sh_analyze_prologue): New function.
384 (sh_skip_prologue): Remove deprecated code. Rely on new function
385 sh_analyze_prologue when after_prologue fails.
386 (sh_frame_saved_pc): Remove.
387 (sh_alloc_frame_cache): New function.
388 (sh_frame_cache): Ditto.
389 (sh_frame_prev_register): Ditto.
390 (sh_frame_this_id): Ditto.
391 (sh_frame_unwind): New structure defining the heuristic frame
392 sniffer interface.
393 (sh_frame_sniffer): New function.
394 (sh_unwind_sp): Ditto.
395 (sh_unwind_pc): Ditto.
396 (sh_unwind_dummy_id): Ditto.
397 (sh_frame_base_address): Ditto.
398 (sh_frame_base): New structure defining new frame base code.
399 (sh_in_function_epilogue_p): New function.
400 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
401 code and to call all new code instead. Initialize dwarf2 and
402 heuristic frame sniffer.
403
5f9769d1
PH
4042003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
405
406 * parser-defs.h (struct exp_descriptor): New definition, containing
407 language-specific info for printing, prefixifying, dumping, and
408 evaluating expressions.
409 (exp_descriptor_standard): Declare new variable.
410 (print_subexp): Make global and declare here (from expprint.c).
411 (dump_subexp): Ditto.
412 (dump_subexp_body_standard): Declare.
413 (operator_length_standard): Declare.
414 (op_name_standard): Declare.
415 (print_subexp): Declare.
416 (print_subexp_standard): Declare.
417
418 * language.h (struct language_defn): Add la_exp_desc field to hold
419 pointer to table for language-specific operators.
420 Remove evaluate_exp field, which is now in struct exp_descriptor.
421
422 * parse.c (operator_length): Move most code to new
423 operator_length_standard function. Use language-specific information.
424 (operator_length_standard): New function taking most code from
425 operator_length.
426 (exp_descriptor_standard): New constant.
427
428 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
429 and OP_EXTENDED_LAST.
430
431 * expprint.c (print_subexp): Use language-specific print_subexp.
432 Make global; remove static declaration.
433 Move most code to print_subexp_standard.
434 (print_subexp_standard): New function, containing code formerly in
435 print_subexp.
436 (op_name): Add expression to argument signature.
437 Use langauge-specific op_name.
438 Move most code to op_name_standard.
439 (op_name_standard): New function, containing code formerly in op_name.
440 (dump_subexp): Use new version of op_name function.
441 Use language-specific dump_subexp_body, and move most existing code to
442 dump_subexp_body_standard.
443 (dump_raw_expression): Use new op_name interface.
444 (dump_subexp_body): Move most code to dump_subexp_body_standard.
445 (dump_subexp_body_standard): New function, containing code formerly
446 in dump_subexp_body.
447
448 * language.c (unknown_language): Add default la_exp_desc field and
449 remove evaluate_exp field.
450 (auto_language): Ditto.
451 (local_language): Ditto.
452 * f-lang.c (f_language_defn): Ditto.
453 * c-lang.c (c_language_defn): Ditto.
454 (cplus_language_defn): Ditto.
455 (asm_language_defn): Ditto.
456 (minimal_language_defn): Ditto.
457 * p-lang.c (pascal_language_defn): Ditto.
458 * m2-lang.c (m2_language_defn): Ditto.
459 * objc-lang.c (objc_language_defn): Ditto.
460
461 * jv-lang.c (exp_descriptor_java): New variable, containing
462 Java-specific expression evaluator.
463 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
464 field.
465 * scm-lang.c (exp_descriptor_scm): New variable, containing
466 Scheme-specific expression evaluator.
467 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
468 field.
469 * objc-lang.c (print_object_command): Take evaluate_exp from the
470 la_exp_desc field.
471
472 * Makefile.in (eval.o): Add dependency on parser-defs.h.
473
474 * eval.c: Include parser-defs.h for the full declaration of
475 la_exp_desc's type.
476 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
477
24daaebc
PH
4782003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
479
480 * parser-defs.h (operator_length): Declare.
481
482 * parse.c (length_of_subexp): Use operator_length to get operator
483 lengths and arities for operators.
484 Move most code to new operator_length function.
485 (operator_length): New function absorbing most code from
486 length_of_subexp.
487 (prefixify_subexp): Remove large case and use operator_length instead.
488 (parse_exp_1): Use renamings:
489 dump_prefix_expression => dump_raw_expression and
490 dump_postfix_expression => dump_prefix_expression.
491
492 * expression.h (dump_prefix_expression): Rename to ...
493 (dump_raw_expression): New name.
494 (dump_postfix_expression): Rename to ...
495 (dump_prefix_expression): New name.
496
497 * expprint.c (dump_subexp): Make global. Add comment.
498 Move most existing code to dump_subexp_body.
499 (dump_subexp_body): New function.
500 (dump_prefix_expression): Rename to dump_raw_expression.
501 Remove attempt to print the expression via print_expression: it can't
502 work before the expression is prefixified.
503 (dump_raw_expression): Renamed from dump_prefix_expression.
504 (dump_postfix_expression): Rename to dump_prefix_expression, since
505 that's what it does.
506 Remove 'note' parameter, since this routine must be used on
507 prefixified expression.
508 (dump_prefix_expression): Renamed from dump_postfix_expression.
509
8c2957c4
JB
5102003-09-22 Jim Blandy <jimb@redhat.com>
511
512 * dwarf2read.c (read_array_type): When building the type for an
513 array of unspecified length, make sure to choose the upper bound
514 so that the array's total length comes out to be zero --- that's
515 how we represent such arrays.
516
592e3010
MC
5172003-09-22 Michael Chastain <mec@shout.net>
518
519 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
520
365c70b1
JJ
5212003-09-22 Jeff Johnston <jjohnstn@redhat.com>
522
523 * top.c (quit_force): Fix indirect call to quit_target so
524 a struct qt_args pointer is passed.
525
5d6eb653
AC
5262003-09-22 Andrew Cagney <cagney@redhat.com>
527
528 * arch-utils.h (init_frame_pc_noop): Delete declaration.
529 * arch-utils.c (init_frame_pc_noop): Delete function.
530 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
531 "init_frame_pc".
532 * mips-tdep.c (mips_gdbarch_init): Ditto.
533 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
534 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
535 declaration.
536 (DEPRECATED_INIT_FRAME_PC): Delete macro.
537 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
538 declaration.
539 (DEPRECATED_INIT_FRAME_PC): Delete macro.
540
b222a67f
AG
5412003-09-22 Anthony Green <green@redhat.com>
542
543 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
544 declaration.
545
d5b5ac79
AC
5462003-09-20 Andrew Cagney <cagney@redhat.com>
547
deafb061
AC
548 * breakpoint.c: Eliminate ARGSUSED.
549 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
550 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
551 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
552 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
553 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
554 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
555 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
556 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
557 * wince.c, remote-vx.c: Ditto.
558
d5b5ac79
AC
559 * cli/cli-script.c: Remove "register" attributes.
560 * config/pa/tm-hppa.h: Ditto.
561 * cli/cli-decode.c: Ditto.
562 * cli/cli-cmds.c: Ditto.
563
c6316faa
AC
5642003-09-19 Andrew Cagney <cagney@redhat.com>
565
566 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
567 DEPRECATED_NPC_REGNUM.
568 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
569
f4f99b11
CF
5702003-09-19 Christopher Faylor <cgf@redhat.com>
571
572 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
573
1708f284
JB
5742003-09-19 Jim Blandy <jimb@redhat.com>
575
576 * macrotab.c (macro_include): Use the correct comparison to find
577 the appropriate place for this inclusion in the list.
578
b9fbf434
AC
5792003-09-19 Andrew Cagney <cagney@redhat.com>
580
581 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
582 (DEPRECATED_HPUX_TEXT_END): Define.
583 (deprecated_hpux_text_end): Declare.
584 (struct target_ops): Declare opaque.
585 * hppah-nat.c (text_end): Make static.
586 (deprecated_hpux_text_end): New function.
587 * exec.c (text_end): Delete global variable.
588 (NEED_TEXT_START_END): Do not define.
589 (exec_file_attach): Replace code computing "text_end" code with
590 call to DEPRECATED_HPUX_TEXT_END.
591
5b03f266
AC
5922003-09-19 Andrew Cagney <cagney@redhat.com>
593
594 * utils.c (align_up, align_down): New functions.
595 * defs.h (align_up, align_down): Declare.
596 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
597 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
598 and "align_down".
599 (round_up, round_down): Delete functions.
600 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
601 "align_down".
602 (ROUND_DOWN, ROUND_UP): Delete macros.
603 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
604 * h8300-tdep.c: Replace "round_up" and "round_down" with
605 "align_up" and "align_down".
606 (round_up, round_down): Delete macros.
607 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
608 "align_down".
609 (ROUND_UP, ROUND_DOWN): Delete macros.
610
51db5742
JB
6112003-09-18 J. Brobecker <brobecker@gnat.com>
612
613 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
614 hard-coded constant. Use the proper machine name instead.
615
77949794
AC
6162003-09-17 Andrew Cagney <cagney@redhat.com>
617
618 * sparc-tdep.c (legacy_register_name): Delete function.
619 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
620 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
621 * infcmd.c (gdb_register_name): Delete variable.
622 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
623 REGISTER_NAME and "tm.h".
624 * gdbarch.h, gdbarch.c: Regenerate.
625 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
626 REGISTER_NAMES in comments.
627 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
628 * m68klinux-nat.c (regmap): Ditto.
629
b55c33cc
JB
6302003-09-17 Jim Blandy <jimb@redhat.com>
631
632 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
633
957e27ac
AC
6342003-09-17 Andrew Cagney <cagney@redhat.com>
635
636 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
637 (ppcnbsd_init_abi): Set "use_struct_convention" to
638 "ppcnbsd_use_struct_convention".
639
192cb3d4
MK
6402003-09-17 Mark Kettenis <kettenis@gnu.org>
641
642 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
643 * gdbarch.h, gdbarch.c: Regenerate.
644 (stabs_argument_has_addr): New architecture method.
645 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
646 * arch-utils.c: Include "buildsym.h".
647 (default_stabs_argument_has_addr): New function.
648 * stabsread.c (define_symbol): Use stabs_argument_has_addr
649 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
650
efe59759
AC
6512003-09-17 Andrew Cagney <cagney@redhat.com>
652
653 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
654 * gdbarch.h, gdbarch.c: Regenerate.
655 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
656 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
657 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
658 * sparcnbsd-tdep.c: Update.
659
62700349
AC
6602003-09-17 Andrew Cagney <cagney@redhat.com>
661
662 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
663 * gdbarch.h, gdbarch.c: Regenerate.
664 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
665 * d10v-tdep.c, frame.c: Update.
666 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
667 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
668 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
669 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
670 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
671 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
672 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
673 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
674 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
675 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
676 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
677 * config/pa/nm-hppah.h: Update.
678
b9ff3018
AC
6792003-09-16 Andrew Cagney <cagney@redhat.com>
680
681 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
682 "use_struct_convention" to "ppc_linux_use_struct_convention".
683 (ppc_linux_use_struct_convention): New function.
684 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
685 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
686 "rs6000_use_struct_convention".
687 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
688 declaration.
689 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
690 Delete function.
691
aa1ee363
AC
6922003-09-16 Andrew Cagney <cagney@redhat.com>
693
694 * buildsym.c: Remove more occurances of "register".
695 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
696 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
697 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
698 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
699 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
700 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
701 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
702 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
703
f2ea0907
CV
7042003-09-16 Corinna Vinschen <vinschen@redhat.com>
705
706 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
707 numbers to enumeration values.
708 * sh-tdep.c: Accomodate above change.
709 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
710 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
711 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
712 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
713 (IS_FPUSH): Rename from IS_FMOV.
714 (sh_extract_struct_value_address): Remove useless comment.
715 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
716 instead of own local values.
717 (sh_dump_tdep): Remove.
718 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
719 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
720
1c704f11
AC
7212003-09-15 Andrew Cagney <cagney@redhat.com>
722
723 * doublest.c (convert_floatformat_to_doublest): No longer need to
724 cast "exp_bias" to an int. Reverts 2002-12-04 change.
725
ac79b88b
DJ
7262003-09-15 Daniel Jacobowitz <drow@mvista.com>
727
728 * values.c (unpack_double): Call floatformat_is_valid.
729
1c671366
MK
7302003-09-15 Mark Kettenis <kettenis@gnu.org>
731
de5227fb
MK
732 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
733 ps_strings into a long.
734
1c671366
MK
735 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
736 _initialize_am64fbsd_nat.
737
a604369a
KB
7382003-09-15 Kevin Buettner <kevinb@redhat.com>
739
740 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
741 associated with DW_AT_ranges attribute is out of bounds.
742
b3cacbee
DL
7432003-09-15 David Lecomber <dsl@sources.redhat.com>
744
745 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
746
d0f37bb2
MC
7472003-09-14 Michael Chastain <mec@shout.net>
748
749 * config/m68k/nm-apollo68v.h: Delete.
750 * config/m68k/xm-apollo68v.h: Delete.
751
69517000
AC
7522003-09-14 Andrew Cagney <cagney@redhat.com>
753
754 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
755 * dcache.c: Update copyrights and descriptions.
756 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
757
ef8b349d
AC
7582003-09-14 Andrew Cagney <cagney@redhat.com>
759
760 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
761 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
762
52f0bd74
AC
7632003-09-14 Andrew Cagney <cagney@redhat.com>
764
765 * alpha-nat.c: Remove some occurances of "register".
766 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
767 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
768 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
769 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
770 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
771 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
772 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
773 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
774 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
775 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
776 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
777 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
778 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
779 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
780 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
781 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
782 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
783 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
784 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
785 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
786 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
787 * values.c, vax-tdep.c, xcoffread.c: Ditto.
788
4a4b3fed
AC
7892003-09-13 Andrew Cagney <cagney@redhat.com>
790
791 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
792 * ppc-tdep.h (struct regcache): Declare opaque.
793 * objfiles.h (struct objfile_data): Declare opaque.
794 * cp-support.h (struct objfile): Declare opaque.
795 * linux-nat.h (target_waitstatus): Declare opaque.
796
2110b94f
MK
7972003-09-14 Mark Kettenis <kettenis@gnu.org>
798
1c671366
MK
799 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
800 (stabs_argument_has_addr): New architecture method.
801 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
802 * arch-utils.c: Include "buildsym.h".
803 (default_stabs_argument_has_addr): New function.
804 * stabsread.c (define_symbol): Use stabs_argument_has_addr
805 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
806
2110b94f
MK
807 * cris-tdep.c (cris_gdbarch_init): Set
808 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
809 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
810 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
811 * mips-tdep.c (mips_gdbarch_init): Likewise.
812 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
813 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
814
48436ce6
AC
8152003-09-13 Andrew Cagney <cagney@redhat.com>
816
817 * values.c (using_struct_return): Delete "function" and "funcaddr"
818 parameters.
819 * value.h (using_struct_return): Update declaration.
820 * infcmd.c (finish_command_continuation): Update.
821 (finish_command): Update.
822 * infcall.c (call_function_by_hand): Update.
823 * eval.c (evaluate_subexp_standard): Update.
824
403d9909
CF
8252003-09-13 Christopher Faylor <cgf@redhat.com>
826
827 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
828 SSE registers since gdb will not operate correctly without this.
829 Restore include file ordering munged in previous change.
830 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
831
ebf7d56b
MK
8322003-09-13 Mark Kettenis <kettenis@gnu.org>
833
8e823e25
MK
834 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
835 REG_STRUCT_HAS_ADDR.
836 * gdbarch.c, gdbarch.h: Updated.
837 * infcall.c (call_function_by_hand): Update.
838 * stabsread.c (define_symbol): Updated.
839
ebf7d56b
MK
840 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
841
d3f13f72
CF
8422003-09-12 Christopher Faylor <cgf@redhat.com>
843
844 * win32-nat.c: Reorganize so that defines used by target headers are
845 actually defined by the system headers.
846 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
847 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
848
14f75137
JB
8492003-09-12 Jim Blandy <jimb@redhat.com>
850
d646061f
JB
851 * dbxread.c (read_dbx_symtab): Don't report an internal error if
852 the file has no .data, .bss, or .rodata sections. Instead wait
853 until we see a variable alleged to live in one of those sections.
854
2a13f9bc
JB
855 * dbxread.c (read_dbx_symtab): If we have no .data section and no
856 .bss section, presume that any variables we find live in the
857 .rodata section.
858
4f49b26b
JB
859 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
860 offsets for global and static variables.
861
14f75137
JB
862 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
863 symbol types are, by definition, in the .data section, so it is
864 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
865 If there is no .data section, there should be no N_DATA or N_DATA
866 | N_EXT symbols.
867
212c460c
MK
8682003-09-12 Mark Kettenis <kettenis@gnu.org>
869
870 * amd64fbsd-tdep.c: Fix sigtramp recognition.
871 (amd64fbsd_sigcontext_addr): Rewrite.
872 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
873 with correct values.
874 (amd64fbsd_sc_reg_offset): Initialize with correct values.
875 (amd64fbsd_init_abi): Fix typo.
876
68856ea3
AC
8772003-09-12 Andrew Cagney <cagney@redhat.com>
878
879 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
880 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
881
627b3ba2
AC
8822003-09-12 Andrew Cagney <cagney@redhat.com>
883
884 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
885 "entry_file_highpc". Update comments.
886 * defs.h (deprecated_inside_entry_file): Rename
887 "inside_entry_file".
888 * blockframe.c (deprecated_inside_entry_file): Rename
889 "inside_entry_file".
890 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
891 * vax-tdep.c (vax_frame_chain): Update.
892 * sh64-tdep.c (sh64_frame_chain): Update.
893 * sh-tdep.c (sh_frame_chain): Update.
894 * rs6000-tdep.c (rs6000_frame_chain): Update.
895 * ns32k-tdep.c (ns32k_frame_chain): Update.
896 * mips-tdep.c (mips_frame_chain): Update.
897 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
898 * m32r-tdep.c (m32r_frame_this_id): Update.
899 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
900 * frv-tdep.c (frv_frame_this_id): Update.
901 * d10v-tdep.c (d10v_frame_this_id): Update.
902 * cris-tdep.c (cris_frame_chain): Update.
903 * blockframe.c (legacy_frame_chain_valid): Update.
904 * avr-tdep.c (avr_frame_this_id): Update.
905 * arm-tdep.c (arm_prologue_this_id): Update.
906 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
907 * objfiles.c (objfile_relocate): Update.
908 * mipsread.c (mipscoff_symfile_read): Update.
909 (mipscoff_symfile_read): Update.
910 * mdebugread.c (parse_partial_symbols): Update.
911 * dwarfread.c (read_file_scope): Update.
912 * dwarf2read.c (read_file_scope): Update.
913 * dbxread.c (read_dbx_symtab): Update.
914 (read_dbx_symtab): Update.
915 * coffread.c (complete_symtab): Update.
916
b0abbc58
JJ
9172003-09-12 Jeff Johnston <jjohnstn@redhat.com>
918
919 * top.c (quit_target): New static helper function.
920 (quit_force): Moved code to quit_target(). Call quit_target()
921 via catch_errors() to catch errors during quit.
922
a1632d59
DC
9232003-09-11 David Carlton <carlton@kealia.com>
924
925 * buildsym.c (finish_block): Use allocate_block to allocate the
926 block.
927 * mdebugread.c (new_block): Add FIXME.
928
5c4e30ca
DC
9292003-09-11 David Carlton <carlton@kealia.com>
930
931 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
932 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
933 (recursive_dump_type): Ditto.
934 * printcmd.c (print_formatted): Ditto.
935 * typeprint.c (print_type_scalar): Ditto.
936 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
937 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
938 * cp-support.h: Declare cp_check_possible_namespace_symbols,
939 maint_cplus_cmd_list.
940 * cp-support.c: Make maint_cplus_cmd_list extern.
941 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
942 command.h.
943 (lookup_symbol_file): Look in possible namespace blocks when
944 appropriate.
945 (initialize_namespace_symtab): New.
946 (get_possible_namespace_block, free_namespace_block)
947 (check_possible_namespace_symbols)
948 (check_possible_namespace_symbols_loop)
949 (check_one_possible_namespace_symbol)
950 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
951 (_initialize_cp_namespace): Ditto.
952 * block.h: Declare allocate_block.
953 * block.c (allocate_block): New.
954 * jv-lang.c (get_java_class_symtab): Allocate blocks via
955 allocate_block.
956 * symfile.h: Update declaration of add_psymbol_to_list.
957 * symfile.c (add_psymbol_to_list): Return the partial symbol in
958 question.
959 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
960 scan_partial_symbols_call.
961 (scan_partial_symbols): Add NAMESPACE argument; update calls to
962 helper functions.
963 (add_partial_symbol): If necessary, scan mangled names for names
964 of namespaces.
965 (add_partial_namespace): Add NAMESPACE argument; generate partial
966 symbols associated to namespaces.
967 (add_partial_enumeration): Add NAMESPACE argument.
968 (new_symbol): Allow namespace syms.
969 (read_namespace): Generate namespace syms.
970 * objfiles.h: Add opaque declaration of struct symtab.
971 (struct objfile): Add cp_namespace_symtab member.
972 * objfiles.c (allocate_objfile): Set
973 objfile->cp_namespace_symtab.
974 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
975 dictionary_h, command_h.
976
33a7c2fc
AC
9772003-09-11 Andrew Cagney <cagney@redhat.com>
978
979 * rs6000-tdep.c (rs6000_push_dummy_call): Use
980 regcache_raw_write_signed to set SP_REGNUM, move the operation to
981 near the function's end.
982 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
983 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
984 regcache_raw_write_signed to set SP_REGNUM.
985
63cd24fe
EZ
9862003-09-11 Elena Zannoni <ezannoni@redhat.com>
987
988 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
989 orig_addrs is set up properly.
990
f27dd7fd
AC
9912003-09-11 Andrew Cagney <cagney@redhat.com>
992
993 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
994 * gdbarch.h, gdbarch.c: Re-generate.
995 * infcall.c (call_function_by_hand): Update.
996 * hppa-tdep.c (hppa_push_arguments): Update.
997 * ada-lang.c (place_on_stack): Update.
998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
999 * sparc-tdep.c (sparc_gdbarch_init): Update.
1000 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1001 * hppa-tdep.c (hppa_gdbarch_init): Update.
1002 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1003 stack_align.
1004
f630a401
DJ
10052003-09-11 Daniel Jacobowitz <drow@mvista.com>
1006
1007 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1008 register do need a frame.
1009
0ddabb4c
AC
10102003-09-11 Andrew Cagney <cagney@redhat.com>
1011
1012 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1013 buildable since GDB 5.0.
1014 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1015 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1016 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1017 * irix4-nat.c: Delete file.
1018 * config/mips/irix4.mh: Delete file.
1019 * config/mips/irix3.mh: Delete file.
1020 * config/mips/irix3.mt: Delete file.
1021 * config/mips/tm-irix3.h: Delete file.
1022 * config/mips/nm-irix3.h: Delete file.
1023 * config/mips/xm-irix3.h: Delete file.
1024 * config/mips/nm-irix4.h: Delete file.
1025 * config/mips/xm-irix4.h: Delete file.
1026 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1027
fde2cceb
JB
10282003-09-10 J. Brobecker <brobecker@gnat.com>
1029
1030 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1031 * Makefile.in (hppa-tdep.o): Update dependencies.
1032
66f667f5
JW
10332003-09-10 James E Wilson <wilson@specifixinc.com>
1034
ef5fd69f
JW
1035 * MAINTAINERS: Change my e-mail address. Move to paper trail
1036 section.
66f667f5 1037
53e8aaea
KB
10382003-09-10 Kevin Buettner <kevinb@redhat.com>
1039
1040 * MAINTAINERS (frv): New ISA entry.
1041
dcc6aaff
KB
10422003-09-10 Kevin Buettner <kevinb@redhat.com>
1043
1044 * frv-tdep.c (dis-asm.h): Include.
1045 * Makefile.in (frv-tdep.o): Update dependencies.
1046
932644f0
JJ
10472003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1048
1049 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1050 Fix typo for high range of floating registers.
1051
91c24f0a
DC
10522003-09-09 David Carlton <carlton@kealia.com>
1053
1054 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1055 highpc initialization here out of scan_partial_symbols.
1056 (scan_partial_symbols): Restructure into a recursive version,
1057 calling add_partial_namespace and add_partial_enumeration when
1058 appropriate.
1059 (add_partial_namespace): New.
1060 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1061
c9263853
AC
10622003-09-09 Andrew Cagney <cagney@redhat.com>
1063
e56a0ecc
AC
1064 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1065 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1066 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1067 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1068
794a477a
AC
1069 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1070 (rs6000_push_dummy_call): Set the "TOC" register.
1071
c9263853
AC
1072 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1073 methods "max_register_raw_size", "max_register_virtual_size" or
1074 "register_virtual_size".
1075
afa7d0b2
ILT
10762003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1077
1078 * MAINTAINERS: Update my e-mail address.
1079
7a41266b
AC
10802003-09-09 Andrew Cagney <cagney@redhat.com>
1081
1082 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1083 (rs6000_push_dummy_call): Store the struct return address.
1084 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1085
77b2b6d4
AC
10862003-09-09 Andrew Cagney <cagney@redhat.com>
1087
1088 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1089 "ppc_sysv_abi_push_arguments".
1090 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1091 "ppc_sysv_abi_push_arguments".
1092 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1093 instead of "push_arguments".
1094 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1095
e8a7b686
AC
10962003-09-09 Andrew Cagney <cagney@redhat.com>
1097
1098 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1099 instead of CALL_DUMMY_ADDRESS.
1100
f86f5ca3
PH
11012003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1102
1103 * p-lang.c: Eliminate "register".
1104 * c-lang.c: Ditto.
1105 * expprint.c: Ditto.
1106 * f-lang.c: Ditto.
1107 * jv-lang.c: Ditto.
1108 * language.c: Ditto.
1109 * m2-lang.c: Ditto.
1110 * parse.c: Ditto.
1111 * scm-lang.c: Ditto.
1112 * objc-lang.c: Ditto.
1113
83ee270e
NC
11142003-09-09 Nick Clifton <nickc@redhat.com>
1115
1116 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1117
a89aa300
AC
11182003-09-04 Andrew Cagney <cagney@redhat.com>
1119
1120 * avr-tdep.c: Include "dis-asm.h".
1121 * cris-tdep.c: Include "dis-asm.h".
1122 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1123 instead of corresponding typedef.
1124 * h8300-tdep.c: Include "dis-asm.h".
1125 * ia64-tdep.c: Include "dis-asm.h".
1126 * i386-tdep.c: Include "dis-asm.h".
1127 (i386_print_insn): Use "struct disassemble_info" instead of
1128 corresponding typedef.
1129 * m68k-tdep.c: Include "dis-asm.h".
1130 * mcore-tdep.c: Include "dis-asm.h".
1131 * mips-tdep.c: Include "dis-asm.h".
1132 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1133 instead of corresponding typedef.
1134 * ns32k-tdep.c: Include "dis-asm.h".
1135 * s390-tdep.c: Include "dis-asm.h".
1136 * sparc-tdep.c: Include "dis-asm.h".
1137 * vax-tdep.c: Include "dis-asm.h".
1138 * v850-tdep.c: Include "dis-asm.h".
1139 * mn10300-tdep.c: Include "dis-asm.h".
1140 * rs6000-tdep.c: Include "dis-asm.h".
1141 * xstormy16-tdep.c: Include "dis-asm.h".
1142 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1143 print_insn_xstormy16.
1144 * Makefile.in (v850-tdep.o): Update dependencies.
1145 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1146 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1147 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1148 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1149 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1150 (gdbarch_h): Remove $(dis_asm_h).
1151 * disasm.c: Include "dis-asm.h".
1152 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1153 corresponding typedef.
1154 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1155 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1156 * gdbarch.sh: Do not include "dis-asm.h".
1157 (struct disassemble_info): Declare opaque.
1158 (TARGET_PRINT_INSN): Update declaration.
1159 * gdbarch.h, gdbarch.c: Re-generate.
1160
88a82a65
AC
11612003-09-08 Andrew Cagney <cagney@redhat.com>
1162
1163 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1164 CALL_DUMMY_ADDRESS, change to a predicate.
1165 * gdbarch.h, gdbarch.c: Re-generate.
1166 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1167 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1168 * infcall.c (call_function_by_hand): Ditto.
1169 * sparc-tdep.c (sparc_push_return_address): Ditto.
1170 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1171 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1172 CALL_DUMMY_ADDRESS with entry_point_address.
1173 * v850-tdep.c (v850_push_return_address): Ditto.
1174 * s390-tdep.c (s390_push_return_address): Ditto.
1175 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1176 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1177 * mcore-tdep.c (mcore_push_return_address): Ditto.
1178 * cris-tdep.c (cris_push_return_address): Ditto.
1179 * arm-tdep.c (arm_push_return_address): Ditto.
1180
3e2c4033
AC
11812003-09-08 Andrew Cagney <cagney@redhat.com>
1182
1183 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1184 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1185 and REG_UNMODIFIED to REG_SAME_VALUE.
1186 (execute_cfa_program): Update.
1187 (dwarf2_frame_cache): Update. Initialize table to
1188 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1189 location.
1190 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1191
39efb398
AC
11922003-09-08 Andrew Cagney <cagney@redhat.com>
1193
1194 * gnu-nat.c: Remove "inline" function attribute.
1195 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1196
f5cb5aca
KB
11972003-09-08 Kevin Buettner <kevinb@redhat.com>
1198
1199 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1200 target.
1201
1cb761c7
KB
12022003-09-08 Kevin Buettner <kevinb@redhat.com>
1203
1204 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1205 (frame_extra_info): Rename this struct to frv_unwind_cache.
1206 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1207 Add fields ``prev_sp'' and ``base''.
1208 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1209 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1210 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1211 Delete.
1212 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1213 Revise all callers. Fill in the unwind cache argument and make
1214 other adjustments to account for new frame mechanisms.
1215 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1216 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1217 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1218 (frv_frame_unwind, frv_frame_base): New structs.
1219 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1220 additional arguments expected by this method and adjust function
1221 body accordingly.
1222 (frv_gdbarch_init): Remove calls to the following functions:
1223 set_gdbarch_deprecated_init_frame_pc(),
1224 set_gdbarch_deprecated_saved_pc_after_call(),
1225 set_gdbarch_deprecated_frame_chain(),
1226 set_gdbarch_deprecated_frame_saved_pc(),
1227 set_gdbarch_deprecated_frame_init_saved_regs(),
1228 set_gdbarch_deprecated_push_arguments(),
1229 set_gdbarch_deprecated_push_return_address(),
1230 set_gdbarch_deprecated_pop_frame(),
1231 set_gdbarch_deprecated_call_dummy_words(),
1232 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1233 set_gdbarch_deprecated_init_extra_frame_info(),
1234 set_gdbarch_deprecated_dummy_write_sp(), and
1235 set_gdbarch_deprecated_pc_in_call_dummy().
1236 Add calls to the following functions:
1237 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1238 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1239 frame_base_set_default().
1240 * Makefile.in (frv-tdep.o): Update dependencies.
1241
68f6cf99
MK
12422003-09-09 Mark Kettenis <kettenis@gnu.org>
1243
1244 * dwarf2-frame.c (read_encoded_value): Add support for
1245 DW_EH_PE_aligned encoding.
1246
73b65bb0
DJ
12472003-09-08 Daniel Jacobowitz <drow@mvista.com>
1248
1249 * infrun.c (normal_stop): Don't print a message if the inferior
1250 has exited.
1251
7c8a5605
JB
12522003-09-08 Jim Blandy <jimb@redhat.com>
1253
1254 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1255 * dbxread.c: #include "gdb_assert.h".
1256 (read_dbx_symtab): If the objfile has no .data section, use the
1257 section index for the .bss section instead.
1258
7dd88986
DJ
12592003-09-08 Daniel Jacobowitz <drow@mvista.com>
1260
1261 * frame.c (deprecated_safe_get_selected_frame): New function.
1262 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1263 * findvar.c (read_var_value): Call it.
1264
55ff77ac
CV
12652003-09-08 Corinna Vinschen <vinschen@redhat.com>
1266
1267 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1268 (sh64-tdep.o): Add dependencies.
1269 * configure.tgt: Add FIXME to sh-*-linux*.
1270 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1271 (sh_gdbarch_init): Always set correct sh_show_regs function
1272 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1273 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1274 * sh64-tdep.c: New file, containing all sh64 related code from
1275 sh-tdep.c.
1276 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1277 * config/sh/linux.mt (TDEPFILES): Ditto.
1278 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1279 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1280 * config/sh/wince.mt (TDEPFILES): Ditto.
1281
bfb39158
DJ
12822003-09-07 Daniel Jacobowitz <drow@mvista.com>
1283
1284 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1285 (stop_wait_callback): Handle !lp->signalled also.
1286 (lin_lwp_has_pending, flush_callback): New functions.
1287 (lin_lwp_wait): Call flush_callback.
1288 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1289 (linux_proc_pending_signals): New function.
1290 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1291
9407de8e
DJ
12922003-09-07 Daniel Jacobowitz <drow@mvista.com>
1293
1294 From Nick Kelsey <nickk@ubicom.com>:
1295 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1296 when the stop PC is at the beginning of a function also.
1297
2ef47cd0
DJ
12982003-09-06 Daniel Jacobowitz <drow@mvista.com>
1299
1300 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1301 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1302
6f4492c8
MK
13032003-09-06 Mark Kettenis <kettenis@gnu.org>
1304
1305 * sol-thread.c: Include "gdb_string.h".
1306
d3420b2f
MK
13072003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1308
1309 * gcore.c: Reorder include files in alphabetical order. Include
1310 "gdb_assert.h". Various coding style fixes.
1311 (derive_stack_segment, derive_heap_segment): Replace check for
1312 non-null BOTTOM and TOP with gdb_assert.
1313 (derive_heap_segment): Replace check for successful creation of
1314 ZERO with gdb_assert.
1315 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1316
5220ea4c
AC
13172003-09-04 Andrew Cagney <cagney@redhat.com>
1318
1319 * thread-db.c (verbose_dlsym): New function.
1320 (thread_db_load): Use verbose_dlsym
1321 (thread_db_new_objfile): Print that libthread_db was loaded, and
1322 that thread debugging was enabled.
1323
6e8c2c06
AC
13242003-09-04 Andrew Cagney <cagney@redhat.com>
1325
1326 * configure.tgt: Add "mips64*-*-*" target. Delete
1327 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1328 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1329 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1330 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1331 mips*-sony-*, and mips64*-*-elf* targets.
1332 * config/mips/embedl.mt: Delete file.
1333 * config/mips/embedl64.mt: Delete file.
1334 * config/mips/mips.mt: Delete file.
1335 * config/mips/mips64.mt: Delete file.
1336 * config/mips/tm-embed.h: Delete file.
1337 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1338 * config/mips/embed64.mt: Delete out-of-date comment.
1339
3a3bc038
AC
13402003-09-04 Andrew Cagney <cagney@redhat.com>
1341
1342 * hppa-tdep.c (hppa_gdbarch_init): Set
1343 "have_nonsteppable_watchpoint".
1344 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1345 * mips-tdep.c (mips_dump_tdep): Do not print
1346 HAVE_NONSTEPPABLE_WATCHPOINT.
1347 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1348 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1349 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1350 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1351
a957e642
CV
13522003-09-04 Corinna Vinschen <vinschen@redhat.com>
1353
1354 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1355 unused code. Add comment.
1356
a6fbcf2f
CV
13572003-09-04 Corinna Vinschen <vinschen@redhat.com>
1358
1359 * breakpoint.c (watchpoint_check): Check for pc being in an
1360 epilogue if watchpoint frame couldn't be found.
1361
c14a44d5
AC
13622003-09-04 Andrew Cagney <cagney@redhat.com>
1363
1364 * Makefile.in: Re-generate all dependencies.
1365
f6c40618
AC
13662003-09-03 Andrew Cagney <cagney@redhat.com>
1367
1368 * arch-utils.h (legacy_print_insn): Delete declaration.
1369 * arch-utils.c (legacy_print_insn): Delete function.
1370 * disasm.c (deprecated_tm_print_insn_info): Delete.
1371 (_initialize_disasm): Delete function, contained code initializing
1372 deprecated_tm_print_insn_info.
1373 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1374 (deprecated_tm_print_insn_info): Delete.
1375 (TARGET_PRINT_INSN): Do not provide a default.
1376 * gdbarch.h, gdbarch.c: Re-generate.
1377
242e8be5
AC
13782003-09-03 Andrew Cagney <cagney@redhat.com>
1379
1380 * disasm.c (fprintf_disasm): New function.
1381 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1382 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1383 reverts 2003-08-14 change.
1384 (_initialize_disasm): Call "init_disassemble_info", instead of
1385 INIT_DISASSEMBLE_INFO_NO_ARCH.
1386
3ffc3dda
MS
13872003-09-03 Michael Snyder <msnyder@redhat.com>
1388
1389 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1390
52d16ba8
AC
13912003-09-03 Andrew Cagney <cagney@redhat.com>
1392
1393 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1394 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1395 * symfile.c (syms_from_objfile): Update.
1396 (reread_symbols): `Update
1397 * exec.c (exec_file_attach): Update.
1398 (exec_file_attach): Update.
1399 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1400 2003-08-29 change.
1401 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1402
eb5492fa
DJ
14032003-09-03 Daniel Jacobowitz <drow@mvista.com>
1404
1405 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1406 trad-frame.h.
1407 (arm_get_cache): Delete macro.
1408 (struct arm_prologue_cache): Update comments. Make saved_regs into
1409 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1410 to prev_sp.
1411 (thumb_scan_prologue): Update for cache changes. Don't call
1412 DEPRECATED_PC_IN_CALL_DUMMY.
1413 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1414 argument and use it in desperation search for our prologue. Do not
1415 search past the specified PC.
1416 (arm_make_prologue_cache): Simplify.
1417
1418 (arm_prologue_this_id, arm_prologue_prev_register)
1419 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1420 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1421 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1422 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1423 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1424
1425 (arm_frame_chain_valid, arm_find_callers_reg)
1426 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1427 (arm_pop_frame): Delete obsolete methods.
1428 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1429
1430 (arm_gdbarch_init): Update for new frame methods. Register prologue
1431 and sigtramp unwinders. Set the default frame base method.
1432
1433 * Makefile.in (arm-tdep.o): Update dependencies.
1434 * varobj.c (find_frame_addr_in_frame_chain): Call
1435 get_frame_base_address.
1436 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1437
24de872b
DJ
14382003-09-03 Daniel Jacobowitz <drow@mvista.com>
1439
1440 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1441 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1442 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1443 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1444 Take NEXT_FRAME and CACHE arguments. Call
1445 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1446 Set unwound_pc in CACHE instead of modifying the frame argument.
1447 Don't bother checking the frame type when looking for sigtramp
1448 frames.
1449 (arm_make_prologue_cache, arm_frame_chain)
1450 (arm_init_extra_frame_info): New functions.
1451
9b8d791a
DJ
14522003-09-03 Daniel Jacobowitz <drow@mvista.com>
1453
1454 * arm-tdep.c (arm_get_cache): Define.
1455 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1456 unwound_sp, unwound_pc, and saved_regs.
1457 (thumb_scan_prologue): Take a cache instead of the frame.
1458 (arm_scan_prologue): Likewise.
1459 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1460 instead of a temporary frame.
1461 (arm_init_extra_frame_info): Allocate and use a cache.
1462 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1463
7ee3275f
AC
14642003-09-03 Andrew Cagney <cagney@redhat.com>
1465
1466 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1467 * config/mips/wince.mt (TM_CLIBS): Ditto.
1468 * config/sh/wince.mt (TM_CLIBS): Ditto.
1469 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1470 * config/sparc/sp64.mt (CC): Delete.
1471
57b29be7
AC
14722003-09-03 Andrew Cagney <cagney@redhat.com>
1473
1474 * defs.h: Do not include "arch-utils.h".
1475 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1476 GDB_MULTI_ARCH_PURE.
1477 * configure.in (GDB_MULTI_ARCH): Do not define.
1478 * configure, config.in: Regenerate.
1479 * configure.tgt: Do not set variable "gdb_multi_arch".
1480 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1481 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1482 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1483 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1484 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1485 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1486 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1487 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1488 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1489 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1490 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1491 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1492 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1493 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1494 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1495 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1496 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1497 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1498
12e035e2
MC
14992003-08-30 Michael Chastain <mec@shout.net>
1500
1501 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1502 * config/m68k/nm-hp300hpux.h: Delete.
1503 * config/m68k/tm-hp300hpux.h: Delete.
1504 * config/m68k/xm-hp300hpux.h: Delete.
1505 * config/m68k/xm-hp300bsd.h: Delete.
1506 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1507 tm-hp300hpux.h, xm-hp300hpux.h.
1508 * somsolib.c: Remove comment about hp300 shared libraries.
1509
bda34dc2
MK
15102003-08-31 Mark Kettenis <kettenis@gnu.org>
1511
5bca7895
MK
1512 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1513 Only define PTRACE_GET_THREAD_AREA is not already defined.
1514 Various style fixes in code and comments and some additional
1515 spelling fixes in comments. Move after functions dealing with
1516 debug registers.
1517 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1518 Fix coding-style.
1519
bda34dc2
MK
1520 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1521 frame_unwind_register_unsigned instead of
1522 frame_unwind_unsigned_register.
1523
c890192f
MK
15242003-08-30 Mark Kettenis <kettenis@gnu.org>
1525
1526 * configure.in: Search for gethostbyname in libnsl.
1527 * configure: Regenerated.
1528
60fac5b8
MK
15292003-08-29 Mark Kettenis <kettenis@gnu.org>
1530
e294916c
MK
1531 * configure.in: Remove redundant AC_MSG_RESULT in check for
1532 uintptr_t in stdint.h.
1533 * configure: Regenerated.
1534
c40d267a
MK
1535 * amd64-nat.h (struct regcache): Add opaque declaration.
1536
60fac5b8
MK
1537 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1538 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1539 Change "register array" to "register cache" in comments.
1540 (x86_64_linux_gregset64_reg_offset): New variable.
1541 (GETREGS_SUPPLIES): Remove macro.
1542 (supply_gregset): Call amd64_supply_native_gregset instead of
1543 x86_64_linux_supply_gregset.
1544 (fill_gregset): Rename `regno' to `regnum'. Call
1545 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1546 (store_regs): Rename `regno' to `regnum'.
1547 (store_fpregs): Rename `regno' to `regnum'.
1548 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1549 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1550 Reorganize function a bit.
1551 (store_inferior_registers): Rename `regno' to `regnum'. Use
1552 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1553 Reorganize function a bit.
1554 (_initialize_x86_64_linux_nat): New function.
1555 * config/i386/x86-64linux.mh.
1556
546143b6
AC
15572003-08-29 Andrew Cagney <cagney@redhat.com>
1558
1559 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1560 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1561 (target_remove_watchpoint): Delete macro.
1562 (target_insert_watchpoint): Delete macro.
1563 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1564 (remote_mips_stopped_by_watchpoint): Delete declaration.
1565 (remote_mips_remove_watchpoint): Delete declaration.
1566 (remote_mips_set_watchpoint): Delete declaration.
1567 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1568 * remote-mips.c (_initialize_remote_mips): Set
1569 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1570 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1571 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1572 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1573 (mips_stopped_by_watchpoint): Rename
1574 remote_mips_stopped_by_watchpoint.
1575 (mips_can_hardware_watchpoint): Rename
1576 remote_mips_can_use_hardware_watchpoint, update function
1577 signature.
1578
7bace51b
MK
15792003-08-29 Mark Kettenis <kettenis@gnu.org>
1580
b0f5c6f2
MK
1581 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1582 USER_DS. We haven't given them a register number yet.
1583
2a6d284d
MK
1584 * amd64-nat.h: New file.
1585 * amd64-nat.c: New file.
1586 * amd64fbsd-nat.c: Include "amd64-nat.h".
1587 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1588 (amd64fbsd32_r_reg_offset): New variable.
1589 (supply_gregset): Simply call amd64_supply_native_gregset.
1590 (fill_gregset): Rename `regno' to `regnum'. Simply call
1591 amd64_collect_native_gregset.
1592 (fill_fpregset): Rename `regno' to `regnum'.
1593 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1594 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1595 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1596 `fpregset_t'. Call amd64_supply_native_gregset instead of
1597 supply_gregset. Call x86_64_supply_fxsave instead of
1598 supply_fpregset.
1599 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1600 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1601 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1602 `fpregset_t'. Call amd64_collect_native_gregset instead of
1603 fill_gregset. Call x86_64_collect_fxsave instead of
1604 fill_fpregset.
1605 (_initialize_am64fbsd_nat): Initialize
1606 amd64_native_gregset32_reg_offset and
1607 amd64_native_gregset64_reg_offset.
1608 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1609
a16d75cc
MK
1610 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1611 null pointer. Fix typo in comment.
1612
7bace51b
MK
1613 * regcache.c (supply_register): Reimplement to call
1614 regcache_raw_supply.
1615 (regcache_collect): Reimplement by calling regcache_raw_collect.
1616
9a661b68
MK
16172003-08-28 Mark Kettenis <kettenis@gnu.org>
1618
1619 * regcache.c (register_buffer): Consitify first argument.
1620 (regcache_raw_supply, regcache_raw_collect): New
1621 functions.
1622
e94cc8fa
DJ
16232003-08-28 Daniel Jacobowitz <drow@mvista.com>
1624
1625 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1626 by Nathan J. Williams.
1627
c64bd0ce
DJ
16282003-08-28 Daniel Jacobowitz <drow@mvista.com>
1629
1630 * lin-lwp.c (wait_lwp): New function, copied from
1631 stop_wait_callback. Clean up.
1632 (stop_wait_callback): Use wait_lwp.
1633
e5ab0dce
AC
16342003-08-28 Andrew Cagney <cagney@redhat.com>
1635
1636 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1637 flavour and disassembler options.
1638 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1639 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1640 deprecated_tm_print_insn_info.
1641
a788de9b
AC
16422003-08-27 Andrew Cagney <cagney@redhat.com>
1643
1644 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1645 Use target_read_memory.
1646 (s390_get_frame_info): Update. Do not reference
1647 deprecated_tm_print_insn_info.
1648 (s390_check_function_end, s390_is_sigreturn): Ditto.
1649
36482093
AC
16502003-08-27 Andrew Cagney <cagney@redhat.com>
1651
1652 * Makefile.in (cris-tdep.o): Update dependencies.
1653 * cris-tdep.c: Include "gdb_assert.h".
1654 (cris_gdbarch_init): Set print_insn.
1655 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1656 (cris_delayed_get_disassembler): Simplify, directly call the
1657 disassembler returned by cris_get_disassembler.
1658 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1659 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1660 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1661 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1662 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1663 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1664 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1665 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1666 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1667 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1668 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1669 (gdb_print_insn_sparc): Delete function.
1670 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1671 deprecated_tm_print_insn_info.
1672 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1673 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1674 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1675 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1676 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1677 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1678 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1679 (s390_gdbarch_init): Set print_insn.
1680
0285512f
AC
16812003-08-27 Andrew Cagney <cagney@redhat.com>
1682
1683 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1684 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1685 * infcall.c (call_function_by_hand): Convert the entry point
1686 address into a code address.
1687
cdcd5552
AC
16882003-08-27 Andrew Cagney <cagney@redhat.com>
1689
1690 * dsrec.c: Include "gdb_string.h".
1691 * Makefile.in (dsrec.o): Update dependencies.
1692
e85cddad
MC
16932003-08-27 Michael Chastain <mec@shout.net>
1694
1695 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1696
8bbfbb23
AC
16972003-08-27 Andrew Cagney <cagney@redhat.com>
1698
1699 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1700 (alpha_osf1_init_abi): Do not set call_dummy_address.
1701
ba058b66
DC
17022003-08-27 David Carlton <carlton@kealia.com>
1703
1704 From Randolph Chung <tausq@debian.org>:
1705 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1706 compiles with -Wformat-nonliteral -Werror.
1707
87f84c9d
JB
17082003-08-26 Jim Blandy <jimb@redhat.com>
1709
1710 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1711 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1712 bfd_lookup_symbol, since we only want symbols in code sections.
1713 (look_for_base): Pass zero as the SECT_FLAGS argument to
1714 bfd_lookup_symbol, since we're not concerned about which section
1715 the symbol is in.
1716
102d615a
JJ
17172003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1718
1719 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1720 we are frameless or the return address register is already known.
1721
cc7ad3ea
AC
17222003-08-26 Andrew Cagney <cagney@redhat.com>
1723
1724 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1725 in size. Add comments.
1726
af8b88dd
JJ
17272003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1728
1729 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1730 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1731
e0a4f5a1
JM
17322003-08-26 Jason Merrill <jason@redhat.com>
1733
1734 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1735 case out of #ifdef MIPS block.
1736
4ae9ee8e
DJ
17372003-08-25 Daniel Jacobowitz <drow@mvista.com>
1738
1739 PR java/1322
1740 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1741 available before calling SECT_OFF_TEXT.
3c164570 1742 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1743
004d836a
JJ
17442003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1745
1746 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1747 bof, and nat0-nat127 as pseudo-registers.
1748 (ia64_frame_cache): New struct used to cache frame info.
1749 (ia64_register_reggroup_p): New routine used to override default
1750 register grouping so registers without names are still saved and
1751 restored.
1752 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1753 pseudo values.
1754 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1755 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1756 (ia64_alloc_frame_cache): New routine to create a new
1757 ia64_frame_cache.
1758 (examine_prologue): Change prototype to add next_frame pointer.
1759 Assume frameless until otherwise proven. Verify that the cfm for
1760 current frame matches the cfm that should occur for the prologues
1761 alloc insn and if equal, mark as not frameless. At end of routine,
1762 if not frameless, calculate registers for the previous frame and store
1763 in the cache, if a cache is provided.
1764 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1765 and pass 0 for next_frame.
1766 (ia64_store_return_value): Change to use convert_typed_floating()
1767 instead of calling ia64_convert_to_raw().
1768 (ia64_extract_return_value): Change to use convert_typed_floating()
1769 instead of calling ia64_convert_to_virtual().
1770 (ia64_frame_cache): New routine to support new frame model.
1771 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1772 (ia64_frame_sniffer): Ditto.
1773 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1774 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1775 (ia64_sigtramp_frame_prev_register): Ditto.
1776 (ia64_sigtramp_frame_sniffer): Ditto.
1777 (ia64_frame_base_address): Ditto.
1778 (ia64_extract_struct_value_address): Change to issue error message.
1779 (ia64_frame_align): New routine to align sp.
1780 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1781 (ia64_push_arguments): Removed. Logic moved to
1782 ia64_push_dummy_call().
1783 (ia64_push_return_address): Ditto.
1784 (ia64_unwind_dummy_id): New function.
1785 (ia64_unwind_pc): Ditto.
1786 (ia64_convert_register_p): Ditto.
1787 (ia64_register_to_value): Ditto.
1788 (ia64_value_to_register): Ditto.
1789 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1790 (ia64_register_byte, ia64_register_raw_size): Ditto.
1791 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1792 (ia64_saved_pc_after_call): Ditto.
1793 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1794 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1795 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1796 (ia64_register_convert_to_raw): Ditto.
1797 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1798 (ia64_init_extra_frame_info): Ditto.
1799 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1800 (ia64_gdbarch_init): Remove registering of deprecated functions that
1801 are no longer used. Add registration of new gdbarch functions.
1802 Remove registering deprecated_write_sp. Replace
1803 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1804 Delete set_gdbarch_deprecated_register_convertible(),
1805 set_gdbarch_deprecated_register_convert_to_virtual(), and
1806 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1807 set_gdbarch_deprecated_register_size(),
1808 set_gdbarch_deprecated_register_bytes(),
1809 set_gdbarch_pcregnum(),
1810 set_gdbarch_deprecated_register_byte(),
1811 set_gdbarch_deprecated_register_raw_size(),
1812 set_gdbarch_deprecated_max_register_raw_size(),
1813 set_gdbarch_deprecated_register_virtual_size(),
1814 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1815 Replace set_gdbarch_deprecated_extract_return_value() with
1816 set_gdbarch_extract_return_value(). Remove calls to:
1817 set_gdbarch_deprecated_saved_pc_after_call();
1818 set_gdbarch_deprecated_frame_chain(),
1819 set_gdbarch_deprecated_frame_saved_pc(),
1820 set_gdbarch_deprecated_frame_init_saved_regs(),
1821 set_gdbarch_deprecated_get_saved_register(),
1822 set_gdbarch_deprecated_call_dummy_words(),
1823 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1824 set_gdbarch_deprecated_init_extra_frame_info(),
1825 set_gdbarch_deprecated_frame_args_address(),
1826 set_gdbarch_deprecated_frame_locals_address(),
1827 and set_gdbarch_deprecated_dummy_write_sp().
1828 Add set_gdbarch_convert_register_p(),
1829 set_gdbarch_register_to_value(),
1830 set_gdbarch_value_to_register(),
1831 set_gdbarch_push_dummy_call(),
1832 set_gdbarch_frame_align(),
1833 set_gdbarch_unwind_dummy_id(),
1834 set_gdbarch_unwind_pc(),
1835 frame_unwind_append_sniffer(),
1836 frame_unwind_append_sniffer(),
1837 and frame_base_set_default().
1838
aede7613
CD
18392003-08-25 Chris Demetriou <cgd@broadcom.com>
1840
1841 * configure.tgt: Document need for special "mipsisa64" handling.
1842 (mipsisa64*-*-linux64): Handle as target linux64.
1843 (mipsisa64*-*-*): Handle as target embed64.
1844
43c3a82e
MC
18452003-08-18 Michael Chastain <mec@shout.net>
1846
1847 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1848 objfile bug.
1849
6564f77d
MK
18502003-08-24 Mark Kettenis <kettenis@gnu.org>
1851
2de139ba
MK
1852 * i387-tdep.h: Update copyright date.
1853 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1854
6564f77d
MK
1855 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1856 CFLAGS games to reflect reality.
1857
42cf1509
AC
18582003-08-24 Andrew Cagney <cagney@redhat.com>
1859
1860 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1861 GDB_MULTI_ARCH is always non-zero.
1862 * osabi.c (_initialize_gdb_osabi): Ditto.
1863 (gdbarch_init_osabi): Ditto.
1864 * sparc-tdep.c: Ditto for #if code.
1865
0485f6ad
MK
18662003-08-23 Mark Kettenis <kettenis@gnu.org>
1867
1868 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1869 Update comments.
1870 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1871 comments.
1872 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1873 x86_64_supply_fxsave.
1874 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1875 x86_64_supply_fxsave.
1876 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1877 x86_64_supply_fxsave.
1878
c7716133
AJ
18792003-08-23 Andreas Jaeger <aj@suse.de>
1880
1881 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1882 i387_supply_fxsave.
1883
ed504bdf
MK
18842003-08-23 Mark Kettenis <kettenis@gnu.org>
1885
1886 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1887 i387_supply_register.
1888 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1889 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1890 i387_supply_fsave.
1891 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1892 i387_supply_fxsave.
1893 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1894 i387_supply_fsave.
1895 * i386bsd-nat.c (supply_fpregset): Adjust call to
1896 i387_supply_fsave.
1897 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1898 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1899 supply_fpregset.
1900 (store_inferior_registers): Remove extraneous whitespace. Call
1901 i387_fill_fsave instead of fill_fpregset.
1902 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1903 (supply_fpregset): Likewise.
1904 * i386v4-nat.c (supply_fpregset): Adjust call to
1905 i387_supply_fsave.
1906 * i386-interix-nat.c (supply_fpregset): Adjust call to
1907 i387_supply_fsave.
1908 * i386-linux-nat.c (supply_fpregset): Adjust call to
1909 i387_supply_fsave.
1910 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1911 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1912 i387supply_fsave and i387_supply_fxsave.
1913 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1914 Incorporate code from `i387_supply_register.
1915 (i387_supply_register): Remove.
1916 (i387_supply_fxsave): Add `regnum' argument.
1917 Update comments.
1918 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1919 prototype.
1920 (i387_supply_register): remove prototype.
1921 Update comments.
1922
4be5d520
MC
19232003-08-22 Michael Chastain <mec@shout.net>
1924
1925 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1926 Add lines for files in gdb/testsuite/gdb.cp/* that are
1927 still not 8.3 unique.
1928
7ed85d26
DJ
19292003-08-22 Daniel Jacobowitz <drow@mvista.com>
1930
1931 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1932 TYPE_VPTR_FIELDNO is valid.
1933
eb0d3137
MK
19342003-08-19 Mark Kettenis <kettenis@gnu.org>
1935
1936 * utils.c (set_width_command): Remove prototypes.
1937 (set_screen_size): New prototype.
1938 (init_page_info): Simplify by fetching the screen size from
1939 Readline. Call set_screen_size.
1940 (set_screen_size): New function.
1941 (set_width): Add missing whitespace in comment.
1942 (set_width_command): Call set_screen_size.
1943 (set_height_command): New function.
1944 (initialize_utils): Fix formatting. Make "set height" command
1945 call set_height_command. Remove redundant code that turns off
1946 pagination if output isn't a terminal. Remove redundant call to
1947 set_width_command.
1948
7e6d0ac8
MK
19492003-08-22 Mark Kettenis <kettenis@gnu.org>
1950
3567a8ea
MK
1951 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1952 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1953 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1954 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1955 `case' keyword.
1956 (sparc64_register_info): Give the reister with number
1957 SPARC64_STATE_REGNUM a name.
1958 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1959 %asi and %ccr.
1960 (sparc64_push_dummy_call): Take BIAS into account when checking
1961 stcak alignment.
1962 (sparc_software_single_step): Remove assertions that check whether
1963 NPC and NNPC were zero.
1964 (sparc_supply_rwindow): Make public. Merge functionality with
1965 sparc64_supply_rwindow.
1966 (sparc_fill_rwindow): Make public. Merge functionality with
1967 sparc64_fill_rwindow.
1968 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1969 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1970 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1971 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1972 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1973
7e6d0ac8
MK
1974 * reggroups.c: Add whitespace after declarations of local
1975 variables in functions.
1976
72e5f484
MC
19772003-08-21 Michael Chastain <mec@shout.net>
1978
1979 * gdbtypes.h: Change array bound type from an int to enum.
1980
435ac228
AC
19812003-08-21 Andrew Cagney <cagney@redhat.com>
1982
1983 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1984 * config/sparc/tm-sparc.h: Ditto.
1985 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1986 unconditionally.
1987 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1988
0d0e1a63
MK
19892003-07-13 Mark Kettenis <kettenis@gnu.org>
1990
1991 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1992 (register_objfile_data, set_objfile_data, objfile_data): New
1993 prototypes.
1994 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1995 prototypes.
1996 (allocate_objfile): Call objfile_alloc_data.
1997 (free_objfile): Call objfile_free_data.
1998 (struct objfile_data): New.
1999 (struct objfile_data_registration): New.
2000 (struct objfile_data_registry): New.
2001 (objfile_data_registry): New variable.
2002 (register_objfile_data): New function.
2003 (objfile_alloc_data, objfile_free_data): New functions.
2004 (set_objfile_data, objfile_data): New functions.
2005 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2006 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2007 (_initialize_dwarf2_frame): New function and prototype.
2008
d90cf509
AC
20092003-08-21 Andrew Cagney <cagney@redhat.com>
2010
2011 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2012 a specific architecture.
2013 * arch-utils.h (set_architecture_from_arch_mach): Delete
2014 declaration.
2015 (target_architecture_hook): Delete declaration.
2016 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2017 (default_float_format): Assume GDB_MULTI_ARCH.
2018 (default_double_format): Assume GDB_MULTI_ARCH.
2019 (set_endian_from_file): Delete function.
2020 (arch_ok): Delete function.
2021 (set_arch): Delete function.
2022 (set_architecture_from_arch_mach): Delete function.
2023 (set_architecture_from_file): Delete function.
2024 (set_architecture): Assume GDB_MULTI_ARCH.
2025 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2026
8b39fe56
MK
20272003-08-21 Mark Kettenis <kettenis@gnu.org>
2028
2029 Rewrite FreeBSD/sparc64 native configuration.
2030 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2031 * sparc64fbsd-nat.c: New file.
2032 * sparc64fbsd-tdep.c: New file.
2033 * sparc64-tdep.c sparc64-tdep.h: New files.
2034 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2035 sparc64fbsd-tdep.o): New dependencies.
2036 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2037 and sparc64fbsd-tdep.c.
2038 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2039 * config/sparc/fbsd.mh: Remove copyright notice.
2040 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2041 sparcbsd-nat.o.
2042 * config/sparc/fbsd.mt: Remove copyright notice.
2043 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2044 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2045 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2046 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2047 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2048 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2049 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2050 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2051 "sparc/tm-sp64.h".
2052 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2053 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2054
a7f19c79
MC
20552003-08-21 Michael Chastain <mec@shout.net>
2056
2057 * symtab.h: Add doco on the space critical structures and
2058 some measurements of space usage.
2059
da08ea5b
MS
20602003-08-21 Michael Snyder <msnyder@redhat.com>
2061
2062 * tracepoint.c (trace_dump_command): Trace break address
2063 is subject to DECR_PC_AFTER_BREAK.
2064 (set_traceframe_context): Make "trace_line" an int.
2065 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2066
6df2bf50
MS
20672003-08-20 Michael Snyder <msnyder@redhat.com>
2068
2069 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2070 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2071 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2072 argument passing.
2073 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2074 functions, replace sh_push_dummy_call.
2075 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2076
0955bbf0
MC
20772003-08-20 Michael Chastain <mec@shout.net>
2078
2079 * gdbtypes.h (struct main_type): Rearrange to save space.
2080
260a4188
MS
20812003-08-20 Michael Snyder <msnyder@redhat.com>
2082
2083 * trad-frame.c: Comment typo fix.
2084
8baa6f92
KB
20852003-08-20 Michael Snyder <msnyder@redhat.com>
2086 Kevin Buettner <kevinb@redhat.com>
2087
2088 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2089 (frv_frame_init_saved_regs): Add declaration.
2090 (frame_extra_info): Add new field ``saved_regs''.
2091 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2092 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2093 Update frame related code.
2094 (frv_extract_struct_value_address): Adjust formatting.
2095 * Makefile.in (frv-tdep.o): Update dependencies.
2096 * config/frv/tm-frv.h (target_insert_watchpoint)
2097 (target_remove_watchpoint, target_insert_hw_breakpoint)
2098 (target_remove_hw_breakpoint): Delete these macros.
2099 (remote_insert_watchpoint, remote_remove_watchpoint)
2100 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2101 these declarations.
2102
87193939
MC
21032003-08-20 Michael Chastain <mec@shout.net>
2104
2105 * defs.h (ENUM_BITFIELD): New macro.
2106 * symtab.h (ENUM_BITFIELD): Use it.
2107 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2108
062103ba
SA
21092003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2110
2111 * MAINTAINERS (write after approval): Add myself.
2112
8b148df9
AC
21132003-08-18 Andrew Cagney <cagney@redhat.com>
2114
2115 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2116 * gdbarch.h, gdbarch.c: Re-generate.
2117 * infcall.c (call_function_by_hand): Adjust the SP by
2118 frame_red_zone_size before allocating any stack space.
2119 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2120 * x86-64-tdep.c (x86_64_frame_align): New function.
2121 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2122
2123 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2124 Remove code adjusting SP so that it skips over the Red Zone.
2125
954a4db8
MK
21262003-08-18 Mark Kettenis <kettenis@gnu.org>
2127
2128 * NEWS (New native configurations): Mention FreeBSD/amd64.
2129
1a241548
AC
21302003-08-18 Andrew Cagney <cagney@redhat.com>
2131
2132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2133 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2134 "m68k_frame_p".
2135 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2136
f82b2acd
MK
21372003-08-18 Mark Kettenis <kettenis@gnu.org>
2138
2139 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2140
4056d258
ML
21412003-08-18 Michal Ludvig <mludvig@suse.cz>
2142
2143 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2144 Define.
2145 * i386-linux-nat.c: Include "linux-nat.h".
2146 (child_post_startup_inferior): New function.
2147
99ab4326
MK
21482003-08-18 Mark Kettenis <kettenis@gnu.org>
2149
2150 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2151 at the start of a frameless function. This probably fixes PR
2152 backtrace/1338.
2153
c8d5f0d6
MC
21542003-08-17 Michael Chastain <mec@shout.net>
2155
2156 * symfile.c (find_sym_fns): Remove special case for apollo target.
2157
9016a515
DJ
21582003-08-17 Daniel Jacobowitz <drow@mvista.com>
2159
2160 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2161 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2162 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2163 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2164 (linux_supports_tracevforkdone): New function.
2165 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2166 TRACEVFORKDONE.
2167 (child_follow_fork): Handle vfork.
2168 (linux_handle_extended_wait): Likewise. Also handle exec.
2169 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2170 * NEWS: Mention fork tracing.
2171
c538c11c
DJ
21722003-08-17 Daniel Jacobowitz <drow@mvista.com>
2173
2174 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2175
4de4c07c
DJ
21762003-08-17 Daniel Jacobowitz <drow@mvista.com>
2177
2178 * Makefile.in (i386-linux-nat.o): Update dependencies.
2179 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2180 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2181 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2182 * i386-linux-nat.c: Include "linux-nat.h".
2183 (child_post_startup_inferior): New function.
2184 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2185 * infptrace.c (kill_inferior): Wrap in #ifdef.
2186 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2187 attaching to each LWP.
2188 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2189 (init_lin_lwp_ops): Fill in some more operations.
2190 * linux-nat.h (linux_enable_event_reporting)
2191 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2192 prototypes.
2193 * linux-nat.c (linux_enable_event_reporting): New function.
2194 (child_post_attach, linux_child_post_startup_inferior)
2195 (child_post_startup_inferior, child_follow_fork)
2196 (linux_handle_extended_wait, kill_inferior): New functions.
2197
7996bcec
AC
21982003-08-16 Andrew Cagney <cagney@redhat.com>
2199
2200 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2201 * gdbarch.h, gdbarch.c: Re-generate.
2202
3d48a7a0
MK
22032003-08-16 Mark Kettenis <kettenis@gnu.org>
2204
2205 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2206
7989c619
AC
22072003-08-16 Andrew Cagney <cagney@redhat.com>
2208
2209 * NEWS: Mention that "set prompt-escape-char" was deleted.
2210 * top.c (get_prompt_1): Delete function.
2211 (gdb_prompt_escape):
2212 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2213 prompt-escape-char" command.
2214 (MAX_PROMPT_SIZE): Delete macro.
2215 (get_prompt): Simplify, do not call get_prompt_1.
2216
07978cd8
AC
22172003-08-16 Andrew Cagney <cagney@redhat.com>
2218
2219 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2220 -Werror. -Wformat-nonliteral problems.
2221
3ff7cf9e
JB
22222003-08-15 J. Brobecker <brobecker@gnat.com>
2223
2224 Further multiarching work mostly for hppa64-*-hpux11:
2225 * hppa-tdep.h: New file.
2226 * hppa-tdep.c: #include hppa-tdep.c.
2227 (hppa32_num_regs): Renamed from hppa_num_regs.
2228 (hppa64_num_regs): New constant.
2229 (hppa64_call_dummy_breakpoint_offset): New constant.
2230 (hppa32_call_dummy_length): New constant.
2231 (hppa64_call_dummy_length): New constant.
2232 (hppa32_stack_align): Make name 32bit explicit.
2233 (hppa32_register_virtual_type): Likewise.
2234 (hppa32_extract_return_value): Likewise.
2235 (hppa32_use_struct_convention): Likewise.
2236 (hppa32_store_return_value): Likewise.
2237 (hppa64_register_virtual_type): New function.
2238 (hppa64_extract_return_value): New function.
2239 (hppa64_use_struct_convention): New function.
2240 (hppa64_store_return_value): New function.
2241 (hppa_frame_locals_address): Remove declaration, function does
2242 not exist anymore.
2243 (hppa_register_byte): Add support for PA64 ABI.
2244 (hppa_gdbarch_init): Add support for PA64 ABI.
2245 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2246 Make name 32bit explicit.
2247 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2248 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2249 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2250 (hppa64_hpux_frame_base_before_sigtramp): New function.
2251 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2252 * config/pa/tm-hppa64.h: Remove macros that are no longer
2253 necessary now that the gdbarch vector is properly setup.
2254 Transform some macros into function calls. Some minor cleanup.
2255 * config/pa/tm-hppah.h: Update function calls in macros
2256 following the function renaming in hppa-hpux-tdep.c.
2257 * Makefile.in (hppa_tdep_h): New variable.
2258 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2259
5d05ca6d
MS
22602003-08-14 Michael Snyder <msnyder@redhat.com>
2261
2262 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2263
37ba2569
JB
22642003-08-13 J. Brobecker <brobecker@gnat.com>
2265
2266 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2267 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2268 routine.
2269
aed7f26a
MS
22702003-08-13 Michael Snyder <msnyder@redhat.com>
2271
2272 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2273 (frv_saved_pc_after_call): Use deprecated ftype.
2274 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2275 (frv_remote_translate_xfer_address): Remove.
2276 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2277
752d4ac1
JB
22782003-08-13 J. Brobecker <brobecker@gnat.com>
2279
2280 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2281 initialization after the common gdbarch initialization, not before.
2282
1426ac1d
JB
22832003-08-13 J. Brobecker <brobecker@gnat.com>
2284
2285 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2286 (ADDR_BITS_REMOVE): Remove, redundant.
2287
b6fbdd1d
JB
22882003-08-13 J. Brobecker <brobecker@gnat.com>
2289
2290 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2291 gdbarch method to clear the 2 low bits of text addresses.
2292
44160db3
AC
22932003-08-12 Andrew Cagney <cagney@redhat.com>
2294
2295 * Makefile.in (dsrec.o): Update dependencies.
2296 * dsrec.c: Include "gdb_assert.h".
2297 (make_srec): Use snprintf instead of sprintf, use a literal format
2298 string.
2299
bcf7d3ca
AC
23002003-08-12 Andrew Cagney <cagney@redhat.com>
2301
2302 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2303 FRAME_OBSTACK_ZALLOC.
2304
49ed40de
KB
23052003-08-12 Kevin Buettner <kevinb@redhat.com>
2306
2307 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2308 SSE registers.
2309
b246147c
MK
23102003-08-10 Mark Kettenis <kettenis@gnu.org>
2311
2312 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2313 amd64fbsd_sc_reg_offset): Add extern declarations.
2314 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2315 declarations.
2316
d95fdc0d
BE
23172003-08-11 Ben Elliston <bje@wasabisystems.com>
2318
2319 * MAINTAINERS (write after approval): Update my mail address.
2320
cf6a0e73
AC
23212003-08-10 Andrew Cagney <cagney@redhat.com>
2322
2323 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2324
f837910f
MK
23252003-08-10 Mark Kettenis <kettenis@gnu.org>
2326
e2dbbd2d
MK
2327 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2328 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2329 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2330 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2331 i386bsd_sc_reg_offset): Add extern declarations.
2332 * i386obsd-nat.c: Include "i386-tdep.h"
2333 (_initialize_i386obsd_nat): Remove extern declarations.
2334 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2335 declarations.
2336 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2337 declarations.
2338
f837910f
MK
2339 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2340 instead of frame_read_register.
2341 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2342 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2343 SP_REGNUM.
2344 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2345 instead of frame_unwind_unsigned_register. Use
2346 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2347 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2348 instead of read_register. Use builtin_type_void_data_ptr instead
2349 of builtin_type_void_func_ptr when extracting the address of the
2350 jmp_buf.
2351 (i386_extract_return_value, i386_store_return_value,
2352 i386_pseudo_register_read, i386_pseudo_register_write): Use
2353 register_size instead REGISTER_RAW_SIZE.
2354
edcf254d
AC
23552003-08-10 Andrew Cagney <cagney@redhat.com>
2356
2357 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2358 sprintf. Make "name" constant.
2359
26604a34
MK
23602003-08-10 Mark Kettenis <kettenis@gnu.org>
2361
192285c6
MK
2362 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2363 instead of frame_read_register.
f837910f
MK
2364 (i387_print_float_info): Use get_frame_register and
2365 get_frame_register_unsigned instead of frame_register_read.
192285c6 2366
f0925262
MK
2367 * i386fbsd-nat.c: Include "i386-tdep.h".
2368 (child_resume): Make `eflags' an ULONGEST. Use
2369 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2370 instead of register_read and register_write.
2371
a144416f
MK
2372 * i386bsd-nat.c (fetch_inferior_registers,
2373 store_inferior_registers): Don't use && at the end of a line.
2374 (_initialize_i386bsd_nat): Fix typo.
2375
fec74868
MK
2376 * frame.c (_initialize_frame): Add missing backslash.
2377
87232496
MK
2378 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2379 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2380 and supply_register instead of manipulating the register buffer
2381 directly.
2382
c9b9de0b
MK
2383 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2384 * config/i386/nm-i386sol2.h
2385 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2386
26604a34
MK
2387 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2388 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2389 instructions that GCC likes to mingle into the prologue. Fixes
2390 gdb/1253 and gdb/1255.
2391
25d29d70
AC
23922003-08-09 Andrew Cagney <cagney@redhat.com>
2393
2394 Fix GDB PR cli/926.
2395 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2396 * command.h (add_setshow_uinteger_cmd): Declare.
2397 * frame.c (set_backtrace_cmd): New function.
2398 (show_backtrace_cmd): New function.
2399 * frame.c (_initialize_frame): Replace "set/show
2400 backtrace-below-main" with "set/show backtrace past-main". Add
2401 command "set/show backtrace limit".
2402 (backtrace_past_main): Rename "backtrace_below_main".
2403 (backtrace_limit): New variable.
2404 (get_prev_frame): Update. Check the backtrace_limit.
2405
9ebf4acf
AC
24062003-08-09 Andrew Cagney <cagney@redhat.com>
2407
2408 * defs.h (xstrprintf): Declare.
2409 * utils.c (xstrprintf): New function.
2410 * breakpoint.c (insert_breakpoints): Replace sprintf and
2411 non-literal format strings, with xstrprintf and cleanups.
2412 (delete_breakpoint,breakpoint_re_set): Ditto.
2413 (commands_command, insert_breakpoints): Ditto.
2414 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2415 (break_at_finish_command_1): Ditto.
2416
3771659b
AC
24172003-08-09 Andrew Cagney <cagney@redhat.com>
2418
2419 * MAINTAINERS (language support): List Adam Fedor as Objective C
2420 maintainer.
2421
b4263afa
JB
24222003-08-08 J. Brobecker <brobecker@gnat.com>
2423
2424 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2425 are now multiarched.
2426
d84defb1
JB
24272003-08-08 J. Brobecker <brobecker@gnat.com>
2428
2429 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2430 longer necessary now that hppa64 is partially multiarch'ed.
2431
f786f615
AC
24322003-08-08 Andrew Cagney <cagney@redhat.com>
2433
2434 * interps.c (interp_set): Check for a NULL "old_interp".
2435
c938e9b0
L
24362003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2437
2438 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2439 (install-only): Support DESTDIR.
2440 (uninstall): Likewise.
2441 (install-gdbtk): Likewise.
2442
9a146a11
EZ
24432003-08-08 Elena Zannoni <ezannoni@redhat.com>
2444
2445 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2446 contains something meaningful at all times.
2447
2448Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2449
62599e99 2450 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2451
56296155
BC
2452Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2453
62599e99 2454 * MAINTAINERS (write after approval): Added self.
56296155 2455
9710e734
AC
24562003-08-07 Andrew Cagney <cagney@redhat.com>
2457
2458 * inferior.h (AT_SYMBOL): Define.
2459 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2460 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2461 * mips-tdep.c (mips_call_dummy_address): Delete function.
2462 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2463 set call_dummy_address.
2464
98b3ab73
AC
24652003-08-07 Andrew Cagney <cagney@redhat.com>
2466
2467 * language.c (op_error): Delete function.
2468 (binop_type_check): Delete function.
2469 * language.h (type_op_error, range_op_error): Delete macros.
2470 (op_error): Delete declaration.
2471
2fcf52f0
AC
24722003-08-07 Andrew Cagney <cagney@redhat.com>
2473
2474 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2475
abd4220e 24762003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2477
abd4220e 2478 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2479 (x86_64_push_arguments): Skip the red zone.
abd4220e 2480
9dd5f34f
AC
24812003-08-05 Andrew Cagney <cagney@redhat.com>
2482
2483 * reggroups.c (reggroup_next): Check for the final entry.
2484
e5e78edc
AC
24852003-08-04 Andrew Cagney <cagney@redhat.com>
2486
ab4e3d93
AC
2487 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2488 * cli/cli-script.c (define_command): Call query directly, instead
2489 of passing it a buffer.
2490 * ocd.c (ocd_error): Pass error a constant format string.
2491 * remote-mips.c (mips_error): Use fputs_filtered.
2492
1062ca82
AC
2493 * solib-svr4.c (_initialize_svr4_solib): Update
2494 register_gdbarch_data call.
2495 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2496
fcc1c85c
AC
2497 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2498 (register_gdbarch_data): Delete "free" parameter. Update
2499 comments.
2500 * gdbarch.h, gdbarch.c: Re-generate.
2501 * reggroups.c (_initialize_reggroup): Update.
2502 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2503 * frame-base.c (_initialize_frame_base): Update.
2504 * frame-unwind.c (_initialize_frame_unwind): Update.
2505 * user-regs.c (_initialize_user_regs): Update.
2506 * remote.c (_initialize_remote): Update.
2507 * regcache.c (_initialize_regcache): Update.
2508
116f06ea
AC
2509 * regcache.c (xfree_regcache_descr): Delete function.
2510 (_initialize_regcache): Update call to register_gdbarch_data.
2511 (init_regcache_descr, init_legacy_regcache_descr): Use
2512 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2513
e5e78edc
AC
2514 * remote.c (free_remote_state): Delete function.
2515 (_initialize_remote): Update register_gdbarch_data.
2516 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2517 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2518
6c7d17ba
AC
25192003-08-04 Andrew Cagney <cagney@redhat.com>
2520
2521 * reggroups.c (struct reggroup_el): Define.
2522 (struct reggroups): Delete field "nr_group". Replace array
2523 "group" with a "first" to "last" linked list.
2524 (reggroups_init): Update. Allocate using gdbarch's obstack.
2525 (reggroups_free): Delete function.
2526 (add_group): Update. Add "el" parameter.
2527 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2528 (default_groups): Update.
2529 (reggroup_next): Replace reggroups.
2530 (reggroups_dump): Update.
2531 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2532 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2533 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2534
89b7795b
DJ
25352003-08-04 Daniel Jacobowitz <drow@mvista.com>
2536
2537 * Makefile.in (tui-interp.o): Update dependencies.
2538
306d9ac5
DC
25392003-08-04 David Carlton <carlton@kealia.com>
2540
2541 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2542 to internal_error call.
2543 * source.c (forward_search_command): Add "%s" format argument.
2544 (reverse_search_command): Ditto.
2545 * top.c (quit_confirm): Ditto.
2546 * cli/cli-setshow.c (do_setshow_command): Ditto.
2547 * cp-valprint.c (cp_print_class_method): Replace
2548 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2549 (cp_print_class_member): Ditto.
2550 * event-top.c (command_line_handler): Ditto.
2551 * linux-proc.c (linux_info_proc_cmd): Ditto.
2552 * p-typeprint.c (pascal_type_print_base): Ditto.
2553 * p-valprint.c (pascal_object_print_class_method): Ditto.
2554 (pascal_object_print_class_member): Ditto.
2555 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2556 * remote.c (remote_cisco_section_offsets): Ditto.
2557 * top.c (command_line_input): Ditto.
2558 * utils.c (vwarning,error_stream,quit): Ditto.
2559 * valprint.c (print_floating,print_binary_chars)
2560 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2561
57bfe177
AC
25622003-08-04 Andrew Cagney <cagney@redhat.com>
2563
2564 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2565
e546b999
AC
25662003-08-02 Andrew Cagney <cagney@redhat.com>
2567
2568 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2569 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2570 amd64fbsd-nat.c.
2571
91092ee5
AC
25722003-08-02 Andrew Cagney <cagney@redhat.com>
2573
2574 * Makefile.in: Update all dependencies and definitions.
2575
889f28e2
AF
25762003-08-02 Adam Fedor <fedor@gnu.org>
2577
2578 * linespec.c (is_objc_method_format): New function
2579 (decode_line_1, locate_first_half): Use it.
2580 Fixes PR objc/1298
2581
880bc914
AC
25822003-08-01 Andrew Cagney <cagney@redhat.com>
2583
2584 * NEWS: Mention that m32r is multi-arch.
2585 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2586 * configure.tgt: Recognize m32r-*-*.
2587 * config/m32r/tm-m32r.h: Delete file.
2588 * config/m32r/m32r.mt: New file.
2589 * m32r-rom.c (m32r_upload_command): Use hostent only when
2590 gethostname succeeds, in order to avoid a compilation
2591 warning.
2592 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2593 compiler warning.
2594
19f59343
MS
25952003-08-01 Michael Snyder <msnyder@redhat.com>
2596
2597 * sh-tdep.c (sh_frame_align): New gdbarch method.
2598 (sh_gdbarch_init): Set up frame_align method.
2599
4e7d7511
MS
26002003-07-31 Michael Snyder <msnyder@redhat.com>
2601
2602 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2603 which is already covered by the new frames infrastructure.
2604
63022984
AC
26052003-07-31 Andrew Cagney <cagney@redhat.com>
2606
2607 * user-regs.c (struct user_reg): Add "next" link.
2608 (struct user_regs): Replace "user" with "first" and "last" links.
2609 (append_user_reg): Add pre-allocated "reg" parameter.
2610 (builtin_user_regs): Provide initial value for "last".
2611 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2612 (user_regs_init): Allocate memory from the gdbarch obstack.
2613 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2614 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2615 linked list.
2616 (usernum_to_user_reg): New function.
2617 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2618 (value_of_user_reg): Use usernum_to_user_reg.
2619 (user_regs_free): Delete function.
2620 (_initialize_user_regs): Update register_gdbarch_data call.
2621
7cf6e574
DJ
26222003-07-31 Daniel Jacobowitz <drow@mvista.com>
2623
2624 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2625
c48a845b
MS
26262003-07-30 Michael Snyder <msnyder@redhat.com>
2627
4e7d7511 2628 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2629 * infcall.c (call_function_by_hand): Pass struct_addr to
2630 value_being_returned.
2631 * infcmd.c (print_return_value): Pass zero as struct_addr.
2632 * values.c (value_being_returned): If struct_addr is passed,
2633 use it instead of trying to recover it from the inferior.
2634
f0d8db19
KB
26352003-07-30 Kevin Buettner <kevinb@redhat.com>
2636
2637 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2638 the prologue analyzer won't need to attempt to extract the pc
2639 value from the woefully incomplete dummy frame.
2640 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2641 possible. Disable code which modifies the frame.
2642
e5c113a1
AC
26432003-07-28 Andrew Cagney <cagney@redhat.com>
2644
2645 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2646 to level 2.
2647 (annotate_breakpoints_table, annotate_record): Ditto.
2648 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2649 (annotate_field_name_end, annotate_field_value): Ditto.
2650 (annotate_field_end, annotate_frame_source_begin): Ditto.
2651 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2652 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2653 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2654 (annotate_frame_address_end, annotate_frame_address): Ditto.
2655 (annotate_frame_args, annotate_frame_end): Ditto.
2656 (annotate_frame_where, annotate_arg_begin): Ditto.
2657 (annotate_arg_name_end, annotate_arg_value): Ditto.
2658 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2659 (annotate_function_call, annotate_signal_name): Ditto.
2660 (annotate_signal_string, annotate_signal_name_end): Ditto.
2661 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2662 (annotate_value_begin, annotate_value_history_value): Ditto.
2663 (annotate_value_history_end, annotate_value_end): Ditto.
2664 (annotate_display_begin, annotate_display_number_end): Ditto.
2665 (annotate_display_format, annotate_display_expression): Ditto.
2666 (annotate_display_expression_end, annotate_display_value): Ditto.
2667 (annotate_display_end, annotate_array_section_begin): Ditto.
2668 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2669 (annotate_elt, annotate_array_section_end): Ditto.
2670
bb1db049
AC
26712003-07-28 Andrew Cagney <cagney@redhat.com>
2672
2673 * regcache.c (struct regcache_descr): Update comments on
2674 nr_raw_registers.
2675 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2676 sizeof_raw_register_valid_p.
2677 (init_regcache_descr): Set nr_raw_registers and
2678 sizeof_raw_register_valid_p before calling
2679 init_legacy_regcache_descr.
2680
20e6603c
AC
26812003-07-28 Andrew Cagney <cagney@redhat.com>
2682
2683 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2684 MOD NUM_REGS.
2685
db742940
DJ
26862003-07-28 Daniel Jacobowitz <drow@mvista.com>
2687
2688 * thread.c (info_threads_command): Use get_selected_frame ().
2689 Check that there is at least one non-sentinel frame.
2690
ce7f4371
SC
26912003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2692
2693 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2694 (m68hc11_pop_frame): Remove.
2695 (m68hc11_frame_saved_pc): Remove.
2696 (m68hc11_frame_chain): Remove.
2697 (m68hc11_frame_init_saved_regs): Remove.
2698 (m68hc11_init_extra_frame_info): Remove.
2699 (m68hc11_store_struct_return): Remove.
2700 (m68hc11_saved_pc_after_call): Remove.
2701
1ea653ae
SC
27022003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2703
2704 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2705 frame unwind information.
2706 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2707 and adapted for frame unwinding.
2708 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2709 (m68hc11_unwind_pc): New function.
2710 (m68hc11_frame_unwind_cache): New function to analyze frames.
2711 (m68hc11_frame_this_id): New function to create new frame struct.
2712 (m68hc11_frame_prev_register): New function to unwind a register from
2713 the frame.
2714 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2715 (m68hc11_frame_p): New function for the above.
2716 (m68hc11_frame_base_address): New function to return fp of frame.
2717 (m68hc11_frame_args_address): Update for frame.
2718 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2719 (m68hc11_unwind_sp): New function.
2720 (m68hc11_unwind_dummy_id): New function.
2721 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2722 calls.
2723
c8a7f6ac
SC
27242003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2725
2726 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2727 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2728 when we are beyond the current pc.
2729
3dc990bf
SC
27302003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2731
2732 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2733 from m68hc11_push_arguments.
2734 (m68hc11_push_arguments): Remove.
2735 (m68hc11_push_return_address): Remove.
2736 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2737 handlers; remove deprecated_extra_stack_alignment_needed.
2738
222e5d1d
AC
27392003-07-27 Andrew Cagney <cagney@redhat.com>
2740
2741 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2742 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2743 REAL_PC and not the pointer.
2744 * hppa-hpux-tdep.c: Include frame.h
2745
a7e9a47e
AC
27462003-07-27 Andrew Cagney <cagney@redhat.com>
2747
2748 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2749 GDB_MULTI_ACH_PARTIAL.
2750
7e3dd49e
AC
27512003-07-27 Andrew Cagney <cagney@redhat.com>
2752
2753 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2754 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2755 operator at start and not end of line.
2756 (decode_prologue): Ditto.
2757 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2758 frame_unwind_register_unsigned instead of
2759 frame_unwind_unsigned_register.
2760 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2761 read_register.
2762 (m32r_push_dummy_call): Use register_size instead of
2763 REGISTER_RAW_SIZE.
2764 (m32r_frame_sniffer): Replace m32r_frame_p.
2765 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2766 * m32r-rom.c (report_transfer_performance): Delete extern
2767 declaration.
2768 (m32r_load, m32r_upload_command): Use print_transfer_performance
2769 instead of report_transfer_performance.
2770 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2771 / add_show_from_set.
2772
0880807f
AC
27732003-07-26 Andrew Cagney <cagney@redhat.com>
2774
2775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2776 store_return_value and extract_struct_value_address.
2777
64ae9269
DJ
27782003-07-26 Daniel Jacobowitz <drow@mvista.com>
2779
2780 PR c++/1267
2781 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2782 NULL, default to the section containing PC.
2783
e286caf2
SC
27842003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2785
2786 * NEWS: Mention "regs" deprecated for m68hc11 too.
2787
2788 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2789 (m68hc11_print_register): New function to print out one register.
2790 (m68hc11_print_registers_info): New function to print registers.
2791 (show_regs): Deprecate and use the above.
2792 (m68hc11_gdbarch_init): Install the print_registers_info.
2793
705b278b
JJ
27942003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2795
2796 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2797 that we have a SIGTRAP before returning non-zero.
2798
63cd4198
EZ
27992003-07-23 Michal Ludvig <mludvig@suse.cz>
2800 Elena Zannoni <ezannoni@redhat.com>
2801
2802 * linespec.c (decode_line_2): Avoid crash if
2803 find_function_start_sal() returns empty record.
2804
6926787d
AS
28052003-07-23 Andreas Schwab <schwab@suse.de>
2806
2807 * ia64-tdep.c (ia64_print_insn): New function.
2808 (ia64_gdbarch_init): Set print_insn to it.
2809 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2810 deprecated_tm_print_insn_info.
2811
708cc1b6
MS
28122003-07-22 Michael Snyder <msnyder@redhat.com>
2813
2814 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2815 handle 8-bit returns (long long).
2816 (h8300h_extract_return_value): Ditto.
2817 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2818
aebd7893
AC
28192003-07-22 Andrew Cagney <cagney@redhat.com>
2820
2821 * gdbarch.c Include "gdb_obstack.h".
2822 (struct gdbarch): Add an "obstack".
2823 (alloc_gdbarch_data): Allocate the gdbarch data using
2824 GDBARCH_OBSTACK_CALLOC.
2825 (free_gdbarch_data): Delete function.
2826 (gdbarch_obstack_zalloc): New function.
2827 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2828 Assert that the architecture is not initialized.
2829 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2830 vector from the obstack.
2831 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2832 architecture obstack.
2833 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2834 (set_gdbarch_data): Assert that the data is not initialized.
2835 (struct gdbarch_data): Delete member "free".
2836 (register_gdbarch_data): Do not initialize "free".
2837 * gdbarch.h, gdbarch.c: Re-generate.
2838
153721e6
AC
28392003-07-22 Andrew Cagney <cagney@redhat.com>
2840
2841 * configure.in (build_warnings): Add -Wformat-nonliteral.
2842 * configure: Re-generate.
2843
c193f044 28442003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2845
2846 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2847
c3228f12
EZ
28482003-07-22 Elena Zannoni <ezannoni@redhat.com>
2849
2850 * findvar.c (read_var_value): Remove case for thread local storage
2851 variables. It is now entirely handled by the dwarf2 location
2852 expression code.
2853 * printcmd.c (address_info): Ditto.
2854 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2855 enumeration value.
2856 (struct symbol): Remove objfile field, which was used by
2857 LOC_THREAD_LOCAL_STATIC only.
2858 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2859 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2860 usage of objfile pointer.
2861 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2862 thread local variables.
2863 Add include of objfiles.h.
2864 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2865 storage variables.
2866 * Makefile.in (dwarf2loc.o): Update dependencies.
2867
aef9bcd2
AC
28682003-07-22 Andrew Cagney <cagney@redhat.com>
2869
2870 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2871 get_frame_base.
2872 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2873 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2874 (struct value): Add opaque declaration.
2875 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2876
d95a8903
AC
28772003-07-21 Andrew Cagney <cagney@redhat.com>
2878
2879 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2880 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2881
4db73d49
SC
28822003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2883
2884 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2885 regcache_cooked_read_unsigned instead of read_register.
2886 (m68hc11_saved_pc_after_call): Likewise.
2887 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2888 instead of write_register.
2889 (m68hc11_register_type): New function.
2890 (m68hc11_register_virtual_type): Remove.
2891 (m68hc11_store_return_value): Convert to use the regcache.
2892 (m68hc11_extract_struct_value_address): Likewise.
2893 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2894 m68hc11_register_type; undeprecate store_return_value and
2895 extract_struct_value_address.
2896
ef2b8fcd
SC
28972003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2898
2899 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2900 and translate to use regcache.
2901 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2902
625b0b97
AC
29032003-07-18 Andrew Cagney <cagney@redhat.com>
2904
2905 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2906 * gdbarch.h, gdbarch.c: Re-generate.
2907 * i386-tdep.c (i386_gdbarch_init): Do not set
2908 DWARF2_BUILD_FRAME_INFO.
2909 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2910 unconditionally.
2911 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2912 DWARF2_BUILD_FRAME_INFO.
2913
22b0d388
AC
29142003-07-18 Andrew Cagney <cagney@redhat.com>
2915
2916 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2917 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2918
1ce5d6dd
AC
29192003-07-18 Andrew Cagney <cagney@redhat.com>
2920
2921 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2922 frame_unwind_address_in_block, instead of frame_pc_unwind.
2923 (dwarf2_frame_cache): Ditto.
2924
e6e5e94c
AC
29252003-07-18 Andrew Cagney <cagney@redhat.com>
2926
2927 * user-regs.h (struct gdbarch): Declare opaque.
2928 * ui-out.h (struct ui_file): Declare opaque.
2929 * dwarf2-frame.h (struct frame_info): Declare opaque.
2930
5483d879
KW
29312003-07-18 Kris Warkentin <kewarken@qnx.com>
2932
2933 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2934 #include "...".
2935 (procfs_meminfo): Change strerror to safe_strerror.
2936 (procfs_can_run): Remove K&R badness.
2937
278a7cf7
MS
29382003-07-17 Michael Snyder <msnyder@redhat.com>
2939
2940 * remote-sim.c: Comment typo fix.
2941
606e3b82
AC
29422003-07-17 Andrew Cagney <cagney@redhat.com>
2943
2944 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2945 configure.
2946 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2947 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2948 GDB_MULTI_ARCH_PARTIAL.
2949
c43af07c
EZ
29502003-07-17 Elena Zannoni <ezannoni@redhat.com>
2951
2952 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2953 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2954 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2955
3b85b0f1
TR
29562003-07-16 Theodore A. Roth <troth@openavr.org>
2957
2958 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2959 found.
2960 (avr_frame_unwind_cache): Don't unwind FP for main.
2961 Update a comment.
2962 Save the computed prev_sp.
2963 (avr_saved_regs_unwinder): Remove function.
2964 (avr_frame_prev_register): Use PC unwind logic from
2965 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2966
336d1bba
AC
29672003-07-16 Andrew Cagney <cagney@redhat.com>
2968
2969 * frame-base.h (frame_base_p_ftype): Delete definition.
2970 (frame_base_append_predicate): Delete declaration.
2971 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2972 (frame_unwind_append_predicate): Delete declaration.
2973 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2974 (append_predicate): Delete parameter "p".
2975 (frame_unwind_append_predicate): Delete function.
2976 (frame_unwind_append_sniffer): Update call to append_predicate.
2977 (frame_unwind_free): Delete function.
2978 (_initialize_frame_unwind): Pass NULL as "free" to
2979 register_gdbarch_data.
2980 (frame_unwind_init): Append the dummy_frame_sniffer.
2981 (frame_unwind_find_by_frame): Simplify.
2982 * frame-base.c (struct frame_base_table): Delete field "p".
2983 (append_predicate): Delete parameter "p".
2984 (frame_base_append_predicate): Delete function.
2985 (frame_base_append_sniffer): Update call to append_predicate.
2986 (frame_base_free): Delete function.
2987 (frame_base_find_by_frame): Simplify.
2988 (_initialize_frame_base): Pass NULL as "free" to
2989 register_gdbarch_data.
2990 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2991 (x86_64_sigtramp_frame_sniffer): Replace
2992 "x86_64_sigtramp_frame_p".
2993 (x86_64_init_abi): Set the frame unwind sniffers.
2994 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2995 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2996 (m68k_gdbarch_init): Set the frame unwind sniffers.
2997 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2998 "i386_sigtramp_frame_p".
2999 (i386_frame_sniffer): Replace "i386_frame_p".
3000 (i386_gdbarch_init): Set the frame unwind sniffers.
3001 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3002 (avr_gdbarch_init): Set the frame unwind sniffers.
3003 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3004 "alpha_sigtramp_frame_p"
3005 (alpha_heuristic_frame_sniffer): Replace
3006 "alpha_heuristic_frame_p".
3007 (alpha_gdbarch_init): Set the frame unwind sniffers.
3008 (alpha_dwarf2_init_abi): Ditto.
3009 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3010 "alpha_debug_frame_p".
3011 (alpha_mdebug_frame_base_sniffer): Replace
3012 "alpha_mdebug_frame_base_p".
3013 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3014 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3015 (d10v_gdbarch_init): Set the frame unwind sniffer.
3016 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3017 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3018 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3019 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3020 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3021 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3022
48db5a3c
CV
30232003-07-16 Michael Snyder <msnyder@redhat.com>
3024
3025 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3026 should go thru sh_dsp_register_sim_regno, else the dsp regs
3027 will not get the right values.
3028
30292003-07-16 Corinna Vinschen <vinschen@redhat.com>
3030
3031 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3032 deprecated_store_floating by call to store_typed_floating.
3033 (sh_sh4_register_convert_to_raw): Substitute call to
3034 deprecated_extract_floating by call to extract_typed_floating.
3035
30362003-07-16 Corinna Vinschen <vinschen@redhat.com>
3037
3038 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3039
30402003-07-16 Corinna Vinschen <vinschen@redhat.com>
3041
3042 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3043 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3044 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3045 as possible.
3046 (do_pseudo_register): Remove.
3047 (sh_push_dummy_code): New function.
3048 (sh64_store_struct_return): Rename from sh_store_struct_return.
3049 Only called for sh64 now.
3050 (sh_extract_struct_value_address): Regcache'ify.
3051 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3052 and accomodate new tasks.
3053 (sh64_push_return_address): Rename from sh_push_return_address.
3054 Only called for sh64 now.
3055 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3056 Regcache'ify.
3057 (sh3e_sh4_extract_return_value): Regcache'ify.
3058 (sh_default_store_return_value): Ditto.
3059 (sh3e_sh4_store_return_value): Ditto.
3060 (sh_default_register_byte): Remove.
3061 (sh_sh4_register_byte): Remove.
3062 (sh_default_register_raw_size): Remove.
3063 (sh_sh4_register_raw_size): Remove.
3064 (sh_register_virtual_size): Remove.
3065 (sh_sh3e_register_virtual_type): Remove.
3066 (sh_sh3e_register_type): New function.
3067 (sh_sh4_register_virtual_type): Remove.
3068 (sh_sh4_register_type): New function.
3069 (sh_default_register_virtual_type): Remove.
3070 (sh_default_register_type): New function.
3071 (do_fv_register_info): Add parameters to accomodate call from
3072 sh_print_registers_info.
3073 (do_dr_register_info): Ditto.
3074 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3075 Add parameters to accomodate call from sh_print_registers_info.
3076 (sh_do_fp_register): Ditto.
3077 (sh64_do_pseudo_register): Call do_dr_register_info,
3078 do_fv_register_info and sh_do_fp_register with default parameters.
3079 (sh_do_register): Add parameters to accomodate call from
3080 sh_print_registers_info.
3081 (sh_print_register): Ditto.
3082 (sh_print_registers_info): Rename from sh_do_registers_info.
3083 Add parameters to be used as gdbarch_print_registers_info
3084 implementation. Accomodate removed do_pseudo_register function
3085 pointer.
3086 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3087 function pointer. Call sh_print_register with default parameters.
3088 (sh64_do_registers_info): Call sh_print_registers_info instead of
3089 sh_do_registers_info.
3090 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3091 detection of deprecated vs. non-deprecated functionality.
3092 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3093 function pointer assignments by direct function calls.
3094
e8a89fe2
AC
30952003-07-15 Andrew Cagney <cagney@redhat.com>
3096
3097 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3098 (frame_register_unwind, create_new_frame): Ditto.
3099 (legacy_get_prev_frame, get_frame_type): Ditto.
3100 (get_frame_base_address): Use frame_base_find_by_frame.
3101 (get_frame_locals_address): Use frame_base_find_by_frame.
3102 (get_frame_args_address): Use frame_base_find_by_frame.
3103 * frame-base.h (frame_base_sniffer_ftype): Declare.
3104 (frame_base_append_sniffer): Declare.
3105 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3106 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3107 (frame_base_append_sniffer): New function.
3108 (frame_base_append_predicate): Add a NULL sniffer.
3109 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3110 (struct frame_base_table): Add "sniffer".
3111 (frame_base_free): Free the "sniffer" table.
3112 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3113 (frame_unwind_append_sniffer): Declare.
3114 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3115 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3116 (struct frame_unwind_table): Add "sniffer", delete "middle".
3117 (append_predicate): Add "sniffer" parameter, append the sniffer.
3118 (frame_unwind_init): Update append_predicate call.
3119 (frame_unwind_append_sniffer): New function.
3120 (frame_unwind_append_predicate): Update append_predicate call.
3121 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3122
0714963c
AC
31232003-07-15 Andrew Cagney <cagney@redhat.com>
3124
3125 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3126 before code inhibiting repeated unwind attempts. Add to
3127 commentary on that test's problems.
3128 * blockframe.c (inside_main_func): Look for "main" in the minimal
3129 symbol table.
3130 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3131 identical.
3132
d9170e22
AC
31332003-07-15 Andrew Cagney <cagney@redhat.com>
3134
3135 * complaints.c (struct explanation): Define.
3136 (struct complaints): Change type of "explanation" to "struct
3137 explanation".
3138 (symfile_explanations): Convert to a "struct explanation" table.
3139 (vcomplaint): Update.
3140
eba29c8c
ML
31412003-07-15 Michal Ludvig <mludvig@suse.cz>
3142
3143 * x86-64-linux-nat.c (regmap): Removed.
3144 (supply_gregset, fill_gregset): Call
3145 x86_64_linux_(fill,supply)_gregset functions.
3146 * x86-64-linux-tdep.c (USER_*): New defines.
3147 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3148 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3149 New functions.
3150 (fetch_core_registers): Ditto.
3151 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3152 * x86-64-linux-tdep.h: New file.
3153 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3154 and core-regset.o.
3155 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3156
68cc0bfb
MK
31572003-07-13 Mark Kettenis <kettenis@gnu.org>
3158
88a115f7
MK
3159 * x86-64-tdep.c (x86_64_store_return_value): Use
3160 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3161
68cc0bfb
MK
3162 * configure.host: Add x86_64-*-freebsd*.
3163 * configure.tgt: Add x86_64-*-freebsd*.
3164 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3165 * amd64fbsd-nat.c: New file.
3166 * amd64fbsd-tdep.c: New file.
3167 * config/i386/nm-fbsd64.h: New file.
3168 * config/i386/fbsd64.mh: New file.
3169 * config/i386/fbsd64.mt: New file.
3170
138e7be5
MK
31712003-07-11 Mark Kettenis <kettenis@gnu.org>
3172
3173 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3174 `sc_regs_offset' and `sc_fpregs_offset'.
3175 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3176 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3177 (alpha_sigtramp_register_address): Rewrite to use new members of
3178 `struct gdbarch_tdep'.
3179 (alpha_gdbarch_init): Initialize new members of struct
3180 gdbarch_tdep'.
3181 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3182 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3183 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3184 (alphafbsd_pc_in_sigtramp): Implement.
3185 (alphafbsd_sigtramp_offset): New function.
3186 (alphafbsd_sigcontext_addr): New function.
3187 (alphafbsd_init_abi): Initialize signal trampoline related members
3188 of `struct gdbarch_tdep'.
3189 (_initialize_alphafbsd_tdep): Add prototype.
3190
95303a68
TR
31912003-07-11 Theodore A. Roth <troth@openavr.org>
3192
ba292e4c
TR
3193 * Makefile.in (install-only): Quote sed expression when generating
3194 transformed_name.
95303a68 3195
6896c0c7
RH
31962003-07-11 Richard Henderson <rth@redhat.com>
3197
3198 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3199 * dwarf2-frame.c: Include complaints.h.
3200 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3201 variable initialization; return NULL on error.
3202 (decode_frame_entry): New.
3203
8edd5d01
AC
32042003-07-11 Andrew Cagney <cagney@redhat.com>
3205
c4a09524
AC
3206 * frame.h (frame_address_in_block): Delete declaration.
3207 * blockframe.c (frame_address_in_block): Delete function.
3208 (get_frame_block): Use get_frame_address_in_block.
3209 (block_innermost_frame): Ditto.
3210 * stack.c (print_frame, backtrace_command_1): Ditto.
3211
8edd5d01
AC
3212 * frame.h (get_frame_address_in_block): Declare.
3213 (frame_unwind_address_in_block): Declare.
3214 * frame.c (frame_unwind_address_in_block): New function.
3215 (get_frame_address_in_block): New function.
3216
f7968451
AC
32172003-07-10 Andrew Cagney <cagney@redhat.com>
3218
3219 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3220 pre-default. Note: re-generate has no effect.
3221
ae99b398
AC
32222003-07-10 Andrew Cagney <cagney@redhat.com>
3223
3224 * gdbarch.sh: When a variable, but not a function, compare against
3225 0. Fix problem in previous patch.
3226 * gdbarch.c: Re-generate.
3227
956ac328
AC
32282003-07-10 Andrew Cagney <cagney@redhat.com>
3229
3230 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3231 functions against NULL, not 0.
3232 * gdbarch.c: Re-generate.
3233
287c3240
FF
32342003-07-10 Fred Fish <fnf@ninemoons.com>
3235
3236 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3237 null string instead of a null pointer.
3238 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3239
32f63c4b
MS
32402003-07-09 Michael Snyder <msnyder@redhat.com>
3241
3242 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3243
402ecd56
MK
32442003-07-09 Mark Kettenis <kettenis@gnu.org>
3245
3246 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3247 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3248 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3249 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3250 * x86-64-tdep.c: ... from here.
3251
c481dac7
AS
32522003-07-09 Andreas Schwab <schwab@suse.de>
3253
3254 * m68k-tdep.h (enum struct_return): Define.
3255 (struct gdbarch_tdep): Add struct_return.
3256 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3257 bytes are padded to the right, not to the left. Pass struct value
3258 address in register %a1, not on stack.
3259 (m68k_use_struct_convention): New function.
3260 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3261 struct_return in tdep to pcc_struct_return.
3262 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3263 reg_struct_return.
3264
64176fa3
JB
32652003-07-09 Joel Brobecker <brobecker@gnat.com>
3266
3267 * somread.c (som_symfile_offsets): Fix compilation error.
3268
96a4ee76
AC
32692003-07-09 Andrew Cagney <cagney@redhat.com>
3270
3271 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3272 Add comments about the checks.
3273
1517c6d1
AC
32742003-07-08 Andrew Cagney <cagney@redhat.com>
3275
3276 * Makefile.in: Make dependency section headers consistent.
3277 (config_h): Move to $BUILD headers section.
3278 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3279 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3280 (ada-exp.tab.c): Move to YACC/LEX section.
3281 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3282 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3283
dc5dd1eb
KW
32842003-07-08 Kris Warkentin <kewarken@qnx.com>
3285
3286 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3287 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3288 of strerror with safe_strerror, use ISO C function definitions,
3289 and replace instances of sprintf with snprintf.
dc5dd1eb 3290
612dde91
AC
32912003-07-07 Andrew Cagney <cagney@redhat.com>
3292
3293 * frame.c (get_prev_frame): Enable check for identical frames.
3294 Update comments. Update error messages.
3295
492c11d3
JB
32962003-07-07 Joel Brobecker <brobecker@gnat.com>
3297
3298 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3299
376a5a49
JB
33002003-07-07 Joel Brobecker <brobecker@gnat.com>
3301
3302 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3303 sort_symtab_syms, no longer necessary.
3304
22b4a9ad
JB
33052003-07-07 Joel Brobecker <brobecker@gnat.com>
3306
3307 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3308
5bbcb741
JB
33092003-07-07 Joel Brobecker <brobecker@gnat.com>
3310
3311 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3312 (mips_register_byte): Likewise.
3313
c139e7d9
DJ
33142003-07-07 Daniel Jacobowitz <drow@mvista.com>
3315
3316 * Makefile.in (sparc_tdep_h): New.
3317 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3318 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3319 * sparc-linux-nat.c: Include "sparc-tdep.h".
3320 * sparc-nat.c: Likewise.
3321 * sparc-tdep.c: Likewise.
3322 * sparc64nbsd-nat.c: Likewise.
3323 * sparcnbsd-nat.c: Likewise.
3324 * sparcnbsd-tdep.c: Likewise.
3325 * sparc-tdep.h: New file.
3326 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3327 and sparc_npc_regnum.
3328
fd8f87c5
DJ
33292003-07-07 Daniel Jacobowitz <drow@mvista.com>
3330
3331 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3332 (mips_linux_cannot_store_register): List supported instead of
3333 unsupported registers.
3334
13adf674
DJ
33352003-07-07 Daniel Jacobowitz <drow@mvista.com>
3336
3337 * disasm.c (dump_insns): Separate instructions from addresses.
3338
8de307e0
AS
33392003-07-07 Andreas Schwab <schwab@suse.de>
3340
3341 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3342 dependencies.
3343 * m68k-tdep.c (NUM_FREGS): Delete.
3344 (SIG_PC_FP_OFFSET): Delete.
3345 (TARGET_M68K): Delete.
3346 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3347 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3348 P_MOVEL_SP, P_MOVEML_SP): Define.
3349 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3350 P_TRAP): Delete.
3351 (m68k_register_raw_size): Delete.
3352 (m68k_register_virtual_size): Delete.
3353 (m68k_register_type): Renamed from m68k_register_virtual_type and
3354 add gdbarch argument.
3355 (m68k_store_struct_return): Delete.
3356 (m68k_deprecated_extract_return_value): Delete.
3357 (m68k_deprecated_extract_struct_value_address): Delete.
3358 (m68k_frame_chain): Delete.
3359 (m68k_frame_saved_pc): Delete.
3360 (m68k_fix_call_dummy): Delete.
3361 (m68k_push_dummy_frame): Delete.
3362 (m68k_pop_frame): Delete.
3363 (m68k_extract_return_value): New function.
3364 (m68k_store_return_value): Rewrite using regcache.
3365 (m68k_extract_struct_value_address): Rewrite using regcache.
3366 (m68k_push_dummy_call): New function.
3367 (struct m68k_frame_cache): Define.
3368 (m68k_alloc_frame_cache): New function.
3369 (m68k_analyze_frame_setup): New function.
3370 (m68k_analyze_register_saves): New function.
3371 (m68k_analyze_prologue): New function.
3372 (m68k_skip_prologue): Rewrite using above functions.
3373 (m68k_unwind_pc): New function.
3374 (m68k_frame_cache): New function.
3375 (m68k_frame_this_id): New function.
3376 (m68k_frame_prev_register): New function.
3377 (m68k_frame_unwind): New variable.
3378 (m68k_frame_p): New function.
3379 (m68k_sigtramp_frame_cache): New function.
3380 (m68k_sigtramp_frame_this_id): New function.
3381 (m68k_sigtramp_frame_prev_register): New function.
3382 (m68k_sigtramp_frame_unwind): New variable.
3383 (m68k_sigtramp_frame_p): New function.
3384 (m68k_frame_base_address): New function.
3385 (m68k_frame_base): New function.
3386 (m68k_unwind_dummy_id): New function.
3387 (fill_gregset): Use regcache_collect.
3388 (fill_fpregset): Likewise.
3389 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3390 defined.
3391 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3392 deprecated_init_frame_pc, deprecated_store_struct_return,
3393 deprecated_extract_return_value, deprecated_store_return_value,
3394 deprecated_frame_chain, deprecated_frame_saved_pc,
3395 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3396 deprecated_register_virtual_size,
3397 deprecated_max_register_raw_size,
3398 deprecated_max_register_virtual_size,
3399 deprecated_register_virtual_type, deprecated_register_size,
3400 deprecated_register_byte, deprecated_register_bytes,
3401 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3402 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3403 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3404 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3405 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3406 deprecated_push_dummy_frame, deprecated_pop_frame,
3407 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3408 only if SYSCALL_TRAP is defined. Set extract_return_value,
3409 store_return_value, extract_struct_value_address, register_type,
3410 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3411 predicates.
3412 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3413 M68K_MAX_REGISTER_SIZE): Define.
3414 (struct m68k_sigtramp_info): Define.
3415 (struct gdbarch_tdep): Add get_sigtramp_info.
3416 * m68klinux-nat.c (fetch_register): Use register_size instead of
3417 REGISTER_RAW_SIZE. Don't put assignment in if.
3418 (store_register): Likewise.
3419 (fetch_inferior_registers): Likewise.
3420 (store_inferior_registers): Likewise.
3421 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3422 (m68k_linux_frame_saved_pc): Delete.
3423 (m68k_linux_sigcontext_reg_offset,
3424 m68k_linux_ucontext_reg_offset): Define.
3425 (m68k_linux_get_sigtramp_info): New function.
3426 (m68k_linux_extract_return_value): Rewrite using regcache.
3427 (m68k_linux_store_return_value): Likewise.
3428 (m68k_linux_extract_struct_value_address): Likewise.
3429 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3430 Don't set deprecated_frame_saved_pc,
3431 deprecated_extract_return_value, deprecated_store_return_value,
3432 deprecated_extract_struct_value_address. Set
3433 extract_return_value, store_return_value,
3434 extract_struct_value_address.
3435
eb8bc282
AC
34362003-07-07 Andrew Cagney <cagney@redhat.com>
3437
3438 * expprint.c: Include "user-regs.h" instead of "frame.h".
3439 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3440 frame_map_regnum_to_name.
3441 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3442 (frame_map_name_to_regnum): Simplify, call
3443 user_reg_map_name_to_regnum.
3444 (frame_map_regnum_to_name): Simplify, call
3445 user_reg_map_regnum_to_name.
3446 (frame_register_unwind): Update.
3447 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3448 (_initialize_frame_reg): Call user_reg_add_builtin.
3449 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3450 (value_of_register): Use value_of_user_reg.
3451 * eval.c (evaluate_subexp_standard): Update.
3452 * parse.c (write_dollar_variable): Update.
3453 * d10v-tdep.c (d10v_print_registers_info): Update.
3454 * infcmd.c (registers_info): Update.
3455 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3456 (builtin_regs_h): Delete macro.
3457 (user_regs_h): Define.
3458 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3459 (builtin-regs.o): Delete target.
3460 (user-regs.o): Specify dependencies.
3461 (expprint.o): Update dependencies.
3462 (findvar.o): Update dependencies.
3463 (frame.o): Update dependencies.
3464 (std-regs.o): Update dependencies.
3465
9f476a01
CF
34662003-07-06 Christopher Faylor <cgf@redhat.com>
3467
3468 * win32-nat.c (solib_symbols_add): Use one variable for all section
3469 address stuff. Pass variable rather than address of variable to
3470 safe_symbol_file_add.
3471
a731b831
AS
34722003-07-06 Andreas Schwab <schwab@suse.de>
3473
3474 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3475
9f83329d
JB
34762003-07-04 Joel Brobecker <brobecker@gnat.com>
3477
3478 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3479
27e28cc5
KW
34802003-07-04 Kris Warkentin <kewarken@qnx.com>
3481
3482 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3483
34842003-07-04 Kris Warkentin <kewarken@qnx.com>
3485
3486 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3487 * config/i386/nto.mh: New file.
3488 * config/i386/nm-nto.h: New file.
3489 * configure.host: Add i[3456]86-*-nto*.
3490
100f2e98
JB
34912003-07-03 Joel Brobecker <brobecker@gnat.com>
3492
3493 * remote-vx.c (vx_add_symbols): Fix compilation error.
3494
e23457df
AC
34952003-07-03 Andrew Cagney <cagney@redhat.com>
3496
3497 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3498 * gdbarch.h, gdbarch.c: Re-generate.
3499 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3500 (legacy_register_name): Declare.
3501 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3502 (REGISTER_NAME): Define.
3503 * sparc-tdep.c (legacy_register_name): New function.
3504 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3505 (REGISTER_NAME): Define.
3506 (hppa64_register_name): Declare.
3507 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3508 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3509 (hppa64_register_name): New function.
3510 (hppa_register_name): New function.
3511 * arch-utils.c (legacy_register_name): Delete.
3512 * arch-utils.h (legacy_register_name): Delete.
3513
38caaeec
DJ
35142003-07-03 Daniel Jacobowitz <drow@mvista.com>
3515
3516 * cli/cli-interp.c (cli_interpreter_resume): Update the
3517 cli_uiout's stream to gdb_stdout.
3518
dadd712e
AC
35192003-07-03 Andrew Cagney <cagney@redhat.com>
3520
3521 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3522 predicate.
3523 * gdbarch.h, gdbarch.c: Re-generate.
3524 * regcache.c (init_regcache_descr): Use legacy code when either
3525 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3526
c7f1390e
DJ
35272003-07-02 Daniel Jacobowitz <drow@mvista.com>
3528
3529 * NEWS: Move "set logging" entry into GDB 6.0 section.
3530
4bc8c588
JB
35312003-07-02 Jim Blandy <jimb@redhat.com>
3532
a9dd42f1
JB
3533 * s390-tdep.c (struct frame_extra_info): new member:
3534 'stack_bought_valid'.
3535 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3536 initialize fextra_info->stack_bought.
3537 (s390_frameless_function_invocation): Don't trust the value of
3538 fextra_info_ptr->stack_bought unless
3539 fextra_info->stack_bought_valid is set.
3540
4bc8c588
JB
3541 New S390 prologue analyzer.
3542 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3543 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3544 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3545 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3546 compute_x_addr, s390_on_stack, s390_store,
3547 s390_get_signal_frame_info): New functions.
3548 (S390_NUM_SPILL_SLOTS): New macro.
3549 (s390_get_frame_info): Rewritten.
3550 (is_arg_reg): Deleted.
3551
3552 Break out the decoding of S/390 instructions into separate
3553 functions, to make it more legible, and easier to check
3554 against the spec.
3555 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3556 is_rx, is_rxe): New functions.
3557 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3558 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3559 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3560 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3561 enums for opcode values. (Is this an improvement?)
3562
fd13a04a
AC
35632003-07-02 Andrew Cagney <cagney@redhat.com>
3564
3565 * i386-tdep.c: Revert change committed as part of trad-frame code
3566 below.
3567
3f8091c1
DJ
35682003-07-02 Daniel Jacobowitz <drow@mvista.com>
3569
3570 * breakpoint.c (insert_catchpoint): Make static.
3571
8dd5115e
AS
35722003-07-02 Andreas Schwab <schwab@suse.de>
3573
3574 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3575 former ia64_push_arguments and ia64_push_return_address, and use
3576 regcache functions instead of read/write_register.
3577 (ia64_gdbarch_init): Set push_dummy_call instead of
3578 deprecated_push_arguments and deprecated_push_return_address.
3579
a2229c23
AJ
35802003-07-01 Andreas Jaeger <aj@suse.de>
3581
3582 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3583 before the call.
3584 Set %rax only to number of SSE registers used.
3585
3b3850e8
AC
35862003-07-01 Andrew Cagney <cagney@redhat.com>
3587
3588 * trad-frame.h: Update comments, a -1 .addr is reserved.
3589 (trad_frame_value_p, trad_frame_addr_p): Declare.
3590 (trad_frame_reg_p): Declare.
3591 (trad_frame_set_value): Rename trad_frame_register_value.
3592 (trad_frame_set_unknown): Declare.
3593 * trad-frame.c (trad_frame_realreg_p): New function.
3594 (trad_frame_addr_p, trad_frame_value_p): New function.
3595 (trad_frame_set_unknown): New function.
3596 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3597 (trad_frame_prev_register): Use trad_frame_realreg_p,
3598 trad_frame_addr_p and trad_frame_value_p.
3599 (trad_frame_set_value): Rename trad_frame_register_value.
3600 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3601 and trad_frame_set_value.
a2229c23 3602
4d819d0e
JB
36032003-06-30 Jim Blandy <jimb@redhat.com>
3604
3605 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3606 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3607 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3608 for 16 registers, and then 32 more bytes.
3609 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3610 New macros.
3611 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3612 Move up in the file, since it's now used by is_simple_arg.
3613 (is_simple_arg): Don't assume registers are four bytes long.
3614 Exclude all double arguments. Extended floats are not simple
3615 args.
3616 (is_power_of_two): New function.
3617 (pass_by_copy_ref): Call is_power_of_two, and check that the
3618 length fits in a register, rather than listing all the acceptable
3619 sizes. Extended floats are not passed by reference.
3620 (s390_push_arguments): Don't assume registers are four bytes long.
3621 Reserve an argument register to point to the buffer for structures
3622 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3623 S390_STACK_FRAME_OVERHEAD.
3624
1ad828f1
AS
36252003-06-30 Andreas Schwab <schwab@suse.de>
3626
3627 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3628 format error message.
3629
39b00981
JB
36302003-06-30 Joel Brobecker <brobecker@gnat.com>
3631
3632 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3633
b2a7f303
DC
36342003-06-30 David Carlton <carlton@kealia.com>
3635
3636 Band-aid for PR c++/1245.
3637 * Makefile.in (cp-support.o): Depend on complaints_h.
3638 * cp-support.c: Include complaints.h. Add declaration for
3639 find_last_component.
3640 (cp_find_first_component): Separate code into
3641 cp_find_first_component_aux.
3642 (cp_find_first_component_aux): Call demangled_name_complaint.
3643 (demangled_name_complaint): New.
3644
a257b5bb
AC
36452003-06-30 Andrew Cagney <cagney@redhat.com>
3646
3647 * remote.c (remote_write_bytes): Explicitly compute and then use
3648 the payload size. Update comments to reflect. Fixes problem of
3649 GDB not sending small packets as found by Fred Fish.
3650
0a2cfde4
AC
36512003-06-30 Andrew Cagney <cagney@redhat.com>
3652
3653 * remote.c (remote_async_wait): Fix -Wformat problem.
3654
3fcb8548
AC
36552003-06-29 Andrew Cagney <cagney@redhat.com>
3656
3657 * remote.c (remote_wait): Call error, and not warning, when the
3658 packet is corrupt.
3659 (remote_async_wait): Ditto.
3660
9f9970a3
DJ
36612003-06-29 Daniel Jacobowitz <drow@mvista.com>
3662
3663 * sparc-tdep.c (sparc_y_regnum): Make external again.
3664
83a8ccca
DJ
36652003-06-29 Daniel Jacobowitz <drow@mvista.com>
3666
3667 * cli/cli-logging.c (pop_output_files): Add void to function
3668 definition.
3669
d2cf594a
AC
36702003-06-29 Andrew Cagney <cagney@redhat.com>
3671
3672 * frame.c (frame_register_unwind): Use unsigned char when dumping
3673 the buffer contents.
3674
0fac0b41
DJ
36752003-06-28 Daniel Jacobowitz <drow@mvista.com>
3676
3677 * cli/cli-logging.c: New file.
3678 * cli-out.c (struct ui_out_data): Add original_stream.
3679 (cli_redirect): New function.
3680 (cli_ui_out_impl): Add cli_redirect.
3681 (cli_out_new): Initialize original_stream.
3682 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3683 (uo_redirect, ui_out_redirect): New.
3684 * ui-out.h (struct ui_out_impl): Add redirect member.
3685 (redirect_ftype): New.
3686 (ui_out_redirect): Add prototype.
3687 * Makefile.in: Add rules for cli-logging.c.
3688 * NEWS: Mention "set logging".
3689
88a07d7c
EZ
36902003-06-27 Elena Zannoni <ezannoni@redhat.com>
3691
3692 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3693
4eb58876
AC
36942003-06-27 Andrew Cagney <cagney@redhat.com>
3695
3696 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3697 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3698 * avr-tdep.c (avr_call_dummy_address): Delete function.
3699 (avr_gdbarch_init): Do not set call_dummy_address.
3700
1549f619
EZ
37012003-06-27 Elena Zannoni <ezannoni@redhat.com>
3702
3703 * symfile.c (syms_from_objfile): Move variables to inner block.
3704 Move the checks for the non-mainline case a bit earlier to avoid
3705 doing some useless computations.
3706
3cb3398d
EZ
37072003-06-27 Elena Zannoni <ezannoni@redhat.com>
3708
3709 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3710
3799ccc6
EZ
37112003-06-26 Elena Zannoni <ezannoni@redhat.com>
3712
3713 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3714 sections.
3715
ce1f6491
MC
37162003-06-26 Michael Chastain <mec@shout.net>
3717
3718 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3719 gdb/testsuite/gdb.c++/pr-1210.exp.
3720
d958dfd0
AC
37212003-06-26 Andrew Cagney <cagney@redhat.com>
3722
3723 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3724 altivec_expression.h and altivec_registers.h.
3725
d31431ed
AC
37262003-06-26 Andrew Cagney <cagney@redhat.com>
3727
3728 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3729 info->mach when MIPS16. Patch suggested by Fred Fish.
3730
714b1282
AC
37312003-06-26 Andrew Cagney <cagney@redhat.com>
3732
3733 * utils.c (internal_vproblem): Print the problem to a reason
3734 buffer and then pass to query. Make the msg variable more local.
3735
42efa47a
AC
37362003-06-26 Andrew Cagney <cagney@redhat.com>
3737
3738 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3739 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3740 * gdbarch.h, gdbarch.c: Re-generate.
3741 * frame-base.c (default_frame_args_address): Update. Use
3742 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3743 not available.
3744 (default_frame_locals_address): Ditto for
3745 DEPRECATED_FRAME_LOCALS_ADDRESS.
3746 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3747 (vax_frame_num_args): Update.
3748 (vax_gdbarch_init): Update.
3749 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3750 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3751 * mcore-tdep.c (mcore_gdbarch_init): Update.
3752 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3753 * ia64-tdep.c (ia64_gdbarch_init): Update.
3754 * symtab.h (address_class): Update comments.
3755 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3756 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3757 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3758 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3759 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3760 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3761 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3762 * alpha-mdebug-tdep.c: Update.
3763 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3764
8ffd9b1b
AJ
37652003-06-26 Andreas Jaeger <aj@suse.de>
3766
3767 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3768 of SSE registers so that varargs functions work. Rework handling
3769 of passing arguments on the stack.
3770 (x86_64_store_return_value): Return double and float values in SSE
3771 register.
3772
e8ac10a6
MC
37732003-06-24 Michael Chastain <mec@shout.net>
3774
3775 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3776 the "constructor breakpoints ignored" bug.
3777
986af8e6
DC
37782003-06-25 David Carlton <carlton@kealia.com>
3779
3780 * MAINTAINERS: Update e-mail address.
3781
d64558a5
JB
37822003-06-24 Jim Blandy <jimb@redhat.com>
3783
e538d2d7
JB
3784 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3785
02631ec0
JB
3786 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3787 function.
3788 (ppc_linux_init_abi): Register it as the
3789 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3790
e716d87a
JB
3791 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3792 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3793 method.
3794
d64558a5
JB
3795 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3796 (ppc64_standard_linkage_target): Use it.
3797
449a5da4
AC
37982003-06-23 Andrew Cagney <cagney@redhat.com>
3799
3800 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3801 for 0 "int0" and 4 "int32" sized registers.
3802 * gdbtypes.c (builtin_type_int0): Define.
3803 (build_gdbtypes): Initialize builtin_type_int0.
3804 * gdbtypes.h (builtin_type_int0): Declare.
3805
b2a02dda
SC
38062003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3807
3808 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3809 as characters are unsigned.
3810
fba3138e
DJ
38112003-06-22 Daniel Jacobowitz <drow@mvista.com>
3812
3813 PR gdb/1179
3814 * dwarfread.c (struct_type): Skip static fields without crashing.
3815
f6c8180b
AC
38162003-06-22 Andrew Cagney <cagney@redhat.com>
3817
3818 GDB 6.0 branch created.
f2c06f52
AC
3819 * README: Update.
3820 * PROBLEMS: Update. Empty.
3821 * NEWS: Update.
f6c8180b 3822
ae822768
DJ
38232003-06-22 Daniel Jacobowitz <drow@mvista.com>
3824
3825 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3826 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3827
261de166
AC
38282003-06-22 Andrew Cagney <cagney@redhat.com>
3829
3830 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3831 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3832 Velikov.
3833
30e94205
DJ
38342003-06-22 Daniel Jacobowitz <drow@mvista.com>
3835
3836 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3837 compilers.
3838
9e14d721
DJ
38392003-06-21 Daniel Jacobowitz <drow@mvista.com>
3840
3841 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3842 argument of val_print.
3843 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3844 to the address argument of baseclass_offset or target_read_memory.
3845 Do add it to the argument of cp_print_value_fields.
3846
a4b8ebc8
AC
38472003-06-21 Andrew Cagney <cagney@redhat.com>
3848
3849 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3850 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3851 instead of 0..NUM_REGS.
3852 (mips_register_reggroup_p): New function.
3853 (mips_pseudo_register_write): New function.
3854 (mips_pseudo_register_read): New function.
3855 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3856 based on the register's type.
3857 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3858 cooked.
3859 (mips_get_saved_register): Simplify. Assert that REGNO is a
3860 pseudo / cooked.
3861 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3862 (mips_register_type): Replace mips_register_virtual_type. Map
3863 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3864 when available.
3865 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3866 that the register is cooked / virtual.
3867 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3868 Only get the extra info when needed.
3869 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3870 (mips32_heuristic_proc_desc): Fetch the cooked register.
3871 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3872 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3873 (mips_print_register): Use gdbarch_register_type, instead of
3874 REGISTER_VIRTUAL_TYPE.
3875 (print_gp_register_row): Use gdbarch_register_type, instead of
3876 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3877 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3878 Print the pseudo / cooked registers.
3879 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3880 Print the pseudo / cooked registers.
3881 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3882 REG_NUM is pseudo / cooked.
3883 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3884 (mips_n32n64_xfer_return_value): Ditto.
3885 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3886 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3887 (mips_register_sim_regno): New function.
3888 (mips_gdbarch_init): Set deprecated_register_byte,
3889 register_group_p, pseudo_register_write, pseudo_register_read,
3890 register_sim_regno, and num_pseudo_regs. Set register_type,
3891 instead of register_virtual_type.
3892 * Makefile.in (mips-tdep.o): Update dependencies.
3893 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3894 REGISTER_VIRTUAL_TYPE.
3895 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3896 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3897 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3898 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3899 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3900
325ed089
DJ
39012003-06-21 Daniel Jacobowitz <drow@mvista.com>
3902
3903 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3904 * cli/cli-cmds.c: Include "gdb_vfork.h".
3905 (shell_escape): Use vfork.
3906
f0e7d0e8
AC
39072003-06-21 Andrew Cagney <cagney@redhat.com>
3908
c57bb9fa
AC
3909 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3910 32 bit floating-point register saves.
3911
6e51443a
AC
3912 * frame.h (deprecated_unwind_get_saved_register): Delete.
3913 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3914 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3915 and deprecated_get_next_frame_hack instead of
3916 deprecated_unwind_get_saved_register.
3917
ed183c7c
AC
3918 * mips-tdep.c (mips_dump_tdep): Do not print
3919 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3920
f0e7d0e8
AC
3921 * frame.c (get_frame_register): New function.
3922 (frame_unwind_register_signed): New function.
3923 (get_frame_register_signed): New function.
3924 (frame_unwind_register_unsigned): New function.
3925 (get_frame_register_unsigned): New function.
3926 * frame.h: Add comments on naming schema.
3927 (get_frame_register, frame_unwind_register_signed): Declare.
3928 (get_frame_register_signed, get_frame_register_signed): Declare.
3929 (frame_unwind_register_unsigned): Declare.
3930 (get_frame_register_unsigned): Declare.
3931
2224d941
TR
39322003-06-20 Theodore A. Roth <troth@openavr.org>
3933
3934 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3935
8619218d
TR
39362003-06-20 Theodore A. Roth <troth@openavr.org>
3937
3938 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3939 (avr_read_sp): Ditto.
3940
0b1b50c0
DJ
39412003-06-20 Daniel Jacobowitz <drow@mvista.com>
3942
3943 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3944 * config/arm/nm-linux.h: Likewise.
3945 * config/arm/tm-linux.h: Likewise.
3946 * config/ia64/nm-linux.h: Likewise.
3947 * config/ia64/tm-ia64.h: Likewise.
3948 * config/s390/tm-linux.h: Likewise.
3949 * config/s390/tm-s390.h: Likewise.
3950 * s390-nat.c: Likewise.
3951 * s390-tdep.c: Likewise.
3952
3953 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3954 * config/ia64/linux.mt: Likewise.
3955 * config/m68k/linux.mh: Likewise.
3956 * config/mips/linux.mt: Likewise.
3957 * config/powerpc/linux.mh: Likewise.
3958 * config/sh/linux.mt: Likewise.
3959
c8c18e65
KW
39602003-06-19 Kris Warkentin <kewarken@qnx.com>
3961
3962 * solib.c (solib_open): Change tests for whether to search
3963 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3964 comments.
3965
dcccef2e
TR
39662003-06-19 Theodore A. Roth <troth@openavr.org>
3967
3968 * avr-tdep.c (avr_frame_address): Delete function.
3969 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3970 set_gdbarch_frame_args_address.
3971
5861a190
AC
39722003-06-19 Andrew Cagney <cagney@redhat.com>
3973
3974 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3975 (REGISTER_CONVERT_FROM_TYPE): Delete.
3976 (mips_register_convert_to_type): Delete declaration.
3977 (mips_register_convert_from_type): Delete declaration.
3978 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3979 kernel/.
3980
0274a8ce
MS
39812003-06-19 Michael Snyder <msnyder@redhat.com>
3982
3983 * linux-nat.h: New file.
3984 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 3985 * lin-lwp.c: Include linux-nat.h.
0274a8ce 3986 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 3987 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
3988 (linux_make_note_section): Iterate over lwps instead of threads.
3989 (linux_do_thread_registers): Use lwp instead of merged pid.
3990 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 3991 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
3992 Add dependency on linux_nat_h.
3993
adf5f719
TR
39942003-06-19 Theodore A. Roth <troth@openavr.org>
3995
3996 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3997
6766a268
DJ
39982003-06-19 Daniel Jacobowitz <drow@mvista.com>
3999
4000 * varobj.c (get_type, get_target_type): Use check_typedef.
4001
1171114a
DJ
40022003-06-19 Daniel Jacobowitz <drow@mvista.com>
4003
4004 * breakpoint.c (insert_catchpoint): Call internal_error.
4005
adcf68a2
TR
40062003-06-19 Theodore A. Roth <troth@openavr.org>
4007
4008 * avr-tdep.c (avr_push_dummy_code): Delete function.
4009 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4010
ea67f13b
DJ
40112003-06-19 Daniel Jacobowitz <drow@mvista.com>
4012
4013 * arch-utils.c (default_prepare_to_proceed): Remove.
4014 (generic_prepare_to_proceed): Remove.
4015 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4016 (generic_prepare_to_proceed): Remove prototype.
4017 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4018 * gdbarch.c: Regenerate.
4019 * gdbarch.h: Regenerate.
4020 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4021 * hppah-nat.c (hppa_switched_threads): Remove.
4022 * infrun.c (prepare_to_proceed): New static function, copied from
4023 generic_prepare_to_proceed. Remove select_it argument.
4024 (proceed): Call prepare_to_proceed.
4025 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4026 variables.
4027 (ptrace_wait): Don't set the removed variables.
4028 (hppa_switched_threads): Remove.
4029 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4030 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4031 (lin_lwp_prepare_to_proceed): Remove prototype.
4032 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4033 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4034
4add8633
TR
40352003-06-18 Theodore A. Roth <troth@openavr.org>
4036
4037 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4038 trad-frame.h.
4039 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4040 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4041 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4042 (AVR_PROLOGUE_*): Enumerate prologue types.
4043 (struct frame_extra_info): Remove.
4044 (struct avr_unwind_cache): Define.
4045 (avr_write_sp): Delete function.
4046 (avr_read_fp): Ditto.
4047 (avr_init_extra_frame_info): Ditto.
4048 (avr_pop_frame): Ditto.
4049 (avr_frame_saved_pc): Ditto.
4050 (avr_saved_pc_after_call): Ditto.
4051 (avr_push_return_address): Ditto.
4052 (avr_frame_chain): Ditto.
4053 (avr_store_struct_return): Ditto.
4054 (avr_push_arguments): Ditto.
4055 (avr_scan_prologue): Update comments. Changed to set up the info for
4056 cache unwinding. Now returns end of prologue PC.
4057 (avr_skip_prologue): Better handling of functions lacking a prologue
4058 by using avr_scan_prologue.
4059 (avr_scan_arg_moves): New function.
4060 (avr_saved_regs_unwinder): Ditto.
4061 (avr_frame_unwind_cache): Ditto.
4062 (avr_unwind_pc): Ditto.
4063 (avr_frame_this_id): Ditto.
4064 (avr_frame_prev_register): Ditto.
4065 (avr_frame_p): Ditto.
4066 (avr_frame_base_address ): Ditto.
4067 (avr_unwind_dummy_id): Ditto.
4068 (avr_push_dummy_code): Ditto.
4069 (push_stack_item): Ditto.
4070 (pop_stack_item): Ditto.
4071 (avr_push_dummy_call): Ditto.
4072 (struct stack_item): Define.
4073 (avr_frame_unwind): Declare structure.
4074 (avr_frame_base): Ditto.
4075 (avr_gdbarch_init): Remove calls to
4076 set_gdbarch_deprecated_init_frame_pc,
4077 set_gdbarch_deprecated_target_read_fp,
4078 set_gdbarch_deprecated_dummy_write_sp,
4079 set_gdbarch_deprecated_fp_regnum,
4080 set_gdbarch_deprecated_push_arguments,
4081 set_gdbarch_deprecated_push_return_address,
4082 set_gdbarch_deprecated_pop_frame,
4083 set_gdbarch_deprecated_store_struct_return,
4084 set_gdbarch_deprecated_frame_init_saved_regs,
4085 set_gdbarch_deprecated_init_extra_frame_info,
4086 set_gdbarch_deprecated_frame_chain,
4087 set_gdbarch_deprecated_frame_saved_pc,
4088 set_gdbarch_deprecated_saved_pc_after_call.
4089 Add calls to set_gdbarch_push_dummy_call,
4090 set_gdbarch_push_dummy_code,
4091 frame_unwind_append_predicate,
4092 frame_base_set_default,
4093 set_gdbarch_unwind_dummy_id,
4094 set_gdbarch_unwind_pc.
4095 Wrap a long line.
4096
7be04a68
MS
40972003-06-18 Corinna Vinschen <vinschen@redhat.com>
4098
4099 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4100 registers for H8/300S.
4101 (h8300_print_registers_info): Ditto.
8ffd9b1b 4102 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4103
ae087d01
DJ
41042003-06-18 Daniel Jacobowitz <drow@mvista.com>
4105
4106 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4107 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4108 (lin_lwp_wait): Likewise. Update comments.
4109 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4110 (pull_pid_from_list, linux_record_stopped_pid): New.
4111
07d8f827
SC
41122003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4113
4114 * ada-lang.c (scan_discrim_bound): Name first argument.
4115 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4116 declared by ALL_BLOCK_SYMBOLS.
4117
7cb47b14
SC
41182003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4119
4120 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4121 ("regcache.h"): Include it.
4122 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4123
6ad8ae5c
DJ
41242003-06-17 Daniel Jacobowitz <drow@mvista.com>
4125
4126 * NEWS: Mention gdbserver detach change and "disconnect" command.
4127 * infcmd.c (disconnect_command): New function.
4128 (_initialize_infcmd): Add ``disconnect'' command.
4129 * remote.c (remote_async_detach): Delete.
4130 (remote_detach): Merge remote_async_detach.
4131 (remote_disconnect): New.
4132 (init_remote_ops): Set to_disconnect.
4133 (init_remote_cisco_ops): Likewise.
4134 (init_remote_async_ops): Likewise. Use remote_detach.
4135 * target.c (cleanup_target): Default to_disconnect.
4136 (update_current_target): Inherit to_disconnect.
4137 (target_disconnect, debug_to_disconnect): New functions.
4138 (setup_target_debug): Set to_disconnect.
4139 * target.h (struct target_ops): Add to_disconnect.
4140 (target_disconnect): Add prototype.
4141
687595f9
DJ
41422003-06-17 Daniel Jacobowitz <drow@mvista.com>
4143
4144 * breakpoint.c (insert_catchpoint): New function.
4145 (insert_breakpoints): Use catch_exceptions to call
4146 insert_catchpoint. Disable catchpoints if they fail to insert.
4147
29239a8f
DJ
41482003-06-17 Daniel Jacobowitz <drow@mvista.com>
4149
4150 * symfile.c (reread_symbols): Clear sym_private.
4151
2cdf3c63
AC
41522003-06-17 Andrew Cagney <cagney@redhat.com>
4153
4154 * trad-frame.h (struct frame_info): Add opaque declaration.
4155 * remote-fileio.h (struct cmd_list_element): Add opaque
4156 declaration.
4157 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4158 comments.
4159
cf0e1e0d
DJ
41602003-06-17 Daniel Jacobowitz <drow@mvista.com>
4161
4162 * remote.c (remote_prepare_to_store): Replace call to
4163 deprecated_read_register_bytes with multiple regcache_raw_read
4164 calls.
4165
192cdb19
KW
41662003-06-17 Kris Warkentin <kewarken@qnx.com>
4167
4168 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4169 (nto_find_and_open_solib): Likewise.
4170 (nto_init_solib_absolute_prefix): Likewise.
4171 (_initialize_nto_tdep): Fix indentation.
4172
89929b45
KW
41732003-06-17 Kris Warkentin <kewarken@qnx.com>
4174
4175 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4176
46019f27
KW
41772003-06-17 Kris Warkentin <kewarken@qnx.com>
4178
4179 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4180
1a38736e
JB
41812003-06-17 Jim Blandy <jimb@redhat.com>
4182
4183 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4184
3605c34a
TR
41852003-06-16 Theodore A. Roth <troth@openavr.org>
4186
4187 * avr-tdep.c (avr_extract_return_value): New function.
4188 (avr_gdbarch_init): Set extract_return_value method.
4189
870b3035
AC
41902003-06-16 Andrew Cagney <cagney@redhat.com>
4191
4192 * frame.h (deprecated_get_next_frame_hack): Declare.
4193 * frame.c (legacy_saved_regs_prev_register): Only require
4194 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4195 there are always saved regs.
4196 (deprecated_generic_get_saved_register): Do not require
4197 DEPRECATED_FRAME_INIT_SAVED_REGS.
4198 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4199 use frame ID unwind instead.
4200 (deprecated_get_next_frame_hack): New function.
4201
63d47a7d
CV
42022003-06-16 Corinna Vinschen <vinschen@redhat.com>
4203
4204 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4205 (h8300_push_dummy_call): ...this function. Some minor optimization.
4206 (h8300_push_return_address): Remove.
4207 (h8300_gdbarch_init): Remove calls to
4208 set_gdbarch_deprecated_dummy_write_sp,
4209 set_gdbarch_deprecated_push_arguments and
4210 set_gdbarch_deprecated_push_return_address.
4211 Add call to set_gdbarch_push_dummy_call.
4212
4bb1dc5e
CV
42132003-06-16 Corinna Vinschen <vinschen@redhat.com>
4214
4215 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4216 (E_PSEUDO_EXR_REGNUM): Ditto.
4217 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4218 registers into safe registers.
4bb1dc5e
CV
4219 (h8300_skip_prologue): Check for stm instruction to push registers
4220 used for register variables onto stack.
4221 (gdb_print_insn_h8300): Remove.
4222 (h8300_examine_prologue): Add a comment.
4223 (h8300_register_name): Take pseudo registers into account.
4224 (h8300s_register_name): Ditto.
4225 (h8300sx_register_name): Ditto.
4226 (h8300_print_register): Ditto.
4227 (h8300_print_registers_info): Define "nice" printing order.
4228 (h8300_saved_pc_after_call): Take pseudo registers into account.
4229 (h8300_register_type): Ditto. Return type used for remote connection
4230 when requesting real CCR or EXR register, return actual type when
4231 requesting pseudo CCR or EXR.
4232 (h8300_pseudo_register_read): New function.
4233 (h8300_pseudo_register_write): Ditto.
4234 (h8300_dbg_reg_to_regnum): Ditto.
4235 (h8300s_dbg_reg_to_regnum): Ditto.
4236 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4237 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4238 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4239 set_gdbarch_print_insn architecture dependent.
4240 Call set_gdbarch_pseudo_register_read and
4241 set_gdbarch_pseudo_register_write.
4242 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4243
a59fe496
AC
42442003-06-16 Andrew Cagney <cagney@redhat.com>
4245
4246 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4247 * gdbarch.h, gdbarch.c: Re-generate.
4248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4249 * s390-tdep.c (s390_gdbarch_init): Update.
4250 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4251 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4252 * mips-tdep.c (mips_gdbarch_init): Update.
4253 * mcore-tdep.c (mcore_gdbarch_init): Update.
4254 * cris-tdep.c (cris_gdbarch_init): Update.
4255 * infcall.c (call_function_by_hand): Update.
4256 * ia64-tdep.c (ia64_push_arguments): Update comment.
4257 * frame.c (legacy_get_prev_frame): Do not assume
4258 SAVE_DUMMY_FRAME_TOS_P.
4259 * dummy-frame.c (find_dummy_frame): Update comment.
4260
6f4e5a41
AC
42612003-06-16 Andrew Cagney <cagney@redhat.com>
4262
4263 * regcache.c (do_cooked_read): Do not use register_valid_p.
4264
72fab697
TR
42652003-06-15 Theodore A. Roth <troth@openavr.org>
4266
4267 * avr-tdep.c (avr_register_type): Remove a blank line.
4268 (avr_scan_prologue): Correct some comments.
4269
e3d8b004
TR
42702003-06-15 Theodore A. Roth <troth@openavr.org>
4271
4272 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4273 prologue types.
8ffd9b1b 4274 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4275 option.
4276 Add code to scan -mcall-prologues for mega devices.
4277
866b76ea
TR
42782003-06-15 Theodore A. Roth <troth@openavr.org>
4279
4280 * avr-tdep.c (avr_register_byte): Delete function.
4281 (avr_register_raw_size): Delete function.
4282 (avr_register_virtual_size): Delete function.
4283 (avr_register_virtual_type): Delete function.
4284 (avr_register_type): New function.
4285 (avr_address_to_pointer): Remove unused code.
4286 (avr_read_fp): Need to read FP as two separate bytes due to change to
4287 avr_register_type() usage.
4288 (avr_gdbarch_init): Don't set deprecated_register_size.
4289 Don't set deprecated_register_bytes.
4290 Don't set deprecated_register_byte.
4291 Don't set deprecated_register_raw_size.
4292 Don't set deprecated_max_register_raw_size.
4293 Don't set deprecated_register_virtual_size.
4294 Don't set deprecated_max_register_virtual_size.
4295 Don't set deprecated_register_virtual_type.
4296 Set register_type method.
4297
3993f6b1
DJ
42982003-06-15 Daniel Jacobowitz <drow@mvista.com>
4299
4300 * Makefile.in (linux-nat.o): Add rule.
4301 * linux-nat.c: New file.
4302 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4303 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4304 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4305 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4306 * config/arm/linux.mh (NATDEPFILES): Likewise.
4307 * config/i386/linux.mh (NATDEPFILES): Likewise.
4308 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4309 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4310 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4311 * config/mips/linux.mh (NATDEPFILES): Likewise.
4312 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4313 * config/s390/s390.mh (NATDEPFILES): Likewise.
4314 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4315
786a90bb
MK
43162003-06-15 Mark Kettenis <kettenis@gnu.org>
4317
4318 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4319 replace out-of-date comment.
4320
3bd3f01e
AC
43212003-06-15 Andrew Cagney <cagney@redhat.com>
4322
4323 * rdi-share/host.h (Fail): Change to a varargs function.
4324 * remote-rdi.c (Fail): Update.
8ffd9b1b 4325
de5b9bb9
MK
43262003-06-15 Mark Kettenis <kettenis@gnu.org>
4327
4328 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4329 (i386_convert_register_p, i386_register_to_value,
4330 i386_register_from_value): Handle types longer than 8 bytes.
4331
d532c08f
MK
43322003-06-15 Mark Kettenis <kettenis@gnu.org>
4333
4334 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4335 Move floating-point code to new function in i387-tdep.c.
4336 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4337 New functions containing code moved here from i386-tdep.c.
4338 * i387-tdep.h: Add opaque declaration for `struct type'.
4339 (i387_register_to_value, i387_value_to_register): New prototypes.
4340 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4341 (x86_64_init_abi): Set convert_register_p, register_to_value and
4342 value_to_register here.
8ffd9b1b 4343
42c466d7
AC
43442003-06-14 Andrew Cagney <cagney@redhat.com>
4345
4346 * mips-tdep.c (mips_register_to_value): Make static.
4347 (mips_value_to_register): Make static.
4348 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4349 * ia64-tdep.c (ia64_register_raw_size): Make static.
4350 (ia64_register_virtual_size): Make static.
4351 (ia64_register_byte): Make static.
4352 * i387-tdep.c: Include "i387-tdep.h".
4353 (print_387_control_word): Delete function.
4354 (print_387_status_word): Delete function.
4355 (print_387_status_bits): Delete function.
4356 (print_387_control_bits): Delete function.
4357 * Makefile.in (i387-tdep.o): Update dependencies.
4358 * rdi-share/host.h (Fail): Declare.
4359 * remote-rdi.c (Fail): Update to match declaration.
4360
2a9cda49
AC
43612003-06-14 Andrew Cagney <cagney@redhat.com>
4362
4363 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4364 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4365 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4366 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4367 * README: Delete reference to remote-array.
4368 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4369 (remote-array.o): Delete target.
4370 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4371 * remote-array.c: Delete file.
4372
ff2e87ac
AC
43732003-06-14 Andrew Cagney <cagney@redhat.com>
4374 Mark Kettenis <kettenis@gnu.org>
4375
4376 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4377 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4378 parameter with "frame".
4379 * gdbarch.h, gdbarch.c: Re-generate.
4380 * frame.h (put_frame_register): Declare.
4381 * frame.c (put_frame_register): New function.
4382 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4383 (legacy_register_to_value): Rewrite, use "frame" to get the
4384 register value.
4385 (legacy_value_to_register): Rewrite, use "frame" to find the
4386 register's location before storing.
4387 * arch-utils.h (legacy_convert_register_p): Update.
4388 (legacy_register_to_value, legacy_value_to_register): Update.
4389 * findvar.c (value_from_register): Rewrite, eliminate use of
4390 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4391 "frame" to REGISTER_TO_VALUE.
4392 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4393 lval_reg_frame_relative + lval_register branch of the switch. Do
4394 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4395 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4396 I386_EDI_REGNUM): New defines.
4397 (i386_next_regnum, i386_convert_register_p,
4398 i386_register_to_value, i386_value_to_register): New functions.
4399 (i386_register_convertible, i386_register_convert_to_virtual,
4400 i386_convert_to_raw): Remove functions.
4401 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4402 value_to_register instead of register_convertible,
4403 register_convert_to_virtual and register_convert_to_raw.
4404 * mips-tdep.c (mips_convert_register_p): New function.
4405 (mips_value_to_register): Replace mips_register_convert_from_type.
4406 (mips_register_to_value): Replace mips_register_convert_to_type.
4407 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4408 register_to_value.
4409 * alpha-tdep.c (alpha_convert_register_p): Update.
4410 (alpha_value_to_register): Update, store the register.
4411 (alpha_register_to_value): Update, fetch the register.
4412
98be1e77
TR
44132003-06-14 Theodore A. Roth <troth@openavr.org>
4414
4415 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4416 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4417 Don't set deprecated_call_dummy_words.
4418 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4419 Don't set remote_translate_xfer_address.
4420 (avr_io_reg_read_command): Remove commented out debug printf.
4421 Wrap a long line.
4422
57bc6122
TR
44232003-06-14 Theodore A. Roth <troth@openavr.org>
4424
4425 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4426 causes gdb to seg fault.
4427
eb01fc62
DJ
44282003-06-14 Daniel Jacobowitz <drow@mvista.com>
4429
4430 * sparc-nat.c (fetch_inferior_registers): Correct
4431 a reference to "registers".
4432
3b3e6bee
DJ
44332003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4434
4435 * Makefile.in (exc_request_U_h): Define
4436 (exc_request_S_h): Likewise.
4437 (msg_reply_S_h): Likewise.
4438 (msg_U_h): Likewise.
4439 (notify_S_h): Likewise.
4440 (process_reply_S_h): Likewise.
4441 (gnu-nat.o): Depend on gdb_obstack_h
4442 * gnu-nat.c: Include "gdb_obstack.h".
4443
b8de8283
AC
44442003-06-13 Andrew Cagney <cagney@redhat.com>
4445
4446 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4447 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4448
f3be58bc
AC
44492003-06-13 Andrew Cagney <cagney@redhat.com>
4450
4451 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4452 when deprecated REGISTER macros can be deleted.
4453 * gdbarch.h, gdbarch.c: Re-generate.
4454
4c0122c8
JB
44552003-06-13 Jim Blandy <jimb@redhat.com>
4456
4457 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4458 Linux entry point symbols for _dl_debug_state, too.
4459
3e210248
AC
44602003-06-13 Andrew Cagney <cagney@redhat.com>
4461
4462 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4463 available, do not use the FP register, and always save the TOS.
4464 * dummy-frame.c (dummy_frame_this_id): Do not assert
4465 SAVE_DUMMY_FRAME_TOS.
4466 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4467 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4468 (i386_push_dummy_call): Add 8 to the returned SP.
4469 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4470 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4471 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4472 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4473 (x86_64_push_dummy_call): Return "sp + 16".
4474 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4475 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4476 save_dummy_frame_tos.
4477
0b65af49
JB
44782003-06-13 Jim Blandy <jimb@redhat.com>
4479
4480 * frv-tdep.c (frv_use_struct_convention): Delete static
4481 declaration for function deleted in my change of 2003-06-12.
4482
4ea2465e
TR
44832003-06-13 Theodore A. Roth <troth@openavr.org>
4484
4485 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4486 (avr_pointer_to_address): Shift code addrs left 1 bit.
4487 (avr_convert_from_func_ptr_addr): Delete function since operation is
4488 better handled by avr_address_to_pointer and avr_pointer_to_address.
4489 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4490
1581182a
MK
44912003-06-13 Mark Kettenis <kettenis@gnu.org>
4492
4493 From Kelley Cook <kelleycook@wideopenwest.com>:
4494 * configure.host: Accept i[34567]86 variants.
4495 * configure.tgt: Likewise.
4496 * nlm/configure.in: Likewise.
4497 * nlm/configure: Regenerated.
4498
7aa1783e
RE
44992003-06-13 Richard Earnshaw <rearnsha@arm.com>
4500
4501 * arm-tdep.c (solib-svr4.h): Dont' include it.
4502 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4503 * arm-linux-tdep.c: ... here. Make static.
4504 (arm_linux_init_abi): Register it.
4505 (solib-svr4.h): Include it.
4506 * Makefile.in: Update dependencies.
4507 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4508 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4509
0261a0d0
CV
45102003-06-13 Corinna Vinschen <vinschen@redhat.com>
4511
4512 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4513 indicate registers used for return values.
4514 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4515 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4516 members.
4517 (h8300_init_extra_frame_info): Ditto.
4518 (h8300_frame_locals_address): Removed.
4519 (h8300_frame_args_address): Removed.
4520 (h8300_extract_return_value): Use new regcache structure. Only care
4521 for 16 bit CPUs.
4522 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4523 (h8300_store_return_value): Use new regcache structure. Only care
4524 for 16 bit CPUs.
4525 (h8300h_store_return_value): Same function for 32 bit CPUs.
4526 (h8300_store_struct_return): Removed.
4527 (h8300_extract_struct_value_address): Use new regcache structure.
4528 (h8300h_extract_struct_value_address): Removed.
4529 (h8300_push_dummy_code): New function.
4530 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4531 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4532 set_gdbarch_store_return_value architecture dependent.
4533 Call set_gdbarch_push_dummy_code and
4534 set_gdbarch_extract_struct_value_address.
4535 Remove calls to set_gdbarch_frame_args_address,
4536 set_gdbarch_frame_locals_address,
4537 set_gdbarch_deprecated_store_struct_return,
4538 set_gdbarch_deprecated_extract_return_value,
4539 set_gdbarch_deprecated_extract_struct_value_address,
4540 set_gdbarch_deprecated_call_dummy_words and
4541 set_gdbarch_deprecated_sizeof_call_dummy_words.
4542
055c394a
CV
45432003-06-13 Corinna Vinschen <vinschen@redhat.com>
4544
4545 * h8300-tdep.c (h8300_register_byte): Remove.
4546 (h8300h_register_byte): Remove.
4547 (h8300_register_virtual_type): Remove. Substitute by...
4548 (h8300_register_type): New function.
4549 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4550 (h8300h_extract_struct_value_address): Ditto.
4551 (h8300_gdbarch_init): Drop calls to
4552 set_gdbarch_deprecated_register_byte and
4553 set_gdbarch_deprecated_register_virtual_type.
4554 Add call to set_gdbarch_register_type.
4555
9c04cab7
AC
45562003-06-13 Andrew Cagney <cagney@redhat.com>
4557
4558 * gdbarch.sh: Update comments on registers.
4559 (deprecated_register_byte): Rename register_byte.
4560 (deprecated_register_raw_size): Rename register_raw_size.
4561 (deprecated_register_virtual_size): Rename register_virtual_size.
4562 (deprecated_register_virtual_type): Rename register_virtual_type.
4563 * gdbarch.h, gdbarch.c: Re-generate.
4564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4565 * vax-tdep.c (vax_gdbarch_init): Update.
4566 * v850-tdep.c (v850_gdbarch_init): Update.
4567 * sparc-tdep.c (sparc_gdbarch_init): Update.
4568 * sh-tdep.c (sh_gdbarch_init): Update.
4569 * s390-tdep.c (s390_gdbarch_init): Update.
4570 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4571 * ns32k-tdep.c: Update.
4572 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4573 * mips-tdep.c (mips_gdbarch_init): Update.
4574 * mcore-tdep.c (mcore_gdbarch_init): Update.
4575 * m68k-tdep.c (m68k_gdbarch_init): Update.
4576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4577 * ia64-tdep.c (ia64_gdbarch_init): Update.
4578 * hppa-tdep.c (hppa_gdbarch_init): Update.
4579 * h8300-tdep.c (h8300_gdbarch_init): Update.
4580 * frv-tdep.c (frv_gdbarch_init): Update.
4581 * cris-tdep.c (cris_gdbarch_init): Update.
4582 * avr-tdep.c (avr_gdbarch_init): Update.
4583 * alpha-tdep.c (alpha_gdbarch_init): Update.
4584 * arm-tdep.c (arm_gdbarch_init): Update.
4585
b060cbea
AC
45862003-06-13 Andrew Cagney <cagney@redhat.com>
4587
4588 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4589 mips_o32_use_struct_convention with always_use_struct_convention.
4590
0fc9922a
DC
45912003-06-12 David Carlton <carlton@kealia.com>
4592
4593 * cp-namespace.c (cp_set_block_scope): Comment out
4594 processing_has_namespace_info branch.
4595
1fd35568
JB
45962003-06-12 Jim Blandy <jimb@redhat.com>
4597
f470a70a
JB
4598 Recognize and skip 64-bit PowerPC Linux linkage functions.
4599 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4600 insn_pattern, insns_match_pattern, d_field, ds_field): New
4601 functions, macros, and types for working with PPC instructions.
4602 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4603 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4604 ppc64_skip_trampoline_code): New functions, variables, and macros
4605 for recognizing and skipping linkage functions.
4606 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4607 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4608
49ff75ad
JB
4609 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4610 register offsets for both the 32- and 64-bit interfaces.
4611
bd918c83
JB
4612 Actually finish the job started by my change of 2003-05-29.
4613 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4614 other #definition of this.
4615 (ppc_linux_skip_trampoline_code): Remove declaration.
4616 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4617 static.
4618 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4619 method for GDBARCH.
4620
4621 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4622 'long' on ppc64-*-linux*.
4623
f8c59253
JB
4624 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4625 isn't #defined, assume the register doesn't exist: act as if
4626 tdep->ppc_mq_regnum were -1.
4627
8fbb30b1
JB
4628 * configure.host, configure.tgt: Add entries for
4629 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4630 powerpc/linux.mt.
4631 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4632 New files.
4633
1fd35568
JB
4634 * arch-utils.c (always_use_struct_convention): New function.
4635 * arch-utils.h (always_use_struct_convention): New prototype.
4636 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4637 (alpha_gdbarch_init): Register always_use_struct_convention,
4638 instead of alpha_use_struct_convention.
4639 * cris-tdep.c (cris_use_struct_convention): Delete.
4640 (cris_gdbarch_init): Register always_use_struct_convention,
4641 instead of cris_use_struct_convention.
4642 * frv-tdep.c (frv_use_struct_convention): Delete.
4643 (frv_gdbarch_init): Register always_use_struct_convention,
4644 instead of frv_use_struct_convention.
4645 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4646 (h8300_gdbarch_init): Register always_use_struct_convention,
4647 instead of h8300_use_struct_convention.
e3305dd9 4648 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4649 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4650 instead of mips_o32_use_struct_convention.
4651
e14e6e9c
AC
46522003-06-12 Andrew Cagney <cagney@redhat.com>
4653
4654 * wince.c: Include "mips-tdep.h".
4655 * mips-tdep.h (mips_next_pc): Declare.
4656 * mcore-tdep.c: Make more local functions static.
4657 * Makefile.in (wince.o): Update dependencies.
4658
2335f48e
DC
46592003-06-12 David Carlton <carlton@kealia.com>
4660
4661 * symtab.c (lookup_symbol_aux_minsyms): Replace
4662 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4663 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4664 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4665 SYMBOL_NATURAL_NAME.
4666
f70a7d61
AS
46672003-06-12 Andreas Schwab <schwab@suse.de>
4668
4669 * Makefile.in (tuiDisassem.o): Update dependencies.
4670
b6429628
DC
46712003-06-12 David Carlton <carlton@bactrian.org>
4672
4673 * symtab.h: Delete declaration of make_symbol_overload_list.
4674 Add declaration of lookup_partial_symbol.
4675 * symtab.c (remove_params): Move to cp-support.c.
4676 (overload_list_add_symbol, make_symbol_overload_list)
4677 (sym_return_val_size, sym_return_val_index): Ditto.
4678 (lookup_partial_symbol): Make extern.
4679 * cp-support.h: Add declaration of make_symbol_overload_list.
4680 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4681 symtab.h, and block.h.
4682 (remove_params): Move here from symtab.c.
4683 (overload_list_add_symbol, make_symbol_overload_list)
4684 (sym_return_val_size, sym_return_val_index): Ditto.
4685 * valops.c: Include cp-support.h.
4686 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4687 frame_h, and block_h.
4688 (valops.o): Depend on cp_support_h.
4689
084edea5
CV
46902003-06-12 Corinna Vinschen <vinschen@redhat.com>
4691
4692 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4693 substitute by NUM_REGS throughout.
4694 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4695 (h8300s_register_name): New function for H8S registers.
4696 (h8300sx_register_name): Ditto for H8SX registers.
4697 (h8300_print_register): Revise register printing, avoid depending
4698 on 32 bit long.
0261a0d0 4699 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4700 (h8300h_register_byte): New function for any other architecture.
4701 (h8300_register_raw_size): Remove.
4702 (h8300_register_virtual_type): Revise to return actually useful
4703 type.
4704 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4705 (h8300h_extract_struct_value_address): New function for any other
4706 architecture.
4707 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4708 set_gdbarch_register_name, set_gdbarch_register_byte,
4709 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4710 Remove calls to set_gdbarch_deprecated_register_size,
4711 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4712 set_gdbarch_deprecated_max_register_raw_size,
4713 set_gdbarch_register_virtual_size and
4714 set_gdbarch_deprecated_max_register_virtual_size entirely.
4715 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4716 set_gdbarch_long_double_bit.
4717
06194148
JJ
47182003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4719
8ffd9b1b
AJ
4720 * doublest.c (convert_doublest_to_floatformat): When dealing
4721 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4722 processing a full 32 bits of mantissa.
4723
de4f826b
DC
47242003-06-11 David Carlton <carlton@bactrian.org>
4725
4726 * dictionary.h: New.
4727 * dictionary.c: New.
4728 * block.h: Add opaque declaration for struct dictionary.
4729 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4730 'sym' members.
4731 (BLOCK_DICT): New macro.
4732 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4733 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4734 BLOCK_SHOULD_SORT.
4735 (ALL_BLOCK_SYMBOLS): Update definition.
4736 * Makefile.in (SFILES): Add dictionary.c.
4737 (dictionary_h): New.
4738 (COMMON_OBS): Add dictionary.o.
4739 (dictionary.o): New.
4740 (ada-lang.o): Depend on dictionary_h.
4741 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4742 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4743 (mi-cmd-stack.o): Ditto.
4744 (gdbtk-cmds.o): Update dependencies.
4745 (gdbtk-stack.o): Ditto.
4746 * ada-lang.c: Include dictionary.h.
4747 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4748 (fill_in_ada_prototype, debug_print_block): Ditto.
4749 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4750 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4751 'is_sorted'.
4752 * mdebugread.c: Include dictionary.h.
4753 (struct parse_stack): Delete 'maxsyms' member.
4754 (parse_symbol): Update calls to new_block. Delete calls to
4755 shrink_block. Use dictionary methods.
4756 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4757 Update calls to new_symtab. Don't maintain maxsyms data.
4758 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4759 (add_symbol): Just call dict_add_symbol.
4760 (new_symtab): Delete 'maxsyms' argument.
4761 (new_symtab): Update calls to new_block.
4762 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4763 (shrink_block): Delete function.
4764 (fixup_sigtramp): Update call to new_block. Add symbol via
4765 dict_add_symbol.
4766 * jv-lang.c: Include dictionary.h.
4767 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4768 appropriately. Set class_symtab->free_func. Make sure the
4769 blockvector is big enough to hold two blocks.
4770 (add_class_symtab_symbol): Use dictionary methods.
4771 (free_class_block): New function.
4772 (type_from_class): Replace explicit iteration by
4773 ALL_BLOCK_SYMBOLS.
4774 * symtab.h (struct symtab): Replace 'free_ptr' method by
4775 'free_func'.
4776 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4777 sort_symtab_syms.
4778 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4779 sort_symtab_syms.
4780 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4781 Include dictionary.h.
4782 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4783 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4784 sort_symtab_syms.
4785 * objfiles.c: Include dictionary.h.
4786 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4787 * buildsym.c: Include dictionary.h.
4788 (finish_block): Use dictionary methods.
4789 (end_symtab): Set free_func to NULL, not free_ptr.
4790 * tracepoint.c: Include dictionary.h.
4791 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4792 (scope_info): Ditto.
4793 * stack.c: Include dictionary.h.
4794 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4795 (print_block_frame_labels, print_frame_arg_vars)
4796 (print_frame_args): Ditto.
4797 * symmisc.c (free_symtab_block): Use dictionary methods.
4798 (dump_symtab): Ditto.
4799 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4800 Include dictionary.h.
4801 * symfile.h: Delete declarations of sort_block_syms,
4802 sort_symtab_syms.
4803 * symfile.c (sort_block_syms): Delete.
4804 (sort_symtab_syms): Delete.
4805 * symtab.c: Include dictionary.h.
4806 (lookup_block_symbol): Use dictionary iterators.
4807 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4808 (search_symbols, make_symbol_completion_list): Ditto.
4809 (make_symbol_overload_list): Ditto.
4810 * valops.c (value_of_local): Use dict_empty.
4811 Include dictionary.h.
4812
a31f978c
JB
48132003-06-11 J. Brobecker <brobecker@gnat.com>
4814
4815 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4816
526e70c0
DC
48172003-06-11 David Carlton <carlton@bactrian.org>
4818
4819 * block.h (BLOCK_SHOULD_SORT): Delete.
4820 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4821 blocks.
4822 * ada-lang.c (ada_add_block_symbols): Ditto.
4823 * symfile.c (sort_block_syms): Delete.
4824 (sort_symtab_syms): Ditto.
4825 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4826 declarations.
4827 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4828 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4829 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4830 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4831 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4832 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4833 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4834
33c08150
JJ
48352003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4836
8ffd9b1b 4837 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4838 bits to 128.
4839
781a750d
AC
48402003-06-11 Andrew Cagney <cagney@redhat.com>
4841
4842 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4843 REGISTER_CONVERTIBLE.
4844 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4845 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4846 * gdbarch.h, gdbarch.c: Re-generate.
4847 * arch-utils.h (deprecated_register_convertible_not): Rename
4848 generic_register_convertible_not.
4849 * arch-utils.c (deprecated_register_convertible_not): Rename
4850 generic_register_convertible.
4851 (legacy_convert_register_p, legacy_register_to_value): Update.
4852 * sh-tdep.c (sh64_push_arguments): Update.
4853 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4854 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4855 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4856 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4857 * arch-utils.c (legacy_value_to_register): Update.
4858 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4859 (rs6000_register_convert_to_raw): Make parameter "from" const.
4860 * mips-tdep.c (mips_gdbarch_init): Update.
4861 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4862 * infcmd.c (default_print_registers_info): Update.
4863 * ia64-tdep.c (ia64_gdbarch_init): Update.
4864 (ia64_register_convert_to_raw): Make parameter "from" const.
4865 * i386-tdep.c (i386_gdbarch_init): Update.
4866 (i386_register_convert_to_raw): Update.
4867
cd90e54f
AC
48682003-06-11 Andrew Cagney <cagney@redhat.com>
4869
4870 * remote-fileio.c: Include "remote-fileio.h".
4871 * Makefile.in (remote-fileio.o): Update dependencies.
4872 (remote_fileio_h): Fix typo.
4873
a78f21af
AC
48742003-06-11 Andrew Cagney <cagney@redhat.com>
4875
4876 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4877 (xstormy16_save_dummy_frame_tos): Make static.
4878 (_initialize_xstormy16_tdep): Add declaration.
4879 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4880 * v850-tdep.c: Make local functions static.
4881 (_initialize_v850_tdep): Add declaration.
4882 * sparc-tdep.c: Make local functions static.
4883 (_initialize_sparc_tdep): Add declaration.
4884 * sh-tdep.c: Make local functions static.
4885 (_initialize_sh_tdep): Add declaration.
4886 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4887 * s390-tdep.c: Make local functions static.
4888 (_initialize_s390_tdep): Add declaration.
4889 * dbxread.c (find_stab_function_addr): Make static.
4890 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4891 * ocd.c (_initialize_remote_ocd): Add declaration.
4892 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4893 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4894 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4895 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4896 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4897 * remote-array.c (_initialize_array): Add declaration.
4898 (_initialize_remote_monitors): Add declaration.
4899 * remote-mips.c: Make local functions static.
4900 (_initialize_remote_mips): Add declaration.
4901 * mcore-tdep.c: Make all local functions static.
4902 (_initialize_mcore_tdep): Add declaration.
4903 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4904 * abug-rom.c (_initialize_abug_rom): Add declaration.
4905 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4906 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4907 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4908 * remote-est.c (_initialize_est): Add declaration.
4909 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4910 (m68hc11_call_dummy_address): Make static.
4911 * ia64-tdep.c: Make local functions static.
4912 (_initialize_ia64_tdep): Add declaration.
4913 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4914 * monitor.c (monitor_wait_filter): Make static.
4915 (_initialize_remote_monitors): Add declaration.
4916 * remote-hms.c (_initialize_remote_hms): Add declaration.
4917 * remote-e7000.c (fetch_regs_from_dump): Make static.
4918 (expect_n): Make static.
4919 (_initialize_remote_e7000): Add declaration.
4920 * ser-e7kpc.c: Always include "defs.h".
4921 (_initialize_ser_e7000pc): Add declaration.
4922 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4923 * cris-tdep.c: Make all but one function static.
4924 (_initialize_cris_tdep): Add declaration.
4925 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4926 * solib.c (update_solib_list): Make static.
4927 (_initialize_solib): Add declaration.
4928 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4929 (_initialize_avr_tdep): Add declaration.
4930 * remote-rdi.c (voiddummy): Make static.
4931 (_initialize_remote_rdi): Add declaration.
4932 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4933 * remote-rdp.c (send_rdp): Make static.
4934 (_initialize_remote_rdp): Add declaration.
4935 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4936
cbcdb1f5
CV
49372003-06-11 Corinna Vinschen <vinschen@redhat.com>
4938
4939 * remote-fileio.c: Make ari happy.
4940
a191ea8d
JB
49412003-06-10 J. Brobecker <brobecker@gnat.com>
4942
4943 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4944 fetching the trailing bytes of the buffer we are about to write.
4945
0ef75e11
AC
49462003-06-10 Andrew Cagney <cagney@redhat.com>
4947
4948 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4949 * Makefile.in (remote-fileio.o): Update dependencies.
4950 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4951 include <setjmp.h>, or <sys/types.h> conditional on USG.
4952 (remote_fio_jmp_buf): Delete global variable.
4953
449092f6 49542003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4955 Martin M. Hunt <hunt@redhat.com>
449092f6 4956
559fa028
AC
4957 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4958 (SFILES): Add remote-fileio.c.
4959 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4960 dependencies for building remote.o.
449092f6
CV
4961 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4962 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 4963 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
4964 static storage class.
4965 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4966 'F' packet.
4967 (_initialize_remote): Call initialize_remote_fileio().
4968 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
4969 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4970 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4971 (captured_main): Initialize new ui_files.
4972 * ui-file.c: Add read and fgets input functions.
4973 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4974 (null_file_read): New function.
4975 (ui_file_read): New function.
4976 (set_ui_file_read): New function.
4977 (stdio_file_read): New function.
4978 * ui-file.h: New type ui_file_read_ftype.
4979 (set_ui_file_read): Declare.
4980 (ui_file_read): Declare.
4981
248de703
AC
49822003-06-09 Andrew Cagney <cagney@redhat.com>
4983
4984 * frame.h (deprecated_unwind_get_saved_register): Rename
4985 generic_unwind_get_saved_register, update comments.
4986 * mips-tdep.c (mips_get_saved_register): Update.
4987 * frame.c (deprecated_unwind_get_saved_register): Update.
4988
0ed8aa57
AC
49892003-06-09 Andrew Cagney <cagney@redhat.com>
4990
4991 * vax-tdep.c (vax_frame_locals_address): Delete function.
4992 (vax_gdbarch_init): Do not set frame_locals_address.
4993 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4994 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4995 * s390-tdep.c (s390_frame_args_address): Delete function.
4996 (s390_gdbarch_init): Do not set frame_args_address or
4997 frame_locals_address.
4998 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4999 (ns32k_gdbarch_init): Do not set frame_locals_address.
5000 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5001 (hppa_frame_locals_address): Delete function.
5002 (hppa_gdbarch_init): Do not set frame_args_address, or
5003 frame_locals_address.
5004 * arm-tdep.c (arm_frame_args_address): Delete.
5005 (arm_frame_locals_address): Delete.
5006 (arm_gdbarch_init): Do not set frame_args_address, or
5007 frame_locals_address.
5008
983a287a
AC
50092003-06-09 Andrew Cagney <cagney@redhat.com>
5010
5011 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5012 * gdbarch.h, gdbarch.c: Re-generate.
5013 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5014 * arch-utils.c (frame_num_args_unknown): Delete function.
5015 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5016 (frame_info): Use FRAME_NUM_ARGS_P.
5017 * arm-tdep.c (arm_frame_num_args): Delete function.
5018 (arm_gdbarch_init): Do not set frame_num_args.
5019 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5020 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5021 (hppa_gdbarch_init): Do not set frame_num_args.
5022 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5023 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5024 frame_num_args to default frame_num_args_unknown.
5025 * v850-tdep.c (v850_gdbarch_init): Ditto.
5026 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5027 * sh-tdep.c (sh_gdbarch_init): Ditto.
5028 * s390-tdep.c (s390_gdbarch_init): Ditto.
5029 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5030 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5031 * mips-tdep.c (mips_gdbarch_init): Ditto.
5032 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5033 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5034 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5035 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5036 * i386-tdep.c (i386_gdbarch_init): Ditto.
5037 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5038 * frv-tdep.c (frv_gdbarch_init): Ditto.
5039 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5040 * cris-tdep.c (cris_gdbarch_init): Ditto.
5041 * avr-tdep.c (avr_gdbarch_init): Ditto.
5042 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5043
8d3b0994
AC
50442003-06-09 Andrew Cagney <cagney@redhat.com>
5045
5046 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5047 (print_frame_args): Moved to "stack.c".
5048 * stack.c: Include "gdb_assert.h".
5049 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5050 (print_frame_args): Moved from "printcmd.c".
5051 * frame.h (print_frame_args): Delete declaration.
5052 * Makefile.in (stack.o): Update dependencies.
5053
25e3a86b
AC
50542003-06-08 Andrew Cagney <cagney@redhat.com>
5055
5056 * frame.c (get_prev_frame): Remove reference to
5057 frame_args_address_correct in comments.
5058 * frame-base.c (default_frame_args_address): Delete code
5059 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5060 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5061 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5062 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5063 (vax_frame_args_address_correct): Delete declaration.
5064
a9e5fdc2
AC
50652003-06-08 Andrew Cagney <cagney@redhat.com>
5066
5067 * gdbarch.sh (UNWIND_SP): Add.
5068 * gdbarch.h, gdbarch.c: Re-generate.
5069 * frame.c (frame_sp_unwind): New function.
5070 (get_frame_sp): New function.
5071 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5072 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5073 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5074 value.
5075 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5076 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5077
8983bd83
AC
50782003-06-08 Andrew Cagney <cagney@redhat.com>
5079
7fec2c59
AC
5080 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5081 REMOTE_BREAKPOINT.
5082 * remote.c: Update.
5083 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5084 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5085 * config/m68k/tm-sun3.h: Update.
5086 * config/m68k/tm-m68klynx.h: Update.
5087 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5088
8983bd83
AC
5089 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5090 trad_frame". Update comments.
5091 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5092 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5093 (trad_frame_register_value, trad_frame_prev_register): Update.
5094
b9362cc7
AC
50952003-06-08 Andrew Cagney <cagney@redhat.com>
5096
5097 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5098 from GCC's acinclude.m4.
5099 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5100 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5101 * main.c (error_init): Delete declaration.
5102 * defs.h (error_init): Declare.
5103 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5104 (rs6000_convert_from_func_ptr_addr): Make static.
5105 (_initialize_rs6000_tdep): Add declaration.
5106 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5107 (show_commands, set_verbose, show_history): Delete declaration.
5108 * top.h (set_verbose): Add declaration.
5109 (show_history, set_history, show_commands): Add declaration.
5110 (do_restore_instream_cleanup): Add declaration.
5111 * objc-lang.c (specialcmp): Make static.
5112 (print_object_command): Make static.
5113 (find_objc_msgsend): Make static.
5114 (find_objc_msgcall_submethod_helper): Make static.
5115 (find_objc_msgcall_submethod): Make static.
5116 (_initialize_objc_language): Add declaration.
5117 (find_implementation_from_class): Make static.
5118 (find_implementation): Make static.
5119 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5120 * objc-lang.h (lookup_struct_typedef): Add declaration.
5121 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5122 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5123 (do_restore_user_call_depth): Make static.
5124 (do_restore_instream_cleanup): Delete declaration.
5125 (dont_repeat): Delete declaration.
5126 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5127 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5128 * reggroups.c (_initialize_reggroup): Add declaration.
5129 * cp-support.c (_initialize_cp_support): Add declaration.
5130 * cp-abi.c (_initialize_cp_abi): Add declaration.
5131 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5132 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5133 (_initialize_gnu_v3_abi): Add declaration.
5134 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5135 (_initialize_gnu_v2_abi): Add declaration.
5136 * frame-base.c (_initialize_frame_base): Add declaration.
5137 * doublest.c (floatformat_from_length): Make static.
5138 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5139 * frame.c (create_sentinel_frame): Make static.
5140 (_initialize_frame): Add declaration.
5141 * top.c (do_catch_errors): Make static.
5142 (gdb_rl_operate_and_get_next_completion): Make static.
5143 * typeprint.c: Include "typeprint.h".
5144 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5145 (sentinel_frame_this_id): Make static.
5146 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5147 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5148 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5149 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5150 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5151 * maint.c (maintenance_print_architecture): Make static.
5152 * signals/signals.c (_initialize_signals): Add declaration.
5153 * std-regs.c (_initialize_frame_reg): Add declaration.
5154 * jv-exp.y (push_variable): ISO C definition.
5155 (push_qualified_expression_name): Ditto.
5156 * memattr.c (_initialize_mem): Add declaration.
5157 * remote.c (remote_check_watch_resources): Make static.
5158 (remote_stopped_by_watchpoint): Make static.
5159 (remote_stopped_data_address): Make static.
5160 * d10v-tdep.c (nr_dmap_regs): Make static.
5161 (a0_regnum): Make static.
5162 (d10v_frame_unwind_cache): Make static.
5163 (d10v_frame_p): Make static.
5164 * osabi.c (show_osabi): Make static.
5165 (_initialize_gdb_osabi): Add extern declaration.
5166 * gdbtypes.c (make_qualified_type): Make static.
5167 (safe_parse_type): Make static.
5168 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5169 * macrotab.c (macro_bcache_free): Make static.
5170 * interps.c (interp_set_quiet): Make static.
5171 (interpreter_exec_cmd): Make static.
5172 * stack.h (select_frame_command): New file.
5173 * stack.c: Include "stack.h".
5174 (select_frame_command_wrapper): Delete function.
5175 (select_frame_command): Make global.
5176 * infcall.c: Include "infcall.h".
5177 * linespec.c: Include "linespec.h".
5178 * symfile.c (sections_overlap): Make static.
5179 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5180 * charset.c (_initialize_charset): Add missing prototype.
5181 * regcache.c (init_legacy_regcache_descr): Make static.
5182 (do_regcache_xfree): Make static.
5183 (regcache_xfer_part): Make static.
5184 (_initialize_regcache): Add missing prototype.
5185 * breakpoint.c (parse_breakpoint_sals): Make static.
5186 (breakpoint_sals_to_pc): Make static.
5187 * interps.h (clear_interpreter_hooks): ISO C declaration.
5188 * Makefile.in (stack_h): Define.
5189 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5190 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5191
a0f267c7
AC
51922003-06-08 Andrew Cagney <cagney@redhat.com>
5193
5194 * Makefile.in (d10v-tdep.o): Update dependencies.
5195 (SFILES): Add trad-frame.c.
5196 (trad_frame_h): Define.
5197 (COMMON_OBS): Add trad-frame.o.
5198 (trad-frame.o): Specify dependencies.
5199 * d10v-tdep.c: Include "trad-frame.h".
5200 (saved_regs_unwinder): Delete function.
5201 (d10v_frame_prev_register): Use trad_frame_prev_register.
5202 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5203 trad_frame", delete "regs" and "prev_sp".
5204 (prologue_find_regs): Use trad-frame.
5205 * trad-frame.h, trad-frame.c: New files.
5206
4538b4f4
MK
52072003-06-08 Mark Kettenis <kettenis@gnu.org>
5208
5209 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5210
a0273b2f
AF
52112003-06-07 Adam Fedor <fedor@gnu.org>
5212
5213 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5214 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5215 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5216 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5217 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5218 Use it.
5219
3a6c3343
AC
52202003-06-07 Andrew Cagney <cagney@redhat.com>
5221
5222 * symfile.h: Re-indent, clean up comments.
5223
b46e02f6
AC
52242003-06-07 Andrew Cagney <cagney@redhat.com>
5225
5226 * inferior.h (deprecated_write_sp): Replace
5227 generic_target_write_sp.
5228 * regcache.c (deprecated_write_sp): Replace
5229 generic_target_write_sp.
5230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5231 * vax-tdep.c (vax_gdbarch_init): Update.
5232 * v850-tdep.c (v850_gdbarch_init): Update.
5233 * sparc-tdep.c (sparc_gdbarch_init): Update.
5234 * sh-tdep.c (sh_gdbarch_init): Update.
5235 * s390-tdep.c (s390_gdbarch_init): Update.
5236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5237 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5238 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5239 * mcore-tdep.c (mcore_gdbarch_init): Update.
5240 * m68k-tdep.c (m68k_gdbarch_init): Update.
5241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5242 * ia64-tdep.c (ia64_gdbarch_init): Update.
5243 * h8300-tdep.c (h8300_gdbarch_init): Update.
5244 * frv-tdep.c (frv_gdbarch_init): Update.
5245 * cris-tdep.c (cris_gdbarch_init): Update.
5246 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5247
a42e117c
AC
52482003-06-07 Andrew Cagney <cagney@redhat.com>
5249
5250 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5251 Assert that PC_REGNUM is valid.
5252 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5253
bd1ce8ba
AC
52542003-06-07 Andrew Cagney <cagney@redhat.com>
5255
5256 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5257 * gdbarch.h, gdbarch.c: Regenerate.
5258 * mn10300-tdep.c: Include "gdb_assert.h".
5259 (mn10300_read_fp): New function.
5260 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5261 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5262 * ia64-tdep.c: Include "gdb_assert.h".
5263 (ia64_read_fp): New function.
5264 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5265 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5266 * regcache.c (generic_target_read_sp): Delete function.
5267 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5268 * inferior.h (generic_target_read_sp): Delete declaration.
5269 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5270 generic_target_read_sp.
5271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5272 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5273 * sh-tdep.c (sh_gdbarch_init): Ditto.
5274 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5275 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5276
ec5cbaec
AC
52772003-06-07 Andrew Cagney <cagney@redhat.com>
5278
5279 * gdbarch.sh: Comment each field of startup_gdbarch.
5280 * gdbarch.h, gdbarch.c: Re-generate.
5281
cde9ea48
AC
52822003-06-07 Andrew Cagney <cagney@redhat.com>
5283
5284 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5285 * gdbarch.h, gdbarch.c: Re-generate.
5286 * regcache.c: Update comments on read_pc et.al.
5287 (generic_target_read_pc): Delete function.
5288 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5289 * inferior.h (generic_target_read_pc): Delete declaration.
5290 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5291 generic_target_read_pc.
5292 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5293 * sh-tdep.c (sh_gdbarch_init): Ditto.
5294 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5296
9a90a780
AC
52972003-06-07 Andrew Cagney <cagney@redhat.com>
5298
5299 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5300 "index" with "special_local_sect". Use strcmp instead of STREQ.
5301 Append period to coments.
5302
a39a16c4
MM
53032003-06-06 Mark Mitchell <mark@codesourcery.com>
5304
5305 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5306 (elfstab_offset_sections): Likewise.
5307 * gdb-stabs.h (stab_section_info): Likewise.
5308 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5309 * objfiles.c (objfile_relocate): Likewise.
5310 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5311 * remote.c (get_offsets): Likewise.
5312 (remote_cisco_objfile_relocate): Likewise.
5313 * somread.c (som_symfile_offsets): Likewise.
5314 * symfile.c (alloc_section_addr_info): New function.
5315 (build_section_addr_info_from_section_tab): Use it.
5316 (free_section_addr_info): Adjust.
5317 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5318 (syms_from_objfile): Allocate local_addr dynamically.
5319 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5320 dynamically.
5321 (add_symbol_file_command): Allocate sect_opts dynamically.
5322 (reread_symbols): Avoid use of SECT_OFF_MAX.
5323 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5324 (alloc_section_addr_info): Declare it.
5325 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5326 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5327 dynamically.
5328 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5329
20c6c2f8
AC
53302003-06-06 Andrew Cagney <cagney@redhat.com>
5331
5332 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5333 (d10v_frame_unwind_cache): Do not set "return_pc".
5334
884a26c8
MS
53352003-06-06 Michael Snyder <msnyder@redhat.com>
5336
5337 * h8300-tdep.c: Make tidy (long lines).
5338
088ce440
ML
53392003-06-06 Michal Ludvig <mludvig@suse.cz>
5340
8ffd9b1b 5341 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5342 to regcache_collect().
5343
7d773d96
JB
53442003-06-05 J. Brobecker <brobecker@gnat.com>
5345
5346 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5347 pc_in_sigtramp multiarch method.
5348 (hppa_hpux_som_init_abi): Use it.
5349 (hppa_hpux_elf_init_abi): Likewise.
5350 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5351 macro has been multiarched.
5352 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5353 macro here, as hppa64 isn't multiarched yet.
5354
1df6926e
AC
53552003-06-05 Andrew Cagney <cagney@redhat.com>
5356
5357 * Makefile.in (value_h): Add $(frame_h).
5358 * value.h: Include "frame.h".
5359 (struct value): Replace "frame_addr" with "frame_id".
5360 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5361 * values.c (allocate_value): Use VALUE_FRAME_ID.
5362 (value_copy): Use VALUE_FRAME_ID.
5363 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5364 * valops.c (value_assign): Update. Use frame_find_by_id.
5365
6b53acc6
ML
53662003-06-05 Michal Ludvig <mludvig@suse.cz>
5367
5368 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5369 in each pass.
5370
4d9850d3
JJ
53712003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5372
5373 * thread-db.c (check_event): For create/death event breakpoints,
5374 loop through all messages to ensure that we read the message
5375 corresponding to the breakpoint we are at.
5376
8efca6ba
MS
53772003-06-04 Michael Snyder <msnyder@redhat.com>
5378
5379 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5380
0912c7f2
MK
53812003-06-04 Mark Kettenis <kettenis@gnu.org>
5382
5383 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5384 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5385 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5386 when handling .eh_frame sections.
5387
4e370325
JB
53882003-06-04 J. Brobecker <brobecker@gnat.com>
5389
5390 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5391 prepare_to_proceed procedure instead of the hppa-specific one.
5392 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5393
b757528f 53942003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5395
b757528f
JJ
5396 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5397 * config.in: Regenerated.
5398 * configure.in: Add test for syscall function and check for
5399 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5400 * configure: Regenerated.
5401 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5402 <sys/syscall.h>.
5403 (kill_lwp): New function that uses tkill syscall or
5404 uses kill, depending on whether threading model is nptl or not.
5405 All callers of kill() changed to use kill_lwp().
5406 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5407 see if all threads have already exited in the nptl model.
5408 (stop_and_resume_callback): New callback function used by the
5409 lin_lwp_wait thread exit handling code.
5410 (stop_wait_callback): Check for threads already having exited and
5411 delete such threads fromt the lwp list when discovered.
5412 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5413
b757528f
JJ
5414 Roland McGrath <roland@redhat.com>
5415 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5416 nptl libthread_db.
5417
087779b1
RH
54182003-06-03 Richard Henderson <rth@redhat.com>
5419
b21fd293
RH
5420 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5421 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5422 (alpha_sigtramp_frame_prev_register): Likewise.
5423 (alpha_heuristic_frame_prev_register): Likewise.
5424 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5425
8ffd9b1b 5426 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5427 alpha-specific register id names.
5428 (alpha_mdebug_frame_unwind_cache): Likewise.
5429 (alpha_mdebug_frame_prev_register): Likewise.
5430
baa490c4
RH
54312003-06-03 Richard Henderson <rth@redhat.com>
5432
5433 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5434 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5435 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5436 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5437 unwind routines.
5438 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5439 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5440 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5441
5442 * alpha-linux-tdep.c: Remove unnecessary includes.
5443 * Makefile.in (alpha-linux-tdep.o): Update.
5444
54452003-06-03 Richard Henderson <rth@redhat.com>
5446
5447 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5448 (alphabsd_fill_fpreg): Likewise.
5449
f534e522
JB
54502003-06-03 J. Brobecker <brobecker@gnat.com>
5451
5452 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5453 references to struct frame_info fields by calls to the equivalent
5454 accessors. Necessary now that frame_info is opaque.
5455
4035536b
JB
54562003-06-03 J. Brobecker <brobecker@gnat.com>
5457
5458 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5459 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5460 structure, field no longer exists.
5461
0bd79c5c
JB
54622003-06-03 J. Brobecker <brobecker@gnat.com>
5463
5464 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5465 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5466
37bb6d9f
JB
54672003-06-03 J. Brobecker <brobecker@gnat.com>
5468
5469 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5470 references to struct frame_info fields by calls to the equivalent
5471 accessors. Necessary now that frame_info is opaque.
5472
852ee05c
JB
54732003-06-03 J. Brobecker <brobecker@gnat.com>
5474
5475 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5476 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5477 structure, field no longer exists.
5478
7d58c67d
TR
54792003-06-03 Theodore A. Roth <troth@openavr.org>
5480
8ffd9b1b 5481 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5482 accumulation of the size of all registers instead of blindly using
5483 DEPRECATED_REGISTER_BYTES.
5484
0a48e7e8
MS
54852003-06-03 Michael Snyder <msnyder@redhat.com>
5486
5487 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5488 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5489 for h8300sx.
5490
9798ab0d
JB
54912003-06-03 J. Brobecker <brobecker@gnat.com>
5492
5493 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5494 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5495
00b037e2
AC
54962003-06-03 Andrew Cagney <cagney@redhat.com>
5497
5498 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5499 (sparc_convert_to_raw): Delete function.
5500 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5501 register_convert_to_virtual.
5502
043b2f77
JJ
55032003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5504
5505 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5506 layer if not dealing with a statically-linked threaded program.
5507
f43caff8
KW
55082003-06-03 Kris Warkentin <kewarken@qnx.com>
5509
5510 * solib.c (solib_open): Update comment to reflect actual search order.
5511
ae1e7417
AC
55122003-06-03 Andrew Cagney <cagney@redhat.com>
5513
5514 * frame.c (get_frame_memory_signed): New function.
5515 (get_frame_memory, get_frame_memory_unsigned): New function.
5516 (get_frame_arch): New function.
5517 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5518 (get_frame_memory, get_frame_unsigned_memory): Declare.
5519 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5520 get_frame_memory_unsigned and get_frame_arch.
5521 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5522
cb123844
RG
55232003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5524
5525 * MAINTAINERS (write after approval): Add myself.
5526
1bb792e9
JB
55272003-06-03 Jim Blandy <jimb@redhat.com>
5528
5529 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5530 elements of gregset_t are 64 bits each, but access registers
5531 are still 32 bits, so they're packed two per gregset_t
5532 element. Unpack/pack them properly.
5533
aee8d8ba
DC
55342003-06-02 David Carlton <carlton@bactrian.org>
5535
5536 * linespec.c (find_methods): Break out code into
5537 add_matching_methods and add_constructors.
5538 (add_matching_methods): New.
5539 (add_constructors): Ditto.
5540
bf7488d2
AC
55412003-06-02 Andrew Cagney <cagney@redhat.com>
5542
bf7488d2
AC
5543 * sparc-tdep.c (sparc_print_registers): Delete call to
5544 REGISTER_CONVERTIBLE.
5545 (sparc_gdbarch_init): Do not set register_convertible.
5546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5547 * frv-tdep.c (frv_gdbarch_init): Ditto.
5548 * cris-tdep.c (cris_gdbarch_init): Ditto.
5549
adedef68
EZ
55502003-06-02 Elena Zannoni <ezannoni@redhat.com>
5551
8ffd9b1b 5552 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5553 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5554 (syms_from_objfile): Ditto.
5555
650fcc91
AS
55562003-06-03 Andreas Schwab <schwab@suse.de>
5557
5558 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5559 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5560
df4a182b
RH
55612003-06-02 Richard Henderson <rth@redhat.com>
5562
5563 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5564 a member of all_reggroup.
5565
c483c494
RH
55662003-06-02 Richard Henderson <rth@redhat.com>
5567
5568 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5569 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5570 (alpha_lds, alpha_sts): New.
5571 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5572 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5573 restructure and fail for type sizes other than 4 or 8.
5574 (alpha_value_to_register): Similarly.
5575 (alpha_extract_return_value): Use alpha_sts.
5576 (alpha_store_return_value): Use alpha_lds.
5577 (alpha_gdbarch_init): Update hooks.
5578
b38b6be2
RH
55792003-06-02 Richard Henderson <rth@redhat.com>
5580
5581 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5582 regnum identifiers.
5583 (alpha_sigtramp_register_address): Likewise.
5584
98a8e1e5
RH
55852003-06-02 Richard Henderson <rth@redhat.com>
5586
5587 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5588 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5589 * alpha-tdep.h: Declare them.
5590
5591 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5592 Remove zerobuf. Don't error on UNIQUE.
5593 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5594 (ALPHA_REGSET_UNIQUE): Provide default.
5595 (supply_gregset): Use alpha_supply_int_regs.
5596 (fill_gregset): Use alpha_fill_int_regs.
5597 (supply_fpregset): Use alpha_supply_fp_regs.
5598 (fill_fpregset): Use alpha_fill_fp_regs.
5599 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5600 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5601 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5602 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5603 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5604 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5605
67dfac52
RH
56062003-06-02 Richard Henderson <rth@redhat.com>
5607
f75d70cc
RH
5608 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5609
67dfac52
RH
5610 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5611 (alpha_store_return_value): Likewise.
5612
0cf566ec
DC
56132003-06-02 David Carlton <carlton@math.stanford.edu>
5614
5615 * block.c (contained_in): Add 'const' to arguments.
5616 (block_function): Ditto.
5617 * block.h: Update declarations for block_function and
5618 contained_in.
5619
cdef89d0
DC
56202003-06-02 David Carlton <carlton@math.stanford.edu>
5621
5622 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5623 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5624 * p-valprint.c (pascal_val_print): Ditto.
5625 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5626
72667056
RH
56272003-06-02 Richard Henderson <rth@redhat.com>
5628
98a8e1e5
RH
5629 * alpha-tdep.c (alpha_push_dummy_call): Use
5630 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5631
8ffd9b1b 5632 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5633 sign-extension of 32-bit values.
5634 (alpha_store_return_value): Similarly.
0ede8eca 5635
98a8e1e5
RH
5636 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5637 (alpha_extract_return_value): Likewise.
5638 (alpha_store_return_value): Likewise.
7b5e1cb3 5639
98a8e1e5
RH
5640 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5641 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5642
98a8e1e5
RH
5643 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5644 (alpha_extract_struct_value_address): Likewise.
5645 (alpha_store_return_value): Likewise.
5646 (alpha_store_struct_return): Remove.
5647 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5648
98a8e1e5
RH
5649 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5650 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5651 macros where appropriate.
5652 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5653 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5654
98a8e1e5
RH
5655 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5656 for SP, GP; void_func_ptr for PC; non-language-specific types
5657 for all others.
5658 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5659
6dd77b81
RH
56602003-06-02 Richard Henderson <rth@redhat.com>
5661
5662 * top.h (lim_at_start): Declare.
5663 * main.c (captured_main): Set it.
5664 * top.c (lim_at_start): Define.
5665 (command_loop): Use it instead of &environ.
5666 * event-top.c (command_handler): Likewise.
5667
f4dbdb54
JT
56682003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5669
5670 * mipsnbsd-tdep.c: Update copyright years.
5671 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5672
8f285956
RH
56732003-06-01 Richard Henderson <rth@redhat.com>
5674
98a8e1e5
RH
5675 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5676 (alpha-linux-tdep.o): Update dependencies.
5677 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5678 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5679
615967cb
RH
56802003-06-01 Richard Henderson <rth@redhat.com>
5681
98a8e1e5
RH
5682 * alpha-tdep.c (alpha_register_reggroup_p): New.
5683 (alpha_gdbarch_init): Register it.
615967cb 5684
b59661bd
AC
56852003-06-02 Andrew Cagney <cagney@redhat.com>
5686
5687 * dwarfread.c: Eliminate "register"
5688 (decode_die_type): Eliminate assignment within "if".
5689 (struct_type, decode_array_element_type): Ditto.
5690 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5691 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5692 (decode_modified_type, completedieinfo): Ditto.
5693 * block.c: Eliminate "register".
5694 (blockvector_for_pc_sect): Eliminate assignment within "if".
5695 * cp-support.h (struct symbol): Opaque declaration.
5696 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5697
5ef165c2
RH
56982003-06-01 Richard Henderson <rth@redhat.com>
5699
98a8e1e5
RH
5700 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5701 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5702
143985b7
AF
57032003-06-01 Adam Fedor <fedor@gnu.org>
5704
5705 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5706 * gdbarch.[ch]: Regenerate.
5707 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5708 (hppa_gdbarch_init): Set it in the gdbarch vector.
5709 * i386-tdep.c (i386_fetch_pointer_argument): New
5710 (i386_gdbarch_init): Set it into gdbarch.
5711 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5712 (rs6000_gdbarch_init): Set it in gdbarch.
5713 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5714 (sparc_gdbarch_init): Set it in gdbarch.
5715
ae0167b9
AC
57162003-06-01 Andrew Cagney <cagney@redhat.com>
5717
7c0b4a20
AC
5718 * defs.h (extract_address): Delete declaration.
5719 * findvar.c (extract_address): Delete function.
5720 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5721 extract_address with the inline equivalent,
5722 extract_unsigned_integer.
5723 (xstormy16_extract_struct_value_address): Ditto.
5724 (xstormy16_pointer_to_address): Ditto.
5725 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5726 * v850-tdep.c (v850_push_arguments): Ditto.
5727 (v850_extract_return_value): Ditto.
5728 (v850_extract_struct_value_address): Ditto.
5729 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5730 (sparcnbsd_get_longjmp_target_64): Ditto.
5731 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5732 (get_longjmp_target): Ditto.
5733 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5734 (sh64_extract_struct_value_address): Ditto.
5735 (sh_push_arguments): Ditto.
5736 (sh64_push_arguments): Ditto.
5737 * remote-vxsparc.c (vx_read_register): Ditto.
5738 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5739 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5740 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5741 * mipsv4-nat.c (get_longjmp_target): Ditto.
5742 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5743 * mips-nat.c (get_longjmp_target): Ditto.
5744 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5745 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5746 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5747 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5748 * irix5-nat.c (get_longjmp_target): Ditto.
5749 * irix4-nat.c (get_longjmp_target): Ditto.
5750 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5751 (ia64_push_arguments): Ditto.
5752 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5753 * h8300-tdep.c (h8300_push_arguments): Ditto.
5754 (h8300_store_return_value): Ditto.
5755 (h8300_extract_struct_value_address): Ditto.
5756 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5757 (frv_push_arguments): Ditto.
5758 * avr-tdep.c (avr_pointer_to_address): Ditto.
5759 (avr_push_arguments): Ditto.
5760 * arm-tdep.c (arm_push_dummy_call): Ditto.
5761 (arm_get_longjmp_target): Ditto.
5762 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5763 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5764 (alpha_get_longjmp_target): Ditto.
5765
ae0167b9
AC
5766 * solib-irix.c (extract_mips_address): Inline extract_address,
5767 replacing it with extract_signed_integer.
5768 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5769 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5770 (first_link_map_member, open_symbol_file_object): Ditto.
5771 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5772 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5773 (LM_NEXT, LM_NAME): Ditto.
5774
44d88583
RH
57752003-06-01 Richard Henderson <rth@redhat.com>
5776
98a8e1e5
RH
5777 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5778 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5779 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5780 (alpha_cannot_store_register): Likewise.
5781 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5782 * alpha-nat.c (supply_gregset): Likewise.
5783 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5784
310e9b6a
AC
57852003-06-01 Andrew Cagney <cagney@redhat.com>
5786
5787 * infcall.c (call_function_by_hand): Update comment on
5788 DEPRECATED_DUMMY_WRITE_SP.
5789
5790 * mips-tdep.c (mips_gdbarch_init): Do not set
5791 deprecated_dummy_write_sp.
5792 (mips_eabi_push_dummy_call): Set the SP register.
5793 (mips_o64_push_dummy_call): Set the SP register.
5794 (mips_o32_push_dummy_call): Set the SP register.
5795 (mips_n32n64_push_dummy_call): Set the SP register.
5796
5ab84872
RH
57972003-06-01 Richard Henderson <rth@redhat.com>
5798
98a8e1e5
RH
5799 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5800 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5801 (supply_gregset): Likewise.
5802 * alpha-tdep.c (alpha_store_return_value): Likewise.
5803 (alpha_get_longjmp_target): Likewise.
5804 (alpha_register_name): Constify array.
5805 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5806 deprecated_register_size, deprecated_register_bytes,
5807 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5808 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5809 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5810
09cc52fd
RH
58112003-06-01 Richard Henderson <rth@redhat.com>
5812
5813 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5814 from arg_reg_buffer to regcache to avoid double conversion.
5815
c7f16359
MK
58162003-06-01 Mark Kettenis <kettenis@gnu.org>
5817
5818 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5819 SP_REGNUM.
5820 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5821 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5822
7131cb6e
RH
58232003-06-01 Richard Henderson <rth@redhat.com>
5824
98a8e1e5
RH
5825 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5826 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5827
f3e0f90b
RH
58282003-06-01 Richard Henderson <rth@redhat.com>
5829
98a8e1e5
RH
5830 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5831 not overlapping PC_REGNUM.
f3e0f90b 5832
c88e30c0
RH
58332003-06-01 Richard Henderson <rth@redhat.com>
5834
98a8e1e5
RH
5835 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5836 alpha_push_arguments. Don't dump argument register data to
5837 the target stack. Fix float and 128-bit long double semantics.
5838 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5839 (alpha_fix_call_dummy): Remove.
5840 (alpha_call_dummy_words): Remove.
5841 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5842
f1a559ae
RH
58432003-06-01 Richard Henderson <rth@redhat.com>
5844
5845 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5846
5e045346
AC
58472003-06-01 Andrew Cagney <cagney@redhat.com>
5848
95404a3e
AC
5849 * mips-tdep.c (is_mips16_addr): New function.
5850 (make_mips16_addr, unmake_mips16_addr): New functions.
5851 (pc_is_mips16, mips_fetch_instruction): Use.
5852 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5853 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5854 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5855 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5856 TARGET_MIPS.
5857 * config/mips/tm-mips.h: Update copyright.
5858 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5859 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5860 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5861 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5862 (TM_PRINT_INSN_MACH): Delete.
5863 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5864
5e045346
AC
5865 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5866 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5867 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5868 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5869 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5870 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5871 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5872 mips*-*-riscos* and mips*-*-sysv* onto mips.
5873 * config/mips/mips64.mt: New file.
5874 * config/mips/mips.mt: New file.
5875 * config/mips/littlemips.mt: Delete file.
5876 * config/mips/decstation.mt: Delete file.
5877 * config/mips/vr4300el.mt: Delete file.
5878 * config/mips/vr5000el.mt: Delete file.
5879 * config/mips/vr5000.mt: Delete file.
5880 * config/mips/vr4100.mt: Delete file.
5881 * config/mips/vr4xxxel.mt: Delete file.
5882 * config/mips/vr4300.mt: Delete file.
5883 * config/mips/vr4xxx.mt: Delete file.
5884 * config/mips/bigmips.mt: Delete file.
5885 * config/mips/bigmips64.mt: Delete file.
5886 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5887 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5888 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5889 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5890 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5891 "tm-bigmips.h".
5892 * config/mips/tm-irix3.h: Ditto.
5893 * config/mips/tm-mipsv4.h: Ditto.
5894 * config/mips/tm-embed.h: Ditto.
5895 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5896 "tm-bigmips64.h".
5897 * config/mips/tm-vr5000el.h: Delete file.
5898 * config/mips/tm-tx39l.h: Delete file.
5899 * config/mips/tm-vr4300el.h: Delete file.
5900 * config/mips/tm-vr4xxxel.h: Delete file.
5901 * config/mips/tm-vr4300.h: Delete file.
5902 * config/mips/tm-vr4100.h: Delete file.
5903 * config/mips/tm-vr4xxx.h: Delete file.
5904 * config/mips/tm-vr5000.h: Delete file.
5905 * config/mips/tm-embedl64.h: Delete file.
5906 * config/mips/tm-embedl.h: Delete file.
5907 * config/mips/tm-embed64.h: Delete file.
5908 * config/mips/tm-bigmips64.h: Delete file.
5909 * config/mips/tm-bigmips.h: Delete file.
5910
2473a4a9
MK
59112003-06-01 Mark Kettenis <kettenis@gnu.org>
5912
97a5b208
MK
5913 Fix gdb/1216.
5914 * shnbsd-nat.c: Include "sh-tdep.h".
5915
2473a4a9
MK
5916 From Richard Henderson <rth@redhat.com>:
5917 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5918
e0f7ec59
AC
59192003-05-31 Andrew Cagney <cagney@redhat.com>
5920
5921 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5922 forward declaration.
5923 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5924 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5925 (mips_find_saved_regs): Use set_reg_offset.
5926 (mips_frame_init_saved_regs): Delete function.
5927 (mips_pop_frame): Call mips_find_saved_regs instead of
5928 DEPRECATED_FRAME_INIT_SAVED_REGS.
5929
68dcc709
AC
59302003-05-31 Andrew Cagney <cagney@redhat.com>
5931
5932 * mips-tdep.c (mips_gdbarch_init): Do not set
5933 deprecated_max_register_raw_size, register_virtual_size, and
5934 deprecated_max_register_virtual_size.
5935
cfc14b3a
MK
59362003-05-31 Mark Kettenis <kettenis@gnu.org>
5937
6405b0a6
MK
5938 * i386-tdep.c: Include "dwarf2-frame.h".
5939 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5940 * Makefile.in (i386-tdep.o): Update dependencies.
5941
cfc14b3a
MK
5942 * dwarf2-frame.c, dwarf2-frame.h: New files.
5943 * Makefile.in (SFILES): Add dwarf2-frame.c.
5944 (dwarf2_frame_h): Define.
5945 (COMMON_OBS): Add dwarf2-frame.o.
5946 (dwarf2-frame.o): Add dependencies.
5947
6a2751d2
AJ
59482003-05-31 Andreas Jaeger <aj@suse.de>
5949
5950 * x86-64-linux-nat.c: Fix comment.
5951
1c3545ae
MK
59522003-05-31 Mark Kettenis <kettenis@gnu.org>
5953
10f93086
MK
5954 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5955 function signature.
5956
1c3545ae
MK
5957 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5958 have a sigcontext_addr handler.
5959 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5960 sigcontext_addr handler.
5961
e11c53d2
AC
59622003-05-31 Andrew Cagney <cagney@redhat.com>
5963
5964 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5965 (print_fp_register_row): Replace do_fp_register_row.
5966 (mips_print_fp_register): Add "file" and "frame" parameters.
5967 (mips_print_register): Add "file" and "frame" parameters.
5968 (mips_print_registers_info): Replace mips_do_registers_info.
5969 (mips_gdbarch_init): Set print_registers_info instead of
5970 deprecated_do_registers_info.
5971 (mips_read_fp_register_single): Add "frame" parameter.
5972 (mips_read_fp_register_double): Add "frame" parameter.
5973
a3386186
MK
59742003-05-31 Mark Kettenis <kettenis@gnu.org>
5975
70913449
MK
5976 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5977 Fixes a bug where GDB would print the wrong register names for
5978 targets without SSE.
5979
2b5e0749
MK
5980 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5981 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5982 registers.
5983
5984 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5985 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5986 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5987 TDEP->sc_sp_offset.
5988
a3386186
MK
5989 From Michal Ludvig <mludvig@suse.cz>:
5990 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5991 and `sc_num_regs'.
5992 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5993 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5994 I386_ST0_REGNUM): Move here from...
5995 * i386-tdep.c: ... here.
5996 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5997 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5998 registers if possible.
5999 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6000 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6001 Remove variables.
6002 (i386bsd_sc_reg_offset): New variable.
6003 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6004 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6005 TDEP->sc_sp_offset.
6006 (i386fbsd_sc_reg_offset): New variable.
6007 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6008 TDEP->sc_num_regs.
6009 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6010 variables.
6011 (i386fbsd4_sc_reg_offset): New variable.
6012 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6013 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6014 TDEP->sc_sp_offset.
6015 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6016 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6017 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6018 Remove variables.
6019 (i386nbsd_sc_reg_offset): New variable.
6020 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6021 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6022 TDEP->sc_sp_offset.
6023 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6024 Remove variables.
6025 (i386obsd_sc_reg_offset): New variable.
6026 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6027 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6028 TDEP->sc_sp_offset.
6029 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6030 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6031 for frame pointer offset in `struct sigcontext'.
6032
25ab4790
AC
60332003-05-31 Andrew Cagney <cagney@redhat.com>
6034
6035 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6036 architecture methods call_dummy_words, sizeof_call_dummy_words,
6037 push_return_address, store_struct_return, and fix_call_dummy. Set
6038 push_dummy_call instead of deprecated_push_arguments.
6039 (mips_store_struct_return): Delete function.
6040 (mips_fix_call_dummy): Delete function.
6041 (mips_push_return_address): Delete function.
6042 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6043 RA_REGNUM and T9_REGNUM.
6044 (mips_n32n64_push_dummy_call): Ditto for
6045 mips_n32n64_push_arguments.
6046 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6047 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6048
6a65450a
AC
60492003-05-31 Andrew Cagney <cagney@redhat.com>
6050
6051 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6052 "dummy_addr" to "bp_addr".
6053 * infcall.c (call_function_by_hand): Pass "funaddr" to
6054 gdbarch_push_dummy_call.
6055 * gdbarch.h, gdbarch.c: Re-generate.
6056 * i386-tdep.c (i386_push_dummy_call): Update.
6057 * arm-tdep.c (arm_push_dummy_call): Update.
6058 * d10v-tdep.c (d10v_push_dummy_call): Update.
6059
c4f35dd8
MK
60602003-05-31 Mark Kettenis <kettenis@gnu.org>
6061
6062 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6063 variable declarations.
6064 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6065 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6066 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6067 x86_64_init_frame_pc, x86_64_init_frame_pc,
6068 x86_64_function_has_prologue): Remove prototypes.
6069 (X86_64_NUM_GREGS): New define.
6070 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6071 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6072 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6073 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6074 XMM1_REGNUM): Remove defines.
6075 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6076 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6077 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6078 X86_64_XMM1_REGNUM): New defines.
6079 (struct x86_64_register_info): Renamed from `struct
6080 register_info'. Remove `size' member.
6081 (x86_64_register_info_table): Remove variable.
6082 (x86_64_register_info): New variable.
6083 (X86_64_NUM_REGS): New define.
6084 (X86_64_NUM_GREGS): Remove define.
6085 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6086 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6087 Remove variables.
6088 (x86_54_dwarf2_reg_to_regnum): Remove function.
6089 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6090 (x86_64_dwarf_reg_to_regnum): New function.
6091 (x86_64_register_name): Rewrite.
6092 (x86_64_register_raw_size): Remove function.
6093 (x86_64_register_byte_table): Remove variable.
6094 (x86_64_register_byte): Remove function.
6095 (x86_64_register_virtual_type): Remove function.
6096 (x86_64_register_type): New function.
6097 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6098 x86_64_register_convert_to_raw): Remove functions.
6099 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6100 (x86_64_use_struct_convention): Make static. Adjust for renamed
6101 defines.
6102 (x86_64_frame_init_saved_regs): Remove function.
6103 (x86_64_push_arguments): Make static. Change to accept a regcache
6104 as argument.
6105 (x86_64_store_return_value, x86_64_extract_return_value): Make
6106 static. Rewrite based on i386 counterparts.
6107 (x86_64_push_dummy_call): New function.
6108 (X86_64_NUM_SAVED_REGS): New define.
6109 (x86_64_register_number): Remove function.
6110 (x86_64_store_struct_return): Remove function.
6111 (x86_64_frameless_function_invocation,
6112 x86_64_function_has_prologue): Remove functions.
6113 (PROLOG_BUFSIZE): Remove define.
6114 (struct x86_64_frame_cache): New structure.
6115 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6116 x86_64_frame_cache, x86_64_frame_this_id,
6117 x86_64_frame_prev_register, x86_64_frame_p,
6118 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6119 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6120 functions.
6121 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6122 variables.
6123 (x86_64_skip_prologue): Rewrite in terms of
6124 x86_64_analyze_prologue.
6125 (x86_64_frame_base_address): New function.
6126 (x86_64_frame_base): New variable.
6127 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6128 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6129 set deprecated_fp_regnum, deprecated_register_size,
6130 deprecated_register_bytes, register_raw_size, register_byte,
6131 register_virtual_type, register_convertiable,
6132 register_convert_to_virtual, convert_to_raw,
6133 deprecated_get_saved_register, deprecated_target_read_fp,
6134 deprecated_push_arguments, deprecated_push_return_address,
6135 deprecated_pop_frame, deprecated_store_struct_return,
6136 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6137 frameless_function_invocation, deprecated_frame_saved_pc,
6138 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6139 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6140 deprecated_init_frame_pc and virtual_frame_pointer. Call
6141 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6142 and x86_64_frame_p. Call frame_base_set_default to register
6143 x86_64_frame_base.
6144 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6145 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6146 (_initialize_x86_64_tdep): Remove function.
6147 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6148 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6149 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6150 define.
6151 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6152 (x86_64_linux_sigcontext_addr): Rewrite.
6153 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6154 x86_64_linux_frame_saved_pc): Remove functions.
6155 (x86_64_linux_pc_in_sigtramp): Renamed from
6156 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6157 trampoline.
6158 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6159 Remove_functions.
6160 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6161 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6162 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6163 (x86_64_regmap): Rename to regmap.
6164 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6165 x86_64_num_gregs.
6166 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6167 x86_64_regmap.
6168 (x86_64_fxsave_offset): Remove function.
6169 (supply_fpregset): Simply call x86_64_supply_fxsave.
6170 (fill_fpregset): Simply call x86_64_fill_fxsave.
6171 (fetch_inferior_registers, store_inferior_registers): Avoid
6172 asignment in if-statement.
6173 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6174 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6175 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6176 (fetch_core_registers): Remove function.
6177 (linux_elf_core_fns): Remove.
6178 (offsetoff): Don't define.
6179 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6180 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6181 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6182 add core-regset.o.
6183 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6184 protection against multiple includes instead of NM_X86_64_h. Add
6185 various comments. Include "config/nm-linux.h". Don't include
6186 <signal.h>.
6187 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6188 GET_THREAD_SIGNALS): Remove defines.
6189 (x86_64_register_u_addr, kernel_u_size,
6190 lin_thread_get_thread_signals): Remove prototypes.
6191 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6192 [HAVE_LINK_H]: Don't include "solib.h".
6193 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6194 * config/i386/tm-x86-64linux.h: Fix comments.
6195 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6196 x86-64-tdep.o): Update dependencies.
6197
c25083af
AC
61982003-05-30 Andrew Cagney <cagney@redhat.com>
6199
c8f55a7b
AC
6200 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6201 Change parameter type to a "struct regcache *".
6202
c25083af
AC
6203 * gdbarch.sh: Regardless of the multi-arch level, always define
6204 the macro when not already defined.
6205 * gdbarch.h, gdbarch.c: Re-generate.
6206
fbe586ae
RH
62072003-05-30 Richard Henderson <rth@redhat.com>
6208
6209 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6210 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6211 (alpha_mdebug_frame_this_id): Likewise.
6212 (alpha_mdebug_frame_prev_register): Likewise.
6213 (alpha_mdebug_frame_base_address): Likewise.
6214 (alpha_mdebug_frame_locals_address): Likewise.
6215 (alpha_mdebug_frame_args_address): Likewise.
6216 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6217 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6218 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6219 loop increment.
6220 (alpha_heuristic_frame_this_id): Make static.
6221 (alpha_heuristic_frame_prev_register): Likewise.
6222 (alpha_heuristic_frame_base_address): Likewise.
6223 * alpha-tdep.h: Update.
6224
acd5c798
MK
62252003-05-30 Mark Kettenis <kettenis@gnu.org>
6226
6227 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6228 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6229 defenitions.
6230 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6231 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6232 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6233 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6234 I386_ST0_REGNUM): New defines.
6235 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6236 codestream_get): Remove define.
6237 (codestream_next_addr, condestream_addr, condestream_buf,
6238 codestream_off, codestream_cnt): Remove variables.
6239 (codestream_fill, codestream_seek, codestream_read): Remove
6240 functions.
6241 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6242 functionality.
6243 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6244 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6245 i386_frame_saved_pc, i386_saved_pc_after_call,
6246 i386_frame_num_args, i386_frame_init_saved_regs,
6247 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6248 i386_push_arguments): Remove functions.
6249 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6250 functionality. Use i386_analyze_prologue instead of
6251 i386_get_frame_setup.
6252 (I386_NUM_SAVED_REGS): New define.
6253 (struct i386_frame_cache): New structure.
6254 (i386_alloc_frame_cache, i386_analyze_struct_return,
6255 i386_skip_probe, i386_analyze_frame_setup,
6256 i386_analyze_register_saves, i386_analyze_prologue,
6257 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6258 i386_frame_prev_register, i386_sigtramp_frame_cache,
6259 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6260 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6261 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6262 New functions.
6263 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6264 New variables.
6265 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6266 I386_EAX_REGNUM and I386_EDX_REGNUM.
6267 (i386_extract_return_value, i386_store_return_value): Use
6268 I386_ST0_REGNUM where appropriate.
6269 (i386_extract_struct_value_address): Rewrite to use extract_address.
6270 (i386_svr4_pc_in_sigtramp): Add comment.
6271 (i386_svr4_sigcontext_addr): Rewrite.
6272 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6273 TDEP->sc_sp_offset.
6274 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6275 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6276 of new defines. Set push_dummy_call, don't set
6277 deprecated_push_arguments, deprecated_push_return_address,
6278 deprecated_pop_frame. Don't set parm_boundary. Don't set
6279 deprecated_frame_chain, deprecated_frame_saved_pc,
6280 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6281 save_dummy_frame_tos, unwind_pc. Call
6282 frame_unwind_append_predicate and frame_base_set_default. Don't
6283 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6284 Don't set frameless_function_invocation. Don't set
6285 deprecated_register_bytes, deprecated_register_size,
6286 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6287 * i386-linux-tdep.c: Fix formatting in some comments.
6288 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6289 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6290 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6291 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6292 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6293 redundant parentheses.
6294 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6295 (i386_linux_sigcontext_addr): Use it. Rewrite.
6296 (find_minsym_and_objfile): Change name of second argument.
6297 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6298 changed. Use frame_pc_unwind instead of
6299 DEPRECATED_SAVED_PC_AFTER_CALL.
6300 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6301 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6302 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6303 unwinder.
6304 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6305 "dummy-frame.h".
6306 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6307 (_initialize_i386_cygwin_tdep): New prototype.
6308 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6309 deprecated_frame_chain_valid.
6310 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6311 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6312 Rely on the SVR4 defaults.
6313 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6314 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6315
c89b70f1
AC
63162003-05-30 Andrew Cagney <cagney@redhat.com>
6317
6318 * infcall.c (call_function_by_hand): Always call
6319 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6320
85b32d22
RH
63212003-05-30 Richard Henderson <rth@redhat.com>
6322
c89b70f1
AC
6323 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6324 increment.
85b32d22 6325
bfe51b1e
JB
63262003-05-29 Jim Blandy <jimb@redhat.com>
6327
6328 Use gdbarch methods for solib stuff on PowerPC Linux.
6329 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6330 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6331 show through.
6332 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6333 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6334 giving the same effect as the #definitions above.
6335
1abf022c
AF
63362003-05-29 Adam Fedor <fedor@gnu.org>
6337
6338 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6339 (find_implementation_from_class): Replace it with the standard
6340 case i.e. do nothing.
6341
d2427a71
RH
63422003-05-29 Richard Henderson <rth@redhat.com>
6343
6344 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6345 (alpha_linux_sigtramp_offset): Use it. Make static.
6346 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6347 update for new frame model.
6348 * alpha-mdebug-tdep.c: New file.
6349 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6350 (alpha_osf1_init_abi): Install it.
6351 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6352 (linked_proc_desc_table): Remove.
6353 (alpha_frame_past_sigtramp_frame): Remove.
6354 (alpha_dynamic_sigtramp_offset): Remove.
6355 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6356 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6357 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6358 (push_sigtramp_desc): Remove.
6359 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6360 (alpha_cannot_store_register): Likewise.
6361 (alpha_sigcontext_addr): Remove.
6362 (alpha_find_saved_regs): Remove.
6363 (alpha_frame_init_saved_regs): Remove.
6364 (alpha_init_frame_pc_first): Remove.
6365 (read_next_frame_reg): Remove.
6366 (alpha_frame_saved_pc): Remove.
6367 (alpha_saved_pc_after_call): Remove.
6368 (temp_proc_desc, temp_saved_regs): Remove.
6369 (alpha_about_to_return): Remove.
6370 (cached_proc_desc): Remove.
6371 (alpha_frame_chain): Remove.
6372 (alpha_print_extra_frame_info): Remove.
6373 (alpha_init_extra_frame_info): Remove.
6374 (alpha_frame_locals_address): Remove.
6375 (alpha_frame_args_address): Remove.
6376 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6377 (alpha_push_dummy_frame): Remove.
6378 (alpha_pop_frame): Remove.
6379 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6380 (alpha_read_insn): New.
6381 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6382 for different insn encodings.
6383 (alpha_in_lenient_prologue): Remove.
6384 (struct alpha_sigtramp_unwind_cache): New.
6385 (alpha_sigtramp_frame_unwind_cache): New.
6386 (alpha_sigtramp_register_address): New.
6387 (alpha_sigtramp_frame_this_id): New.
6388 (alpha_sigtramp_frame_prev_register): New.
6389 (alpha_sigtramp_frame_unwind): New.
6390 (alpha_sigtramp_frame_p): New.
6391 (struct alpha_heuristic_unwind_cache): New.
6392 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6393 don't count nop insns that occur between functions.
6394 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6395 heuristic_proc_desc, but without the mdebug wrapping.
6396 (alpha_heuristic_frame_this_id): New.
6397 (alpha_heuristic_frame_prev_register): New.
6398 (alpha_heuristic_frame_unwind): New.
6399 (alpha_heuristic_frame_p): New.
6400 (alpha_heuristic_frame_base_address): New.
6401 (alpha_heuristic_frame_base): New.
6402 (alpha_unwind_dummy_id): New.
6403 (alpha_unwind_pc): New.
6404 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6405 frame related deprecated initializations; install replacements.
6406 (alpha_dump_tdep): Remove.
6407 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6408 (alpha_read_insn, alpha_after_prologue,
6409 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6410 alpha_heuristic_frame_prev_register,
6411 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6412 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6413 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6414 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6415
93ec1121
AC
64162003-05-29 Andrew Cagney <cagney@redhat.com>
6417
6418 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6419 dependant on the availability of ASSERT_FUNCTION.
6420 (ASSERT_FUNCTION): Do not define when there is no function name.
6421
98f08d3d
KB
64222003-05-29 Kevin Buettner <kevinb@redhat.com>
6423
6424 From Jimi X <jimix@watson.ibm.com>:
6425 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6426
0897f59b
JB
64272003-05-28 Jim Blandy <jimb@redhat.com>
6428
6429 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6430 argument to ptrace to int; the system headers should give it the
6431 right type, and pointers don't fit in ints on powerpc64-*-*.
6432
14898363
L
64332003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6434
6435 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6436 DW_TAG_catch_block.
6437
a7a48797
EZ
64382003-05-26 Elena Zannoni <ezannoni@redhat.com>
6439
6440 * stabsread.c (dbx_lookup_type): Make static.
6441 (read_type): Ditto.
6442 (add_undefined_type): Ditto.
6443 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6444 not export.
6445
f5479e9c
EZ
64462003-05-26 Elena Zannoni <ezannoni@redhat.com>
6447
6448 * hpread.c (hpread_has_name): Make static.
6449 (hpread_psymtab_to_symtab): Ditto.
6450 (file_exists): Ditto.
6451 (hpread_call_pxdb): Ditto.
6452 (hpread_pxdb_needed): Ditto.
6453 (hpread_quick_traverse): Ditto.
6454 (hpread_get_header): Ditto.
6455 (hpread_get_lntt): Ditto.
6456 (hpread_get_slt): Ditto.
6457 (class_of): Ditto.
6458
eb2e12d7
AS
64592003-05-25 Andreas Schwab <schwab@suse.de>
6460
78bf922a
AS
6461 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6462 stack_align and deprecated_extra_stack_alignment_needed.
6463 (m68k_stack_align): Delete.
6464
eb2e12d7
AS
6465 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6466 (m68k_register_virtual_size): Likewise.
6467 (altos_skip_prologue): Remove obsolete function.
6468 (isi_frame_num_args): Likewise.
6469 (news_frame_num_args): Likewise.
6470 (m68k_fix_call_dummy): Make static.
6471 (m68k_push_dummy_frame): Likewise.
6472 (m68k_pop_frame): Likewise.
6473 (m68k_skip_prologue): Likewise.
6474 (m68k_frame_init_saved_regs): Likewise.
6475 (m68k_saved_pc_after_call): Likewise.
6476 (m68k_get_longjmp_target): Make multi-arch.
6477 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6478 structure. Register m68k_get_longjmp_target if enabled.
6479 * m68k-tdep.h (struct gdbarch_tdep): Define.
6480 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6481
6482 * Makefile.in (config.status): Also depend on configure.tgt
6483 and configure.host.
6484 (m68klinux-tdep.o): Update dependencies.
6485 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6486 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6487 (M68K_LINUX_JB_PC): Define.
6488 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6489 and take additional parameter.
6490 (m68k_linux_sigtramp_saved_pc): Update.
6491 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6492 m68k_linux_pc_in_sigtramp, in_plt_section,
6493 find_solib_trampoline_target.
6494 * config/m68k/tm-linux.h: Don't include any tm headers.
6495 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6496 (JB_ELEMENT_SIZE): Likewise.
6497 (JB_PC): Likewise.
6498 (GET_LONGJMP_TARGET): Likewise.
6499 (IN_SIGTRAMP): Likewise.
6500 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6501
eb2c22dc
MK
65022003-05-25 Mark Kettenis <kettenis@gnu.org>
6503
6504 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6505 (sparc32_push_arguments): Re-implement by calling
6506 sparc32_do_push_arguments.
6507
44b7b84e
MK
65082003-05-25 Mark Kettenis <kettenis@gnu.org>
6509
6510 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6511 SPARC_O1_REGNUM): New defines.
6512 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6513 (sparc32_store_return_value): New function.
6514 (sparc_extract_struct_value_address): Rewrite to operate on a
6515 regcache.
6516 (sparc_gdbarch_init): Don't set
6517 deprecated_extract_struct_value_address. Set
6518 extract_struct_value_address instead. Don't set
6519 deprecated_extract_return_value and deprecated_store_return_value
6520 for 32-bit targets. Set extract_return_value and
6521 store_return_value instead.
6522 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6523 DEPRECTAED_EXTRACT_RETURN_VALUE,
6524 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6525 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6526 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6527 (sparc_store_return_value): Remove prototype.
6528 (sparc32_store_return_value): New prototype.
6529 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6530 Adjust prototypes.
6531
f6ad61e3
MK
65322003-05-24 Mark Kettenis <kettenis@gnu.org>
6533
6534 * sparcnbsd-tdep.c: Include "gdb_string.h".
6535
b276f1bb
AC
65362003-05-23 Andrew Cagney <cagney@redhat.com>
6537
6538 * p-valprint.c (pascal_val_print): Replace extract_address with
6539 the inline equivalent extract_unsigned_integer.
6540 * jv-valprint.c (java_value_print): Ditto.
6541 * ada-valprint.c (ada_val_print_1): Ditto.
6542 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6543
e76c5fcc
TR
65442003-05-23 Theodore A. Roth <troth@openavr.org>
6545
6546 * blockframe.c (frameless_look_for_prologue): Remove unused
6547 after_prologue variable.
6548
2cdd89cb
MK
65492003-05-23 Mark Kettenis <kettenis@gnu.org>
6550
6551 * blockframe.c (get_pc_function_start): Rewrite to avoid
6552 asignments in if-statements.
6553
182d43bc
EZ
65542003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6555
6556 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6557 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6558 files, don't relocate absolute symbols (and do use mst_abs).
6559
e8f3fcdd
AC
65602003-05-23 Andrew Cagney <cagney@redhat.com>
6561
6562 * objc-lang.c: Include "gdb_assert.h".
6563 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6564 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6565 (gdb_check, gdb_check_fatal): Delete functions.
6566 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6567 gdb_assert.
6568 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6569 * Makefile.in (objc-lang.o): Update dependencies.
6570
3c23e6fb
ILT
65712003-05-22 Ian Lance Taylor <ian@airs.com>
6572
6573 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6574 with fprintf_filtered, not fprintf_unfiltered.
6575
af1342ab
AC
65762003-05-22 Andrew Cagney <cagney@redhat.com>
6577
6578 * stack.c (frame_info): Inline extract_address, replacing it with
6579 extract_unsigned_integer.
6580 * findvar.c (unsigned_pointer_to_address): Ditto.
6581 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6582 * dwarf2expr.c (dwarf2_read_address): Ditto.
6583 * frame.c (frame_pc_unwind): Update comment.
6584 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6585
47e242ec
JJ
65862003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6587
6588 * infptrace.c (detach): Call print_sys_errmsg rather than
6589 perror_with_name to issue warning message when errno is non-zero
6590 after calling ptrace detach.
6591
e2ac8128
JB
65922003-05-21 J. Brobecker <brobecker@gnat.com>
6593
6594 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6595 macro definitions from here...
6596 * hppa-tdep.c: ...to there.
6597
92b3541e
KB
65982003-05-20 Kevin Buettner <kevinb@redhat.com>
6599
6600 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6601 register_ptrace_addr(). Fix all callers.
6602
55809acb
AS
66032003-05-21 Andreas Schwab <schwab@suse.de>
6604
6605 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6606 dependencies.
6607 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6608 end.
6609 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6610 (_initialize_m68k_linux_tdep): New function.
6611 (m68k_linux_frame_saved_pc): Make static.
6612 (m68k_linux_extract_return_value): Likewise.
6613 (m68k_linux_store_return_value): Likewise.
6614 (m68k_linux_extract_struct_value_address): Likewise.
6615 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6616 Remove.
6617 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6618 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6619 (DEPRECATED_FRAME_SAVED_PC): Remove.
6620
0fbc10f7
KW
66212003-05-20 Kris Warkentin <kewarken@qnx.com>
6622
6623 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6624 regset numbering rather than our own.
6625
58da2eb2
DC
66262003-05-19 David Carlton <carlton@bactrian.org>
6627
6628 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6629
1fcb5155
DC
66302003-05-19 David Carlton <carlton@bactrian.org>
6631
6632 Partial fix for PR c++/827.
6633 * cp-support.h: Include symtab.h.
6634 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6635 * cp-namespace.c: Update contributors.
6636 (cp_lookup_symbol_nonlocal): New.
6637 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6638 (lookup_symbol_file): Ditto.
6639 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6640 * block.h: Declare block_scope, block_using, block_global_block.
6641 * block.c (block_scope): New.
6642 (block_using, block_global_block): Ditto.
6643 * Makefile.in (cp_support_h): Depend on symtab_h.
6644 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6645
5f9a71c3
DC
66462003-05-19 David Carlton <carlton@bactrian.org>
6647
6648 * language.h (struct language_defn): Add 'la_value_of_this'
6649 and 'la_lookup_symbol_nonlocal' members.
6650 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6651 lookup_symbol_static, lookup_symbol_global,
6652 lookup_symbol_aux_block.
6653 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6654 if we should search fields of this and how to do static/global
6655 lookup.
6656 (lookup_symbol_aux_block): Make extern.
6657 (basic_lookup_symbol_nonlocal): New.
6658 (lookup_symbol_static, lookup_symbol_global): Ditto.
6659 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6660 'la_lookup_symbol_nonlocal' members.
6661 * c-lang.c (c_language_defn, cplus_language_defn)
6662 (asm_language_defn, minimal_language_defn): Ditto.
6663 * jv-lang.c (java_language_defn): Ditto.
6664 * language.c (unknown_language_defn, auto_language_defn)
6665 (local_language_defn): Ditto.
6666 * m2-lang.c (m2_language_defn): Ditto.
6667 * objc-lang.c (objc_language_defn): Ditto.
6668 * scm-lang.c (scm_language_defn): Ditto.
6669 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6670 * p-lang.c (pascal_language_defn): Ditto for both.
6671 * Makefile.in (f-lang.o): Depend on value_h.
6672 (p-lang.o): Ditto.
6673
89a9d1b1
DC
66742003-05-19 David Carlton <carlton@bactrian.org>
6675
6676 * block.h: Declare block_static_block.
6677 * block.c (block_static_block): New.
6678 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6679 lookup_symbol_aux_local, calling block_static_block instead.
6680 (lookup_symbol_aux_local): Delete 'static_block' argument.
6681
eed3f8ab
DC
66822003-05-19 David Carlton <carlton@bactrian.org>
6683
6684 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6685
a09d8bda
ML
66862003-05-19 Michal Ludvig <mludvig@suse.cz>
6687
6688 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6689 register numbers mapping.
6690
69636828
AF
66912003-05-18 Adam Fedor <fedor@gnu.org>
6692
6693 * symtab.c (completion_list_objc_symbol): New function.
6694 (make_symbol_completion_list): Use it to add ObjC symbols
6695 when looking though the list.
6696 (language_search_unquoted_string): New function.
6697 (make_file_symbol_completion_list): Use it.
6698
55baeb84
AS
66992003-05-18 Andreas Schwab <schwab@suse.de>
6700
d0b45d99
AS
6701 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6702 dependencies.
6703 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6704 as m68k_linux_extract_return_value.
6705 (DEPRECATED_STORE_RETURN_VALUE): Define as
6706 m68k_linux_store_return_value.
6707 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6708 m68k_linux_extract_struct_value_address.
6709 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6710 get_next_frame, get_frame_base, get_frame_pc.
6711 (m68k_linux_frame_saved_pc): Use get_frame_base.
6712 (m68k_linux_extract_return_value): New function.
6713 (m68k_linux_store_return_value): New function.
6714 (m68k_linux_extract_struct_value_address): New function.
6715 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6716
55baeb84
AS
6717 * c-exp.y (typebase): Remove duplicate occurence of
6718 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6719 of lookup_signed_typename.
55baeb84 6720
b6b08ebf
MK
67212003-05-18 Mark Kettenis <kettenis@gnu.org>
6722
6723 * dwarf2loc.c (find_location_expression): Change type of second
6724 argument to `size_t *'.
6725 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6726 for size variable.
6727
5ad1c190
DC
67282003-05-18 David Carlton <carlton@bactrian.org>
6729
6730 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6731 'linkage_name'. Add comment.
6732 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6733 'linkage_name'.
6734 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6735 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6736 (lookup_block_symbol): Ditto.
6737
b8b527c5
AC
67382003-05-16 Andrew Cagney <cagney@redhat.com>
6739
6740 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6741 * gdbarch.h, gdbarch.c: Re-generate.
6742 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6743 * TODO (REGISTER_BYTES): Delete reference.
6744 * alpha-tdep.c (alpha_gdbarch_init): Update.
6745 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6746 * x86-64-tdep.c (x86_64_init_abi): Update.
6747 * vax-tdep.c (vax_gdbarch_init): Update.
6748 * v850-tdep.c (v850_gdbarch_init): Update.
6749 * sparc-tdep.c (sparc_gdbarch_init): Update.
6750 * sh-tdep.c (sh_gdbarch_init): Update.
6751 * s390-tdep.c (s390_gdbarch_init): Update.
6752 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6753 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6754 (ns32k_gdbarch_init_32382): Update.
6755 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6756 * mcore-tdep.c (mcore_gdbarch_init): Update.
6757 * m68k-tdep.c (m68k_gdbarch_init): Update.
6758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6759 * ia64-tdep.c (ia64_gdbarch_init): Update.
6760 * i386-tdep.c (i386_gdbarch_init): Update.
6761 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6762 * hppa-tdep.c (hppa_gdbarch_init): Update.
6763 * h8300-tdep.c (h8300_gdbarch_init): Update.
6764 * frv-tdep.c (frv_gdbarch_init): Update.
6765 * cris-tdep.c (cris_gdbarch_init): Update.
6766 * avr-tdep.c (avr_gdbarch_init): Update.
6767 * arm-tdep.c (arm_gdbarch_init): Update.
6768 * sparc-tdep.c (sparc_pop_frame): Update.
6769 * rs6000-tdep.c (rs6000_pop_frame): Update.
6770 * remote.c (init_remote_state): Update.
6771 (remote_prepare_to_store): Update.
6772 * remote-vx.c (vx_prepare_to_store): Update.
6773 * remote-sds.c (sds_fetch_registers): Update.
6774 (sds_prepare_to_store): Update.
6775 * remote-array.c: Update.
6776 * regcache.c (init_legacy_regcache_descr): Update.
6777 (init_regcache_descr): Update.
6778 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6779 (mips_o64_extract_return_value): Update.
6780 * irix5-nat.c (fetch_core_registers): Update.
6781 * irix4-nat.c (fetch_core_registers): Update.
6782 * i386-tdep.h: Update.
6783 * hppa-tdep.c (pa_do_registers_info): Update.
6784 (pa_do_strcat_registers_info): Update.
6785 * cris-tdep.c (cris_register_bytes_ok): Update.
6786 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6787 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6788 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6789 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6790 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6791 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6792 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6793 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6794 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6795 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6796 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6797 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6798 (REGISTER_BYTES_OK): Update.
6799 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6800 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6801
ee2842e2
ILT
68022003-05-16 Ian Lance Taylor <ian@airs.com>
6803
6804 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6805 (vax_print_insn, print_insn_arg): Remove static functions.
6806 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6807 print_insn_vax from opcodes library.
6808 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6809
973177d3
AC
68102003-05-15 Andrew Cagney <cagney@redhat.com>
6811
aaab4dba
AC
6812 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6813 * target.h (memory_breakpoint_from_pc): Delete declaration.
6814 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6815 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6816 * monitor.c (monitor_insert_breakpoint): Use
6817 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6818 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6819 * gdbarch.h, gdbarch.c: Re-generate.
6820 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6821 (sparc_gdbarch_init): Set breakpoint_from_pc to
6822 sparc_breakpoint_from_pc.
6823 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6824 (BREAKPOINT_FROM_PC): Define.
6825 (sparc_breakpoint_from_pc): Declare.
6826 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6827 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6828 (BREAKPOINT_FROM_PC): Define.
6829 (BREAKPOINT): Delete macro.
6830 * target.h: Update comment.
6831 * s390-tdep.c (s390_gdbarch_init): Update comments.
6832 * remote.c: Update comments.
6833 * remote-mips.c: Update comments.
6834 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6835 * mem-break.c: Update comment.
6836 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6837 (ia64_memory_insert_breakpoint): Update.
6838 * config/sparc/tm-sparc.h: Update comment.
6839 * config/pa/tm-hppa64.h: Update comment.
6840 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6841 (rs6000_breakpoint_from_pc): Update.
6842 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6843 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6844 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6845 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6846 (mips_breakpoint_from_pc): Update.
6847 (mips_dump_tdep): Update.
6848
e06963ff
AC
6849 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6850 * minsyms.c (lookup_minimal_symbol): Inline
6851 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6852
973177d3
AC
6853 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6854 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6855 * p-lang.c (pascal_printstr): Ditto.
6856 * objc-lang.c (objc_printstr): Ditto.
6857 * m2-lang.c (m2_printstr): Ditto.
6858 * jv-valprint.c (java_print_value_fields): Ditto.
6859 * f-lang.c (f_printstr): Ditto.
6860 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6861 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6862 for repeat_count_threshold.
6863 * Makefile.in (cp-valprint.o): Update dependencies.
6864
5ea2bd7f 68652003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6866
5ea2bd7f
JJ
6867 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6868 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6869 they start with mov r2,r12. Support skipping over indirect stores
6870 of the input registers. Upon hitting a non-nop branch instruction
6871 or predicated instruction, bail out by setting lim_pc to the current
6872 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6873 beyond our calculated value and we have trust_limit set,
6874 use the lim_pc value.
6875
cc8c88f3
AC
68762003-05-15 Andrew Cagney <cagney@redhat.com>
6877
6878 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6879 generic_find_dummy_frame.
6880 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6881 (deprecated_generic_find_dummy_frame): Update.
6882 (deprecated_read_register_dummy): Update.
6883 * frame.c (deprecated_generic_get_saved_register): Update.
6884
909cd28e
TR
68852003-05-15 Theodore A. Roth <troth@openavr.org>
6886
6887 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6888 (avr_gdbarch_init): Set breakpoint_from_pc method.
6889
b923b08d
AC
68902003-05-15 Andrew Cagney <cagney@redhat.com>
6891
6892 * regcache.c (build_regcache): Set deprecated_register_valid
6893 directly.
6894 (deprecated_grub_regcache_for_register_valid): Delete function.
6895 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6896 declaration.
6897
ae2f03ac 68982003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6899
6900 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6901 * symtab.c (lookup_symbol_aux): Delete calls to
6902 lookup_symbol_aux_minsyms.
6903 (lookup_symbol_aux_minsyms): Comment out function and
6904 prototype. Delete lookup by mangled name.
ae2f03ac 6905
18ec9831
KB
69062003-05-14 Kevin Buettner <kevinb@redhat.com>
6907
6908 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6909 correctly indicate an empty stack and ``stack_allocated'' to the
6910 indicate the number of elements initially allocated.
6911 (dwarf_expr_grow_stack): Simplify method for computing new
6912 stack size. Don't loop infinitely if ``stack_len'' is zero.
6913 (execute_stack_op): Move ``ctx->in_reg'' initialization
6914 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6915 be used in conjuction with DW_OP_piece. Revise error message
6916 accordingly.
6917
de18ac1f
TR
69182003-05-14 Theodore A. Roth <troth@openavr.org>
6919
6920 * MAINTAINERS: Update my email address.
6921 * avr-tdep.c: Ditto.
6922
176620f1
EZ
69232003-05-14 Elena Zannoni <ezannoni@redhat.com>
6924
6925 * symtab.h (enum domain_enum): Rename from namespace_enum.
6926 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6927 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6928 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6929 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6930 TYPES_NAMESPACE, METHODS_NAMESPACE.
6931 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6932 (struct symbol, struct partial_symbol): Rename field
6933 'namespace_enum namespace' to 'domain_enum domain'.
6934 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6935 Delete old define kludge for namespace.
6936
6937 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6938 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6939 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6940 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6941 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6942 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6943 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6944 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6945 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6946 occurrences of the above.
6947
b7f31508
ILT
69482003-05-14 Ian Lance Taylor <ian@airs.com>
6949
6950 * Makefile.in (install-only): Use $(SHELL) when running
6951 mkinstalldirs.
6952
2fdbdd39
ILT
69532003-05-13 Ian Lance Taylor <ian@airs.com>
6954
a208d82c
ILT
6955 * MAINTAINERS (write after approval): Add myself.
6956
2fdbdd39
ILT
6957 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6958 second and third arguments.
6959 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6960 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6961
fbd9dcd3
AC
69622003-05-13 Andrew Cagney <cagney@redhat.com>
6963
6964 * defs.h (store_address): Delete declaration.
6965 findvar.c (store_address): Delete function.
6966 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6967 store_unsigned_integer.
6968 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6969 * v850-tdep.c (v850_push_arguments): Ditto.
6970 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6971 * sh-tdep.c (sh64_get_saved_register): Ditto.
6972 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6973 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6974 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6975 (mips_get_saved_register): Ditto.
6976 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6977 (find_func_descr, ia64_push_arguments): Ditto.
6978 * i386-tdep.c (i386_push_arguments): Ditto.
6979 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6980 * frv-tdep.c (frv_push_arguments): Ditto.
6981 * frame.c (legacy_saved_regs_prev_register): Ditto.
6982 (deprecated_generic_get_saved_register): Ditto.
6983 * findvar.c (unsigned_address_to_pointer): Ditto.
6984 * dwarf2read.c (dwarf2_const_value): Ditto.
6985 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6986 * alpha-tdep.c (alpha_push_arguments): Ditto.
6987
6760f9e6
JB
69882003-05-12 J. Brobecker <brobecker@gnat.com>
6989
6990 * NEWS: Mention that the hppa-hpux port has been partially
6991 multiarched (32bit ABIT only, so far).
6992
30e221b4
AC
69932003-05-11 Andrew Cagney <cagney@redhat.com>
6994
6995 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6996 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6997 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6998 sim/testsuite/sim/arm/misaligned2.ms, and
6999 sim/testsuite/sim/arm/misaligned3.ms.
7000 * disasm.h (struct ui_file): Add opaque struct declaration.
7001 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7002 * frame.h (struct ui_file): Ditto.
7003
dea7f9ba
MK
70042003-05-11 Mark Kettenis <kettenis@gnu.org>
7005
7006 * value.h: Pretty print.
7007
01986c48
MK
70082003-05-10 Mark Kettenis <kettenis@gnu.org>
7009
7010 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7011
123a958e
AC
70122003-05-08 Andrew Cagney <cagney@redhat.com>
7013
7014 * regcache.h (max_register_size): Delete declaration.
7015 * regcache.c (max_register_size): Delete function.
7016 (struct regcache_descr): Delete field "max_register_size".
7017 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7018 registers fit in MAX_REGISTER_SIZE.
7019 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7020 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7021 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7022 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7023 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7024 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7025 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7026 * dve3900-rom.c, hppa-tdep.c: Ditto.
7027
eb294659
DC
70282003-05-08 David Carlton <carlton@math.stanford.edu>
7029
7030 * valops.c (push_word): Fix typo.
7031
d9d9c31f
AC
70322003-05-08 Andrew Cagney <cagney@redhat.com>
7033
7034 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7035 * gdbarch.h: Re-generate.
7036 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7037 (legacy_max_register_raw_size): Delete declaration.
7038 * regcache.c (legacy_max_register_raw_size): Delete function.
7039 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7040 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7041 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7042 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7043 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7044 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7045 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7046 * findvar.c, dwarf2cfi.c: Ditto.
7047
22540ece
AC
70482003-05-08 Andrew Cagney <cagney@redhat.com>
7049
7050 * mips-tdep.c (read_signed_register): New function, moved to here
7051 from "regcache.c".
7052 (read_signed_register_pid): Ditto.
7053 * regcache.c (read_signed_register_pid): Delete function, moved to
7054 "mips-tdep.c".
7055 (read_signed_register): Ditto.
7056 * regcache.h (read_signed_register): Delete declaration.
7057 (read_signed_register_pid): Delete declaration.
7058
0c92afe8
AC
70592003-05-08 Andrew Cagney <cagney@redhat.com>
7060
7061 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7062 * gdbarch.h: Re-generate.
7063 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7064 (legacy_max_register_virtual_size): Delete declaration.
7065 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7066 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7067 * tracepoint.c (memrange_sortmerge): Ditto.
7068 * sparc-tdep.c (sparc_print_registers): Ditto.
7069 * regcache.c (legacy_max_register_virtual_size): Delete function.
7070
6037b830
JB
70712002-05-08 J. Brobecker <brobecker@gnat.com>
7072
7073 * fork-child.c (escape_bang_in_quoted_argument): New function.
7074 (fork_inferior): Escape '!' characters in quoted arguments
7075 only when needed.
7076
5d62c8b1
JB
70772003-05-08 J. Brobecker <brobecker@gnat.com>
7078
7079 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7080 the language of the CU is not currently supported by GDB.
7081
20a0e81d
JB
70822003-05-08 J. Brobecker <brobecker@gnat.com>
7083
7084 * defs.h (language): Add language_minimal enum value.
7085 * c-lang.c (minimal_language_defn): New language definition.
7086 (_initialize_c_language): Add the new minimal language to the list
7087 of languages known to GDB.
7088
710ee10a
KB
70892003-05-08 Kevin Buettner <kevinb@redhat.com>
7090
7091 * frame.c (get_frame_type): Don't attempt to lazily initialize
7092 frame's unwinder for legacy frames.
7093
1750fa04
AC
70942003-05-07 Andrew Cagney <cagney@redhat.com>
7095
7096 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7097 and "regcache" parameters.
7098 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7099
ddf9f258 71002003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7101
7102 * dwarf2read.c (dwarf_decode_lines): Only use output of
7103 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7104 the current address.
7105
87767c29
AC
71062003-05-07 Andrew Cagney <cagney@redhat.com>
7107
7108 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7109 code.
7110
5e7b2f39
JB
71112003-05-07 Jim Blandy <jimb@redhat.com>
7112
7113 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7114 'maint info symtabs' and 'maint info psymtabs'.
7115 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7116 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7117 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7118 Declarations updated.
7119 * maint.c (maintenance_list_command): Delete.
7120 (_initialize_maint_cmds): Update calls to add_cmd.
7121 * gdbcmd.h (maintenancelistlist): Delete declaration.
7122 * cli/cli-cmds.c (maintenancelistlist): Delete.
7123 (init_cmd_lists): Don't initialize it.
7124 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7125
f6684c31
AC
71262003-05-07 Andrew Cagney <cagney@redhat.com>
7127
7128 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7129 "regcache".
7130 (d10v_print_registers_info): Update.
7131 (d10v_dmap_register, d10v_imap_register): Delete functions.
7132 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7133 and "imap_register".
7134 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7135 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7136 * arch-utils.c (generic_remote_translate_xfer_address): Add
7137 "regcache" and "gdbarch" parameters.
7138 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7139 parameter. Change class to multi-arch.
7140 * gdbarch.h, gdbarch.c: Re-generate.
7141 * remote.c (remote_xfer_memory): Use
7142 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7143
e4846b08
JJ
71442003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7145
7146 * infrun.c (prev_pc): Move declaration ahead of proceed().
7147 (proceed): Refresh prev_pc value before resuming.
7148 (stop_stepping): Remove code to refresh prev_pc.
7149
6b71b8ac
KW
71502003-05-06 Kris Warkentin <kewarken@qnx.com>
7151
7152 * nto-tdep.c: Removed stray comment.
7153
47979a4b
KW
71542003-05-06 Kris Warkentin <kewarken@qnx.com>
7155
7156 * i386-nto-tdep.c: Fix old K&R function definitions.
7157 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7158 Also change add_show_from_set() call to add_setshow_cmd().
7159 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7160
00905d52
AC
71612003-05-05 Andrew Cagney <cagney@redhat.com>
7162
7163 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7164 (fprint_dummy_frames): New function.
7165 (maintenance_print_dummy_frames): New function.
7166 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7167 * frame.c (fprint_frame_id): Make global.
7168 * frame.h (fprint_frame_id): Declare.
7169 * Makefile.in (dummy-frame.o): Update dependencies.
7170
b1e29e33
AC
71712003-05-05 Andrew Cagney <cagney@redhat.com>
7172
7173 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7174 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7175 SIZEOF_CALL_DUMMY_WORDS.
7176 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7177 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7178 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7179 CALL_DUMMY_BREAKPOINT_OFFSET.
7180 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7181 CALL_DUMMY_START_OFFSET.
7182 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7183 * gdbarch.h, gdbarch.c: Re-generate.
7184 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7185 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7186 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7187 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7188 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7189 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7190 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7191 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7192 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7193 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7194 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7195 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7196 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7197 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7198 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7199
72002003-05-05 Kris Warkentin <kewarken@qnx.com>
7201
7202 * configure.tgt: Add i[3456]86-*-nto*.
7203 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7204 * nto-tdep.c: New file. Neutrino target support routines.
7205 * nto-tdep.h: New file. Neutrino target header.
7206 * config/tm-qnxnto.h: New file.
7207 * config/i386/i386nto.mt: New file.
7208 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7209
0ce3d317
AC
72102003-05-04 Andrew Cagney <cagney@redhat.com>
7211
7212 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7213 (load_infrun_state): Ditto.
7214 (struct thread_info): Drop "prev_func_name" field.
7215 * thread.c (load_infrun_state): Update.
7216 (save_infrun_state): Update.
7217 * infrun.c (prev_func_name): Delete variable.
7218 (init_wait_for_inferior): Do not clear prev_func_name.
7219 (stop_stepping, keep_going, context_switch): Do not swap
7220 prev_func_name.
7221 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7222 instead of PC_IN_SIGTRAMP.
7223
46654a5b
AC
72242003-05-04 Andrew Cagney <cagney@redhat.com>
7225
7226 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7227 REGISTER_BYTE with register_offset_hack.
7228 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7229 that REGISTER_BYTE is consistent with the regcache.
7230 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7231 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7232
14b08c1b
MK
72332003-05-04 Mark Kettenis <kettenis@gnu.org>
7234
04c8243f
MK
7235 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7236 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7237
14b08c1b
MK
7238 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7239
c7a11e01
JB
72402003-05-03 J. Brobecker <brobecker@gnat.com>
7241
7242 From Thierry Schneider <tpschneider1@yahoo.com>
7243 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7244 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7245 (mi-cmd-symbol.o): Add rule.
7246
7043d8dc
AC
72472003-05-03 Andrew Cagney <cagney@redhat.com>
7248
7249 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7250 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7251 * gdbarch.h, gdbarch.c: Re-generate.
7252 * d10v-tdep.c (d10v_push_dummy_code): New function.
7253 (d10v_gdbarch_init): Set push_dummy_code.
7254 * infcall.c (legacy_push_dummy_code): New function.
7255 (generic_push_dummy_code): New function.
7256 (push_dummy_code): New function.
7257 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7258 instead of dummy_addr, to push_dummy_call. Move call to
7259 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7260 switch.
7261 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7262
92bf2b80
AC
72632003-05-03 Andrew Cagney <cagney@redhat.com>
7264
7265 * disasm.h (print_insn): Declare.
7266 * disasm.c (init_gdb_disassemble_info): New function.
7267 (gdb_disassembly): Call init_gdb_disassemble_info.
7268 (gdb_print_insn): New function.
7269 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7270 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7271 * mcore-tdep.c: Include "disasm.h"
7272 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7273 * d10v-tdep.c: Include "disasm.h".
7274 (display_trace): Call gdb_print_insn, instead of print_insn.
7275 (print_insn): Delete function.
7276 * printcmd.c: Include "disasm.h".
7277 (print_insn): Delete function.
7278 (print_formatted): Call gdb_print_insn, instead of print_insn.
7279 * Makefile.in (printcmd.o): Update dependencies.
7280 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7281
27d94c49
AC
72822003-05-02 Andrew Cagney <cagney@redhat.com>
7283
82de1e5b
AC
7284 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7285 PC_REGNUM, re-indent.
7286 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7287 PC_REGNUM isn't set.
7288
27d94c49
AC
7289 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7290 * gdbarch.h, gdbarch.c: Re-generate.
7291 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7292 register_virtual_size, pc_regnum, or register_bytes.
7293 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7294 (d10v_register_type): Use D10V_PC_REGNUM.
7295 (d10v_print_registers_info, d10v_read_pc): Ditto.
7296 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7297 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7298
a9c0dc7f
DC
72992003-05-02 David Carlton <carlton@bactrian.org>
7300
7301 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7302 the name with mstrsave.
7303
e33d66ec
EZ
73042003-05-02 Elena Zannoni <ezannoni@redhat.com>
7305
7306 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7307 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7308 (host_charset_name, target_charset_name): New vars for use by
7309 set/show commands.
7310 (host_charset_enum, target_charset_enum): New enums for set/show
7311 commands.
7312 (set_charset_sfunc, set_host_charset_sfunc,
7313 set_target_charset_sfunc): New functions.
7314 (set_host_charset, set_target_charset): Make static.
7315 (list_charsets, set_host_charset_command,
7316 set_target_charset_command): Delete functions.
7317 (show_charset_command): Rewrite as....
7318 (show_charset): Hook this up with the set/show command mechanism.
7319 (_initialize_charset): Change names of charsets to match the
7320 set/show enums. Use host_charset_name and target_charset_name.
7321 Use set/show mechanism for charset, host-charset, target-charset
7322 commands. Do not make 'show host-charset' and 'show
7323 target-charset' be aliases of 'show charset'.
7324
7325 * charset.h (set_host_charset, set_target_charset): Don't export,
7326 they are not used outside the file.
7327
2b6fd0d8
AC
73282003-05-01 Andrew Cagney <cagney@redhat.com>
7329
7330 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7331 (gdb_disassembly): Make "di" non static, always initialize and
7332 cleanup. Always use dis_asm_read_memory.
7333 (gdb_dis_asm_read_memory): Delete function.
7334
6ae2f580
AC
73352003-05-01 Andrew Cagney <cagney@redhat.com>
7336
7337 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7338 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7339
810ecf9f
AC
73402003-04-30 Andrew Cagney <cagney@redhat.com>
7341
7342 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7343 "tm_print_insn_info".
7344 (TARGET_PRINT_INSN_INFO): Delete macro.
7345 (dis_asm_read_memory): Delete function declaration.
7346 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7347 (tm_print_insn_info): Delete variable definition.
7348 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7349 * gdbarch.h, gdbarch.c: Re-generate.
7350 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7351 "deprecated_tm_print_insn_info".
7352 * mcore-tdep.c (mcore_dump_insn): Ditto.
7353 * mips-tdep.c (mips_gdbarch_init): Ditto.
7354 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7355 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7356 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7357 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7358 instead of TARGET_PRINT_INSN_INFO, add comment.
7359 * s390-tdep.c (s390_get_frame_info): Instead of
7360 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7361 (s390_check_function_end, s390_is_sigreturn): Ditto.
7362 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7363 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7364 * disasm.c: Include "gdbcore.h".
7365 (_initialize_disasm): New function, initialize
7366 "deprecated_tm_print_insn_info".
7367 (deprecated_tm_print_insn_info): New variable.
7368 (dis_asm_read_memory): Moved from "corefile.c", made static.
7369 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7370 * Makefile.in (disasm.o): Update dependencies.
7371
07020390
AC
73722003-04-30 Andrew Cagney <cagney@redhat.com>
7373
7374 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7375
a9fa03de
AF
73762003-04-29 Adam Fedor <fedor@gnu.org>
7377
7378 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7379 * infcall.c (find_function_addr): Make non-static.
7380 * infcall.h (find_function_addr): Declare.
7381 * Makefile.in (eval.o): Update dependencies.
7382
1bae87b9
AF
73832003-04-28 Adam Fedor <fedor@gnu.org>
7384
7385 * symtab.c (symbol_find_demangled_name): Check for and demangle
7386 ObjC symbols.
7387 (symbol_init_demangled_name): Init for language_objc as well.
7388
0ba6dca9
AC
73892003-04-28 Andrew Cagney <cagney@redhat.com>
7390
7391 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7392 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7393 * gdbarch.h, gdbarch.c: Re-generate.
7394 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7395 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7396 * inferior.h (deprecated_read_fp): Rename read_fp.
7397 (generic_target_read_fp): Delete declaration.
7398 * regcache.c (generic_target_read_fp): Delete function.
7399 (deprecated_read_fp): Replace read_fp, use
7400 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7401 * d10v-tdep.c (d10v_read_fp): Delete function.
7402 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7403
7404 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7405 deprecated_target_read_fp to generic_target_read_fp.
7406 * sh-tdep.c (sh_gdbarch_init): Ditto.
7407 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7408 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7409 * frv-tdep.c (frv_gdbarch_init): Ditto.
7410
7411 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7412 deprecated_fp_regnum.
7413 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7414 * vax-tdep.c (vax_gdbarch_init): Ditto.
7415 * v850-tdep.c (v850_gdbarch_init): Ditto.
7416 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7417 * sh-tdep.c (sh_gdbarch_init): Ditto.
7418 * s390-tdep.c (s390_gdbarch_init): Ditto.
7419 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7420 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7421 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7422 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7423 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7424 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7425 * i386-tdep.c (i386_gdbarch_init): Ditto.
7426 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7427 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7428 * frv-tdep.c (frv_gdbarch_init): Ditto.
7429 * cris-tdep.c (cris_gdbarch_init): Ditto.
7430 * avr-tdep.c (avr_gdbarch_init): Ditto.
7431 * arm-tdep.c (arm_gdbarch_init): Ditto.
7432 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7433
7434 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7435 * v850-tdep.c (v850_gdbarch_init): Ditto.
7436 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7437 * sh-tdep.c (sh_gdbarch_init): Ditto.
7438 * s390-tdep.c (s390_gdbarch_init): Ditto.
7439 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7440 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7441 * mips-tdep.c (mips_gdbarch_init): Ditto.
7442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7443 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7444 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7445 * frv-tdep.c (frv_gdbarch_init): Ditto.
7446 * avr-tdep.c (avr_gdbarch_init): Ditto.
7447 * arm-tdep.c (arm_gdbarch_init): Ditto.
7448
7449 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7450 DEPRECATED_FP_REGNUM.
7451 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7452 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7453 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7454 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7455 (sparc32_register_virtual_type): Ditto.
7456 * sh-tdep.c (sh64_frame_chain): Ditto.
7457 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7458 (sh_nofp_frame_init_saved_regs): Ditto.
7459 (sh64_nofp_frame_init_saved_regs): Ditto.
7460 (sh_fp_frame_init_saved_regs): Ditto.
7461 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7462 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7463 * procfs.c (procfs_fetch_registers): Ditto.
7464 (procfs_store_registers): Ditto.
7465 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7466 (store_inferior_registers, fetch_core_registers): Ditto.
7467 (fetch_kcore_registers, clear_regs): Ditto.
7468 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7469 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7470 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7471 * nlm/i386.c (do_status): Ditto.
7472 * mipsv4-nat.c (supply_gregset): Ditto.
7473 * mips-tdep.c: Ditto for comments.
7474 * mips-nat.c (fetch_inferior_registers): Ditto.
7475 (store_inferior_registers, fetch_core_registers): Ditto.
7476 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7477 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7478 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7479 (i386_do_pop_frame, i386_register_type): Ditto.
7480 * hppa-tdep.c (hppa_frame_chain): Ditto.
7481 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7482 (hppa_pop_frame, hppa_read_fp): Ditto.
7483 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7484 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7485 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7486 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7487 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7488 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7489 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7490 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7491 * blockframe.c: Ditto for comments.
7492 * arch-utils.h: Ditto for comments.
7493 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7494 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7495 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7496 * alpha-tdep.h: Ditto for comments.
7497 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7498 (alpha_cannot_store_register): Ditto.
7499 (alpha_push_dummy_frame): Ditto.
7500 * alpha-nat.c (supply_gregset): Ditto.
7501
7502 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7503 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7504 * config/sparc/tm-sparc.h: Update comment.
7505
7506 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7507 deprecated_read_fp instead of TARGET_READ_FP.
7508 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7509 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7510 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7511 deprecated_read_fp instead of read_fp.
7512 * s390-tdep.c (s390_push_arguments): Ditto.
7513 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7514 * frame.h: Ditto in comments.
7515 * frame.c (legacy_get_prev_frame): Ditto.
7516 * dummy-frame.c (dummy_frame_this_id): Ditto.
7517 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7518
d7a27068
AC
75192003-04-28 Andrew Cagney <cagney@redhat.com>
7520
7521 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7522 * gdbarch.h, gdbarch.c: Re-generate.
7523 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7524 * vax-tdep.c (_initialize_vax_tdep): Update.
7525 * v850-tdep.c (_initialize_v850_tdep): Update.
7526 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7527 * s390-tdep.c (_initialize_s390_tdep): Update.
7528 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7529 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7530 * mips-tdep.c (_initialize_mips_tdep): Update.
7531 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7532 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7533 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7534 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7535 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7536 * frv-tdep.c (_initialize_frv_tdep): Update.
7537 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7538 (_initialize_cris_tdep): Update.
7539 * arch-utils.c (legacy_print_insn): Update.
7540 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7541
d2630e69
AF
75422003-04-26 Adam Fedor <fedor@gnu.org>
7543
7544 * linespec.c (decode_objc): New function to decode ObjC calls
7545 (decode_line_1): Check for ObjC calls (using decode_objc)
7546 * Makefile (linespec.o): Update dependencies.
7547
3086aeae
DJ
75482003-04-26 Daniel Jacobowitz <drow@mvista.com>
7549
7550 * breakpoint.h (struct breakpoint_ops): New.
7551 (struct breakpoint): Add ops member.
7552
7553 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7554 (mention): Use new breakpoint ops member.
7555 (set_raw_breakpoint): Initialize ops field to NULL.
7556 (print_exception_catchpoint, print_one_exception_catchpoint)
7557 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7558 (gnu_v3_exception_catchpoint_ops): New.
7559 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7560
1fbec6c3
AF
75612003-04-25 Adam Fedor <fedor@gnu.org>
7562
7563 * Makefile.in (COMMON_OBS): Add objc-lang.o
7564
0ef21242
AC
75652003-04-25 Andrew Cagney <cagney@redhat.com>
7566
7567 * d10v-tdep.c (print_insn): Delete function.
7568 (display_trace): Use TARGET_PRINT_INSN.
7569 (_initialize_d10v_tdep): Do not set tm_print_insn.
7570 (d10v_gdbarch_init): Set print_insn.
7571
f75493ed
AC
75722003-04-25 Andrew Cagney <cagney@redhat.com>
7573
7574 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7575 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7576 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7577 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7578 (nr_dmap_regs, a0_regnum): ... new functions.
7579 (d10v_print_registers_info): Use a0_regnum, use register_size.
7580 (d10v_register_byte): Delete function.
7581 (d10v_register_raw_size): Delete function.
7582 (d10v_register_type): Use a0_regnum.
7583 (d10v_print_registers_info): Use a0_regnum.
7584 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7585 (d10v_gdbarch_init): Do not set register_byte or
7586 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7587 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7588 extract_address.
7589 (trace_command): Use XCALLOC.
7590 (print_insn): Delete reference to tm_print_insn.
7591 (saved_regs_unwinder): Use store_unsigned_integer instead of
7592 store_address.
7593 * frame.h (FRAME_OBSTACK_CALLOC): Define
7594
2202b100
DC
75952003-04-25 David Carlton <carlton@bactrian.org>
7596
7597 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7598
4e45ca2e
AF
75992003-04-24 Adam Fedor <fedor@gnu.org>
7600
7601 * objc-lang.c: Include "valprint.h"
7602 * Makefile.in (objc-lang.o): Update dependencies.
7603
93de3e7f
AF
76042003-04-24 Adam Fedor <fedor@gnu.org>
7605
8ffd9b1b 7606 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7607 architecture dependant compilation and mark as unimplemented
7608 (until they get put in the gdbarch vector).
7609
0f20eeea
DC
76102003-04-23 David Carlton <carlton@bactrian.org>
7611
7612 * cp-support.c (cp_find_first_component): Accept 'operator' in
7613 more locations.
7614
74cfe982
AC
76152003-04-23 Andrew Cagney <cagney@redhat.com>
7616
7617 * infcall.c (call_function_by_hand): Eliminate redundant
7618 indentation. Move "saved_async" and "old_cleanups" to where they
7619 are needed.
8ffd9b1b 7620
52557533
AC
76212003-04-23 Andrew Cagney <cagney@redhat.com>
7622
7623 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7624 and "buffer". Move the "name" code to where it is needed.
7625
158775de
AC
76262003-04-23 Andrew Cagney <cagney@redhat.com>
7627
7628 * infcall.c (call_function_by_hand): Move variables "start_sp",
7629 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7630 code to ON_STACK switch branch.
8ffd9b1b 7631
ebc7896c
AC
76322003-04-23 Andrew Cagney <cagney@redhat.com>
7633
7634 * infcall.c (call_function_by_hand): Make declaration of "i",
7635 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7636 lint.
7637
d727590f
AC
76382003-04-23 Andrew Cagney <cagney@redhat.com>
7639
7640 * infcall.c (call_function_by_hand): Delete variable
7641 "n_method_args". Localize "param_type"'s declaration to the loop
7642 that it is used. Reinstate code assigning to said variable -
7643 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7644 Rationalize code using "param_type".
7645
d585e13a
AC
76462003-04-22 Andrew Cagney <cagney@redhat.com>
7647
7648 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7649 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7650 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7651 to DEPRECATED_PUSH_RETURN_ADDRESS.
7652
051caad9
KB
76532003-04-22 Kevin Buettner <kevinb@redhat.com>
7654
7655 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7656 on the DWARF2 register number prior to fetching a register.
7657
77296879
JB
76582003-04-22 J. Brobecker <brobecker@gnat.com>
7659
7660 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7661 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7662 this macro was always set to 0.
77296879
JB
7663 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7664 considering the fact that this macro was always set to 0.
7665 * hppa-tdep.h (hppa_store_return_value): Likewise.
7666 (hppa_extract_return_value): Likewise.
7667
4252f1df
JB
76682003-04-22 J. Brobecker <brobecker@gnat.com>
7669
7670 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7671 the hppa-pro target only.
7672
14604c6b
JB
76732003-04-21 J. Brobecker <brobecker@gnat.com>
7674
7675 Ongoing multi-arch conversion effort for HP/UX:
7676 * config/pa/tm-hppa.h: Move all macro that are no longer
7677 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7678 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7679
77eb01d1
JB
76802003-04-21 J. Brobecker <brobecker@gnat.com>
7681
7682 * config/pa/tm-hppa.h: Obsolete a section that was only used
7683 for hppa-pro.
7684
61995b3b
JB
76852003-04-21 J. Brobecker <brobecker@gnat.com>
7686
7687 Ongoing multi-arch conversion for HP/UX.
7688 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7689 if already defined (allows hppa64 to stay non-multiarched for now).
7690 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7691
4aa79dcc
AC
76922003-04-21 Andrew Cagney <cagney@redhat.com>
7693
7694 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7695
0f751ff2
AC
76962003-04-21 Andrew Cagney <cagney@redhat.com>
7697
7698 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7699 "i386_num_mmx_regs".
7700
04714b91
AC
77012003-04-21 Andrew Cagney <cagney@redhat.com>
7702
7703 * infcall.c: New file.
7704 * infcall.h: New file.
7705 * valarith.c: Include "infcall.h".
7706 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7707 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7708 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7709 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7710 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7711 (SFILES): Add "infcall.c"
7712 (COMMON_OBS): Add "infcall.o".
7713 (infcall.o): Specify dependencies.
7714 * value.h (call_function_by_hand): Delete declaration.
7715 * inferior.h (run_stack_dummy): Delete declaration.
7716 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7717 (run_stack_dummy): Move to "infcall.c", merged into
7718 call_function_by_hand.
7719 * valops.c (call_function_by_hand): Moved to "infcall.c".
7720 (find_function_addr, value_arg_coerce): Ditto.
7721 (unwindonsignal_p, coerce_float_to_double): Ditto.
7722 (_initialize_valops): Move "set/show coerce-float-to-double", and
7723 "set/show unwindonsignal" commands to "infcall.c".
7724 * v850-tdep.c, target.h: Update comments.
7725 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7726 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7727 (sh64_init_extra_frame_info): Update comments.
7728 * mn10300-tdep.c: Update comments.
7729 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7730 * config/sparc/tm-sparc.h: Update comments.
7731 * breakpoint.h: Update comments.
7732 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7733 * arm-tdep.c: Update comment.
7734
f9d3c2a8
MK
77352003-04-19 Mark Kettenis <kettenis@gnu.org>
7736
c40e1eab
MK
7737 * i386-tdep.c (i386_num_register_names): New variable.
7738 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7739 (MM0_REGNUM): Remove redundant parentheses in define.
7740 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7741 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7742 i386_mxcsr_regnum_p): Remove redundant parentheses.
7743 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7744
94ea66b3
MK
7745 * i386-tdep.c (i386_extract_return_value,
7746 i386_store_return_value): Correct check for availability of
7747 floating-point registers.
7748
54299a1d
MK
7749 * i386-tdep.c (i386_frame_num_args): Remove function.
7750 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7751
c86c27af
MK
7752 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7753 mmx_regnum_to_fp_regnum. Adjust all callers.
7754
f9d3c2a8
MK
7755 * i386-tdep.c (i386_get_longjmp_target): Use
7756 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7757 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7758 extract_address.
7759
94ba74a9
MK
77602003-04-19 Mark Kettenis <kettenis@gnu.org>
7761
7762 * core-regset.c: Update comments to reflect reality. Re-order
7763 includes.
7764 (fetch_core_registers): Use switch instead of if. Remove
7765 redundant prototype.
7766
4074e13c
JB
77672003-04-18 Jim Blandy <jimb@redhat.com>
7768
7769 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7770 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7771
e3ab4aba
RH
77722003-04-17 Richard Henderson <rth@redhat.com>
7773
7774 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7775
627bf7c1
EZ
77762003-04-17 Michael Snyder <msnyder@redhat.com>
7777 Karen Bennet <bennet@redhat.com>
7778
7779 Committed by Elena Zannoni <ezannoni@redhat.com>
7780 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7781
514621a9
EZ
77822003-04-17 Elena Zannoni <ezannoni@redhat.com>
7783
7784 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7785 value if the return type is void.
514621a9 7786
b4acd559
JJ
77872003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7788
7789 * thread-db.c: Reindented.
8ffd9b1b 7790
530b167e 77912003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7792
7793 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7794 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7795 as types.
7796
0a48e7e8
MS
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
8ffd9b1b 7820
ab9fe00e
KB
78212003-04-16 Kevin Buettner <kevinb@redhat.com>
7822
610a3745 7823 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7824 the size of ``long double'' to 16, instead of 8.
7825
e64a344c
MK
78262003-04-16 Mark Kettenis <kettenis@gnu.org>
7827
7828 * i386-linux-nat.c: Add some whitespace to make things more
7829 readable.
7830 (fetch_register, store_register, fetch_inferior_registers,
7831 store_inferior_registers): Get rid of assignment in if-statement.
7832 (store_register): Fix typo in error message.
7833
25d41031
AC
78342003-04-16 Andrew Cagney <cagney@redhat.com>
7835
7836 * utils.c (xmmalloc): Always allocate something, matches
7837 libiberty/xmalloc's semantics.
7838 (xmrealloc, xmcalloc): Ditto.
7839
c50901fd
AC
78402003-04-16 Andrew Cagney <cagney@redhat.com>
7841
7842 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7843 update comments.
7844 (get_frame_type): Initialize unwind and type when needed.
7845 (get_frame_id, frame_register_unwind): Ditto.
7846
f81824a9
AC
78472003-04-16 Andrew Cagney <cagney@redhat.com>
7848
7849 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7850 obsolete.
7851 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7852 * sparcl-stub.c: Obsolete file.
7853 * config/sparc/tm-sparclet.h: Obsolete file.
7854 * sparclet-stub.c: Obsolete file.
7855 * sparclet-rom.c: Obsolete file.
7856 * sparcl-tdep.c: Obsolete file.
7857 * config/sparc/tm-sparclite.h: Obsolete file.
7858 * config/sparc/sparclite.mt: Obsolete file.
7859 * config/sparc/sparclet.mt: Obsolete file.
7860 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7861 sparc86x-*-* obsolete.
7862
9219021c
DC
78632003-04-15 David Carlton <carlton@math.stanford.edu>
7864
7865 * Makefile.in (SFILES): Add cp-namespace.c.
7866 (COMMON_OBS): Add cp-namespace.o.
7867 (block.o): Depend on gdb_obstack_h and cp_support_h.
7868 (buildsym.o): Depend on cp_support_h.
7869 (cp-namespace.o): New.
7870 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7871 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7872 (dwarf2read.o): Depend on cp_support_h.
7873 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7874 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7875 processing_current_namespace.
7876 (read_namespace): Update processing_current_namespace; check for
7877 anonymous namespaces.
7878 (dwarf2_name): New function.
7879 (dwarf2_extension): Ditto.
7880 * cp-support.h: Update copyright, contributors.
7881 Add inclusion guards.
7882 Add opaque declaration for structs obstack, block, symbol.
7883 (struct using_direct): New struct.
7884 Add declarations for cp_find_first_component,
7885 cp_entire_prefix_len, processing_has_namespace_info,
7886 processing_current_namespace, cp_is_anonymous,
7887 cp_add_using_directive, cp_initialize_namespace,
7888 cp_finalize_namespace, cp_set_block_scope,
7889 cp_scan_for_anonymous_namespaces.
7890 * cp-namespace.c: New file.
7891 * cp-support.c: Update copyright.
7892 Include ctype.h, gdb_assert.h, gdbcmd.h.
7893 New variable maint_cplus_cmd_list.
7894 (cp_find_first_component): New function.
7895 (cp_entire_prefix_len, maint_cplus_command)
7896 (first_component_command, _initialize_cp_support): Ditto.
7897 * buildsym.c: Include cp-support.h.
7898 New variable using_list.
7899 (add_symbol_to_list): Check for anonymous namespaces.
7900 (finish_block): Set block's scope.
7901 (start_symtab): Initialize C++ namespace support.
7902 (end_symtab): Finalize C++ namespace support.
7903 * block.h: Add opaque declarations for structs
7904 block_namespace_info, using_direct, and obstack.
7905 Add declarations for block_set_scope and block_set_using.
7906 (struct block): Add 'language_specific' member.
7907 (BLOCK_NAMESPACE): New macro.
7908 * block.c: Include gdb_obstack.h and cp-support.h.
7909 (struct block_namespace_info): New struct.
7910 (block_set_scope): New function.
7911 (block_set_using, block_initialize_namespace): Ditto.
7912
d5a921c9
KB
79132003-04-14 Kevin Buettner <kevinb@redhat.com>
7914
7915 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7916 (locate_base): Return early if there aren't any link map offsets.
7917 (svr4_solib_create_inferior_hook): Warn if shared library support
7918 is unavailable.
7919
d2a52b27
DC
79202003-04-14 David Carlton <carlton@math.stanford.edu>
7921
7922 * symtab.c (symbol_set_names): Add prefix when storing Java names
7923 in hash table. Fix for PR java/1039.
7924
980cae7a
DC
79252003-04-14 David Carlton <carlton@math.stanford.edu>
7926
7927 * symtab.c (symbol_set_names): Rename 'name' arg to
7928 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7929 * symtab.h: Change 'name' argument in declaration of
7930 symbol_set_names to 'linkage_name'.
7931 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7932
e227b13c
AC
79332003-04-14 Andrew Cagney <cagney@redhat.com>
7934
7935 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7936 return the fully sign-extended register value.
7937 (get_frame_pointer): Ditto.
7938 (mips_pop_frame): Initialize "proc_desc" after checking for a
7939 dummy frame.
7940
36712a20
AC
79412003-04-14 Andrew Cagney <cagney@redhat.com>
7942
7943 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7944 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7945 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7946 (mips_push_register): Delete function.
7947 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7948 PUSH_FP_REGNUM.
7949
44ea7b70
JB
79502003-04-14 Jim Blandy <jimb@redhat.com>
7951
7952 * symmisc.c: #include "gdb_regex.h".
7953 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7954 functions.
7955 * maint.c (maintenance_list_command): New function.
7956 (_initialize_maint_cmds): Register the above as commands.
7957 * symtab.h (maintenance_list_symtabs,
7958 maintenance_list_psymtabs): New declarations.
7959 * cli/cli-cmds.c (maintenancelistlist): New variable.
7960 (init_cmd_lists): Initialize it.
7961 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7962 * gdbcmd.h (maintenancelistlist): New declaration.
7963 * Makefile.in (symmisc.o): Update dependencies.
7964
2d0c7962
EZ
79652003-04-14 Elena Zannoni <ezannoni@redhat.com>
7966
7967 * s390-nat.c: Include asm/types.h for addr_t.
7968
1947a811
CV
79692003-04-14 Corinna Vinschen <vinschen@redhat.com>
7970
7971 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7972 actually incoming type.
7973
adb616d7
AC
79742003-04-13 Andrew Cagney <cagney@redhat.com>
7975
7976 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7977 get_next_frame and get_frame_saved_regs.
7978
9b5e151c
AC
79792003-04-13 Andrew Cagney <cagney@redhat.com>
7980
7981 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7982 of gdbarch_num_regs.
7983
ef6e7e13
AC
79842003-04-13 Andrew Cagney <cagney@redhat.com>
7985
7986 * frame.h: Mention what replaced what in "struct frame_info".
7987 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7988 deprecated_update_frame_base_hack and
7989 deprecated_update_frame_pc_hack.
7990 * hppa-tdep.c: Ditto.
7991
61fbb938
DJ
79922003-04-13 Daniel Jacobowitz <drow@mvista.com>
7993
7994 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7995 to read_reg and update its comment. Remove regnum member.
7996 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7997 Don't call read_reg when setting in_reg. Call read_reg to get
7998 the frame base if it's in a register. Return the register number
7999 on the stack instead of in the context. Remove extra arguments
8000 to read_reg.
8001 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8002 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8003 the register number on the expression stack.
8004 (needs_frame_read_reg): Remove extra arguments.
8005
0d53c4c4
DJ
80062003-04-13 Daniel Jacobowitz <drow@mvista.com>
8007
8008 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8009 made non-static.
8010 (execute_stack_op): All callers updated.
8011 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8012 * dwarf2loc.c (find_location_expression): New function.
8013 (dwarf_expr_frame_base): Call it.
8014 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8015 (dwarf2_tracepoint_var_ref): New function, broken out from
8016 locexpr_tracepoint_var_ref.
8017 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8018 Make static.
8019 (loclist_read_variable, loclist_read_needs_frame): New functions.
8020 (loclist_describe_location, loclist_tracepoint_var_ref): New
8021 functions.
8022 (dwarf2_loclist_funcs): New struct location_funcs.
8023 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8024 (struct dwarf2_locexpr_baton): Add comments.
8025 (dwarf2_loclist_funcs): New extern.
8026 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8027 base_address and base_known.
8028 (dwarf_loc_buffer): New variable.
8029 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8030 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8031 (dwarf2_has_info): Initialize dwarf_loc_offset.
8032 (dwarf2_build_psymtabs): Read in .debug_loc.
8033 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8034 DWARF_LOC_SIZE.
8035 (psymtab_to_symtab_1): Likewise. Move base address calculation
8036 here, from...
8037 (dwarf2_get_pc_bounds): ... here. Use the base address from
8038 cu_header.
8039 (dwarf2_symbol_mark_computed): Handle location lists.
8040
6aca59a3
DJ
80412003-04-13 Daniel Jacobowitz <drow@mvista.com>
8042
8043 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8044 if the linkage name demangled successfully.
8045
aca1fcd0
MK
80462003-04-13 Mark Kettenis <kettenis@gnu.org>
8047
97095916
MK
8048 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8049 disassmbly_flavour): Removed.
8050
aca1fcd0
MK
8051 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8052
562a961f
MK
80532003-04-13 Mark Kettenis <kettenis@gnu.org>
8054
8055 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8056
bd013d54
AC
80572003-04-12 Andrew Cagney <cagney@redhat.com>
8058
8059 * frame.h (struct frame_info): Move definition from here ...
8060 * frame.c (struct frame_info): ... to here.
8061
167ef8b1
AC
80622003-04-12 Andrew Cagney <cagney@redhat.com>
8063
8064 * gdbthread.h (save_infrun_state): Delete parameter
8065 "prev_func_start".
8066 (struct thread_info): Delete field "prev_func_start".
8067 (load_infrun_state): Ditto.
8068 * thread.c (load_infrun_state, save_infrun_state): Update.
8069 * infrun.c (prev_func_start): Delete variable.
8070 (context_switch, init_wait_for_inferior): Update.
8071 (stop_stepping, keep_going): Update.
8072
da3331ec
AC
80732003-04-12 Andrew Cagney <cagney@redhat.com>
8074
8075 * gdbarch.sh: Add missing opaque declarations.
8076 * gdbarch.h: Regnerate.
8077 * symtab.h: Add missing opaque declarations.
8078 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8079 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8080 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8081 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8082 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8083 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8084 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8085 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8086 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8087 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8088 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8089 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8090 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8091
18adea3f
AC
80922003-04-11 Andrew Cagney <cagney@redhat.com>
8093
8094 * frame.c (get_frame_id): Return this frame's "id".
8095 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8096 function start.
8097 (legacy_saved_regs_this_id): Replace function body with
8098 internal-error.
8099 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8100 FRAME_OBSTACK_ZALLOC.
8101 (create_new_frame): Mark the frame ID as valid.
8102
2252e863
AO
81032003-04-11 Alexandre Oliva <aoliva@redhat.com>
8104
8105 * Makefile.in (libbfd_h): Added missing setting.
8106 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8107 according to the selected ABI.
8108
a8245ab8
JJ
81092003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8110
8111 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8112
6913c89a
AC
81132003-04-11 Andrew Cagney <cagney@redhat.com>
8114
8115 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8116 SAVED_PC_AFTER_CALL.
8117 * gdbarch.h, gdbarch.c: Regenerate.
8118 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8119 * x86-64-tdep.c (x86_64_init_abi): Update.
8120 * vax-tdep.c (vax_gdbarch_init): Update.
8121 * v850-tdep.c (v850_gdbarch_init): Update.
8122 * sparc-tdep.c (sparc_gdbarch_init): Update.
8123 * sh-tdep.c (sh_gdbarch_init): Update.
8124 * s390-tdep.c (s390_gdbarch_init): Update.
8125 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8126 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8127 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8128 * mips-tdep.c (mips_gdbarch_init): Update.
8129 * mcore-tdep.c (mcore_gdbarch_init): Update.
8130 * m68k-tdep.c (m68k_gdbarch_init): Update.
8131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8132 * ia64-tdep.c (ia64_gdbarch_init): Update.
8133 (ia64_saved_pc_after_call): Update declaration.
8134 * i386ly-tdep.c (i386lynx_init_abi): Update.
8135 * i386-tdep.c (i386_gdbarch_init): Update.
8136 * hppa-tdep.c (hppa_gdbarch_init): Update.
8137 * h8300-tdep.c (h8300_gdbarch_init): Update.
8138 * frv-tdep.c (frv_gdbarch_init): Update.
8139 * cris-tdep.c (cris_gdbarch_init): Update.
8140 * avr-tdep.c (avr_gdbarch_init): Update.
8141 * arm-tdep.c (arm_gdbarch_init): Update.
8142 * alpha-tdep.c (alpha_gdbarch_init): Update.
8143 * ns32knbsd-nat.c (frame_num_args): Update.
8144 * ns32k-tdep.c (umax_frame_num_args): Update.
8145 * mips-tdep.c (mips_init_frame_pc_first): Update.
8146 * infrun.c (step_over_function): Update.
8147 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8148 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8149 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8150 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8151 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8152 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8153 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8154 * arch-utils.c (init_frame_pc_default): Update.
8155 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8156 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8157 declaration.
8ffd9b1b 8158
38edeab8
AC
81592003-04-11 Andrew Cagney <cagney@redhat.com>
8160
8161 * i387-tdep.c: Update copyright.
8162 (i387_to_double): Delete function.
8163 (double_to_i387): Delete function.
8164
81f8a206
AC
81652003-04-10 Andrew Cagney <cagney@redhat.com>
8166
8167 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8168 frame's function's address. Simplify.
8169 (d10v_frame_unwind_cache): Check that the frame's function is
8170 non-zero.
8171
6e691f7a
JB
81722003-04-10 Jim Blandy <jimb@redhat.com>
8173
8174 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8175 call to set_gdbarch_deprecated_push_arguments.
8176
7f78e237
AC
81772003-04-10 Andrew Cagney <cagney@redhat.com>
8178
8179 * frame.c (fprint_frame_id): New function.
8180 (fprint_frame_type, fprint_frame): New function.
8181 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8182 (create_sentinel_frame, get_frame_id): Ditto.
8183 (frame_id_p, frame_id_eq): Ditto.
8184 (frame_id_inner, create_new_frame): Ditto.
8185 (legacy_get_prev_frame, get_prev_frame): Ditto.
8186 (deprecated_update_frame_pc_hack): Ditto.
8187 (frame_register_unwind): Ditto.
8188 (deprecated_update_frame_base_hack): Ditto.
8189
f870b49b
CV
81902003-04-10 Corinna Vinschen <vinschen@redhat.com>
8191
8192 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8193 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8194 frame_chain function.
8195 * Makefile.in: Add dependencies due to above change.
8196
7c86889b
CV
81972003-04-10 Corinna Vinschen <vinschen@redhat.com>
8198
8199 * blockframe.c (legacy_frame_chain_valid): Move call to
8200 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8201 inside_entry_file.
8202
d0a55772
AC
82032003-04-09 Andrew Cagney <cagney@redhat.com>
8204
8205 * frame.h (struct frame_id): Replace "pc" and "base" with
8206 "stack_addr" and "code_addr". Update comments.
8207 (frame_id_build): Update parameter names and comment.
8208 (struct frame_info): Replace "id_p" and "id" with "this_id".
8209 * dummy-frame.c (dummy_frame_this_id): Update.
8210 * breakpoint.c (print_one_breakpoint): Update.
8211 * frame.c (get_frame_id): Update.
8212 (get_frame_base, frame_id_build): Update.
8213 (create_sentinel_frame, legacy_get_prev_frame): Update.
8214 (deprecated_update_frame_base_hack): Update.
8215 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8216 (frame_id_inner): Ditto.
8217
ac16bf07
AC
82182003-04-09 Andrew Cagney <cagney@redhat.com>
8219
8220 * defs.h (gdb_print_host_address): Make "addr" parameter a
8221 pointer constant.
8222 * utils.c (gdb_print_host_address): Update.
8223
366cfc9e
KB
82242003-04-09 Kevin Buettner <kevinb@redhat.com>
8225
8226 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8227 register number for R0 is 0.
8228
cd983b5c
JB
82292003-04-09 J. Brobecker <brobecker@gnat.com>
8230
8231 * frame.h (struct gdbarch): Add opaque structure definition
8232 to avoid a compilation warning on LynxOS 4.0.
8233
d1340264
AC
82342003-04-09 Andrew Cagney <cagney@redhat.com>
8235
8236 * frame.h (struct frame_info): Delete field "pc". Replace
8237 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8238 structure.
8239 * frame.c (frame_pc_unwind): Update.
8240 (create_sentinel_frame): Do not set "pc".
8241 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8242 (get_frame_pc): Call frame_pc_unwind.
8243 (deprecated_update_frame_pc_hack): Update.
8244 (create_new_frame): Use "pc" not "->pc".
8245
90a6fffb
AC
82462003-04-09 Andrew Cagney <cagney@redhat.com>
8247
8248 * frame.c (get_frame_id): Eliminate code updating "frame".
8249 (legacy_get_prev_frame): Ditto.
8250 (get_frame_base): Return id.base directly.
8251 (deprecated_update_frame_base_hack): Update "id.base".
8252 * frame.h (struct frame_info): Delete field "frame".
8253
2fbce691
AC
82542003-04-09 Andrew Cagney <cagney@redhat.com>
8255
8256 * NEWS: Mention that the "Sequent family" is obsolete.
8257 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8258 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8259 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8260 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8261 * config/i386/tm-ptx4.h: Obsolete file.
8262 * config/i386/tm-ptx.h: Obsolete file.
8263 * symm-tdep.c: Obsolete file.
8264 * config/i386/symmetry.mt: Obsolete file.
8265 * config/i386/tm-symmetry.h: Obsolete file.
8266 * symm-nat.c: Obsolete file.
8267 * config/i386/nm-symmetry.h: Obsolete file.
8268 * config/i386/xm-symmetry.h: Obsolete file.
8269 * config/i386/symmetry.mh: Obsolete file.
8270 * config/i386/nm-ptx4.h: Obsolete file.
8271 * config/i386/ptx4.mh: Obsolete file.
8272 * config/i386/ptx.mt: Obsolete file.
8273 * config/i386/ptx.mh: Obsolete file.
8274 * config/i386/xm-ptx4.h: Obsolete file.
8275 * config/i386/xm-ptx.h: Obsolete file.
8276
78c43945
AC
82772003-04-09 Andrew Cagney <cagney@redhat.com>
8278
8279 Obsolete mips*-*-mach3*.
8280 * NEWS: Mention that mips*-*-mach3* is obsolete.
8281 * m3-nat.c: Obsolete file.
8282 * config/nm-m3.h: Obsolete file.
8283 * config/mips/tm-mipsm3.h: Obsolete file.
8284 * config/mips/mipsm3.mt: Obsolete file.
8285 * config/mips/mipsm3.mh: Obsolete file.
8286 * config/mips/xm-mipsm3.h: Obsolete file.
8287 * mipsm3-nat.c: Obsolete file.
8288 * configure.host: Obsolete mips-dec-mach3*.
8289 * configure.tgt: Obsolete mips*-*-mach3*.
8290
f1908289
AC
82912003-04-09 Andrew Cagney <cagney@redhat.com>
8292
8293 * doublest.h: Update copyright.
8294 (deprecated_store_floating, deprecated_extract_floating): Rename
8295 store_floating and extract_floating. Update comments.
8296 * doublest.c: Update copyright.
8297 (extract_floating_by_length): Replace extract_floating.
8298 (store_floating_by_length): Replace store_floating.
8299 (deprecated_extract_floating): New function.
8300 (deprecated_store_floating): New function.
8301 (extract_typed_floating): Call extract_floating_by_length.
8302 (store_typed_floating): Call store_floating_by_length.
8303 * x86-64-tdep.c (x86_64_store_return_value): Update.
8304 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8305 (sh64_extract_return_value): Update.
8306 (sh_sh4_register_convert_to_virtual): Update.
8307 (sh_sh64_register_convert_to_virtual): Update.
8308 (sh_sh4_register_convert_to_raw): Update.
8309 (sh_sh64_register_convert_to_raw): Update.
8310 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8311 (rs6000_register_convert_to_raw): Update.
8312 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8313 (ia64_register_convert_to_raw): Update.
8314 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8315 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8316 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8317 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8318 (alpha_register_convert_to_raw): Update.
8319
4443bd83
AC
83202003-04-08 Andrew Cagney <cagney@redhat.com>
8321
8322 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8323 * gdbarch.h, gdbarch.c: Re-generate.
8324 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8325 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8326 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8327 conditionally, use frame_pc_unwind as an alternative. Add
8328 comments.
8329 * arch-utils.c (init_frame_pc_default): Only call
8330 SAVED_PC_AFTER_CALL when available.
8331
c0236d92
EZ
83322003-04-08 Elena Zannoni <ezannoni@redhat.com>
8333
fbe586ae 8334 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8335 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8336 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8337 (start_remote): Ditto.
8338 (handle_inferior_event): Ditto.
8339 (save_inferior_status): Ditto.
8340 (restore_inferior_status): Ditto.
8341 * infcmd.c (attach_command): Ditto.
8342 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8343 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8344 * alpha-tdep.c (heuristic_proc_start): Ditto.
8345 * mips-tdep.c (heuristic_proc_start): Ditto.
8346 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8347 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8348 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8349 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8350 * remote-vx.c (vx_create_inferior): Ditto.
8351
83522003-04-08 Elena Zannoni <ezannoni@redhat.com>
8353
8354 * infrun.c (stop_soon_quietly): Make it an enum, to better
8355 override the default behavior of handle_inferior_event.
8356 (clear_proceed_status): Update uses of stop_soon_quietly to
8357 reflect that it is now an enum.
8358 (start_remote): Ditto.
8359 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8360 is set to handle the new GNU/Linux kernel behavior for
8361 attach/sigstop. Update uses of stop_soon_quietly.
8362 * inferior.h (enum stop_kind): New enum.
8363 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8364 Reset normal handle_inferior_event behavior, afterwards.
8365 * fork-child.c (startup_inferior): Update.
8366 * alpha-tdep.c (heuristic_proc_start): Update.
8367 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8368 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8369 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8370 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8371 * remote-vx.c (vx_create_inferior): Update.
8372 * mips-tdep.c (heuristic_proc_start): Update.
8373
1211bce3
EZ
83742003-04-07 Elena Zannoni <ezannoni@redhat.com>
8375
8376 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8377 be freed more than once, causing wild memory corruptions.
1211bce3 8378 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8379 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8380 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8381 with the "core" target.
1211bce3 8382
f0ef6b29
KB
83832003-04-07 Kevin Buettner <kevinb@redhat.com>
8384
8385 * mips-tdep.c (mips_print_fp_register): New function, created from
8386 do_fp_register_row(). Registers are now (also) printed as hex.
8387 Only one register is printed per row.
8388 (mips_print_register, do_fp_register_row): Print floating point
8389 registers with mips_print_fp_register().
8390
8cf71652
AC
83912003-04-06 Andrew Cagney <cagney@redhat.com>
8392
5e488a7b
AC
8393 * valprint.h (inspect_it): Add extern declaration.
8394 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8395 (selectors_info, classes_info): Ditto.
8396 (find_objc_msgcall): Fix indentation.
8397 (objc_printstr): Delete extern declarations.
8398
8cf71652
AC
8399 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8400
e6ba3bc9
AC
84012003-04-06 Andrew Cagney <cagney@redhat.com>
8402
8403 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8404 Update comment.
8405 * frame.c (legacy_saved_regs_this_id): Update.
8406 (legacy_get_prev_frame): Update.
8407 * xstormy16-tdep.c: Update comment.
8408 * sparc-tdep.c (sparc_frame_chain): Update comment.
8409 * blockframe.c (legacy_frame_chain_valid): Update.
8410
55e1d7e7
AC
84112003-04-06 Andrew Cagney <cagney@redhat.com>
8412
996179ee
AC
8413 * valprint.c (val_print_type_code_int): Delete #ifdef
8414 PRINT_TYPELESS_INTEGER code.
8415
55e1d7e7
AC
8416 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8417 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8418 multi-arch definition.
8419 * gdbarch.h: Re-generate.
8420
43bd9a9e
AC
84212003-04-05 Andrew Cagney <cagney@redhat.com>
8422
8423 Eliminate FRAME_FIND_SAVED_REGS.
8424 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8425 Change FSR parameter to a pointer.
8426 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8427 Assume FSR parameter is a pointer.
8428 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8429 Make fsr a pointer.
8430 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8431 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8432 saved_regs a pointer.
8433 (hppa_frame_saved_pc): Ditto.
8434 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8435 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8436 pointer.
8437 (restore_pc_queue): Make fsr a pointer.
8438 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8439 (hppa_frame_chain): Make saved_regs a pointer, call
8440 hppa_frame_init_saved_regs.
8441 * sparc-tdep.c: Include "gdb_assert.h".
8442 (sparc_frame_find_saved_regs): Replace internal_error with
8443 gdb_assert.
8444 * remote-vxsparc.c (vx_read_register): Delete reference to
8445 FRAME_FIND_SAVED_REGS.
8446 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8447 * gdbarch.h: Regenerate.
8448 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8449 (deprecated_get_frame_saved_regs): Delete declaration.
8450 (struct frame_saved_regs): Delete definition.
8451 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8452 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8453 (hppa_frame_find_saved_regs): Delete declaration.
8454 (FRAME_FIND_SAVED_REGS): Delete macro.
8455 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8456 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8457 FRAME_FIND_SAVED_REGS in comment.
8458
be41e9f4
AC
84592003-04-05 Andrew Cagney <cagney@redhat.com>
8460
8461 * frame.c (frame_func_unwind, get_frame_func): New functions.
8462 * frame.h (get_frame_func, frame_func_unwind): Declare.
8463 (struct frame_info): Add field "prev_func" for caching the
8464 previous frame's function address.
8465 * arm-tdep.c (arm_frameless_function_invocation): Combine
8466 get_pc_function_start and get_frame_pc into get_frame_func.
8467 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8468 (sh64_nofp_frame_init_saved_regs): Ditto.
8469 * s390-tdep.c (s390_function_start): Ditto.
8470 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8471 (rs6000_frameless_function_invocation): Ditto.
8472 (rs6000_frame_saved_pc): Ditto.
8473 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8474 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8475 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8476 (i386_frame_init_saved_regs): Ditto.
8477 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8478 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8479 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8480 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8481 * blockframe.c (frameless_look_for_prologue): Ditto.
8482
a01dd7cc
AC
84832003-04-05 Andrew Cagney <cagney@redhat.com>
8484
8485 * frame.c (legacy_get_prev_frame): Link prev to next at the
8486 function start. Update comments.
8487
5e5592e6
AC
84882003-04-05 Andrew Cagney <cagney@redhat.com>
8489
8490 * frame.c (get_frame_id): Update comment.
8491 (legacy_get_prev_frame): Update comment.
8492 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8493 * gdbarch.h: Regenerate.
8494 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8495 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8496
6fba5002
AC
84972003-04-05 Andrew Cagney <cagney@redhat.com>
8498
8499 * stack.c (print_frame_info): Use get_frame_pc.
8500
7df05f2b
AC
85012003-04-04 Andrew Cagney <cagney@redhat.com>
8502
8503 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8504 the frame's type from the unwinder.
8505 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8506 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8507 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8508 (get_frame_base_address): Use get_frame_type.
8509 (get_frame_locals_address, get_frame_args_address): Ditto.
8510 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8511 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8512 (struct frame_info): Add comment explaining why the frame contains
8513 a "type" field.
8514 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8515 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8516 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8517 NORMAL_FRAME.
8518 * frame-unwind.h: Include "frame.h".
8519 (struct frame_unwind): Add "type" field.
8520 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8521
11889732
AC
85222003-04-04 Andrew Cagney <cagney@redhat.com>
8523
8524 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8525 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8526 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8527 get_frame_base.
8528 (d10v_unwind_dummy_id): Use frame_id_build.
8529 * frame.c (find_frame_sal): Use get_frame_pc.
8530 (create_new_frame): Use deprecated_update_frame_pc_hack and
8531 deprecated_update_frame_base_hack.
8532 (create_sentinel_frame): Add comment about ->pc going away.
8533 (get_prev_frame): Add comment about ->pc going away.
8534 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8535 frame_id_build, deprecated_update_frame_pc_hack and
8536 deprecated_update_frame_base_hack.
8537 (select_frame): Use get_frame_pc.
8538 (legacy_saved_regs_this_id): Use frame_id_build.
8539
50c46a0d
EZ
85402003-04-04 Elena Zannoni <ezannoni@redhat.com>
8541
fbe586ae
RH
8542 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8543 signed integer case.
8544 (classify_argument): Handle enumerations and references.
50c46a0d 8545
50bbdbd9
AC
85462003-04-04 Andrew Cagney <cagney@redhat.com>
8547
8548 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8549 ID to NULL.
8550
36018d2e
AF
85512003-04-01 Adam Fedor <fedor@gnu.org>
8552
8553 * gdb/objc-lang.c (selectors_info): Replace calls to
8554 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8555 SYMBOL_NATURAL_NAME.
8556 (classes_info, find_methods): Likewise.
8557
35cec841
KB
85582003-04-03 Kevin Buettner <kevinb@redhat.com>
8559
8560 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8561 ``mach'' to the value determined by bfd_default_set_arch_mach().
8562
43136899
BR
85632003-04-02 Bob Rossi <bob_rossi@cox.net>
8564
8565 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8566 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8567 (mi-cmd-file.o): Update dependencies.
8568
040b99fd
KB
85692003-04-01 Kevin Buettner <kevinb@redhat.com>
8570
8571 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8572 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8573
9a3d7dfd
AF
85742003-04-01 Adam Fedor <fedor@gnu.org>
8575
8576 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8577 * language.h (struct language_defn): Add la_demangle.
8578 (language_demangle): Declare.
8579 * language.c (language_demangle): New function.
8580 (unk_lang_demangle): Likewise.
8581 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8582 Add ukn_lang_demangle.
9a3d7dfd 8583 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8584 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8585 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8586 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8587 * jv-lang.c (java_demangle): New function
8588 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8589 * objc-lang.c (objc_demangle): Add options argument
8590 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8591 * maint.c (maintenance_demangle): Replace switch with
8592 call to language_demangle.
8593 * utils.c (fprintf_symbol_filtered): Likewise.
8594
5e074003
AC
85952003-04-01 Andrew Cagney <cagney@redhat.com>
8596
8597 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8598 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8599 PRINT_TYPELESS_INTEGER.
8600 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8601 PUSH_RETURN_ADDRESS.
8602
270cb5d6
AC
86032003-04-01 Andrew Cagney <cagney@redhat.com>
8604
8605 * Makefile.in (d10v-tdep.o): Update dependencies.
8606 * d10v-tdep.c: Include "frame-base.h".
8607 (d10v_frame_unwind): Make constant.
8608 (d10v_frame_base_address): New function.
8609 (d10v_frame_base): New variable.
8610 (d10v_gdbarch_init): Set frame_base default.
8611 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8612 comment for base.
8613 (d10v_frame_unwind_cache): Set and use "prev_sp".
8614 (d10v_frame_this_id): Use the previous frame's inner most stack
8615 address and this frame's func address for the frame ID. Use
8616 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8617
6bfb3e36
AC
86182003-04-01 Andrew Cagney <cagney@redhat.com>
8619
8620 * frame.h (get_frame_locals_address, get_frame_args_address):
8621 Refer to the base address, instead of the address of the first
8622 local or parameter.
8ffd9b1b 8623
da62e633
AC
86242003-04-01 Andrew Cagney <cagney@redhat.com>
8625
8626 Add frame debug info addresses:
8627 * frame-base.c: New file.
8628 * frame-base.h: New file.
8629 * frame.h (struct frame_base): Add opaque declaration.
8630 (get_frame_base): Update comment.
8631 (get_frame_base_address): Declare.
8632 (get_frame_locals_address): Declare.
8633 (get_frame_args_address): Declare.
8634 (struct frame_info): Add "base" and "base_cache". Update
8635 comments on the unwinder.
8636 * frame.c: Include "frame-base.h".
8637 (get_frame_locals_address): New function.
8638 (get_frame_base_address): New function.
8639 (get_frame_args_address): New function.
8640 * findvar.c (read_var_value): Use get_frame_locals_address and
8641 get_frame_args_address.
8642 * stack.c (frame_info): Use get_frame_locals_address and
8643 get_frame_args_address.
8644 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8645 moved to "frame-base.c".
8646 * printcmd.c (print_frame_nameless_args): Ditto.
8647 * symtab.h (address_class): Update comments.
8648 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8649 get_frame_base_address.
8650 * dwarf2expr.c (execute_stack_op): Ditto.
8651 * Makefile.in (frame_base_h): Define.
8652 (frame.o): Update dependencies.
8653 (frame-base.o): Add dependencies.
8654 (SFILES): Add frame-base.c.
8655 (COMMON_OBS): Add frame-base.o.
8656
3d30e9c2
AC
86572003-04-01 Andrew Cagney <cagney@redhat.com>
8658
8659 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8660 CALL_DUMMY_LENGTH): Ditto.
8661 * gdbarch.c: Re-generate.
8662 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8663 (CALL_DUMMY_LENGTH): Delete macro.
8664 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8665 * arm-tdep.c (arm_gdbarch_init): Ditto.
8666 * avr-tdep.c (avr_gdbarch_init): Ditto.
8667 * cris-tdep.c (cris_gdbarch_init): Ditto.
8668 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8669 * frv-tdep.c (frv_gdbarch_init): Ditto.
8670 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8671 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8672 * i386-tdep.c (i386_gdbarch_init): Ditto.
8673 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8675 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8676 * mips-tdep.c (mips_gdbarch_init): Ditto.
8677 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8678 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8679 * s390-tdep.c (s390_gdbarch_init): Ditto.
8680 * sh-tdep.c (sh_gdbarch_init): Ditto.
8681 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8682 * v850-tdep.c (v850_gdbarch_init): Ditto.
8683 * vax-tdep.c (vax_gdbarch_init): Ditto.
8684 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8685
ce0c7262
CV
86862003-04-01 Corinna Vinschen <vinschen@redhat.com>
8687
8688 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8689
73dd234f
AC
86902003-04-01 Andrew Cagney <cagney@redhat.com>
8691
8692 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8693 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8694 * gdbarch.h, gdbarch.c: Re-generate.
8695 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8696 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8697 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8698 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8699 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8700 * infcmd.c (run_stack_dummy): Simplify assuming
8701 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8702 * infrun.c (handle_inferior_event): Ditto.
8703 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8704 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8705 * arm-tdep.c (arm_gdbarch_init): Ditto.
8706 * avr-tdep.c (avr_gdbarch_init): Ditto.
8707 * cris-tdep.c (cris_gdbarch_init): Ditto.
8708 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8709 * frv-tdep.c (frv_gdbarch_init): Ditto.
8710 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8711 * i386-tdep.c (i386_gdbarch_init): Ditto.
8712 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8714 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8715 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8716 * mips-tdep.c (mips_gdbarch_init): Ditto.
8717 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8718 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8719 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8720 * s390-tdep.c (s390_gdbarch_init): Ditto.
8721 * sh-tdep.c (sh_gdbarch_init): Ditto.
8722 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8723 * v850-tdep.c (v850_gdbarch_init): Ditto.
8724 * vax-tdep.c (vax_gdbarch_init): Ditto.
8725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8726
97606a13
DJ
87272003-04-01 Daniel Jacobowitz <drow@mvista.com>
8728
8729 * symfile.c (symfile_relocate_debug_section): Update call to
8730 bfd_simple_get_relocated_section_contents.
8731
e8ab51f7
AC
87322003-03-31 Andrew Cagney <cagney@redhat.com>
8733
8734 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8735 * gdbarch.h, gdbarch.c: Regenerate.
8736 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8737 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8738 available.
8739 * frame.h (generic_fix_call_dummy): Delete declaration.
8740 * dummy-frame.h: Update comment.
8741 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8742 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8743 fix_call_dummy.
8744 * sh-tdep.c (sh_gdbarch_init): Ditto.
8745 * s390-tdep.c (s390_gdbarch_init): Ditto.
8746 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8747 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8748 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8749 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8750 * i386-tdep.c (i386_gdbarch_init): Ditto.
8751 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8752 * frv-tdep.c (frv_gdbarch_init): Ditto.
8753 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8754 * cris-tdep.c (cris_gdbarch_init): Ditto.
8755 * avr-tdep.c (avr_gdbarch_init): Ditto.
8756 * arm-tdep.c (arm_gdbarch_init): Ditto.
8757
018d1b48
JB
87582003-03-31 J. Brobecker <brobecker@gnat.com>
8759
8760 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8761 (INIT_FRAME_AP): Likewise.
8762 (EXTRA_FRAME_INFO): Likewise.
8763
e9a2674e
AC
87642003-03-31 Andrew Cagney <cagney@redhat.com>
8765
8766 * gdbarch.sh: Include "symfile.h".
8767 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8768 * gdbarch.h, gdbarch.c: Re-generate.
8769 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8770 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8771 call_dummy_address, the default is at entry_point_address.
8772 * v850-tdep.c (v850_gdbarch_init): Ditto.
8773 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8774 * sh-tdep.c (sh_gdbarch_init): Ditto.
8775 * s390-tdep.c (s390_gdbarch_init): Ditto.
8776 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8777 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8778 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8779 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8780 * i386-tdep.c (i386_gdbarch_init): Ditto.
8781 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8782 * frv-tdep.c (frv_gdbarch_init): Ditto.
8783 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8784 * cris-tdep.c (cris_gdbarch_init): Ditto.
8785 * arm-tdep.c (arm_gdbarch_init): Ditto.
8786
e8a8712a
AC
87872003-03-31 Andrew Cagney <cagney@redhat.com>
8788
8789 * gdbarch.sh (CALL_DUMMY_P): Delete.
8790 * gdbarch.h, gdbarch.c: Re-generate.
8791 * inferior.h (CALL_DUMMY_P): Delete macro.
8792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8793 * vax-tdep.c (vax_gdbarch_init): Update.
8794 * v850-tdep.c (v850_gdbarch_init): Update.
8795 * sparc-tdep.c (sparc_gdbarch_init): Update.
8796 * sh-tdep.c (sh_gdbarch_init): Update.
8797 * s390-tdep.c (s390_gdbarch_init): Update.
8798 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8799 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8800 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8801 * mips-tdep.c (mips_gdbarch_init): Update.
8802 * mcore-tdep.c (mcore_gdbarch_init): Update.
8803 * m68k-tdep.c (m68k_gdbarch_init): Update.
8804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8805 * ia64-tdep.c (ia64_gdbarch_init): Update.
8806 * i386-tdep.c (i386_gdbarch_init): Update.
8807 * h8300-tdep.c (h8300_gdbarch_init): Update.
8808 * frv-tdep.c (frv_gdbarch_init): Update.
8809 * d10v-tdep.c (d10v_gdbarch_init): Update.
8810 * cris-tdep.c (cris_gdbarch_init): Update.
8811 * breakpoint.c (deprecated_frame_in_dummy): Update.
8812 * avr-tdep.c (avr_gdbarch_init): Update.
8813 * alpha-tdep.c (alpha_gdbarch_init): Update.
8814 * arm-tdep.c (arm_gdbarch_init): Update.
8815 * dummy-frame.c (dummy_frame_this_id): Update comments.
8816 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8817 * frame.c (legacy_get_prev_frame): Ditto.
8818 * valops.c (call_function_by_hand): Delete function.
8819 (hand_function_call): Rename to call_function_by_hand
8820
ed234cf8
AC
88212003-03-30 Andrew Cagney <cagney@redhat.com>
8822
8823 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8824 * value.h (struct value): Update comment.
ed234cf8 8825
06c77151
AC
88262003-03-30 Andrew Cagney <cagney@redhat.com>
8827
6c2b5168
AC
8828 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8829 D10V_FP_REGNUM.
8830 (d10v_gdbarch_init): Do not set fp_regnum.
8831
06c77151
AC
8832 * frame.c (get_frame_base): Force ID initialization.
8833 (get_prev_frame): Move computation of the frame ID from here ...
8834 (get_frame_id): ... to here.
8835 (legacy_get_prev_frame): Mark the frame ID as valid.
8836 * frame.h (struct frame_info): Add field "id_p".
8837
97a1a11c
MK
88382003-03-30 Mark Kettenis <kettenis@gnu.org>
8839
8840 * i386-tdep.c (i386_store_struct_return): Removed.
8841 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8842
6c0e89ed
AC
88432003-03-30 Andrew Cagney <cagney@redhat.com>
8844
8845 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8846 * gdbarch.h, gdbarch.c: Regenerate.
8847 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8848 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8849 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8850 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8851 * i386-tdep.c (i386_gdbarch_init): Ditto.
8852 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8853 * cris-tdep.c (cris_gdbarch_init): Ditto.
8854 * vax-tdep.c (vax_gdbarch_init): Ditto.
8855 * s390-tdep.c (s390_gdbarch_init): Ditto.
8856 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8857 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8858 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8859 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8860 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8861 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8862 * sparc-tdep.c (sparc_gdbarch_init): Update.
8863 * sh-tdep.c (sh_gdbarch_init): Update.
8864 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8865 * mips-tdep.c (mips_gdbarch_init): Update.
8866 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8867 * ia64-tdep.c (ia64_gdbarch_init): Update.
8868 * frv-tdep.c (frv_gdbarch_init): Update.
8869 * avr-tdep.c (avr_gdbarch_init): Update.
8870 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8871 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8872 instead of when push_dummy_call is not available.
8ffd9b1b 8873
f7dd6af2
AC
88742003-03-30 Andrew Cagney <cagney@redhat.com>
8875
8876 * infttrace.c: Include "gdbthread.h".
8877 (parent_attach_all): Fix function signature.
8878 (call_ptrace): Update call.
8879 * Makefile.in (infttrace.o): Update dependencies.
8880
28f617b3
AC
88812003-03-30 Andrew Cagney <cagney@redhat.com>
8882
8883 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8884 PUSH_RETURN_ADDRESS.
8885 * gdbarch.h, gdbarch.c: Regenerate.
8886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8887 * x86-64-tdep.c (x86_64_init_abi): Update.
8888 * v850-tdep.c (v850_gdbarch_init): Update.
8889 * sparc-tdep.c (sparc_gdbarch_init): Update.
8890 * sh-tdep.c (sh_gdbarch_init): Update.
8891 * s390-tdep.c (s390_gdbarch_init): Update.
8892 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8893 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8894 * mips-tdep.c (mips_gdbarch_init): Update.
8895 * mcore-tdep.c (mcore_gdbarch_init): Update.
8896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8897 * ia64-tdep.c (ia64_gdbarch_init): Update.
8898 * i386-tdep.c (i386_gdbarch_init): Update.
8899 * h8300-tdep.c (h8300_gdbarch_init): Update.
8900 * frv-tdep.c (frv_gdbarch_init): Update.
8901 * cris-tdep.c (cris_gdbarch_init): Update.
8902 * avr-tdep.c (avr_gdbarch_init): Update.
8903 * arm-tdep.c (arm_gdbarch_init): Update.
8904 * valops.c (hand_function_call): Update.
8905
4d628cd7
AC
89062003-03-29 Andrew Cagney <cagney@redhat.com>
8907
8908 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8909 sizeof_call_dummy_words.
8910 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8911 define.
8912 * gdbarch.h: Regenerate.
8ffd9b1b 8913
65e82032
AC
89142003-03-29 Andrew Cagney <cagney@redhat.com>
8915
8916 * infttrace.h: New file.
8917 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8918 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8919 (hpread_read_doc_function_type): Detect an initialized type1.
8920 (hpread_quick_traverse): Initialize mod_name_string.
8921 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8922 (som_solib_get_solib_by_pc): Declare.
8923 (so_lib_thread_start_addr): Declare.
8924 (no_shared_libraries): Declare.
8925 * somread.c (init_import_symbols): Make static. Add forward
8926 declaration.
8927 * config/pa/nm-hppah.h: Include "infttrace.h" for
8928 parent_attach_all.
8929 (hppa_insert_hw_watchpoint): Declare.
8930 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8931 * hppah-nat.c: Include "gdb_string.h".
8932 (parent_attach_all): Delete extern declaration, moved to
8933 "infttrace.h".
8934 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8935 int.
8936 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8937 * Makefile.in (infttrace_h): Define.
8938 (hpread.o): Update dependencies.
8939 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8940 * hppa-hpux-tdep.c: Include "gdb_string.h".
8941 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8942 * infrun.c (handle_inferior_event): Always initialize
8943 stepped_after_stopped_by_watchpoint. Add default and remove
8944 fallthrough in switch statement.
8945 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8946 parameter to int.
8947 (hppa_remove_hw_watchpoint): Ditto.
8948
2c3bbe77
AC
89492003-03-29 Andrew Cagney <cagney@redhat.com>
8950
8951 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8952 offset.
8953
2dd604e7
RE
89542003-03-29 Richard Earnshaw <rearnsha@arm.com>
8955
8956 * arm-tdep.c (arm_push_arguments): Delete.
8957 (struct stack_item): New type.
8958 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8959 (arm_store_struct_return): Delte.
8960 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8961 arm_push_arguments or arm_store_struct_return.
8962
e8933a55
AC
89632003-03-28 Andrew Cagney <cagney@redhat.com>
8964
8965 * Makefile.in (d10v-tdep.o): Update dependencies.
8966 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8967 * d10v-tdep.c: Include "remote.h".
8968 (target_resume_hook): Delete extern declaration.
8969 (target_wait_loop_hook): Ditto.
8970 (tdisassemble_command): Eliminate assignment in "if" conditional.
8971 (d10v_ts2_register_sim_regno): Eliminate call to
8972 legacy_register_sim_regno.
8973 (d10v_ts3_register_sim_regno): Ditto.
8974
6949171e
JJ
89752003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8976
8977 * thread.c: Reindented.
8978 * lin-lwp.c: Ditto.
8979 * linux-proc.c: Ditto.
8980
98c7071f
BR
89812003-03-28 Bob Rossi <bob_rossi@cox.net>
8982
fbe586ae 8983 * MAINTAINERS (write after approval): Add myself.
98c7071f 8984
5edc9ca6
TR
89852003-03-27 Theodore A. Roth <troth@openavr.org>
8986
8987 * objc-exp.y: Add missing semi-colons.
8988
378bfd1b
AC
89892003-03-27 Andrew Cagney <cagney@redhat.com>
8990
8991 * regcache.c (write_sp): Delete function and references.
8992 * inferior.h (write_sp): Delete declaration.
8993 * valops.c (hand_function_call): Replace write_sp with
8994 TARGET_WRITE_SP.
8995 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8996 (sparc_pop_frame): Ditto.
8ffd9b1b 8997
56056df7
AC
89982003-03-27 Andrew Cagney <cagney@redhat.com>
8999
9000 * NEWS: Mention removal of support for hppa*-*-bsd* and
9001 hppa*-*-osf* natives, and hppa*-*-pro* target.
9002 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9003 * config/pa/xm-pa.h: Obsolete file.
9004 * config/pa/xm-hppab.h: Obsolete file.
9005 * config/pa/nm-hppab.h: Obsolete file.
9006 * config/pa/tm-hppab.h: Obsolete file.
9007 * config/pa/tm-hppao.h: Obsolete file.
9008 * config/pa/nm-hppao.h: Obsolete file.
9009 * config/pa/tm-pro.h: Obsolete file.
9010 * config/pa/hppaosf.mt: Obsolete file.
9011 * config/pa/hppaosf.mh: Obsolete file.
9012 * config/pa/hppapro.mt: Obsolete file.
9013 * config/pa/hppabsd.mt: Obsolete file.
9014 * config/pa/hppabsd.mh: Obsolete file.
9015 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9016 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9017 hppa*-*-osf*.
9018
5873a88d
AC
90192003-03-27 Andrew Cagney <cagney@redhat.com>
9020
9021 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9022 push_arguments. Don't set push_return_address or write_sp.
9023 (d10v_push_dummy_call): Replace d10v_push_arguments.
9024 (d10v_push_return_address, d10v_write_sp): Delete function,
9025 handled by push_dummy_call.
9026
b81774d8
AC
90272003-03-26 Andrew Cagney <cagney@redhat.com>
9028
9029 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9030 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9031 regcache and dummy_addr parameters.
9032 * gdbarch.h, gdbarch.c: Re-generate.
9033 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9034 available; assume it will handle stack alignment and return
9035 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9036 legacy_push_arguments.
9037 (legacy_push_arguments): Rename default_push_arguments.
9038 * value.h (legacy_push_arguments): Rename default_push_arguments.
9039 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9040 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9041 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9042 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9043 * config/i386/tm-symmetry.h: Update.
9044 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9045 * x86-64-tdep.c (x86_64_init_abi): Update.
9046 * v850-tdep.c (v850_gdbarch_init): Update.
9047 * sparc-tdep.c (sparc_gdbarch_init): Update.
9048 * sh-tdep.c (sh_gdbarch_init): Update.
9049 * s390-tdep.c (s390_gdbarch_init): Update.
9050 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9051 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9052 * mips-tdep.c (mips_gdbarch_init): Update.
9053 * mcore-tdep.c (mcore_gdbarch_init): Update.
9054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9055 * ia64-tdep.c (ia64_gdbarch_init): Update.
9056 * i386-tdep.c (i386_gdbarch_init): Update.
9057 * hppa-tdep.c (hppa_gdbarch_init): Update.
9058 * h8300-tdep.c (h8300_gdbarch_init): Update.
9059 * frv-tdep.c (frv_gdbarch_init): Update.
9060 * d10v-tdep.c (d10v_gdbarch_init): Update.
9061 * cris-tdep.c (cris_gdbarch_init): Update.
9062 * avr-tdep.c (avr_gdbarch_init): Update.
9063 * arm-tdep.c (arm_gdbarch_init): Update.
9064 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9065 * alpha-tdep.c (alpha_gdbarch_init): Update.
9066
f541410f
DJ
90672003-03-26 Daniel Jacobowitz <drow@mvista.com>
9068
9069 * signals/signals.c (do_target_signal_to_host): Correct realtime
9070 signal range test.
9071
69f567ae
DJ
90722003-03-26 Daniel Jacobowitz <drow@mvista.com>
9073
9074 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9075 (struct sal_chain, map_catch_names): Remove.
9076 (catch_exception_command_1): Don't call
9077 handle_gnu_4_16_catch_command.
9078
d5d14a5a
DJ
90792003-03-26 Daniel Jacobowitz <drow@mvista.com>
9080
9081 From Mark Dettinger <dettinge@de.ibm.com>:
9082 * dwarf2cfi.c (read_2u): Increment pointer by two.
9083
bdd73e22
DJ
90842003-03-26 Daniel Jacobowitz <drow@mvista.com>
9085
9086 * signals/signals.c: Fix typos in last change.
9087
960cb555
DJ
90882003-03-26 Daniel Jacobowitz <drow@mvista.com>
9089
9090 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9091 not already defined. Use __SIGRTMIN if available.
9092 (target_signal_from_host): Remove SIGRTMIN block.
9093 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9094 the signal is within the realtime range.
9095
f636b87d
AF
90962003-03-25 Adam Fedor <fedor@gnu.org>
9097
9098 * Makefile.in (infrun.o): Add $(language_h)
9099 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9100 for language specific trampolines.
9101 * language.h (struct language_defn): Add skip_trampoline.
9102 (skip_language_trampoline): Declare.
9103 * language.c (unk_lang_trampoline, skip_language_trampoline):
9104 New functions.
9105 (unknown_language_defn, auto_language_defn, local_language_defn):
9106 Add ukn_lang_trampoline.
9107 * ada-lang.c (ada_language_defn): Add NULL for language
9108 specific skip_trampoline.
9109 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9110 scm-lang.c: Likewise.
9111 * objc-lang.c (objc_skip_trampoline): New function.
9112 (objc_language_defn): Add objc_skip_trampoline.
9113
28f617b3 91142003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9115
9116 * frame.c (get_prev_frame): Delay validating a frame's ID -
9117 non-NULL, didn't go backwards - until an attempt to unwind it to
9118 the previous frame.
9119
f933a9c5
AC
91202003-03-25 Andrew Cagney <cagney@redhat.com>
9121
9122 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9123 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9124 * gdbarch.h, gdbarch.c: Re-generate.
9125 * config/sparc/tm-sparc.h
9126 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9127 * sparc-tdep.c (sparc_gdbarch_init): Set
9128 deprecated_extra_stack_alignment_needed.
9129 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9131 extra_stack_alignment_needed.
9132 * v850-tdep.c (v850_gdbarch_init): Ditto.
9133 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9134 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9135 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9136 * cris-tdep.c (cris_gdbarch_init): Ditto.
9137 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9138 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9139
4183d812
AC
91402003-03-25 Andrew Cagney <cagney@redhat.com>
9141
9142 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9143 STORE_STRUCT_RETURN.
9144 * gdbarch.h, gdbarch.c: Regenerate.
9145 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9146 (d10v_push_arguments): Set the struct return register.
9147 (d10v_gdbarch_init): Update.
9148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9149 * x86-64-tdep.c (x86_64_init_abi): Update.
9150 * vax-tdep.c (vax_gdbarch_init): Update.
9151 * v850-tdep.c (v850_gdbarch_init): Update.
9152 * sparc-tdep.c (sparc_gdbarch_init): Update.
9153 * sh-tdep.c (sh_gdbarch_init): Update.
9154 * s390-tdep.c (s390_gdbarch_init): Update.
9155 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9156 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9157 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9158 * mips-tdep.c (mips_gdbarch_init): Update.
9159 * mcore-tdep.c (mcore_gdbarch_init): Update.
9160 * m68k-tdep.c (m68k_gdbarch_init): Update.
9161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9162 * ia64-tdep.c (ia64_gdbarch_init): Update.
9163 * i386-tdep.c (i386_gdbarch_init): Update.
9164 * hppa-tdep.c (hppa_gdbarch_init): Update.
9165 * h8300-tdep.c (h8300_gdbarch_init): Update.
9166 * frv-tdep.c (frv_gdbarch_init): Update.
9167 * cris-tdep.c (cris_gdbarch_init): Update.
9168 * avr-tdep.c (avr_gdbarch_init): Update.
9169 * arm-tdep.c (arm_gdbarch_init): Update.
9170 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9171
1bf6d5cc
AC
91722003-03-25 Andrew Cagney <cagney@redhat.com>
9173
9174 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9175 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9176 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9177 * gdbarch.h, gdbarch.c: Regenerate.
9178 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9179 call_dummy_stack_adjust_p.
9180 * vax-tdep.c (vax_gdbarch_init): Ditto.
9181 * v850-tdep.c (v850_gdbarch_init): Ditto.
9182 * sh-tdep.c (sh_gdbarch_init): Ditto.
9183 * s390-tdep.c (s390_gdbarch_init): Ditto.
9184 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9185 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9186 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9187 * mips-tdep.c (mips_gdbarch_init): Ditto.
9188 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9189 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9191 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9192 * i386-tdep.c (i386_gdbarch_init): Ditto.
9193 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9194 * frv-tdep.c (frv_gdbarch_init): Ditto.
9195 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9196 * cris-tdep.c (cris_gdbarch_init): Ditto.
9197 * avr-tdep.c (avr_gdbarch_init): Ditto.
9198 * arm-tdep.c (arm_gdbarch_init): Ditto.
9199 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9200 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9201 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9202 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9203 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9204 call_dummy_stack_adjust_p.
9205 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9206 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9207 * sparc-tdep.c (sparc32_push_arguments): Update.
9208 * valops.c (hand_function_call): Update.
9209
71c08af0
CV
92102003-03-25 Corinna Vinschen <vinschen@redhat.com>
9211
9212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9213 set_gdbarch_char_signed.
9214
30757f90
RE
92152003-03-25 Richard Earnshaw <rearnsha@arm.com>
9216
9217 PR cli/548
9218 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9219
03d48a7d
RE
92202003-03-25 Richard Earnshaw <rearnsha@arm.com>
9221
9222 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9223 (_initialize_arm_tdep): Don't set tm_print_insn.
9224
2cf6873c
AF
92252003-03-24 Adam Fedor <fedor@gnu.org>
9226
9227 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9228 * objc-lang.h: Add multiple inclusion protection.
9229 (start_msglist, add_msglist, end_msglist): Additional declarations.
9230
17c0759e
RE
92312003-03-24 Richard Earnshaw <rearnsha@arm.com>
9232
9233 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9234 value was renamed to ARM_FLOAT_SOFT_FPA.
9235
618ce49f
AC
92362003-03-23 Andrew Cagney <cagney@redhat.com>
9237
9238 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9239 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9240 * gdbarch.h, gdbarch.c: Regenerate.
9241 * valops.c (hand_function_call): Update.
9242 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9243 * frame.c (legacy_saved_regs_this_id): Update.
9244 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9245 * dummy-frame.h: Update.
9246 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9247 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9248 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9249 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9250 * config/m68k/tm-sun3.h: Update.
9251 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9253 * x86-64-tdep.c (x86_64_init_abi): Update.
9254 * vax-tdep.c (vax_gdbarch_init): Update.
9255 * v850-tdep.c (v850_gdbarch_init): Update.
9256 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9257 * sh-tdep.c (sh_gdbarch_init): Update.
9258 * s390-tdep.c (s390_gdbarch_init): Update.
9259 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9260 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9261 (frame_get_saved_regs): Update.
9262 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9263 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9264 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9265 * mips-tdep.c (mips_gdbarch_init): Update.
9266 * mcore-tdep.c (mcore_gdbarch_init): Update.
9267 * m68k-tdep.c (m68k_gdbarch_init): Update.
9268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9269 * ia64-tdep.c (ia64_gdbarch_init): Update.
9270 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9271 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9272 (i386_interix_back_one_frame): Update.
9273 * hppa-tdep.c (hppa_gdbarch_init): Update.
9274 (hppa_init_extra_frame_info): Update.
9275 * h8300-tdep.c (h8300_gdbarch_init): Update.
9276 * frv-tdep.c (frv_gdbarch_init): Update.
9277 * cris-tdep.c (cris_gdbarch_init): Update.
9278 * avr-tdep.c (avr_gdbarch_init): Update.
9279 * arm-tdep.c (arm_gdbarch_init): Update.
9280 * alpha-tdep.c (alpha_gdbarch_init): Update.
9281
fd50bc42
RE
92822003-03-22 Richard Earnshaw <rearnsha@arm.com>
9283
9284 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9285 (arm_get_fp_model): Declare.
9286 * arm-tdep.c (fp_model_strings): New string array.
9287 (arm_fp_model, current_fp_model): New variables.
9288 (arm_get_fp_model): New function.
9289 (arm_set_fp): New function.
9290 (set_fp_model_sfunc): New function.
9291 (show_fp_model): New function.
9292 (_initialize_arm_tdep): Add new command to set/show the FPU.
9293 (arm_extract_return_value): Use arm_get_fp_model.
9294 (arm_store_return_value): Likewise.
9295 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9296 to initialize the floating-point data types.
9297 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9298 model is FPA.
9299
26304000
RE
93002003-03-22 Richard Earnshaw <rearnsha@arm.com>
9301
9302 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9303 the current setting of each value.
9304 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9305 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9306 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9307 commands and add new version as subcommands of "set/show arm".
9308
afd7eef0
RE
93092003-03-22 Richard Earnshaw <rearnsha@arm.com>
9310
9311 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9312 (set_arm_command, show_arm_command): New functions.
9313 (_initialize_arm_tdep): Add them.
9314 (num_disassembly_options): Renamed from num_flavor_options.
9315 (valid_disassembly_styles): Renamed from valid_flavors.
9316 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9317 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9318 set_disassembly_flavor_sfunc.
9319 (set_disassembly_style): Renamed from set_disassembly_flavor.
9320 (arm_othernames): Updated.
9321 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9322 command. Add "set/show arm disassembly" commands. Deprecate
9323 "othernames" command.
9324
299a7944
RE
93252003-03-22 Richard Earnshaw <rearnsha@arm.com>
9326
9327 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9328 (arm-tdep.o): Depend on elf_arm_h.
9329
c1dac9e6
RE
93302003-03-22 Richard Earnshaw <rearnsha@arm.com>
9331
9332 * Makefile.in (coff_internal_h): Define.
9333 (arm-tdep.o): Update dependencies.
9334
2702d96c
RE
93352003-03-22 Richard Earnshaw <rearnsha@arm.com>
9336
9337 * arm-tdep.c (prologue_cache): Delete.
9338 (check_prologue_cache, save_prologue_cache): Delete.
9339 (arm_scan_prologue): Don't check or update the prologue_cache.
9340 (arm_gdb_arch_init): Don't initialize it.
9341 (_initialize_arm_tdep): Likewise.
9342
27d5d74b
SC
93432003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9344
9345 * MAINTAINERS (tui): Maintainer of tui code.
9346
1762d96d
CV
93472003-03-21 Corinna Vinschen <vinschen@redhat.com>
9348
9349 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9350 (i386-cygwin-tdep.o): Add dependencies.
9351 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9352 * i386-cygwin-tdep.c: New file.
9353 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9354 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9355
4c2e2391
AC
93562003-03-20 Andrew Cagney <cagney@redhat.com>
9357
f20d38b7
AC
9358 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9359 (handle_inferior_event): Remove code calling
9360 DYNAMIC_TRAMPOLINE_NEXTPC.
9361
0022b738
AC
9362 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9363 already has a full path.
9364
864dbc90
AC
9365 * main.c (gdb_main): Return 1.
9366 (captured_main): Call error to report an invalid interpreter.
9367
4c2e2391
AC
9368 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9369 * alpha-osf1-tdep.c: Include "gdb_string.h".
9370
5ef7553b
JB
93712003-03-19 J. Brobecker <brobecker@gnat.com>
9372
9373 Continuing work to convert the hppa targets to multiarch partial.
9374
9375 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9376 method, now that hppa_push_dummy_frame has a conformant prototype.
9377 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9378 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9379 for the switch to multiarch partial.
9380
7bde8967
KB
93812003-03-19 Kevin Buettner <kevinb@redhat.com>
9382
9383 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9384 when iss is issNull.
9385
b006a9e9
KB
93862003-03-18 Kevin Buettner <kevinb@redhat.com>
9387
9388 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9389 NUM_REGS bounds check.
9390
5e2e9765
KB
93912003-03-18 Kevin Buettner <kevinb@redhat.com>
9392
9393 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9394 * mips-tdep.c (gdb_assert.h): Include.
9395 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9396 (mips_register_name): Handle integer registers explicitly. Add
9397 bounds checking.
9398 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9399 (mips_lsi33k_reg_names): Don't list integer registers; they're
9400 handled by mips_register_name() now.
9401 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9402 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9403 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9404 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9405 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9406
a2867626
AC
94072003-03-18 Andrew Cagney <cagney@redhat.com>
9408
9409 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9410 a void pointer.
9411 * gdbtypes.h (print_scalar_formatted): Update declaration.
9412 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9413
06600e06
JB
94142003-03-18 J. Brobecker <brobecker@gnat.com>
9415
9416 * infrun.c (observer.h): Add #include.
9417 (normal_stop): Add call to observer_notify_normal_stop.
9418 * Makefile.in (infrun.o): Add dependency on observer.h.
9419
7daf4f5b
JB
94202003-03-18 J. Brobecker <brobecker@gnat.com>
9421
9422 Continuing work to convert the hppa targets to multiarch partial.
9423 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9424 parameter. Reformat comment.
9425 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9426 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9427 to match new profile.
9428
3371ccc0
JB
94292003-03-18 J. Brobecker <brobecker@gnat.com>
9430
9431 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9432 appear to be working in any case.
9433
4fbe891e
JB
94342003-03-18 J. Brobecker <brobecker@gnat.com>
9435
9436 * observer.c (observer_test_first_observer): New static variable.
9437 (observer_test_second_observer): Likewise.
9438 (observer_test_third_observer): Likewise.
9439 (observer_test_first_notification_function): New static function.
9440 (observer_test_second_notification_function): Likewise.
9441 (observer_test_third_notification_function): Likewise.
9442
a7ff40e7
JB
94432003-03-17 J. Brobecker <brobecker@gnat.com>
9444
9445 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9446 * somsolib.c (gdb_assert.h): Likewise.
9447 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9448 (somsolib.o): Likewise.
9449
26ca4152
AC
94502003-03-17 Andrew Cagney <cagney@redhat.com>
9451
9452 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9453 BFD. Simplify setting of di.endian.
9454
0a613259
AC
94552003-03-17 Andrew Cagney <cagney@redhat.com>
9456
9457 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9458 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9459
9460 From Elena Zannoni <ezannoni@redhat.com>
9461 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9462 vector and floating-point parameters.
9463 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9464 convention.
9465 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9466
1132738f
FN
94672003-03-17 Fernando Nasser <fnasser@redhat.com>
9468
9469 * MAINTAINERS: Remove my name from several maintainership roles.
9470
6dc42492
AC
94712003-03-17 Andrew Cagney <cagney@redhat.com>
9472
9473 Fix frame off-by-one bug.
9474 * frame-unwind.h (frame_this_id_ftype): Replace
9475 frame_unwind_id_ftype.
9476 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9477 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9478 with "prev_register".
9479 * frame-unwind.c (frame_unwind_find_by_pc): Return
9480 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9481 comment.
9482 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9483 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9484 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9485 (dummy_frame_unwind): Update.
9486 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9487 sentinel_frame_register_unwind.
9488 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9489 (sentinel_frame_unwinder): Update.
9490 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9491 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9492 * frame.c (create_sentinel_frame): Update. Initialize
9493 "prologue_cache" instead of "unwind_cache".
9494 (frame_register_unwind): Call this frame's prev_register with the
9495 next frame and this frame's prologue cache.
9496 (get_prev_frame): Simplify. Always call prev frame's this_id with
9497 this frame and prev frame's prologue cache. Document that this
9498 call is shifted one to the left when compared to the
9499 frame_register_unwind call.
9500 (legacy_saved_regs_prev_register): Replace
9501 frame_saved_regs_register_unwind.
9502 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9503 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9504 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9505 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9506 (d10v_frame_unwind): Update.
9507 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9508 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9509 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9510 "saved_regs" with "this_saved_regs".
9511
efd710d6
AC
95122003-03-16 Andrew Cagney <cagney@redhat.com>
9513
9514 * frame.c (frame_pop): Don't call target_store_registers. Fix
9515 problem reported by Mark Kettenis.
9516
4e259f09
MK
95172003-03-16 Mark Kettenis <kettenis@gnu.org>
9518
9519 * i386-tdep.c (i386_register_type): Renamed from
9520 i386_register_virtual_type. Adjust function signature.
9521 (i386_gdbarch_init): Set register_type instead of
9522 deprecated_max_register_raw_size,
9523 deprecated_max_register_virtual_size and register_virtual_type.
9524
055bb976
AC
95252003-03-14 Andrew Cagney <cagney@redhat.com>
9526
9527 * frame.c (get_prev_frame): When a legacy frame, always call
9528 legacy_get_prev_frame. Simplify unwind code using assumption that
9529 the unwinder is new.
9530 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9531 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9532 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9533
ac2adee5
AC
95342003-03-14 Andrew Cagney <cagney@redhat.com>
9535
9536 * frame.c (get_saved_register): Delete function.
9537 * frame.h (get_saved_register): Delete declaration.
9538 * xstormy16-tdep.c: Update comment.
9539 * regcache.h: Update comments.
9540 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9541 get_saved_register and extract_address, use
9542 frame_read_unsigned_register.
9543 (sparc_frame_saved_pc): Ditto.
9544 (sparc_get_saved_register): Instead of get_saved_register, use
9545 frame_register.
9546 (sparc_pop_frame): Ditto.
9547 * findvar.c: Update comments.
9548 (value_of_register): Call frame_register instead of
9549 get_saved_register.
9550 (value_from_register): Ditto.
9551 * config/sparc/tm-sparc.h: Update comment.
9552 * breakpoint.c: Update comment.
9553
129c1cd6
AC
95542003-03-14 Andrew Cagney <cagney@redhat.com>
9555
9556 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9557 GET_SAVED_REGISTER.
9558 * gdbarch.h, gdbarch.c: Re-generate.
9559 * frame.h: Update comments.
9560 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9561 * x86-64-tdep.c (x86_64_init_abi): Update.
9562 * sparc-tdep.c (sparc_gdbarch_init): Update.
9563 * sh-tdep.c (sh_gdbarch_init): Update.
9564 * mips-tdep.c (mips_gdbarch_init): Update.
9565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9566 * cris-tdep.c (cris_gdbarch_init): Update.
9567 * ia64-tdep.c (ia64_gdbarch_init): Update.
9568 * frame.c (frame_register): Update.
9569 (get_saved_register): Update.
9570 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9571
749b82f6
AC
95722003-03-13 Andrew Cagney <cagney@redhat.com>
9573
9574 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9575 * gdbarch.h, gdbarch.c: Regenerate.
9576 * valops.c (hand_function_call): Update comment.
9577 * stack.c (return_command): Update comment.
9578 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9579 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9581 * x86-64-tdep.c (x86_64_init_abi): Update.
9582 * vax-tdep.c (vax_gdbarch_init): Update.
9583 * v850-tdep.c (v850_gdbarch_init): Update.
9584 * sparc-tdep.c (sparc_gdbarch_init): Update.
9585 * sh-tdep.c (sh_gdbarch_init): Update.
9586 * s390-tdep.c (s390_gdbarch_init): Update.
9587 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9588 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9589 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9590 * mips-tdep.c (mips_gdbarch_init): Update.
9591 * mcore-tdep.c (mcore_gdbarch_init): Update.
9592 * m68k-tdep.c (m68k_gdbarch_init): Update.
9593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9594 * ia64-tdep.c (ia64_gdbarch_init): Update.
9595 * i386-tdep.c (i386_gdbarch_init): Update.
9596 * hppa-tdep.c (hppa_gdbarch_init): Update.
9597 * h8300-tdep.c (h8300_gdbarch_init): Update.
9598 * frv-tdep.c (frv_gdbarch_init): Update.
9599 * cris-tdep.c (cris_gdbarch_init): Update.
9600 * avr-tdep.c (avr_gdbarch_init): Update.
9601 * arm-tdep.c (arm_gdbarch_init): Update.
9602 * alpha-tdep.c (alpha_gdbarch_init): Update.
9603
1594fa56
AC
96042003-03-13 Andrew Cagney <cagney@redhat.com>
9605
9606 * frame.c (legacy_frame_p): New function.
9607 (get_prev_frame): Use legacy_frame_p.
9608 * frame.h (legacy_frame_p): Declare.
9609
7717fda3
V
96102003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9611
fbe586ae 9612 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9613 listing corrected.
9614
0c67cbe9
V
96152003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9616
fbe586ae 9617 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9618
03febf99
AC
96192003-03-12 Andrew Cagney <cagney@redhat.com>
9620
9621 * frame.c (get_prev_frame): Rename the frame parameter to
9622 "this_frame".
9623 (get_next_frame, legacy_get_prev_frame): Ditto.
9624
0a1e1ca1
AC
96252003-03-12 Andrew Cagney <cagney@redhat.com>
9626
9627 * frame.c (get_current_frame): Check target_has_registers before
9628 checking target_has_stack.
9629 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9630 instead of deprecated_selected_frame.
9631 * findvar.c (value_of_register): Pass "frame", not
9632 deprecated_selected_frame, to value_of_builtin_reg.
9633
a66a9c23
AC
96342003-03-12 Andrew Cagney <cagney@redhat.com>
9635
9636 * regcache.c (regcache_cooked_write_signed): New function.
9637 (regcache_cooked_write_unsigned): New function.
9638 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9639 (regcache_cooked_read_signed): Fix regnum in range assertion.
9640 * regcache.h (regcache_cooked_write_signed): Declare.
9641 (regcache_cooked_write_unsigned): Declare.
9642
8bedc050
AC
96432003-03-12 Andrew Cagney <cagney@redhat.com>
9644
9645 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9646 * gdbarch.h, gdbarch.c: Re-generate.
9647 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9648 * x86-64-tdep.h: Update.
9649 * x86-64-tdep.c (x86_64_init_abi): Update.
9650 * v850-tdep.c (v850_gdbarch_init): Update.
9651 * sparc-tdep.c (sparc_gdbarch_init): Update.
9652 * sh-tdep.c (sh_gdbarch_init): Update.
9653 * s390-tdep.c (s390_gdbarch_init): Update.
9654 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9655 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9656 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9657 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9658 * mips-tdep.c (mips_gdbarch_init): Update.
9659 * mcore-tdep.c (mcore_gdbarch_init): Update.
9660 * m68k-tdep.c (m68k_gdbarch_init): Update.
9661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9662 * ia64-tdep.c (ia64_gdbarch_init): Update.
9663 * i386-tdep.c (i386_gdbarch_init): Update.
9664 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9665 * hppa-tdep.c (hppa_gdbarch_init): Update.
9666 * h8300-tdep.c (h8300_gdbarch_init): Update.
9667 * frv-tdep.c (frv_gdbarch_init): Update.
9668 * cris-tdep.c (cris_gdbarch_init): Update.
9669 * avr-tdep.c (avr_gdbarch_init): Update.
9670 * arm-tdep.c (arm_gdbarch_init): Update.
9671 * alpha-tdep.c (alpha_gdbarch_init): Update.
9672 * sh-tdep.c (sh_init_extra_frame_info): Update.
9673 (sh64_init_extra_frame_info): Update.
9674 * ns32knbsd-nat.c (frame_num_args): Update.
9675 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9676 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9677 (xstormy16_frame_chain_valid): Update.
9678 * vax-tdep.c (vax_saved_pc_after_call): Update.
9679 * v850-tdep.c (v850_frame_chain): Update.
9680 (v850_pop_frame): Update.
9681 (v850_init_extra_frame_info): Update.
9682 * sparc-tdep.c (setup_arbitrary_frame): Update.
9683 * ns32k-tdep.c (umax_frame_num_args): Update.
9684 * s390-tdep.c (s390_pop_frame_regular): Update.
9685 * mn10300-tdep.c (mn10300_frame_chain): Update.
9686 (mn10300_pop_frame_regular): Update.
9687 (mn10300_init_extra_frame_info): Update.
9688 * mips-tdep.c (mips_init_frame_pc_first): Update.
9689 (mips_frame_chain): Update.
9690 (mips_pop_frame): Update.
9691 * mcore-tdep.c (mcore_frame_chain): Update.
9692 (mcore_pop_frame): Update.
9693 (mcore_init_extra_frame_info): Update.
9694 * arch-utils.c (init_frame_pc_default): Update.
9695 * m68k-tdep.c (isi_frame_num_args): Update.
9696 (delta68_frame_num_args): Update.
9697 (news_frame_num_args): Update.
9698 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9699 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9700 (alpha_frame_chain): Update.
9701 (alpha_pop_frame): Update.
9702 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9703 (hppa_init_extra_frame_info): Update.
9704 (hppa_frame_chain): Update.
9705 (hppa_frame_chain_valid): Update.
9706 * cris-tdep.c (cris_init_extra_frame_info): Update.
9707 * avr-tdep.c (avr_init_extra_frame_info): Update.
9708 * arm-tdep.c (arm_frame_chain_valid): Update.
9709 (arm_init_extra_frame_info): Update.
9710 (arm_pop_frame): Update.
9711 * frame.c (frame_pc_unwind): Update.
9712 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9713 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9714 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9715 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9716 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9717 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9718
7a25a7c1
AC
97192003-03-12 Andrew Cagney <cagney@redhat.com>
9720
9721 Eliminate the need for POP_FRAME.
9722 * frame.c (do_frame_unwind_register): New function.
9723 (frame_pop): When no POP_FRAME, pop the frame using register
9724 unwind and a scratch regcache.
9725 (frame_saved_regs_pop): Delete function.
9726 (trad_frame_unwinder): Update.
9727 * d10v-tdep.c (d10v_frame_pop): Delete function.
9728 (d10v_frame_unwind): Update.
9729 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9730 (sentinel_frame_unwinder): Update.
9731 * dummy-frame.c (dummy_frame_pop): Delete function.
9732 (dummy_frame_unwind): Update.
9733 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9734 (struct frame_unwind): Update.
9735
2f38ef89
KB
97362003-03-11 Kevin Buettner <kevinb@redhat.com>
9737
9738 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9739 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9740 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9741 Do range checks on register number obtained from debugging info.
9742 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9743 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9744 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9745 mapping function.
9746 (do_fp_register_row): Fix typo which caused double type to be
9747 used when attempting to unpack a float.
9748
552f4abf
JB
97492003-03-11 J. Brobecker <brobecker@gnat.com>
9750
9751 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9752
e0d2ae16
AC
97532003-03-11 Andrew Cagney <cagney@redhat.com>
9754
9755 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9756 frame. Problem found by Corinna Vinschen.
9757
ddbfdd06
PM
97582003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9759
9760 * doublest.c (floatformat_from_length): Accept also
9761 the real size of 'long double' type.
9762
088b2ddc 97632003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9764
088b2ddc 9765 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9766 * breakpoint.c (bpstat_copy): Copy the command lines as well
9767 as the old value, to match what is freed in bpstat_clear.
9768
f56f77c1
DC
97692003-03-10 David Carlton <carlton@math.stanford.edu>
9770
9771 * minsyms.c (add_minsym_to_hash_table): Replace
9772 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9773 (compare_minimal_symbols, compact_minimal_symbols)
9774 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9775 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9776 of DEPRECATED_SYMBOL_MATCHES_NAME.
9777 (lookup_minimal_symbol_solib_trampoline): Ditto.
9778
5602984a
AC
97792003-03-10 Andrew Cagney <cagney@redhat.com>
9780
9781 * regcache.h (regcache_cooked_read_ftype): Define.
9782 (regcache_save, regcache_restore): Add a cooked_read parameter.
9783 * regcache.c (regcache_save, regcache_restore): Update.
9784 (do_cooked_read): New function.
9785 (regcache_cpy): Pass do_cooked_read to regcache_save and
9786 regcache_restore.
9787
8bedc050
AC
97882003-03-10 Andrew Cagney <cagney@redhat.com>
9789
9790 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9791 * gdbarch.h, gdbarch.c: Re-generate.
9792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9793 * x86-64-tdep.h: Update.
9794 * x86-64-tdep.c (x86_64_init_abi): Update.
9795 * v850-tdep.c (v850_gdbarch_init): Update.
9796 * sparc-tdep.c (sparc_gdbarch_init): Update.
9797 * sh-tdep.c (sh_gdbarch_init): Update.
9798 * s390-tdep.c (s390_gdbarch_init): Update.
9799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9800 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9801 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9802 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9803 * mips-tdep.c (mips_gdbarch_init): Update.
9804 * mcore-tdep.c (mcore_gdbarch_init): Update.
9805 * m68k-tdep.c (m68k_gdbarch_init): Update.
9806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9807 * ia64-tdep.c (ia64_gdbarch_init): Update.
9808 * i386-tdep.c (i386_gdbarch_init): Update.
9809 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9810 * hppa-tdep.c (hppa_gdbarch_init): Update.
9811 * h8300-tdep.c (h8300_gdbarch_init): Update.
9812 * frv-tdep.c (frv_gdbarch_init): Update.
9813 * cris-tdep.c (cris_gdbarch_init): Update.
9814 * avr-tdep.c (avr_gdbarch_init): Update.
9815 * arm-tdep.c (arm_gdbarch_init): Update.
9816 * alpha-tdep.c (alpha_gdbarch_init): Update.
9817 * sh-tdep.c (sh_init_extra_frame_info): Update.
9818 (sh64_init_extra_frame_info): Update.
9819 * ns32knbsd-nat.c (frame_num_args): Update.
9820 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9821 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9822 (xstormy16_frame_chain_valid): Update.
9823 * vax-tdep.c (vax_saved_pc_after_call): Update.
9824 * v850-tdep.c (v850_frame_chain): Update.
9825 (v850_pop_frame): Update.
9826 (v850_init_extra_frame_info): Update.
9827 * sparc-tdep.c (setup_arbitrary_frame): Update.
9828 * ns32k-tdep.c (umax_frame_num_args): Update.
9829 * s390-tdep.c (s390_pop_frame_regular): Update.
9830 * mn10300-tdep.c (mn10300_frame_chain): Update.
9831 (mn10300_pop_frame_regular): Update.
9832 (mn10300_init_extra_frame_info): Update.
9833 * mips-tdep.c (mips_init_frame_pc_first): Update.
9834 (mips_frame_chain): Update.
9835 (mips_pop_frame): Update.
9836 * mcore-tdep.c (mcore_frame_chain): Update.
9837 (mcore_pop_frame): Update.
9838 (mcore_init_extra_frame_info): Update.
9839 * arch-utils.c (init_frame_pc_default): Update.
9840 * m68k-tdep.c (isi_frame_num_args): Update.
9841 (delta68_frame_num_args): Update.
9842 (news_frame_num_args): Update.
9843 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9844 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9845 (alpha_frame_chain): Update.
9846 (alpha_pop_frame): Update.
9847 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9848 (hppa_init_extra_frame_info): Update.
9849 (hppa_frame_chain): Update.
9850 (hppa_frame_chain_valid): Update.
9851 * cris-tdep.c (cris_init_extra_frame_info): Update.
9852 * avr-tdep.c (avr_init_extra_frame_info): Update.
9853 * arm-tdep.c (arm_frame_chain_valid): Update.
9854 (arm_init_extra_frame_info): Update.
9855 (arm_pop_frame): Update.
9856 * frame.c (frame_pc_unwind): Update.
9857 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9858 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9859 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9860 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9861 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9862 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9863
12cc2063
AC
98642003-03-10 Andrew Cagney <cagney@redhat.com>
9865
9866 * gdbarch.sh (gdbarch_unwind_pc): New method.
9867 * gdbarch.h, gdbarch.c: Regenerate.
9868 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9869 but use read_pc and FRAME_SAVED_PC as fall backs.
9870 (frame_saved_regs_pc_unwind): Delete function.
9871 (trad_frame_unwinder): Update.
9872 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9873 (struct frame_unwind): Update.
9874 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9875 (dummy_frame_unwind): Update.
9876 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9877 (sentinel_frame_unwinder): Update.
9878 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9879 (d10v_frame_unwind): Update.
9880 (d10v_unwind_pc): New function.
9881 (d10v_gdbarch_init): Set unwind_pc.
9882
ef840a37
AC
98832003-03-10 Andrew Cagney <cagney@redhat.com>
9884
a2ce2e56
AC
9885 * gdbarch.h: Re-generate.
9886
ef840a37
AC
9887 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9888 PC.
9889 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9890 the PC register.
9891
08f3424b
MK
98922003-03-08 Mark Kettenis <kettenis@gnu.org>
9893
9894 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9895
1248ede2
AC
98962003-03-08 Andrew Cagney <cagney@redhat.com>
9897
9898 * cli-out.c: Update copyright.
9899 (cli_out_data): Define typedef. Use instead of ui_out_data.
9900
f49bacc8
AC
99012003-03-08 Andrew Cagney <cagney@redhat.com>
9902
9903 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9904 the result.
9905
9b05f993
AC
99062003-03-07 Andrew Cagney <cagney@redhat.com>
9907
9908 * gdbarch.sh: Don't generate two macro definitions when an
9909 undefined macro taking no arguments.
9910 * gdbarch.h: Regenerate.
8ffd9b1b 9911
166f4c7b
ML
99122002-03-07 Michal Ludvig <mludvig@suse.cz>
9913
9914 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9915 (x86_64_unwind_dummy_id): New functions.
9916 (x86_64_init_abi): Register these two new functions.
9917
6d686a84
ML
99182003-03-07 Michal Ludvig <mludvig@suse.cz>
9919
9920 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9921 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9922 separate function.
9923 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9924
6314f104
AC
99252003-03-05 Andrew Cagney <cagney@redhat.com>
9926
9927 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9928 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9929 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9930 to use unwind_dummy_id when a dummy frame.
9931 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9932 predicate.
9933 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9934
ceea5145
AC
99352003-03-05 Andrew Cagney <cagney@redhat.com>
9936
9937 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9938 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9939 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9940 values.
9941
0d843116
AC
99422003-03-05 Andrew Cagney <cagney@redhat.com>
9943
9944 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9945 (struct d10v_unwind_cache): Delete field "frameless". Replace
9946 "next_addr" with "sp_offset". Add "r11_offset".
9947 (d10v_frame_unwind_cache): Update.
9948 (prologue_find_regs): Update. When "mv r11, sp", save the
9949 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9950 RN was saved in r11_offset.
9951
b2579786
AC
99522003-03-05 Andrew Cagney <cagney@redhat.com>
9953
9954 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9955 cached PC value in the next frame.
9956
218e5956
AC
99572003-03-05 Andrew Cagney <cagney@redhat.com>
9958
9959 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9960 "id_unwind_cache" with "id".
9961 (frame_id_unwind): Delete declaration.
9962 * frame.c (frame_id_unwind): Delete function.
9963 (get_prev_frame): Call the frame id unwind method directly. Store
9964 the returned next frame's ID value in NEXT_FRAME. Note that there
9965 is a problem with the wrong unwind ID being called with the wrong
9966 unwind cache.
9967
ed363b1b
DJ
99682003-03-05 Daniel Jacobowitz <drow@mvista.com>
9969
9970 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9971
fe1f4a5e
DJ
99722003-03-05 James Ingham <jingham@apple.com>
9973 Daniel Jacobowitz <drow@mvista.com>
9974
9975 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9976 (auto_cp_abi): New variable.
9977 (current_cp_abi, num_cp_abis): Make static.
9978 (CP_ABI_MAX): Define.
9979 (cp_abis): Turn into an array.
9980 (value_virtual_fn_field): Fix formatting.
9981 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9982 takes a pointer.
9983 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9984 (list_cp_abis, _initialize_cp_abi): New functions.
9985 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9986 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9987 switch_to_cp_abi. Update prototype for register_cp_abi.
9988 * Makefile.in (cp-abi.o): Update dependencies.
9989 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9990 instead of switch_to_cp_abi.
9991 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9992 register_cp_abi.
9993 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9994 register_cp_abi.
9995 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9996
e4adbba9
DJ
99972003-03-05 Daniel Jacobowitz <drow@mvista.com>
9998
9999 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10000 * dwarf2loc.c: Include "regcache.h".
10001 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10002 register_size.
10003 * Makefile.in (dwarf2loc.o): Update dependencies.
10004
91ccbfc1
TR
100052003-03-04 Theodore A. Roth <troth@openavr.org>
10006
10007 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10008 number of io registers reported by remote target is not a multiple of
10009 step.
10010
3d4e8fd2
DC
100112003-03-04 David Carlton <carlton@math.stanford.edu>
10012
10013 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10014 (lookup_symbol_aux_psymtabs): Update call to
10015 lookup_partial_symbol.
10016 (lookup_transparent_type, find_main_psymtab)
10017 (make_symbol_overload_list): Ditto.
10018
ed42d87b
KH
100192003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10020
10021 * MAINTAINERS (Write after approval): Update my email address.
10022
a0ed5532
AC
100232003-03-03 Andrew Cagney <cagney@redhat.com>
10024
10025 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10026 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10027 predicate. Replace MAX_REGISTER_RAW_SIZE.
10028 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10029 MAX_REGISTER_VIRTUAL_SIZE.
10030 * regcache.c (legacy_max_register_raw_size): New function.
10031 (legacy_max_register_virtual_size): New function.
10032 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10033 (MAX_REGISTER_RAW_SIZE): Define.
10034 (legacy_max_register_raw_size): Declare.
10035 (legacy_max_register_virtual_size): Declare.
10036 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10037 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10038 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10039 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10040 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10041 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10042 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10043 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10044 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10045 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10046 * vax-tdep.c (vax_gdbarch_init): Update.
10047 * v850-tdep.c (v850_gdbarch_init): Update.
10048 * sparc-tdep.c (sparc_gdbarch_init): Update.
10049 * sh-tdep.c (sh_gdbarch_init): Update.
10050 * s390-tdep.c (s390_gdbarch_init): Update.
10051 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10052 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10053 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10054 * mips-tdep.c (mips_gdbarch_init): Update.
10055 * mcore-tdep.c (mcore_gdbarch_init): Update.
10056 * m68k-tdep.c (m68k_gdbarch_init): Update.
10057 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10058 * ia64-tdep.c (ia64_gdbarch_init): Update.
10059 * i386-tdep.c (i386_gdbarch_init): Update.
10060 * hppa-tdep.c (hppa_gdbarch_init): Update.
10061 * h8300-tdep.c (h8300_gdbarch_init): Update.
10062 * frv-tdep.c (frv_gdbarch_init): Update.
10063 * cris-tdep.c (cris_gdbarch_init): Update.
10064 * avr-tdep.c (avr_gdbarch_init): Update.
10065 * arm-tdep.c (arm_gdbarch_init): Update.
10066 * alpha-tdep.c (alpha_gdbarch_init): Update.
10067 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10068 max_register_raw_size or max_register_virtual_size.
10069
8e437497
DC
100702003-03-03 David Carlton <carlton@math.stanford.edu>
10071
10072 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10073 SYMBOL_MATCHES_NAME, add comment.
10074 (SYMBOL_MATCHES_NATURAL_NAME): New.
10075 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10076 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10077 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10078 * symtab.c (lookup_partial_symbol): Use
10079 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10080 unhelpful comment.
10081 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10082 SYMBOL_MATCHES_NAME.
10083 Fix for PR c++/33.
10084
25120b0d
DC
100852003-03-03 David Carlton <carlton@math.stanford.edu>
10086
10087 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10088 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10089 by regexp matching against SYMBOL_NATURAL_NAME.
10090
78a11fb4
DC
100912003-03-03 David Carlton <carlton@math.stanford.edu>
10092
10093 * linespec.c (find_method): Extract code into collect_methods.
10094 (collect_methods): New.
10095
645dd519
MK
100962003-03-02 Mark Kettenis <kettenis@gnu.org>
10097
b4700d91
MK
10098 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10099 get_frame_base.
10100
645dd519
MK
10101 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10102 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10103
0aa7e1aa
SC
101042003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10105
8ffd9b1b 10106 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10107 and not regnum when summing the size of all registers up to regnum.
10108
f30ee0bc
AC
101092003-03-01 Andrew Cagney <cagney@redhat.com>
10110
10111 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10112 FRAME_INIT_SAVED_REGS.
10113 * gdbarch.h, gdbarch.c: Regenerate.
10114 * stack.c (frame_info): Update.
10115 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10116 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10117 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10118 * ns32k-tdep.c (ns32k_pop_frame): Update.
10119 * mips-tdep.c (mips_pop_frame): Update.
10120 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10121 * ia64-tdep.c (ia64_frame_chain): Update.
10122 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10123 (ia64_frameless_function_invocation): Update.
10124 (ia64_init_extra_frame_info): Update.
10125 (ia64_pop_frame_regular): Update.
10126 * frame.h (struct frame_info): Update comment.
10127 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10128 * frame.c (frame_saved_regs_register_unwind): Update.
10129 (frame_saved_regs_register_unwind): Update.
10130 (deprecated_generic_get_saved_register): Update.
10131 * cris-tdep.c: Update comment.
10132 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10133 Rename macro.
10134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10135 * x86-64-tdep.c (x86_64_init_abi): Update.
10136 * vax-tdep.c (vax_gdbarch_init): Update.
10137 * v850-tdep.c (v850_gdbarch_init): Update.
10138 * sparc-tdep.c (sparc_gdbarch_init): Update.
10139 * sh-tdep.c (sh_gdbarch_init): Update.
10140 * s390-tdep.c (s390_gdbarch_init): Update.
10141 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10142 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10143 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10144 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10145 * mips-tdep.c (mips_gdbarch_init): Update.
10146 * mcore-tdep.c (mcore_gdbarch_init): Update.
10147 * m68k-tdep.c (m68k_gdbarch_init): Update.
10148 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10149 * ia64-tdep.c (ia64_gdbarch_init): Update.
10150 * i386-tdep.c (i386_gdbarch_init): Update.
10151 * frv-tdep.c (frv_gdbarch_init): Update.
10152 * avr-tdep.c (avr_gdbarch_init): Update.
10153 * arm-tdep.c (arm_gdbarch_init): Update.
10154 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10155
42fa7c0f
AC
101562003-03-01 Andrew Cagney <cagney@redhat.com>
10157
10158 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10159 option enum and switch. When no windows, set the interpreter to
10160 INTERP_CONSOLE.
8ffd9b1b 10161
49c7e338
AC
101622003-03-01 Andrew Cagney <cagney@redhat.com>
10163
10164 * main.c (captured_main): Replace magic option characters with an
10165 enum.
10166
e9582e71
AC
101672003-03-01 Andrew Cagney <cagney@redhat.com>
10168
10169 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10170 INIT_EXTRA_FRAME_INFO.
10171 * gdbarch.h, gdbarch.c: Regenerate.
10172 * arm-tdep.c: Update comments.
10173 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10174 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10175 * frame.h, avr-tdep.c: Ditto.
10176 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10177 (create_new_frame, legacy_get_prev_frame): Ditto.
10178 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10179 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10181 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10182 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10183 * v850-tdep.c (v850_gdbarch_init): Ditto.
10184 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10185 * sh-tdep.c (sh_gdbarch_init): Ditto.
10186 * s390-tdep.c (s390_gdbarch_init): Ditto.
10187 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10188 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10189 * mips-tdep.c (mips_gdbarch_init): Ditto.
10190 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10192 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10193 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10194 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10195 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10196 * frv-tdep.c (frv_gdbarch_init): Ditto.
10197 * cris-tdep.c (cris_gdbarch_init): Ditto.
10198 * avr-tdep.c (avr_gdbarch_init): Ditto.
10199 * arm-tdep.c (arm_gdbarch_init): Ditto.
10200 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10201 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10202
35cac7cf
AC
102032003-03-01 Andrew Cagney <cagney@redhat.com>
10204
10205 * gdbarch.sh (register_type): New function with predicate.
10206 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10207 * gdbarch.h, gdbarch.c: Re-generate.
10208 * arch-utils.c (generic_register_byte): Use generic_register_size.
10209 (generic_register_size): When available, use
10210 gdbarch_register_type.
10211 * regcache.c (init_regcache_descr): When available, initialize the
10212 register type array using gdbarch_register_type. If the
10213 architecture supplies gdbarch_register_type, do not use the legacy
10214 regcache layout.
10215 * d10v-tdep.c (d10v_register_type): Replace
10216 d10v_register_virtual_type.
10217 (d10v_gdbarch_init): Set register_type instead of
10218 register_virtual_type.
10219
7b83296f
AC
102202003-03-01 Andrew Cagney <cagney@redhat.com>
10221
10222 * Makefile.in (ax-gdb.o): Update dependencies.
10223 * ax-gdb.c: Include "regcache.h".
10224 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10225 * findvar.c (value_of_register): Ditto.
10226 * infcmd.c (default_print_registers_info): Ditto.
10227
eadc1c87
MK
102282003-03-01 Mark Kettenis <kettenis@gnu.org>
10229
10230 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10231 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10232
14143612
MK
102332003-03-01 Mark Kettenis <kettenis@gnu.org>
10234
10235 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10236 of STREQ.
10237
a55cc764
DJ
102382003-02-28 Daniel Jacobowitz <drow@mvista.com>
10239
10240 * Makefile.in (dwarf2loc.o): Update dependencies.
10241 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10242 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10243 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10244 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10245 (locexpr_tracepoint_var_ref): New function.
10246 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10247
08a617da
AC
102482003-02-28 Andrew Cagney <cagney@redhat.com>
10249
10250 * regcache.c (register_size): New function.
10251 * regcache.h (register_size): Declare
10252 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10253 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10254
4224873a
DC
102552003-02-28 David Carlton <carlton@math.stanford.edu>
10256
10257 * linespec.c (decode_compound): Extract code into find_method.
10258 (find_method): New.
10259
ccdc5d7f
JB
102602003-02-28 J. Brobecker <brobecker@gnat.com>
10261
10262 * Makefile.in: Add rules to build and link in observer.o.
10263
974e8ced
JB
102642003-02-27 J. Brobecker <brobecker@gnat.com>
10265
10266 * observer.c: Minor comments edits.
10267
7a28f973
JB
102682003-02-27 J. Brobecker <brobecker@gnat.com>
10269
10270 * observer.h, observer.c: New file.
10271
27cddce2
AC
102722003-02-27 Andrew Cagney <cagney@redhat.com>
10273
10274 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10275
b94a41a1
SC
102762003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10277
10278 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10279 (M6812_OP_STS_EXT): Likewise.
10280 (m6811_prologue): Use the above to recognize prologue.
10281 (m6812_prologue): Likewise.
10282
c8be8951
DC
102832003-02-27 David Carlton <carlton@math.stanford.edu>
10284
10285 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10286 SYMBOL_PRINT_NAME.
10287 (compare_psymbols): Ditto.
10288 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10289
d05bb1fc
MS
102902003-02-27 Michael Snyder <msnyder@redhat.com>
10291
4e845cd3
MS
10292 * f-lang.c (build_fortran_types): New function.
10293 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10294 * doublest.c (extract_floating): Fix warning text.
10295
f3824013
AC
102962003-02-27 Andrew Cagney <cagney@redhat.com>
10297
10298 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10299 predicate. Replaces PUSH_DUMMY_FRAME.
10300 * gdbarch.h, gdbarch.c: Regnerate.
10301 * valops.c (hand_function_call): Update. Call
10302 generic_push_dummy_frame directly.
10303 * vax-tdep.c (vax_gdbarch_init): Update.
10304 * sparc-tdep.c (sparc_gdbarch_init): Update.
10305 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10306 * m68k-tdep.c (m68k_gdbarch_init): Update.
10307 * hppa-tdep.c (hppa_gdbarch_init): Update.
10308 * alpha-tdep.c (alpha_gdbarch_init): Update.
10309 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10310 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10311 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10312 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10313 push_dummy_frame to generic_push_dummy_frame.
10314 * v850-tdep.c (v850_gdbarch_init): Ditto.
10315 * sh-tdep.c (sh_gdbarch_init): Ditto.
10316 * s390-tdep.c (s390_gdbarch_init): Ditto.
10317 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10318 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10319 * mips-tdep.c (mips_gdbarch_init): Ditto.
10320 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10322 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10323 * i386-tdep.c (i386_gdbarch_init): Ditto.
10324 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10325 * frv-tdep.c (frv_gdbarch_init): Ditto.
10326 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10327 * cris-tdep.c (cris_gdbarch_init): Ditto.
10328 * avr-tdep.c (avr_gdbarch_init): Ditto.
10329 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10330
ad188201
KB
103312003-02-26 Kevin Buettner <kevinb@redhat.com>
10332
10333 * mips-tdep.c (show_mips_abi): New function.
10334 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10335 command ``show mips abi''.
10336
6b37567a 103372003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10338
6b37567a 10339 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10340 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10341 more sline entries have been seen for the function.
10342
d3e0a5bf
MC
103432003-02-26 Michael Chastain <mec@shout.net>
10344
10345 * configure: Regenerate with autoconf 000227.
10346
18972eea
MC
103472003-02-26 Michael Chastain <mec@shout.net>
10348
10349 Close PR build/660.
10350 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10351 for old libc5/glibc.
10352 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10353
0bbde931
KW
103542003-02-26 Kris Warkentin <kewarken@qnx.com>
10355
10356 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10357 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10358
27ca5dad
MC
103592003-02-26 Michael Chastain <mec@shout.net>
10360
10361 * configure.in: New variable HAVE_UINTPTR_T.
10362 * configure, config.in: Regenerated.
10363
6f88d630
DJ
103642003-02-26 Daniel Jacobowitz <drow@mvista.com>
10365
10366 Fix PR build/1097.
10367 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10368
b14185ce
AC
103692003-02-25 Andrew Cagney <cagney@redhat.com>
10370
10371 * frame.c (get_prev_frame): Add comment on check for
10372 inside_entry_func. Only check for inside_entry_file when not a
10373 dummy and not a sentinel. Check that the new frame is not inner
10374 to the old frame.
10375
ac2bd0a9
AC
103762003-02-25 Andrew Cagney <cagney@redhat.com>
10377
10378 * frame.c (frame_debug): New variable.
10379 (_initialize_frame): Add "set/show debug frame" command.
10380 (get_prev_frame): When frame_debug, print reason why unwind
10381 failed.
10382
b18a0fd2
MC
103832003-02-25 Michael Chastain <mec@shout.net>
10384
10385 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10386 to avoid uintptr_t definition problems.
10387
22abf04a
DC
103882003-02-25 David Carlton <carlton@math.stanford.edu>
10389
10390 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10391 (SYMBOL_LINKAGE_NAME): Ditto.
10392 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10393 SYMBOL_LINKAGE_NAME.
10394 (struct general_symbol_info): Expand comment.
10395 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10396 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10397 (SYMBOL_MATCHES_REGEXP): Ditto.
10398 * symtab.c (symbol_natural_name): New function.
10399 * objfiles.h: Replace all uses of SYMBOL_NAME by
10400 DEPRECATED_SYMBOL_NAME.
10401 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10402 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10403 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10404 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10405 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10406 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10407 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10408 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10409 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10410 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10411 * ada-exp.y: Ditto.
10412 * ada-exp.y: Update copyright.
10413 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10414 * cp-valprint.c: Ditto.
10415
1a5848f6
JJ
104162003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10417
10418 * infptrace.c (detach): Do not flag error if ptrace detach fails
10419 and errno is set to ESRCH.
10420
7343d46a
AC
104212003-02-24 Andrew Cagney <cagney@redhat.com>
10422
10423 * infptrace.c (udot_info): Change type of udot_off to long. Use
10424 paddr when printing udot_off's value.
10425
49fa1dc2
DC
104262003-02-24 David Carlton <carlton@math.stanford.edu>
10427
10428 * symtab.c (make_symbol_overload_list): Only read in partial
10429 symtabs containing a matching partial symbol.
10430
0fe19209
DC
104312003-02-24 David Carlton <carlton@math.stanford.edu>
10432
10433 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10434 do the comparison, not strcmp.
10435 * symfile.c (compare_psymbols): Ditto.
10436 * defs.h: Declare strcmp_iw_ordered.
10437 * utils.c (strcmp_iw_ordered): New function.
10438
8e3ee7b5
JB
104392003-02-24 Jim Blandy <jimb@redhat.com>
10440
10441 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10442 support, shared libs): Remove my name from here, to better reflect
10443 reality.
10444
7df1a324
KW
104452003-02-24 Kris Warkentin <kewarken@qnx.com>
10446
10447 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10448 (target_ops): Add to_have_continuable_watchpoint.
10449 * target.c (update_current_target): Add INHERIT line for
10450 to_have_continuable_watchpoint.
10451 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10452 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10453 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10454 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10455
d1c76907
EZ
104562003-02-24 Elena Zannoni <ezannoni@redhat.com>
10457
10458 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10459 maintainership.
10460
2610b0bf
KW
104612003-02-24 Kris Warkentin <kewarken@qnx.com>
10462
f46169db
KW
10463 * solib.c (solib_open): Call target defined search function after
10464 failing with solib-search-path.
10465 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10466 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10467
9a3c34fe
KW
104682003-02-24 Kris Warkentin <kewarken@qnx.com>
10469
f46169db 10470 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10471
2417dd25
SC
104722003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10473
10474 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10475
b631436b
SC
104762003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10477
10478 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10479 (m68hc11_add_reggroups): New function.
10480 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10481 (m68hc11_gdbarch_init): Install the reggroups.
10482 (_initialize_m68hc11_tdep): Initialize them.
10483
0aa8c1e4
JW
104842003-02-21 James E Wilson <wilson@tuliptree.org>
10485
10486 * MAINTAINERS: Update my email address.
10487
50ceaba5
DC
104882003-02-21 David Carlton <carlton@math.stanford.edu>
10489
10490 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10491
4c2df51b
DJ
104922003-02-21 Daniel Jacobowitz <drow@mvista.com>
10493
10494 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10495 * symtab.h: Add opaque declarations of struct axs_value and
10496 struct agent_expr.
10497 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10498 (struct location_funcs): New type.
10499 (struct symbol): Add "loc" to aux_value.
10500 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10501 * dwarf2read.c: Include "dwarf2expr.h".
10502 (dwarf2_symbol_mark_computed): New function.
10503 (read_func_scope): Use it.
10504 (var_decode_location): New function.
10505 (new_symbol): Use it.
10506 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10507
10508 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10509 (dwarf2expr_h, dwarf2loc_h): New variables.
10510 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10511 (dwarf2expr.o, dwarf2loc.o): New rules.
10512 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10513 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10514 LOC_COMPUTED_ARG.
10515 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10516 * m2-exp.y (yylex): Likewise.
10517 * printcmd.c (address_info, print_frame_args): Likewise.
10518 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10519 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10520 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10521 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10522 * symtab.c (lookup_block_symbol): Likewise.
10523
5784d15e
AF
105242003-02-20 Adam Fedor <fedor@gnu.org>
10525
10526 * symtab.h: Remove objc_specific struct
10527 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10528 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10529 Have language_objc use cplus_specific struct.
10530
d4cad8db
TT
105312003-02-20 Tom Tromey <tromey@redhat.com>
10532
10533 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10534 TYPE_NAME, when printing a String value. PR java/1075.
10535
2f9a90b4
AF
105362003-02-20 Adam Fedor <fedor@gnu.org>
10537
d38074a8 10538 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10539 * objc-lang.c (find_methods): Make static.
2f9a90b4 10540
6f17862b
CF
105412003-02-20 Christopher Faylor <cgf@redhat.com>
10542
10543 * win32-nat.c (get_image_name): Check return value from
10544 ReadProcessMemory.
10545 (child_xfer_memory): Ditto.
10546
715d1656
AO
105472003-02-20 Alexandre Oliva <aoliva@redhat.com>
10548
10549 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10550 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10551 '${exec_prefix}' (in addition to the expansion thereof) as
10552 relocatable.
10553 * configure: Rebuilt.
10554
b1262a02
DC
105552003-02-20 David Carlton <carlton@math.stanford.edu>
10556
10557 * symtab.c (search_symbols): Revert the search_symbols part of my
10558 2002-12-23 patch. Add comment.
10559
7134143f
DJ
105602002-02-20 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10563 * dbxread.c (elfstab_build_psymtabs): Don't call
10564 install_minimal_symbols.
10565 (stabsect_build_psymtabs): Likewise.
10566 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10567 earlier.
10568 * somread.c (som_symfile_read): Call install_minimal_symbols
10569 and do_cleanups earlier.
10570 * nlmread.c (nlm_symfile_read): Likewise.
10571 * mdebugread.c (elfmdebug_build_psymtabs): Call
10572 install_minimal_symbols and make appropriate cleanups.
10573
cf466558
KB
105742003-02-20 Kevin Buettner <kevinb@redhat.com>
10575
10576 * solib.c (reload_shared_libraries): New function.
10577 (_initialize_solib): Add callbacks for ``set solib-search-path''
10578 and ``set solib-absolute-prefix''.
10579
de5ad195
DC
105802003-02-20 David Carlton <carlton@math.stanford.edu>
10581
10582 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10583 expand comment.
10584 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10585 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10586 * ada-typeprint.c (ada_typedef_print): Ditto.
10587 * ax-gdb.c (gen_var_ref): Ditto.
10588 * breakpoint.c (print_one_breakpoint): Ditto.
10589 * buildsym.c (finish_block): Ditto.
10590 * c-valprint.c (c_val_print): Ditto.
10591 * expprint.c (print_subexp): Ditto.
10592 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10593 * infcmd.c (jump_command): Ditto.
10594 * linespec.c (decode_line_2, decode_compound): Ditto.
10595 * maint.c (maintenance_translate_address): Ditto.
10596 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10597 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10598 Ditto.
8ffd9b1b
AJ
10599 * p-valprint.c (pascal_val_print): Ditto.
10600 * stabsread.c (define_symbol): Ditto.
de5ad195 10601 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10602 (print_frame_arg_vars, return_command): Ditto.
10603 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10604 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10605 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10606 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10607 (rbreak_command): Ditto.
10608 * tracepoint.c (tracepoints_info): Ditto.
10609 * typeprint.c (typedef_print): Ditto.
10610 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10611 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10612 * ada-typeprint.c: Update Copyright.
10613 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10614 * tracepoint.c, cli/cli-cmds.c: Ditto.
10615
f796e4be
KB
106162003-02-20 Kevin Buettner <kevinb@redhat.com>
10617
10618 * frame.c (generic_unwind_get_saved_register): Make non-static.
10619 * frame.h (generic_unwind_get_saved_register): Declare.
10620 * mips-tdep.c (read_next_frame_reg): Fetch register from
10621 current regcache when frame is NULL.
10622 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10623 that must be NULL.
10624 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10625 instead of frame_register_unwind().
10626
836cc9f4
AC
106272003-02-20 Andrew Cagney <ac131313@redhat.com>
10628
10629 * remote-sim.c (gdbsim_insert_breakpoint)
10630 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10631 code.
10632
501eef12
AC
106332003-02-20 Andrew Cagney <ac131313@redhat.com>
10634
10635 * remote.c (_initialize_remote): Add commands "set/show remote
10636 hardware-watchpoint-limit" and "set/show remote
10637 hardware-breakpoint-limit".
10638 (remote_hw_watchpoint_limit): Initialize to -1.
10639 (remote_hw_breakpoint_limit): Ditto.
10640 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10641
1b6bc7e0
CF
106422003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10643
10644 * coff-pe-read.c: New file - support reading of minimal symbols from a
10645 portable executable using the export table.
10646 * coff-pe-read.h: New file.
10647 * coffread.c: Include coff-pe-read.h.
10648 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10649 debugging symbols found.
10650 * Makefile.in (SFILES): Add coff-pe-read.o.
10651 (coff_pe_read_h): Define.
10652 (COMMON_OBS): Add coff-pe-read.o.
10653 (coffread.o): Add coff_pe_read_h dependency.
10654 (coff-pe-read.o): New target.
10655
fe898f56
DC
106562003-02-19 David Carlton <carlton@math.stanford.edu>
10657
10658 * Makefile.in (SFILES): Add block.c.
10659 (block_h): New.
10660 (COMMON_OBS): Add block.o.
10661 (block.o): New.
10662 (x86-64-tdep.o): Add $(block_h).
10663 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10664 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10665 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10666 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10667 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10668 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10669 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10670 * value.h: Add opaque declaration for struct block.
10671 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10672 * ada-lang.h: Ditto.
10673 * x86-64-tdep.c: #include "block.h"
10674 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10675 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10676 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10677 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10678 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10679 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10680 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10681 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10682 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10683 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10684 * symtab.c (block_function): Ditto.
10685 (contained_in): Ditto.
10686 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10687 block.h. Add opaque declaration for struct block.
10688 * symtab.h: Move block_function and contained_in declarations to
10689 block.h. Add opaque declarations for struct block, struct
10690 blockvector.
10691 (struct block): Move to block.h.
10692 (struct blockvector): Ditto.
10693 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10694 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10695 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10696 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10697 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10698 Ditto.
10699 * block.c: New file.
10700 * block.h: New file.
10701
173345b5
TR
107022003-02-19 Theodore A. Roth <troth@openavr.org>
10703
10704 * avr-tdep.c (avr_extract_return_value): Remove function.
10705 (avr_store_return_value): Remove function.
10706 (avr_extract_struct_value_address): Remove function.
10707 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10708
338ef23d
AC
107092003-02-19 Andrew Cagney <ac131313@redhat.com>
10710
10711 * rs6000-tdep.c: Include "gdb_assert.h".
10712 (registers_e500): Add "acc" and "spefscr".
10713 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10714 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10715 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10716 really is "r0".
10717 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10718
5412f5f3
KS
107192003-02-18 Keith Seitz <keiths@redhat.com>
10720
10721 * Makefile.in: Add gdbtk-interps.c.
10722
881324eb
KB
107232003-02-18 Kevin Buettner <kevinb@redhat.com>
10724
10725 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10726 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10727
6a2f5abf
AC
107282003-02-18 Andrew Cagney <cagney@redhat.com>
10729
10730 * symtab.h (struct objfile): Add opaque declaration.
10731
54c7009d
EZ
107322003-02-18 Elena Zannoni <ezannoni@redhat.com>
10733
10734 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10735 * dbxread.c (process_one_symbol): Use last_function_start rather
10736 than function_start_offset to find the real beginning of the
10737 current function. The latter is just the text section offset on
10738 some systems, the former is always the real function start.
54c7009d 10739
7ee6d7eb
AC
107402003-02-17 Andrew Cagney <cagney@redhat.com>
10741
10742 * configure.in: Revert ${target} != ${host}.
10743
2846da9b
AC
107442003-02-17 Andrew Cagney <ac131313@redhat.com>
10745
10746 * configure.in (Makefile): Use the test ${target} != ${host},
10747 instead of the absence of the "nm.h" file, to determine of the
10748 configuration non-native.
10749 * configure: Regenerate.
8ffd9b1b 10750
3b27aeea
EZ
107512003-02-14 Elena Zannoni <ezannoni@redhat.com>
10752
fbe586ae 10753 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10754
10755 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10756 conditionalize tui_active test.
10757 (lookup_cmd_1): Ditto.
10758
b0b1c2c0
MK
107592003-02-14 Mark Kettenis <kettenis@gnu.org>
10760
10761 * configure.in: Add check for _etext.
10762 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10763 available.
10764 * config.in, configure: regenerated.
10765
8f05cde5
DJ
107662003-02-14 Daniel Jacobowitz <drow@mvista.com>
10767
10768 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10769
021e7609
AC
107702003-02-14 Andrew Cagney <ac131313@redhat.com>
10771
10772 * main.c (tui_version): Delete variable.
10773 (captured_main): When --tui, set interpreter_p to "tui" instead of
10774 enabling tui_version.
10775 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10776 tui_version.
10777 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10778 * cli/cli-cmds.c (disassemble_command): Ditto.
10779 * defs.h (tui_version): Delete declaration.
10780 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10781 (tui-interp.o): Add rules.
10782 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10783
e325dcec
CF
107842003-02-14 Christopher Faylor <cgf@redhat.com>
10785
36ffb041 10786 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10787 just-loaded dll.
10788
c4f90d87
JM
107892003-02-12 Jason Molenda (jmolenda@apple.com)
10790
fbe586ae
RH
10791 * symmisc.c (print_objfile_statistics): Include information about
10792 the number of psymtabs and symtabs in each object file.
c4f90d87 10793
e46e5ccd
KS
107942003-02-13 Keith R Seitz <keiths@redhat.com>
10795
10796 * main.h (struct captured_main_args): Add interpreter_p.
10797 * main.c (captured_main): Initialize interpreter_p from context.
10798 * gdb.c (main): Set interpreter_p argument.
10799 * Makefile.in (gdb.o): Add dependency for interps.h.
10800
fe97fe9c
AC
108012003-02-12 Andrew Cagney <ac131313@redhat.com>
10802
10803 * event-top.c (cli_command_loop): Delete declaration.
10804 (_initialize_event_loop): Delete function setting event_loop_hook.
10805 * event-top.h (cli_command_loop): Declare. Update copyright.
10806 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10807 * interps.c (current_interp_command_loop): When event_loop_p, call
10808 cli_command_loop.
10809
1cdac4ef
AC
108102003-02-12 Andrew Cagney <ac131313@redhat.com>
10811
10812 * interps.h (interp_command_loop_ftype): Change return type to
10813 void.
10814
48037ead
ML
108152003-02-12 Michal Ludvig <mludvig@suse.cz>
10816
10817 * x86-64-tdep.c (x86_64_extract_return_value)
10818 (x86_64_store_return_value): Use regcache instead of regbuf.
10819 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10820 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10821
033afc63
AC
108222003-02-11 Andrew Cagney <ac131313@redhat.com>
10823
10824 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10825 * aclocal.m4: Regenerate.
10826 * configure: Regenerate.
10827
10828 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10829 TCL_LD_SEARCH_FLAGS.
10830
40d02bca
ML
108312003-02-10 Michal Ludvig <mludvig@suse.cz>
10832
10833 * dwarf2cfi.c: Reindented.
10834
11308a41
AC
108352003-02-09 Andrew Cagney <ac131313@redhat.com>
10836
10837 * interps.c (clear_interpreter_hooks): Convert function definition
10838 to ISO C.
10839
e1c1c0f6
DC
108402003-02-07 David Carlton <carlton@math.stanford.edu>
10841
10842 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10843
ab5d3da6
KB
108442003-02-07 Kevin Buettner <kevinb@redhat.com>
10845
10846 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10847 (struct type): ...to here.
10848 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10849 field.
10850 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10851 (replace_type): Set length on all type variants for a given type.
10852
b8a92b82
AC
108532003-02-07 Andrew Cagney <ac131313@redhat.com>
10854
10855 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10856 <sys/stat.h>.
10857 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10858
5cb316ef
AC
108592003-02-06 Andrew Cagney <ac131313@redhat.com>
10860
2555fe1a
AC
10861 * Makefile.in (symm-nat.o): Update dependencies.
10862 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10863 (lynx-nat.o, ia64-linux-nat.): Ditto.
10864 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10865 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10866 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10867
44270758
AC
10868 * Makefile.in (inflow_h): Define.
10869 (procfs.o, inflow.o, procfs.o): Update dependencies.
10870 * inftarg.c (child_stop): Delete extern declaration of
10871 inferior_process_group. Include "inflow.h".
10872 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10873 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10874 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10875 (our_process_group, inferior_process_group): Extern declarations.
10876
df8f7274
AC
10877 * procfs.c: Include "gdb_assert.h".
10878
5cb316ef
AC
10879 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10880 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10881 * jv-typeprint.c (java_type_print_base): Ditto.
10882 * typeprint.c (typedef_print): Eliminate STREQ.
10883 * cli/cli-script.c (define_command, define_command): Ditto.
10884 * main.c (captured_main): Ditto.
10885 * values.c (lookup_internalvar): Ditto.
10886 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10887 within `if' conditional.
10888 * linespec.c (decode_line_2): Ditto.
10889 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10890 (bfd_openw_with_cleanup): Ditto.
10891
2a28ccea
MK
108922003-02-07 Mark Kettenis <kettenis@gnu.org>
10893
10894 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10895 legacy_extract_return_value and store_return_value to
10896 legacy_return_value.
10897
786b8124
CF
108982003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10899
10900 * win32-nat.c (get_relocated_section_addrs): New function. Find
10901 section load addresses for symbol handling in relocated DLLs.
10902 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10903
b871e4ec
FF
109042003-02-05 Fred Fish <fnf@intrinsity.com>
10905
10906 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10907 '=' and '!='.
10908 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10909 with '&' and '=='.
10910 (angel_RDI_info): Ditto.
10911 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10912 with '&' and '!='.
10913 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10914
4389a95a 109152003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10916 Keith Seitz <keiths@redhat.com>
10917 Elena Zannoni <ezannoni@redhat.com>
10918 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10919
10920 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10921 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10922 (SUBDIR_MI_OBS): Add "mi-interp.o".
10923 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10924 (SFILES): Add "interps.c".
10925 (COMMON_OBS): Add "interps.o".
10926 (interps_h, mi_main_h): Define.
10927 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10928 (mi-main.o, main.o, event-top.o): Update dependencies.
10929 * cli/cli-interp.c: New file.
10930 * interps.h, interps.c: New files.
10931 * top.c: (gdb_init): Don't install the default interpreter, handed
10932 by captured_main.
10933 * main.c: Include "interps.h".
10934 (interpreter_p): Note that it should malloc'ed.
10935 (captured_command_loop): Call current_interp_command_loop.
10936 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10937 xfree and xstrdup when updating interpreter_p. Install the
10938 default interpreter. Add hack to stop mi1's copyright notice
10939 being encoded.
10940 * event-top.h (gdb_setup_readline): Declare.
10941 (gdb_disable_readline): Declare.
10942 * event-top.c: Include "interps.h".
10943 (display_gdb_prompt): Call current_interp_display_prompt_p.
10944 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10945 gdb_stdlog, and gdb_stdtarg.
10946 (_initialize_event_loop): Don't call gdb_setup_readline.
10947 * cli-out.c (cli_out_set_stream): New function.
10948 * cli-out.h (cli_out_set_stream): Declare.
10949
ff3b5810
MK
109502003-02-06 Mark Kettenis <kettenis@gnu.org>
10951
10952 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10953 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10954 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10955 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10956 config/i386/i386v42mp.mt: Removed.
10957
5b729aa5
MK
109582003-02-05 Mark Kettenis <kettenis@gnu.org>
10959
10960 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10961 GDB_OSABI_SOLARIS.
10962
8cc15142
MC
109632003-02-05 Michael Chastain <mec@shout.net>
10964
10965 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10966 2.12.1 and earlier versions.
10967
5aa5d4b9
AC
109682003-02-05 Andrew Cagney <ac131313@redhat.com>
10969
10970 Remove orphaned hosts, targets and files.
10971 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10972 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10973 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10974 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10975 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10976 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10977 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10978 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10979 * config/sparc/tm-sp64sim.h: Delete.
10980 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10981 hosts.
10982 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10983 mips*-dec-mach3* targets.
10984
b68767c1
MC
109852003-02-04 Michael Chastain <mec@shout.net>
10986
10987 * NEWS: Fix typo: sepcifying -> specifying.
10988
5ae7ca1d
MC
109892003-02-04 Michael Chastain <mec@shout.net>
10990
10991 * dwarfread.c: Add documentation on the state of dwarf-1,
10992 looking towards obsoletion.
10993
d08a4280
MC
109942003-02-03 Michael Chastain <mec@shout.net>
10995
10996 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10997 gdb/testsuite/gdb.c++/pr-1023.exp.
10998
e9be73e4
AC
109992003-02-04 Andrew Cagney <ac131313@redhat.com>
11000
11001 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11002 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11003
11004 * utils.c (init_page_info): Delete reference to MPW in comments.
11005 * main.c (captured_main): Delete #ifdef MPW.
11006
05d57f6f
AC
110072003-02-04 Andrew Cagney <ac131313@redhat.com>
11008
8ffd9b1b 11009 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11010 * monitor.c (monitor_expect): Obsolete reference to m32r.
11011 * configure.tgt: Mark m32r-*-elf* as obsolete.
11012 * MAINTAINERS: Mark m32k as obsolete.
11013 * m32r-rom.c: Obsolete file.
11014 * config/m32r/m32r.mt: Obsolete file.
11015 * config/m32r/tm-m32r.h: Obsolete file.
11016 * m32r-stub.c: Obsolete file.
11017 * m32r-tdep.c: Obsolete file.
11018
8b0e5691
AC
110192003-02-04 Andrew Cagney <ac131313@redhat.com>
11020
11021 * NEWS: Mention that the z8k-zilog-none is obsolete.
11022 * MAINTAINERS: Mark z8k as obsolete.
11023 * configure.tgt: Obsolete the z8k-*-coff* target.
11024 * config/z8k/z8k.mt: Obsolete file.
11025 * config/z8k/tm-z8k.h: Obsolete file.
11026 * z8k-tdep.c: Obsolete file.
11027
67f16606
AC
110282003-02-04 Andrew Cagney <ac131313@redhat.com>
11029
11030 * NEWS: Mention that the mn10200-elf is obsolete.
11031 * configure.tgt: Obsolete mn10200-*-* target.
11032 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11033 mention that the mn10200 is obsolete.
11034 * breakpoint.h: Ditto.
11035 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11036 * config/mn10200/mn10200.mt: Obsolete file.
11037 * config/mn10200/tm-mn10200.h: Obsolete file.
11038 * mn10200-tdep.c: Obsolete file.
11039
fd2299bd
AC
110402003-02-04 Andrew Cagney <ac131313@redhat.com>
11041
11042 * MAINTAINERS: Mark h8500 as obsolete.
11043 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11044 * findvar.c (value_from_register): Ditto.
11045 * h8500-tdep.c: Mark file as obsolete.
11046 * config/h8500/h8500.mt: Ditto.
11047 * config/h8500/tm-h8500.h: Ditto.
11048 * NEWS: Mention that h8500 is obsolete.
11049
eb9a305d
DC
110502003-02-04 David Carlton <carlton@math.stanford.edu>
11051
11052 * objfiles.c (allocate_objfile): Always set name. Add comment at
11053 start of function.
11054 * jv-lang.c (get_dynamics_objfile): Add comment.
11055
406fc7fb
DC
110562003-02-04 David Carlton <carlton@math.stanford.edu>
11057
11058 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11059 * printcmd.c (build_address_symbolic): Replace uses of
11060 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11061 SYMBOL_NAME, and asm_demangle.
11062 Update copyright.
11063
93d91629
DC
110642003-02-04 David Carlton <carlton@math.stanford.edu>
11065
11066 * linespec.c (decode_compound): Extract code into
11067 lookup_prefix_sym.
11068 (lookup_prefix_sym): New function.
11069
1c5cb38e
DC
110702003-02-04 David Carlton <carlton@math.stanford.edu>
11071
11072 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11073 FLOAT_COERCION_BADNESS.
11074 * gdbtypes.c (rank_one_type): Replace all uses of
11075 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11076
0cf824c9
JB
110772003-02-04 Jim Blandy <jimb@redhat.com>
11078
11079 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11080 section, let dwarf_macinfo_section point to it, not
11081 dwarf_loc_section.
11082
a2d356b0
DJ
110832003-02-04 Daniel Jacobowitz <drow@mvista.com>
11084
11085 Pointed out by Anton Blanchard <anton@samba.org>.
11086 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11087 (ppc_linux_at_sigtramp_return_path): Use it.
11088
2de7ced7
DJ
110892003-02-04 Daniel Jacobowitz <drow@mvista.com>
11090
11091 * defs.h (streq): Add prototype.
11092 * utils.c (streq): New function.
11093
11094 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11095 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11096 * mdebugread.c (new_symbol): Likewise.
11097 * stabsread.c (define_symbol): Likewise.
11098 * coffread.c (process_coff_symbol): Likewise.
11099 * dwarfread.c (new_symbol): Likewise.
11100
11101 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11102 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11103 here.
11104 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11105 SYMBOL_INIT_DEMANGLED_NAME.
11106 * objfiles.c: Include "hashtab.h".
11107 (allocate_objfile): Call htab_set_functions_ex for the
11108 demangled_names_hash.
11109 (free_objfile): Call htab_delete for the demangled_names_hash.
11110 * objfiles.h (struct htab): Add declaration.
11111 (struct objfile): Add demangled_names_hash.
11112 * symfile.c: Include "hashtab.h".
11113 (reread_symbols): Call htab_delete for the demangled_names_hash.
11114 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11115 SYMBOL_NAME in the bcache.
11116 * symtab.c: Include "hashtab.h". Update comments.
11117 (create_demangled_names_hash, symbol_set_names): New functions.
11118 (symbol_find_demangled_name): New function, broken out from
11119 symbol_init_demangled_names.
11120 (symbol_init_demangled_names): Use it.
11121 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11122 (SYMBOL_SET_NAMES): New macro.
11123 (symbol_set_names): Add prototype.
11124
15831452
JB
111252003-02-03 Jim Blandy <jimb@redhat.com>
11126
11127 Use a single, consistent representation for an empty minimal
11128 symbol table in an objfile.
11129 * objfiles.c (terminate_minimal_symbol_table): New function.
11130 (allocate_objfile): Call it.
11131 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11132 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11133 non-NULL.
15831452
JB
11134 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11135 objfile has minimal symbols, compare minimal_symbol_count to zero,
11136 instead of comparing msymbols with NULL.
11137 * objfiles.c (have_minimal_symbols): Same.
11138 * solib-sunos.c (solib_add_common_symbols): Call
11139 terminate_minimal_symbol_table.
11140 * symfile.c (reread_symbols): Same.
8ffd9b1b 11141
ffc65945
KB
111422003-02-03 Kevin Buettner <kevinb@redhat.com>
11143
11144 * s390-tdep.c (s390_address_class_type_flags)
11145 (s390_address_class_type_flags_to_name)
11146 (s390_address_class_name_to_type_flags): New functions.
11147 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11148 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11149
f211c6d4
MS
111502003-02-03 Michael Snyder <msnyder@redhat.com>
11151
11152 * arm-tdep.c: Fix spell-o in comment.
11153
659b0389
ML
111542003-02-03 Michal Ludvig <mludvig@suse.cz>
11155
11156 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11157 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11158 error messages to contain BFD filename.
659b0389 11159
3b31d625
EZ
111602003-02-02 Elena Zannoni <ezannoni@redhat.com>
11161
997b089a 11162 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11163 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11164 (do_mixed_source_and_assembly): Use
11165 make_cleanup_ui_out_tuple_begin_end and
11166 make_cleanup_ui_out_tuple_begin_end.
11167 (do_mixed_source_and_assembly): Ditto.
11168 * thread.c (do_captured_list_thread_ids): Ditto.
11169 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11170 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11171 ui_out_tuple_end): Delete prototypes.
11172 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11173 ui_out_list_end, ui_out_tuple_end): Delete.
11174
11175 From Kevin Buettner <kevinb@redhat.com>:
11176 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11177 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11178 (do_cleanup_table_end): New functions.
11179 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11180 Use cleanups to invoke_ui_out_tuple_end().
11181 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11182 * cli/cli-setshow.c (cmd_show_list): Use
11183 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11184
5b181d62
AC
111852003-02-02 Andrew Cagney <ac131313@redhat.com>
11186
11187 * frame.c (frame_unwind_register): New function.
11188 (frame_unwind_unsigned_register): Use.
11189 (frame_unwind_signed_register): Use.
11190 (frame_read_register): New function.
11191 * frame.h (frame_unwind_register): Declare.
11192 (frame_read_register): Declare.
11193
11194 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11195 and frame_unwind_register instead of read_memory, write_register
11196 and deprecated_write_register_bytes.
11197
5f601589
AC
111982003-02-02 Andrew Cagney <ac131313@redhat.com>
11199
11200 * frame.h: Note that namelen can be negative.
11201 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11202 NAME's length.
11203
11204 * NEWS: Mention that the d10v's `regs' command is deprecated.
11205 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11206 (d10v_print_registers_info): New function.
11207 (show_regs): Call d10v_print_registers_info.
11208 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11209
6a3fe0a4
MK
112102003-02-02 Mark Kettenis <kettenis@gnu.org>
11211
11212 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11213 lost in the previous patch.
11214
075559bc
AC
112152003-02-01 Andrew Cagney <ac131313@redhat.com>
11216
11217 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11218 * stack.c (print_frame_info_base): Output complete FRAME tuple
11219 for synthesized frames.
075559bc 11220
6789195b
AC
112212003-02-02 Andrew Cagney <ac131313@redhat.com>
11222
11223 * mips-nat.c (zerobuf): Delete.
11224 (fetch_inferior_registers): Alloc local zerobuf.
11225 (fetch_core_registers): Alloc local zerobuf.
11226 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11227 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11228 * thread-db.c (thread_db_store_registers): Ditto.
11229 * sh-tdep.c (sh_do_register): Ditto.
11230 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11231 * remote-sim.c (gdbsim_store_register): Ditto.
11232 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11233 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11234 * monitor.c (monitor_supply_register): Ditto.
11235 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11236 * mips-nat.c (fetch_inferior_registers): Ditto.
11237 * m68klinux-nat.c (fetch_register): Ditto.
11238 * lynx-nat.c (fetch_inferior_registers): Ditto.
11239 (fetch_inferior_registers): Ditto.
11240 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11241 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11242 (hpux_thread_store_registers): Ditto.
11243 * hppah-nat.c (fetch_register): Ditto.
11244 * hppab-nat.c (fetch_register): Ditto.
11245 * hppa-tdep.c (pa_register_look_aside): Ditto.
11246 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11247 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11248
e669114a
AC
112492003-02-01 Andrew Cagney <ac131313@redhat.com>
11250
11251 * gdbarch.sh: Explictly specify all method levels. When a
11252 variable with an empty level, provide a non-multi-arch default.
11253 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11254 * gdbarch.h: Re-generate.
11255 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11256 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11257
9a043c1d
AC
112582003-02-01 Andrew Cagney <ac131313@redhat.com>
11259
11260 * defs.h (host_pointer_to_address): Delete declaration.
11261 (address_to_host_pointer): Delete declaration.
11262 * utils.c (host_pointer_to_address): Delete function.
11263 (address_to_host_pointer): Delete function.
11264 * procfs.c (procfs_address_to_host_pointer): New function.
11265 * procfs.c (proc_set_watchpoint): Use.
11266 (procfs_can_use_hw_breakpoint): Update comments.
11267 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11268 (som_solib_add): Use.
11269 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11270 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11271
7ca9f392
AC
112722003-02-01 Andrew Cagney <ac131313@redhat.com>
11273
94bbfd30
AC
11274 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11275 strlen d_name.
11276
7ca9f392
AC
11277 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11278 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11279 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11280 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11281 (define_symbol): Update.
11282 * symfile.c (generic_load): Remove references to nindy.
11283 * symtab.c: Remove references to nindy.
11284
31a85ea2
AC
112852003-02-01 Andrew Cagney <ac131313@redhat.com>
11286
11287 * infcmd.c (print_float_info): Delete code conditional on
11288 FLOAT_INFO.
11289 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11290 * config/m68k/nm-apollo68b.h: Ditto.
11291 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11292 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11293 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11294
f6e85fc8
MK
112952003-02-01 Mark Kettenis <kettenis@gnu.org>
11296
6015b6a0
MK
11297 * config/i386/tm-i386os9k.h: Removed.
11298
f7a30bdf
MK
11299 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11300 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11301 they're identical to i[3456]86-*-sysv* now.
11302 * config/i386/i386v32.mh: Removed.
11303 * config/i386/xm-i386v32.h: Removed.
11304 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11305
28d52111
MK
11306 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11307
4d3f6bce
MK
11308 * config/i386/i386dgux.mh: Removed.
11309 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11310
f6e85fc8
MK
11311 * configure.in: Fix typo.
11312 * configure: Regenerated.
11313
53955967
DC
113142003-01-31 David Carlton <carlton@math.stanford.edu>
11315
11316 * dwarf2read.c (dwarf2_locate_sections): Set
11317 dwarf_ranges_section.
11318
b1364885
AC
113192003-01-31 Andrew Cagney <ac131313@redhat.com>
11320
8dbb1c65
AC
11321 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11322 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11323
8731e58e
AC
11324 * utils.c: Re-indent.
11325
b1364885
AC
11326 * config/djgpp/fnchange.lst: Delete nindy files.
11327 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11328 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11329 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11330 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11331 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11332 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11333 * Makefile.in (init.c): Remove nindy references.
11334 (saber_gdb): Delete rule.
11335 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11336 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11337 and a68v-nat.c.
11338 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11339 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11340 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11341 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11342 nindy-share/stop.h.
11343 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11344 * saber.suppress: Delete file.
11345
086df311
DJ
113462003-01-31 Daniel Jacobowitz <drow@mvista.com>
11347
11348 * dbxread.c (stabs_data): New static variable.
11349 (fill_symbuf): Support an in-memory buffer for stabs data.
11350 (stabs_seek): New function.
11351 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11352 (read_ofile_symtab): Use stabs_seek.
11353 (elfstab_build_psymtabs): Take an asection* instead of
11354 an offset and size. Relocate the stabs data if necessary.
11355 Save the section* for dbx_psymtab_to_symtab.
11356 * dwarf2read.c: Add section variables for each debug section.
11357 (dwarf2_locate_sections): Fill them in.
11358 (dwarf2_read_section): Take an asection* argument.
11359 Relocate the section contents if necessary.
11360 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11361 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11362 it to dwarf2_read_section.
11363 (dwarf2_build_frame_info): Update callers.
11364 * elfread.c (elf_symfile_read): Update call to
11365 elfstab_build_psymtabs.
11366 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11367 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11368 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11369 * symfile.c (symfile_dummy_outputs): New function.
11370 (symfile_relocate_debug_section): New function.
11371 * symfile.h (symfile_relocate_debug_section): Add prototype.
11372
87d1b352
RH
113732003-01-31 Richard Henderson <rth@redhat.com>
11374
11375 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11376 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11377 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11378 * alpha-tdep.c (alpha_register_name): Add "unique".
11379 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11380 (ALPHA_UNIQUE_REGNUM): New.
11381 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11382
c48861fb
AC
113832003-01-31 Andrew Cagney <ac131313@redhat.com>
11384
11385 * README: Remove reference to Ericsson 1800 monitor.
11386 * Makefile.in (remote-es.o): Delete rule.
11387 (ALLDEPFILES): Delete remote-es.c.
11388 * remote-es.c: Delete file.
11389 * config/m68k/es1800.mt: Delete file.
11390 * config/djgpp/fnchange.lst: Update.
11391 * configure.tgt: Delete m68*-ericsson-* target.
11392
d764a824
AF
113932003-01-31 Adam Fedor <fedor@gnu.org>
11394
11395 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11396 Remove duplicate/shadowing variable of same name.
11397
fe36c4f4
JB
113982003-01-30 Jim Blandy <jimb@redhat.com>
11399
11400 * symfile.c (find_separate_debug_file): Assert that the objfile's
11401 directory name we compute ends with a slash, and then assume that
11402 that's so everywhere we use it.
11403
cb741690
DJ
114042003-01-30 Daniel Jacobowitz <drow@mvista.com>
11405
11406 * valops.c (value_assign): Flush frame cache after stores to memory
11407 also.
11408
96ee5227
AC
114092003-01-30 Andrew Cagney <ac131313@redhat.com>
11410
11411 * Makefile.in (mon960-rom.o): Delete rule.
11412 * mon960-rom.c: Delete file.
11413
7f6104a9
AC
114142003-01-30 Andrew Cagney <ac131313@redhat.com>
11415
11416 * d10v-tdep.c: Include "frame-unwind.h".
11417 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11418 list.
11419 (next_addr, uses_frame): Delete.
11420 (struct d10v_unwind_cache): Define.
11421 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11422 Use info instead of next_addr and uses_frame globals.
11423 (d10v_frame_init_saved_regs): Delete function.
11424 (d10v_init_extra_frame_info): Delete function.
11425 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11426 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11427 init_frame_pc or frame_saved_pc.
11428 (d10v_pop_frame): Delete function.
11429 (do_d10v_pop_frame): Delete function.
11430 (d10v_frame_chain): Delete function.
11431 (d10v_frame_chain_valid): Delete function.
11432 (d10v_frame_pc_unwind): New function.
11433 (d10v_frame_id_unwind): New function.
11434 (saved_regs_unwinder): New function.
11435 (d10v_frame_register_unwind): New function.
11436 (d10v_frame_pop): New function.
11437 (d10v_frame_unwind): New variable.
11438 (d10v_frame_p): New function.
11439 (d10v_frame_saved_pc): Delete function.
11440 * Makefile.in (d10v-tdep.o): Update dependencies.
11441
cad2e848
JB
114422003-01-30 J. Brobecker <brobecker@gnat.com>
11443
11444 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11445 causing some regressions due to a change in the default value
11446 for this macro.
11447
af34e669
DJ
114482003-01-29 Richard Henderson <rth@redhat.com>
11449 Elena Zannoni <ezannoni@redhat.com>
11450 Daniel Jacobowitz <drow@mvista.com>
11451
11452 Fix PR gdb/961.
8ffd9b1b 11453 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11454 variables.
11455 (RANGES_SECTION): New.
11456 (dwarf_ranges_buffer): New variable.
11457 (struct comp_unit_head): Add member "die".
11458 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11459 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11460 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11461 (dwarf2_locate_sections): Likewise.
11462 (dwarf2_build_psymtabs): Read .debug_ranges.
11463 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11464 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11465 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11466 Look for DW_AT_ranges and return the bounding box.
11467
baa93fa6
CF
114682003-01-29 Brian Ford <ford@vss.fsi.com>
11469
11470 * win32-nat.c (cygwin_pid): Removed as unused.
11471 (child_attach): Try fall back to Cygwin pid.
11472
c63f977f
JB
114732003-01-29 Jim Blandy <jimb@redhat.com>
11474
11475 * objfiles.h (struct objfile): Doc fix.
11476
d62d1979
AC
114772003-01-29 Andrew Cagney <ac131313@redhat.com>
11478
11479 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11480 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11481 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11482 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11483 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11484 (FRAME_SAVED_PC): Change to a function with predicate.
11485 * gdbarch.h, gdbarch.c: Re-generate.
11486
1ae18a04
AC
114872003-01-28 Andrew Cagney <ac131313@redhat.com>
11488
52287340
AC
11489 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11490
1ae18a04
AC
11491 * complaints.c (complain): Delete function.
11492 * complaints.h (struct deprecated_complaint): Delete definition.
11493 (complain): Delete declaration.
11494
f2c16bd6
KB
114952003-01-28 Kevin Buettner <kevinb@redhat.com>
11496
11497 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11498 dummy frames.
11499
a94dd1fd
AC
115002003-01-27 Andrew Cagney <ac131313@redhat.com>
11501
11502 * sentinel-frame.h, sentinel-frame.c: New files.
11503 * Makefile.in (frame.o): Update dependencies.
11504 (SFILES): Add sentinel-frame.c.
11505 (sentinel_frame_h): Define.
11506 (COMMON_OBS): Add sentinel-frame.o.
11507 (sentinel-frame.o): Specify dependencies.
11508 * frame.c: Include "sentinel-frame.h".
11509 (frame_register_unwind): Rewrite assuming that there is always a a
11510 ->next frame.
11511 (frame_register, generic_unwind_get_saved_register): Ditto.
11512 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11513 (create_sentinel_frame, unwind_to_current_frame): New functions.
11514 (get_current_frame): Rewrite using create_sentinel_frame and
11515 unwind_to_current_frame. When possible, always create a frame.
11516 (create_new_frame): Set next to the sentinel frame.
11517 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11518 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11519 ID cache when necessary.
11520 (frame_saved_regs_id_unwind): Use frame_relative_level.
11521 (deprecated_generic_get_saved_register): Use frame_relative_level,
11522 get_frame_saved_regs, get_frame_pc, get_frame_base and
11523 get_next_frame.
11524 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11525 frame_register.
11526
5378adc4
DJ
115272003-01-27 Daniel Jacobowitz <drow@mvista.com>
11528
11529 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11530
51ee2ddc
DJ
115312003-01-27 Daniel Jacobowitz <drow@mvista.com>
11532
11533 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11534 (maintenance_set_profile_cmd): Use error () instead of warning ().
11535
d9feb4e7
DJ
115362003-01-27 Daniel Jacobowitz <drow@mvista.com>
11537
11538 * configure.in: Check that -pg works if using --enable-profiling.
11539 Check for monstartup and _mcleanup regardless of --enable-profiling.
11540 * maint.c: Check for monstartup and _mcleanup before using them.
11541 * config.in: Regenerated.
11542 * configure: Regenerated.
11543
2d188dd3
NC
115442003-01-24 Nick Clifton <nickc@redhat.com>
11545
11546 * Add sh2e support:
11547
11548 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11549
11550 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11551 (sh2e_show_regs): New.
11552 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11553 * config/sh/tm-sh.h: Added sh2e to comments.
11554
cb3c37b2
JB
115552003-01-23 Jim Blandy <jimb@redhat.com>
11556
11557 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11558 symbols found)" message here; we haven't checked for a separate
11559 debug info file yet, so we don't know yet.
11560 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11561 we've looked everywhere. Also, there's no need to print a special
11562 message when we're loading the separate debug info file: the one
11563 symbol_file_add prints is fine.
11564
5b5d99cf
JB
115652003-01-23 Alexander Larsson <alexl@redhat.com>
11566 Jim Blandy <jimb@redhat.com>
11567
11568 Add support for executables whose debug info has been separated
11569 out into a separate file, leaving only a link behind.
11570 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11571 and separate_debug_objfile_backlink.
11572 (put_objfile_before): New declaration.
11573 * symfile.c: #include "filenames.h".
11574 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11575 debug info in a separate file, read that, too. Save the addrs
11576 argument, so we can use it again to read the separated debug info;
11577 syms_from_objfile modifies the table we pass it.
11578 (reread_symbols): After re-reading an objfile, call
11579 reread_separate_symbols to refresh its separate debug info
11580 objfile, if it has one.
11581 (reread_separate_symbols, find_separate_debug_file,
11582 get_debug_link_info, separate_debug_file_exists): New functions.
11583 (debug_file_directory): New global var.
11584 (_initialize_symfile): Initialize debug_file_directory, and
11585 provide the new `set debug-file-directory' command to let the user
11586 change it.
11587 * objfiles.c (free_objfile): If this objfile has its debug info in
11588 a separate objfile, free that one too. If this is itself a
11589 separate debug info objfile, clear our parent's backlink.
11590 (put_objfile_before): New function.
11591 * utils.c (gnu_debuglink_crc32): New function.
11592 * defs.h (gnu_debuglink_crc32): New declaration.
11593 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11594 * configure.in: Handle --with-separate-debug-dir config option.
11595 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11596 * acconfig.h (DEBUGDIR): New macro.
11597 * configure, aclocal.m4, config.in: Regenerated.
11598
7e8580c1
JB
115992003-01-22 Jim Blandy <jimb@redhat.com>
11600
7904e09f
JB
11601 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11602 like the old symbol_file_add, but taking new arguments: you can
11603 now pass in either a `struct section_addr_info' list to say where
11604 each section is loaded, or a `struct section_offsets' table. Pass
11605 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11606 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11607 with the appropriate quiescent values for the new arguments.
11608
7e8580c1
JB
11609 * symfile.c: #include "gdb_assert.h".
11610 (syms_from_objfile): Add the ability to pass in a section offset
11611 table directly, as an alternative to the section_addr_info table.
11612 Document arguments better.
11613 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11614 * symfile.h (syms_from_objfile): Update declaration.
11615 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11616 syms_from_objfile.
11617 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11618
d28f9cdf
DJ
116192003-01-22 Daniel Jacobowitz <drow@mvista.com>
11620
11621 Original patch by Tom Tromey <tromey@cygnus.com> and
11622 Jason Molenda <jmolenda@apple.com>.
11623 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11624 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11625 * NEWS: Mention profiling.
11626 * configure.in (--enable-gdbtk): Fix typo.
11627 (--enable-profiling): New. Set PROFILE_CFLAGS.
11628 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11629 Fill in function.
11630 (profiling_state): New variable.
11631 (mcleanup_wrapper): New function.
11632 (_initialize_maint): Remove NOTYET, fix call to
11633 add_setshow_boolean_cmd for "maint set profile".
11634 * configure: Regenerated.
11635
df21e465
MH
116362003-01-21 Martin M. Hunt <hunt@redhat.com>
11637
11638 * Makefile.in (install-gdbtk): Install PNG images too.
11639
73c1f219
AC
116402003-01-21 Andrew Cagney <ac131313@redhat.com>
11641
11642 * exec.c (text_start): Delete global variable.
11643 (exec_file_attach): Make text_start local to the function.
11644 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11645 * valops.c (hand_function_call): Delete code that handles
11646 BEFORE_TEXT_END and AFTER_TEXT_END.
11647 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11648 of CALL_DUMMY_LOCATION.
11649 * gdbarch.c: Regenerate.
11650 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11651 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11652 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11653 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11654 (text_end): Delete extern declaration.
11655
eb4f72c5
AC
116562003-01-21 Andrew Cagney <ac131313@redhat.com>
11657
11658 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11659 * blockframe.c (backtrace_below_main): Move to "frame.c".
11660 (frame_chain_valid): Delete check for backtrace_below_main.
11661 (_initialize_blockframe): Delete initialization, move ``set
11662 backtrace-below-main'' command to "frame.c".
11663 (do_flush_frames_sfunc): Delete function.
11664 * frame.c: Include "command.h" and "gdbcmd.h".
11665 (frame_type_from_pc): New function.
11666 (create_new_frame): Use frame_type_from_pc.
11667 (legacy_get_prev_frame): New function.
11668 (get_prev_frame): Rewrite. When an old style frame, call
11669 legacy_get_prev_frame. Otherwize, unwind the PC first.
11670 (_initialize_frame): Add ``set backtrace-below-main'' command.
11671 * Makefile.in (frame.o): Update dependencies.
11672
778ce8cc
AC
116732003-01-19 Andrew Cagney <ac131313@redhat.com>
11674
11675 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11676 DEPRECATED_REGISTERS_INFO.
11677
01c193c8
AC
116782003-01-19 Andrew Cagney <ac131313@redhat.com>
11679
11680 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11681 Maintainers'. Update `Various Maintainers'.
11682
dedc2a2b
AC
116832003-01-19 Andrew Cagney <ac131313@redhat.com>
11684
11685 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11686 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11687 Suppress actual parameters when `-'.
11688 * gdbarch.h, gdbarch.c: Regenerate.
11689
b7261c70
AC
116902003-01-19 Andrew Cagney <ac131313@redhat.com>
11691
11692 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11693 code handling dummy frames.
11694
dbe9fe58
AC
116952003-01-19 Andrew Cagney <ac131313@redhat.com>
11696
11697 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11698 (struct frame_unwind): Add field pop.
11699 * frame.h (frame_pop): Declare.
11700 * frame.c (frame_saved_regs_pop): New function.
11701 (trad_frame_unwinder): Add frame_saved_regs_pop.
11702 (frame_pop): New function.
11703 * dummy-frame.c (dummy_frame_pop): New function.
11704 (discard_innermost_dummy): New function.
11705 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11706 (dummy_frame_unwind): Add dummy_frame_pop.
11707 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11708 * valops.c (hand_function_call): Ditto.
11709 * stack.c (return_command): Ditto.
11710
570b8f7c
AC
117112003-01-18 Andrew Cagney <ac131313@redhat.com>
11712
11713 * cris-tdep.c: Fix function declaration indentation.
11714 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11715 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11716 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11717 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11718 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11719 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11720
117212003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11722
11723 * README (Unpacking and Installation -- quick overview):
11724 Warn against ".../gdb-5.3/gdb/configure".
11725
494cca16
AC
117262003-01-18 Andrew Cagney <ac131313@redhat.com>
11727
11728 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11729 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11730 (struct frame_unwind): Declare opaque.
11731 (dummy_frame_p): Declare function.
11732 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11733 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11734 * dummy-frame.c: Include "frame-unwind.h".
11735 (dummy_frame_p): New function.
11736 (dummy_frame_unwind): New variable.
11737 * frame.c: Include "frame-unwind.h".
11738 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11739 to use the new unwind field.
11740 (set_unwind_by_pc): Delete function.
11741 (create_new_frame, get_prev_frame): Set unwind field using
11742 frame_unwind_find_by_pc.
11743 (trad_frame_unwind, trad_frame_unwinder): New variables.
11744 * frame.h (trad_frame_unwind): Declare variable.
11745 (frame_id_unwind_ftype): Delete declaration.
11746 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11747 (struct frame_unwind): Declare opaque.
11748 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11749 register_unwind with a single unwind pointer.
11750 * frame-unwind.h, frame-unwind.c: New files.
11751 * Makefile.in (SFILES): Add frame-unwind.c.
11752 (frame_unwind_h): Define.
11753 (COMMON_OBS): Add frame-unwind.o.
11754 (frame-unwind.o): Specify dependencies.
11755 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11756
4efb68b1
AC
117572003-01-18 Andrew Cagney <ac131313@redhat.com>
11758
11759 * ada-valprint.c: Eliminate PTR.
11760 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11761 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11762 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11763 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11764 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11765 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11766 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11767
a84d24ee
AC
117682003-01-17 Andrew Cagney <ac131313@redhat.com>
11769
762f08a3
AC
11770 * main.c (captured_main): Don't use PTR.
11771 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11772 * gdbtypes.c (lookup_primitive_typename): Ditto.
11773 (lookup_struct_elt_type): Ditto.
11774 * f-valprint.c (info_common_command): Ditto.
11775 (list_all_visible_commons): Ditto.
11776 * jv-typeprint.c (java_type_print_base): Ditto.
11777
a84d24ee
AC
11778 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11779 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11780 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11781 i386-interix-nat.c and i386-interix-tdep.c. Rename
11782 m68klinux-nat.c and m68klinux-tdep.c. Rename
11783 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11784 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11785 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11786 * main.c (captured_main): Use xfree, not free.
11787
c170fb60
AC
117882003-01-16 Andrew Cagney <ac131313@redhat.com>
11789
11790 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11791 ID back using a parameter.
11792 * frame.c (frame_id_unwind): Update call.
11793 (frame_saved_regs_id_unwind): Update.
11794 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11795 * dummy-frame.h (struct frame_id): Add opaque declaration.
11796 (dummy_frame_id_unwind): Update declaration.
11797
867f3898
AC
117982003-01-15 Andrew Cagney <ac131313@redhat.com>
11799
11800 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11801
40622be8 118022003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11803
40622be8 11804 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11805
ae66c1fc
EZ
118062003-01-14 Elena Zannoni <ezannoni@redhat.com>
11807
997b089a 11808 Fix PR gdb/898
ae66c1fc
EZ
11809 * breakpoint.c (until_break_command): Add new argument. Use it to
11810 decide whether to stop only at the current frame or not.
11811 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11812 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11813 call.
11814 (advance_command): New function.
11815 (_initialize_infcmd): Update help string for 'until' command.
11816 Add new 'advance' command.
11817
a04257e6
DC
118182003-01-14 David Carlton <carlton@math.stanford.edu>
11819
11820 * linespec.c (decode_line_1): Normalize comments.
11821 (set_flags): Ditto.
11822 (locate_first_half): Ditto.
11823 (decode_compound): Ditto.
11824 (symtab_from_filename): Ditto.
11825 (decode_all_digits): Ditto.
11826 (decode_dollar): Ditto.
11827 (find_methods): Ditto.
11828 (find_toplevel_char): Ditto.
11829
1bac305b
AC
118302003-01-13 Andrew Cagney <ac131313@redhat.com>
11831
11832 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11833 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11834 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11835 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11836 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11837 * language.c, language.h, m32r-tdep.c: Update copyright.
11838 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11839 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11840 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11841 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11842 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11843 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11844
25caa7a8
EZ
118452003-01-13 Elena Zannoni <ezannoni@redhat.com>
11846
11847 * stabsread.h (process_later, resolve_cfront_continuation):
11848 Obsolete.
11849 Update copyright years.
11850 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11851 Update copyright year.
11852 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11853 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11854 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11855 Update copyright year.
11856 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11857 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11858 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11859 (parse_partial_symbols): Obsolete cfront support.
11860 * stabsread.c
11861 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11862 macros.
11863 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11864 read_cfront_baseclasses, read_cfront_member_functions,
11865 resolve_cfront_continuation,read_cfront_static_fields,
11866 copy_cfront_struct_fields): Obsolete functions.
11867 (define_symbol, read_one_struct_field): Obsolete cfront support.
11868 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11869 Update Copyright year.
11870
7789c6f5
EZ
118712003-01-13 Elena Zannoni <ezannoni@redhat.com>
11872
11873 * stack.c (print_frame_info, print_stack_frame_base_stub,
11874 print_stack_frame_base, show_and_print_stack_frame_stub,
11875 show_and_print_stack_frame, print_only_stack_frame_stub,
11876 print_only_stack_frame): Delete functions.
11877 (print_stack_frame_stub): Call print_frame_info instead of
11878 print_frame_info_base.
11879 (print_frame_info_base): Rename to print_frame_info.
11880 (backtrace_command_1): Call print_frame_info, instead of
11881 print_frame_info_base.
11882 (current_frame_command): Call print_stack_frame, instead of
11883 print_only_stack_frame.
11884 (frame_command): Call print_stack_frame, instead of
11885 show_and_print_stack_frame.
11886 (up_command): Ditto.
11887 (down_command): Ditto.
11888 * frame.h (print_only_stack_frame): Delete prototype.
11889 * infrun.c (normal_stop): Call print_stack_frame, instead of
11890 show_and_print_stack_frame.
11891 * thread.c (info_threads_command): Call print_stack_frame, instead
11892 of print_only_stack_frame.
11893
3f5a3016
AC
118942003-01-13 Andrew Cagney <ac131313@redhat.com>
11895
d99ba314
AC
11896 * README (Graphical interface to GDB): Update URL. Point at
11897 gdb/links/.
11898
3f5a3016
AC
11899 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11900 version match.
11901
083ae935
DJ
119022003-01-13 Daniel Jacobowitz <drow@mvista.com>
11903
11904 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11905 lines.
11906
5365276c
DJ
119072003-01-13 Daniel Jacobowitz <drow@mvista.com>
11908
11909 * thread-db.c (attach_thread): Prototype.
11910 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11911 thread information (ti), and valid flags (th_valid, ti_valid).
11912 (attach_thread): Move target_pid_to_str call to after the thread
11913 is added to GDB's list. Initialize the cache.
11914 (thread_get_info_callback, thread_db_map_id2thr)
11915 (thread_db_get_info): New functions.
11916 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11917 (thread_db_store_registers, thread_db_thread_alive)
11918 (thread_db_get_thread_local_address): Use them.
11919 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11920 of calling error() for threads in unknown state.
11921
11922 (clear_lwpid_callback): New function.
11923 (thread_db_resume): Use it to clear the cache.
11924
9fc30b6b
DJ
119252003-01-13 Daniel Jacobowitz <drow@mvista.com>
11926
11927 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11928 (resume_callback): Remove dead code.
11929
8f871025
AC
119302003-01-13 Andrew Cagney <ac131313@redhat.com>
11931
11932 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11933 predicate.
11934 * gdbarch.h, gdbarch.c: Regenerate.
11935 * stack.c (frame_info): Only initialize the saved registers when
11936 FRAME_INIT_SAVED_REGS_P.
11937 * frame.c (frame_saved_regs_register_unwind): Assert
11938 FRAME_INIT_SAVED_REGS_P.
11939 (deprecated_generic_get_saved_register): Ditto.
11940
3f565f1e
DJ
119412003-01-13 Daniel Jacobowitz <drow@mvista.com>
11942
11943 * source.c (openp): Squelch warning about "filename".
11944
072b1022
DJ
119452003-01-13 Daniel Jacobowitz <drow@mvista.com>
11946
11947 * source.c (openp): If the file does not exist don't necessarily
11948 search the path.
11949
973ccf8b
DJ
119502003-01-13 Daniel Jacobowitz <drow@mvista.com>
11951
11952 Fix PR gdb/872.
11953 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11954 (integer_types_same_name_p): New function.
11955 (rank_one_type): Use it.
11956 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11957
030292b7
DJ
119582003-01-13 Daniel Jacobowitz <drow@mvista.com>
11959
11960 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11961 variables.
11962 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11963 * configure.in: Add --with-sysroot.
11964 * configure: Regenerated.
11965 * main.c (gdb_sysroot): New variable.
11966 (captured_main): Initialize gdb_sysroot.
11967 * defs.h (gdb_sysroot): New extern declaration.
11968 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11969
afb5d334
MC
119702003-01-12 Michael Chastain <mec@shout.net>
11971
11972 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11973
751ceeb4
MC
119742003-01-12 Michael Chastain <mec@shout.net>
11975
11976 * top.c (print_gdb_version): Bump copyright year to 2003.
11977
94cd26f8
DC
119782003-01-12 David Carlton <carlton@bactrian.org>
11979
11980 * linespec.c (symtab_from_filename): Rename variable 's' to
11981 'file_symtab'.
11982
1ce79225
AC
119832003-01-12 Andrew Cagney <ac131313@redhat.com>
11984
11985 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11986 dummy frame.
11987 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11988
fa1fd571
AC
119892003-01-12 Andrew Cagney <ac131313@redhat.com>
11990
11991 * d10v-tdep.c: Include "gdb_assert.h".
11992 (d10v_store_return_value): Rewrite to match current interface.
11993 (d10v_extract_struct_value_address): Ditto.
11994 (d10v_extract_return_value): Ditto.
11995 (d10v_gdbarch_init): Set store_restore_value,
11996 extract_struct_value_address and extract_return_value.
11997
68b8d23e
JB
119982003-01-12 J. Brobecker <brobecker@gnat.com>
11999
12000 * hpread.c (set_namestring): New procedure replacing the
12001 SET_NAMESTRING macro.
12002 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12003 by calls to set_namestring.
12004
120052003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12006
12007 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12008 a compilation warning.
12009 (hpread_process_one_debug_symbol): Likewise.
12010
88d262ca
DC
120112003-01-10 David Carlton <carlton@math.stanford.edu>
12012
12013 * linespec.c (decode_line_1): Rename variable 's' to
12014 'file_symtab'.
12015 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12016 (decode_dollar): Ditto.
12017 (decode_variable): Ditto.
12018 (symbol_found): Ditto.
12019
86669319
MC
120202003-01-09 Michael Chastain <mec@shout.net>
12021
12022 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12023
616a9dc4
CV
120242003-01-07 Corinna Vinschen <vinschen@redhat.com>
12025
12026 * win32-nat.c (set_process_privilege): New function.
12027 (child_attach): Call set_process_privilege() to enable the
12028 SE_DEBUG_NAME user privilege if available in process token.
12029
3269bcfa
JB
120302003-01-10 J. Brobecker <brobecker@gnat.com>
12031
12032 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12033 compilation error in the previous revision.
12034
2b0ee454
DC
120352003-01-09 David Carlton <carlton@math.stanford.edu>
12036
12037 * linespec.c: Update copyright.
12038
b3ba1b44
DJ
120392003-01-09 Daniel Jacobowitz <drow@mvista.com>
12040
12041 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12042 than inferior_ptid.
12043 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12044
4ef3f3be
AC
120452003-01-09 Andrew Cagney <ac131313@redhat.com>
12046
479ab5a0
AC
12047 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12048 Update comments.
12049 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12050 (frame_saved_regs_zalloc): Update.
12051 (frame_saved_regs_register_unwind): Update.
12052 (create_new_frame): Update.
12053 (get_prev_frame): Update.
12054 (frame_extra_info_zalloc): Update.
12055 (deprecated_get_frame_saved_regs): Update.
12056 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12057 * cris-tdep.c: Update comment.
12058
bde58177
AC
12059 * somsolib.h: Fix function indentation.
12060 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12061 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12062 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12063 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12064 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12065
4ef3f3be
AC
12066 * infrun.c (follow_fork): Use ISO C definition.
12067 * expprint.c (print_subexp): Use xfree instead of free.
12068 * charset.c: Include "gdb_string.h" instead of <string.h>.
12069 (register_iconv_charsets): Use ISO C definition.
12070 (host_charset, target_charset): Ditto.
12071 * Makefile.in (charset.o): Update dependencies.
12072 (mi-cmd-env.o): Update dependencies.
12073
1c615f7a
AC
120742003-01-08 Andrew Cagney <cagney@redhat.com>
12075
12076 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12077 get_frame_base.
12078
c9a1dc08
AC
120792003-01-08 Andrew Cagney <ac131313@redhat.com>
12080
12081 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12082 build directories. Save edited gdb output in Mbuild.log. If a
12083 build fails, remove any final GDB executable.
12084
dbad9d94
AC
120852003-01-08 Andrew Cagney <ac131313@redhat.com>
12086
12087 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12088 replacing hex constants with function names and stripping leading
12089 file name directory prefixes.
12090
8d357cca
AC
120912003-01-08 Andrew Cagney <cagney@redhat.com>
12092
12093 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12094 get_frame_base.
12095
bca02a8a
DC
120962003-01-08 David Carlton <carlton@math.stanford.edu>
12097
12098 * linespec.c (decode_line_1): Move code into decode_variable.
12099 (decode_variable): New function.
12100
7f8ab3a0
AC
121012003-01-08 Andrew Cagney <ac131313@redhat.com>
12102
12103 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12104
7b5849cc
AC
121052003-01-08 Andrew Cagney <cagney@redhat.com>
12106
12107 * cris-tdep.c (cris_frame_init_saved_regs): Use
12108 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12109 saved_regs buffer.
12110 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12111 (sh64_nofp_frame_init_saved_regs): Ditto.
12112 (sh_fp_frame_init_saved_regs): Ditto.
12113 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12114 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12115 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12116 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12117
72a5efb3
DJ
121182003-01-08 Daniel Jacobowitz <drow@mvista.com>
12119
12120 * minsyms.c (lookup_minimal_symbol): Update comment.
12121 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12122 (lookup_minimal_symbol_solib_trampoline): Likewise.
12123
11c02a10
AC
121242003-01-08 Andrew Cagney <cagney@redhat.com>
12125
aab3ea25
AC
12126 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12127 frame_relative_level.
12128
da50a4b7
AC
12129 * alpha-tdep.c: Use get_frame_extra_info.
12130 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12131 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12132 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12133 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12134
11c02a10
AC
12135 * alpha-tdep.c: Use get_next_frame.
12136 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12137 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12138 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12139 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12140 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12141 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12142 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12143
1e2330ba
AC
121442003-01-07 Andrew Cagney <cagney@redhat.com>
12145
12146 * alpha-tdep.c: Use get_frame_base.
12147 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12148 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12149 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12150 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12151 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12152 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12153 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12154 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12155
2d75187b
AC
121562003-01-07 Andrew Cagney <cagney@redhat.com>
12157
12158 * frame.c (deprecated_get_frame_context): New function.
12159 (deprecated_set_frame_context): New function.
12160 * frame.h (deprecated_get_frame_context): Declare.
12161 (deprecated_set_frame_context): Declare.
12162 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12163 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12164
483d36b2
AC
121652003-01-07 Andrew Cagney <cagney@redhat.com>
12166
12167 * frame.c (deprecated_set_frame_next_hack): New function.
12168 (deprecated_set_frame_prev_hack): New function.
12169 * frame.h (deprecated_set_frame_next_hack): Declare.
12170 (deprecated_set_frame_prev_hack): Declare.
12171 * mcore-tdep.c (analyze_dummy_frame): Use
12172 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12173 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12174
14e91ac5
DC
121752003-01-07 David Carlton <carlton@math.stanford.edu>
12176
12177 * linespec.c (decode_line_1): Move code into decode_dollar.
12178 (decode_dollar): New function.
12179
b0c6b05c
AC
121802003-01-07 Andrew Cagney <cagney@redhat.com>
12181
12182 * arm-tdep.c (arm_init_extra_frame_info): Use
12183 deprecated_update_frame_base_hack.
12184 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12185 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12186 (fix_frame_pointer): Ditto.
12187 (mn10300_analyze_prologue): Ditto.
12188
a00a19e9
AC
121892003-01-07 Andrew Cagney <cagney@redhat.com>
12190
12191 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12192 extra_info using frame_extra_info_zalloc.
12193 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12194 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12195 (sh64_init_extra_frame_info): Ditto.
12196 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12197 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12198 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12199 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12200 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12201 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12202 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12203 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12204 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12205 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12206 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12207 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12208
12209 * mn10300-tdep.c (analyze_dummy_frame): Use
12210 deprecated_set_frame_extra_info_hack.
12211 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12212
1fb4c65b
JB
122132003-01-07 J. Brobecker <brobecker@gnat.com>
12214
12215 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12216 class is not scText. These do not define "real" procedures.
12217 (parse_partial_symbols): Likewise.
12218
9fe7d6bf
MS
122192003-01-06 Michael Snyder <msnyder@redhat.com>
12220
12221 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12222
f6c609c4
AC
122232003-01-06 Andrew Cagney <ac131313@redhat.com>
12224
12225 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12226 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12227 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12228 deprecated_frame_xmalloc_with_cleanup.
12229 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12230 deprecated_frame_xmalloc.
12231 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12232 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12233
d995ff4b
AC
122342003-01-06 Andrew Cagney <cagney@redhat.com>
12235
84dc46cb
AC
12236 * x86-64-linux-tdep.c: Include "osabi.h".
12237 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12238
d995ff4b
AC
12239 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12240
66140c26
AC
122412003-01-06 Andrew Cagney <cagney@redhat.com>
12242
12243 * MAINTAINERS (Target Instruction Set Architectures): Update
12244 arm-elf. Can be built with -Werror, has been multiarched.
12245
12246 * value.h (unpack_long): Make buffer parameter constant.
12247 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12248 * scm-lang.h (scm_parse): Ditto.
12249 * defs.h (extract_typed_address, extract_address): Ditto.
12250 (extract_long_unsigned_integer): Ditto.
12251 * inferior.h (unsigned_pointer_to_address): Ditto.
12252 (signed_pointer_to_address): Ditto.
12253 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12254 * gdbarch.h, gdbarch.c: Regenerate.
12255 * findvar.c (extract_long_unsigned_integer): Update.
12256 (extract_address): Update.
12257 (extract_typed_address): Update.
12258 (unsigned_pointer_to_address): Update.
12259 * values.c (unpack_long): Update.
12260 (unpack_double): Update.
12261 (unpack_pointer): Update.
12262 (unpack_field_as_long): Update.
12263 * d10v-tdep.c (d10v_pointer_to_address): Update.
12264 * avr-tdep.c (avr_pointer_to_address): Update.
12265 * scm-lang.c (scm_unpack): Update.
12266 * findvar.c (signed_pointer_to_address): Update.
12267
b089b3da
ML
122682003-01-06 Michal Ludvig <mludvig@suse.cz>
12269
8ffd9b1b 12270 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12271 since it is in i386-tdep.c.
12272
aff87235
JB
122732003-01-06 J. Brobecker <brobecker@gnat.com>
12274
12275 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12276 failure introduced in the previous change.
12277
34f5e845
MC
122782003-01-05 Michael Chastain <mec@shout.net>
12279
12280 * README: Remove references to deleted remote-*.c files:
12281 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12282 remote-nrom.c, remote-os9k.c, remote-udi.c.
12283
28bcfd30
MK
122842003-01-05 Mark Kettenis <kettenis@gnu.org>
12285
12286 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12287 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12288 i386_get_longjmp_target.
12289
15a5b3ee
AC
122902003-01-05 Andrew Cagney <ac131313@redhat.com>
12291
12292 * arm-tdep.c (prologue_cache): Change to a pointer.
12293 (_initialize_arm_tdep): Allocate prologue_cache.
12294 (check_prologue_cache): Update.
12295 (save_prologue_cache): Update.
12296 (arm_gdbarch_init): Update.
12297
c263362b
DJ
122982003-01-04 Daniel Jacobowitz <drow@mvista.com>
12299
12300 * stabsread.c (update_method_name_from_physname): Call complaint()
12301 instead of error.
12302
51603483
DJ
123032003-01-04 Daniel Jacobowitz <drow@mvista.com>
12304
12305 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12306 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12307 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12308
12309 * blockframe.c: Include "gdbcmd.h" and "command.h".
12310 (backtrace_below_main): New variable.
12311 (file_frame_chain_valid, func_frame_chain_valid)
12312 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12313 (generic_func_frame_chain_valid): Remove functions.
12314 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12315 (_initialize_blockframe): New function.
12316 * Makefile.in (blockframe.o): Update dependencies.
12317 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12318 comment. Call frame_chain_valid ().
12319 * frame.h: Remove old prototypes. Add prototype for
12320 frame_chain_valid and update comments to match.
12321 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12322 Remove old comment.
12323 * gdbarch.h: Regenerated.
12324 * gdbarch.c: Regenerated.
12325
12326 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12327 set_gdbarch_frame_chain_valid.
12328 * avr-tdep.c (avr_gdbarch_init): Likewise.
12329 * cris-tdep.c (cris_gdbarch_init): Likewise.
12330 * frv-tdep.c (frv_gdbarch_init): Likewise.
12331 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12332 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12333 (i386_nw_init_abi): Likewise.
12334 (i386_gdbarch_init): Likewise.
12335 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12337 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12338 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12339 * mips-tdep.c (mips_gdbarch_init): Likewise.
12340 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12341 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12342 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12343 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12344 * s390-tdep.c (s390_gdbarch_init): Likewise.
12345 * sh-tdep.c (sh_gdbarch_init): Likewise.
12346 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12347 * v850-tdep.c (v850_gdbarch_init): Likewise.
12348 * vax-tdep.c (vax_gdbarch_init): Likewise.
12349 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12350
12351 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12352 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12353 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12354 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12355 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12356 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12357 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12358 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12359
b00a8037
DJ
123602002-01-04 Daniel Jacobowitz <drow@mvista.com>
12361
12362 * Makefile.in (acconfig_h): Remove incorrect macro.
12363 (config_h): Define.
12364 (osabi.o): Update dependencies.
12365 * configure.tgt: Set gdb_osabi based on target triplet.
12366 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12367 * configure: Regenerated.
12368 * config.in: Regenerated.
12369 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12370 (GDB_OSABI_DEFAULT): Define if not already defined.
12371 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12372 (set_osabi_string): New variables.
12373 (gdbarch_register_osabi): Add new OS ABI to
12374 gdb_osabi_available_names.
12375 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12376 (set_osabi, show_osabi): New functions.
12377 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12378
4be87837
DJ
123792003-01-04 Daniel Jacobowitz <drow@mvista.com>
12380
12381 * arch-utils.c (gdbarch_info_init): Set osabi to
12382 GDB_OSABI_UNINITIALIZED.
12383 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12384 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12385 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12386 * gdbarch.c: Regenerated.
12387 * gdbarch.h: Regenerated.
12388 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12389 there's no BFD.
12390 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12391 * osabi.h (enum gdb_osabi): Move to defs.h.
12392 (gdbarch_init_osabi): Update prototype.
12393 * defs.h (enum gdb_osabi): Moved here.
12394 * Makefile.in: Update dependencies.
12395
12396 * alpha-tdep.h: Don't include "osabi.h".
12397 (struct gdbarch_tdep): Remove osabi member.
12398 * alpha-tdep.c: Include "osabi.h".
12399 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12400 iterate over arches. Update call to gdbarch_init_osabi.
12401 (alpha_dump_tdep): Don't dump osabi.
12402 * alpha-linux-tdep.c: Include "osabi.h".
12403 * alpha-osf1-tdep.c: Include "osabi.h".
12404 * alphafbsd-tdep.c: Include "osabi.h".
12405 * alphanbsd-tdep.c: Include "osabi.h".
12406
12407 * arm-tdep.h: Don't include "osabi.h".
12408 (struct gdbarch_tdep): Remove osabi member.
12409 * arm-tdep.c: Include "osabi.h".
12410 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12411 iterate over arches. Update call to gdbarch_init_osabi.
12412 (arm_dump_tdep): Don't dump osabi.
12413 * arm-linux-tdep.c: Include "osabi.h".
12414 * armnbsd-tdep.c: Include "osabi.h".
12415
12416 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12417 Update call to gdbarch_init_osabi.
12418
12419 * i386-tdep.h: Don't include "osabi.h".
12420 (struct gdbarch_tdep): Remove osabi member.
12421 * i386-tdep.c: Include "osabi.h".
12422 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12423 iterate over arches. Update call to gdbarch_init_osabi.
12424 (i386_dump_tdep): Don't dump osabi.
12425 * i386-linux-tdep.c: Include "osabi.h".
12426 * i386-sol2-tdep.c: Include "osabi.h".
12427 * i386bsd-tdep.c: Include "osabi.h".
12428 * i386gnu-tdep.c: Include "osabi.h".
12429 * i386ly-tdep.c: Include "osabi.h".
12430 * i386nbsd-tdep.c: Include "osabi.h".
12431 * i386obsd-tdep.c: Include "osabi.h".
12432
12433 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12434 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12435 check osabi when iterating over arches. Update call to
12436 gdbarch_init_osabi.
12437 (mips_dump_tdep): Don't dump osabi.
12438
12439 * ns32k-tdep.h: Don't include "osabi.h".
12440 (struct gdbarch_tdep): Remove.
12441 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12442 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12443 allocate tdep. Update call to gdbarch_init_osabi.
12444 (ns32k_dump_tdep): Remove.
12445 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12446 * ns32knbsd-tdep.c: Include "osabi.h".
12447
12448 * ppc-tdep.h: Don't include "osabi.h".
12449 (struct gdbarch_tdep): Remove osabi member.
12450 * rs6000-tdep.c: Include "osabi.h".
12451 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12452 osabi when iterating over arches. Update call to
12453 gdbarch_init_osabi.
12454 (rs6000_dump_tdep): Don't dump osabi.
12455 * ppc-linux-tdep.c: Include "osabi.h".
12456 * ppcnbsd-tdep.c: Include "osabi.h".
12457
12458 * sh-tdep.h: Don't include "osabi.h".
12459 (struct gdbarch_tdep): Remove osabi member.
12460 * sh-tdep.c: Include "osabi.h".
12461 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12462 iterate over arches. Update call to gdbarch_init_osabi.
12463 (sh_dump_tdep): Don't dump osabi.
12464 * shnbsd-tdep.c: Include "osabi.h".
12465
12466 * sparc-tdep.c: Include "osabi.h".
12467 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12468 iterate over arches. Update call to gdbarch_init_osabi.
12469 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12470 tdep structure.
12471
12472 * vax-tdep.h: Don't include "osabi.h".
12473 (struct gdbarch_tdep): Remove.
12474 * vax-tdep.c: Include "osabi.h".
12475 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12476 iterate over arches. Don't allocate tdep. Update call
12477 to gdbarch_init_osabi.
12478 (vax_dump_tdep): Remove.
12479 (_initialize_vax_tdep): Update call to gdbarch_register.
12480
a881cf8e
DJ
124812003-01-04 Daniel Jacobowitz <drow@mvista.com>
12482
12483 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12484 entirely.
12485 (breakpoint_re_set_one): Don't fetch the value for a disabled
12486 watchpoint.
12487
1e698235
DJ
124882003-01-04 Daniel Jacobowitz <drow@mvista.com>
12489
12490 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12491 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12492 (COERCE_FLOAT_TO_DOUBLE): Remove.
12493 * gdbarch.c: Regenerate.
12494 * gdbarch.h: Regenerate.
12495 * Makefile.in: Remove value_h from gdbarch_h.
12496 * valops.c (coerce_float_to_double): New variable.
12497 (default_coerce_float_to_double): Remove.
12498 (standard_coerce_float_to_double): Remove.
12499 (value_arg_coerce): Use coerce_float_to_double.
12500 (_initialize_valops): Add "set coerce-float-to-double".
12501 * value.h (default_coerce_float_to_double): Remove prototype.
12502 (standard_coerce_float_to_double): Remove prototype.
12503
12504 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12505 prototyped.
12506 * mdebugread.c (parse_symbol): Likewise.
12507 * stabsread.c (define_symbol): Mark all functions as prototyped.
12508
12509 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12510 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12511 set_gdbarch_coerce_float_to_double.
12512 * arm-tdep.c (arm_gdbarch_init): Likewise.
12513 * frv-tdep.c (frv_gdbarch_init): Likewise.
12514 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12515 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12516 * mips-tdep.c (mips_gdbarch_init): Likewise.
12517 (mips_coerce_float_to_double): Remove.
12518 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12519 (rs6000_coerce_float_to_double): Remove.
12520 * s390-tdep.c (s390_gdbarch_init): Likewise.
12521 * sh-tdep.c (sh_gdbarch_init): Likewise.
12522 (sh_coerce_float_to_double): Remove.
12523 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12524 (sparc_coerce_float_to_double): Remove.
12525 * v850-tdep.c (v850_gdbarch_init): Likewise.
12526 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12527 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12528 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12529 (hppa_coerce_float_to_double): Remove prototype.
12530 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12531
f436a26a
DJ
125322003-01-04 Daniel Jacobowitz <drow@mvista.com>
12533
12534 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12535
248f8055
DJ
125362003-01-04 Daniel Jacobowitz <drow@mvista.com>
12537
12538 Suggested by Stewart Brown <sb24@avaya.com>:
12539 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12540 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12541 (c_type_print_varspec_suffix): Likewise.
12542
72cfdc76
MK
125432003-01-04 Mark Kettenis <kettenis@gnu.org>
12544
bfd260bb
MK
12545 * configure.in: Don't set and AC_SUBST SUBDIRS.
12546 * configure: Regenerated.
12547
72cfdc76
MK
12548 * configure.in: Remove code dealing with shared libraries.
12549 * Makefile.in: Remove HLDFLAGS and HLDENV.
12550 * configure: Regenerated.
12551
c8b8a898
AC
125522003-01-04 Andrew Cagney <ac131313@redhat.com>
12553
12554 * frame.c (deprecated_frame_xmalloc): New function.
12555 (deprecated_set_frame_saved_regs_hack): New function.
12556 (deprecated_set_frame_extra_info_hack): New function.
12557 * frame.h (deprecated_frame_xmalloc): Declare.
12558 (deprecated_set_frame_saved_regs_hack): Declare.
12559 (deprecated_set_frame_extra_info_hack): Declare.
12560
14abd0fb
MK
125612003-01-04 Mark Kettenis <kettenis@gnu.org>
12562
8ee53726
MK
12563 * configure.in: Move code that provides the --enable-gdbtk option
12564 right after the code that handles the --enable-tui option, and
12565 polish it somewhat.
12566 * configure: Regenerated.
12567
14abd0fb
MK
12568 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12569 AC_CHECK_FUNCS and remove the old check for pread64.
12570 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12571 * acconfig.h (_GNU_SOURCE): Add.
12572 (HAVE_PREAD64): Remove.
12573 * configure, aclocal.m4, config.in: Regenerated.
12574
b2fb4676
AC
125752003-01-03 Andrew Cagney <ac131313@redhat.com>
12576
12577 * alpha-tdep.c: Use get_frame_saved_regs.
12578 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12579 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12580 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12581 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12582 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12583
8dcde887
MK
125842003-01-03 Mark Kettenis <kettenis@gnu.org>
12585
12586 * configure.in: Remove all use of the SUBDIRS variable; add
12587 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12588 code providing the --enable-multi-ice option, and move it right in
12589 front of the code that checks whether gdbserver is supported.
12590 Polish that too.
12591 * configure: Regenerated.
12592 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12593 @SUBDIRS@.
12594
8ccd593b
AC
125952003-01-03 Andrew Cagney <cagney@redhat.com>
12596
12597 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12598 * avr-tdep.c, cris-tdep.c: Ditto.
12599 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12600 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12601
91151a06
MK
126022003-01-03 Mark Kettenis <kettenis@gnu.org>
12603
12604 * configure.in: Remove --enable-netrom option.
12605 * configure: Regenerated.
12606
8fe84d01
MK
126072003-01-03 Mark Kettenis <kettenis@gnu.org>
12608
12609 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12610 declaration for `struct re_pattern_buffer' instead.
12611 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12612
f0394be6
JB
126132003-01-03 J. Brobecker <brobecker@gnat.com>
12614
12615 * mdebugread.c (parse_symbol): Count until the stEnd matching
12616 the structure name.
12617
27e9bf90
MK
126182003-01-02 Mark Kettenis <kettenis@gnu.org>
12619
93d331ba
MK
12620 * configure.in: Remove --with-cpu option.
12621 subscripts. Remove evil changequotes here.
12622 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12623 * config.in, configure: Regenerated.
8ffd9b1b 12624
27e9bf90
MK
12625 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12626 * configure.in: Cleanup section that sources GDB and BFD configure
12627 subscripts. Remove evil changequotes here.
12628 * config.in, configure: Regenerated.
12629
50abf9e5
AC
126302003-01-02 Andrew Cagney <ac131313@redhat.com>
12631
12632 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12633 frame accessor methods.
12634 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12635 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12636 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12637 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12638 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12639 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12640 * z8k-tdep.c: Ditto.
8ffd9b1b 12641
287c1a40
MK
126422003-01-02 Mark Kettenis <kettenis@gnu.org>
12643
f5dbc56d
MK
12644 * configure.in: Remove UI_OUT configuration code.
12645 * ada-lang.c: Update assuming UI_OUT is always true.
12646 * Makefile.in (UIOUT_CFLAGS): Remove.
12647 * configure: Regenerated.
12648 * TODO: Remove blurb about elimination of -DUI_OUT.
12649
627af7ea
MK
12650 * configure.in: Move code that provides the --enable-gdbcli,
12651 --enable-gdbmi options right before the code that handles the
12652 --enable-tui option. Polish a bit.
12653 * configure: Regenerated.
12654
06825bd1
MK
12655 * configure.in: Rewrite check for GNU regex and the
12656 --without-included regex option, and move it into the "Checks for
12657 library functions" section. This makes us use the system regex
12658 again by default on systems with version 2 of the GNU C library.
12659 This was apparently broken.
12660 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12661 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12662 * config.in, configure: Regenerated.
12663
287c1a40
MK
12664 * configure.in: Move code that provides the --enable-tui option
12665 before the "Checks for libraries" section. Polish the code
12666 somewhat and set need_curses to yes if we build the TUI. Rewrite
12667 code that looks for a library providing termcap functionality to
12668 match more closely what's done in the Readline library, and move
12669 it into to the "Checks for libraries" section.
12670 * configure: Regenerated.
12671 * Makefile.in (TERMCAP): Remove variable.
12672 * config/i386/go32.mh (TERMCAP): Remove variable.
12673
684e56bf
AC
126742003-01-02 Andrew Cagney <ac131313@redhat.com>
12675
12676 * MAINTAINERS: Mention gdb_mbuild.sh.
12677 * gdb_mbuild.sh: Rewrite.
12678
e1ea1d75
MK
126792003-01-02 Mark Kettenis <kettenis@gnu.org>
12680
12681 * configure.in: Fix typo in last change.
12682 * config.in, configure: Regenerated.
12683
1b831c93
AC
126842003-01-02 Andrew Cagney <ac131313@redhat.com>
12685
12686 * valarith.c (value_binop): Delete obsolete code and comments.
12687 * configure.host: Ditto.
12688 * buildsym.h (make_blockvector): Ditto.
12689 * buildsym.c (make_blockvector): Ditto.
12690 * defs.h (enum language): Ditto.
12691 (chill_demangle): Ditto.
12692 * elfread.c (elf_symtab_read): Ditto.
12693 * dwarfread.c (CHILL_PRODUCER): Ditto.
12694 (set_cu_language): Ditto.
12695 (handle_producer): Ditto.
12696 * expprint.c (print_subexp): Ditto.
12697 * gdbtypes.c (chill_varying_type): Ditto.
12698 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12699 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12700 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12701 (chill_varying_type): Ditto.
12702 * language.h (_LANG_chill): Ditto.
12703 * language.c (binop_result_type, integral_type): Ditto.
12704 (character_type, string_type, structured_type): Ditto.
12705 (lang_bool_type, binop_type_check): Ditto.
12706 * stabsread.h (os9k_stabs): Ditto.
12707 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12708 (define_symbol, read_type, read_struct_fields): Ditto.
12709 (read_array_type, read_enum_type, read_huge_number): Ditto.
12710 (read_range_type, start_stabs): Ditto.
12711 * symfile.c (init_filename_language_table): Ditto.
12712 (add_psymbol_with_dem_name_to_list): Ditto.
12713 * symtab.c (symbol_init_language_specific): Ditto.
12714 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12715 * symtab.h (struct general_symbol_info): Ditto.
12716 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12717 * typeprint.c (typedef_print): Ditto.
12718 * utils.c (fprintf_symbol_filtered): Ditto.
12719 * valops.c (value_cast, search_struct_field, value_slice): Delete
12720 obsolete code.
12721 (varying_to_slice): Delete function.
12722 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12723 (varying_to_slice): Delete declaration.
12724 * MAINTAINERS: Update.
12725
8bb2c122
MK
127262003-01-02 Mark Kettenis <kettenis@gnu.org>
12727
97bf5e38
MK
12728 * configure.in: Reorganize "Checks for library functions section"
12729 a bit. Remove check for `btowc' and `isascii' functions.
12730 * configure: Regenerated.
12731
5ee754fc
MK
12732 * acconfig.h (_MSE_INT_H): Remove.
12733 * configure.in: Create "Checks for header files" section, and move
12734 appropriate tests there. Don't check for objlist.h, wchar.h,
12735 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12736 misdetection fix. Also add "Checks for types", "Checks for
12737 compiler characteristics" and "Checks for library functions"
12738 sections.
12739 * config.in, configure: Regenerated.
12740
8bb2c122
MK
12741 * configure.in: Create "Checks for programs" section, and move
12742 appropriate tests there.
12743
9a156167
MK
127442003-01-01 Mark Kettenis <kettenis@gnu.org>
12745
12746 * configure.in: Create "Checks for libraries" section, and move
12747 appropriate tests there. Cleanup check for wctype in libw. Use
12748 AC_SEARCH_LIBS to see whether we need libsocket.
12749 * configure: Regenerated.
12750
a80e2bcb 12751For older changes see ChangeLog-2002
c906108c
SS
12752\f
12753Local Variables:
12754mode: change-log
12755left-margin: 8
12756fill-column: 74
12757version-control: never
12758End:
This page took 1.093502 seconds and 4 git commands to generate.