* x86-64-tdep.c (x86_64_store_return_value): Don't use
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ae53de43
MK
12003-10-06 Mark Kettenis <kettenis@gnu.org>
2
3 * x86-64-tdep.c (x86_64_store_return_value): Don't use
4 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
5 names for return values. This fixes a bug since we looked at %rbx
6 instead of %rdx.
7
473f17b0
MK
82003-10-05 Mark Kettenis <kettenis@gnu.org>
9
2c261fae
MK
10 * x86-64-tdep.c: Include "regset.h".
11
473f17b0
MK
12 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
13 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
14 sizeof_fpregset.
15 * i386-tdep.c: Include "regset.h".
16 (i386_supply_gregset): New function.
17 (i386_supply_fpregset): New function.
18 (i386_gdbarch_init): Initialze register set-related members of
19 TDEP.
20 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
21 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
22
afd48b75
AC
232003-10-03 Andrew Cagney <cagney@redhat.com>
24
25 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
26 set extract_return_value, store_return_value and
27 use_struct_convention to ppc64_sysv_abi_extract_return_value,
28 ppc64_sysv_abi_store_return_value and
29 ppc64_sysv_abi_use_struct_convention.
30 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
31 (ppc64_sysv_abi_store_return_value): Declare.
32 (ppc64_sysv_abi_use_struct_convention): Declare.
33 * ppc-sysv-tdep.c (enum return_value_convention): Define.
34 (ppc64_sysv_abi_extract_return_value): New function.
35 (ppc64_sysv_abi_store_return_value): New function.
36 (ppc64_sysv_abi_use_struct_convention): New function.
37 (ppc64_sysv_abi_return_value): New function.
38
9b540880
AC
392003-10-03 Andrew Cagney <cagney@redhat.com>
40
41 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
42 convert a descriptor to a function when it's in the ".opd"
43 section.
44
8748518b
CV
452003-10-03 Corinna Vinschen <vinschen@redhat.com>
46
47 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
48 reg_size to keep GCC silent.
49
0fd85043
CV
502003-10-03 Corinna Vinschen <vinschen@redhat.com>
51
52 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
53 base for DW_EH_PE_textrel encodings.
54 (read_encoded_value): Add a DW_EH_PE_textrel case.
55 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
56 section.
57
37b517aa
MK
582003-10-03 Mark Kettenis <kettenis@gnu.org>
59
60 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
61
12c266ea
AC
622003-10-02 Andrew Cagney <cagney@redhat.com>
63
64 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
65 REGISTER_RAW_SIZE.
66 * gdbarch.h, gdbarch.c: Re-generate.
67 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
68 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
69 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
70 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
71 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
72 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
73 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
74 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
75 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
76 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
77 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
78 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
79 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
80 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
81 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
82 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
83
78ba4af6
JB
842003-10-02 Jim Blandy <jimb@redhat.com>
85
86 * dwarf2read.c (struct die_info): Doc fix.
87
617daa0e
CV
882003-10-02 Corinna Vinschen <vinschen@redhat.com>
89
90 * sh-tdep.c: Running thru gdb_indent.sh.
91
e5e33cd9
CV
922003-10-02 Corinna Vinschen <vinschen@redhat.com>
93
94 * sh-tdep.c (sh_justify_value_in_reg): New function.
95 (sh_stack_allocsize): Ditto.
96 (flt_argreg_array): New array used for floating point argument
97 passing.
98 (sh_init_flt_argreg): New function.
99 (sh_next_flt_argreg): Ditto.
100 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
101 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
102 Fix argument passing strategy.
103 (sh_push_dummy_call_nofpu): Ditto.
104
5fe830e4
AC
1052003-10-01 Andrew Cagney <cagney@redhat.com>
106
107 * value.h (register_value_being_returned): Declare. Replace
108 "value_being_returned".
109 * infcall.c (call_function_by_hand): Use
110 register_value_being_returned.
111 * infcmd.c (print_return_value): Call
112 "register_value_being_returned", handle struct return locally.
113 * values.c (register_value_being_returned): New function. Replace
114 "value_being_returned".
115
1162003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
117
118 * linux-proc.c (linux_do_registers): New function.
119 (linux_make_note_section): Use linux_do_registers in case of
120 single threaded inferior programs.
121
64f395bf
AC
1222003-10-01 Andrew Cagney <cagney@redhat.com>
123
124 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
125 use STRUCT_ADDR. When not using "struct return convention", pass
126 "0" to "value_being_returned". Add FIXMEs.
127 * infcmd.c (print_return_value): Pass an explicit 0/1 to
128 value_being_returned. Add comments.
129 * values.c (value_being_returned): Add fixme.
130 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
131 (hppa_value_returned_from_stack): Add FIXME.
132
639d11d3
DC
1332003-09-30 David Carlton <carlton@kealia.com>
134
135 * dwarf2read.c (struct die_info): Add 'parent' field; replace
136 'has_children' and 'next' by 'child' and 'sibling'.
137 (read_comp_unit): Rework algorithm, breaking body into
138 read_die_and_children and read_die_and_siblings.
139 (read_die_and_children, read_die_and_siblings): New.
140 (read_full_die): Add 'has_children' argument; set it instead of
141 the die's 'has_children' field. Minor formatting cleanup.
142 (free_die_list): Use die->child and die->sibling instead of
143 die->next.
144 (dump_die_list): Ditto.
145 (sibling_die): Use die->sibling.
146 (psymtab_to_symtab_1): Use die's 'child' field in place of its
147 'has_children' and 'next' fields.
148 (process_die, read_file_scope, read_func_scope)
149 (read_lexical_block_scope, read_structure_scope)
150 (read_enumeration, read_array_type, read_common_block)
151 (read_namespace, read_subroutine_type, dump_die): Ditto.
152
5bffac25
AC
1532003-09-30 Andrew Cagney <cagney@redhat.com>
154
155 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
156 to 224, not 220.
157
f30992d4
AC
1582003-09-30 Andrew Cagney <cagney@redhat.com>
159
160 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
161 REGISTER_VIRTUAL_SIZE.
162 * gdbarch.h, gdbarch.c: Regenerate.
163 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
164 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
165 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
166
2e092625
AC
1672003-09-29 Andrew Cagney <cagney@redhat.com>
168
169 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
170 DEPRECATED_REGISTER_VIRTUAL_TYPE.
171 * gdbarch.h, gdbarch.c: Regenerate.
172 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
173 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
174
175 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
176 * remote-vxmips.c (vx_read_register): Ditto.
177 * remote-vx68.c (vx_read_register): Ditto.
178 * gnu-nat.c (inf_validate_procs): Ditto.
179
7a5dd6ee
JB
1802003-09-29 J. Brobecker <brobecker@gnat.com>
181
182 * infcall.c (call_function_by_hand): Fix build failure
183 introduced in the previous change to this file.
184
1fe43d45
AC
1852003-09-29 Andrew Cagney <cagney@redhat.com>
186
187 * NEWS: Mention Objective-C.
188
e28a332c
JG
1892003-09-29 Jerome Guitton <guitton@act-europe.fr>
190
191 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
192 test if the register has been saved on the stack.
193 (arm_scan_prologue_cache): When analysing the instruction
194 "str lr, [sp, #-4]", save the address where lr has been stored.
195
9ff63c35
AC
1962003-09-28 Andrew Cagney <cagney@redhat.com>
197
7f5f525d
AC
198 * frame.c (frame_read_unsigned_register): Delete function.
199 * frame.h (frame_read_unsigned_register): Delete declaration.
200 * sparc-tdep.c (sparc_init_extra_frame_info): Use
201 get_frame_register_unsigned.
202 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
203 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
204 * d10v-tdep.c (d10v_print_registers_info): Ditto.
205
206 * frame.h (frame_read_register): Delete declaration.
207 * frame.c (frame_read_register): Delete function.
208 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
209 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
210 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
211 * mips-tdep.c (mips_register_to_value): Ditto.
212 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
213 * d10v-tdep.c (d10v_print_registers_info): Ditto.
214
215 * frame.c (frame_read_signed_register): Delete function.
216 (frame_read_unsigned_register): Update comments.
217 * frame.h (frame_read_signed_register): Delete declaration.
218 * h8300-tdep.c (h8300_print_register): Use
219 get_frame_register_signed.
220 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
221
9ff63c35
AC
222 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
223 Rename VALUE_RETURNED_FROM_STACK.
224 * infcmd.c (print_return_value): Update.
225 * infcall.c (call_function_by_hand): Update.
226
41d041d6
MK
2272003-09-28 Mark Kettenis <kettenis@gnu.org>
228
229 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
230 regcache argument and reverse the order of the other two
231 arguments. Remove local regcache variable. Determine
232 architecture from REGCACHE. Update comments.
233 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
234 reverse the order of the other two arguments. Remove local
235 regcache variable. Determine architecture from REGCACHE. Update
236 comments.
237 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
238 prototypes. Update comments.
239 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
240 comment.
241 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
242 Update.
243 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
244 * i386-interix-nat.c (supply_fpregset): Update.
245 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
246 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
247 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
248 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
249 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
250 Update.
251 * i386obsd-tdep.c (fetch_core_registers): Update.
252 * i386v4-nat.c (supply_fpregset): Update.
253 * x86-64-linux-nat.c (supply_fpregset): Update.
254 * x86-64-linux-tdep.c (fetch_core_registers): Update.
255
1cb97e17
MK
2562003-09-27 Mark Kettenis <kettenis@gnu.org>
257
5716833c
MK
258 * i386-tdep.h: Put opaque declarations in alphabetical
259 order. Remove spurious whitespace.
260 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
261 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
262 * i386-tdep.c (MM0_REGNUM): Remove define.
263 (i386_mmx_regnum_p): Add gdbarch argument.
264 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
265 Rewrite using new macro definitions for FPU/SSE registers.
266 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
267 definitions from i387-tdep.h.
268 (i386_register_name): Update.
269 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
270 new macro definitions for FPU/SSE registers.
271 (i386_extract_return_value): Determine whether floating-point
272 registers are present by examining REGCACHE's architecture.
273 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
274 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
275 FPU/SSE registers.
276 (i386_register_type): Update.
277 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
278 definitions for FPU registers. Use REGCACHE's architecture to
279 determine the appropriate register numbers.
280 (i386_pseudo_register_read, i386_pseudo_register_write,
281 i386_register_reggroup_p): Update.
282 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
283 TDEP->mm0_regnum.
284 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
285 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
286 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
287 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
288 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
289 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
290 *' to `void *'.
291 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
292 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
293 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
294 definitions for FPU/SSE registers.
295 (FXSAVE_MXCSR_ADDR): New define.
296 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
297 TDEP->mm0_regnum.
298 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
299 (I387_ST0_REGNUM): Define.
300
41d35cb0
MK
301 * regcache.h (get_regcache_arch): New prototype.
302 * regcache.c (get_regcache_arch): New function.
303
54e74f72
MK
304 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
305 whitespace.
306
1cb97e17
MK
307 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
308 Initialize using ARRAY_SIZE.
309
0968aa8c
AC
3102003-09-27 Andrew Cagney <cagney@redhat.com>
311
312 * arch-utils.c (deprecated_init_frame_pc_default): Rename
313 "init_frame_pc_default".
314 * arch-utils.h (deprecated_init_frame_pc_default): Update.
315 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
316 * vax-tdep.c (vax_gdbarch_init): Update.
317 * v850-tdep.c (v850_gdbarch_init): Update.
318 * sh64-tdep.c (sh64_gdbarch_init): Update.
319 * s390-tdep.c (s390_gdbarch_init): Update.
320 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
321 * mcore-tdep.c (mcore_gdbarch_init): Update.
322 * h8300-tdep.c (h8300_gdbarch_init): Update.
323 * cris-tdep.c (cris_gdbarch_init): Update.
324 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
325
54c84734
MK
3262003-09-26 Mark Kettenis <kettenis@gnu.org>
327
328 * regset.h: New file.
329 * Makefile.in (regset_h): Add.
330
1b1d3794
AC
3312003-09-25 Andrew Cagney <cagney@redhat.com>
332
333 * frame.h (deprecated_frame_saved_regs): Rename
334 get_frame_saved_regs.
335 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
336 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
337 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
338 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
339 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
340
e6beb428
AC
3412003-09-25 Andrew Cagney <cagney@redhat.com>
342
343 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
344 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
345 and Java.
346 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
347 arm*-*-* do not use the new frame code.
348
710122da
DC
3492003-09-25 David Carlton <carlton@kealia.com>
350
351 * c-exp.y: Remove 'register' declarations.
352 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
353
79c2c32d
DC
3542003-09-25 David Carlton <carlton@kealia.com>
355
356 * c-exp.y: Include cp-support.h. Add qualified_type.
357 (yylex): Delete nested type hack; add comments.
358 * cp-namespace.c (cp_lookup_nested_type): New function.
359 * cp-support.h: Declare cp_lookup_nested_type.
360 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
361 instead of value_struct_elt_for_reference.
362 * valops.c: Include cp-support.h.
363 (value_aggregate_elt): New function.
364 (value_namespace_elt): Ditto.
365 (value_struct_elt_for_reference): Make static.
366 * value.h: Delete declaration of value_struct_elt_for_reference;
367 add declaration for value_aggregate_elt.
368 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
369 (valops.o): Ditto.
370
898c62f5
DJ
3712003-09-25 Daniel Jacobowitz <drow@mvista.com>
372
373 * stack.c: Include "reggroups.h".
374 (frame_info): Only display registers in all_reggroup.
375 * Makefile.in (stack.o): Update dependencies.
376
28cd8767
JG
3772003-09-25 Jerome Guitton <guitton@act-europe.fr>
378
379 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
380 "add ip, sp #n" in the prologue.
381 (arm_scan_prologue): Ditto.
382
a4ab2b5d
JG
3832003-09-25 Jerome Guitton <guitton@act-europe.fr>
384
385 * MAINTAINERS (write after approval): Add myself.
386
3f244638
AS
3872003-09-25 Andreas Schwab <schwab@suse.de>
388
389 * m68k-tdep.c: Include "dwarf2-frame.h".
390 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
391 * Makefile.in (m68k-tdep.o): Update dependencies.
392
1c0159e0
CV
3932003-09-25 Corinna Vinschen <vinschen@redhat.com>
394
395 * sh-tdep.c (struct frame_extra_info): Remove.
396 (struct sh_frame_cache): New structure.
397 (GET_SOURCE_REG): New macro extracting source register of an opcode.
398 (GET_TARGET_REG): Ditto but target register.
399 (GET_PUSHED_REG): Remove.
400 (IS_MOV_ARG_TO_REG): New macro.
401 (IS_MOV_ARG_TO_IND_R14): New macro.
402 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
403 (IS_MOVW_PCREL_TO_REG): New macro.
404 (IS_MOVL_PCREL_TO_REG): New macro.
405 (IS_SUB_REG_FROM_SP): New macro.
406 (IS_ARG_MOV): Remove.
407 (IS_MOV_TO_R14): Remove.
408 (IS_RESTORE_FP): New macro.
409 (IS_RTS): New macro.
410 (IS_LDS): New macro.
411 (IS_MOV_FP_SP): New macro.
412 (IS_ADD_REG_TO_FP): New macro.
413 (IS_ADD_IMM_FP): New macro.
414 (sh_skip_prologue_hard_way): Remove.
415 (sh_saved_pc_after_call): Remove.
416 (sh_frame_chain): Remove.
417 (sh_find_callers_reg): Remove.
418 (sh_nofp_frame_init_saved_regs): Remove.
419 (sh_fp_frame_init_saved_regs): Remove.
420 (sh_init_extra_frame_info): Remove.
421 (sh_analyze_prologue): New function.
422 (sh_skip_prologue): Remove deprecated code. Rely on new function
423 sh_analyze_prologue when after_prologue fails.
424 (sh_frame_saved_pc): Remove.
425 (sh_alloc_frame_cache): New function.
426 (sh_frame_cache): Ditto.
427 (sh_frame_prev_register): Ditto.
428 (sh_frame_this_id): Ditto.
429 (sh_frame_unwind): New structure defining the heuristic frame
430 sniffer interface.
431 (sh_frame_sniffer): New function.
432 (sh_unwind_sp): Ditto.
433 (sh_unwind_pc): Ditto.
434 (sh_unwind_dummy_id): Ditto.
435 (sh_frame_base_address): Ditto.
436 (sh_frame_base): New structure defining new frame base code.
437 (sh_in_function_epilogue_p): New function.
438 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
439 code and to call all new code instead. Initialize dwarf2 and
440 heuristic frame sniffer.
441
5f9769d1
PH
4422003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
443
444 * parser-defs.h (struct exp_descriptor): New definition, containing
445 language-specific info for printing, prefixifying, dumping, and
446 evaluating expressions.
447 (exp_descriptor_standard): Declare new variable.
448 (print_subexp): Make global and declare here (from expprint.c).
449 (dump_subexp): Ditto.
450 (dump_subexp_body_standard): Declare.
451 (operator_length_standard): Declare.
452 (op_name_standard): Declare.
453 (print_subexp): Declare.
454 (print_subexp_standard): Declare.
455
456 * language.h (struct language_defn): Add la_exp_desc field to hold
457 pointer to table for language-specific operators.
458 Remove evaluate_exp field, which is now in struct exp_descriptor.
459
460 * parse.c (operator_length): Move most code to new
461 operator_length_standard function. Use language-specific information.
462 (operator_length_standard): New function taking most code from
463 operator_length.
464 (exp_descriptor_standard): New constant.
465
466 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
467 and OP_EXTENDED_LAST.
468
469 * expprint.c (print_subexp): Use language-specific print_subexp.
470 Make global; remove static declaration.
471 Move most code to print_subexp_standard.
472 (print_subexp_standard): New function, containing code formerly in
473 print_subexp.
474 (op_name): Add expression to argument signature.
475 Use langauge-specific op_name.
476 Move most code to op_name_standard.
477 (op_name_standard): New function, containing code formerly in op_name.
478 (dump_subexp): Use new version of op_name function.
479 Use language-specific dump_subexp_body, and move most existing code to
480 dump_subexp_body_standard.
481 (dump_raw_expression): Use new op_name interface.
482 (dump_subexp_body): Move most code to dump_subexp_body_standard.
483 (dump_subexp_body_standard): New function, containing code formerly
484 in dump_subexp_body.
485
486 * language.c (unknown_language): Add default la_exp_desc field and
487 remove evaluate_exp field.
488 (auto_language): Ditto.
489 (local_language): Ditto.
490 * f-lang.c (f_language_defn): Ditto.
491 * c-lang.c (c_language_defn): Ditto.
492 (cplus_language_defn): Ditto.
493 (asm_language_defn): Ditto.
494 (minimal_language_defn): Ditto.
495 * p-lang.c (pascal_language_defn): Ditto.
496 * m2-lang.c (m2_language_defn): Ditto.
497 * objc-lang.c (objc_language_defn): Ditto.
498
499 * jv-lang.c (exp_descriptor_java): New variable, containing
500 Java-specific expression evaluator.
501 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
502 field.
503 * scm-lang.c (exp_descriptor_scm): New variable, containing
504 Scheme-specific expression evaluator.
505 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
506 field.
507 * objc-lang.c (print_object_command): Take evaluate_exp from the
508 la_exp_desc field.
509
510 * Makefile.in (eval.o): Add dependency on parser-defs.h.
511
512 * eval.c: Include parser-defs.h for the full declaration of
513 la_exp_desc's type.
514 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
515
24daaebc
PH
5162003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
517
518 * parser-defs.h (operator_length): Declare.
519
520 * parse.c (length_of_subexp): Use operator_length to get operator
521 lengths and arities for operators.
522 Move most code to new operator_length function.
523 (operator_length): New function absorbing most code from
524 length_of_subexp.
525 (prefixify_subexp): Remove large case and use operator_length instead.
526 (parse_exp_1): Use renamings:
527 dump_prefix_expression => dump_raw_expression and
528 dump_postfix_expression => dump_prefix_expression.
529
530 * expression.h (dump_prefix_expression): Rename to ...
531 (dump_raw_expression): New name.
532 (dump_postfix_expression): Rename to ...
533 (dump_prefix_expression): New name.
534
535 * expprint.c (dump_subexp): Make global. Add comment.
536 Move most existing code to dump_subexp_body.
537 (dump_subexp_body): New function.
538 (dump_prefix_expression): Rename to dump_raw_expression.
539 Remove attempt to print the expression via print_expression: it can't
540 work before the expression is prefixified.
541 (dump_raw_expression): Renamed from dump_prefix_expression.
542 (dump_postfix_expression): Rename to dump_prefix_expression, since
543 that's what it does.
544 Remove 'note' parameter, since this routine must be used on
545 prefixified expression.
546 (dump_prefix_expression): Renamed from dump_postfix_expression.
547
8c2957c4
JB
5482003-09-22 Jim Blandy <jimb@redhat.com>
549
550 * dwarf2read.c (read_array_type): When building the type for an
551 array of unspecified length, make sure to choose the upper bound
552 so that the array's total length comes out to be zero --- that's
553 how we represent such arrays.
554
592e3010
MC
5552003-09-22 Michael Chastain <mec@shout.net>
556
557 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
558
365c70b1
JJ
5592003-09-22 Jeff Johnston <jjohnstn@redhat.com>
560
561 * top.c (quit_force): Fix indirect call to quit_target so
562 a struct qt_args pointer is passed.
563
5d6eb653
AC
5642003-09-22 Andrew Cagney <cagney@redhat.com>
565
566 * arch-utils.h (init_frame_pc_noop): Delete declaration.
567 * arch-utils.c (init_frame_pc_noop): Delete function.
568 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
569 "init_frame_pc".
570 * mips-tdep.c (mips_gdbarch_init): Ditto.
571 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
572 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
573 declaration.
574 (DEPRECATED_INIT_FRAME_PC): Delete macro.
575 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
576 declaration.
577 (DEPRECATED_INIT_FRAME_PC): Delete macro.
578
b222a67f
AG
5792003-09-22 Anthony Green <green@redhat.com>
580
581 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
582 declaration.
583
d5b5ac79
AC
5842003-09-20 Andrew Cagney <cagney@redhat.com>
585
deafb061
AC
586 * breakpoint.c: Eliminate ARGSUSED.
587 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
588 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
589 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
590 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
591 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
592 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
593 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
594 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
595 * wince.c, remote-vx.c: Ditto.
596
d5b5ac79
AC
597 * cli/cli-script.c: Remove "register" attributes.
598 * config/pa/tm-hppa.h: Ditto.
599 * cli/cli-decode.c: Ditto.
600 * cli/cli-cmds.c: Ditto.
601
c6316faa
AC
6022003-09-19 Andrew Cagney <cagney@redhat.com>
603
604 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
605 DEPRECATED_NPC_REGNUM.
606 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
607
f4f99b11
CF
6082003-09-19 Christopher Faylor <cgf@redhat.com>
609
610 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
611
1708f284
JB
6122003-09-19 Jim Blandy <jimb@redhat.com>
613
614 * macrotab.c (macro_include): Use the correct comparison to find
615 the appropriate place for this inclusion in the list.
616
b9fbf434
AC
6172003-09-19 Andrew Cagney <cagney@redhat.com>
618
619 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
620 (DEPRECATED_HPUX_TEXT_END): Define.
621 (deprecated_hpux_text_end): Declare.
622 (struct target_ops): Declare opaque.
623 * hppah-nat.c (text_end): Make static.
624 (deprecated_hpux_text_end): New function.
625 * exec.c (text_end): Delete global variable.
626 (NEED_TEXT_START_END): Do not define.
627 (exec_file_attach): Replace code computing "text_end" code with
628 call to DEPRECATED_HPUX_TEXT_END.
629
5b03f266
AC
6302003-09-19 Andrew Cagney <cagney@redhat.com>
631
632 * utils.c (align_up, align_down): New functions.
633 * defs.h (align_up, align_down): Declare.
634 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
635 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
636 and "align_down".
637 (round_up, round_down): Delete functions.
638 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
639 "align_down".
640 (ROUND_DOWN, ROUND_UP): Delete macros.
641 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
642 * h8300-tdep.c: Replace "round_up" and "round_down" with
643 "align_up" and "align_down".
644 (round_up, round_down): Delete macros.
645 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
646 "align_down".
647 (ROUND_UP, ROUND_DOWN): Delete macros.
648
51db5742
JB
6492003-09-18 J. Brobecker <brobecker@gnat.com>
650
651 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
652 hard-coded constant. Use the proper machine name instead.
653
77949794
AC
6542003-09-17 Andrew Cagney <cagney@redhat.com>
655
656 * sparc-tdep.c (legacy_register_name): Delete function.
657 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
658 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
659 * infcmd.c (gdb_register_name): Delete variable.
660 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
661 REGISTER_NAME and "tm.h".
662 * gdbarch.h, gdbarch.c: Regenerate.
663 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
664 REGISTER_NAMES in comments.
665 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
666 * m68klinux-nat.c (regmap): Ditto.
667
b55c33cc
JB
6682003-09-17 Jim Blandy <jimb@redhat.com>
669
670 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
671
957e27ac
AC
6722003-09-17 Andrew Cagney <cagney@redhat.com>
673
674 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
675 (ppcnbsd_init_abi): Set "use_struct_convention" to
676 "ppcnbsd_use_struct_convention".
677
192cb3d4
MK
6782003-09-17 Mark Kettenis <kettenis@gnu.org>
679
680 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
681 * gdbarch.h, gdbarch.c: Regenerate.
682 (stabs_argument_has_addr): New architecture method.
683 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
684 * arch-utils.c: Include "buildsym.h".
685 (default_stabs_argument_has_addr): New function.
686 * stabsread.c (define_symbol): Use stabs_argument_has_addr
687 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
688
efe59759
AC
6892003-09-17 Andrew Cagney <cagney@redhat.com>
690
691 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
692 * gdbarch.h, gdbarch.c: Regenerate.
693 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
694 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
695 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
696 * sparcnbsd-tdep.c: Update.
697
62700349
AC
6982003-09-17 Andrew Cagney <cagney@redhat.com>
699
700 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
701 * gdbarch.h, gdbarch.c: Regenerate.
702 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
703 * d10v-tdep.c, frame.c: Update.
704 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
705 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
706 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
707 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
708 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
709 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
710 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
711 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
712 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
713 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
714 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
715 * config/pa/nm-hppah.h: Update.
716
b9ff3018
AC
7172003-09-16 Andrew Cagney <cagney@redhat.com>
718
719 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
720 "use_struct_convention" to "ppc_linux_use_struct_convention".
721 (ppc_linux_use_struct_convention): New function.
722 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
723 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
724 "rs6000_use_struct_convention".
725 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
726 declaration.
727 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
728 Delete function.
729
aa1ee363
AC
7302003-09-16 Andrew Cagney <cagney@redhat.com>
731
732 * buildsym.c: Remove more occurances of "register".
733 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
734 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
735 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
736 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
737 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
738 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
739 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
740 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
741
f2ea0907
CV
7422003-09-16 Corinna Vinschen <vinschen@redhat.com>
743
744 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
745 numbers to enumeration values.
746 * sh-tdep.c: Accomodate above change.
747 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
748 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
749 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
750 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
751 (IS_FPUSH): Rename from IS_FMOV.
752 (sh_extract_struct_value_address): Remove useless comment.
753 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
754 instead of own local values.
755 (sh_dump_tdep): Remove.
756 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
757 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
758
1c704f11
AC
7592003-09-15 Andrew Cagney <cagney@redhat.com>
760
761 * doublest.c (convert_floatformat_to_doublest): No longer need to
762 cast "exp_bias" to an int. Reverts 2002-12-04 change.
763
ac79b88b
DJ
7642003-09-15 Daniel Jacobowitz <drow@mvista.com>
765
766 * values.c (unpack_double): Call floatformat_is_valid.
767
1c671366
MK
7682003-09-15 Mark Kettenis <kettenis@gnu.org>
769
de5227fb
MK
770 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
771 ps_strings into a long.
772
1c671366
MK
773 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
774 _initialize_am64fbsd_nat.
775
a604369a
KB
7762003-09-15 Kevin Buettner <kevinb@redhat.com>
777
778 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
779 associated with DW_AT_ranges attribute is out of bounds.
780
b3cacbee
DL
7812003-09-15 David Lecomber <dsl@sources.redhat.com>
782
783 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
784
d0f37bb2
MC
7852003-09-14 Michael Chastain <mec@shout.net>
786
787 * config/m68k/nm-apollo68v.h: Delete.
788 * config/m68k/xm-apollo68v.h: Delete.
789
69517000
AC
7902003-09-14 Andrew Cagney <cagney@redhat.com>
791
792 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
793 * dcache.c: Update copyrights and descriptions.
794 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
795
ef8b349d
AC
7962003-09-14 Andrew Cagney <cagney@redhat.com>
797
798 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
799 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
800
52f0bd74
AC
8012003-09-14 Andrew Cagney <cagney@redhat.com>
802
803 * alpha-nat.c: Remove some occurances of "register".
804 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
805 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
806 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
807 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
808 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
809 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
810 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
811 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
812 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
813 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
814 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
815 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
816 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
817 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
818 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
819 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
820 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
821 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
822 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
823 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
824 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
825 * values.c, vax-tdep.c, xcoffread.c: Ditto.
826
4a4b3fed
AC
8272003-09-13 Andrew Cagney <cagney@redhat.com>
828
829 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
830 * ppc-tdep.h (struct regcache): Declare opaque.
831 * objfiles.h (struct objfile_data): Declare opaque.
832 * cp-support.h (struct objfile): Declare opaque.
833 * linux-nat.h (target_waitstatus): Declare opaque.
834
2110b94f
MK
8352003-09-14 Mark Kettenis <kettenis@gnu.org>
836
1c671366
MK
837 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
838 (stabs_argument_has_addr): New architecture method.
839 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
840 * arch-utils.c: Include "buildsym.h".
841 (default_stabs_argument_has_addr): New function.
842 * stabsread.c (define_symbol): Use stabs_argument_has_addr
843 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
844
2110b94f
MK
845 * cris-tdep.c (cris_gdbarch_init): Set
846 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
847 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
848 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
849 * mips-tdep.c (mips_gdbarch_init): Likewise.
850 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
851 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
852
48436ce6
AC
8532003-09-13 Andrew Cagney <cagney@redhat.com>
854
855 * values.c (using_struct_return): Delete "function" and "funcaddr"
856 parameters.
857 * value.h (using_struct_return): Update declaration.
858 * infcmd.c (finish_command_continuation): Update.
859 (finish_command): Update.
860 * infcall.c (call_function_by_hand): Update.
861 * eval.c (evaluate_subexp_standard): Update.
862
403d9909
CF
8632003-09-13 Christopher Faylor <cgf@redhat.com>
864
865 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
866 SSE registers since gdb will not operate correctly without this.
867 Restore include file ordering munged in previous change.
868 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
869
ebf7d56b
MK
8702003-09-13 Mark Kettenis <kettenis@gnu.org>
871
8e823e25
MK
872 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
873 REG_STRUCT_HAS_ADDR.
874 * gdbarch.c, gdbarch.h: Updated.
875 * infcall.c (call_function_by_hand): Update.
876 * stabsread.c (define_symbol): Updated.
877
ebf7d56b
MK
878 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
879
d3f13f72
CF
8802003-09-12 Christopher Faylor <cgf@redhat.com>
881
882 * win32-nat.c: Reorganize so that defines used by target headers are
883 actually defined by the system headers.
884 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
885 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
886
14f75137
JB
8872003-09-12 Jim Blandy <jimb@redhat.com>
888
d646061f
JB
889 * dbxread.c (read_dbx_symtab): Don't report an internal error if
890 the file has no .data, .bss, or .rodata sections. Instead wait
891 until we see a variable alleged to live in one of those sections.
892
2a13f9bc
JB
893 * dbxread.c (read_dbx_symtab): If we have no .data section and no
894 .bss section, presume that any variables we find live in the
895 .rodata section.
896
4f49b26b
JB
897 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
898 offsets for global and static variables.
899
14f75137
JB
900 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
901 symbol types are, by definition, in the .data section, so it is
902 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
903 If there is no .data section, there should be no N_DATA or N_DATA
904 | N_EXT symbols.
905
212c460c
MK
9062003-09-12 Mark Kettenis <kettenis@gnu.org>
907
908 * amd64fbsd-tdep.c: Fix sigtramp recognition.
909 (amd64fbsd_sigcontext_addr): Rewrite.
910 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
911 with correct values.
912 (amd64fbsd_sc_reg_offset): Initialize with correct values.
913 (amd64fbsd_init_abi): Fix typo.
914
68856ea3
AC
9152003-09-12 Andrew Cagney <cagney@redhat.com>
916
917 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
918 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
919
627b3ba2
AC
9202003-09-12 Andrew Cagney <cagney@redhat.com>
921
922 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
923 "entry_file_highpc". Update comments.
924 * defs.h (deprecated_inside_entry_file): Rename
925 "inside_entry_file".
926 * blockframe.c (deprecated_inside_entry_file): Rename
927 "inside_entry_file".
928 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
929 * vax-tdep.c (vax_frame_chain): Update.
930 * sh64-tdep.c (sh64_frame_chain): Update.
931 * sh-tdep.c (sh_frame_chain): Update.
932 * rs6000-tdep.c (rs6000_frame_chain): Update.
933 * ns32k-tdep.c (ns32k_frame_chain): Update.
934 * mips-tdep.c (mips_frame_chain): Update.
935 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
936 * m32r-tdep.c (m32r_frame_this_id): Update.
937 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
938 * frv-tdep.c (frv_frame_this_id): Update.
939 * d10v-tdep.c (d10v_frame_this_id): Update.
940 * cris-tdep.c (cris_frame_chain): Update.
941 * blockframe.c (legacy_frame_chain_valid): Update.
942 * avr-tdep.c (avr_frame_this_id): Update.
943 * arm-tdep.c (arm_prologue_this_id): Update.
944 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
945 * objfiles.c (objfile_relocate): Update.
946 * mipsread.c (mipscoff_symfile_read): Update.
947 (mipscoff_symfile_read): Update.
948 * mdebugread.c (parse_partial_symbols): Update.
949 * dwarfread.c (read_file_scope): Update.
950 * dwarf2read.c (read_file_scope): Update.
951 * dbxread.c (read_dbx_symtab): Update.
952 (read_dbx_symtab): Update.
953 * coffread.c (complete_symtab): Update.
954
b0abbc58
JJ
9552003-09-12 Jeff Johnston <jjohnstn@redhat.com>
956
957 * top.c (quit_target): New static helper function.
958 (quit_force): Moved code to quit_target(). Call quit_target()
959 via catch_errors() to catch errors during quit.
960
a1632d59
DC
9612003-09-11 David Carlton <carlton@kealia.com>
962
963 * buildsym.c (finish_block): Use allocate_block to allocate the
964 block.
965 * mdebugread.c (new_block): Add FIXME.
966
5c4e30ca
DC
9672003-09-11 David Carlton <carlton@kealia.com>
968
969 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
970 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
971 (recursive_dump_type): Ditto.
972 * printcmd.c (print_formatted): Ditto.
973 * typeprint.c (print_type_scalar): Ditto.
974 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
975 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
976 * cp-support.h: Declare cp_check_possible_namespace_symbols,
977 maint_cplus_cmd_list.
978 * cp-support.c: Make maint_cplus_cmd_list extern.
979 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
980 command.h.
981 (lookup_symbol_file): Look in possible namespace blocks when
982 appropriate.
983 (initialize_namespace_symtab): New.
984 (get_possible_namespace_block, free_namespace_block)
985 (check_possible_namespace_symbols)
986 (check_possible_namespace_symbols_loop)
987 (check_one_possible_namespace_symbol)
988 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
989 (_initialize_cp_namespace): Ditto.
990 * block.h: Declare allocate_block.
991 * block.c (allocate_block): New.
992 * jv-lang.c (get_java_class_symtab): Allocate blocks via
993 allocate_block.
994 * symfile.h: Update declaration of add_psymbol_to_list.
995 * symfile.c (add_psymbol_to_list): Return the partial symbol in
996 question.
997 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
998 scan_partial_symbols_call.
999 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1000 helper functions.
1001 (add_partial_symbol): If necessary, scan mangled names for names
1002 of namespaces.
1003 (add_partial_namespace): Add NAMESPACE argument; generate partial
1004 symbols associated to namespaces.
1005 (add_partial_enumeration): Add NAMESPACE argument.
1006 (new_symbol): Allow namespace syms.
1007 (read_namespace): Generate namespace syms.
1008 * objfiles.h: Add opaque declaration of struct symtab.
1009 (struct objfile): Add cp_namespace_symtab member.
1010 * objfiles.c (allocate_objfile): Set
1011 objfile->cp_namespace_symtab.
1012 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1013 dictionary_h, command_h.
1014
33a7c2fc
AC
10152003-09-11 Andrew Cagney <cagney@redhat.com>
1016
1017 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1018 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1019 near the function's end.
1020 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1021 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1022 regcache_raw_write_signed to set SP_REGNUM.
1023
63cd24fe
EZ
10242003-09-11 Elena Zannoni <ezannoni@redhat.com>
1025
1026 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1027 orig_addrs is set up properly.
1028
f27dd7fd
AC
10292003-09-11 Andrew Cagney <cagney@redhat.com>
1030
1031 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1032 * gdbarch.h, gdbarch.c: Re-generate.
1033 * infcall.c (call_function_by_hand): Update.
1034 * hppa-tdep.c (hppa_push_arguments): Update.
1035 * ada-lang.c (place_on_stack): Update.
1036 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1037 * sparc-tdep.c (sparc_gdbarch_init): Update.
1038 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1039 * hppa-tdep.c (hppa_gdbarch_init): Update.
1040 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1041 stack_align.
1042
f630a401
DJ
10432003-09-11 Daniel Jacobowitz <drow@mvista.com>
1044
1045 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1046 register do need a frame.
1047
0ddabb4c
AC
10482003-09-11 Andrew Cagney <cagney@redhat.com>
1049
1050 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1051 buildable since GDB 5.0.
1052 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1053 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1054 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1055 * irix4-nat.c: Delete file.
1056 * config/mips/irix4.mh: Delete file.
1057 * config/mips/irix3.mh: Delete file.
1058 * config/mips/irix3.mt: Delete file.
1059 * config/mips/tm-irix3.h: Delete file.
1060 * config/mips/nm-irix3.h: Delete file.
1061 * config/mips/xm-irix3.h: Delete file.
1062 * config/mips/nm-irix4.h: Delete file.
1063 * config/mips/xm-irix4.h: Delete file.
1064 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1065
fde2cceb
JB
10662003-09-10 J. Brobecker <brobecker@gnat.com>
1067
1068 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1069 * Makefile.in (hppa-tdep.o): Update dependencies.
1070
66f667f5
JW
10712003-09-10 James E Wilson <wilson@specifixinc.com>
1072
ef5fd69f
JW
1073 * MAINTAINERS: Change my e-mail address. Move to paper trail
1074 section.
66f667f5 1075
53e8aaea
KB
10762003-09-10 Kevin Buettner <kevinb@redhat.com>
1077
1078 * MAINTAINERS (frv): New ISA entry.
1079
dcc6aaff
KB
10802003-09-10 Kevin Buettner <kevinb@redhat.com>
1081
1082 * frv-tdep.c (dis-asm.h): Include.
1083 * Makefile.in (frv-tdep.o): Update dependencies.
1084
932644f0
JJ
10852003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1086
1087 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1088 Fix typo for high range of floating registers.
1089
91c24f0a
DC
10902003-09-09 David Carlton <carlton@kealia.com>
1091
1092 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1093 highpc initialization here out of scan_partial_symbols.
1094 (scan_partial_symbols): Restructure into a recursive version,
1095 calling add_partial_namespace and add_partial_enumeration when
1096 appropriate.
1097 (add_partial_namespace): New.
1098 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1099
c9263853
AC
11002003-09-09 Andrew Cagney <cagney@redhat.com>
1101
e56a0ecc
AC
1102 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1103 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1104 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1105 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1106
794a477a
AC
1107 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1108 (rs6000_push_dummy_call): Set the "TOC" register.
1109
c9263853
AC
1110 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1111 methods "max_register_raw_size", "max_register_virtual_size" or
1112 "register_virtual_size".
1113
afa7d0b2
ILT
11142003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1115
1116 * MAINTAINERS: Update my e-mail address.
1117
7a41266b
AC
11182003-09-09 Andrew Cagney <cagney@redhat.com>
1119
1120 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1121 (rs6000_push_dummy_call): Store the struct return address.
1122 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1123
77b2b6d4
AC
11242003-09-09 Andrew Cagney <cagney@redhat.com>
1125
1126 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1127 "ppc_sysv_abi_push_arguments".
1128 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1129 "ppc_sysv_abi_push_arguments".
1130 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1131 instead of "push_arguments".
1132 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1133
e8a7b686
AC
11342003-09-09 Andrew Cagney <cagney@redhat.com>
1135
1136 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1137 instead of CALL_DUMMY_ADDRESS.
1138
f86f5ca3
PH
11392003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1140
1141 * p-lang.c: Eliminate "register".
1142 * c-lang.c: Ditto.
1143 * expprint.c: Ditto.
1144 * f-lang.c: Ditto.
1145 * jv-lang.c: Ditto.
1146 * language.c: Ditto.
1147 * m2-lang.c: Ditto.
1148 * parse.c: Ditto.
1149 * scm-lang.c: Ditto.
1150 * objc-lang.c: Ditto.
1151
83ee270e
NC
11522003-09-09 Nick Clifton <nickc@redhat.com>
1153
1154 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1155
a89aa300
AC
11562003-09-04 Andrew Cagney <cagney@redhat.com>
1157
1158 * avr-tdep.c: Include "dis-asm.h".
1159 * cris-tdep.c: Include "dis-asm.h".
1160 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1161 instead of corresponding typedef.
1162 * h8300-tdep.c: Include "dis-asm.h".
1163 * ia64-tdep.c: Include "dis-asm.h".
1164 * i386-tdep.c: Include "dis-asm.h".
1165 (i386_print_insn): Use "struct disassemble_info" instead of
1166 corresponding typedef.
1167 * m68k-tdep.c: Include "dis-asm.h".
1168 * mcore-tdep.c: Include "dis-asm.h".
1169 * mips-tdep.c: Include "dis-asm.h".
1170 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1171 instead of corresponding typedef.
1172 * ns32k-tdep.c: Include "dis-asm.h".
1173 * s390-tdep.c: Include "dis-asm.h".
1174 * sparc-tdep.c: Include "dis-asm.h".
1175 * vax-tdep.c: Include "dis-asm.h".
1176 * v850-tdep.c: Include "dis-asm.h".
1177 * mn10300-tdep.c: Include "dis-asm.h".
1178 * rs6000-tdep.c: Include "dis-asm.h".
1179 * xstormy16-tdep.c: Include "dis-asm.h".
1180 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1181 print_insn_xstormy16.
1182 * Makefile.in (v850-tdep.o): Update dependencies.
1183 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1184 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1185 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1186 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1187 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1188 (gdbarch_h): Remove $(dis_asm_h).
1189 * disasm.c: Include "dis-asm.h".
1190 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1191 corresponding typedef.
1192 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1193 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1194 * gdbarch.sh: Do not include "dis-asm.h".
1195 (struct disassemble_info): Declare opaque.
1196 (TARGET_PRINT_INSN): Update declaration.
1197 * gdbarch.h, gdbarch.c: Re-generate.
1198
88a82a65
AC
11992003-09-08 Andrew Cagney <cagney@redhat.com>
1200
1201 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1202 CALL_DUMMY_ADDRESS, change to a predicate.
1203 * gdbarch.h, gdbarch.c: Re-generate.
1204 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1205 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1206 * infcall.c (call_function_by_hand): Ditto.
1207 * sparc-tdep.c (sparc_push_return_address): Ditto.
1208 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1209 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1210 CALL_DUMMY_ADDRESS with entry_point_address.
1211 * v850-tdep.c (v850_push_return_address): Ditto.
1212 * s390-tdep.c (s390_push_return_address): Ditto.
1213 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1214 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1215 * mcore-tdep.c (mcore_push_return_address): Ditto.
1216 * cris-tdep.c (cris_push_return_address): Ditto.
1217 * arm-tdep.c (arm_push_return_address): Ditto.
1218
3e2c4033
AC
12192003-09-08 Andrew Cagney <cagney@redhat.com>
1220
1221 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1222 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1223 and REG_UNMODIFIED to REG_SAME_VALUE.
1224 (execute_cfa_program): Update.
1225 (dwarf2_frame_cache): Update. Initialize table to
1226 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1227 location.
1228 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1229
39efb398
AC
12302003-09-08 Andrew Cagney <cagney@redhat.com>
1231
1232 * gnu-nat.c: Remove "inline" function attribute.
1233 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1234
f5cb5aca
KB
12352003-09-08 Kevin Buettner <kevinb@redhat.com>
1236
1237 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1238 target.
1239
1cb761c7
KB
12402003-09-08 Kevin Buettner <kevinb@redhat.com>
1241
1242 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1243 (frame_extra_info): Rename this struct to frv_unwind_cache.
1244 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1245 Add fields ``prev_sp'' and ``base''.
1246 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1247 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1248 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1249 Delete.
1250 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1251 Revise all callers. Fill in the unwind cache argument and make
1252 other adjustments to account for new frame mechanisms.
1253 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1254 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1255 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1256 (frv_frame_unwind, frv_frame_base): New structs.
1257 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1258 additional arguments expected by this method and adjust function
1259 body accordingly.
1260 (frv_gdbarch_init): Remove calls to the following functions:
1261 set_gdbarch_deprecated_init_frame_pc(),
1262 set_gdbarch_deprecated_saved_pc_after_call(),
1263 set_gdbarch_deprecated_frame_chain(),
1264 set_gdbarch_deprecated_frame_saved_pc(),
1265 set_gdbarch_deprecated_frame_init_saved_regs(),
1266 set_gdbarch_deprecated_push_arguments(),
1267 set_gdbarch_deprecated_push_return_address(),
1268 set_gdbarch_deprecated_pop_frame(),
1269 set_gdbarch_deprecated_call_dummy_words(),
1270 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1271 set_gdbarch_deprecated_init_extra_frame_info(),
1272 set_gdbarch_deprecated_dummy_write_sp(), and
1273 set_gdbarch_deprecated_pc_in_call_dummy().
1274 Add calls to the following functions:
1275 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1276 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1277 frame_base_set_default().
1278 * Makefile.in (frv-tdep.o): Update dependencies.
1279
68f6cf99
MK
12802003-09-09 Mark Kettenis <kettenis@gnu.org>
1281
1282 * dwarf2-frame.c (read_encoded_value): Add support for
1283 DW_EH_PE_aligned encoding.
1284
73b65bb0
DJ
12852003-09-08 Daniel Jacobowitz <drow@mvista.com>
1286
1287 * infrun.c (normal_stop): Don't print a message if the inferior
1288 has exited.
1289
7c8a5605
JB
12902003-09-08 Jim Blandy <jimb@redhat.com>
1291
1292 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1293 * dbxread.c: #include "gdb_assert.h".
1294 (read_dbx_symtab): If the objfile has no .data section, use the
1295 section index for the .bss section instead.
1296
7dd88986
DJ
12972003-09-08 Daniel Jacobowitz <drow@mvista.com>
1298
1299 * frame.c (deprecated_safe_get_selected_frame): New function.
1300 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1301 * findvar.c (read_var_value): Call it.
1302
55ff77ac
CV
13032003-09-08 Corinna Vinschen <vinschen@redhat.com>
1304
1305 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1306 (sh64-tdep.o): Add dependencies.
1307 * configure.tgt: Add FIXME to sh-*-linux*.
1308 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1309 (sh_gdbarch_init): Always set correct sh_show_regs function
1310 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1311 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1312 * sh64-tdep.c: New file, containing all sh64 related code from
1313 sh-tdep.c.
1314 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1315 * config/sh/linux.mt (TDEPFILES): Ditto.
1316 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1317 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1318 * config/sh/wince.mt (TDEPFILES): Ditto.
1319
bfb39158
DJ
13202003-09-07 Daniel Jacobowitz <drow@mvista.com>
1321
1322 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1323 (stop_wait_callback): Handle !lp->signalled also.
1324 (lin_lwp_has_pending, flush_callback): New functions.
1325 (lin_lwp_wait): Call flush_callback.
1326 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1327 (linux_proc_pending_signals): New function.
1328 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1329
9407de8e
DJ
13302003-09-07 Daniel Jacobowitz <drow@mvista.com>
1331
1332 From Nick Kelsey <nickk@ubicom.com>:
1333 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1334 when the stop PC is at the beginning of a function also.
1335
2ef47cd0
DJ
13362003-09-06 Daniel Jacobowitz <drow@mvista.com>
1337
1338 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1339 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1340
6f4492c8
MK
13412003-09-06 Mark Kettenis <kettenis@gnu.org>
1342
1343 * sol-thread.c: Include "gdb_string.h".
1344
d3420b2f
MK
13452003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1346
1347 * gcore.c: Reorder include files in alphabetical order. Include
1348 "gdb_assert.h". Various coding style fixes.
1349 (derive_stack_segment, derive_heap_segment): Replace check for
1350 non-null BOTTOM and TOP with gdb_assert.
1351 (derive_heap_segment): Replace check for successful creation of
1352 ZERO with gdb_assert.
1353 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1354
5220ea4c
AC
13552003-09-04 Andrew Cagney <cagney@redhat.com>
1356
1357 * thread-db.c (verbose_dlsym): New function.
1358 (thread_db_load): Use verbose_dlsym
1359 (thread_db_new_objfile): Print that libthread_db was loaded, and
1360 that thread debugging was enabled.
1361
6e8c2c06
AC
13622003-09-04 Andrew Cagney <cagney@redhat.com>
1363
1364 * configure.tgt: Add "mips64*-*-*" target. Delete
1365 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1366 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1367 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1368 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1369 mips*-sony-*, and mips64*-*-elf* targets.
1370 * config/mips/embedl.mt: Delete file.
1371 * config/mips/embedl64.mt: Delete file.
1372 * config/mips/mips.mt: Delete file.
1373 * config/mips/mips64.mt: Delete file.
1374 * config/mips/tm-embed.h: Delete file.
1375 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1376 * config/mips/embed64.mt: Delete out-of-date comment.
1377
3a3bc038
AC
13782003-09-04 Andrew Cagney <cagney@redhat.com>
1379
1380 * hppa-tdep.c (hppa_gdbarch_init): Set
1381 "have_nonsteppable_watchpoint".
1382 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1383 * mips-tdep.c (mips_dump_tdep): Do not print
1384 HAVE_NONSTEPPABLE_WATCHPOINT.
1385 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1386 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1387 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1388 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1389
a957e642
CV
13902003-09-04 Corinna Vinschen <vinschen@redhat.com>
1391
1392 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1393 unused code. Add comment.
1394
a6fbcf2f
CV
13952003-09-04 Corinna Vinschen <vinschen@redhat.com>
1396
1397 * breakpoint.c (watchpoint_check): Check for pc being in an
1398 epilogue if watchpoint frame couldn't be found.
1399
c14a44d5
AC
14002003-09-04 Andrew Cagney <cagney@redhat.com>
1401
1402 * Makefile.in: Re-generate all dependencies.
1403
f6c40618
AC
14042003-09-03 Andrew Cagney <cagney@redhat.com>
1405
1406 * arch-utils.h (legacy_print_insn): Delete declaration.
1407 * arch-utils.c (legacy_print_insn): Delete function.
1408 * disasm.c (deprecated_tm_print_insn_info): Delete.
1409 (_initialize_disasm): Delete function, contained code initializing
1410 deprecated_tm_print_insn_info.
1411 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1412 (deprecated_tm_print_insn_info): Delete.
1413 (TARGET_PRINT_INSN): Do not provide a default.
1414 * gdbarch.h, gdbarch.c: Re-generate.
1415
242e8be5
AC
14162003-09-03 Andrew Cagney <cagney@redhat.com>
1417
1418 * disasm.c (fprintf_disasm): New function.
1419 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1420 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1421 reverts 2003-08-14 change.
1422 (_initialize_disasm): Call "init_disassemble_info", instead of
1423 INIT_DISASSEMBLE_INFO_NO_ARCH.
1424
3ffc3dda
MS
14252003-09-03 Michael Snyder <msnyder@redhat.com>
1426
1427 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1428
52d16ba8
AC
14292003-09-03 Andrew Cagney <cagney@redhat.com>
1430
1431 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1432 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1433 * symfile.c (syms_from_objfile): Update.
1434 (reread_symbols): `Update
1435 * exec.c (exec_file_attach): Update.
1436 (exec_file_attach): Update.
1437 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1438 2003-08-29 change.
1439 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1440
eb5492fa
DJ
14412003-09-03 Daniel Jacobowitz <drow@mvista.com>
1442
1443 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1444 trad-frame.h.
1445 (arm_get_cache): Delete macro.
1446 (struct arm_prologue_cache): Update comments. Make saved_regs into
1447 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1448 to prev_sp.
1449 (thumb_scan_prologue): Update for cache changes. Don't call
1450 DEPRECATED_PC_IN_CALL_DUMMY.
1451 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1452 argument and use it in desperation search for our prologue. Do not
1453 search past the specified PC.
1454 (arm_make_prologue_cache): Simplify.
1455
1456 (arm_prologue_this_id, arm_prologue_prev_register)
1457 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1458 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1459 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1460 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1461 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1462
1463 (arm_frame_chain_valid, arm_find_callers_reg)
1464 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1465 (arm_pop_frame): Delete obsolete methods.
1466 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1467
1468 (arm_gdbarch_init): Update for new frame methods. Register prologue
1469 and sigtramp unwinders. Set the default frame base method.
1470
1471 * Makefile.in (arm-tdep.o): Update dependencies.
1472 * varobj.c (find_frame_addr_in_frame_chain): Call
1473 get_frame_base_address.
1474 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1475
24de872b
DJ
14762003-09-03 Daniel Jacobowitz <drow@mvista.com>
1477
1478 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1479 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1480 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1481 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1482 Take NEXT_FRAME and CACHE arguments. Call
1483 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1484 Set unwound_pc in CACHE instead of modifying the frame argument.
1485 Don't bother checking the frame type when looking for sigtramp
1486 frames.
1487 (arm_make_prologue_cache, arm_frame_chain)
1488 (arm_init_extra_frame_info): New functions.
1489
9b8d791a
DJ
14902003-09-03 Daniel Jacobowitz <drow@mvista.com>
1491
1492 * arm-tdep.c (arm_get_cache): Define.
1493 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1494 unwound_sp, unwound_pc, and saved_regs.
1495 (thumb_scan_prologue): Take a cache instead of the frame.
1496 (arm_scan_prologue): Likewise.
1497 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1498 instead of a temporary frame.
1499 (arm_init_extra_frame_info): Allocate and use a cache.
1500 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1501
7ee3275f
AC
15022003-09-03 Andrew Cagney <cagney@redhat.com>
1503
1504 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1505 * config/mips/wince.mt (TM_CLIBS): Ditto.
1506 * config/sh/wince.mt (TM_CLIBS): Ditto.
1507 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1508 * config/sparc/sp64.mt (CC): Delete.
1509
57b29be7
AC
15102003-09-03 Andrew Cagney <cagney@redhat.com>
1511
1512 * defs.h: Do not include "arch-utils.h".
1513 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1514 GDB_MULTI_ARCH_PURE.
1515 * configure.in (GDB_MULTI_ARCH): Do not define.
1516 * configure, config.in: Regenerate.
1517 * configure.tgt: Do not set variable "gdb_multi_arch".
1518 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1519 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1520 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1521 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1522 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1523 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1524 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1525 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1526 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1527 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1528 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1529 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1530 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1531 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1532 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1533 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1534 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1535 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1536
12e035e2
MC
15372003-08-30 Michael Chastain <mec@shout.net>
1538
1539 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1540 * config/m68k/nm-hp300hpux.h: Delete.
1541 * config/m68k/tm-hp300hpux.h: Delete.
1542 * config/m68k/xm-hp300hpux.h: Delete.
1543 * config/m68k/xm-hp300bsd.h: Delete.
1544 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1545 tm-hp300hpux.h, xm-hp300hpux.h.
1546 * somsolib.c: Remove comment about hp300 shared libraries.
1547
bda34dc2
MK
15482003-08-31 Mark Kettenis <kettenis@gnu.org>
1549
5bca7895
MK
1550 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1551 Only define PTRACE_GET_THREAD_AREA is not already defined.
1552 Various style fixes in code and comments and some additional
1553 spelling fixes in comments. Move after functions dealing with
1554 debug registers.
1555 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1556 Fix coding-style.
1557
bda34dc2
MK
1558 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1559 frame_unwind_register_unsigned instead of
1560 frame_unwind_unsigned_register.
1561
c890192f
MK
15622003-08-30 Mark Kettenis <kettenis@gnu.org>
1563
1564 * configure.in: Search for gethostbyname in libnsl.
1565 * configure: Regenerated.
1566
60fac5b8
MK
15672003-08-29 Mark Kettenis <kettenis@gnu.org>
1568
e294916c
MK
1569 * configure.in: Remove redundant AC_MSG_RESULT in check for
1570 uintptr_t in stdint.h.
1571 * configure: Regenerated.
1572
c40d267a
MK
1573 * amd64-nat.h (struct regcache): Add opaque declaration.
1574
60fac5b8
MK
1575 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1576 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1577 Change "register array" to "register cache" in comments.
1578 (x86_64_linux_gregset64_reg_offset): New variable.
1579 (GETREGS_SUPPLIES): Remove macro.
1580 (supply_gregset): Call amd64_supply_native_gregset instead of
1581 x86_64_linux_supply_gregset.
1582 (fill_gregset): Rename `regno' to `regnum'. Call
1583 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1584 (store_regs): Rename `regno' to `regnum'.
1585 (store_fpregs): Rename `regno' to `regnum'.
1586 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1587 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1588 Reorganize function a bit.
1589 (store_inferior_registers): Rename `regno' to `regnum'. Use
1590 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1591 Reorganize function a bit.
1592 (_initialize_x86_64_linux_nat): New function.
1593 * config/i386/x86-64linux.mh.
1594
546143b6
AC
15952003-08-29 Andrew Cagney <cagney@redhat.com>
1596
1597 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1598 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1599 (target_remove_watchpoint): Delete macro.
1600 (target_insert_watchpoint): Delete macro.
1601 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1602 (remote_mips_stopped_by_watchpoint): Delete declaration.
1603 (remote_mips_remove_watchpoint): Delete declaration.
1604 (remote_mips_set_watchpoint): Delete declaration.
1605 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1606 * remote-mips.c (_initialize_remote_mips): Set
1607 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1608 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1609 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1610 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1611 (mips_stopped_by_watchpoint): Rename
1612 remote_mips_stopped_by_watchpoint.
1613 (mips_can_hardware_watchpoint): Rename
1614 remote_mips_can_use_hardware_watchpoint, update function
1615 signature.
1616
7bace51b
MK
16172003-08-29 Mark Kettenis <kettenis@gnu.org>
1618
b0f5c6f2
MK
1619 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1620 USER_DS. We haven't given them a register number yet.
1621
2a6d284d
MK
1622 * amd64-nat.h: New file.
1623 * amd64-nat.c: New file.
1624 * amd64fbsd-nat.c: Include "amd64-nat.h".
1625 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1626 (amd64fbsd32_r_reg_offset): New variable.
1627 (supply_gregset): Simply call amd64_supply_native_gregset.
1628 (fill_gregset): Rename `regno' to `regnum'. Simply call
1629 amd64_collect_native_gregset.
1630 (fill_fpregset): Rename `regno' to `regnum'.
1631 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1632 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1633 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1634 `fpregset_t'. Call amd64_supply_native_gregset instead of
1635 supply_gregset. Call x86_64_supply_fxsave instead of
1636 supply_fpregset.
1637 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1638 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1639 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1640 `fpregset_t'. Call amd64_collect_native_gregset instead of
1641 fill_gregset. Call x86_64_collect_fxsave instead of
1642 fill_fpregset.
1643 (_initialize_am64fbsd_nat): Initialize
1644 amd64_native_gregset32_reg_offset and
1645 amd64_native_gregset64_reg_offset.
1646 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1647
a16d75cc
MK
1648 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1649 null pointer. Fix typo in comment.
1650
7bace51b
MK
1651 * regcache.c (supply_register): Reimplement to call
1652 regcache_raw_supply.
1653 (regcache_collect): Reimplement by calling regcache_raw_collect.
1654
9a661b68
MK
16552003-08-28 Mark Kettenis <kettenis@gnu.org>
1656
1657 * regcache.c (register_buffer): Consitify first argument.
1658 (regcache_raw_supply, regcache_raw_collect): New
1659 functions.
1660
e94cc8fa
DJ
16612003-08-28 Daniel Jacobowitz <drow@mvista.com>
1662
1663 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1664 by Nathan J. Williams.
1665
c64bd0ce
DJ
16662003-08-28 Daniel Jacobowitz <drow@mvista.com>
1667
1668 * lin-lwp.c (wait_lwp): New function, copied from
1669 stop_wait_callback. Clean up.
1670 (stop_wait_callback): Use wait_lwp.
1671
e5ab0dce
AC
16722003-08-28 Andrew Cagney <cagney@redhat.com>
1673
1674 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1675 flavour and disassembler options.
1676 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1677 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1678 deprecated_tm_print_insn_info.
1679
a788de9b
AC
16802003-08-27 Andrew Cagney <cagney@redhat.com>
1681
1682 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1683 Use target_read_memory.
1684 (s390_get_frame_info): Update. Do not reference
1685 deprecated_tm_print_insn_info.
1686 (s390_check_function_end, s390_is_sigreturn): Ditto.
1687
36482093
AC
16882003-08-27 Andrew Cagney <cagney@redhat.com>
1689
1690 * Makefile.in (cris-tdep.o): Update dependencies.
1691 * cris-tdep.c: Include "gdb_assert.h".
1692 (cris_gdbarch_init): Set print_insn.
1693 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1694 (cris_delayed_get_disassembler): Simplify, directly call the
1695 disassembler returned by cris_get_disassembler.
1696 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1697 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1698 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1699 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1700 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1701 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1702 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1703 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1704 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1705 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1706 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1707 (gdb_print_insn_sparc): Delete function.
1708 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1709 deprecated_tm_print_insn_info.
1710 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1711 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1712 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1713 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1714 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1715 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1716 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1717 (s390_gdbarch_init): Set print_insn.
1718
0285512f
AC
17192003-08-27 Andrew Cagney <cagney@redhat.com>
1720
1721 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1722 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1723 * infcall.c (call_function_by_hand): Convert the entry point
1724 address into a code address.
1725
cdcd5552
AC
17262003-08-27 Andrew Cagney <cagney@redhat.com>
1727
1728 * dsrec.c: Include "gdb_string.h".
1729 * Makefile.in (dsrec.o): Update dependencies.
1730
e85cddad
MC
17312003-08-27 Michael Chastain <mec@shout.net>
1732
1733 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1734
8bbfbb23
AC
17352003-08-27 Andrew Cagney <cagney@redhat.com>
1736
1737 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1738 (alpha_osf1_init_abi): Do not set call_dummy_address.
1739
ba058b66
DC
17402003-08-27 David Carlton <carlton@kealia.com>
1741
1742 From Randolph Chung <tausq@debian.org>:
1743 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1744 compiles with -Wformat-nonliteral -Werror.
1745
87f84c9d
JB
17462003-08-26 Jim Blandy <jimb@redhat.com>
1747
1748 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1749 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1750 bfd_lookup_symbol, since we only want symbols in code sections.
1751 (look_for_base): Pass zero as the SECT_FLAGS argument to
1752 bfd_lookup_symbol, since we're not concerned about which section
1753 the symbol is in.
1754
102d615a
JJ
17552003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1756
1757 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1758 we are frameless or the return address register is already known.
1759
cc7ad3ea
AC
17602003-08-26 Andrew Cagney <cagney@redhat.com>
1761
1762 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1763 in size. Add comments.
1764
af8b88dd
JJ
17652003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1766
1767 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1768 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1769
e0a4f5a1
JM
17702003-08-26 Jason Merrill <jason@redhat.com>
1771
1772 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1773 case out of #ifdef MIPS block.
1774
4ae9ee8e
DJ
17752003-08-25 Daniel Jacobowitz <drow@mvista.com>
1776
1777 PR java/1322
1778 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1779 available before calling SECT_OFF_TEXT.
3c164570 1780 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1781
004d836a
JJ
17822003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1783
1784 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1785 bof, and nat0-nat127 as pseudo-registers.
1786 (ia64_frame_cache): New struct used to cache frame info.
1787 (ia64_register_reggroup_p): New routine used to override default
1788 register grouping so registers without names are still saved and
1789 restored.
1790 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1791 pseudo values.
1792 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1793 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1794 (ia64_alloc_frame_cache): New routine to create a new
1795 ia64_frame_cache.
1796 (examine_prologue): Change prototype to add next_frame pointer.
1797 Assume frameless until otherwise proven. Verify that the cfm for
1798 current frame matches the cfm that should occur for the prologues
1799 alloc insn and if equal, mark as not frameless. At end of routine,
1800 if not frameless, calculate registers for the previous frame and store
1801 in the cache, if a cache is provided.
1802 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1803 and pass 0 for next_frame.
1804 (ia64_store_return_value): Change to use convert_typed_floating()
1805 instead of calling ia64_convert_to_raw().
1806 (ia64_extract_return_value): Change to use convert_typed_floating()
1807 instead of calling ia64_convert_to_virtual().
1808 (ia64_frame_cache): New routine to support new frame model.
1809 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1810 (ia64_frame_sniffer): Ditto.
1811 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1812 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1813 (ia64_sigtramp_frame_prev_register): Ditto.
1814 (ia64_sigtramp_frame_sniffer): Ditto.
1815 (ia64_frame_base_address): Ditto.
1816 (ia64_extract_struct_value_address): Change to issue error message.
1817 (ia64_frame_align): New routine to align sp.
1818 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1819 (ia64_push_arguments): Removed. Logic moved to
1820 ia64_push_dummy_call().
1821 (ia64_push_return_address): Ditto.
1822 (ia64_unwind_dummy_id): New function.
1823 (ia64_unwind_pc): Ditto.
1824 (ia64_convert_register_p): Ditto.
1825 (ia64_register_to_value): Ditto.
1826 (ia64_value_to_register): Ditto.
1827 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1828 (ia64_register_byte, ia64_register_raw_size): Ditto.
1829 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1830 (ia64_saved_pc_after_call): Ditto.
1831 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1832 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1833 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1834 (ia64_register_convert_to_raw): Ditto.
1835 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1836 (ia64_init_extra_frame_info): Ditto.
1837 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1838 (ia64_gdbarch_init): Remove registering of deprecated functions that
1839 are no longer used. Add registration of new gdbarch functions.
1840 Remove registering deprecated_write_sp. Replace
1841 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1842 Delete set_gdbarch_deprecated_register_convertible(),
1843 set_gdbarch_deprecated_register_convert_to_virtual(), and
1844 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1845 set_gdbarch_deprecated_register_size(),
1846 set_gdbarch_deprecated_register_bytes(),
1847 set_gdbarch_pcregnum(),
1848 set_gdbarch_deprecated_register_byte(),
1849 set_gdbarch_deprecated_register_raw_size(),
1850 set_gdbarch_deprecated_max_register_raw_size(),
1851 set_gdbarch_deprecated_register_virtual_size(),
1852 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1853 Replace set_gdbarch_deprecated_extract_return_value() with
1854 set_gdbarch_extract_return_value(). Remove calls to:
1855 set_gdbarch_deprecated_saved_pc_after_call();
1856 set_gdbarch_deprecated_frame_chain(),
1857 set_gdbarch_deprecated_frame_saved_pc(),
1858 set_gdbarch_deprecated_frame_init_saved_regs(),
1859 set_gdbarch_deprecated_get_saved_register(),
1860 set_gdbarch_deprecated_call_dummy_words(),
1861 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1862 set_gdbarch_deprecated_init_extra_frame_info(),
1863 set_gdbarch_deprecated_frame_args_address(),
1864 set_gdbarch_deprecated_frame_locals_address(),
1865 and set_gdbarch_deprecated_dummy_write_sp().
1866 Add set_gdbarch_convert_register_p(),
1867 set_gdbarch_register_to_value(),
1868 set_gdbarch_value_to_register(),
1869 set_gdbarch_push_dummy_call(),
1870 set_gdbarch_frame_align(),
1871 set_gdbarch_unwind_dummy_id(),
1872 set_gdbarch_unwind_pc(),
1873 frame_unwind_append_sniffer(),
1874 frame_unwind_append_sniffer(),
1875 and frame_base_set_default().
1876
aede7613
CD
18772003-08-25 Chris Demetriou <cgd@broadcom.com>
1878
1879 * configure.tgt: Document need for special "mipsisa64" handling.
1880 (mipsisa64*-*-linux64): Handle as target linux64.
1881 (mipsisa64*-*-*): Handle as target embed64.
1882
43c3a82e
MC
18832003-08-18 Michael Chastain <mec@shout.net>
1884
1885 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1886 objfile bug.
1887
6564f77d
MK
18882003-08-24 Mark Kettenis <kettenis@gnu.org>
1889
2de139ba
MK
1890 * i387-tdep.h: Update copyright date.
1891 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1892
6564f77d
MK
1893 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1894 CFLAGS games to reflect reality.
1895
42cf1509
AC
18962003-08-24 Andrew Cagney <cagney@redhat.com>
1897
1898 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1899 GDB_MULTI_ARCH is always non-zero.
1900 * osabi.c (_initialize_gdb_osabi): Ditto.
1901 (gdbarch_init_osabi): Ditto.
1902 * sparc-tdep.c: Ditto for #if code.
1903
0485f6ad
MK
19042003-08-23 Mark Kettenis <kettenis@gnu.org>
1905
1906 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1907 Update comments.
1908 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1909 comments.
1910 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1911 x86_64_supply_fxsave.
1912 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1913 x86_64_supply_fxsave.
1914 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1915 x86_64_supply_fxsave.
1916
c7716133
AJ
19172003-08-23 Andreas Jaeger <aj@suse.de>
1918
1919 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1920 i387_supply_fxsave.
1921
ed504bdf
MK
19222003-08-23 Mark Kettenis <kettenis@gnu.org>
1923
1924 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1925 i387_supply_register.
1926 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1927 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1928 i387_supply_fsave.
1929 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1930 i387_supply_fxsave.
1931 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1932 i387_supply_fsave.
1933 * i386bsd-nat.c (supply_fpregset): Adjust call to
1934 i387_supply_fsave.
1935 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1936 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1937 supply_fpregset.
1938 (store_inferior_registers): Remove extraneous whitespace. Call
1939 i387_fill_fsave instead of fill_fpregset.
1940 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1941 (supply_fpregset): Likewise.
1942 * i386v4-nat.c (supply_fpregset): Adjust call to
1943 i387_supply_fsave.
1944 * i386-interix-nat.c (supply_fpregset): Adjust call to
1945 i387_supply_fsave.
1946 * i386-linux-nat.c (supply_fpregset): Adjust call to
1947 i387_supply_fsave.
1948 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1949 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1950 i387supply_fsave and i387_supply_fxsave.
1951 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1952 Incorporate code from `i387_supply_register.
1953 (i387_supply_register): Remove.
1954 (i387_supply_fxsave): Add `regnum' argument.
1955 Update comments.
1956 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1957 prototype.
1958 (i387_supply_register): remove prototype.
1959 Update comments.
1960
4be5d520
MC
19612003-08-22 Michael Chastain <mec@shout.net>
1962
1963 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1964 Add lines for files in gdb/testsuite/gdb.cp/* that are
1965 still not 8.3 unique.
1966
7ed85d26
DJ
19672003-08-22 Daniel Jacobowitz <drow@mvista.com>
1968
1969 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1970 TYPE_VPTR_FIELDNO is valid.
1971
eb0d3137
MK
19722003-08-19 Mark Kettenis <kettenis@gnu.org>
1973
1974 * utils.c (set_width_command): Remove prototypes.
1975 (set_screen_size): New prototype.
1976 (init_page_info): Simplify by fetching the screen size from
1977 Readline. Call set_screen_size.
1978 (set_screen_size): New function.
1979 (set_width): Add missing whitespace in comment.
1980 (set_width_command): Call set_screen_size.
1981 (set_height_command): New function.
1982 (initialize_utils): Fix formatting. Make "set height" command
1983 call set_height_command. Remove redundant code that turns off
1984 pagination if output isn't a terminal. Remove redundant call to
1985 set_width_command.
1986
7e6d0ac8
MK
19872003-08-22 Mark Kettenis <kettenis@gnu.org>
1988
3567a8ea
MK
1989 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1990 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1991 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1992 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1993 `case' keyword.
1994 (sparc64_register_info): Give the reister with number
1995 SPARC64_STATE_REGNUM a name.
1996 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1997 %asi and %ccr.
1998 (sparc64_push_dummy_call): Take BIAS into account when checking
1999 stcak alignment.
2000 (sparc_software_single_step): Remove assertions that check whether
2001 NPC and NNPC were zero.
2002 (sparc_supply_rwindow): Make public. Merge functionality with
2003 sparc64_supply_rwindow.
2004 (sparc_fill_rwindow): Make public. Merge functionality with
2005 sparc64_fill_rwindow.
2006 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2007 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2008 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2009 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2010 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2011
7e6d0ac8
MK
2012 * reggroups.c: Add whitespace after declarations of local
2013 variables in functions.
2014
72e5f484
MC
20152003-08-21 Michael Chastain <mec@shout.net>
2016
2017 * gdbtypes.h: Change array bound type from an int to enum.
2018
435ac228
AC
20192003-08-21 Andrew Cagney <cagney@redhat.com>
2020
2021 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2022 * config/sparc/tm-sparc.h: Ditto.
2023 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2024 unconditionally.
2025 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2026
0d0e1a63
MK
20272003-07-13 Mark Kettenis <kettenis@gnu.org>
2028
2029 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2030 (register_objfile_data, set_objfile_data, objfile_data): New
2031 prototypes.
2032 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2033 prototypes.
2034 (allocate_objfile): Call objfile_alloc_data.
2035 (free_objfile): Call objfile_free_data.
2036 (struct objfile_data): New.
2037 (struct objfile_data_registration): New.
2038 (struct objfile_data_registry): New.
2039 (objfile_data_registry): New variable.
2040 (register_objfile_data): New function.
2041 (objfile_alloc_data, objfile_free_data): New functions.
2042 (set_objfile_data, objfile_data): New functions.
2043 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2044 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2045 (_initialize_dwarf2_frame): New function and prototype.
2046
d90cf509
AC
20472003-08-21 Andrew Cagney <cagney@redhat.com>
2048
2049 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2050 a specific architecture.
2051 * arch-utils.h (set_architecture_from_arch_mach): Delete
2052 declaration.
2053 (target_architecture_hook): Delete declaration.
2054 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2055 (default_float_format): Assume GDB_MULTI_ARCH.
2056 (default_double_format): Assume GDB_MULTI_ARCH.
2057 (set_endian_from_file): Delete function.
2058 (arch_ok): Delete function.
2059 (set_arch): Delete function.
2060 (set_architecture_from_arch_mach): Delete function.
2061 (set_architecture_from_file): Delete function.
2062 (set_architecture): Assume GDB_MULTI_ARCH.
2063 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2064
8b39fe56
MK
20652003-08-21 Mark Kettenis <kettenis@gnu.org>
2066
2067 Rewrite FreeBSD/sparc64 native configuration.
2068 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2069 * sparc64fbsd-nat.c: New file.
2070 * sparc64fbsd-tdep.c: New file.
2071 * sparc64-tdep.c sparc64-tdep.h: New files.
2072 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2073 sparc64fbsd-tdep.o): New dependencies.
2074 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2075 and sparc64fbsd-tdep.c.
2076 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2077 * config/sparc/fbsd.mh: Remove copyright notice.
2078 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2079 sparcbsd-nat.o.
2080 * config/sparc/fbsd.mt: Remove copyright notice.
2081 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2082 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2083 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2084 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2085 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2086 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2087 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2088 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2089 "sparc/tm-sp64.h".
2090 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2091 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2092
a7f19c79
MC
20932003-08-21 Michael Chastain <mec@shout.net>
2094
2095 * symtab.h: Add doco on the space critical structures and
2096 some measurements of space usage.
2097
da08ea5b
MS
20982003-08-21 Michael Snyder <msnyder@redhat.com>
2099
2100 * tracepoint.c (trace_dump_command): Trace break address
2101 is subject to DECR_PC_AFTER_BREAK.
2102 (set_traceframe_context): Make "trace_line" an int.
2103 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2104
6df2bf50
MS
21052003-08-20 Michael Snyder <msnyder@redhat.com>
2106
2107 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2108 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2109 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2110 argument passing.
2111 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2112 functions, replace sh_push_dummy_call.
2113 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2114
0955bbf0
MC
21152003-08-20 Michael Chastain <mec@shout.net>
2116
2117 * gdbtypes.h (struct main_type): Rearrange to save space.
2118
260a4188
MS
21192003-08-20 Michael Snyder <msnyder@redhat.com>
2120
2121 * trad-frame.c: Comment typo fix.
2122
8baa6f92
KB
21232003-08-20 Michael Snyder <msnyder@redhat.com>
2124 Kevin Buettner <kevinb@redhat.com>
2125
2126 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2127 (frv_frame_init_saved_regs): Add declaration.
2128 (frame_extra_info): Add new field ``saved_regs''.
2129 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2130 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2131 Update frame related code.
2132 (frv_extract_struct_value_address): Adjust formatting.
2133 * Makefile.in (frv-tdep.o): Update dependencies.
2134 * config/frv/tm-frv.h (target_insert_watchpoint)
2135 (target_remove_watchpoint, target_insert_hw_breakpoint)
2136 (target_remove_hw_breakpoint): Delete these macros.
2137 (remote_insert_watchpoint, remote_remove_watchpoint)
2138 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2139 these declarations.
2140
87193939
MC
21412003-08-20 Michael Chastain <mec@shout.net>
2142
2143 * defs.h (ENUM_BITFIELD): New macro.
2144 * symtab.h (ENUM_BITFIELD): Use it.
2145 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2146
062103ba
SA
21472003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2148
2149 * MAINTAINERS (write after approval): Add myself.
2150
8b148df9
AC
21512003-08-18 Andrew Cagney <cagney@redhat.com>
2152
2153 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2154 * gdbarch.h, gdbarch.c: Re-generate.
2155 * infcall.c (call_function_by_hand): Adjust the SP by
2156 frame_red_zone_size before allocating any stack space.
2157 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2158 * x86-64-tdep.c (x86_64_frame_align): New function.
2159 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2160
2161 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2162 Remove code adjusting SP so that it skips over the Red Zone.
2163
954a4db8
MK
21642003-08-18 Mark Kettenis <kettenis@gnu.org>
2165
2166 * NEWS (New native configurations): Mention FreeBSD/amd64.
2167
1a241548
AC
21682003-08-18 Andrew Cagney <cagney@redhat.com>
2169
2170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2171 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2172 "m68k_frame_p".
2173 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2174
f82b2acd
MK
21752003-08-18 Mark Kettenis <kettenis@gnu.org>
2176
2177 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2178
4056d258
ML
21792003-08-18 Michal Ludvig <mludvig@suse.cz>
2180
2181 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2182 Define.
2183 * i386-linux-nat.c: Include "linux-nat.h".
2184 (child_post_startup_inferior): New function.
2185
99ab4326
MK
21862003-08-18 Mark Kettenis <kettenis@gnu.org>
2187
2188 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2189 at the start of a frameless function. This probably fixes PR
2190 backtrace/1338.
2191
c8d5f0d6
MC
21922003-08-17 Michael Chastain <mec@shout.net>
2193
2194 * symfile.c (find_sym_fns): Remove special case for apollo target.
2195
9016a515
DJ
21962003-08-17 Daniel Jacobowitz <drow@mvista.com>
2197
2198 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2199 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2200 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2201 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2202 (linux_supports_tracevforkdone): New function.
2203 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2204 TRACEVFORKDONE.
2205 (child_follow_fork): Handle vfork.
2206 (linux_handle_extended_wait): Likewise. Also handle exec.
2207 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2208 * NEWS: Mention fork tracing.
2209
c538c11c
DJ
22102003-08-17 Daniel Jacobowitz <drow@mvista.com>
2211
2212 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2213
4de4c07c
DJ
22142003-08-17 Daniel Jacobowitz <drow@mvista.com>
2215
2216 * Makefile.in (i386-linux-nat.o): Update dependencies.
2217 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2218 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2219 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2220 * i386-linux-nat.c: Include "linux-nat.h".
2221 (child_post_startup_inferior): New function.
2222 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2223 * infptrace.c (kill_inferior): Wrap in #ifdef.
2224 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2225 attaching to each LWP.
2226 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2227 (init_lin_lwp_ops): Fill in some more operations.
2228 * linux-nat.h (linux_enable_event_reporting)
2229 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2230 prototypes.
2231 * linux-nat.c (linux_enable_event_reporting): New function.
2232 (child_post_attach, linux_child_post_startup_inferior)
2233 (child_post_startup_inferior, child_follow_fork)
2234 (linux_handle_extended_wait, kill_inferior): New functions.
2235
7996bcec
AC
22362003-08-16 Andrew Cagney <cagney@redhat.com>
2237
2238 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2239 * gdbarch.h, gdbarch.c: Re-generate.
2240
3d48a7a0
MK
22412003-08-16 Mark Kettenis <kettenis@gnu.org>
2242
2243 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2244
7989c619
AC
22452003-08-16 Andrew Cagney <cagney@redhat.com>
2246
2247 * NEWS: Mention that "set prompt-escape-char" was deleted.
2248 * top.c (get_prompt_1): Delete function.
2249 (gdb_prompt_escape):
2250 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2251 prompt-escape-char" command.
2252 (MAX_PROMPT_SIZE): Delete macro.
2253 (get_prompt): Simplify, do not call get_prompt_1.
2254
07978cd8
AC
22552003-08-16 Andrew Cagney <cagney@redhat.com>
2256
2257 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2258 -Werror. -Wformat-nonliteral problems.
2259
3ff7cf9e
JB
22602003-08-15 J. Brobecker <brobecker@gnat.com>
2261
2262 Further multiarching work mostly for hppa64-*-hpux11:
2263 * hppa-tdep.h: New file.
2264 * hppa-tdep.c: #include hppa-tdep.c.
2265 (hppa32_num_regs): Renamed from hppa_num_regs.
2266 (hppa64_num_regs): New constant.
2267 (hppa64_call_dummy_breakpoint_offset): New constant.
2268 (hppa32_call_dummy_length): New constant.
2269 (hppa64_call_dummy_length): New constant.
2270 (hppa32_stack_align): Make name 32bit explicit.
2271 (hppa32_register_virtual_type): Likewise.
2272 (hppa32_extract_return_value): Likewise.
2273 (hppa32_use_struct_convention): Likewise.
2274 (hppa32_store_return_value): Likewise.
2275 (hppa64_register_virtual_type): New function.
2276 (hppa64_extract_return_value): New function.
2277 (hppa64_use_struct_convention): New function.
2278 (hppa64_store_return_value): New function.
2279 (hppa_frame_locals_address): Remove declaration, function does
2280 not exist anymore.
2281 (hppa_register_byte): Add support for PA64 ABI.
2282 (hppa_gdbarch_init): Add support for PA64 ABI.
2283 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2284 Make name 32bit explicit.
2285 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2286 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2287 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2288 (hppa64_hpux_frame_base_before_sigtramp): New function.
2289 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2290 * config/pa/tm-hppa64.h: Remove macros that are no longer
2291 necessary now that the gdbarch vector is properly setup.
2292 Transform some macros into function calls. Some minor cleanup.
2293 * config/pa/tm-hppah.h: Update function calls in macros
2294 following the function renaming in hppa-hpux-tdep.c.
2295 * Makefile.in (hppa_tdep_h): New variable.
2296 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2297
5d05ca6d
MS
22982003-08-14 Michael Snyder <msnyder@redhat.com>
2299
2300 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2301
37ba2569
JB
23022003-08-13 J. Brobecker <brobecker@gnat.com>
2303
2304 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2305 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2306 routine.
2307
aed7f26a
MS
23082003-08-13 Michael Snyder <msnyder@redhat.com>
2309
2310 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2311 (frv_saved_pc_after_call): Use deprecated ftype.
2312 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2313 (frv_remote_translate_xfer_address): Remove.
2314 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2315
752d4ac1
JB
23162003-08-13 J. Brobecker <brobecker@gnat.com>
2317
2318 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2319 initialization after the common gdbarch initialization, not before.
2320
1426ac1d
JB
23212003-08-13 J. Brobecker <brobecker@gnat.com>
2322
2323 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2324 (ADDR_BITS_REMOVE): Remove, redundant.
2325
b6fbdd1d
JB
23262003-08-13 J. Brobecker <brobecker@gnat.com>
2327
2328 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2329 gdbarch method to clear the 2 low bits of text addresses.
2330
44160db3
AC
23312003-08-12 Andrew Cagney <cagney@redhat.com>
2332
2333 * Makefile.in (dsrec.o): Update dependencies.
2334 * dsrec.c: Include "gdb_assert.h".
2335 (make_srec): Use snprintf instead of sprintf, use a literal format
2336 string.
2337
bcf7d3ca
AC
23382003-08-12 Andrew Cagney <cagney@redhat.com>
2339
2340 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2341 FRAME_OBSTACK_ZALLOC.
2342
49ed40de
KB
23432003-08-12 Kevin Buettner <kevinb@redhat.com>
2344
2345 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2346 SSE registers.
2347
b246147c
MK
23482003-08-10 Mark Kettenis <kettenis@gnu.org>
2349
2350 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2351 amd64fbsd_sc_reg_offset): Add extern declarations.
2352 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2353 declarations.
2354
d95fdc0d
BE
23552003-08-11 Ben Elliston <bje@wasabisystems.com>
2356
2357 * MAINTAINERS (write after approval): Update my mail address.
2358
cf6a0e73
AC
23592003-08-10 Andrew Cagney <cagney@redhat.com>
2360
2361 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2362
f837910f
MK
23632003-08-10 Mark Kettenis <kettenis@gnu.org>
2364
e2dbbd2d
MK
2365 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2366 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2367 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2368 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2369 i386bsd_sc_reg_offset): Add extern declarations.
2370 * i386obsd-nat.c: Include "i386-tdep.h"
2371 (_initialize_i386obsd_nat): Remove extern declarations.
2372 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2373 declarations.
2374 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2375 declarations.
2376
f837910f
MK
2377 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2378 instead of frame_read_register.
2379 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2380 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2381 SP_REGNUM.
2382 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2383 instead of frame_unwind_unsigned_register. Use
2384 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2385 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2386 instead of read_register. Use builtin_type_void_data_ptr instead
2387 of builtin_type_void_func_ptr when extracting the address of the
2388 jmp_buf.
2389 (i386_extract_return_value, i386_store_return_value,
2390 i386_pseudo_register_read, i386_pseudo_register_write): Use
2391 register_size instead REGISTER_RAW_SIZE.
2392
edcf254d
AC
23932003-08-10 Andrew Cagney <cagney@redhat.com>
2394
2395 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2396 sprintf. Make "name" constant.
2397
26604a34
MK
23982003-08-10 Mark Kettenis <kettenis@gnu.org>
2399
192285c6
MK
2400 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2401 instead of frame_read_register.
f837910f
MK
2402 (i387_print_float_info): Use get_frame_register and
2403 get_frame_register_unsigned instead of frame_register_read.
192285c6 2404
f0925262
MK
2405 * i386fbsd-nat.c: Include "i386-tdep.h".
2406 (child_resume): Make `eflags' an ULONGEST. Use
2407 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2408 instead of register_read and register_write.
2409
a144416f
MK
2410 * i386bsd-nat.c (fetch_inferior_registers,
2411 store_inferior_registers): Don't use && at the end of a line.
2412 (_initialize_i386bsd_nat): Fix typo.
2413
fec74868
MK
2414 * frame.c (_initialize_frame): Add missing backslash.
2415
87232496
MK
2416 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2417 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2418 and supply_register instead of manipulating the register buffer
2419 directly.
2420
c9b9de0b
MK
2421 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2422 * config/i386/nm-i386sol2.h
2423 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2424
26604a34
MK
2425 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2426 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2427 instructions that GCC likes to mingle into the prologue. Fixes
2428 gdb/1253 and gdb/1255.
2429
25d29d70
AC
24302003-08-09 Andrew Cagney <cagney@redhat.com>
2431
2432 Fix GDB PR cli/926.
2433 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2434 * command.h (add_setshow_uinteger_cmd): Declare.
2435 * frame.c (set_backtrace_cmd): New function.
2436 (show_backtrace_cmd): New function.
2437 * frame.c (_initialize_frame): Replace "set/show
2438 backtrace-below-main" with "set/show backtrace past-main". Add
2439 command "set/show backtrace limit".
2440 (backtrace_past_main): Rename "backtrace_below_main".
2441 (backtrace_limit): New variable.
2442 (get_prev_frame): Update. Check the backtrace_limit.
2443
9ebf4acf
AC
24442003-08-09 Andrew Cagney <cagney@redhat.com>
2445
2446 * defs.h (xstrprintf): Declare.
2447 * utils.c (xstrprintf): New function.
2448 * breakpoint.c (insert_breakpoints): Replace sprintf and
2449 non-literal format strings, with xstrprintf and cleanups.
2450 (delete_breakpoint,breakpoint_re_set): Ditto.
2451 (commands_command, insert_breakpoints): Ditto.
2452 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2453 (break_at_finish_command_1): Ditto.
2454
3771659b
AC
24552003-08-09 Andrew Cagney <cagney@redhat.com>
2456
2457 * MAINTAINERS (language support): List Adam Fedor as Objective C
2458 maintainer.
2459
b4263afa
JB
24602003-08-08 J. Brobecker <brobecker@gnat.com>
2461
2462 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2463 are now multiarched.
2464
d84defb1
JB
24652003-08-08 J. Brobecker <brobecker@gnat.com>
2466
2467 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2468 longer necessary now that hppa64 is partially multiarch'ed.
2469
f786f615
AC
24702003-08-08 Andrew Cagney <cagney@redhat.com>
2471
2472 * interps.c (interp_set): Check for a NULL "old_interp".
2473
c938e9b0
L
24742003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2475
2476 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2477 (install-only): Support DESTDIR.
2478 (uninstall): Likewise.
2479 (install-gdbtk): Likewise.
2480
9a146a11
EZ
24812003-08-08 Elena Zannoni <ezannoni@redhat.com>
2482
2483 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2484 contains something meaningful at all times.
2485
2486Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2487
62599e99 2488 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2489
56296155
BC
2490Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2491
62599e99 2492 * MAINTAINERS (write after approval): Added self.
56296155 2493
9710e734
AC
24942003-08-07 Andrew Cagney <cagney@redhat.com>
2495
2496 * inferior.h (AT_SYMBOL): Define.
2497 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2498 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2499 * mips-tdep.c (mips_call_dummy_address): Delete function.
2500 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2501 set call_dummy_address.
2502
98b3ab73
AC
25032003-08-07 Andrew Cagney <cagney@redhat.com>
2504
2505 * language.c (op_error): Delete function.
2506 (binop_type_check): Delete function.
2507 * language.h (type_op_error, range_op_error): Delete macros.
2508 (op_error): Delete declaration.
2509
2fcf52f0
AC
25102003-08-07 Andrew Cagney <cagney@redhat.com>
2511
2512 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2513
abd4220e 25142003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2515
abd4220e 2516 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2517 (x86_64_push_arguments): Skip the red zone.
abd4220e 2518
9dd5f34f
AC
25192003-08-05 Andrew Cagney <cagney@redhat.com>
2520
2521 * reggroups.c (reggroup_next): Check for the final entry.
2522
e5e78edc
AC
25232003-08-04 Andrew Cagney <cagney@redhat.com>
2524
ab4e3d93
AC
2525 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2526 * cli/cli-script.c (define_command): Call query directly, instead
2527 of passing it a buffer.
2528 * ocd.c (ocd_error): Pass error a constant format string.
2529 * remote-mips.c (mips_error): Use fputs_filtered.
2530
1062ca82
AC
2531 * solib-svr4.c (_initialize_svr4_solib): Update
2532 register_gdbarch_data call.
2533 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2534
fcc1c85c
AC
2535 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2536 (register_gdbarch_data): Delete "free" parameter. Update
2537 comments.
2538 * gdbarch.h, gdbarch.c: Re-generate.
2539 * reggroups.c (_initialize_reggroup): Update.
2540 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2541 * frame-base.c (_initialize_frame_base): Update.
2542 * frame-unwind.c (_initialize_frame_unwind): Update.
2543 * user-regs.c (_initialize_user_regs): Update.
2544 * remote.c (_initialize_remote): Update.
2545 * regcache.c (_initialize_regcache): Update.
2546
116f06ea
AC
2547 * regcache.c (xfree_regcache_descr): Delete function.
2548 (_initialize_regcache): Update call to register_gdbarch_data.
2549 (init_regcache_descr, init_legacy_regcache_descr): Use
2550 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2551
e5e78edc
AC
2552 * remote.c (free_remote_state): Delete function.
2553 (_initialize_remote): Update register_gdbarch_data.
2554 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2555 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2556
6c7d17ba
AC
25572003-08-04 Andrew Cagney <cagney@redhat.com>
2558
2559 * reggroups.c (struct reggroup_el): Define.
2560 (struct reggroups): Delete field "nr_group". Replace array
2561 "group" with a "first" to "last" linked list.
2562 (reggroups_init): Update. Allocate using gdbarch's obstack.
2563 (reggroups_free): Delete function.
2564 (add_group): Update. Add "el" parameter.
2565 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2566 (default_groups): Update.
2567 (reggroup_next): Replace reggroups.
2568 (reggroups_dump): Update.
2569 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2570 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2571 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2572
89b7795b
DJ
25732003-08-04 Daniel Jacobowitz <drow@mvista.com>
2574
2575 * Makefile.in (tui-interp.o): Update dependencies.
2576
306d9ac5
DC
25772003-08-04 David Carlton <carlton@kealia.com>
2578
2579 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2580 to internal_error call.
2581 * source.c (forward_search_command): Add "%s" format argument.
2582 (reverse_search_command): Ditto.
2583 * top.c (quit_confirm): Ditto.
2584 * cli/cli-setshow.c (do_setshow_command): Ditto.
2585 * cp-valprint.c (cp_print_class_method): Replace
2586 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2587 (cp_print_class_member): Ditto.
2588 * event-top.c (command_line_handler): Ditto.
2589 * linux-proc.c (linux_info_proc_cmd): Ditto.
2590 * p-typeprint.c (pascal_type_print_base): Ditto.
2591 * p-valprint.c (pascal_object_print_class_method): Ditto.
2592 (pascal_object_print_class_member): Ditto.
2593 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2594 * remote.c (remote_cisco_section_offsets): Ditto.
2595 * top.c (command_line_input): Ditto.
2596 * utils.c (vwarning,error_stream,quit): Ditto.
2597 * valprint.c (print_floating,print_binary_chars)
2598 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2599
57bfe177
AC
26002003-08-04 Andrew Cagney <cagney@redhat.com>
2601
2602 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2603
e546b999
AC
26042003-08-02 Andrew Cagney <cagney@redhat.com>
2605
2606 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2607 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2608 amd64fbsd-nat.c.
2609
91092ee5
AC
26102003-08-02 Andrew Cagney <cagney@redhat.com>
2611
2612 * Makefile.in: Update all dependencies and definitions.
2613
889f28e2
AF
26142003-08-02 Adam Fedor <fedor@gnu.org>
2615
2616 * linespec.c (is_objc_method_format): New function
2617 (decode_line_1, locate_first_half): Use it.
2618 Fixes PR objc/1298
2619
880bc914
AC
26202003-08-01 Andrew Cagney <cagney@redhat.com>
2621
2622 * NEWS: Mention that m32r is multi-arch.
2623 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2624 * configure.tgt: Recognize m32r-*-*.
2625 * config/m32r/tm-m32r.h: Delete file.
2626 * config/m32r/m32r.mt: New file.
2627 * m32r-rom.c (m32r_upload_command): Use hostent only when
2628 gethostname succeeds, in order to avoid a compilation
2629 warning.
2630 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2631 compiler warning.
2632
19f59343
MS
26332003-08-01 Michael Snyder <msnyder@redhat.com>
2634
2635 * sh-tdep.c (sh_frame_align): New gdbarch method.
2636 (sh_gdbarch_init): Set up frame_align method.
2637
4e7d7511
MS
26382003-07-31 Michael Snyder <msnyder@redhat.com>
2639
2640 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2641 which is already covered by the new frames infrastructure.
2642
63022984
AC
26432003-07-31 Andrew Cagney <cagney@redhat.com>
2644
2645 * user-regs.c (struct user_reg): Add "next" link.
2646 (struct user_regs): Replace "user" with "first" and "last" links.
2647 (append_user_reg): Add pre-allocated "reg" parameter.
2648 (builtin_user_regs): Provide initial value for "last".
2649 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2650 (user_regs_init): Allocate memory from the gdbarch obstack.
2651 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2652 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2653 linked list.
2654 (usernum_to_user_reg): New function.
2655 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2656 (value_of_user_reg): Use usernum_to_user_reg.
2657 (user_regs_free): Delete function.
2658 (_initialize_user_regs): Update register_gdbarch_data call.
2659
7cf6e574
DJ
26602003-07-31 Daniel Jacobowitz <drow@mvista.com>
2661
2662 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2663
c48a845b
MS
26642003-07-30 Michael Snyder <msnyder@redhat.com>
2665
4e7d7511 2666 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2667 * infcall.c (call_function_by_hand): Pass struct_addr to
2668 value_being_returned.
2669 * infcmd.c (print_return_value): Pass zero as struct_addr.
2670 * values.c (value_being_returned): If struct_addr is passed,
2671 use it instead of trying to recover it from the inferior.
2672
f0d8db19
KB
26732003-07-30 Kevin Buettner <kevinb@redhat.com>
2674
2675 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2676 the prologue analyzer won't need to attempt to extract the pc
2677 value from the woefully incomplete dummy frame.
2678 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2679 possible. Disable code which modifies the frame.
2680
e5c113a1
AC
26812003-07-28 Andrew Cagney <cagney@redhat.com>
2682
2683 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2684 to level 2.
2685 (annotate_breakpoints_table, annotate_record): Ditto.
2686 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2687 (annotate_field_name_end, annotate_field_value): Ditto.
2688 (annotate_field_end, annotate_frame_source_begin): Ditto.
2689 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2690 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2691 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2692 (annotate_frame_address_end, annotate_frame_address): Ditto.
2693 (annotate_frame_args, annotate_frame_end): Ditto.
2694 (annotate_frame_where, annotate_arg_begin): Ditto.
2695 (annotate_arg_name_end, annotate_arg_value): Ditto.
2696 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2697 (annotate_function_call, annotate_signal_name): Ditto.
2698 (annotate_signal_string, annotate_signal_name_end): Ditto.
2699 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2700 (annotate_value_begin, annotate_value_history_value): Ditto.
2701 (annotate_value_history_end, annotate_value_end): Ditto.
2702 (annotate_display_begin, annotate_display_number_end): Ditto.
2703 (annotate_display_format, annotate_display_expression): Ditto.
2704 (annotate_display_expression_end, annotate_display_value): Ditto.
2705 (annotate_display_end, annotate_array_section_begin): Ditto.
2706 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2707 (annotate_elt, annotate_array_section_end): Ditto.
2708
bb1db049
AC
27092003-07-28 Andrew Cagney <cagney@redhat.com>
2710
2711 * regcache.c (struct regcache_descr): Update comments on
2712 nr_raw_registers.
2713 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2714 sizeof_raw_register_valid_p.
2715 (init_regcache_descr): Set nr_raw_registers and
2716 sizeof_raw_register_valid_p before calling
2717 init_legacy_regcache_descr.
2718
20e6603c
AC
27192003-07-28 Andrew Cagney <cagney@redhat.com>
2720
2721 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2722 MOD NUM_REGS.
2723
db742940
DJ
27242003-07-28 Daniel Jacobowitz <drow@mvista.com>
2725
2726 * thread.c (info_threads_command): Use get_selected_frame ().
2727 Check that there is at least one non-sentinel frame.
2728
ce7f4371
SC
27292003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2730
2731 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2732 (m68hc11_pop_frame): Remove.
2733 (m68hc11_frame_saved_pc): Remove.
2734 (m68hc11_frame_chain): Remove.
2735 (m68hc11_frame_init_saved_regs): Remove.
2736 (m68hc11_init_extra_frame_info): Remove.
2737 (m68hc11_store_struct_return): Remove.
2738 (m68hc11_saved_pc_after_call): Remove.
2739
1ea653ae
SC
27402003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2741
2742 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2743 frame unwind information.
2744 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2745 and adapted for frame unwinding.
2746 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2747 (m68hc11_unwind_pc): New function.
2748 (m68hc11_frame_unwind_cache): New function to analyze frames.
2749 (m68hc11_frame_this_id): New function to create new frame struct.
2750 (m68hc11_frame_prev_register): New function to unwind a register from
2751 the frame.
2752 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2753 (m68hc11_frame_p): New function for the above.
2754 (m68hc11_frame_base_address): New function to return fp of frame.
2755 (m68hc11_frame_args_address): Update for frame.
2756 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2757 (m68hc11_unwind_sp): New function.
2758 (m68hc11_unwind_dummy_id): New function.
2759 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2760 calls.
2761
c8a7f6ac
SC
27622003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2763
2764 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2765 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2766 when we are beyond the current pc.
2767
3dc990bf
SC
27682003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2769
2770 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2771 from m68hc11_push_arguments.
2772 (m68hc11_push_arguments): Remove.
2773 (m68hc11_push_return_address): Remove.
2774 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2775 handlers; remove deprecated_extra_stack_alignment_needed.
2776
222e5d1d
AC
27772003-07-27 Andrew Cagney <cagney@redhat.com>
2778
2779 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2780 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2781 REAL_PC and not the pointer.
2782 * hppa-hpux-tdep.c: Include frame.h
2783
a7e9a47e
AC
27842003-07-27 Andrew Cagney <cagney@redhat.com>
2785
2786 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2787 GDB_MULTI_ACH_PARTIAL.
2788
7e3dd49e
AC
27892003-07-27 Andrew Cagney <cagney@redhat.com>
2790
2791 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2792 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2793 operator at start and not end of line.
2794 (decode_prologue): Ditto.
2795 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2796 frame_unwind_register_unsigned instead of
2797 frame_unwind_unsigned_register.
2798 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2799 read_register.
2800 (m32r_push_dummy_call): Use register_size instead of
2801 REGISTER_RAW_SIZE.
2802 (m32r_frame_sniffer): Replace m32r_frame_p.
2803 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2804 * m32r-rom.c (report_transfer_performance): Delete extern
2805 declaration.
2806 (m32r_load, m32r_upload_command): Use print_transfer_performance
2807 instead of report_transfer_performance.
2808 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2809 / add_show_from_set.
2810
0880807f
AC
28112003-07-26 Andrew Cagney <cagney@redhat.com>
2812
2813 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2814 store_return_value and extract_struct_value_address.
2815
64ae9269
DJ
28162003-07-26 Daniel Jacobowitz <drow@mvista.com>
2817
2818 PR c++/1267
2819 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2820 NULL, default to the section containing PC.
2821
e286caf2
SC
28222003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2823
2824 * NEWS: Mention "regs" deprecated for m68hc11 too.
2825
2826 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2827 (m68hc11_print_register): New function to print out one register.
2828 (m68hc11_print_registers_info): New function to print registers.
2829 (show_regs): Deprecate and use the above.
2830 (m68hc11_gdbarch_init): Install the print_registers_info.
2831
705b278b
JJ
28322003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2833
2834 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2835 that we have a SIGTRAP before returning non-zero.
2836
63cd4198
EZ
28372003-07-23 Michal Ludvig <mludvig@suse.cz>
2838 Elena Zannoni <ezannoni@redhat.com>
2839
2840 * linespec.c (decode_line_2): Avoid crash if
2841 find_function_start_sal() returns empty record.
2842
6926787d
AS
28432003-07-23 Andreas Schwab <schwab@suse.de>
2844
2845 * ia64-tdep.c (ia64_print_insn): New function.
2846 (ia64_gdbarch_init): Set print_insn to it.
2847 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2848 deprecated_tm_print_insn_info.
2849
708cc1b6
MS
28502003-07-22 Michael Snyder <msnyder@redhat.com>
2851
2852 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2853 handle 8-bit returns (long long).
2854 (h8300h_extract_return_value): Ditto.
2855 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2856
aebd7893
AC
28572003-07-22 Andrew Cagney <cagney@redhat.com>
2858
2859 * gdbarch.c Include "gdb_obstack.h".
2860 (struct gdbarch): Add an "obstack".
2861 (alloc_gdbarch_data): Allocate the gdbarch data using
2862 GDBARCH_OBSTACK_CALLOC.
2863 (free_gdbarch_data): Delete function.
2864 (gdbarch_obstack_zalloc): New function.
2865 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2866 Assert that the architecture is not initialized.
2867 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2868 vector from the obstack.
2869 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2870 architecture obstack.
2871 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2872 (set_gdbarch_data): Assert that the data is not initialized.
2873 (struct gdbarch_data): Delete member "free".
2874 (register_gdbarch_data): Do not initialize "free".
2875 * gdbarch.h, gdbarch.c: Re-generate.
2876
153721e6
AC
28772003-07-22 Andrew Cagney <cagney@redhat.com>
2878
2879 * configure.in (build_warnings): Add -Wformat-nonliteral.
2880 * configure: Re-generate.
2881
c193f044 28822003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2883
2884 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2885
c3228f12
EZ
28862003-07-22 Elena Zannoni <ezannoni@redhat.com>
2887
2888 * findvar.c (read_var_value): Remove case for thread local storage
2889 variables. It is now entirely handled by the dwarf2 location
2890 expression code.
2891 * printcmd.c (address_info): Ditto.
2892 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2893 enumeration value.
2894 (struct symbol): Remove objfile field, which was used by
2895 LOC_THREAD_LOCAL_STATIC only.
2896 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2897 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2898 usage of objfile pointer.
2899 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2900 thread local variables.
2901 Add include of objfiles.h.
2902 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2903 storage variables.
2904 * Makefile.in (dwarf2loc.o): Update dependencies.
2905
aef9bcd2
AC
29062003-07-22 Andrew Cagney <cagney@redhat.com>
2907
2908 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2909 get_frame_base.
2910 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2911 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2912 (struct value): Add opaque declaration.
2913 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2914
d95a8903
AC
29152003-07-21 Andrew Cagney <cagney@redhat.com>
2916
2917 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2918 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2919
4db73d49
SC
29202003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2921
2922 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2923 regcache_cooked_read_unsigned instead of read_register.
2924 (m68hc11_saved_pc_after_call): Likewise.
2925 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2926 instead of write_register.
2927 (m68hc11_register_type): New function.
2928 (m68hc11_register_virtual_type): Remove.
2929 (m68hc11_store_return_value): Convert to use the regcache.
2930 (m68hc11_extract_struct_value_address): Likewise.
2931 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2932 m68hc11_register_type; undeprecate store_return_value and
2933 extract_struct_value_address.
2934
ef2b8fcd
SC
29352003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2936
2937 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2938 and translate to use regcache.
2939 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2940
625b0b97
AC
29412003-07-18 Andrew Cagney <cagney@redhat.com>
2942
2943 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2944 * gdbarch.h, gdbarch.c: Re-generate.
2945 * i386-tdep.c (i386_gdbarch_init): Do not set
2946 DWARF2_BUILD_FRAME_INFO.
2947 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2948 unconditionally.
2949 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2950 DWARF2_BUILD_FRAME_INFO.
2951
22b0d388
AC
29522003-07-18 Andrew Cagney <cagney@redhat.com>
2953
2954 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2955 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2956
1ce5d6dd
AC
29572003-07-18 Andrew Cagney <cagney@redhat.com>
2958
2959 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2960 frame_unwind_address_in_block, instead of frame_pc_unwind.
2961 (dwarf2_frame_cache): Ditto.
2962
e6e5e94c
AC
29632003-07-18 Andrew Cagney <cagney@redhat.com>
2964
2965 * user-regs.h (struct gdbarch): Declare opaque.
2966 * ui-out.h (struct ui_file): Declare opaque.
2967 * dwarf2-frame.h (struct frame_info): Declare opaque.
2968
5483d879
KW
29692003-07-18 Kris Warkentin <kewarken@qnx.com>
2970
2971 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2972 #include "...".
2973 (procfs_meminfo): Change strerror to safe_strerror.
2974 (procfs_can_run): Remove K&R badness.
2975
278a7cf7
MS
29762003-07-17 Michael Snyder <msnyder@redhat.com>
2977
2978 * remote-sim.c: Comment typo fix.
2979
606e3b82
AC
29802003-07-17 Andrew Cagney <cagney@redhat.com>
2981
2982 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2983 configure.
2984 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2985 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2986 GDB_MULTI_ARCH_PARTIAL.
2987
c43af07c
EZ
29882003-07-17 Elena Zannoni <ezannoni@redhat.com>
2989
2990 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2991 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2992 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2993
3b85b0f1
TR
29942003-07-16 Theodore A. Roth <troth@openavr.org>
2995
2996 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2997 found.
2998 (avr_frame_unwind_cache): Don't unwind FP for main.
2999 Update a comment.
3000 Save the computed prev_sp.
3001 (avr_saved_regs_unwinder): Remove function.
3002 (avr_frame_prev_register): Use PC unwind logic from
3003 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3004
336d1bba
AC
30052003-07-16 Andrew Cagney <cagney@redhat.com>
3006
3007 * frame-base.h (frame_base_p_ftype): Delete definition.
3008 (frame_base_append_predicate): Delete declaration.
3009 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3010 (frame_unwind_append_predicate): Delete declaration.
3011 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3012 (append_predicate): Delete parameter "p".
3013 (frame_unwind_append_predicate): Delete function.
3014 (frame_unwind_append_sniffer): Update call to append_predicate.
3015 (frame_unwind_free): Delete function.
3016 (_initialize_frame_unwind): Pass NULL as "free" to
3017 register_gdbarch_data.
3018 (frame_unwind_init): Append the dummy_frame_sniffer.
3019 (frame_unwind_find_by_frame): Simplify.
3020 * frame-base.c (struct frame_base_table): Delete field "p".
3021 (append_predicate): Delete parameter "p".
3022 (frame_base_append_predicate): Delete function.
3023 (frame_base_append_sniffer): Update call to append_predicate.
3024 (frame_base_free): Delete function.
3025 (frame_base_find_by_frame): Simplify.
3026 (_initialize_frame_base): Pass NULL as "free" to
3027 register_gdbarch_data.
3028 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3029 (x86_64_sigtramp_frame_sniffer): Replace
3030 "x86_64_sigtramp_frame_p".
3031 (x86_64_init_abi): Set the frame unwind sniffers.
3032 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3033 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3034 (m68k_gdbarch_init): Set the frame unwind sniffers.
3035 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3036 "i386_sigtramp_frame_p".
3037 (i386_frame_sniffer): Replace "i386_frame_p".
3038 (i386_gdbarch_init): Set the frame unwind sniffers.
3039 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3040 (avr_gdbarch_init): Set the frame unwind sniffers.
3041 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3042 "alpha_sigtramp_frame_p"
3043 (alpha_heuristic_frame_sniffer): Replace
3044 "alpha_heuristic_frame_p".
3045 (alpha_gdbarch_init): Set the frame unwind sniffers.
3046 (alpha_dwarf2_init_abi): Ditto.
3047 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3048 "alpha_debug_frame_p".
3049 (alpha_mdebug_frame_base_sniffer): Replace
3050 "alpha_mdebug_frame_base_p".
3051 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3052 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3053 (d10v_gdbarch_init): Set the frame unwind sniffer.
3054 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3055 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3056 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3057 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3058 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3059 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3060
48db5a3c
CV
30612003-07-16 Michael Snyder <msnyder@redhat.com>
3062
3063 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3064 should go thru sh_dsp_register_sim_regno, else the dsp regs
3065 will not get the right values.
3066
30672003-07-16 Corinna Vinschen <vinschen@redhat.com>
3068
3069 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3070 deprecated_store_floating by call to store_typed_floating.
3071 (sh_sh4_register_convert_to_raw): Substitute call to
3072 deprecated_extract_floating by call to extract_typed_floating.
3073
30742003-07-16 Corinna Vinschen <vinschen@redhat.com>
3075
3076 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3077
30782003-07-16 Corinna Vinschen <vinschen@redhat.com>
3079
3080 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3081 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3082 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3083 as possible.
3084 (do_pseudo_register): Remove.
3085 (sh_push_dummy_code): New function.
3086 (sh64_store_struct_return): Rename from sh_store_struct_return.
3087 Only called for sh64 now.
3088 (sh_extract_struct_value_address): Regcache'ify.
3089 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3090 and accomodate new tasks.
3091 (sh64_push_return_address): Rename from sh_push_return_address.
3092 Only called for sh64 now.
3093 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3094 Regcache'ify.
3095 (sh3e_sh4_extract_return_value): Regcache'ify.
3096 (sh_default_store_return_value): Ditto.
3097 (sh3e_sh4_store_return_value): Ditto.
3098 (sh_default_register_byte): Remove.
3099 (sh_sh4_register_byte): Remove.
3100 (sh_default_register_raw_size): Remove.
3101 (sh_sh4_register_raw_size): Remove.
3102 (sh_register_virtual_size): Remove.
3103 (sh_sh3e_register_virtual_type): Remove.
3104 (sh_sh3e_register_type): New function.
3105 (sh_sh4_register_virtual_type): Remove.
3106 (sh_sh4_register_type): New function.
3107 (sh_default_register_virtual_type): Remove.
3108 (sh_default_register_type): New function.
3109 (do_fv_register_info): Add parameters to accomodate call from
3110 sh_print_registers_info.
3111 (do_dr_register_info): Ditto.
3112 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3113 Add parameters to accomodate call from sh_print_registers_info.
3114 (sh_do_fp_register): Ditto.
3115 (sh64_do_pseudo_register): Call do_dr_register_info,
3116 do_fv_register_info and sh_do_fp_register with default parameters.
3117 (sh_do_register): Add parameters to accomodate call from
3118 sh_print_registers_info.
3119 (sh_print_register): Ditto.
3120 (sh_print_registers_info): Rename from sh_do_registers_info.
3121 Add parameters to be used as gdbarch_print_registers_info
3122 implementation. Accomodate removed do_pseudo_register function
3123 pointer.
3124 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3125 function pointer. Call sh_print_register with default parameters.
3126 (sh64_do_registers_info): Call sh_print_registers_info instead of
3127 sh_do_registers_info.
3128 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3129 detection of deprecated vs. non-deprecated functionality.
3130 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3131 function pointer assignments by direct function calls.
3132
e8a89fe2
AC
31332003-07-15 Andrew Cagney <cagney@redhat.com>
3134
3135 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3136 (frame_register_unwind, create_new_frame): Ditto.
3137 (legacy_get_prev_frame, get_frame_type): Ditto.
3138 (get_frame_base_address): Use frame_base_find_by_frame.
3139 (get_frame_locals_address): Use frame_base_find_by_frame.
3140 (get_frame_args_address): Use frame_base_find_by_frame.
3141 * frame-base.h (frame_base_sniffer_ftype): Declare.
3142 (frame_base_append_sniffer): Declare.
3143 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3144 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3145 (frame_base_append_sniffer): New function.
3146 (frame_base_append_predicate): Add a NULL sniffer.
3147 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3148 (struct frame_base_table): Add "sniffer".
3149 (frame_base_free): Free the "sniffer" table.
3150 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3151 (frame_unwind_append_sniffer): Declare.
3152 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3153 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3154 (struct frame_unwind_table): Add "sniffer", delete "middle".
3155 (append_predicate): Add "sniffer" parameter, append the sniffer.
3156 (frame_unwind_init): Update append_predicate call.
3157 (frame_unwind_append_sniffer): New function.
3158 (frame_unwind_append_predicate): Update append_predicate call.
3159 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3160
0714963c
AC
31612003-07-15 Andrew Cagney <cagney@redhat.com>
3162
3163 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3164 before code inhibiting repeated unwind attempts. Add to
3165 commentary on that test's problems.
3166 * blockframe.c (inside_main_func): Look for "main" in the minimal
3167 symbol table.
3168 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3169 identical.
3170
d9170e22
AC
31712003-07-15 Andrew Cagney <cagney@redhat.com>
3172
3173 * complaints.c (struct explanation): Define.
3174 (struct complaints): Change type of "explanation" to "struct
3175 explanation".
3176 (symfile_explanations): Convert to a "struct explanation" table.
3177 (vcomplaint): Update.
3178
eba29c8c
ML
31792003-07-15 Michal Ludvig <mludvig@suse.cz>
3180
3181 * x86-64-linux-nat.c (regmap): Removed.
3182 (supply_gregset, fill_gregset): Call
3183 x86_64_linux_(fill,supply)_gregset functions.
3184 * x86-64-linux-tdep.c (USER_*): New defines.
3185 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3186 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3187 New functions.
3188 (fetch_core_registers): Ditto.
3189 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3190 * x86-64-linux-tdep.h: New file.
3191 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3192 and core-regset.o.
3193 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3194
68cc0bfb
MK
31952003-07-13 Mark Kettenis <kettenis@gnu.org>
3196
88a115f7
MK
3197 * x86-64-tdep.c (x86_64_store_return_value): Use
3198 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3199
68cc0bfb
MK
3200 * configure.host: Add x86_64-*-freebsd*.
3201 * configure.tgt: Add x86_64-*-freebsd*.
3202 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3203 * amd64fbsd-nat.c: New file.
3204 * amd64fbsd-tdep.c: New file.
3205 * config/i386/nm-fbsd64.h: New file.
3206 * config/i386/fbsd64.mh: New file.
3207 * config/i386/fbsd64.mt: New file.
3208
138e7be5
MK
32092003-07-11 Mark Kettenis <kettenis@gnu.org>
3210
3211 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3212 `sc_regs_offset' and `sc_fpregs_offset'.
3213 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3214 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3215 (alpha_sigtramp_register_address): Rewrite to use new members of
3216 `struct gdbarch_tdep'.
3217 (alpha_gdbarch_init): Initialize new members of struct
3218 gdbarch_tdep'.
3219 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3220 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3221 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3222 (alphafbsd_pc_in_sigtramp): Implement.
3223 (alphafbsd_sigtramp_offset): New function.
3224 (alphafbsd_sigcontext_addr): New function.
3225 (alphafbsd_init_abi): Initialize signal trampoline related members
3226 of `struct gdbarch_tdep'.
3227 (_initialize_alphafbsd_tdep): Add prototype.
3228
95303a68
TR
32292003-07-11 Theodore A. Roth <troth@openavr.org>
3230
ba292e4c
TR
3231 * Makefile.in (install-only): Quote sed expression when generating
3232 transformed_name.
95303a68 3233
6896c0c7
RH
32342003-07-11 Richard Henderson <rth@redhat.com>
3235
3236 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3237 * dwarf2-frame.c: Include complaints.h.
3238 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3239 variable initialization; return NULL on error.
3240 (decode_frame_entry): New.
3241
8edd5d01
AC
32422003-07-11 Andrew Cagney <cagney@redhat.com>
3243
c4a09524
AC
3244 * frame.h (frame_address_in_block): Delete declaration.
3245 * blockframe.c (frame_address_in_block): Delete function.
3246 (get_frame_block): Use get_frame_address_in_block.
3247 (block_innermost_frame): Ditto.
3248 * stack.c (print_frame, backtrace_command_1): Ditto.
3249
8edd5d01
AC
3250 * frame.h (get_frame_address_in_block): Declare.
3251 (frame_unwind_address_in_block): Declare.
3252 * frame.c (frame_unwind_address_in_block): New function.
3253 (get_frame_address_in_block): New function.
3254
f7968451
AC
32552003-07-10 Andrew Cagney <cagney@redhat.com>
3256
3257 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3258 pre-default. Note: re-generate has no effect.
3259
ae99b398
AC
32602003-07-10 Andrew Cagney <cagney@redhat.com>
3261
3262 * gdbarch.sh: When a variable, but not a function, compare against
3263 0. Fix problem in previous patch.
3264 * gdbarch.c: Re-generate.
3265
956ac328
AC
32662003-07-10 Andrew Cagney <cagney@redhat.com>
3267
3268 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3269 functions against NULL, not 0.
3270 * gdbarch.c: Re-generate.
3271
287c3240
FF
32722003-07-10 Fred Fish <fnf@ninemoons.com>
3273
3274 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3275 null string instead of a null pointer.
3276 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3277
32f63c4b
MS
32782003-07-09 Michael Snyder <msnyder@redhat.com>
3279
3280 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3281
402ecd56
MK
32822003-07-09 Mark Kettenis <kettenis@gnu.org>
3283
3284 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3285 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3286 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3287 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3288 * x86-64-tdep.c: ... from here.
3289
c481dac7
AS
32902003-07-09 Andreas Schwab <schwab@suse.de>
3291
3292 * m68k-tdep.h (enum struct_return): Define.
3293 (struct gdbarch_tdep): Add struct_return.
3294 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3295 bytes are padded to the right, not to the left. Pass struct value
3296 address in register %a1, not on stack.
3297 (m68k_use_struct_convention): New function.
3298 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3299 struct_return in tdep to pcc_struct_return.
3300 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3301 reg_struct_return.
3302
64176fa3
JB
33032003-07-09 Joel Brobecker <brobecker@gnat.com>
3304
3305 * somread.c (som_symfile_offsets): Fix compilation error.
3306
96a4ee76
AC
33072003-07-09 Andrew Cagney <cagney@redhat.com>
3308
3309 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3310 Add comments about the checks.
3311
1517c6d1
AC
33122003-07-08 Andrew Cagney <cagney@redhat.com>
3313
3314 * Makefile.in: Make dependency section headers consistent.
3315 (config_h): Move to $BUILD headers section.
3316 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3317 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3318 (ada-exp.tab.c): Move to YACC/LEX section.
3319 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3320 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3321
dc5dd1eb
KW
33222003-07-08 Kris Warkentin <kewarken@qnx.com>
3323
3324 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3325 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3326 of strerror with safe_strerror, use ISO C function definitions,
3327 and replace instances of sprintf with snprintf.
dc5dd1eb 3328
612dde91
AC
33292003-07-07 Andrew Cagney <cagney@redhat.com>
3330
3331 * frame.c (get_prev_frame): Enable check for identical frames.
3332 Update comments. Update error messages.
3333
492c11d3
JB
33342003-07-07 Joel Brobecker <brobecker@gnat.com>
3335
3336 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3337
376a5a49
JB
33382003-07-07 Joel Brobecker <brobecker@gnat.com>
3339
3340 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3341 sort_symtab_syms, no longer necessary.
3342
22b4a9ad
JB
33432003-07-07 Joel Brobecker <brobecker@gnat.com>
3344
3345 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3346
5bbcb741
JB
33472003-07-07 Joel Brobecker <brobecker@gnat.com>
3348
3349 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3350 (mips_register_byte): Likewise.
3351
c139e7d9
DJ
33522003-07-07 Daniel Jacobowitz <drow@mvista.com>
3353
3354 * Makefile.in (sparc_tdep_h): New.
3355 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3356 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3357 * sparc-linux-nat.c: Include "sparc-tdep.h".
3358 * sparc-nat.c: Likewise.
3359 * sparc-tdep.c: Likewise.
3360 * sparc64nbsd-nat.c: Likewise.
3361 * sparcnbsd-nat.c: Likewise.
3362 * sparcnbsd-tdep.c: Likewise.
3363 * sparc-tdep.h: New file.
3364 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3365 and sparc_npc_regnum.
3366
fd8f87c5
DJ
33672003-07-07 Daniel Jacobowitz <drow@mvista.com>
3368
3369 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3370 (mips_linux_cannot_store_register): List supported instead of
3371 unsupported registers.
3372
13adf674
DJ
33732003-07-07 Daniel Jacobowitz <drow@mvista.com>
3374
3375 * disasm.c (dump_insns): Separate instructions from addresses.
3376
8de307e0
AS
33772003-07-07 Andreas Schwab <schwab@suse.de>
3378
3379 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3380 dependencies.
3381 * m68k-tdep.c (NUM_FREGS): Delete.
3382 (SIG_PC_FP_OFFSET): Delete.
3383 (TARGET_M68K): Delete.
3384 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3385 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3386 P_MOVEL_SP, P_MOVEML_SP): Define.
3387 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3388 P_TRAP): Delete.
3389 (m68k_register_raw_size): Delete.
3390 (m68k_register_virtual_size): Delete.
3391 (m68k_register_type): Renamed from m68k_register_virtual_type and
3392 add gdbarch argument.
3393 (m68k_store_struct_return): Delete.
3394 (m68k_deprecated_extract_return_value): Delete.
3395 (m68k_deprecated_extract_struct_value_address): Delete.
3396 (m68k_frame_chain): Delete.
3397 (m68k_frame_saved_pc): Delete.
3398 (m68k_fix_call_dummy): Delete.
3399 (m68k_push_dummy_frame): Delete.
3400 (m68k_pop_frame): Delete.
3401 (m68k_extract_return_value): New function.
3402 (m68k_store_return_value): Rewrite using regcache.
3403 (m68k_extract_struct_value_address): Rewrite using regcache.
3404 (m68k_push_dummy_call): New function.
3405 (struct m68k_frame_cache): Define.
3406 (m68k_alloc_frame_cache): New function.
3407 (m68k_analyze_frame_setup): New function.
3408 (m68k_analyze_register_saves): New function.
3409 (m68k_analyze_prologue): New function.
3410 (m68k_skip_prologue): Rewrite using above functions.
3411 (m68k_unwind_pc): New function.
3412 (m68k_frame_cache): New function.
3413 (m68k_frame_this_id): New function.
3414 (m68k_frame_prev_register): New function.
3415 (m68k_frame_unwind): New variable.
3416 (m68k_frame_p): New function.
3417 (m68k_sigtramp_frame_cache): New function.
3418 (m68k_sigtramp_frame_this_id): New function.
3419 (m68k_sigtramp_frame_prev_register): New function.
3420 (m68k_sigtramp_frame_unwind): New variable.
3421 (m68k_sigtramp_frame_p): New function.
3422 (m68k_frame_base_address): New function.
3423 (m68k_frame_base): New function.
3424 (m68k_unwind_dummy_id): New function.
3425 (fill_gregset): Use regcache_collect.
3426 (fill_fpregset): Likewise.
3427 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3428 defined.
3429 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3430 deprecated_init_frame_pc, deprecated_store_struct_return,
3431 deprecated_extract_return_value, deprecated_store_return_value,
3432 deprecated_frame_chain, deprecated_frame_saved_pc,
3433 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3434 deprecated_register_virtual_size,
3435 deprecated_max_register_raw_size,
3436 deprecated_max_register_virtual_size,
3437 deprecated_register_virtual_type, deprecated_register_size,
3438 deprecated_register_byte, deprecated_register_bytes,
3439 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3440 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3441 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3442 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3443 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3444 deprecated_push_dummy_frame, deprecated_pop_frame,
3445 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3446 only if SYSCALL_TRAP is defined. Set extract_return_value,
3447 store_return_value, extract_struct_value_address, register_type,
3448 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3449 predicates.
3450 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3451 M68K_MAX_REGISTER_SIZE): Define.
3452 (struct m68k_sigtramp_info): Define.
3453 (struct gdbarch_tdep): Add get_sigtramp_info.
3454 * m68klinux-nat.c (fetch_register): Use register_size instead of
3455 REGISTER_RAW_SIZE. Don't put assignment in if.
3456 (store_register): Likewise.
3457 (fetch_inferior_registers): Likewise.
3458 (store_inferior_registers): Likewise.
3459 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3460 (m68k_linux_frame_saved_pc): Delete.
3461 (m68k_linux_sigcontext_reg_offset,
3462 m68k_linux_ucontext_reg_offset): Define.
3463 (m68k_linux_get_sigtramp_info): New function.
3464 (m68k_linux_extract_return_value): Rewrite using regcache.
3465 (m68k_linux_store_return_value): Likewise.
3466 (m68k_linux_extract_struct_value_address): Likewise.
3467 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3468 Don't set deprecated_frame_saved_pc,
3469 deprecated_extract_return_value, deprecated_store_return_value,
3470 deprecated_extract_struct_value_address. Set
3471 extract_return_value, store_return_value,
3472 extract_struct_value_address.
3473
eb8bc282
AC
34742003-07-07 Andrew Cagney <cagney@redhat.com>
3475
3476 * expprint.c: Include "user-regs.h" instead of "frame.h".
3477 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3478 frame_map_regnum_to_name.
3479 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3480 (frame_map_name_to_regnum): Simplify, call
3481 user_reg_map_name_to_regnum.
3482 (frame_map_regnum_to_name): Simplify, call
3483 user_reg_map_regnum_to_name.
3484 (frame_register_unwind): Update.
3485 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3486 (_initialize_frame_reg): Call user_reg_add_builtin.
3487 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3488 (value_of_register): Use value_of_user_reg.
3489 * eval.c (evaluate_subexp_standard): Update.
3490 * parse.c (write_dollar_variable): Update.
3491 * d10v-tdep.c (d10v_print_registers_info): Update.
3492 * infcmd.c (registers_info): Update.
3493 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3494 (builtin_regs_h): Delete macro.
3495 (user_regs_h): Define.
3496 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3497 (builtin-regs.o): Delete target.
3498 (user-regs.o): Specify dependencies.
3499 (expprint.o): Update dependencies.
3500 (findvar.o): Update dependencies.
3501 (frame.o): Update dependencies.
3502 (std-regs.o): Update dependencies.
3503
9f476a01
CF
35042003-07-06 Christopher Faylor <cgf@redhat.com>
3505
3506 * win32-nat.c (solib_symbols_add): Use one variable for all section
3507 address stuff. Pass variable rather than address of variable to
3508 safe_symbol_file_add.
3509
a731b831
AS
35102003-07-06 Andreas Schwab <schwab@suse.de>
3511
3512 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3513
9f83329d
JB
35142003-07-04 Joel Brobecker <brobecker@gnat.com>
3515
3516 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3517
27e28cc5
KW
35182003-07-04 Kris Warkentin <kewarken@qnx.com>
3519
3520 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3521
35222003-07-04 Kris Warkentin <kewarken@qnx.com>
3523
3524 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3525 * config/i386/nto.mh: New file.
3526 * config/i386/nm-nto.h: New file.
3527 * configure.host: Add i[3456]86-*-nto*.
3528
100f2e98
JB
35292003-07-03 Joel Brobecker <brobecker@gnat.com>
3530
3531 * remote-vx.c (vx_add_symbols): Fix compilation error.
3532
e23457df
AC
35332003-07-03 Andrew Cagney <cagney@redhat.com>
3534
3535 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3536 * gdbarch.h, gdbarch.c: Re-generate.
3537 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3538 (legacy_register_name): Declare.
3539 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3540 (REGISTER_NAME): Define.
3541 * sparc-tdep.c (legacy_register_name): New function.
3542 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3543 (REGISTER_NAME): Define.
3544 (hppa64_register_name): Declare.
3545 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3546 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3547 (hppa64_register_name): New function.
3548 (hppa_register_name): New function.
3549 * arch-utils.c (legacy_register_name): Delete.
3550 * arch-utils.h (legacy_register_name): Delete.
3551
38caaeec
DJ
35522003-07-03 Daniel Jacobowitz <drow@mvista.com>
3553
3554 * cli/cli-interp.c (cli_interpreter_resume): Update the
3555 cli_uiout's stream to gdb_stdout.
3556
dadd712e
AC
35572003-07-03 Andrew Cagney <cagney@redhat.com>
3558
3559 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3560 predicate.
3561 * gdbarch.h, gdbarch.c: Re-generate.
3562 * regcache.c (init_regcache_descr): Use legacy code when either
3563 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3564
c7f1390e
DJ
35652003-07-02 Daniel Jacobowitz <drow@mvista.com>
3566
3567 * NEWS: Move "set logging" entry into GDB 6.0 section.
3568
4bc8c588
JB
35692003-07-02 Jim Blandy <jimb@redhat.com>
3570
a9dd42f1
JB
3571 * s390-tdep.c (struct frame_extra_info): new member:
3572 'stack_bought_valid'.
3573 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3574 initialize fextra_info->stack_bought.
3575 (s390_frameless_function_invocation): Don't trust the value of
3576 fextra_info_ptr->stack_bought unless
3577 fextra_info->stack_bought_valid is set.
3578
4bc8c588
JB
3579 New S390 prologue analyzer.
3580 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3581 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3582 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3583 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3584 compute_x_addr, s390_on_stack, s390_store,
3585 s390_get_signal_frame_info): New functions.
3586 (S390_NUM_SPILL_SLOTS): New macro.
3587 (s390_get_frame_info): Rewritten.
3588 (is_arg_reg): Deleted.
3589
3590 Break out the decoding of S/390 instructions into separate
3591 functions, to make it more legible, and easier to check
3592 against the spec.
3593 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3594 is_rx, is_rxe): New functions.
3595 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3596 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3597 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3598 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3599 enums for opcode values. (Is this an improvement?)
3600
fd13a04a
AC
36012003-07-02 Andrew Cagney <cagney@redhat.com>
3602
3603 * i386-tdep.c: Revert change committed as part of trad-frame code
3604 below.
3605
3f8091c1
DJ
36062003-07-02 Daniel Jacobowitz <drow@mvista.com>
3607
3608 * breakpoint.c (insert_catchpoint): Make static.
3609
8dd5115e
AS
36102003-07-02 Andreas Schwab <schwab@suse.de>
3611
3612 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3613 former ia64_push_arguments and ia64_push_return_address, and use
3614 regcache functions instead of read/write_register.
3615 (ia64_gdbarch_init): Set push_dummy_call instead of
3616 deprecated_push_arguments and deprecated_push_return_address.
3617
a2229c23
AJ
36182003-07-01 Andreas Jaeger <aj@suse.de>
3619
3620 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3621 before the call.
3622 Set %rax only to number of SSE registers used.
3623
3b3850e8
AC
36242003-07-01 Andrew Cagney <cagney@redhat.com>
3625
3626 * trad-frame.h: Update comments, a -1 .addr is reserved.
3627 (trad_frame_value_p, trad_frame_addr_p): Declare.
3628 (trad_frame_reg_p): Declare.
3629 (trad_frame_set_value): Rename trad_frame_register_value.
3630 (trad_frame_set_unknown): Declare.
3631 * trad-frame.c (trad_frame_realreg_p): New function.
3632 (trad_frame_addr_p, trad_frame_value_p): New function.
3633 (trad_frame_set_unknown): New function.
3634 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3635 (trad_frame_prev_register): Use trad_frame_realreg_p,
3636 trad_frame_addr_p and trad_frame_value_p.
3637 (trad_frame_set_value): Rename trad_frame_register_value.
3638 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3639 and trad_frame_set_value.
a2229c23 3640
4d819d0e
JB
36412003-06-30 Jim Blandy <jimb@redhat.com>
3642
3643 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3644 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3645 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3646 for 16 registers, and then 32 more bytes.
3647 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3648 New macros.
3649 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3650 Move up in the file, since it's now used by is_simple_arg.
3651 (is_simple_arg): Don't assume registers are four bytes long.
3652 Exclude all double arguments. Extended floats are not simple
3653 args.
3654 (is_power_of_two): New function.
3655 (pass_by_copy_ref): Call is_power_of_two, and check that the
3656 length fits in a register, rather than listing all the acceptable
3657 sizes. Extended floats are not passed by reference.
3658 (s390_push_arguments): Don't assume registers are four bytes long.
3659 Reserve an argument register to point to the buffer for structures
3660 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3661 S390_STACK_FRAME_OVERHEAD.
3662
1ad828f1
AS
36632003-06-30 Andreas Schwab <schwab@suse.de>
3664
3665 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3666 format error message.
3667
39b00981
JB
36682003-06-30 Joel Brobecker <brobecker@gnat.com>
3669
3670 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3671
b2a7f303
DC
36722003-06-30 David Carlton <carlton@kealia.com>
3673
3674 Band-aid for PR c++/1245.
3675 * Makefile.in (cp-support.o): Depend on complaints_h.
3676 * cp-support.c: Include complaints.h. Add declaration for
3677 find_last_component.
3678 (cp_find_first_component): Separate code into
3679 cp_find_first_component_aux.
3680 (cp_find_first_component_aux): Call demangled_name_complaint.
3681 (demangled_name_complaint): New.
3682
a257b5bb
AC
36832003-06-30 Andrew Cagney <cagney@redhat.com>
3684
3685 * remote.c (remote_write_bytes): Explicitly compute and then use
3686 the payload size. Update comments to reflect. Fixes problem of
3687 GDB not sending small packets as found by Fred Fish.
3688
0a2cfde4
AC
36892003-06-30 Andrew Cagney <cagney@redhat.com>
3690
3691 * remote.c (remote_async_wait): Fix -Wformat problem.
3692
3fcb8548
AC
36932003-06-29 Andrew Cagney <cagney@redhat.com>
3694
3695 * remote.c (remote_wait): Call error, and not warning, when the
3696 packet is corrupt.
3697 (remote_async_wait): Ditto.
3698
9f9970a3
DJ
36992003-06-29 Daniel Jacobowitz <drow@mvista.com>
3700
3701 * sparc-tdep.c (sparc_y_regnum): Make external again.
3702
83a8ccca
DJ
37032003-06-29 Daniel Jacobowitz <drow@mvista.com>
3704
3705 * cli/cli-logging.c (pop_output_files): Add void to function
3706 definition.
3707
d2cf594a
AC
37082003-06-29 Andrew Cagney <cagney@redhat.com>
3709
3710 * frame.c (frame_register_unwind): Use unsigned char when dumping
3711 the buffer contents.
3712
0fac0b41
DJ
37132003-06-28 Daniel Jacobowitz <drow@mvista.com>
3714
3715 * cli/cli-logging.c: New file.
3716 * cli-out.c (struct ui_out_data): Add original_stream.
3717 (cli_redirect): New function.
3718 (cli_ui_out_impl): Add cli_redirect.
3719 (cli_out_new): Initialize original_stream.
3720 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3721 (uo_redirect, ui_out_redirect): New.
3722 * ui-out.h (struct ui_out_impl): Add redirect member.
3723 (redirect_ftype): New.
3724 (ui_out_redirect): Add prototype.
3725 * Makefile.in: Add rules for cli-logging.c.
3726 * NEWS: Mention "set logging".
3727
88a07d7c
EZ
37282003-06-27 Elena Zannoni <ezannoni@redhat.com>
3729
3730 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3731
4eb58876
AC
37322003-06-27 Andrew Cagney <cagney@redhat.com>
3733
3734 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3735 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3736 * avr-tdep.c (avr_call_dummy_address): Delete function.
3737 (avr_gdbarch_init): Do not set call_dummy_address.
3738
1549f619
EZ
37392003-06-27 Elena Zannoni <ezannoni@redhat.com>
3740
3741 * symfile.c (syms_from_objfile): Move variables to inner block.
3742 Move the checks for the non-mainline case a bit earlier to avoid
3743 doing some useless computations.
3744
3cb3398d
EZ
37452003-06-27 Elena Zannoni <ezannoni@redhat.com>
3746
3747 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3748
3799ccc6
EZ
37492003-06-26 Elena Zannoni <ezannoni@redhat.com>
3750
3751 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3752 sections.
3753
ce1f6491
MC
37542003-06-26 Michael Chastain <mec@shout.net>
3755
3756 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3757 gdb/testsuite/gdb.c++/pr-1210.exp.
3758
d958dfd0
AC
37592003-06-26 Andrew Cagney <cagney@redhat.com>
3760
3761 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3762 altivec_expression.h and altivec_registers.h.
3763
d31431ed
AC
37642003-06-26 Andrew Cagney <cagney@redhat.com>
3765
3766 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3767 info->mach when MIPS16. Patch suggested by Fred Fish.
3768
714b1282
AC
37692003-06-26 Andrew Cagney <cagney@redhat.com>
3770
3771 * utils.c (internal_vproblem): Print the problem to a reason
3772 buffer and then pass to query. Make the msg variable more local.
3773
42efa47a
AC
37742003-06-26 Andrew Cagney <cagney@redhat.com>
3775
3776 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3777 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3778 * gdbarch.h, gdbarch.c: Re-generate.
3779 * frame-base.c (default_frame_args_address): Update. Use
3780 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3781 not available.
3782 (default_frame_locals_address): Ditto for
3783 DEPRECATED_FRAME_LOCALS_ADDRESS.
3784 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3785 (vax_frame_num_args): Update.
3786 (vax_gdbarch_init): Update.
3787 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3788 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3789 * mcore-tdep.c (mcore_gdbarch_init): Update.
3790 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3791 * ia64-tdep.c (ia64_gdbarch_init): Update.
3792 * symtab.h (address_class): Update comments.
3793 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3794 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3795 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3796 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3797 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3798 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3799 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3800 * alpha-mdebug-tdep.c: Update.
3801 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3802
8ffd9b1b
AJ
38032003-06-26 Andreas Jaeger <aj@suse.de>
3804
3805 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3806 of SSE registers so that varargs functions work. Rework handling
3807 of passing arguments on the stack.
3808 (x86_64_store_return_value): Return double and float values in SSE
3809 register.
3810
e8ac10a6
MC
38112003-06-24 Michael Chastain <mec@shout.net>
3812
3813 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3814 the "constructor breakpoints ignored" bug.
3815
986af8e6
DC
38162003-06-25 David Carlton <carlton@kealia.com>
3817
3818 * MAINTAINERS: Update e-mail address.
3819
d64558a5
JB
38202003-06-24 Jim Blandy <jimb@redhat.com>
3821
e538d2d7
JB
3822 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3823
02631ec0
JB
3824 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3825 function.
3826 (ppc_linux_init_abi): Register it as the
3827 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3828
e716d87a
JB
3829 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3830 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3831 method.
3832
d64558a5
JB
3833 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3834 (ppc64_standard_linkage_target): Use it.
3835
449a5da4
AC
38362003-06-23 Andrew Cagney <cagney@redhat.com>
3837
3838 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3839 for 0 "int0" and 4 "int32" sized registers.
3840 * gdbtypes.c (builtin_type_int0): Define.
3841 (build_gdbtypes): Initialize builtin_type_int0.
3842 * gdbtypes.h (builtin_type_int0): Declare.
3843
b2a02dda
SC
38442003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3845
3846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3847 as characters are unsigned.
3848
fba3138e
DJ
38492003-06-22 Daniel Jacobowitz <drow@mvista.com>
3850
3851 PR gdb/1179
3852 * dwarfread.c (struct_type): Skip static fields without crashing.
3853
f6c8180b
AC
38542003-06-22 Andrew Cagney <cagney@redhat.com>
3855
3856 GDB 6.0 branch created.
f2c06f52
AC
3857 * README: Update.
3858 * PROBLEMS: Update. Empty.
3859 * NEWS: Update.
f6c8180b 3860
ae822768
DJ
38612003-06-22 Daniel Jacobowitz <drow@mvista.com>
3862
3863 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3864 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3865
261de166
AC
38662003-06-22 Andrew Cagney <cagney@redhat.com>
3867
3868 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3869 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3870 Velikov.
3871
30e94205
DJ
38722003-06-22 Daniel Jacobowitz <drow@mvista.com>
3873
3874 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3875 compilers.
3876
9e14d721
DJ
38772003-06-21 Daniel Jacobowitz <drow@mvista.com>
3878
3879 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3880 argument of val_print.
3881 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3882 to the address argument of baseclass_offset or target_read_memory.
3883 Do add it to the argument of cp_print_value_fields.
3884
a4b8ebc8
AC
38852003-06-21 Andrew Cagney <cagney@redhat.com>
3886
3887 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3888 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3889 instead of 0..NUM_REGS.
3890 (mips_register_reggroup_p): New function.
3891 (mips_pseudo_register_write): New function.
3892 (mips_pseudo_register_read): New function.
3893 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3894 based on the register's type.
3895 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3896 cooked.
3897 (mips_get_saved_register): Simplify. Assert that REGNO is a
3898 pseudo / cooked.
3899 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3900 (mips_register_type): Replace mips_register_virtual_type. Map
3901 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3902 when available.
3903 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3904 that the register is cooked / virtual.
3905 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3906 Only get the extra info when needed.
3907 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3908 (mips32_heuristic_proc_desc): Fetch the cooked register.
3909 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3910 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3911 (mips_print_register): Use gdbarch_register_type, instead of
3912 REGISTER_VIRTUAL_TYPE.
3913 (print_gp_register_row): Use gdbarch_register_type, instead of
3914 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3915 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3916 Print the pseudo / cooked registers.
3917 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3918 Print the pseudo / cooked registers.
3919 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3920 REG_NUM is pseudo / cooked.
3921 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3922 (mips_n32n64_xfer_return_value): Ditto.
3923 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3924 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3925 (mips_register_sim_regno): New function.
3926 (mips_gdbarch_init): Set deprecated_register_byte,
3927 register_group_p, pseudo_register_write, pseudo_register_read,
3928 register_sim_regno, and num_pseudo_regs. Set register_type,
3929 instead of register_virtual_type.
3930 * Makefile.in (mips-tdep.o): Update dependencies.
3931 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3932 REGISTER_VIRTUAL_TYPE.
3933 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3934 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3935 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3936 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3937 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3938
325ed089
DJ
39392003-06-21 Daniel Jacobowitz <drow@mvista.com>
3940
3941 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3942 * cli/cli-cmds.c: Include "gdb_vfork.h".
3943 (shell_escape): Use vfork.
3944
f0e7d0e8
AC
39452003-06-21 Andrew Cagney <cagney@redhat.com>
3946
c57bb9fa
AC
3947 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3948 32 bit floating-point register saves.
3949
6e51443a
AC
3950 * frame.h (deprecated_unwind_get_saved_register): Delete.
3951 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3952 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3953 and deprecated_get_next_frame_hack instead of
3954 deprecated_unwind_get_saved_register.
3955
ed183c7c
AC
3956 * mips-tdep.c (mips_dump_tdep): Do not print
3957 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3958
f0e7d0e8
AC
3959 * frame.c (get_frame_register): New function.
3960 (frame_unwind_register_signed): New function.
3961 (get_frame_register_signed): New function.
3962 (frame_unwind_register_unsigned): New function.
3963 (get_frame_register_unsigned): New function.
3964 * frame.h: Add comments on naming schema.
3965 (get_frame_register, frame_unwind_register_signed): Declare.
3966 (get_frame_register_signed, get_frame_register_signed): Declare.
3967 (frame_unwind_register_unsigned): Declare.
3968 (get_frame_register_unsigned): Declare.
3969
2224d941
TR
39702003-06-20 Theodore A. Roth <troth@openavr.org>
3971
3972 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3973
8619218d
TR
39742003-06-20 Theodore A. Roth <troth@openavr.org>
3975
3976 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3977 (avr_read_sp): Ditto.
3978
0b1b50c0
DJ
39792003-06-20 Daniel Jacobowitz <drow@mvista.com>
3980
3981 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3982 * config/arm/nm-linux.h: Likewise.
3983 * config/arm/tm-linux.h: Likewise.
3984 * config/ia64/nm-linux.h: Likewise.
3985 * config/ia64/tm-ia64.h: Likewise.
3986 * config/s390/tm-linux.h: Likewise.
3987 * config/s390/tm-s390.h: Likewise.
3988 * s390-nat.c: Likewise.
3989 * s390-tdep.c: Likewise.
3990
3991 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3992 * config/ia64/linux.mt: Likewise.
3993 * config/m68k/linux.mh: Likewise.
3994 * config/mips/linux.mt: Likewise.
3995 * config/powerpc/linux.mh: Likewise.
3996 * config/sh/linux.mt: Likewise.
3997
c8c18e65
KW
39982003-06-19 Kris Warkentin <kewarken@qnx.com>
3999
4000 * solib.c (solib_open): Change tests for whether to search
4001 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4002 comments.
4003
dcccef2e
TR
40042003-06-19 Theodore A. Roth <troth@openavr.org>
4005
4006 * avr-tdep.c (avr_frame_address): Delete function.
4007 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4008 set_gdbarch_frame_args_address.
4009
5861a190
AC
40102003-06-19 Andrew Cagney <cagney@redhat.com>
4011
4012 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4013 (REGISTER_CONVERT_FROM_TYPE): Delete.
4014 (mips_register_convert_to_type): Delete declaration.
4015 (mips_register_convert_from_type): Delete declaration.
4016 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4017 kernel/.
4018
0274a8ce
MS
40192003-06-19 Michael Snyder <msnyder@redhat.com>
4020
4021 * linux-nat.h: New file.
4022 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4023 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4024 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4025 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4026 (linux_make_note_section): Iterate over lwps instead of threads.
4027 (linux_do_thread_registers): Use lwp instead of merged pid.
4028 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4029 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4030 Add dependency on linux_nat_h.
4031
adf5f719
TR
40322003-06-19 Theodore A. Roth <troth@openavr.org>
4033
4034 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4035
6766a268
DJ
40362003-06-19 Daniel Jacobowitz <drow@mvista.com>
4037
4038 * varobj.c (get_type, get_target_type): Use check_typedef.
4039
1171114a
DJ
40402003-06-19 Daniel Jacobowitz <drow@mvista.com>
4041
4042 * breakpoint.c (insert_catchpoint): Call internal_error.
4043
adcf68a2
TR
40442003-06-19 Theodore A. Roth <troth@openavr.org>
4045
4046 * avr-tdep.c (avr_push_dummy_code): Delete function.
4047 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4048
ea67f13b
DJ
40492003-06-19 Daniel Jacobowitz <drow@mvista.com>
4050
4051 * arch-utils.c (default_prepare_to_proceed): Remove.
4052 (generic_prepare_to_proceed): Remove.
4053 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4054 (generic_prepare_to_proceed): Remove prototype.
4055 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4056 * gdbarch.c: Regenerate.
4057 * gdbarch.h: Regenerate.
4058 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4059 * hppah-nat.c (hppa_switched_threads): Remove.
4060 * infrun.c (prepare_to_proceed): New static function, copied from
4061 generic_prepare_to_proceed. Remove select_it argument.
4062 (proceed): Call prepare_to_proceed.
4063 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4064 variables.
4065 (ptrace_wait): Don't set the removed variables.
4066 (hppa_switched_threads): Remove.
4067 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4068 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4069 (lin_lwp_prepare_to_proceed): Remove prototype.
4070 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4071 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4072
4add8633
TR
40732003-06-18 Theodore A. Roth <troth@openavr.org>
4074
4075 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4076 trad-frame.h.
4077 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4078 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4079 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4080 (AVR_PROLOGUE_*): Enumerate prologue types.
4081 (struct frame_extra_info): Remove.
4082 (struct avr_unwind_cache): Define.
4083 (avr_write_sp): Delete function.
4084 (avr_read_fp): Ditto.
4085 (avr_init_extra_frame_info): Ditto.
4086 (avr_pop_frame): Ditto.
4087 (avr_frame_saved_pc): Ditto.
4088 (avr_saved_pc_after_call): Ditto.
4089 (avr_push_return_address): Ditto.
4090 (avr_frame_chain): Ditto.
4091 (avr_store_struct_return): Ditto.
4092 (avr_push_arguments): Ditto.
4093 (avr_scan_prologue): Update comments. Changed to set up the info for
4094 cache unwinding. Now returns end of prologue PC.
4095 (avr_skip_prologue): Better handling of functions lacking a prologue
4096 by using avr_scan_prologue.
4097 (avr_scan_arg_moves): New function.
4098 (avr_saved_regs_unwinder): Ditto.
4099 (avr_frame_unwind_cache): Ditto.
4100 (avr_unwind_pc): Ditto.
4101 (avr_frame_this_id): Ditto.
4102 (avr_frame_prev_register): Ditto.
4103 (avr_frame_p): Ditto.
4104 (avr_frame_base_address ): Ditto.
4105 (avr_unwind_dummy_id): Ditto.
4106 (avr_push_dummy_code): Ditto.
4107 (push_stack_item): Ditto.
4108 (pop_stack_item): Ditto.
4109 (avr_push_dummy_call): Ditto.
4110 (struct stack_item): Define.
4111 (avr_frame_unwind): Declare structure.
4112 (avr_frame_base): Ditto.
4113 (avr_gdbarch_init): Remove calls to
4114 set_gdbarch_deprecated_init_frame_pc,
4115 set_gdbarch_deprecated_target_read_fp,
4116 set_gdbarch_deprecated_dummy_write_sp,
4117 set_gdbarch_deprecated_fp_regnum,
4118 set_gdbarch_deprecated_push_arguments,
4119 set_gdbarch_deprecated_push_return_address,
4120 set_gdbarch_deprecated_pop_frame,
4121 set_gdbarch_deprecated_store_struct_return,
4122 set_gdbarch_deprecated_frame_init_saved_regs,
4123 set_gdbarch_deprecated_init_extra_frame_info,
4124 set_gdbarch_deprecated_frame_chain,
4125 set_gdbarch_deprecated_frame_saved_pc,
4126 set_gdbarch_deprecated_saved_pc_after_call.
4127 Add calls to set_gdbarch_push_dummy_call,
4128 set_gdbarch_push_dummy_code,
4129 frame_unwind_append_predicate,
4130 frame_base_set_default,
4131 set_gdbarch_unwind_dummy_id,
4132 set_gdbarch_unwind_pc.
4133 Wrap a long line.
4134
7be04a68
MS
41352003-06-18 Corinna Vinschen <vinschen@redhat.com>
4136
4137 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4138 registers for H8/300S.
4139 (h8300_print_registers_info): Ditto.
8ffd9b1b 4140 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4141
ae087d01
DJ
41422003-06-18 Daniel Jacobowitz <drow@mvista.com>
4143
4144 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4145 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4146 (lin_lwp_wait): Likewise. Update comments.
4147 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4148 (pull_pid_from_list, linux_record_stopped_pid): New.
4149
07d8f827
SC
41502003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4151
4152 * ada-lang.c (scan_discrim_bound): Name first argument.
4153 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4154 declared by ALL_BLOCK_SYMBOLS.
4155
7cb47b14
SC
41562003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4157
4158 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4159 ("regcache.h"): Include it.
4160 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4161
6ad8ae5c
DJ
41622003-06-17 Daniel Jacobowitz <drow@mvista.com>
4163
4164 * NEWS: Mention gdbserver detach change and "disconnect" command.
4165 * infcmd.c (disconnect_command): New function.
4166 (_initialize_infcmd): Add ``disconnect'' command.
4167 * remote.c (remote_async_detach): Delete.
4168 (remote_detach): Merge remote_async_detach.
4169 (remote_disconnect): New.
4170 (init_remote_ops): Set to_disconnect.
4171 (init_remote_cisco_ops): Likewise.
4172 (init_remote_async_ops): Likewise. Use remote_detach.
4173 * target.c (cleanup_target): Default to_disconnect.
4174 (update_current_target): Inherit to_disconnect.
4175 (target_disconnect, debug_to_disconnect): New functions.
4176 (setup_target_debug): Set to_disconnect.
4177 * target.h (struct target_ops): Add to_disconnect.
4178 (target_disconnect): Add prototype.
4179
687595f9
DJ
41802003-06-17 Daniel Jacobowitz <drow@mvista.com>
4181
4182 * breakpoint.c (insert_catchpoint): New function.
4183 (insert_breakpoints): Use catch_exceptions to call
4184 insert_catchpoint. Disable catchpoints if they fail to insert.
4185
29239a8f
DJ
41862003-06-17 Daniel Jacobowitz <drow@mvista.com>
4187
4188 * symfile.c (reread_symbols): Clear sym_private.
4189
2cdf3c63
AC
41902003-06-17 Andrew Cagney <cagney@redhat.com>
4191
4192 * trad-frame.h (struct frame_info): Add opaque declaration.
4193 * remote-fileio.h (struct cmd_list_element): Add opaque
4194 declaration.
4195 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4196 comments.
4197
cf0e1e0d
DJ
41982003-06-17 Daniel Jacobowitz <drow@mvista.com>
4199
4200 * remote.c (remote_prepare_to_store): Replace call to
4201 deprecated_read_register_bytes with multiple regcache_raw_read
4202 calls.
4203
192cdb19
KW
42042003-06-17 Kris Warkentin <kewarken@qnx.com>
4205
4206 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4207 (nto_find_and_open_solib): Likewise.
4208 (nto_init_solib_absolute_prefix): Likewise.
4209 (_initialize_nto_tdep): Fix indentation.
4210
89929b45
KW
42112003-06-17 Kris Warkentin <kewarken@qnx.com>
4212
4213 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4214
46019f27
KW
42152003-06-17 Kris Warkentin <kewarken@qnx.com>
4216
4217 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4218
1a38736e
JB
42192003-06-17 Jim Blandy <jimb@redhat.com>
4220
4221 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4222
3605c34a
TR
42232003-06-16 Theodore A. Roth <troth@openavr.org>
4224
4225 * avr-tdep.c (avr_extract_return_value): New function.
4226 (avr_gdbarch_init): Set extract_return_value method.
4227
870b3035
AC
42282003-06-16 Andrew Cagney <cagney@redhat.com>
4229
4230 * frame.h (deprecated_get_next_frame_hack): Declare.
4231 * frame.c (legacy_saved_regs_prev_register): Only require
4232 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4233 there are always saved regs.
4234 (deprecated_generic_get_saved_register): Do not require
4235 DEPRECATED_FRAME_INIT_SAVED_REGS.
4236 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4237 use frame ID unwind instead.
4238 (deprecated_get_next_frame_hack): New function.
4239
63d47a7d
CV
42402003-06-16 Corinna Vinschen <vinschen@redhat.com>
4241
4242 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4243 (h8300_push_dummy_call): ...this function. Some minor optimization.
4244 (h8300_push_return_address): Remove.
4245 (h8300_gdbarch_init): Remove calls to
4246 set_gdbarch_deprecated_dummy_write_sp,
4247 set_gdbarch_deprecated_push_arguments and
4248 set_gdbarch_deprecated_push_return_address.
4249 Add call to set_gdbarch_push_dummy_call.
4250
4bb1dc5e
CV
42512003-06-16 Corinna Vinschen <vinschen@redhat.com>
4252
4253 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4254 (E_PSEUDO_EXR_REGNUM): Ditto.
4255 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4256 registers into safe registers.
4bb1dc5e
CV
4257 (h8300_skip_prologue): Check for stm instruction to push registers
4258 used for register variables onto stack.
4259 (gdb_print_insn_h8300): Remove.
4260 (h8300_examine_prologue): Add a comment.
4261 (h8300_register_name): Take pseudo registers into account.
4262 (h8300s_register_name): Ditto.
4263 (h8300sx_register_name): Ditto.
4264 (h8300_print_register): Ditto.
4265 (h8300_print_registers_info): Define "nice" printing order.
4266 (h8300_saved_pc_after_call): Take pseudo registers into account.
4267 (h8300_register_type): Ditto. Return type used for remote connection
4268 when requesting real CCR or EXR register, return actual type when
4269 requesting pseudo CCR or EXR.
4270 (h8300_pseudo_register_read): New function.
4271 (h8300_pseudo_register_write): Ditto.
4272 (h8300_dbg_reg_to_regnum): Ditto.
4273 (h8300s_dbg_reg_to_regnum): Ditto.
4274 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4275 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4276 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4277 set_gdbarch_print_insn architecture dependent.
4278 Call set_gdbarch_pseudo_register_read and
4279 set_gdbarch_pseudo_register_write.
4280 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4281
a59fe496
AC
42822003-06-16 Andrew Cagney <cagney@redhat.com>
4283
4284 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4285 * gdbarch.h, gdbarch.c: Re-generate.
4286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4287 * s390-tdep.c (s390_gdbarch_init): Update.
4288 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4289 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4290 * mips-tdep.c (mips_gdbarch_init): Update.
4291 * mcore-tdep.c (mcore_gdbarch_init): Update.
4292 * cris-tdep.c (cris_gdbarch_init): Update.
4293 * infcall.c (call_function_by_hand): Update.
4294 * ia64-tdep.c (ia64_push_arguments): Update comment.
4295 * frame.c (legacy_get_prev_frame): Do not assume
4296 SAVE_DUMMY_FRAME_TOS_P.
4297 * dummy-frame.c (find_dummy_frame): Update comment.
4298
6f4e5a41
AC
42992003-06-16 Andrew Cagney <cagney@redhat.com>
4300
4301 * regcache.c (do_cooked_read): Do not use register_valid_p.
4302
72fab697
TR
43032003-06-15 Theodore A. Roth <troth@openavr.org>
4304
4305 * avr-tdep.c (avr_register_type): Remove a blank line.
4306 (avr_scan_prologue): Correct some comments.
4307
e3d8b004
TR
43082003-06-15 Theodore A. Roth <troth@openavr.org>
4309
4310 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4311 prologue types.
8ffd9b1b 4312 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4313 option.
4314 Add code to scan -mcall-prologues for mega devices.
4315
866b76ea
TR
43162003-06-15 Theodore A. Roth <troth@openavr.org>
4317
4318 * avr-tdep.c (avr_register_byte): Delete function.
4319 (avr_register_raw_size): Delete function.
4320 (avr_register_virtual_size): Delete function.
4321 (avr_register_virtual_type): Delete function.
4322 (avr_register_type): New function.
4323 (avr_address_to_pointer): Remove unused code.
4324 (avr_read_fp): Need to read FP as two separate bytes due to change to
4325 avr_register_type() usage.
4326 (avr_gdbarch_init): Don't set deprecated_register_size.
4327 Don't set deprecated_register_bytes.
4328 Don't set deprecated_register_byte.
4329 Don't set deprecated_register_raw_size.
4330 Don't set deprecated_max_register_raw_size.
4331 Don't set deprecated_register_virtual_size.
4332 Don't set deprecated_max_register_virtual_size.
4333 Don't set deprecated_register_virtual_type.
4334 Set register_type method.
4335
3993f6b1
DJ
43362003-06-15 Daniel Jacobowitz <drow@mvista.com>
4337
4338 * Makefile.in (linux-nat.o): Add rule.
4339 * linux-nat.c: New file.
4340 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4341 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4342 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4343 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4344 * config/arm/linux.mh (NATDEPFILES): Likewise.
4345 * config/i386/linux.mh (NATDEPFILES): Likewise.
4346 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4347 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4348 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4349 * config/mips/linux.mh (NATDEPFILES): Likewise.
4350 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4351 * config/s390/s390.mh (NATDEPFILES): Likewise.
4352 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4353
786a90bb
MK
43542003-06-15 Mark Kettenis <kettenis@gnu.org>
4355
4356 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4357 replace out-of-date comment.
4358
3bd3f01e
AC
43592003-06-15 Andrew Cagney <cagney@redhat.com>
4360
4361 * rdi-share/host.h (Fail): Change to a varargs function.
4362 * remote-rdi.c (Fail): Update.
8ffd9b1b 4363
de5b9bb9
MK
43642003-06-15 Mark Kettenis <kettenis@gnu.org>
4365
4366 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4367 (i386_convert_register_p, i386_register_to_value,
4368 i386_register_from_value): Handle types longer than 8 bytes.
4369
d532c08f
MK
43702003-06-15 Mark Kettenis <kettenis@gnu.org>
4371
4372 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4373 Move floating-point code to new function in i387-tdep.c.
4374 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4375 New functions containing code moved here from i386-tdep.c.
4376 * i387-tdep.h: Add opaque declaration for `struct type'.
4377 (i387_register_to_value, i387_value_to_register): New prototypes.
4378 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4379 (x86_64_init_abi): Set convert_register_p, register_to_value and
4380 value_to_register here.
8ffd9b1b 4381
42c466d7
AC
43822003-06-14 Andrew Cagney <cagney@redhat.com>
4383
4384 * mips-tdep.c (mips_register_to_value): Make static.
4385 (mips_value_to_register): Make static.
4386 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4387 * ia64-tdep.c (ia64_register_raw_size): Make static.
4388 (ia64_register_virtual_size): Make static.
4389 (ia64_register_byte): Make static.
4390 * i387-tdep.c: Include "i387-tdep.h".
4391 (print_387_control_word): Delete function.
4392 (print_387_status_word): Delete function.
4393 (print_387_status_bits): Delete function.
4394 (print_387_control_bits): Delete function.
4395 * Makefile.in (i387-tdep.o): Update dependencies.
4396 * rdi-share/host.h (Fail): Declare.
4397 * remote-rdi.c (Fail): Update to match declaration.
4398
2a9cda49
AC
43992003-06-14 Andrew Cagney <cagney@redhat.com>
4400
4401 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4402 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4403 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4404 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4405 * README: Delete reference to remote-array.
4406 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4407 (remote-array.o): Delete target.
4408 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4409 * remote-array.c: Delete file.
4410
ff2e87ac
AC
44112003-06-14 Andrew Cagney <cagney@redhat.com>
4412 Mark Kettenis <kettenis@gnu.org>
4413
4414 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4415 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4416 parameter with "frame".
4417 * gdbarch.h, gdbarch.c: Re-generate.
4418 * frame.h (put_frame_register): Declare.
4419 * frame.c (put_frame_register): New function.
4420 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4421 (legacy_register_to_value): Rewrite, use "frame" to get the
4422 register value.
4423 (legacy_value_to_register): Rewrite, use "frame" to find the
4424 register's location before storing.
4425 * arch-utils.h (legacy_convert_register_p): Update.
4426 (legacy_register_to_value, legacy_value_to_register): Update.
4427 * findvar.c (value_from_register): Rewrite, eliminate use of
4428 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4429 "frame" to REGISTER_TO_VALUE.
4430 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4431 lval_reg_frame_relative + lval_register branch of the switch. Do
4432 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4433 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4434 I386_EDI_REGNUM): New defines.
4435 (i386_next_regnum, i386_convert_register_p,
4436 i386_register_to_value, i386_value_to_register): New functions.
4437 (i386_register_convertible, i386_register_convert_to_virtual,
4438 i386_convert_to_raw): Remove functions.
4439 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4440 value_to_register instead of register_convertible,
4441 register_convert_to_virtual and register_convert_to_raw.
4442 * mips-tdep.c (mips_convert_register_p): New function.
4443 (mips_value_to_register): Replace mips_register_convert_from_type.
4444 (mips_register_to_value): Replace mips_register_convert_to_type.
4445 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4446 register_to_value.
4447 * alpha-tdep.c (alpha_convert_register_p): Update.
4448 (alpha_value_to_register): Update, store the register.
4449 (alpha_register_to_value): Update, fetch the register.
4450
98be1e77
TR
44512003-06-14 Theodore A. Roth <troth@openavr.org>
4452
4453 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4454 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4455 Don't set deprecated_call_dummy_words.
4456 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4457 Don't set remote_translate_xfer_address.
4458 (avr_io_reg_read_command): Remove commented out debug printf.
4459 Wrap a long line.
4460
57bc6122
TR
44612003-06-14 Theodore A. Roth <troth@openavr.org>
4462
4463 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4464 causes gdb to seg fault.
4465
eb01fc62
DJ
44662003-06-14 Daniel Jacobowitz <drow@mvista.com>
4467
4468 * sparc-nat.c (fetch_inferior_registers): Correct
4469 a reference to "registers".
4470
3b3e6bee
DJ
44712003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4472
4473 * Makefile.in (exc_request_U_h): Define
4474 (exc_request_S_h): Likewise.
4475 (msg_reply_S_h): Likewise.
4476 (msg_U_h): Likewise.
4477 (notify_S_h): Likewise.
4478 (process_reply_S_h): Likewise.
4479 (gnu-nat.o): Depend on gdb_obstack_h
4480 * gnu-nat.c: Include "gdb_obstack.h".
4481
b8de8283
AC
44822003-06-13 Andrew Cagney <cagney@redhat.com>
4483
4484 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4485 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4486
f3be58bc
AC
44872003-06-13 Andrew Cagney <cagney@redhat.com>
4488
4489 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4490 when deprecated REGISTER macros can be deleted.
4491 * gdbarch.h, gdbarch.c: Re-generate.
4492
4c0122c8
JB
44932003-06-13 Jim Blandy <jimb@redhat.com>
4494
4495 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4496 Linux entry point symbols for _dl_debug_state, too.
4497
3e210248
AC
44982003-06-13 Andrew Cagney <cagney@redhat.com>
4499
4500 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4501 available, do not use the FP register, and always save the TOS.
4502 * dummy-frame.c (dummy_frame_this_id): Do not assert
4503 SAVE_DUMMY_FRAME_TOS.
4504 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4505 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4506 (i386_push_dummy_call): Add 8 to the returned SP.
4507 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4508 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4509 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4510 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4511 (x86_64_push_dummy_call): Return "sp + 16".
4512 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4513 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4514 save_dummy_frame_tos.
4515
0b65af49
JB
45162003-06-13 Jim Blandy <jimb@redhat.com>
4517
4518 * frv-tdep.c (frv_use_struct_convention): Delete static
4519 declaration for function deleted in my change of 2003-06-12.
4520
4ea2465e
TR
45212003-06-13 Theodore A. Roth <troth@openavr.org>
4522
4523 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4524 (avr_pointer_to_address): Shift code addrs left 1 bit.
4525 (avr_convert_from_func_ptr_addr): Delete function since operation is
4526 better handled by avr_address_to_pointer and avr_pointer_to_address.
4527 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4528
1581182a
MK
45292003-06-13 Mark Kettenis <kettenis@gnu.org>
4530
4531 From Kelley Cook <kelleycook@wideopenwest.com>:
4532 * configure.host: Accept i[34567]86 variants.
4533 * configure.tgt: Likewise.
4534 * nlm/configure.in: Likewise.
4535 * nlm/configure: Regenerated.
4536
7aa1783e
RE
45372003-06-13 Richard Earnshaw <rearnsha@arm.com>
4538
4539 * arm-tdep.c (solib-svr4.h): Dont' include it.
4540 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4541 * arm-linux-tdep.c: ... here. Make static.
4542 (arm_linux_init_abi): Register it.
4543 (solib-svr4.h): Include it.
4544 * Makefile.in: Update dependencies.
4545 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4546 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4547
0261a0d0
CV
45482003-06-13 Corinna Vinschen <vinschen@redhat.com>
4549
4550 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4551 indicate registers used for return values.
4552 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4553 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4554 members.
4555 (h8300_init_extra_frame_info): Ditto.
4556 (h8300_frame_locals_address): Removed.
4557 (h8300_frame_args_address): Removed.
4558 (h8300_extract_return_value): Use new regcache structure. Only care
4559 for 16 bit CPUs.
4560 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4561 (h8300_store_return_value): Use new regcache structure. Only care
4562 for 16 bit CPUs.
4563 (h8300h_store_return_value): Same function for 32 bit CPUs.
4564 (h8300_store_struct_return): Removed.
4565 (h8300_extract_struct_value_address): Use new regcache structure.
4566 (h8300h_extract_struct_value_address): Removed.
4567 (h8300_push_dummy_code): New function.
4568 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4569 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4570 set_gdbarch_store_return_value architecture dependent.
4571 Call set_gdbarch_push_dummy_code and
4572 set_gdbarch_extract_struct_value_address.
4573 Remove calls to set_gdbarch_frame_args_address,
4574 set_gdbarch_frame_locals_address,
4575 set_gdbarch_deprecated_store_struct_return,
4576 set_gdbarch_deprecated_extract_return_value,
4577 set_gdbarch_deprecated_extract_struct_value_address,
4578 set_gdbarch_deprecated_call_dummy_words and
4579 set_gdbarch_deprecated_sizeof_call_dummy_words.
4580
055c394a
CV
45812003-06-13 Corinna Vinschen <vinschen@redhat.com>
4582
4583 * h8300-tdep.c (h8300_register_byte): Remove.
4584 (h8300h_register_byte): Remove.
4585 (h8300_register_virtual_type): Remove. Substitute by...
4586 (h8300_register_type): New function.
4587 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4588 (h8300h_extract_struct_value_address): Ditto.
4589 (h8300_gdbarch_init): Drop calls to
4590 set_gdbarch_deprecated_register_byte and
4591 set_gdbarch_deprecated_register_virtual_type.
4592 Add call to set_gdbarch_register_type.
4593
9c04cab7
AC
45942003-06-13 Andrew Cagney <cagney@redhat.com>
4595
4596 * gdbarch.sh: Update comments on registers.
4597 (deprecated_register_byte): Rename register_byte.
4598 (deprecated_register_raw_size): Rename register_raw_size.
4599 (deprecated_register_virtual_size): Rename register_virtual_size.
4600 (deprecated_register_virtual_type): Rename register_virtual_type.
4601 * gdbarch.h, gdbarch.c: Re-generate.
4602 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4603 * vax-tdep.c (vax_gdbarch_init): Update.
4604 * v850-tdep.c (v850_gdbarch_init): Update.
4605 * sparc-tdep.c (sparc_gdbarch_init): Update.
4606 * sh-tdep.c (sh_gdbarch_init): Update.
4607 * s390-tdep.c (s390_gdbarch_init): Update.
4608 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4609 * ns32k-tdep.c: Update.
4610 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4611 * mips-tdep.c (mips_gdbarch_init): Update.
4612 * mcore-tdep.c (mcore_gdbarch_init): Update.
4613 * m68k-tdep.c (m68k_gdbarch_init): Update.
4614 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4615 * ia64-tdep.c (ia64_gdbarch_init): Update.
4616 * hppa-tdep.c (hppa_gdbarch_init): Update.
4617 * h8300-tdep.c (h8300_gdbarch_init): Update.
4618 * frv-tdep.c (frv_gdbarch_init): Update.
4619 * cris-tdep.c (cris_gdbarch_init): Update.
4620 * avr-tdep.c (avr_gdbarch_init): Update.
4621 * alpha-tdep.c (alpha_gdbarch_init): Update.
4622 * arm-tdep.c (arm_gdbarch_init): Update.
4623
b060cbea
AC
46242003-06-13 Andrew Cagney <cagney@redhat.com>
4625
4626 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4627 mips_o32_use_struct_convention with always_use_struct_convention.
4628
0fc9922a
DC
46292003-06-12 David Carlton <carlton@kealia.com>
4630
4631 * cp-namespace.c (cp_set_block_scope): Comment out
4632 processing_has_namespace_info branch.
4633
1fd35568
JB
46342003-06-12 Jim Blandy <jimb@redhat.com>
4635
f470a70a
JB
4636 Recognize and skip 64-bit PowerPC Linux linkage functions.
4637 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4638 insn_pattern, insns_match_pattern, d_field, ds_field): New
4639 functions, macros, and types for working with PPC instructions.
4640 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4641 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4642 ppc64_skip_trampoline_code): New functions, variables, and macros
4643 for recognizing and skipping linkage functions.
4644 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4645 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4646
49ff75ad
JB
4647 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4648 register offsets for both the 32- and 64-bit interfaces.
4649
bd918c83
JB
4650 Actually finish the job started by my change of 2003-05-29.
4651 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4652 other #definition of this.
4653 (ppc_linux_skip_trampoline_code): Remove declaration.
4654 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4655 static.
4656 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4657 method for GDBARCH.
4658
4659 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4660 'long' on ppc64-*-linux*.
4661
f8c59253
JB
4662 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4663 isn't #defined, assume the register doesn't exist: act as if
4664 tdep->ppc_mq_regnum were -1.
4665
8fbb30b1
JB
4666 * configure.host, configure.tgt: Add entries for
4667 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4668 powerpc/linux.mt.
4669 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4670 New files.
4671
1fd35568
JB
4672 * arch-utils.c (always_use_struct_convention): New function.
4673 * arch-utils.h (always_use_struct_convention): New prototype.
4674 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4675 (alpha_gdbarch_init): Register always_use_struct_convention,
4676 instead of alpha_use_struct_convention.
4677 * cris-tdep.c (cris_use_struct_convention): Delete.
4678 (cris_gdbarch_init): Register always_use_struct_convention,
4679 instead of cris_use_struct_convention.
4680 * frv-tdep.c (frv_use_struct_convention): Delete.
4681 (frv_gdbarch_init): Register always_use_struct_convention,
4682 instead of frv_use_struct_convention.
4683 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4684 (h8300_gdbarch_init): Register always_use_struct_convention,
4685 instead of h8300_use_struct_convention.
e3305dd9 4686 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4687 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4688 instead of mips_o32_use_struct_convention.
4689
e14e6e9c
AC
46902003-06-12 Andrew Cagney <cagney@redhat.com>
4691
4692 * wince.c: Include "mips-tdep.h".
4693 * mips-tdep.h (mips_next_pc): Declare.
4694 * mcore-tdep.c: Make more local functions static.
4695 * Makefile.in (wince.o): Update dependencies.
4696
2335f48e
DC
46972003-06-12 David Carlton <carlton@kealia.com>
4698
4699 * symtab.c (lookup_symbol_aux_minsyms): Replace
4700 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4701 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4702 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4703 SYMBOL_NATURAL_NAME.
4704
f70a7d61
AS
47052003-06-12 Andreas Schwab <schwab@suse.de>
4706
4707 * Makefile.in (tuiDisassem.o): Update dependencies.
4708
b6429628
DC
47092003-06-12 David Carlton <carlton@bactrian.org>
4710
4711 * symtab.h: Delete declaration of make_symbol_overload_list.
4712 Add declaration of lookup_partial_symbol.
4713 * symtab.c (remove_params): Move to cp-support.c.
4714 (overload_list_add_symbol, make_symbol_overload_list)
4715 (sym_return_val_size, sym_return_val_index): Ditto.
4716 (lookup_partial_symbol): Make extern.
4717 * cp-support.h: Add declaration of make_symbol_overload_list.
4718 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4719 symtab.h, and block.h.
4720 (remove_params): Move here from symtab.c.
4721 (overload_list_add_symbol, make_symbol_overload_list)
4722 (sym_return_val_size, sym_return_val_index): Ditto.
4723 * valops.c: Include cp-support.h.
4724 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4725 frame_h, and block_h.
4726 (valops.o): Depend on cp_support_h.
4727
084edea5
CV
47282003-06-12 Corinna Vinschen <vinschen@redhat.com>
4729
4730 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4731 substitute by NUM_REGS throughout.
4732 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4733 (h8300s_register_name): New function for H8S registers.
4734 (h8300sx_register_name): Ditto for H8SX registers.
4735 (h8300_print_register): Revise register printing, avoid depending
4736 on 32 bit long.
0261a0d0 4737 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4738 (h8300h_register_byte): New function for any other architecture.
4739 (h8300_register_raw_size): Remove.
4740 (h8300_register_virtual_type): Revise to return actually useful
4741 type.
4742 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4743 (h8300h_extract_struct_value_address): New function for any other
4744 architecture.
4745 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4746 set_gdbarch_register_name, set_gdbarch_register_byte,
4747 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4748 Remove calls to set_gdbarch_deprecated_register_size,
4749 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4750 set_gdbarch_deprecated_max_register_raw_size,
4751 set_gdbarch_register_virtual_size and
4752 set_gdbarch_deprecated_max_register_virtual_size entirely.
4753 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4754 set_gdbarch_long_double_bit.
4755
06194148
JJ
47562003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4757
8ffd9b1b
AJ
4758 * doublest.c (convert_doublest_to_floatformat): When dealing
4759 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4760 processing a full 32 bits of mantissa.
4761
de4f826b
DC
47622003-06-11 David Carlton <carlton@bactrian.org>
4763
4764 * dictionary.h: New.
4765 * dictionary.c: New.
4766 * block.h: Add opaque declaration for struct dictionary.
4767 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4768 'sym' members.
4769 (BLOCK_DICT): New macro.
4770 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4771 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4772 BLOCK_SHOULD_SORT.
4773 (ALL_BLOCK_SYMBOLS): Update definition.
4774 * Makefile.in (SFILES): Add dictionary.c.
4775 (dictionary_h): New.
4776 (COMMON_OBS): Add dictionary.o.
4777 (dictionary.o): New.
4778 (ada-lang.o): Depend on dictionary_h.
4779 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4780 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4781 (mi-cmd-stack.o): Ditto.
4782 (gdbtk-cmds.o): Update dependencies.
4783 (gdbtk-stack.o): Ditto.
4784 * ada-lang.c: Include dictionary.h.
4785 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4786 (fill_in_ada_prototype, debug_print_block): Ditto.
4787 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4788 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4789 'is_sorted'.
4790 * mdebugread.c: Include dictionary.h.
4791 (struct parse_stack): Delete 'maxsyms' member.
4792 (parse_symbol): Update calls to new_block. Delete calls to
4793 shrink_block. Use dictionary methods.
4794 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4795 Update calls to new_symtab. Don't maintain maxsyms data.
4796 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4797 (add_symbol): Just call dict_add_symbol.
4798 (new_symtab): Delete 'maxsyms' argument.
4799 (new_symtab): Update calls to new_block.
4800 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4801 (shrink_block): Delete function.
4802 (fixup_sigtramp): Update call to new_block. Add symbol via
4803 dict_add_symbol.
4804 * jv-lang.c: Include dictionary.h.
4805 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4806 appropriately. Set class_symtab->free_func. Make sure the
4807 blockvector is big enough to hold two blocks.
4808 (add_class_symtab_symbol): Use dictionary methods.
4809 (free_class_block): New function.
4810 (type_from_class): Replace explicit iteration by
4811 ALL_BLOCK_SYMBOLS.
4812 * symtab.h (struct symtab): Replace 'free_ptr' method by
4813 'free_func'.
4814 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4815 sort_symtab_syms.
4816 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4817 sort_symtab_syms.
4818 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4819 Include dictionary.h.
4820 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4821 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4822 sort_symtab_syms.
4823 * objfiles.c: Include dictionary.h.
4824 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4825 * buildsym.c: Include dictionary.h.
4826 (finish_block): Use dictionary methods.
4827 (end_symtab): Set free_func to NULL, not free_ptr.
4828 * tracepoint.c: Include dictionary.h.
4829 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4830 (scope_info): Ditto.
4831 * stack.c: Include dictionary.h.
4832 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4833 (print_block_frame_labels, print_frame_arg_vars)
4834 (print_frame_args): Ditto.
4835 * symmisc.c (free_symtab_block): Use dictionary methods.
4836 (dump_symtab): Ditto.
4837 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4838 Include dictionary.h.
4839 * symfile.h: Delete declarations of sort_block_syms,
4840 sort_symtab_syms.
4841 * symfile.c (sort_block_syms): Delete.
4842 (sort_symtab_syms): Delete.
4843 * symtab.c: Include dictionary.h.
4844 (lookup_block_symbol): Use dictionary iterators.
4845 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4846 (search_symbols, make_symbol_completion_list): Ditto.
4847 (make_symbol_overload_list): Ditto.
4848 * valops.c (value_of_local): Use dict_empty.
4849 Include dictionary.h.
4850
a31f978c
JB
48512003-06-11 J. Brobecker <brobecker@gnat.com>
4852
4853 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4854
526e70c0
DC
48552003-06-11 David Carlton <carlton@bactrian.org>
4856
4857 * block.h (BLOCK_SHOULD_SORT): Delete.
4858 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4859 blocks.
4860 * ada-lang.c (ada_add_block_symbols): Ditto.
4861 * symfile.c (sort_block_syms): Delete.
4862 (sort_symtab_syms): Ditto.
4863 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4864 declarations.
4865 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4866 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4867 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4868 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4869 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4870 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4871 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4872
33c08150
JJ
48732003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4874
8ffd9b1b 4875 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4876 bits to 128.
4877
781a750d
AC
48782003-06-11 Andrew Cagney <cagney@redhat.com>
4879
4880 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4881 REGISTER_CONVERTIBLE.
4882 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4883 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4884 * gdbarch.h, gdbarch.c: Re-generate.
4885 * arch-utils.h (deprecated_register_convertible_not): Rename
4886 generic_register_convertible_not.
4887 * arch-utils.c (deprecated_register_convertible_not): Rename
4888 generic_register_convertible.
4889 (legacy_convert_register_p, legacy_register_to_value): Update.
4890 * sh-tdep.c (sh64_push_arguments): Update.
4891 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4892 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4893 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4894 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4895 * arch-utils.c (legacy_value_to_register): Update.
4896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4897 (rs6000_register_convert_to_raw): Make parameter "from" const.
4898 * mips-tdep.c (mips_gdbarch_init): Update.
4899 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4900 * infcmd.c (default_print_registers_info): Update.
4901 * ia64-tdep.c (ia64_gdbarch_init): Update.
4902 (ia64_register_convert_to_raw): Make parameter "from" const.
4903 * i386-tdep.c (i386_gdbarch_init): Update.
4904 (i386_register_convert_to_raw): Update.
4905
cd90e54f
AC
49062003-06-11 Andrew Cagney <cagney@redhat.com>
4907
4908 * remote-fileio.c: Include "remote-fileio.h".
4909 * Makefile.in (remote-fileio.o): Update dependencies.
4910 (remote_fileio_h): Fix typo.
4911
a78f21af
AC
49122003-06-11 Andrew Cagney <cagney@redhat.com>
4913
4914 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4915 (xstormy16_save_dummy_frame_tos): Make static.
4916 (_initialize_xstormy16_tdep): Add declaration.
4917 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4918 * v850-tdep.c: Make local functions static.
4919 (_initialize_v850_tdep): Add declaration.
4920 * sparc-tdep.c: Make local functions static.
4921 (_initialize_sparc_tdep): Add declaration.
4922 * sh-tdep.c: Make local functions static.
4923 (_initialize_sh_tdep): Add declaration.
4924 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4925 * s390-tdep.c: Make local functions static.
4926 (_initialize_s390_tdep): Add declaration.
4927 * dbxread.c (find_stab_function_addr): Make static.
4928 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4929 * ocd.c (_initialize_remote_ocd): Add declaration.
4930 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4931 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4932 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4933 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4934 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4935 * remote-array.c (_initialize_array): Add declaration.
4936 (_initialize_remote_monitors): Add declaration.
4937 * remote-mips.c: Make local functions static.
4938 (_initialize_remote_mips): Add declaration.
4939 * mcore-tdep.c: Make all local functions static.
4940 (_initialize_mcore_tdep): Add declaration.
4941 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4942 * abug-rom.c (_initialize_abug_rom): Add declaration.
4943 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4944 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4945 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4946 * remote-est.c (_initialize_est): Add declaration.
4947 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4948 (m68hc11_call_dummy_address): Make static.
4949 * ia64-tdep.c: Make local functions static.
4950 (_initialize_ia64_tdep): Add declaration.
4951 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4952 * monitor.c (monitor_wait_filter): Make static.
4953 (_initialize_remote_monitors): Add declaration.
4954 * remote-hms.c (_initialize_remote_hms): Add declaration.
4955 * remote-e7000.c (fetch_regs_from_dump): Make static.
4956 (expect_n): Make static.
4957 (_initialize_remote_e7000): Add declaration.
4958 * ser-e7kpc.c: Always include "defs.h".
4959 (_initialize_ser_e7000pc): Add declaration.
4960 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4961 * cris-tdep.c: Make all but one function static.
4962 (_initialize_cris_tdep): Add declaration.
4963 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4964 * solib.c (update_solib_list): Make static.
4965 (_initialize_solib): Add declaration.
4966 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4967 (_initialize_avr_tdep): Add declaration.
4968 * remote-rdi.c (voiddummy): Make static.
4969 (_initialize_remote_rdi): Add declaration.
4970 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4971 * remote-rdp.c (send_rdp): Make static.
4972 (_initialize_remote_rdp): Add declaration.
4973 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4974
cbcdb1f5
CV
49752003-06-11 Corinna Vinschen <vinschen@redhat.com>
4976
4977 * remote-fileio.c: Make ari happy.
4978
a191ea8d
JB
49792003-06-10 J. Brobecker <brobecker@gnat.com>
4980
4981 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4982 fetching the trailing bytes of the buffer we are about to write.
4983
0ef75e11
AC
49842003-06-10 Andrew Cagney <cagney@redhat.com>
4985
4986 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4987 * Makefile.in (remote-fileio.o): Update dependencies.
4988 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4989 include <setjmp.h>, or <sys/types.h> conditional on USG.
4990 (remote_fio_jmp_buf): Delete global variable.
4991
449092f6 49922003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4993 Martin M. Hunt <hunt@redhat.com>
449092f6 4994
559fa028
AC
4995 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4996 (SFILES): Add remote-fileio.c.
4997 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4998 dependencies for building remote.o.
449092f6
CV
4999 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5000 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5001 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5002 static storage class.
5003 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5004 'F' packet.
5005 (_initialize_remote): Call initialize_remote_fileio().
5006 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5007 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5008 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5009 (captured_main): Initialize new ui_files.
5010 * ui-file.c: Add read and fgets input functions.
5011 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5012 (null_file_read): New function.
5013 (ui_file_read): New function.
5014 (set_ui_file_read): New function.
5015 (stdio_file_read): New function.
5016 * ui-file.h: New type ui_file_read_ftype.
5017 (set_ui_file_read): Declare.
5018 (ui_file_read): Declare.
5019
248de703
AC
50202003-06-09 Andrew Cagney <cagney@redhat.com>
5021
5022 * frame.h (deprecated_unwind_get_saved_register): Rename
5023 generic_unwind_get_saved_register, update comments.
5024 * mips-tdep.c (mips_get_saved_register): Update.
5025 * frame.c (deprecated_unwind_get_saved_register): Update.
5026
0ed8aa57
AC
50272003-06-09 Andrew Cagney <cagney@redhat.com>
5028
5029 * vax-tdep.c (vax_frame_locals_address): Delete function.
5030 (vax_gdbarch_init): Do not set frame_locals_address.
5031 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5032 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5033 * s390-tdep.c (s390_frame_args_address): Delete function.
5034 (s390_gdbarch_init): Do not set frame_args_address or
5035 frame_locals_address.
5036 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5037 (ns32k_gdbarch_init): Do not set frame_locals_address.
5038 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5039 (hppa_frame_locals_address): Delete function.
5040 (hppa_gdbarch_init): Do not set frame_args_address, or
5041 frame_locals_address.
5042 * arm-tdep.c (arm_frame_args_address): Delete.
5043 (arm_frame_locals_address): Delete.
5044 (arm_gdbarch_init): Do not set frame_args_address, or
5045 frame_locals_address.
5046
983a287a
AC
50472003-06-09 Andrew Cagney <cagney@redhat.com>
5048
5049 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5050 * gdbarch.h, gdbarch.c: Re-generate.
5051 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5052 * arch-utils.c (frame_num_args_unknown): Delete function.
5053 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5054 (frame_info): Use FRAME_NUM_ARGS_P.
5055 * arm-tdep.c (arm_frame_num_args): Delete function.
5056 (arm_gdbarch_init): Do not set frame_num_args.
5057 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5058 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5059 (hppa_gdbarch_init): Do not set frame_num_args.
5060 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5062 frame_num_args to default frame_num_args_unknown.
5063 * v850-tdep.c (v850_gdbarch_init): Ditto.
5064 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5065 * sh-tdep.c (sh_gdbarch_init): Ditto.
5066 * s390-tdep.c (s390_gdbarch_init): Ditto.
5067 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5068 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5069 * mips-tdep.c (mips_gdbarch_init): Ditto.
5070 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5071 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5072 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5073 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5074 * i386-tdep.c (i386_gdbarch_init): Ditto.
5075 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5076 * frv-tdep.c (frv_gdbarch_init): Ditto.
5077 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5078 * cris-tdep.c (cris_gdbarch_init): Ditto.
5079 * avr-tdep.c (avr_gdbarch_init): Ditto.
5080 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5081
8d3b0994
AC
50822003-06-09 Andrew Cagney <cagney@redhat.com>
5083
5084 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5085 (print_frame_args): Moved to "stack.c".
5086 * stack.c: Include "gdb_assert.h".
5087 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5088 (print_frame_args): Moved from "printcmd.c".
5089 * frame.h (print_frame_args): Delete declaration.
5090 * Makefile.in (stack.o): Update dependencies.
5091
25e3a86b
AC
50922003-06-08 Andrew Cagney <cagney@redhat.com>
5093
5094 * frame.c (get_prev_frame): Remove reference to
5095 frame_args_address_correct in comments.
5096 * frame-base.c (default_frame_args_address): Delete code
5097 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5098 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5099 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5100 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5101 (vax_frame_args_address_correct): Delete declaration.
5102
a9e5fdc2
AC
51032003-06-08 Andrew Cagney <cagney@redhat.com>
5104
5105 * gdbarch.sh (UNWIND_SP): Add.
5106 * gdbarch.h, gdbarch.c: Re-generate.
5107 * frame.c (frame_sp_unwind): New function.
5108 (get_frame_sp): New function.
5109 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5110 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5111 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5112 value.
5113 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5114 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5115
8983bd83
AC
51162003-06-08 Andrew Cagney <cagney@redhat.com>
5117
7fec2c59
AC
5118 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5119 REMOTE_BREAKPOINT.
5120 * remote.c: Update.
5121 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5122 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5123 * config/m68k/tm-sun3.h: Update.
5124 * config/m68k/tm-m68klynx.h: Update.
5125 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5126
8983bd83
AC
5127 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5128 trad_frame". Update comments.
5129 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5130 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5131 (trad_frame_register_value, trad_frame_prev_register): Update.
5132
b9362cc7
AC
51332003-06-08 Andrew Cagney <cagney@redhat.com>
5134
5135 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5136 from GCC's acinclude.m4.
5137 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5138 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5139 * main.c (error_init): Delete declaration.
5140 * defs.h (error_init): Declare.
5141 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5142 (rs6000_convert_from_func_ptr_addr): Make static.
5143 (_initialize_rs6000_tdep): Add declaration.
5144 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5145 (show_commands, set_verbose, show_history): Delete declaration.
5146 * top.h (set_verbose): Add declaration.
5147 (show_history, set_history, show_commands): Add declaration.
5148 (do_restore_instream_cleanup): Add declaration.
5149 * objc-lang.c (specialcmp): Make static.
5150 (print_object_command): Make static.
5151 (find_objc_msgsend): Make static.
5152 (find_objc_msgcall_submethod_helper): Make static.
5153 (find_objc_msgcall_submethod): Make static.
5154 (_initialize_objc_language): Add declaration.
5155 (find_implementation_from_class): Make static.
5156 (find_implementation): Make static.
5157 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5158 * objc-lang.h (lookup_struct_typedef): Add declaration.
5159 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5160 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5161 (do_restore_user_call_depth): Make static.
5162 (do_restore_instream_cleanup): Delete declaration.
5163 (dont_repeat): Delete declaration.
5164 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5165 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5166 * reggroups.c (_initialize_reggroup): Add declaration.
5167 * cp-support.c (_initialize_cp_support): Add declaration.
5168 * cp-abi.c (_initialize_cp_abi): Add declaration.
5169 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5170 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5171 (_initialize_gnu_v3_abi): Add declaration.
5172 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5173 (_initialize_gnu_v2_abi): Add declaration.
5174 * frame-base.c (_initialize_frame_base): Add declaration.
5175 * doublest.c (floatformat_from_length): Make static.
5176 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5177 * frame.c (create_sentinel_frame): Make static.
5178 (_initialize_frame): Add declaration.
5179 * top.c (do_catch_errors): Make static.
5180 (gdb_rl_operate_and_get_next_completion): Make static.
5181 * typeprint.c: Include "typeprint.h".
5182 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5183 (sentinel_frame_this_id): Make static.
5184 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5185 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5186 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5187 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5188 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5189 * maint.c (maintenance_print_architecture): Make static.
5190 * signals/signals.c (_initialize_signals): Add declaration.
5191 * std-regs.c (_initialize_frame_reg): Add declaration.
5192 * jv-exp.y (push_variable): ISO C definition.
5193 (push_qualified_expression_name): Ditto.
5194 * memattr.c (_initialize_mem): Add declaration.
5195 * remote.c (remote_check_watch_resources): Make static.
5196 (remote_stopped_by_watchpoint): Make static.
5197 (remote_stopped_data_address): Make static.
5198 * d10v-tdep.c (nr_dmap_regs): Make static.
5199 (a0_regnum): Make static.
5200 (d10v_frame_unwind_cache): Make static.
5201 (d10v_frame_p): Make static.
5202 * osabi.c (show_osabi): Make static.
5203 (_initialize_gdb_osabi): Add extern declaration.
5204 * gdbtypes.c (make_qualified_type): Make static.
5205 (safe_parse_type): Make static.
5206 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5207 * macrotab.c (macro_bcache_free): Make static.
5208 * interps.c (interp_set_quiet): Make static.
5209 (interpreter_exec_cmd): Make static.
5210 * stack.h (select_frame_command): New file.
5211 * stack.c: Include "stack.h".
5212 (select_frame_command_wrapper): Delete function.
5213 (select_frame_command): Make global.
5214 * infcall.c: Include "infcall.h".
5215 * linespec.c: Include "linespec.h".
5216 * symfile.c (sections_overlap): Make static.
5217 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5218 * charset.c (_initialize_charset): Add missing prototype.
5219 * regcache.c (init_legacy_regcache_descr): Make static.
5220 (do_regcache_xfree): Make static.
5221 (regcache_xfer_part): Make static.
5222 (_initialize_regcache): Add missing prototype.
5223 * breakpoint.c (parse_breakpoint_sals): Make static.
5224 (breakpoint_sals_to_pc): Make static.
5225 * interps.h (clear_interpreter_hooks): ISO C declaration.
5226 * Makefile.in (stack_h): Define.
5227 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5228 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5229
a0f267c7
AC
52302003-06-08 Andrew Cagney <cagney@redhat.com>
5231
5232 * Makefile.in (d10v-tdep.o): Update dependencies.
5233 (SFILES): Add trad-frame.c.
5234 (trad_frame_h): Define.
5235 (COMMON_OBS): Add trad-frame.o.
5236 (trad-frame.o): Specify dependencies.
5237 * d10v-tdep.c: Include "trad-frame.h".
5238 (saved_regs_unwinder): Delete function.
5239 (d10v_frame_prev_register): Use trad_frame_prev_register.
5240 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5241 trad_frame", delete "regs" and "prev_sp".
5242 (prologue_find_regs): Use trad-frame.
5243 * trad-frame.h, trad-frame.c: New files.
5244
4538b4f4
MK
52452003-06-08 Mark Kettenis <kettenis@gnu.org>
5246
5247 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5248
a0273b2f
AF
52492003-06-07 Adam Fedor <fedor@gnu.org>
5250
5251 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5252 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5253 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5254 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5255 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5256 Use it.
5257
3a6c3343
AC
52582003-06-07 Andrew Cagney <cagney@redhat.com>
5259
5260 * symfile.h: Re-indent, clean up comments.
5261
b46e02f6
AC
52622003-06-07 Andrew Cagney <cagney@redhat.com>
5263
5264 * inferior.h (deprecated_write_sp): Replace
5265 generic_target_write_sp.
5266 * regcache.c (deprecated_write_sp): Replace
5267 generic_target_write_sp.
5268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5269 * vax-tdep.c (vax_gdbarch_init): Update.
5270 * v850-tdep.c (v850_gdbarch_init): Update.
5271 * sparc-tdep.c (sparc_gdbarch_init): Update.
5272 * sh-tdep.c (sh_gdbarch_init): Update.
5273 * s390-tdep.c (s390_gdbarch_init): Update.
5274 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5275 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5276 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5277 * mcore-tdep.c (mcore_gdbarch_init): Update.
5278 * m68k-tdep.c (m68k_gdbarch_init): Update.
5279 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5280 * ia64-tdep.c (ia64_gdbarch_init): Update.
5281 * h8300-tdep.c (h8300_gdbarch_init): Update.
5282 * frv-tdep.c (frv_gdbarch_init): Update.
5283 * cris-tdep.c (cris_gdbarch_init): Update.
5284 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5285
a42e117c
AC
52862003-06-07 Andrew Cagney <cagney@redhat.com>
5287
5288 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5289 Assert that PC_REGNUM is valid.
5290 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5291
bd1ce8ba
AC
52922003-06-07 Andrew Cagney <cagney@redhat.com>
5293
5294 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5295 * gdbarch.h, gdbarch.c: Regenerate.
5296 * mn10300-tdep.c: Include "gdb_assert.h".
5297 (mn10300_read_fp): New function.
5298 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5299 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5300 * ia64-tdep.c: Include "gdb_assert.h".
5301 (ia64_read_fp): New function.
5302 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5303 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5304 * regcache.c (generic_target_read_sp): Delete function.
5305 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5306 * inferior.h (generic_target_read_sp): Delete declaration.
5307 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5308 generic_target_read_sp.
5309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5310 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5311 * sh-tdep.c (sh_gdbarch_init): Ditto.
5312 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5313 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5314
ec5cbaec
AC
53152003-06-07 Andrew Cagney <cagney@redhat.com>
5316
5317 * gdbarch.sh: Comment each field of startup_gdbarch.
5318 * gdbarch.h, gdbarch.c: Re-generate.
5319
cde9ea48
AC
53202003-06-07 Andrew Cagney <cagney@redhat.com>
5321
5322 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5323 * gdbarch.h, gdbarch.c: Re-generate.
5324 * regcache.c: Update comments on read_pc et.al.
5325 (generic_target_read_pc): Delete function.
5326 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5327 * inferior.h (generic_target_read_pc): Delete declaration.
5328 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5329 generic_target_read_pc.
5330 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5331 * sh-tdep.c (sh_gdbarch_init): Ditto.
5332 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5333 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5334
9a90a780
AC
53352003-06-07 Andrew Cagney <cagney@redhat.com>
5336
5337 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5338 "index" with "special_local_sect". Use strcmp instead of STREQ.
5339 Append period to coments.
5340
a39a16c4
MM
53412003-06-06 Mark Mitchell <mark@codesourcery.com>
5342
5343 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5344 (elfstab_offset_sections): Likewise.
5345 * gdb-stabs.h (stab_section_info): Likewise.
5346 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5347 * objfiles.c (objfile_relocate): Likewise.
5348 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5349 * remote.c (get_offsets): Likewise.
5350 (remote_cisco_objfile_relocate): Likewise.
5351 * somread.c (som_symfile_offsets): Likewise.
5352 * symfile.c (alloc_section_addr_info): New function.
5353 (build_section_addr_info_from_section_tab): Use it.
5354 (free_section_addr_info): Adjust.
5355 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5356 (syms_from_objfile): Allocate local_addr dynamically.
5357 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5358 dynamically.
5359 (add_symbol_file_command): Allocate sect_opts dynamically.
5360 (reread_symbols): Avoid use of SECT_OFF_MAX.
5361 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5362 (alloc_section_addr_info): Declare it.
5363 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5364 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5365 dynamically.
5366 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5367
20c6c2f8
AC
53682003-06-06 Andrew Cagney <cagney@redhat.com>
5369
5370 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5371 (d10v_frame_unwind_cache): Do not set "return_pc".
5372
884a26c8
MS
53732003-06-06 Michael Snyder <msnyder@redhat.com>
5374
5375 * h8300-tdep.c: Make tidy (long lines).
5376
088ce440
ML
53772003-06-06 Michal Ludvig <mludvig@suse.cz>
5378
8ffd9b1b 5379 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5380 to regcache_collect().
5381
7d773d96
JB
53822003-06-05 J. Brobecker <brobecker@gnat.com>
5383
5384 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5385 pc_in_sigtramp multiarch method.
5386 (hppa_hpux_som_init_abi): Use it.
5387 (hppa_hpux_elf_init_abi): Likewise.
5388 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5389 macro has been multiarched.
5390 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5391 macro here, as hppa64 isn't multiarched yet.
5392
1df6926e
AC
53932003-06-05 Andrew Cagney <cagney@redhat.com>
5394
5395 * Makefile.in (value_h): Add $(frame_h).
5396 * value.h: Include "frame.h".
5397 (struct value): Replace "frame_addr" with "frame_id".
5398 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5399 * values.c (allocate_value): Use VALUE_FRAME_ID.
5400 (value_copy): Use VALUE_FRAME_ID.
5401 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5402 * valops.c (value_assign): Update. Use frame_find_by_id.
5403
6b53acc6
ML
54042003-06-05 Michal Ludvig <mludvig@suse.cz>
5405
5406 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5407 in each pass.
5408
4d9850d3
JJ
54092003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5410
5411 * thread-db.c (check_event): For create/death event breakpoints,
5412 loop through all messages to ensure that we read the message
5413 corresponding to the breakpoint we are at.
5414
8efca6ba
MS
54152003-06-04 Michael Snyder <msnyder@redhat.com>
5416
5417 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5418
0912c7f2
MK
54192003-06-04 Mark Kettenis <kettenis@gnu.org>
5420
5421 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5422 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5423 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5424 when handling .eh_frame sections.
5425
4e370325
JB
54262003-06-04 J. Brobecker <brobecker@gnat.com>
5427
5428 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5429 prepare_to_proceed procedure instead of the hppa-specific one.
5430 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5431
b757528f 54322003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5433
b757528f
JJ
5434 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5435 * config.in: Regenerated.
5436 * configure.in: Add test for syscall function and check for
5437 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5438 * configure: Regenerated.
5439 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5440 <sys/syscall.h>.
5441 (kill_lwp): New function that uses tkill syscall or
5442 uses kill, depending on whether threading model is nptl or not.
5443 All callers of kill() changed to use kill_lwp().
5444 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5445 see if all threads have already exited in the nptl model.
5446 (stop_and_resume_callback): New callback function used by the
5447 lin_lwp_wait thread exit handling code.
5448 (stop_wait_callback): Check for threads already having exited and
5449 delete such threads fromt the lwp list when discovered.
5450 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5451
b757528f
JJ
5452 Roland McGrath <roland@redhat.com>
5453 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5454 nptl libthread_db.
5455
087779b1
RH
54562003-06-03 Richard Henderson <rth@redhat.com>
5457
b21fd293
RH
5458 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5459 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5460 (alpha_sigtramp_frame_prev_register): Likewise.
5461 (alpha_heuristic_frame_prev_register): Likewise.
5462 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5463
8ffd9b1b 5464 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5465 alpha-specific register id names.
5466 (alpha_mdebug_frame_unwind_cache): Likewise.
5467 (alpha_mdebug_frame_prev_register): Likewise.
5468
baa490c4
RH
54692003-06-03 Richard Henderson <rth@redhat.com>
5470
5471 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5472 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5473 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5474 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5475 unwind routines.
5476 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5477 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5478 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5479
5480 * alpha-linux-tdep.c: Remove unnecessary includes.
5481 * Makefile.in (alpha-linux-tdep.o): Update.
5482
54832003-06-03 Richard Henderson <rth@redhat.com>
5484
5485 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5486 (alphabsd_fill_fpreg): Likewise.
5487
f534e522
JB
54882003-06-03 J. Brobecker <brobecker@gnat.com>
5489
5490 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5491 references to struct frame_info fields by calls to the equivalent
5492 accessors. Necessary now that frame_info is opaque.
5493
4035536b
JB
54942003-06-03 J. Brobecker <brobecker@gnat.com>
5495
5496 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5497 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5498 structure, field no longer exists.
5499
0bd79c5c
JB
55002003-06-03 J. Brobecker <brobecker@gnat.com>
5501
5502 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5503 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5504
37bb6d9f
JB
55052003-06-03 J. Brobecker <brobecker@gnat.com>
5506
5507 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5508 references to struct frame_info fields by calls to the equivalent
5509 accessors. Necessary now that frame_info is opaque.
5510
852ee05c
JB
55112003-06-03 J. Brobecker <brobecker@gnat.com>
5512
5513 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5514 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5515 structure, field no longer exists.
5516
7d58c67d
TR
55172003-06-03 Theodore A. Roth <troth@openavr.org>
5518
8ffd9b1b 5519 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5520 accumulation of the size of all registers instead of blindly using
5521 DEPRECATED_REGISTER_BYTES.
5522
0a48e7e8
MS
55232003-06-03 Michael Snyder <msnyder@redhat.com>
5524
5525 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5526 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5527 for h8300sx.
5528
9798ab0d
JB
55292003-06-03 J. Brobecker <brobecker@gnat.com>
5530
5531 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5532 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5533
00b037e2
AC
55342003-06-03 Andrew Cagney <cagney@redhat.com>
5535
5536 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5537 (sparc_convert_to_raw): Delete function.
5538 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5539 register_convert_to_virtual.
5540
043b2f77
JJ
55412003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5542
5543 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5544 layer if not dealing with a statically-linked threaded program.
5545
f43caff8
KW
55462003-06-03 Kris Warkentin <kewarken@qnx.com>
5547
5548 * solib.c (solib_open): Update comment to reflect actual search order.
5549
ae1e7417
AC
55502003-06-03 Andrew Cagney <cagney@redhat.com>
5551
5552 * frame.c (get_frame_memory_signed): New function.
5553 (get_frame_memory, get_frame_memory_unsigned): New function.
5554 (get_frame_arch): New function.
5555 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5556 (get_frame_memory, get_frame_unsigned_memory): Declare.
5557 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5558 get_frame_memory_unsigned and get_frame_arch.
5559 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5560
cb123844
RG
55612003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5562
5563 * MAINTAINERS (write after approval): Add myself.
5564
1bb792e9
JB
55652003-06-03 Jim Blandy <jimb@redhat.com>
5566
5567 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5568 elements of gregset_t are 64 bits each, but access registers
5569 are still 32 bits, so they're packed two per gregset_t
5570 element. Unpack/pack them properly.
5571
aee8d8ba
DC
55722003-06-02 David Carlton <carlton@bactrian.org>
5573
5574 * linespec.c (find_methods): Break out code into
5575 add_matching_methods and add_constructors.
5576 (add_matching_methods): New.
5577 (add_constructors): Ditto.
5578
bf7488d2
AC
55792003-06-02 Andrew Cagney <cagney@redhat.com>
5580
bf7488d2
AC
5581 * sparc-tdep.c (sparc_print_registers): Delete call to
5582 REGISTER_CONVERTIBLE.
5583 (sparc_gdbarch_init): Do not set register_convertible.
5584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5585 * frv-tdep.c (frv_gdbarch_init): Ditto.
5586 * cris-tdep.c (cris_gdbarch_init): Ditto.
5587
adedef68
EZ
55882003-06-02 Elena Zannoni <ezannoni@redhat.com>
5589
8ffd9b1b 5590 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5591 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5592 (syms_from_objfile): Ditto.
5593
650fcc91
AS
55942003-06-03 Andreas Schwab <schwab@suse.de>
5595
5596 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5597 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5598
df4a182b
RH
55992003-06-02 Richard Henderson <rth@redhat.com>
5600
5601 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5602 a member of all_reggroup.
5603
c483c494
RH
56042003-06-02 Richard Henderson <rth@redhat.com>
5605
5606 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5607 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5608 (alpha_lds, alpha_sts): New.
5609 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5610 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5611 restructure and fail for type sizes other than 4 or 8.
5612 (alpha_value_to_register): Similarly.
5613 (alpha_extract_return_value): Use alpha_sts.
5614 (alpha_store_return_value): Use alpha_lds.
5615 (alpha_gdbarch_init): Update hooks.
5616
b38b6be2
RH
56172003-06-02 Richard Henderson <rth@redhat.com>
5618
5619 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5620 regnum identifiers.
5621 (alpha_sigtramp_register_address): Likewise.
5622
98a8e1e5
RH
56232003-06-02 Richard Henderson <rth@redhat.com>
5624
5625 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5626 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5627 * alpha-tdep.h: Declare them.
5628
5629 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5630 Remove zerobuf. Don't error on UNIQUE.
5631 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5632 (ALPHA_REGSET_UNIQUE): Provide default.
5633 (supply_gregset): Use alpha_supply_int_regs.
5634 (fill_gregset): Use alpha_fill_int_regs.
5635 (supply_fpregset): Use alpha_supply_fp_regs.
5636 (fill_fpregset): Use alpha_fill_fp_regs.
5637 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5638 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5639 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5640 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5641 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5642 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5643
67dfac52
RH
56442003-06-02 Richard Henderson <rth@redhat.com>
5645
f75d70cc
RH
5646 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5647
67dfac52
RH
5648 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5649 (alpha_store_return_value): Likewise.
5650
0cf566ec
DC
56512003-06-02 David Carlton <carlton@math.stanford.edu>
5652
5653 * block.c (contained_in): Add 'const' to arguments.
5654 (block_function): Ditto.
5655 * block.h: Update declarations for block_function and
5656 contained_in.
5657
cdef89d0
DC
56582003-06-02 David Carlton <carlton@math.stanford.edu>
5659
5660 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5661 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5662 * p-valprint.c (pascal_val_print): Ditto.
5663 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5664
72667056
RH
56652003-06-02 Richard Henderson <rth@redhat.com>
5666
98a8e1e5
RH
5667 * alpha-tdep.c (alpha_push_dummy_call): Use
5668 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5669
8ffd9b1b 5670 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5671 sign-extension of 32-bit values.
5672 (alpha_store_return_value): Similarly.
0ede8eca 5673
98a8e1e5
RH
5674 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5675 (alpha_extract_return_value): Likewise.
5676 (alpha_store_return_value): Likewise.
7b5e1cb3 5677
98a8e1e5
RH
5678 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5679 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5680
98a8e1e5
RH
5681 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5682 (alpha_extract_struct_value_address): Likewise.
5683 (alpha_store_return_value): Likewise.
5684 (alpha_store_struct_return): Remove.
5685 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5686
98a8e1e5
RH
5687 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5688 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5689 macros where appropriate.
5690 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5691 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5692
98a8e1e5
RH
5693 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5694 for SP, GP; void_func_ptr for PC; non-language-specific types
5695 for all others.
5696 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5697
6dd77b81
RH
56982003-06-02 Richard Henderson <rth@redhat.com>
5699
5700 * top.h (lim_at_start): Declare.
5701 * main.c (captured_main): Set it.
5702 * top.c (lim_at_start): Define.
5703 (command_loop): Use it instead of &environ.
5704 * event-top.c (command_handler): Likewise.
5705
f4dbdb54
JT
57062003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5707
5708 * mipsnbsd-tdep.c: Update copyright years.
5709 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5710
8f285956
RH
57112003-06-01 Richard Henderson <rth@redhat.com>
5712
98a8e1e5
RH
5713 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5714 (alpha-linux-tdep.o): Update dependencies.
5715 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5716 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5717
615967cb
RH
57182003-06-01 Richard Henderson <rth@redhat.com>
5719
98a8e1e5
RH
5720 * alpha-tdep.c (alpha_register_reggroup_p): New.
5721 (alpha_gdbarch_init): Register it.
615967cb 5722
b59661bd
AC
57232003-06-02 Andrew Cagney <cagney@redhat.com>
5724
5725 * dwarfread.c: Eliminate "register"
5726 (decode_die_type): Eliminate assignment within "if".
5727 (struct_type, decode_array_element_type): Ditto.
5728 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5729 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5730 (decode_modified_type, completedieinfo): Ditto.
5731 * block.c: Eliminate "register".
5732 (blockvector_for_pc_sect): Eliminate assignment within "if".
5733 * cp-support.h (struct symbol): Opaque declaration.
5734 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5735
5ef165c2
RH
57362003-06-01 Richard Henderson <rth@redhat.com>
5737
98a8e1e5
RH
5738 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5739 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5740
143985b7
AF
57412003-06-01 Adam Fedor <fedor@gnu.org>
5742
5743 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5744 * gdbarch.[ch]: Regenerate.
5745 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5746 (hppa_gdbarch_init): Set it in the gdbarch vector.
5747 * i386-tdep.c (i386_fetch_pointer_argument): New
5748 (i386_gdbarch_init): Set it into gdbarch.
5749 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5750 (rs6000_gdbarch_init): Set it in gdbarch.
5751 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5752 (sparc_gdbarch_init): Set it in gdbarch.
5753
ae0167b9
AC
57542003-06-01 Andrew Cagney <cagney@redhat.com>
5755
7c0b4a20
AC
5756 * defs.h (extract_address): Delete declaration.
5757 * findvar.c (extract_address): Delete function.
5758 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5759 extract_address with the inline equivalent,
5760 extract_unsigned_integer.
5761 (xstormy16_extract_struct_value_address): Ditto.
5762 (xstormy16_pointer_to_address): Ditto.
5763 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5764 * v850-tdep.c (v850_push_arguments): Ditto.
5765 (v850_extract_return_value): Ditto.
5766 (v850_extract_struct_value_address): Ditto.
5767 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5768 (sparcnbsd_get_longjmp_target_64): Ditto.
5769 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5770 (get_longjmp_target): Ditto.
5771 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5772 (sh64_extract_struct_value_address): Ditto.
5773 (sh_push_arguments): Ditto.
5774 (sh64_push_arguments): Ditto.
5775 * remote-vxsparc.c (vx_read_register): Ditto.
5776 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5777 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5778 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5779 * mipsv4-nat.c (get_longjmp_target): Ditto.
5780 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5781 * mips-nat.c (get_longjmp_target): Ditto.
5782 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5783 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5784 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5785 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5786 * irix5-nat.c (get_longjmp_target): Ditto.
5787 * irix4-nat.c (get_longjmp_target): Ditto.
5788 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5789 (ia64_push_arguments): Ditto.
5790 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5791 * h8300-tdep.c (h8300_push_arguments): Ditto.
5792 (h8300_store_return_value): Ditto.
5793 (h8300_extract_struct_value_address): Ditto.
5794 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5795 (frv_push_arguments): Ditto.
5796 * avr-tdep.c (avr_pointer_to_address): Ditto.
5797 (avr_push_arguments): Ditto.
5798 * arm-tdep.c (arm_push_dummy_call): Ditto.
5799 (arm_get_longjmp_target): Ditto.
5800 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5801 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5802 (alpha_get_longjmp_target): Ditto.
5803
ae0167b9
AC
5804 * solib-irix.c (extract_mips_address): Inline extract_address,
5805 replacing it with extract_signed_integer.
5806 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5807 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5808 (first_link_map_member, open_symbol_file_object): Ditto.
5809 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5810 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5811 (LM_NEXT, LM_NAME): Ditto.
5812
44d88583
RH
58132003-06-01 Richard Henderson <rth@redhat.com>
5814
98a8e1e5
RH
5815 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5816 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5817 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5818 (alpha_cannot_store_register): Likewise.
5819 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5820 * alpha-nat.c (supply_gregset): Likewise.
5821 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5822
310e9b6a
AC
58232003-06-01 Andrew Cagney <cagney@redhat.com>
5824
5825 * infcall.c (call_function_by_hand): Update comment on
5826 DEPRECATED_DUMMY_WRITE_SP.
5827
5828 * mips-tdep.c (mips_gdbarch_init): Do not set
5829 deprecated_dummy_write_sp.
5830 (mips_eabi_push_dummy_call): Set the SP register.
5831 (mips_o64_push_dummy_call): Set the SP register.
5832 (mips_o32_push_dummy_call): Set the SP register.
5833 (mips_n32n64_push_dummy_call): Set the SP register.
5834
5ab84872
RH
58352003-06-01 Richard Henderson <rth@redhat.com>
5836
98a8e1e5
RH
5837 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5838 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5839 (supply_gregset): Likewise.
5840 * alpha-tdep.c (alpha_store_return_value): Likewise.
5841 (alpha_get_longjmp_target): Likewise.
5842 (alpha_register_name): Constify array.
5843 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5844 deprecated_register_size, deprecated_register_bytes,
5845 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5846 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5847 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5848
09cc52fd
RH
58492003-06-01 Richard Henderson <rth@redhat.com>
5850
5851 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5852 from arg_reg_buffer to regcache to avoid double conversion.
5853
c7f16359
MK
58542003-06-01 Mark Kettenis <kettenis@gnu.org>
5855
5856 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5857 SP_REGNUM.
5858 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5859 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5860
7131cb6e
RH
58612003-06-01 Richard Henderson <rth@redhat.com>
5862
98a8e1e5
RH
5863 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5864 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5865
f3e0f90b
RH
58662003-06-01 Richard Henderson <rth@redhat.com>
5867
98a8e1e5
RH
5868 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5869 not overlapping PC_REGNUM.
f3e0f90b 5870
c88e30c0
RH
58712003-06-01 Richard Henderson <rth@redhat.com>
5872
98a8e1e5
RH
5873 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5874 alpha_push_arguments. Don't dump argument register data to
5875 the target stack. Fix float and 128-bit long double semantics.
5876 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5877 (alpha_fix_call_dummy): Remove.
5878 (alpha_call_dummy_words): Remove.
5879 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5880
f1a559ae
RH
58812003-06-01 Richard Henderson <rth@redhat.com>
5882
5883 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5884
5e045346
AC
58852003-06-01 Andrew Cagney <cagney@redhat.com>
5886
95404a3e
AC
5887 * mips-tdep.c (is_mips16_addr): New function.
5888 (make_mips16_addr, unmake_mips16_addr): New functions.
5889 (pc_is_mips16, mips_fetch_instruction): Use.
5890 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5891 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5892 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5893 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5894 TARGET_MIPS.
5895 * config/mips/tm-mips.h: Update copyright.
5896 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5897 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5898 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5899 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5900 (TM_PRINT_INSN_MACH): Delete.
5901 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5902
5e045346
AC
5903 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5904 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5905 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5906 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5907 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5908 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5909 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5910 mips*-*-riscos* and mips*-*-sysv* onto mips.
5911 * config/mips/mips64.mt: New file.
5912 * config/mips/mips.mt: New file.
5913 * config/mips/littlemips.mt: Delete file.
5914 * config/mips/decstation.mt: Delete file.
5915 * config/mips/vr4300el.mt: Delete file.
5916 * config/mips/vr5000el.mt: Delete file.
5917 * config/mips/vr5000.mt: Delete file.
5918 * config/mips/vr4100.mt: Delete file.
5919 * config/mips/vr4xxxel.mt: Delete file.
5920 * config/mips/vr4300.mt: Delete file.
5921 * config/mips/vr4xxx.mt: Delete file.
5922 * config/mips/bigmips.mt: Delete file.
5923 * config/mips/bigmips64.mt: Delete file.
5924 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5925 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5926 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5927 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5928 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5929 "tm-bigmips.h".
5930 * config/mips/tm-irix3.h: Ditto.
5931 * config/mips/tm-mipsv4.h: Ditto.
5932 * config/mips/tm-embed.h: Ditto.
5933 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5934 "tm-bigmips64.h".
5935 * config/mips/tm-vr5000el.h: Delete file.
5936 * config/mips/tm-tx39l.h: Delete file.
5937 * config/mips/tm-vr4300el.h: Delete file.
5938 * config/mips/tm-vr4xxxel.h: Delete file.
5939 * config/mips/tm-vr4300.h: Delete file.
5940 * config/mips/tm-vr4100.h: Delete file.
5941 * config/mips/tm-vr4xxx.h: Delete file.
5942 * config/mips/tm-vr5000.h: Delete file.
5943 * config/mips/tm-embedl64.h: Delete file.
5944 * config/mips/tm-embedl.h: Delete file.
5945 * config/mips/tm-embed64.h: Delete file.
5946 * config/mips/tm-bigmips64.h: Delete file.
5947 * config/mips/tm-bigmips.h: Delete file.
5948
2473a4a9
MK
59492003-06-01 Mark Kettenis <kettenis@gnu.org>
5950
97a5b208
MK
5951 Fix gdb/1216.
5952 * shnbsd-nat.c: Include "sh-tdep.h".
5953
2473a4a9
MK
5954 From Richard Henderson <rth@redhat.com>:
5955 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5956
e0f7ec59
AC
59572003-05-31 Andrew Cagney <cagney@redhat.com>
5958
5959 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5960 forward declaration.
5961 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5962 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5963 (mips_find_saved_regs): Use set_reg_offset.
5964 (mips_frame_init_saved_regs): Delete function.
5965 (mips_pop_frame): Call mips_find_saved_regs instead of
5966 DEPRECATED_FRAME_INIT_SAVED_REGS.
5967
68dcc709
AC
59682003-05-31 Andrew Cagney <cagney@redhat.com>
5969
5970 * mips-tdep.c (mips_gdbarch_init): Do not set
5971 deprecated_max_register_raw_size, register_virtual_size, and
5972 deprecated_max_register_virtual_size.
5973
cfc14b3a
MK
59742003-05-31 Mark Kettenis <kettenis@gnu.org>
5975
6405b0a6
MK
5976 * i386-tdep.c: Include "dwarf2-frame.h".
5977 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5978 * Makefile.in (i386-tdep.o): Update dependencies.
5979
cfc14b3a
MK
5980 * dwarf2-frame.c, dwarf2-frame.h: New files.
5981 * Makefile.in (SFILES): Add dwarf2-frame.c.
5982 (dwarf2_frame_h): Define.
5983 (COMMON_OBS): Add dwarf2-frame.o.
5984 (dwarf2-frame.o): Add dependencies.
5985
6a2751d2
AJ
59862003-05-31 Andreas Jaeger <aj@suse.de>
5987
5988 * x86-64-linux-nat.c: Fix comment.
5989
1c3545ae
MK
59902003-05-31 Mark Kettenis <kettenis@gnu.org>
5991
10f93086
MK
5992 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5993 function signature.
5994
1c3545ae
MK
5995 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5996 have a sigcontext_addr handler.
5997 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5998 sigcontext_addr handler.
5999
e11c53d2
AC
60002003-05-31 Andrew Cagney <cagney@redhat.com>
6001
6002 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6003 (print_fp_register_row): Replace do_fp_register_row.
6004 (mips_print_fp_register): Add "file" and "frame" parameters.
6005 (mips_print_register): Add "file" and "frame" parameters.
6006 (mips_print_registers_info): Replace mips_do_registers_info.
6007 (mips_gdbarch_init): Set print_registers_info instead of
6008 deprecated_do_registers_info.
6009 (mips_read_fp_register_single): Add "frame" parameter.
6010 (mips_read_fp_register_double): Add "frame" parameter.
6011
a3386186
MK
60122003-05-31 Mark Kettenis <kettenis@gnu.org>
6013
70913449
MK
6014 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6015 Fixes a bug where GDB would print the wrong register names for
6016 targets without SSE.
6017
2b5e0749
MK
6018 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6019 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6020 registers.
6021
6022 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6023 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6024 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6025 TDEP->sc_sp_offset.
6026
a3386186
MK
6027 From Michal Ludvig <mludvig@suse.cz>:
6028 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6029 and `sc_num_regs'.
6030 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6031 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6032 I386_ST0_REGNUM): Move here from...
6033 * i386-tdep.c: ... here.
6034 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6035 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6036 registers if possible.
6037 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6038 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6039 Remove variables.
6040 (i386bsd_sc_reg_offset): New variable.
6041 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6042 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6043 TDEP->sc_sp_offset.
6044 (i386fbsd_sc_reg_offset): New variable.
6045 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6046 TDEP->sc_num_regs.
6047 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6048 variables.
6049 (i386fbsd4_sc_reg_offset): New variable.
6050 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6051 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6052 TDEP->sc_sp_offset.
6053 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6054 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6055 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6056 Remove variables.
6057 (i386nbsd_sc_reg_offset): New variable.
6058 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6059 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6060 TDEP->sc_sp_offset.
6061 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6062 Remove variables.
6063 (i386obsd_sc_reg_offset): New variable.
6064 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6065 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6066 TDEP->sc_sp_offset.
6067 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6068 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6069 for frame pointer offset in `struct sigcontext'.
6070
25ab4790
AC
60712003-05-31 Andrew Cagney <cagney@redhat.com>
6072
6073 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6074 architecture methods call_dummy_words, sizeof_call_dummy_words,
6075 push_return_address, store_struct_return, and fix_call_dummy. Set
6076 push_dummy_call instead of deprecated_push_arguments.
6077 (mips_store_struct_return): Delete function.
6078 (mips_fix_call_dummy): Delete function.
6079 (mips_push_return_address): Delete function.
6080 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6081 RA_REGNUM and T9_REGNUM.
6082 (mips_n32n64_push_dummy_call): Ditto for
6083 mips_n32n64_push_arguments.
6084 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6085 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6086
6a65450a
AC
60872003-05-31 Andrew Cagney <cagney@redhat.com>
6088
6089 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6090 "dummy_addr" to "bp_addr".
6091 * infcall.c (call_function_by_hand): Pass "funaddr" to
6092 gdbarch_push_dummy_call.
6093 * gdbarch.h, gdbarch.c: Re-generate.
6094 * i386-tdep.c (i386_push_dummy_call): Update.
6095 * arm-tdep.c (arm_push_dummy_call): Update.
6096 * d10v-tdep.c (d10v_push_dummy_call): Update.
6097
c4f35dd8
MK
60982003-05-31 Mark Kettenis <kettenis@gnu.org>
6099
6100 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6101 variable declarations.
6102 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6103 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6104 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6105 x86_64_init_frame_pc, x86_64_init_frame_pc,
6106 x86_64_function_has_prologue): Remove prototypes.
6107 (X86_64_NUM_GREGS): New define.
6108 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6109 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6110 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6111 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6112 XMM1_REGNUM): Remove defines.
6113 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6114 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6115 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6116 X86_64_XMM1_REGNUM): New defines.
6117 (struct x86_64_register_info): Renamed from `struct
6118 register_info'. Remove `size' member.
6119 (x86_64_register_info_table): Remove variable.
6120 (x86_64_register_info): New variable.
6121 (X86_64_NUM_REGS): New define.
6122 (X86_64_NUM_GREGS): Remove define.
6123 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6124 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6125 Remove variables.
6126 (x86_54_dwarf2_reg_to_regnum): Remove function.
6127 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6128 (x86_64_dwarf_reg_to_regnum): New function.
6129 (x86_64_register_name): Rewrite.
6130 (x86_64_register_raw_size): Remove function.
6131 (x86_64_register_byte_table): Remove variable.
6132 (x86_64_register_byte): Remove function.
6133 (x86_64_register_virtual_type): Remove function.
6134 (x86_64_register_type): New function.
6135 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6136 x86_64_register_convert_to_raw): Remove functions.
6137 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6138 (x86_64_use_struct_convention): Make static. Adjust for renamed
6139 defines.
6140 (x86_64_frame_init_saved_regs): Remove function.
6141 (x86_64_push_arguments): Make static. Change to accept a regcache
6142 as argument.
6143 (x86_64_store_return_value, x86_64_extract_return_value): Make
6144 static. Rewrite based on i386 counterparts.
6145 (x86_64_push_dummy_call): New function.
6146 (X86_64_NUM_SAVED_REGS): New define.
6147 (x86_64_register_number): Remove function.
6148 (x86_64_store_struct_return): Remove function.
6149 (x86_64_frameless_function_invocation,
6150 x86_64_function_has_prologue): Remove functions.
6151 (PROLOG_BUFSIZE): Remove define.
6152 (struct x86_64_frame_cache): New structure.
6153 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6154 x86_64_frame_cache, x86_64_frame_this_id,
6155 x86_64_frame_prev_register, x86_64_frame_p,
6156 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6157 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6158 functions.
6159 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6160 variables.
6161 (x86_64_skip_prologue): Rewrite in terms of
6162 x86_64_analyze_prologue.
6163 (x86_64_frame_base_address): New function.
6164 (x86_64_frame_base): New variable.
6165 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6166 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6167 set deprecated_fp_regnum, deprecated_register_size,
6168 deprecated_register_bytes, register_raw_size, register_byte,
6169 register_virtual_type, register_convertiable,
6170 register_convert_to_virtual, convert_to_raw,
6171 deprecated_get_saved_register, deprecated_target_read_fp,
6172 deprecated_push_arguments, deprecated_push_return_address,
6173 deprecated_pop_frame, deprecated_store_struct_return,
6174 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6175 frameless_function_invocation, deprecated_frame_saved_pc,
6176 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6177 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6178 deprecated_init_frame_pc and virtual_frame_pointer. Call
6179 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6180 and x86_64_frame_p. Call frame_base_set_default to register
6181 x86_64_frame_base.
6182 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6183 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6184 (_initialize_x86_64_tdep): Remove function.
6185 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6186 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6187 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6188 define.
6189 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6190 (x86_64_linux_sigcontext_addr): Rewrite.
6191 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6192 x86_64_linux_frame_saved_pc): Remove functions.
6193 (x86_64_linux_pc_in_sigtramp): Renamed from
6194 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6195 trampoline.
6196 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6197 Remove_functions.
6198 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6199 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6200 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6201 (x86_64_regmap): Rename to regmap.
6202 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6203 x86_64_num_gregs.
6204 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6205 x86_64_regmap.
6206 (x86_64_fxsave_offset): Remove function.
6207 (supply_fpregset): Simply call x86_64_supply_fxsave.
6208 (fill_fpregset): Simply call x86_64_fill_fxsave.
6209 (fetch_inferior_registers, store_inferior_registers): Avoid
6210 asignment in if-statement.
6211 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6212 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6213 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6214 (fetch_core_registers): Remove function.
6215 (linux_elf_core_fns): Remove.
6216 (offsetoff): Don't define.
6217 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6218 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6219 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6220 add core-regset.o.
6221 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6222 protection against multiple includes instead of NM_X86_64_h. Add
6223 various comments. Include "config/nm-linux.h". Don't include
6224 <signal.h>.
6225 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6226 GET_THREAD_SIGNALS): Remove defines.
6227 (x86_64_register_u_addr, kernel_u_size,
6228 lin_thread_get_thread_signals): Remove prototypes.
6229 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6230 [HAVE_LINK_H]: Don't include "solib.h".
6231 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6232 * config/i386/tm-x86-64linux.h: Fix comments.
6233 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6234 x86-64-tdep.o): Update dependencies.
6235
c25083af
AC
62362003-05-30 Andrew Cagney <cagney@redhat.com>
6237
c8f55a7b
AC
6238 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6239 Change parameter type to a "struct regcache *".
6240
c25083af
AC
6241 * gdbarch.sh: Regardless of the multi-arch level, always define
6242 the macro when not already defined.
6243 * gdbarch.h, gdbarch.c: Re-generate.
6244
fbe586ae
RH
62452003-05-30 Richard Henderson <rth@redhat.com>
6246
6247 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6248 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6249 (alpha_mdebug_frame_this_id): Likewise.
6250 (alpha_mdebug_frame_prev_register): Likewise.
6251 (alpha_mdebug_frame_base_address): Likewise.
6252 (alpha_mdebug_frame_locals_address): Likewise.
6253 (alpha_mdebug_frame_args_address): Likewise.
6254 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6255 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6256 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6257 loop increment.
6258 (alpha_heuristic_frame_this_id): Make static.
6259 (alpha_heuristic_frame_prev_register): Likewise.
6260 (alpha_heuristic_frame_base_address): Likewise.
6261 * alpha-tdep.h: Update.
6262
acd5c798
MK
62632003-05-30 Mark Kettenis <kettenis@gnu.org>
6264
6265 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6266 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6267 defenitions.
6268 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6269 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6270 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6271 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6272 I386_ST0_REGNUM): New defines.
6273 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6274 codestream_get): Remove define.
6275 (codestream_next_addr, condestream_addr, condestream_buf,
6276 codestream_off, codestream_cnt): Remove variables.
6277 (codestream_fill, codestream_seek, codestream_read): Remove
6278 functions.
6279 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6280 functionality.
6281 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6282 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6283 i386_frame_saved_pc, i386_saved_pc_after_call,
6284 i386_frame_num_args, i386_frame_init_saved_regs,
6285 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6286 i386_push_arguments): Remove functions.
6287 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6288 functionality. Use i386_analyze_prologue instead of
6289 i386_get_frame_setup.
6290 (I386_NUM_SAVED_REGS): New define.
6291 (struct i386_frame_cache): New structure.
6292 (i386_alloc_frame_cache, i386_analyze_struct_return,
6293 i386_skip_probe, i386_analyze_frame_setup,
6294 i386_analyze_register_saves, i386_analyze_prologue,
6295 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6296 i386_frame_prev_register, i386_sigtramp_frame_cache,
6297 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6298 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6299 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6300 New functions.
6301 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6302 New variables.
6303 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6304 I386_EAX_REGNUM and I386_EDX_REGNUM.
6305 (i386_extract_return_value, i386_store_return_value): Use
6306 I386_ST0_REGNUM where appropriate.
6307 (i386_extract_struct_value_address): Rewrite to use extract_address.
6308 (i386_svr4_pc_in_sigtramp): Add comment.
6309 (i386_svr4_sigcontext_addr): Rewrite.
6310 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6311 TDEP->sc_sp_offset.
6312 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6313 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6314 of new defines. Set push_dummy_call, don't set
6315 deprecated_push_arguments, deprecated_push_return_address,
6316 deprecated_pop_frame. Don't set parm_boundary. Don't set
6317 deprecated_frame_chain, deprecated_frame_saved_pc,
6318 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6319 save_dummy_frame_tos, unwind_pc. Call
6320 frame_unwind_append_predicate and frame_base_set_default. Don't
6321 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6322 Don't set frameless_function_invocation. Don't set
6323 deprecated_register_bytes, deprecated_register_size,
6324 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6325 * i386-linux-tdep.c: Fix formatting in some comments.
6326 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6327 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6328 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6329 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6330 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6331 redundant parentheses.
6332 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6333 (i386_linux_sigcontext_addr): Use it. Rewrite.
6334 (find_minsym_and_objfile): Change name of second argument.
6335 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6336 changed. Use frame_pc_unwind instead of
6337 DEPRECATED_SAVED_PC_AFTER_CALL.
6338 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6339 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6340 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6341 unwinder.
6342 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6343 "dummy-frame.h".
6344 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6345 (_initialize_i386_cygwin_tdep): New prototype.
6346 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6347 deprecated_frame_chain_valid.
6348 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6349 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6350 Rely on the SVR4 defaults.
6351 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6352 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6353
c89b70f1
AC
63542003-05-30 Andrew Cagney <cagney@redhat.com>
6355
6356 * infcall.c (call_function_by_hand): Always call
6357 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6358
85b32d22
RH
63592003-05-30 Richard Henderson <rth@redhat.com>
6360
c89b70f1
AC
6361 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6362 increment.
85b32d22 6363
bfe51b1e
JB
63642003-05-29 Jim Blandy <jimb@redhat.com>
6365
6366 Use gdbarch methods for solib stuff on PowerPC Linux.
6367 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6368 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6369 show through.
6370 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6371 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6372 giving the same effect as the #definitions above.
6373
1abf022c
AF
63742003-05-29 Adam Fedor <fedor@gnu.org>
6375
6376 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6377 (find_implementation_from_class): Replace it with the standard
6378 case i.e. do nothing.
6379
d2427a71
RH
63802003-05-29 Richard Henderson <rth@redhat.com>
6381
6382 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6383 (alpha_linux_sigtramp_offset): Use it. Make static.
6384 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6385 update for new frame model.
6386 * alpha-mdebug-tdep.c: New file.
6387 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6388 (alpha_osf1_init_abi): Install it.
6389 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6390 (linked_proc_desc_table): Remove.
6391 (alpha_frame_past_sigtramp_frame): Remove.
6392 (alpha_dynamic_sigtramp_offset): Remove.
6393 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6394 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6395 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6396 (push_sigtramp_desc): Remove.
6397 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6398 (alpha_cannot_store_register): Likewise.
6399 (alpha_sigcontext_addr): Remove.
6400 (alpha_find_saved_regs): Remove.
6401 (alpha_frame_init_saved_regs): Remove.
6402 (alpha_init_frame_pc_first): Remove.
6403 (read_next_frame_reg): Remove.
6404 (alpha_frame_saved_pc): Remove.
6405 (alpha_saved_pc_after_call): Remove.
6406 (temp_proc_desc, temp_saved_regs): Remove.
6407 (alpha_about_to_return): Remove.
6408 (cached_proc_desc): Remove.
6409 (alpha_frame_chain): Remove.
6410 (alpha_print_extra_frame_info): Remove.
6411 (alpha_init_extra_frame_info): Remove.
6412 (alpha_frame_locals_address): Remove.
6413 (alpha_frame_args_address): Remove.
6414 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6415 (alpha_push_dummy_frame): Remove.
6416 (alpha_pop_frame): Remove.
6417 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6418 (alpha_read_insn): New.
6419 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6420 for different insn encodings.
6421 (alpha_in_lenient_prologue): Remove.
6422 (struct alpha_sigtramp_unwind_cache): New.
6423 (alpha_sigtramp_frame_unwind_cache): New.
6424 (alpha_sigtramp_register_address): New.
6425 (alpha_sigtramp_frame_this_id): New.
6426 (alpha_sigtramp_frame_prev_register): New.
6427 (alpha_sigtramp_frame_unwind): New.
6428 (alpha_sigtramp_frame_p): New.
6429 (struct alpha_heuristic_unwind_cache): New.
6430 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6431 don't count nop insns that occur between functions.
6432 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6433 heuristic_proc_desc, but without the mdebug wrapping.
6434 (alpha_heuristic_frame_this_id): New.
6435 (alpha_heuristic_frame_prev_register): New.
6436 (alpha_heuristic_frame_unwind): New.
6437 (alpha_heuristic_frame_p): New.
6438 (alpha_heuristic_frame_base_address): New.
6439 (alpha_heuristic_frame_base): New.
6440 (alpha_unwind_dummy_id): New.
6441 (alpha_unwind_pc): New.
6442 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6443 frame related deprecated initializations; install replacements.
6444 (alpha_dump_tdep): Remove.
6445 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6446 (alpha_read_insn, alpha_after_prologue,
6447 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6448 alpha_heuristic_frame_prev_register,
6449 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6450 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6451 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6452 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6453
93ec1121
AC
64542003-05-29 Andrew Cagney <cagney@redhat.com>
6455
6456 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6457 dependant on the availability of ASSERT_FUNCTION.
6458 (ASSERT_FUNCTION): Do not define when there is no function name.
6459
98f08d3d
KB
64602003-05-29 Kevin Buettner <kevinb@redhat.com>
6461
6462 From Jimi X <jimix@watson.ibm.com>:
6463 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6464
0897f59b
JB
64652003-05-28 Jim Blandy <jimb@redhat.com>
6466
6467 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6468 argument to ptrace to int; the system headers should give it the
6469 right type, and pointers don't fit in ints on powerpc64-*-*.
6470
14898363
L
64712003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6472
6473 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6474 DW_TAG_catch_block.
6475
a7a48797
EZ
64762003-05-26 Elena Zannoni <ezannoni@redhat.com>
6477
6478 * stabsread.c (dbx_lookup_type): Make static.
6479 (read_type): Ditto.
6480 (add_undefined_type): Ditto.
6481 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6482 not export.
6483
f5479e9c
EZ
64842003-05-26 Elena Zannoni <ezannoni@redhat.com>
6485
6486 * hpread.c (hpread_has_name): Make static.
6487 (hpread_psymtab_to_symtab): Ditto.
6488 (file_exists): Ditto.
6489 (hpread_call_pxdb): Ditto.
6490 (hpread_pxdb_needed): Ditto.
6491 (hpread_quick_traverse): Ditto.
6492 (hpread_get_header): Ditto.
6493 (hpread_get_lntt): Ditto.
6494 (hpread_get_slt): Ditto.
6495 (class_of): Ditto.
6496
eb2e12d7
AS
64972003-05-25 Andreas Schwab <schwab@suse.de>
6498
78bf922a
AS
6499 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6500 stack_align and deprecated_extra_stack_alignment_needed.
6501 (m68k_stack_align): Delete.
6502
eb2e12d7
AS
6503 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6504 (m68k_register_virtual_size): Likewise.
6505 (altos_skip_prologue): Remove obsolete function.
6506 (isi_frame_num_args): Likewise.
6507 (news_frame_num_args): Likewise.
6508 (m68k_fix_call_dummy): Make static.
6509 (m68k_push_dummy_frame): Likewise.
6510 (m68k_pop_frame): Likewise.
6511 (m68k_skip_prologue): Likewise.
6512 (m68k_frame_init_saved_regs): Likewise.
6513 (m68k_saved_pc_after_call): Likewise.
6514 (m68k_get_longjmp_target): Make multi-arch.
6515 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6516 structure. Register m68k_get_longjmp_target if enabled.
6517 * m68k-tdep.h (struct gdbarch_tdep): Define.
6518 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6519
6520 * Makefile.in (config.status): Also depend on configure.tgt
6521 and configure.host.
6522 (m68klinux-tdep.o): Update dependencies.
6523 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6524 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6525 (M68K_LINUX_JB_PC): Define.
6526 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6527 and take additional parameter.
6528 (m68k_linux_sigtramp_saved_pc): Update.
6529 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6530 m68k_linux_pc_in_sigtramp, in_plt_section,
6531 find_solib_trampoline_target.
6532 * config/m68k/tm-linux.h: Don't include any tm headers.
6533 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6534 (JB_ELEMENT_SIZE): Likewise.
6535 (JB_PC): Likewise.
6536 (GET_LONGJMP_TARGET): Likewise.
6537 (IN_SIGTRAMP): Likewise.
6538 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6539
eb2c22dc
MK
65402003-05-25 Mark Kettenis <kettenis@gnu.org>
6541
6542 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6543 (sparc32_push_arguments): Re-implement by calling
6544 sparc32_do_push_arguments.
6545
44b7b84e
MK
65462003-05-25 Mark Kettenis <kettenis@gnu.org>
6547
6548 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6549 SPARC_O1_REGNUM): New defines.
6550 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6551 (sparc32_store_return_value): New function.
6552 (sparc_extract_struct_value_address): Rewrite to operate on a
6553 regcache.
6554 (sparc_gdbarch_init): Don't set
6555 deprecated_extract_struct_value_address. Set
6556 extract_struct_value_address instead. Don't set
6557 deprecated_extract_return_value and deprecated_store_return_value
6558 for 32-bit targets. Set extract_return_value and
6559 store_return_value instead.
6560 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6561 DEPRECTAED_EXTRACT_RETURN_VALUE,
6562 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6563 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6564 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6565 (sparc_store_return_value): Remove prototype.
6566 (sparc32_store_return_value): New prototype.
6567 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6568 Adjust prototypes.
6569
f6ad61e3
MK
65702003-05-24 Mark Kettenis <kettenis@gnu.org>
6571
6572 * sparcnbsd-tdep.c: Include "gdb_string.h".
6573
b276f1bb
AC
65742003-05-23 Andrew Cagney <cagney@redhat.com>
6575
6576 * p-valprint.c (pascal_val_print): Replace extract_address with
6577 the inline equivalent extract_unsigned_integer.
6578 * jv-valprint.c (java_value_print): Ditto.
6579 * ada-valprint.c (ada_val_print_1): Ditto.
6580 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6581
e76c5fcc
TR
65822003-05-23 Theodore A. Roth <troth@openavr.org>
6583
6584 * blockframe.c (frameless_look_for_prologue): Remove unused
6585 after_prologue variable.
6586
2cdd89cb
MK
65872003-05-23 Mark Kettenis <kettenis@gnu.org>
6588
6589 * blockframe.c (get_pc_function_start): Rewrite to avoid
6590 asignments in if-statements.
6591
182d43bc
EZ
65922003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6593
6594 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6595 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6596 files, don't relocate absolute symbols (and do use mst_abs).
6597
e8f3fcdd
AC
65982003-05-23 Andrew Cagney <cagney@redhat.com>
6599
6600 * objc-lang.c: Include "gdb_assert.h".
6601 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6602 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6603 (gdb_check, gdb_check_fatal): Delete functions.
6604 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6605 gdb_assert.
6606 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6607 * Makefile.in (objc-lang.o): Update dependencies.
6608
3c23e6fb
ILT
66092003-05-22 Ian Lance Taylor <ian@airs.com>
6610
6611 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6612 with fprintf_filtered, not fprintf_unfiltered.
6613
af1342ab
AC
66142003-05-22 Andrew Cagney <cagney@redhat.com>
6615
6616 * stack.c (frame_info): Inline extract_address, replacing it with
6617 extract_unsigned_integer.
6618 * findvar.c (unsigned_pointer_to_address): Ditto.
6619 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6620 * dwarf2expr.c (dwarf2_read_address): Ditto.
6621 * frame.c (frame_pc_unwind): Update comment.
6622 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6623
47e242ec
JJ
66242003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6625
6626 * infptrace.c (detach): Call print_sys_errmsg rather than
6627 perror_with_name to issue warning message when errno is non-zero
6628 after calling ptrace detach.
6629
e2ac8128
JB
66302003-05-21 J. Brobecker <brobecker@gnat.com>
6631
6632 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6633 macro definitions from here...
6634 * hppa-tdep.c: ...to there.
6635
92b3541e
KB
66362003-05-20 Kevin Buettner <kevinb@redhat.com>
6637
6638 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6639 register_ptrace_addr(). Fix all callers.
6640
55809acb
AS
66412003-05-21 Andreas Schwab <schwab@suse.de>
6642
6643 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6644 dependencies.
6645 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6646 end.
6647 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6648 (_initialize_m68k_linux_tdep): New function.
6649 (m68k_linux_frame_saved_pc): Make static.
6650 (m68k_linux_extract_return_value): Likewise.
6651 (m68k_linux_store_return_value): Likewise.
6652 (m68k_linux_extract_struct_value_address): Likewise.
6653 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6654 Remove.
6655 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6656 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6657 (DEPRECATED_FRAME_SAVED_PC): Remove.
6658
0fbc10f7
KW
66592003-05-20 Kris Warkentin <kewarken@qnx.com>
6660
6661 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6662 regset numbering rather than our own.
6663
58da2eb2
DC
66642003-05-19 David Carlton <carlton@bactrian.org>
6665
6666 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6667
1fcb5155
DC
66682003-05-19 David Carlton <carlton@bactrian.org>
6669
6670 Partial fix for PR c++/827.
6671 * cp-support.h: Include symtab.h.
6672 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6673 * cp-namespace.c: Update contributors.
6674 (cp_lookup_symbol_nonlocal): New.
6675 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6676 (lookup_symbol_file): Ditto.
6677 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6678 * block.h: Declare block_scope, block_using, block_global_block.
6679 * block.c (block_scope): New.
6680 (block_using, block_global_block): Ditto.
6681 * Makefile.in (cp_support_h): Depend on symtab_h.
6682 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6683
5f9a71c3
DC
66842003-05-19 David Carlton <carlton@bactrian.org>
6685
6686 * language.h (struct language_defn): Add 'la_value_of_this'
6687 and 'la_lookup_symbol_nonlocal' members.
6688 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6689 lookup_symbol_static, lookup_symbol_global,
6690 lookup_symbol_aux_block.
6691 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6692 if we should search fields of this and how to do static/global
6693 lookup.
6694 (lookup_symbol_aux_block): Make extern.
6695 (basic_lookup_symbol_nonlocal): New.
6696 (lookup_symbol_static, lookup_symbol_global): Ditto.
6697 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6698 'la_lookup_symbol_nonlocal' members.
6699 * c-lang.c (c_language_defn, cplus_language_defn)
6700 (asm_language_defn, minimal_language_defn): Ditto.
6701 * jv-lang.c (java_language_defn): Ditto.
6702 * language.c (unknown_language_defn, auto_language_defn)
6703 (local_language_defn): Ditto.
6704 * m2-lang.c (m2_language_defn): Ditto.
6705 * objc-lang.c (objc_language_defn): Ditto.
6706 * scm-lang.c (scm_language_defn): Ditto.
6707 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6708 * p-lang.c (pascal_language_defn): Ditto for both.
6709 * Makefile.in (f-lang.o): Depend on value_h.
6710 (p-lang.o): Ditto.
6711
89a9d1b1
DC
67122003-05-19 David Carlton <carlton@bactrian.org>
6713
6714 * block.h: Declare block_static_block.
6715 * block.c (block_static_block): New.
6716 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6717 lookup_symbol_aux_local, calling block_static_block instead.
6718 (lookup_symbol_aux_local): Delete 'static_block' argument.
6719
eed3f8ab
DC
67202003-05-19 David Carlton <carlton@bactrian.org>
6721
6722 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6723
a09d8bda
ML
67242003-05-19 Michal Ludvig <mludvig@suse.cz>
6725
6726 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6727 register numbers mapping.
6728
69636828
AF
67292003-05-18 Adam Fedor <fedor@gnu.org>
6730
6731 * symtab.c (completion_list_objc_symbol): New function.
6732 (make_symbol_completion_list): Use it to add ObjC symbols
6733 when looking though the list.
6734 (language_search_unquoted_string): New function.
6735 (make_file_symbol_completion_list): Use it.
6736
55baeb84
AS
67372003-05-18 Andreas Schwab <schwab@suse.de>
6738
d0b45d99
AS
6739 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6740 dependencies.
6741 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6742 as m68k_linux_extract_return_value.
6743 (DEPRECATED_STORE_RETURN_VALUE): Define as
6744 m68k_linux_store_return_value.
6745 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6746 m68k_linux_extract_struct_value_address.
6747 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6748 get_next_frame, get_frame_base, get_frame_pc.
6749 (m68k_linux_frame_saved_pc): Use get_frame_base.
6750 (m68k_linux_extract_return_value): New function.
6751 (m68k_linux_store_return_value): New function.
6752 (m68k_linux_extract_struct_value_address): New function.
6753 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6754
55baeb84
AS
6755 * c-exp.y (typebase): Remove duplicate occurence of
6756 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6757 of lookup_signed_typename.
55baeb84 6758
b6b08ebf
MK
67592003-05-18 Mark Kettenis <kettenis@gnu.org>
6760
6761 * dwarf2loc.c (find_location_expression): Change type of second
6762 argument to `size_t *'.
6763 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6764 for size variable.
6765
5ad1c190
DC
67662003-05-18 David Carlton <carlton@bactrian.org>
6767
6768 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6769 'linkage_name'. Add comment.
6770 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6771 'linkage_name'.
6772 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6773 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6774 (lookup_block_symbol): Ditto.
6775
b8b527c5
AC
67762003-05-16 Andrew Cagney <cagney@redhat.com>
6777
6778 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6779 * gdbarch.h, gdbarch.c: Re-generate.
6780 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6781 * TODO (REGISTER_BYTES): Delete reference.
6782 * alpha-tdep.c (alpha_gdbarch_init): Update.
6783 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6784 * x86-64-tdep.c (x86_64_init_abi): Update.
6785 * vax-tdep.c (vax_gdbarch_init): Update.
6786 * v850-tdep.c (v850_gdbarch_init): Update.
6787 * sparc-tdep.c (sparc_gdbarch_init): Update.
6788 * sh-tdep.c (sh_gdbarch_init): Update.
6789 * s390-tdep.c (s390_gdbarch_init): Update.
6790 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6791 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6792 (ns32k_gdbarch_init_32382): Update.
6793 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6794 * mcore-tdep.c (mcore_gdbarch_init): Update.
6795 * m68k-tdep.c (m68k_gdbarch_init): Update.
6796 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6797 * ia64-tdep.c (ia64_gdbarch_init): Update.
6798 * i386-tdep.c (i386_gdbarch_init): Update.
6799 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6800 * hppa-tdep.c (hppa_gdbarch_init): Update.
6801 * h8300-tdep.c (h8300_gdbarch_init): Update.
6802 * frv-tdep.c (frv_gdbarch_init): Update.
6803 * cris-tdep.c (cris_gdbarch_init): Update.
6804 * avr-tdep.c (avr_gdbarch_init): Update.
6805 * arm-tdep.c (arm_gdbarch_init): Update.
6806 * sparc-tdep.c (sparc_pop_frame): Update.
6807 * rs6000-tdep.c (rs6000_pop_frame): Update.
6808 * remote.c (init_remote_state): Update.
6809 (remote_prepare_to_store): Update.
6810 * remote-vx.c (vx_prepare_to_store): Update.
6811 * remote-sds.c (sds_fetch_registers): Update.
6812 (sds_prepare_to_store): Update.
6813 * remote-array.c: Update.
6814 * regcache.c (init_legacy_regcache_descr): Update.
6815 (init_regcache_descr): Update.
6816 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6817 (mips_o64_extract_return_value): Update.
6818 * irix5-nat.c (fetch_core_registers): Update.
6819 * irix4-nat.c (fetch_core_registers): Update.
6820 * i386-tdep.h: Update.
6821 * hppa-tdep.c (pa_do_registers_info): Update.
6822 (pa_do_strcat_registers_info): Update.
6823 * cris-tdep.c (cris_register_bytes_ok): Update.
6824 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6825 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6826 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6827 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6828 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6829 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6830 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6831 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6832 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6833 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6834 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6835 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6836 (REGISTER_BYTES_OK): Update.
6837 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6838 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6839
ee2842e2
ILT
68402003-05-16 Ian Lance Taylor <ian@airs.com>
6841
6842 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6843 (vax_print_insn, print_insn_arg): Remove static functions.
6844 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6845 print_insn_vax from opcodes library.
6846 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6847
973177d3
AC
68482003-05-15 Andrew Cagney <cagney@redhat.com>
6849
aaab4dba
AC
6850 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6851 * target.h (memory_breakpoint_from_pc): Delete declaration.
6852 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6853 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6854 * monitor.c (monitor_insert_breakpoint): Use
6855 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6856 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6857 * gdbarch.h, gdbarch.c: Re-generate.
6858 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6859 (sparc_gdbarch_init): Set breakpoint_from_pc to
6860 sparc_breakpoint_from_pc.
6861 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6862 (BREAKPOINT_FROM_PC): Define.
6863 (sparc_breakpoint_from_pc): Declare.
6864 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6865 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6866 (BREAKPOINT_FROM_PC): Define.
6867 (BREAKPOINT): Delete macro.
6868 * target.h: Update comment.
6869 * s390-tdep.c (s390_gdbarch_init): Update comments.
6870 * remote.c: Update comments.
6871 * remote-mips.c: Update comments.
6872 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6873 * mem-break.c: Update comment.
6874 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6875 (ia64_memory_insert_breakpoint): Update.
6876 * config/sparc/tm-sparc.h: Update comment.
6877 * config/pa/tm-hppa64.h: Update comment.
6878 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6879 (rs6000_breakpoint_from_pc): Update.
6880 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6881 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6882 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6883 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6884 (mips_breakpoint_from_pc): Update.
6885 (mips_dump_tdep): Update.
6886
e06963ff
AC
6887 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6888 * minsyms.c (lookup_minimal_symbol): Inline
6889 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6890
973177d3
AC
6891 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6892 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6893 * p-lang.c (pascal_printstr): Ditto.
6894 * objc-lang.c (objc_printstr): Ditto.
6895 * m2-lang.c (m2_printstr): Ditto.
6896 * jv-valprint.c (java_print_value_fields): Ditto.
6897 * f-lang.c (f_printstr): Ditto.
6898 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6899 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6900 for repeat_count_threshold.
6901 * Makefile.in (cp-valprint.o): Update dependencies.
6902
5ea2bd7f 69032003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6904
5ea2bd7f
JJ
6905 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6906 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6907 they start with mov r2,r12. Support skipping over indirect stores
6908 of the input registers. Upon hitting a non-nop branch instruction
6909 or predicated instruction, bail out by setting lim_pc to the current
6910 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6911 beyond our calculated value and we have trust_limit set,
6912 use the lim_pc value.
6913
cc8c88f3
AC
69142003-05-15 Andrew Cagney <cagney@redhat.com>
6915
6916 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6917 generic_find_dummy_frame.
6918 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6919 (deprecated_generic_find_dummy_frame): Update.
6920 (deprecated_read_register_dummy): Update.
6921 * frame.c (deprecated_generic_get_saved_register): Update.
6922
909cd28e
TR
69232003-05-15 Theodore A. Roth <troth@openavr.org>
6924
6925 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6926 (avr_gdbarch_init): Set breakpoint_from_pc method.
6927
b923b08d
AC
69282003-05-15 Andrew Cagney <cagney@redhat.com>
6929
6930 * regcache.c (build_regcache): Set deprecated_register_valid
6931 directly.
6932 (deprecated_grub_regcache_for_register_valid): Delete function.
6933 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6934 declaration.
6935
ae2f03ac 69362003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6937
6938 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6939 * symtab.c (lookup_symbol_aux): Delete calls to
6940 lookup_symbol_aux_minsyms.
6941 (lookup_symbol_aux_minsyms): Comment out function and
6942 prototype. Delete lookup by mangled name.
ae2f03ac 6943
18ec9831
KB
69442003-05-14 Kevin Buettner <kevinb@redhat.com>
6945
6946 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6947 correctly indicate an empty stack and ``stack_allocated'' to the
6948 indicate the number of elements initially allocated.
6949 (dwarf_expr_grow_stack): Simplify method for computing new
6950 stack size. Don't loop infinitely if ``stack_len'' is zero.
6951 (execute_stack_op): Move ``ctx->in_reg'' initialization
6952 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6953 be used in conjuction with DW_OP_piece. Revise error message
6954 accordingly.
6955
de18ac1f
TR
69562003-05-14 Theodore A. Roth <troth@openavr.org>
6957
6958 * MAINTAINERS: Update my email address.
6959 * avr-tdep.c: Ditto.
6960
176620f1
EZ
69612003-05-14 Elena Zannoni <ezannoni@redhat.com>
6962
6963 * symtab.h (enum domain_enum): Rename from namespace_enum.
6964 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6965 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6966 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6967 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6968 TYPES_NAMESPACE, METHODS_NAMESPACE.
6969 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6970 (struct symbol, struct partial_symbol): Rename field
6971 'namespace_enum namespace' to 'domain_enum domain'.
6972 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6973 Delete old define kludge for namespace.
6974
6975 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6976 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6977 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6978 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6979 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6980 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6981 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6982 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6983 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6984 occurrences of the above.
6985
b7f31508
ILT
69862003-05-14 Ian Lance Taylor <ian@airs.com>
6987
6988 * Makefile.in (install-only): Use $(SHELL) when running
6989 mkinstalldirs.
6990
2fdbdd39
ILT
69912003-05-13 Ian Lance Taylor <ian@airs.com>
6992
a208d82c
ILT
6993 * MAINTAINERS (write after approval): Add myself.
6994
2fdbdd39
ILT
6995 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6996 second and third arguments.
6997 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6998 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6999
fbd9dcd3
AC
70002003-05-13 Andrew Cagney <cagney@redhat.com>
7001
7002 * defs.h (store_address): Delete declaration.
7003 findvar.c (store_address): Delete function.
7004 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7005 store_unsigned_integer.
7006 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7007 * v850-tdep.c (v850_push_arguments): Ditto.
7008 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7009 * sh-tdep.c (sh64_get_saved_register): Ditto.
7010 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7011 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7012 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7013 (mips_get_saved_register): Ditto.
7014 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7015 (find_func_descr, ia64_push_arguments): Ditto.
7016 * i386-tdep.c (i386_push_arguments): Ditto.
7017 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7018 * frv-tdep.c (frv_push_arguments): Ditto.
7019 * frame.c (legacy_saved_regs_prev_register): Ditto.
7020 (deprecated_generic_get_saved_register): Ditto.
7021 * findvar.c (unsigned_address_to_pointer): Ditto.
7022 * dwarf2read.c (dwarf2_const_value): Ditto.
7023 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7024 * alpha-tdep.c (alpha_push_arguments): Ditto.
7025
6760f9e6
JB
70262003-05-12 J. Brobecker <brobecker@gnat.com>
7027
7028 * NEWS: Mention that the hppa-hpux port has been partially
7029 multiarched (32bit ABIT only, so far).
7030
30e221b4
AC
70312003-05-11 Andrew Cagney <cagney@redhat.com>
7032
7033 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7034 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7035 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7036 sim/testsuite/sim/arm/misaligned2.ms, and
7037 sim/testsuite/sim/arm/misaligned3.ms.
7038 * disasm.h (struct ui_file): Add opaque struct declaration.
7039 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7040 * frame.h (struct ui_file): Ditto.
7041
dea7f9ba
MK
70422003-05-11 Mark Kettenis <kettenis@gnu.org>
7043
7044 * value.h: Pretty print.
7045
01986c48
MK
70462003-05-10 Mark Kettenis <kettenis@gnu.org>
7047
7048 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7049
123a958e
AC
70502003-05-08 Andrew Cagney <cagney@redhat.com>
7051
7052 * regcache.h (max_register_size): Delete declaration.
7053 * regcache.c (max_register_size): Delete function.
7054 (struct regcache_descr): Delete field "max_register_size".
7055 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7056 registers fit in MAX_REGISTER_SIZE.
7057 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7058 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7059 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7060 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7061 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7062 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7063 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7064 * dve3900-rom.c, hppa-tdep.c: Ditto.
7065
eb294659
DC
70662003-05-08 David Carlton <carlton@math.stanford.edu>
7067
7068 * valops.c (push_word): Fix typo.
7069
d9d9c31f
AC
70702003-05-08 Andrew Cagney <cagney@redhat.com>
7071
7072 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7073 * gdbarch.h: Re-generate.
7074 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7075 (legacy_max_register_raw_size): Delete declaration.
7076 * regcache.c (legacy_max_register_raw_size): Delete function.
7077 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7078 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7079 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7080 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7081 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7082 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7083 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7084 * findvar.c, dwarf2cfi.c: Ditto.
7085
22540ece
AC
70862003-05-08 Andrew Cagney <cagney@redhat.com>
7087
7088 * mips-tdep.c (read_signed_register): New function, moved to here
7089 from "regcache.c".
7090 (read_signed_register_pid): Ditto.
7091 * regcache.c (read_signed_register_pid): Delete function, moved to
7092 "mips-tdep.c".
7093 (read_signed_register): Ditto.
7094 * regcache.h (read_signed_register): Delete declaration.
7095 (read_signed_register_pid): Delete declaration.
7096
0c92afe8
AC
70972003-05-08 Andrew Cagney <cagney@redhat.com>
7098
7099 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7100 * gdbarch.h: Re-generate.
7101 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7102 (legacy_max_register_virtual_size): Delete declaration.
7103 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7104 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7105 * tracepoint.c (memrange_sortmerge): Ditto.
7106 * sparc-tdep.c (sparc_print_registers): Ditto.
7107 * regcache.c (legacy_max_register_virtual_size): Delete function.
7108
6037b830
JB
71092002-05-08 J. Brobecker <brobecker@gnat.com>
7110
7111 * fork-child.c (escape_bang_in_quoted_argument): New function.
7112 (fork_inferior): Escape '!' characters in quoted arguments
7113 only when needed.
7114
5d62c8b1
JB
71152003-05-08 J. Brobecker <brobecker@gnat.com>
7116
7117 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7118 the language of the CU is not currently supported by GDB.
7119
20a0e81d
JB
71202003-05-08 J. Brobecker <brobecker@gnat.com>
7121
7122 * defs.h (language): Add language_minimal enum value.
7123 * c-lang.c (minimal_language_defn): New language definition.
7124 (_initialize_c_language): Add the new minimal language to the list
7125 of languages known to GDB.
7126
710ee10a
KB
71272003-05-08 Kevin Buettner <kevinb@redhat.com>
7128
7129 * frame.c (get_frame_type): Don't attempt to lazily initialize
7130 frame's unwinder for legacy frames.
7131
1750fa04
AC
71322003-05-07 Andrew Cagney <cagney@redhat.com>
7133
7134 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7135 and "regcache" parameters.
7136 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7137
ddf9f258 71382003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7139
7140 * dwarf2read.c (dwarf_decode_lines): Only use output of
7141 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7142 the current address.
7143
87767c29
AC
71442003-05-07 Andrew Cagney <cagney@redhat.com>
7145
7146 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7147 code.
7148
5e7b2f39
JB
71492003-05-07 Jim Blandy <jimb@redhat.com>
7150
7151 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7152 'maint info symtabs' and 'maint info psymtabs'.
7153 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7154 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7155 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7156 Declarations updated.
7157 * maint.c (maintenance_list_command): Delete.
7158 (_initialize_maint_cmds): Update calls to add_cmd.
7159 * gdbcmd.h (maintenancelistlist): Delete declaration.
7160 * cli/cli-cmds.c (maintenancelistlist): Delete.
7161 (init_cmd_lists): Don't initialize it.
7162 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7163
f6684c31
AC
71642003-05-07 Andrew Cagney <cagney@redhat.com>
7165
7166 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7167 "regcache".
7168 (d10v_print_registers_info): Update.
7169 (d10v_dmap_register, d10v_imap_register): Delete functions.
7170 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7171 and "imap_register".
7172 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7173 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7174 * arch-utils.c (generic_remote_translate_xfer_address): Add
7175 "regcache" and "gdbarch" parameters.
7176 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7177 parameter. Change class to multi-arch.
7178 * gdbarch.h, gdbarch.c: Re-generate.
7179 * remote.c (remote_xfer_memory): Use
7180 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7181
e4846b08
JJ
71822003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7183
7184 * infrun.c (prev_pc): Move declaration ahead of proceed().
7185 (proceed): Refresh prev_pc value before resuming.
7186 (stop_stepping): Remove code to refresh prev_pc.
7187
6b71b8ac
KW
71882003-05-06 Kris Warkentin <kewarken@qnx.com>
7189
7190 * nto-tdep.c: Removed stray comment.
7191
47979a4b
KW
71922003-05-06 Kris Warkentin <kewarken@qnx.com>
7193
7194 * i386-nto-tdep.c: Fix old K&R function definitions.
7195 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7196 Also change add_show_from_set() call to add_setshow_cmd().
7197 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7198
00905d52
AC
71992003-05-05 Andrew Cagney <cagney@redhat.com>
7200
7201 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7202 (fprint_dummy_frames): New function.
7203 (maintenance_print_dummy_frames): New function.
7204 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7205 * frame.c (fprint_frame_id): Make global.
7206 * frame.h (fprint_frame_id): Declare.
7207 * Makefile.in (dummy-frame.o): Update dependencies.
7208
b1e29e33
AC
72092003-05-05 Andrew Cagney <cagney@redhat.com>
7210
7211 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7212 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7213 SIZEOF_CALL_DUMMY_WORDS.
7214 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7215 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7216 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7217 CALL_DUMMY_BREAKPOINT_OFFSET.
7218 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7219 CALL_DUMMY_START_OFFSET.
7220 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7221 * gdbarch.h, gdbarch.c: Re-generate.
7222 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7223 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7224 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7225 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7226 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7227 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7228 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7229 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7230 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7231 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7232 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7233 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7234 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7235 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7236 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7237
72382003-05-05 Kris Warkentin <kewarken@qnx.com>
7239
7240 * configure.tgt: Add i[3456]86-*-nto*.
7241 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7242 * nto-tdep.c: New file. Neutrino target support routines.
7243 * nto-tdep.h: New file. Neutrino target header.
7244 * config/tm-qnxnto.h: New file.
7245 * config/i386/i386nto.mt: New file.
7246 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7247
0ce3d317
AC
72482003-05-04 Andrew Cagney <cagney@redhat.com>
7249
7250 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7251 (load_infrun_state): Ditto.
7252 (struct thread_info): Drop "prev_func_name" field.
7253 * thread.c (load_infrun_state): Update.
7254 (save_infrun_state): Update.
7255 * infrun.c (prev_func_name): Delete variable.
7256 (init_wait_for_inferior): Do not clear prev_func_name.
7257 (stop_stepping, keep_going, context_switch): Do not swap
7258 prev_func_name.
7259 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7260 instead of PC_IN_SIGTRAMP.
7261
46654a5b
AC
72622003-05-04 Andrew Cagney <cagney@redhat.com>
7263
7264 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7265 REGISTER_BYTE with register_offset_hack.
7266 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7267 that REGISTER_BYTE is consistent with the regcache.
7268 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7269 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7270
14b08c1b
MK
72712003-05-04 Mark Kettenis <kettenis@gnu.org>
7272
04c8243f
MK
7273 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7274 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7275
14b08c1b
MK
7276 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7277
c7a11e01
JB
72782003-05-03 J. Brobecker <brobecker@gnat.com>
7279
7280 From Thierry Schneider <tpschneider1@yahoo.com>
7281 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7282 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7283 (mi-cmd-symbol.o): Add rule.
7284
7043d8dc
AC
72852003-05-03 Andrew Cagney <cagney@redhat.com>
7286
7287 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7288 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7289 * gdbarch.h, gdbarch.c: Re-generate.
7290 * d10v-tdep.c (d10v_push_dummy_code): New function.
7291 (d10v_gdbarch_init): Set push_dummy_code.
7292 * infcall.c (legacy_push_dummy_code): New function.
7293 (generic_push_dummy_code): New function.
7294 (push_dummy_code): New function.
7295 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7296 instead of dummy_addr, to push_dummy_call. Move call to
7297 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7298 switch.
7299 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7300
92bf2b80
AC
73012003-05-03 Andrew Cagney <cagney@redhat.com>
7302
7303 * disasm.h (print_insn): Declare.
7304 * disasm.c (init_gdb_disassemble_info): New function.
7305 (gdb_disassembly): Call init_gdb_disassemble_info.
7306 (gdb_print_insn): New function.
7307 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7308 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7309 * mcore-tdep.c: Include "disasm.h"
7310 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7311 * d10v-tdep.c: Include "disasm.h".
7312 (display_trace): Call gdb_print_insn, instead of print_insn.
7313 (print_insn): Delete function.
7314 * printcmd.c: Include "disasm.h".
7315 (print_insn): Delete function.
7316 (print_formatted): Call gdb_print_insn, instead of print_insn.
7317 * Makefile.in (printcmd.o): Update dependencies.
7318 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7319
27d94c49
AC
73202003-05-02 Andrew Cagney <cagney@redhat.com>
7321
82de1e5b
AC
7322 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7323 PC_REGNUM, re-indent.
7324 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7325 PC_REGNUM isn't set.
7326
27d94c49
AC
7327 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7328 * gdbarch.h, gdbarch.c: Re-generate.
7329 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7330 register_virtual_size, pc_regnum, or register_bytes.
7331 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7332 (d10v_register_type): Use D10V_PC_REGNUM.
7333 (d10v_print_registers_info, d10v_read_pc): Ditto.
7334 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7335 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7336
a9c0dc7f
DC
73372003-05-02 David Carlton <carlton@bactrian.org>
7338
7339 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7340 the name with mstrsave.
7341
e33d66ec
EZ
73422003-05-02 Elena Zannoni <ezannoni@redhat.com>
7343
7344 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7345 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7346 (host_charset_name, target_charset_name): New vars for use by
7347 set/show commands.
7348 (host_charset_enum, target_charset_enum): New enums for set/show
7349 commands.
7350 (set_charset_sfunc, set_host_charset_sfunc,
7351 set_target_charset_sfunc): New functions.
7352 (set_host_charset, set_target_charset): Make static.
7353 (list_charsets, set_host_charset_command,
7354 set_target_charset_command): Delete functions.
7355 (show_charset_command): Rewrite as....
7356 (show_charset): Hook this up with the set/show command mechanism.
7357 (_initialize_charset): Change names of charsets to match the
7358 set/show enums. Use host_charset_name and target_charset_name.
7359 Use set/show mechanism for charset, host-charset, target-charset
7360 commands. Do not make 'show host-charset' and 'show
7361 target-charset' be aliases of 'show charset'.
7362
7363 * charset.h (set_host_charset, set_target_charset): Don't export,
7364 they are not used outside the file.
7365
2b6fd0d8
AC
73662003-05-01 Andrew Cagney <cagney@redhat.com>
7367
7368 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7369 (gdb_disassembly): Make "di" non static, always initialize and
7370 cleanup. Always use dis_asm_read_memory.
7371 (gdb_dis_asm_read_memory): Delete function.
7372
6ae2f580
AC
73732003-05-01 Andrew Cagney <cagney@redhat.com>
7374
7375 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7376 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7377
810ecf9f
AC
73782003-04-30 Andrew Cagney <cagney@redhat.com>
7379
7380 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7381 "tm_print_insn_info".
7382 (TARGET_PRINT_INSN_INFO): Delete macro.
7383 (dis_asm_read_memory): Delete function declaration.
7384 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7385 (tm_print_insn_info): Delete variable definition.
7386 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7387 * gdbarch.h, gdbarch.c: Re-generate.
7388 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7389 "deprecated_tm_print_insn_info".
7390 * mcore-tdep.c (mcore_dump_insn): Ditto.
7391 * mips-tdep.c (mips_gdbarch_init): Ditto.
7392 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7393 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7394 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7395 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7396 instead of TARGET_PRINT_INSN_INFO, add comment.
7397 * s390-tdep.c (s390_get_frame_info): Instead of
7398 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7399 (s390_check_function_end, s390_is_sigreturn): Ditto.
7400 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7401 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7402 * disasm.c: Include "gdbcore.h".
7403 (_initialize_disasm): New function, initialize
7404 "deprecated_tm_print_insn_info".
7405 (deprecated_tm_print_insn_info): New variable.
7406 (dis_asm_read_memory): Moved from "corefile.c", made static.
7407 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7408 * Makefile.in (disasm.o): Update dependencies.
7409
07020390
AC
74102003-04-30 Andrew Cagney <cagney@redhat.com>
7411
7412 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7413
a9fa03de
AF
74142003-04-29 Adam Fedor <fedor@gnu.org>
7415
7416 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7417 * infcall.c (find_function_addr): Make non-static.
7418 * infcall.h (find_function_addr): Declare.
7419 * Makefile.in (eval.o): Update dependencies.
7420
1bae87b9
AF
74212003-04-28 Adam Fedor <fedor@gnu.org>
7422
7423 * symtab.c (symbol_find_demangled_name): Check for and demangle
7424 ObjC symbols.
7425 (symbol_init_demangled_name): Init for language_objc as well.
7426
0ba6dca9
AC
74272003-04-28 Andrew Cagney <cagney@redhat.com>
7428
7429 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7430 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7431 * gdbarch.h, gdbarch.c: Re-generate.
7432 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7433 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7434 * inferior.h (deprecated_read_fp): Rename read_fp.
7435 (generic_target_read_fp): Delete declaration.
7436 * regcache.c (generic_target_read_fp): Delete function.
7437 (deprecated_read_fp): Replace read_fp, use
7438 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7439 * d10v-tdep.c (d10v_read_fp): Delete function.
7440 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7441
7442 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7443 deprecated_target_read_fp to generic_target_read_fp.
7444 * sh-tdep.c (sh_gdbarch_init): Ditto.
7445 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7446 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7447 * frv-tdep.c (frv_gdbarch_init): Ditto.
7448
7449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7450 deprecated_fp_regnum.
7451 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7452 * vax-tdep.c (vax_gdbarch_init): Ditto.
7453 * v850-tdep.c (v850_gdbarch_init): Ditto.
7454 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7455 * sh-tdep.c (sh_gdbarch_init): Ditto.
7456 * s390-tdep.c (s390_gdbarch_init): Ditto.
7457 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7458 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7459 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7460 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7462 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7463 * i386-tdep.c (i386_gdbarch_init): Ditto.
7464 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7465 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7466 * frv-tdep.c (frv_gdbarch_init): Ditto.
7467 * cris-tdep.c (cris_gdbarch_init): Ditto.
7468 * avr-tdep.c (avr_gdbarch_init): Ditto.
7469 * arm-tdep.c (arm_gdbarch_init): Ditto.
7470 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7471
7472 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7473 * v850-tdep.c (v850_gdbarch_init): Ditto.
7474 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7475 * sh-tdep.c (sh_gdbarch_init): Ditto.
7476 * s390-tdep.c (s390_gdbarch_init): Ditto.
7477 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7478 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7479 * mips-tdep.c (mips_gdbarch_init): Ditto.
7480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7481 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7482 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7483 * frv-tdep.c (frv_gdbarch_init): Ditto.
7484 * avr-tdep.c (avr_gdbarch_init): Ditto.
7485 * arm-tdep.c (arm_gdbarch_init): Ditto.
7486
7487 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7488 DEPRECATED_FP_REGNUM.
7489 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7490 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7491 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7492 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7493 (sparc32_register_virtual_type): Ditto.
7494 * sh-tdep.c (sh64_frame_chain): Ditto.
7495 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7496 (sh_nofp_frame_init_saved_regs): Ditto.
7497 (sh64_nofp_frame_init_saved_regs): Ditto.
7498 (sh_fp_frame_init_saved_regs): Ditto.
7499 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7500 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7501 * procfs.c (procfs_fetch_registers): Ditto.
7502 (procfs_store_registers): Ditto.
7503 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7504 (store_inferior_registers, fetch_core_registers): Ditto.
7505 (fetch_kcore_registers, clear_regs): Ditto.
7506 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7507 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7508 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7509 * nlm/i386.c (do_status): Ditto.
7510 * mipsv4-nat.c (supply_gregset): Ditto.
7511 * mips-tdep.c: Ditto for comments.
7512 * mips-nat.c (fetch_inferior_registers): Ditto.
7513 (store_inferior_registers, fetch_core_registers): Ditto.
7514 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7515 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7516 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7517 (i386_do_pop_frame, i386_register_type): Ditto.
7518 * hppa-tdep.c (hppa_frame_chain): Ditto.
7519 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7520 (hppa_pop_frame, hppa_read_fp): Ditto.
7521 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7522 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7523 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7524 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7525 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7526 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7527 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7528 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7529 * blockframe.c: Ditto for comments.
7530 * arch-utils.h: Ditto for comments.
7531 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7532 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7533 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7534 * alpha-tdep.h: Ditto for comments.
7535 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7536 (alpha_cannot_store_register): Ditto.
7537 (alpha_push_dummy_frame): Ditto.
7538 * alpha-nat.c (supply_gregset): Ditto.
7539
7540 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7541 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7542 * config/sparc/tm-sparc.h: Update comment.
7543
7544 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7545 deprecated_read_fp instead of TARGET_READ_FP.
7546 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7547 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7548 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7549 deprecated_read_fp instead of read_fp.
7550 * s390-tdep.c (s390_push_arguments): Ditto.
7551 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7552 * frame.h: Ditto in comments.
7553 * frame.c (legacy_get_prev_frame): Ditto.
7554 * dummy-frame.c (dummy_frame_this_id): Ditto.
7555 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7556
d7a27068
AC
75572003-04-28 Andrew Cagney <cagney@redhat.com>
7558
7559 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7560 * gdbarch.h, gdbarch.c: Re-generate.
7561 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7562 * vax-tdep.c (_initialize_vax_tdep): Update.
7563 * v850-tdep.c (_initialize_v850_tdep): Update.
7564 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7565 * s390-tdep.c (_initialize_s390_tdep): Update.
7566 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7567 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7568 * mips-tdep.c (_initialize_mips_tdep): Update.
7569 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7570 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7571 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7572 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7573 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7574 * frv-tdep.c (_initialize_frv_tdep): Update.
7575 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7576 (_initialize_cris_tdep): Update.
7577 * arch-utils.c (legacy_print_insn): Update.
7578 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7579
d2630e69
AF
75802003-04-26 Adam Fedor <fedor@gnu.org>
7581
7582 * linespec.c (decode_objc): New function to decode ObjC calls
7583 (decode_line_1): Check for ObjC calls (using decode_objc)
7584 * Makefile (linespec.o): Update dependencies.
7585
3086aeae
DJ
75862003-04-26 Daniel Jacobowitz <drow@mvista.com>
7587
7588 * breakpoint.h (struct breakpoint_ops): New.
7589 (struct breakpoint): Add ops member.
7590
7591 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7592 (mention): Use new breakpoint ops member.
7593 (set_raw_breakpoint): Initialize ops field to NULL.
7594 (print_exception_catchpoint, print_one_exception_catchpoint)
7595 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7596 (gnu_v3_exception_catchpoint_ops): New.
7597 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7598
1fbec6c3
AF
75992003-04-25 Adam Fedor <fedor@gnu.org>
7600
7601 * Makefile.in (COMMON_OBS): Add objc-lang.o
7602
0ef21242
AC
76032003-04-25 Andrew Cagney <cagney@redhat.com>
7604
7605 * d10v-tdep.c (print_insn): Delete function.
7606 (display_trace): Use TARGET_PRINT_INSN.
7607 (_initialize_d10v_tdep): Do not set tm_print_insn.
7608 (d10v_gdbarch_init): Set print_insn.
7609
f75493ed
AC
76102003-04-25 Andrew Cagney <cagney@redhat.com>
7611
7612 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7613 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7614 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7615 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7616 (nr_dmap_regs, a0_regnum): ... new functions.
7617 (d10v_print_registers_info): Use a0_regnum, use register_size.
7618 (d10v_register_byte): Delete function.
7619 (d10v_register_raw_size): Delete function.
7620 (d10v_register_type): Use a0_regnum.
7621 (d10v_print_registers_info): Use a0_regnum.
7622 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7623 (d10v_gdbarch_init): Do not set register_byte or
7624 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7625 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7626 extract_address.
7627 (trace_command): Use XCALLOC.
7628 (print_insn): Delete reference to tm_print_insn.
7629 (saved_regs_unwinder): Use store_unsigned_integer instead of
7630 store_address.
7631 * frame.h (FRAME_OBSTACK_CALLOC): Define
7632
2202b100
DC
76332003-04-25 David Carlton <carlton@bactrian.org>
7634
7635 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7636
4e45ca2e
AF
76372003-04-24 Adam Fedor <fedor@gnu.org>
7638
7639 * objc-lang.c: Include "valprint.h"
7640 * Makefile.in (objc-lang.o): Update dependencies.
7641
93de3e7f
AF
76422003-04-24 Adam Fedor <fedor@gnu.org>
7643
8ffd9b1b 7644 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7645 architecture dependant compilation and mark as unimplemented
7646 (until they get put in the gdbarch vector).
7647
0f20eeea
DC
76482003-04-23 David Carlton <carlton@bactrian.org>
7649
7650 * cp-support.c (cp_find_first_component): Accept 'operator' in
7651 more locations.
7652
74cfe982
AC
76532003-04-23 Andrew Cagney <cagney@redhat.com>
7654
7655 * infcall.c (call_function_by_hand): Eliminate redundant
7656 indentation. Move "saved_async" and "old_cleanups" to where they
7657 are needed.
8ffd9b1b 7658
52557533
AC
76592003-04-23 Andrew Cagney <cagney@redhat.com>
7660
7661 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7662 and "buffer". Move the "name" code to where it is needed.
7663
158775de
AC
76642003-04-23 Andrew Cagney <cagney@redhat.com>
7665
7666 * infcall.c (call_function_by_hand): Move variables "start_sp",
7667 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7668 code to ON_STACK switch branch.
8ffd9b1b 7669
ebc7896c
AC
76702003-04-23 Andrew Cagney <cagney@redhat.com>
7671
7672 * infcall.c (call_function_by_hand): Make declaration of "i",
7673 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7674 lint.
7675
d727590f
AC
76762003-04-23 Andrew Cagney <cagney@redhat.com>
7677
7678 * infcall.c (call_function_by_hand): Delete variable
7679 "n_method_args". Localize "param_type"'s declaration to the loop
7680 that it is used. Reinstate code assigning to said variable -
7681 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7682 Rationalize code using "param_type".
7683
d585e13a
AC
76842003-04-22 Andrew Cagney <cagney@redhat.com>
7685
7686 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7687 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7688 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7689 to DEPRECATED_PUSH_RETURN_ADDRESS.
7690
051caad9
KB
76912003-04-22 Kevin Buettner <kevinb@redhat.com>
7692
7693 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7694 on the DWARF2 register number prior to fetching a register.
7695
77296879
JB
76962003-04-22 J. Brobecker <brobecker@gnat.com>
7697
7698 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7699 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7700 this macro was always set to 0.
77296879
JB
7701 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7702 considering the fact that this macro was always set to 0.
7703 * hppa-tdep.h (hppa_store_return_value): Likewise.
7704 (hppa_extract_return_value): Likewise.
7705
4252f1df
JB
77062003-04-22 J. Brobecker <brobecker@gnat.com>
7707
7708 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7709 the hppa-pro target only.
7710
14604c6b
JB
77112003-04-21 J. Brobecker <brobecker@gnat.com>
7712
7713 Ongoing multi-arch conversion effort for HP/UX:
7714 * config/pa/tm-hppa.h: Move all macro that are no longer
7715 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7716 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7717
77eb01d1
JB
77182003-04-21 J. Brobecker <brobecker@gnat.com>
7719
7720 * config/pa/tm-hppa.h: Obsolete a section that was only used
7721 for hppa-pro.
7722
61995b3b
JB
77232003-04-21 J. Brobecker <brobecker@gnat.com>
7724
7725 Ongoing multi-arch conversion for HP/UX.
7726 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7727 if already defined (allows hppa64 to stay non-multiarched for now).
7728 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7729
4aa79dcc
AC
77302003-04-21 Andrew Cagney <cagney@redhat.com>
7731
7732 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7733
0f751ff2
AC
77342003-04-21 Andrew Cagney <cagney@redhat.com>
7735
7736 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7737 "i386_num_mmx_regs".
7738
04714b91
AC
77392003-04-21 Andrew Cagney <cagney@redhat.com>
7740
7741 * infcall.c: New file.
7742 * infcall.h: New file.
7743 * valarith.c: Include "infcall.h".
7744 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7745 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7746 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7747 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7748 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7749 (SFILES): Add "infcall.c"
7750 (COMMON_OBS): Add "infcall.o".
7751 (infcall.o): Specify dependencies.
7752 * value.h (call_function_by_hand): Delete declaration.
7753 * inferior.h (run_stack_dummy): Delete declaration.
7754 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7755 (run_stack_dummy): Move to "infcall.c", merged into
7756 call_function_by_hand.
7757 * valops.c (call_function_by_hand): Moved to "infcall.c".
7758 (find_function_addr, value_arg_coerce): Ditto.
7759 (unwindonsignal_p, coerce_float_to_double): Ditto.
7760 (_initialize_valops): Move "set/show coerce-float-to-double", and
7761 "set/show unwindonsignal" commands to "infcall.c".
7762 * v850-tdep.c, target.h: Update comments.
7763 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7764 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7765 (sh64_init_extra_frame_info): Update comments.
7766 * mn10300-tdep.c: Update comments.
7767 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7768 * config/sparc/tm-sparc.h: Update comments.
7769 * breakpoint.h: Update comments.
7770 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7771 * arm-tdep.c: Update comment.
7772
f9d3c2a8
MK
77732003-04-19 Mark Kettenis <kettenis@gnu.org>
7774
c40e1eab
MK
7775 * i386-tdep.c (i386_num_register_names): New variable.
7776 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7777 (MM0_REGNUM): Remove redundant parentheses in define.
7778 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7779 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7780 i386_mxcsr_regnum_p): Remove redundant parentheses.
7781 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7782
94ea66b3
MK
7783 * i386-tdep.c (i386_extract_return_value,
7784 i386_store_return_value): Correct check for availability of
7785 floating-point registers.
7786
54299a1d
MK
7787 * i386-tdep.c (i386_frame_num_args): Remove function.
7788 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7789
c86c27af
MK
7790 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7791 mmx_regnum_to_fp_regnum. Adjust all callers.
7792
f9d3c2a8
MK
7793 * i386-tdep.c (i386_get_longjmp_target): Use
7794 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7795 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7796 extract_address.
7797
94ba74a9
MK
77982003-04-19 Mark Kettenis <kettenis@gnu.org>
7799
7800 * core-regset.c: Update comments to reflect reality. Re-order
7801 includes.
7802 (fetch_core_registers): Use switch instead of if. Remove
7803 redundant prototype.
7804
4074e13c
JB
78052003-04-18 Jim Blandy <jimb@redhat.com>
7806
7807 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7808 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7809
e3ab4aba
RH
78102003-04-17 Richard Henderson <rth@redhat.com>
7811
7812 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7813
627bf7c1
EZ
78142003-04-17 Michael Snyder <msnyder@redhat.com>
7815 Karen Bennet <bennet@redhat.com>
7816
7817 Committed by Elena Zannoni <ezannoni@redhat.com>
7818 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7819
514621a9
EZ
78202003-04-17 Elena Zannoni <ezannoni@redhat.com>
7821
7822 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7823 value if the return type is void.
514621a9 7824
b4acd559
JJ
78252003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7826
7827 * thread-db.c: Reindented.
8ffd9b1b 7828
530b167e 78292003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7830
7831 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7832 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7833 as types.
7834
0a48e7e8
MS
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
8ffd9b1b 7858
ab9fe00e
KB
78592003-04-16 Kevin Buettner <kevinb@redhat.com>
7860
610a3745 7861 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7862 the size of ``long double'' to 16, instead of 8.
7863
e64a344c
MK
78642003-04-16 Mark Kettenis <kettenis@gnu.org>
7865
7866 * i386-linux-nat.c: Add some whitespace to make things more
7867 readable.
7868 (fetch_register, store_register, fetch_inferior_registers,
7869 store_inferior_registers): Get rid of assignment in if-statement.
7870 (store_register): Fix typo in error message.
7871
25d41031
AC
78722003-04-16 Andrew Cagney <cagney@redhat.com>
7873
7874 * utils.c (xmmalloc): Always allocate something, matches
7875 libiberty/xmalloc's semantics.
7876 (xmrealloc, xmcalloc): Ditto.
7877
c50901fd
AC
78782003-04-16 Andrew Cagney <cagney@redhat.com>
7879
7880 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7881 update comments.
7882 (get_frame_type): Initialize unwind and type when needed.
7883 (get_frame_id, frame_register_unwind): Ditto.
7884
f81824a9
AC
78852003-04-16 Andrew Cagney <cagney@redhat.com>
7886
7887 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7888 obsolete.
7889 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7890 * sparcl-stub.c: Obsolete file.
7891 * config/sparc/tm-sparclet.h: Obsolete file.
7892 * sparclet-stub.c: Obsolete file.
7893 * sparclet-rom.c: Obsolete file.
7894 * sparcl-tdep.c: Obsolete file.
7895 * config/sparc/tm-sparclite.h: Obsolete file.
7896 * config/sparc/sparclite.mt: Obsolete file.
7897 * config/sparc/sparclet.mt: Obsolete file.
7898 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7899 sparc86x-*-* obsolete.
7900
9219021c
DC
79012003-04-15 David Carlton <carlton@math.stanford.edu>
7902
7903 * Makefile.in (SFILES): Add cp-namespace.c.
7904 (COMMON_OBS): Add cp-namespace.o.
7905 (block.o): Depend on gdb_obstack_h and cp_support_h.
7906 (buildsym.o): Depend on cp_support_h.
7907 (cp-namespace.o): New.
7908 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7909 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7910 (dwarf2read.o): Depend on cp_support_h.
7911 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7912 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7913 processing_current_namespace.
7914 (read_namespace): Update processing_current_namespace; check for
7915 anonymous namespaces.
7916 (dwarf2_name): New function.
7917 (dwarf2_extension): Ditto.
7918 * cp-support.h: Update copyright, contributors.
7919 Add inclusion guards.
7920 Add opaque declaration for structs obstack, block, symbol.
7921 (struct using_direct): New struct.
7922 Add declarations for cp_find_first_component,
7923 cp_entire_prefix_len, processing_has_namespace_info,
7924 processing_current_namespace, cp_is_anonymous,
7925 cp_add_using_directive, cp_initialize_namespace,
7926 cp_finalize_namespace, cp_set_block_scope,
7927 cp_scan_for_anonymous_namespaces.
7928 * cp-namespace.c: New file.
7929 * cp-support.c: Update copyright.
7930 Include ctype.h, gdb_assert.h, gdbcmd.h.
7931 New variable maint_cplus_cmd_list.
7932 (cp_find_first_component): New function.
7933 (cp_entire_prefix_len, maint_cplus_command)
7934 (first_component_command, _initialize_cp_support): Ditto.
7935 * buildsym.c: Include cp-support.h.
7936 New variable using_list.
7937 (add_symbol_to_list): Check for anonymous namespaces.
7938 (finish_block): Set block's scope.
7939 (start_symtab): Initialize C++ namespace support.
7940 (end_symtab): Finalize C++ namespace support.
7941 * block.h: Add opaque declarations for structs
7942 block_namespace_info, using_direct, and obstack.
7943 Add declarations for block_set_scope and block_set_using.
7944 (struct block): Add 'language_specific' member.
7945 (BLOCK_NAMESPACE): New macro.
7946 * block.c: Include gdb_obstack.h and cp-support.h.
7947 (struct block_namespace_info): New struct.
7948 (block_set_scope): New function.
7949 (block_set_using, block_initialize_namespace): Ditto.
7950
d5a921c9
KB
79512003-04-14 Kevin Buettner <kevinb@redhat.com>
7952
7953 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7954 (locate_base): Return early if there aren't any link map offsets.
7955 (svr4_solib_create_inferior_hook): Warn if shared library support
7956 is unavailable.
7957
d2a52b27
DC
79582003-04-14 David Carlton <carlton@math.stanford.edu>
7959
7960 * symtab.c (symbol_set_names): Add prefix when storing Java names
7961 in hash table. Fix for PR java/1039.
7962
980cae7a
DC
79632003-04-14 David Carlton <carlton@math.stanford.edu>
7964
7965 * symtab.c (symbol_set_names): Rename 'name' arg to
7966 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7967 * symtab.h: Change 'name' argument in declaration of
7968 symbol_set_names to 'linkage_name'.
7969 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7970
e227b13c
AC
79712003-04-14 Andrew Cagney <cagney@redhat.com>
7972
7973 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7974 return the fully sign-extended register value.
7975 (get_frame_pointer): Ditto.
7976 (mips_pop_frame): Initialize "proc_desc" after checking for a
7977 dummy frame.
7978
36712a20
AC
79792003-04-14 Andrew Cagney <cagney@redhat.com>
7980
7981 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7982 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7983 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7984 (mips_push_register): Delete function.
7985 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7986 PUSH_FP_REGNUM.
7987
44ea7b70
JB
79882003-04-14 Jim Blandy <jimb@redhat.com>
7989
7990 * symmisc.c: #include "gdb_regex.h".
7991 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7992 functions.
7993 * maint.c (maintenance_list_command): New function.
7994 (_initialize_maint_cmds): Register the above as commands.
7995 * symtab.h (maintenance_list_symtabs,
7996 maintenance_list_psymtabs): New declarations.
7997 * cli/cli-cmds.c (maintenancelistlist): New variable.
7998 (init_cmd_lists): Initialize it.
7999 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8000 * gdbcmd.h (maintenancelistlist): New declaration.
8001 * Makefile.in (symmisc.o): Update dependencies.
8002
2d0c7962
EZ
80032003-04-14 Elena Zannoni <ezannoni@redhat.com>
8004
8005 * s390-nat.c: Include asm/types.h for addr_t.
8006
1947a811
CV
80072003-04-14 Corinna Vinschen <vinschen@redhat.com>
8008
8009 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8010 actually incoming type.
8011
adb616d7
AC
80122003-04-13 Andrew Cagney <cagney@redhat.com>
8013
8014 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8015 get_next_frame and get_frame_saved_regs.
8016
9b5e151c
AC
80172003-04-13 Andrew Cagney <cagney@redhat.com>
8018
8019 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8020 of gdbarch_num_regs.
8021
ef6e7e13
AC
80222003-04-13 Andrew Cagney <cagney@redhat.com>
8023
8024 * frame.h: Mention what replaced what in "struct frame_info".
8025 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8026 deprecated_update_frame_base_hack and
8027 deprecated_update_frame_pc_hack.
8028 * hppa-tdep.c: Ditto.
8029
61fbb938
DJ
80302003-04-13 Daniel Jacobowitz <drow@mvista.com>
8031
8032 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8033 to read_reg and update its comment. Remove regnum member.
8034 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8035 Don't call read_reg when setting in_reg. Call read_reg to get
8036 the frame base if it's in a register. Return the register number
8037 on the stack instead of in the context. Remove extra arguments
8038 to read_reg.
8039 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8040 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8041 the register number on the expression stack.
8042 (needs_frame_read_reg): Remove extra arguments.
8043
0d53c4c4
DJ
80442003-04-13 Daniel Jacobowitz <drow@mvista.com>
8045
8046 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8047 made non-static.
8048 (execute_stack_op): All callers updated.
8049 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8050 * dwarf2loc.c (find_location_expression): New function.
8051 (dwarf_expr_frame_base): Call it.
8052 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8053 (dwarf2_tracepoint_var_ref): New function, broken out from
8054 locexpr_tracepoint_var_ref.
8055 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8056 Make static.
8057 (loclist_read_variable, loclist_read_needs_frame): New functions.
8058 (loclist_describe_location, loclist_tracepoint_var_ref): New
8059 functions.
8060 (dwarf2_loclist_funcs): New struct location_funcs.
8061 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8062 (struct dwarf2_locexpr_baton): Add comments.
8063 (dwarf2_loclist_funcs): New extern.
8064 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8065 base_address and base_known.
8066 (dwarf_loc_buffer): New variable.
8067 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8068 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8069 (dwarf2_has_info): Initialize dwarf_loc_offset.
8070 (dwarf2_build_psymtabs): Read in .debug_loc.
8071 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8072 DWARF_LOC_SIZE.
8073 (psymtab_to_symtab_1): Likewise. Move base address calculation
8074 here, from...
8075 (dwarf2_get_pc_bounds): ... here. Use the base address from
8076 cu_header.
8077 (dwarf2_symbol_mark_computed): Handle location lists.
8078
6aca59a3
DJ
80792003-04-13 Daniel Jacobowitz <drow@mvista.com>
8080
8081 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8082 if the linkage name demangled successfully.
8083
aca1fcd0
MK
80842003-04-13 Mark Kettenis <kettenis@gnu.org>
8085
97095916
MK
8086 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8087 disassmbly_flavour): Removed.
8088
aca1fcd0
MK
8089 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8090
562a961f
MK
80912003-04-13 Mark Kettenis <kettenis@gnu.org>
8092
8093 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8094
bd013d54
AC
80952003-04-12 Andrew Cagney <cagney@redhat.com>
8096
8097 * frame.h (struct frame_info): Move definition from here ...
8098 * frame.c (struct frame_info): ... to here.
8099
167ef8b1
AC
81002003-04-12 Andrew Cagney <cagney@redhat.com>
8101
8102 * gdbthread.h (save_infrun_state): Delete parameter
8103 "prev_func_start".
8104 (struct thread_info): Delete field "prev_func_start".
8105 (load_infrun_state): Ditto.
8106 * thread.c (load_infrun_state, save_infrun_state): Update.
8107 * infrun.c (prev_func_start): Delete variable.
8108 (context_switch, init_wait_for_inferior): Update.
8109 (stop_stepping, keep_going): Update.
8110
da3331ec
AC
81112003-04-12 Andrew Cagney <cagney@redhat.com>
8112
8113 * gdbarch.sh: Add missing opaque declarations.
8114 * gdbarch.h: Regnerate.
8115 * symtab.h: Add missing opaque declarations.
8116 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8117 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8118 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8119 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8120 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8121 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8122 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8123 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8124 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8125 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8126 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8127 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8128 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8129
18adea3f
AC
81302003-04-11 Andrew Cagney <cagney@redhat.com>
8131
8132 * frame.c (get_frame_id): Return this frame's "id".
8133 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8134 function start.
8135 (legacy_saved_regs_this_id): Replace function body with
8136 internal-error.
8137 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8138 FRAME_OBSTACK_ZALLOC.
8139 (create_new_frame): Mark the frame ID as valid.
8140
2252e863
AO
81412003-04-11 Alexandre Oliva <aoliva@redhat.com>
8142
8143 * Makefile.in (libbfd_h): Added missing setting.
8144 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8145 according to the selected ABI.
8146
a8245ab8
JJ
81472003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8148
8149 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8150
6913c89a
AC
81512003-04-11 Andrew Cagney <cagney@redhat.com>
8152
8153 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8154 SAVED_PC_AFTER_CALL.
8155 * gdbarch.h, gdbarch.c: Regenerate.
8156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8157 * x86-64-tdep.c (x86_64_init_abi): Update.
8158 * vax-tdep.c (vax_gdbarch_init): Update.
8159 * v850-tdep.c (v850_gdbarch_init): Update.
8160 * sparc-tdep.c (sparc_gdbarch_init): Update.
8161 * sh-tdep.c (sh_gdbarch_init): Update.
8162 * s390-tdep.c (s390_gdbarch_init): Update.
8163 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8164 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8165 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8166 * mips-tdep.c (mips_gdbarch_init): Update.
8167 * mcore-tdep.c (mcore_gdbarch_init): Update.
8168 * m68k-tdep.c (m68k_gdbarch_init): Update.
8169 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8170 * ia64-tdep.c (ia64_gdbarch_init): Update.
8171 (ia64_saved_pc_after_call): Update declaration.
8172 * i386ly-tdep.c (i386lynx_init_abi): Update.
8173 * i386-tdep.c (i386_gdbarch_init): Update.
8174 * hppa-tdep.c (hppa_gdbarch_init): Update.
8175 * h8300-tdep.c (h8300_gdbarch_init): Update.
8176 * frv-tdep.c (frv_gdbarch_init): Update.
8177 * cris-tdep.c (cris_gdbarch_init): Update.
8178 * avr-tdep.c (avr_gdbarch_init): Update.
8179 * arm-tdep.c (arm_gdbarch_init): Update.
8180 * alpha-tdep.c (alpha_gdbarch_init): Update.
8181 * ns32knbsd-nat.c (frame_num_args): Update.
8182 * ns32k-tdep.c (umax_frame_num_args): Update.
8183 * mips-tdep.c (mips_init_frame_pc_first): Update.
8184 * infrun.c (step_over_function): Update.
8185 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8186 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8187 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8188 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8189 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8190 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8191 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8192 * arch-utils.c (init_frame_pc_default): Update.
8193 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8194 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8195 declaration.
8ffd9b1b 8196
38edeab8
AC
81972003-04-11 Andrew Cagney <cagney@redhat.com>
8198
8199 * i387-tdep.c: Update copyright.
8200 (i387_to_double): Delete function.
8201 (double_to_i387): Delete function.
8202
81f8a206
AC
82032003-04-10 Andrew Cagney <cagney@redhat.com>
8204
8205 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8206 frame's function's address. Simplify.
8207 (d10v_frame_unwind_cache): Check that the frame's function is
8208 non-zero.
8209
6e691f7a
JB
82102003-04-10 Jim Blandy <jimb@redhat.com>
8211
8212 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8213 call to set_gdbarch_deprecated_push_arguments.
8214
7f78e237
AC
82152003-04-10 Andrew Cagney <cagney@redhat.com>
8216
8217 * frame.c (fprint_frame_id): New function.
8218 (fprint_frame_type, fprint_frame): New function.
8219 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8220 (create_sentinel_frame, get_frame_id): Ditto.
8221 (frame_id_p, frame_id_eq): Ditto.
8222 (frame_id_inner, create_new_frame): Ditto.
8223 (legacy_get_prev_frame, get_prev_frame): Ditto.
8224 (deprecated_update_frame_pc_hack): Ditto.
8225 (frame_register_unwind): Ditto.
8226 (deprecated_update_frame_base_hack): Ditto.
8227
f870b49b
CV
82282003-04-10 Corinna Vinschen <vinschen@redhat.com>
8229
8230 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8231 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8232 frame_chain function.
8233 * Makefile.in: Add dependencies due to above change.
8234
7c86889b
CV
82352003-04-10 Corinna Vinschen <vinschen@redhat.com>
8236
8237 * blockframe.c (legacy_frame_chain_valid): Move call to
8238 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8239 inside_entry_file.
8240
d0a55772
AC
82412003-04-09 Andrew Cagney <cagney@redhat.com>
8242
8243 * frame.h (struct frame_id): Replace "pc" and "base" with
8244 "stack_addr" and "code_addr". Update comments.
8245 (frame_id_build): Update parameter names and comment.
8246 (struct frame_info): Replace "id_p" and "id" with "this_id".
8247 * dummy-frame.c (dummy_frame_this_id): Update.
8248 * breakpoint.c (print_one_breakpoint): Update.
8249 * frame.c (get_frame_id): Update.
8250 (get_frame_base, frame_id_build): Update.
8251 (create_sentinel_frame, legacy_get_prev_frame): Update.
8252 (deprecated_update_frame_base_hack): Update.
8253 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8254 (frame_id_inner): Ditto.
8255
ac16bf07
AC
82562003-04-09 Andrew Cagney <cagney@redhat.com>
8257
8258 * defs.h (gdb_print_host_address): Make "addr" parameter a
8259 pointer constant.
8260 * utils.c (gdb_print_host_address): Update.
8261
366cfc9e
KB
82622003-04-09 Kevin Buettner <kevinb@redhat.com>
8263
8264 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8265 register number for R0 is 0.
8266
cd983b5c
JB
82672003-04-09 J. Brobecker <brobecker@gnat.com>
8268
8269 * frame.h (struct gdbarch): Add opaque structure definition
8270 to avoid a compilation warning on LynxOS 4.0.
8271
d1340264
AC
82722003-04-09 Andrew Cagney <cagney@redhat.com>
8273
8274 * frame.h (struct frame_info): Delete field "pc". Replace
8275 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8276 structure.
8277 * frame.c (frame_pc_unwind): Update.
8278 (create_sentinel_frame): Do not set "pc".
8279 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8280 (get_frame_pc): Call frame_pc_unwind.
8281 (deprecated_update_frame_pc_hack): Update.
8282 (create_new_frame): Use "pc" not "->pc".
8283
90a6fffb
AC
82842003-04-09 Andrew Cagney <cagney@redhat.com>
8285
8286 * frame.c (get_frame_id): Eliminate code updating "frame".
8287 (legacy_get_prev_frame): Ditto.
8288 (get_frame_base): Return id.base directly.
8289 (deprecated_update_frame_base_hack): Update "id.base".
8290 * frame.h (struct frame_info): Delete field "frame".
8291
2fbce691
AC
82922003-04-09 Andrew Cagney <cagney@redhat.com>
8293
8294 * NEWS: Mention that the "Sequent family" is obsolete.
8295 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8296 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8297 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8298 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8299 * config/i386/tm-ptx4.h: Obsolete file.
8300 * config/i386/tm-ptx.h: Obsolete file.
8301 * symm-tdep.c: Obsolete file.
8302 * config/i386/symmetry.mt: Obsolete file.
8303 * config/i386/tm-symmetry.h: Obsolete file.
8304 * symm-nat.c: Obsolete file.
8305 * config/i386/nm-symmetry.h: Obsolete file.
8306 * config/i386/xm-symmetry.h: Obsolete file.
8307 * config/i386/symmetry.mh: Obsolete file.
8308 * config/i386/nm-ptx4.h: Obsolete file.
8309 * config/i386/ptx4.mh: Obsolete file.
8310 * config/i386/ptx.mt: Obsolete file.
8311 * config/i386/ptx.mh: Obsolete file.
8312 * config/i386/xm-ptx4.h: Obsolete file.
8313 * config/i386/xm-ptx.h: Obsolete file.
8314
78c43945
AC
83152003-04-09 Andrew Cagney <cagney@redhat.com>
8316
8317 Obsolete mips*-*-mach3*.
8318 * NEWS: Mention that mips*-*-mach3* is obsolete.
8319 * m3-nat.c: Obsolete file.
8320 * config/nm-m3.h: Obsolete file.
8321 * config/mips/tm-mipsm3.h: Obsolete file.
8322 * config/mips/mipsm3.mt: Obsolete file.
8323 * config/mips/mipsm3.mh: Obsolete file.
8324 * config/mips/xm-mipsm3.h: Obsolete file.
8325 * mipsm3-nat.c: Obsolete file.
8326 * configure.host: Obsolete mips-dec-mach3*.
8327 * configure.tgt: Obsolete mips*-*-mach3*.
8328
f1908289
AC
83292003-04-09 Andrew Cagney <cagney@redhat.com>
8330
8331 * doublest.h: Update copyright.
8332 (deprecated_store_floating, deprecated_extract_floating): Rename
8333 store_floating and extract_floating. Update comments.
8334 * doublest.c: Update copyright.
8335 (extract_floating_by_length): Replace extract_floating.
8336 (store_floating_by_length): Replace store_floating.
8337 (deprecated_extract_floating): New function.
8338 (deprecated_store_floating): New function.
8339 (extract_typed_floating): Call extract_floating_by_length.
8340 (store_typed_floating): Call store_floating_by_length.
8341 * x86-64-tdep.c (x86_64_store_return_value): Update.
8342 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8343 (sh64_extract_return_value): Update.
8344 (sh_sh4_register_convert_to_virtual): Update.
8345 (sh_sh64_register_convert_to_virtual): Update.
8346 (sh_sh4_register_convert_to_raw): Update.
8347 (sh_sh64_register_convert_to_raw): Update.
8348 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8349 (rs6000_register_convert_to_raw): Update.
8350 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8351 (ia64_register_convert_to_raw): Update.
8352 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8353 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8354 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8355 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8356 (alpha_register_convert_to_raw): Update.
8357
4443bd83
AC
83582003-04-08 Andrew Cagney <cagney@redhat.com>
8359
8360 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8361 * gdbarch.h, gdbarch.c: Re-generate.
8362 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8363 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8364 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8365 conditionally, use frame_pc_unwind as an alternative. Add
8366 comments.
8367 * arch-utils.c (init_frame_pc_default): Only call
8368 SAVED_PC_AFTER_CALL when available.
8369
c0236d92
EZ
83702003-04-08 Elena Zannoni <ezannoni@redhat.com>
8371
fbe586ae 8372 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8373 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8374 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8375 (start_remote): Ditto.
8376 (handle_inferior_event): Ditto.
8377 (save_inferior_status): Ditto.
8378 (restore_inferior_status): Ditto.
8379 * infcmd.c (attach_command): Ditto.
8380 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8381 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8382 * alpha-tdep.c (heuristic_proc_start): Ditto.
8383 * mips-tdep.c (heuristic_proc_start): Ditto.
8384 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8385 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8386 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8387 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8388 * remote-vx.c (vx_create_inferior): Ditto.
8389
83902003-04-08 Elena Zannoni <ezannoni@redhat.com>
8391
8392 * infrun.c (stop_soon_quietly): Make it an enum, to better
8393 override the default behavior of handle_inferior_event.
8394 (clear_proceed_status): Update uses of stop_soon_quietly to
8395 reflect that it is now an enum.
8396 (start_remote): Ditto.
8397 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8398 is set to handle the new GNU/Linux kernel behavior for
8399 attach/sigstop. Update uses of stop_soon_quietly.
8400 * inferior.h (enum stop_kind): New enum.
8401 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8402 Reset normal handle_inferior_event behavior, afterwards.
8403 * fork-child.c (startup_inferior): Update.
8404 * alpha-tdep.c (heuristic_proc_start): Update.
8405 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8406 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8407 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8408 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8409 * remote-vx.c (vx_create_inferior): Update.
8410 * mips-tdep.c (heuristic_proc_start): Update.
8411
1211bce3
EZ
84122003-04-07 Elena Zannoni <ezannoni@redhat.com>
8413
8414 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8415 be freed more than once, causing wild memory corruptions.
1211bce3 8416 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8417 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8418 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8419 with the "core" target.
1211bce3 8420
f0ef6b29
KB
84212003-04-07 Kevin Buettner <kevinb@redhat.com>
8422
8423 * mips-tdep.c (mips_print_fp_register): New function, created from
8424 do_fp_register_row(). Registers are now (also) printed as hex.
8425 Only one register is printed per row.
8426 (mips_print_register, do_fp_register_row): Print floating point
8427 registers with mips_print_fp_register().
8428
8cf71652
AC
84292003-04-06 Andrew Cagney <cagney@redhat.com>
8430
5e488a7b
AC
8431 * valprint.h (inspect_it): Add extern declaration.
8432 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8433 (selectors_info, classes_info): Ditto.
8434 (find_objc_msgcall): Fix indentation.
8435 (objc_printstr): Delete extern declarations.
8436
8cf71652
AC
8437 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8438
e6ba3bc9
AC
84392003-04-06 Andrew Cagney <cagney@redhat.com>
8440
8441 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8442 Update comment.
8443 * frame.c (legacy_saved_regs_this_id): Update.
8444 (legacy_get_prev_frame): Update.
8445 * xstormy16-tdep.c: Update comment.
8446 * sparc-tdep.c (sparc_frame_chain): Update comment.
8447 * blockframe.c (legacy_frame_chain_valid): Update.
8448
55e1d7e7
AC
84492003-04-06 Andrew Cagney <cagney@redhat.com>
8450
996179ee
AC
8451 * valprint.c (val_print_type_code_int): Delete #ifdef
8452 PRINT_TYPELESS_INTEGER code.
8453
55e1d7e7
AC
8454 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8455 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8456 multi-arch definition.
8457 * gdbarch.h: Re-generate.
8458
43bd9a9e
AC
84592003-04-05 Andrew Cagney <cagney@redhat.com>
8460
8461 Eliminate FRAME_FIND_SAVED_REGS.
8462 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8463 Change FSR parameter to a pointer.
8464 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8465 Assume FSR parameter is a pointer.
8466 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8467 Make fsr a pointer.
8468 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8469 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8470 saved_regs a pointer.
8471 (hppa_frame_saved_pc): Ditto.
8472 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8473 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8474 pointer.
8475 (restore_pc_queue): Make fsr a pointer.
8476 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8477 (hppa_frame_chain): Make saved_regs a pointer, call
8478 hppa_frame_init_saved_regs.
8479 * sparc-tdep.c: Include "gdb_assert.h".
8480 (sparc_frame_find_saved_regs): Replace internal_error with
8481 gdb_assert.
8482 * remote-vxsparc.c (vx_read_register): Delete reference to
8483 FRAME_FIND_SAVED_REGS.
8484 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8485 * gdbarch.h: Regenerate.
8486 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8487 (deprecated_get_frame_saved_regs): Delete declaration.
8488 (struct frame_saved_regs): Delete definition.
8489 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8490 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8491 (hppa_frame_find_saved_regs): Delete declaration.
8492 (FRAME_FIND_SAVED_REGS): Delete macro.
8493 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8494 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8495 FRAME_FIND_SAVED_REGS in comment.
8496
be41e9f4
AC
84972003-04-05 Andrew Cagney <cagney@redhat.com>
8498
8499 * frame.c (frame_func_unwind, get_frame_func): New functions.
8500 * frame.h (get_frame_func, frame_func_unwind): Declare.
8501 (struct frame_info): Add field "prev_func" for caching the
8502 previous frame's function address.
8503 * arm-tdep.c (arm_frameless_function_invocation): Combine
8504 get_pc_function_start and get_frame_pc into get_frame_func.
8505 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8506 (sh64_nofp_frame_init_saved_regs): Ditto.
8507 * s390-tdep.c (s390_function_start): Ditto.
8508 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8509 (rs6000_frameless_function_invocation): Ditto.
8510 (rs6000_frame_saved_pc): Ditto.
8511 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8512 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8513 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8514 (i386_frame_init_saved_regs): Ditto.
8515 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8516 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8517 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8518 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8519 * blockframe.c (frameless_look_for_prologue): Ditto.
8520
a01dd7cc
AC
85212003-04-05 Andrew Cagney <cagney@redhat.com>
8522
8523 * frame.c (legacy_get_prev_frame): Link prev to next at the
8524 function start. Update comments.
8525
5e5592e6
AC
85262003-04-05 Andrew Cagney <cagney@redhat.com>
8527
8528 * frame.c (get_frame_id): Update comment.
8529 (legacy_get_prev_frame): Update comment.
8530 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8531 * gdbarch.h: Regenerate.
8532 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8533 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8534
6fba5002
AC
85352003-04-05 Andrew Cagney <cagney@redhat.com>
8536
8537 * stack.c (print_frame_info): Use get_frame_pc.
8538
7df05f2b
AC
85392003-04-04 Andrew Cagney <cagney@redhat.com>
8540
8541 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8542 the frame's type from the unwinder.
8543 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8544 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8545 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8546 (get_frame_base_address): Use get_frame_type.
8547 (get_frame_locals_address, get_frame_args_address): Ditto.
8548 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8549 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8550 (struct frame_info): Add comment explaining why the frame contains
8551 a "type" field.
8552 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8553 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8554 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8555 NORMAL_FRAME.
8556 * frame-unwind.h: Include "frame.h".
8557 (struct frame_unwind): Add "type" field.
8558 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8559
11889732
AC
85602003-04-04 Andrew Cagney <cagney@redhat.com>
8561
8562 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8563 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8564 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8565 get_frame_base.
8566 (d10v_unwind_dummy_id): Use frame_id_build.
8567 * frame.c (find_frame_sal): Use get_frame_pc.
8568 (create_new_frame): Use deprecated_update_frame_pc_hack and
8569 deprecated_update_frame_base_hack.
8570 (create_sentinel_frame): Add comment about ->pc going away.
8571 (get_prev_frame): Add comment about ->pc going away.
8572 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8573 frame_id_build, deprecated_update_frame_pc_hack and
8574 deprecated_update_frame_base_hack.
8575 (select_frame): Use get_frame_pc.
8576 (legacy_saved_regs_this_id): Use frame_id_build.
8577
50c46a0d
EZ
85782003-04-04 Elena Zannoni <ezannoni@redhat.com>
8579
fbe586ae
RH
8580 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8581 signed integer case.
8582 (classify_argument): Handle enumerations and references.
50c46a0d 8583
50bbdbd9
AC
85842003-04-04 Andrew Cagney <cagney@redhat.com>
8585
8586 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8587 ID to NULL.
8588
36018d2e
AF
85892003-04-01 Adam Fedor <fedor@gnu.org>
8590
8591 * gdb/objc-lang.c (selectors_info): Replace calls to
8592 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8593 SYMBOL_NATURAL_NAME.
8594 (classes_info, find_methods): Likewise.
8595
35cec841
KB
85962003-04-03 Kevin Buettner <kevinb@redhat.com>
8597
8598 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8599 ``mach'' to the value determined by bfd_default_set_arch_mach().
8600
43136899
BR
86012003-04-02 Bob Rossi <bob_rossi@cox.net>
8602
8603 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8604 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8605 (mi-cmd-file.o): Update dependencies.
8606
040b99fd
KB
86072003-04-01 Kevin Buettner <kevinb@redhat.com>
8608
8609 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8610 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8611
9a3d7dfd
AF
86122003-04-01 Adam Fedor <fedor@gnu.org>
8613
8614 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8615 * language.h (struct language_defn): Add la_demangle.
8616 (language_demangle): Declare.
8617 * language.c (language_demangle): New function.
8618 (unk_lang_demangle): Likewise.
8619 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8620 Add ukn_lang_demangle.
9a3d7dfd 8621 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8622 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8623 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8624 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8625 * jv-lang.c (java_demangle): New function
8626 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8627 * objc-lang.c (objc_demangle): Add options argument
8628 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8629 * maint.c (maintenance_demangle): Replace switch with
8630 call to language_demangle.
8631 * utils.c (fprintf_symbol_filtered): Likewise.
8632
5e074003
AC
86332003-04-01 Andrew Cagney <cagney@redhat.com>
8634
8635 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8636 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8637 PRINT_TYPELESS_INTEGER.
8638 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8639 PUSH_RETURN_ADDRESS.
8640
270cb5d6
AC
86412003-04-01 Andrew Cagney <cagney@redhat.com>
8642
8643 * Makefile.in (d10v-tdep.o): Update dependencies.
8644 * d10v-tdep.c: Include "frame-base.h".
8645 (d10v_frame_unwind): Make constant.
8646 (d10v_frame_base_address): New function.
8647 (d10v_frame_base): New variable.
8648 (d10v_gdbarch_init): Set frame_base default.
8649 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8650 comment for base.
8651 (d10v_frame_unwind_cache): Set and use "prev_sp".
8652 (d10v_frame_this_id): Use the previous frame's inner most stack
8653 address and this frame's func address for the frame ID. Use
8654 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8655
6bfb3e36
AC
86562003-04-01 Andrew Cagney <cagney@redhat.com>
8657
8658 * frame.h (get_frame_locals_address, get_frame_args_address):
8659 Refer to the base address, instead of the address of the first
8660 local or parameter.
8ffd9b1b 8661
da62e633
AC
86622003-04-01 Andrew Cagney <cagney@redhat.com>
8663
8664 Add frame debug info addresses:
8665 * frame-base.c: New file.
8666 * frame-base.h: New file.
8667 * frame.h (struct frame_base): Add opaque declaration.
8668 (get_frame_base): Update comment.
8669 (get_frame_base_address): Declare.
8670 (get_frame_locals_address): Declare.
8671 (get_frame_args_address): Declare.
8672 (struct frame_info): Add "base" and "base_cache". Update
8673 comments on the unwinder.
8674 * frame.c: Include "frame-base.h".
8675 (get_frame_locals_address): New function.
8676 (get_frame_base_address): New function.
8677 (get_frame_args_address): New function.
8678 * findvar.c (read_var_value): Use get_frame_locals_address and
8679 get_frame_args_address.
8680 * stack.c (frame_info): Use get_frame_locals_address and
8681 get_frame_args_address.
8682 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8683 moved to "frame-base.c".
8684 * printcmd.c (print_frame_nameless_args): Ditto.
8685 * symtab.h (address_class): Update comments.
8686 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8687 get_frame_base_address.
8688 * dwarf2expr.c (execute_stack_op): Ditto.
8689 * Makefile.in (frame_base_h): Define.
8690 (frame.o): Update dependencies.
8691 (frame-base.o): Add dependencies.
8692 (SFILES): Add frame-base.c.
8693 (COMMON_OBS): Add frame-base.o.
8694
3d30e9c2
AC
86952003-04-01 Andrew Cagney <cagney@redhat.com>
8696
8697 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8698 CALL_DUMMY_LENGTH): Ditto.
8699 * gdbarch.c: Re-generate.
8700 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8701 (CALL_DUMMY_LENGTH): Delete macro.
8702 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8703 * arm-tdep.c (arm_gdbarch_init): Ditto.
8704 * avr-tdep.c (avr_gdbarch_init): Ditto.
8705 * cris-tdep.c (cris_gdbarch_init): Ditto.
8706 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8707 * frv-tdep.c (frv_gdbarch_init): Ditto.
8708 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8709 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8710 * i386-tdep.c (i386_gdbarch_init): Ditto.
8711 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8712 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8713 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8714 * mips-tdep.c (mips_gdbarch_init): Ditto.
8715 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8716 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8717 * s390-tdep.c (s390_gdbarch_init): Ditto.
8718 * sh-tdep.c (sh_gdbarch_init): Ditto.
8719 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8720 * v850-tdep.c (v850_gdbarch_init): Ditto.
8721 * vax-tdep.c (vax_gdbarch_init): Ditto.
8722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8723
ce0c7262
CV
87242003-04-01 Corinna Vinschen <vinschen@redhat.com>
8725
8726 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8727
73dd234f
AC
87282003-04-01 Andrew Cagney <cagney@redhat.com>
8729
8730 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8731 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8732 * gdbarch.h, gdbarch.c: Re-generate.
8733 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8734 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8735 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8736 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8737 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8738 * infcmd.c (run_stack_dummy): Simplify assuming
8739 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8740 * infrun.c (handle_inferior_event): Ditto.
8741 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8742 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8743 * arm-tdep.c (arm_gdbarch_init): Ditto.
8744 * avr-tdep.c (avr_gdbarch_init): Ditto.
8745 * cris-tdep.c (cris_gdbarch_init): Ditto.
8746 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8747 * frv-tdep.c (frv_gdbarch_init): Ditto.
8748 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8749 * i386-tdep.c (i386_gdbarch_init): Ditto.
8750 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8751 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8752 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8753 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8754 * mips-tdep.c (mips_gdbarch_init): Ditto.
8755 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8756 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8757 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8758 * s390-tdep.c (s390_gdbarch_init): Ditto.
8759 * sh-tdep.c (sh_gdbarch_init): Ditto.
8760 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8761 * v850-tdep.c (v850_gdbarch_init): Ditto.
8762 * vax-tdep.c (vax_gdbarch_init): Ditto.
8763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8764
97606a13
DJ
87652003-04-01 Daniel Jacobowitz <drow@mvista.com>
8766
8767 * symfile.c (symfile_relocate_debug_section): Update call to
8768 bfd_simple_get_relocated_section_contents.
8769
e8ab51f7
AC
87702003-03-31 Andrew Cagney <cagney@redhat.com>
8771
8772 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8773 * gdbarch.h, gdbarch.c: Regenerate.
8774 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8775 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8776 available.
8777 * frame.h (generic_fix_call_dummy): Delete declaration.
8778 * dummy-frame.h: Update comment.
8779 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8780 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8781 fix_call_dummy.
8782 * sh-tdep.c (sh_gdbarch_init): Ditto.
8783 * s390-tdep.c (s390_gdbarch_init): Ditto.
8784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8785 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8786 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8787 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8788 * i386-tdep.c (i386_gdbarch_init): Ditto.
8789 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8790 * frv-tdep.c (frv_gdbarch_init): Ditto.
8791 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8792 * cris-tdep.c (cris_gdbarch_init): Ditto.
8793 * avr-tdep.c (avr_gdbarch_init): Ditto.
8794 * arm-tdep.c (arm_gdbarch_init): Ditto.
8795
018d1b48
JB
87962003-03-31 J. Brobecker <brobecker@gnat.com>
8797
8798 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8799 (INIT_FRAME_AP): Likewise.
8800 (EXTRA_FRAME_INFO): Likewise.
8801
e9a2674e
AC
88022003-03-31 Andrew Cagney <cagney@redhat.com>
8803
8804 * gdbarch.sh: Include "symfile.h".
8805 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8806 * gdbarch.h, gdbarch.c: Re-generate.
8807 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8808 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8809 call_dummy_address, the default is at entry_point_address.
8810 * v850-tdep.c (v850_gdbarch_init): Ditto.
8811 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8812 * sh-tdep.c (sh_gdbarch_init): Ditto.
8813 * s390-tdep.c (s390_gdbarch_init): Ditto.
8814 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8816 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8817 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8818 * i386-tdep.c (i386_gdbarch_init): Ditto.
8819 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8820 * frv-tdep.c (frv_gdbarch_init): Ditto.
8821 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8822 * cris-tdep.c (cris_gdbarch_init): Ditto.
8823 * arm-tdep.c (arm_gdbarch_init): Ditto.
8824
e8a8712a
AC
88252003-03-31 Andrew Cagney <cagney@redhat.com>
8826
8827 * gdbarch.sh (CALL_DUMMY_P): Delete.
8828 * gdbarch.h, gdbarch.c: Re-generate.
8829 * inferior.h (CALL_DUMMY_P): Delete macro.
8830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8831 * vax-tdep.c (vax_gdbarch_init): Update.
8832 * v850-tdep.c (v850_gdbarch_init): Update.
8833 * sparc-tdep.c (sparc_gdbarch_init): Update.
8834 * sh-tdep.c (sh_gdbarch_init): Update.
8835 * s390-tdep.c (s390_gdbarch_init): Update.
8836 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8837 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8838 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8839 * mips-tdep.c (mips_gdbarch_init): Update.
8840 * mcore-tdep.c (mcore_gdbarch_init): Update.
8841 * m68k-tdep.c (m68k_gdbarch_init): Update.
8842 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8843 * ia64-tdep.c (ia64_gdbarch_init): Update.
8844 * i386-tdep.c (i386_gdbarch_init): Update.
8845 * h8300-tdep.c (h8300_gdbarch_init): Update.
8846 * frv-tdep.c (frv_gdbarch_init): Update.
8847 * d10v-tdep.c (d10v_gdbarch_init): Update.
8848 * cris-tdep.c (cris_gdbarch_init): Update.
8849 * breakpoint.c (deprecated_frame_in_dummy): Update.
8850 * avr-tdep.c (avr_gdbarch_init): Update.
8851 * alpha-tdep.c (alpha_gdbarch_init): Update.
8852 * arm-tdep.c (arm_gdbarch_init): Update.
8853 * dummy-frame.c (dummy_frame_this_id): Update comments.
8854 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8855 * frame.c (legacy_get_prev_frame): Ditto.
8856 * valops.c (call_function_by_hand): Delete function.
8857 (hand_function_call): Rename to call_function_by_hand
8858
ed234cf8
AC
88592003-03-30 Andrew Cagney <cagney@redhat.com>
8860
8861 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8862 * value.h (struct value): Update comment.
ed234cf8 8863
06c77151
AC
88642003-03-30 Andrew Cagney <cagney@redhat.com>
8865
6c2b5168
AC
8866 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8867 D10V_FP_REGNUM.
8868 (d10v_gdbarch_init): Do not set fp_regnum.
8869
06c77151
AC
8870 * frame.c (get_frame_base): Force ID initialization.
8871 (get_prev_frame): Move computation of the frame ID from here ...
8872 (get_frame_id): ... to here.
8873 (legacy_get_prev_frame): Mark the frame ID as valid.
8874 * frame.h (struct frame_info): Add field "id_p".
8875
97a1a11c
MK
88762003-03-30 Mark Kettenis <kettenis@gnu.org>
8877
8878 * i386-tdep.c (i386_store_struct_return): Removed.
8879 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8880
6c0e89ed
AC
88812003-03-30 Andrew Cagney <cagney@redhat.com>
8882
8883 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8884 * gdbarch.h, gdbarch.c: Regenerate.
8885 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8887 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8888 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8889 * i386-tdep.c (i386_gdbarch_init): Ditto.
8890 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8891 * cris-tdep.c (cris_gdbarch_init): Ditto.
8892 * vax-tdep.c (vax_gdbarch_init): Ditto.
8893 * s390-tdep.c (s390_gdbarch_init): Ditto.
8894 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8895 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8896 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8897 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8898 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8899 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8900 * sparc-tdep.c (sparc_gdbarch_init): Update.
8901 * sh-tdep.c (sh_gdbarch_init): Update.
8902 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8903 * mips-tdep.c (mips_gdbarch_init): Update.
8904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8905 * ia64-tdep.c (ia64_gdbarch_init): Update.
8906 * frv-tdep.c (frv_gdbarch_init): Update.
8907 * avr-tdep.c (avr_gdbarch_init): Update.
8908 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8909 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8910 instead of when push_dummy_call is not available.
8ffd9b1b 8911
f7dd6af2
AC
89122003-03-30 Andrew Cagney <cagney@redhat.com>
8913
8914 * infttrace.c: Include "gdbthread.h".
8915 (parent_attach_all): Fix function signature.
8916 (call_ptrace): Update call.
8917 * Makefile.in (infttrace.o): Update dependencies.
8918
28f617b3
AC
89192003-03-30 Andrew Cagney <cagney@redhat.com>
8920
8921 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8922 PUSH_RETURN_ADDRESS.
8923 * gdbarch.h, gdbarch.c: Regenerate.
8924 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8925 * x86-64-tdep.c (x86_64_init_abi): Update.
8926 * v850-tdep.c (v850_gdbarch_init): Update.
8927 * sparc-tdep.c (sparc_gdbarch_init): Update.
8928 * sh-tdep.c (sh_gdbarch_init): Update.
8929 * s390-tdep.c (s390_gdbarch_init): Update.
8930 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8931 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8932 * mips-tdep.c (mips_gdbarch_init): Update.
8933 * mcore-tdep.c (mcore_gdbarch_init): Update.
8934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8935 * ia64-tdep.c (ia64_gdbarch_init): Update.
8936 * i386-tdep.c (i386_gdbarch_init): Update.
8937 * h8300-tdep.c (h8300_gdbarch_init): Update.
8938 * frv-tdep.c (frv_gdbarch_init): Update.
8939 * cris-tdep.c (cris_gdbarch_init): Update.
8940 * avr-tdep.c (avr_gdbarch_init): Update.
8941 * arm-tdep.c (arm_gdbarch_init): Update.
8942 * valops.c (hand_function_call): Update.
8943
4d628cd7
AC
89442003-03-29 Andrew Cagney <cagney@redhat.com>
8945
8946 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8947 sizeof_call_dummy_words.
8948 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8949 define.
8950 * gdbarch.h: Regenerate.
8ffd9b1b 8951
65e82032
AC
89522003-03-29 Andrew Cagney <cagney@redhat.com>
8953
8954 * infttrace.h: New file.
8955 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8956 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8957 (hpread_read_doc_function_type): Detect an initialized type1.
8958 (hpread_quick_traverse): Initialize mod_name_string.
8959 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8960 (som_solib_get_solib_by_pc): Declare.
8961 (so_lib_thread_start_addr): Declare.
8962 (no_shared_libraries): Declare.
8963 * somread.c (init_import_symbols): Make static. Add forward
8964 declaration.
8965 * config/pa/nm-hppah.h: Include "infttrace.h" for
8966 parent_attach_all.
8967 (hppa_insert_hw_watchpoint): Declare.
8968 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8969 * hppah-nat.c: Include "gdb_string.h".
8970 (parent_attach_all): Delete extern declaration, moved to
8971 "infttrace.h".
8972 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8973 int.
8974 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8975 * Makefile.in (infttrace_h): Define.
8976 (hpread.o): Update dependencies.
8977 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8978 * hppa-hpux-tdep.c: Include "gdb_string.h".
8979 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8980 * infrun.c (handle_inferior_event): Always initialize
8981 stepped_after_stopped_by_watchpoint. Add default and remove
8982 fallthrough in switch statement.
8983 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8984 parameter to int.
8985 (hppa_remove_hw_watchpoint): Ditto.
8986
2c3bbe77
AC
89872003-03-29 Andrew Cagney <cagney@redhat.com>
8988
8989 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8990 offset.
8991
2dd604e7
RE
89922003-03-29 Richard Earnshaw <rearnsha@arm.com>
8993
8994 * arm-tdep.c (arm_push_arguments): Delete.
8995 (struct stack_item): New type.
8996 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8997 (arm_store_struct_return): Delte.
8998 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8999 arm_push_arguments or arm_store_struct_return.
9000
e8933a55
AC
90012003-03-28 Andrew Cagney <cagney@redhat.com>
9002
9003 * Makefile.in (d10v-tdep.o): Update dependencies.
9004 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9005 * d10v-tdep.c: Include "remote.h".
9006 (target_resume_hook): Delete extern declaration.
9007 (target_wait_loop_hook): Ditto.
9008 (tdisassemble_command): Eliminate assignment in "if" conditional.
9009 (d10v_ts2_register_sim_regno): Eliminate call to
9010 legacy_register_sim_regno.
9011 (d10v_ts3_register_sim_regno): Ditto.
9012
6949171e
JJ
90132003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9014
9015 * thread.c: Reindented.
9016 * lin-lwp.c: Ditto.
9017 * linux-proc.c: Ditto.
9018
98c7071f
BR
90192003-03-28 Bob Rossi <bob_rossi@cox.net>
9020
fbe586ae 9021 * MAINTAINERS (write after approval): Add myself.
98c7071f 9022
5edc9ca6
TR
90232003-03-27 Theodore A. Roth <troth@openavr.org>
9024
9025 * objc-exp.y: Add missing semi-colons.
9026
378bfd1b
AC
90272003-03-27 Andrew Cagney <cagney@redhat.com>
9028
9029 * regcache.c (write_sp): Delete function and references.
9030 * inferior.h (write_sp): Delete declaration.
9031 * valops.c (hand_function_call): Replace write_sp with
9032 TARGET_WRITE_SP.
9033 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9034 (sparc_pop_frame): Ditto.
8ffd9b1b 9035
56056df7
AC
90362003-03-27 Andrew Cagney <cagney@redhat.com>
9037
9038 * NEWS: Mention removal of support for hppa*-*-bsd* and
9039 hppa*-*-osf* natives, and hppa*-*-pro* target.
9040 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9041 * config/pa/xm-pa.h: Obsolete file.
9042 * config/pa/xm-hppab.h: Obsolete file.
9043 * config/pa/nm-hppab.h: Obsolete file.
9044 * config/pa/tm-hppab.h: Obsolete file.
9045 * config/pa/tm-hppao.h: Obsolete file.
9046 * config/pa/nm-hppao.h: Obsolete file.
9047 * config/pa/tm-pro.h: Obsolete file.
9048 * config/pa/hppaosf.mt: Obsolete file.
9049 * config/pa/hppaosf.mh: Obsolete file.
9050 * config/pa/hppapro.mt: Obsolete file.
9051 * config/pa/hppabsd.mt: Obsolete file.
9052 * config/pa/hppabsd.mh: Obsolete file.
9053 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9054 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9055 hppa*-*-osf*.
9056
5873a88d
AC
90572003-03-27 Andrew Cagney <cagney@redhat.com>
9058
9059 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9060 push_arguments. Don't set push_return_address or write_sp.
9061 (d10v_push_dummy_call): Replace d10v_push_arguments.
9062 (d10v_push_return_address, d10v_write_sp): Delete function,
9063 handled by push_dummy_call.
9064
b81774d8
AC
90652003-03-26 Andrew Cagney <cagney@redhat.com>
9066
9067 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9068 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9069 regcache and dummy_addr parameters.
9070 * gdbarch.h, gdbarch.c: Re-generate.
9071 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9072 available; assume it will handle stack alignment and return
9073 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9074 legacy_push_arguments.
9075 (legacy_push_arguments): Rename default_push_arguments.
9076 * value.h (legacy_push_arguments): Rename default_push_arguments.
9077 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9078 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9079 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9080 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9081 * config/i386/tm-symmetry.h: Update.
9082 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9083 * x86-64-tdep.c (x86_64_init_abi): Update.
9084 * v850-tdep.c (v850_gdbarch_init): Update.
9085 * sparc-tdep.c (sparc_gdbarch_init): Update.
9086 * sh-tdep.c (sh_gdbarch_init): Update.
9087 * s390-tdep.c (s390_gdbarch_init): Update.
9088 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9089 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9090 * mips-tdep.c (mips_gdbarch_init): Update.
9091 * mcore-tdep.c (mcore_gdbarch_init): Update.
9092 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9093 * ia64-tdep.c (ia64_gdbarch_init): Update.
9094 * i386-tdep.c (i386_gdbarch_init): Update.
9095 * hppa-tdep.c (hppa_gdbarch_init): Update.
9096 * h8300-tdep.c (h8300_gdbarch_init): Update.
9097 * frv-tdep.c (frv_gdbarch_init): Update.
9098 * d10v-tdep.c (d10v_gdbarch_init): Update.
9099 * cris-tdep.c (cris_gdbarch_init): Update.
9100 * avr-tdep.c (avr_gdbarch_init): Update.
9101 * arm-tdep.c (arm_gdbarch_init): Update.
9102 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9103 * alpha-tdep.c (alpha_gdbarch_init): Update.
9104
f541410f
DJ
91052003-03-26 Daniel Jacobowitz <drow@mvista.com>
9106
9107 * signals/signals.c (do_target_signal_to_host): Correct realtime
9108 signal range test.
9109
69f567ae
DJ
91102003-03-26 Daniel Jacobowitz <drow@mvista.com>
9111
9112 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9113 (struct sal_chain, map_catch_names): Remove.
9114 (catch_exception_command_1): Don't call
9115 handle_gnu_4_16_catch_command.
9116
d5d14a5a
DJ
91172003-03-26 Daniel Jacobowitz <drow@mvista.com>
9118
9119 From Mark Dettinger <dettinge@de.ibm.com>:
9120 * dwarf2cfi.c (read_2u): Increment pointer by two.
9121
bdd73e22
DJ
91222003-03-26 Daniel Jacobowitz <drow@mvista.com>
9123
9124 * signals/signals.c: Fix typos in last change.
9125
960cb555
DJ
91262003-03-26 Daniel Jacobowitz <drow@mvista.com>
9127
9128 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9129 not already defined. Use __SIGRTMIN if available.
9130 (target_signal_from_host): Remove SIGRTMIN block.
9131 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9132 the signal is within the realtime range.
9133
f636b87d
AF
91342003-03-25 Adam Fedor <fedor@gnu.org>
9135
9136 * Makefile.in (infrun.o): Add $(language_h)
9137 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9138 for language specific trampolines.
9139 * language.h (struct language_defn): Add skip_trampoline.
9140 (skip_language_trampoline): Declare.
9141 * language.c (unk_lang_trampoline, skip_language_trampoline):
9142 New functions.
9143 (unknown_language_defn, auto_language_defn, local_language_defn):
9144 Add ukn_lang_trampoline.
9145 * ada-lang.c (ada_language_defn): Add NULL for language
9146 specific skip_trampoline.
9147 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9148 scm-lang.c: Likewise.
9149 * objc-lang.c (objc_skip_trampoline): New function.
9150 (objc_language_defn): Add objc_skip_trampoline.
9151
28f617b3 91522003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9153
9154 * frame.c (get_prev_frame): Delay validating a frame's ID -
9155 non-NULL, didn't go backwards - until an attempt to unwind it to
9156 the previous frame.
9157
f933a9c5
AC
91582003-03-25 Andrew Cagney <cagney@redhat.com>
9159
9160 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9161 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9162 * gdbarch.h, gdbarch.c: Re-generate.
9163 * config/sparc/tm-sparc.h
9164 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9165 * sparc-tdep.c (sparc_gdbarch_init): Set
9166 deprecated_extra_stack_alignment_needed.
9167 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9169 extra_stack_alignment_needed.
9170 * v850-tdep.c (v850_gdbarch_init): Ditto.
9171 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9172 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9173 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9174 * cris-tdep.c (cris_gdbarch_init): Ditto.
9175 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9176 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9177
4183d812
AC
91782003-03-25 Andrew Cagney <cagney@redhat.com>
9179
9180 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9181 STORE_STRUCT_RETURN.
9182 * gdbarch.h, gdbarch.c: Regenerate.
9183 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9184 (d10v_push_arguments): Set the struct return register.
9185 (d10v_gdbarch_init): Update.
9186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9187 * x86-64-tdep.c (x86_64_init_abi): Update.
9188 * vax-tdep.c (vax_gdbarch_init): Update.
9189 * v850-tdep.c (v850_gdbarch_init): Update.
9190 * sparc-tdep.c (sparc_gdbarch_init): Update.
9191 * sh-tdep.c (sh_gdbarch_init): Update.
9192 * s390-tdep.c (s390_gdbarch_init): Update.
9193 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9194 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9195 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9196 * mips-tdep.c (mips_gdbarch_init): Update.
9197 * mcore-tdep.c (mcore_gdbarch_init): Update.
9198 * m68k-tdep.c (m68k_gdbarch_init): Update.
9199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9200 * ia64-tdep.c (ia64_gdbarch_init): Update.
9201 * i386-tdep.c (i386_gdbarch_init): Update.
9202 * hppa-tdep.c (hppa_gdbarch_init): Update.
9203 * h8300-tdep.c (h8300_gdbarch_init): Update.
9204 * frv-tdep.c (frv_gdbarch_init): Update.
9205 * cris-tdep.c (cris_gdbarch_init): Update.
9206 * avr-tdep.c (avr_gdbarch_init): Update.
9207 * arm-tdep.c (arm_gdbarch_init): Update.
9208 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9209
1bf6d5cc
AC
92102003-03-25 Andrew Cagney <cagney@redhat.com>
9211
9212 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9213 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9214 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9215 * gdbarch.h, gdbarch.c: Regenerate.
9216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9217 call_dummy_stack_adjust_p.
9218 * vax-tdep.c (vax_gdbarch_init): Ditto.
9219 * v850-tdep.c (v850_gdbarch_init): Ditto.
9220 * sh-tdep.c (sh_gdbarch_init): Ditto.
9221 * s390-tdep.c (s390_gdbarch_init): Ditto.
9222 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9223 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9224 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9225 * mips-tdep.c (mips_gdbarch_init): Ditto.
9226 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9227 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9229 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9230 * i386-tdep.c (i386_gdbarch_init): Ditto.
9231 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9232 * frv-tdep.c (frv_gdbarch_init): Ditto.
9233 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9234 * cris-tdep.c (cris_gdbarch_init): Ditto.
9235 * avr-tdep.c (avr_gdbarch_init): Ditto.
9236 * arm-tdep.c (arm_gdbarch_init): Ditto.
9237 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9238 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9239 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9240 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9241 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9242 call_dummy_stack_adjust_p.
9243 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9244 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9245 * sparc-tdep.c (sparc32_push_arguments): Update.
9246 * valops.c (hand_function_call): Update.
9247
71c08af0
CV
92482003-03-25 Corinna Vinschen <vinschen@redhat.com>
9249
9250 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9251 set_gdbarch_char_signed.
9252
30757f90
RE
92532003-03-25 Richard Earnshaw <rearnsha@arm.com>
9254
9255 PR cli/548
9256 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9257
03d48a7d
RE
92582003-03-25 Richard Earnshaw <rearnsha@arm.com>
9259
9260 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9261 (_initialize_arm_tdep): Don't set tm_print_insn.
9262
2cf6873c
AF
92632003-03-24 Adam Fedor <fedor@gnu.org>
9264
9265 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9266 * objc-lang.h: Add multiple inclusion protection.
9267 (start_msglist, add_msglist, end_msglist): Additional declarations.
9268
17c0759e
RE
92692003-03-24 Richard Earnshaw <rearnsha@arm.com>
9270
9271 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9272 value was renamed to ARM_FLOAT_SOFT_FPA.
9273
618ce49f
AC
92742003-03-23 Andrew Cagney <cagney@redhat.com>
9275
9276 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9277 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9278 * gdbarch.h, gdbarch.c: Regenerate.
9279 * valops.c (hand_function_call): Update.
9280 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9281 * frame.c (legacy_saved_regs_this_id): Update.
9282 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9283 * dummy-frame.h: Update.
9284 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9285 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9286 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9287 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9288 * config/m68k/tm-sun3.h: Update.
9289 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9291 * x86-64-tdep.c (x86_64_init_abi): Update.
9292 * vax-tdep.c (vax_gdbarch_init): Update.
9293 * v850-tdep.c (v850_gdbarch_init): Update.
9294 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9295 * sh-tdep.c (sh_gdbarch_init): Update.
9296 * s390-tdep.c (s390_gdbarch_init): Update.
9297 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9298 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9299 (frame_get_saved_regs): Update.
9300 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9301 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9303 * mips-tdep.c (mips_gdbarch_init): Update.
9304 * mcore-tdep.c (mcore_gdbarch_init): Update.
9305 * m68k-tdep.c (m68k_gdbarch_init): Update.
9306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9307 * ia64-tdep.c (ia64_gdbarch_init): Update.
9308 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9309 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9310 (i386_interix_back_one_frame): Update.
9311 * hppa-tdep.c (hppa_gdbarch_init): Update.
9312 (hppa_init_extra_frame_info): Update.
9313 * h8300-tdep.c (h8300_gdbarch_init): Update.
9314 * frv-tdep.c (frv_gdbarch_init): Update.
9315 * cris-tdep.c (cris_gdbarch_init): Update.
9316 * avr-tdep.c (avr_gdbarch_init): Update.
9317 * arm-tdep.c (arm_gdbarch_init): Update.
9318 * alpha-tdep.c (alpha_gdbarch_init): Update.
9319
fd50bc42
RE
93202003-03-22 Richard Earnshaw <rearnsha@arm.com>
9321
9322 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9323 (arm_get_fp_model): Declare.
9324 * arm-tdep.c (fp_model_strings): New string array.
9325 (arm_fp_model, current_fp_model): New variables.
9326 (arm_get_fp_model): New function.
9327 (arm_set_fp): New function.
9328 (set_fp_model_sfunc): New function.
9329 (show_fp_model): New function.
9330 (_initialize_arm_tdep): Add new command to set/show the FPU.
9331 (arm_extract_return_value): Use arm_get_fp_model.
9332 (arm_store_return_value): Likewise.
9333 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9334 to initialize the floating-point data types.
9335 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9336 model is FPA.
9337
26304000
RE
93382003-03-22 Richard Earnshaw <rearnsha@arm.com>
9339
9340 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9341 the current setting of each value.
9342 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9343 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9344 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9345 commands and add new version as subcommands of "set/show arm".
9346
afd7eef0
RE
93472003-03-22 Richard Earnshaw <rearnsha@arm.com>
9348
9349 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9350 (set_arm_command, show_arm_command): New functions.
9351 (_initialize_arm_tdep): Add them.
9352 (num_disassembly_options): Renamed from num_flavor_options.
9353 (valid_disassembly_styles): Renamed from valid_flavors.
9354 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9355 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9356 set_disassembly_flavor_sfunc.
9357 (set_disassembly_style): Renamed from set_disassembly_flavor.
9358 (arm_othernames): Updated.
9359 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9360 command. Add "set/show arm disassembly" commands. Deprecate
9361 "othernames" command.
9362
299a7944
RE
93632003-03-22 Richard Earnshaw <rearnsha@arm.com>
9364
9365 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9366 (arm-tdep.o): Depend on elf_arm_h.
9367
c1dac9e6
RE
93682003-03-22 Richard Earnshaw <rearnsha@arm.com>
9369
9370 * Makefile.in (coff_internal_h): Define.
9371 (arm-tdep.o): Update dependencies.
9372
2702d96c
RE
93732003-03-22 Richard Earnshaw <rearnsha@arm.com>
9374
9375 * arm-tdep.c (prologue_cache): Delete.
9376 (check_prologue_cache, save_prologue_cache): Delete.
9377 (arm_scan_prologue): Don't check or update the prologue_cache.
9378 (arm_gdb_arch_init): Don't initialize it.
9379 (_initialize_arm_tdep): Likewise.
9380
27d5d74b
SC
93812003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9382
9383 * MAINTAINERS (tui): Maintainer of tui code.
9384
1762d96d
CV
93852003-03-21 Corinna Vinschen <vinschen@redhat.com>
9386
9387 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9388 (i386-cygwin-tdep.o): Add dependencies.
9389 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9390 * i386-cygwin-tdep.c: New file.
9391 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9392 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9393
4c2e2391
AC
93942003-03-20 Andrew Cagney <cagney@redhat.com>
9395
f20d38b7
AC
9396 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9397 (handle_inferior_event): Remove code calling
9398 DYNAMIC_TRAMPOLINE_NEXTPC.
9399
0022b738
AC
9400 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9401 already has a full path.
9402
864dbc90
AC
9403 * main.c (gdb_main): Return 1.
9404 (captured_main): Call error to report an invalid interpreter.
9405
4c2e2391
AC
9406 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9407 * alpha-osf1-tdep.c: Include "gdb_string.h".
9408
5ef7553b
JB
94092003-03-19 J. Brobecker <brobecker@gnat.com>
9410
9411 Continuing work to convert the hppa targets to multiarch partial.
9412
9413 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9414 method, now that hppa_push_dummy_frame has a conformant prototype.
9415 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9416 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9417 for the switch to multiarch partial.
9418
7bde8967
KB
94192003-03-19 Kevin Buettner <kevinb@redhat.com>
9420
9421 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9422 when iss is issNull.
9423
b006a9e9
KB
94242003-03-18 Kevin Buettner <kevinb@redhat.com>
9425
9426 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9427 NUM_REGS bounds check.
9428
5e2e9765
KB
94292003-03-18 Kevin Buettner <kevinb@redhat.com>
9430
9431 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9432 * mips-tdep.c (gdb_assert.h): Include.
9433 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9434 (mips_register_name): Handle integer registers explicitly. Add
9435 bounds checking.
9436 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9437 (mips_lsi33k_reg_names): Don't list integer registers; they're
9438 handled by mips_register_name() now.
9439 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9440 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9441 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9442 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9443 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9444
a2867626
AC
94452003-03-18 Andrew Cagney <cagney@redhat.com>
9446
9447 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9448 a void pointer.
9449 * gdbtypes.h (print_scalar_formatted): Update declaration.
9450 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9451
06600e06
JB
94522003-03-18 J. Brobecker <brobecker@gnat.com>
9453
9454 * infrun.c (observer.h): Add #include.
9455 (normal_stop): Add call to observer_notify_normal_stop.
9456 * Makefile.in (infrun.o): Add dependency on observer.h.
9457
7daf4f5b
JB
94582003-03-18 J. Brobecker <brobecker@gnat.com>
9459
9460 Continuing work to convert the hppa targets to multiarch partial.
9461 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9462 parameter. Reformat comment.
9463 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9464 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9465 to match new profile.
9466
3371ccc0
JB
94672003-03-18 J. Brobecker <brobecker@gnat.com>
9468
9469 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9470 appear to be working in any case.
9471
4fbe891e
JB
94722003-03-18 J. Brobecker <brobecker@gnat.com>
9473
9474 * observer.c (observer_test_first_observer): New static variable.
9475 (observer_test_second_observer): Likewise.
9476 (observer_test_third_observer): Likewise.
9477 (observer_test_first_notification_function): New static function.
9478 (observer_test_second_notification_function): Likewise.
9479 (observer_test_third_notification_function): Likewise.
9480
a7ff40e7
JB
94812003-03-17 J. Brobecker <brobecker@gnat.com>
9482
9483 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9484 * somsolib.c (gdb_assert.h): Likewise.
9485 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9486 (somsolib.o): Likewise.
9487
26ca4152
AC
94882003-03-17 Andrew Cagney <cagney@redhat.com>
9489
9490 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9491 BFD. Simplify setting of di.endian.
9492
0a613259
AC
94932003-03-17 Andrew Cagney <cagney@redhat.com>
9494
9495 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9496 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9497
9498 From Elena Zannoni <ezannoni@redhat.com>
9499 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9500 vector and floating-point parameters.
9501 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9502 convention.
9503 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9504
1132738f
FN
95052003-03-17 Fernando Nasser <fnasser@redhat.com>
9506
9507 * MAINTAINERS: Remove my name from several maintainership roles.
9508
6dc42492
AC
95092003-03-17 Andrew Cagney <cagney@redhat.com>
9510
9511 Fix frame off-by-one bug.
9512 * frame-unwind.h (frame_this_id_ftype): Replace
9513 frame_unwind_id_ftype.
9514 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9515 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9516 with "prev_register".
9517 * frame-unwind.c (frame_unwind_find_by_pc): Return
9518 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9519 comment.
9520 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9521 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9522 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9523 (dummy_frame_unwind): Update.
9524 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9525 sentinel_frame_register_unwind.
9526 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9527 (sentinel_frame_unwinder): Update.
9528 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9529 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9530 * frame.c (create_sentinel_frame): Update. Initialize
9531 "prologue_cache" instead of "unwind_cache".
9532 (frame_register_unwind): Call this frame's prev_register with the
9533 next frame and this frame's prologue cache.
9534 (get_prev_frame): Simplify. Always call prev frame's this_id with
9535 this frame and prev frame's prologue cache. Document that this
9536 call is shifted one to the left when compared to the
9537 frame_register_unwind call.
9538 (legacy_saved_regs_prev_register): Replace
9539 frame_saved_regs_register_unwind.
9540 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9541 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9542 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9543 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9544 (d10v_frame_unwind): Update.
9545 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9546 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9547 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9548 "saved_regs" with "this_saved_regs".
9549
efd710d6
AC
95502003-03-16 Andrew Cagney <cagney@redhat.com>
9551
9552 * frame.c (frame_pop): Don't call target_store_registers. Fix
9553 problem reported by Mark Kettenis.
9554
4e259f09
MK
95552003-03-16 Mark Kettenis <kettenis@gnu.org>
9556
9557 * i386-tdep.c (i386_register_type): Renamed from
9558 i386_register_virtual_type. Adjust function signature.
9559 (i386_gdbarch_init): Set register_type instead of
9560 deprecated_max_register_raw_size,
9561 deprecated_max_register_virtual_size and register_virtual_type.
9562
055bb976
AC
95632003-03-14 Andrew Cagney <cagney@redhat.com>
9564
9565 * frame.c (get_prev_frame): When a legacy frame, always call
9566 legacy_get_prev_frame. Simplify unwind code using assumption that
9567 the unwinder is new.
9568 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9569 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9570 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9571
ac2adee5
AC
95722003-03-14 Andrew Cagney <cagney@redhat.com>
9573
9574 * frame.c (get_saved_register): Delete function.
9575 * frame.h (get_saved_register): Delete declaration.
9576 * xstormy16-tdep.c: Update comment.
9577 * regcache.h: Update comments.
9578 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9579 get_saved_register and extract_address, use
9580 frame_read_unsigned_register.
9581 (sparc_frame_saved_pc): Ditto.
9582 (sparc_get_saved_register): Instead of get_saved_register, use
9583 frame_register.
9584 (sparc_pop_frame): Ditto.
9585 * findvar.c: Update comments.
9586 (value_of_register): Call frame_register instead of
9587 get_saved_register.
9588 (value_from_register): Ditto.
9589 * config/sparc/tm-sparc.h: Update comment.
9590 * breakpoint.c: Update comment.
9591
129c1cd6
AC
95922003-03-14 Andrew Cagney <cagney@redhat.com>
9593
9594 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9595 GET_SAVED_REGISTER.
9596 * gdbarch.h, gdbarch.c: Re-generate.
9597 * frame.h: Update comments.
9598 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9599 * x86-64-tdep.c (x86_64_init_abi): Update.
9600 * sparc-tdep.c (sparc_gdbarch_init): Update.
9601 * sh-tdep.c (sh_gdbarch_init): Update.
9602 * mips-tdep.c (mips_gdbarch_init): Update.
9603 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9604 * cris-tdep.c (cris_gdbarch_init): Update.
9605 * ia64-tdep.c (ia64_gdbarch_init): Update.
9606 * frame.c (frame_register): Update.
9607 (get_saved_register): Update.
9608 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9609
749b82f6
AC
96102003-03-13 Andrew Cagney <cagney@redhat.com>
9611
9612 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9613 * gdbarch.h, gdbarch.c: Regenerate.
9614 * valops.c (hand_function_call): Update comment.
9615 * stack.c (return_command): Update comment.
9616 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9617 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9619 * x86-64-tdep.c (x86_64_init_abi): Update.
9620 * vax-tdep.c (vax_gdbarch_init): Update.
9621 * v850-tdep.c (v850_gdbarch_init): Update.
9622 * sparc-tdep.c (sparc_gdbarch_init): Update.
9623 * sh-tdep.c (sh_gdbarch_init): Update.
9624 * s390-tdep.c (s390_gdbarch_init): Update.
9625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9626 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9627 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9628 * mips-tdep.c (mips_gdbarch_init): Update.
9629 * mcore-tdep.c (mcore_gdbarch_init): Update.
9630 * m68k-tdep.c (m68k_gdbarch_init): Update.
9631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9632 * ia64-tdep.c (ia64_gdbarch_init): Update.
9633 * i386-tdep.c (i386_gdbarch_init): Update.
9634 * hppa-tdep.c (hppa_gdbarch_init): Update.
9635 * h8300-tdep.c (h8300_gdbarch_init): Update.
9636 * frv-tdep.c (frv_gdbarch_init): Update.
9637 * cris-tdep.c (cris_gdbarch_init): Update.
9638 * avr-tdep.c (avr_gdbarch_init): Update.
9639 * arm-tdep.c (arm_gdbarch_init): Update.
9640 * alpha-tdep.c (alpha_gdbarch_init): Update.
9641
1594fa56
AC
96422003-03-13 Andrew Cagney <cagney@redhat.com>
9643
9644 * frame.c (legacy_frame_p): New function.
9645 (get_prev_frame): Use legacy_frame_p.
9646 * frame.h (legacy_frame_p): Declare.
9647
7717fda3
V
96482003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9649
fbe586ae 9650 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9651 listing corrected.
9652
0c67cbe9
V
96532003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9654
fbe586ae 9655 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9656
03febf99
AC
96572003-03-12 Andrew Cagney <cagney@redhat.com>
9658
9659 * frame.c (get_prev_frame): Rename the frame parameter to
9660 "this_frame".
9661 (get_next_frame, legacy_get_prev_frame): Ditto.
9662
0a1e1ca1
AC
96632003-03-12 Andrew Cagney <cagney@redhat.com>
9664
9665 * frame.c (get_current_frame): Check target_has_registers before
9666 checking target_has_stack.
9667 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9668 instead of deprecated_selected_frame.
9669 * findvar.c (value_of_register): Pass "frame", not
9670 deprecated_selected_frame, to value_of_builtin_reg.
9671
a66a9c23
AC
96722003-03-12 Andrew Cagney <cagney@redhat.com>
9673
9674 * regcache.c (regcache_cooked_write_signed): New function.
9675 (regcache_cooked_write_unsigned): New function.
9676 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9677 (regcache_cooked_read_signed): Fix regnum in range assertion.
9678 * regcache.h (regcache_cooked_write_signed): Declare.
9679 (regcache_cooked_write_unsigned): Declare.
9680
8bedc050
AC
96812003-03-12 Andrew Cagney <cagney@redhat.com>
9682
9683 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9684 * gdbarch.h, gdbarch.c: Re-generate.
9685 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9686 * x86-64-tdep.h: Update.
9687 * x86-64-tdep.c (x86_64_init_abi): Update.
9688 * v850-tdep.c (v850_gdbarch_init): Update.
9689 * sparc-tdep.c (sparc_gdbarch_init): Update.
9690 * sh-tdep.c (sh_gdbarch_init): Update.
9691 * s390-tdep.c (s390_gdbarch_init): Update.
9692 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9693 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9694 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9695 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9696 * mips-tdep.c (mips_gdbarch_init): Update.
9697 * mcore-tdep.c (mcore_gdbarch_init): Update.
9698 * m68k-tdep.c (m68k_gdbarch_init): Update.
9699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9700 * ia64-tdep.c (ia64_gdbarch_init): Update.
9701 * i386-tdep.c (i386_gdbarch_init): Update.
9702 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9703 * hppa-tdep.c (hppa_gdbarch_init): Update.
9704 * h8300-tdep.c (h8300_gdbarch_init): Update.
9705 * frv-tdep.c (frv_gdbarch_init): Update.
9706 * cris-tdep.c (cris_gdbarch_init): Update.
9707 * avr-tdep.c (avr_gdbarch_init): Update.
9708 * arm-tdep.c (arm_gdbarch_init): Update.
9709 * alpha-tdep.c (alpha_gdbarch_init): Update.
9710 * sh-tdep.c (sh_init_extra_frame_info): Update.
9711 (sh64_init_extra_frame_info): Update.
9712 * ns32knbsd-nat.c (frame_num_args): Update.
9713 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9714 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9715 (xstormy16_frame_chain_valid): Update.
9716 * vax-tdep.c (vax_saved_pc_after_call): Update.
9717 * v850-tdep.c (v850_frame_chain): Update.
9718 (v850_pop_frame): Update.
9719 (v850_init_extra_frame_info): Update.
9720 * sparc-tdep.c (setup_arbitrary_frame): Update.
9721 * ns32k-tdep.c (umax_frame_num_args): Update.
9722 * s390-tdep.c (s390_pop_frame_regular): Update.
9723 * mn10300-tdep.c (mn10300_frame_chain): Update.
9724 (mn10300_pop_frame_regular): Update.
9725 (mn10300_init_extra_frame_info): Update.
9726 * mips-tdep.c (mips_init_frame_pc_first): Update.
9727 (mips_frame_chain): Update.
9728 (mips_pop_frame): Update.
9729 * mcore-tdep.c (mcore_frame_chain): Update.
9730 (mcore_pop_frame): Update.
9731 (mcore_init_extra_frame_info): Update.
9732 * arch-utils.c (init_frame_pc_default): Update.
9733 * m68k-tdep.c (isi_frame_num_args): Update.
9734 (delta68_frame_num_args): Update.
9735 (news_frame_num_args): Update.
9736 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9737 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9738 (alpha_frame_chain): Update.
9739 (alpha_pop_frame): Update.
9740 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9741 (hppa_init_extra_frame_info): Update.
9742 (hppa_frame_chain): Update.
9743 (hppa_frame_chain_valid): Update.
9744 * cris-tdep.c (cris_init_extra_frame_info): Update.
9745 * avr-tdep.c (avr_init_extra_frame_info): Update.
9746 * arm-tdep.c (arm_frame_chain_valid): Update.
9747 (arm_init_extra_frame_info): Update.
9748 (arm_pop_frame): Update.
9749 * frame.c (frame_pc_unwind): Update.
9750 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9751 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9752 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9753 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9754 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9755 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9756
7a25a7c1
AC
97572003-03-12 Andrew Cagney <cagney@redhat.com>
9758
9759 Eliminate the need for POP_FRAME.
9760 * frame.c (do_frame_unwind_register): New function.
9761 (frame_pop): When no POP_FRAME, pop the frame using register
9762 unwind and a scratch regcache.
9763 (frame_saved_regs_pop): Delete function.
9764 (trad_frame_unwinder): Update.
9765 * d10v-tdep.c (d10v_frame_pop): Delete function.
9766 (d10v_frame_unwind): Update.
9767 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9768 (sentinel_frame_unwinder): Update.
9769 * dummy-frame.c (dummy_frame_pop): Delete function.
9770 (dummy_frame_unwind): Update.
9771 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9772 (struct frame_unwind): Update.
9773
2f38ef89
KB
97742003-03-11 Kevin Buettner <kevinb@redhat.com>
9775
9776 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9777 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9778 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9779 Do range checks on register number obtained from debugging info.
9780 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9781 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9782 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9783 mapping function.
9784 (do_fp_register_row): Fix typo which caused double type to be
9785 used when attempting to unpack a float.
9786
552f4abf
JB
97872003-03-11 J. Brobecker <brobecker@gnat.com>
9788
9789 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9790
e0d2ae16
AC
97912003-03-11 Andrew Cagney <cagney@redhat.com>
9792
9793 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9794 frame. Problem found by Corinna Vinschen.
9795
ddbfdd06
PM
97962003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9797
9798 * doublest.c (floatformat_from_length): Accept also
9799 the real size of 'long double' type.
9800
088b2ddc 98012003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9802
088b2ddc 9803 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9804 * breakpoint.c (bpstat_copy): Copy the command lines as well
9805 as the old value, to match what is freed in bpstat_clear.
9806
f56f77c1
DC
98072003-03-10 David Carlton <carlton@math.stanford.edu>
9808
9809 * minsyms.c (add_minsym_to_hash_table): Replace
9810 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9811 (compare_minimal_symbols, compact_minimal_symbols)
9812 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9813 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9814 of DEPRECATED_SYMBOL_MATCHES_NAME.
9815 (lookup_minimal_symbol_solib_trampoline): Ditto.
9816
5602984a
AC
98172003-03-10 Andrew Cagney <cagney@redhat.com>
9818
9819 * regcache.h (regcache_cooked_read_ftype): Define.
9820 (regcache_save, regcache_restore): Add a cooked_read parameter.
9821 * regcache.c (regcache_save, regcache_restore): Update.
9822 (do_cooked_read): New function.
9823 (regcache_cpy): Pass do_cooked_read to regcache_save and
9824 regcache_restore.
9825
8bedc050
AC
98262003-03-10 Andrew Cagney <cagney@redhat.com>
9827
9828 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9829 * gdbarch.h, gdbarch.c: Re-generate.
9830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9831 * x86-64-tdep.h: Update.
9832 * x86-64-tdep.c (x86_64_init_abi): Update.
9833 * v850-tdep.c (v850_gdbarch_init): Update.
9834 * sparc-tdep.c (sparc_gdbarch_init): Update.
9835 * sh-tdep.c (sh_gdbarch_init): Update.
9836 * s390-tdep.c (s390_gdbarch_init): Update.
9837 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9838 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9839 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9840 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9841 * mips-tdep.c (mips_gdbarch_init): Update.
9842 * mcore-tdep.c (mcore_gdbarch_init): Update.
9843 * m68k-tdep.c (m68k_gdbarch_init): Update.
9844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9845 * ia64-tdep.c (ia64_gdbarch_init): Update.
9846 * i386-tdep.c (i386_gdbarch_init): Update.
9847 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9848 * hppa-tdep.c (hppa_gdbarch_init): Update.
9849 * h8300-tdep.c (h8300_gdbarch_init): Update.
9850 * frv-tdep.c (frv_gdbarch_init): Update.
9851 * cris-tdep.c (cris_gdbarch_init): Update.
9852 * avr-tdep.c (avr_gdbarch_init): Update.
9853 * arm-tdep.c (arm_gdbarch_init): Update.
9854 * alpha-tdep.c (alpha_gdbarch_init): Update.
9855 * sh-tdep.c (sh_init_extra_frame_info): Update.
9856 (sh64_init_extra_frame_info): Update.
9857 * ns32knbsd-nat.c (frame_num_args): Update.
9858 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9859 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9860 (xstormy16_frame_chain_valid): Update.
9861 * vax-tdep.c (vax_saved_pc_after_call): Update.
9862 * v850-tdep.c (v850_frame_chain): Update.
9863 (v850_pop_frame): Update.
9864 (v850_init_extra_frame_info): Update.
9865 * sparc-tdep.c (setup_arbitrary_frame): Update.
9866 * ns32k-tdep.c (umax_frame_num_args): Update.
9867 * s390-tdep.c (s390_pop_frame_regular): Update.
9868 * mn10300-tdep.c (mn10300_frame_chain): Update.
9869 (mn10300_pop_frame_regular): Update.
9870 (mn10300_init_extra_frame_info): Update.
9871 * mips-tdep.c (mips_init_frame_pc_first): Update.
9872 (mips_frame_chain): Update.
9873 (mips_pop_frame): Update.
9874 * mcore-tdep.c (mcore_frame_chain): Update.
9875 (mcore_pop_frame): Update.
9876 (mcore_init_extra_frame_info): Update.
9877 * arch-utils.c (init_frame_pc_default): Update.
9878 * m68k-tdep.c (isi_frame_num_args): Update.
9879 (delta68_frame_num_args): Update.
9880 (news_frame_num_args): Update.
9881 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9882 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9883 (alpha_frame_chain): Update.
9884 (alpha_pop_frame): Update.
9885 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9886 (hppa_init_extra_frame_info): Update.
9887 (hppa_frame_chain): Update.
9888 (hppa_frame_chain_valid): Update.
9889 * cris-tdep.c (cris_init_extra_frame_info): Update.
9890 * avr-tdep.c (avr_init_extra_frame_info): Update.
9891 * arm-tdep.c (arm_frame_chain_valid): Update.
9892 (arm_init_extra_frame_info): Update.
9893 (arm_pop_frame): Update.
9894 * frame.c (frame_pc_unwind): Update.
9895 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9896 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9897 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9898 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9899 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9900 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9901
12cc2063
AC
99022003-03-10 Andrew Cagney <cagney@redhat.com>
9903
9904 * gdbarch.sh (gdbarch_unwind_pc): New method.
9905 * gdbarch.h, gdbarch.c: Regenerate.
9906 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9907 but use read_pc and FRAME_SAVED_PC as fall backs.
9908 (frame_saved_regs_pc_unwind): Delete function.
9909 (trad_frame_unwinder): Update.
9910 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9911 (struct frame_unwind): Update.
9912 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9913 (dummy_frame_unwind): Update.
9914 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9915 (sentinel_frame_unwinder): Update.
9916 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9917 (d10v_frame_unwind): Update.
9918 (d10v_unwind_pc): New function.
9919 (d10v_gdbarch_init): Set unwind_pc.
9920
ef840a37
AC
99212003-03-10 Andrew Cagney <cagney@redhat.com>
9922
a2ce2e56
AC
9923 * gdbarch.h: Re-generate.
9924
ef840a37
AC
9925 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9926 PC.
9927 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9928 the PC register.
9929
08f3424b
MK
99302003-03-08 Mark Kettenis <kettenis@gnu.org>
9931
9932 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9933
1248ede2
AC
99342003-03-08 Andrew Cagney <cagney@redhat.com>
9935
9936 * cli-out.c: Update copyright.
9937 (cli_out_data): Define typedef. Use instead of ui_out_data.
9938
f49bacc8
AC
99392003-03-08 Andrew Cagney <cagney@redhat.com>
9940
9941 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9942 the result.
9943
9b05f993
AC
99442003-03-07 Andrew Cagney <cagney@redhat.com>
9945
9946 * gdbarch.sh: Don't generate two macro definitions when an
9947 undefined macro taking no arguments.
9948 * gdbarch.h: Regenerate.
8ffd9b1b 9949
166f4c7b
ML
99502002-03-07 Michal Ludvig <mludvig@suse.cz>
9951
9952 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9953 (x86_64_unwind_dummy_id): New functions.
9954 (x86_64_init_abi): Register these two new functions.
9955
6d686a84
ML
99562003-03-07 Michal Ludvig <mludvig@suse.cz>
9957
9958 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9959 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9960 separate function.
9961 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9962
6314f104
AC
99632003-03-05 Andrew Cagney <cagney@redhat.com>
9964
9965 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9966 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9967 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9968 to use unwind_dummy_id when a dummy frame.
9969 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9970 predicate.
9971 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9972
ceea5145
AC
99732003-03-05 Andrew Cagney <cagney@redhat.com>
9974
9975 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9976 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9977 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9978 values.
9979
0d843116
AC
99802003-03-05 Andrew Cagney <cagney@redhat.com>
9981
9982 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9983 (struct d10v_unwind_cache): Delete field "frameless". Replace
9984 "next_addr" with "sp_offset". Add "r11_offset".
9985 (d10v_frame_unwind_cache): Update.
9986 (prologue_find_regs): Update. When "mv r11, sp", save the
9987 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9988 RN was saved in r11_offset.
9989
b2579786
AC
99902003-03-05 Andrew Cagney <cagney@redhat.com>
9991
9992 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9993 cached PC value in the next frame.
9994
218e5956
AC
99952003-03-05 Andrew Cagney <cagney@redhat.com>
9996
9997 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9998 "id_unwind_cache" with "id".
9999 (frame_id_unwind): Delete declaration.
10000 * frame.c (frame_id_unwind): Delete function.
10001 (get_prev_frame): Call the frame id unwind method directly. Store
10002 the returned next frame's ID value in NEXT_FRAME. Note that there
10003 is a problem with the wrong unwind ID being called with the wrong
10004 unwind cache.
10005
ed363b1b
DJ
100062003-03-05 Daniel Jacobowitz <drow@mvista.com>
10007
10008 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10009
fe1f4a5e
DJ
100102003-03-05 James Ingham <jingham@apple.com>
10011 Daniel Jacobowitz <drow@mvista.com>
10012
10013 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10014 (auto_cp_abi): New variable.
10015 (current_cp_abi, num_cp_abis): Make static.
10016 (CP_ABI_MAX): Define.
10017 (cp_abis): Turn into an array.
10018 (value_virtual_fn_field): Fix formatting.
10019 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10020 takes a pointer.
10021 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10022 (list_cp_abis, _initialize_cp_abi): New functions.
10023 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10024 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10025 switch_to_cp_abi. Update prototype for register_cp_abi.
10026 * Makefile.in (cp-abi.o): Update dependencies.
10027 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10028 instead of switch_to_cp_abi.
10029 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10030 register_cp_abi.
10031 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10032 register_cp_abi.
10033 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10034
e4adbba9
DJ
100352003-03-05 Daniel Jacobowitz <drow@mvista.com>
10036
10037 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10038 * dwarf2loc.c: Include "regcache.h".
10039 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10040 register_size.
10041 * Makefile.in (dwarf2loc.o): Update dependencies.
10042
91ccbfc1
TR
100432003-03-04 Theodore A. Roth <troth@openavr.org>
10044
10045 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10046 number of io registers reported by remote target is not a multiple of
10047 step.
10048
3d4e8fd2
DC
100492003-03-04 David Carlton <carlton@math.stanford.edu>
10050
10051 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10052 (lookup_symbol_aux_psymtabs): Update call to
10053 lookup_partial_symbol.
10054 (lookup_transparent_type, find_main_psymtab)
10055 (make_symbol_overload_list): Ditto.
10056
ed42d87b
KH
100572003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10058
10059 * MAINTAINERS (Write after approval): Update my email address.
10060
a0ed5532
AC
100612003-03-03 Andrew Cagney <cagney@redhat.com>
10062
10063 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10064 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10065 predicate. Replace MAX_REGISTER_RAW_SIZE.
10066 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10067 MAX_REGISTER_VIRTUAL_SIZE.
10068 * regcache.c (legacy_max_register_raw_size): New function.
10069 (legacy_max_register_virtual_size): New function.
10070 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10071 (MAX_REGISTER_RAW_SIZE): Define.
10072 (legacy_max_register_raw_size): Declare.
10073 (legacy_max_register_virtual_size): Declare.
10074 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10075 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10076 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10077 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10078 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10079 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10080 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10081 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10082 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10084 * vax-tdep.c (vax_gdbarch_init): Update.
10085 * v850-tdep.c (v850_gdbarch_init): Update.
10086 * sparc-tdep.c (sparc_gdbarch_init): Update.
10087 * sh-tdep.c (sh_gdbarch_init): Update.
10088 * s390-tdep.c (s390_gdbarch_init): Update.
10089 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10090 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10091 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10092 * mips-tdep.c (mips_gdbarch_init): Update.
10093 * mcore-tdep.c (mcore_gdbarch_init): Update.
10094 * m68k-tdep.c (m68k_gdbarch_init): Update.
10095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10096 * ia64-tdep.c (ia64_gdbarch_init): Update.
10097 * i386-tdep.c (i386_gdbarch_init): Update.
10098 * hppa-tdep.c (hppa_gdbarch_init): Update.
10099 * h8300-tdep.c (h8300_gdbarch_init): Update.
10100 * frv-tdep.c (frv_gdbarch_init): Update.
10101 * cris-tdep.c (cris_gdbarch_init): Update.
10102 * avr-tdep.c (avr_gdbarch_init): Update.
10103 * arm-tdep.c (arm_gdbarch_init): Update.
10104 * alpha-tdep.c (alpha_gdbarch_init): Update.
10105 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10106 max_register_raw_size or max_register_virtual_size.
10107
8e437497
DC
101082003-03-03 David Carlton <carlton@math.stanford.edu>
10109
10110 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10111 SYMBOL_MATCHES_NAME, add comment.
10112 (SYMBOL_MATCHES_NATURAL_NAME): New.
10113 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10114 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10115 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10116 * symtab.c (lookup_partial_symbol): Use
10117 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10118 unhelpful comment.
10119 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10120 SYMBOL_MATCHES_NAME.
10121 Fix for PR c++/33.
10122
25120b0d
DC
101232003-03-03 David Carlton <carlton@math.stanford.edu>
10124
10125 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10126 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10127 by regexp matching against SYMBOL_NATURAL_NAME.
10128
78a11fb4
DC
101292003-03-03 David Carlton <carlton@math.stanford.edu>
10130
10131 * linespec.c (find_method): Extract code into collect_methods.
10132 (collect_methods): New.
10133
645dd519
MK
101342003-03-02 Mark Kettenis <kettenis@gnu.org>
10135
b4700d91
MK
10136 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10137 get_frame_base.
10138
645dd519
MK
10139 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10140 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10141
0aa7e1aa
SC
101422003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10143
8ffd9b1b 10144 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10145 and not regnum when summing the size of all registers up to regnum.
10146
f30ee0bc
AC
101472003-03-01 Andrew Cagney <cagney@redhat.com>
10148
10149 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10150 FRAME_INIT_SAVED_REGS.
10151 * gdbarch.h, gdbarch.c: Regenerate.
10152 * stack.c (frame_info): Update.
10153 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10154 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10155 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10156 * ns32k-tdep.c (ns32k_pop_frame): Update.
10157 * mips-tdep.c (mips_pop_frame): Update.
10158 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10159 * ia64-tdep.c (ia64_frame_chain): Update.
10160 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10161 (ia64_frameless_function_invocation): Update.
10162 (ia64_init_extra_frame_info): Update.
10163 (ia64_pop_frame_regular): Update.
10164 * frame.h (struct frame_info): Update comment.
10165 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10166 * frame.c (frame_saved_regs_register_unwind): Update.
10167 (frame_saved_regs_register_unwind): Update.
10168 (deprecated_generic_get_saved_register): Update.
10169 * cris-tdep.c: Update comment.
10170 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10171 Rename macro.
10172 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10173 * x86-64-tdep.c (x86_64_init_abi): Update.
10174 * vax-tdep.c (vax_gdbarch_init): Update.
10175 * v850-tdep.c (v850_gdbarch_init): Update.
10176 * sparc-tdep.c (sparc_gdbarch_init): Update.
10177 * sh-tdep.c (sh_gdbarch_init): Update.
10178 * s390-tdep.c (s390_gdbarch_init): Update.
10179 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10180 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10181 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10182 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10183 * mips-tdep.c (mips_gdbarch_init): Update.
10184 * mcore-tdep.c (mcore_gdbarch_init): Update.
10185 * m68k-tdep.c (m68k_gdbarch_init): Update.
10186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10187 * ia64-tdep.c (ia64_gdbarch_init): Update.
10188 * i386-tdep.c (i386_gdbarch_init): Update.
10189 * frv-tdep.c (frv_gdbarch_init): Update.
10190 * avr-tdep.c (avr_gdbarch_init): Update.
10191 * arm-tdep.c (arm_gdbarch_init): Update.
10192 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10193
42fa7c0f
AC
101942003-03-01 Andrew Cagney <cagney@redhat.com>
10195
10196 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10197 option enum and switch. When no windows, set the interpreter to
10198 INTERP_CONSOLE.
8ffd9b1b 10199
49c7e338
AC
102002003-03-01 Andrew Cagney <cagney@redhat.com>
10201
10202 * main.c (captured_main): Replace magic option characters with an
10203 enum.
10204
e9582e71
AC
102052003-03-01 Andrew Cagney <cagney@redhat.com>
10206
10207 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10208 INIT_EXTRA_FRAME_INFO.
10209 * gdbarch.h, gdbarch.c: Regenerate.
10210 * arm-tdep.c: Update comments.
10211 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10212 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10213 * frame.h, avr-tdep.c: Ditto.
10214 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10215 (create_new_frame, legacy_get_prev_frame): Ditto.
10216 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10217 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10218 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10219 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10220 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10221 * v850-tdep.c (v850_gdbarch_init): Ditto.
10222 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10223 * sh-tdep.c (sh_gdbarch_init): Ditto.
10224 * s390-tdep.c (s390_gdbarch_init): Ditto.
10225 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10226 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10227 * mips-tdep.c (mips_gdbarch_init): Ditto.
10228 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10229 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10230 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10231 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10232 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10233 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10234 * frv-tdep.c (frv_gdbarch_init): Ditto.
10235 * cris-tdep.c (cris_gdbarch_init): Ditto.
10236 * avr-tdep.c (avr_gdbarch_init): Ditto.
10237 * arm-tdep.c (arm_gdbarch_init): Ditto.
10238 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10239 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10240
35cac7cf
AC
102412003-03-01 Andrew Cagney <cagney@redhat.com>
10242
10243 * gdbarch.sh (register_type): New function with predicate.
10244 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10245 * gdbarch.h, gdbarch.c: Re-generate.
10246 * arch-utils.c (generic_register_byte): Use generic_register_size.
10247 (generic_register_size): When available, use
10248 gdbarch_register_type.
10249 * regcache.c (init_regcache_descr): When available, initialize the
10250 register type array using gdbarch_register_type. If the
10251 architecture supplies gdbarch_register_type, do not use the legacy
10252 regcache layout.
10253 * d10v-tdep.c (d10v_register_type): Replace
10254 d10v_register_virtual_type.
10255 (d10v_gdbarch_init): Set register_type instead of
10256 register_virtual_type.
10257
7b83296f
AC
102582003-03-01 Andrew Cagney <cagney@redhat.com>
10259
10260 * Makefile.in (ax-gdb.o): Update dependencies.
10261 * ax-gdb.c: Include "regcache.h".
10262 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10263 * findvar.c (value_of_register): Ditto.
10264 * infcmd.c (default_print_registers_info): Ditto.
10265
eadc1c87
MK
102662003-03-01 Mark Kettenis <kettenis@gnu.org>
10267
10268 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10269 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10270
14143612
MK
102712003-03-01 Mark Kettenis <kettenis@gnu.org>
10272
10273 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10274 of STREQ.
10275
a55cc764
DJ
102762003-02-28 Daniel Jacobowitz <drow@mvista.com>
10277
10278 * Makefile.in (dwarf2loc.o): Update dependencies.
10279 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10280 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10281 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10282 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10283 (locexpr_tracepoint_var_ref): New function.
10284 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10285
08a617da
AC
102862003-02-28 Andrew Cagney <cagney@redhat.com>
10287
10288 * regcache.c (register_size): New function.
10289 * regcache.h (register_size): Declare
10290 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10291 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10292
4224873a
DC
102932003-02-28 David Carlton <carlton@math.stanford.edu>
10294
10295 * linespec.c (decode_compound): Extract code into find_method.
10296 (find_method): New.
10297
ccdc5d7f
JB
102982003-02-28 J. Brobecker <brobecker@gnat.com>
10299
10300 * Makefile.in: Add rules to build and link in observer.o.
10301
974e8ced
JB
103022003-02-27 J. Brobecker <brobecker@gnat.com>
10303
10304 * observer.c: Minor comments edits.
10305
7a28f973
JB
103062003-02-27 J. Brobecker <brobecker@gnat.com>
10307
10308 * observer.h, observer.c: New file.
10309
27cddce2
AC
103102003-02-27 Andrew Cagney <cagney@redhat.com>
10311
10312 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10313
b94a41a1
SC
103142003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10315
10316 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10317 (M6812_OP_STS_EXT): Likewise.
10318 (m6811_prologue): Use the above to recognize prologue.
10319 (m6812_prologue): Likewise.
10320
c8be8951
DC
103212003-02-27 David Carlton <carlton@math.stanford.edu>
10322
10323 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10324 SYMBOL_PRINT_NAME.
10325 (compare_psymbols): Ditto.
10326 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10327
d05bb1fc
MS
103282003-02-27 Michael Snyder <msnyder@redhat.com>
10329
4e845cd3
MS
10330 * f-lang.c (build_fortran_types): New function.
10331 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10332 * doublest.c (extract_floating): Fix warning text.
10333
f3824013
AC
103342003-02-27 Andrew Cagney <cagney@redhat.com>
10335
10336 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10337 predicate. Replaces PUSH_DUMMY_FRAME.
10338 * gdbarch.h, gdbarch.c: Regnerate.
10339 * valops.c (hand_function_call): Update. Call
10340 generic_push_dummy_frame directly.
10341 * vax-tdep.c (vax_gdbarch_init): Update.
10342 * sparc-tdep.c (sparc_gdbarch_init): Update.
10343 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10344 * m68k-tdep.c (m68k_gdbarch_init): Update.
10345 * hppa-tdep.c (hppa_gdbarch_init): Update.
10346 * alpha-tdep.c (alpha_gdbarch_init): Update.
10347 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10348 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10349 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10351 push_dummy_frame to generic_push_dummy_frame.
10352 * v850-tdep.c (v850_gdbarch_init): Ditto.
10353 * sh-tdep.c (sh_gdbarch_init): Ditto.
10354 * s390-tdep.c (s390_gdbarch_init): Ditto.
10355 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10356 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10357 * mips-tdep.c (mips_gdbarch_init): Ditto.
10358 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10360 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10361 * i386-tdep.c (i386_gdbarch_init): Ditto.
10362 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10363 * frv-tdep.c (frv_gdbarch_init): Ditto.
10364 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10365 * cris-tdep.c (cris_gdbarch_init): Ditto.
10366 * avr-tdep.c (avr_gdbarch_init): Ditto.
10367 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10368
ad188201
KB
103692003-02-26 Kevin Buettner <kevinb@redhat.com>
10370
10371 * mips-tdep.c (show_mips_abi): New function.
10372 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10373 command ``show mips abi''.
10374
6b37567a 103752003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10376
6b37567a 10377 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10378 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10379 more sline entries have been seen for the function.
10380
d3e0a5bf
MC
103812003-02-26 Michael Chastain <mec@shout.net>
10382
10383 * configure: Regenerate with autoconf 000227.
10384
18972eea
MC
103852003-02-26 Michael Chastain <mec@shout.net>
10386
10387 Close PR build/660.
10388 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10389 for old libc5/glibc.
10390 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10391
0bbde931
KW
103922003-02-26 Kris Warkentin <kewarken@qnx.com>
10393
10394 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10395 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10396
27ca5dad
MC
103972003-02-26 Michael Chastain <mec@shout.net>
10398
10399 * configure.in: New variable HAVE_UINTPTR_T.
10400 * configure, config.in: Regenerated.
10401
6f88d630
DJ
104022003-02-26 Daniel Jacobowitz <drow@mvista.com>
10403
10404 Fix PR build/1097.
10405 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10406
b14185ce
AC
104072003-02-25 Andrew Cagney <cagney@redhat.com>
10408
10409 * frame.c (get_prev_frame): Add comment on check for
10410 inside_entry_func. Only check for inside_entry_file when not a
10411 dummy and not a sentinel. Check that the new frame is not inner
10412 to the old frame.
10413
ac2bd0a9
AC
104142003-02-25 Andrew Cagney <cagney@redhat.com>
10415
10416 * frame.c (frame_debug): New variable.
10417 (_initialize_frame): Add "set/show debug frame" command.
10418 (get_prev_frame): When frame_debug, print reason why unwind
10419 failed.
10420
b18a0fd2
MC
104212003-02-25 Michael Chastain <mec@shout.net>
10422
10423 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10424 to avoid uintptr_t definition problems.
10425
22abf04a
DC
104262003-02-25 David Carlton <carlton@math.stanford.edu>
10427
10428 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10429 (SYMBOL_LINKAGE_NAME): Ditto.
10430 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10431 SYMBOL_LINKAGE_NAME.
10432 (struct general_symbol_info): Expand comment.
10433 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10434 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10435 (SYMBOL_MATCHES_REGEXP): Ditto.
10436 * symtab.c (symbol_natural_name): New function.
10437 * objfiles.h: Replace all uses of SYMBOL_NAME by
10438 DEPRECATED_SYMBOL_NAME.
10439 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10440 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10441 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10442 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10443 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10444 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10445 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10446 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10447 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10448 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10449 * ada-exp.y: Ditto.
10450 * ada-exp.y: Update copyright.
10451 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10452 * cp-valprint.c: Ditto.
10453
1a5848f6
JJ
104542003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10455
10456 * infptrace.c (detach): Do not flag error if ptrace detach fails
10457 and errno is set to ESRCH.
10458
7343d46a
AC
104592003-02-24 Andrew Cagney <cagney@redhat.com>
10460
10461 * infptrace.c (udot_info): Change type of udot_off to long. Use
10462 paddr when printing udot_off's value.
10463
49fa1dc2
DC
104642003-02-24 David Carlton <carlton@math.stanford.edu>
10465
10466 * symtab.c (make_symbol_overload_list): Only read in partial
10467 symtabs containing a matching partial symbol.
10468
0fe19209
DC
104692003-02-24 David Carlton <carlton@math.stanford.edu>
10470
10471 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10472 do the comparison, not strcmp.
10473 * symfile.c (compare_psymbols): Ditto.
10474 * defs.h: Declare strcmp_iw_ordered.
10475 * utils.c (strcmp_iw_ordered): New function.
10476
8e3ee7b5
JB
104772003-02-24 Jim Blandy <jimb@redhat.com>
10478
10479 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10480 support, shared libs): Remove my name from here, to better reflect
10481 reality.
10482
7df1a324
KW
104832003-02-24 Kris Warkentin <kewarken@qnx.com>
10484
10485 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10486 (target_ops): Add to_have_continuable_watchpoint.
10487 * target.c (update_current_target): Add INHERIT line for
10488 to_have_continuable_watchpoint.
10489 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10490 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10491 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10492 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10493
d1c76907
EZ
104942003-02-24 Elena Zannoni <ezannoni@redhat.com>
10495
10496 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10497 maintainership.
10498
2610b0bf
KW
104992003-02-24 Kris Warkentin <kewarken@qnx.com>
10500
f46169db
KW
10501 * solib.c (solib_open): Call target defined search function after
10502 failing with solib-search-path.
10503 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10504 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10505
9a3c34fe
KW
105062003-02-24 Kris Warkentin <kewarken@qnx.com>
10507
f46169db 10508 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10509
2417dd25
SC
105102003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10511
10512 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10513
b631436b
SC
105142003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10515
10516 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10517 (m68hc11_add_reggroups): New function.
10518 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10519 (m68hc11_gdbarch_init): Install the reggroups.
10520 (_initialize_m68hc11_tdep): Initialize them.
10521
0aa8c1e4
JW
105222003-02-21 James E Wilson <wilson@tuliptree.org>
10523
10524 * MAINTAINERS: Update my email address.
10525
50ceaba5
DC
105262003-02-21 David Carlton <carlton@math.stanford.edu>
10527
10528 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10529
4c2df51b
DJ
105302003-02-21 Daniel Jacobowitz <drow@mvista.com>
10531
10532 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10533 * symtab.h: Add opaque declarations of struct axs_value and
10534 struct agent_expr.
10535 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10536 (struct location_funcs): New type.
10537 (struct symbol): Add "loc" to aux_value.
10538 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10539 * dwarf2read.c: Include "dwarf2expr.h".
10540 (dwarf2_symbol_mark_computed): New function.
10541 (read_func_scope): Use it.
10542 (var_decode_location): New function.
10543 (new_symbol): Use it.
10544 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10545
10546 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10547 (dwarf2expr_h, dwarf2loc_h): New variables.
10548 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10549 (dwarf2expr.o, dwarf2loc.o): New rules.
10550 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10551 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10552 LOC_COMPUTED_ARG.
10553 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10554 * m2-exp.y (yylex): Likewise.
10555 * printcmd.c (address_info, print_frame_args): Likewise.
10556 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10557 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10558 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10559 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10560 * symtab.c (lookup_block_symbol): Likewise.
10561
5784d15e
AF
105622003-02-20 Adam Fedor <fedor@gnu.org>
10563
10564 * symtab.h: Remove objc_specific struct
10565 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10566 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10567 Have language_objc use cplus_specific struct.
10568
d4cad8db
TT
105692003-02-20 Tom Tromey <tromey@redhat.com>
10570
10571 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10572 TYPE_NAME, when printing a String value. PR java/1075.
10573
2f9a90b4
AF
105742003-02-20 Adam Fedor <fedor@gnu.org>
10575
d38074a8 10576 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10577 * objc-lang.c (find_methods): Make static.
2f9a90b4 10578
6f17862b
CF
105792003-02-20 Christopher Faylor <cgf@redhat.com>
10580
10581 * win32-nat.c (get_image_name): Check return value from
10582 ReadProcessMemory.
10583 (child_xfer_memory): Ditto.
10584
715d1656
AO
105852003-02-20 Alexandre Oliva <aoliva@redhat.com>
10586
10587 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10588 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10589 '${exec_prefix}' (in addition to the expansion thereof) as
10590 relocatable.
10591 * configure: Rebuilt.
10592
b1262a02
DC
105932003-02-20 David Carlton <carlton@math.stanford.edu>
10594
10595 * symtab.c (search_symbols): Revert the search_symbols part of my
10596 2002-12-23 patch. Add comment.
10597
7134143f
DJ
105982002-02-20 Daniel Jacobowitz <drow@mvista.com>
10599
10600 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10601 * dbxread.c (elfstab_build_psymtabs): Don't call
10602 install_minimal_symbols.
10603 (stabsect_build_psymtabs): Likewise.
10604 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10605 earlier.
10606 * somread.c (som_symfile_read): Call install_minimal_symbols
10607 and do_cleanups earlier.
10608 * nlmread.c (nlm_symfile_read): Likewise.
10609 * mdebugread.c (elfmdebug_build_psymtabs): Call
10610 install_minimal_symbols and make appropriate cleanups.
10611
cf466558
KB
106122003-02-20 Kevin Buettner <kevinb@redhat.com>
10613
10614 * solib.c (reload_shared_libraries): New function.
10615 (_initialize_solib): Add callbacks for ``set solib-search-path''
10616 and ``set solib-absolute-prefix''.
10617
de5ad195
DC
106182003-02-20 David Carlton <carlton@math.stanford.edu>
10619
10620 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10621 expand comment.
10622 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10623 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10624 * ada-typeprint.c (ada_typedef_print): Ditto.
10625 * ax-gdb.c (gen_var_ref): Ditto.
10626 * breakpoint.c (print_one_breakpoint): Ditto.
10627 * buildsym.c (finish_block): Ditto.
10628 * c-valprint.c (c_val_print): Ditto.
10629 * expprint.c (print_subexp): Ditto.
10630 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10631 * infcmd.c (jump_command): Ditto.
10632 * linespec.c (decode_line_2, decode_compound): Ditto.
10633 * maint.c (maintenance_translate_address): Ditto.
10634 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10635 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10636 Ditto.
8ffd9b1b
AJ
10637 * p-valprint.c (pascal_val_print): Ditto.
10638 * stabsread.c (define_symbol): Ditto.
de5ad195 10639 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10640 (print_frame_arg_vars, return_command): Ditto.
10641 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10642 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10643 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10644 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10645 (rbreak_command): Ditto.
10646 * tracepoint.c (tracepoints_info): Ditto.
10647 * typeprint.c (typedef_print): Ditto.
10648 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10649 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10650 * ada-typeprint.c: Update Copyright.
10651 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10652 * tracepoint.c, cli/cli-cmds.c: Ditto.
10653
f796e4be
KB
106542003-02-20 Kevin Buettner <kevinb@redhat.com>
10655
10656 * frame.c (generic_unwind_get_saved_register): Make non-static.
10657 * frame.h (generic_unwind_get_saved_register): Declare.
10658 * mips-tdep.c (read_next_frame_reg): Fetch register from
10659 current regcache when frame is NULL.
10660 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10661 that must be NULL.
10662 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10663 instead of frame_register_unwind().
10664
836cc9f4
AC
106652003-02-20 Andrew Cagney <ac131313@redhat.com>
10666
10667 * remote-sim.c (gdbsim_insert_breakpoint)
10668 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10669 code.
10670
501eef12
AC
106712003-02-20 Andrew Cagney <ac131313@redhat.com>
10672
10673 * remote.c (_initialize_remote): Add commands "set/show remote
10674 hardware-watchpoint-limit" and "set/show remote
10675 hardware-breakpoint-limit".
10676 (remote_hw_watchpoint_limit): Initialize to -1.
10677 (remote_hw_breakpoint_limit): Ditto.
10678 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10679
1b6bc7e0
CF
106802003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10681
10682 * coff-pe-read.c: New file - support reading of minimal symbols from a
10683 portable executable using the export table.
10684 * coff-pe-read.h: New file.
10685 * coffread.c: Include coff-pe-read.h.
10686 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10687 debugging symbols found.
10688 * Makefile.in (SFILES): Add coff-pe-read.o.
10689 (coff_pe_read_h): Define.
10690 (COMMON_OBS): Add coff-pe-read.o.
10691 (coffread.o): Add coff_pe_read_h dependency.
10692 (coff-pe-read.o): New target.
10693
fe898f56
DC
106942003-02-19 David Carlton <carlton@math.stanford.edu>
10695
10696 * Makefile.in (SFILES): Add block.c.
10697 (block_h): New.
10698 (COMMON_OBS): Add block.o.
10699 (block.o): New.
10700 (x86-64-tdep.o): Add $(block_h).
10701 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10702 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10703 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10704 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10705 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10706 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10707 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10708 * value.h: Add opaque declaration for struct block.
10709 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10710 * ada-lang.h: Ditto.
10711 * x86-64-tdep.c: #include "block.h"
10712 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10713 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10714 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10715 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10716 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10717 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10718 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10719 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10720 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10721 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10722 * symtab.c (block_function): Ditto.
10723 (contained_in): Ditto.
10724 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10725 block.h. Add opaque declaration for struct block.
10726 * symtab.h: Move block_function and contained_in declarations to
10727 block.h. Add opaque declarations for struct block, struct
10728 blockvector.
10729 (struct block): Move to block.h.
10730 (struct blockvector): Ditto.
10731 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10732 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10733 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10734 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10735 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10736 Ditto.
10737 * block.c: New file.
10738 * block.h: New file.
10739
173345b5
TR
107402003-02-19 Theodore A. Roth <troth@openavr.org>
10741
10742 * avr-tdep.c (avr_extract_return_value): Remove function.
10743 (avr_store_return_value): Remove function.
10744 (avr_extract_struct_value_address): Remove function.
10745 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10746
338ef23d
AC
107472003-02-19 Andrew Cagney <ac131313@redhat.com>
10748
10749 * rs6000-tdep.c: Include "gdb_assert.h".
10750 (registers_e500): Add "acc" and "spefscr".
10751 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10752 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10753 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10754 really is "r0".
10755 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10756
5412f5f3
KS
107572003-02-18 Keith Seitz <keiths@redhat.com>
10758
10759 * Makefile.in: Add gdbtk-interps.c.
10760
881324eb
KB
107612003-02-18 Kevin Buettner <kevinb@redhat.com>
10762
10763 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10764 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10765
6a2f5abf
AC
107662003-02-18 Andrew Cagney <cagney@redhat.com>
10767
10768 * symtab.h (struct objfile): Add opaque declaration.
10769
54c7009d
EZ
107702003-02-18 Elena Zannoni <ezannoni@redhat.com>
10771
10772 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10773 * dbxread.c (process_one_symbol): Use last_function_start rather
10774 than function_start_offset to find the real beginning of the
10775 current function. The latter is just the text section offset on
10776 some systems, the former is always the real function start.
54c7009d 10777
7ee6d7eb
AC
107782003-02-17 Andrew Cagney <cagney@redhat.com>
10779
10780 * configure.in: Revert ${target} != ${host}.
10781
2846da9b
AC
107822003-02-17 Andrew Cagney <ac131313@redhat.com>
10783
10784 * configure.in (Makefile): Use the test ${target} != ${host},
10785 instead of the absence of the "nm.h" file, to determine of the
10786 configuration non-native.
10787 * configure: Regenerate.
8ffd9b1b 10788
3b27aeea
EZ
107892003-02-14 Elena Zannoni <ezannoni@redhat.com>
10790
fbe586ae 10791 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10792
10793 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10794 conditionalize tui_active test.
10795 (lookup_cmd_1): Ditto.
10796
b0b1c2c0
MK
107972003-02-14 Mark Kettenis <kettenis@gnu.org>
10798
10799 * configure.in: Add check for _etext.
10800 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10801 available.
10802 * config.in, configure: regenerated.
10803
8f05cde5
DJ
108042003-02-14 Daniel Jacobowitz <drow@mvista.com>
10805
10806 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10807
021e7609
AC
108082003-02-14 Andrew Cagney <ac131313@redhat.com>
10809
10810 * main.c (tui_version): Delete variable.
10811 (captured_main): When --tui, set interpreter_p to "tui" instead of
10812 enabling tui_version.
10813 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10814 tui_version.
10815 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10816 * cli/cli-cmds.c (disassemble_command): Ditto.
10817 * defs.h (tui_version): Delete declaration.
10818 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10819 (tui-interp.o): Add rules.
10820 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10821
e325dcec
CF
108222003-02-14 Christopher Faylor <cgf@redhat.com>
10823
36ffb041 10824 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10825 just-loaded dll.
10826
c4f90d87
JM
108272003-02-12 Jason Molenda (jmolenda@apple.com)
10828
fbe586ae
RH
10829 * symmisc.c (print_objfile_statistics): Include information about
10830 the number of psymtabs and symtabs in each object file.
c4f90d87 10831
e46e5ccd
KS
108322003-02-13 Keith R Seitz <keiths@redhat.com>
10833
10834 * main.h (struct captured_main_args): Add interpreter_p.
10835 * main.c (captured_main): Initialize interpreter_p from context.
10836 * gdb.c (main): Set interpreter_p argument.
10837 * Makefile.in (gdb.o): Add dependency for interps.h.
10838
fe97fe9c
AC
108392003-02-12 Andrew Cagney <ac131313@redhat.com>
10840
10841 * event-top.c (cli_command_loop): Delete declaration.
10842 (_initialize_event_loop): Delete function setting event_loop_hook.
10843 * event-top.h (cli_command_loop): Declare. Update copyright.
10844 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10845 * interps.c (current_interp_command_loop): When event_loop_p, call
10846 cli_command_loop.
10847
1cdac4ef
AC
108482003-02-12 Andrew Cagney <ac131313@redhat.com>
10849
10850 * interps.h (interp_command_loop_ftype): Change return type to
10851 void.
10852
48037ead
ML
108532003-02-12 Michal Ludvig <mludvig@suse.cz>
10854
10855 * x86-64-tdep.c (x86_64_extract_return_value)
10856 (x86_64_store_return_value): Use regcache instead of regbuf.
10857 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10858 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10859
033afc63
AC
108602003-02-11 Andrew Cagney <ac131313@redhat.com>
10861
10862 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10863 * aclocal.m4: Regenerate.
10864 * configure: Regenerate.
10865
10866 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10867 TCL_LD_SEARCH_FLAGS.
10868
40d02bca
ML
108692003-02-10 Michal Ludvig <mludvig@suse.cz>
10870
10871 * dwarf2cfi.c: Reindented.
10872
11308a41
AC
108732003-02-09 Andrew Cagney <ac131313@redhat.com>
10874
10875 * interps.c (clear_interpreter_hooks): Convert function definition
10876 to ISO C.
10877
e1c1c0f6
DC
108782003-02-07 David Carlton <carlton@math.stanford.edu>
10879
10880 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10881
ab5d3da6
KB
108822003-02-07 Kevin Buettner <kevinb@redhat.com>
10883
10884 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10885 (struct type): ...to here.
10886 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10887 field.
10888 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10889 (replace_type): Set length on all type variants for a given type.
10890
b8a92b82
AC
108912003-02-07 Andrew Cagney <ac131313@redhat.com>
10892
10893 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10894 <sys/stat.h>.
10895 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10896
5cb316ef
AC
108972003-02-06 Andrew Cagney <ac131313@redhat.com>
10898
2555fe1a
AC
10899 * Makefile.in (symm-nat.o): Update dependencies.
10900 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10901 (lynx-nat.o, ia64-linux-nat.): Ditto.
10902 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10903 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10904 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10905
44270758
AC
10906 * Makefile.in (inflow_h): Define.
10907 (procfs.o, inflow.o, procfs.o): Update dependencies.
10908 * inftarg.c (child_stop): Delete extern declaration of
10909 inferior_process_group. Include "inflow.h".
10910 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10911 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10912 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10913 (our_process_group, inferior_process_group): Extern declarations.
10914
df8f7274
AC
10915 * procfs.c: Include "gdb_assert.h".
10916
5cb316ef
AC
10917 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10918 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10919 * jv-typeprint.c (java_type_print_base): Ditto.
10920 * typeprint.c (typedef_print): Eliminate STREQ.
10921 * cli/cli-script.c (define_command, define_command): Ditto.
10922 * main.c (captured_main): Ditto.
10923 * values.c (lookup_internalvar): Ditto.
10924 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10925 within `if' conditional.
10926 * linespec.c (decode_line_2): Ditto.
10927 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10928 (bfd_openw_with_cleanup): Ditto.
10929
2a28ccea
MK
109302003-02-07 Mark Kettenis <kettenis@gnu.org>
10931
10932 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10933 legacy_extract_return_value and store_return_value to
10934 legacy_return_value.
10935
786b8124
CF
109362003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10937
10938 * win32-nat.c (get_relocated_section_addrs): New function. Find
10939 section load addresses for symbol handling in relocated DLLs.
10940 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10941
b871e4ec
FF
109422003-02-05 Fred Fish <fnf@intrinsity.com>
10943
10944 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10945 '=' and '!='.
10946 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10947 with '&' and '=='.
10948 (angel_RDI_info): Ditto.
10949 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10950 with '&' and '!='.
10951 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10952
4389a95a 109532003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10954 Keith Seitz <keiths@redhat.com>
10955 Elena Zannoni <ezannoni@redhat.com>
10956 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10957
10958 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10959 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10960 (SUBDIR_MI_OBS): Add "mi-interp.o".
10961 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10962 (SFILES): Add "interps.c".
10963 (COMMON_OBS): Add "interps.o".
10964 (interps_h, mi_main_h): Define.
10965 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10966 (mi-main.o, main.o, event-top.o): Update dependencies.
10967 * cli/cli-interp.c: New file.
10968 * interps.h, interps.c: New files.
10969 * top.c: (gdb_init): Don't install the default interpreter, handed
10970 by captured_main.
10971 * main.c: Include "interps.h".
10972 (interpreter_p): Note that it should malloc'ed.
10973 (captured_command_loop): Call current_interp_command_loop.
10974 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10975 xfree and xstrdup when updating interpreter_p. Install the
10976 default interpreter. Add hack to stop mi1's copyright notice
10977 being encoded.
10978 * event-top.h (gdb_setup_readline): Declare.
10979 (gdb_disable_readline): Declare.
10980 * event-top.c: Include "interps.h".
10981 (display_gdb_prompt): Call current_interp_display_prompt_p.
10982 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10983 gdb_stdlog, and gdb_stdtarg.
10984 (_initialize_event_loop): Don't call gdb_setup_readline.
10985 * cli-out.c (cli_out_set_stream): New function.
10986 * cli-out.h (cli_out_set_stream): Declare.
10987
ff3b5810
MK
109882003-02-06 Mark Kettenis <kettenis@gnu.org>
10989
10990 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10991 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10992 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10993 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10994 config/i386/i386v42mp.mt: Removed.
10995
5b729aa5
MK
109962003-02-05 Mark Kettenis <kettenis@gnu.org>
10997
10998 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10999 GDB_OSABI_SOLARIS.
11000
8cc15142
MC
110012003-02-05 Michael Chastain <mec@shout.net>
11002
11003 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11004 2.12.1 and earlier versions.
11005
5aa5d4b9
AC
110062003-02-05 Andrew Cagney <ac131313@redhat.com>
11007
11008 Remove orphaned hosts, targets and files.
11009 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11010 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11011 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11012 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11013 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11014 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11015 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11016 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11017 * config/sparc/tm-sp64sim.h: Delete.
11018 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11019 hosts.
11020 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11021 mips*-dec-mach3* targets.
11022
b68767c1
MC
110232003-02-04 Michael Chastain <mec@shout.net>
11024
11025 * NEWS: Fix typo: sepcifying -> specifying.
11026
5ae7ca1d
MC
110272003-02-04 Michael Chastain <mec@shout.net>
11028
11029 * dwarfread.c: Add documentation on the state of dwarf-1,
11030 looking towards obsoletion.
11031
d08a4280
MC
110322003-02-03 Michael Chastain <mec@shout.net>
11033
11034 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11035 gdb/testsuite/gdb.c++/pr-1023.exp.
11036
e9be73e4
AC
110372003-02-04 Andrew Cagney <ac131313@redhat.com>
11038
11039 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11040 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11041
11042 * utils.c (init_page_info): Delete reference to MPW in comments.
11043 * main.c (captured_main): Delete #ifdef MPW.
11044
05d57f6f
AC
110452003-02-04 Andrew Cagney <ac131313@redhat.com>
11046
8ffd9b1b 11047 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11048 * monitor.c (monitor_expect): Obsolete reference to m32r.
11049 * configure.tgt: Mark m32r-*-elf* as obsolete.
11050 * MAINTAINERS: Mark m32k as obsolete.
11051 * m32r-rom.c: Obsolete file.
11052 * config/m32r/m32r.mt: Obsolete file.
11053 * config/m32r/tm-m32r.h: Obsolete file.
11054 * m32r-stub.c: Obsolete file.
11055 * m32r-tdep.c: Obsolete file.
11056
8b0e5691
AC
110572003-02-04 Andrew Cagney <ac131313@redhat.com>
11058
11059 * NEWS: Mention that the z8k-zilog-none is obsolete.
11060 * MAINTAINERS: Mark z8k as obsolete.
11061 * configure.tgt: Obsolete the z8k-*-coff* target.
11062 * config/z8k/z8k.mt: Obsolete file.
11063 * config/z8k/tm-z8k.h: Obsolete file.
11064 * z8k-tdep.c: Obsolete file.
11065
67f16606
AC
110662003-02-04 Andrew Cagney <ac131313@redhat.com>
11067
11068 * NEWS: Mention that the mn10200-elf is obsolete.
11069 * configure.tgt: Obsolete mn10200-*-* target.
11070 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11071 mention that the mn10200 is obsolete.
11072 * breakpoint.h: Ditto.
11073 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11074 * config/mn10200/mn10200.mt: Obsolete file.
11075 * config/mn10200/tm-mn10200.h: Obsolete file.
11076 * mn10200-tdep.c: Obsolete file.
11077
fd2299bd
AC
110782003-02-04 Andrew Cagney <ac131313@redhat.com>
11079
11080 * MAINTAINERS: Mark h8500 as obsolete.
11081 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11082 * findvar.c (value_from_register): Ditto.
11083 * h8500-tdep.c: Mark file as obsolete.
11084 * config/h8500/h8500.mt: Ditto.
11085 * config/h8500/tm-h8500.h: Ditto.
11086 * NEWS: Mention that h8500 is obsolete.
11087
eb9a305d
DC
110882003-02-04 David Carlton <carlton@math.stanford.edu>
11089
11090 * objfiles.c (allocate_objfile): Always set name. Add comment at
11091 start of function.
11092 * jv-lang.c (get_dynamics_objfile): Add comment.
11093
406fc7fb
DC
110942003-02-04 David Carlton <carlton@math.stanford.edu>
11095
11096 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11097 * printcmd.c (build_address_symbolic): Replace uses of
11098 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11099 SYMBOL_NAME, and asm_demangle.
11100 Update copyright.
11101
93d91629
DC
111022003-02-04 David Carlton <carlton@math.stanford.edu>
11103
11104 * linespec.c (decode_compound): Extract code into
11105 lookup_prefix_sym.
11106 (lookup_prefix_sym): New function.
11107
1c5cb38e
DC
111082003-02-04 David Carlton <carlton@math.stanford.edu>
11109
11110 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11111 FLOAT_COERCION_BADNESS.
11112 * gdbtypes.c (rank_one_type): Replace all uses of
11113 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11114
0cf824c9
JB
111152003-02-04 Jim Blandy <jimb@redhat.com>
11116
11117 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11118 section, let dwarf_macinfo_section point to it, not
11119 dwarf_loc_section.
11120
a2d356b0
DJ
111212003-02-04 Daniel Jacobowitz <drow@mvista.com>
11122
11123 Pointed out by Anton Blanchard <anton@samba.org>.
11124 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11125 (ppc_linux_at_sigtramp_return_path): Use it.
11126
2de7ced7
DJ
111272003-02-04 Daniel Jacobowitz <drow@mvista.com>
11128
11129 * defs.h (streq): Add prototype.
11130 * utils.c (streq): New function.
11131
11132 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11133 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11134 * mdebugread.c (new_symbol): Likewise.
11135 * stabsread.c (define_symbol): Likewise.
11136 * coffread.c (process_coff_symbol): Likewise.
11137 * dwarfread.c (new_symbol): Likewise.
11138
11139 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11140 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11141 here.
11142 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11143 SYMBOL_INIT_DEMANGLED_NAME.
11144 * objfiles.c: Include "hashtab.h".
11145 (allocate_objfile): Call htab_set_functions_ex for the
11146 demangled_names_hash.
11147 (free_objfile): Call htab_delete for the demangled_names_hash.
11148 * objfiles.h (struct htab): Add declaration.
11149 (struct objfile): Add demangled_names_hash.
11150 * symfile.c: Include "hashtab.h".
11151 (reread_symbols): Call htab_delete for the demangled_names_hash.
11152 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11153 SYMBOL_NAME in the bcache.
11154 * symtab.c: Include "hashtab.h". Update comments.
11155 (create_demangled_names_hash, symbol_set_names): New functions.
11156 (symbol_find_demangled_name): New function, broken out from
11157 symbol_init_demangled_names.
11158 (symbol_init_demangled_names): Use it.
11159 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11160 (SYMBOL_SET_NAMES): New macro.
11161 (symbol_set_names): Add prototype.
11162
15831452
JB
111632003-02-03 Jim Blandy <jimb@redhat.com>
11164
11165 Use a single, consistent representation for an empty minimal
11166 symbol table in an objfile.
11167 * objfiles.c (terminate_minimal_symbol_table): New function.
11168 (allocate_objfile): Call it.
11169 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11170 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11171 non-NULL.
15831452
JB
11172 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11173 objfile has minimal symbols, compare minimal_symbol_count to zero,
11174 instead of comparing msymbols with NULL.
11175 * objfiles.c (have_minimal_symbols): Same.
11176 * solib-sunos.c (solib_add_common_symbols): Call
11177 terminate_minimal_symbol_table.
11178 * symfile.c (reread_symbols): Same.
8ffd9b1b 11179
ffc65945
KB
111802003-02-03 Kevin Buettner <kevinb@redhat.com>
11181
11182 * s390-tdep.c (s390_address_class_type_flags)
11183 (s390_address_class_type_flags_to_name)
11184 (s390_address_class_name_to_type_flags): New functions.
11185 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11186 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11187
f211c6d4
MS
111882003-02-03 Michael Snyder <msnyder@redhat.com>
11189
11190 * arm-tdep.c: Fix spell-o in comment.
11191
659b0389
ML
111922003-02-03 Michal Ludvig <mludvig@suse.cz>
11193
11194 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11195 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11196 error messages to contain BFD filename.
659b0389 11197
3b31d625
EZ
111982003-02-02 Elena Zannoni <ezannoni@redhat.com>
11199
997b089a 11200 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11201 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11202 (do_mixed_source_and_assembly): Use
11203 make_cleanup_ui_out_tuple_begin_end and
11204 make_cleanup_ui_out_tuple_begin_end.
11205 (do_mixed_source_and_assembly): Ditto.
11206 * thread.c (do_captured_list_thread_ids): Ditto.
11207 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11208 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11209 ui_out_tuple_end): Delete prototypes.
11210 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11211 ui_out_list_end, ui_out_tuple_end): Delete.
11212
11213 From Kevin Buettner <kevinb@redhat.com>:
11214 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11215 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11216 (do_cleanup_table_end): New functions.
11217 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11218 Use cleanups to invoke_ui_out_tuple_end().
11219 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11220 * cli/cli-setshow.c (cmd_show_list): Use
11221 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11222
5b181d62
AC
112232003-02-02 Andrew Cagney <ac131313@redhat.com>
11224
11225 * frame.c (frame_unwind_register): New function.
11226 (frame_unwind_unsigned_register): Use.
11227 (frame_unwind_signed_register): Use.
11228 (frame_read_register): New function.
11229 * frame.h (frame_unwind_register): Declare.
11230 (frame_read_register): Declare.
11231
11232 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11233 and frame_unwind_register instead of read_memory, write_register
11234 and deprecated_write_register_bytes.
11235
5f601589
AC
112362003-02-02 Andrew Cagney <ac131313@redhat.com>
11237
11238 * frame.h: Note that namelen can be negative.
11239 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11240 NAME's length.
11241
11242 * NEWS: Mention that the d10v's `regs' command is deprecated.
11243 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11244 (d10v_print_registers_info): New function.
11245 (show_regs): Call d10v_print_registers_info.
11246 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11247
6a3fe0a4
MK
112482003-02-02 Mark Kettenis <kettenis@gnu.org>
11249
11250 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11251 lost in the previous patch.
11252
075559bc
AC
112532003-02-01 Andrew Cagney <ac131313@redhat.com>
11254
11255 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11256 * stack.c (print_frame_info_base): Output complete FRAME tuple
11257 for synthesized frames.
075559bc 11258
6789195b
AC
112592003-02-02 Andrew Cagney <ac131313@redhat.com>
11260
11261 * mips-nat.c (zerobuf): Delete.
11262 (fetch_inferior_registers): Alloc local zerobuf.
11263 (fetch_core_registers): Alloc local zerobuf.
11264 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11265 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11266 * thread-db.c (thread_db_store_registers): Ditto.
11267 * sh-tdep.c (sh_do_register): Ditto.
11268 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11269 * remote-sim.c (gdbsim_store_register): Ditto.
11270 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11271 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11272 * monitor.c (monitor_supply_register): Ditto.
11273 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11274 * mips-nat.c (fetch_inferior_registers): Ditto.
11275 * m68klinux-nat.c (fetch_register): Ditto.
11276 * lynx-nat.c (fetch_inferior_registers): Ditto.
11277 (fetch_inferior_registers): Ditto.
11278 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11279 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11280 (hpux_thread_store_registers): Ditto.
11281 * hppah-nat.c (fetch_register): Ditto.
11282 * hppab-nat.c (fetch_register): Ditto.
11283 * hppa-tdep.c (pa_register_look_aside): Ditto.
11284 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11285 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11286
e669114a
AC
112872003-02-01 Andrew Cagney <ac131313@redhat.com>
11288
11289 * gdbarch.sh: Explictly specify all method levels. When a
11290 variable with an empty level, provide a non-multi-arch default.
11291 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11292 * gdbarch.h: Re-generate.
11293 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11294 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11295
9a043c1d
AC
112962003-02-01 Andrew Cagney <ac131313@redhat.com>
11297
11298 * defs.h (host_pointer_to_address): Delete declaration.
11299 (address_to_host_pointer): Delete declaration.
11300 * utils.c (host_pointer_to_address): Delete function.
11301 (address_to_host_pointer): Delete function.
11302 * procfs.c (procfs_address_to_host_pointer): New function.
11303 * procfs.c (proc_set_watchpoint): Use.
11304 (procfs_can_use_hw_breakpoint): Update comments.
11305 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11306 (som_solib_add): Use.
11307 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11308 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11309
7ca9f392
AC
113102003-02-01 Andrew Cagney <ac131313@redhat.com>
11311
94bbfd30
AC
11312 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11313 strlen d_name.
11314
7ca9f392
AC
11315 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11316 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11317 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11318 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11319 (define_symbol): Update.
11320 * symfile.c (generic_load): Remove references to nindy.
11321 * symtab.c: Remove references to nindy.
11322
31a85ea2
AC
113232003-02-01 Andrew Cagney <ac131313@redhat.com>
11324
11325 * infcmd.c (print_float_info): Delete code conditional on
11326 FLOAT_INFO.
11327 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11328 * config/m68k/nm-apollo68b.h: Ditto.
11329 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11330 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11331 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11332
f6e85fc8
MK
113332003-02-01 Mark Kettenis <kettenis@gnu.org>
11334
6015b6a0
MK
11335 * config/i386/tm-i386os9k.h: Removed.
11336
f7a30bdf
MK
11337 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11338 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11339 they're identical to i[3456]86-*-sysv* now.
11340 * config/i386/i386v32.mh: Removed.
11341 * config/i386/xm-i386v32.h: Removed.
11342 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11343
28d52111
MK
11344 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11345
4d3f6bce
MK
11346 * config/i386/i386dgux.mh: Removed.
11347 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11348
f6e85fc8
MK
11349 * configure.in: Fix typo.
11350 * configure: Regenerated.
11351
53955967
DC
113522003-01-31 David Carlton <carlton@math.stanford.edu>
11353
11354 * dwarf2read.c (dwarf2_locate_sections): Set
11355 dwarf_ranges_section.
11356
b1364885
AC
113572003-01-31 Andrew Cagney <ac131313@redhat.com>
11358
8dbb1c65
AC
11359 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11360 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11361
8731e58e
AC
11362 * utils.c: Re-indent.
11363
b1364885
AC
11364 * config/djgpp/fnchange.lst: Delete nindy files.
11365 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11366 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11367 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11368 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11369 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11370 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11371 * Makefile.in (init.c): Remove nindy references.
11372 (saber_gdb): Delete rule.
11373 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11374 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11375 and a68v-nat.c.
11376 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11377 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11378 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11379 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11380 nindy-share/stop.h.
11381 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11382 * saber.suppress: Delete file.
11383
086df311
DJ
113842003-01-31 Daniel Jacobowitz <drow@mvista.com>
11385
11386 * dbxread.c (stabs_data): New static variable.
11387 (fill_symbuf): Support an in-memory buffer for stabs data.
11388 (stabs_seek): New function.
11389 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11390 (read_ofile_symtab): Use stabs_seek.
11391 (elfstab_build_psymtabs): Take an asection* instead of
11392 an offset and size. Relocate the stabs data if necessary.
11393 Save the section* for dbx_psymtab_to_symtab.
11394 * dwarf2read.c: Add section variables for each debug section.
11395 (dwarf2_locate_sections): Fill them in.
11396 (dwarf2_read_section): Take an asection* argument.
11397 Relocate the section contents if necessary.
11398 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11399 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11400 it to dwarf2_read_section.
11401 (dwarf2_build_frame_info): Update callers.
11402 * elfread.c (elf_symfile_read): Update call to
11403 elfstab_build_psymtabs.
11404 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11405 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11406 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11407 * symfile.c (symfile_dummy_outputs): New function.
11408 (symfile_relocate_debug_section): New function.
11409 * symfile.h (symfile_relocate_debug_section): Add prototype.
11410
87d1b352
RH
114112003-01-31 Richard Henderson <rth@redhat.com>
11412
11413 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11414 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11415 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11416 * alpha-tdep.c (alpha_register_name): Add "unique".
11417 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11418 (ALPHA_UNIQUE_REGNUM): New.
11419 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11420
c48861fb
AC
114212003-01-31 Andrew Cagney <ac131313@redhat.com>
11422
11423 * README: Remove reference to Ericsson 1800 monitor.
11424 * Makefile.in (remote-es.o): Delete rule.
11425 (ALLDEPFILES): Delete remote-es.c.
11426 * remote-es.c: Delete file.
11427 * config/m68k/es1800.mt: Delete file.
11428 * config/djgpp/fnchange.lst: Update.
11429 * configure.tgt: Delete m68*-ericsson-* target.
11430
d764a824
AF
114312003-01-31 Adam Fedor <fedor@gnu.org>
11432
11433 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11434 Remove duplicate/shadowing variable of same name.
11435
fe36c4f4
JB
114362003-01-30 Jim Blandy <jimb@redhat.com>
11437
11438 * symfile.c (find_separate_debug_file): Assert that the objfile's
11439 directory name we compute ends with a slash, and then assume that
11440 that's so everywhere we use it.
11441
cb741690
DJ
114422003-01-30 Daniel Jacobowitz <drow@mvista.com>
11443
11444 * valops.c (value_assign): Flush frame cache after stores to memory
11445 also.
11446
96ee5227
AC
114472003-01-30 Andrew Cagney <ac131313@redhat.com>
11448
11449 * Makefile.in (mon960-rom.o): Delete rule.
11450 * mon960-rom.c: Delete file.
11451
7f6104a9
AC
114522003-01-30 Andrew Cagney <ac131313@redhat.com>
11453
11454 * d10v-tdep.c: Include "frame-unwind.h".
11455 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11456 list.
11457 (next_addr, uses_frame): Delete.
11458 (struct d10v_unwind_cache): Define.
11459 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11460 Use info instead of next_addr and uses_frame globals.
11461 (d10v_frame_init_saved_regs): Delete function.
11462 (d10v_init_extra_frame_info): Delete function.
11463 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11464 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11465 init_frame_pc or frame_saved_pc.
11466 (d10v_pop_frame): Delete function.
11467 (do_d10v_pop_frame): Delete function.
11468 (d10v_frame_chain): Delete function.
11469 (d10v_frame_chain_valid): Delete function.
11470 (d10v_frame_pc_unwind): New function.
11471 (d10v_frame_id_unwind): New function.
11472 (saved_regs_unwinder): New function.
11473 (d10v_frame_register_unwind): New function.
11474 (d10v_frame_pop): New function.
11475 (d10v_frame_unwind): New variable.
11476 (d10v_frame_p): New function.
11477 (d10v_frame_saved_pc): Delete function.
11478 * Makefile.in (d10v-tdep.o): Update dependencies.
11479
cad2e848
JB
114802003-01-30 J. Brobecker <brobecker@gnat.com>
11481
11482 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11483 causing some regressions due to a change in the default value
11484 for this macro.
11485
af34e669
DJ
114862003-01-29 Richard Henderson <rth@redhat.com>
11487 Elena Zannoni <ezannoni@redhat.com>
11488 Daniel Jacobowitz <drow@mvista.com>
11489
11490 Fix PR gdb/961.
8ffd9b1b 11491 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11492 variables.
11493 (RANGES_SECTION): New.
11494 (dwarf_ranges_buffer): New variable.
11495 (struct comp_unit_head): Add member "die".
11496 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11497 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11498 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11499 (dwarf2_locate_sections): Likewise.
11500 (dwarf2_build_psymtabs): Read .debug_ranges.
11501 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11502 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11503 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11504 Look for DW_AT_ranges and return the bounding box.
11505
baa93fa6
CF
115062003-01-29 Brian Ford <ford@vss.fsi.com>
11507
11508 * win32-nat.c (cygwin_pid): Removed as unused.
11509 (child_attach): Try fall back to Cygwin pid.
11510
c63f977f
JB
115112003-01-29 Jim Blandy <jimb@redhat.com>
11512
11513 * objfiles.h (struct objfile): Doc fix.
11514
d62d1979
AC
115152003-01-29 Andrew Cagney <ac131313@redhat.com>
11516
11517 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11518 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11519 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11520 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11521 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11522 (FRAME_SAVED_PC): Change to a function with predicate.
11523 * gdbarch.h, gdbarch.c: Re-generate.
11524
1ae18a04
AC
115252003-01-28 Andrew Cagney <ac131313@redhat.com>
11526
52287340
AC
11527 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11528
1ae18a04
AC
11529 * complaints.c (complain): Delete function.
11530 * complaints.h (struct deprecated_complaint): Delete definition.
11531 (complain): Delete declaration.
11532
f2c16bd6
KB
115332003-01-28 Kevin Buettner <kevinb@redhat.com>
11534
11535 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11536 dummy frames.
11537
a94dd1fd
AC
115382003-01-27 Andrew Cagney <ac131313@redhat.com>
11539
11540 * sentinel-frame.h, sentinel-frame.c: New files.
11541 * Makefile.in (frame.o): Update dependencies.
11542 (SFILES): Add sentinel-frame.c.
11543 (sentinel_frame_h): Define.
11544 (COMMON_OBS): Add sentinel-frame.o.
11545 (sentinel-frame.o): Specify dependencies.
11546 * frame.c: Include "sentinel-frame.h".
11547 (frame_register_unwind): Rewrite assuming that there is always a a
11548 ->next frame.
11549 (frame_register, generic_unwind_get_saved_register): Ditto.
11550 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11551 (create_sentinel_frame, unwind_to_current_frame): New functions.
11552 (get_current_frame): Rewrite using create_sentinel_frame and
11553 unwind_to_current_frame. When possible, always create a frame.
11554 (create_new_frame): Set next to the sentinel frame.
11555 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11556 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11557 ID cache when necessary.
11558 (frame_saved_regs_id_unwind): Use frame_relative_level.
11559 (deprecated_generic_get_saved_register): Use frame_relative_level,
11560 get_frame_saved_regs, get_frame_pc, get_frame_base and
11561 get_next_frame.
11562 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11563 frame_register.
11564
5378adc4
DJ
115652003-01-27 Daniel Jacobowitz <drow@mvista.com>
11566
11567 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11568
51ee2ddc
DJ
115692003-01-27 Daniel Jacobowitz <drow@mvista.com>
11570
11571 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11572 (maintenance_set_profile_cmd): Use error () instead of warning ().
11573
d9feb4e7
DJ
115742003-01-27 Daniel Jacobowitz <drow@mvista.com>
11575
11576 * configure.in: Check that -pg works if using --enable-profiling.
11577 Check for monstartup and _mcleanup regardless of --enable-profiling.
11578 * maint.c: Check for monstartup and _mcleanup before using them.
11579 * config.in: Regenerated.
11580 * configure: Regenerated.
11581
2d188dd3
NC
115822003-01-24 Nick Clifton <nickc@redhat.com>
11583
11584 * Add sh2e support:
11585
11586 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11587
11588 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11589 (sh2e_show_regs): New.
11590 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11591 * config/sh/tm-sh.h: Added sh2e to comments.
11592
cb3c37b2
JB
115932003-01-23 Jim Blandy <jimb@redhat.com>
11594
11595 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11596 symbols found)" message here; we haven't checked for a separate
11597 debug info file yet, so we don't know yet.
11598 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11599 we've looked everywhere. Also, there's no need to print a special
11600 message when we're loading the separate debug info file: the one
11601 symbol_file_add prints is fine.
11602
5b5d99cf
JB
116032003-01-23 Alexander Larsson <alexl@redhat.com>
11604 Jim Blandy <jimb@redhat.com>
11605
11606 Add support for executables whose debug info has been separated
11607 out into a separate file, leaving only a link behind.
11608 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11609 and separate_debug_objfile_backlink.
11610 (put_objfile_before): New declaration.
11611 * symfile.c: #include "filenames.h".
11612 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11613 debug info in a separate file, read that, too. Save the addrs
11614 argument, so we can use it again to read the separated debug info;
11615 syms_from_objfile modifies the table we pass it.
11616 (reread_symbols): After re-reading an objfile, call
11617 reread_separate_symbols to refresh its separate debug info
11618 objfile, if it has one.
11619 (reread_separate_symbols, find_separate_debug_file,
11620 get_debug_link_info, separate_debug_file_exists): New functions.
11621 (debug_file_directory): New global var.
11622 (_initialize_symfile): Initialize debug_file_directory, and
11623 provide the new `set debug-file-directory' command to let the user
11624 change it.
11625 * objfiles.c (free_objfile): If this objfile has its debug info in
11626 a separate objfile, free that one too. If this is itself a
11627 separate debug info objfile, clear our parent's backlink.
11628 (put_objfile_before): New function.
11629 * utils.c (gnu_debuglink_crc32): New function.
11630 * defs.h (gnu_debuglink_crc32): New declaration.
11631 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11632 * configure.in: Handle --with-separate-debug-dir config option.
11633 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11634 * acconfig.h (DEBUGDIR): New macro.
11635 * configure, aclocal.m4, config.in: Regenerated.
11636
7e8580c1
JB
116372003-01-22 Jim Blandy <jimb@redhat.com>
11638
7904e09f
JB
11639 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11640 like the old symbol_file_add, but taking new arguments: you can
11641 now pass in either a `struct section_addr_info' list to say where
11642 each section is loaded, or a `struct section_offsets' table. Pass
11643 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11644 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11645 with the appropriate quiescent values for the new arguments.
11646
7e8580c1
JB
11647 * symfile.c: #include "gdb_assert.h".
11648 (syms_from_objfile): Add the ability to pass in a section offset
11649 table directly, as an alternative to the section_addr_info table.
11650 Document arguments better.
11651 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11652 * symfile.h (syms_from_objfile): Update declaration.
11653 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11654 syms_from_objfile.
11655 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11656
d28f9cdf
DJ
116572003-01-22 Daniel Jacobowitz <drow@mvista.com>
11658
11659 Original patch by Tom Tromey <tromey@cygnus.com> and
11660 Jason Molenda <jmolenda@apple.com>.
11661 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11662 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11663 * NEWS: Mention profiling.
11664 * configure.in (--enable-gdbtk): Fix typo.
11665 (--enable-profiling): New. Set PROFILE_CFLAGS.
11666 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11667 Fill in function.
11668 (profiling_state): New variable.
11669 (mcleanup_wrapper): New function.
11670 (_initialize_maint): Remove NOTYET, fix call to
11671 add_setshow_boolean_cmd for "maint set profile".
11672 * configure: Regenerated.
11673
df21e465
MH
116742003-01-21 Martin M. Hunt <hunt@redhat.com>
11675
11676 * Makefile.in (install-gdbtk): Install PNG images too.
11677
73c1f219
AC
116782003-01-21 Andrew Cagney <ac131313@redhat.com>
11679
11680 * exec.c (text_start): Delete global variable.
11681 (exec_file_attach): Make text_start local to the function.
11682 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11683 * valops.c (hand_function_call): Delete code that handles
11684 BEFORE_TEXT_END and AFTER_TEXT_END.
11685 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11686 of CALL_DUMMY_LOCATION.
11687 * gdbarch.c: Regenerate.
11688 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11689 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11690 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11691 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11692 (text_end): Delete extern declaration.
11693
eb4f72c5
AC
116942003-01-21 Andrew Cagney <ac131313@redhat.com>
11695
11696 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11697 * blockframe.c (backtrace_below_main): Move to "frame.c".
11698 (frame_chain_valid): Delete check for backtrace_below_main.
11699 (_initialize_blockframe): Delete initialization, move ``set
11700 backtrace-below-main'' command to "frame.c".
11701 (do_flush_frames_sfunc): Delete function.
11702 * frame.c: Include "command.h" and "gdbcmd.h".
11703 (frame_type_from_pc): New function.
11704 (create_new_frame): Use frame_type_from_pc.
11705 (legacy_get_prev_frame): New function.
11706 (get_prev_frame): Rewrite. When an old style frame, call
11707 legacy_get_prev_frame. Otherwize, unwind the PC first.
11708 (_initialize_frame): Add ``set backtrace-below-main'' command.
11709 * Makefile.in (frame.o): Update dependencies.
11710
778ce8cc
AC
117112003-01-19 Andrew Cagney <ac131313@redhat.com>
11712
11713 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11714 DEPRECATED_REGISTERS_INFO.
11715
01c193c8
AC
117162003-01-19 Andrew Cagney <ac131313@redhat.com>
11717
11718 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11719 Maintainers'. Update `Various Maintainers'.
11720
dedc2a2b
AC
117212003-01-19 Andrew Cagney <ac131313@redhat.com>
11722
11723 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11724 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11725 Suppress actual parameters when `-'.
11726 * gdbarch.h, gdbarch.c: Regenerate.
11727
b7261c70
AC
117282003-01-19 Andrew Cagney <ac131313@redhat.com>
11729
11730 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11731 code handling dummy frames.
11732
dbe9fe58
AC
117332003-01-19 Andrew Cagney <ac131313@redhat.com>
11734
11735 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11736 (struct frame_unwind): Add field pop.
11737 * frame.h (frame_pop): Declare.
11738 * frame.c (frame_saved_regs_pop): New function.
11739 (trad_frame_unwinder): Add frame_saved_regs_pop.
11740 (frame_pop): New function.
11741 * dummy-frame.c (dummy_frame_pop): New function.
11742 (discard_innermost_dummy): New function.
11743 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11744 (dummy_frame_unwind): Add dummy_frame_pop.
11745 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11746 * valops.c (hand_function_call): Ditto.
11747 * stack.c (return_command): Ditto.
11748
570b8f7c
AC
117492003-01-18 Andrew Cagney <ac131313@redhat.com>
11750
11751 * cris-tdep.c: Fix function declaration indentation.
11752 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11753 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11754 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11755 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11756 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11757 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11758
117592003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11760
11761 * README (Unpacking and Installation -- quick overview):
11762 Warn against ".../gdb-5.3/gdb/configure".
11763
494cca16
AC
117642003-01-18 Andrew Cagney <ac131313@redhat.com>
11765
11766 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11767 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11768 (struct frame_unwind): Declare opaque.
11769 (dummy_frame_p): Declare function.
11770 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11771 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11772 * dummy-frame.c: Include "frame-unwind.h".
11773 (dummy_frame_p): New function.
11774 (dummy_frame_unwind): New variable.
11775 * frame.c: Include "frame-unwind.h".
11776 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11777 to use the new unwind field.
11778 (set_unwind_by_pc): Delete function.
11779 (create_new_frame, get_prev_frame): Set unwind field using
11780 frame_unwind_find_by_pc.
11781 (trad_frame_unwind, trad_frame_unwinder): New variables.
11782 * frame.h (trad_frame_unwind): Declare variable.
11783 (frame_id_unwind_ftype): Delete declaration.
11784 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11785 (struct frame_unwind): Declare opaque.
11786 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11787 register_unwind with a single unwind pointer.
11788 * frame-unwind.h, frame-unwind.c: New files.
11789 * Makefile.in (SFILES): Add frame-unwind.c.
11790 (frame_unwind_h): Define.
11791 (COMMON_OBS): Add frame-unwind.o.
11792 (frame-unwind.o): Specify dependencies.
11793 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11794
4efb68b1
AC
117952003-01-18 Andrew Cagney <ac131313@redhat.com>
11796
11797 * ada-valprint.c: Eliminate PTR.
11798 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11799 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11800 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11801 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11802 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11803 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11804 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11805
a84d24ee
AC
118062003-01-17 Andrew Cagney <ac131313@redhat.com>
11807
762f08a3
AC
11808 * main.c (captured_main): Don't use PTR.
11809 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11810 * gdbtypes.c (lookup_primitive_typename): Ditto.
11811 (lookup_struct_elt_type): Ditto.
11812 * f-valprint.c (info_common_command): Ditto.
11813 (list_all_visible_commons): Ditto.
11814 * jv-typeprint.c (java_type_print_base): Ditto.
11815
a84d24ee
AC
11816 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11817 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11818 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11819 i386-interix-nat.c and i386-interix-tdep.c. Rename
11820 m68klinux-nat.c and m68klinux-tdep.c. Rename
11821 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11822 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11823 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11824 * main.c (captured_main): Use xfree, not free.
11825
c170fb60
AC
118262003-01-16 Andrew Cagney <ac131313@redhat.com>
11827
11828 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11829 ID back using a parameter.
11830 * frame.c (frame_id_unwind): Update call.
11831 (frame_saved_regs_id_unwind): Update.
11832 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11833 * dummy-frame.h (struct frame_id): Add opaque declaration.
11834 (dummy_frame_id_unwind): Update declaration.
11835
867f3898
AC
118362003-01-15 Andrew Cagney <ac131313@redhat.com>
11837
11838 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11839
40622be8 118402003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11841
40622be8 11842 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11843
ae66c1fc
EZ
118442003-01-14 Elena Zannoni <ezannoni@redhat.com>
11845
997b089a 11846 Fix PR gdb/898
ae66c1fc
EZ
11847 * breakpoint.c (until_break_command): Add new argument. Use it to
11848 decide whether to stop only at the current frame or not.
11849 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11850 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11851 call.
11852 (advance_command): New function.
11853 (_initialize_infcmd): Update help string for 'until' command.
11854 Add new 'advance' command.
11855
a04257e6
DC
118562003-01-14 David Carlton <carlton@math.stanford.edu>
11857
11858 * linespec.c (decode_line_1): Normalize comments.
11859 (set_flags): Ditto.
11860 (locate_first_half): Ditto.
11861 (decode_compound): Ditto.
11862 (symtab_from_filename): Ditto.
11863 (decode_all_digits): Ditto.
11864 (decode_dollar): Ditto.
11865 (find_methods): Ditto.
11866 (find_toplevel_char): Ditto.
11867
1bac305b
AC
118682003-01-13 Andrew Cagney <ac131313@redhat.com>
11869
11870 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11871 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11872 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11873 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11874 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11875 * language.c, language.h, m32r-tdep.c: Update copyright.
11876 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11877 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11878 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11879 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11880 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11881 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11882
25caa7a8
EZ
118832003-01-13 Elena Zannoni <ezannoni@redhat.com>
11884
11885 * stabsread.h (process_later, resolve_cfront_continuation):
11886 Obsolete.
11887 Update copyright years.
11888 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11889 Update copyright year.
11890 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11891 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11892 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11893 Update copyright year.
11894 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11895 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11896 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11897 (parse_partial_symbols): Obsolete cfront support.
11898 * stabsread.c
11899 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11900 macros.
11901 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11902 read_cfront_baseclasses, read_cfront_member_functions,
11903 resolve_cfront_continuation,read_cfront_static_fields,
11904 copy_cfront_struct_fields): Obsolete functions.
11905 (define_symbol, read_one_struct_field): Obsolete cfront support.
11906 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11907 Update Copyright year.
11908
7789c6f5
EZ
119092003-01-13 Elena Zannoni <ezannoni@redhat.com>
11910
11911 * stack.c (print_frame_info, print_stack_frame_base_stub,
11912 print_stack_frame_base, show_and_print_stack_frame_stub,
11913 show_and_print_stack_frame, print_only_stack_frame_stub,
11914 print_only_stack_frame): Delete functions.
11915 (print_stack_frame_stub): Call print_frame_info instead of
11916 print_frame_info_base.
11917 (print_frame_info_base): Rename to print_frame_info.
11918 (backtrace_command_1): Call print_frame_info, instead of
11919 print_frame_info_base.
11920 (current_frame_command): Call print_stack_frame, instead of
11921 print_only_stack_frame.
11922 (frame_command): Call print_stack_frame, instead of
11923 show_and_print_stack_frame.
11924 (up_command): Ditto.
11925 (down_command): Ditto.
11926 * frame.h (print_only_stack_frame): Delete prototype.
11927 * infrun.c (normal_stop): Call print_stack_frame, instead of
11928 show_and_print_stack_frame.
11929 * thread.c (info_threads_command): Call print_stack_frame, instead
11930 of print_only_stack_frame.
11931
3f5a3016
AC
119322003-01-13 Andrew Cagney <ac131313@redhat.com>
11933
d99ba314
AC
11934 * README (Graphical interface to GDB): Update URL. Point at
11935 gdb/links/.
11936
3f5a3016
AC
11937 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11938 version match.
11939
083ae935
DJ
119402003-01-13 Daniel Jacobowitz <drow@mvista.com>
11941
11942 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11943 lines.
11944
5365276c
DJ
119452003-01-13 Daniel Jacobowitz <drow@mvista.com>
11946
11947 * thread-db.c (attach_thread): Prototype.
11948 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11949 thread information (ti), and valid flags (th_valid, ti_valid).
11950 (attach_thread): Move target_pid_to_str call to after the thread
11951 is added to GDB's list. Initialize the cache.
11952 (thread_get_info_callback, thread_db_map_id2thr)
11953 (thread_db_get_info): New functions.
11954 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11955 (thread_db_store_registers, thread_db_thread_alive)
11956 (thread_db_get_thread_local_address): Use them.
11957 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11958 of calling error() for threads in unknown state.
11959
11960 (clear_lwpid_callback): New function.
11961 (thread_db_resume): Use it to clear the cache.
11962
9fc30b6b
DJ
119632003-01-13 Daniel Jacobowitz <drow@mvista.com>
11964
11965 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11966 (resume_callback): Remove dead code.
11967
8f871025
AC
119682003-01-13 Andrew Cagney <ac131313@redhat.com>
11969
11970 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11971 predicate.
11972 * gdbarch.h, gdbarch.c: Regenerate.
11973 * stack.c (frame_info): Only initialize the saved registers when
11974 FRAME_INIT_SAVED_REGS_P.
11975 * frame.c (frame_saved_regs_register_unwind): Assert
11976 FRAME_INIT_SAVED_REGS_P.
11977 (deprecated_generic_get_saved_register): Ditto.
11978
3f565f1e
DJ
119792003-01-13 Daniel Jacobowitz <drow@mvista.com>
11980
11981 * source.c (openp): Squelch warning about "filename".
11982
072b1022
DJ
119832003-01-13 Daniel Jacobowitz <drow@mvista.com>
11984
11985 * source.c (openp): If the file does not exist don't necessarily
11986 search the path.
11987
973ccf8b
DJ
119882003-01-13 Daniel Jacobowitz <drow@mvista.com>
11989
11990 Fix PR gdb/872.
11991 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11992 (integer_types_same_name_p): New function.
11993 (rank_one_type): Use it.
11994 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11995
030292b7
DJ
119962003-01-13 Daniel Jacobowitz <drow@mvista.com>
11997
11998 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11999 variables.
12000 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12001 * configure.in: Add --with-sysroot.
12002 * configure: Regenerated.
12003 * main.c (gdb_sysroot): New variable.
12004 (captured_main): Initialize gdb_sysroot.
12005 * defs.h (gdb_sysroot): New extern declaration.
12006 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12007
afb5d334
MC
120082003-01-12 Michael Chastain <mec@shout.net>
12009
12010 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12011
751ceeb4
MC
120122003-01-12 Michael Chastain <mec@shout.net>
12013
12014 * top.c (print_gdb_version): Bump copyright year to 2003.
12015
94cd26f8
DC
120162003-01-12 David Carlton <carlton@bactrian.org>
12017
12018 * linespec.c (symtab_from_filename): Rename variable 's' to
12019 'file_symtab'.
12020
1ce79225
AC
120212003-01-12 Andrew Cagney <ac131313@redhat.com>
12022
12023 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12024 dummy frame.
12025 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12026
fa1fd571
AC
120272003-01-12 Andrew Cagney <ac131313@redhat.com>
12028
12029 * d10v-tdep.c: Include "gdb_assert.h".
12030 (d10v_store_return_value): Rewrite to match current interface.
12031 (d10v_extract_struct_value_address): Ditto.
12032 (d10v_extract_return_value): Ditto.
12033 (d10v_gdbarch_init): Set store_restore_value,
12034 extract_struct_value_address and extract_return_value.
12035
68b8d23e
JB
120362003-01-12 J. Brobecker <brobecker@gnat.com>
12037
12038 * hpread.c (set_namestring): New procedure replacing the
12039 SET_NAMESTRING macro.
12040 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12041 by calls to set_namestring.
12042
120432003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12044
12045 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12046 a compilation warning.
12047 (hpread_process_one_debug_symbol): Likewise.
12048
88d262ca
DC
120492003-01-10 David Carlton <carlton@math.stanford.edu>
12050
12051 * linespec.c (decode_line_1): Rename variable 's' to
12052 'file_symtab'.
12053 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12054 (decode_dollar): Ditto.
12055 (decode_variable): Ditto.
12056 (symbol_found): Ditto.
12057
86669319
MC
120582003-01-09 Michael Chastain <mec@shout.net>
12059
12060 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12061
616a9dc4
CV
120622003-01-07 Corinna Vinschen <vinschen@redhat.com>
12063
12064 * win32-nat.c (set_process_privilege): New function.
12065 (child_attach): Call set_process_privilege() to enable the
12066 SE_DEBUG_NAME user privilege if available in process token.
12067
3269bcfa
JB
120682003-01-10 J. Brobecker <brobecker@gnat.com>
12069
12070 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12071 compilation error in the previous revision.
12072
2b0ee454
DC
120732003-01-09 David Carlton <carlton@math.stanford.edu>
12074
12075 * linespec.c: Update copyright.
12076
b3ba1b44
DJ
120772003-01-09 Daniel Jacobowitz <drow@mvista.com>
12078
12079 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12080 than inferior_ptid.
12081 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12082
4ef3f3be
AC
120832003-01-09 Andrew Cagney <ac131313@redhat.com>
12084
479ab5a0
AC
12085 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12086 Update comments.
12087 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12088 (frame_saved_regs_zalloc): Update.
12089 (frame_saved_regs_register_unwind): Update.
12090 (create_new_frame): Update.
12091 (get_prev_frame): Update.
12092 (frame_extra_info_zalloc): Update.
12093 (deprecated_get_frame_saved_regs): Update.
12094 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12095 * cris-tdep.c: Update comment.
12096
bde58177
AC
12097 * somsolib.h: Fix function indentation.
12098 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12099 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12100 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12101 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12102 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12103
4ef3f3be
AC
12104 * infrun.c (follow_fork): Use ISO C definition.
12105 * expprint.c (print_subexp): Use xfree instead of free.
12106 * charset.c: Include "gdb_string.h" instead of <string.h>.
12107 (register_iconv_charsets): Use ISO C definition.
12108 (host_charset, target_charset): Ditto.
12109 * Makefile.in (charset.o): Update dependencies.
12110 (mi-cmd-env.o): Update dependencies.
12111
1c615f7a
AC
121122003-01-08 Andrew Cagney <cagney@redhat.com>
12113
12114 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12115 get_frame_base.
12116
c9a1dc08
AC
121172003-01-08 Andrew Cagney <ac131313@redhat.com>
12118
12119 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12120 build directories. Save edited gdb output in Mbuild.log. If a
12121 build fails, remove any final GDB executable.
12122
dbad9d94
AC
121232003-01-08 Andrew Cagney <ac131313@redhat.com>
12124
12125 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12126 replacing hex constants with function names and stripping leading
12127 file name directory prefixes.
12128
8d357cca
AC
121292003-01-08 Andrew Cagney <cagney@redhat.com>
12130
12131 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12132 get_frame_base.
12133
bca02a8a
DC
121342003-01-08 David Carlton <carlton@math.stanford.edu>
12135
12136 * linespec.c (decode_line_1): Move code into decode_variable.
12137 (decode_variable): New function.
12138
7f8ab3a0
AC
121392003-01-08 Andrew Cagney <ac131313@redhat.com>
12140
12141 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12142
7b5849cc
AC
121432003-01-08 Andrew Cagney <cagney@redhat.com>
12144
12145 * cris-tdep.c (cris_frame_init_saved_regs): Use
12146 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12147 saved_regs buffer.
12148 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12149 (sh64_nofp_frame_init_saved_regs): Ditto.
12150 (sh_fp_frame_init_saved_regs): Ditto.
12151 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12152 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12153 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12154 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12155
72a5efb3
DJ
121562003-01-08 Daniel Jacobowitz <drow@mvista.com>
12157
12158 * minsyms.c (lookup_minimal_symbol): Update comment.
12159 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12160 (lookup_minimal_symbol_solib_trampoline): Likewise.
12161
11c02a10
AC
121622003-01-08 Andrew Cagney <cagney@redhat.com>
12163
aab3ea25
AC
12164 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12165 frame_relative_level.
12166
da50a4b7
AC
12167 * alpha-tdep.c: Use get_frame_extra_info.
12168 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12169 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12170 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12171 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12172
11c02a10
AC
12173 * alpha-tdep.c: Use get_next_frame.
12174 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12175 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12176 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12177 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12178 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12179 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12180 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12181
1e2330ba
AC
121822003-01-07 Andrew Cagney <cagney@redhat.com>
12183
12184 * alpha-tdep.c: Use get_frame_base.
12185 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12186 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12187 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12188 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12189 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12190 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12191 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12192 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12193
2d75187b
AC
121942003-01-07 Andrew Cagney <cagney@redhat.com>
12195
12196 * frame.c (deprecated_get_frame_context): New function.
12197 (deprecated_set_frame_context): New function.
12198 * frame.h (deprecated_get_frame_context): Declare.
12199 (deprecated_set_frame_context): Declare.
12200 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12201 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12202
483d36b2
AC
122032003-01-07 Andrew Cagney <cagney@redhat.com>
12204
12205 * frame.c (deprecated_set_frame_next_hack): New function.
12206 (deprecated_set_frame_prev_hack): New function.
12207 * frame.h (deprecated_set_frame_next_hack): Declare.
12208 (deprecated_set_frame_prev_hack): Declare.
12209 * mcore-tdep.c (analyze_dummy_frame): Use
12210 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12211 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12212
14e91ac5
DC
122132003-01-07 David Carlton <carlton@math.stanford.edu>
12214
12215 * linespec.c (decode_line_1): Move code into decode_dollar.
12216 (decode_dollar): New function.
12217
b0c6b05c
AC
122182003-01-07 Andrew Cagney <cagney@redhat.com>
12219
12220 * arm-tdep.c (arm_init_extra_frame_info): Use
12221 deprecated_update_frame_base_hack.
12222 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12223 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12224 (fix_frame_pointer): Ditto.
12225 (mn10300_analyze_prologue): Ditto.
12226
a00a19e9
AC
122272003-01-07 Andrew Cagney <cagney@redhat.com>
12228
12229 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12230 extra_info using frame_extra_info_zalloc.
12231 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12232 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12233 (sh64_init_extra_frame_info): Ditto.
12234 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12235 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12236 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12237 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12238 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12239 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12240 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12241 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12242 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12243 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12244 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12245 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12246
12247 * mn10300-tdep.c (analyze_dummy_frame): Use
12248 deprecated_set_frame_extra_info_hack.
12249 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12250
1fb4c65b
JB
122512003-01-07 J. Brobecker <brobecker@gnat.com>
12252
12253 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12254 class is not scText. These do not define "real" procedures.
12255 (parse_partial_symbols): Likewise.
12256
9fe7d6bf
MS
122572003-01-06 Michael Snyder <msnyder@redhat.com>
12258
12259 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12260
f6c609c4
AC
122612003-01-06 Andrew Cagney <ac131313@redhat.com>
12262
12263 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12264 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12265 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12266 deprecated_frame_xmalloc_with_cleanup.
12267 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12268 deprecated_frame_xmalloc.
12269 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12270 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12271
d995ff4b
AC
122722003-01-06 Andrew Cagney <cagney@redhat.com>
12273
84dc46cb
AC
12274 * x86-64-linux-tdep.c: Include "osabi.h".
12275 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12276
d995ff4b
AC
12277 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12278
66140c26
AC
122792003-01-06 Andrew Cagney <cagney@redhat.com>
12280
12281 * MAINTAINERS (Target Instruction Set Architectures): Update
12282 arm-elf. Can be built with -Werror, has been multiarched.
12283
12284 * value.h (unpack_long): Make buffer parameter constant.
12285 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12286 * scm-lang.h (scm_parse): Ditto.
12287 * defs.h (extract_typed_address, extract_address): Ditto.
12288 (extract_long_unsigned_integer): Ditto.
12289 * inferior.h (unsigned_pointer_to_address): Ditto.
12290 (signed_pointer_to_address): Ditto.
12291 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12292 * gdbarch.h, gdbarch.c: Regenerate.
12293 * findvar.c (extract_long_unsigned_integer): Update.
12294 (extract_address): Update.
12295 (extract_typed_address): Update.
12296 (unsigned_pointer_to_address): Update.
12297 * values.c (unpack_long): Update.
12298 (unpack_double): Update.
12299 (unpack_pointer): Update.
12300 (unpack_field_as_long): Update.
12301 * d10v-tdep.c (d10v_pointer_to_address): Update.
12302 * avr-tdep.c (avr_pointer_to_address): Update.
12303 * scm-lang.c (scm_unpack): Update.
12304 * findvar.c (signed_pointer_to_address): Update.
12305
b089b3da
ML
123062003-01-06 Michal Ludvig <mludvig@suse.cz>
12307
8ffd9b1b 12308 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12309 since it is in i386-tdep.c.
12310
aff87235
JB
123112003-01-06 J. Brobecker <brobecker@gnat.com>
12312
12313 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12314 failure introduced in the previous change.
12315
34f5e845
MC
123162003-01-05 Michael Chastain <mec@shout.net>
12317
12318 * README: Remove references to deleted remote-*.c files:
12319 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12320 remote-nrom.c, remote-os9k.c, remote-udi.c.
12321
28bcfd30
MK
123222003-01-05 Mark Kettenis <kettenis@gnu.org>
12323
12324 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12325 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12326 i386_get_longjmp_target.
12327
15a5b3ee
AC
123282003-01-05 Andrew Cagney <ac131313@redhat.com>
12329
12330 * arm-tdep.c (prologue_cache): Change to a pointer.
12331 (_initialize_arm_tdep): Allocate prologue_cache.
12332 (check_prologue_cache): Update.
12333 (save_prologue_cache): Update.
12334 (arm_gdbarch_init): Update.
12335
c263362b
DJ
123362003-01-04 Daniel Jacobowitz <drow@mvista.com>
12337
12338 * stabsread.c (update_method_name_from_physname): Call complaint()
12339 instead of error.
12340
51603483
DJ
123412003-01-04 Daniel Jacobowitz <drow@mvista.com>
12342
12343 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12344 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12345 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12346
12347 * blockframe.c: Include "gdbcmd.h" and "command.h".
12348 (backtrace_below_main): New variable.
12349 (file_frame_chain_valid, func_frame_chain_valid)
12350 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12351 (generic_func_frame_chain_valid): Remove functions.
12352 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12353 (_initialize_blockframe): New function.
12354 * Makefile.in (blockframe.o): Update dependencies.
12355 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12356 comment. Call frame_chain_valid ().
12357 * frame.h: Remove old prototypes. Add prototype for
12358 frame_chain_valid and update comments to match.
12359 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12360 Remove old comment.
12361 * gdbarch.h: Regenerated.
12362 * gdbarch.c: Regenerated.
12363
12364 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12365 set_gdbarch_frame_chain_valid.
12366 * avr-tdep.c (avr_gdbarch_init): Likewise.
12367 * cris-tdep.c (cris_gdbarch_init): Likewise.
12368 * frv-tdep.c (frv_gdbarch_init): Likewise.
12369 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12370 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12371 (i386_nw_init_abi): Likewise.
12372 (i386_gdbarch_init): Likewise.
12373 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12375 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12376 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12377 * mips-tdep.c (mips_gdbarch_init): Likewise.
12378 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12379 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12380 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12381 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12382 * s390-tdep.c (s390_gdbarch_init): Likewise.
12383 * sh-tdep.c (sh_gdbarch_init): Likewise.
12384 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12385 * v850-tdep.c (v850_gdbarch_init): Likewise.
12386 * vax-tdep.c (vax_gdbarch_init): Likewise.
12387 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12388
12389 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12390 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12391 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12392 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12393 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12394 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12395 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12396 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12397
b00a8037
DJ
123982002-01-04 Daniel Jacobowitz <drow@mvista.com>
12399
12400 * Makefile.in (acconfig_h): Remove incorrect macro.
12401 (config_h): Define.
12402 (osabi.o): Update dependencies.
12403 * configure.tgt: Set gdb_osabi based on target triplet.
12404 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12405 * configure: Regenerated.
12406 * config.in: Regenerated.
12407 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12408 (GDB_OSABI_DEFAULT): Define if not already defined.
12409 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12410 (set_osabi_string): New variables.
12411 (gdbarch_register_osabi): Add new OS ABI to
12412 gdb_osabi_available_names.
12413 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12414 (set_osabi, show_osabi): New functions.
12415 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12416
4be87837
DJ
124172003-01-04 Daniel Jacobowitz <drow@mvista.com>
12418
12419 * arch-utils.c (gdbarch_info_init): Set osabi to
12420 GDB_OSABI_UNINITIALIZED.
12421 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12422 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12423 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12424 * gdbarch.c: Regenerated.
12425 * gdbarch.h: Regenerated.
12426 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12427 there's no BFD.
12428 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12429 * osabi.h (enum gdb_osabi): Move to defs.h.
12430 (gdbarch_init_osabi): Update prototype.
12431 * defs.h (enum gdb_osabi): Moved here.
12432 * Makefile.in: Update dependencies.
12433
12434 * alpha-tdep.h: Don't include "osabi.h".
12435 (struct gdbarch_tdep): Remove osabi member.
12436 * alpha-tdep.c: Include "osabi.h".
12437 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12438 iterate over arches. Update call to gdbarch_init_osabi.
12439 (alpha_dump_tdep): Don't dump osabi.
12440 * alpha-linux-tdep.c: Include "osabi.h".
12441 * alpha-osf1-tdep.c: Include "osabi.h".
12442 * alphafbsd-tdep.c: Include "osabi.h".
12443 * alphanbsd-tdep.c: Include "osabi.h".
12444
12445 * arm-tdep.h: Don't include "osabi.h".
12446 (struct gdbarch_tdep): Remove osabi member.
12447 * arm-tdep.c: Include "osabi.h".
12448 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12449 iterate over arches. Update call to gdbarch_init_osabi.
12450 (arm_dump_tdep): Don't dump osabi.
12451 * arm-linux-tdep.c: Include "osabi.h".
12452 * armnbsd-tdep.c: Include "osabi.h".
12453
12454 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12455 Update call to gdbarch_init_osabi.
12456
12457 * i386-tdep.h: Don't include "osabi.h".
12458 (struct gdbarch_tdep): Remove osabi member.
12459 * i386-tdep.c: Include "osabi.h".
12460 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12461 iterate over arches. Update call to gdbarch_init_osabi.
12462 (i386_dump_tdep): Don't dump osabi.
12463 * i386-linux-tdep.c: Include "osabi.h".
12464 * i386-sol2-tdep.c: Include "osabi.h".
12465 * i386bsd-tdep.c: Include "osabi.h".
12466 * i386gnu-tdep.c: Include "osabi.h".
12467 * i386ly-tdep.c: Include "osabi.h".
12468 * i386nbsd-tdep.c: Include "osabi.h".
12469 * i386obsd-tdep.c: Include "osabi.h".
12470
12471 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12472 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12473 check osabi when iterating over arches. Update call to
12474 gdbarch_init_osabi.
12475 (mips_dump_tdep): Don't dump osabi.
12476
12477 * ns32k-tdep.h: Don't include "osabi.h".
12478 (struct gdbarch_tdep): Remove.
12479 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12480 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12481 allocate tdep. Update call to gdbarch_init_osabi.
12482 (ns32k_dump_tdep): Remove.
12483 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12484 * ns32knbsd-tdep.c: Include "osabi.h".
12485
12486 * ppc-tdep.h: Don't include "osabi.h".
12487 (struct gdbarch_tdep): Remove osabi member.
12488 * rs6000-tdep.c: Include "osabi.h".
12489 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12490 osabi when iterating over arches. Update call to
12491 gdbarch_init_osabi.
12492 (rs6000_dump_tdep): Don't dump osabi.
12493 * ppc-linux-tdep.c: Include "osabi.h".
12494 * ppcnbsd-tdep.c: Include "osabi.h".
12495
12496 * sh-tdep.h: Don't include "osabi.h".
12497 (struct gdbarch_tdep): Remove osabi member.
12498 * sh-tdep.c: Include "osabi.h".
12499 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12500 iterate over arches. Update call to gdbarch_init_osabi.
12501 (sh_dump_tdep): Don't dump osabi.
12502 * shnbsd-tdep.c: Include "osabi.h".
12503
12504 * sparc-tdep.c: Include "osabi.h".
12505 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12506 iterate over arches. Update call to gdbarch_init_osabi.
12507 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12508 tdep structure.
12509
12510 * vax-tdep.h: Don't include "osabi.h".
12511 (struct gdbarch_tdep): Remove.
12512 * vax-tdep.c: Include "osabi.h".
12513 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12514 iterate over arches. Don't allocate tdep. Update call
12515 to gdbarch_init_osabi.
12516 (vax_dump_tdep): Remove.
12517 (_initialize_vax_tdep): Update call to gdbarch_register.
12518
a881cf8e
DJ
125192003-01-04 Daniel Jacobowitz <drow@mvista.com>
12520
12521 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12522 entirely.
12523 (breakpoint_re_set_one): Don't fetch the value for a disabled
12524 watchpoint.
12525
1e698235
DJ
125262003-01-04 Daniel Jacobowitz <drow@mvista.com>
12527
12528 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12529 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12530 (COERCE_FLOAT_TO_DOUBLE): Remove.
12531 * gdbarch.c: Regenerate.
12532 * gdbarch.h: Regenerate.
12533 * Makefile.in: Remove value_h from gdbarch_h.
12534 * valops.c (coerce_float_to_double): New variable.
12535 (default_coerce_float_to_double): Remove.
12536 (standard_coerce_float_to_double): Remove.
12537 (value_arg_coerce): Use coerce_float_to_double.
12538 (_initialize_valops): Add "set coerce-float-to-double".
12539 * value.h (default_coerce_float_to_double): Remove prototype.
12540 (standard_coerce_float_to_double): Remove prototype.
12541
12542 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12543 prototyped.
12544 * mdebugread.c (parse_symbol): Likewise.
12545 * stabsread.c (define_symbol): Mark all functions as prototyped.
12546
12547 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12548 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12549 set_gdbarch_coerce_float_to_double.
12550 * arm-tdep.c (arm_gdbarch_init): Likewise.
12551 * frv-tdep.c (frv_gdbarch_init): Likewise.
12552 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12553 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12554 * mips-tdep.c (mips_gdbarch_init): Likewise.
12555 (mips_coerce_float_to_double): Remove.
12556 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12557 (rs6000_coerce_float_to_double): Remove.
12558 * s390-tdep.c (s390_gdbarch_init): Likewise.
12559 * sh-tdep.c (sh_gdbarch_init): Likewise.
12560 (sh_coerce_float_to_double): Remove.
12561 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12562 (sparc_coerce_float_to_double): Remove.
12563 * v850-tdep.c (v850_gdbarch_init): Likewise.
12564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12565 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12566 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12567 (hppa_coerce_float_to_double): Remove prototype.
12568 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12569
f436a26a
DJ
125702003-01-04 Daniel Jacobowitz <drow@mvista.com>
12571
12572 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12573
248f8055
DJ
125742003-01-04 Daniel Jacobowitz <drow@mvista.com>
12575
12576 Suggested by Stewart Brown <sb24@avaya.com>:
12577 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12578 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12579 (c_type_print_varspec_suffix): Likewise.
12580
72cfdc76
MK
125812003-01-04 Mark Kettenis <kettenis@gnu.org>
12582
bfd260bb
MK
12583 * configure.in: Don't set and AC_SUBST SUBDIRS.
12584 * configure: Regenerated.
12585
72cfdc76
MK
12586 * configure.in: Remove code dealing with shared libraries.
12587 * Makefile.in: Remove HLDFLAGS and HLDENV.
12588 * configure: Regenerated.
12589
c8b8a898
AC
125902003-01-04 Andrew Cagney <ac131313@redhat.com>
12591
12592 * frame.c (deprecated_frame_xmalloc): New function.
12593 (deprecated_set_frame_saved_regs_hack): New function.
12594 (deprecated_set_frame_extra_info_hack): New function.
12595 * frame.h (deprecated_frame_xmalloc): Declare.
12596 (deprecated_set_frame_saved_regs_hack): Declare.
12597 (deprecated_set_frame_extra_info_hack): Declare.
12598
14abd0fb
MK
125992003-01-04 Mark Kettenis <kettenis@gnu.org>
12600
8ee53726
MK
12601 * configure.in: Move code that provides the --enable-gdbtk option
12602 right after the code that handles the --enable-tui option, and
12603 polish it somewhat.
12604 * configure: Regenerated.
12605
14abd0fb
MK
12606 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12607 AC_CHECK_FUNCS and remove the old check for pread64.
12608 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12609 * acconfig.h (_GNU_SOURCE): Add.
12610 (HAVE_PREAD64): Remove.
12611 * configure, aclocal.m4, config.in: Regenerated.
12612
b2fb4676
AC
126132003-01-03 Andrew Cagney <ac131313@redhat.com>
12614
12615 * alpha-tdep.c: Use get_frame_saved_regs.
12616 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12617 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12618 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12619 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12620 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12621
8dcde887
MK
126222003-01-03 Mark Kettenis <kettenis@gnu.org>
12623
12624 * configure.in: Remove all use of the SUBDIRS variable; add
12625 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12626 code providing the --enable-multi-ice option, and move it right in
12627 front of the code that checks whether gdbserver is supported.
12628 Polish that too.
12629 * configure: Regenerated.
12630 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12631 @SUBDIRS@.
12632
8ccd593b
AC
126332003-01-03 Andrew Cagney <cagney@redhat.com>
12634
12635 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12636 * avr-tdep.c, cris-tdep.c: Ditto.
12637 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12638 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12639
91151a06
MK
126402003-01-03 Mark Kettenis <kettenis@gnu.org>
12641
12642 * configure.in: Remove --enable-netrom option.
12643 * configure: Regenerated.
12644
8fe84d01
MK
126452003-01-03 Mark Kettenis <kettenis@gnu.org>
12646
12647 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12648 declaration for `struct re_pattern_buffer' instead.
12649 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12650
f0394be6
JB
126512003-01-03 J. Brobecker <brobecker@gnat.com>
12652
12653 * mdebugread.c (parse_symbol): Count until the stEnd matching
12654 the structure name.
12655
27e9bf90
MK
126562003-01-02 Mark Kettenis <kettenis@gnu.org>
12657
93d331ba
MK
12658 * configure.in: Remove --with-cpu option.
12659 subscripts. Remove evil changequotes here.
12660 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12661 * config.in, configure: Regenerated.
8ffd9b1b 12662
27e9bf90
MK
12663 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12664 * configure.in: Cleanup section that sources GDB and BFD configure
12665 subscripts. Remove evil changequotes here.
12666 * config.in, configure: Regenerated.
12667
50abf9e5
AC
126682003-01-02 Andrew Cagney <ac131313@redhat.com>
12669
12670 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12671 frame accessor methods.
12672 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12673 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12674 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12675 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12676 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12677 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12678 * z8k-tdep.c: Ditto.
8ffd9b1b 12679
287c1a40
MK
126802003-01-02 Mark Kettenis <kettenis@gnu.org>
12681
f5dbc56d
MK
12682 * configure.in: Remove UI_OUT configuration code.
12683 * ada-lang.c: Update assuming UI_OUT is always true.
12684 * Makefile.in (UIOUT_CFLAGS): Remove.
12685 * configure: Regenerated.
12686 * TODO: Remove blurb about elimination of -DUI_OUT.
12687
627af7ea
MK
12688 * configure.in: Move code that provides the --enable-gdbcli,
12689 --enable-gdbmi options right before the code that handles the
12690 --enable-tui option. Polish a bit.
12691 * configure: Regenerated.
12692
06825bd1
MK
12693 * configure.in: Rewrite check for GNU regex and the
12694 --without-included regex option, and move it into the "Checks for
12695 library functions" section. This makes us use the system regex
12696 again by default on systems with version 2 of the GNU C library.
12697 This was apparently broken.
12698 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12699 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12700 * config.in, configure: Regenerated.
12701
287c1a40
MK
12702 * configure.in: Move code that provides the --enable-tui option
12703 before the "Checks for libraries" section. Polish the code
12704 somewhat and set need_curses to yes if we build the TUI. Rewrite
12705 code that looks for a library providing termcap functionality to
12706 match more closely what's done in the Readline library, and move
12707 it into to the "Checks for libraries" section.
12708 * configure: Regenerated.
12709 * Makefile.in (TERMCAP): Remove variable.
12710 * config/i386/go32.mh (TERMCAP): Remove variable.
12711
684e56bf
AC
127122003-01-02 Andrew Cagney <ac131313@redhat.com>
12713
12714 * MAINTAINERS: Mention gdb_mbuild.sh.
12715 * gdb_mbuild.sh: Rewrite.
12716
e1ea1d75
MK
127172003-01-02 Mark Kettenis <kettenis@gnu.org>
12718
12719 * configure.in: Fix typo in last change.
12720 * config.in, configure: Regenerated.
12721
1b831c93
AC
127222003-01-02 Andrew Cagney <ac131313@redhat.com>
12723
12724 * valarith.c (value_binop): Delete obsolete code and comments.
12725 * configure.host: Ditto.
12726 * buildsym.h (make_blockvector): Ditto.
12727 * buildsym.c (make_blockvector): Ditto.
12728 * defs.h (enum language): Ditto.
12729 (chill_demangle): Ditto.
12730 * elfread.c (elf_symtab_read): Ditto.
12731 * dwarfread.c (CHILL_PRODUCER): Ditto.
12732 (set_cu_language): Ditto.
12733 (handle_producer): Ditto.
12734 * expprint.c (print_subexp): Ditto.
12735 * gdbtypes.c (chill_varying_type): Ditto.
12736 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12737 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12738 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12739 (chill_varying_type): Ditto.
12740 * language.h (_LANG_chill): Ditto.
12741 * language.c (binop_result_type, integral_type): Ditto.
12742 (character_type, string_type, structured_type): Ditto.
12743 (lang_bool_type, binop_type_check): Ditto.
12744 * stabsread.h (os9k_stabs): Ditto.
12745 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12746 (define_symbol, read_type, read_struct_fields): Ditto.
12747 (read_array_type, read_enum_type, read_huge_number): Ditto.
12748 (read_range_type, start_stabs): Ditto.
12749 * symfile.c (init_filename_language_table): Ditto.
12750 (add_psymbol_with_dem_name_to_list): Ditto.
12751 * symtab.c (symbol_init_language_specific): Ditto.
12752 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12753 * symtab.h (struct general_symbol_info): Ditto.
12754 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12755 * typeprint.c (typedef_print): Ditto.
12756 * utils.c (fprintf_symbol_filtered): Ditto.
12757 * valops.c (value_cast, search_struct_field, value_slice): Delete
12758 obsolete code.
12759 (varying_to_slice): Delete function.
12760 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12761 (varying_to_slice): Delete declaration.
12762 * MAINTAINERS: Update.
12763
8bb2c122
MK
127642003-01-02 Mark Kettenis <kettenis@gnu.org>
12765
97bf5e38
MK
12766 * configure.in: Reorganize "Checks for library functions section"
12767 a bit. Remove check for `btowc' and `isascii' functions.
12768 * configure: Regenerated.
12769
5ee754fc
MK
12770 * acconfig.h (_MSE_INT_H): Remove.
12771 * configure.in: Create "Checks for header files" section, and move
12772 appropriate tests there. Don't check for objlist.h, wchar.h,
12773 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12774 misdetection fix. Also add "Checks for types", "Checks for
12775 compiler characteristics" and "Checks for library functions"
12776 sections.
12777 * config.in, configure: Regenerated.
12778
8bb2c122
MK
12779 * configure.in: Create "Checks for programs" section, and move
12780 appropriate tests there.
12781
9a156167
MK
127822003-01-01 Mark Kettenis <kettenis@gnu.org>
12783
12784 * configure.in: Create "Checks for libraries" section, and move
12785 appropriate tests there. Cleanup check for wctype in libw. Use
12786 AC_SEARCH_LIBS to see whether we need libsocket.
12787 * configure: Regenerated.
12788
a80e2bcb 12789For older changes see ChangeLog-2002
c906108c
SS
12790\f
12791Local Variables:
12792mode: change-log
12793left-margin: 8
12794fill-column: 74
12795version-control: never
12796End:
This page took 1.068262 seconds and 4 git commands to generate.