* x86-64-tdep.c: Remove duplicate comment.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ae53de43
MK
12003-10-06 Mark Kettenis <kettenis@gnu.org>
2
a8bb57e7
MK
3 * x86-64-tdep.c: Remove duplicate comment.
4
ae53de43
MK
5 * x86-64-tdep.c (x86_64_store_return_value): Don't use
6 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
7 names for return values. This fixes a bug since we looked at %rbx
8 instead of %rdx.
9
473f17b0
MK
102003-10-05 Mark Kettenis <kettenis@gnu.org>
11
2c261fae
MK
12 * x86-64-tdep.c: Include "regset.h".
13
473f17b0
MK
14 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
15 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
16 sizeof_fpregset.
17 * i386-tdep.c: Include "regset.h".
18 (i386_supply_gregset): New function.
19 (i386_supply_fpregset): New function.
20 (i386_gdbarch_init): Initialze register set-related members of
21 TDEP.
22 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
23 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
24
afd48b75
AC
252003-10-03 Andrew Cagney <cagney@redhat.com>
26
27 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
28 set extract_return_value, store_return_value and
29 use_struct_convention to ppc64_sysv_abi_extract_return_value,
30 ppc64_sysv_abi_store_return_value and
31 ppc64_sysv_abi_use_struct_convention.
32 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
33 (ppc64_sysv_abi_store_return_value): Declare.
34 (ppc64_sysv_abi_use_struct_convention): Declare.
35 * ppc-sysv-tdep.c (enum return_value_convention): Define.
36 (ppc64_sysv_abi_extract_return_value): New function.
37 (ppc64_sysv_abi_store_return_value): New function.
38 (ppc64_sysv_abi_use_struct_convention): New function.
39 (ppc64_sysv_abi_return_value): New function.
40
9b540880
AC
412003-10-03 Andrew Cagney <cagney@redhat.com>
42
43 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
44 convert a descriptor to a function when it's in the ".opd"
45 section.
46
8748518b
CV
472003-10-03 Corinna Vinschen <vinschen@redhat.com>
48
49 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
50 reg_size to keep GCC silent.
51
0fd85043
CV
522003-10-03 Corinna Vinschen <vinschen@redhat.com>
53
54 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
55 base for DW_EH_PE_textrel encodings.
56 (read_encoded_value): Add a DW_EH_PE_textrel case.
57 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
58 section.
59
37b517aa
MK
602003-10-03 Mark Kettenis <kettenis@gnu.org>
61
62 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
63
12c266ea
AC
642003-10-02 Andrew Cagney <cagney@redhat.com>
65
66 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
67 REGISTER_RAW_SIZE.
68 * gdbarch.h, gdbarch.c: Re-generate.
69 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
70 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
71 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
72 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
73 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
74 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
75 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
76 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
77 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
78 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
79 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
80 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
81 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
82 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
83 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
84 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
85
78ba4af6
JB
862003-10-02 Jim Blandy <jimb@redhat.com>
87
88 * dwarf2read.c (struct die_info): Doc fix.
89
617daa0e
CV
902003-10-02 Corinna Vinschen <vinschen@redhat.com>
91
92 * sh-tdep.c: Running thru gdb_indent.sh.
93
e5e33cd9
CV
942003-10-02 Corinna Vinschen <vinschen@redhat.com>
95
96 * sh-tdep.c (sh_justify_value_in_reg): New function.
97 (sh_stack_allocsize): Ditto.
98 (flt_argreg_array): New array used for floating point argument
99 passing.
100 (sh_init_flt_argreg): New function.
101 (sh_next_flt_argreg): Ditto.
102 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
103 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
104 Fix argument passing strategy.
105 (sh_push_dummy_call_nofpu): Ditto.
106
5fe830e4
AC
1072003-10-01 Andrew Cagney <cagney@redhat.com>
108
109 * value.h (register_value_being_returned): Declare. Replace
110 "value_being_returned".
111 * infcall.c (call_function_by_hand): Use
112 register_value_being_returned.
113 * infcmd.c (print_return_value): Call
114 "register_value_being_returned", handle struct return locally.
115 * values.c (register_value_being_returned): New function. Replace
116 "value_being_returned".
117
1182003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
119
120 * linux-proc.c (linux_do_registers): New function.
121 (linux_make_note_section): Use linux_do_registers in case of
122 single threaded inferior programs.
123
64f395bf
AC
1242003-10-01 Andrew Cagney <cagney@redhat.com>
125
126 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
127 use STRUCT_ADDR. When not using "struct return convention", pass
128 "0" to "value_being_returned". Add FIXMEs.
129 * infcmd.c (print_return_value): Pass an explicit 0/1 to
130 value_being_returned. Add comments.
131 * values.c (value_being_returned): Add fixme.
132 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
133 (hppa_value_returned_from_stack): Add FIXME.
134
639d11d3
DC
1352003-09-30 David Carlton <carlton@kealia.com>
136
137 * dwarf2read.c (struct die_info): Add 'parent' field; replace
138 'has_children' and 'next' by 'child' and 'sibling'.
139 (read_comp_unit): Rework algorithm, breaking body into
140 read_die_and_children and read_die_and_siblings.
141 (read_die_and_children, read_die_and_siblings): New.
142 (read_full_die): Add 'has_children' argument; set it instead of
143 the die's 'has_children' field. Minor formatting cleanup.
144 (free_die_list): Use die->child and die->sibling instead of
145 die->next.
146 (dump_die_list): Ditto.
147 (sibling_die): Use die->sibling.
148 (psymtab_to_symtab_1): Use die's 'child' field in place of its
149 'has_children' and 'next' fields.
150 (process_die, read_file_scope, read_func_scope)
151 (read_lexical_block_scope, read_structure_scope)
152 (read_enumeration, read_array_type, read_common_block)
153 (read_namespace, read_subroutine_type, dump_die): Ditto.
154
5bffac25
AC
1552003-09-30 Andrew Cagney <cagney@redhat.com>
156
157 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
158 to 224, not 220.
159
f30992d4
AC
1602003-09-30 Andrew Cagney <cagney@redhat.com>
161
162 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
163 REGISTER_VIRTUAL_SIZE.
164 * gdbarch.h, gdbarch.c: Regenerate.
165 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
166 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
167 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
168
2e092625
AC
1692003-09-29 Andrew Cagney <cagney@redhat.com>
170
171 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
172 DEPRECATED_REGISTER_VIRTUAL_TYPE.
173 * gdbarch.h, gdbarch.c: Regenerate.
174 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
175 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
176
177 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
178 * remote-vxmips.c (vx_read_register): Ditto.
179 * remote-vx68.c (vx_read_register): Ditto.
180 * gnu-nat.c (inf_validate_procs): Ditto.
181
7a5dd6ee
JB
1822003-09-29 J. Brobecker <brobecker@gnat.com>
183
184 * infcall.c (call_function_by_hand): Fix build failure
185 introduced in the previous change to this file.
186
1fe43d45
AC
1872003-09-29 Andrew Cagney <cagney@redhat.com>
188
189 * NEWS: Mention Objective-C.
190
e28a332c
JG
1912003-09-29 Jerome Guitton <guitton@act-europe.fr>
192
193 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
194 test if the register has been saved on the stack.
195 (arm_scan_prologue_cache): When analysing the instruction
196 "str lr, [sp, #-4]", save the address where lr has been stored.
197
9ff63c35
AC
1982003-09-28 Andrew Cagney <cagney@redhat.com>
199
7f5f525d
AC
200 * frame.c (frame_read_unsigned_register): Delete function.
201 * frame.h (frame_read_unsigned_register): Delete declaration.
202 * sparc-tdep.c (sparc_init_extra_frame_info): Use
203 get_frame_register_unsigned.
204 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
205 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
206 * d10v-tdep.c (d10v_print_registers_info): Ditto.
207
208 * frame.h (frame_read_register): Delete declaration.
209 * frame.c (frame_read_register): Delete function.
210 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
211 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
212 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
213 * mips-tdep.c (mips_register_to_value): Ditto.
214 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
215 * d10v-tdep.c (d10v_print_registers_info): Ditto.
216
217 * frame.c (frame_read_signed_register): Delete function.
218 (frame_read_unsigned_register): Update comments.
219 * frame.h (frame_read_signed_register): Delete declaration.
220 * h8300-tdep.c (h8300_print_register): Use
221 get_frame_register_signed.
222 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
223
9ff63c35
AC
224 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
225 Rename VALUE_RETURNED_FROM_STACK.
226 * infcmd.c (print_return_value): Update.
227 * infcall.c (call_function_by_hand): Update.
228
41d041d6
MK
2292003-09-28 Mark Kettenis <kettenis@gnu.org>
230
231 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
232 regcache argument and reverse the order of the other two
233 arguments. Remove local regcache variable. Determine
234 architecture from REGCACHE. Update comments.
235 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
236 reverse the order of the other two arguments. Remove local
237 regcache variable. Determine architecture from REGCACHE. Update
238 comments.
239 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
240 prototypes. Update comments.
241 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
242 comment.
243 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
244 Update.
245 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
246 * i386-interix-nat.c (supply_fpregset): Update.
247 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
248 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
249 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
250 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
251 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
252 Update.
253 * i386obsd-tdep.c (fetch_core_registers): Update.
254 * i386v4-nat.c (supply_fpregset): Update.
255 * x86-64-linux-nat.c (supply_fpregset): Update.
256 * x86-64-linux-tdep.c (fetch_core_registers): Update.
257
1cb97e17
MK
2582003-09-27 Mark Kettenis <kettenis@gnu.org>
259
5716833c
MK
260 * i386-tdep.h: Put opaque declarations in alphabetical
261 order. Remove spurious whitespace.
262 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
263 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
264 * i386-tdep.c (MM0_REGNUM): Remove define.
265 (i386_mmx_regnum_p): Add gdbarch argument.
266 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
267 Rewrite using new macro definitions for FPU/SSE registers.
268 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
269 definitions from i387-tdep.h.
270 (i386_register_name): Update.
271 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
272 new macro definitions for FPU/SSE registers.
273 (i386_extract_return_value): Determine whether floating-point
274 registers are present by examining REGCACHE's architecture.
275 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
276 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
277 FPU/SSE registers.
278 (i386_register_type): Update.
279 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
280 definitions for FPU registers. Use REGCACHE's architecture to
281 determine the appropriate register numbers.
282 (i386_pseudo_register_read, i386_pseudo_register_write,
283 i386_register_reggroup_p): Update.
284 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
285 TDEP->mm0_regnum.
286 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
287 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
288 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
289 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
290 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
291 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
292 *' to `void *'.
293 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
294 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
295 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
296 definitions for FPU/SSE registers.
297 (FXSAVE_MXCSR_ADDR): New define.
298 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
299 TDEP->mm0_regnum.
300 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
301 (I387_ST0_REGNUM): Define.
302
41d35cb0
MK
303 * regcache.h (get_regcache_arch): New prototype.
304 * regcache.c (get_regcache_arch): New function.
305
54e74f72
MK
306 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
307 whitespace.
308
1cb97e17
MK
309 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
310 Initialize using ARRAY_SIZE.
311
0968aa8c
AC
3122003-09-27 Andrew Cagney <cagney@redhat.com>
313
314 * arch-utils.c (deprecated_init_frame_pc_default): Rename
315 "init_frame_pc_default".
316 * arch-utils.h (deprecated_init_frame_pc_default): Update.
317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
318 * vax-tdep.c (vax_gdbarch_init): Update.
319 * v850-tdep.c (v850_gdbarch_init): Update.
320 * sh64-tdep.c (sh64_gdbarch_init): Update.
321 * s390-tdep.c (s390_gdbarch_init): Update.
322 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
323 * mcore-tdep.c (mcore_gdbarch_init): Update.
324 * h8300-tdep.c (h8300_gdbarch_init): Update.
325 * cris-tdep.c (cris_gdbarch_init): Update.
326 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
327
54c84734
MK
3282003-09-26 Mark Kettenis <kettenis@gnu.org>
329
330 * regset.h: New file.
331 * Makefile.in (regset_h): Add.
332
1b1d3794
AC
3332003-09-25 Andrew Cagney <cagney@redhat.com>
334
335 * frame.h (deprecated_frame_saved_regs): Rename
336 get_frame_saved_regs.
337 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
338 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
339 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
340 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
341 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
342
e6beb428
AC
3432003-09-25 Andrew Cagney <cagney@redhat.com>
344
345 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
346 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
347 and Java.
348 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
349 arm*-*-* do not use the new frame code.
350
710122da
DC
3512003-09-25 David Carlton <carlton@kealia.com>
352
353 * c-exp.y: Remove 'register' declarations.
354 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
355
79c2c32d
DC
3562003-09-25 David Carlton <carlton@kealia.com>
357
358 * c-exp.y: Include cp-support.h. Add qualified_type.
359 (yylex): Delete nested type hack; add comments.
360 * cp-namespace.c (cp_lookup_nested_type): New function.
361 * cp-support.h: Declare cp_lookup_nested_type.
362 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
363 instead of value_struct_elt_for_reference.
364 * valops.c: Include cp-support.h.
365 (value_aggregate_elt): New function.
366 (value_namespace_elt): Ditto.
367 (value_struct_elt_for_reference): Make static.
368 * value.h: Delete declaration of value_struct_elt_for_reference;
369 add declaration for value_aggregate_elt.
370 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
371 (valops.o): Ditto.
372
898c62f5
DJ
3732003-09-25 Daniel Jacobowitz <drow@mvista.com>
374
375 * stack.c: Include "reggroups.h".
376 (frame_info): Only display registers in all_reggroup.
377 * Makefile.in (stack.o): Update dependencies.
378
28cd8767
JG
3792003-09-25 Jerome Guitton <guitton@act-europe.fr>
380
381 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
382 "add ip, sp #n" in the prologue.
383 (arm_scan_prologue): Ditto.
384
a4ab2b5d
JG
3852003-09-25 Jerome Guitton <guitton@act-europe.fr>
386
387 * MAINTAINERS (write after approval): Add myself.
388
3f244638
AS
3892003-09-25 Andreas Schwab <schwab@suse.de>
390
391 * m68k-tdep.c: Include "dwarf2-frame.h".
392 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
393 * Makefile.in (m68k-tdep.o): Update dependencies.
394
1c0159e0
CV
3952003-09-25 Corinna Vinschen <vinschen@redhat.com>
396
397 * sh-tdep.c (struct frame_extra_info): Remove.
398 (struct sh_frame_cache): New structure.
399 (GET_SOURCE_REG): New macro extracting source register of an opcode.
400 (GET_TARGET_REG): Ditto but target register.
401 (GET_PUSHED_REG): Remove.
402 (IS_MOV_ARG_TO_REG): New macro.
403 (IS_MOV_ARG_TO_IND_R14): New macro.
404 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
405 (IS_MOVW_PCREL_TO_REG): New macro.
406 (IS_MOVL_PCREL_TO_REG): New macro.
407 (IS_SUB_REG_FROM_SP): New macro.
408 (IS_ARG_MOV): Remove.
409 (IS_MOV_TO_R14): Remove.
410 (IS_RESTORE_FP): New macro.
411 (IS_RTS): New macro.
412 (IS_LDS): New macro.
413 (IS_MOV_FP_SP): New macro.
414 (IS_ADD_REG_TO_FP): New macro.
415 (IS_ADD_IMM_FP): New macro.
416 (sh_skip_prologue_hard_way): Remove.
417 (sh_saved_pc_after_call): Remove.
418 (sh_frame_chain): Remove.
419 (sh_find_callers_reg): Remove.
420 (sh_nofp_frame_init_saved_regs): Remove.
421 (sh_fp_frame_init_saved_regs): Remove.
422 (sh_init_extra_frame_info): Remove.
423 (sh_analyze_prologue): New function.
424 (sh_skip_prologue): Remove deprecated code. Rely on new function
425 sh_analyze_prologue when after_prologue fails.
426 (sh_frame_saved_pc): Remove.
427 (sh_alloc_frame_cache): New function.
428 (sh_frame_cache): Ditto.
429 (sh_frame_prev_register): Ditto.
430 (sh_frame_this_id): Ditto.
431 (sh_frame_unwind): New structure defining the heuristic frame
432 sniffer interface.
433 (sh_frame_sniffer): New function.
434 (sh_unwind_sp): Ditto.
435 (sh_unwind_pc): Ditto.
436 (sh_unwind_dummy_id): Ditto.
437 (sh_frame_base_address): Ditto.
438 (sh_frame_base): New structure defining new frame base code.
439 (sh_in_function_epilogue_p): New function.
440 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
441 code and to call all new code instead. Initialize dwarf2 and
442 heuristic frame sniffer.
443
5f9769d1
PH
4442003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
445
446 * parser-defs.h (struct exp_descriptor): New definition, containing
447 language-specific info for printing, prefixifying, dumping, and
448 evaluating expressions.
449 (exp_descriptor_standard): Declare new variable.
450 (print_subexp): Make global and declare here (from expprint.c).
451 (dump_subexp): Ditto.
452 (dump_subexp_body_standard): Declare.
453 (operator_length_standard): Declare.
454 (op_name_standard): Declare.
455 (print_subexp): Declare.
456 (print_subexp_standard): Declare.
457
458 * language.h (struct language_defn): Add la_exp_desc field to hold
459 pointer to table for language-specific operators.
460 Remove evaluate_exp field, which is now in struct exp_descriptor.
461
462 * parse.c (operator_length): Move most code to new
463 operator_length_standard function. Use language-specific information.
464 (operator_length_standard): New function taking most code from
465 operator_length.
466 (exp_descriptor_standard): New constant.
467
468 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
469 and OP_EXTENDED_LAST.
470
471 * expprint.c (print_subexp): Use language-specific print_subexp.
472 Make global; remove static declaration.
473 Move most code to print_subexp_standard.
474 (print_subexp_standard): New function, containing code formerly in
475 print_subexp.
476 (op_name): Add expression to argument signature.
477 Use langauge-specific op_name.
478 Move most code to op_name_standard.
479 (op_name_standard): New function, containing code formerly in op_name.
480 (dump_subexp): Use new version of op_name function.
481 Use language-specific dump_subexp_body, and move most existing code to
482 dump_subexp_body_standard.
483 (dump_raw_expression): Use new op_name interface.
484 (dump_subexp_body): Move most code to dump_subexp_body_standard.
485 (dump_subexp_body_standard): New function, containing code formerly
486 in dump_subexp_body.
487
488 * language.c (unknown_language): Add default la_exp_desc field and
489 remove evaluate_exp field.
490 (auto_language): Ditto.
491 (local_language): Ditto.
492 * f-lang.c (f_language_defn): Ditto.
493 * c-lang.c (c_language_defn): Ditto.
494 (cplus_language_defn): Ditto.
495 (asm_language_defn): Ditto.
496 (minimal_language_defn): Ditto.
497 * p-lang.c (pascal_language_defn): Ditto.
498 * m2-lang.c (m2_language_defn): Ditto.
499 * objc-lang.c (objc_language_defn): Ditto.
500
501 * jv-lang.c (exp_descriptor_java): New variable, containing
502 Java-specific expression evaluator.
503 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
504 field.
505 * scm-lang.c (exp_descriptor_scm): New variable, containing
506 Scheme-specific expression evaluator.
507 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
508 field.
509 * objc-lang.c (print_object_command): Take evaluate_exp from the
510 la_exp_desc field.
511
512 * Makefile.in (eval.o): Add dependency on parser-defs.h.
513
514 * eval.c: Include parser-defs.h for the full declaration of
515 la_exp_desc's type.
516 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
517
24daaebc
PH
5182003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
519
520 * parser-defs.h (operator_length): Declare.
521
522 * parse.c (length_of_subexp): Use operator_length to get operator
523 lengths and arities for operators.
524 Move most code to new operator_length function.
525 (operator_length): New function absorbing most code from
526 length_of_subexp.
527 (prefixify_subexp): Remove large case and use operator_length instead.
528 (parse_exp_1): Use renamings:
529 dump_prefix_expression => dump_raw_expression and
530 dump_postfix_expression => dump_prefix_expression.
531
532 * expression.h (dump_prefix_expression): Rename to ...
533 (dump_raw_expression): New name.
534 (dump_postfix_expression): Rename to ...
535 (dump_prefix_expression): New name.
536
537 * expprint.c (dump_subexp): Make global. Add comment.
538 Move most existing code to dump_subexp_body.
539 (dump_subexp_body): New function.
540 (dump_prefix_expression): Rename to dump_raw_expression.
541 Remove attempt to print the expression via print_expression: it can't
542 work before the expression is prefixified.
543 (dump_raw_expression): Renamed from dump_prefix_expression.
544 (dump_postfix_expression): Rename to dump_prefix_expression, since
545 that's what it does.
546 Remove 'note' parameter, since this routine must be used on
547 prefixified expression.
548 (dump_prefix_expression): Renamed from dump_postfix_expression.
549
8c2957c4
JB
5502003-09-22 Jim Blandy <jimb@redhat.com>
551
552 * dwarf2read.c (read_array_type): When building the type for an
553 array of unspecified length, make sure to choose the upper bound
554 so that the array's total length comes out to be zero --- that's
555 how we represent such arrays.
556
592e3010
MC
5572003-09-22 Michael Chastain <mec@shout.net>
558
559 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
560
365c70b1
JJ
5612003-09-22 Jeff Johnston <jjohnstn@redhat.com>
562
563 * top.c (quit_force): Fix indirect call to quit_target so
564 a struct qt_args pointer is passed.
565
5d6eb653
AC
5662003-09-22 Andrew Cagney <cagney@redhat.com>
567
568 * arch-utils.h (init_frame_pc_noop): Delete declaration.
569 * arch-utils.c (init_frame_pc_noop): Delete function.
570 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
571 "init_frame_pc".
572 * mips-tdep.c (mips_gdbarch_init): Ditto.
573 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
574 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
575 declaration.
576 (DEPRECATED_INIT_FRAME_PC): Delete macro.
577 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
578 declaration.
579 (DEPRECATED_INIT_FRAME_PC): Delete macro.
580
b222a67f
AG
5812003-09-22 Anthony Green <green@redhat.com>
582
583 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
584 declaration.
585
d5b5ac79
AC
5862003-09-20 Andrew Cagney <cagney@redhat.com>
587
deafb061
AC
588 * breakpoint.c: Eliminate ARGSUSED.
589 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
590 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
591 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
592 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
593 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
594 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
595 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
596 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
597 * wince.c, remote-vx.c: Ditto.
598
d5b5ac79
AC
599 * cli/cli-script.c: Remove "register" attributes.
600 * config/pa/tm-hppa.h: Ditto.
601 * cli/cli-decode.c: Ditto.
602 * cli/cli-cmds.c: Ditto.
603
c6316faa
AC
6042003-09-19 Andrew Cagney <cagney@redhat.com>
605
606 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
607 DEPRECATED_NPC_REGNUM.
608 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
609
f4f99b11
CF
6102003-09-19 Christopher Faylor <cgf@redhat.com>
611
612 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
613
1708f284
JB
6142003-09-19 Jim Blandy <jimb@redhat.com>
615
616 * macrotab.c (macro_include): Use the correct comparison to find
617 the appropriate place for this inclusion in the list.
618
b9fbf434
AC
6192003-09-19 Andrew Cagney <cagney@redhat.com>
620
621 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
622 (DEPRECATED_HPUX_TEXT_END): Define.
623 (deprecated_hpux_text_end): Declare.
624 (struct target_ops): Declare opaque.
625 * hppah-nat.c (text_end): Make static.
626 (deprecated_hpux_text_end): New function.
627 * exec.c (text_end): Delete global variable.
628 (NEED_TEXT_START_END): Do not define.
629 (exec_file_attach): Replace code computing "text_end" code with
630 call to DEPRECATED_HPUX_TEXT_END.
631
5b03f266
AC
6322003-09-19 Andrew Cagney <cagney@redhat.com>
633
634 * utils.c (align_up, align_down): New functions.
635 * defs.h (align_up, align_down): Declare.
636 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
637 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
638 and "align_down".
639 (round_up, round_down): Delete functions.
640 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
641 "align_down".
642 (ROUND_DOWN, ROUND_UP): Delete macros.
643 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
644 * h8300-tdep.c: Replace "round_up" and "round_down" with
645 "align_up" and "align_down".
646 (round_up, round_down): Delete macros.
647 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
648 "align_down".
649 (ROUND_UP, ROUND_DOWN): Delete macros.
650
51db5742
JB
6512003-09-18 J. Brobecker <brobecker@gnat.com>
652
653 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
654 hard-coded constant. Use the proper machine name instead.
655
77949794
AC
6562003-09-17 Andrew Cagney <cagney@redhat.com>
657
658 * sparc-tdep.c (legacy_register_name): Delete function.
659 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
660 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
661 * infcmd.c (gdb_register_name): Delete variable.
662 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
663 REGISTER_NAME and "tm.h".
664 * gdbarch.h, gdbarch.c: Regenerate.
665 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
666 REGISTER_NAMES in comments.
667 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
668 * m68klinux-nat.c (regmap): Ditto.
669
b55c33cc
JB
6702003-09-17 Jim Blandy <jimb@redhat.com>
671
672 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
673
957e27ac
AC
6742003-09-17 Andrew Cagney <cagney@redhat.com>
675
676 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
677 (ppcnbsd_init_abi): Set "use_struct_convention" to
678 "ppcnbsd_use_struct_convention".
679
192cb3d4
MK
6802003-09-17 Mark Kettenis <kettenis@gnu.org>
681
682 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
683 * gdbarch.h, gdbarch.c: Regenerate.
684 (stabs_argument_has_addr): New architecture method.
685 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
686 * arch-utils.c: Include "buildsym.h".
687 (default_stabs_argument_has_addr): New function.
688 * stabsread.c (define_symbol): Use stabs_argument_has_addr
689 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
690
efe59759
AC
6912003-09-17 Andrew Cagney <cagney@redhat.com>
692
693 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
694 * gdbarch.h, gdbarch.c: Regenerate.
695 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
696 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
697 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
698 * sparcnbsd-tdep.c: Update.
699
62700349
AC
7002003-09-17 Andrew Cagney <cagney@redhat.com>
701
702 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
703 * gdbarch.h, gdbarch.c: Regenerate.
704 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
705 * d10v-tdep.c, frame.c: Update.
706 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
707 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
708 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
709 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
710 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
711 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
712 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
713 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
714 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
715 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
716 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
717 * config/pa/nm-hppah.h: Update.
718
b9ff3018
AC
7192003-09-16 Andrew Cagney <cagney@redhat.com>
720
721 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
722 "use_struct_convention" to "ppc_linux_use_struct_convention".
723 (ppc_linux_use_struct_convention): New function.
724 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
725 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
726 "rs6000_use_struct_convention".
727 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
728 declaration.
729 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
730 Delete function.
731
aa1ee363
AC
7322003-09-16 Andrew Cagney <cagney@redhat.com>
733
734 * buildsym.c: Remove more occurances of "register".
735 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
736 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
737 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
738 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
739 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
740 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
741 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
742 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
743
f2ea0907
CV
7442003-09-16 Corinna Vinschen <vinschen@redhat.com>
745
746 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
747 numbers to enumeration values.
748 * sh-tdep.c: Accomodate above change.
749 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
750 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
751 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
752 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
753 (IS_FPUSH): Rename from IS_FMOV.
754 (sh_extract_struct_value_address): Remove useless comment.
755 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
756 instead of own local values.
757 (sh_dump_tdep): Remove.
758 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
759 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
760
1c704f11
AC
7612003-09-15 Andrew Cagney <cagney@redhat.com>
762
763 * doublest.c (convert_floatformat_to_doublest): No longer need to
764 cast "exp_bias" to an int. Reverts 2002-12-04 change.
765
ac79b88b
DJ
7662003-09-15 Daniel Jacobowitz <drow@mvista.com>
767
768 * values.c (unpack_double): Call floatformat_is_valid.
769
1c671366
MK
7702003-09-15 Mark Kettenis <kettenis@gnu.org>
771
de5227fb
MK
772 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
773 ps_strings into a long.
774
1c671366
MK
775 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
776 _initialize_am64fbsd_nat.
777
a604369a
KB
7782003-09-15 Kevin Buettner <kevinb@redhat.com>
779
780 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
781 associated with DW_AT_ranges attribute is out of bounds.
782
b3cacbee
DL
7832003-09-15 David Lecomber <dsl@sources.redhat.com>
784
785 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
786
d0f37bb2
MC
7872003-09-14 Michael Chastain <mec@shout.net>
788
789 * config/m68k/nm-apollo68v.h: Delete.
790 * config/m68k/xm-apollo68v.h: Delete.
791
69517000
AC
7922003-09-14 Andrew Cagney <cagney@redhat.com>
793
794 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
795 * dcache.c: Update copyrights and descriptions.
796 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
797
ef8b349d
AC
7982003-09-14 Andrew Cagney <cagney@redhat.com>
799
800 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
801 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
802
52f0bd74
AC
8032003-09-14 Andrew Cagney <cagney@redhat.com>
804
805 * alpha-nat.c: Remove some occurances of "register".
806 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
807 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
808 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
809 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
810 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
811 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
812 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
813 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
814 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
815 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
816 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
817 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
818 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
819 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
820 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
821 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
822 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
823 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
824 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
825 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
826 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
827 * values.c, vax-tdep.c, xcoffread.c: Ditto.
828
4a4b3fed
AC
8292003-09-13 Andrew Cagney <cagney@redhat.com>
830
831 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
832 * ppc-tdep.h (struct regcache): Declare opaque.
833 * objfiles.h (struct objfile_data): Declare opaque.
834 * cp-support.h (struct objfile): Declare opaque.
835 * linux-nat.h (target_waitstatus): Declare opaque.
836
2110b94f
MK
8372003-09-14 Mark Kettenis <kettenis@gnu.org>
838
1c671366
MK
839 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
840 (stabs_argument_has_addr): New architecture method.
841 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
842 * arch-utils.c: Include "buildsym.h".
843 (default_stabs_argument_has_addr): New function.
844 * stabsread.c (define_symbol): Use stabs_argument_has_addr
845 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
846
2110b94f
MK
847 * cris-tdep.c (cris_gdbarch_init): Set
848 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
849 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
850 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
851 * mips-tdep.c (mips_gdbarch_init): Likewise.
852 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
853 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
854
48436ce6
AC
8552003-09-13 Andrew Cagney <cagney@redhat.com>
856
857 * values.c (using_struct_return): Delete "function" and "funcaddr"
858 parameters.
859 * value.h (using_struct_return): Update declaration.
860 * infcmd.c (finish_command_continuation): Update.
861 (finish_command): Update.
862 * infcall.c (call_function_by_hand): Update.
863 * eval.c (evaluate_subexp_standard): Update.
864
403d9909
CF
8652003-09-13 Christopher Faylor <cgf@redhat.com>
866
867 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
868 SSE registers since gdb will not operate correctly without this.
869 Restore include file ordering munged in previous change.
870 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
871
ebf7d56b
MK
8722003-09-13 Mark Kettenis <kettenis@gnu.org>
873
8e823e25
MK
874 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
875 REG_STRUCT_HAS_ADDR.
876 * gdbarch.c, gdbarch.h: Updated.
877 * infcall.c (call_function_by_hand): Update.
878 * stabsread.c (define_symbol): Updated.
879
ebf7d56b
MK
880 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
881
d3f13f72
CF
8822003-09-12 Christopher Faylor <cgf@redhat.com>
883
884 * win32-nat.c: Reorganize so that defines used by target headers are
885 actually defined by the system headers.
886 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
887 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
888
14f75137
JB
8892003-09-12 Jim Blandy <jimb@redhat.com>
890
d646061f
JB
891 * dbxread.c (read_dbx_symtab): Don't report an internal error if
892 the file has no .data, .bss, or .rodata sections. Instead wait
893 until we see a variable alleged to live in one of those sections.
894
2a13f9bc
JB
895 * dbxread.c (read_dbx_symtab): If we have no .data section and no
896 .bss section, presume that any variables we find live in the
897 .rodata section.
898
4f49b26b
JB
899 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
900 offsets for global and static variables.
901
14f75137
JB
902 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
903 symbol types are, by definition, in the .data section, so it is
904 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
905 If there is no .data section, there should be no N_DATA or N_DATA
906 | N_EXT symbols.
907
212c460c
MK
9082003-09-12 Mark Kettenis <kettenis@gnu.org>
909
910 * amd64fbsd-tdep.c: Fix sigtramp recognition.
911 (amd64fbsd_sigcontext_addr): Rewrite.
912 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
913 with correct values.
914 (amd64fbsd_sc_reg_offset): Initialize with correct values.
915 (amd64fbsd_init_abi): Fix typo.
916
68856ea3
AC
9172003-09-12 Andrew Cagney <cagney@redhat.com>
918
919 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
920 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
921
627b3ba2
AC
9222003-09-12 Andrew Cagney <cagney@redhat.com>
923
924 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
925 "entry_file_highpc". Update comments.
926 * defs.h (deprecated_inside_entry_file): Rename
927 "inside_entry_file".
928 * blockframe.c (deprecated_inside_entry_file): Rename
929 "inside_entry_file".
930 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
931 * vax-tdep.c (vax_frame_chain): Update.
932 * sh64-tdep.c (sh64_frame_chain): Update.
933 * sh-tdep.c (sh_frame_chain): Update.
934 * rs6000-tdep.c (rs6000_frame_chain): Update.
935 * ns32k-tdep.c (ns32k_frame_chain): Update.
936 * mips-tdep.c (mips_frame_chain): Update.
937 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
938 * m32r-tdep.c (m32r_frame_this_id): Update.
939 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
940 * frv-tdep.c (frv_frame_this_id): Update.
941 * d10v-tdep.c (d10v_frame_this_id): Update.
942 * cris-tdep.c (cris_frame_chain): Update.
943 * blockframe.c (legacy_frame_chain_valid): Update.
944 * avr-tdep.c (avr_frame_this_id): Update.
945 * arm-tdep.c (arm_prologue_this_id): Update.
946 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
947 * objfiles.c (objfile_relocate): Update.
948 * mipsread.c (mipscoff_symfile_read): Update.
949 (mipscoff_symfile_read): Update.
950 * mdebugread.c (parse_partial_symbols): Update.
951 * dwarfread.c (read_file_scope): Update.
952 * dwarf2read.c (read_file_scope): Update.
953 * dbxread.c (read_dbx_symtab): Update.
954 (read_dbx_symtab): Update.
955 * coffread.c (complete_symtab): Update.
956
b0abbc58
JJ
9572003-09-12 Jeff Johnston <jjohnstn@redhat.com>
958
959 * top.c (quit_target): New static helper function.
960 (quit_force): Moved code to quit_target(). Call quit_target()
961 via catch_errors() to catch errors during quit.
962
a1632d59
DC
9632003-09-11 David Carlton <carlton@kealia.com>
964
965 * buildsym.c (finish_block): Use allocate_block to allocate the
966 block.
967 * mdebugread.c (new_block): Add FIXME.
968
5c4e30ca
DC
9692003-09-11 David Carlton <carlton@kealia.com>
970
971 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
972 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
973 (recursive_dump_type): Ditto.
974 * printcmd.c (print_formatted): Ditto.
975 * typeprint.c (print_type_scalar): Ditto.
976 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
977 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
978 * cp-support.h: Declare cp_check_possible_namespace_symbols,
979 maint_cplus_cmd_list.
980 * cp-support.c: Make maint_cplus_cmd_list extern.
981 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
982 command.h.
983 (lookup_symbol_file): Look in possible namespace blocks when
984 appropriate.
985 (initialize_namespace_symtab): New.
986 (get_possible_namespace_block, free_namespace_block)
987 (check_possible_namespace_symbols)
988 (check_possible_namespace_symbols_loop)
989 (check_one_possible_namespace_symbol)
990 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
991 (_initialize_cp_namespace): Ditto.
992 * block.h: Declare allocate_block.
993 * block.c (allocate_block): New.
994 * jv-lang.c (get_java_class_symtab): Allocate blocks via
995 allocate_block.
996 * symfile.h: Update declaration of add_psymbol_to_list.
997 * symfile.c (add_psymbol_to_list): Return the partial symbol in
998 question.
999 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1000 scan_partial_symbols_call.
1001 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1002 helper functions.
1003 (add_partial_symbol): If necessary, scan mangled names for names
1004 of namespaces.
1005 (add_partial_namespace): Add NAMESPACE argument; generate partial
1006 symbols associated to namespaces.
1007 (add_partial_enumeration): Add NAMESPACE argument.
1008 (new_symbol): Allow namespace syms.
1009 (read_namespace): Generate namespace syms.
1010 * objfiles.h: Add opaque declaration of struct symtab.
1011 (struct objfile): Add cp_namespace_symtab member.
1012 * objfiles.c (allocate_objfile): Set
1013 objfile->cp_namespace_symtab.
1014 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1015 dictionary_h, command_h.
1016
33a7c2fc
AC
10172003-09-11 Andrew Cagney <cagney@redhat.com>
1018
1019 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1020 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1021 near the function's end.
1022 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1023 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1024 regcache_raw_write_signed to set SP_REGNUM.
1025
63cd24fe
EZ
10262003-09-11 Elena Zannoni <ezannoni@redhat.com>
1027
1028 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1029 orig_addrs is set up properly.
1030
f27dd7fd
AC
10312003-09-11 Andrew Cagney <cagney@redhat.com>
1032
1033 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1034 * gdbarch.h, gdbarch.c: Re-generate.
1035 * infcall.c (call_function_by_hand): Update.
1036 * hppa-tdep.c (hppa_push_arguments): Update.
1037 * ada-lang.c (place_on_stack): Update.
1038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1039 * sparc-tdep.c (sparc_gdbarch_init): Update.
1040 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1041 * hppa-tdep.c (hppa_gdbarch_init): Update.
1042 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1043 stack_align.
1044
f630a401
DJ
10452003-09-11 Daniel Jacobowitz <drow@mvista.com>
1046
1047 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1048 register do need a frame.
1049
0ddabb4c
AC
10502003-09-11 Andrew Cagney <cagney@redhat.com>
1051
1052 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1053 buildable since GDB 5.0.
1054 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1055 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1056 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1057 * irix4-nat.c: Delete file.
1058 * config/mips/irix4.mh: Delete file.
1059 * config/mips/irix3.mh: Delete file.
1060 * config/mips/irix3.mt: Delete file.
1061 * config/mips/tm-irix3.h: Delete file.
1062 * config/mips/nm-irix3.h: Delete file.
1063 * config/mips/xm-irix3.h: Delete file.
1064 * config/mips/nm-irix4.h: Delete file.
1065 * config/mips/xm-irix4.h: Delete file.
1066 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1067
fde2cceb
JB
10682003-09-10 J. Brobecker <brobecker@gnat.com>
1069
1070 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1071 * Makefile.in (hppa-tdep.o): Update dependencies.
1072
66f667f5
JW
10732003-09-10 James E Wilson <wilson@specifixinc.com>
1074
ef5fd69f
JW
1075 * MAINTAINERS: Change my e-mail address. Move to paper trail
1076 section.
66f667f5 1077
53e8aaea
KB
10782003-09-10 Kevin Buettner <kevinb@redhat.com>
1079
1080 * MAINTAINERS (frv): New ISA entry.
1081
dcc6aaff
KB
10822003-09-10 Kevin Buettner <kevinb@redhat.com>
1083
1084 * frv-tdep.c (dis-asm.h): Include.
1085 * Makefile.in (frv-tdep.o): Update dependencies.
1086
932644f0
JJ
10872003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1088
1089 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1090 Fix typo for high range of floating registers.
1091
91c24f0a
DC
10922003-09-09 David Carlton <carlton@kealia.com>
1093
1094 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1095 highpc initialization here out of scan_partial_symbols.
1096 (scan_partial_symbols): Restructure into a recursive version,
1097 calling add_partial_namespace and add_partial_enumeration when
1098 appropriate.
1099 (add_partial_namespace): New.
1100 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1101
c9263853
AC
11022003-09-09 Andrew Cagney <cagney@redhat.com>
1103
e56a0ecc
AC
1104 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1105 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1106 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1107 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1108
794a477a
AC
1109 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1110 (rs6000_push_dummy_call): Set the "TOC" register.
1111
c9263853
AC
1112 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1113 methods "max_register_raw_size", "max_register_virtual_size" or
1114 "register_virtual_size".
1115
afa7d0b2
ILT
11162003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1117
1118 * MAINTAINERS: Update my e-mail address.
1119
7a41266b
AC
11202003-09-09 Andrew Cagney <cagney@redhat.com>
1121
1122 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1123 (rs6000_push_dummy_call): Store the struct return address.
1124 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1125
77b2b6d4
AC
11262003-09-09 Andrew Cagney <cagney@redhat.com>
1127
1128 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1129 "ppc_sysv_abi_push_arguments".
1130 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1131 "ppc_sysv_abi_push_arguments".
1132 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1133 instead of "push_arguments".
1134 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1135
e8a7b686
AC
11362003-09-09 Andrew Cagney <cagney@redhat.com>
1137
1138 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1139 instead of CALL_DUMMY_ADDRESS.
1140
f86f5ca3
PH
11412003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1142
1143 * p-lang.c: Eliminate "register".
1144 * c-lang.c: Ditto.
1145 * expprint.c: Ditto.
1146 * f-lang.c: Ditto.
1147 * jv-lang.c: Ditto.
1148 * language.c: Ditto.
1149 * m2-lang.c: Ditto.
1150 * parse.c: Ditto.
1151 * scm-lang.c: Ditto.
1152 * objc-lang.c: Ditto.
1153
83ee270e
NC
11542003-09-09 Nick Clifton <nickc@redhat.com>
1155
1156 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1157
a89aa300
AC
11582003-09-04 Andrew Cagney <cagney@redhat.com>
1159
1160 * avr-tdep.c: Include "dis-asm.h".
1161 * cris-tdep.c: Include "dis-asm.h".
1162 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1163 instead of corresponding typedef.
1164 * h8300-tdep.c: Include "dis-asm.h".
1165 * ia64-tdep.c: Include "dis-asm.h".
1166 * i386-tdep.c: Include "dis-asm.h".
1167 (i386_print_insn): Use "struct disassemble_info" instead of
1168 corresponding typedef.
1169 * m68k-tdep.c: Include "dis-asm.h".
1170 * mcore-tdep.c: Include "dis-asm.h".
1171 * mips-tdep.c: Include "dis-asm.h".
1172 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1173 instead of corresponding typedef.
1174 * ns32k-tdep.c: Include "dis-asm.h".
1175 * s390-tdep.c: Include "dis-asm.h".
1176 * sparc-tdep.c: Include "dis-asm.h".
1177 * vax-tdep.c: Include "dis-asm.h".
1178 * v850-tdep.c: Include "dis-asm.h".
1179 * mn10300-tdep.c: Include "dis-asm.h".
1180 * rs6000-tdep.c: Include "dis-asm.h".
1181 * xstormy16-tdep.c: Include "dis-asm.h".
1182 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1183 print_insn_xstormy16.
1184 * Makefile.in (v850-tdep.o): Update dependencies.
1185 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1186 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1187 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1188 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1189 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1190 (gdbarch_h): Remove $(dis_asm_h).
1191 * disasm.c: Include "dis-asm.h".
1192 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1193 corresponding typedef.
1194 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1195 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1196 * gdbarch.sh: Do not include "dis-asm.h".
1197 (struct disassemble_info): Declare opaque.
1198 (TARGET_PRINT_INSN): Update declaration.
1199 * gdbarch.h, gdbarch.c: Re-generate.
1200
88a82a65
AC
12012003-09-08 Andrew Cagney <cagney@redhat.com>
1202
1203 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1204 CALL_DUMMY_ADDRESS, change to a predicate.
1205 * gdbarch.h, gdbarch.c: Re-generate.
1206 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1207 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1208 * infcall.c (call_function_by_hand): Ditto.
1209 * sparc-tdep.c (sparc_push_return_address): Ditto.
1210 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1211 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1212 CALL_DUMMY_ADDRESS with entry_point_address.
1213 * v850-tdep.c (v850_push_return_address): Ditto.
1214 * s390-tdep.c (s390_push_return_address): Ditto.
1215 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1216 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1217 * mcore-tdep.c (mcore_push_return_address): Ditto.
1218 * cris-tdep.c (cris_push_return_address): Ditto.
1219 * arm-tdep.c (arm_push_return_address): Ditto.
1220
3e2c4033
AC
12212003-09-08 Andrew Cagney <cagney@redhat.com>
1222
1223 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1224 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1225 and REG_UNMODIFIED to REG_SAME_VALUE.
1226 (execute_cfa_program): Update.
1227 (dwarf2_frame_cache): Update. Initialize table to
1228 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1229 location.
1230 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1231
39efb398
AC
12322003-09-08 Andrew Cagney <cagney@redhat.com>
1233
1234 * gnu-nat.c: Remove "inline" function attribute.
1235 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1236
f5cb5aca
KB
12372003-09-08 Kevin Buettner <kevinb@redhat.com>
1238
1239 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1240 target.
1241
1cb761c7
KB
12422003-09-08 Kevin Buettner <kevinb@redhat.com>
1243
1244 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1245 (frame_extra_info): Rename this struct to frv_unwind_cache.
1246 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1247 Add fields ``prev_sp'' and ``base''.
1248 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1249 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1250 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1251 Delete.
1252 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1253 Revise all callers. Fill in the unwind cache argument and make
1254 other adjustments to account for new frame mechanisms.
1255 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1256 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1257 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1258 (frv_frame_unwind, frv_frame_base): New structs.
1259 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1260 additional arguments expected by this method and adjust function
1261 body accordingly.
1262 (frv_gdbarch_init): Remove calls to the following functions:
1263 set_gdbarch_deprecated_init_frame_pc(),
1264 set_gdbarch_deprecated_saved_pc_after_call(),
1265 set_gdbarch_deprecated_frame_chain(),
1266 set_gdbarch_deprecated_frame_saved_pc(),
1267 set_gdbarch_deprecated_frame_init_saved_regs(),
1268 set_gdbarch_deprecated_push_arguments(),
1269 set_gdbarch_deprecated_push_return_address(),
1270 set_gdbarch_deprecated_pop_frame(),
1271 set_gdbarch_deprecated_call_dummy_words(),
1272 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1273 set_gdbarch_deprecated_init_extra_frame_info(),
1274 set_gdbarch_deprecated_dummy_write_sp(), and
1275 set_gdbarch_deprecated_pc_in_call_dummy().
1276 Add calls to the following functions:
1277 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1278 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1279 frame_base_set_default().
1280 * Makefile.in (frv-tdep.o): Update dependencies.
1281
68f6cf99
MK
12822003-09-09 Mark Kettenis <kettenis@gnu.org>
1283
1284 * dwarf2-frame.c (read_encoded_value): Add support for
1285 DW_EH_PE_aligned encoding.
1286
73b65bb0
DJ
12872003-09-08 Daniel Jacobowitz <drow@mvista.com>
1288
1289 * infrun.c (normal_stop): Don't print a message if the inferior
1290 has exited.
1291
7c8a5605
JB
12922003-09-08 Jim Blandy <jimb@redhat.com>
1293
1294 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1295 * dbxread.c: #include "gdb_assert.h".
1296 (read_dbx_symtab): If the objfile has no .data section, use the
1297 section index for the .bss section instead.
1298
7dd88986
DJ
12992003-09-08 Daniel Jacobowitz <drow@mvista.com>
1300
1301 * frame.c (deprecated_safe_get_selected_frame): New function.
1302 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1303 * findvar.c (read_var_value): Call it.
1304
55ff77ac
CV
13052003-09-08 Corinna Vinschen <vinschen@redhat.com>
1306
1307 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1308 (sh64-tdep.o): Add dependencies.
1309 * configure.tgt: Add FIXME to sh-*-linux*.
1310 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1311 (sh_gdbarch_init): Always set correct sh_show_regs function
1312 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1313 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1314 * sh64-tdep.c: New file, containing all sh64 related code from
1315 sh-tdep.c.
1316 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1317 * config/sh/linux.mt (TDEPFILES): Ditto.
1318 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1319 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1320 * config/sh/wince.mt (TDEPFILES): Ditto.
1321
bfb39158
DJ
13222003-09-07 Daniel Jacobowitz <drow@mvista.com>
1323
1324 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1325 (stop_wait_callback): Handle !lp->signalled also.
1326 (lin_lwp_has_pending, flush_callback): New functions.
1327 (lin_lwp_wait): Call flush_callback.
1328 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1329 (linux_proc_pending_signals): New function.
1330 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1331
9407de8e
DJ
13322003-09-07 Daniel Jacobowitz <drow@mvista.com>
1333
1334 From Nick Kelsey <nickk@ubicom.com>:
1335 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1336 when the stop PC is at the beginning of a function also.
1337
2ef47cd0
DJ
13382003-09-06 Daniel Jacobowitz <drow@mvista.com>
1339
1340 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1341 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1342
6f4492c8
MK
13432003-09-06 Mark Kettenis <kettenis@gnu.org>
1344
1345 * sol-thread.c: Include "gdb_string.h".
1346
d3420b2f
MK
13472003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1348
1349 * gcore.c: Reorder include files in alphabetical order. Include
1350 "gdb_assert.h". Various coding style fixes.
1351 (derive_stack_segment, derive_heap_segment): Replace check for
1352 non-null BOTTOM and TOP with gdb_assert.
1353 (derive_heap_segment): Replace check for successful creation of
1354 ZERO with gdb_assert.
1355 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1356
5220ea4c
AC
13572003-09-04 Andrew Cagney <cagney@redhat.com>
1358
1359 * thread-db.c (verbose_dlsym): New function.
1360 (thread_db_load): Use verbose_dlsym
1361 (thread_db_new_objfile): Print that libthread_db was loaded, and
1362 that thread debugging was enabled.
1363
6e8c2c06
AC
13642003-09-04 Andrew Cagney <cagney@redhat.com>
1365
1366 * configure.tgt: Add "mips64*-*-*" target. Delete
1367 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1368 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1369 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1370 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1371 mips*-sony-*, and mips64*-*-elf* targets.
1372 * config/mips/embedl.mt: Delete file.
1373 * config/mips/embedl64.mt: Delete file.
1374 * config/mips/mips.mt: Delete file.
1375 * config/mips/mips64.mt: Delete file.
1376 * config/mips/tm-embed.h: Delete file.
1377 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1378 * config/mips/embed64.mt: Delete out-of-date comment.
1379
3a3bc038
AC
13802003-09-04 Andrew Cagney <cagney@redhat.com>
1381
1382 * hppa-tdep.c (hppa_gdbarch_init): Set
1383 "have_nonsteppable_watchpoint".
1384 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1385 * mips-tdep.c (mips_dump_tdep): Do not print
1386 HAVE_NONSTEPPABLE_WATCHPOINT.
1387 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1388 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1389 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1390 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1391
a957e642
CV
13922003-09-04 Corinna Vinschen <vinschen@redhat.com>
1393
1394 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1395 unused code. Add comment.
1396
a6fbcf2f
CV
13972003-09-04 Corinna Vinschen <vinschen@redhat.com>
1398
1399 * breakpoint.c (watchpoint_check): Check for pc being in an
1400 epilogue if watchpoint frame couldn't be found.
1401
c14a44d5
AC
14022003-09-04 Andrew Cagney <cagney@redhat.com>
1403
1404 * Makefile.in: Re-generate all dependencies.
1405
f6c40618
AC
14062003-09-03 Andrew Cagney <cagney@redhat.com>
1407
1408 * arch-utils.h (legacy_print_insn): Delete declaration.
1409 * arch-utils.c (legacy_print_insn): Delete function.
1410 * disasm.c (deprecated_tm_print_insn_info): Delete.
1411 (_initialize_disasm): Delete function, contained code initializing
1412 deprecated_tm_print_insn_info.
1413 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1414 (deprecated_tm_print_insn_info): Delete.
1415 (TARGET_PRINT_INSN): Do not provide a default.
1416 * gdbarch.h, gdbarch.c: Re-generate.
1417
242e8be5
AC
14182003-09-03 Andrew Cagney <cagney@redhat.com>
1419
1420 * disasm.c (fprintf_disasm): New function.
1421 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1422 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1423 reverts 2003-08-14 change.
1424 (_initialize_disasm): Call "init_disassemble_info", instead of
1425 INIT_DISASSEMBLE_INFO_NO_ARCH.
1426
3ffc3dda
MS
14272003-09-03 Michael Snyder <msnyder@redhat.com>
1428
1429 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1430
52d16ba8
AC
14312003-09-03 Andrew Cagney <cagney@redhat.com>
1432
1433 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1434 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1435 * symfile.c (syms_from_objfile): Update.
1436 (reread_symbols): `Update
1437 * exec.c (exec_file_attach): Update.
1438 (exec_file_attach): Update.
1439 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1440 2003-08-29 change.
1441 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1442
eb5492fa
DJ
14432003-09-03 Daniel Jacobowitz <drow@mvista.com>
1444
1445 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1446 trad-frame.h.
1447 (arm_get_cache): Delete macro.
1448 (struct arm_prologue_cache): Update comments. Make saved_regs into
1449 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1450 to prev_sp.
1451 (thumb_scan_prologue): Update for cache changes. Don't call
1452 DEPRECATED_PC_IN_CALL_DUMMY.
1453 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1454 argument and use it in desperation search for our prologue. Do not
1455 search past the specified PC.
1456 (arm_make_prologue_cache): Simplify.
1457
1458 (arm_prologue_this_id, arm_prologue_prev_register)
1459 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1460 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1461 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1462 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1463 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1464
1465 (arm_frame_chain_valid, arm_find_callers_reg)
1466 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1467 (arm_pop_frame): Delete obsolete methods.
1468 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1469
1470 (arm_gdbarch_init): Update for new frame methods. Register prologue
1471 and sigtramp unwinders. Set the default frame base method.
1472
1473 * Makefile.in (arm-tdep.o): Update dependencies.
1474 * varobj.c (find_frame_addr_in_frame_chain): Call
1475 get_frame_base_address.
1476 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1477
24de872b
DJ
14782003-09-03 Daniel Jacobowitz <drow@mvista.com>
1479
1480 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1481 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1482 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1483 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1484 Take NEXT_FRAME and CACHE arguments. Call
1485 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1486 Set unwound_pc in CACHE instead of modifying the frame argument.
1487 Don't bother checking the frame type when looking for sigtramp
1488 frames.
1489 (arm_make_prologue_cache, arm_frame_chain)
1490 (arm_init_extra_frame_info): New functions.
1491
9b8d791a
DJ
14922003-09-03 Daniel Jacobowitz <drow@mvista.com>
1493
1494 * arm-tdep.c (arm_get_cache): Define.
1495 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1496 unwound_sp, unwound_pc, and saved_regs.
1497 (thumb_scan_prologue): Take a cache instead of the frame.
1498 (arm_scan_prologue): Likewise.
1499 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1500 instead of a temporary frame.
1501 (arm_init_extra_frame_info): Allocate and use a cache.
1502 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1503
7ee3275f
AC
15042003-09-03 Andrew Cagney <cagney@redhat.com>
1505
1506 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1507 * config/mips/wince.mt (TM_CLIBS): Ditto.
1508 * config/sh/wince.mt (TM_CLIBS): Ditto.
1509 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1510 * config/sparc/sp64.mt (CC): Delete.
1511
57b29be7
AC
15122003-09-03 Andrew Cagney <cagney@redhat.com>
1513
1514 * defs.h: Do not include "arch-utils.h".
1515 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1516 GDB_MULTI_ARCH_PURE.
1517 * configure.in (GDB_MULTI_ARCH): Do not define.
1518 * configure, config.in: Regenerate.
1519 * configure.tgt: Do not set variable "gdb_multi_arch".
1520 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1521 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1522 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1523 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1524 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1525 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1526 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1527 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1528 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1529 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1530 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1531 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1532 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1533 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1534 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1535 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1536 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1537 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1538
12e035e2
MC
15392003-08-30 Michael Chastain <mec@shout.net>
1540
1541 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1542 * config/m68k/nm-hp300hpux.h: Delete.
1543 * config/m68k/tm-hp300hpux.h: Delete.
1544 * config/m68k/xm-hp300hpux.h: Delete.
1545 * config/m68k/xm-hp300bsd.h: Delete.
1546 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1547 tm-hp300hpux.h, xm-hp300hpux.h.
1548 * somsolib.c: Remove comment about hp300 shared libraries.
1549
bda34dc2
MK
15502003-08-31 Mark Kettenis <kettenis@gnu.org>
1551
5bca7895
MK
1552 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1553 Only define PTRACE_GET_THREAD_AREA is not already defined.
1554 Various style fixes in code and comments and some additional
1555 spelling fixes in comments. Move after functions dealing with
1556 debug registers.
1557 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1558 Fix coding-style.
1559
bda34dc2
MK
1560 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1561 frame_unwind_register_unsigned instead of
1562 frame_unwind_unsigned_register.
1563
c890192f
MK
15642003-08-30 Mark Kettenis <kettenis@gnu.org>
1565
1566 * configure.in: Search for gethostbyname in libnsl.
1567 * configure: Regenerated.
1568
60fac5b8
MK
15692003-08-29 Mark Kettenis <kettenis@gnu.org>
1570
e294916c
MK
1571 * configure.in: Remove redundant AC_MSG_RESULT in check for
1572 uintptr_t in stdint.h.
1573 * configure: Regenerated.
1574
c40d267a
MK
1575 * amd64-nat.h (struct regcache): Add opaque declaration.
1576
60fac5b8
MK
1577 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1578 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1579 Change "register array" to "register cache" in comments.
1580 (x86_64_linux_gregset64_reg_offset): New variable.
1581 (GETREGS_SUPPLIES): Remove macro.
1582 (supply_gregset): Call amd64_supply_native_gregset instead of
1583 x86_64_linux_supply_gregset.
1584 (fill_gregset): Rename `regno' to `regnum'. Call
1585 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1586 (store_regs): Rename `regno' to `regnum'.
1587 (store_fpregs): Rename `regno' to `regnum'.
1588 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1589 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1590 Reorganize function a bit.
1591 (store_inferior_registers): Rename `regno' to `regnum'. Use
1592 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1593 Reorganize function a bit.
1594 (_initialize_x86_64_linux_nat): New function.
1595 * config/i386/x86-64linux.mh.
1596
546143b6
AC
15972003-08-29 Andrew Cagney <cagney@redhat.com>
1598
1599 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1600 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1601 (target_remove_watchpoint): Delete macro.
1602 (target_insert_watchpoint): Delete macro.
1603 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1604 (remote_mips_stopped_by_watchpoint): Delete declaration.
1605 (remote_mips_remove_watchpoint): Delete declaration.
1606 (remote_mips_set_watchpoint): Delete declaration.
1607 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1608 * remote-mips.c (_initialize_remote_mips): Set
1609 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1610 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1611 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1612 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1613 (mips_stopped_by_watchpoint): Rename
1614 remote_mips_stopped_by_watchpoint.
1615 (mips_can_hardware_watchpoint): Rename
1616 remote_mips_can_use_hardware_watchpoint, update function
1617 signature.
1618
7bace51b
MK
16192003-08-29 Mark Kettenis <kettenis@gnu.org>
1620
b0f5c6f2
MK
1621 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1622 USER_DS. We haven't given them a register number yet.
1623
2a6d284d
MK
1624 * amd64-nat.h: New file.
1625 * amd64-nat.c: New file.
1626 * amd64fbsd-nat.c: Include "amd64-nat.h".
1627 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1628 (amd64fbsd32_r_reg_offset): New variable.
1629 (supply_gregset): Simply call amd64_supply_native_gregset.
1630 (fill_gregset): Rename `regno' to `regnum'. Simply call
1631 amd64_collect_native_gregset.
1632 (fill_fpregset): Rename `regno' to `regnum'.
1633 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1634 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1635 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1636 `fpregset_t'. Call amd64_supply_native_gregset instead of
1637 supply_gregset. Call x86_64_supply_fxsave instead of
1638 supply_fpregset.
1639 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1640 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1641 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1642 `fpregset_t'. Call amd64_collect_native_gregset instead of
1643 fill_gregset. Call x86_64_collect_fxsave instead of
1644 fill_fpregset.
1645 (_initialize_am64fbsd_nat): Initialize
1646 amd64_native_gregset32_reg_offset and
1647 amd64_native_gregset64_reg_offset.
1648 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1649
a16d75cc
MK
1650 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1651 null pointer. Fix typo in comment.
1652
7bace51b
MK
1653 * regcache.c (supply_register): Reimplement to call
1654 regcache_raw_supply.
1655 (regcache_collect): Reimplement by calling regcache_raw_collect.
1656
9a661b68
MK
16572003-08-28 Mark Kettenis <kettenis@gnu.org>
1658
1659 * regcache.c (register_buffer): Consitify first argument.
1660 (regcache_raw_supply, regcache_raw_collect): New
1661 functions.
1662
e94cc8fa
DJ
16632003-08-28 Daniel Jacobowitz <drow@mvista.com>
1664
1665 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1666 by Nathan J. Williams.
1667
c64bd0ce
DJ
16682003-08-28 Daniel Jacobowitz <drow@mvista.com>
1669
1670 * lin-lwp.c (wait_lwp): New function, copied from
1671 stop_wait_callback. Clean up.
1672 (stop_wait_callback): Use wait_lwp.
1673
e5ab0dce
AC
16742003-08-28 Andrew Cagney <cagney@redhat.com>
1675
1676 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1677 flavour and disassembler options.
1678 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1679 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1680 deprecated_tm_print_insn_info.
1681
a788de9b
AC
16822003-08-27 Andrew Cagney <cagney@redhat.com>
1683
1684 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1685 Use target_read_memory.
1686 (s390_get_frame_info): Update. Do not reference
1687 deprecated_tm_print_insn_info.
1688 (s390_check_function_end, s390_is_sigreturn): Ditto.
1689
36482093
AC
16902003-08-27 Andrew Cagney <cagney@redhat.com>
1691
1692 * Makefile.in (cris-tdep.o): Update dependencies.
1693 * cris-tdep.c: Include "gdb_assert.h".
1694 (cris_gdbarch_init): Set print_insn.
1695 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1696 (cris_delayed_get_disassembler): Simplify, directly call the
1697 disassembler returned by cris_get_disassembler.
1698 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1699 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1700 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1701 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1702 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1703 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1704 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1705 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1706 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1707 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1708 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1709 (gdb_print_insn_sparc): Delete function.
1710 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1711 deprecated_tm_print_insn_info.
1712 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1713 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1714 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1716 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1717 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1718 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1719 (s390_gdbarch_init): Set print_insn.
1720
0285512f
AC
17212003-08-27 Andrew Cagney <cagney@redhat.com>
1722
1723 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1724 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1725 * infcall.c (call_function_by_hand): Convert the entry point
1726 address into a code address.
1727
cdcd5552
AC
17282003-08-27 Andrew Cagney <cagney@redhat.com>
1729
1730 * dsrec.c: Include "gdb_string.h".
1731 * Makefile.in (dsrec.o): Update dependencies.
1732
e85cddad
MC
17332003-08-27 Michael Chastain <mec@shout.net>
1734
1735 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1736
8bbfbb23
AC
17372003-08-27 Andrew Cagney <cagney@redhat.com>
1738
1739 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1740 (alpha_osf1_init_abi): Do not set call_dummy_address.
1741
ba058b66
DC
17422003-08-27 David Carlton <carlton@kealia.com>
1743
1744 From Randolph Chung <tausq@debian.org>:
1745 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1746 compiles with -Wformat-nonliteral -Werror.
1747
87f84c9d
JB
17482003-08-26 Jim Blandy <jimb@redhat.com>
1749
1750 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1751 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1752 bfd_lookup_symbol, since we only want symbols in code sections.
1753 (look_for_base): Pass zero as the SECT_FLAGS argument to
1754 bfd_lookup_symbol, since we're not concerned about which section
1755 the symbol is in.
1756
102d615a
JJ
17572003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1758
1759 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1760 we are frameless or the return address register is already known.
1761
cc7ad3ea
AC
17622003-08-26 Andrew Cagney <cagney@redhat.com>
1763
1764 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1765 in size. Add comments.
1766
af8b88dd
JJ
17672003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1768
1769 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1770 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1771
e0a4f5a1
JM
17722003-08-26 Jason Merrill <jason@redhat.com>
1773
1774 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1775 case out of #ifdef MIPS block.
1776
4ae9ee8e
DJ
17772003-08-25 Daniel Jacobowitz <drow@mvista.com>
1778
1779 PR java/1322
1780 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1781 available before calling SECT_OFF_TEXT.
3c164570 1782 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1783
004d836a
JJ
17842003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1785
1786 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1787 bof, and nat0-nat127 as pseudo-registers.
1788 (ia64_frame_cache): New struct used to cache frame info.
1789 (ia64_register_reggroup_p): New routine used to override default
1790 register grouping so registers without names are still saved and
1791 restored.
1792 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1793 pseudo values.
1794 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1795 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1796 (ia64_alloc_frame_cache): New routine to create a new
1797 ia64_frame_cache.
1798 (examine_prologue): Change prototype to add next_frame pointer.
1799 Assume frameless until otherwise proven. Verify that the cfm for
1800 current frame matches the cfm that should occur for the prologues
1801 alloc insn and if equal, mark as not frameless. At end of routine,
1802 if not frameless, calculate registers for the previous frame and store
1803 in the cache, if a cache is provided.
1804 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1805 and pass 0 for next_frame.
1806 (ia64_store_return_value): Change to use convert_typed_floating()
1807 instead of calling ia64_convert_to_raw().
1808 (ia64_extract_return_value): Change to use convert_typed_floating()
1809 instead of calling ia64_convert_to_virtual().
1810 (ia64_frame_cache): New routine to support new frame model.
1811 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1812 (ia64_frame_sniffer): Ditto.
1813 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1814 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1815 (ia64_sigtramp_frame_prev_register): Ditto.
1816 (ia64_sigtramp_frame_sniffer): Ditto.
1817 (ia64_frame_base_address): Ditto.
1818 (ia64_extract_struct_value_address): Change to issue error message.
1819 (ia64_frame_align): New routine to align sp.
1820 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1821 (ia64_push_arguments): Removed. Logic moved to
1822 ia64_push_dummy_call().
1823 (ia64_push_return_address): Ditto.
1824 (ia64_unwind_dummy_id): New function.
1825 (ia64_unwind_pc): Ditto.
1826 (ia64_convert_register_p): Ditto.
1827 (ia64_register_to_value): Ditto.
1828 (ia64_value_to_register): Ditto.
1829 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1830 (ia64_register_byte, ia64_register_raw_size): Ditto.
1831 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1832 (ia64_saved_pc_after_call): Ditto.
1833 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1834 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1835 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1836 (ia64_register_convert_to_raw): Ditto.
1837 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1838 (ia64_init_extra_frame_info): Ditto.
1839 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1840 (ia64_gdbarch_init): Remove registering of deprecated functions that
1841 are no longer used. Add registration of new gdbarch functions.
1842 Remove registering deprecated_write_sp. Replace
1843 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1844 Delete set_gdbarch_deprecated_register_convertible(),
1845 set_gdbarch_deprecated_register_convert_to_virtual(), and
1846 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1847 set_gdbarch_deprecated_register_size(),
1848 set_gdbarch_deprecated_register_bytes(),
1849 set_gdbarch_pcregnum(),
1850 set_gdbarch_deprecated_register_byte(),
1851 set_gdbarch_deprecated_register_raw_size(),
1852 set_gdbarch_deprecated_max_register_raw_size(),
1853 set_gdbarch_deprecated_register_virtual_size(),
1854 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1855 Replace set_gdbarch_deprecated_extract_return_value() with
1856 set_gdbarch_extract_return_value(). Remove calls to:
1857 set_gdbarch_deprecated_saved_pc_after_call();
1858 set_gdbarch_deprecated_frame_chain(),
1859 set_gdbarch_deprecated_frame_saved_pc(),
1860 set_gdbarch_deprecated_frame_init_saved_regs(),
1861 set_gdbarch_deprecated_get_saved_register(),
1862 set_gdbarch_deprecated_call_dummy_words(),
1863 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1864 set_gdbarch_deprecated_init_extra_frame_info(),
1865 set_gdbarch_deprecated_frame_args_address(),
1866 set_gdbarch_deprecated_frame_locals_address(),
1867 and set_gdbarch_deprecated_dummy_write_sp().
1868 Add set_gdbarch_convert_register_p(),
1869 set_gdbarch_register_to_value(),
1870 set_gdbarch_value_to_register(),
1871 set_gdbarch_push_dummy_call(),
1872 set_gdbarch_frame_align(),
1873 set_gdbarch_unwind_dummy_id(),
1874 set_gdbarch_unwind_pc(),
1875 frame_unwind_append_sniffer(),
1876 frame_unwind_append_sniffer(),
1877 and frame_base_set_default().
1878
aede7613
CD
18792003-08-25 Chris Demetriou <cgd@broadcom.com>
1880
1881 * configure.tgt: Document need for special "mipsisa64" handling.
1882 (mipsisa64*-*-linux64): Handle as target linux64.
1883 (mipsisa64*-*-*): Handle as target embed64.
1884
43c3a82e
MC
18852003-08-18 Michael Chastain <mec@shout.net>
1886
1887 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1888 objfile bug.
1889
6564f77d
MK
18902003-08-24 Mark Kettenis <kettenis@gnu.org>
1891
2de139ba
MK
1892 * i387-tdep.h: Update copyright date.
1893 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1894
6564f77d
MK
1895 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1896 CFLAGS games to reflect reality.
1897
42cf1509
AC
18982003-08-24 Andrew Cagney <cagney@redhat.com>
1899
1900 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1901 GDB_MULTI_ARCH is always non-zero.
1902 * osabi.c (_initialize_gdb_osabi): Ditto.
1903 (gdbarch_init_osabi): Ditto.
1904 * sparc-tdep.c: Ditto for #if code.
1905
0485f6ad
MK
19062003-08-23 Mark Kettenis <kettenis@gnu.org>
1907
1908 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1909 Update comments.
1910 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1911 comments.
1912 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1913 x86_64_supply_fxsave.
1914 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1915 x86_64_supply_fxsave.
1916 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1917 x86_64_supply_fxsave.
1918
c7716133
AJ
19192003-08-23 Andreas Jaeger <aj@suse.de>
1920
1921 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1922 i387_supply_fxsave.
1923
ed504bdf
MK
19242003-08-23 Mark Kettenis <kettenis@gnu.org>
1925
1926 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1927 i387_supply_register.
1928 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1929 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1930 i387_supply_fsave.
1931 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1932 i387_supply_fxsave.
1933 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1934 i387_supply_fsave.
1935 * i386bsd-nat.c (supply_fpregset): Adjust call to
1936 i387_supply_fsave.
1937 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1938 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1939 supply_fpregset.
1940 (store_inferior_registers): Remove extraneous whitespace. Call
1941 i387_fill_fsave instead of fill_fpregset.
1942 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1943 (supply_fpregset): Likewise.
1944 * i386v4-nat.c (supply_fpregset): Adjust call to
1945 i387_supply_fsave.
1946 * i386-interix-nat.c (supply_fpregset): Adjust call to
1947 i387_supply_fsave.
1948 * i386-linux-nat.c (supply_fpregset): Adjust call to
1949 i387_supply_fsave.
1950 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1951 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1952 i387supply_fsave and i387_supply_fxsave.
1953 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1954 Incorporate code from `i387_supply_register.
1955 (i387_supply_register): Remove.
1956 (i387_supply_fxsave): Add `regnum' argument.
1957 Update comments.
1958 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1959 prototype.
1960 (i387_supply_register): remove prototype.
1961 Update comments.
1962
4be5d520
MC
19632003-08-22 Michael Chastain <mec@shout.net>
1964
1965 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1966 Add lines for files in gdb/testsuite/gdb.cp/* that are
1967 still not 8.3 unique.
1968
7ed85d26
DJ
19692003-08-22 Daniel Jacobowitz <drow@mvista.com>
1970
1971 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1972 TYPE_VPTR_FIELDNO is valid.
1973
eb0d3137
MK
19742003-08-19 Mark Kettenis <kettenis@gnu.org>
1975
1976 * utils.c (set_width_command): Remove prototypes.
1977 (set_screen_size): New prototype.
1978 (init_page_info): Simplify by fetching the screen size from
1979 Readline. Call set_screen_size.
1980 (set_screen_size): New function.
1981 (set_width): Add missing whitespace in comment.
1982 (set_width_command): Call set_screen_size.
1983 (set_height_command): New function.
1984 (initialize_utils): Fix formatting. Make "set height" command
1985 call set_height_command. Remove redundant code that turns off
1986 pagination if output isn't a terminal. Remove redundant call to
1987 set_width_command.
1988
7e6d0ac8
MK
19892003-08-22 Mark Kettenis <kettenis@gnu.org>
1990
3567a8ea
MK
1991 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1992 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1993 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1994 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1995 `case' keyword.
1996 (sparc64_register_info): Give the reister with number
1997 SPARC64_STATE_REGNUM a name.
1998 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1999 %asi and %ccr.
2000 (sparc64_push_dummy_call): Take BIAS into account when checking
2001 stcak alignment.
2002 (sparc_software_single_step): Remove assertions that check whether
2003 NPC and NNPC were zero.
2004 (sparc_supply_rwindow): Make public. Merge functionality with
2005 sparc64_supply_rwindow.
2006 (sparc_fill_rwindow): Make public. Merge functionality with
2007 sparc64_fill_rwindow.
2008 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2009 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2010 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2011 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2012 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2013
7e6d0ac8
MK
2014 * reggroups.c: Add whitespace after declarations of local
2015 variables in functions.
2016
72e5f484
MC
20172003-08-21 Michael Chastain <mec@shout.net>
2018
2019 * gdbtypes.h: Change array bound type from an int to enum.
2020
435ac228
AC
20212003-08-21 Andrew Cagney <cagney@redhat.com>
2022
2023 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2024 * config/sparc/tm-sparc.h: Ditto.
2025 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2026 unconditionally.
2027 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2028
0d0e1a63
MK
20292003-07-13 Mark Kettenis <kettenis@gnu.org>
2030
2031 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2032 (register_objfile_data, set_objfile_data, objfile_data): New
2033 prototypes.
2034 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2035 prototypes.
2036 (allocate_objfile): Call objfile_alloc_data.
2037 (free_objfile): Call objfile_free_data.
2038 (struct objfile_data): New.
2039 (struct objfile_data_registration): New.
2040 (struct objfile_data_registry): New.
2041 (objfile_data_registry): New variable.
2042 (register_objfile_data): New function.
2043 (objfile_alloc_data, objfile_free_data): New functions.
2044 (set_objfile_data, objfile_data): New functions.
2045 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2046 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2047 (_initialize_dwarf2_frame): New function and prototype.
2048
d90cf509
AC
20492003-08-21 Andrew Cagney <cagney@redhat.com>
2050
2051 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2052 a specific architecture.
2053 * arch-utils.h (set_architecture_from_arch_mach): Delete
2054 declaration.
2055 (target_architecture_hook): Delete declaration.
2056 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2057 (default_float_format): Assume GDB_MULTI_ARCH.
2058 (default_double_format): Assume GDB_MULTI_ARCH.
2059 (set_endian_from_file): Delete function.
2060 (arch_ok): Delete function.
2061 (set_arch): Delete function.
2062 (set_architecture_from_arch_mach): Delete function.
2063 (set_architecture_from_file): Delete function.
2064 (set_architecture): Assume GDB_MULTI_ARCH.
2065 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2066
8b39fe56
MK
20672003-08-21 Mark Kettenis <kettenis@gnu.org>
2068
2069 Rewrite FreeBSD/sparc64 native configuration.
2070 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2071 * sparc64fbsd-nat.c: New file.
2072 * sparc64fbsd-tdep.c: New file.
2073 * sparc64-tdep.c sparc64-tdep.h: New files.
2074 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2075 sparc64fbsd-tdep.o): New dependencies.
2076 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2077 and sparc64fbsd-tdep.c.
2078 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2079 * config/sparc/fbsd.mh: Remove copyright notice.
2080 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2081 sparcbsd-nat.o.
2082 * config/sparc/fbsd.mt: Remove copyright notice.
2083 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2084 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2085 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2086 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2087 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2088 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2089 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2090 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2091 "sparc/tm-sp64.h".
2092 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2093 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2094
a7f19c79
MC
20952003-08-21 Michael Chastain <mec@shout.net>
2096
2097 * symtab.h: Add doco on the space critical structures and
2098 some measurements of space usage.
2099
da08ea5b
MS
21002003-08-21 Michael Snyder <msnyder@redhat.com>
2101
2102 * tracepoint.c (trace_dump_command): Trace break address
2103 is subject to DECR_PC_AFTER_BREAK.
2104 (set_traceframe_context): Make "trace_line" an int.
2105 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2106
6df2bf50
MS
21072003-08-20 Michael Snyder <msnyder@redhat.com>
2108
2109 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2110 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2111 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2112 argument passing.
2113 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2114 functions, replace sh_push_dummy_call.
2115 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2116
0955bbf0
MC
21172003-08-20 Michael Chastain <mec@shout.net>
2118
2119 * gdbtypes.h (struct main_type): Rearrange to save space.
2120
260a4188
MS
21212003-08-20 Michael Snyder <msnyder@redhat.com>
2122
2123 * trad-frame.c: Comment typo fix.
2124
8baa6f92
KB
21252003-08-20 Michael Snyder <msnyder@redhat.com>
2126 Kevin Buettner <kevinb@redhat.com>
2127
2128 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2129 (frv_frame_init_saved_regs): Add declaration.
2130 (frame_extra_info): Add new field ``saved_regs''.
2131 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2132 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2133 Update frame related code.
2134 (frv_extract_struct_value_address): Adjust formatting.
2135 * Makefile.in (frv-tdep.o): Update dependencies.
2136 * config/frv/tm-frv.h (target_insert_watchpoint)
2137 (target_remove_watchpoint, target_insert_hw_breakpoint)
2138 (target_remove_hw_breakpoint): Delete these macros.
2139 (remote_insert_watchpoint, remote_remove_watchpoint)
2140 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2141 these declarations.
2142
87193939
MC
21432003-08-20 Michael Chastain <mec@shout.net>
2144
2145 * defs.h (ENUM_BITFIELD): New macro.
2146 * symtab.h (ENUM_BITFIELD): Use it.
2147 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2148
062103ba
SA
21492003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2150
2151 * MAINTAINERS (write after approval): Add myself.
2152
8b148df9
AC
21532003-08-18 Andrew Cagney <cagney@redhat.com>
2154
2155 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2156 * gdbarch.h, gdbarch.c: Re-generate.
2157 * infcall.c (call_function_by_hand): Adjust the SP by
2158 frame_red_zone_size before allocating any stack space.
2159 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2160 * x86-64-tdep.c (x86_64_frame_align): New function.
2161 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2162
2163 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2164 Remove code adjusting SP so that it skips over the Red Zone.
2165
954a4db8
MK
21662003-08-18 Mark Kettenis <kettenis@gnu.org>
2167
2168 * NEWS (New native configurations): Mention FreeBSD/amd64.
2169
1a241548
AC
21702003-08-18 Andrew Cagney <cagney@redhat.com>
2171
2172 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2173 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2174 "m68k_frame_p".
2175 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2176
f82b2acd
MK
21772003-08-18 Mark Kettenis <kettenis@gnu.org>
2178
2179 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2180
4056d258
ML
21812003-08-18 Michal Ludvig <mludvig@suse.cz>
2182
2183 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2184 Define.
2185 * i386-linux-nat.c: Include "linux-nat.h".
2186 (child_post_startup_inferior): New function.
2187
99ab4326
MK
21882003-08-18 Mark Kettenis <kettenis@gnu.org>
2189
2190 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2191 at the start of a frameless function. This probably fixes PR
2192 backtrace/1338.
2193
c8d5f0d6
MC
21942003-08-17 Michael Chastain <mec@shout.net>
2195
2196 * symfile.c (find_sym_fns): Remove special case for apollo target.
2197
9016a515
DJ
21982003-08-17 Daniel Jacobowitz <drow@mvista.com>
2199
2200 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2201 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2202 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2203 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2204 (linux_supports_tracevforkdone): New function.
2205 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2206 TRACEVFORKDONE.
2207 (child_follow_fork): Handle vfork.
2208 (linux_handle_extended_wait): Likewise. Also handle exec.
2209 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2210 * NEWS: Mention fork tracing.
2211
c538c11c
DJ
22122003-08-17 Daniel Jacobowitz <drow@mvista.com>
2213
2214 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2215
4de4c07c
DJ
22162003-08-17 Daniel Jacobowitz <drow@mvista.com>
2217
2218 * Makefile.in (i386-linux-nat.o): Update dependencies.
2219 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2220 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2221 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2222 * i386-linux-nat.c: Include "linux-nat.h".
2223 (child_post_startup_inferior): New function.
2224 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2225 * infptrace.c (kill_inferior): Wrap in #ifdef.
2226 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2227 attaching to each LWP.
2228 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2229 (init_lin_lwp_ops): Fill in some more operations.
2230 * linux-nat.h (linux_enable_event_reporting)
2231 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2232 prototypes.
2233 * linux-nat.c (linux_enable_event_reporting): New function.
2234 (child_post_attach, linux_child_post_startup_inferior)
2235 (child_post_startup_inferior, child_follow_fork)
2236 (linux_handle_extended_wait, kill_inferior): New functions.
2237
7996bcec
AC
22382003-08-16 Andrew Cagney <cagney@redhat.com>
2239
2240 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2241 * gdbarch.h, gdbarch.c: Re-generate.
2242
3d48a7a0
MK
22432003-08-16 Mark Kettenis <kettenis@gnu.org>
2244
2245 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2246
7989c619
AC
22472003-08-16 Andrew Cagney <cagney@redhat.com>
2248
2249 * NEWS: Mention that "set prompt-escape-char" was deleted.
2250 * top.c (get_prompt_1): Delete function.
2251 (gdb_prompt_escape):
2252 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2253 prompt-escape-char" command.
2254 (MAX_PROMPT_SIZE): Delete macro.
2255 (get_prompt): Simplify, do not call get_prompt_1.
2256
07978cd8
AC
22572003-08-16 Andrew Cagney <cagney@redhat.com>
2258
2259 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2260 -Werror. -Wformat-nonliteral problems.
2261
3ff7cf9e
JB
22622003-08-15 J. Brobecker <brobecker@gnat.com>
2263
2264 Further multiarching work mostly for hppa64-*-hpux11:
2265 * hppa-tdep.h: New file.
2266 * hppa-tdep.c: #include hppa-tdep.c.
2267 (hppa32_num_regs): Renamed from hppa_num_regs.
2268 (hppa64_num_regs): New constant.
2269 (hppa64_call_dummy_breakpoint_offset): New constant.
2270 (hppa32_call_dummy_length): New constant.
2271 (hppa64_call_dummy_length): New constant.
2272 (hppa32_stack_align): Make name 32bit explicit.
2273 (hppa32_register_virtual_type): Likewise.
2274 (hppa32_extract_return_value): Likewise.
2275 (hppa32_use_struct_convention): Likewise.
2276 (hppa32_store_return_value): Likewise.
2277 (hppa64_register_virtual_type): New function.
2278 (hppa64_extract_return_value): New function.
2279 (hppa64_use_struct_convention): New function.
2280 (hppa64_store_return_value): New function.
2281 (hppa_frame_locals_address): Remove declaration, function does
2282 not exist anymore.
2283 (hppa_register_byte): Add support for PA64 ABI.
2284 (hppa_gdbarch_init): Add support for PA64 ABI.
2285 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2286 Make name 32bit explicit.
2287 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2288 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2289 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2290 (hppa64_hpux_frame_base_before_sigtramp): New function.
2291 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2292 * config/pa/tm-hppa64.h: Remove macros that are no longer
2293 necessary now that the gdbarch vector is properly setup.
2294 Transform some macros into function calls. Some minor cleanup.
2295 * config/pa/tm-hppah.h: Update function calls in macros
2296 following the function renaming in hppa-hpux-tdep.c.
2297 * Makefile.in (hppa_tdep_h): New variable.
2298 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2299
5d05ca6d
MS
23002003-08-14 Michael Snyder <msnyder@redhat.com>
2301
2302 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2303
37ba2569
JB
23042003-08-13 J. Brobecker <brobecker@gnat.com>
2305
2306 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2307 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2308 routine.
2309
aed7f26a
MS
23102003-08-13 Michael Snyder <msnyder@redhat.com>
2311
2312 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2313 (frv_saved_pc_after_call): Use deprecated ftype.
2314 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2315 (frv_remote_translate_xfer_address): Remove.
2316 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2317
752d4ac1
JB
23182003-08-13 J. Brobecker <brobecker@gnat.com>
2319
2320 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2321 initialization after the common gdbarch initialization, not before.
2322
1426ac1d
JB
23232003-08-13 J. Brobecker <brobecker@gnat.com>
2324
2325 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2326 (ADDR_BITS_REMOVE): Remove, redundant.
2327
b6fbdd1d
JB
23282003-08-13 J. Brobecker <brobecker@gnat.com>
2329
2330 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2331 gdbarch method to clear the 2 low bits of text addresses.
2332
44160db3
AC
23332003-08-12 Andrew Cagney <cagney@redhat.com>
2334
2335 * Makefile.in (dsrec.o): Update dependencies.
2336 * dsrec.c: Include "gdb_assert.h".
2337 (make_srec): Use snprintf instead of sprintf, use a literal format
2338 string.
2339
bcf7d3ca
AC
23402003-08-12 Andrew Cagney <cagney@redhat.com>
2341
2342 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2343 FRAME_OBSTACK_ZALLOC.
2344
49ed40de
KB
23452003-08-12 Kevin Buettner <kevinb@redhat.com>
2346
2347 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2348 SSE registers.
2349
b246147c
MK
23502003-08-10 Mark Kettenis <kettenis@gnu.org>
2351
2352 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2353 amd64fbsd_sc_reg_offset): Add extern declarations.
2354 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2355 declarations.
2356
d95fdc0d
BE
23572003-08-11 Ben Elliston <bje@wasabisystems.com>
2358
2359 * MAINTAINERS (write after approval): Update my mail address.
2360
cf6a0e73
AC
23612003-08-10 Andrew Cagney <cagney@redhat.com>
2362
2363 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2364
f837910f
MK
23652003-08-10 Mark Kettenis <kettenis@gnu.org>
2366
e2dbbd2d
MK
2367 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2368 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2369 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2370 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2371 i386bsd_sc_reg_offset): Add extern declarations.
2372 * i386obsd-nat.c: Include "i386-tdep.h"
2373 (_initialize_i386obsd_nat): Remove extern declarations.
2374 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2375 declarations.
2376 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2377 declarations.
2378
f837910f
MK
2379 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2380 instead of frame_read_register.
2381 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2382 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2383 SP_REGNUM.
2384 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2385 instead of frame_unwind_unsigned_register. Use
2386 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2387 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2388 instead of read_register. Use builtin_type_void_data_ptr instead
2389 of builtin_type_void_func_ptr when extracting the address of the
2390 jmp_buf.
2391 (i386_extract_return_value, i386_store_return_value,
2392 i386_pseudo_register_read, i386_pseudo_register_write): Use
2393 register_size instead REGISTER_RAW_SIZE.
2394
edcf254d
AC
23952003-08-10 Andrew Cagney <cagney@redhat.com>
2396
2397 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2398 sprintf. Make "name" constant.
2399
26604a34
MK
24002003-08-10 Mark Kettenis <kettenis@gnu.org>
2401
192285c6
MK
2402 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2403 instead of frame_read_register.
f837910f
MK
2404 (i387_print_float_info): Use get_frame_register and
2405 get_frame_register_unsigned instead of frame_register_read.
192285c6 2406
f0925262
MK
2407 * i386fbsd-nat.c: Include "i386-tdep.h".
2408 (child_resume): Make `eflags' an ULONGEST. Use
2409 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2410 instead of register_read and register_write.
2411
a144416f
MK
2412 * i386bsd-nat.c (fetch_inferior_registers,
2413 store_inferior_registers): Don't use && at the end of a line.
2414 (_initialize_i386bsd_nat): Fix typo.
2415
fec74868
MK
2416 * frame.c (_initialize_frame): Add missing backslash.
2417
87232496
MK
2418 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2419 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2420 and supply_register instead of manipulating the register buffer
2421 directly.
2422
c9b9de0b
MK
2423 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2424 * config/i386/nm-i386sol2.h
2425 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2426
26604a34
MK
2427 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2428 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2429 instructions that GCC likes to mingle into the prologue. Fixes
2430 gdb/1253 and gdb/1255.
2431
25d29d70
AC
24322003-08-09 Andrew Cagney <cagney@redhat.com>
2433
2434 Fix GDB PR cli/926.
2435 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2436 * command.h (add_setshow_uinteger_cmd): Declare.
2437 * frame.c (set_backtrace_cmd): New function.
2438 (show_backtrace_cmd): New function.
2439 * frame.c (_initialize_frame): Replace "set/show
2440 backtrace-below-main" with "set/show backtrace past-main". Add
2441 command "set/show backtrace limit".
2442 (backtrace_past_main): Rename "backtrace_below_main".
2443 (backtrace_limit): New variable.
2444 (get_prev_frame): Update. Check the backtrace_limit.
2445
9ebf4acf
AC
24462003-08-09 Andrew Cagney <cagney@redhat.com>
2447
2448 * defs.h (xstrprintf): Declare.
2449 * utils.c (xstrprintf): New function.
2450 * breakpoint.c (insert_breakpoints): Replace sprintf and
2451 non-literal format strings, with xstrprintf and cleanups.
2452 (delete_breakpoint,breakpoint_re_set): Ditto.
2453 (commands_command, insert_breakpoints): Ditto.
2454 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2455 (break_at_finish_command_1): Ditto.
2456
3771659b
AC
24572003-08-09 Andrew Cagney <cagney@redhat.com>
2458
2459 * MAINTAINERS (language support): List Adam Fedor as Objective C
2460 maintainer.
2461
b4263afa
JB
24622003-08-08 J. Brobecker <brobecker@gnat.com>
2463
2464 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2465 are now multiarched.
2466
d84defb1
JB
24672003-08-08 J. Brobecker <brobecker@gnat.com>
2468
2469 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2470 longer necessary now that hppa64 is partially multiarch'ed.
2471
f786f615
AC
24722003-08-08 Andrew Cagney <cagney@redhat.com>
2473
2474 * interps.c (interp_set): Check for a NULL "old_interp".
2475
c938e9b0
L
24762003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2477
2478 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2479 (install-only): Support DESTDIR.
2480 (uninstall): Likewise.
2481 (install-gdbtk): Likewise.
2482
9a146a11
EZ
24832003-08-08 Elena Zannoni <ezannoni@redhat.com>
2484
2485 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2486 contains something meaningful at all times.
2487
2488Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2489
62599e99 2490 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2491
56296155
BC
2492Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2493
62599e99 2494 * MAINTAINERS (write after approval): Added self.
56296155 2495
9710e734
AC
24962003-08-07 Andrew Cagney <cagney@redhat.com>
2497
2498 * inferior.h (AT_SYMBOL): Define.
2499 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2500 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2501 * mips-tdep.c (mips_call_dummy_address): Delete function.
2502 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2503 set call_dummy_address.
2504
98b3ab73
AC
25052003-08-07 Andrew Cagney <cagney@redhat.com>
2506
2507 * language.c (op_error): Delete function.
2508 (binop_type_check): Delete function.
2509 * language.h (type_op_error, range_op_error): Delete macros.
2510 (op_error): Delete declaration.
2511
2fcf52f0
AC
25122003-08-07 Andrew Cagney <cagney@redhat.com>
2513
2514 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2515
abd4220e 25162003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2517
abd4220e 2518 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2519 (x86_64_push_arguments): Skip the red zone.
abd4220e 2520
9dd5f34f
AC
25212003-08-05 Andrew Cagney <cagney@redhat.com>
2522
2523 * reggroups.c (reggroup_next): Check for the final entry.
2524
e5e78edc
AC
25252003-08-04 Andrew Cagney <cagney@redhat.com>
2526
ab4e3d93
AC
2527 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2528 * cli/cli-script.c (define_command): Call query directly, instead
2529 of passing it a buffer.
2530 * ocd.c (ocd_error): Pass error a constant format string.
2531 * remote-mips.c (mips_error): Use fputs_filtered.
2532
1062ca82
AC
2533 * solib-svr4.c (_initialize_svr4_solib): Update
2534 register_gdbarch_data call.
2535 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2536
fcc1c85c
AC
2537 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2538 (register_gdbarch_data): Delete "free" parameter. Update
2539 comments.
2540 * gdbarch.h, gdbarch.c: Re-generate.
2541 * reggroups.c (_initialize_reggroup): Update.
2542 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2543 * frame-base.c (_initialize_frame_base): Update.
2544 * frame-unwind.c (_initialize_frame_unwind): Update.
2545 * user-regs.c (_initialize_user_regs): Update.
2546 * remote.c (_initialize_remote): Update.
2547 * regcache.c (_initialize_regcache): Update.
2548
116f06ea
AC
2549 * regcache.c (xfree_regcache_descr): Delete function.
2550 (_initialize_regcache): Update call to register_gdbarch_data.
2551 (init_regcache_descr, init_legacy_regcache_descr): Use
2552 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2553
e5e78edc
AC
2554 * remote.c (free_remote_state): Delete function.
2555 (_initialize_remote): Update register_gdbarch_data.
2556 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2557 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2558
6c7d17ba
AC
25592003-08-04 Andrew Cagney <cagney@redhat.com>
2560
2561 * reggroups.c (struct reggroup_el): Define.
2562 (struct reggroups): Delete field "nr_group". Replace array
2563 "group" with a "first" to "last" linked list.
2564 (reggroups_init): Update. Allocate using gdbarch's obstack.
2565 (reggroups_free): Delete function.
2566 (add_group): Update. Add "el" parameter.
2567 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2568 (default_groups): Update.
2569 (reggroup_next): Replace reggroups.
2570 (reggroups_dump): Update.
2571 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2572 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2573 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2574
89b7795b
DJ
25752003-08-04 Daniel Jacobowitz <drow@mvista.com>
2576
2577 * Makefile.in (tui-interp.o): Update dependencies.
2578
306d9ac5
DC
25792003-08-04 David Carlton <carlton@kealia.com>
2580
2581 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2582 to internal_error call.
2583 * source.c (forward_search_command): Add "%s" format argument.
2584 (reverse_search_command): Ditto.
2585 * top.c (quit_confirm): Ditto.
2586 * cli/cli-setshow.c (do_setshow_command): Ditto.
2587 * cp-valprint.c (cp_print_class_method): Replace
2588 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2589 (cp_print_class_member): Ditto.
2590 * event-top.c (command_line_handler): Ditto.
2591 * linux-proc.c (linux_info_proc_cmd): Ditto.
2592 * p-typeprint.c (pascal_type_print_base): Ditto.
2593 * p-valprint.c (pascal_object_print_class_method): Ditto.
2594 (pascal_object_print_class_member): Ditto.
2595 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2596 * remote.c (remote_cisco_section_offsets): Ditto.
2597 * top.c (command_line_input): Ditto.
2598 * utils.c (vwarning,error_stream,quit): Ditto.
2599 * valprint.c (print_floating,print_binary_chars)
2600 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2601
57bfe177
AC
26022003-08-04 Andrew Cagney <cagney@redhat.com>
2603
2604 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2605
e546b999
AC
26062003-08-02 Andrew Cagney <cagney@redhat.com>
2607
2608 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2609 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2610 amd64fbsd-nat.c.
2611
91092ee5
AC
26122003-08-02 Andrew Cagney <cagney@redhat.com>
2613
2614 * Makefile.in: Update all dependencies and definitions.
2615
889f28e2
AF
26162003-08-02 Adam Fedor <fedor@gnu.org>
2617
2618 * linespec.c (is_objc_method_format): New function
2619 (decode_line_1, locate_first_half): Use it.
2620 Fixes PR objc/1298
2621
880bc914
AC
26222003-08-01 Andrew Cagney <cagney@redhat.com>
2623
2624 * NEWS: Mention that m32r is multi-arch.
2625 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2626 * configure.tgt: Recognize m32r-*-*.
2627 * config/m32r/tm-m32r.h: Delete file.
2628 * config/m32r/m32r.mt: New file.
2629 * m32r-rom.c (m32r_upload_command): Use hostent only when
2630 gethostname succeeds, in order to avoid a compilation
2631 warning.
2632 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2633 compiler warning.
2634
19f59343
MS
26352003-08-01 Michael Snyder <msnyder@redhat.com>
2636
2637 * sh-tdep.c (sh_frame_align): New gdbarch method.
2638 (sh_gdbarch_init): Set up frame_align method.
2639
4e7d7511
MS
26402003-07-31 Michael Snyder <msnyder@redhat.com>
2641
2642 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2643 which is already covered by the new frames infrastructure.
2644
63022984
AC
26452003-07-31 Andrew Cagney <cagney@redhat.com>
2646
2647 * user-regs.c (struct user_reg): Add "next" link.
2648 (struct user_regs): Replace "user" with "first" and "last" links.
2649 (append_user_reg): Add pre-allocated "reg" parameter.
2650 (builtin_user_regs): Provide initial value for "last".
2651 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2652 (user_regs_init): Allocate memory from the gdbarch obstack.
2653 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2654 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2655 linked list.
2656 (usernum_to_user_reg): New function.
2657 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2658 (value_of_user_reg): Use usernum_to_user_reg.
2659 (user_regs_free): Delete function.
2660 (_initialize_user_regs): Update register_gdbarch_data call.
2661
7cf6e574
DJ
26622003-07-31 Daniel Jacobowitz <drow@mvista.com>
2663
2664 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2665
c48a845b
MS
26662003-07-30 Michael Snyder <msnyder@redhat.com>
2667
4e7d7511 2668 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2669 * infcall.c (call_function_by_hand): Pass struct_addr to
2670 value_being_returned.
2671 * infcmd.c (print_return_value): Pass zero as struct_addr.
2672 * values.c (value_being_returned): If struct_addr is passed,
2673 use it instead of trying to recover it from the inferior.
2674
f0d8db19
KB
26752003-07-30 Kevin Buettner <kevinb@redhat.com>
2676
2677 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2678 the prologue analyzer won't need to attempt to extract the pc
2679 value from the woefully incomplete dummy frame.
2680 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2681 possible. Disable code which modifies the frame.
2682
e5c113a1
AC
26832003-07-28 Andrew Cagney <cagney@redhat.com>
2684
2685 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2686 to level 2.
2687 (annotate_breakpoints_table, annotate_record): Ditto.
2688 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2689 (annotate_field_name_end, annotate_field_value): Ditto.
2690 (annotate_field_end, annotate_frame_source_begin): Ditto.
2691 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2692 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2693 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2694 (annotate_frame_address_end, annotate_frame_address): Ditto.
2695 (annotate_frame_args, annotate_frame_end): Ditto.
2696 (annotate_frame_where, annotate_arg_begin): Ditto.
2697 (annotate_arg_name_end, annotate_arg_value): Ditto.
2698 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2699 (annotate_function_call, annotate_signal_name): Ditto.
2700 (annotate_signal_string, annotate_signal_name_end): Ditto.
2701 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2702 (annotate_value_begin, annotate_value_history_value): Ditto.
2703 (annotate_value_history_end, annotate_value_end): Ditto.
2704 (annotate_display_begin, annotate_display_number_end): Ditto.
2705 (annotate_display_format, annotate_display_expression): Ditto.
2706 (annotate_display_expression_end, annotate_display_value): Ditto.
2707 (annotate_display_end, annotate_array_section_begin): Ditto.
2708 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2709 (annotate_elt, annotate_array_section_end): Ditto.
2710
bb1db049
AC
27112003-07-28 Andrew Cagney <cagney@redhat.com>
2712
2713 * regcache.c (struct regcache_descr): Update comments on
2714 nr_raw_registers.
2715 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2716 sizeof_raw_register_valid_p.
2717 (init_regcache_descr): Set nr_raw_registers and
2718 sizeof_raw_register_valid_p before calling
2719 init_legacy_regcache_descr.
2720
20e6603c
AC
27212003-07-28 Andrew Cagney <cagney@redhat.com>
2722
2723 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2724 MOD NUM_REGS.
2725
db742940
DJ
27262003-07-28 Daniel Jacobowitz <drow@mvista.com>
2727
2728 * thread.c (info_threads_command): Use get_selected_frame ().
2729 Check that there is at least one non-sentinel frame.
2730
ce7f4371
SC
27312003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2732
2733 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2734 (m68hc11_pop_frame): Remove.
2735 (m68hc11_frame_saved_pc): Remove.
2736 (m68hc11_frame_chain): Remove.
2737 (m68hc11_frame_init_saved_regs): Remove.
2738 (m68hc11_init_extra_frame_info): Remove.
2739 (m68hc11_store_struct_return): Remove.
2740 (m68hc11_saved_pc_after_call): Remove.
2741
1ea653ae
SC
27422003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2743
2744 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2745 frame unwind information.
2746 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2747 and adapted for frame unwinding.
2748 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2749 (m68hc11_unwind_pc): New function.
2750 (m68hc11_frame_unwind_cache): New function to analyze frames.
2751 (m68hc11_frame_this_id): New function to create new frame struct.
2752 (m68hc11_frame_prev_register): New function to unwind a register from
2753 the frame.
2754 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2755 (m68hc11_frame_p): New function for the above.
2756 (m68hc11_frame_base_address): New function to return fp of frame.
2757 (m68hc11_frame_args_address): Update for frame.
2758 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2759 (m68hc11_unwind_sp): New function.
2760 (m68hc11_unwind_dummy_id): New function.
2761 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2762 calls.
2763
c8a7f6ac
SC
27642003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2765
2766 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2767 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2768 when we are beyond the current pc.
2769
3dc990bf
SC
27702003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2771
2772 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2773 from m68hc11_push_arguments.
2774 (m68hc11_push_arguments): Remove.
2775 (m68hc11_push_return_address): Remove.
2776 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2777 handlers; remove deprecated_extra_stack_alignment_needed.
2778
222e5d1d
AC
27792003-07-27 Andrew Cagney <cagney@redhat.com>
2780
2781 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2782 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2783 REAL_PC and not the pointer.
2784 * hppa-hpux-tdep.c: Include frame.h
2785
a7e9a47e
AC
27862003-07-27 Andrew Cagney <cagney@redhat.com>
2787
2788 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2789 GDB_MULTI_ACH_PARTIAL.
2790
7e3dd49e
AC
27912003-07-27 Andrew Cagney <cagney@redhat.com>
2792
2793 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2794 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2795 operator at start and not end of line.
2796 (decode_prologue): Ditto.
2797 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2798 frame_unwind_register_unsigned instead of
2799 frame_unwind_unsigned_register.
2800 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2801 read_register.
2802 (m32r_push_dummy_call): Use register_size instead of
2803 REGISTER_RAW_SIZE.
2804 (m32r_frame_sniffer): Replace m32r_frame_p.
2805 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2806 * m32r-rom.c (report_transfer_performance): Delete extern
2807 declaration.
2808 (m32r_load, m32r_upload_command): Use print_transfer_performance
2809 instead of report_transfer_performance.
2810 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2811 / add_show_from_set.
2812
0880807f
AC
28132003-07-26 Andrew Cagney <cagney@redhat.com>
2814
2815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2816 store_return_value and extract_struct_value_address.
2817
64ae9269
DJ
28182003-07-26 Daniel Jacobowitz <drow@mvista.com>
2819
2820 PR c++/1267
2821 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2822 NULL, default to the section containing PC.
2823
e286caf2
SC
28242003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2825
2826 * NEWS: Mention "regs" deprecated for m68hc11 too.
2827
2828 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2829 (m68hc11_print_register): New function to print out one register.
2830 (m68hc11_print_registers_info): New function to print registers.
2831 (show_regs): Deprecate and use the above.
2832 (m68hc11_gdbarch_init): Install the print_registers_info.
2833
705b278b
JJ
28342003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2835
2836 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2837 that we have a SIGTRAP before returning non-zero.
2838
63cd4198
EZ
28392003-07-23 Michal Ludvig <mludvig@suse.cz>
2840 Elena Zannoni <ezannoni@redhat.com>
2841
2842 * linespec.c (decode_line_2): Avoid crash if
2843 find_function_start_sal() returns empty record.
2844
6926787d
AS
28452003-07-23 Andreas Schwab <schwab@suse.de>
2846
2847 * ia64-tdep.c (ia64_print_insn): New function.
2848 (ia64_gdbarch_init): Set print_insn to it.
2849 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2850 deprecated_tm_print_insn_info.
2851
708cc1b6
MS
28522003-07-22 Michael Snyder <msnyder@redhat.com>
2853
2854 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2855 handle 8-bit returns (long long).
2856 (h8300h_extract_return_value): Ditto.
2857 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2858
aebd7893
AC
28592003-07-22 Andrew Cagney <cagney@redhat.com>
2860
2861 * gdbarch.c Include "gdb_obstack.h".
2862 (struct gdbarch): Add an "obstack".
2863 (alloc_gdbarch_data): Allocate the gdbarch data using
2864 GDBARCH_OBSTACK_CALLOC.
2865 (free_gdbarch_data): Delete function.
2866 (gdbarch_obstack_zalloc): New function.
2867 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2868 Assert that the architecture is not initialized.
2869 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2870 vector from the obstack.
2871 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2872 architecture obstack.
2873 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2874 (set_gdbarch_data): Assert that the data is not initialized.
2875 (struct gdbarch_data): Delete member "free".
2876 (register_gdbarch_data): Do not initialize "free".
2877 * gdbarch.h, gdbarch.c: Re-generate.
2878
153721e6
AC
28792003-07-22 Andrew Cagney <cagney@redhat.com>
2880
2881 * configure.in (build_warnings): Add -Wformat-nonliteral.
2882 * configure: Re-generate.
2883
c193f044 28842003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2885
2886 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2887
c3228f12
EZ
28882003-07-22 Elena Zannoni <ezannoni@redhat.com>
2889
2890 * findvar.c (read_var_value): Remove case for thread local storage
2891 variables. It is now entirely handled by the dwarf2 location
2892 expression code.
2893 * printcmd.c (address_info): Ditto.
2894 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2895 enumeration value.
2896 (struct symbol): Remove objfile field, which was used by
2897 LOC_THREAD_LOCAL_STATIC only.
2898 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2899 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2900 usage of objfile pointer.
2901 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2902 thread local variables.
2903 Add include of objfiles.h.
2904 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2905 storage variables.
2906 * Makefile.in (dwarf2loc.o): Update dependencies.
2907
aef9bcd2
AC
29082003-07-22 Andrew Cagney <cagney@redhat.com>
2909
2910 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2911 get_frame_base.
2912 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2913 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2914 (struct value): Add opaque declaration.
2915 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2916
d95a8903
AC
29172003-07-21 Andrew Cagney <cagney@redhat.com>
2918
2919 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2920 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2921
4db73d49
SC
29222003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2923
2924 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2925 regcache_cooked_read_unsigned instead of read_register.
2926 (m68hc11_saved_pc_after_call): Likewise.
2927 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2928 instead of write_register.
2929 (m68hc11_register_type): New function.
2930 (m68hc11_register_virtual_type): Remove.
2931 (m68hc11_store_return_value): Convert to use the regcache.
2932 (m68hc11_extract_struct_value_address): Likewise.
2933 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2934 m68hc11_register_type; undeprecate store_return_value and
2935 extract_struct_value_address.
2936
ef2b8fcd
SC
29372003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2938
2939 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2940 and translate to use regcache.
2941 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2942
625b0b97
AC
29432003-07-18 Andrew Cagney <cagney@redhat.com>
2944
2945 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2946 * gdbarch.h, gdbarch.c: Re-generate.
2947 * i386-tdep.c (i386_gdbarch_init): Do not set
2948 DWARF2_BUILD_FRAME_INFO.
2949 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2950 unconditionally.
2951 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2952 DWARF2_BUILD_FRAME_INFO.
2953
22b0d388
AC
29542003-07-18 Andrew Cagney <cagney@redhat.com>
2955
2956 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2957 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2958
1ce5d6dd
AC
29592003-07-18 Andrew Cagney <cagney@redhat.com>
2960
2961 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2962 frame_unwind_address_in_block, instead of frame_pc_unwind.
2963 (dwarf2_frame_cache): Ditto.
2964
e6e5e94c
AC
29652003-07-18 Andrew Cagney <cagney@redhat.com>
2966
2967 * user-regs.h (struct gdbarch): Declare opaque.
2968 * ui-out.h (struct ui_file): Declare opaque.
2969 * dwarf2-frame.h (struct frame_info): Declare opaque.
2970
5483d879
KW
29712003-07-18 Kris Warkentin <kewarken@qnx.com>
2972
2973 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2974 #include "...".
2975 (procfs_meminfo): Change strerror to safe_strerror.
2976 (procfs_can_run): Remove K&R badness.
2977
278a7cf7
MS
29782003-07-17 Michael Snyder <msnyder@redhat.com>
2979
2980 * remote-sim.c: Comment typo fix.
2981
606e3b82
AC
29822003-07-17 Andrew Cagney <cagney@redhat.com>
2983
2984 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2985 configure.
2986 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2987 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2988 GDB_MULTI_ARCH_PARTIAL.
2989
c43af07c
EZ
29902003-07-17 Elena Zannoni <ezannoni@redhat.com>
2991
2992 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2993 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2994 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2995
3b85b0f1
TR
29962003-07-16 Theodore A. Roth <troth@openavr.org>
2997
2998 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2999 found.
3000 (avr_frame_unwind_cache): Don't unwind FP for main.
3001 Update a comment.
3002 Save the computed prev_sp.
3003 (avr_saved_regs_unwinder): Remove function.
3004 (avr_frame_prev_register): Use PC unwind logic from
3005 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3006
336d1bba
AC
30072003-07-16 Andrew Cagney <cagney@redhat.com>
3008
3009 * frame-base.h (frame_base_p_ftype): Delete definition.
3010 (frame_base_append_predicate): Delete declaration.
3011 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3012 (frame_unwind_append_predicate): Delete declaration.
3013 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3014 (append_predicate): Delete parameter "p".
3015 (frame_unwind_append_predicate): Delete function.
3016 (frame_unwind_append_sniffer): Update call to append_predicate.
3017 (frame_unwind_free): Delete function.
3018 (_initialize_frame_unwind): Pass NULL as "free" to
3019 register_gdbarch_data.
3020 (frame_unwind_init): Append the dummy_frame_sniffer.
3021 (frame_unwind_find_by_frame): Simplify.
3022 * frame-base.c (struct frame_base_table): Delete field "p".
3023 (append_predicate): Delete parameter "p".
3024 (frame_base_append_predicate): Delete function.
3025 (frame_base_append_sniffer): Update call to append_predicate.
3026 (frame_base_free): Delete function.
3027 (frame_base_find_by_frame): Simplify.
3028 (_initialize_frame_base): Pass NULL as "free" to
3029 register_gdbarch_data.
3030 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3031 (x86_64_sigtramp_frame_sniffer): Replace
3032 "x86_64_sigtramp_frame_p".
3033 (x86_64_init_abi): Set the frame unwind sniffers.
3034 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3035 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3036 (m68k_gdbarch_init): Set the frame unwind sniffers.
3037 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3038 "i386_sigtramp_frame_p".
3039 (i386_frame_sniffer): Replace "i386_frame_p".
3040 (i386_gdbarch_init): Set the frame unwind sniffers.
3041 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3042 (avr_gdbarch_init): Set the frame unwind sniffers.
3043 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3044 "alpha_sigtramp_frame_p"
3045 (alpha_heuristic_frame_sniffer): Replace
3046 "alpha_heuristic_frame_p".
3047 (alpha_gdbarch_init): Set the frame unwind sniffers.
3048 (alpha_dwarf2_init_abi): Ditto.
3049 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3050 "alpha_debug_frame_p".
3051 (alpha_mdebug_frame_base_sniffer): Replace
3052 "alpha_mdebug_frame_base_p".
3053 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3054 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3055 (d10v_gdbarch_init): Set the frame unwind sniffer.
3056 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3057 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3058 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3059 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3060 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3061 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3062
48db5a3c
CV
30632003-07-16 Michael Snyder <msnyder@redhat.com>
3064
3065 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3066 should go thru sh_dsp_register_sim_regno, else the dsp regs
3067 will not get the right values.
3068
30692003-07-16 Corinna Vinschen <vinschen@redhat.com>
3070
3071 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3072 deprecated_store_floating by call to store_typed_floating.
3073 (sh_sh4_register_convert_to_raw): Substitute call to
3074 deprecated_extract_floating by call to extract_typed_floating.
3075
30762003-07-16 Corinna Vinschen <vinschen@redhat.com>
3077
3078 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3079
30802003-07-16 Corinna Vinschen <vinschen@redhat.com>
3081
3082 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3083 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3084 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3085 as possible.
3086 (do_pseudo_register): Remove.
3087 (sh_push_dummy_code): New function.
3088 (sh64_store_struct_return): Rename from sh_store_struct_return.
3089 Only called for sh64 now.
3090 (sh_extract_struct_value_address): Regcache'ify.
3091 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3092 and accomodate new tasks.
3093 (sh64_push_return_address): Rename from sh_push_return_address.
3094 Only called for sh64 now.
3095 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3096 Regcache'ify.
3097 (sh3e_sh4_extract_return_value): Regcache'ify.
3098 (sh_default_store_return_value): Ditto.
3099 (sh3e_sh4_store_return_value): Ditto.
3100 (sh_default_register_byte): Remove.
3101 (sh_sh4_register_byte): Remove.
3102 (sh_default_register_raw_size): Remove.
3103 (sh_sh4_register_raw_size): Remove.
3104 (sh_register_virtual_size): Remove.
3105 (sh_sh3e_register_virtual_type): Remove.
3106 (sh_sh3e_register_type): New function.
3107 (sh_sh4_register_virtual_type): Remove.
3108 (sh_sh4_register_type): New function.
3109 (sh_default_register_virtual_type): Remove.
3110 (sh_default_register_type): New function.
3111 (do_fv_register_info): Add parameters to accomodate call from
3112 sh_print_registers_info.
3113 (do_dr_register_info): Ditto.
3114 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3115 Add parameters to accomodate call from sh_print_registers_info.
3116 (sh_do_fp_register): Ditto.
3117 (sh64_do_pseudo_register): Call do_dr_register_info,
3118 do_fv_register_info and sh_do_fp_register with default parameters.
3119 (sh_do_register): Add parameters to accomodate call from
3120 sh_print_registers_info.
3121 (sh_print_register): Ditto.
3122 (sh_print_registers_info): Rename from sh_do_registers_info.
3123 Add parameters to be used as gdbarch_print_registers_info
3124 implementation. Accomodate removed do_pseudo_register function
3125 pointer.
3126 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3127 function pointer. Call sh_print_register with default parameters.
3128 (sh64_do_registers_info): Call sh_print_registers_info instead of
3129 sh_do_registers_info.
3130 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3131 detection of deprecated vs. non-deprecated functionality.
3132 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3133 function pointer assignments by direct function calls.
3134
e8a89fe2
AC
31352003-07-15 Andrew Cagney <cagney@redhat.com>
3136
3137 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3138 (frame_register_unwind, create_new_frame): Ditto.
3139 (legacy_get_prev_frame, get_frame_type): Ditto.
3140 (get_frame_base_address): Use frame_base_find_by_frame.
3141 (get_frame_locals_address): Use frame_base_find_by_frame.
3142 (get_frame_args_address): Use frame_base_find_by_frame.
3143 * frame-base.h (frame_base_sniffer_ftype): Declare.
3144 (frame_base_append_sniffer): Declare.
3145 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3146 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3147 (frame_base_append_sniffer): New function.
3148 (frame_base_append_predicate): Add a NULL sniffer.
3149 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3150 (struct frame_base_table): Add "sniffer".
3151 (frame_base_free): Free the "sniffer" table.
3152 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3153 (frame_unwind_append_sniffer): Declare.
3154 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3155 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3156 (struct frame_unwind_table): Add "sniffer", delete "middle".
3157 (append_predicate): Add "sniffer" parameter, append the sniffer.
3158 (frame_unwind_init): Update append_predicate call.
3159 (frame_unwind_append_sniffer): New function.
3160 (frame_unwind_append_predicate): Update append_predicate call.
3161 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3162
0714963c
AC
31632003-07-15 Andrew Cagney <cagney@redhat.com>
3164
3165 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3166 before code inhibiting repeated unwind attempts. Add to
3167 commentary on that test's problems.
3168 * blockframe.c (inside_main_func): Look for "main" in the minimal
3169 symbol table.
3170 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3171 identical.
3172
d9170e22
AC
31732003-07-15 Andrew Cagney <cagney@redhat.com>
3174
3175 * complaints.c (struct explanation): Define.
3176 (struct complaints): Change type of "explanation" to "struct
3177 explanation".
3178 (symfile_explanations): Convert to a "struct explanation" table.
3179 (vcomplaint): Update.
3180
eba29c8c
ML
31812003-07-15 Michal Ludvig <mludvig@suse.cz>
3182
3183 * x86-64-linux-nat.c (regmap): Removed.
3184 (supply_gregset, fill_gregset): Call
3185 x86_64_linux_(fill,supply)_gregset functions.
3186 * x86-64-linux-tdep.c (USER_*): New defines.
3187 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3188 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3189 New functions.
3190 (fetch_core_registers): Ditto.
3191 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3192 * x86-64-linux-tdep.h: New file.
3193 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3194 and core-regset.o.
3195 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3196
68cc0bfb
MK
31972003-07-13 Mark Kettenis <kettenis@gnu.org>
3198
88a115f7
MK
3199 * x86-64-tdep.c (x86_64_store_return_value): Use
3200 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3201
68cc0bfb
MK
3202 * configure.host: Add x86_64-*-freebsd*.
3203 * configure.tgt: Add x86_64-*-freebsd*.
3204 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3205 * amd64fbsd-nat.c: New file.
3206 * amd64fbsd-tdep.c: New file.
3207 * config/i386/nm-fbsd64.h: New file.
3208 * config/i386/fbsd64.mh: New file.
3209 * config/i386/fbsd64.mt: New file.
3210
138e7be5
MK
32112003-07-11 Mark Kettenis <kettenis@gnu.org>
3212
3213 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3214 `sc_regs_offset' and `sc_fpregs_offset'.
3215 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3216 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3217 (alpha_sigtramp_register_address): Rewrite to use new members of
3218 `struct gdbarch_tdep'.
3219 (alpha_gdbarch_init): Initialize new members of struct
3220 gdbarch_tdep'.
3221 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3222 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3223 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3224 (alphafbsd_pc_in_sigtramp): Implement.
3225 (alphafbsd_sigtramp_offset): New function.
3226 (alphafbsd_sigcontext_addr): New function.
3227 (alphafbsd_init_abi): Initialize signal trampoline related members
3228 of `struct gdbarch_tdep'.
3229 (_initialize_alphafbsd_tdep): Add prototype.
3230
95303a68
TR
32312003-07-11 Theodore A. Roth <troth@openavr.org>
3232
ba292e4c
TR
3233 * Makefile.in (install-only): Quote sed expression when generating
3234 transformed_name.
95303a68 3235
6896c0c7
RH
32362003-07-11 Richard Henderson <rth@redhat.com>
3237
3238 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3239 * dwarf2-frame.c: Include complaints.h.
3240 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3241 variable initialization; return NULL on error.
3242 (decode_frame_entry): New.
3243
8edd5d01
AC
32442003-07-11 Andrew Cagney <cagney@redhat.com>
3245
c4a09524
AC
3246 * frame.h (frame_address_in_block): Delete declaration.
3247 * blockframe.c (frame_address_in_block): Delete function.
3248 (get_frame_block): Use get_frame_address_in_block.
3249 (block_innermost_frame): Ditto.
3250 * stack.c (print_frame, backtrace_command_1): Ditto.
3251
8edd5d01
AC
3252 * frame.h (get_frame_address_in_block): Declare.
3253 (frame_unwind_address_in_block): Declare.
3254 * frame.c (frame_unwind_address_in_block): New function.
3255 (get_frame_address_in_block): New function.
3256
f7968451
AC
32572003-07-10 Andrew Cagney <cagney@redhat.com>
3258
3259 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3260 pre-default. Note: re-generate has no effect.
3261
ae99b398
AC
32622003-07-10 Andrew Cagney <cagney@redhat.com>
3263
3264 * gdbarch.sh: When a variable, but not a function, compare against
3265 0. Fix problem in previous patch.
3266 * gdbarch.c: Re-generate.
3267
956ac328
AC
32682003-07-10 Andrew Cagney <cagney@redhat.com>
3269
3270 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3271 functions against NULL, not 0.
3272 * gdbarch.c: Re-generate.
3273
287c3240
FF
32742003-07-10 Fred Fish <fnf@ninemoons.com>
3275
3276 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3277 null string instead of a null pointer.
3278 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3279
32f63c4b
MS
32802003-07-09 Michael Snyder <msnyder@redhat.com>
3281
3282 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3283
402ecd56
MK
32842003-07-09 Mark Kettenis <kettenis@gnu.org>
3285
3286 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3287 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3288 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3289 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3290 * x86-64-tdep.c: ... from here.
3291
c481dac7
AS
32922003-07-09 Andreas Schwab <schwab@suse.de>
3293
3294 * m68k-tdep.h (enum struct_return): Define.
3295 (struct gdbarch_tdep): Add struct_return.
3296 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3297 bytes are padded to the right, not to the left. Pass struct value
3298 address in register %a1, not on stack.
3299 (m68k_use_struct_convention): New function.
3300 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3301 struct_return in tdep to pcc_struct_return.
3302 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3303 reg_struct_return.
3304
64176fa3
JB
33052003-07-09 Joel Brobecker <brobecker@gnat.com>
3306
3307 * somread.c (som_symfile_offsets): Fix compilation error.
3308
96a4ee76
AC
33092003-07-09 Andrew Cagney <cagney@redhat.com>
3310
3311 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3312 Add comments about the checks.
3313
1517c6d1
AC
33142003-07-08 Andrew Cagney <cagney@redhat.com>
3315
3316 * Makefile.in: Make dependency section headers consistent.
3317 (config_h): Move to $BUILD headers section.
3318 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3319 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3320 (ada-exp.tab.c): Move to YACC/LEX section.
3321 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3322 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3323
dc5dd1eb
KW
33242003-07-08 Kris Warkentin <kewarken@qnx.com>
3325
3326 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3327 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3328 of strerror with safe_strerror, use ISO C function definitions,
3329 and replace instances of sprintf with snprintf.
dc5dd1eb 3330
612dde91
AC
33312003-07-07 Andrew Cagney <cagney@redhat.com>
3332
3333 * frame.c (get_prev_frame): Enable check for identical frames.
3334 Update comments. Update error messages.
3335
492c11d3
JB
33362003-07-07 Joel Brobecker <brobecker@gnat.com>
3337
3338 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3339
376a5a49
JB
33402003-07-07 Joel Brobecker <brobecker@gnat.com>
3341
3342 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3343 sort_symtab_syms, no longer necessary.
3344
22b4a9ad
JB
33452003-07-07 Joel Brobecker <brobecker@gnat.com>
3346
3347 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3348
5bbcb741
JB
33492003-07-07 Joel Brobecker <brobecker@gnat.com>
3350
3351 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3352 (mips_register_byte): Likewise.
3353
c139e7d9
DJ
33542003-07-07 Daniel Jacobowitz <drow@mvista.com>
3355
3356 * Makefile.in (sparc_tdep_h): New.
3357 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3358 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3359 * sparc-linux-nat.c: Include "sparc-tdep.h".
3360 * sparc-nat.c: Likewise.
3361 * sparc-tdep.c: Likewise.
3362 * sparc64nbsd-nat.c: Likewise.
3363 * sparcnbsd-nat.c: Likewise.
3364 * sparcnbsd-tdep.c: Likewise.
3365 * sparc-tdep.h: New file.
3366 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3367 and sparc_npc_regnum.
3368
fd8f87c5
DJ
33692003-07-07 Daniel Jacobowitz <drow@mvista.com>
3370
3371 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3372 (mips_linux_cannot_store_register): List supported instead of
3373 unsupported registers.
3374
13adf674
DJ
33752003-07-07 Daniel Jacobowitz <drow@mvista.com>
3376
3377 * disasm.c (dump_insns): Separate instructions from addresses.
3378
8de307e0
AS
33792003-07-07 Andreas Schwab <schwab@suse.de>
3380
3381 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3382 dependencies.
3383 * m68k-tdep.c (NUM_FREGS): Delete.
3384 (SIG_PC_FP_OFFSET): Delete.
3385 (TARGET_M68K): Delete.
3386 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3387 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3388 P_MOVEL_SP, P_MOVEML_SP): Define.
3389 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3390 P_TRAP): Delete.
3391 (m68k_register_raw_size): Delete.
3392 (m68k_register_virtual_size): Delete.
3393 (m68k_register_type): Renamed from m68k_register_virtual_type and
3394 add gdbarch argument.
3395 (m68k_store_struct_return): Delete.
3396 (m68k_deprecated_extract_return_value): Delete.
3397 (m68k_deprecated_extract_struct_value_address): Delete.
3398 (m68k_frame_chain): Delete.
3399 (m68k_frame_saved_pc): Delete.
3400 (m68k_fix_call_dummy): Delete.
3401 (m68k_push_dummy_frame): Delete.
3402 (m68k_pop_frame): Delete.
3403 (m68k_extract_return_value): New function.
3404 (m68k_store_return_value): Rewrite using regcache.
3405 (m68k_extract_struct_value_address): Rewrite using regcache.
3406 (m68k_push_dummy_call): New function.
3407 (struct m68k_frame_cache): Define.
3408 (m68k_alloc_frame_cache): New function.
3409 (m68k_analyze_frame_setup): New function.
3410 (m68k_analyze_register_saves): New function.
3411 (m68k_analyze_prologue): New function.
3412 (m68k_skip_prologue): Rewrite using above functions.
3413 (m68k_unwind_pc): New function.
3414 (m68k_frame_cache): New function.
3415 (m68k_frame_this_id): New function.
3416 (m68k_frame_prev_register): New function.
3417 (m68k_frame_unwind): New variable.
3418 (m68k_frame_p): New function.
3419 (m68k_sigtramp_frame_cache): New function.
3420 (m68k_sigtramp_frame_this_id): New function.
3421 (m68k_sigtramp_frame_prev_register): New function.
3422 (m68k_sigtramp_frame_unwind): New variable.
3423 (m68k_sigtramp_frame_p): New function.
3424 (m68k_frame_base_address): New function.
3425 (m68k_frame_base): New function.
3426 (m68k_unwind_dummy_id): New function.
3427 (fill_gregset): Use regcache_collect.
3428 (fill_fpregset): Likewise.
3429 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3430 defined.
3431 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3432 deprecated_init_frame_pc, deprecated_store_struct_return,
3433 deprecated_extract_return_value, deprecated_store_return_value,
3434 deprecated_frame_chain, deprecated_frame_saved_pc,
3435 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3436 deprecated_register_virtual_size,
3437 deprecated_max_register_raw_size,
3438 deprecated_max_register_virtual_size,
3439 deprecated_register_virtual_type, deprecated_register_size,
3440 deprecated_register_byte, deprecated_register_bytes,
3441 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3442 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3443 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3444 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3445 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3446 deprecated_push_dummy_frame, deprecated_pop_frame,
3447 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3448 only if SYSCALL_TRAP is defined. Set extract_return_value,
3449 store_return_value, extract_struct_value_address, register_type,
3450 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3451 predicates.
3452 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3453 M68K_MAX_REGISTER_SIZE): Define.
3454 (struct m68k_sigtramp_info): Define.
3455 (struct gdbarch_tdep): Add get_sigtramp_info.
3456 * m68klinux-nat.c (fetch_register): Use register_size instead of
3457 REGISTER_RAW_SIZE. Don't put assignment in if.
3458 (store_register): Likewise.
3459 (fetch_inferior_registers): Likewise.
3460 (store_inferior_registers): Likewise.
3461 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3462 (m68k_linux_frame_saved_pc): Delete.
3463 (m68k_linux_sigcontext_reg_offset,
3464 m68k_linux_ucontext_reg_offset): Define.
3465 (m68k_linux_get_sigtramp_info): New function.
3466 (m68k_linux_extract_return_value): Rewrite using regcache.
3467 (m68k_linux_store_return_value): Likewise.
3468 (m68k_linux_extract_struct_value_address): Likewise.
3469 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3470 Don't set deprecated_frame_saved_pc,
3471 deprecated_extract_return_value, deprecated_store_return_value,
3472 deprecated_extract_struct_value_address. Set
3473 extract_return_value, store_return_value,
3474 extract_struct_value_address.
3475
eb8bc282
AC
34762003-07-07 Andrew Cagney <cagney@redhat.com>
3477
3478 * expprint.c: Include "user-regs.h" instead of "frame.h".
3479 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3480 frame_map_regnum_to_name.
3481 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3482 (frame_map_name_to_regnum): Simplify, call
3483 user_reg_map_name_to_regnum.
3484 (frame_map_regnum_to_name): Simplify, call
3485 user_reg_map_regnum_to_name.
3486 (frame_register_unwind): Update.
3487 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3488 (_initialize_frame_reg): Call user_reg_add_builtin.
3489 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3490 (value_of_register): Use value_of_user_reg.
3491 * eval.c (evaluate_subexp_standard): Update.
3492 * parse.c (write_dollar_variable): Update.
3493 * d10v-tdep.c (d10v_print_registers_info): Update.
3494 * infcmd.c (registers_info): Update.
3495 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3496 (builtin_regs_h): Delete macro.
3497 (user_regs_h): Define.
3498 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3499 (builtin-regs.o): Delete target.
3500 (user-regs.o): Specify dependencies.
3501 (expprint.o): Update dependencies.
3502 (findvar.o): Update dependencies.
3503 (frame.o): Update dependencies.
3504 (std-regs.o): Update dependencies.
3505
9f476a01
CF
35062003-07-06 Christopher Faylor <cgf@redhat.com>
3507
3508 * win32-nat.c (solib_symbols_add): Use one variable for all section
3509 address stuff. Pass variable rather than address of variable to
3510 safe_symbol_file_add.
3511
a731b831
AS
35122003-07-06 Andreas Schwab <schwab@suse.de>
3513
3514 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3515
9f83329d
JB
35162003-07-04 Joel Brobecker <brobecker@gnat.com>
3517
3518 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3519
27e28cc5
KW
35202003-07-04 Kris Warkentin <kewarken@qnx.com>
3521
3522 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3523
35242003-07-04 Kris Warkentin <kewarken@qnx.com>
3525
3526 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3527 * config/i386/nto.mh: New file.
3528 * config/i386/nm-nto.h: New file.
3529 * configure.host: Add i[3456]86-*-nto*.
3530
100f2e98
JB
35312003-07-03 Joel Brobecker <brobecker@gnat.com>
3532
3533 * remote-vx.c (vx_add_symbols): Fix compilation error.
3534
e23457df
AC
35352003-07-03 Andrew Cagney <cagney@redhat.com>
3536
3537 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3538 * gdbarch.h, gdbarch.c: Re-generate.
3539 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3540 (legacy_register_name): Declare.
3541 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3542 (REGISTER_NAME): Define.
3543 * sparc-tdep.c (legacy_register_name): New function.
3544 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3545 (REGISTER_NAME): Define.
3546 (hppa64_register_name): Declare.
3547 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3548 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3549 (hppa64_register_name): New function.
3550 (hppa_register_name): New function.
3551 * arch-utils.c (legacy_register_name): Delete.
3552 * arch-utils.h (legacy_register_name): Delete.
3553
38caaeec
DJ
35542003-07-03 Daniel Jacobowitz <drow@mvista.com>
3555
3556 * cli/cli-interp.c (cli_interpreter_resume): Update the
3557 cli_uiout's stream to gdb_stdout.
3558
dadd712e
AC
35592003-07-03 Andrew Cagney <cagney@redhat.com>
3560
3561 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3562 predicate.
3563 * gdbarch.h, gdbarch.c: Re-generate.
3564 * regcache.c (init_regcache_descr): Use legacy code when either
3565 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3566
c7f1390e
DJ
35672003-07-02 Daniel Jacobowitz <drow@mvista.com>
3568
3569 * NEWS: Move "set logging" entry into GDB 6.0 section.
3570
4bc8c588
JB
35712003-07-02 Jim Blandy <jimb@redhat.com>
3572
a9dd42f1
JB
3573 * s390-tdep.c (struct frame_extra_info): new member:
3574 'stack_bought_valid'.
3575 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3576 initialize fextra_info->stack_bought.
3577 (s390_frameless_function_invocation): Don't trust the value of
3578 fextra_info_ptr->stack_bought unless
3579 fextra_info->stack_bought_valid is set.
3580
4bc8c588
JB
3581 New S390 prologue analyzer.
3582 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3583 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3584 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3585 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3586 compute_x_addr, s390_on_stack, s390_store,
3587 s390_get_signal_frame_info): New functions.
3588 (S390_NUM_SPILL_SLOTS): New macro.
3589 (s390_get_frame_info): Rewritten.
3590 (is_arg_reg): Deleted.
3591
3592 Break out the decoding of S/390 instructions into separate
3593 functions, to make it more legible, and easier to check
3594 against the spec.
3595 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3596 is_rx, is_rxe): New functions.
3597 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3598 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3599 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3600 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3601 enums for opcode values. (Is this an improvement?)
3602
fd13a04a
AC
36032003-07-02 Andrew Cagney <cagney@redhat.com>
3604
3605 * i386-tdep.c: Revert change committed as part of trad-frame code
3606 below.
3607
3f8091c1
DJ
36082003-07-02 Daniel Jacobowitz <drow@mvista.com>
3609
3610 * breakpoint.c (insert_catchpoint): Make static.
3611
8dd5115e
AS
36122003-07-02 Andreas Schwab <schwab@suse.de>
3613
3614 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3615 former ia64_push_arguments and ia64_push_return_address, and use
3616 regcache functions instead of read/write_register.
3617 (ia64_gdbarch_init): Set push_dummy_call instead of
3618 deprecated_push_arguments and deprecated_push_return_address.
3619
a2229c23
AJ
36202003-07-01 Andreas Jaeger <aj@suse.de>
3621
3622 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3623 before the call.
3624 Set %rax only to number of SSE registers used.
3625
3b3850e8
AC
36262003-07-01 Andrew Cagney <cagney@redhat.com>
3627
3628 * trad-frame.h: Update comments, a -1 .addr is reserved.
3629 (trad_frame_value_p, trad_frame_addr_p): Declare.
3630 (trad_frame_reg_p): Declare.
3631 (trad_frame_set_value): Rename trad_frame_register_value.
3632 (trad_frame_set_unknown): Declare.
3633 * trad-frame.c (trad_frame_realreg_p): New function.
3634 (trad_frame_addr_p, trad_frame_value_p): New function.
3635 (trad_frame_set_unknown): New function.
3636 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3637 (trad_frame_prev_register): Use trad_frame_realreg_p,
3638 trad_frame_addr_p and trad_frame_value_p.
3639 (trad_frame_set_value): Rename trad_frame_register_value.
3640 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3641 and trad_frame_set_value.
a2229c23 3642
4d819d0e
JB
36432003-06-30 Jim Blandy <jimb@redhat.com>
3644
3645 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3646 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3647 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3648 for 16 registers, and then 32 more bytes.
3649 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3650 New macros.
3651 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3652 Move up in the file, since it's now used by is_simple_arg.
3653 (is_simple_arg): Don't assume registers are four bytes long.
3654 Exclude all double arguments. Extended floats are not simple
3655 args.
3656 (is_power_of_two): New function.
3657 (pass_by_copy_ref): Call is_power_of_two, and check that the
3658 length fits in a register, rather than listing all the acceptable
3659 sizes. Extended floats are not passed by reference.
3660 (s390_push_arguments): Don't assume registers are four bytes long.
3661 Reserve an argument register to point to the buffer for structures
3662 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3663 S390_STACK_FRAME_OVERHEAD.
3664
1ad828f1
AS
36652003-06-30 Andreas Schwab <schwab@suse.de>
3666
3667 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3668 format error message.
3669
39b00981
JB
36702003-06-30 Joel Brobecker <brobecker@gnat.com>
3671
3672 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3673
b2a7f303
DC
36742003-06-30 David Carlton <carlton@kealia.com>
3675
3676 Band-aid for PR c++/1245.
3677 * Makefile.in (cp-support.o): Depend on complaints_h.
3678 * cp-support.c: Include complaints.h. Add declaration for
3679 find_last_component.
3680 (cp_find_first_component): Separate code into
3681 cp_find_first_component_aux.
3682 (cp_find_first_component_aux): Call demangled_name_complaint.
3683 (demangled_name_complaint): New.
3684
a257b5bb
AC
36852003-06-30 Andrew Cagney <cagney@redhat.com>
3686
3687 * remote.c (remote_write_bytes): Explicitly compute and then use
3688 the payload size. Update comments to reflect. Fixes problem of
3689 GDB not sending small packets as found by Fred Fish.
3690
0a2cfde4
AC
36912003-06-30 Andrew Cagney <cagney@redhat.com>
3692
3693 * remote.c (remote_async_wait): Fix -Wformat problem.
3694
3fcb8548
AC
36952003-06-29 Andrew Cagney <cagney@redhat.com>
3696
3697 * remote.c (remote_wait): Call error, and not warning, when the
3698 packet is corrupt.
3699 (remote_async_wait): Ditto.
3700
9f9970a3
DJ
37012003-06-29 Daniel Jacobowitz <drow@mvista.com>
3702
3703 * sparc-tdep.c (sparc_y_regnum): Make external again.
3704
83a8ccca
DJ
37052003-06-29 Daniel Jacobowitz <drow@mvista.com>
3706
3707 * cli/cli-logging.c (pop_output_files): Add void to function
3708 definition.
3709
d2cf594a
AC
37102003-06-29 Andrew Cagney <cagney@redhat.com>
3711
3712 * frame.c (frame_register_unwind): Use unsigned char when dumping
3713 the buffer contents.
3714
0fac0b41
DJ
37152003-06-28 Daniel Jacobowitz <drow@mvista.com>
3716
3717 * cli/cli-logging.c: New file.
3718 * cli-out.c (struct ui_out_data): Add original_stream.
3719 (cli_redirect): New function.
3720 (cli_ui_out_impl): Add cli_redirect.
3721 (cli_out_new): Initialize original_stream.
3722 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3723 (uo_redirect, ui_out_redirect): New.
3724 * ui-out.h (struct ui_out_impl): Add redirect member.
3725 (redirect_ftype): New.
3726 (ui_out_redirect): Add prototype.
3727 * Makefile.in: Add rules for cli-logging.c.
3728 * NEWS: Mention "set logging".
3729
88a07d7c
EZ
37302003-06-27 Elena Zannoni <ezannoni@redhat.com>
3731
3732 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3733
4eb58876
AC
37342003-06-27 Andrew Cagney <cagney@redhat.com>
3735
3736 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3737 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3738 * avr-tdep.c (avr_call_dummy_address): Delete function.
3739 (avr_gdbarch_init): Do not set call_dummy_address.
3740
1549f619
EZ
37412003-06-27 Elena Zannoni <ezannoni@redhat.com>
3742
3743 * symfile.c (syms_from_objfile): Move variables to inner block.
3744 Move the checks for the non-mainline case a bit earlier to avoid
3745 doing some useless computations.
3746
3cb3398d
EZ
37472003-06-27 Elena Zannoni <ezannoni@redhat.com>
3748
3749 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3750
3799ccc6
EZ
37512003-06-26 Elena Zannoni <ezannoni@redhat.com>
3752
3753 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3754 sections.
3755
ce1f6491
MC
37562003-06-26 Michael Chastain <mec@shout.net>
3757
3758 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3759 gdb/testsuite/gdb.c++/pr-1210.exp.
3760
d958dfd0
AC
37612003-06-26 Andrew Cagney <cagney@redhat.com>
3762
3763 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3764 altivec_expression.h and altivec_registers.h.
3765
d31431ed
AC
37662003-06-26 Andrew Cagney <cagney@redhat.com>
3767
3768 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3769 info->mach when MIPS16. Patch suggested by Fred Fish.
3770
714b1282
AC
37712003-06-26 Andrew Cagney <cagney@redhat.com>
3772
3773 * utils.c (internal_vproblem): Print the problem to a reason
3774 buffer and then pass to query. Make the msg variable more local.
3775
42efa47a
AC
37762003-06-26 Andrew Cagney <cagney@redhat.com>
3777
3778 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3779 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3780 * gdbarch.h, gdbarch.c: Re-generate.
3781 * frame-base.c (default_frame_args_address): Update. Use
3782 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3783 not available.
3784 (default_frame_locals_address): Ditto for
3785 DEPRECATED_FRAME_LOCALS_ADDRESS.
3786 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3787 (vax_frame_num_args): Update.
3788 (vax_gdbarch_init): Update.
3789 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3790 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3791 * mcore-tdep.c (mcore_gdbarch_init): Update.
3792 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3793 * ia64-tdep.c (ia64_gdbarch_init): Update.
3794 * symtab.h (address_class): Update comments.
3795 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3796 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3797 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3798 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3799 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3800 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3801 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3802 * alpha-mdebug-tdep.c: Update.
3803 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3804
8ffd9b1b
AJ
38052003-06-26 Andreas Jaeger <aj@suse.de>
3806
3807 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3808 of SSE registers so that varargs functions work. Rework handling
3809 of passing arguments on the stack.
3810 (x86_64_store_return_value): Return double and float values in SSE
3811 register.
3812
e8ac10a6
MC
38132003-06-24 Michael Chastain <mec@shout.net>
3814
3815 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3816 the "constructor breakpoints ignored" bug.
3817
986af8e6
DC
38182003-06-25 David Carlton <carlton@kealia.com>
3819
3820 * MAINTAINERS: Update e-mail address.
3821
d64558a5
JB
38222003-06-24 Jim Blandy <jimb@redhat.com>
3823
e538d2d7
JB
3824 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3825
02631ec0
JB
3826 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3827 function.
3828 (ppc_linux_init_abi): Register it as the
3829 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3830
e716d87a
JB
3831 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3832 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3833 method.
3834
d64558a5
JB
3835 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3836 (ppc64_standard_linkage_target): Use it.
3837
449a5da4
AC
38382003-06-23 Andrew Cagney <cagney@redhat.com>
3839
3840 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3841 for 0 "int0" and 4 "int32" sized registers.
3842 * gdbtypes.c (builtin_type_int0): Define.
3843 (build_gdbtypes): Initialize builtin_type_int0.
3844 * gdbtypes.h (builtin_type_int0): Declare.
3845
b2a02dda
SC
38462003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3847
3848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3849 as characters are unsigned.
3850
fba3138e
DJ
38512003-06-22 Daniel Jacobowitz <drow@mvista.com>
3852
3853 PR gdb/1179
3854 * dwarfread.c (struct_type): Skip static fields without crashing.
3855
f6c8180b
AC
38562003-06-22 Andrew Cagney <cagney@redhat.com>
3857
3858 GDB 6.0 branch created.
f2c06f52
AC
3859 * README: Update.
3860 * PROBLEMS: Update. Empty.
3861 * NEWS: Update.
f6c8180b 3862
ae822768
DJ
38632003-06-22 Daniel Jacobowitz <drow@mvista.com>
3864
3865 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3866 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3867
261de166
AC
38682003-06-22 Andrew Cagney <cagney@redhat.com>
3869
3870 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3871 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3872 Velikov.
3873
30e94205
DJ
38742003-06-22 Daniel Jacobowitz <drow@mvista.com>
3875
3876 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3877 compilers.
3878
9e14d721
DJ
38792003-06-21 Daniel Jacobowitz <drow@mvista.com>
3880
3881 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3882 argument of val_print.
3883 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3884 to the address argument of baseclass_offset or target_read_memory.
3885 Do add it to the argument of cp_print_value_fields.
3886
a4b8ebc8
AC
38872003-06-21 Andrew Cagney <cagney@redhat.com>
3888
3889 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3890 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3891 instead of 0..NUM_REGS.
3892 (mips_register_reggroup_p): New function.
3893 (mips_pseudo_register_write): New function.
3894 (mips_pseudo_register_read): New function.
3895 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3896 based on the register's type.
3897 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3898 cooked.
3899 (mips_get_saved_register): Simplify. Assert that REGNO is a
3900 pseudo / cooked.
3901 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3902 (mips_register_type): Replace mips_register_virtual_type. Map
3903 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3904 when available.
3905 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3906 that the register is cooked / virtual.
3907 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3908 Only get the extra info when needed.
3909 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3910 (mips32_heuristic_proc_desc): Fetch the cooked register.
3911 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3912 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3913 (mips_print_register): Use gdbarch_register_type, instead of
3914 REGISTER_VIRTUAL_TYPE.
3915 (print_gp_register_row): Use gdbarch_register_type, instead of
3916 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3917 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3918 Print the pseudo / cooked registers.
3919 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3920 Print the pseudo / cooked registers.
3921 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3922 REG_NUM is pseudo / cooked.
3923 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3924 (mips_n32n64_xfer_return_value): Ditto.
3925 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3926 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3927 (mips_register_sim_regno): New function.
3928 (mips_gdbarch_init): Set deprecated_register_byte,
3929 register_group_p, pseudo_register_write, pseudo_register_read,
3930 register_sim_regno, and num_pseudo_regs. Set register_type,
3931 instead of register_virtual_type.
3932 * Makefile.in (mips-tdep.o): Update dependencies.
3933 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3934 REGISTER_VIRTUAL_TYPE.
3935 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3936 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3937 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3938 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3939 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3940
325ed089
DJ
39412003-06-21 Daniel Jacobowitz <drow@mvista.com>
3942
3943 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3944 * cli/cli-cmds.c: Include "gdb_vfork.h".
3945 (shell_escape): Use vfork.
3946
f0e7d0e8
AC
39472003-06-21 Andrew Cagney <cagney@redhat.com>
3948
c57bb9fa
AC
3949 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3950 32 bit floating-point register saves.
3951
6e51443a
AC
3952 * frame.h (deprecated_unwind_get_saved_register): Delete.
3953 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3954 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3955 and deprecated_get_next_frame_hack instead of
3956 deprecated_unwind_get_saved_register.
3957
ed183c7c
AC
3958 * mips-tdep.c (mips_dump_tdep): Do not print
3959 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3960
f0e7d0e8
AC
3961 * frame.c (get_frame_register): New function.
3962 (frame_unwind_register_signed): New function.
3963 (get_frame_register_signed): New function.
3964 (frame_unwind_register_unsigned): New function.
3965 (get_frame_register_unsigned): New function.
3966 * frame.h: Add comments on naming schema.
3967 (get_frame_register, frame_unwind_register_signed): Declare.
3968 (get_frame_register_signed, get_frame_register_signed): Declare.
3969 (frame_unwind_register_unsigned): Declare.
3970 (get_frame_register_unsigned): Declare.
3971
2224d941
TR
39722003-06-20 Theodore A. Roth <troth@openavr.org>
3973
3974 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3975
8619218d
TR
39762003-06-20 Theodore A. Roth <troth@openavr.org>
3977
3978 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3979 (avr_read_sp): Ditto.
3980
0b1b50c0
DJ
39812003-06-20 Daniel Jacobowitz <drow@mvista.com>
3982
3983 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3984 * config/arm/nm-linux.h: Likewise.
3985 * config/arm/tm-linux.h: Likewise.
3986 * config/ia64/nm-linux.h: Likewise.
3987 * config/ia64/tm-ia64.h: Likewise.
3988 * config/s390/tm-linux.h: Likewise.
3989 * config/s390/tm-s390.h: Likewise.
3990 * s390-nat.c: Likewise.
3991 * s390-tdep.c: Likewise.
3992
3993 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3994 * config/ia64/linux.mt: Likewise.
3995 * config/m68k/linux.mh: Likewise.
3996 * config/mips/linux.mt: Likewise.
3997 * config/powerpc/linux.mh: Likewise.
3998 * config/sh/linux.mt: Likewise.
3999
c8c18e65
KW
40002003-06-19 Kris Warkentin <kewarken@qnx.com>
4001
4002 * solib.c (solib_open): Change tests for whether to search
4003 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4004 comments.
4005
dcccef2e
TR
40062003-06-19 Theodore A. Roth <troth@openavr.org>
4007
4008 * avr-tdep.c (avr_frame_address): Delete function.
4009 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4010 set_gdbarch_frame_args_address.
4011
5861a190
AC
40122003-06-19 Andrew Cagney <cagney@redhat.com>
4013
4014 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4015 (REGISTER_CONVERT_FROM_TYPE): Delete.
4016 (mips_register_convert_to_type): Delete declaration.
4017 (mips_register_convert_from_type): Delete declaration.
4018 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4019 kernel/.
4020
0274a8ce
MS
40212003-06-19 Michael Snyder <msnyder@redhat.com>
4022
4023 * linux-nat.h: New file.
4024 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4025 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4026 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4027 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4028 (linux_make_note_section): Iterate over lwps instead of threads.
4029 (linux_do_thread_registers): Use lwp instead of merged pid.
4030 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4031 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4032 Add dependency on linux_nat_h.
4033
adf5f719
TR
40342003-06-19 Theodore A. Roth <troth@openavr.org>
4035
4036 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4037
6766a268
DJ
40382003-06-19 Daniel Jacobowitz <drow@mvista.com>
4039
4040 * varobj.c (get_type, get_target_type): Use check_typedef.
4041
1171114a
DJ
40422003-06-19 Daniel Jacobowitz <drow@mvista.com>
4043
4044 * breakpoint.c (insert_catchpoint): Call internal_error.
4045
adcf68a2
TR
40462003-06-19 Theodore A. Roth <troth@openavr.org>
4047
4048 * avr-tdep.c (avr_push_dummy_code): Delete function.
4049 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4050
ea67f13b
DJ
40512003-06-19 Daniel Jacobowitz <drow@mvista.com>
4052
4053 * arch-utils.c (default_prepare_to_proceed): Remove.
4054 (generic_prepare_to_proceed): Remove.
4055 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4056 (generic_prepare_to_proceed): Remove prototype.
4057 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4058 * gdbarch.c: Regenerate.
4059 * gdbarch.h: Regenerate.
4060 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4061 * hppah-nat.c (hppa_switched_threads): Remove.
4062 * infrun.c (prepare_to_proceed): New static function, copied from
4063 generic_prepare_to_proceed. Remove select_it argument.
4064 (proceed): Call prepare_to_proceed.
4065 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4066 variables.
4067 (ptrace_wait): Don't set the removed variables.
4068 (hppa_switched_threads): Remove.
4069 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4070 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4071 (lin_lwp_prepare_to_proceed): Remove prototype.
4072 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4073 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4074
4add8633
TR
40752003-06-18 Theodore A. Roth <troth@openavr.org>
4076
4077 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4078 trad-frame.h.
4079 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4080 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4081 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4082 (AVR_PROLOGUE_*): Enumerate prologue types.
4083 (struct frame_extra_info): Remove.
4084 (struct avr_unwind_cache): Define.
4085 (avr_write_sp): Delete function.
4086 (avr_read_fp): Ditto.
4087 (avr_init_extra_frame_info): Ditto.
4088 (avr_pop_frame): Ditto.
4089 (avr_frame_saved_pc): Ditto.
4090 (avr_saved_pc_after_call): Ditto.
4091 (avr_push_return_address): Ditto.
4092 (avr_frame_chain): Ditto.
4093 (avr_store_struct_return): Ditto.
4094 (avr_push_arguments): Ditto.
4095 (avr_scan_prologue): Update comments. Changed to set up the info for
4096 cache unwinding. Now returns end of prologue PC.
4097 (avr_skip_prologue): Better handling of functions lacking a prologue
4098 by using avr_scan_prologue.
4099 (avr_scan_arg_moves): New function.
4100 (avr_saved_regs_unwinder): Ditto.
4101 (avr_frame_unwind_cache): Ditto.
4102 (avr_unwind_pc): Ditto.
4103 (avr_frame_this_id): Ditto.
4104 (avr_frame_prev_register): Ditto.
4105 (avr_frame_p): Ditto.
4106 (avr_frame_base_address ): Ditto.
4107 (avr_unwind_dummy_id): Ditto.
4108 (avr_push_dummy_code): Ditto.
4109 (push_stack_item): Ditto.
4110 (pop_stack_item): Ditto.
4111 (avr_push_dummy_call): Ditto.
4112 (struct stack_item): Define.
4113 (avr_frame_unwind): Declare structure.
4114 (avr_frame_base): Ditto.
4115 (avr_gdbarch_init): Remove calls to
4116 set_gdbarch_deprecated_init_frame_pc,
4117 set_gdbarch_deprecated_target_read_fp,
4118 set_gdbarch_deprecated_dummy_write_sp,
4119 set_gdbarch_deprecated_fp_regnum,
4120 set_gdbarch_deprecated_push_arguments,
4121 set_gdbarch_deprecated_push_return_address,
4122 set_gdbarch_deprecated_pop_frame,
4123 set_gdbarch_deprecated_store_struct_return,
4124 set_gdbarch_deprecated_frame_init_saved_regs,
4125 set_gdbarch_deprecated_init_extra_frame_info,
4126 set_gdbarch_deprecated_frame_chain,
4127 set_gdbarch_deprecated_frame_saved_pc,
4128 set_gdbarch_deprecated_saved_pc_after_call.
4129 Add calls to set_gdbarch_push_dummy_call,
4130 set_gdbarch_push_dummy_code,
4131 frame_unwind_append_predicate,
4132 frame_base_set_default,
4133 set_gdbarch_unwind_dummy_id,
4134 set_gdbarch_unwind_pc.
4135 Wrap a long line.
4136
7be04a68
MS
41372003-06-18 Corinna Vinschen <vinschen@redhat.com>
4138
4139 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4140 registers for H8/300S.
4141 (h8300_print_registers_info): Ditto.
8ffd9b1b 4142 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4143
ae087d01
DJ
41442003-06-18 Daniel Jacobowitz <drow@mvista.com>
4145
4146 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4147 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4148 (lin_lwp_wait): Likewise. Update comments.
4149 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4150 (pull_pid_from_list, linux_record_stopped_pid): New.
4151
07d8f827
SC
41522003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4153
4154 * ada-lang.c (scan_discrim_bound): Name first argument.
4155 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4156 declared by ALL_BLOCK_SYMBOLS.
4157
7cb47b14
SC
41582003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4159
4160 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4161 ("regcache.h"): Include it.
4162 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4163
6ad8ae5c
DJ
41642003-06-17 Daniel Jacobowitz <drow@mvista.com>
4165
4166 * NEWS: Mention gdbserver detach change and "disconnect" command.
4167 * infcmd.c (disconnect_command): New function.
4168 (_initialize_infcmd): Add ``disconnect'' command.
4169 * remote.c (remote_async_detach): Delete.
4170 (remote_detach): Merge remote_async_detach.
4171 (remote_disconnect): New.
4172 (init_remote_ops): Set to_disconnect.
4173 (init_remote_cisco_ops): Likewise.
4174 (init_remote_async_ops): Likewise. Use remote_detach.
4175 * target.c (cleanup_target): Default to_disconnect.
4176 (update_current_target): Inherit to_disconnect.
4177 (target_disconnect, debug_to_disconnect): New functions.
4178 (setup_target_debug): Set to_disconnect.
4179 * target.h (struct target_ops): Add to_disconnect.
4180 (target_disconnect): Add prototype.
4181
687595f9
DJ
41822003-06-17 Daniel Jacobowitz <drow@mvista.com>
4183
4184 * breakpoint.c (insert_catchpoint): New function.
4185 (insert_breakpoints): Use catch_exceptions to call
4186 insert_catchpoint. Disable catchpoints if they fail to insert.
4187
29239a8f
DJ
41882003-06-17 Daniel Jacobowitz <drow@mvista.com>
4189
4190 * symfile.c (reread_symbols): Clear sym_private.
4191
2cdf3c63
AC
41922003-06-17 Andrew Cagney <cagney@redhat.com>
4193
4194 * trad-frame.h (struct frame_info): Add opaque declaration.
4195 * remote-fileio.h (struct cmd_list_element): Add opaque
4196 declaration.
4197 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4198 comments.
4199
cf0e1e0d
DJ
42002003-06-17 Daniel Jacobowitz <drow@mvista.com>
4201
4202 * remote.c (remote_prepare_to_store): Replace call to
4203 deprecated_read_register_bytes with multiple regcache_raw_read
4204 calls.
4205
192cdb19
KW
42062003-06-17 Kris Warkentin <kewarken@qnx.com>
4207
4208 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4209 (nto_find_and_open_solib): Likewise.
4210 (nto_init_solib_absolute_prefix): Likewise.
4211 (_initialize_nto_tdep): Fix indentation.
4212
89929b45
KW
42132003-06-17 Kris Warkentin <kewarken@qnx.com>
4214
4215 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4216
46019f27
KW
42172003-06-17 Kris Warkentin <kewarken@qnx.com>
4218
4219 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4220
1a38736e
JB
42212003-06-17 Jim Blandy <jimb@redhat.com>
4222
4223 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4224
3605c34a
TR
42252003-06-16 Theodore A. Roth <troth@openavr.org>
4226
4227 * avr-tdep.c (avr_extract_return_value): New function.
4228 (avr_gdbarch_init): Set extract_return_value method.
4229
870b3035
AC
42302003-06-16 Andrew Cagney <cagney@redhat.com>
4231
4232 * frame.h (deprecated_get_next_frame_hack): Declare.
4233 * frame.c (legacy_saved_regs_prev_register): Only require
4234 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4235 there are always saved regs.
4236 (deprecated_generic_get_saved_register): Do not require
4237 DEPRECATED_FRAME_INIT_SAVED_REGS.
4238 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4239 use frame ID unwind instead.
4240 (deprecated_get_next_frame_hack): New function.
4241
63d47a7d
CV
42422003-06-16 Corinna Vinschen <vinschen@redhat.com>
4243
4244 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4245 (h8300_push_dummy_call): ...this function. Some minor optimization.
4246 (h8300_push_return_address): Remove.
4247 (h8300_gdbarch_init): Remove calls to
4248 set_gdbarch_deprecated_dummy_write_sp,
4249 set_gdbarch_deprecated_push_arguments and
4250 set_gdbarch_deprecated_push_return_address.
4251 Add call to set_gdbarch_push_dummy_call.
4252
4bb1dc5e
CV
42532003-06-16 Corinna Vinschen <vinschen@redhat.com>
4254
4255 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4256 (E_PSEUDO_EXR_REGNUM): Ditto.
4257 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4258 registers into safe registers.
4bb1dc5e
CV
4259 (h8300_skip_prologue): Check for stm instruction to push registers
4260 used for register variables onto stack.
4261 (gdb_print_insn_h8300): Remove.
4262 (h8300_examine_prologue): Add a comment.
4263 (h8300_register_name): Take pseudo registers into account.
4264 (h8300s_register_name): Ditto.
4265 (h8300sx_register_name): Ditto.
4266 (h8300_print_register): Ditto.
4267 (h8300_print_registers_info): Define "nice" printing order.
4268 (h8300_saved_pc_after_call): Take pseudo registers into account.
4269 (h8300_register_type): Ditto. Return type used for remote connection
4270 when requesting real CCR or EXR register, return actual type when
4271 requesting pseudo CCR or EXR.
4272 (h8300_pseudo_register_read): New function.
4273 (h8300_pseudo_register_write): Ditto.
4274 (h8300_dbg_reg_to_regnum): Ditto.
4275 (h8300s_dbg_reg_to_regnum): Ditto.
4276 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4277 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4278 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4279 set_gdbarch_print_insn architecture dependent.
4280 Call set_gdbarch_pseudo_register_read and
4281 set_gdbarch_pseudo_register_write.
4282 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4283
a59fe496
AC
42842003-06-16 Andrew Cagney <cagney@redhat.com>
4285
4286 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4287 * gdbarch.h, gdbarch.c: Re-generate.
4288 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4289 * s390-tdep.c (s390_gdbarch_init): Update.
4290 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4291 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4292 * mips-tdep.c (mips_gdbarch_init): Update.
4293 * mcore-tdep.c (mcore_gdbarch_init): Update.
4294 * cris-tdep.c (cris_gdbarch_init): Update.
4295 * infcall.c (call_function_by_hand): Update.
4296 * ia64-tdep.c (ia64_push_arguments): Update comment.
4297 * frame.c (legacy_get_prev_frame): Do not assume
4298 SAVE_DUMMY_FRAME_TOS_P.
4299 * dummy-frame.c (find_dummy_frame): Update comment.
4300
6f4e5a41
AC
43012003-06-16 Andrew Cagney <cagney@redhat.com>
4302
4303 * regcache.c (do_cooked_read): Do not use register_valid_p.
4304
72fab697
TR
43052003-06-15 Theodore A. Roth <troth@openavr.org>
4306
4307 * avr-tdep.c (avr_register_type): Remove a blank line.
4308 (avr_scan_prologue): Correct some comments.
4309
e3d8b004
TR
43102003-06-15 Theodore A. Roth <troth@openavr.org>
4311
4312 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4313 prologue types.
8ffd9b1b 4314 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4315 option.
4316 Add code to scan -mcall-prologues for mega devices.
4317
866b76ea
TR
43182003-06-15 Theodore A. Roth <troth@openavr.org>
4319
4320 * avr-tdep.c (avr_register_byte): Delete function.
4321 (avr_register_raw_size): Delete function.
4322 (avr_register_virtual_size): Delete function.
4323 (avr_register_virtual_type): Delete function.
4324 (avr_register_type): New function.
4325 (avr_address_to_pointer): Remove unused code.
4326 (avr_read_fp): Need to read FP as two separate bytes due to change to
4327 avr_register_type() usage.
4328 (avr_gdbarch_init): Don't set deprecated_register_size.
4329 Don't set deprecated_register_bytes.
4330 Don't set deprecated_register_byte.
4331 Don't set deprecated_register_raw_size.
4332 Don't set deprecated_max_register_raw_size.
4333 Don't set deprecated_register_virtual_size.
4334 Don't set deprecated_max_register_virtual_size.
4335 Don't set deprecated_register_virtual_type.
4336 Set register_type method.
4337
3993f6b1
DJ
43382003-06-15 Daniel Jacobowitz <drow@mvista.com>
4339
4340 * Makefile.in (linux-nat.o): Add rule.
4341 * linux-nat.c: New file.
4342 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4343 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4344 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4345 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4346 * config/arm/linux.mh (NATDEPFILES): Likewise.
4347 * config/i386/linux.mh (NATDEPFILES): Likewise.
4348 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4349 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4350 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4351 * config/mips/linux.mh (NATDEPFILES): Likewise.
4352 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4353 * config/s390/s390.mh (NATDEPFILES): Likewise.
4354 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4355
786a90bb
MK
43562003-06-15 Mark Kettenis <kettenis@gnu.org>
4357
4358 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4359 replace out-of-date comment.
4360
3bd3f01e
AC
43612003-06-15 Andrew Cagney <cagney@redhat.com>
4362
4363 * rdi-share/host.h (Fail): Change to a varargs function.
4364 * remote-rdi.c (Fail): Update.
8ffd9b1b 4365
de5b9bb9
MK
43662003-06-15 Mark Kettenis <kettenis@gnu.org>
4367
4368 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4369 (i386_convert_register_p, i386_register_to_value,
4370 i386_register_from_value): Handle types longer than 8 bytes.
4371
d532c08f
MK
43722003-06-15 Mark Kettenis <kettenis@gnu.org>
4373
4374 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4375 Move floating-point code to new function in i387-tdep.c.
4376 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4377 New functions containing code moved here from i386-tdep.c.
4378 * i387-tdep.h: Add opaque declaration for `struct type'.
4379 (i387_register_to_value, i387_value_to_register): New prototypes.
4380 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4381 (x86_64_init_abi): Set convert_register_p, register_to_value and
4382 value_to_register here.
8ffd9b1b 4383
42c466d7
AC
43842003-06-14 Andrew Cagney <cagney@redhat.com>
4385
4386 * mips-tdep.c (mips_register_to_value): Make static.
4387 (mips_value_to_register): Make static.
4388 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4389 * ia64-tdep.c (ia64_register_raw_size): Make static.
4390 (ia64_register_virtual_size): Make static.
4391 (ia64_register_byte): Make static.
4392 * i387-tdep.c: Include "i387-tdep.h".
4393 (print_387_control_word): Delete function.
4394 (print_387_status_word): Delete function.
4395 (print_387_status_bits): Delete function.
4396 (print_387_control_bits): Delete function.
4397 * Makefile.in (i387-tdep.o): Update dependencies.
4398 * rdi-share/host.h (Fail): Declare.
4399 * remote-rdi.c (Fail): Update to match declaration.
4400
2a9cda49
AC
44012003-06-14 Andrew Cagney <cagney@redhat.com>
4402
4403 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4404 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4405 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4406 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4407 * README: Delete reference to remote-array.
4408 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4409 (remote-array.o): Delete target.
4410 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4411 * remote-array.c: Delete file.
4412
ff2e87ac
AC
44132003-06-14 Andrew Cagney <cagney@redhat.com>
4414 Mark Kettenis <kettenis@gnu.org>
4415
4416 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4417 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4418 parameter with "frame".
4419 * gdbarch.h, gdbarch.c: Re-generate.
4420 * frame.h (put_frame_register): Declare.
4421 * frame.c (put_frame_register): New function.
4422 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4423 (legacy_register_to_value): Rewrite, use "frame" to get the
4424 register value.
4425 (legacy_value_to_register): Rewrite, use "frame" to find the
4426 register's location before storing.
4427 * arch-utils.h (legacy_convert_register_p): Update.
4428 (legacy_register_to_value, legacy_value_to_register): Update.
4429 * findvar.c (value_from_register): Rewrite, eliminate use of
4430 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4431 "frame" to REGISTER_TO_VALUE.
4432 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4433 lval_reg_frame_relative + lval_register branch of the switch. Do
4434 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4435 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4436 I386_EDI_REGNUM): New defines.
4437 (i386_next_regnum, i386_convert_register_p,
4438 i386_register_to_value, i386_value_to_register): New functions.
4439 (i386_register_convertible, i386_register_convert_to_virtual,
4440 i386_convert_to_raw): Remove functions.
4441 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4442 value_to_register instead of register_convertible,
4443 register_convert_to_virtual and register_convert_to_raw.
4444 * mips-tdep.c (mips_convert_register_p): New function.
4445 (mips_value_to_register): Replace mips_register_convert_from_type.
4446 (mips_register_to_value): Replace mips_register_convert_to_type.
4447 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4448 register_to_value.
4449 * alpha-tdep.c (alpha_convert_register_p): Update.
4450 (alpha_value_to_register): Update, store the register.
4451 (alpha_register_to_value): Update, fetch the register.
4452
98be1e77
TR
44532003-06-14 Theodore A. Roth <troth@openavr.org>
4454
4455 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4456 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4457 Don't set deprecated_call_dummy_words.
4458 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4459 Don't set remote_translate_xfer_address.
4460 (avr_io_reg_read_command): Remove commented out debug printf.
4461 Wrap a long line.
4462
57bc6122
TR
44632003-06-14 Theodore A. Roth <troth@openavr.org>
4464
4465 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4466 causes gdb to seg fault.
4467
eb01fc62
DJ
44682003-06-14 Daniel Jacobowitz <drow@mvista.com>
4469
4470 * sparc-nat.c (fetch_inferior_registers): Correct
4471 a reference to "registers".
4472
3b3e6bee
DJ
44732003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4474
4475 * Makefile.in (exc_request_U_h): Define
4476 (exc_request_S_h): Likewise.
4477 (msg_reply_S_h): Likewise.
4478 (msg_U_h): Likewise.
4479 (notify_S_h): Likewise.
4480 (process_reply_S_h): Likewise.
4481 (gnu-nat.o): Depend on gdb_obstack_h
4482 * gnu-nat.c: Include "gdb_obstack.h".
4483
b8de8283
AC
44842003-06-13 Andrew Cagney <cagney@redhat.com>
4485
4486 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4487 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4488
f3be58bc
AC
44892003-06-13 Andrew Cagney <cagney@redhat.com>
4490
4491 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4492 when deprecated REGISTER macros can be deleted.
4493 * gdbarch.h, gdbarch.c: Re-generate.
4494
4c0122c8
JB
44952003-06-13 Jim Blandy <jimb@redhat.com>
4496
4497 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4498 Linux entry point symbols for _dl_debug_state, too.
4499
3e210248
AC
45002003-06-13 Andrew Cagney <cagney@redhat.com>
4501
4502 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4503 available, do not use the FP register, and always save the TOS.
4504 * dummy-frame.c (dummy_frame_this_id): Do not assert
4505 SAVE_DUMMY_FRAME_TOS.
4506 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4507 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4508 (i386_push_dummy_call): Add 8 to the returned SP.
4509 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4510 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4511 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4512 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4513 (x86_64_push_dummy_call): Return "sp + 16".
4514 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4515 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4516 save_dummy_frame_tos.
4517
0b65af49
JB
45182003-06-13 Jim Blandy <jimb@redhat.com>
4519
4520 * frv-tdep.c (frv_use_struct_convention): Delete static
4521 declaration for function deleted in my change of 2003-06-12.
4522
4ea2465e
TR
45232003-06-13 Theodore A. Roth <troth@openavr.org>
4524
4525 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4526 (avr_pointer_to_address): Shift code addrs left 1 bit.
4527 (avr_convert_from_func_ptr_addr): Delete function since operation is
4528 better handled by avr_address_to_pointer and avr_pointer_to_address.
4529 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4530
1581182a
MK
45312003-06-13 Mark Kettenis <kettenis@gnu.org>
4532
4533 From Kelley Cook <kelleycook@wideopenwest.com>:
4534 * configure.host: Accept i[34567]86 variants.
4535 * configure.tgt: Likewise.
4536 * nlm/configure.in: Likewise.
4537 * nlm/configure: Regenerated.
4538
7aa1783e
RE
45392003-06-13 Richard Earnshaw <rearnsha@arm.com>
4540
4541 * arm-tdep.c (solib-svr4.h): Dont' include it.
4542 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4543 * arm-linux-tdep.c: ... here. Make static.
4544 (arm_linux_init_abi): Register it.
4545 (solib-svr4.h): Include it.
4546 * Makefile.in: Update dependencies.
4547 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4548 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4549
0261a0d0
CV
45502003-06-13 Corinna Vinschen <vinschen@redhat.com>
4551
4552 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4553 indicate registers used for return values.
4554 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4555 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4556 members.
4557 (h8300_init_extra_frame_info): Ditto.
4558 (h8300_frame_locals_address): Removed.
4559 (h8300_frame_args_address): Removed.
4560 (h8300_extract_return_value): Use new regcache structure. Only care
4561 for 16 bit CPUs.
4562 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4563 (h8300_store_return_value): Use new regcache structure. Only care
4564 for 16 bit CPUs.
4565 (h8300h_store_return_value): Same function for 32 bit CPUs.
4566 (h8300_store_struct_return): Removed.
4567 (h8300_extract_struct_value_address): Use new regcache structure.
4568 (h8300h_extract_struct_value_address): Removed.
4569 (h8300_push_dummy_code): New function.
4570 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4571 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4572 set_gdbarch_store_return_value architecture dependent.
4573 Call set_gdbarch_push_dummy_code and
4574 set_gdbarch_extract_struct_value_address.
4575 Remove calls to set_gdbarch_frame_args_address,
4576 set_gdbarch_frame_locals_address,
4577 set_gdbarch_deprecated_store_struct_return,
4578 set_gdbarch_deprecated_extract_return_value,
4579 set_gdbarch_deprecated_extract_struct_value_address,
4580 set_gdbarch_deprecated_call_dummy_words and
4581 set_gdbarch_deprecated_sizeof_call_dummy_words.
4582
055c394a
CV
45832003-06-13 Corinna Vinschen <vinschen@redhat.com>
4584
4585 * h8300-tdep.c (h8300_register_byte): Remove.
4586 (h8300h_register_byte): Remove.
4587 (h8300_register_virtual_type): Remove. Substitute by...
4588 (h8300_register_type): New function.
4589 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4590 (h8300h_extract_struct_value_address): Ditto.
4591 (h8300_gdbarch_init): Drop calls to
4592 set_gdbarch_deprecated_register_byte and
4593 set_gdbarch_deprecated_register_virtual_type.
4594 Add call to set_gdbarch_register_type.
4595
9c04cab7
AC
45962003-06-13 Andrew Cagney <cagney@redhat.com>
4597
4598 * gdbarch.sh: Update comments on registers.
4599 (deprecated_register_byte): Rename register_byte.
4600 (deprecated_register_raw_size): Rename register_raw_size.
4601 (deprecated_register_virtual_size): Rename register_virtual_size.
4602 (deprecated_register_virtual_type): Rename register_virtual_type.
4603 * gdbarch.h, gdbarch.c: Re-generate.
4604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4605 * vax-tdep.c (vax_gdbarch_init): Update.
4606 * v850-tdep.c (v850_gdbarch_init): Update.
4607 * sparc-tdep.c (sparc_gdbarch_init): Update.
4608 * sh-tdep.c (sh_gdbarch_init): Update.
4609 * s390-tdep.c (s390_gdbarch_init): Update.
4610 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4611 * ns32k-tdep.c: Update.
4612 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4613 * mips-tdep.c (mips_gdbarch_init): Update.
4614 * mcore-tdep.c (mcore_gdbarch_init): Update.
4615 * m68k-tdep.c (m68k_gdbarch_init): Update.
4616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4617 * ia64-tdep.c (ia64_gdbarch_init): Update.
4618 * hppa-tdep.c (hppa_gdbarch_init): Update.
4619 * h8300-tdep.c (h8300_gdbarch_init): Update.
4620 * frv-tdep.c (frv_gdbarch_init): Update.
4621 * cris-tdep.c (cris_gdbarch_init): Update.
4622 * avr-tdep.c (avr_gdbarch_init): Update.
4623 * alpha-tdep.c (alpha_gdbarch_init): Update.
4624 * arm-tdep.c (arm_gdbarch_init): Update.
4625
b060cbea
AC
46262003-06-13 Andrew Cagney <cagney@redhat.com>
4627
4628 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4629 mips_o32_use_struct_convention with always_use_struct_convention.
4630
0fc9922a
DC
46312003-06-12 David Carlton <carlton@kealia.com>
4632
4633 * cp-namespace.c (cp_set_block_scope): Comment out
4634 processing_has_namespace_info branch.
4635
1fd35568
JB
46362003-06-12 Jim Blandy <jimb@redhat.com>
4637
f470a70a
JB
4638 Recognize and skip 64-bit PowerPC Linux linkage functions.
4639 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4640 insn_pattern, insns_match_pattern, d_field, ds_field): New
4641 functions, macros, and types for working with PPC instructions.
4642 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4643 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4644 ppc64_skip_trampoline_code): New functions, variables, and macros
4645 for recognizing and skipping linkage functions.
4646 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4647 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4648
49ff75ad
JB
4649 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4650 register offsets for both the 32- and 64-bit interfaces.
4651
bd918c83
JB
4652 Actually finish the job started by my change of 2003-05-29.
4653 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4654 other #definition of this.
4655 (ppc_linux_skip_trampoline_code): Remove declaration.
4656 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4657 static.
4658 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4659 method for GDBARCH.
4660
4661 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4662 'long' on ppc64-*-linux*.
4663
f8c59253
JB
4664 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4665 isn't #defined, assume the register doesn't exist: act as if
4666 tdep->ppc_mq_regnum were -1.
4667
8fbb30b1
JB
4668 * configure.host, configure.tgt: Add entries for
4669 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4670 powerpc/linux.mt.
4671 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4672 New files.
4673
1fd35568
JB
4674 * arch-utils.c (always_use_struct_convention): New function.
4675 * arch-utils.h (always_use_struct_convention): New prototype.
4676 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4677 (alpha_gdbarch_init): Register always_use_struct_convention,
4678 instead of alpha_use_struct_convention.
4679 * cris-tdep.c (cris_use_struct_convention): Delete.
4680 (cris_gdbarch_init): Register always_use_struct_convention,
4681 instead of cris_use_struct_convention.
4682 * frv-tdep.c (frv_use_struct_convention): Delete.
4683 (frv_gdbarch_init): Register always_use_struct_convention,
4684 instead of frv_use_struct_convention.
4685 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4686 (h8300_gdbarch_init): Register always_use_struct_convention,
4687 instead of h8300_use_struct_convention.
e3305dd9 4688 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4689 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4690 instead of mips_o32_use_struct_convention.
4691
e14e6e9c
AC
46922003-06-12 Andrew Cagney <cagney@redhat.com>
4693
4694 * wince.c: Include "mips-tdep.h".
4695 * mips-tdep.h (mips_next_pc): Declare.
4696 * mcore-tdep.c: Make more local functions static.
4697 * Makefile.in (wince.o): Update dependencies.
4698
2335f48e
DC
46992003-06-12 David Carlton <carlton@kealia.com>
4700
4701 * symtab.c (lookup_symbol_aux_minsyms): Replace
4702 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4703 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4704 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4705 SYMBOL_NATURAL_NAME.
4706
f70a7d61
AS
47072003-06-12 Andreas Schwab <schwab@suse.de>
4708
4709 * Makefile.in (tuiDisassem.o): Update dependencies.
4710
b6429628
DC
47112003-06-12 David Carlton <carlton@bactrian.org>
4712
4713 * symtab.h: Delete declaration of make_symbol_overload_list.
4714 Add declaration of lookup_partial_symbol.
4715 * symtab.c (remove_params): Move to cp-support.c.
4716 (overload_list_add_symbol, make_symbol_overload_list)
4717 (sym_return_val_size, sym_return_val_index): Ditto.
4718 (lookup_partial_symbol): Make extern.
4719 * cp-support.h: Add declaration of make_symbol_overload_list.
4720 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4721 symtab.h, and block.h.
4722 (remove_params): Move here from symtab.c.
4723 (overload_list_add_symbol, make_symbol_overload_list)
4724 (sym_return_val_size, sym_return_val_index): Ditto.
4725 * valops.c: Include cp-support.h.
4726 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4727 frame_h, and block_h.
4728 (valops.o): Depend on cp_support_h.
4729
084edea5
CV
47302003-06-12 Corinna Vinschen <vinschen@redhat.com>
4731
4732 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4733 substitute by NUM_REGS throughout.
4734 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4735 (h8300s_register_name): New function for H8S registers.
4736 (h8300sx_register_name): Ditto for H8SX registers.
4737 (h8300_print_register): Revise register printing, avoid depending
4738 on 32 bit long.
0261a0d0 4739 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4740 (h8300h_register_byte): New function for any other architecture.
4741 (h8300_register_raw_size): Remove.
4742 (h8300_register_virtual_type): Revise to return actually useful
4743 type.
4744 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4745 (h8300h_extract_struct_value_address): New function for any other
4746 architecture.
4747 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4748 set_gdbarch_register_name, set_gdbarch_register_byte,
4749 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4750 Remove calls to set_gdbarch_deprecated_register_size,
4751 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4752 set_gdbarch_deprecated_max_register_raw_size,
4753 set_gdbarch_register_virtual_size and
4754 set_gdbarch_deprecated_max_register_virtual_size entirely.
4755 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4756 set_gdbarch_long_double_bit.
4757
06194148
JJ
47582003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4759
8ffd9b1b
AJ
4760 * doublest.c (convert_doublest_to_floatformat): When dealing
4761 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4762 processing a full 32 bits of mantissa.
4763
de4f826b
DC
47642003-06-11 David Carlton <carlton@bactrian.org>
4765
4766 * dictionary.h: New.
4767 * dictionary.c: New.
4768 * block.h: Add opaque declaration for struct dictionary.
4769 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4770 'sym' members.
4771 (BLOCK_DICT): New macro.
4772 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4773 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4774 BLOCK_SHOULD_SORT.
4775 (ALL_BLOCK_SYMBOLS): Update definition.
4776 * Makefile.in (SFILES): Add dictionary.c.
4777 (dictionary_h): New.
4778 (COMMON_OBS): Add dictionary.o.
4779 (dictionary.o): New.
4780 (ada-lang.o): Depend on dictionary_h.
4781 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4782 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4783 (mi-cmd-stack.o): Ditto.
4784 (gdbtk-cmds.o): Update dependencies.
4785 (gdbtk-stack.o): Ditto.
4786 * ada-lang.c: Include dictionary.h.
4787 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4788 (fill_in_ada_prototype, debug_print_block): Ditto.
4789 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4790 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4791 'is_sorted'.
4792 * mdebugread.c: Include dictionary.h.
4793 (struct parse_stack): Delete 'maxsyms' member.
4794 (parse_symbol): Update calls to new_block. Delete calls to
4795 shrink_block. Use dictionary methods.
4796 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4797 Update calls to new_symtab. Don't maintain maxsyms data.
4798 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4799 (add_symbol): Just call dict_add_symbol.
4800 (new_symtab): Delete 'maxsyms' argument.
4801 (new_symtab): Update calls to new_block.
4802 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4803 (shrink_block): Delete function.
4804 (fixup_sigtramp): Update call to new_block. Add symbol via
4805 dict_add_symbol.
4806 * jv-lang.c: Include dictionary.h.
4807 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4808 appropriately. Set class_symtab->free_func. Make sure the
4809 blockvector is big enough to hold two blocks.
4810 (add_class_symtab_symbol): Use dictionary methods.
4811 (free_class_block): New function.
4812 (type_from_class): Replace explicit iteration by
4813 ALL_BLOCK_SYMBOLS.
4814 * symtab.h (struct symtab): Replace 'free_ptr' method by
4815 'free_func'.
4816 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4817 sort_symtab_syms.
4818 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4819 sort_symtab_syms.
4820 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4821 Include dictionary.h.
4822 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4823 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4824 sort_symtab_syms.
4825 * objfiles.c: Include dictionary.h.
4826 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4827 * buildsym.c: Include dictionary.h.
4828 (finish_block): Use dictionary methods.
4829 (end_symtab): Set free_func to NULL, not free_ptr.
4830 * tracepoint.c: Include dictionary.h.
4831 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4832 (scope_info): Ditto.
4833 * stack.c: Include dictionary.h.
4834 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4835 (print_block_frame_labels, print_frame_arg_vars)
4836 (print_frame_args): Ditto.
4837 * symmisc.c (free_symtab_block): Use dictionary methods.
4838 (dump_symtab): Ditto.
4839 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4840 Include dictionary.h.
4841 * symfile.h: Delete declarations of sort_block_syms,
4842 sort_symtab_syms.
4843 * symfile.c (sort_block_syms): Delete.
4844 (sort_symtab_syms): Delete.
4845 * symtab.c: Include dictionary.h.
4846 (lookup_block_symbol): Use dictionary iterators.
4847 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4848 (search_symbols, make_symbol_completion_list): Ditto.
4849 (make_symbol_overload_list): Ditto.
4850 * valops.c (value_of_local): Use dict_empty.
4851 Include dictionary.h.
4852
a31f978c
JB
48532003-06-11 J. Brobecker <brobecker@gnat.com>
4854
4855 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4856
526e70c0
DC
48572003-06-11 David Carlton <carlton@bactrian.org>
4858
4859 * block.h (BLOCK_SHOULD_SORT): Delete.
4860 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4861 blocks.
4862 * ada-lang.c (ada_add_block_symbols): Ditto.
4863 * symfile.c (sort_block_syms): Delete.
4864 (sort_symtab_syms): Ditto.
4865 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4866 declarations.
4867 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4868 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4869 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4870 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4871 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4872 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4873 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4874
33c08150
JJ
48752003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4876
8ffd9b1b 4877 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4878 bits to 128.
4879
781a750d
AC
48802003-06-11 Andrew Cagney <cagney@redhat.com>
4881
4882 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4883 REGISTER_CONVERTIBLE.
4884 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4885 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4886 * gdbarch.h, gdbarch.c: Re-generate.
4887 * arch-utils.h (deprecated_register_convertible_not): Rename
4888 generic_register_convertible_not.
4889 * arch-utils.c (deprecated_register_convertible_not): Rename
4890 generic_register_convertible.
4891 (legacy_convert_register_p, legacy_register_to_value): Update.
4892 * sh-tdep.c (sh64_push_arguments): Update.
4893 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4894 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4895 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4896 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4897 * arch-utils.c (legacy_value_to_register): Update.
4898 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4899 (rs6000_register_convert_to_raw): Make parameter "from" const.
4900 * mips-tdep.c (mips_gdbarch_init): Update.
4901 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4902 * infcmd.c (default_print_registers_info): Update.
4903 * ia64-tdep.c (ia64_gdbarch_init): Update.
4904 (ia64_register_convert_to_raw): Make parameter "from" const.
4905 * i386-tdep.c (i386_gdbarch_init): Update.
4906 (i386_register_convert_to_raw): Update.
4907
cd90e54f
AC
49082003-06-11 Andrew Cagney <cagney@redhat.com>
4909
4910 * remote-fileio.c: Include "remote-fileio.h".
4911 * Makefile.in (remote-fileio.o): Update dependencies.
4912 (remote_fileio_h): Fix typo.
4913
a78f21af
AC
49142003-06-11 Andrew Cagney <cagney@redhat.com>
4915
4916 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4917 (xstormy16_save_dummy_frame_tos): Make static.
4918 (_initialize_xstormy16_tdep): Add declaration.
4919 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4920 * v850-tdep.c: Make local functions static.
4921 (_initialize_v850_tdep): Add declaration.
4922 * sparc-tdep.c: Make local functions static.
4923 (_initialize_sparc_tdep): Add declaration.
4924 * sh-tdep.c: Make local functions static.
4925 (_initialize_sh_tdep): Add declaration.
4926 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4927 * s390-tdep.c: Make local functions static.
4928 (_initialize_s390_tdep): Add declaration.
4929 * dbxread.c (find_stab_function_addr): Make static.
4930 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4931 * ocd.c (_initialize_remote_ocd): Add declaration.
4932 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4933 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4934 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4935 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4936 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4937 * remote-array.c (_initialize_array): Add declaration.
4938 (_initialize_remote_monitors): Add declaration.
4939 * remote-mips.c: Make local functions static.
4940 (_initialize_remote_mips): Add declaration.
4941 * mcore-tdep.c: Make all local functions static.
4942 (_initialize_mcore_tdep): Add declaration.
4943 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4944 * abug-rom.c (_initialize_abug_rom): Add declaration.
4945 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4946 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4947 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4948 * remote-est.c (_initialize_est): Add declaration.
4949 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4950 (m68hc11_call_dummy_address): Make static.
4951 * ia64-tdep.c: Make local functions static.
4952 (_initialize_ia64_tdep): Add declaration.
4953 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4954 * monitor.c (monitor_wait_filter): Make static.
4955 (_initialize_remote_monitors): Add declaration.
4956 * remote-hms.c (_initialize_remote_hms): Add declaration.
4957 * remote-e7000.c (fetch_regs_from_dump): Make static.
4958 (expect_n): Make static.
4959 (_initialize_remote_e7000): Add declaration.
4960 * ser-e7kpc.c: Always include "defs.h".
4961 (_initialize_ser_e7000pc): Add declaration.
4962 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4963 * cris-tdep.c: Make all but one function static.
4964 (_initialize_cris_tdep): Add declaration.
4965 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4966 * solib.c (update_solib_list): Make static.
4967 (_initialize_solib): Add declaration.
4968 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4969 (_initialize_avr_tdep): Add declaration.
4970 * remote-rdi.c (voiddummy): Make static.
4971 (_initialize_remote_rdi): Add declaration.
4972 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4973 * remote-rdp.c (send_rdp): Make static.
4974 (_initialize_remote_rdp): Add declaration.
4975 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4976
cbcdb1f5
CV
49772003-06-11 Corinna Vinschen <vinschen@redhat.com>
4978
4979 * remote-fileio.c: Make ari happy.
4980
a191ea8d
JB
49812003-06-10 J. Brobecker <brobecker@gnat.com>
4982
4983 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4984 fetching the trailing bytes of the buffer we are about to write.
4985
0ef75e11
AC
49862003-06-10 Andrew Cagney <cagney@redhat.com>
4987
4988 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4989 * Makefile.in (remote-fileio.o): Update dependencies.
4990 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4991 include <setjmp.h>, or <sys/types.h> conditional on USG.
4992 (remote_fio_jmp_buf): Delete global variable.
4993
449092f6 49942003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 4995 Martin M. Hunt <hunt@redhat.com>
449092f6 4996
559fa028
AC
4997 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4998 (SFILES): Add remote-fileio.c.
4999 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5000 dependencies for building remote.o.
449092f6
CV
5001 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5002 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5003 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5004 static storage class.
5005 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5006 'F' packet.
5007 (_initialize_remote): Call initialize_remote_fileio().
5008 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5009 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5010 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5011 (captured_main): Initialize new ui_files.
5012 * ui-file.c: Add read and fgets input functions.
5013 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5014 (null_file_read): New function.
5015 (ui_file_read): New function.
5016 (set_ui_file_read): New function.
5017 (stdio_file_read): New function.
5018 * ui-file.h: New type ui_file_read_ftype.
5019 (set_ui_file_read): Declare.
5020 (ui_file_read): Declare.
5021
248de703
AC
50222003-06-09 Andrew Cagney <cagney@redhat.com>
5023
5024 * frame.h (deprecated_unwind_get_saved_register): Rename
5025 generic_unwind_get_saved_register, update comments.
5026 * mips-tdep.c (mips_get_saved_register): Update.
5027 * frame.c (deprecated_unwind_get_saved_register): Update.
5028
0ed8aa57
AC
50292003-06-09 Andrew Cagney <cagney@redhat.com>
5030
5031 * vax-tdep.c (vax_frame_locals_address): Delete function.
5032 (vax_gdbarch_init): Do not set frame_locals_address.
5033 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5034 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5035 * s390-tdep.c (s390_frame_args_address): Delete function.
5036 (s390_gdbarch_init): Do not set frame_args_address or
5037 frame_locals_address.
5038 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5039 (ns32k_gdbarch_init): Do not set frame_locals_address.
5040 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5041 (hppa_frame_locals_address): Delete function.
5042 (hppa_gdbarch_init): Do not set frame_args_address, or
5043 frame_locals_address.
5044 * arm-tdep.c (arm_frame_args_address): Delete.
5045 (arm_frame_locals_address): Delete.
5046 (arm_gdbarch_init): Do not set frame_args_address, or
5047 frame_locals_address.
5048
983a287a
AC
50492003-06-09 Andrew Cagney <cagney@redhat.com>
5050
5051 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5052 * gdbarch.h, gdbarch.c: Re-generate.
5053 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5054 * arch-utils.c (frame_num_args_unknown): Delete function.
5055 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5056 (frame_info): Use FRAME_NUM_ARGS_P.
5057 * arm-tdep.c (arm_frame_num_args): Delete function.
5058 (arm_gdbarch_init): Do not set frame_num_args.
5059 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5060 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5061 (hppa_gdbarch_init): Do not set frame_num_args.
5062 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5064 frame_num_args to default frame_num_args_unknown.
5065 * v850-tdep.c (v850_gdbarch_init): Ditto.
5066 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5067 * sh-tdep.c (sh_gdbarch_init): Ditto.
5068 * s390-tdep.c (s390_gdbarch_init): Ditto.
5069 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5070 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5071 * mips-tdep.c (mips_gdbarch_init): Ditto.
5072 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5073 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5074 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5075 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5076 * i386-tdep.c (i386_gdbarch_init): Ditto.
5077 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5078 * frv-tdep.c (frv_gdbarch_init): Ditto.
5079 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5080 * cris-tdep.c (cris_gdbarch_init): Ditto.
5081 * avr-tdep.c (avr_gdbarch_init): Ditto.
5082 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5083
8d3b0994
AC
50842003-06-09 Andrew Cagney <cagney@redhat.com>
5085
5086 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5087 (print_frame_args): Moved to "stack.c".
5088 * stack.c: Include "gdb_assert.h".
5089 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5090 (print_frame_args): Moved from "printcmd.c".
5091 * frame.h (print_frame_args): Delete declaration.
5092 * Makefile.in (stack.o): Update dependencies.
5093
25e3a86b
AC
50942003-06-08 Andrew Cagney <cagney@redhat.com>
5095
5096 * frame.c (get_prev_frame): Remove reference to
5097 frame_args_address_correct in comments.
5098 * frame-base.c (default_frame_args_address): Delete code
5099 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5100 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5101 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5102 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5103 (vax_frame_args_address_correct): Delete declaration.
5104
a9e5fdc2
AC
51052003-06-08 Andrew Cagney <cagney@redhat.com>
5106
5107 * gdbarch.sh (UNWIND_SP): Add.
5108 * gdbarch.h, gdbarch.c: Re-generate.
5109 * frame.c (frame_sp_unwind): New function.
5110 (get_frame_sp): New function.
5111 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5112 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5113 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5114 value.
5115 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5116 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5117
8983bd83
AC
51182003-06-08 Andrew Cagney <cagney@redhat.com>
5119
7fec2c59
AC
5120 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5121 REMOTE_BREAKPOINT.
5122 * remote.c: Update.
5123 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5124 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5125 * config/m68k/tm-sun3.h: Update.
5126 * config/m68k/tm-m68klynx.h: Update.
5127 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5128
8983bd83
AC
5129 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5130 trad_frame". Update comments.
5131 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5132 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5133 (trad_frame_register_value, trad_frame_prev_register): Update.
5134
b9362cc7
AC
51352003-06-08 Andrew Cagney <cagney@redhat.com>
5136
5137 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5138 from GCC's acinclude.m4.
5139 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5140 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5141 * main.c (error_init): Delete declaration.
5142 * defs.h (error_init): Declare.
5143 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5144 (rs6000_convert_from_func_ptr_addr): Make static.
5145 (_initialize_rs6000_tdep): Add declaration.
5146 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5147 (show_commands, set_verbose, show_history): Delete declaration.
5148 * top.h (set_verbose): Add declaration.
5149 (show_history, set_history, show_commands): Add declaration.
5150 (do_restore_instream_cleanup): Add declaration.
5151 * objc-lang.c (specialcmp): Make static.
5152 (print_object_command): Make static.
5153 (find_objc_msgsend): Make static.
5154 (find_objc_msgcall_submethod_helper): Make static.
5155 (find_objc_msgcall_submethod): Make static.
5156 (_initialize_objc_language): Add declaration.
5157 (find_implementation_from_class): Make static.
5158 (find_implementation): Make static.
5159 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5160 * objc-lang.h (lookup_struct_typedef): Add declaration.
5161 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5162 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5163 (do_restore_user_call_depth): Make static.
5164 (do_restore_instream_cleanup): Delete declaration.
5165 (dont_repeat): Delete declaration.
5166 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5167 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5168 * reggroups.c (_initialize_reggroup): Add declaration.
5169 * cp-support.c (_initialize_cp_support): Add declaration.
5170 * cp-abi.c (_initialize_cp_abi): Add declaration.
5171 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5172 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5173 (_initialize_gnu_v3_abi): Add declaration.
5174 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5175 (_initialize_gnu_v2_abi): Add declaration.
5176 * frame-base.c (_initialize_frame_base): Add declaration.
5177 * doublest.c (floatformat_from_length): Make static.
5178 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5179 * frame.c (create_sentinel_frame): Make static.
5180 (_initialize_frame): Add declaration.
5181 * top.c (do_catch_errors): Make static.
5182 (gdb_rl_operate_and_get_next_completion): Make static.
5183 * typeprint.c: Include "typeprint.h".
5184 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5185 (sentinel_frame_this_id): Make static.
5186 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5187 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5188 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5189 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5190 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5191 * maint.c (maintenance_print_architecture): Make static.
5192 * signals/signals.c (_initialize_signals): Add declaration.
5193 * std-regs.c (_initialize_frame_reg): Add declaration.
5194 * jv-exp.y (push_variable): ISO C definition.
5195 (push_qualified_expression_name): Ditto.
5196 * memattr.c (_initialize_mem): Add declaration.
5197 * remote.c (remote_check_watch_resources): Make static.
5198 (remote_stopped_by_watchpoint): Make static.
5199 (remote_stopped_data_address): Make static.
5200 * d10v-tdep.c (nr_dmap_regs): Make static.
5201 (a0_regnum): Make static.
5202 (d10v_frame_unwind_cache): Make static.
5203 (d10v_frame_p): Make static.
5204 * osabi.c (show_osabi): Make static.
5205 (_initialize_gdb_osabi): Add extern declaration.
5206 * gdbtypes.c (make_qualified_type): Make static.
5207 (safe_parse_type): Make static.
5208 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5209 * macrotab.c (macro_bcache_free): Make static.
5210 * interps.c (interp_set_quiet): Make static.
5211 (interpreter_exec_cmd): Make static.
5212 * stack.h (select_frame_command): New file.
5213 * stack.c: Include "stack.h".
5214 (select_frame_command_wrapper): Delete function.
5215 (select_frame_command): Make global.
5216 * infcall.c: Include "infcall.h".
5217 * linespec.c: Include "linespec.h".
5218 * symfile.c (sections_overlap): Make static.
5219 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5220 * charset.c (_initialize_charset): Add missing prototype.
5221 * regcache.c (init_legacy_regcache_descr): Make static.
5222 (do_regcache_xfree): Make static.
5223 (regcache_xfer_part): Make static.
5224 (_initialize_regcache): Add missing prototype.
5225 * breakpoint.c (parse_breakpoint_sals): Make static.
5226 (breakpoint_sals_to_pc): Make static.
5227 * interps.h (clear_interpreter_hooks): ISO C declaration.
5228 * Makefile.in (stack_h): Define.
5229 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5230 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5231
a0f267c7
AC
52322003-06-08 Andrew Cagney <cagney@redhat.com>
5233
5234 * Makefile.in (d10v-tdep.o): Update dependencies.
5235 (SFILES): Add trad-frame.c.
5236 (trad_frame_h): Define.
5237 (COMMON_OBS): Add trad-frame.o.
5238 (trad-frame.o): Specify dependencies.
5239 * d10v-tdep.c: Include "trad-frame.h".
5240 (saved_regs_unwinder): Delete function.
5241 (d10v_frame_prev_register): Use trad_frame_prev_register.
5242 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5243 trad_frame", delete "regs" and "prev_sp".
5244 (prologue_find_regs): Use trad-frame.
5245 * trad-frame.h, trad-frame.c: New files.
5246
4538b4f4
MK
52472003-06-08 Mark Kettenis <kettenis@gnu.org>
5248
5249 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5250
a0273b2f
AF
52512003-06-07 Adam Fedor <fedor@gnu.org>
5252
5253 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5254 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5255 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5256 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5257 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5258 Use it.
5259
3a6c3343
AC
52602003-06-07 Andrew Cagney <cagney@redhat.com>
5261
5262 * symfile.h: Re-indent, clean up comments.
5263
b46e02f6
AC
52642003-06-07 Andrew Cagney <cagney@redhat.com>
5265
5266 * inferior.h (deprecated_write_sp): Replace
5267 generic_target_write_sp.
5268 * regcache.c (deprecated_write_sp): Replace
5269 generic_target_write_sp.
5270 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5271 * vax-tdep.c (vax_gdbarch_init): Update.
5272 * v850-tdep.c (v850_gdbarch_init): Update.
5273 * sparc-tdep.c (sparc_gdbarch_init): Update.
5274 * sh-tdep.c (sh_gdbarch_init): Update.
5275 * s390-tdep.c (s390_gdbarch_init): Update.
5276 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5277 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5278 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5279 * mcore-tdep.c (mcore_gdbarch_init): Update.
5280 * m68k-tdep.c (m68k_gdbarch_init): Update.
5281 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5282 * ia64-tdep.c (ia64_gdbarch_init): Update.
5283 * h8300-tdep.c (h8300_gdbarch_init): Update.
5284 * frv-tdep.c (frv_gdbarch_init): Update.
5285 * cris-tdep.c (cris_gdbarch_init): Update.
5286 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5287
a42e117c
AC
52882003-06-07 Andrew Cagney <cagney@redhat.com>
5289
5290 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5291 Assert that PC_REGNUM is valid.
5292 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5293
bd1ce8ba
AC
52942003-06-07 Andrew Cagney <cagney@redhat.com>
5295
5296 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5297 * gdbarch.h, gdbarch.c: Regenerate.
5298 * mn10300-tdep.c: Include "gdb_assert.h".
5299 (mn10300_read_fp): New function.
5300 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5301 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5302 * ia64-tdep.c: Include "gdb_assert.h".
5303 (ia64_read_fp): New function.
5304 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5305 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5306 * regcache.c (generic_target_read_sp): Delete function.
5307 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5308 * inferior.h (generic_target_read_sp): Delete declaration.
5309 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5310 generic_target_read_sp.
5311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5312 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5313 * sh-tdep.c (sh_gdbarch_init): Ditto.
5314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5315 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5316
ec5cbaec
AC
53172003-06-07 Andrew Cagney <cagney@redhat.com>
5318
5319 * gdbarch.sh: Comment each field of startup_gdbarch.
5320 * gdbarch.h, gdbarch.c: Re-generate.
5321
cde9ea48
AC
53222003-06-07 Andrew Cagney <cagney@redhat.com>
5323
5324 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5325 * gdbarch.h, gdbarch.c: Re-generate.
5326 * regcache.c: Update comments on read_pc et.al.
5327 (generic_target_read_pc): Delete function.
5328 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5329 * inferior.h (generic_target_read_pc): Delete declaration.
5330 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5331 generic_target_read_pc.
5332 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5333 * sh-tdep.c (sh_gdbarch_init): Ditto.
5334 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5336
9a90a780
AC
53372003-06-07 Andrew Cagney <cagney@redhat.com>
5338
5339 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5340 "index" with "special_local_sect". Use strcmp instead of STREQ.
5341 Append period to coments.
5342
a39a16c4
MM
53432003-06-06 Mark Mitchell <mark@codesourcery.com>
5344
5345 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5346 (elfstab_offset_sections): Likewise.
5347 * gdb-stabs.h (stab_section_info): Likewise.
5348 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5349 * objfiles.c (objfile_relocate): Likewise.
5350 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5351 * remote.c (get_offsets): Likewise.
5352 (remote_cisco_objfile_relocate): Likewise.
5353 * somread.c (som_symfile_offsets): Likewise.
5354 * symfile.c (alloc_section_addr_info): New function.
5355 (build_section_addr_info_from_section_tab): Use it.
5356 (free_section_addr_info): Adjust.
5357 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5358 (syms_from_objfile): Allocate local_addr dynamically.
5359 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5360 dynamically.
5361 (add_symbol_file_command): Allocate sect_opts dynamically.
5362 (reread_symbols): Avoid use of SECT_OFF_MAX.
5363 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5364 (alloc_section_addr_info): Declare it.
5365 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5366 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5367 dynamically.
5368 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5369
20c6c2f8
AC
53702003-06-06 Andrew Cagney <cagney@redhat.com>
5371
5372 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5373 (d10v_frame_unwind_cache): Do not set "return_pc".
5374
884a26c8
MS
53752003-06-06 Michael Snyder <msnyder@redhat.com>
5376
5377 * h8300-tdep.c: Make tidy (long lines).
5378
088ce440
ML
53792003-06-06 Michal Ludvig <mludvig@suse.cz>
5380
8ffd9b1b 5381 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5382 to regcache_collect().
5383
7d773d96
JB
53842003-06-05 J. Brobecker <brobecker@gnat.com>
5385
5386 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5387 pc_in_sigtramp multiarch method.
5388 (hppa_hpux_som_init_abi): Use it.
5389 (hppa_hpux_elf_init_abi): Likewise.
5390 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5391 macro has been multiarched.
5392 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5393 macro here, as hppa64 isn't multiarched yet.
5394
1df6926e
AC
53952003-06-05 Andrew Cagney <cagney@redhat.com>
5396
5397 * Makefile.in (value_h): Add $(frame_h).
5398 * value.h: Include "frame.h".
5399 (struct value): Replace "frame_addr" with "frame_id".
5400 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5401 * values.c (allocate_value): Use VALUE_FRAME_ID.
5402 (value_copy): Use VALUE_FRAME_ID.
5403 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5404 * valops.c (value_assign): Update. Use frame_find_by_id.
5405
6b53acc6
ML
54062003-06-05 Michal Ludvig <mludvig@suse.cz>
5407
5408 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5409 in each pass.
5410
4d9850d3
JJ
54112003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5412
5413 * thread-db.c (check_event): For create/death event breakpoints,
5414 loop through all messages to ensure that we read the message
5415 corresponding to the breakpoint we are at.
5416
8efca6ba
MS
54172003-06-04 Michael Snyder <msnyder@redhat.com>
5418
5419 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5420
0912c7f2
MK
54212003-06-04 Mark Kettenis <kettenis@gnu.org>
5422
5423 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5424 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5425 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5426 when handling .eh_frame sections.
5427
4e370325
JB
54282003-06-04 J. Brobecker <brobecker@gnat.com>
5429
5430 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5431 prepare_to_proceed procedure instead of the hppa-specific one.
5432 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5433
b757528f 54342003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5435
b757528f
JJ
5436 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5437 * config.in: Regenerated.
5438 * configure.in: Add test for syscall function and check for
5439 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5440 * configure: Regenerated.
5441 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5442 <sys/syscall.h>.
5443 (kill_lwp): New function that uses tkill syscall or
5444 uses kill, depending on whether threading model is nptl or not.
5445 All callers of kill() changed to use kill_lwp().
5446 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5447 see if all threads have already exited in the nptl model.
5448 (stop_and_resume_callback): New callback function used by the
5449 lin_lwp_wait thread exit handling code.
5450 (stop_wait_callback): Check for threads already having exited and
5451 delete such threads fromt the lwp list when discovered.
5452 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5453
b757528f
JJ
5454 Roland McGrath <roland@redhat.com>
5455 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5456 nptl libthread_db.
5457
087779b1
RH
54582003-06-03 Richard Henderson <rth@redhat.com>
5459
b21fd293
RH
5460 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5461 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5462 (alpha_sigtramp_frame_prev_register): Likewise.
5463 (alpha_heuristic_frame_prev_register): Likewise.
5464 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5465
8ffd9b1b 5466 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5467 alpha-specific register id names.
5468 (alpha_mdebug_frame_unwind_cache): Likewise.
5469 (alpha_mdebug_frame_prev_register): Likewise.
5470
baa490c4
RH
54712003-06-03 Richard Henderson <rth@redhat.com>
5472
5473 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5474 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5475 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5476 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5477 unwind routines.
5478 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5479 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5480 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5481
5482 * alpha-linux-tdep.c: Remove unnecessary includes.
5483 * Makefile.in (alpha-linux-tdep.o): Update.
5484
54852003-06-03 Richard Henderson <rth@redhat.com>
5486
5487 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5488 (alphabsd_fill_fpreg): Likewise.
5489
f534e522
JB
54902003-06-03 J. Brobecker <brobecker@gnat.com>
5491
5492 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5493 references to struct frame_info fields by calls to the equivalent
5494 accessors. Necessary now that frame_info is opaque.
5495
4035536b
JB
54962003-06-03 J. Brobecker <brobecker@gnat.com>
5497
5498 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5499 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5500 structure, field no longer exists.
5501
0bd79c5c
JB
55022003-06-03 J. Brobecker <brobecker@gnat.com>
5503
5504 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5505 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5506
37bb6d9f
JB
55072003-06-03 J. Brobecker <brobecker@gnat.com>
5508
5509 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5510 references to struct frame_info fields by calls to the equivalent
5511 accessors. Necessary now that frame_info is opaque.
5512
852ee05c
JB
55132003-06-03 J. Brobecker <brobecker@gnat.com>
5514
5515 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5516 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5517 structure, field no longer exists.
5518
7d58c67d
TR
55192003-06-03 Theodore A. Roth <troth@openavr.org>
5520
8ffd9b1b 5521 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5522 accumulation of the size of all registers instead of blindly using
5523 DEPRECATED_REGISTER_BYTES.
5524
0a48e7e8
MS
55252003-06-03 Michael Snyder <msnyder@redhat.com>
5526
5527 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5528 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5529 for h8300sx.
5530
9798ab0d
JB
55312003-06-03 J. Brobecker <brobecker@gnat.com>
5532
5533 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5534 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5535
00b037e2
AC
55362003-06-03 Andrew Cagney <cagney@redhat.com>
5537
5538 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5539 (sparc_convert_to_raw): Delete function.
5540 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5541 register_convert_to_virtual.
5542
043b2f77
JJ
55432003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5544
5545 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5546 layer if not dealing with a statically-linked threaded program.
5547
f43caff8
KW
55482003-06-03 Kris Warkentin <kewarken@qnx.com>
5549
5550 * solib.c (solib_open): Update comment to reflect actual search order.
5551
ae1e7417
AC
55522003-06-03 Andrew Cagney <cagney@redhat.com>
5553
5554 * frame.c (get_frame_memory_signed): New function.
5555 (get_frame_memory, get_frame_memory_unsigned): New function.
5556 (get_frame_arch): New function.
5557 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5558 (get_frame_memory, get_frame_unsigned_memory): Declare.
5559 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5560 get_frame_memory_unsigned and get_frame_arch.
5561 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5562
cb123844
RG
55632003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5564
5565 * MAINTAINERS (write after approval): Add myself.
5566
1bb792e9
JB
55672003-06-03 Jim Blandy <jimb@redhat.com>
5568
5569 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5570 elements of gregset_t are 64 bits each, but access registers
5571 are still 32 bits, so they're packed two per gregset_t
5572 element. Unpack/pack them properly.
5573
aee8d8ba
DC
55742003-06-02 David Carlton <carlton@bactrian.org>
5575
5576 * linespec.c (find_methods): Break out code into
5577 add_matching_methods and add_constructors.
5578 (add_matching_methods): New.
5579 (add_constructors): Ditto.
5580
bf7488d2
AC
55812003-06-02 Andrew Cagney <cagney@redhat.com>
5582
bf7488d2
AC
5583 * sparc-tdep.c (sparc_print_registers): Delete call to
5584 REGISTER_CONVERTIBLE.
5585 (sparc_gdbarch_init): Do not set register_convertible.
5586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5587 * frv-tdep.c (frv_gdbarch_init): Ditto.
5588 * cris-tdep.c (cris_gdbarch_init): Ditto.
5589
adedef68
EZ
55902003-06-02 Elena Zannoni <ezannoni@redhat.com>
5591
8ffd9b1b 5592 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5593 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5594 (syms_from_objfile): Ditto.
5595
650fcc91
AS
55962003-06-03 Andreas Schwab <schwab@suse.de>
5597
5598 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5599 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5600
df4a182b
RH
56012003-06-02 Richard Henderson <rth@redhat.com>
5602
5603 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5604 a member of all_reggroup.
5605
c483c494
RH
56062003-06-02 Richard Henderson <rth@redhat.com>
5607
5608 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5609 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5610 (alpha_lds, alpha_sts): New.
5611 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5612 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5613 restructure and fail for type sizes other than 4 or 8.
5614 (alpha_value_to_register): Similarly.
5615 (alpha_extract_return_value): Use alpha_sts.
5616 (alpha_store_return_value): Use alpha_lds.
5617 (alpha_gdbarch_init): Update hooks.
5618
b38b6be2
RH
56192003-06-02 Richard Henderson <rth@redhat.com>
5620
5621 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5622 regnum identifiers.
5623 (alpha_sigtramp_register_address): Likewise.
5624
98a8e1e5
RH
56252003-06-02 Richard Henderson <rth@redhat.com>
5626
5627 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5628 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5629 * alpha-tdep.h: Declare them.
5630
5631 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5632 Remove zerobuf. Don't error on UNIQUE.
5633 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5634 (ALPHA_REGSET_UNIQUE): Provide default.
5635 (supply_gregset): Use alpha_supply_int_regs.
5636 (fill_gregset): Use alpha_fill_int_regs.
5637 (supply_fpregset): Use alpha_supply_fp_regs.
5638 (fill_fpregset): Use alpha_fill_fp_regs.
5639 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5640 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5641 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5642 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5643 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5644 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5645
67dfac52
RH
56462003-06-02 Richard Henderson <rth@redhat.com>
5647
f75d70cc
RH
5648 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5649
67dfac52
RH
5650 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5651 (alpha_store_return_value): Likewise.
5652
0cf566ec
DC
56532003-06-02 David Carlton <carlton@math.stanford.edu>
5654
5655 * block.c (contained_in): Add 'const' to arguments.
5656 (block_function): Ditto.
5657 * block.h: Update declarations for block_function and
5658 contained_in.
5659
cdef89d0
DC
56602003-06-02 David Carlton <carlton@math.stanford.edu>
5661
5662 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5663 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5664 * p-valprint.c (pascal_val_print): Ditto.
5665 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5666
72667056
RH
56672003-06-02 Richard Henderson <rth@redhat.com>
5668
98a8e1e5
RH
5669 * alpha-tdep.c (alpha_push_dummy_call): Use
5670 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5671
8ffd9b1b 5672 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5673 sign-extension of 32-bit values.
5674 (alpha_store_return_value): Similarly.
0ede8eca 5675
98a8e1e5
RH
5676 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5677 (alpha_extract_return_value): Likewise.
5678 (alpha_store_return_value): Likewise.
7b5e1cb3 5679
98a8e1e5
RH
5680 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5681 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5682
98a8e1e5
RH
5683 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5684 (alpha_extract_struct_value_address): Likewise.
5685 (alpha_store_return_value): Likewise.
5686 (alpha_store_struct_return): Remove.
5687 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5688
98a8e1e5
RH
5689 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5690 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5691 macros where appropriate.
5692 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5693 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5694
98a8e1e5
RH
5695 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5696 for SP, GP; void_func_ptr for PC; non-language-specific types
5697 for all others.
5698 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5699
6dd77b81
RH
57002003-06-02 Richard Henderson <rth@redhat.com>
5701
5702 * top.h (lim_at_start): Declare.
5703 * main.c (captured_main): Set it.
5704 * top.c (lim_at_start): Define.
5705 (command_loop): Use it instead of &environ.
5706 * event-top.c (command_handler): Likewise.
5707
f4dbdb54
JT
57082003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5709
5710 * mipsnbsd-tdep.c: Update copyright years.
5711 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5712
8f285956
RH
57132003-06-01 Richard Henderson <rth@redhat.com>
5714
98a8e1e5
RH
5715 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5716 (alpha-linux-tdep.o): Update dependencies.
5717 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5718 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5719
615967cb
RH
57202003-06-01 Richard Henderson <rth@redhat.com>
5721
98a8e1e5
RH
5722 * alpha-tdep.c (alpha_register_reggroup_p): New.
5723 (alpha_gdbarch_init): Register it.
615967cb 5724
b59661bd
AC
57252003-06-02 Andrew Cagney <cagney@redhat.com>
5726
5727 * dwarfread.c: Eliminate "register"
5728 (decode_die_type): Eliminate assignment within "if".
5729 (struct_type, decode_array_element_type): Ditto.
5730 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5731 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5732 (decode_modified_type, completedieinfo): Ditto.
5733 * block.c: Eliminate "register".
5734 (blockvector_for_pc_sect): Eliminate assignment within "if".
5735 * cp-support.h (struct symbol): Opaque declaration.
5736 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5737
5ef165c2
RH
57382003-06-01 Richard Henderson <rth@redhat.com>
5739
98a8e1e5
RH
5740 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5741 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5742
143985b7
AF
57432003-06-01 Adam Fedor <fedor@gnu.org>
5744
5745 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5746 * gdbarch.[ch]: Regenerate.
5747 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5748 (hppa_gdbarch_init): Set it in the gdbarch vector.
5749 * i386-tdep.c (i386_fetch_pointer_argument): New
5750 (i386_gdbarch_init): Set it into gdbarch.
5751 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5752 (rs6000_gdbarch_init): Set it in gdbarch.
5753 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5754 (sparc_gdbarch_init): Set it in gdbarch.
5755
ae0167b9
AC
57562003-06-01 Andrew Cagney <cagney@redhat.com>
5757
7c0b4a20
AC
5758 * defs.h (extract_address): Delete declaration.
5759 * findvar.c (extract_address): Delete function.
5760 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5761 extract_address with the inline equivalent,
5762 extract_unsigned_integer.
5763 (xstormy16_extract_struct_value_address): Ditto.
5764 (xstormy16_pointer_to_address): Ditto.
5765 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5766 * v850-tdep.c (v850_push_arguments): Ditto.
5767 (v850_extract_return_value): Ditto.
5768 (v850_extract_struct_value_address): Ditto.
5769 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5770 (sparcnbsd_get_longjmp_target_64): Ditto.
5771 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5772 (get_longjmp_target): Ditto.
5773 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5774 (sh64_extract_struct_value_address): Ditto.
5775 (sh_push_arguments): Ditto.
5776 (sh64_push_arguments): Ditto.
5777 * remote-vxsparc.c (vx_read_register): Ditto.
5778 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5779 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5780 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5781 * mipsv4-nat.c (get_longjmp_target): Ditto.
5782 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5783 * mips-nat.c (get_longjmp_target): Ditto.
5784 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5785 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5786 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5787 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5788 * irix5-nat.c (get_longjmp_target): Ditto.
5789 * irix4-nat.c (get_longjmp_target): Ditto.
5790 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5791 (ia64_push_arguments): Ditto.
5792 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5793 * h8300-tdep.c (h8300_push_arguments): Ditto.
5794 (h8300_store_return_value): Ditto.
5795 (h8300_extract_struct_value_address): Ditto.
5796 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5797 (frv_push_arguments): Ditto.
5798 * avr-tdep.c (avr_pointer_to_address): Ditto.
5799 (avr_push_arguments): Ditto.
5800 * arm-tdep.c (arm_push_dummy_call): Ditto.
5801 (arm_get_longjmp_target): Ditto.
5802 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5803 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5804 (alpha_get_longjmp_target): Ditto.
5805
ae0167b9
AC
5806 * solib-irix.c (extract_mips_address): Inline extract_address,
5807 replacing it with extract_signed_integer.
5808 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5809 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5810 (first_link_map_member, open_symbol_file_object): Ditto.
5811 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5812 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5813 (LM_NEXT, LM_NAME): Ditto.
5814
44d88583
RH
58152003-06-01 Richard Henderson <rth@redhat.com>
5816
98a8e1e5
RH
5817 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5818 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5819 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5820 (alpha_cannot_store_register): Likewise.
5821 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5822 * alpha-nat.c (supply_gregset): Likewise.
5823 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5824
310e9b6a
AC
58252003-06-01 Andrew Cagney <cagney@redhat.com>
5826
5827 * infcall.c (call_function_by_hand): Update comment on
5828 DEPRECATED_DUMMY_WRITE_SP.
5829
5830 * mips-tdep.c (mips_gdbarch_init): Do not set
5831 deprecated_dummy_write_sp.
5832 (mips_eabi_push_dummy_call): Set the SP register.
5833 (mips_o64_push_dummy_call): Set the SP register.
5834 (mips_o32_push_dummy_call): Set the SP register.
5835 (mips_n32n64_push_dummy_call): Set the SP register.
5836
5ab84872
RH
58372003-06-01 Richard Henderson <rth@redhat.com>
5838
98a8e1e5
RH
5839 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5840 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5841 (supply_gregset): Likewise.
5842 * alpha-tdep.c (alpha_store_return_value): Likewise.
5843 (alpha_get_longjmp_target): Likewise.
5844 (alpha_register_name): Constify array.
5845 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5846 deprecated_register_size, deprecated_register_bytes,
5847 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5848 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5849 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5850
09cc52fd
RH
58512003-06-01 Richard Henderson <rth@redhat.com>
5852
5853 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5854 from arg_reg_buffer to regcache to avoid double conversion.
5855
c7f16359
MK
58562003-06-01 Mark Kettenis <kettenis@gnu.org>
5857
5858 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5859 SP_REGNUM.
5860 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5861 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5862
7131cb6e
RH
58632003-06-01 Richard Henderson <rth@redhat.com>
5864
98a8e1e5
RH
5865 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5866 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5867
f3e0f90b
RH
58682003-06-01 Richard Henderson <rth@redhat.com>
5869
98a8e1e5
RH
5870 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5871 not overlapping PC_REGNUM.
f3e0f90b 5872
c88e30c0
RH
58732003-06-01 Richard Henderson <rth@redhat.com>
5874
98a8e1e5
RH
5875 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5876 alpha_push_arguments. Don't dump argument register data to
5877 the target stack. Fix float and 128-bit long double semantics.
5878 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5879 (alpha_fix_call_dummy): Remove.
5880 (alpha_call_dummy_words): Remove.
5881 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5882
f1a559ae
RH
58832003-06-01 Richard Henderson <rth@redhat.com>
5884
5885 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5886
5e045346
AC
58872003-06-01 Andrew Cagney <cagney@redhat.com>
5888
95404a3e
AC
5889 * mips-tdep.c (is_mips16_addr): New function.
5890 (make_mips16_addr, unmake_mips16_addr): New functions.
5891 (pc_is_mips16, mips_fetch_instruction): Use.
5892 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5893 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5894 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5895 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5896 TARGET_MIPS.
5897 * config/mips/tm-mips.h: Update copyright.
5898 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5899 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5900 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5901 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5902 (TM_PRINT_INSN_MACH): Delete.
5903 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5904
5e045346
AC
5905 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5906 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5907 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5908 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5909 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5910 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5911 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5912 mips*-*-riscos* and mips*-*-sysv* onto mips.
5913 * config/mips/mips64.mt: New file.
5914 * config/mips/mips.mt: New file.
5915 * config/mips/littlemips.mt: Delete file.
5916 * config/mips/decstation.mt: Delete file.
5917 * config/mips/vr4300el.mt: Delete file.
5918 * config/mips/vr5000el.mt: Delete file.
5919 * config/mips/vr5000.mt: Delete file.
5920 * config/mips/vr4100.mt: Delete file.
5921 * config/mips/vr4xxxel.mt: Delete file.
5922 * config/mips/vr4300.mt: Delete file.
5923 * config/mips/vr4xxx.mt: Delete file.
5924 * config/mips/bigmips.mt: Delete file.
5925 * config/mips/bigmips64.mt: Delete file.
5926 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5927 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5928 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5929 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5930 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5931 "tm-bigmips.h".
5932 * config/mips/tm-irix3.h: Ditto.
5933 * config/mips/tm-mipsv4.h: Ditto.
5934 * config/mips/tm-embed.h: Ditto.
5935 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5936 "tm-bigmips64.h".
5937 * config/mips/tm-vr5000el.h: Delete file.
5938 * config/mips/tm-tx39l.h: Delete file.
5939 * config/mips/tm-vr4300el.h: Delete file.
5940 * config/mips/tm-vr4xxxel.h: Delete file.
5941 * config/mips/tm-vr4300.h: Delete file.
5942 * config/mips/tm-vr4100.h: Delete file.
5943 * config/mips/tm-vr4xxx.h: Delete file.
5944 * config/mips/tm-vr5000.h: Delete file.
5945 * config/mips/tm-embedl64.h: Delete file.
5946 * config/mips/tm-embedl.h: Delete file.
5947 * config/mips/tm-embed64.h: Delete file.
5948 * config/mips/tm-bigmips64.h: Delete file.
5949 * config/mips/tm-bigmips.h: Delete file.
5950
2473a4a9
MK
59512003-06-01 Mark Kettenis <kettenis@gnu.org>
5952
97a5b208
MK
5953 Fix gdb/1216.
5954 * shnbsd-nat.c: Include "sh-tdep.h".
5955
2473a4a9
MK
5956 From Richard Henderson <rth@redhat.com>:
5957 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5958
e0f7ec59
AC
59592003-05-31 Andrew Cagney <cagney@redhat.com>
5960
5961 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5962 forward declaration.
5963 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5964 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5965 (mips_find_saved_regs): Use set_reg_offset.
5966 (mips_frame_init_saved_regs): Delete function.
5967 (mips_pop_frame): Call mips_find_saved_regs instead of
5968 DEPRECATED_FRAME_INIT_SAVED_REGS.
5969
68dcc709
AC
59702003-05-31 Andrew Cagney <cagney@redhat.com>
5971
5972 * mips-tdep.c (mips_gdbarch_init): Do not set
5973 deprecated_max_register_raw_size, register_virtual_size, and
5974 deprecated_max_register_virtual_size.
5975
cfc14b3a
MK
59762003-05-31 Mark Kettenis <kettenis@gnu.org>
5977
6405b0a6
MK
5978 * i386-tdep.c: Include "dwarf2-frame.h".
5979 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5980 * Makefile.in (i386-tdep.o): Update dependencies.
5981
cfc14b3a
MK
5982 * dwarf2-frame.c, dwarf2-frame.h: New files.
5983 * Makefile.in (SFILES): Add dwarf2-frame.c.
5984 (dwarf2_frame_h): Define.
5985 (COMMON_OBS): Add dwarf2-frame.o.
5986 (dwarf2-frame.o): Add dependencies.
5987
6a2751d2
AJ
59882003-05-31 Andreas Jaeger <aj@suse.de>
5989
5990 * x86-64-linux-nat.c: Fix comment.
5991
1c3545ae
MK
59922003-05-31 Mark Kettenis <kettenis@gnu.org>
5993
10f93086
MK
5994 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5995 function signature.
5996
1c3545ae
MK
5997 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5998 have a sigcontext_addr handler.
5999 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6000 sigcontext_addr handler.
6001
e11c53d2
AC
60022003-05-31 Andrew Cagney <cagney@redhat.com>
6003
6004 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6005 (print_fp_register_row): Replace do_fp_register_row.
6006 (mips_print_fp_register): Add "file" and "frame" parameters.
6007 (mips_print_register): Add "file" and "frame" parameters.
6008 (mips_print_registers_info): Replace mips_do_registers_info.
6009 (mips_gdbarch_init): Set print_registers_info instead of
6010 deprecated_do_registers_info.
6011 (mips_read_fp_register_single): Add "frame" parameter.
6012 (mips_read_fp_register_double): Add "frame" parameter.
6013
a3386186
MK
60142003-05-31 Mark Kettenis <kettenis@gnu.org>
6015
70913449
MK
6016 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6017 Fixes a bug where GDB would print the wrong register names for
6018 targets without SSE.
6019
2b5e0749
MK
6020 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6021 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6022 registers.
6023
6024 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6025 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6026 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6027 TDEP->sc_sp_offset.
6028
a3386186
MK
6029 From Michal Ludvig <mludvig@suse.cz>:
6030 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6031 and `sc_num_regs'.
6032 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6033 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6034 I386_ST0_REGNUM): Move here from...
6035 * i386-tdep.c: ... here.
6036 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6037 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6038 registers if possible.
6039 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6040 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6041 Remove variables.
6042 (i386bsd_sc_reg_offset): New variable.
6043 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6044 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6045 TDEP->sc_sp_offset.
6046 (i386fbsd_sc_reg_offset): New variable.
6047 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6048 TDEP->sc_num_regs.
6049 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6050 variables.
6051 (i386fbsd4_sc_reg_offset): New variable.
6052 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6053 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6054 TDEP->sc_sp_offset.
6055 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6056 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6057 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6058 Remove variables.
6059 (i386nbsd_sc_reg_offset): New variable.
6060 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6061 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6062 TDEP->sc_sp_offset.
6063 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6064 Remove variables.
6065 (i386obsd_sc_reg_offset): New variable.
6066 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6067 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6068 TDEP->sc_sp_offset.
6069 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6070 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6071 for frame pointer offset in `struct sigcontext'.
6072
25ab4790
AC
60732003-05-31 Andrew Cagney <cagney@redhat.com>
6074
6075 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6076 architecture methods call_dummy_words, sizeof_call_dummy_words,
6077 push_return_address, store_struct_return, and fix_call_dummy. Set
6078 push_dummy_call instead of deprecated_push_arguments.
6079 (mips_store_struct_return): Delete function.
6080 (mips_fix_call_dummy): Delete function.
6081 (mips_push_return_address): Delete function.
6082 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6083 RA_REGNUM and T9_REGNUM.
6084 (mips_n32n64_push_dummy_call): Ditto for
6085 mips_n32n64_push_arguments.
6086 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6087 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6088
6a65450a
AC
60892003-05-31 Andrew Cagney <cagney@redhat.com>
6090
6091 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6092 "dummy_addr" to "bp_addr".
6093 * infcall.c (call_function_by_hand): Pass "funaddr" to
6094 gdbarch_push_dummy_call.
6095 * gdbarch.h, gdbarch.c: Re-generate.
6096 * i386-tdep.c (i386_push_dummy_call): Update.
6097 * arm-tdep.c (arm_push_dummy_call): Update.
6098 * d10v-tdep.c (d10v_push_dummy_call): Update.
6099
c4f35dd8
MK
61002003-05-31 Mark Kettenis <kettenis@gnu.org>
6101
6102 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6103 variable declarations.
6104 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6105 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6106 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6107 x86_64_init_frame_pc, x86_64_init_frame_pc,
6108 x86_64_function_has_prologue): Remove prototypes.
6109 (X86_64_NUM_GREGS): New define.
6110 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6111 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6112 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6113 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6114 XMM1_REGNUM): Remove defines.
6115 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6116 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6117 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6118 X86_64_XMM1_REGNUM): New defines.
6119 (struct x86_64_register_info): Renamed from `struct
6120 register_info'. Remove `size' member.
6121 (x86_64_register_info_table): Remove variable.
6122 (x86_64_register_info): New variable.
6123 (X86_64_NUM_REGS): New define.
6124 (X86_64_NUM_GREGS): Remove define.
6125 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6126 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6127 Remove variables.
6128 (x86_54_dwarf2_reg_to_regnum): Remove function.
6129 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6130 (x86_64_dwarf_reg_to_regnum): New function.
6131 (x86_64_register_name): Rewrite.
6132 (x86_64_register_raw_size): Remove function.
6133 (x86_64_register_byte_table): Remove variable.
6134 (x86_64_register_byte): Remove function.
6135 (x86_64_register_virtual_type): Remove function.
6136 (x86_64_register_type): New function.
6137 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6138 x86_64_register_convert_to_raw): Remove functions.
6139 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6140 (x86_64_use_struct_convention): Make static. Adjust for renamed
6141 defines.
6142 (x86_64_frame_init_saved_regs): Remove function.
6143 (x86_64_push_arguments): Make static. Change to accept a regcache
6144 as argument.
6145 (x86_64_store_return_value, x86_64_extract_return_value): Make
6146 static. Rewrite based on i386 counterparts.
6147 (x86_64_push_dummy_call): New function.
6148 (X86_64_NUM_SAVED_REGS): New define.
6149 (x86_64_register_number): Remove function.
6150 (x86_64_store_struct_return): Remove function.
6151 (x86_64_frameless_function_invocation,
6152 x86_64_function_has_prologue): Remove functions.
6153 (PROLOG_BUFSIZE): Remove define.
6154 (struct x86_64_frame_cache): New structure.
6155 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6156 x86_64_frame_cache, x86_64_frame_this_id,
6157 x86_64_frame_prev_register, x86_64_frame_p,
6158 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6159 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6160 functions.
6161 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6162 variables.
6163 (x86_64_skip_prologue): Rewrite in terms of
6164 x86_64_analyze_prologue.
6165 (x86_64_frame_base_address): New function.
6166 (x86_64_frame_base): New variable.
6167 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6168 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6169 set deprecated_fp_regnum, deprecated_register_size,
6170 deprecated_register_bytes, register_raw_size, register_byte,
6171 register_virtual_type, register_convertiable,
6172 register_convert_to_virtual, convert_to_raw,
6173 deprecated_get_saved_register, deprecated_target_read_fp,
6174 deprecated_push_arguments, deprecated_push_return_address,
6175 deprecated_pop_frame, deprecated_store_struct_return,
6176 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6177 frameless_function_invocation, deprecated_frame_saved_pc,
6178 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6179 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6180 deprecated_init_frame_pc and virtual_frame_pointer. Call
6181 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6182 and x86_64_frame_p. Call frame_base_set_default to register
6183 x86_64_frame_base.
6184 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6185 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6186 (_initialize_x86_64_tdep): Remove function.
6187 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6188 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6189 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6190 define.
6191 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6192 (x86_64_linux_sigcontext_addr): Rewrite.
6193 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6194 x86_64_linux_frame_saved_pc): Remove functions.
6195 (x86_64_linux_pc_in_sigtramp): Renamed from
6196 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6197 trampoline.
6198 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6199 Remove_functions.
6200 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6201 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6202 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6203 (x86_64_regmap): Rename to regmap.
6204 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6205 x86_64_num_gregs.
6206 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6207 x86_64_regmap.
6208 (x86_64_fxsave_offset): Remove function.
6209 (supply_fpregset): Simply call x86_64_supply_fxsave.
6210 (fill_fpregset): Simply call x86_64_fill_fxsave.
6211 (fetch_inferior_registers, store_inferior_registers): Avoid
6212 asignment in if-statement.
6213 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6214 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6215 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6216 (fetch_core_registers): Remove function.
6217 (linux_elf_core_fns): Remove.
6218 (offsetoff): Don't define.
6219 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6220 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6221 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6222 add core-regset.o.
6223 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6224 protection against multiple includes instead of NM_X86_64_h. Add
6225 various comments. Include "config/nm-linux.h". Don't include
6226 <signal.h>.
6227 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6228 GET_THREAD_SIGNALS): Remove defines.
6229 (x86_64_register_u_addr, kernel_u_size,
6230 lin_thread_get_thread_signals): Remove prototypes.
6231 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6232 [HAVE_LINK_H]: Don't include "solib.h".
6233 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6234 * config/i386/tm-x86-64linux.h: Fix comments.
6235 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6236 x86-64-tdep.o): Update dependencies.
6237
c25083af
AC
62382003-05-30 Andrew Cagney <cagney@redhat.com>
6239
c8f55a7b
AC
6240 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6241 Change parameter type to a "struct regcache *".
6242
c25083af
AC
6243 * gdbarch.sh: Regardless of the multi-arch level, always define
6244 the macro when not already defined.
6245 * gdbarch.h, gdbarch.c: Re-generate.
6246
fbe586ae
RH
62472003-05-30 Richard Henderson <rth@redhat.com>
6248
6249 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6250 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6251 (alpha_mdebug_frame_this_id): Likewise.
6252 (alpha_mdebug_frame_prev_register): Likewise.
6253 (alpha_mdebug_frame_base_address): Likewise.
6254 (alpha_mdebug_frame_locals_address): Likewise.
6255 (alpha_mdebug_frame_args_address): Likewise.
6256 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6257 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6258 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6259 loop increment.
6260 (alpha_heuristic_frame_this_id): Make static.
6261 (alpha_heuristic_frame_prev_register): Likewise.
6262 (alpha_heuristic_frame_base_address): Likewise.
6263 * alpha-tdep.h: Update.
6264
acd5c798
MK
62652003-05-30 Mark Kettenis <kettenis@gnu.org>
6266
6267 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6268 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6269 defenitions.
6270 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6271 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6272 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6273 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6274 I386_ST0_REGNUM): New defines.
6275 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6276 codestream_get): Remove define.
6277 (codestream_next_addr, condestream_addr, condestream_buf,
6278 codestream_off, codestream_cnt): Remove variables.
6279 (codestream_fill, codestream_seek, codestream_read): Remove
6280 functions.
6281 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6282 functionality.
6283 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6284 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6285 i386_frame_saved_pc, i386_saved_pc_after_call,
6286 i386_frame_num_args, i386_frame_init_saved_regs,
6287 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6288 i386_push_arguments): Remove functions.
6289 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6290 functionality. Use i386_analyze_prologue instead of
6291 i386_get_frame_setup.
6292 (I386_NUM_SAVED_REGS): New define.
6293 (struct i386_frame_cache): New structure.
6294 (i386_alloc_frame_cache, i386_analyze_struct_return,
6295 i386_skip_probe, i386_analyze_frame_setup,
6296 i386_analyze_register_saves, i386_analyze_prologue,
6297 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6298 i386_frame_prev_register, i386_sigtramp_frame_cache,
6299 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6300 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6301 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6302 New functions.
6303 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6304 New variables.
6305 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6306 I386_EAX_REGNUM and I386_EDX_REGNUM.
6307 (i386_extract_return_value, i386_store_return_value): Use
6308 I386_ST0_REGNUM where appropriate.
6309 (i386_extract_struct_value_address): Rewrite to use extract_address.
6310 (i386_svr4_pc_in_sigtramp): Add comment.
6311 (i386_svr4_sigcontext_addr): Rewrite.
6312 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6313 TDEP->sc_sp_offset.
6314 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6315 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6316 of new defines. Set push_dummy_call, don't set
6317 deprecated_push_arguments, deprecated_push_return_address,
6318 deprecated_pop_frame. Don't set parm_boundary. Don't set
6319 deprecated_frame_chain, deprecated_frame_saved_pc,
6320 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6321 save_dummy_frame_tos, unwind_pc. Call
6322 frame_unwind_append_predicate and frame_base_set_default. Don't
6323 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6324 Don't set frameless_function_invocation. Don't set
6325 deprecated_register_bytes, deprecated_register_size,
6326 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6327 * i386-linux-tdep.c: Fix formatting in some comments.
6328 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6329 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6330 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6331 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6332 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6333 redundant parentheses.
6334 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6335 (i386_linux_sigcontext_addr): Use it. Rewrite.
6336 (find_minsym_and_objfile): Change name of second argument.
6337 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6338 changed. Use frame_pc_unwind instead of
6339 DEPRECATED_SAVED_PC_AFTER_CALL.
6340 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6341 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6342 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6343 unwinder.
6344 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6345 "dummy-frame.h".
6346 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6347 (_initialize_i386_cygwin_tdep): New prototype.
6348 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6349 deprecated_frame_chain_valid.
6350 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6351 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6352 Rely on the SVR4 defaults.
6353 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6354 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6355
c89b70f1
AC
63562003-05-30 Andrew Cagney <cagney@redhat.com>
6357
6358 * infcall.c (call_function_by_hand): Always call
6359 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6360
85b32d22
RH
63612003-05-30 Richard Henderson <rth@redhat.com>
6362
c89b70f1
AC
6363 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6364 increment.
85b32d22 6365
bfe51b1e
JB
63662003-05-29 Jim Blandy <jimb@redhat.com>
6367
6368 Use gdbarch methods for solib stuff on PowerPC Linux.
6369 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6370 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6371 show through.
6372 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6373 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6374 giving the same effect as the #definitions above.
6375
1abf022c
AF
63762003-05-29 Adam Fedor <fedor@gnu.org>
6377
6378 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6379 (find_implementation_from_class): Replace it with the standard
6380 case i.e. do nothing.
6381
d2427a71
RH
63822003-05-29 Richard Henderson <rth@redhat.com>
6383
6384 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6385 (alpha_linux_sigtramp_offset): Use it. Make static.
6386 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6387 update for new frame model.
6388 * alpha-mdebug-tdep.c: New file.
6389 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6390 (alpha_osf1_init_abi): Install it.
6391 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6392 (linked_proc_desc_table): Remove.
6393 (alpha_frame_past_sigtramp_frame): Remove.
6394 (alpha_dynamic_sigtramp_offset): Remove.
6395 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6396 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6397 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6398 (push_sigtramp_desc): Remove.
6399 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6400 (alpha_cannot_store_register): Likewise.
6401 (alpha_sigcontext_addr): Remove.
6402 (alpha_find_saved_regs): Remove.
6403 (alpha_frame_init_saved_regs): Remove.
6404 (alpha_init_frame_pc_first): Remove.
6405 (read_next_frame_reg): Remove.
6406 (alpha_frame_saved_pc): Remove.
6407 (alpha_saved_pc_after_call): Remove.
6408 (temp_proc_desc, temp_saved_regs): Remove.
6409 (alpha_about_to_return): Remove.
6410 (cached_proc_desc): Remove.
6411 (alpha_frame_chain): Remove.
6412 (alpha_print_extra_frame_info): Remove.
6413 (alpha_init_extra_frame_info): Remove.
6414 (alpha_frame_locals_address): Remove.
6415 (alpha_frame_args_address): Remove.
6416 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6417 (alpha_push_dummy_frame): Remove.
6418 (alpha_pop_frame): Remove.
6419 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6420 (alpha_read_insn): New.
6421 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6422 for different insn encodings.
6423 (alpha_in_lenient_prologue): Remove.
6424 (struct alpha_sigtramp_unwind_cache): New.
6425 (alpha_sigtramp_frame_unwind_cache): New.
6426 (alpha_sigtramp_register_address): New.
6427 (alpha_sigtramp_frame_this_id): New.
6428 (alpha_sigtramp_frame_prev_register): New.
6429 (alpha_sigtramp_frame_unwind): New.
6430 (alpha_sigtramp_frame_p): New.
6431 (struct alpha_heuristic_unwind_cache): New.
6432 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6433 don't count nop insns that occur between functions.
6434 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6435 heuristic_proc_desc, but without the mdebug wrapping.
6436 (alpha_heuristic_frame_this_id): New.
6437 (alpha_heuristic_frame_prev_register): New.
6438 (alpha_heuristic_frame_unwind): New.
6439 (alpha_heuristic_frame_p): New.
6440 (alpha_heuristic_frame_base_address): New.
6441 (alpha_heuristic_frame_base): New.
6442 (alpha_unwind_dummy_id): New.
6443 (alpha_unwind_pc): New.
6444 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6445 frame related deprecated initializations; install replacements.
6446 (alpha_dump_tdep): Remove.
6447 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6448 (alpha_read_insn, alpha_after_prologue,
6449 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6450 alpha_heuristic_frame_prev_register,
6451 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6452 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6453 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6454 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6455
93ec1121
AC
64562003-05-29 Andrew Cagney <cagney@redhat.com>
6457
6458 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6459 dependant on the availability of ASSERT_FUNCTION.
6460 (ASSERT_FUNCTION): Do not define when there is no function name.
6461
98f08d3d
KB
64622003-05-29 Kevin Buettner <kevinb@redhat.com>
6463
6464 From Jimi X <jimix@watson.ibm.com>:
6465 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6466
0897f59b
JB
64672003-05-28 Jim Blandy <jimb@redhat.com>
6468
6469 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6470 argument to ptrace to int; the system headers should give it the
6471 right type, and pointers don't fit in ints on powerpc64-*-*.
6472
14898363
L
64732003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6474
6475 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6476 DW_TAG_catch_block.
6477
a7a48797
EZ
64782003-05-26 Elena Zannoni <ezannoni@redhat.com>
6479
6480 * stabsread.c (dbx_lookup_type): Make static.
6481 (read_type): Ditto.
6482 (add_undefined_type): Ditto.
6483 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6484 not export.
6485
f5479e9c
EZ
64862003-05-26 Elena Zannoni <ezannoni@redhat.com>
6487
6488 * hpread.c (hpread_has_name): Make static.
6489 (hpread_psymtab_to_symtab): Ditto.
6490 (file_exists): Ditto.
6491 (hpread_call_pxdb): Ditto.
6492 (hpread_pxdb_needed): Ditto.
6493 (hpread_quick_traverse): Ditto.
6494 (hpread_get_header): Ditto.
6495 (hpread_get_lntt): Ditto.
6496 (hpread_get_slt): Ditto.
6497 (class_of): Ditto.
6498
eb2e12d7
AS
64992003-05-25 Andreas Schwab <schwab@suse.de>
6500
78bf922a
AS
6501 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6502 stack_align and deprecated_extra_stack_alignment_needed.
6503 (m68k_stack_align): Delete.
6504
eb2e12d7
AS
6505 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6506 (m68k_register_virtual_size): Likewise.
6507 (altos_skip_prologue): Remove obsolete function.
6508 (isi_frame_num_args): Likewise.
6509 (news_frame_num_args): Likewise.
6510 (m68k_fix_call_dummy): Make static.
6511 (m68k_push_dummy_frame): Likewise.
6512 (m68k_pop_frame): Likewise.
6513 (m68k_skip_prologue): Likewise.
6514 (m68k_frame_init_saved_regs): Likewise.
6515 (m68k_saved_pc_after_call): Likewise.
6516 (m68k_get_longjmp_target): Make multi-arch.
6517 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6518 structure. Register m68k_get_longjmp_target if enabled.
6519 * m68k-tdep.h (struct gdbarch_tdep): Define.
6520 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6521
6522 * Makefile.in (config.status): Also depend on configure.tgt
6523 and configure.host.
6524 (m68klinux-tdep.o): Update dependencies.
6525 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6526 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6527 (M68K_LINUX_JB_PC): Define.
6528 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6529 and take additional parameter.
6530 (m68k_linux_sigtramp_saved_pc): Update.
6531 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6532 m68k_linux_pc_in_sigtramp, in_plt_section,
6533 find_solib_trampoline_target.
6534 * config/m68k/tm-linux.h: Don't include any tm headers.
6535 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6536 (JB_ELEMENT_SIZE): Likewise.
6537 (JB_PC): Likewise.
6538 (GET_LONGJMP_TARGET): Likewise.
6539 (IN_SIGTRAMP): Likewise.
6540 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6541
eb2c22dc
MK
65422003-05-25 Mark Kettenis <kettenis@gnu.org>
6543
6544 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6545 (sparc32_push_arguments): Re-implement by calling
6546 sparc32_do_push_arguments.
6547
44b7b84e
MK
65482003-05-25 Mark Kettenis <kettenis@gnu.org>
6549
6550 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6551 SPARC_O1_REGNUM): New defines.
6552 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6553 (sparc32_store_return_value): New function.
6554 (sparc_extract_struct_value_address): Rewrite to operate on a
6555 regcache.
6556 (sparc_gdbarch_init): Don't set
6557 deprecated_extract_struct_value_address. Set
6558 extract_struct_value_address instead. Don't set
6559 deprecated_extract_return_value and deprecated_store_return_value
6560 for 32-bit targets. Set extract_return_value and
6561 store_return_value instead.
6562 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6563 DEPRECTAED_EXTRACT_RETURN_VALUE,
6564 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6565 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6566 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6567 (sparc_store_return_value): Remove prototype.
6568 (sparc32_store_return_value): New prototype.
6569 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6570 Adjust prototypes.
6571
f6ad61e3
MK
65722003-05-24 Mark Kettenis <kettenis@gnu.org>
6573
6574 * sparcnbsd-tdep.c: Include "gdb_string.h".
6575
b276f1bb
AC
65762003-05-23 Andrew Cagney <cagney@redhat.com>
6577
6578 * p-valprint.c (pascal_val_print): Replace extract_address with
6579 the inline equivalent extract_unsigned_integer.
6580 * jv-valprint.c (java_value_print): Ditto.
6581 * ada-valprint.c (ada_val_print_1): Ditto.
6582 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6583
e76c5fcc
TR
65842003-05-23 Theodore A. Roth <troth@openavr.org>
6585
6586 * blockframe.c (frameless_look_for_prologue): Remove unused
6587 after_prologue variable.
6588
2cdd89cb
MK
65892003-05-23 Mark Kettenis <kettenis@gnu.org>
6590
6591 * blockframe.c (get_pc_function_start): Rewrite to avoid
6592 asignments in if-statements.
6593
182d43bc
EZ
65942003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6595
6596 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6597 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6598 files, don't relocate absolute symbols (and do use mst_abs).
6599
e8f3fcdd
AC
66002003-05-23 Andrew Cagney <cagney@redhat.com>
6601
6602 * objc-lang.c: Include "gdb_assert.h".
6603 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6604 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6605 (gdb_check, gdb_check_fatal): Delete functions.
6606 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6607 gdb_assert.
6608 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6609 * Makefile.in (objc-lang.o): Update dependencies.
6610
3c23e6fb
ILT
66112003-05-22 Ian Lance Taylor <ian@airs.com>
6612
6613 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6614 with fprintf_filtered, not fprintf_unfiltered.
6615
af1342ab
AC
66162003-05-22 Andrew Cagney <cagney@redhat.com>
6617
6618 * stack.c (frame_info): Inline extract_address, replacing it with
6619 extract_unsigned_integer.
6620 * findvar.c (unsigned_pointer_to_address): Ditto.
6621 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6622 * dwarf2expr.c (dwarf2_read_address): Ditto.
6623 * frame.c (frame_pc_unwind): Update comment.
6624 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6625
47e242ec
JJ
66262003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6627
6628 * infptrace.c (detach): Call print_sys_errmsg rather than
6629 perror_with_name to issue warning message when errno is non-zero
6630 after calling ptrace detach.
6631
e2ac8128
JB
66322003-05-21 J. Brobecker <brobecker@gnat.com>
6633
6634 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6635 macro definitions from here...
6636 * hppa-tdep.c: ...to there.
6637
92b3541e
KB
66382003-05-20 Kevin Buettner <kevinb@redhat.com>
6639
6640 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6641 register_ptrace_addr(). Fix all callers.
6642
55809acb
AS
66432003-05-21 Andreas Schwab <schwab@suse.de>
6644
6645 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6646 dependencies.
6647 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6648 end.
6649 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6650 (_initialize_m68k_linux_tdep): New function.
6651 (m68k_linux_frame_saved_pc): Make static.
6652 (m68k_linux_extract_return_value): Likewise.
6653 (m68k_linux_store_return_value): Likewise.
6654 (m68k_linux_extract_struct_value_address): Likewise.
6655 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6656 Remove.
6657 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6658 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6659 (DEPRECATED_FRAME_SAVED_PC): Remove.
6660
0fbc10f7
KW
66612003-05-20 Kris Warkentin <kewarken@qnx.com>
6662
6663 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6664 regset numbering rather than our own.
6665
58da2eb2
DC
66662003-05-19 David Carlton <carlton@bactrian.org>
6667
6668 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6669
1fcb5155
DC
66702003-05-19 David Carlton <carlton@bactrian.org>
6671
6672 Partial fix for PR c++/827.
6673 * cp-support.h: Include symtab.h.
6674 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6675 * cp-namespace.c: Update contributors.
6676 (cp_lookup_symbol_nonlocal): New.
6677 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6678 (lookup_symbol_file): Ditto.
6679 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6680 * block.h: Declare block_scope, block_using, block_global_block.
6681 * block.c (block_scope): New.
6682 (block_using, block_global_block): Ditto.
6683 * Makefile.in (cp_support_h): Depend on symtab_h.
6684 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6685
5f9a71c3
DC
66862003-05-19 David Carlton <carlton@bactrian.org>
6687
6688 * language.h (struct language_defn): Add 'la_value_of_this'
6689 and 'la_lookup_symbol_nonlocal' members.
6690 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6691 lookup_symbol_static, lookup_symbol_global,
6692 lookup_symbol_aux_block.
6693 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6694 if we should search fields of this and how to do static/global
6695 lookup.
6696 (lookup_symbol_aux_block): Make extern.
6697 (basic_lookup_symbol_nonlocal): New.
6698 (lookup_symbol_static, lookup_symbol_global): Ditto.
6699 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6700 'la_lookup_symbol_nonlocal' members.
6701 * c-lang.c (c_language_defn, cplus_language_defn)
6702 (asm_language_defn, minimal_language_defn): Ditto.
6703 * jv-lang.c (java_language_defn): Ditto.
6704 * language.c (unknown_language_defn, auto_language_defn)
6705 (local_language_defn): Ditto.
6706 * m2-lang.c (m2_language_defn): Ditto.
6707 * objc-lang.c (objc_language_defn): Ditto.
6708 * scm-lang.c (scm_language_defn): Ditto.
6709 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6710 * p-lang.c (pascal_language_defn): Ditto for both.
6711 * Makefile.in (f-lang.o): Depend on value_h.
6712 (p-lang.o): Ditto.
6713
89a9d1b1
DC
67142003-05-19 David Carlton <carlton@bactrian.org>
6715
6716 * block.h: Declare block_static_block.
6717 * block.c (block_static_block): New.
6718 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6719 lookup_symbol_aux_local, calling block_static_block instead.
6720 (lookup_symbol_aux_local): Delete 'static_block' argument.
6721
eed3f8ab
DC
67222003-05-19 David Carlton <carlton@bactrian.org>
6723
6724 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6725
a09d8bda
ML
67262003-05-19 Michal Ludvig <mludvig@suse.cz>
6727
6728 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6729 register numbers mapping.
6730
69636828
AF
67312003-05-18 Adam Fedor <fedor@gnu.org>
6732
6733 * symtab.c (completion_list_objc_symbol): New function.
6734 (make_symbol_completion_list): Use it to add ObjC symbols
6735 when looking though the list.
6736 (language_search_unquoted_string): New function.
6737 (make_file_symbol_completion_list): Use it.
6738
55baeb84
AS
67392003-05-18 Andreas Schwab <schwab@suse.de>
6740
d0b45d99
AS
6741 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6742 dependencies.
6743 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6744 as m68k_linux_extract_return_value.
6745 (DEPRECATED_STORE_RETURN_VALUE): Define as
6746 m68k_linux_store_return_value.
6747 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6748 m68k_linux_extract_struct_value_address.
6749 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6750 get_next_frame, get_frame_base, get_frame_pc.
6751 (m68k_linux_frame_saved_pc): Use get_frame_base.
6752 (m68k_linux_extract_return_value): New function.
6753 (m68k_linux_store_return_value): New function.
6754 (m68k_linux_extract_struct_value_address): New function.
6755 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6756
55baeb84
AS
6757 * c-exp.y (typebase): Remove duplicate occurence of
6758 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6759 of lookup_signed_typename.
55baeb84 6760
b6b08ebf
MK
67612003-05-18 Mark Kettenis <kettenis@gnu.org>
6762
6763 * dwarf2loc.c (find_location_expression): Change type of second
6764 argument to `size_t *'.
6765 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6766 for size variable.
6767
5ad1c190
DC
67682003-05-18 David Carlton <carlton@bactrian.org>
6769
6770 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6771 'linkage_name'. Add comment.
6772 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6773 'linkage_name'.
6774 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6775 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6776 (lookup_block_symbol): Ditto.
6777
b8b527c5
AC
67782003-05-16 Andrew Cagney <cagney@redhat.com>
6779
6780 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6781 * gdbarch.h, gdbarch.c: Re-generate.
6782 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6783 * TODO (REGISTER_BYTES): Delete reference.
6784 * alpha-tdep.c (alpha_gdbarch_init): Update.
6785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6786 * x86-64-tdep.c (x86_64_init_abi): Update.
6787 * vax-tdep.c (vax_gdbarch_init): Update.
6788 * v850-tdep.c (v850_gdbarch_init): Update.
6789 * sparc-tdep.c (sparc_gdbarch_init): Update.
6790 * sh-tdep.c (sh_gdbarch_init): Update.
6791 * s390-tdep.c (s390_gdbarch_init): Update.
6792 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6793 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6794 (ns32k_gdbarch_init_32382): Update.
6795 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6796 * mcore-tdep.c (mcore_gdbarch_init): Update.
6797 * m68k-tdep.c (m68k_gdbarch_init): Update.
6798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6799 * ia64-tdep.c (ia64_gdbarch_init): Update.
6800 * i386-tdep.c (i386_gdbarch_init): Update.
6801 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6802 * hppa-tdep.c (hppa_gdbarch_init): Update.
6803 * h8300-tdep.c (h8300_gdbarch_init): Update.
6804 * frv-tdep.c (frv_gdbarch_init): Update.
6805 * cris-tdep.c (cris_gdbarch_init): Update.
6806 * avr-tdep.c (avr_gdbarch_init): Update.
6807 * arm-tdep.c (arm_gdbarch_init): Update.
6808 * sparc-tdep.c (sparc_pop_frame): Update.
6809 * rs6000-tdep.c (rs6000_pop_frame): Update.
6810 * remote.c (init_remote_state): Update.
6811 (remote_prepare_to_store): Update.
6812 * remote-vx.c (vx_prepare_to_store): Update.
6813 * remote-sds.c (sds_fetch_registers): Update.
6814 (sds_prepare_to_store): Update.
6815 * remote-array.c: Update.
6816 * regcache.c (init_legacy_regcache_descr): Update.
6817 (init_regcache_descr): Update.
6818 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6819 (mips_o64_extract_return_value): Update.
6820 * irix5-nat.c (fetch_core_registers): Update.
6821 * irix4-nat.c (fetch_core_registers): Update.
6822 * i386-tdep.h: Update.
6823 * hppa-tdep.c (pa_do_registers_info): Update.
6824 (pa_do_strcat_registers_info): Update.
6825 * cris-tdep.c (cris_register_bytes_ok): Update.
6826 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6827 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6828 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6829 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6830 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6831 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6832 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6833 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6834 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6835 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6836 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6837 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6838 (REGISTER_BYTES_OK): Update.
6839 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6840 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6841
ee2842e2
ILT
68422003-05-16 Ian Lance Taylor <ian@airs.com>
6843
6844 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6845 (vax_print_insn, print_insn_arg): Remove static functions.
6846 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6847 print_insn_vax from opcodes library.
6848 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6849
973177d3
AC
68502003-05-15 Andrew Cagney <cagney@redhat.com>
6851
aaab4dba
AC
6852 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6853 * target.h (memory_breakpoint_from_pc): Delete declaration.
6854 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6855 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6856 * monitor.c (monitor_insert_breakpoint): Use
6857 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6858 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6859 * gdbarch.h, gdbarch.c: Re-generate.
6860 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6861 (sparc_gdbarch_init): Set breakpoint_from_pc to
6862 sparc_breakpoint_from_pc.
6863 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6864 (BREAKPOINT_FROM_PC): Define.
6865 (sparc_breakpoint_from_pc): Declare.
6866 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6867 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6868 (BREAKPOINT_FROM_PC): Define.
6869 (BREAKPOINT): Delete macro.
6870 * target.h: Update comment.
6871 * s390-tdep.c (s390_gdbarch_init): Update comments.
6872 * remote.c: Update comments.
6873 * remote-mips.c: Update comments.
6874 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6875 * mem-break.c: Update comment.
6876 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6877 (ia64_memory_insert_breakpoint): Update.
6878 * config/sparc/tm-sparc.h: Update comment.
6879 * config/pa/tm-hppa64.h: Update comment.
6880 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6881 (rs6000_breakpoint_from_pc): Update.
6882 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6883 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6884 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6885 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6886 (mips_breakpoint_from_pc): Update.
6887 (mips_dump_tdep): Update.
6888
e06963ff
AC
6889 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6890 * minsyms.c (lookup_minimal_symbol): Inline
6891 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6892
973177d3
AC
6893 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6894 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6895 * p-lang.c (pascal_printstr): Ditto.
6896 * objc-lang.c (objc_printstr): Ditto.
6897 * m2-lang.c (m2_printstr): Ditto.
6898 * jv-valprint.c (java_print_value_fields): Ditto.
6899 * f-lang.c (f_printstr): Ditto.
6900 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6901 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6902 for repeat_count_threshold.
6903 * Makefile.in (cp-valprint.o): Update dependencies.
6904
5ea2bd7f 69052003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6906
5ea2bd7f
JJ
6907 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6908 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6909 they start with mov r2,r12. Support skipping over indirect stores
6910 of the input registers. Upon hitting a non-nop branch instruction
6911 or predicated instruction, bail out by setting lim_pc to the current
6912 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6913 beyond our calculated value and we have trust_limit set,
6914 use the lim_pc value.
6915
cc8c88f3
AC
69162003-05-15 Andrew Cagney <cagney@redhat.com>
6917
6918 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6919 generic_find_dummy_frame.
6920 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6921 (deprecated_generic_find_dummy_frame): Update.
6922 (deprecated_read_register_dummy): Update.
6923 * frame.c (deprecated_generic_get_saved_register): Update.
6924
909cd28e
TR
69252003-05-15 Theodore A. Roth <troth@openavr.org>
6926
6927 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6928 (avr_gdbarch_init): Set breakpoint_from_pc method.
6929
b923b08d
AC
69302003-05-15 Andrew Cagney <cagney@redhat.com>
6931
6932 * regcache.c (build_regcache): Set deprecated_register_valid
6933 directly.
6934 (deprecated_grub_regcache_for_register_valid): Delete function.
6935 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6936 declaration.
6937
ae2f03ac 69382003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
6939
6940 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
6941 * symtab.c (lookup_symbol_aux): Delete calls to
6942 lookup_symbol_aux_minsyms.
6943 (lookup_symbol_aux_minsyms): Comment out function and
6944 prototype. Delete lookup by mangled name.
ae2f03ac 6945
18ec9831
KB
69462003-05-14 Kevin Buettner <kevinb@redhat.com>
6947
6948 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6949 correctly indicate an empty stack and ``stack_allocated'' to the
6950 indicate the number of elements initially allocated.
6951 (dwarf_expr_grow_stack): Simplify method for computing new
6952 stack size. Don't loop infinitely if ``stack_len'' is zero.
6953 (execute_stack_op): Move ``ctx->in_reg'' initialization
6954 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6955 be used in conjuction with DW_OP_piece. Revise error message
6956 accordingly.
6957
de18ac1f
TR
69582003-05-14 Theodore A. Roth <troth@openavr.org>
6959
6960 * MAINTAINERS: Update my email address.
6961 * avr-tdep.c: Ditto.
6962
176620f1
EZ
69632003-05-14 Elena Zannoni <ezannoni@redhat.com>
6964
6965 * symtab.h (enum domain_enum): Rename from namespace_enum.
6966 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6967 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6968 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6969 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6970 TYPES_NAMESPACE, METHODS_NAMESPACE.
6971 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6972 (struct symbol, struct partial_symbol): Rename field
6973 'namespace_enum namespace' to 'domain_enum domain'.
6974 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6975 Delete old define kludge for namespace.
6976
6977 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6978 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6979 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6980 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6981 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6982 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6983 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6984 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6985 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6986 occurrences of the above.
6987
b7f31508
ILT
69882003-05-14 Ian Lance Taylor <ian@airs.com>
6989
6990 * Makefile.in (install-only): Use $(SHELL) when running
6991 mkinstalldirs.
6992
2fdbdd39
ILT
69932003-05-13 Ian Lance Taylor <ian@airs.com>
6994
a208d82c
ILT
6995 * MAINTAINERS (write after approval): Add myself.
6996
2fdbdd39
ILT
6997 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6998 second and third arguments.
6999 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7000 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7001
fbd9dcd3
AC
70022003-05-13 Andrew Cagney <cagney@redhat.com>
7003
7004 * defs.h (store_address): Delete declaration.
7005 findvar.c (store_address): Delete function.
7006 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7007 store_unsigned_integer.
7008 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7009 * v850-tdep.c (v850_push_arguments): Ditto.
7010 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7011 * sh-tdep.c (sh64_get_saved_register): Ditto.
7012 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7013 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7014 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7015 (mips_get_saved_register): Ditto.
7016 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7017 (find_func_descr, ia64_push_arguments): Ditto.
7018 * i386-tdep.c (i386_push_arguments): Ditto.
7019 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7020 * frv-tdep.c (frv_push_arguments): Ditto.
7021 * frame.c (legacy_saved_regs_prev_register): Ditto.
7022 (deprecated_generic_get_saved_register): Ditto.
7023 * findvar.c (unsigned_address_to_pointer): Ditto.
7024 * dwarf2read.c (dwarf2_const_value): Ditto.
7025 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7026 * alpha-tdep.c (alpha_push_arguments): Ditto.
7027
6760f9e6
JB
70282003-05-12 J. Brobecker <brobecker@gnat.com>
7029
7030 * NEWS: Mention that the hppa-hpux port has been partially
7031 multiarched (32bit ABIT only, so far).
7032
30e221b4
AC
70332003-05-11 Andrew Cagney <cagney@redhat.com>
7034
7035 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7036 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7037 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7038 sim/testsuite/sim/arm/misaligned2.ms, and
7039 sim/testsuite/sim/arm/misaligned3.ms.
7040 * disasm.h (struct ui_file): Add opaque struct declaration.
7041 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7042 * frame.h (struct ui_file): Ditto.
7043
dea7f9ba
MK
70442003-05-11 Mark Kettenis <kettenis@gnu.org>
7045
7046 * value.h: Pretty print.
7047
01986c48
MK
70482003-05-10 Mark Kettenis <kettenis@gnu.org>
7049
7050 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7051
123a958e
AC
70522003-05-08 Andrew Cagney <cagney@redhat.com>
7053
7054 * regcache.h (max_register_size): Delete declaration.
7055 * regcache.c (max_register_size): Delete function.
7056 (struct regcache_descr): Delete field "max_register_size".
7057 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7058 registers fit in MAX_REGISTER_SIZE.
7059 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7060 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7061 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7062 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7063 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7064 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7065 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7066 * dve3900-rom.c, hppa-tdep.c: Ditto.
7067
eb294659
DC
70682003-05-08 David Carlton <carlton@math.stanford.edu>
7069
7070 * valops.c (push_word): Fix typo.
7071
d9d9c31f
AC
70722003-05-08 Andrew Cagney <cagney@redhat.com>
7073
7074 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7075 * gdbarch.h: Re-generate.
7076 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7077 (legacy_max_register_raw_size): Delete declaration.
7078 * regcache.c (legacy_max_register_raw_size): Delete function.
7079 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7080 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7081 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7082 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7083 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7084 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7085 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7086 * findvar.c, dwarf2cfi.c: Ditto.
7087
22540ece
AC
70882003-05-08 Andrew Cagney <cagney@redhat.com>
7089
7090 * mips-tdep.c (read_signed_register): New function, moved to here
7091 from "regcache.c".
7092 (read_signed_register_pid): Ditto.
7093 * regcache.c (read_signed_register_pid): Delete function, moved to
7094 "mips-tdep.c".
7095 (read_signed_register): Ditto.
7096 * regcache.h (read_signed_register): Delete declaration.
7097 (read_signed_register_pid): Delete declaration.
7098
0c92afe8
AC
70992003-05-08 Andrew Cagney <cagney@redhat.com>
7100
7101 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7102 * gdbarch.h: Re-generate.
7103 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7104 (legacy_max_register_virtual_size): Delete declaration.
7105 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7106 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7107 * tracepoint.c (memrange_sortmerge): Ditto.
7108 * sparc-tdep.c (sparc_print_registers): Ditto.
7109 * regcache.c (legacy_max_register_virtual_size): Delete function.
7110
6037b830
JB
71112002-05-08 J. Brobecker <brobecker@gnat.com>
7112
7113 * fork-child.c (escape_bang_in_quoted_argument): New function.
7114 (fork_inferior): Escape '!' characters in quoted arguments
7115 only when needed.
7116
5d62c8b1
JB
71172003-05-08 J. Brobecker <brobecker@gnat.com>
7118
7119 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7120 the language of the CU is not currently supported by GDB.
7121
20a0e81d
JB
71222003-05-08 J. Brobecker <brobecker@gnat.com>
7123
7124 * defs.h (language): Add language_minimal enum value.
7125 * c-lang.c (minimal_language_defn): New language definition.
7126 (_initialize_c_language): Add the new minimal language to the list
7127 of languages known to GDB.
7128
710ee10a
KB
71292003-05-08 Kevin Buettner <kevinb@redhat.com>
7130
7131 * frame.c (get_frame_type): Don't attempt to lazily initialize
7132 frame's unwinder for legacy frames.
7133
1750fa04
AC
71342003-05-07 Andrew Cagney <cagney@redhat.com>
7135
7136 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7137 and "regcache" parameters.
7138 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7139
ddf9f258 71402003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7141
7142 * dwarf2read.c (dwarf_decode_lines): Only use output of
7143 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7144 the current address.
7145
87767c29
AC
71462003-05-07 Andrew Cagney <cagney@redhat.com>
7147
7148 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7149 code.
7150
5e7b2f39
JB
71512003-05-07 Jim Blandy <jimb@redhat.com>
7152
7153 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7154 'maint info symtabs' and 'maint info psymtabs'.
7155 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7156 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7157 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7158 Declarations updated.
7159 * maint.c (maintenance_list_command): Delete.
7160 (_initialize_maint_cmds): Update calls to add_cmd.
7161 * gdbcmd.h (maintenancelistlist): Delete declaration.
7162 * cli/cli-cmds.c (maintenancelistlist): Delete.
7163 (init_cmd_lists): Don't initialize it.
7164 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7165
f6684c31
AC
71662003-05-07 Andrew Cagney <cagney@redhat.com>
7167
7168 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7169 "regcache".
7170 (d10v_print_registers_info): Update.
7171 (d10v_dmap_register, d10v_imap_register): Delete functions.
7172 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7173 and "imap_register".
7174 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7175 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7176 * arch-utils.c (generic_remote_translate_xfer_address): Add
7177 "regcache" and "gdbarch" parameters.
7178 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7179 parameter. Change class to multi-arch.
7180 * gdbarch.h, gdbarch.c: Re-generate.
7181 * remote.c (remote_xfer_memory): Use
7182 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7183
e4846b08
JJ
71842003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7185
7186 * infrun.c (prev_pc): Move declaration ahead of proceed().
7187 (proceed): Refresh prev_pc value before resuming.
7188 (stop_stepping): Remove code to refresh prev_pc.
7189
6b71b8ac
KW
71902003-05-06 Kris Warkentin <kewarken@qnx.com>
7191
7192 * nto-tdep.c: Removed stray comment.
7193
47979a4b
KW
71942003-05-06 Kris Warkentin <kewarken@qnx.com>
7195
7196 * i386-nto-tdep.c: Fix old K&R function definitions.
7197 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7198 Also change add_show_from_set() call to add_setshow_cmd().
7199 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7200
00905d52
AC
72012003-05-05 Andrew Cagney <cagney@redhat.com>
7202
7203 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7204 (fprint_dummy_frames): New function.
7205 (maintenance_print_dummy_frames): New function.
7206 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7207 * frame.c (fprint_frame_id): Make global.
7208 * frame.h (fprint_frame_id): Declare.
7209 * Makefile.in (dummy-frame.o): Update dependencies.
7210
b1e29e33
AC
72112003-05-05 Andrew Cagney <cagney@redhat.com>
7212
7213 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7214 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7215 SIZEOF_CALL_DUMMY_WORDS.
7216 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7217 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7218 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7219 CALL_DUMMY_BREAKPOINT_OFFSET.
7220 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7221 CALL_DUMMY_START_OFFSET.
7222 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7223 * gdbarch.h, gdbarch.c: Re-generate.
7224 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7225 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7226 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7227 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7228 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7229 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7230 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7231 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7232 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7233 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7234 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7235 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7236 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7237 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7238 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7239
72402003-05-05 Kris Warkentin <kewarken@qnx.com>
7241
7242 * configure.tgt: Add i[3456]86-*-nto*.
7243 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7244 * nto-tdep.c: New file. Neutrino target support routines.
7245 * nto-tdep.h: New file. Neutrino target header.
7246 * config/tm-qnxnto.h: New file.
7247 * config/i386/i386nto.mt: New file.
7248 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7249
0ce3d317
AC
72502003-05-04 Andrew Cagney <cagney@redhat.com>
7251
7252 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7253 (load_infrun_state): Ditto.
7254 (struct thread_info): Drop "prev_func_name" field.
7255 * thread.c (load_infrun_state): Update.
7256 (save_infrun_state): Update.
7257 * infrun.c (prev_func_name): Delete variable.
7258 (init_wait_for_inferior): Do not clear prev_func_name.
7259 (stop_stepping, keep_going, context_switch): Do not swap
7260 prev_func_name.
7261 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7262 instead of PC_IN_SIGTRAMP.
7263
46654a5b
AC
72642003-05-04 Andrew Cagney <cagney@redhat.com>
7265
7266 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7267 REGISTER_BYTE with register_offset_hack.
7268 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7269 that REGISTER_BYTE is consistent with the regcache.
7270 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7271 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7272
14b08c1b
MK
72732003-05-04 Mark Kettenis <kettenis@gnu.org>
7274
04c8243f
MK
7275 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7276 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7277
14b08c1b
MK
7278 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7279
c7a11e01
JB
72802003-05-03 J. Brobecker <brobecker@gnat.com>
7281
7282 From Thierry Schneider <tpschneider1@yahoo.com>
7283 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7284 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7285 (mi-cmd-symbol.o): Add rule.
7286
7043d8dc
AC
72872003-05-03 Andrew Cagney <cagney@redhat.com>
7288
7289 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7290 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7291 * gdbarch.h, gdbarch.c: Re-generate.
7292 * d10v-tdep.c (d10v_push_dummy_code): New function.
7293 (d10v_gdbarch_init): Set push_dummy_code.
7294 * infcall.c (legacy_push_dummy_code): New function.
7295 (generic_push_dummy_code): New function.
7296 (push_dummy_code): New function.
7297 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7298 instead of dummy_addr, to push_dummy_call. Move call to
7299 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7300 switch.
7301 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7302
92bf2b80
AC
73032003-05-03 Andrew Cagney <cagney@redhat.com>
7304
7305 * disasm.h (print_insn): Declare.
7306 * disasm.c (init_gdb_disassemble_info): New function.
7307 (gdb_disassembly): Call init_gdb_disassemble_info.
7308 (gdb_print_insn): New function.
7309 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7310 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7311 * mcore-tdep.c: Include "disasm.h"
7312 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7313 * d10v-tdep.c: Include "disasm.h".
7314 (display_trace): Call gdb_print_insn, instead of print_insn.
7315 (print_insn): Delete function.
7316 * printcmd.c: Include "disasm.h".
7317 (print_insn): Delete function.
7318 (print_formatted): Call gdb_print_insn, instead of print_insn.
7319 * Makefile.in (printcmd.o): Update dependencies.
7320 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7321
27d94c49
AC
73222003-05-02 Andrew Cagney <cagney@redhat.com>
7323
82de1e5b
AC
7324 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7325 PC_REGNUM, re-indent.
7326 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7327 PC_REGNUM isn't set.
7328
27d94c49
AC
7329 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7330 * gdbarch.h, gdbarch.c: Re-generate.
7331 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7332 register_virtual_size, pc_regnum, or register_bytes.
7333 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7334 (d10v_register_type): Use D10V_PC_REGNUM.
7335 (d10v_print_registers_info, d10v_read_pc): Ditto.
7336 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7337 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7338
a9c0dc7f
DC
73392003-05-02 David Carlton <carlton@bactrian.org>
7340
7341 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7342 the name with mstrsave.
7343
e33d66ec
EZ
73442003-05-02 Elena Zannoni <ezannoni@redhat.com>
7345
7346 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7347 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7348 (host_charset_name, target_charset_name): New vars for use by
7349 set/show commands.
7350 (host_charset_enum, target_charset_enum): New enums for set/show
7351 commands.
7352 (set_charset_sfunc, set_host_charset_sfunc,
7353 set_target_charset_sfunc): New functions.
7354 (set_host_charset, set_target_charset): Make static.
7355 (list_charsets, set_host_charset_command,
7356 set_target_charset_command): Delete functions.
7357 (show_charset_command): Rewrite as....
7358 (show_charset): Hook this up with the set/show command mechanism.
7359 (_initialize_charset): Change names of charsets to match the
7360 set/show enums. Use host_charset_name and target_charset_name.
7361 Use set/show mechanism for charset, host-charset, target-charset
7362 commands. Do not make 'show host-charset' and 'show
7363 target-charset' be aliases of 'show charset'.
7364
7365 * charset.h (set_host_charset, set_target_charset): Don't export,
7366 they are not used outside the file.
7367
2b6fd0d8
AC
73682003-05-01 Andrew Cagney <cagney@redhat.com>
7369
7370 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7371 (gdb_disassembly): Make "di" non static, always initialize and
7372 cleanup. Always use dis_asm_read_memory.
7373 (gdb_dis_asm_read_memory): Delete function.
7374
6ae2f580
AC
73752003-05-01 Andrew Cagney <cagney@redhat.com>
7376
7377 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7378 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7379
810ecf9f
AC
73802003-04-30 Andrew Cagney <cagney@redhat.com>
7381
7382 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7383 "tm_print_insn_info".
7384 (TARGET_PRINT_INSN_INFO): Delete macro.
7385 (dis_asm_read_memory): Delete function declaration.
7386 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7387 (tm_print_insn_info): Delete variable definition.
7388 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7389 * gdbarch.h, gdbarch.c: Re-generate.
7390 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7391 "deprecated_tm_print_insn_info".
7392 * mcore-tdep.c (mcore_dump_insn): Ditto.
7393 * mips-tdep.c (mips_gdbarch_init): Ditto.
7394 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7395 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7396 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7397 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7398 instead of TARGET_PRINT_INSN_INFO, add comment.
7399 * s390-tdep.c (s390_get_frame_info): Instead of
7400 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7401 (s390_check_function_end, s390_is_sigreturn): Ditto.
7402 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7403 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7404 * disasm.c: Include "gdbcore.h".
7405 (_initialize_disasm): New function, initialize
7406 "deprecated_tm_print_insn_info".
7407 (deprecated_tm_print_insn_info): New variable.
7408 (dis_asm_read_memory): Moved from "corefile.c", made static.
7409 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7410 * Makefile.in (disasm.o): Update dependencies.
7411
07020390
AC
74122003-04-30 Andrew Cagney <cagney@redhat.com>
7413
7414 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7415
a9fa03de
AF
74162003-04-29 Adam Fedor <fedor@gnu.org>
7417
7418 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7419 * infcall.c (find_function_addr): Make non-static.
7420 * infcall.h (find_function_addr): Declare.
7421 * Makefile.in (eval.o): Update dependencies.
7422
1bae87b9
AF
74232003-04-28 Adam Fedor <fedor@gnu.org>
7424
7425 * symtab.c (symbol_find_demangled_name): Check for and demangle
7426 ObjC symbols.
7427 (symbol_init_demangled_name): Init for language_objc as well.
7428
0ba6dca9
AC
74292003-04-28 Andrew Cagney <cagney@redhat.com>
7430
7431 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7432 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7433 * gdbarch.h, gdbarch.c: Re-generate.
7434 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7435 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7436 * inferior.h (deprecated_read_fp): Rename read_fp.
7437 (generic_target_read_fp): Delete declaration.
7438 * regcache.c (generic_target_read_fp): Delete function.
7439 (deprecated_read_fp): Replace read_fp, use
7440 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7441 * d10v-tdep.c (d10v_read_fp): Delete function.
7442 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7443
7444 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7445 deprecated_target_read_fp to generic_target_read_fp.
7446 * sh-tdep.c (sh_gdbarch_init): Ditto.
7447 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7449 * frv-tdep.c (frv_gdbarch_init): Ditto.
7450
7451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7452 deprecated_fp_regnum.
7453 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7454 * vax-tdep.c (vax_gdbarch_init): Ditto.
7455 * v850-tdep.c (v850_gdbarch_init): Ditto.
7456 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7457 * sh-tdep.c (sh_gdbarch_init): Ditto.
7458 * s390-tdep.c (s390_gdbarch_init): Ditto.
7459 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7460 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7461 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7462 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7464 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7465 * i386-tdep.c (i386_gdbarch_init): Ditto.
7466 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7467 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7468 * frv-tdep.c (frv_gdbarch_init): Ditto.
7469 * cris-tdep.c (cris_gdbarch_init): Ditto.
7470 * avr-tdep.c (avr_gdbarch_init): Ditto.
7471 * arm-tdep.c (arm_gdbarch_init): Ditto.
7472 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7473
7474 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7475 * v850-tdep.c (v850_gdbarch_init): Ditto.
7476 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7477 * sh-tdep.c (sh_gdbarch_init): Ditto.
7478 * s390-tdep.c (s390_gdbarch_init): Ditto.
7479 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7480 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7481 * mips-tdep.c (mips_gdbarch_init): Ditto.
7482 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7483 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7484 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7485 * frv-tdep.c (frv_gdbarch_init): Ditto.
7486 * avr-tdep.c (avr_gdbarch_init): Ditto.
7487 * arm-tdep.c (arm_gdbarch_init): Ditto.
7488
7489 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7490 DEPRECATED_FP_REGNUM.
7491 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7492 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7493 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7494 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7495 (sparc32_register_virtual_type): Ditto.
7496 * sh-tdep.c (sh64_frame_chain): Ditto.
7497 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7498 (sh_nofp_frame_init_saved_regs): Ditto.
7499 (sh64_nofp_frame_init_saved_regs): Ditto.
7500 (sh_fp_frame_init_saved_regs): Ditto.
7501 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7502 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7503 * procfs.c (procfs_fetch_registers): Ditto.
7504 (procfs_store_registers): Ditto.
7505 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7506 (store_inferior_registers, fetch_core_registers): Ditto.
7507 (fetch_kcore_registers, clear_regs): Ditto.
7508 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7509 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7510 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7511 * nlm/i386.c (do_status): Ditto.
7512 * mipsv4-nat.c (supply_gregset): Ditto.
7513 * mips-tdep.c: Ditto for comments.
7514 * mips-nat.c (fetch_inferior_registers): Ditto.
7515 (store_inferior_registers, fetch_core_registers): Ditto.
7516 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7517 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7518 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7519 (i386_do_pop_frame, i386_register_type): Ditto.
7520 * hppa-tdep.c (hppa_frame_chain): Ditto.
7521 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7522 (hppa_pop_frame, hppa_read_fp): Ditto.
7523 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7524 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7525 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7526 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7527 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7528 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7529 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7530 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7531 * blockframe.c: Ditto for comments.
7532 * arch-utils.h: Ditto for comments.
7533 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7534 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7535 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7536 * alpha-tdep.h: Ditto for comments.
7537 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7538 (alpha_cannot_store_register): Ditto.
7539 (alpha_push_dummy_frame): Ditto.
7540 * alpha-nat.c (supply_gregset): Ditto.
7541
7542 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7543 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7544 * config/sparc/tm-sparc.h: Update comment.
7545
7546 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7547 deprecated_read_fp instead of TARGET_READ_FP.
7548 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7549 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7550 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7551 deprecated_read_fp instead of read_fp.
7552 * s390-tdep.c (s390_push_arguments): Ditto.
7553 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7554 * frame.h: Ditto in comments.
7555 * frame.c (legacy_get_prev_frame): Ditto.
7556 * dummy-frame.c (dummy_frame_this_id): Ditto.
7557 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7558
d7a27068
AC
75592003-04-28 Andrew Cagney <cagney@redhat.com>
7560
7561 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7562 * gdbarch.h, gdbarch.c: Re-generate.
7563 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7564 * vax-tdep.c (_initialize_vax_tdep): Update.
7565 * v850-tdep.c (_initialize_v850_tdep): Update.
7566 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7567 * s390-tdep.c (_initialize_s390_tdep): Update.
7568 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7569 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7570 * mips-tdep.c (_initialize_mips_tdep): Update.
7571 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7572 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7573 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7574 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7575 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7576 * frv-tdep.c (_initialize_frv_tdep): Update.
7577 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7578 (_initialize_cris_tdep): Update.
7579 * arch-utils.c (legacy_print_insn): Update.
7580 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7581
d2630e69
AF
75822003-04-26 Adam Fedor <fedor@gnu.org>
7583
7584 * linespec.c (decode_objc): New function to decode ObjC calls
7585 (decode_line_1): Check for ObjC calls (using decode_objc)
7586 * Makefile (linespec.o): Update dependencies.
7587
3086aeae
DJ
75882003-04-26 Daniel Jacobowitz <drow@mvista.com>
7589
7590 * breakpoint.h (struct breakpoint_ops): New.
7591 (struct breakpoint): Add ops member.
7592
7593 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7594 (mention): Use new breakpoint ops member.
7595 (set_raw_breakpoint): Initialize ops field to NULL.
7596 (print_exception_catchpoint, print_one_exception_catchpoint)
7597 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7598 (gnu_v3_exception_catchpoint_ops): New.
7599 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7600
1fbec6c3
AF
76012003-04-25 Adam Fedor <fedor@gnu.org>
7602
7603 * Makefile.in (COMMON_OBS): Add objc-lang.o
7604
0ef21242
AC
76052003-04-25 Andrew Cagney <cagney@redhat.com>
7606
7607 * d10v-tdep.c (print_insn): Delete function.
7608 (display_trace): Use TARGET_PRINT_INSN.
7609 (_initialize_d10v_tdep): Do not set tm_print_insn.
7610 (d10v_gdbarch_init): Set print_insn.
7611
f75493ed
AC
76122003-04-25 Andrew Cagney <cagney@redhat.com>
7613
7614 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7615 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7616 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7617 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7618 (nr_dmap_regs, a0_regnum): ... new functions.
7619 (d10v_print_registers_info): Use a0_regnum, use register_size.
7620 (d10v_register_byte): Delete function.
7621 (d10v_register_raw_size): Delete function.
7622 (d10v_register_type): Use a0_regnum.
7623 (d10v_print_registers_info): Use a0_regnum.
7624 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7625 (d10v_gdbarch_init): Do not set register_byte or
7626 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7627 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7628 extract_address.
7629 (trace_command): Use XCALLOC.
7630 (print_insn): Delete reference to tm_print_insn.
7631 (saved_regs_unwinder): Use store_unsigned_integer instead of
7632 store_address.
7633 * frame.h (FRAME_OBSTACK_CALLOC): Define
7634
2202b100
DC
76352003-04-25 David Carlton <carlton@bactrian.org>
7636
7637 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7638
4e45ca2e
AF
76392003-04-24 Adam Fedor <fedor@gnu.org>
7640
7641 * objc-lang.c: Include "valprint.h"
7642 * Makefile.in (objc-lang.o): Update dependencies.
7643
93de3e7f
AF
76442003-04-24 Adam Fedor <fedor@gnu.org>
7645
8ffd9b1b 7646 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7647 architecture dependant compilation and mark as unimplemented
7648 (until they get put in the gdbarch vector).
7649
0f20eeea
DC
76502003-04-23 David Carlton <carlton@bactrian.org>
7651
7652 * cp-support.c (cp_find_first_component): Accept 'operator' in
7653 more locations.
7654
74cfe982
AC
76552003-04-23 Andrew Cagney <cagney@redhat.com>
7656
7657 * infcall.c (call_function_by_hand): Eliminate redundant
7658 indentation. Move "saved_async" and "old_cleanups" to where they
7659 are needed.
8ffd9b1b 7660
52557533
AC
76612003-04-23 Andrew Cagney <cagney@redhat.com>
7662
7663 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7664 and "buffer". Move the "name" code to where it is needed.
7665
158775de
AC
76662003-04-23 Andrew Cagney <cagney@redhat.com>
7667
7668 * infcall.c (call_function_by_hand): Move variables "start_sp",
7669 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7670 code to ON_STACK switch branch.
8ffd9b1b 7671
ebc7896c
AC
76722003-04-23 Andrew Cagney <cagney@redhat.com>
7673
7674 * infcall.c (call_function_by_hand): Make declaration of "i",
7675 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7676 lint.
7677
d727590f
AC
76782003-04-23 Andrew Cagney <cagney@redhat.com>
7679
7680 * infcall.c (call_function_by_hand): Delete variable
7681 "n_method_args". Localize "param_type"'s declaration to the loop
7682 that it is used. Reinstate code assigning to said variable -
7683 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7684 Rationalize code using "param_type".
7685
d585e13a
AC
76862003-04-22 Andrew Cagney <cagney@redhat.com>
7687
7688 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7689 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7690 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7691 to DEPRECATED_PUSH_RETURN_ADDRESS.
7692
051caad9
KB
76932003-04-22 Kevin Buettner <kevinb@redhat.com>
7694
7695 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7696 on the DWARF2 register number prior to fetching a register.
7697
77296879
JB
76982003-04-22 J. Brobecker <brobecker@gnat.com>
7699
7700 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7701 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7702 this macro was always set to 0.
77296879
JB
7703 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7704 considering the fact that this macro was always set to 0.
7705 * hppa-tdep.h (hppa_store_return_value): Likewise.
7706 (hppa_extract_return_value): Likewise.
7707
4252f1df
JB
77082003-04-22 J. Brobecker <brobecker@gnat.com>
7709
7710 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7711 the hppa-pro target only.
7712
14604c6b
JB
77132003-04-21 J. Brobecker <brobecker@gnat.com>
7714
7715 Ongoing multi-arch conversion effort for HP/UX:
7716 * config/pa/tm-hppa.h: Move all macro that are no longer
7717 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7718 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7719
77eb01d1
JB
77202003-04-21 J. Brobecker <brobecker@gnat.com>
7721
7722 * config/pa/tm-hppa.h: Obsolete a section that was only used
7723 for hppa-pro.
7724
61995b3b
JB
77252003-04-21 J. Brobecker <brobecker@gnat.com>
7726
7727 Ongoing multi-arch conversion for HP/UX.
7728 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7729 if already defined (allows hppa64 to stay non-multiarched for now).
7730 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7731
4aa79dcc
AC
77322003-04-21 Andrew Cagney <cagney@redhat.com>
7733
7734 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7735
0f751ff2
AC
77362003-04-21 Andrew Cagney <cagney@redhat.com>
7737
7738 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7739 "i386_num_mmx_regs".
7740
04714b91
AC
77412003-04-21 Andrew Cagney <cagney@redhat.com>
7742
7743 * infcall.c: New file.
7744 * infcall.h: New file.
7745 * valarith.c: Include "infcall.h".
7746 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7747 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7748 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7749 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7750 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7751 (SFILES): Add "infcall.c"
7752 (COMMON_OBS): Add "infcall.o".
7753 (infcall.o): Specify dependencies.
7754 * value.h (call_function_by_hand): Delete declaration.
7755 * inferior.h (run_stack_dummy): Delete declaration.
7756 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7757 (run_stack_dummy): Move to "infcall.c", merged into
7758 call_function_by_hand.
7759 * valops.c (call_function_by_hand): Moved to "infcall.c".
7760 (find_function_addr, value_arg_coerce): Ditto.
7761 (unwindonsignal_p, coerce_float_to_double): Ditto.
7762 (_initialize_valops): Move "set/show coerce-float-to-double", and
7763 "set/show unwindonsignal" commands to "infcall.c".
7764 * v850-tdep.c, target.h: Update comments.
7765 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7766 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7767 (sh64_init_extra_frame_info): Update comments.
7768 * mn10300-tdep.c: Update comments.
7769 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7770 * config/sparc/tm-sparc.h: Update comments.
7771 * breakpoint.h: Update comments.
7772 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7773 * arm-tdep.c: Update comment.
7774
f9d3c2a8
MK
77752003-04-19 Mark Kettenis <kettenis@gnu.org>
7776
c40e1eab
MK
7777 * i386-tdep.c (i386_num_register_names): New variable.
7778 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7779 (MM0_REGNUM): Remove redundant parentheses in define.
7780 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7781 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7782 i386_mxcsr_regnum_p): Remove redundant parentheses.
7783 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7784
94ea66b3
MK
7785 * i386-tdep.c (i386_extract_return_value,
7786 i386_store_return_value): Correct check for availability of
7787 floating-point registers.
7788
54299a1d
MK
7789 * i386-tdep.c (i386_frame_num_args): Remove function.
7790 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7791
c86c27af
MK
7792 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7793 mmx_regnum_to_fp_regnum. Adjust all callers.
7794
f9d3c2a8
MK
7795 * i386-tdep.c (i386_get_longjmp_target): Use
7796 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7797 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7798 extract_address.
7799
94ba74a9
MK
78002003-04-19 Mark Kettenis <kettenis@gnu.org>
7801
7802 * core-regset.c: Update comments to reflect reality. Re-order
7803 includes.
7804 (fetch_core_registers): Use switch instead of if. Remove
7805 redundant prototype.
7806
4074e13c
JB
78072003-04-18 Jim Blandy <jimb@redhat.com>
7808
7809 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7810 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7811
e3ab4aba
RH
78122003-04-17 Richard Henderson <rth@redhat.com>
7813
7814 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7815
627bf7c1
EZ
78162003-04-17 Michael Snyder <msnyder@redhat.com>
7817 Karen Bennet <bennet@redhat.com>
7818
7819 Committed by Elena Zannoni <ezannoni@redhat.com>
7820 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7821
514621a9
EZ
78222003-04-17 Elena Zannoni <ezannoni@redhat.com>
7823
7824 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7825 value if the return type is void.
514621a9 7826
b4acd559
JJ
78272003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7828
7829 * thread-db.c: Reindented.
8ffd9b1b 7830
530b167e 78312003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7832
7833 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7834 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7835 as types.
7836
0a48e7e8
MS
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
8ffd9b1b 7860
ab9fe00e
KB
78612003-04-16 Kevin Buettner <kevinb@redhat.com>
7862
610a3745 7863 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7864 the size of ``long double'' to 16, instead of 8.
7865
e64a344c
MK
78662003-04-16 Mark Kettenis <kettenis@gnu.org>
7867
7868 * i386-linux-nat.c: Add some whitespace to make things more
7869 readable.
7870 (fetch_register, store_register, fetch_inferior_registers,
7871 store_inferior_registers): Get rid of assignment in if-statement.
7872 (store_register): Fix typo in error message.
7873
25d41031
AC
78742003-04-16 Andrew Cagney <cagney@redhat.com>
7875
7876 * utils.c (xmmalloc): Always allocate something, matches
7877 libiberty/xmalloc's semantics.
7878 (xmrealloc, xmcalloc): Ditto.
7879
c50901fd
AC
78802003-04-16 Andrew Cagney <cagney@redhat.com>
7881
7882 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7883 update comments.
7884 (get_frame_type): Initialize unwind and type when needed.
7885 (get_frame_id, frame_register_unwind): Ditto.
7886
f81824a9
AC
78872003-04-16 Andrew Cagney <cagney@redhat.com>
7888
7889 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7890 obsolete.
7891 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7892 * sparcl-stub.c: Obsolete file.
7893 * config/sparc/tm-sparclet.h: Obsolete file.
7894 * sparclet-stub.c: Obsolete file.
7895 * sparclet-rom.c: Obsolete file.
7896 * sparcl-tdep.c: Obsolete file.
7897 * config/sparc/tm-sparclite.h: Obsolete file.
7898 * config/sparc/sparclite.mt: Obsolete file.
7899 * config/sparc/sparclet.mt: Obsolete file.
7900 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7901 sparc86x-*-* obsolete.
7902
9219021c
DC
79032003-04-15 David Carlton <carlton@math.stanford.edu>
7904
7905 * Makefile.in (SFILES): Add cp-namespace.c.
7906 (COMMON_OBS): Add cp-namespace.o.
7907 (block.o): Depend on gdb_obstack_h and cp_support_h.
7908 (buildsym.o): Depend on cp_support_h.
7909 (cp-namespace.o): New.
7910 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7911 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7912 (dwarf2read.o): Depend on cp_support_h.
7913 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7914 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7915 processing_current_namespace.
7916 (read_namespace): Update processing_current_namespace; check for
7917 anonymous namespaces.
7918 (dwarf2_name): New function.
7919 (dwarf2_extension): Ditto.
7920 * cp-support.h: Update copyright, contributors.
7921 Add inclusion guards.
7922 Add opaque declaration for structs obstack, block, symbol.
7923 (struct using_direct): New struct.
7924 Add declarations for cp_find_first_component,
7925 cp_entire_prefix_len, processing_has_namespace_info,
7926 processing_current_namespace, cp_is_anonymous,
7927 cp_add_using_directive, cp_initialize_namespace,
7928 cp_finalize_namespace, cp_set_block_scope,
7929 cp_scan_for_anonymous_namespaces.
7930 * cp-namespace.c: New file.
7931 * cp-support.c: Update copyright.
7932 Include ctype.h, gdb_assert.h, gdbcmd.h.
7933 New variable maint_cplus_cmd_list.
7934 (cp_find_first_component): New function.
7935 (cp_entire_prefix_len, maint_cplus_command)
7936 (first_component_command, _initialize_cp_support): Ditto.
7937 * buildsym.c: Include cp-support.h.
7938 New variable using_list.
7939 (add_symbol_to_list): Check for anonymous namespaces.
7940 (finish_block): Set block's scope.
7941 (start_symtab): Initialize C++ namespace support.
7942 (end_symtab): Finalize C++ namespace support.
7943 * block.h: Add opaque declarations for structs
7944 block_namespace_info, using_direct, and obstack.
7945 Add declarations for block_set_scope and block_set_using.
7946 (struct block): Add 'language_specific' member.
7947 (BLOCK_NAMESPACE): New macro.
7948 * block.c: Include gdb_obstack.h and cp-support.h.
7949 (struct block_namespace_info): New struct.
7950 (block_set_scope): New function.
7951 (block_set_using, block_initialize_namespace): Ditto.
7952
d5a921c9
KB
79532003-04-14 Kevin Buettner <kevinb@redhat.com>
7954
7955 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7956 (locate_base): Return early if there aren't any link map offsets.
7957 (svr4_solib_create_inferior_hook): Warn if shared library support
7958 is unavailable.
7959
d2a52b27
DC
79602003-04-14 David Carlton <carlton@math.stanford.edu>
7961
7962 * symtab.c (symbol_set_names): Add prefix when storing Java names
7963 in hash table. Fix for PR java/1039.
7964
980cae7a
DC
79652003-04-14 David Carlton <carlton@math.stanford.edu>
7966
7967 * symtab.c (symbol_set_names): Rename 'name' arg to
7968 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7969 * symtab.h: Change 'name' argument in declaration of
7970 symbol_set_names to 'linkage_name'.
7971 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7972
e227b13c
AC
79732003-04-14 Andrew Cagney <cagney@redhat.com>
7974
7975 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7976 return the fully sign-extended register value.
7977 (get_frame_pointer): Ditto.
7978 (mips_pop_frame): Initialize "proc_desc" after checking for a
7979 dummy frame.
7980
36712a20
AC
79812003-04-14 Andrew Cagney <cagney@redhat.com>
7982
7983 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7984 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7985 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7986 (mips_push_register): Delete function.
7987 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7988 PUSH_FP_REGNUM.
7989
44ea7b70
JB
79902003-04-14 Jim Blandy <jimb@redhat.com>
7991
7992 * symmisc.c: #include "gdb_regex.h".
7993 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7994 functions.
7995 * maint.c (maintenance_list_command): New function.
7996 (_initialize_maint_cmds): Register the above as commands.
7997 * symtab.h (maintenance_list_symtabs,
7998 maintenance_list_psymtabs): New declarations.
7999 * cli/cli-cmds.c (maintenancelistlist): New variable.
8000 (init_cmd_lists): Initialize it.
8001 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8002 * gdbcmd.h (maintenancelistlist): New declaration.
8003 * Makefile.in (symmisc.o): Update dependencies.
8004
2d0c7962
EZ
80052003-04-14 Elena Zannoni <ezannoni@redhat.com>
8006
8007 * s390-nat.c: Include asm/types.h for addr_t.
8008
1947a811
CV
80092003-04-14 Corinna Vinschen <vinschen@redhat.com>
8010
8011 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8012 actually incoming type.
8013
adb616d7
AC
80142003-04-13 Andrew Cagney <cagney@redhat.com>
8015
8016 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8017 get_next_frame and get_frame_saved_regs.
8018
9b5e151c
AC
80192003-04-13 Andrew Cagney <cagney@redhat.com>
8020
8021 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8022 of gdbarch_num_regs.
8023
ef6e7e13
AC
80242003-04-13 Andrew Cagney <cagney@redhat.com>
8025
8026 * frame.h: Mention what replaced what in "struct frame_info".
8027 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8028 deprecated_update_frame_base_hack and
8029 deprecated_update_frame_pc_hack.
8030 * hppa-tdep.c: Ditto.
8031
61fbb938
DJ
80322003-04-13 Daniel Jacobowitz <drow@mvista.com>
8033
8034 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8035 to read_reg and update its comment. Remove regnum member.
8036 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8037 Don't call read_reg when setting in_reg. Call read_reg to get
8038 the frame base if it's in a register. Return the register number
8039 on the stack instead of in the context. Remove extra arguments
8040 to read_reg.
8041 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8042 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8043 the register number on the expression stack.
8044 (needs_frame_read_reg): Remove extra arguments.
8045
0d53c4c4
DJ
80462003-04-13 Daniel Jacobowitz <drow@mvista.com>
8047
8048 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8049 made non-static.
8050 (execute_stack_op): All callers updated.
8051 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8052 * dwarf2loc.c (find_location_expression): New function.
8053 (dwarf_expr_frame_base): Call it.
8054 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8055 (dwarf2_tracepoint_var_ref): New function, broken out from
8056 locexpr_tracepoint_var_ref.
8057 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8058 Make static.
8059 (loclist_read_variable, loclist_read_needs_frame): New functions.
8060 (loclist_describe_location, loclist_tracepoint_var_ref): New
8061 functions.
8062 (dwarf2_loclist_funcs): New struct location_funcs.
8063 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8064 (struct dwarf2_locexpr_baton): Add comments.
8065 (dwarf2_loclist_funcs): New extern.
8066 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8067 base_address and base_known.
8068 (dwarf_loc_buffer): New variable.
8069 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8070 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8071 (dwarf2_has_info): Initialize dwarf_loc_offset.
8072 (dwarf2_build_psymtabs): Read in .debug_loc.
8073 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8074 DWARF_LOC_SIZE.
8075 (psymtab_to_symtab_1): Likewise. Move base address calculation
8076 here, from...
8077 (dwarf2_get_pc_bounds): ... here. Use the base address from
8078 cu_header.
8079 (dwarf2_symbol_mark_computed): Handle location lists.
8080
6aca59a3
DJ
80812003-04-13 Daniel Jacobowitz <drow@mvista.com>
8082
8083 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8084 if the linkage name demangled successfully.
8085
aca1fcd0
MK
80862003-04-13 Mark Kettenis <kettenis@gnu.org>
8087
97095916
MK
8088 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8089 disassmbly_flavour): Removed.
8090
aca1fcd0
MK
8091 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8092
562a961f
MK
80932003-04-13 Mark Kettenis <kettenis@gnu.org>
8094
8095 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8096
bd013d54
AC
80972003-04-12 Andrew Cagney <cagney@redhat.com>
8098
8099 * frame.h (struct frame_info): Move definition from here ...
8100 * frame.c (struct frame_info): ... to here.
8101
167ef8b1
AC
81022003-04-12 Andrew Cagney <cagney@redhat.com>
8103
8104 * gdbthread.h (save_infrun_state): Delete parameter
8105 "prev_func_start".
8106 (struct thread_info): Delete field "prev_func_start".
8107 (load_infrun_state): Ditto.
8108 * thread.c (load_infrun_state, save_infrun_state): Update.
8109 * infrun.c (prev_func_start): Delete variable.
8110 (context_switch, init_wait_for_inferior): Update.
8111 (stop_stepping, keep_going): Update.
8112
da3331ec
AC
81132003-04-12 Andrew Cagney <cagney@redhat.com>
8114
8115 * gdbarch.sh: Add missing opaque declarations.
8116 * gdbarch.h: Regnerate.
8117 * symtab.h: Add missing opaque declarations.
8118 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8119 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8120 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8121 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8122 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8123 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8124 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8125 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8126 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8127 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8128 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8129 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8130 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8131
18adea3f
AC
81322003-04-11 Andrew Cagney <cagney@redhat.com>
8133
8134 * frame.c (get_frame_id): Return this frame's "id".
8135 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8136 function start.
8137 (legacy_saved_regs_this_id): Replace function body with
8138 internal-error.
8139 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8140 FRAME_OBSTACK_ZALLOC.
8141 (create_new_frame): Mark the frame ID as valid.
8142
2252e863
AO
81432003-04-11 Alexandre Oliva <aoliva@redhat.com>
8144
8145 * Makefile.in (libbfd_h): Added missing setting.
8146 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8147 according to the selected ABI.
8148
a8245ab8
JJ
81492003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8150
8151 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8152
6913c89a
AC
81532003-04-11 Andrew Cagney <cagney@redhat.com>
8154
8155 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8156 SAVED_PC_AFTER_CALL.
8157 * gdbarch.h, gdbarch.c: Regenerate.
8158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8159 * x86-64-tdep.c (x86_64_init_abi): Update.
8160 * vax-tdep.c (vax_gdbarch_init): Update.
8161 * v850-tdep.c (v850_gdbarch_init): Update.
8162 * sparc-tdep.c (sparc_gdbarch_init): Update.
8163 * sh-tdep.c (sh_gdbarch_init): Update.
8164 * s390-tdep.c (s390_gdbarch_init): Update.
8165 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8166 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8167 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8168 * mips-tdep.c (mips_gdbarch_init): Update.
8169 * mcore-tdep.c (mcore_gdbarch_init): Update.
8170 * m68k-tdep.c (m68k_gdbarch_init): Update.
8171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8172 * ia64-tdep.c (ia64_gdbarch_init): Update.
8173 (ia64_saved_pc_after_call): Update declaration.
8174 * i386ly-tdep.c (i386lynx_init_abi): Update.
8175 * i386-tdep.c (i386_gdbarch_init): Update.
8176 * hppa-tdep.c (hppa_gdbarch_init): Update.
8177 * h8300-tdep.c (h8300_gdbarch_init): Update.
8178 * frv-tdep.c (frv_gdbarch_init): Update.
8179 * cris-tdep.c (cris_gdbarch_init): Update.
8180 * avr-tdep.c (avr_gdbarch_init): Update.
8181 * arm-tdep.c (arm_gdbarch_init): Update.
8182 * alpha-tdep.c (alpha_gdbarch_init): Update.
8183 * ns32knbsd-nat.c (frame_num_args): Update.
8184 * ns32k-tdep.c (umax_frame_num_args): Update.
8185 * mips-tdep.c (mips_init_frame_pc_first): Update.
8186 * infrun.c (step_over_function): Update.
8187 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8188 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8189 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8190 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8191 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8192 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8193 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8194 * arch-utils.c (init_frame_pc_default): Update.
8195 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8196 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8197 declaration.
8ffd9b1b 8198
38edeab8
AC
81992003-04-11 Andrew Cagney <cagney@redhat.com>
8200
8201 * i387-tdep.c: Update copyright.
8202 (i387_to_double): Delete function.
8203 (double_to_i387): Delete function.
8204
81f8a206
AC
82052003-04-10 Andrew Cagney <cagney@redhat.com>
8206
8207 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8208 frame's function's address. Simplify.
8209 (d10v_frame_unwind_cache): Check that the frame's function is
8210 non-zero.
8211
6e691f7a
JB
82122003-04-10 Jim Blandy <jimb@redhat.com>
8213
8214 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8215 call to set_gdbarch_deprecated_push_arguments.
8216
7f78e237
AC
82172003-04-10 Andrew Cagney <cagney@redhat.com>
8218
8219 * frame.c (fprint_frame_id): New function.
8220 (fprint_frame_type, fprint_frame): New function.
8221 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8222 (create_sentinel_frame, get_frame_id): Ditto.
8223 (frame_id_p, frame_id_eq): Ditto.
8224 (frame_id_inner, create_new_frame): Ditto.
8225 (legacy_get_prev_frame, get_prev_frame): Ditto.
8226 (deprecated_update_frame_pc_hack): Ditto.
8227 (frame_register_unwind): Ditto.
8228 (deprecated_update_frame_base_hack): Ditto.
8229
f870b49b
CV
82302003-04-10 Corinna Vinschen <vinschen@redhat.com>
8231
8232 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8233 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8234 frame_chain function.
8235 * Makefile.in: Add dependencies due to above change.
8236
7c86889b
CV
82372003-04-10 Corinna Vinschen <vinschen@redhat.com>
8238
8239 * blockframe.c (legacy_frame_chain_valid): Move call to
8240 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8241 inside_entry_file.
8242
d0a55772
AC
82432003-04-09 Andrew Cagney <cagney@redhat.com>
8244
8245 * frame.h (struct frame_id): Replace "pc" and "base" with
8246 "stack_addr" and "code_addr". Update comments.
8247 (frame_id_build): Update parameter names and comment.
8248 (struct frame_info): Replace "id_p" and "id" with "this_id".
8249 * dummy-frame.c (dummy_frame_this_id): Update.
8250 * breakpoint.c (print_one_breakpoint): Update.
8251 * frame.c (get_frame_id): Update.
8252 (get_frame_base, frame_id_build): Update.
8253 (create_sentinel_frame, legacy_get_prev_frame): Update.
8254 (deprecated_update_frame_base_hack): Update.
8255 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8256 (frame_id_inner): Ditto.
8257
ac16bf07
AC
82582003-04-09 Andrew Cagney <cagney@redhat.com>
8259
8260 * defs.h (gdb_print_host_address): Make "addr" parameter a
8261 pointer constant.
8262 * utils.c (gdb_print_host_address): Update.
8263
366cfc9e
KB
82642003-04-09 Kevin Buettner <kevinb@redhat.com>
8265
8266 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8267 register number for R0 is 0.
8268
cd983b5c
JB
82692003-04-09 J. Brobecker <brobecker@gnat.com>
8270
8271 * frame.h (struct gdbarch): Add opaque structure definition
8272 to avoid a compilation warning on LynxOS 4.0.
8273
d1340264
AC
82742003-04-09 Andrew Cagney <cagney@redhat.com>
8275
8276 * frame.h (struct frame_info): Delete field "pc". Replace
8277 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8278 structure.
8279 * frame.c (frame_pc_unwind): Update.
8280 (create_sentinel_frame): Do not set "pc".
8281 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8282 (get_frame_pc): Call frame_pc_unwind.
8283 (deprecated_update_frame_pc_hack): Update.
8284 (create_new_frame): Use "pc" not "->pc".
8285
90a6fffb
AC
82862003-04-09 Andrew Cagney <cagney@redhat.com>
8287
8288 * frame.c (get_frame_id): Eliminate code updating "frame".
8289 (legacy_get_prev_frame): Ditto.
8290 (get_frame_base): Return id.base directly.
8291 (deprecated_update_frame_base_hack): Update "id.base".
8292 * frame.h (struct frame_info): Delete field "frame".
8293
2fbce691
AC
82942003-04-09 Andrew Cagney <cagney@redhat.com>
8295
8296 * NEWS: Mention that the "Sequent family" is obsolete.
8297 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8298 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8299 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8300 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8301 * config/i386/tm-ptx4.h: Obsolete file.
8302 * config/i386/tm-ptx.h: Obsolete file.
8303 * symm-tdep.c: Obsolete file.
8304 * config/i386/symmetry.mt: Obsolete file.
8305 * config/i386/tm-symmetry.h: Obsolete file.
8306 * symm-nat.c: Obsolete file.
8307 * config/i386/nm-symmetry.h: Obsolete file.
8308 * config/i386/xm-symmetry.h: Obsolete file.
8309 * config/i386/symmetry.mh: Obsolete file.
8310 * config/i386/nm-ptx4.h: Obsolete file.
8311 * config/i386/ptx4.mh: Obsolete file.
8312 * config/i386/ptx.mt: Obsolete file.
8313 * config/i386/ptx.mh: Obsolete file.
8314 * config/i386/xm-ptx4.h: Obsolete file.
8315 * config/i386/xm-ptx.h: Obsolete file.
8316
78c43945
AC
83172003-04-09 Andrew Cagney <cagney@redhat.com>
8318
8319 Obsolete mips*-*-mach3*.
8320 * NEWS: Mention that mips*-*-mach3* is obsolete.
8321 * m3-nat.c: Obsolete file.
8322 * config/nm-m3.h: Obsolete file.
8323 * config/mips/tm-mipsm3.h: Obsolete file.
8324 * config/mips/mipsm3.mt: Obsolete file.
8325 * config/mips/mipsm3.mh: Obsolete file.
8326 * config/mips/xm-mipsm3.h: Obsolete file.
8327 * mipsm3-nat.c: Obsolete file.
8328 * configure.host: Obsolete mips-dec-mach3*.
8329 * configure.tgt: Obsolete mips*-*-mach3*.
8330
f1908289
AC
83312003-04-09 Andrew Cagney <cagney@redhat.com>
8332
8333 * doublest.h: Update copyright.
8334 (deprecated_store_floating, deprecated_extract_floating): Rename
8335 store_floating and extract_floating. Update comments.
8336 * doublest.c: Update copyright.
8337 (extract_floating_by_length): Replace extract_floating.
8338 (store_floating_by_length): Replace store_floating.
8339 (deprecated_extract_floating): New function.
8340 (deprecated_store_floating): New function.
8341 (extract_typed_floating): Call extract_floating_by_length.
8342 (store_typed_floating): Call store_floating_by_length.
8343 * x86-64-tdep.c (x86_64_store_return_value): Update.
8344 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8345 (sh64_extract_return_value): Update.
8346 (sh_sh4_register_convert_to_virtual): Update.
8347 (sh_sh64_register_convert_to_virtual): Update.
8348 (sh_sh4_register_convert_to_raw): Update.
8349 (sh_sh64_register_convert_to_raw): Update.
8350 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8351 (rs6000_register_convert_to_raw): Update.
8352 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8353 (ia64_register_convert_to_raw): Update.
8354 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8355 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8356 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8357 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8358 (alpha_register_convert_to_raw): Update.
8359
4443bd83
AC
83602003-04-08 Andrew Cagney <cagney@redhat.com>
8361
8362 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8363 * gdbarch.h, gdbarch.c: Re-generate.
8364 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8365 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8366 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8367 conditionally, use frame_pc_unwind as an alternative. Add
8368 comments.
8369 * arch-utils.c (init_frame_pc_default): Only call
8370 SAVED_PC_AFTER_CALL when available.
8371
c0236d92
EZ
83722003-04-08 Elena Zannoni <ezannoni@redhat.com>
8373
fbe586ae 8374 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8375 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8376 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8377 (start_remote): Ditto.
8378 (handle_inferior_event): Ditto.
8379 (save_inferior_status): Ditto.
8380 (restore_inferior_status): Ditto.
8381 * infcmd.c (attach_command): Ditto.
8382 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8383 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8384 * alpha-tdep.c (heuristic_proc_start): Ditto.
8385 * mips-tdep.c (heuristic_proc_start): Ditto.
8386 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8387 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8388 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8389 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8390 * remote-vx.c (vx_create_inferior): Ditto.
8391
83922003-04-08 Elena Zannoni <ezannoni@redhat.com>
8393
8394 * infrun.c (stop_soon_quietly): Make it an enum, to better
8395 override the default behavior of handle_inferior_event.
8396 (clear_proceed_status): Update uses of stop_soon_quietly to
8397 reflect that it is now an enum.
8398 (start_remote): Ditto.
8399 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8400 is set to handle the new GNU/Linux kernel behavior for
8401 attach/sigstop. Update uses of stop_soon_quietly.
8402 * inferior.h (enum stop_kind): New enum.
8403 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8404 Reset normal handle_inferior_event behavior, afterwards.
8405 * fork-child.c (startup_inferior): Update.
8406 * alpha-tdep.c (heuristic_proc_start): Update.
8407 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8408 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8409 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8410 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8411 * remote-vx.c (vx_create_inferior): Update.
8412 * mips-tdep.c (heuristic_proc_start): Update.
8413
1211bce3
EZ
84142003-04-07 Elena Zannoni <ezannoni@redhat.com>
8415
8416 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8417 be freed more than once, causing wild memory corruptions.
1211bce3 8418 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8419 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8420 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8421 with the "core" target.
1211bce3 8422
f0ef6b29
KB
84232003-04-07 Kevin Buettner <kevinb@redhat.com>
8424
8425 * mips-tdep.c (mips_print_fp_register): New function, created from
8426 do_fp_register_row(). Registers are now (also) printed as hex.
8427 Only one register is printed per row.
8428 (mips_print_register, do_fp_register_row): Print floating point
8429 registers with mips_print_fp_register().
8430
8cf71652
AC
84312003-04-06 Andrew Cagney <cagney@redhat.com>
8432
5e488a7b
AC
8433 * valprint.h (inspect_it): Add extern declaration.
8434 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8435 (selectors_info, classes_info): Ditto.
8436 (find_objc_msgcall): Fix indentation.
8437 (objc_printstr): Delete extern declarations.
8438
8cf71652
AC
8439 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8440
e6ba3bc9
AC
84412003-04-06 Andrew Cagney <cagney@redhat.com>
8442
8443 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8444 Update comment.
8445 * frame.c (legacy_saved_regs_this_id): Update.
8446 (legacy_get_prev_frame): Update.
8447 * xstormy16-tdep.c: Update comment.
8448 * sparc-tdep.c (sparc_frame_chain): Update comment.
8449 * blockframe.c (legacy_frame_chain_valid): Update.
8450
55e1d7e7
AC
84512003-04-06 Andrew Cagney <cagney@redhat.com>
8452
996179ee
AC
8453 * valprint.c (val_print_type_code_int): Delete #ifdef
8454 PRINT_TYPELESS_INTEGER code.
8455
55e1d7e7
AC
8456 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8457 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8458 multi-arch definition.
8459 * gdbarch.h: Re-generate.
8460
43bd9a9e
AC
84612003-04-05 Andrew Cagney <cagney@redhat.com>
8462
8463 Eliminate FRAME_FIND_SAVED_REGS.
8464 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8465 Change FSR parameter to a pointer.
8466 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8467 Assume FSR parameter is a pointer.
8468 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8469 Make fsr a pointer.
8470 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8471 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8472 saved_regs a pointer.
8473 (hppa_frame_saved_pc): Ditto.
8474 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8475 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8476 pointer.
8477 (restore_pc_queue): Make fsr a pointer.
8478 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8479 (hppa_frame_chain): Make saved_regs a pointer, call
8480 hppa_frame_init_saved_regs.
8481 * sparc-tdep.c: Include "gdb_assert.h".
8482 (sparc_frame_find_saved_regs): Replace internal_error with
8483 gdb_assert.
8484 * remote-vxsparc.c (vx_read_register): Delete reference to
8485 FRAME_FIND_SAVED_REGS.
8486 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8487 * gdbarch.h: Regenerate.
8488 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8489 (deprecated_get_frame_saved_regs): Delete declaration.
8490 (struct frame_saved_regs): Delete definition.
8491 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8492 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8493 (hppa_frame_find_saved_regs): Delete declaration.
8494 (FRAME_FIND_SAVED_REGS): Delete macro.
8495 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8496 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8497 FRAME_FIND_SAVED_REGS in comment.
8498
be41e9f4
AC
84992003-04-05 Andrew Cagney <cagney@redhat.com>
8500
8501 * frame.c (frame_func_unwind, get_frame_func): New functions.
8502 * frame.h (get_frame_func, frame_func_unwind): Declare.
8503 (struct frame_info): Add field "prev_func" for caching the
8504 previous frame's function address.
8505 * arm-tdep.c (arm_frameless_function_invocation): Combine
8506 get_pc_function_start and get_frame_pc into get_frame_func.
8507 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8508 (sh64_nofp_frame_init_saved_regs): Ditto.
8509 * s390-tdep.c (s390_function_start): Ditto.
8510 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8511 (rs6000_frameless_function_invocation): Ditto.
8512 (rs6000_frame_saved_pc): Ditto.
8513 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8514 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8515 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8516 (i386_frame_init_saved_regs): Ditto.
8517 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8518 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8519 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8520 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8521 * blockframe.c (frameless_look_for_prologue): Ditto.
8522
a01dd7cc
AC
85232003-04-05 Andrew Cagney <cagney@redhat.com>
8524
8525 * frame.c (legacy_get_prev_frame): Link prev to next at the
8526 function start. Update comments.
8527
5e5592e6
AC
85282003-04-05 Andrew Cagney <cagney@redhat.com>
8529
8530 * frame.c (get_frame_id): Update comment.
8531 (legacy_get_prev_frame): Update comment.
8532 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8533 * gdbarch.h: Regenerate.
8534 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8535 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8536
6fba5002
AC
85372003-04-05 Andrew Cagney <cagney@redhat.com>
8538
8539 * stack.c (print_frame_info): Use get_frame_pc.
8540
7df05f2b
AC
85412003-04-04 Andrew Cagney <cagney@redhat.com>
8542
8543 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8544 the frame's type from the unwinder.
8545 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8546 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8547 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8548 (get_frame_base_address): Use get_frame_type.
8549 (get_frame_locals_address, get_frame_args_address): Ditto.
8550 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8551 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8552 (struct frame_info): Add comment explaining why the frame contains
8553 a "type" field.
8554 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8555 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8556 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8557 NORMAL_FRAME.
8558 * frame-unwind.h: Include "frame.h".
8559 (struct frame_unwind): Add "type" field.
8560 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8561
11889732
AC
85622003-04-04 Andrew Cagney <cagney@redhat.com>
8563
8564 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8565 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8566 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8567 get_frame_base.
8568 (d10v_unwind_dummy_id): Use frame_id_build.
8569 * frame.c (find_frame_sal): Use get_frame_pc.
8570 (create_new_frame): Use deprecated_update_frame_pc_hack and
8571 deprecated_update_frame_base_hack.
8572 (create_sentinel_frame): Add comment about ->pc going away.
8573 (get_prev_frame): Add comment about ->pc going away.
8574 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8575 frame_id_build, deprecated_update_frame_pc_hack and
8576 deprecated_update_frame_base_hack.
8577 (select_frame): Use get_frame_pc.
8578 (legacy_saved_regs_this_id): Use frame_id_build.
8579
50c46a0d
EZ
85802003-04-04 Elena Zannoni <ezannoni@redhat.com>
8581
fbe586ae
RH
8582 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8583 signed integer case.
8584 (classify_argument): Handle enumerations and references.
50c46a0d 8585
50bbdbd9
AC
85862003-04-04 Andrew Cagney <cagney@redhat.com>
8587
8588 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8589 ID to NULL.
8590
36018d2e
AF
85912003-04-01 Adam Fedor <fedor@gnu.org>
8592
8593 * gdb/objc-lang.c (selectors_info): Replace calls to
8594 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8595 SYMBOL_NATURAL_NAME.
8596 (classes_info, find_methods): Likewise.
8597
35cec841
KB
85982003-04-03 Kevin Buettner <kevinb@redhat.com>
8599
8600 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8601 ``mach'' to the value determined by bfd_default_set_arch_mach().
8602
43136899
BR
86032003-04-02 Bob Rossi <bob_rossi@cox.net>
8604
8605 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8606 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8607 (mi-cmd-file.o): Update dependencies.
8608
040b99fd
KB
86092003-04-01 Kevin Buettner <kevinb@redhat.com>
8610
8611 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8612 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8613
9a3d7dfd
AF
86142003-04-01 Adam Fedor <fedor@gnu.org>
8615
8616 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8617 * language.h (struct language_defn): Add la_demangle.
8618 (language_demangle): Declare.
8619 * language.c (language_demangle): New function.
8620 (unk_lang_demangle): Likewise.
8621 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8622 Add ukn_lang_demangle.
9a3d7dfd 8623 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8624 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8625 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8626 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8627 * jv-lang.c (java_demangle): New function
8628 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8629 * objc-lang.c (objc_demangle): Add options argument
8630 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8631 * maint.c (maintenance_demangle): Replace switch with
8632 call to language_demangle.
8633 * utils.c (fprintf_symbol_filtered): Likewise.
8634
5e074003
AC
86352003-04-01 Andrew Cagney <cagney@redhat.com>
8636
8637 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8638 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8639 PRINT_TYPELESS_INTEGER.
8640 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8641 PUSH_RETURN_ADDRESS.
8642
270cb5d6
AC
86432003-04-01 Andrew Cagney <cagney@redhat.com>
8644
8645 * Makefile.in (d10v-tdep.o): Update dependencies.
8646 * d10v-tdep.c: Include "frame-base.h".
8647 (d10v_frame_unwind): Make constant.
8648 (d10v_frame_base_address): New function.
8649 (d10v_frame_base): New variable.
8650 (d10v_gdbarch_init): Set frame_base default.
8651 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8652 comment for base.
8653 (d10v_frame_unwind_cache): Set and use "prev_sp".
8654 (d10v_frame_this_id): Use the previous frame's inner most stack
8655 address and this frame's func address for the frame ID. Use
8656 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8657
6bfb3e36
AC
86582003-04-01 Andrew Cagney <cagney@redhat.com>
8659
8660 * frame.h (get_frame_locals_address, get_frame_args_address):
8661 Refer to the base address, instead of the address of the first
8662 local or parameter.
8ffd9b1b 8663
da62e633
AC
86642003-04-01 Andrew Cagney <cagney@redhat.com>
8665
8666 Add frame debug info addresses:
8667 * frame-base.c: New file.
8668 * frame-base.h: New file.
8669 * frame.h (struct frame_base): Add opaque declaration.
8670 (get_frame_base): Update comment.
8671 (get_frame_base_address): Declare.
8672 (get_frame_locals_address): Declare.
8673 (get_frame_args_address): Declare.
8674 (struct frame_info): Add "base" and "base_cache". Update
8675 comments on the unwinder.
8676 * frame.c: Include "frame-base.h".
8677 (get_frame_locals_address): New function.
8678 (get_frame_base_address): New function.
8679 (get_frame_args_address): New function.
8680 * findvar.c (read_var_value): Use get_frame_locals_address and
8681 get_frame_args_address.
8682 * stack.c (frame_info): Use get_frame_locals_address and
8683 get_frame_args_address.
8684 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8685 moved to "frame-base.c".
8686 * printcmd.c (print_frame_nameless_args): Ditto.
8687 * symtab.h (address_class): Update comments.
8688 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8689 get_frame_base_address.
8690 * dwarf2expr.c (execute_stack_op): Ditto.
8691 * Makefile.in (frame_base_h): Define.
8692 (frame.o): Update dependencies.
8693 (frame-base.o): Add dependencies.
8694 (SFILES): Add frame-base.c.
8695 (COMMON_OBS): Add frame-base.o.
8696
3d30e9c2
AC
86972003-04-01 Andrew Cagney <cagney@redhat.com>
8698
8699 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8700 CALL_DUMMY_LENGTH): Ditto.
8701 * gdbarch.c: Re-generate.
8702 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8703 (CALL_DUMMY_LENGTH): Delete macro.
8704 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8705 * arm-tdep.c (arm_gdbarch_init): Ditto.
8706 * avr-tdep.c (avr_gdbarch_init): Ditto.
8707 * cris-tdep.c (cris_gdbarch_init): Ditto.
8708 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8709 * frv-tdep.c (frv_gdbarch_init): Ditto.
8710 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8711 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8712 * i386-tdep.c (i386_gdbarch_init): Ditto.
8713 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8714 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8715 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8716 * mips-tdep.c (mips_gdbarch_init): Ditto.
8717 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8718 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8719 * s390-tdep.c (s390_gdbarch_init): Ditto.
8720 * sh-tdep.c (sh_gdbarch_init): Ditto.
8721 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8722 * v850-tdep.c (v850_gdbarch_init): Ditto.
8723 * vax-tdep.c (vax_gdbarch_init): Ditto.
8724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8725
ce0c7262
CV
87262003-04-01 Corinna Vinschen <vinschen@redhat.com>
8727
8728 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8729
73dd234f
AC
87302003-04-01 Andrew Cagney <cagney@redhat.com>
8731
8732 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8733 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8734 * gdbarch.h, gdbarch.c: Re-generate.
8735 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8736 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8737 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8738 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8739 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8740 * infcmd.c (run_stack_dummy): Simplify assuming
8741 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8742 * infrun.c (handle_inferior_event): Ditto.
8743 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8744 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8745 * arm-tdep.c (arm_gdbarch_init): Ditto.
8746 * avr-tdep.c (avr_gdbarch_init): Ditto.
8747 * cris-tdep.c (cris_gdbarch_init): Ditto.
8748 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8749 * frv-tdep.c (frv_gdbarch_init): Ditto.
8750 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8751 * i386-tdep.c (i386_gdbarch_init): Ditto.
8752 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8754 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8755 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8756 * mips-tdep.c (mips_gdbarch_init): Ditto.
8757 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8758 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8759 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8760 * s390-tdep.c (s390_gdbarch_init): Ditto.
8761 * sh-tdep.c (sh_gdbarch_init): Ditto.
8762 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8763 * v850-tdep.c (v850_gdbarch_init): Ditto.
8764 * vax-tdep.c (vax_gdbarch_init): Ditto.
8765 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8766
97606a13
DJ
87672003-04-01 Daniel Jacobowitz <drow@mvista.com>
8768
8769 * symfile.c (symfile_relocate_debug_section): Update call to
8770 bfd_simple_get_relocated_section_contents.
8771
e8ab51f7
AC
87722003-03-31 Andrew Cagney <cagney@redhat.com>
8773
8774 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8775 * gdbarch.h, gdbarch.c: Regenerate.
8776 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8777 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8778 available.
8779 * frame.h (generic_fix_call_dummy): Delete declaration.
8780 * dummy-frame.h: Update comment.
8781 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8783 fix_call_dummy.
8784 * sh-tdep.c (sh_gdbarch_init): Ditto.
8785 * s390-tdep.c (s390_gdbarch_init): Ditto.
8786 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8787 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8788 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8789 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8790 * i386-tdep.c (i386_gdbarch_init): Ditto.
8791 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8792 * frv-tdep.c (frv_gdbarch_init): Ditto.
8793 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8794 * cris-tdep.c (cris_gdbarch_init): Ditto.
8795 * avr-tdep.c (avr_gdbarch_init): Ditto.
8796 * arm-tdep.c (arm_gdbarch_init): Ditto.
8797
018d1b48
JB
87982003-03-31 J. Brobecker <brobecker@gnat.com>
8799
8800 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8801 (INIT_FRAME_AP): Likewise.
8802 (EXTRA_FRAME_INFO): Likewise.
8803
e9a2674e
AC
88042003-03-31 Andrew Cagney <cagney@redhat.com>
8805
8806 * gdbarch.sh: Include "symfile.h".
8807 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8808 * gdbarch.h, gdbarch.c: Re-generate.
8809 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8810 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8811 call_dummy_address, the default is at entry_point_address.
8812 * v850-tdep.c (v850_gdbarch_init): Ditto.
8813 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8814 * sh-tdep.c (sh_gdbarch_init): Ditto.
8815 * s390-tdep.c (s390_gdbarch_init): Ditto.
8816 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8817 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8818 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8819 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8820 * i386-tdep.c (i386_gdbarch_init): Ditto.
8821 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8822 * frv-tdep.c (frv_gdbarch_init): Ditto.
8823 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8824 * cris-tdep.c (cris_gdbarch_init): Ditto.
8825 * arm-tdep.c (arm_gdbarch_init): Ditto.
8826
e8a8712a
AC
88272003-03-31 Andrew Cagney <cagney@redhat.com>
8828
8829 * gdbarch.sh (CALL_DUMMY_P): Delete.
8830 * gdbarch.h, gdbarch.c: Re-generate.
8831 * inferior.h (CALL_DUMMY_P): Delete macro.
8832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8833 * vax-tdep.c (vax_gdbarch_init): Update.
8834 * v850-tdep.c (v850_gdbarch_init): Update.
8835 * sparc-tdep.c (sparc_gdbarch_init): Update.
8836 * sh-tdep.c (sh_gdbarch_init): Update.
8837 * s390-tdep.c (s390_gdbarch_init): Update.
8838 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8839 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8840 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8841 * mips-tdep.c (mips_gdbarch_init): Update.
8842 * mcore-tdep.c (mcore_gdbarch_init): Update.
8843 * m68k-tdep.c (m68k_gdbarch_init): Update.
8844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8845 * ia64-tdep.c (ia64_gdbarch_init): Update.
8846 * i386-tdep.c (i386_gdbarch_init): Update.
8847 * h8300-tdep.c (h8300_gdbarch_init): Update.
8848 * frv-tdep.c (frv_gdbarch_init): Update.
8849 * d10v-tdep.c (d10v_gdbarch_init): Update.
8850 * cris-tdep.c (cris_gdbarch_init): Update.
8851 * breakpoint.c (deprecated_frame_in_dummy): Update.
8852 * avr-tdep.c (avr_gdbarch_init): Update.
8853 * alpha-tdep.c (alpha_gdbarch_init): Update.
8854 * arm-tdep.c (arm_gdbarch_init): Update.
8855 * dummy-frame.c (dummy_frame_this_id): Update comments.
8856 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8857 * frame.c (legacy_get_prev_frame): Ditto.
8858 * valops.c (call_function_by_hand): Delete function.
8859 (hand_function_call): Rename to call_function_by_hand
8860
ed234cf8
AC
88612003-03-30 Andrew Cagney <cagney@redhat.com>
8862
8863 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8864 * value.h (struct value): Update comment.
ed234cf8 8865
06c77151
AC
88662003-03-30 Andrew Cagney <cagney@redhat.com>
8867
6c2b5168
AC
8868 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8869 D10V_FP_REGNUM.
8870 (d10v_gdbarch_init): Do not set fp_regnum.
8871
06c77151
AC
8872 * frame.c (get_frame_base): Force ID initialization.
8873 (get_prev_frame): Move computation of the frame ID from here ...
8874 (get_frame_id): ... to here.
8875 (legacy_get_prev_frame): Mark the frame ID as valid.
8876 * frame.h (struct frame_info): Add field "id_p".
8877
97a1a11c
MK
88782003-03-30 Mark Kettenis <kettenis@gnu.org>
8879
8880 * i386-tdep.c (i386_store_struct_return): Removed.
8881 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8882
6c0e89ed
AC
88832003-03-30 Andrew Cagney <cagney@redhat.com>
8884
8885 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8886 * gdbarch.h, gdbarch.c: Regenerate.
8887 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8889 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8890 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8891 * i386-tdep.c (i386_gdbarch_init): Ditto.
8892 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8893 * cris-tdep.c (cris_gdbarch_init): Ditto.
8894 * vax-tdep.c (vax_gdbarch_init): Ditto.
8895 * s390-tdep.c (s390_gdbarch_init): Ditto.
8896 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8897 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8898 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8899 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8900 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8901 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8902 * sparc-tdep.c (sparc_gdbarch_init): Update.
8903 * sh-tdep.c (sh_gdbarch_init): Update.
8904 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8905 * mips-tdep.c (mips_gdbarch_init): Update.
8906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8907 * ia64-tdep.c (ia64_gdbarch_init): Update.
8908 * frv-tdep.c (frv_gdbarch_init): Update.
8909 * avr-tdep.c (avr_gdbarch_init): Update.
8910 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8911 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8912 instead of when push_dummy_call is not available.
8ffd9b1b 8913
f7dd6af2
AC
89142003-03-30 Andrew Cagney <cagney@redhat.com>
8915
8916 * infttrace.c: Include "gdbthread.h".
8917 (parent_attach_all): Fix function signature.
8918 (call_ptrace): Update call.
8919 * Makefile.in (infttrace.o): Update dependencies.
8920
28f617b3
AC
89212003-03-30 Andrew Cagney <cagney@redhat.com>
8922
8923 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8924 PUSH_RETURN_ADDRESS.
8925 * gdbarch.h, gdbarch.c: Regenerate.
8926 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8927 * x86-64-tdep.c (x86_64_init_abi): Update.
8928 * v850-tdep.c (v850_gdbarch_init): Update.
8929 * sparc-tdep.c (sparc_gdbarch_init): Update.
8930 * sh-tdep.c (sh_gdbarch_init): Update.
8931 * s390-tdep.c (s390_gdbarch_init): Update.
8932 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8933 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8934 * mips-tdep.c (mips_gdbarch_init): Update.
8935 * mcore-tdep.c (mcore_gdbarch_init): Update.
8936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8937 * ia64-tdep.c (ia64_gdbarch_init): Update.
8938 * i386-tdep.c (i386_gdbarch_init): Update.
8939 * h8300-tdep.c (h8300_gdbarch_init): Update.
8940 * frv-tdep.c (frv_gdbarch_init): Update.
8941 * cris-tdep.c (cris_gdbarch_init): Update.
8942 * avr-tdep.c (avr_gdbarch_init): Update.
8943 * arm-tdep.c (arm_gdbarch_init): Update.
8944 * valops.c (hand_function_call): Update.
8945
4d628cd7
AC
89462003-03-29 Andrew Cagney <cagney@redhat.com>
8947
8948 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8949 sizeof_call_dummy_words.
8950 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8951 define.
8952 * gdbarch.h: Regenerate.
8ffd9b1b 8953
65e82032
AC
89542003-03-29 Andrew Cagney <cagney@redhat.com>
8955
8956 * infttrace.h: New file.
8957 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8958 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8959 (hpread_read_doc_function_type): Detect an initialized type1.
8960 (hpread_quick_traverse): Initialize mod_name_string.
8961 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8962 (som_solib_get_solib_by_pc): Declare.
8963 (so_lib_thread_start_addr): Declare.
8964 (no_shared_libraries): Declare.
8965 * somread.c (init_import_symbols): Make static. Add forward
8966 declaration.
8967 * config/pa/nm-hppah.h: Include "infttrace.h" for
8968 parent_attach_all.
8969 (hppa_insert_hw_watchpoint): Declare.
8970 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8971 * hppah-nat.c: Include "gdb_string.h".
8972 (parent_attach_all): Delete extern declaration, moved to
8973 "infttrace.h".
8974 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8975 int.
8976 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8977 * Makefile.in (infttrace_h): Define.
8978 (hpread.o): Update dependencies.
8979 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8980 * hppa-hpux-tdep.c: Include "gdb_string.h".
8981 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8982 * infrun.c (handle_inferior_event): Always initialize
8983 stepped_after_stopped_by_watchpoint. Add default and remove
8984 fallthrough in switch statement.
8985 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8986 parameter to int.
8987 (hppa_remove_hw_watchpoint): Ditto.
8988
2c3bbe77
AC
89892003-03-29 Andrew Cagney <cagney@redhat.com>
8990
8991 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8992 offset.
8993
2dd604e7
RE
89942003-03-29 Richard Earnshaw <rearnsha@arm.com>
8995
8996 * arm-tdep.c (arm_push_arguments): Delete.
8997 (struct stack_item): New type.
8998 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8999 (arm_store_struct_return): Delte.
9000 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9001 arm_push_arguments or arm_store_struct_return.
9002
e8933a55
AC
90032003-03-28 Andrew Cagney <cagney@redhat.com>
9004
9005 * Makefile.in (d10v-tdep.o): Update dependencies.
9006 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9007 * d10v-tdep.c: Include "remote.h".
9008 (target_resume_hook): Delete extern declaration.
9009 (target_wait_loop_hook): Ditto.
9010 (tdisassemble_command): Eliminate assignment in "if" conditional.
9011 (d10v_ts2_register_sim_regno): Eliminate call to
9012 legacy_register_sim_regno.
9013 (d10v_ts3_register_sim_regno): Ditto.
9014
6949171e
JJ
90152003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9016
9017 * thread.c: Reindented.
9018 * lin-lwp.c: Ditto.
9019 * linux-proc.c: Ditto.
9020
98c7071f
BR
90212003-03-28 Bob Rossi <bob_rossi@cox.net>
9022
fbe586ae 9023 * MAINTAINERS (write after approval): Add myself.
98c7071f 9024
5edc9ca6
TR
90252003-03-27 Theodore A. Roth <troth@openavr.org>
9026
9027 * objc-exp.y: Add missing semi-colons.
9028
378bfd1b
AC
90292003-03-27 Andrew Cagney <cagney@redhat.com>
9030
9031 * regcache.c (write_sp): Delete function and references.
9032 * inferior.h (write_sp): Delete declaration.
9033 * valops.c (hand_function_call): Replace write_sp with
9034 TARGET_WRITE_SP.
9035 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9036 (sparc_pop_frame): Ditto.
8ffd9b1b 9037
56056df7
AC
90382003-03-27 Andrew Cagney <cagney@redhat.com>
9039
9040 * NEWS: Mention removal of support for hppa*-*-bsd* and
9041 hppa*-*-osf* natives, and hppa*-*-pro* target.
9042 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9043 * config/pa/xm-pa.h: Obsolete file.
9044 * config/pa/xm-hppab.h: Obsolete file.
9045 * config/pa/nm-hppab.h: Obsolete file.
9046 * config/pa/tm-hppab.h: Obsolete file.
9047 * config/pa/tm-hppao.h: Obsolete file.
9048 * config/pa/nm-hppao.h: Obsolete file.
9049 * config/pa/tm-pro.h: Obsolete file.
9050 * config/pa/hppaosf.mt: Obsolete file.
9051 * config/pa/hppaosf.mh: Obsolete file.
9052 * config/pa/hppapro.mt: Obsolete file.
9053 * config/pa/hppabsd.mt: Obsolete file.
9054 * config/pa/hppabsd.mh: Obsolete file.
9055 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9056 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9057 hppa*-*-osf*.
9058
5873a88d
AC
90592003-03-27 Andrew Cagney <cagney@redhat.com>
9060
9061 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9062 push_arguments. Don't set push_return_address or write_sp.
9063 (d10v_push_dummy_call): Replace d10v_push_arguments.
9064 (d10v_push_return_address, d10v_write_sp): Delete function,
9065 handled by push_dummy_call.
9066
b81774d8
AC
90672003-03-26 Andrew Cagney <cagney@redhat.com>
9068
9069 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9070 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9071 regcache and dummy_addr parameters.
9072 * gdbarch.h, gdbarch.c: Re-generate.
9073 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9074 available; assume it will handle stack alignment and return
9075 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9076 legacy_push_arguments.
9077 (legacy_push_arguments): Rename default_push_arguments.
9078 * value.h (legacy_push_arguments): Rename default_push_arguments.
9079 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9080 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9081 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9082 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9083 * config/i386/tm-symmetry.h: Update.
9084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9085 * x86-64-tdep.c (x86_64_init_abi): Update.
9086 * v850-tdep.c (v850_gdbarch_init): Update.
9087 * sparc-tdep.c (sparc_gdbarch_init): Update.
9088 * sh-tdep.c (sh_gdbarch_init): Update.
9089 * s390-tdep.c (s390_gdbarch_init): Update.
9090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9091 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9092 * mips-tdep.c (mips_gdbarch_init): Update.
9093 * mcore-tdep.c (mcore_gdbarch_init): Update.
9094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9095 * ia64-tdep.c (ia64_gdbarch_init): Update.
9096 * i386-tdep.c (i386_gdbarch_init): Update.
9097 * hppa-tdep.c (hppa_gdbarch_init): Update.
9098 * h8300-tdep.c (h8300_gdbarch_init): Update.
9099 * frv-tdep.c (frv_gdbarch_init): Update.
9100 * d10v-tdep.c (d10v_gdbarch_init): Update.
9101 * cris-tdep.c (cris_gdbarch_init): Update.
9102 * avr-tdep.c (avr_gdbarch_init): Update.
9103 * arm-tdep.c (arm_gdbarch_init): Update.
9104 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9105 * alpha-tdep.c (alpha_gdbarch_init): Update.
9106
f541410f
DJ
91072003-03-26 Daniel Jacobowitz <drow@mvista.com>
9108
9109 * signals/signals.c (do_target_signal_to_host): Correct realtime
9110 signal range test.
9111
69f567ae
DJ
91122003-03-26 Daniel Jacobowitz <drow@mvista.com>
9113
9114 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9115 (struct sal_chain, map_catch_names): Remove.
9116 (catch_exception_command_1): Don't call
9117 handle_gnu_4_16_catch_command.
9118
d5d14a5a
DJ
91192003-03-26 Daniel Jacobowitz <drow@mvista.com>
9120
9121 From Mark Dettinger <dettinge@de.ibm.com>:
9122 * dwarf2cfi.c (read_2u): Increment pointer by two.
9123
bdd73e22
DJ
91242003-03-26 Daniel Jacobowitz <drow@mvista.com>
9125
9126 * signals/signals.c: Fix typos in last change.
9127
960cb555
DJ
91282003-03-26 Daniel Jacobowitz <drow@mvista.com>
9129
9130 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9131 not already defined. Use __SIGRTMIN if available.
9132 (target_signal_from_host): Remove SIGRTMIN block.
9133 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9134 the signal is within the realtime range.
9135
f636b87d
AF
91362003-03-25 Adam Fedor <fedor@gnu.org>
9137
9138 * Makefile.in (infrun.o): Add $(language_h)
9139 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9140 for language specific trampolines.
9141 * language.h (struct language_defn): Add skip_trampoline.
9142 (skip_language_trampoline): Declare.
9143 * language.c (unk_lang_trampoline, skip_language_trampoline):
9144 New functions.
9145 (unknown_language_defn, auto_language_defn, local_language_defn):
9146 Add ukn_lang_trampoline.
9147 * ada-lang.c (ada_language_defn): Add NULL for language
9148 specific skip_trampoline.
9149 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9150 scm-lang.c: Likewise.
9151 * objc-lang.c (objc_skip_trampoline): New function.
9152 (objc_language_defn): Add objc_skip_trampoline.
9153
28f617b3 91542003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9155
9156 * frame.c (get_prev_frame): Delay validating a frame's ID -
9157 non-NULL, didn't go backwards - until an attempt to unwind it to
9158 the previous frame.
9159
f933a9c5
AC
91602003-03-25 Andrew Cagney <cagney@redhat.com>
9161
9162 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9163 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9164 * gdbarch.h, gdbarch.c: Re-generate.
9165 * config/sparc/tm-sparc.h
9166 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9167 * sparc-tdep.c (sparc_gdbarch_init): Set
9168 deprecated_extra_stack_alignment_needed.
9169 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9170 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9171 extra_stack_alignment_needed.
9172 * v850-tdep.c (v850_gdbarch_init): Ditto.
9173 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9174 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9175 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9176 * cris-tdep.c (cris_gdbarch_init): Ditto.
9177 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9178 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9179
4183d812
AC
91802003-03-25 Andrew Cagney <cagney@redhat.com>
9181
9182 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9183 STORE_STRUCT_RETURN.
9184 * gdbarch.h, gdbarch.c: Regenerate.
9185 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9186 (d10v_push_arguments): Set the struct return register.
9187 (d10v_gdbarch_init): Update.
9188 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9189 * x86-64-tdep.c (x86_64_init_abi): Update.
9190 * vax-tdep.c (vax_gdbarch_init): Update.
9191 * v850-tdep.c (v850_gdbarch_init): Update.
9192 * sparc-tdep.c (sparc_gdbarch_init): Update.
9193 * sh-tdep.c (sh_gdbarch_init): Update.
9194 * s390-tdep.c (s390_gdbarch_init): Update.
9195 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9196 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9197 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9198 * mips-tdep.c (mips_gdbarch_init): Update.
9199 * mcore-tdep.c (mcore_gdbarch_init): Update.
9200 * m68k-tdep.c (m68k_gdbarch_init): Update.
9201 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9202 * ia64-tdep.c (ia64_gdbarch_init): Update.
9203 * i386-tdep.c (i386_gdbarch_init): Update.
9204 * hppa-tdep.c (hppa_gdbarch_init): Update.
9205 * h8300-tdep.c (h8300_gdbarch_init): Update.
9206 * frv-tdep.c (frv_gdbarch_init): Update.
9207 * cris-tdep.c (cris_gdbarch_init): Update.
9208 * avr-tdep.c (avr_gdbarch_init): Update.
9209 * arm-tdep.c (arm_gdbarch_init): Update.
9210 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9211
1bf6d5cc
AC
92122003-03-25 Andrew Cagney <cagney@redhat.com>
9213
9214 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9215 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9216 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9217 * gdbarch.h, gdbarch.c: Regenerate.
9218 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9219 call_dummy_stack_adjust_p.
9220 * vax-tdep.c (vax_gdbarch_init): Ditto.
9221 * v850-tdep.c (v850_gdbarch_init): Ditto.
9222 * sh-tdep.c (sh_gdbarch_init): Ditto.
9223 * s390-tdep.c (s390_gdbarch_init): Ditto.
9224 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9225 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9226 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9227 * mips-tdep.c (mips_gdbarch_init): Ditto.
9228 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9229 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9230 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9231 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9232 * i386-tdep.c (i386_gdbarch_init): Ditto.
9233 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9234 * frv-tdep.c (frv_gdbarch_init): Ditto.
9235 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9236 * cris-tdep.c (cris_gdbarch_init): Ditto.
9237 * avr-tdep.c (avr_gdbarch_init): Ditto.
9238 * arm-tdep.c (arm_gdbarch_init): Ditto.
9239 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9240 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9241 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9242 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9243 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9244 call_dummy_stack_adjust_p.
9245 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9246 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9247 * sparc-tdep.c (sparc32_push_arguments): Update.
9248 * valops.c (hand_function_call): Update.
9249
71c08af0
CV
92502003-03-25 Corinna Vinschen <vinschen@redhat.com>
9251
9252 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9253 set_gdbarch_char_signed.
9254
30757f90
RE
92552003-03-25 Richard Earnshaw <rearnsha@arm.com>
9256
9257 PR cli/548
9258 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9259
03d48a7d
RE
92602003-03-25 Richard Earnshaw <rearnsha@arm.com>
9261
9262 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9263 (_initialize_arm_tdep): Don't set tm_print_insn.
9264
2cf6873c
AF
92652003-03-24 Adam Fedor <fedor@gnu.org>
9266
9267 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9268 * objc-lang.h: Add multiple inclusion protection.
9269 (start_msglist, add_msglist, end_msglist): Additional declarations.
9270
17c0759e
RE
92712003-03-24 Richard Earnshaw <rearnsha@arm.com>
9272
9273 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9274 value was renamed to ARM_FLOAT_SOFT_FPA.
9275
618ce49f
AC
92762003-03-23 Andrew Cagney <cagney@redhat.com>
9277
9278 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9279 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9280 * gdbarch.h, gdbarch.c: Regenerate.
9281 * valops.c (hand_function_call): Update.
9282 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9283 * frame.c (legacy_saved_regs_this_id): Update.
9284 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9285 * dummy-frame.h: Update.
9286 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9287 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9288 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9289 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9290 * config/m68k/tm-sun3.h: Update.
9291 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9293 * x86-64-tdep.c (x86_64_init_abi): Update.
9294 * vax-tdep.c (vax_gdbarch_init): Update.
9295 * v850-tdep.c (v850_gdbarch_init): Update.
9296 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9297 * sh-tdep.c (sh_gdbarch_init): Update.
9298 * s390-tdep.c (s390_gdbarch_init): Update.
9299 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9300 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9301 (frame_get_saved_regs): Update.
9302 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9303 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9304 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9305 * mips-tdep.c (mips_gdbarch_init): Update.
9306 * mcore-tdep.c (mcore_gdbarch_init): Update.
9307 * m68k-tdep.c (m68k_gdbarch_init): Update.
9308 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9309 * ia64-tdep.c (ia64_gdbarch_init): Update.
9310 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9311 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9312 (i386_interix_back_one_frame): Update.
9313 * hppa-tdep.c (hppa_gdbarch_init): Update.
9314 (hppa_init_extra_frame_info): Update.
9315 * h8300-tdep.c (h8300_gdbarch_init): Update.
9316 * frv-tdep.c (frv_gdbarch_init): Update.
9317 * cris-tdep.c (cris_gdbarch_init): Update.
9318 * avr-tdep.c (avr_gdbarch_init): Update.
9319 * arm-tdep.c (arm_gdbarch_init): Update.
9320 * alpha-tdep.c (alpha_gdbarch_init): Update.
9321
fd50bc42
RE
93222003-03-22 Richard Earnshaw <rearnsha@arm.com>
9323
9324 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9325 (arm_get_fp_model): Declare.
9326 * arm-tdep.c (fp_model_strings): New string array.
9327 (arm_fp_model, current_fp_model): New variables.
9328 (arm_get_fp_model): New function.
9329 (arm_set_fp): New function.
9330 (set_fp_model_sfunc): New function.
9331 (show_fp_model): New function.
9332 (_initialize_arm_tdep): Add new command to set/show the FPU.
9333 (arm_extract_return_value): Use arm_get_fp_model.
9334 (arm_store_return_value): Likewise.
9335 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9336 to initialize the floating-point data types.
9337 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9338 model is FPA.
9339
26304000
RE
93402003-03-22 Richard Earnshaw <rearnsha@arm.com>
9341
9342 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9343 the current setting of each value.
9344 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9345 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9346 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9347 commands and add new version as subcommands of "set/show arm".
9348
afd7eef0
RE
93492003-03-22 Richard Earnshaw <rearnsha@arm.com>
9350
9351 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9352 (set_arm_command, show_arm_command): New functions.
9353 (_initialize_arm_tdep): Add them.
9354 (num_disassembly_options): Renamed from num_flavor_options.
9355 (valid_disassembly_styles): Renamed from valid_flavors.
9356 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9357 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9358 set_disassembly_flavor_sfunc.
9359 (set_disassembly_style): Renamed from set_disassembly_flavor.
9360 (arm_othernames): Updated.
9361 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9362 command. Add "set/show arm disassembly" commands. Deprecate
9363 "othernames" command.
9364
299a7944
RE
93652003-03-22 Richard Earnshaw <rearnsha@arm.com>
9366
9367 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9368 (arm-tdep.o): Depend on elf_arm_h.
9369
c1dac9e6
RE
93702003-03-22 Richard Earnshaw <rearnsha@arm.com>
9371
9372 * Makefile.in (coff_internal_h): Define.
9373 (arm-tdep.o): Update dependencies.
9374
2702d96c
RE
93752003-03-22 Richard Earnshaw <rearnsha@arm.com>
9376
9377 * arm-tdep.c (prologue_cache): Delete.
9378 (check_prologue_cache, save_prologue_cache): Delete.
9379 (arm_scan_prologue): Don't check or update the prologue_cache.
9380 (arm_gdb_arch_init): Don't initialize it.
9381 (_initialize_arm_tdep): Likewise.
9382
27d5d74b
SC
93832003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9384
9385 * MAINTAINERS (tui): Maintainer of tui code.
9386
1762d96d
CV
93872003-03-21 Corinna Vinschen <vinschen@redhat.com>
9388
9389 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9390 (i386-cygwin-tdep.o): Add dependencies.
9391 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9392 * i386-cygwin-tdep.c: New file.
9393 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9394 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9395
4c2e2391
AC
93962003-03-20 Andrew Cagney <cagney@redhat.com>
9397
f20d38b7
AC
9398 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9399 (handle_inferior_event): Remove code calling
9400 DYNAMIC_TRAMPOLINE_NEXTPC.
9401
0022b738
AC
9402 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9403 already has a full path.
9404
864dbc90
AC
9405 * main.c (gdb_main): Return 1.
9406 (captured_main): Call error to report an invalid interpreter.
9407
4c2e2391
AC
9408 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9409 * alpha-osf1-tdep.c: Include "gdb_string.h".
9410
5ef7553b
JB
94112003-03-19 J. Brobecker <brobecker@gnat.com>
9412
9413 Continuing work to convert the hppa targets to multiarch partial.
9414
9415 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9416 method, now that hppa_push_dummy_frame has a conformant prototype.
9417 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9418 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9419 for the switch to multiarch partial.
9420
7bde8967
KB
94212003-03-19 Kevin Buettner <kevinb@redhat.com>
9422
9423 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9424 when iss is issNull.
9425
b006a9e9
KB
94262003-03-18 Kevin Buettner <kevinb@redhat.com>
9427
9428 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9429 NUM_REGS bounds check.
9430
5e2e9765
KB
94312003-03-18 Kevin Buettner <kevinb@redhat.com>
9432
9433 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9434 * mips-tdep.c (gdb_assert.h): Include.
9435 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9436 (mips_register_name): Handle integer registers explicitly. Add
9437 bounds checking.
9438 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9439 (mips_lsi33k_reg_names): Don't list integer registers; they're
9440 handled by mips_register_name() now.
9441 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9442 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9443 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9444 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9445 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9446
a2867626
AC
94472003-03-18 Andrew Cagney <cagney@redhat.com>
9448
9449 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9450 a void pointer.
9451 * gdbtypes.h (print_scalar_formatted): Update declaration.
9452 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9453
06600e06
JB
94542003-03-18 J. Brobecker <brobecker@gnat.com>
9455
9456 * infrun.c (observer.h): Add #include.
9457 (normal_stop): Add call to observer_notify_normal_stop.
9458 * Makefile.in (infrun.o): Add dependency on observer.h.
9459
7daf4f5b
JB
94602003-03-18 J. Brobecker <brobecker@gnat.com>
9461
9462 Continuing work to convert the hppa targets to multiarch partial.
9463 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9464 parameter. Reformat comment.
9465 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9466 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9467 to match new profile.
9468
3371ccc0
JB
94692003-03-18 J. Brobecker <brobecker@gnat.com>
9470
9471 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9472 appear to be working in any case.
9473
4fbe891e
JB
94742003-03-18 J. Brobecker <brobecker@gnat.com>
9475
9476 * observer.c (observer_test_first_observer): New static variable.
9477 (observer_test_second_observer): Likewise.
9478 (observer_test_third_observer): Likewise.
9479 (observer_test_first_notification_function): New static function.
9480 (observer_test_second_notification_function): Likewise.
9481 (observer_test_third_notification_function): Likewise.
9482
a7ff40e7
JB
94832003-03-17 J. Brobecker <brobecker@gnat.com>
9484
9485 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9486 * somsolib.c (gdb_assert.h): Likewise.
9487 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9488 (somsolib.o): Likewise.
9489
26ca4152
AC
94902003-03-17 Andrew Cagney <cagney@redhat.com>
9491
9492 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9493 BFD. Simplify setting of di.endian.
9494
0a613259
AC
94952003-03-17 Andrew Cagney <cagney@redhat.com>
9496
9497 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9498 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9499
9500 From Elena Zannoni <ezannoni@redhat.com>
9501 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9502 vector and floating-point parameters.
9503 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9504 convention.
9505 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9506
1132738f
FN
95072003-03-17 Fernando Nasser <fnasser@redhat.com>
9508
9509 * MAINTAINERS: Remove my name from several maintainership roles.
9510
6dc42492
AC
95112003-03-17 Andrew Cagney <cagney@redhat.com>
9512
9513 Fix frame off-by-one bug.
9514 * frame-unwind.h (frame_this_id_ftype): Replace
9515 frame_unwind_id_ftype.
9516 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9517 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9518 with "prev_register".
9519 * frame-unwind.c (frame_unwind_find_by_pc): Return
9520 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9521 comment.
9522 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9523 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9524 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9525 (dummy_frame_unwind): Update.
9526 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9527 sentinel_frame_register_unwind.
9528 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9529 (sentinel_frame_unwinder): Update.
9530 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9531 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9532 * frame.c (create_sentinel_frame): Update. Initialize
9533 "prologue_cache" instead of "unwind_cache".
9534 (frame_register_unwind): Call this frame's prev_register with the
9535 next frame and this frame's prologue cache.
9536 (get_prev_frame): Simplify. Always call prev frame's this_id with
9537 this frame and prev frame's prologue cache. Document that this
9538 call is shifted one to the left when compared to the
9539 frame_register_unwind call.
9540 (legacy_saved_regs_prev_register): Replace
9541 frame_saved_regs_register_unwind.
9542 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9543 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9544 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9545 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9546 (d10v_frame_unwind): Update.
9547 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9548 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9549 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9550 "saved_regs" with "this_saved_regs".
9551
efd710d6
AC
95522003-03-16 Andrew Cagney <cagney@redhat.com>
9553
9554 * frame.c (frame_pop): Don't call target_store_registers. Fix
9555 problem reported by Mark Kettenis.
9556
4e259f09
MK
95572003-03-16 Mark Kettenis <kettenis@gnu.org>
9558
9559 * i386-tdep.c (i386_register_type): Renamed from
9560 i386_register_virtual_type. Adjust function signature.
9561 (i386_gdbarch_init): Set register_type instead of
9562 deprecated_max_register_raw_size,
9563 deprecated_max_register_virtual_size and register_virtual_type.
9564
055bb976
AC
95652003-03-14 Andrew Cagney <cagney@redhat.com>
9566
9567 * frame.c (get_prev_frame): When a legacy frame, always call
9568 legacy_get_prev_frame. Simplify unwind code using assumption that
9569 the unwinder is new.
9570 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9571 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9572 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9573
ac2adee5
AC
95742003-03-14 Andrew Cagney <cagney@redhat.com>
9575
9576 * frame.c (get_saved_register): Delete function.
9577 * frame.h (get_saved_register): Delete declaration.
9578 * xstormy16-tdep.c: Update comment.
9579 * regcache.h: Update comments.
9580 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9581 get_saved_register and extract_address, use
9582 frame_read_unsigned_register.
9583 (sparc_frame_saved_pc): Ditto.
9584 (sparc_get_saved_register): Instead of get_saved_register, use
9585 frame_register.
9586 (sparc_pop_frame): Ditto.
9587 * findvar.c: Update comments.
9588 (value_of_register): Call frame_register instead of
9589 get_saved_register.
9590 (value_from_register): Ditto.
9591 * config/sparc/tm-sparc.h: Update comment.
9592 * breakpoint.c: Update comment.
9593
129c1cd6
AC
95942003-03-14 Andrew Cagney <cagney@redhat.com>
9595
9596 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9597 GET_SAVED_REGISTER.
9598 * gdbarch.h, gdbarch.c: Re-generate.
9599 * frame.h: Update comments.
9600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9601 * x86-64-tdep.c (x86_64_init_abi): Update.
9602 * sparc-tdep.c (sparc_gdbarch_init): Update.
9603 * sh-tdep.c (sh_gdbarch_init): Update.
9604 * mips-tdep.c (mips_gdbarch_init): Update.
9605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9606 * cris-tdep.c (cris_gdbarch_init): Update.
9607 * ia64-tdep.c (ia64_gdbarch_init): Update.
9608 * frame.c (frame_register): Update.
9609 (get_saved_register): Update.
9610 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9611
749b82f6
AC
96122003-03-13 Andrew Cagney <cagney@redhat.com>
9613
9614 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9615 * gdbarch.h, gdbarch.c: Regenerate.
9616 * valops.c (hand_function_call): Update comment.
9617 * stack.c (return_command): Update comment.
9618 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9619 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9620 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9621 * x86-64-tdep.c (x86_64_init_abi): Update.
9622 * vax-tdep.c (vax_gdbarch_init): Update.
9623 * v850-tdep.c (v850_gdbarch_init): Update.
9624 * sparc-tdep.c (sparc_gdbarch_init): Update.
9625 * sh-tdep.c (sh_gdbarch_init): Update.
9626 * s390-tdep.c (s390_gdbarch_init): Update.
9627 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9628 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9629 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9630 * mips-tdep.c (mips_gdbarch_init): Update.
9631 * mcore-tdep.c (mcore_gdbarch_init): Update.
9632 * m68k-tdep.c (m68k_gdbarch_init): Update.
9633 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9634 * ia64-tdep.c (ia64_gdbarch_init): Update.
9635 * i386-tdep.c (i386_gdbarch_init): Update.
9636 * hppa-tdep.c (hppa_gdbarch_init): Update.
9637 * h8300-tdep.c (h8300_gdbarch_init): Update.
9638 * frv-tdep.c (frv_gdbarch_init): Update.
9639 * cris-tdep.c (cris_gdbarch_init): Update.
9640 * avr-tdep.c (avr_gdbarch_init): Update.
9641 * arm-tdep.c (arm_gdbarch_init): Update.
9642 * alpha-tdep.c (alpha_gdbarch_init): Update.
9643
1594fa56
AC
96442003-03-13 Andrew Cagney <cagney@redhat.com>
9645
9646 * frame.c (legacy_frame_p): New function.
9647 (get_prev_frame): Use legacy_frame_p.
9648 * frame.h (legacy_frame_p): Declare.
9649
7717fda3
V
96502003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9651
fbe586ae 9652 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9653 listing corrected.
9654
0c67cbe9
V
96552003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9656
fbe586ae 9657 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9658
03febf99
AC
96592003-03-12 Andrew Cagney <cagney@redhat.com>
9660
9661 * frame.c (get_prev_frame): Rename the frame parameter to
9662 "this_frame".
9663 (get_next_frame, legacy_get_prev_frame): Ditto.
9664
0a1e1ca1
AC
96652003-03-12 Andrew Cagney <cagney@redhat.com>
9666
9667 * frame.c (get_current_frame): Check target_has_registers before
9668 checking target_has_stack.
9669 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9670 instead of deprecated_selected_frame.
9671 * findvar.c (value_of_register): Pass "frame", not
9672 deprecated_selected_frame, to value_of_builtin_reg.
9673
a66a9c23
AC
96742003-03-12 Andrew Cagney <cagney@redhat.com>
9675
9676 * regcache.c (regcache_cooked_write_signed): New function.
9677 (regcache_cooked_write_unsigned): New function.
9678 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9679 (regcache_cooked_read_signed): Fix regnum in range assertion.
9680 * regcache.h (regcache_cooked_write_signed): Declare.
9681 (regcache_cooked_write_unsigned): Declare.
9682
8bedc050
AC
96832003-03-12 Andrew Cagney <cagney@redhat.com>
9684
9685 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9686 * gdbarch.h, gdbarch.c: Re-generate.
9687 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9688 * x86-64-tdep.h: Update.
9689 * x86-64-tdep.c (x86_64_init_abi): Update.
9690 * v850-tdep.c (v850_gdbarch_init): Update.
9691 * sparc-tdep.c (sparc_gdbarch_init): Update.
9692 * sh-tdep.c (sh_gdbarch_init): Update.
9693 * s390-tdep.c (s390_gdbarch_init): Update.
9694 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9695 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9696 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9697 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9698 * mips-tdep.c (mips_gdbarch_init): Update.
9699 * mcore-tdep.c (mcore_gdbarch_init): Update.
9700 * m68k-tdep.c (m68k_gdbarch_init): Update.
9701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9702 * ia64-tdep.c (ia64_gdbarch_init): Update.
9703 * i386-tdep.c (i386_gdbarch_init): Update.
9704 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9705 * hppa-tdep.c (hppa_gdbarch_init): Update.
9706 * h8300-tdep.c (h8300_gdbarch_init): Update.
9707 * frv-tdep.c (frv_gdbarch_init): Update.
9708 * cris-tdep.c (cris_gdbarch_init): Update.
9709 * avr-tdep.c (avr_gdbarch_init): Update.
9710 * arm-tdep.c (arm_gdbarch_init): Update.
9711 * alpha-tdep.c (alpha_gdbarch_init): Update.
9712 * sh-tdep.c (sh_init_extra_frame_info): Update.
9713 (sh64_init_extra_frame_info): Update.
9714 * ns32knbsd-nat.c (frame_num_args): Update.
9715 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9716 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9717 (xstormy16_frame_chain_valid): Update.
9718 * vax-tdep.c (vax_saved_pc_after_call): Update.
9719 * v850-tdep.c (v850_frame_chain): Update.
9720 (v850_pop_frame): Update.
9721 (v850_init_extra_frame_info): Update.
9722 * sparc-tdep.c (setup_arbitrary_frame): Update.
9723 * ns32k-tdep.c (umax_frame_num_args): Update.
9724 * s390-tdep.c (s390_pop_frame_regular): Update.
9725 * mn10300-tdep.c (mn10300_frame_chain): Update.
9726 (mn10300_pop_frame_regular): Update.
9727 (mn10300_init_extra_frame_info): Update.
9728 * mips-tdep.c (mips_init_frame_pc_first): Update.
9729 (mips_frame_chain): Update.
9730 (mips_pop_frame): Update.
9731 * mcore-tdep.c (mcore_frame_chain): Update.
9732 (mcore_pop_frame): Update.
9733 (mcore_init_extra_frame_info): Update.
9734 * arch-utils.c (init_frame_pc_default): Update.
9735 * m68k-tdep.c (isi_frame_num_args): Update.
9736 (delta68_frame_num_args): Update.
9737 (news_frame_num_args): Update.
9738 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9739 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9740 (alpha_frame_chain): Update.
9741 (alpha_pop_frame): Update.
9742 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9743 (hppa_init_extra_frame_info): Update.
9744 (hppa_frame_chain): Update.
9745 (hppa_frame_chain_valid): Update.
9746 * cris-tdep.c (cris_init_extra_frame_info): Update.
9747 * avr-tdep.c (avr_init_extra_frame_info): Update.
9748 * arm-tdep.c (arm_frame_chain_valid): Update.
9749 (arm_init_extra_frame_info): Update.
9750 (arm_pop_frame): Update.
9751 * frame.c (frame_pc_unwind): Update.
9752 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9753 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9754 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9755 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9756 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9757 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9758
7a25a7c1
AC
97592003-03-12 Andrew Cagney <cagney@redhat.com>
9760
9761 Eliminate the need for POP_FRAME.
9762 * frame.c (do_frame_unwind_register): New function.
9763 (frame_pop): When no POP_FRAME, pop the frame using register
9764 unwind and a scratch regcache.
9765 (frame_saved_regs_pop): Delete function.
9766 (trad_frame_unwinder): Update.
9767 * d10v-tdep.c (d10v_frame_pop): Delete function.
9768 (d10v_frame_unwind): Update.
9769 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9770 (sentinel_frame_unwinder): Update.
9771 * dummy-frame.c (dummy_frame_pop): Delete function.
9772 (dummy_frame_unwind): Update.
9773 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9774 (struct frame_unwind): Update.
9775
2f38ef89
KB
97762003-03-11 Kevin Buettner <kevinb@redhat.com>
9777
9778 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9779 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9780 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9781 Do range checks on register number obtained from debugging info.
9782 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9783 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9784 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9785 mapping function.
9786 (do_fp_register_row): Fix typo which caused double type to be
9787 used when attempting to unpack a float.
9788
552f4abf
JB
97892003-03-11 J. Brobecker <brobecker@gnat.com>
9790
9791 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9792
e0d2ae16
AC
97932003-03-11 Andrew Cagney <cagney@redhat.com>
9794
9795 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9796 frame. Problem found by Corinna Vinschen.
9797
ddbfdd06
PM
97982003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9799
9800 * doublest.c (floatformat_from_length): Accept also
9801 the real size of 'long double' type.
9802
088b2ddc 98032003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9804
088b2ddc 9805 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9806 * breakpoint.c (bpstat_copy): Copy the command lines as well
9807 as the old value, to match what is freed in bpstat_clear.
9808
f56f77c1
DC
98092003-03-10 David Carlton <carlton@math.stanford.edu>
9810
9811 * minsyms.c (add_minsym_to_hash_table): Replace
9812 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9813 (compare_minimal_symbols, compact_minimal_symbols)
9814 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9815 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9816 of DEPRECATED_SYMBOL_MATCHES_NAME.
9817 (lookup_minimal_symbol_solib_trampoline): Ditto.
9818
5602984a
AC
98192003-03-10 Andrew Cagney <cagney@redhat.com>
9820
9821 * regcache.h (regcache_cooked_read_ftype): Define.
9822 (regcache_save, regcache_restore): Add a cooked_read parameter.
9823 * regcache.c (regcache_save, regcache_restore): Update.
9824 (do_cooked_read): New function.
9825 (regcache_cpy): Pass do_cooked_read to regcache_save and
9826 regcache_restore.
9827
8bedc050
AC
98282003-03-10 Andrew Cagney <cagney@redhat.com>
9829
9830 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9831 * gdbarch.h, gdbarch.c: Re-generate.
9832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9833 * x86-64-tdep.h: Update.
9834 * x86-64-tdep.c (x86_64_init_abi): Update.
9835 * v850-tdep.c (v850_gdbarch_init): Update.
9836 * sparc-tdep.c (sparc_gdbarch_init): Update.
9837 * sh-tdep.c (sh_gdbarch_init): Update.
9838 * s390-tdep.c (s390_gdbarch_init): Update.
9839 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9840 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9841 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9842 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9843 * mips-tdep.c (mips_gdbarch_init): Update.
9844 * mcore-tdep.c (mcore_gdbarch_init): Update.
9845 * m68k-tdep.c (m68k_gdbarch_init): Update.
9846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9847 * ia64-tdep.c (ia64_gdbarch_init): Update.
9848 * i386-tdep.c (i386_gdbarch_init): Update.
9849 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9850 * hppa-tdep.c (hppa_gdbarch_init): Update.
9851 * h8300-tdep.c (h8300_gdbarch_init): Update.
9852 * frv-tdep.c (frv_gdbarch_init): Update.
9853 * cris-tdep.c (cris_gdbarch_init): Update.
9854 * avr-tdep.c (avr_gdbarch_init): Update.
9855 * arm-tdep.c (arm_gdbarch_init): Update.
9856 * alpha-tdep.c (alpha_gdbarch_init): Update.
9857 * sh-tdep.c (sh_init_extra_frame_info): Update.
9858 (sh64_init_extra_frame_info): Update.
9859 * ns32knbsd-nat.c (frame_num_args): Update.
9860 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9861 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9862 (xstormy16_frame_chain_valid): Update.
9863 * vax-tdep.c (vax_saved_pc_after_call): Update.
9864 * v850-tdep.c (v850_frame_chain): Update.
9865 (v850_pop_frame): Update.
9866 (v850_init_extra_frame_info): Update.
9867 * sparc-tdep.c (setup_arbitrary_frame): Update.
9868 * ns32k-tdep.c (umax_frame_num_args): Update.
9869 * s390-tdep.c (s390_pop_frame_regular): Update.
9870 * mn10300-tdep.c (mn10300_frame_chain): Update.
9871 (mn10300_pop_frame_regular): Update.
9872 (mn10300_init_extra_frame_info): Update.
9873 * mips-tdep.c (mips_init_frame_pc_first): Update.
9874 (mips_frame_chain): Update.
9875 (mips_pop_frame): Update.
9876 * mcore-tdep.c (mcore_frame_chain): Update.
9877 (mcore_pop_frame): Update.
9878 (mcore_init_extra_frame_info): Update.
9879 * arch-utils.c (init_frame_pc_default): Update.
9880 * m68k-tdep.c (isi_frame_num_args): Update.
9881 (delta68_frame_num_args): Update.
9882 (news_frame_num_args): Update.
9883 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9884 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9885 (alpha_frame_chain): Update.
9886 (alpha_pop_frame): Update.
9887 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9888 (hppa_init_extra_frame_info): Update.
9889 (hppa_frame_chain): Update.
9890 (hppa_frame_chain_valid): Update.
9891 * cris-tdep.c (cris_init_extra_frame_info): Update.
9892 * avr-tdep.c (avr_init_extra_frame_info): Update.
9893 * arm-tdep.c (arm_frame_chain_valid): Update.
9894 (arm_init_extra_frame_info): Update.
9895 (arm_pop_frame): Update.
9896 * frame.c (frame_pc_unwind): Update.
9897 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9898 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9899 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9900 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9901 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9902 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9903
12cc2063
AC
99042003-03-10 Andrew Cagney <cagney@redhat.com>
9905
9906 * gdbarch.sh (gdbarch_unwind_pc): New method.
9907 * gdbarch.h, gdbarch.c: Regenerate.
9908 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9909 but use read_pc and FRAME_SAVED_PC as fall backs.
9910 (frame_saved_regs_pc_unwind): Delete function.
9911 (trad_frame_unwinder): Update.
9912 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9913 (struct frame_unwind): Update.
9914 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9915 (dummy_frame_unwind): Update.
9916 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9917 (sentinel_frame_unwinder): Update.
9918 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9919 (d10v_frame_unwind): Update.
9920 (d10v_unwind_pc): New function.
9921 (d10v_gdbarch_init): Set unwind_pc.
9922
ef840a37
AC
99232003-03-10 Andrew Cagney <cagney@redhat.com>
9924
a2ce2e56
AC
9925 * gdbarch.h: Re-generate.
9926
ef840a37
AC
9927 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9928 PC.
9929 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9930 the PC register.
9931
08f3424b
MK
99322003-03-08 Mark Kettenis <kettenis@gnu.org>
9933
9934 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9935
1248ede2
AC
99362003-03-08 Andrew Cagney <cagney@redhat.com>
9937
9938 * cli-out.c: Update copyright.
9939 (cli_out_data): Define typedef. Use instead of ui_out_data.
9940
f49bacc8
AC
99412003-03-08 Andrew Cagney <cagney@redhat.com>
9942
9943 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9944 the result.
9945
9b05f993
AC
99462003-03-07 Andrew Cagney <cagney@redhat.com>
9947
9948 * gdbarch.sh: Don't generate two macro definitions when an
9949 undefined macro taking no arguments.
9950 * gdbarch.h: Regenerate.
8ffd9b1b 9951
166f4c7b
ML
99522002-03-07 Michal Ludvig <mludvig@suse.cz>
9953
9954 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9955 (x86_64_unwind_dummy_id): New functions.
9956 (x86_64_init_abi): Register these two new functions.
9957
6d686a84
ML
99582003-03-07 Michal Ludvig <mludvig@suse.cz>
9959
9960 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 9961 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
9962 separate function.
9963 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9964
6314f104
AC
99652003-03-05 Andrew Cagney <cagney@redhat.com>
9966
9967 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9968 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9969 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9970 to use unwind_dummy_id when a dummy frame.
9971 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9972 predicate.
9973 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 9974
ceea5145
AC
99752003-03-05 Andrew Cagney <cagney@redhat.com>
9976
9977 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9978 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9979 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9980 values.
9981
0d843116
AC
99822003-03-05 Andrew Cagney <cagney@redhat.com>
9983
9984 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9985 (struct d10v_unwind_cache): Delete field "frameless". Replace
9986 "next_addr" with "sp_offset". Add "r11_offset".
9987 (d10v_frame_unwind_cache): Update.
9988 (prologue_find_regs): Update. When "mv r11, sp", save the
9989 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9990 RN was saved in r11_offset.
9991
b2579786
AC
99922003-03-05 Andrew Cagney <cagney@redhat.com>
9993
9994 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9995 cached PC value in the next frame.
9996
218e5956
AC
99972003-03-05 Andrew Cagney <cagney@redhat.com>
9998
9999 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10000 "id_unwind_cache" with "id".
10001 (frame_id_unwind): Delete declaration.
10002 * frame.c (frame_id_unwind): Delete function.
10003 (get_prev_frame): Call the frame id unwind method directly. Store
10004 the returned next frame's ID value in NEXT_FRAME. Note that there
10005 is a problem with the wrong unwind ID being called with the wrong
10006 unwind cache.
10007
ed363b1b
DJ
100082003-03-05 Daniel Jacobowitz <drow@mvista.com>
10009
10010 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10011
fe1f4a5e
DJ
100122003-03-05 James Ingham <jingham@apple.com>
10013 Daniel Jacobowitz <drow@mvista.com>
10014
10015 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10016 (auto_cp_abi): New variable.
10017 (current_cp_abi, num_cp_abis): Make static.
10018 (CP_ABI_MAX): Define.
10019 (cp_abis): Turn into an array.
10020 (value_virtual_fn_field): Fix formatting.
10021 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10022 takes a pointer.
10023 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10024 (list_cp_abis, _initialize_cp_abi): New functions.
10025 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10026 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10027 switch_to_cp_abi. Update prototype for register_cp_abi.
10028 * Makefile.in (cp-abi.o): Update dependencies.
10029 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10030 instead of switch_to_cp_abi.
10031 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10032 register_cp_abi.
10033 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10034 register_cp_abi.
10035 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10036
e4adbba9
DJ
100372003-03-05 Daniel Jacobowitz <drow@mvista.com>
10038
10039 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10040 * dwarf2loc.c: Include "regcache.h".
10041 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10042 register_size.
10043 * Makefile.in (dwarf2loc.o): Update dependencies.
10044
91ccbfc1
TR
100452003-03-04 Theodore A. Roth <troth@openavr.org>
10046
10047 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10048 number of io registers reported by remote target is not a multiple of
10049 step.
10050
3d4e8fd2
DC
100512003-03-04 David Carlton <carlton@math.stanford.edu>
10052
10053 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10054 (lookup_symbol_aux_psymtabs): Update call to
10055 lookup_partial_symbol.
10056 (lookup_transparent_type, find_main_psymtab)
10057 (make_symbol_overload_list): Ditto.
10058
ed42d87b
KH
100592003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10060
10061 * MAINTAINERS (Write after approval): Update my email address.
10062
a0ed5532
AC
100632003-03-03 Andrew Cagney <cagney@redhat.com>
10064
10065 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10066 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10067 predicate. Replace MAX_REGISTER_RAW_SIZE.
10068 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10069 MAX_REGISTER_VIRTUAL_SIZE.
10070 * regcache.c (legacy_max_register_raw_size): New function.
10071 (legacy_max_register_virtual_size): New function.
10072 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10073 (MAX_REGISTER_RAW_SIZE): Define.
10074 (legacy_max_register_raw_size): Declare.
10075 (legacy_max_register_virtual_size): Declare.
10076 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10077 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10078 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10079 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10080 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10081 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10082 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10083 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10084 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10086 * vax-tdep.c (vax_gdbarch_init): Update.
10087 * v850-tdep.c (v850_gdbarch_init): Update.
10088 * sparc-tdep.c (sparc_gdbarch_init): Update.
10089 * sh-tdep.c (sh_gdbarch_init): Update.
10090 * s390-tdep.c (s390_gdbarch_init): Update.
10091 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10092 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10093 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10094 * mips-tdep.c (mips_gdbarch_init): Update.
10095 * mcore-tdep.c (mcore_gdbarch_init): Update.
10096 * m68k-tdep.c (m68k_gdbarch_init): Update.
10097 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10098 * ia64-tdep.c (ia64_gdbarch_init): Update.
10099 * i386-tdep.c (i386_gdbarch_init): Update.
10100 * hppa-tdep.c (hppa_gdbarch_init): Update.
10101 * h8300-tdep.c (h8300_gdbarch_init): Update.
10102 * frv-tdep.c (frv_gdbarch_init): Update.
10103 * cris-tdep.c (cris_gdbarch_init): Update.
10104 * avr-tdep.c (avr_gdbarch_init): Update.
10105 * arm-tdep.c (arm_gdbarch_init): Update.
10106 * alpha-tdep.c (alpha_gdbarch_init): Update.
10107 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10108 max_register_raw_size or max_register_virtual_size.
10109
8e437497
DC
101102003-03-03 David Carlton <carlton@math.stanford.edu>
10111
10112 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10113 SYMBOL_MATCHES_NAME, add comment.
10114 (SYMBOL_MATCHES_NATURAL_NAME): New.
10115 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10116 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10117 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10118 * symtab.c (lookup_partial_symbol): Use
10119 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10120 unhelpful comment.
10121 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10122 SYMBOL_MATCHES_NAME.
10123 Fix for PR c++/33.
10124
25120b0d
DC
101252003-03-03 David Carlton <carlton@math.stanford.edu>
10126
10127 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10128 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10129 by regexp matching against SYMBOL_NATURAL_NAME.
10130
78a11fb4
DC
101312003-03-03 David Carlton <carlton@math.stanford.edu>
10132
10133 * linespec.c (find_method): Extract code into collect_methods.
10134 (collect_methods): New.
10135
645dd519
MK
101362003-03-02 Mark Kettenis <kettenis@gnu.org>
10137
b4700d91
MK
10138 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10139 get_frame_base.
10140
645dd519
MK
10141 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10142 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10143
0aa7e1aa
SC
101442003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10145
8ffd9b1b 10146 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10147 and not regnum when summing the size of all registers up to regnum.
10148
f30ee0bc
AC
101492003-03-01 Andrew Cagney <cagney@redhat.com>
10150
10151 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10152 FRAME_INIT_SAVED_REGS.
10153 * gdbarch.h, gdbarch.c: Regenerate.
10154 * stack.c (frame_info): Update.
10155 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10156 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10157 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10158 * ns32k-tdep.c (ns32k_pop_frame): Update.
10159 * mips-tdep.c (mips_pop_frame): Update.
10160 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10161 * ia64-tdep.c (ia64_frame_chain): Update.
10162 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10163 (ia64_frameless_function_invocation): Update.
10164 (ia64_init_extra_frame_info): Update.
10165 (ia64_pop_frame_regular): Update.
10166 * frame.h (struct frame_info): Update comment.
10167 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10168 * frame.c (frame_saved_regs_register_unwind): Update.
10169 (frame_saved_regs_register_unwind): Update.
10170 (deprecated_generic_get_saved_register): Update.
10171 * cris-tdep.c: Update comment.
10172 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10173 Rename macro.
10174 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10175 * x86-64-tdep.c (x86_64_init_abi): Update.
10176 * vax-tdep.c (vax_gdbarch_init): Update.
10177 * v850-tdep.c (v850_gdbarch_init): Update.
10178 * sparc-tdep.c (sparc_gdbarch_init): Update.
10179 * sh-tdep.c (sh_gdbarch_init): Update.
10180 * s390-tdep.c (s390_gdbarch_init): Update.
10181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10182 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10184 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10185 * mips-tdep.c (mips_gdbarch_init): Update.
10186 * mcore-tdep.c (mcore_gdbarch_init): Update.
10187 * m68k-tdep.c (m68k_gdbarch_init): Update.
10188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10189 * ia64-tdep.c (ia64_gdbarch_init): Update.
10190 * i386-tdep.c (i386_gdbarch_init): Update.
10191 * frv-tdep.c (frv_gdbarch_init): Update.
10192 * avr-tdep.c (avr_gdbarch_init): Update.
10193 * arm-tdep.c (arm_gdbarch_init): Update.
10194 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10195
42fa7c0f
AC
101962003-03-01 Andrew Cagney <cagney@redhat.com>
10197
10198 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10199 option enum and switch. When no windows, set the interpreter to
10200 INTERP_CONSOLE.
8ffd9b1b 10201
49c7e338
AC
102022003-03-01 Andrew Cagney <cagney@redhat.com>
10203
10204 * main.c (captured_main): Replace magic option characters with an
10205 enum.
10206
e9582e71
AC
102072003-03-01 Andrew Cagney <cagney@redhat.com>
10208
10209 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10210 INIT_EXTRA_FRAME_INFO.
10211 * gdbarch.h, gdbarch.c: Regenerate.
10212 * arm-tdep.c: Update comments.
10213 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10214 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10215 * frame.h, avr-tdep.c: Ditto.
10216 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10217 (create_new_frame, legacy_get_prev_frame): Ditto.
10218 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10219 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10220 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10221 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10222 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10223 * v850-tdep.c (v850_gdbarch_init): Ditto.
10224 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10225 * sh-tdep.c (sh_gdbarch_init): Ditto.
10226 * s390-tdep.c (s390_gdbarch_init): Ditto.
10227 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10228 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10229 * mips-tdep.c (mips_gdbarch_init): Ditto.
10230 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10231 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10232 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10233 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10234 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10235 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10236 * frv-tdep.c (frv_gdbarch_init): Ditto.
10237 * cris-tdep.c (cris_gdbarch_init): Ditto.
10238 * avr-tdep.c (avr_gdbarch_init): Ditto.
10239 * arm-tdep.c (arm_gdbarch_init): Ditto.
10240 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10241 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10242
35cac7cf
AC
102432003-03-01 Andrew Cagney <cagney@redhat.com>
10244
10245 * gdbarch.sh (register_type): New function with predicate.
10246 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10247 * gdbarch.h, gdbarch.c: Re-generate.
10248 * arch-utils.c (generic_register_byte): Use generic_register_size.
10249 (generic_register_size): When available, use
10250 gdbarch_register_type.
10251 * regcache.c (init_regcache_descr): When available, initialize the
10252 register type array using gdbarch_register_type. If the
10253 architecture supplies gdbarch_register_type, do not use the legacy
10254 regcache layout.
10255 * d10v-tdep.c (d10v_register_type): Replace
10256 d10v_register_virtual_type.
10257 (d10v_gdbarch_init): Set register_type instead of
10258 register_virtual_type.
10259
7b83296f
AC
102602003-03-01 Andrew Cagney <cagney@redhat.com>
10261
10262 * Makefile.in (ax-gdb.o): Update dependencies.
10263 * ax-gdb.c: Include "regcache.h".
10264 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10265 * findvar.c (value_of_register): Ditto.
10266 * infcmd.c (default_print_registers_info): Ditto.
10267
eadc1c87
MK
102682003-03-01 Mark Kettenis <kettenis@gnu.org>
10269
10270 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10271 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10272
14143612
MK
102732003-03-01 Mark Kettenis <kettenis@gnu.org>
10274
10275 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10276 of STREQ.
10277
a55cc764
DJ
102782003-02-28 Daniel Jacobowitz <drow@mvista.com>
10279
10280 * Makefile.in (dwarf2loc.o): Update dependencies.
10281 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10282 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10283 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10284 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10285 (locexpr_tracepoint_var_ref): New function.
10286 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10287
08a617da
AC
102882003-02-28 Andrew Cagney <cagney@redhat.com>
10289
10290 * regcache.c (register_size): New function.
10291 * regcache.h (register_size): Declare
10292 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10293 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10294
4224873a
DC
102952003-02-28 David Carlton <carlton@math.stanford.edu>
10296
10297 * linespec.c (decode_compound): Extract code into find_method.
10298 (find_method): New.
10299
ccdc5d7f
JB
103002003-02-28 J. Brobecker <brobecker@gnat.com>
10301
10302 * Makefile.in: Add rules to build and link in observer.o.
10303
974e8ced
JB
103042003-02-27 J. Brobecker <brobecker@gnat.com>
10305
10306 * observer.c: Minor comments edits.
10307
7a28f973
JB
103082003-02-27 J. Brobecker <brobecker@gnat.com>
10309
10310 * observer.h, observer.c: New file.
10311
27cddce2
AC
103122003-02-27 Andrew Cagney <cagney@redhat.com>
10313
10314 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10315
b94a41a1
SC
103162003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10317
10318 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10319 (M6812_OP_STS_EXT): Likewise.
10320 (m6811_prologue): Use the above to recognize prologue.
10321 (m6812_prologue): Likewise.
10322
c8be8951
DC
103232003-02-27 David Carlton <carlton@math.stanford.edu>
10324
10325 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10326 SYMBOL_PRINT_NAME.
10327 (compare_psymbols): Ditto.
10328 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10329
d05bb1fc
MS
103302003-02-27 Michael Snyder <msnyder@redhat.com>
10331
4e845cd3
MS
10332 * f-lang.c (build_fortran_types): New function.
10333 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10334 * doublest.c (extract_floating): Fix warning text.
10335
f3824013
AC
103362003-02-27 Andrew Cagney <cagney@redhat.com>
10337
10338 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10339 predicate. Replaces PUSH_DUMMY_FRAME.
10340 * gdbarch.h, gdbarch.c: Regnerate.
10341 * valops.c (hand_function_call): Update. Call
10342 generic_push_dummy_frame directly.
10343 * vax-tdep.c (vax_gdbarch_init): Update.
10344 * sparc-tdep.c (sparc_gdbarch_init): Update.
10345 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10346 * m68k-tdep.c (m68k_gdbarch_init): Update.
10347 * hppa-tdep.c (hppa_gdbarch_init): Update.
10348 * alpha-tdep.c (alpha_gdbarch_init): Update.
10349 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10350 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10351 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10352 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10353 push_dummy_frame to generic_push_dummy_frame.
10354 * v850-tdep.c (v850_gdbarch_init): Ditto.
10355 * sh-tdep.c (sh_gdbarch_init): Ditto.
10356 * s390-tdep.c (s390_gdbarch_init): Ditto.
10357 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10358 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10359 * mips-tdep.c (mips_gdbarch_init): Ditto.
10360 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10362 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10363 * i386-tdep.c (i386_gdbarch_init): Ditto.
10364 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10365 * frv-tdep.c (frv_gdbarch_init): Ditto.
10366 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10367 * cris-tdep.c (cris_gdbarch_init): Ditto.
10368 * avr-tdep.c (avr_gdbarch_init): Ditto.
10369 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10370
ad188201
KB
103712003-02-26 Kevin Buettner <kevinb@redhat.com>
10372
10373 * mips-tdep.c (show_mips_abi): New function.
10374 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10375 command ``show mips abi''.
10376
6b37567a 103772003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10378
6b37567a 10379 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10380 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10381 more sline entries have been seen for the function.
10382
d3e0a5bf
MC
103832003-02-26 Michael Chastain <mec@shout.net>
10384
10385 * configure: Regenerate with autoconf 000227.
10386
18972eea
MC
103872003-02-26 Michael Chastain <mec@shout.net>
10388
10389 Close PR build/660.
10390 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10391 for old libc5/glibc.
10392 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10393
0bbde931
KW
103942003-02-26 Kris Warkentin <kewarken@qnx.com>
10395
10396 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10397 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10398
27ca5dad
MC
103992003-02-26 Michael Chastain <mec@shout.net>
10400
10401 * configure.in: New variable HAVE_UINTPTR_T.
10402 * configure, config.in: Regenerated.
10403
6f88d630
DJ
104042003-02-26 Daniel Jacobowitz <drow@mvista.com>
10405
10406 Fix PR build/1097.
10407 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10408
b14185ce
AC
104092003-02-25 Andrew Cagney <cagney@redhat.com>
10410
10411 * frame.c (get_prev_frame): Add comment on check for
10412 inside_entry_func. Only check for inside_entry_file when not a
10413 dummy and not a sentinel. Check that the new frame is not inner
10414 to the old frame.
10415
ac2bd0a9
AC
104162003-02-25 Andrew Cagney <cagney@redhat.com>
10417
10418 * frame.c (frame_debug): New variable.
10419 (_initialize_frame): Add "set/show debug frame" command.
10420 (get_prev_frame): When frame_debug, print reason why unwind
10421 failed.
10422
b18a0fd2
MC
104232003-02-25 Michael Chastain <mec@shout.net>
10424
10425 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10426 to avoid uintptr_t definition problems.
10427
22abf04a
DC
104282003-02-25 David Carlton <carlton@math.stanford.edu>
10429
10430 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10431 (SYMBOL_LINKAGE_NAME): Ditto.
10432 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10433 SYMBOL_LINKAGE_NAME.
10434 (struct general_symbol_info): Expand comment.
10435 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10436 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10437 (SYMBOL_MATCHES_REGEXP): Ditto.
10438 * symtab.c (symbol_natural_name): New function.
10439 * objfiles.h: Replace all uses of SYMBOL_NAME by
10440 DEPRECATED_SYMBOL_NAME.
10441 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10442 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10443 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10444 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10445 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10446 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10447 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10448 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10449 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10450 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10451 * ada-exp.y: Ditto.
10452 * ada-exp.y: Update copyright.
10453 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10454 * cp-valprint.c: Ditto.
10455
1a5848f6
JJ
104562003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10457
10458 * infptrace.c (detach): Do not flag error if ptrace detach fails
10459 and errno is set to ESRCH.
10460
7343d46a
AC
104612003-02-24 Andrew Cagney <cagney@redhat.com>
10462
10463 * infptrace.c (udot_info): Change type of udot_off to long. Use
10464 paddr when printing udot_off's value.
10465
49fa1dc2
DC
104662003-02-24 David Carlton <carlton@math.stanford.edu>
10467
10468 * symtab.c (make_symbol_overload_list): Only read in partial
10469 symtabs containing a matching partial symbol.
10470
0fe19209
DC
104712003-02-24 David Carlton <carlton@math.stanford.edu>
10472
10473 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10474 do the comparison, not strcmp.
10475 * symfile.c (compare_psymbols): Ditto.
10476 * defs.h: Declare strcmp_iw_ordered.
10477 * utils.c (strcmp_iw_ordered): New function.
10478
8e3ee7b5
JB
104792003-02-24 Jim Blandy <jimb@redhat.com>
10480
10481 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10482 support, shared libs): Remove my name from here, to better reflect
10483 reality.
10484
7df1a324
KW
104852003-02-24 Kris Warkentin <kewarken@qnx.com>
10486
10487 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10488 (target_ops): Add to_have_continuable_watchpoint.
10489 * target.c (update_current_target): Add INHERIT line for
10490 to_have_continuable_watchpoint.
10491 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10492 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10493 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10494 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10495
d1c76907
EZ
104962003-02-24 Elena Zannoni <ezannoni@redhat.com>
10497
10498 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10499 maintainership.
10500
2610b0bf
KW
105012003-02-24 Kris Warkentin <kewarken@qnx.com>
10502
f46169db
KW
10503 * solib.c (solib_open): Call target defined search function after
10504 failing with solib-search-path.
10505 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10506 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10507
9a3c34fe
KW
105082003-02-24 Kris Warkentin <kewarken@qnx.com>
10509
f46169db 10510 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10511
2417dd25
SC
105122003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10513
10514 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10515
b631436b
SC
105162003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10517
10518 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10519 (m68hc11_add_reggroups): New function.
10520 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10521 (m68hc11_gdbarch_init): Install the reggroups.
10522 (_initialize_m68hc11_tdep): Initialize them.
10523
0aa8c1e4
JW
105242003-02-21 James E Wilson <wilson@tuliptree.org>
10525
10526 * MAINTAINERS: Update my email address.
10527
50ceaba5
DC
105282003-02-21 David Carlton <carlton@math.stanford.edu>
10529
10530 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10531
4c2df51b
DJ
105322003-02-21 Daniel Jacobowitz <drow@mvista.com>
10533
10534 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10535 * symtab.h: Add opaque declarations of struct axs_value and
10536 struct agent_expr.
10537 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10538 (struct location_funcs): New type.
10539 (struct symbol): Add "loc" to aux_value.
10540 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10541 * dwarf2read.c: Include "dwarf2expr.h".
10542 (dwarf2_symbol_mark_computed): New function.
10543 (read_func_scope): Use it.
10544 (var_decode_location): New function.
10545 (new_symbol): Use it.
10546 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10547
10548 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10549 (dwarf2expr_h, dwarf2loc_h): New variables.
10550 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10551 (dwarf2expr.o, dwarf2loc.o): New rules.
10552 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10553 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10554 LOC_COMPUTED_ARG.
10555 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10556 * m2-exp.y (yylex): Likewise.
10557 * printcmd.c (address_info, print_frame_args): Likewise.
10558 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10559 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10560 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10561 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10562 * symtab.c (lookup_block_symbol): Likewise.
10563
5784d15e
AF
105642003-02-20 Adam Fedor <fedor@gnu.org>
10565
10566 * symtab.h: Remove objc_specific struct
10567 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10568 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10569 Have language_objc use cplus_specific struct.
10570
d4cad8db
TT
105712003-02-20 Tom Tromey <tromey@redhat.com>
10572
10573 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10574 TYPE_NAME, when printing a String value. PR java/1075.
10575
2f9a90b4
AF
105762003-02-20 Adam Fedor <fedor@gnu.org>
10577
d38074a8 10578 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10579 * objc-lang.c (find_methods): Make static.
2f9a90b4 10580
6f17862b
CF
105812003-02-20 Christopher Faylor <cgf@redhat.com>
10582
10583 * win32-nat.c (get_image_name): Check return value from
10584 ReadProcessMemory.
10585 (child_xfer_memory): Ditto.
10586
715d1656
AO
105872003-02-20 Alexandre Oliva <aoliva@redhat.com>
10588
10589 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10590 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10591 '${exec_prefix}' (in addition to the expansion thereof) as
10592 relocatable.
10593 * configure: Rebuilt.
10594
b1262a02
DC
105952003-02-20 David Carlton <carlton@math.stanford.edu>
10596
10597 * symtab.c (search_symbols): Revert the search_symbols part of my
10598 2002-12-23 patch. Add comment.
10599
7134143f
DJ
106002002-02-20 Daniel Jacobowitz <drow@mvista.com>
10601
10602 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10603 * dbxread.c (elfstab_build_psymtabs): Don't call
10604 install_minimal_symbols.
10605 (stabsect_build_psymtabs): Likewise.
10606 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10607 earlier.
10608 * somread.c (som_symfile_read): Call install_minimal_symbols
10609 and do_cleanups earlier.
10610 * nlmread.c (nlm_symfile_read): Likewise.
10611 * mdebugread.c (elfmdebug_build_psymtabs): Call
10612 install_minimal_symbols and make appropriate cleanups.
10613
cf466558
KB
106142003-02-20 Kevin Buettner <kevinb@redhat.com>
10615
10616 * solib.c (reload_shared_libraries): New function.
10617 (_initialize_solib): Add callbacks for ``set solib-search-path''
10618 and ``set solib-absolute-prefix''.
10619
de5ad195
DC
106202003-02-20 David Carlton <carlton@math.stanford.edu>
10621
10622 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10623 expand comment.
10624 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10625 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10626 * ada-typeprint.c (ada_typedef_print): Ditto.
10627 * ax-gdb.c (gen_var_ref): Ditto.
10628 * breakpoint.c (print_one_breakpoint): Ditto.
10629 * buildsym.c (finish_block): Ditto.
10630 * c-valprint.c (c_val_print): Ditto.
10631 * expprint.c (print_subexp): Ditto.
10632 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10633 * infcmd.c (jump_command): Ditto.
10634 * linespec.c (decode_line_2, decode_compound): Ditto.
10635 * maint.c (maintenance_translate_address): Ditto.
10636 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10637 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10638 Ditto.
8ffd9b1b
AJ
10639 * p-valprint.c (pascal_val_print): Ditto.
10640 * stabsread.c (define_symbol): Ditto.
de5ad195 10641 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10642 (print_frame_arg_vars, return_command): Ditto.
10643 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10644 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10645 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10646 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10647 (rbreak_command): Ditto.
10648 * tracepoint.c (tracepoints_info): Ditto.
10649 * typeprint.c (typedef_print): Ditto.
10650 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10651 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10652 * ada-typeprint.c: Update Copyright.
10653 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10654 * tracepoint.c, cli/cli-cmds.c: Ditto.
10655
f796e4be
KB
106562003-02-20 Kevin Buettner <kevinb@redhat.com>
10657
10658 * frame.c (generic_unwind_get_saved_register): Make non-static.
10659 * frame.h (generic_unwind_get_saved_register): Declare.
10660 * mips-tdep.c (read_next_frame_reg): Fetch register from
10661 current regcache when frame is NULL.
10662 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10663 that must be NULL.
10664 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10665 instead of frame_register_unwind().
10666
836cc9f4
AC
106672003-02-20 Andrew Cagney <ac131313@redhat.com>
10668
10669 * remote-sim.c (gdbsim_insert_breakpoint)
10670 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10671 code.
10672
501eef12
AC
106732003-02-20 Andrew Cagney <ac131313@redhat.com>
10674
10675 * remote.c (_initialize_remote): Add commands "set/show remote
10676 hardware-watchpoint-limit" and "set/show remote
10677 hardware-breakpoint-limit".
10678 (remote_hw_watchpoint_limit): Initialize to -1.
10679 (remote_hw_breakpoint_limit): Ditto.
10680 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10681
1b6bc7e0
CF
106822003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10683
10684 * coff-pe-read.c: New file - support reading of minimal symbols from a
10685 portable executable using the export table.
10686 * coff-pe-read.h: New file.
10687 * coffread.c: Include coff-pe-read.h.
10688 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10689 debugging symbols found.
10690 * Makefile.in (SFILES): Add coff-pe-read.o.
10691 (coff_pe_read_h): Define.
10692 (COMMON_OBS): Add coff-pe-read.o.
10693 (coffread.o): Add coff_pe_read_h dependency.
10694 (coff-pe-read.o): New target.
10695
fe898f56
DC
106962003-02-19 David Carlton <carlton@math.stanford.edu>
10697
10698 * Makefile.in (SFILES): Add block.c.
10699 (block_h): New.
10700 (COMMON_OBS): Add block.o.
10701 (block.o): New.
10702 (x86-64-tdep.o): Add $(block_h).
10703 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10704 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10705 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10706 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10707 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10708 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10709 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10710 * value.h: Add opaque declaration for struct block.
10711 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10712 * ada-lang.h: Ditto.
10713 * x86-64-tdep.c: #include "block.h"
10714 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10715 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10716 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10717 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10718 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10719 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10720 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10721 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10722 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10723 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10724 * symtab.c (block_function): Ditto.
10725 (contained_in): Ditto.
10726 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10727 block.h. Add opaque declaration for struct block.
10728 * symtab.h: Move block_function and contained_in declarations to
10729 block.h. Add opaque declarations for struct block, struct
10730 blockvector.
10731 (struct block): Move to block.h.
10732 (struct blockvector): Ditto.
10733 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10734 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10735 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10736 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10737 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10738 Ditto.
10739 * block.c: New file.
10740 * block.h: New file.
10741
173345b5
TR
107422003-02-19 Theodore A. Roth <troth@openavr.org>
10743
10744 * avr-tdep.c (avr_extract_return_value): Remove function.
10745 (avr_store_return_value): Remove function.
10746 (avr_extract_struct_value_address): Remove function.
10747 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10748
338ef23d
AC
107492003-02-19 Andrew Cagney <ac131313@redhat.com>
10750
10751 * rs6000-tdep.c: Include "gdb_assert.h".
10752 (registers_e500): Add "acc" and "spefscr".
10753 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10754 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10755 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10756 really is "r0".
10757 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10758
5412f5f3
KS
107592003-02-18 Keith Seitz <keiths@redhat.com>
10760
10761 * Makefile.in: Add gdbtk-interps.c.
10762
881324eb
KB
107632003-02-18 Kevin Buettner <kevinb@redhat.com>
10764
10765 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10766 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10767
6a2f5abf
AC
107682003-02-18 Andrew Cagney <cagney@redhat.com>
10769
10770 * symtab.h (struct objfile): Add opaque declaration.
10771
54c7009d
EZ
107722003-02-18 Elena Zannoni <ezannoni@redhat.com>
10773
10774 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10775 * dbxread.c (process_one_symbol): Use last_function_start rather
10776 than function_start_offset to find the real beginning of the
10777 current function. The latter is just the text section offset on
10778 some systems, the former is always the real function start.
54c7009d 10779
7ee6d7eb
AC
107802003-02-17 Andrew Cagney <cagney@redhat.com>
10781
10782 * configure.in: Revert ${target} != ${host}.
10783
2846da9b
AC
107842003-02-17 Andrew Cagney <ac131313@redhat.com>
10785
10786 * configure.in (Makefile): Use the test ${target} != ${host},
10787 instead of the absence of the "nm.h" file, to determine of the
10788 configuration non-native.
10789 * configure: Regenerate.
8ffd9b1b 10790
3b27aeea
EZ
107912003-02-14 Elena Zannoni <ezannoni@redhat.com>
10792
fbe586ae 10793 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10794
10795 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10796 conditionalize tui_active test.
10797 (lookup_cmd_1): Ditto.
10798
b0b1c2c0
MK
107992003-02-14 Mark Kettenis <kettenis@gnu.org>
10800
10801 * configure.in: Add check for _etext.
10802 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10803 available.
10804 * config.in, configure: regenerated.
10805
8f05cde5
DJ
108062003-02-14 Daniel Jacobowitz <drow@mvista.com>
10807
10808 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10809
021e7609
AC
108102003-02-14 Andrew Cagney <ac131313@redhat.com>
10811
10812 * main.c (tui_version): Delete variable.
10813 (captured_main): When --tui, set interpreter_p to "tui" instead of
10814 enabling tui_version.
10815 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10816 tui_version.
10817 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10818 * cli/cli-cmds.c (disassemble_command): Ditto.
10819 * defs.h (tui_version): Delete declaration.
10820 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10821 (tui-interp.o): Add rules.
10822 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10823
e325dcec
CF
108242003-02-14 Christopher Faylor <cgf@redhat.com>
10825
36ffb041 10826 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10827 just-loaded dll.
10828
c4f90d87
JM
108292003-02-12 Jason Molenda (jmolenda@apple.com)
10830
fbe586ae
RH
10831 * symmisc.c (print_objfile_statistics): Include information about
10832 the number of psymtabs and symtabs in each object file.
c4f90d87 10833
e46e5ccd
KS
108342003-02-13 Keith R Seitz <keiths@redhat.com>
10835
10836 * main.h (struct captured_main_args): Add interpreter_p.
10837 * main.c (captured_main): Initialize interpreter_p from context.
10838 * gdb.c (main): Set interpreter_p argument.
10839 * Makefile.in (gdb.o): Add dependency for interps.h.
10840
fe97fe9c
AC
108412003-02-12 Andrew Cagney <ac131313@redhat.com>
10842
10843 * event-top.c (cli_command_loop): Delete declaration.
10844 (_initialize_event_loop): Delete function setting event_loop_hook.
10845 * event-top.h (cli_command_loop): Declare. Update copyright.
10846 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10847 * interps.c (current_interp_command_loop): When event_loop_p, call
10848 cli_command_loop.
10849
1cdac4ef
AC
108502003-02-12 Andrew Cagney <ac131313@redhat.com>
10851
10852 * interps.h (interp_command_loop_ftype): Change return type to
10853 void.
10854
48037ead
ML
108552003-02-12 Michal Ludvig <mludvig@suse.cz>
10856
10857 * x86-64-tdep.c (x86_64_extract_return_value)
10858 (x86_64_store_return_value): Use regcache instead of regbuf.
10859 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10860 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10861
033afc63
AC
108622003-02-11 Andrew Cagney <ac131313@redhat.com>
10863
10864 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10865 * aclocal.m4: Regenerate.
10866 * configure: Regenerate.
10867
10868 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10869 TCL_LD_SEARCH_FLAGS.
10870
40d02bca
ML
108712003-02-10 Michal Ludvig <mludvig@suse.cz>
10872
10873 * dwarf2cfi.c: Reindented.
10874
11308a41
AC
108752003-02-09 Andrew Cagney <ac131313@redhat.com>
10876
10877 * interps.c (clear_interpreter_hooks): Convert function definition
10878 to ISO C.
10879
e1c1c0f6
DC
108802003-02-07 David Carlton <carlton@math.stanford.edu>
10881
10882 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10883
ab5d3da6
KB
108842003-02-07 Kevin Buettner <kevinb@redhat.com>
10885
10886 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10887 (struct type): ...to here.
10888 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10889 field.
10890 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10891 (replace_type): Set length on all type variants for a given type.
10892
b8a92b82
AC
108932003-02-07 Andrew Cagney <ac131313@redhat.com>
10894
10895 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10896 <sys/stat.h>.
10897 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10898
5cb316ef
AC
108992003-02-06 Andrew Cagney <ac131313@redhat.com>
10900
2555fe1a
AC
10901 * Makefile.in (symm-nat.o): Update dependencies.
10902 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10903 (lynx-nat.o, ia64-linux-nat.): Ditto.
10904 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10905 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10906 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10907
44270758
AC
10908 * Makefile.in (inflow_h): Define.
10909 (procfs.o, inflow.o, procfs.o): Update dependencies.
10910 * inftarg.c (child_stop): Delete extern declaration of
10911 inferior_process_group. Include "inflow.h".
10912 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10913 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10914 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10915 (our_process_group, inferior_process_group): Extern declarations.
10916
df8f7274
AC
10917 * procfs.c: Include "gdb_assert.h".
10918
5cb316ef
AC
10919 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10920 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10921 * jv-typeprint.c (java_type_print_base): Ditto.
10922 * typeprint.c (typedef_print): Eliminate STREQ.
10923 * cli/cli-script.c (define_command, define_command): Ditto.
10924 * main.c (captured_main): Ditto.
10925 * values.c (lookup_internalvar): Ditto.
10926 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10927 within `if' conditional.
10928 * linespec.c (decode_line_2): Ditto.
10929 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10930 (bfd_openw_with_cleanup): Ditto.
10931
2a28ccea
MK
109322003-02-07 Mark Kettenis <kettenis@gnu.org>
10933
10934 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10935 legacy_extract_return_value and store_return_value to
10936 legacy_return_value.
10937
786b8124
CF
109382003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10939
10940 * win32-nat.c (get_relocated_section_addrs): New function. Find
10941 section load addresses for symbol handling in relocated DLLs.
10942 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10943
b871e4ec
FF
109442003-02-05 Fred Fish <fnf@intrinsity.com>
10945
10946 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10947 '=' and '!='.
10948 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10949 with '&' and '=='.
10950 (angel_RDI_info): Ditto.
10951 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10952 with '&' and '!='.
10953 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 10954
4389a95a 109552003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
10956 Keith Seitz <keiths@redhat.com>
10957 Elena Zannoni <ezannoni@redhat.com>
10958 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
10959
10960 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10961 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10962 (SUBDIR_MI_OBS): Add "mi-interp.o".
10963 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10964 (SFILES): Add "interps.c".
10965 (COMMON_OBS): Add "interps.o".
10966 (interps_h, mi_main_h): Define.
10967 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10968 (mi-main.o, main.o, event-top.o): Update dependencies.
10969 * cli/cli-interp.c: New file.
10970 * interps.h, interps.c: New files.
10971 * top.c: (gdb_init): Don't install the default interpreter, handed
10972 by captured_main.
10973 * main.c: Include "interps.h".
10974 (interpreter_p): Note that it should malloc'ed.
10975 (captured_command_loop): Call current_interp_command_loop.
10976 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10977 xfree and xstrdup when updating interpreter_p. Install the
10978 default interpreter. Add hack to stop mi1's copyright notice
10979 being encoded.
10980 * event-top.h (gdb_setup_readline): Declare.
10981 (gdb_disable_readline): Declare.
10982 * event-top.c: Include "interps.h".
10983 (display_gdb_prompt): Call current_interp_display_prompt_p.
10984 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10985 gdb_stdlog, and gdb_stdtarg.
10986 (_initialize_event_loop): Don't call gdb_setup_readline.
10987 * cli-out.c (cli_out_set_stream): New function.
10988 * cli-out.h (cli_out_set_stream): Declare.
10989
ff3b5810
MK
109902003-02-06 Mark Kettenis <kettenis@gnu.org>
10991
10992 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10993 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10994 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10995 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10996 config/i386/i386v42mp.mt: Removed.
10997
5b729aa5
MK
109982003-02-05 Mark Kettenis <kettenis@gnu.org>
10999
11000 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11001 GDB_OSABI_SOLARIS.
11002
8cc15142
MC
110032003-02-05 Michael Chastain <mec@shout.net>
11004
11005 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11006 2.12.1 and earlier versions.
11007
5aa5d4b9
AC
110082003-02-05 Andrew Cagney <ac131313@redhat.com>
11009
11010 Remove orphaned hosts, targets and files.
11011 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11012 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11013 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11014 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11015 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11016 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11017 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11018 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11019 * config/sparc/tm-sp64sim.h: Delete.
11020 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11021 hosts.
11022 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11023 mips*-dec-mach3* targets.
11024
b68767c1
MC
110252003-02-04 Michael Chastain <mec@shout.net>
11026
11027 * NEWS: Fix typo: sepcifying -> specifying.
11028
5ae7ca1d
MC
110292003-02-04 Michael Chastain <mec@shout.net>
11030
11031 * dwarfread.c: Add documentation on the state of dwarf-1,
11032 looking towards obsoletion.
11033
d08a4280
MC
110342003-02-03 Michael Chastain <mec@shout.net>
11035
11036 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11037 gdb/testsuite/gdb.c++/pr-1023.exp.
11038
e9be73e4
AC
110392003-02-04 Andrew Cagney <ac131313@redhat.com>
11040
11041 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11042 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11043
11044 * utils.c (init_page_info): Delete reference to MPW in comments.
11045 * main.c (captured_main): Delete #ifdef MPW.
11046
05d57f6f
AC
110472003-02-04 Andrew Cagney <ac131313@redhat.com>
11048
8ffd9b1b 11049 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11050 * monitor.c (monitor_expect): Obsolete reference to m32r.
11051 * configure.tgt: Mark m32r-*-elf* as obsolete.
11052 * MAINTAINERS: Mark m32k as obsolete.
11053 * m32r-rom.c: Obsolete file.
11054 * config/m32r/m32r.mt: Obsolete file.
11055 * config/m32r/tm-m32r.h: Obsolete file.
11056 * m32r-stub.c: Obsolete file.
11057 * m32r-tdep.c: Obsolete file.
11058
8b0e5691
AC
110592003-02-04 Andrew Cagney <ac131313@redhat.com>
11060
11061 * NEWS: Mention that the z8k-zilog-none is obsolete.
11062 * MAINTAINERS: Mark z8k as obsolete.
11063 * configure.tgt: Obsolete the z8k-*-coff* target.
11064 * config/z8k/z8k.mt: Obsolete file.
11065 * config/z8k/tm-z8k.h: Obsolete file.
11066 * z8k-tdep.c: Obsolete file.
11067
67f16606
AC
110682003-02-04 Andrew Cagney <ac131313@redhat.com>
11069
11070 * NEWS: Mention that the mn10200-elf is obsolete.
11071 * configure.tgt: Obsolete mn10200-*-* target.
11072 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11073 mention that the mn10200 is obsolete.
11074 * breakpoint.h: Ditto.
11075 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11076 * config/mn10200/mn10200.mt: Obsolete file.
11077 * config/mn10200/tm-mn10200.h: Obsolete file.
11078 * mn10200-tdep.c: Obsolete file.
11079
fd2299bd
AC
110802003-02-04 Andrew Cagney <ac131313@redhat.com>
11081
11082 * MAINTAINERS: Mark h8500 as obsolete.
11083 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11084 * findvar.c (value_from_register): Ditto.
11085 * h8500-tdep.c: Mark file as obsolete.
11086 * config/h8500/h8500.mt: Ditto.
11087 * config/h8500/tm-h8500.h: Ditto.
11088 * NEWS: Mention that h8500 is obsolete.
11089
eb9a305d
DC
110902003-02-04 David Carlton <carlton@math.stanford.edu>
11091
11092 * objfiles.c (allocate_objfile): Always set name. Add comment at
11093 start of function.
11094 * jv-lang.c (get_dynamics_objfile): Add comment.
11095
406fc7fb
DC
110962003-02-04 David Carlton <carlton@math.stanford.edu>
11097
11098 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11099 * printcmd.c (build_address_symbolic): Replace uses of
11100 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11101 SYMBOL_NAME, and asm_demangle.
11102 Update copyright.
11103
93d91629
DC
111042003-02-04 David Carlton <carlton@math.stanford.edu>
11105
11106 * linespec.c (decode_compound): Extract code into
11107 lookup_prefix_sym.
11108 (lookup_prefix_sym): New function.
11109
1c5cb38e
DC
111102003-02-04 David Carlton <carlton@math.stanford.edu>
11111
11112 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11113 FLOAT_COERCION_BADNESS.
11114 * gdbtypes.c (rank_one_type): Replace all uses of
11115 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11116
0cf824c9
JB
111172003-02-04 Jim Blandy <jimb@redhat.com>
11118
11119 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11120 section, let dwarf_macinfo_section point to it, not
11121 dwarf_loc_section.
11122
a2d356b0
DJ
111232003-02-04 Daniel Jacobowitz <drow@mvista.com>
11124
11125 Pointed out by Anton Blanchard <anton@samba.org>.
11126 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11127 (ppc_linux_at_sigtramp_return_path): Use it.
11128
2de7ced7
DJ
111292003-02-04 Daniel Jacobowitz <drow@mvista.com>
11130
11131 * defs.h (streq): Add prototype.
11132 * utils.c (streq): New function.
11133
11134 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11135 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11136 * mdebugread.c (new_symbol): Likewise.
11137 * stabsread.c (define_symbol): Likewise.
11138 * coffread.c (process_coff_symbol): Likewise.
11139 * dwarfread.c (new_symbol): Likewise.
11140
11141 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11142 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11143 here.
11144 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11145 SYMBOL_INIT_DEMANGLED_NAME.
11146 * objfiles.c: Include "hashtab.h".
11147 (allocate_objfile): Call htab_set_functions_ex for the
11148 demangled_names_hash.
11149 (free_objfile): Call htab_delete for the demangled_names_hash.
11150 * objfiles.h (struct htab): Add declaration.
11151 (struct objfile): Add demangled_names_hash.
11152 * symfile.c: Include "hashtab.h".
11153 (reread_symbols): Call htab_delete for the demangled_names_hash.
11154 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11155 SYMBOL_NAME in the bcache.
11156 * symtab.c: Include "hashtab.h". Update comments.
11157 (create_demangled_names_hash, symbol_set_names): New functions.
11158 (symbol_find_demangled_name): New function, broken out from
11159 symbol_init_demangled_names.
11160 (symbol_init_demangled_names): Use it.
11161 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11162 (SYMBOL_SET_NAMES): New macro.
11163 (symbol_set_names): Add prototype.
11164
15831452
JB
111652003-02-03 Jim Blandy <jimb@redhat.com>
11166
11167 Use a single, consistent representation for an empty minimal
11168 symbol table in an objfile.
11169 * objfiles.c (terminate_minimal_symbol_table): New function.
11170 (allocate_objfile): Call it.
11171 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11172 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11173 non-NULL.
15831452
JB
11174 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11175 objfile has minimal symbols, compare minimal_symbol_count to zero,
11176 instead of comparing msymbols with NULL.
11177 * objfiles.c (have_minimal_symbols): Same.
11178 * solib-sunos.c (solib_add_common_symbols): Call
11179 terminate_minimal_symbol_table.
11180 * symfile.c (reread_symbols): Same.
8ffd9b1b 11181
ffc65945
KB
111822003-02-03 Kevin Buettner <kevinb@redhat.com>
11183
11184 * s390-tdep.c (s390_address_class_type_flags)
11185 (s390_address_class_type_flags_to_name)
11186 (s390_address_class_name_to_type_flags): New functions.
11187 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11188 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11189
f211c6d4
MS
111902003-02-03 Michael Snyder <msnyder@redhat.com>
11191
11192 * arm-tdep.c: Fix spell-o in comment.
11193
659b0389
ML
111942003-02-03 Michal Ludvig <mludvig@suse.cz>
11195
11196 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11197 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11198 error messages to contain BFD filename.
659b0389 11199
3b31d625
EZ
112002003-02-02 Elena Zannoni <ezannoni@redhat.com>
11201
997b089a 11202 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11203 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11204 (do_mixed_source_and_assembly): Use
11205 make_cleanup_ui_out_tuple_begin_end and
11206 make_cleanup_ui_out_tuple_begin_end.
11207 (do_mixed_source_and_assembly): Ditto.
11208 * thread.c (do_captured_list_thread_ids): Ditto.
11209 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11210 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11211 ui_out_tuple_end): Delete prototypes.
11212 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11213 ui_out_list_end, ui_out_tuple_end): Delete.
11214
11215 From Kevin Buettner <kevinb@redhat.com>:
11216 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11217 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11218 (do_cleanup_table_end): New functions.
11219 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11220 Use cleanups to invoke_ui_out_tuple_end().
11221 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11222 * cli/cli-setshow.c (cmd_show_list): Use
11223 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11224
5b181d62
AC
112252003-02-02 Andrew Cagney <ac131313@redhat.com>
11226
11227 * frame.c (frame_unwind_register): New function.
11228 (frame_unwind_unsigned_register): Use.
11229 (frame_unwind_signed_register): Use.
11230 (frame_read_register): New function.
11231 * frame.h (frame_unwind_register): Declare.
11232 (frame_read_register): Declare.
11233
11234 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11235 and frame_unwind_register instead of read_memory, write_register
11236 and deprecated_write_register_bytes.
11237
5f601589
AC
112382003-02-02 Andrew Cagney <ac131313@redhat.com>
11239
11240 * frame.h: Note that namelen can be negative.
11241 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11242 NAME's length.
11243
11244 * NEWS: Mention that the d10v's `regs' command is deprecated.
11245 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11246 (d10v_print_registers_info): New function.
11247 (show_regs): Call d10v_print_registers_info.
11248 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11249
6a3fe0a4
MK
112502003-02-02 Mark Kettenis <kettenis@gnu.org>
11251
11252 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11253 lost in the previous patch.
11254
075559bc
AC
112552003-02-01 Andrew Cagney <ac131313@redhat.com>
11256
11257 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11258 * stack.c (print_frame_info_base): Output complete FRAME tuple
11259 for synthesized frames.
075559bc 11260
6789195b
AC
112612003-02-02 Andrew Cagney <ac131313@redhat.com>
11262
11263 * mips-nat.c (zerobuf): Delete.
11264 (fetch_inferior_registers): Alloc local zerobuf.
11265 (fetch_core_registers): Alloc local zerobuf.
11266 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11267 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11268 * thread-db.c (thread_db_store_registers): Ditto.
11269 * sh-tdep.c (sh_do_register): Ditto.
11270 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11271 * remote-sim.c (gdbsim_store_register): Ditto.
11272 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11273 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11274 * monitor.c (monitor_supply_register): Ditto.
11275 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11276 * mips-nat.c (fetch_inferior_registers): Ditto.
11277 * m68klinux-nat.c (fetch_register): Ditto.
11278 * lynx-nat.c (fetch_inferior_registers): Ditto.
11279 (fetch_inferior_registers): Ditto.
11280 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11281 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11282 (hpux_thread_store_registers): Ditto.
11283 * hppah-nat.c (fetch_register): Ditto.
11284 * hppab-nat.c (fetch_register): Ditto.
11285 * hppa-tdep.c (pa_register_look_aside): Ditto.
11286 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11287 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11288
e669114a
AC
112892003-02-01 Andrew Cagney <ac131313@redhat.com>
11290
11291 * gdbarch.sh: Explictly specify all method levels. When a
11292 variable with an empty level, provide a non-multi-arch default.
11293 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11294 * gdbarch.h: Re-generate.
11295 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11296 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11297
9a043c1d
AC
112982003-02-01 Andrew Cagney <ac131313@redhat.com>
11299
11300 * defs.h (host_pointer_to_address): Delete declaration.
11301 (address_to_host_pointer): Delete declaration.
11302 * utils.c (host_pointer_to_address): Delete function.
11303 (address_to_host_pointer): Delete function.
11304 * procfs.c (procfs_address_to_host_pointer): New function.
11305 * procfs.c (proc_set_watchpoint): Use.
11306 (procfs_can_use_hw_breakpoint): Update comments.
11307 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11308 (som_solib_add): Use.
11309 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11310 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11311
7ca9f392
AC
113122003-02-01 Andrew Cagney <ac131313@redhat.com>
11313
94bbfd30
AC
11314 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11315 strlen d_name.
11316
7ca9f392
AC
11317 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11318 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11319 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11320 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11321 (define_symbol): Update.
11322 * symfile.c (generic_load): Remove references to nindy.
11323 * symtab.c: Remove references to nindy.
11324
31a85ea2
AC
113252003-02-01 Andrew Cagney <ac131313@redhat.com>
11326
11327 * infcmd.c (print_float_info): Delete code conditional on
11328 FLOAT_INFO.
11329 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11330 * config/m68k/nm-apollo68b.h: Ditto.
11331 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11332 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11333 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11334
f6e85fc8
MK
113352003-02-01 Mark Kettenis <kettenis@gnu.org>
11336
6015b6a0
MK
11337 * config/i386/tm-i386os9k.h: Removed.
11338
f7a30bdf
MK
11339 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11340 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11341 they're identical to i[3456]86-*-sysv* now.
11342 * config/i386/i386v32.mh: Removed.
11343 * config/i386/xm-i386v32.h: Removed.
11344 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11345
28d52111
MK
11346 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11347
4d3f6bce
MK
11348 * config/i386/i386dgux.mh: Removed.
11349 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11350
f6e85fc8
MK
11351 * configure.in: Fix typo.
11352 * configure: Regenerated.
11353
53955967
DC
113542003-01-31 David Carlton <carlton@math.stanford.edu>
11355
11356 * dwarf2read.c (dwarf2_locate_sections): Set
11357 dwarf_ranges_section.
11358
b1364885
AC
113592003-01-31 Andrew Cagney <ac131313@redhat.com>
11360
8dbb1c65
AC
11361 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11362 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11363
8731e58e
AC
11364 * utils.c: Re-indent.
11365
b1364885
AC
11366 * config/djgpp/fnchange.lst: Delete nindy files.
11367 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11368 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11369 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11370 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11371 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11372 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11373 * Makefile.in (init.c): Remove nindy references.
11374 (saber_gdb): Delete rule.
11375 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11376 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11377 and a68v-nat.c.
11378 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11379 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11380 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11381 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11382 nindy-share/stop.h.
11383 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11384 * saber.suppress: Delete file.
11385
086df311
DJ
113862003-01-31 Daniel Jacobowitz <drow@mvista.com>
11387
11388 * dbxread.c (stabs_data): New static variable.
11389 (fill_symbuf): Support an in-memory buffer for stabs data.
11390 (stabs_seek): New function.
11391 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11392 (read_ofile_symtab): Use stabs_seek.
11393 (elfstab_build_psymtabs): Take an asection* instead of
11394 an offset and size. Relocate the stabs data if necessary.
11395 Save the section* for dbx_psymtab_to_symtab.
11396 * dwarf2read.c: Add section variables for each debug section.
11397 (dwarf2_locate_sections): Fill them in.
11398 (dwarf2_read_section): Take an asection* argument.
11399 Relocate the section contents if necessary.
11400 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11401 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11402 it to dwarf2_read_section.
11403 (dwarf2_build_frame_info): Update callers.
11404 * elfread.c (elf_symfile_read): Update call to
11405 elfstab_build_psymtabs.
11406 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11407 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11408 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11409 * symfile.c (symfile_dummy_outputs): New function.
11410 (symfile_relocate_debug_section): New function.
11411 * symfile.h (symfile_relocate_debug_section): Add prototype.
11412
87d1b352
RH
114132003-01-31 Richard Henderson <rth@redhat.com>
11414
11415 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11416 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11417 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11418 * alpha-tdep.c (alpha_register_name): Add "unique".
11419 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11420 (ALPHA_UNIQUE_REGNUM): New.
11421 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11422
c48861fb
AC
114232003-01-31 Andrew Cagney <ac131313@redhat.com>
11424
11425 * README: Remove reference to Ericsson 1800 monitor.
11426 * Makefile.in (remote-es.o): Delete rule.
11427 (ALLDEPFILES): Delete remote-es.c.
11428 * remote-es.c: Delete file.
11429 * config/m68k/es1800.mt: Delete file.
11430 * config/djgpp/fnchange.lst: Update.
11431 * configure.tgt: Delete m68*-ericsson-* target.
11432
d764a824
AF
114332003-01-31 Adam Fedor <fedor@gnu.org>
11434
11435 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11436 Remove duplicate/shadowing variable of same name.
11437
fe36c4f4
JB
114382003-01-30 Jim Blandy <jimb@redhat.com>
11439
11440 * symfile.c (find_separate_debug_file): Assert that the objfile's
11441 directory name we compute ends with a slash, and then assume that
11442 that's so everywhere we use it.
11443
cb741690
DJ
114442003-01-30 Daniel Jacobowitz <drow@mvista.com>
11445
11446 * valops.c (value_assign): Flush frame cache after stores to memory
11447 also.
11448
96ee5227
AC
114492003-01-30 Andrew Cagney <ac131313@redhat.com>
11450
11451 * Makefile.in (mon960-rom.o): Delete rule.
11452 * mon960-rom.c: Delete file.
11453
7f6104a9
AC
114542003-01-30 Andrew Cagney <ac131313@redhat.com>
11455
11456 * d10v-tdep.c: Include "frame-unwind.h".
11457 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11458 list.
11459 (next_addr, uses_frame): Delete.
11460 (struct d10v_unwind_cache): Define.
11461 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11462 Use info instead of next_addr and uses_frame globals.
11463 (d10v_frame_init_saved_regs): Delete function.
11464 (d10v_init_extra_frame_info): Delete function.
11465 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11466 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11467 init_frame_pc or frame_saved_pc.
11468 (d10v_pop_frame): Delete function.
11469 (do_d10v_pop_frame): Delete function.
11470 (d10v_frame_chain): Delete function.
11471 (d10v_frame_chain_valid): Delete function.
11472 (d10v_frame_pc_unwind): New function.
11473 (d10v_frame_id_unwind): New function.
11474 (saved_regs_unwinder): New function.
11475 (d10v_frame_register_unwind): New function.
11476 (d10v_frame_pop): New function.
11477 (d10v_frame_unwind): New variable.
11478 (d10v_frame_p): New function.
11479 (d10v_frame_saved_pc): Delete function.
11480 * Makefile.in (d10v-tdep.o): Update dependencies.
11481
cad2e848
JB
114822003-01-30 J. Brobecker <brobecker@gnat.com>
11483
11484 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11485 causing some regressions due to a change in the default value
11486 for this macro.
11487
af34e669
DJ
114882003-01-29 Richard Henderson <rth@redhat.com>
11489 Elena Zannoni <ezannoni@redhat.com>
11490 Daniel Jacobowitz <drow@mvista.com>
11491
11492 Fix PR gdb/961.
8ffd9b1b 11493 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11494 variables.
11495 (RANGES_SECTION): New.
11496 (dwarf_ranges_buffer): New variable.
11497 (struct comp_unit_head): Add member "die".
11498 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11499 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11500 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11501 (dwarf2_locate_sections): Likewise.
11502 (dwarf2_build_psymtabs): Read .debug_ranges.
11503 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11504 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11505 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11506 Look for DW_AT_ranges and return the bounding box.
11507
baa93fa6
CF
115082003-01-29 Brian Ford <ford@vss.fsi.com>
11509
11510 * win32-nat.c (cygwin_pid): Removed as unused.
11511 (child_attach): Try fall back to Cygwin pid.
11512
c63f977f
JB
115132003-01-29 Jim Blandy <jimb@redhat.com>
11514
11515 * objfiles.h (struct objfile): Doc fix.
11516
d62d1979
AC
115172003-01-29 Andrew Cagney <ac131313@redhat.com>
11518
11519 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11520 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11521 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11522 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11523 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11524 (FRAME_SAVED_PC): Change to a function with predicate.
11525 * gdbarch.h, gdbarch.c: Re-generate.
11526
1ae18a04
AC
115272003-01-28 Andrew Cagney <ac131313@redhat.com>
11528
52287340
AC
11529 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11530
1ae18a04
AC
11531 * complaints.c (complain): Delete function.
11532 * complaints.h (struct deprecated_complaint): Delete definition.
11533 (complain): Delete declaration.
11534
f2c16bd6
KB
115352003-01-28 Kevin Buettner <kevinb@redhat.com>
11536
11537 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11538 dummy frames.
11539
a94dd1fd
AC
115402003-01-27 Andrew Cagney <ac131313@redhat.com>
11541
11542 * sentinel-frame.h, sentinel-frame.c: New files.
11543 * Makefile.in (frame.o): Update dependencies.
11544 (SFILES): Add sentinel-frame.c.
11545 (sentinel_frame_h): Define.
11546 (COMMON_OBS): Add sentinel-frame.o.
11547 (sentinel-frame.o): Specify dependencies.
11548 * frame.c: Include "sentinel-frame.h".
11549 (frame_register_unwind): Rewrite assuming that there is always a a
11550 ->next frame.
11551 (frame_register, generic_unwind_get_saved_register): Ditto.
11552 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11553 (create_sentinel_frame, unwind_to_current_frame): New functions.
11554 (get_current_frame): Rewrite using create_sentinel_frame and
11555 unwind_to_current_frame. When possible, always create a frame.
11556 (create_new_frame): Set next to the sentinel frame.
11557 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11558 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11559 ID cache when necessary.
11560 (frame_saved_regs_id_unwind): Use frame_relative_level.
11561 (deprecated_generic_get_saved_register): Use frame_relative_level,
11562 get_frame_saved_regs, get_frame_pc, get_frame_base and
11563 get_next_frame.
11564 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11565 frame_register.
11566
5378adc4
DJ
115672003-01-27 Daniel Jacobowitz <drow@mvista.com>
11568
11569 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11570
51ee2ddc
DJ
115712003-01-27 Daniel Jacobowitz <drow@mvista.com>
11572
11573 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11574 (maintenance_set_profile_cmd): Use error () instead of warning ().
11575
d9feb4e7
DJ
115762003-01-27 Daniel Jacobowitz <drow@mvista.com>
11577
11578 * configure.in: Check that -pg works if using --enable-profiling.
11579 Check for monstartup and _mcleanup regardless of --enable-profiling.
11580 * maint.c: Check for monstartup and _mcleanup before using them.
11581 * config.in: Regenerated.
11582 * configure: Regenerated.
11583
2d188dd3
NC
115842003-01-24 Nick Clifton <nickc@redhat.com>
11585
11586 * Add sh2e support:
11587
11588 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11589
11590 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11591 (sh2e_show_regs): New.
11592 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11593 * config/sh/tm-sh.h: Added sh2e to comments.
11594
cb3c37b2
JB
115952003-01-23 Jim Blandy <jimb@redhat.com>
11596
11597 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11598 symbols found)" message here; we haven't checked for a separate
11599 debug info file yet, so we don't know yet.
11600 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11601 we've looked everywhere. Also, there's no need to print a special
11602 message when we're loading the separate debug info file: the one
11603 symbol_file_add prints is fine.
11604
5b5d99cf
JB
116052003-01-23 Alexander Larsson <alexl@redhat.com>
11606 Jim Blandy <jimb@redhat.com>
11607
11608 Add support for executables whose debug info has been separated
11609 out into a separate file, leaving only a link behind.
11610 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11611 and separate_debug_objfile_backlink.
11612 (put_objfile_before): New declaration.
11613 * symfile.c: #include "filenames.h".
11614 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11615 debug info in a separate file, read that, too. Save the addrs
11616 argument, so we can use it again to read the separated debug info;
11617 syms_from_objfile modifies the table we pass it.
11618 (reread_symbols): After re-reading an objfile, call
11619 reread_separate_symbols to refresh its separate debug info
11620 objfile, if it has one.
11621 (reread_separate_symbols, find_separate_debug_file,
11622 get_debug_link_info, separate_debug_file_exists): New functions.
11623 (debug_file_directory): New global var.
11624 (_initialize_symfile): Initialize debug_file_directory, and
11625 provide the new `set debug-file-directory' command to let the user
11626 change it.
11627 * objfiles.c (free_objfile): If this objfile has its debug info in
11628 a separate objfile, free that one too. If this is itself a
11629 separate debug info objfile, clear our parent's backlink.
11630 (put_objfile_before): New function.
11631 * utils.c (gnu_debuglink_crc32): New function.
11632 * defs.h (gnu_debuglink_crc32): New declaration.
11633 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11634 * configure.in: Handle --with-separate-debug-dir config option.
11635 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11636 * acconfig.h (DEBUGDIR): New macro.
11637 * configure, aclocal.m4, config.in: Regenerated.
11638
7e8580c1
JB
116392003-01-22 Jim Blandy <jimb@redhat.com>
11640
7904e09f
JB
11641 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11642 like the old symbol_file_add, but taking new arguments: you can
11643 now pass in either a `struct section_addr_info' list to say where
11644 each section is loaded, or a `struct section_offsets' table. Pass
11645 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11646 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11647 with the appropriate quiescent values for the new arguments.
11648
7e8580c1
JB
11649 * symfile.c: #include "gdb_assert.h".
11650 (syms_from_objfile): Add the ability to pass in a section offset
11651 table directly, as an alternative to the section_addr_info table.
11652 Document arguments better.
11653 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11654 * symfile.h (syms_from_objfile): Update declaration.
11655 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11656 syms_from_objfile.
11657 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11658
d28f9cdf
DJ
116592003-01-22 Daniel Jacobowitz <drow@mvista.com>
11660
11661 Original patch by Tom Tromey <tromey@cygnus.com> and
11662 Jason Molenda <jmolenda@apple.com>.
11663 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11664 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11665 * NEWS: Mention profiling.
11666 * configure.in (--enable-gdbtk): Fix typo.
11667 (--enable-profiling): New. Set PROFILE_CFLAGS.
11668 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11669 Fill in function.
11670 (profiling_state): New variable.
11671 (mcleanup_wrapper): New function.
11672 (_initialize_maint): Remove NOTYET, fix call to
11673 add_setshow_boolean_cmd for "maint set profile".
11674 * configure: Regenerated.
11675
df21e465
MH
116762003-01-21 Martin M. Hunt <hunt@redhat.com>
11677
11678 * Makefile.in (install-gdbtk): Install PNG images too.
11679
73c1f219
AC
116802003-01-21 Andrew Cagney <ac131313@redhat.com>
11681
11682 * exec.c (text_start): Delete global variable.
11683 (exec_file_attach): Make text_start local to the function.
11684 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11685 * valops.c (hand_function_call): Delete code that handles
11686 BEFORE_TEXT_END and AFTER_TEXT_END.
11687 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11688 of CALL_DUMMY_LOCATION.
11689 * gdbarch.c: Regenerate.
11690 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11691 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11692 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11693 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11694 (text_end): Delete extern declaration.
11695
eb4f72c5
AC
116962003-01-21 Andrew Cagney <ac131313@redhat.com>
11697
11698 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11699 * blockframe.c (backtrace_below_main): Move to "frame.c".
11700 (frame_chain_valid): Delete check for backtrace_below_main.
11701 (_initialize_blockframe): Delete initialization, move ``set
11702 backtrace-below-main'' command to "frame.c".
11703 (do_flush_frames_sfunc): Delete function.
11704 * frame.c: Include "command.h" and "gdbcmd.h".
11705 (frame_type_from_pc): New function.
11706 (create_new_frame): Use frame_type_from_pc.
11707 (legacy_get_prev_frame): New function.
11708 (get_prev_frame): Rewrite. When an old style frame, call
11709 legacy_get_prev_frame. Otherwize, unwind the PC first.
11710 (_initialize_frame): Add ``set backtrace-below-main'' command.
11711 * Makefile.in (frame.o): Update dependencies.
11712
778ce8cc
AC
117132003-01-19 Andrew Cagney <ac131313@redhat.com>
11714
11715 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11716 DEPRECATED_REGISTERS_INFO.
11717
01c193c8
AC
117182003-01-19 Andrew Cagney <ac131313@redhat.com>
11719
11720 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11721 Maintainers'. Update `Various Maintainers'.
11722
dedc2a2b
AC
117232003-01-19 Andrew Cagney <ac131313@redhat.com>
11724
11725 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11726 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11727 Suppress actual parameters when `-'.
11728 * gdbarch.h, gdbarch.c: Regenerate.
11729
b7261c70
AC
117302003-01-19 Andrew Cagney <ac131313@redhat.com>
11731
11732 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11733 code handling dummy frames.
11734
dbe9fe58
AC
117352003-01-19 Andrew Cagney <ac131313@redhat.com>
11736
11737 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11738 (struct frame_unwind): Add field pop.
11739 * frame.h (frame_pop): Declare.
11740 * frame.c (frame_saved_regs_pop): New function.
11741 (trad_frame_unwinder): Add frame_saved_regs_pop.
11742 (frame_pop): New function.
11743 * dummy-frame.c (dummy_frame_pop): New function.
11744 (discard_innermost_dummy): New function.
11745 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11746 (dummy_frame_unwind): Add dummy_frame_pop.
11747 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11748 * valops.c (hand_function_call): Ditto.
11749 * stack.c (return_command): Ditto.
11750
570b8f7c
AC
117512003-01-18 Andrew Cagney <ac131313@redhat.com>
11752
11753 * cris-tdep.c: Fix function declaration indentation.
11754 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11755 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11756 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11757 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11758 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11759 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11760
117612003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11762
11763 * README (Unpacking and Installation -- quick overview):
11764 Warn against ".../gdb-5.3/gdb/configure".
11765
494cca16
AC
117662003-01-18 Andrew Cagney <ac131313@redhat.com>
11767
11768 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11769 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11770 (struct frame_unwind): Declare opaque.
11771 (dummy_frame_p): Declare function.
11772 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11773 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11774 * dummy-frame.c: Include "frame-unwind.h".
11775 (dummy_frame_p): New function.
11776 (dummy_frame_unwind): New variable.
11777 * frame.c: Include "frame-unwind.h".
11778 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11779 to use the new unwind field.
11780 (set_unwind_by_pc): Delete function.
11781 (create_new_frame, get_prev_frame): Set unwind field using
11782 frame_unwind_find_by_pc.
11783 (trad_frame_unwind, trad_frame_unwinder): New variables.
11784 * frame.h (trad_frame_unwind): Declare variable.
11785 (frame_id_unwind_ftype): Delete declaration.
11786 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11787 (struct frame_unwind): Declare opaque.
11788 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11789 register_unwind with a single unwind pointer.
11790 * frame-unwind.h, frame-unwind.c: New files.
11791 * Makefile.in (SFILES): Add frame-unwind.c.
11792 (frame_unwind_h): Define.
11793 (COMMON_OBS): Add frame-unwind.o.
11794 (frame-unwind.o): Specify dependencies.
11795 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11796
4efb68b1
AC
117972003-01-18 Andrew Cagney <ac131313@redhat.com>
11798
11799 * ada-valprint.c: Eliminate PTR.
11800 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11801 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11802 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11803 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11804 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11805 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11806 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11807
a84d24ee
AC
118082003-01-17 Andrew Cagney <ac131313@redhat.com>
11809
762f08a3
AC
11810 * main.c (captured_main): Don't use PTR.
11811 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11812 * gdbtypes.c (lookup_primitive_typename): Ditto.
11813 (lookup_struct_elt_type): Ditto.
11814 * f-valprint.c (info_common_command): Ditto.
11815 (list_all_visible_commons): Ditto.
11816 * jv-typeprint.c (java_type_print_base): Ditto.
11817
a84d24ee
AC
11818 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11819 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11820 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11821 i386-interix-nat.c and i386-interix-tdep.c. Rename
11822 m68klinux-nat.c and m68klinux-tdep.c. Rename
11823 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11824 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11825 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11826 * main.c (captured_main): Use xfree, not free.
11827
c170fb60
AC
118282003-01-16 Andrew Cagney <ac131313@redhat.com>
11829
11830 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11831 ID back using a parameter.
11832 * frame.c (frame_id_unwind): Update call.
11833 (frame_saved_regs_id_unwind): Update.
11834 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11835 * dummy-frame.h (struct frame_id): Add opaque declaration.
11836 (dummy_frame_id_unwind): Update declaration.
11837
867f3898
AC
118382003-01-15 Andrew Cagney <ac131313@redhat.com>
11839
11840 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11841
40622be8 118422003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11843
40622be8 11844 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11845
ae66c1fc
EZ
118462003-01-14 Elena Zannoni <ezannoni@redhat.com>
11847
997b089a 11848 Fix PR gdb/898
ae66c1fc
EZ
11849 * breakpoint.c (until_break_command): Add new argument. Use it to
11850 decide whether to stop only at the current frame or not.
11851 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11852 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11853 call.
11854 (advance_command): New function.
11855 (_initialize_infcmd): Update help string for 'until' command.
11856 Add new 'advance' command.
11857
a04257e6
DC
118582003-01-14 David Carlton <carlton@math.stanford.edu>
11859
11860 * linespec.c (decode_line_1): Normalize comments.
11861 (set_flags): Ditto.
11862 (locate_first_half): Ditto.
11863 (decode_compound): Ditto.
11864 (symtab_from_filename): Ditto.
11865 (decode_all_digits): Ditto.
11866 (decode_dollar): Ditto.
11867 (find_methods): Ditto.
11868 (find_toplevel_char): Ditto.
11869
1bac305b
AC
118702003-01-13 Andrew Cagney <ac131313@redhat.com>
11871
11872 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11873 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11874 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11875 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11876 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11877 * language.c, language.h, m32r-tdep.c: Update copyright.
11878 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11879 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11880 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11881 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11882 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11883 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11884
25caa7a8
EZ
118852003-01-13 Elena Zannoni <ezannoni@redhat.com>
11886
11887 * stabsread.h (process_later, resolve_cfront_continuation):
11888 Obsolete.
11889 Update copyright years.
11890 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11891 Update copyright year.
11892 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11893 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11894 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11895 Update copyright year.
11896 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11897 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11898 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11899 (parse_partial_symbols): Obsolete cfront support.
11900 * stabsread.c
11901 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11902 macros.
11903 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11904 read_cfront_baseclasses, read_cfront_member_functions,
11905 resolve_cfront_continuation,read_cfront_static_fields,
11906 copy_cfront_struct_fields): Obsolete functions.
11907 (define_symbol, read_one_struct_field): Obsolete cfront support.
11908 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11909 Update Copyright year.
11910
7789c6f5
EZ
119112003-01-13 Elena Zannoni <ezannoni@redhat.com>
11912
11913 * stack.c (print_frame_info, print_stack_frame_base_stub,
11914 print_stack_frame_base, show_and_print_stack_frame_stub,
11915 show_and_print_stack_frame, print_only_stack_frame_stub,
11916 print_only_stack_frame): Delete functions.
11917 (print_stack_frame_stub): Call print_frame_info instead of
11918 print_frame_info_base.
11919 (print_frame_info_base): Rename to print_frame_info.
11920 (backtrace_command_1): Call print_frame_info, instead of
11921 print_frame_info_base.
11922 (current_frame_command): Call print_stack_frame, instead of
11923 print_only_stack_frame.
11924 (frame_command): Call print_stack_frame, instead of
11925 show_and_print_stack_frame.
11926 (up_command): Ditto.
11927 (down_command): Ditto.
11928 * frame.h (print_only_stack_frame): Delete prototype.
11929 * infrun.c (normal_stop): Call print_stack_frame, instead of
11930 show_and_print_stack_frame.
11931 * thread.c (info_threads_command): Call print_stack_frame, instead
11932 of print_only_stack_frame.
11933
3f5a3016
AC
119342003-01-13 Andrew Cagney <ac131313@redhat.com>
11935
d99ba314
AC
11936 * README (Graphical interface to GDB): Update URL. Point at
11937 gdb/links/.
11938
3f5a3016
AC
11939 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11940 version match.
11941
083ae935
DJ
119422003-01-13 Daniel Jacobowitz <drow@mvista.com>
11943
11944 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11945 lines.
11946
5365276c
DJ
119472003-01-13 Daniel Jacobowitz <drow@mvista.com>
11948
11949 * thread-db.c (attach_thread): Prototype.
11950 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11951 thread information (ti), and valid flags (th_valid, ti_valid).
11952 (attach_thread): Move target_pid_to_str call to after the thread
11953 is added to GDB's list. Initialize the cache.
11954 (thread_get_info_callback, thread_db_map_id2thr)
11955 (thread_db_get_info): New functions.
11956 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11957 (thread_db_store_registers, thread_db_thread_alive)
11958 (thread_db_get_thread_local_address): Use them.
11959 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11960 of calling error() for threads in unknown state.
11961
11962 (clear_lwpid_callback): New function.
11963 (thread_db_resume): Use it to clear the cache.
11964
9fc30b6b
DJ
119652003-01-13 Daniel Jacobowitz <drow@mvista.com>
11966
11967 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11968 (resume_callback): Remove dead code.
11969
8f871025
AC
119702003-01-13 Andrew Cagney <ac131313@redhat.com>
11971
11972 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11973 predicate.
11974 * gdbarch.h, gdbarch.c: Regenerate.
11975 * stack.c (frame_info): Only initialize the saved registers when
11976 FRAME_INIT_SAVED_REGS_P.
11977 * frame.c (frame_saved_regs_register_unwind): Assert
11978 FRAME_INIT_SAVED_REGS_P.
11979 (deprecated_generic_get_saved_register): Ditto.
11980
3f565f1e
DJ
119812003-01-13 Daniel Jacobowitz <drow@mvista.com>
11982
11983 * source.c (openp): Squelch warning about "filename".
11984
072b1022
DJ
119852003-01-13 Daniel Jacobowitz <drow@mvista.com>
11986
11987 * source.c (openp): If the file does not exist don't necessarily
11988 search the path.
11989
973ccf8b
DJ
119902003-01-13 Daniel Jacobowitz <drow@mvista.com>
11991
11992 Fix PR gdb/872.
11993 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11994 (integer_types_same_name_p): New function.
11995 (rank_one_type): Use it.
11996 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11997
030292b7
DJ
119982003-01-13 Daniel Jacobowitz <drow@mvista.com>
11999
12000 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12001 variables.
12002 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12003 * configure.in: Add --with-sysroot.
12004 * configure: Regenerated.
12005 * main.c (gdb_sysroot): New variable.
12006 (captured_main): Initialize gdb_sysroot.
12007 * defs.h (gdb_sysroot): New extern declaration.
12008 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12009
afb5d334
MC
120102003-01-12 Michael Chastain <mec@shout.net>
12011
12012 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12013
751ceeb4
MC
120142003-01-12 Michael Chastain <mec@shout.net>
12015
12016 * top.c (print_gdb_version): Bump copyright year to 2003.
12017
94cd26f8
DC
120182003-01-12 David Carlton <carlton@bactrian.org>
12019
12020 * linespec.c (symtab_from_filename): Rename variable 's' to
12021 'file_symtab'.
12022
1ce79225
AC
120232003-01-12 Andrew Cagney <ac131313@redhat.com>
12024
12025 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12026 dummy frame.
12027 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12028
fa1fd571
AC
120292003-01-12 Andrew Cagney <ac131313@redhat.com>
12030
12031 * d10v-tdep.c: Include "gdb_assert.h".
12032 (d10v_store_return_value): Rewrite to match current interface.
12033 (d10v_extract_struct_value_address): Ditto.
12034 (d10v_extract_return_value): Ditto.
12035 (d10v_gdbarch_init): Set store_restore_value,
12036 extract_struct_value_address and extract_return_value.
12037
68b8d23e
JB
120382003-01-12 J. Brobecker <brobecker@gnat.com>
12039
12040 * hpread.c (set_namestring): New procedure replacing the
12041 SET_NAMESTRING macro.
12042 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12043 by calls to set_namestring.
12044
120452003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12046
12047 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12048 a compilation warning.
12049 (hpread_process_one_debug_symbol): Likewise.
12050
88d262ca
DC
120512003-01-10 David Carlton <carlton@math.stanford.edu>
12052
12053 * linespec.c (decode_line_1): Rename variable 's' to
12054 'file_symtab'.
12055 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12056 (decode_dollar): Ditto.
12057 (decode_variable): Ditto.
12058 (symbol_found): Ditto.
12059
86669319
MC
120602003-01-09 Michael Chastain <mec@shout.net>
12061
12062 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12063
616a9dc4
CV
120642003-01-07 Corinna Vinschen <vinschen@redhat.com>
12065
12066 * win32-nat.c (set_process_privilege): New function.
12067 (child_attach): Call set_process_privilege() to enable the
12068 SE_DEBUG_NAME user privilege if available in process token.
12069
3269bcfa
JB
120702003-01-10 J. Brobecker <brobecker@gnat.com>
12071
12072 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12073 compilation error in the previous revision.
12074
2b0ee454
DC
120752003-01-09 David Carlton <carlton@math.stanford.edu>
12076
12077 * linespec.c: Update copyright.
12078
b3ba1b44
DJ
120792003-01-09 Daniel Jacobowitz <drow@mvista.com>
12080
12081 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12082 than inferior_ptid.
12083 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12084
4ef3f3be
AC
120852003-01-09 Andrew Cagney <ac131313@redhat.com>
12086
479ab5a0
AC
12087 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12088 Update comments.
12089 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12090 (frame_saved_regs_zalloc): Update.
12091 (frame_saved_regs_register_unwind): Update.
12092 (create_new_frame): Update.
12093 (get_prev_frame): Update.
12094 (frame_extra_info_zalloc): Update.
12095 (deprecated_get_frame_saved_regs): Update.
12096 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12097 * cris-tdep.c: Update comment.
12098
bde58177
AC
12099 * somsolib.h: Fix function indentation.
12100 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12101 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12102 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12103 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12104 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12105
4ef3f3be
AC
12106 * infrun.c (follow_fork): Use ISO C definition.
12107 * expprint.c (print_subexp): Use xfree instead of free.
12108 * charset.c: Include "gdb_string.h" instead of <string.h>.
12109 (register_iconv_charsets): Use ISO C definition.
12110 (host_charset, target_charset): Ditto.
12111 * Makefile.in (charset.o): Update dependencies.
12112 (mi-cmd-env.o): Update dependencies.
12113
1c615f7a
AC
121142003-01-08 Andrew Cagney <cagney@redhat.com>
12115
12116 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12117 get_frame_base.
12118
c9a1dc08
AC
121192003-01-08 Andrew Cagney <ac131313@redhat.com>
12120
12121 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12122 build directories. Save edited gdb output in Mbuild.log. If a
12123 build fails, remove any final GDB executable.
12124
dbad9d94
AC
121252003-01-08 Andrew Cagney <ac131313@redhat.com>
12126
12127 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12128 replacing hex constants with function names and stripping leading
12129 file name directory prefixes.
12130
8d357cca
AC
121312003-01-08 Andrew Cagney <cagney@redhat.com>
12132
12133 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12134 get_frame_base.
12135
bca02a8a
DC
121362003-01-08 David Carlton <carlton@math.stanford.edu>
12137
12138 * linespec.c (decode_line_1): Move code into decode_variable.
12139 (decode_variable): New function.
12140
7f8ab3a0
AC
121412003-01-08 Andrew Cagney <ac131313@redhat.com>
12142
12143 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12144
7b5849cc
AC
121452003-01-08 Andrew Cagney <cagney@redhat.com>
12146
12147 * cris-tdep.c (cris_frame_init_saved_regs): Use
12148 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12149 saved_regs buffer.
12150 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12151 (sh64_nofp_frame_init_saved_regs): Ditto.
12152 (sh_fp_frame_init_saved_regs): Ditto.
12153 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12154 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12155 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12156 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12157
72a5efb3
DJ
121582003-01-08 Daniel Jacobowitz <drow@mvista.com>
12159
12160 * minsyms.c (lookup_minimal_symbol): Update comment.
12161 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12162 (lookup_minimal_symbol_solib_trampoline): Likewise.
12163
11c02a10
AC
121642003-01-08 Andrew Cagney <cagney@redhat.com>
12165
aab3ea25
AC
12166 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12167 frame_relative_level.
12168
da50a4b7
AC
12169 * alpha-tdep.c: Use get_frame_extra_info.
12170 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12171 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12172 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12173 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12174
11c02a10
AC
12175 * alpha-tdep.c: Use get_next_frame.
12176 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12177 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12178 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12179 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12180 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12181 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12182 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12183
1e2330ba
AC
121842003-01-07 Andrew Cagney <cagney@redhat.com>
12185
12186 * alpha-tdep.c: Use get_frame_base.
12187 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12188 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12189 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12190 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12191 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12192 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12193 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12194 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12195
2d75187b
AC
121962003-01-07 Andrew Cagney <cagney@redhat.com>
12197
12198 * frame.c (deprecated_get_frame_context): New function.
12199 (deprecated_set_frame_context): New function.
12200 * frame.h (deprecated_get_frame_context): Declare.
12201 (deprecated_set_frame_context): Declare.
12202 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12203 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12204
483d36b2
AC
122052003-01-07 Andrew Cagney <cagney@redhat.com>
12206
12207 * frame.c (deprecated_set_frame_next_hack): New function.
12208 (deprecated_set_frame_prev_hack): New function.
12209 * frame.h (deprecated_set_frame_next_hack): Declare.
12210 (deprecated_set_frame_prev_hack): Declare.
12211 * mcore-tdep.c (analyze_dummy_frame): Use
12212 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12213 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12214
14e91ac5
DC
122152003-01-07 David Carlton <carlton@math.stanford.edu>
12216
12217 * linespec.c (decode_line_1): Move code into decode_dollar.
12218 (decode_dollar): New function.
12219
b0c6b05c
AC
122202003-01-07 Andrew Cagney <cagney@redhat.com>
12221
12222 * arm-tdep.c (arm_init_extra_frame_info): Use
12223 deprecated_update_frame_base_hack.
12224 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12225 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12226 (fix_frame_pointer): Ditto.
12227 (mn10300_analyze_prologue): Ditto.
12228
a00a19e9
AC
122292003-01-07 Andrew Cagney <cagney@redhat.com>
12230
12231 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12232 extra_info using frame_extra_info_zalloc.
12233 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12234 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12235 (sh64_init_extra_frame_info): Ditto.
12236 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12237 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12238 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12239 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12240 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12241 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12242 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12243 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12244 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12245 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12246 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12247 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12248
12249 * mn10300-tdep.c (analyze_dummy_frame): Use
12250 deprecated_set_frame_extra_info_hack.
12251 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12252
1fb4c65b
JB
122532003-01-07 J. Brobecker <brobecker@gnat.com>
12254
12255 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12256 class is not scText. These do not define "real" procedures.
12257 (parse_partial_symbols): Likewise.
12258
9fe7d6bf
MS
122592003-01-06 Michael Snyder <msnyder@redhat.com>
12260
12261 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12262
f6c609c4
AC
122632003-01-06 Andrew Cagney <ac131313@redhat.com>
12264
12265 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12266 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12267 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12268 deprecated_frame_xmalloc_with_cleanup.
12269 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12270 deprecated_frame_xmalloc.
12271 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12272 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12273
d995ff4b
AC
122742003-01-06 Andrew Cagney <cagney@redhat.com>
12275
84dc46cb
AC
12276 * x86-64-linux-tdep.c: Include "osabi.h".
12277 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12278
d995ff4b
AC
12279 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12280
66140c26
AC
122812003-01-06 Andrew Cagney <cagney@redhat.com>
12282
12283 * MAINTAINERS (Target Instruction Set Architectures): Update
12284 arm-elf. Can be built with -Werror, has been multiarched.
12285
12286 * value.h (unpack_long): Make buffer parameter constant.
12287 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12288 * scm-lang.h (scm_parse): Ditto.
12289 * defs.h (extract_typed_address, extract_address): Ditto.
12290 (extract_long_unsigned_integer): Ditto.
12291 * inferior.h (unsigned_pointer_to_address): Ditto.
12292 (signed_pointer_to_address): Ditto.
12293 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12294 * gdbarch.h, gdbarch.c: Regenerate.
12295 * findvar.c (extract_long_unsigned_integer): Update.
12296 (extract_address): Update.
12297 (extract_typed_address): Update.
12298 (unsigned_pointer_to_address): Update.
12299 * values.c (unpack_long): Update.
12300 (unpack_double): Update.
12301 (unpack_pointer): Update.
12302 (unpack_field_as_long): Update.
12303 * d10v-tdep.c (d10v_pointer_to_address): Update.
12304 * avr-tdep.c (avr_pointer_to_address): Update.
12305 * scm-lang.c (scm_unpack): Update.
12306 * findvar.c (signed_pointer_to_address): Update.
12307
b089b3da
ML
123082003-01-06 Michal Ludvig <mludvig@suse.cz>
12309
8ffd9b1b 12310 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12311 since it is in i386-tdep.c.
12312
aff87235
JB
123132003-01-06 J. Brobecker <brobecker@gnat.com>
12314
12315 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12316 failure introduced in the previous change.
12317
34f5e845
MC
123182003-01-05 Michael Chastain <mec@shout.net>
12319
12320 * README: Remove references to deleted remote-*.c files:
12321 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12322 remote-nrom.c, remote-os9k.c, remote-udi.c.
12323
28bcfd30
MK
123242003-01-05 Mark Kettenis <kettenis@gnu.org>
12325
12326 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12327 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12328 i386_get_longjmp_target.
12329
15a5b3ee
AC
123302003-01-05 Andrew Cagney <ac131313@redhat.com>
12331
12332 * arm-tdep.c (prologue_cache): Change to a pointer.
12333 (_initialize_arm_tdep): Allocate prologue_cache.
12334 (check_prologue_cache): Update.
12335 (save_prologue_cache): Update.
12336 (arm_gdbarch_init): Update.
12337
c263362b
DJ
123382003-01-04 Daniel Jacobowitz <drow@mvista.com>
12339
12340 * stabsread.c (update_method_name_from_physname): Call complaint()
12341 instead of error.
12342
51603483
DJ
123432003-01-04 Daniel Jacobowitz <drow@mvista.com>
12344
12345 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12346 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12347 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12348
12349 * blockframe.c: Include "gdbcmd.h" and "command.h".
12350 (backtrace_below_main): New variable.
12351 (file_frame_chain_valid, func_frame_chain_valid)
12352 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12353 (generic_func_frame_chain_valid): Remove functions.
12354 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12355 (_initialize_blockframe): New function.
12356 * Makefile.in (blockframe.o): Update dependencies.
12357 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12358 comment. Call frame_chain_valid ().
12359 * frame.h: Remove old prototypes. Add prototype for
12360 frame_chain_valid and update comments to match.
12361 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12362 Remove old comment.
12363 * gdbarch.h: Regenerated.
12364 * gdbarch.c: Regenerated.
12365
12366 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12367 set_gdbarch_frame_chain_valid.
12368 * avr-tdep.c (avr_gdbarch_init): Likewise.
12369 * cris-tdep.c (cris_gdbarch_init): Likewise.
12370 * frv-tdep.c (frv_gdbarch_init): Likewise.
12371 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12372 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12373 (i386_nw_init_abi): Likewise.
12374 (i386_gdbarch_init): Likewise.
12375 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12376 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12377 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12378 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12379 * mips-tdep.c (mips_gdbarch_init): Likewise.
12380 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12381 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12382 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12383 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12384 * s390-tdep.c (s390_gdbarch_init): Likewise.
12385 * sh-tdep.c (sh_gdbarch_init): Likewise.
12386 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12387 * v850-tdep.c (v850_gdbarch_init): Likewise.
12388 * vax-tdep.c (vax_gdbarch_init): Likewise.
12389 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12390
12391 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12392 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12393 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12394 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12395 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12396 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12397 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12398 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12399
b00a8037
DJ
124002002-01-04 Daniel Jacobowitz <drow@mvista.com>
12401
12402 * Makefile.in (acconfig_h): Remove incorrect macro.
12403 (config_h): Define.
12404 (osabi.o): Update dependencies.
12405 * configure.tgt: Set gdb_osabi based on target triplet.
12406 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12407 * configure: Regenerated.
12408 * config.in: Regenerated.
12409 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12410 (GDB_OSABI_DEFAULT): Define if not already defined.
12411 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12412 (set_osabi_string): New variables.
12413 (gdbarch_register_osabi): Add new OS ABI to
12414 gdb_osabi_available_names.
12415 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12416 (set_osabi, show_osabi): New functions.
12417 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12418
4be87837
DJ
124192003-01-04 Daniel Jacobowitz <drow@mvista.com>
12420
12421 * arch-utils.c (gdbarch_info_init): Set osabi to
12422 GDB_OSABI_UNINITIALIZED.
12423 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12424 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12425 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12426 * gdbarch.c: Regenerated.
12427 * gdbarch.h: Regenerated.
12428 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12429 there's no BFD.
12430 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12431 * osabi.h (enum gdb_osabi): Move to defs.h.
12432 (gdbarch_init_osabi): Update prototype.
12433 * defs.h (enum gdb_osabi): Moved here.
12434 * Makefile.in: Update dependencies.
12435
12436 * alpha-tdep.h: Don't include "osabi.h".
12437 (struct gdbarch_tdep): Remove osabi member.
12438 * alpha-tdep.c: Include "osabi.h".
12439 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12440 iterate over arches. Update call to gdbarch_init_osabi.
12441 (alpha_dump_tdep): Don't dump osabi.
12442 * alpha-linux-tdep.c: Include "osabi.h".
12443 * alpha-osf1-tdep.c: Include "osabi.h".
12444 * alphafbsd-tdep.c: Include "osabi.h".
12445 * alphanbsd-tdep.c: Include "osabi.h".
12446
12447 * arm-tdep.h: Don't include "osabi.h".
12448 (struct gdbarch_tdep): Remove osabi member.
12449 * arm-tdep.c: Include "osabi.h".
12450 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12451 iterate over arches. Update call to gdbarch_init_osabi.
12452 (arm_dump_tdep): Don't dump osabi.
12453 * arm-linux-tdep.c: Include "osabi.h".
12454 * armnbsd-tdep.c: Include "osabi.h".
12455
12456 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12457 Update call to gdbarch_init_osabi.
12458
12459 * i386-tdep.h: Don't include "osabi.h".
12460 (struct gdbarch_tdep): Remove osabi member.
12461 * i386-tdep.c: Include "osabi.h".
12462 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12463 iterate over arches. Update call to gdbarch_init_osabi.
12464 (i386_dump_tdep): Don't dump osabi.
12465 * i386-linux-tdep.c: Include "osabi.h".
12466 * i386-sol2-tdep.c: Include "osabi.h".
12467 * i386bsd-tdep.c: Include "osabi.h".
12468 * i386gnu-tdep.c: Include "osabi.h".
12469 * i386ly-tdep.c: Include "osabi.h".
12470 * i386nbsd-tdep.c: Include "osabi.h".
12471 * i386obsd-tdep.c: Include "osabi.h".
12472
12473 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12474 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12475 check osabi when iterating over arches. Update call to
12476 gdbarch_init_osabi.
12477 (mips_dump_tdep): Don't dump osabi.
12478
12479 * ns32k-tdep.h: Don't include "osabi.h".
12480 (struct gdbarch_tdep): Remove.
12481 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12482 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12483 allocate tdep. Update call to gdbarch_init_osabi.
12484 (ns32k_dump_tdep): Remove.
12485 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12486 * ns32knbsd-tdep.c: Include "osabi.h".
12487
12488 * ppc-tdep.h: Don't include "osabi.h".
12489 (struct gdbarch_tdep): Remove osabi member.
12490 * rs6000-tdep.c: Include "osabi.h".
12491 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12492 osabi when iterating over arches. Update call to
12493 gdbarch_init_osabi.
12494 (rs6000_dump_tdep): Don't dump osabi.
12495 * ppc-linux-tdep.c: Include "osabi.h".
12496 * ppcnbsd-tdep.c: Include "osabi.h".
12497
12498 * sh-tdep.h: Don't include "osabi.h".
12499 (struct gdbarch_tdep): Remove osabi member.
12500 * sh-tdep.c: Include "osabi.h".
12501 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12502 iterate over arches. Update call to gdbarch_init_osabi.
12503 (sh_dump_tdep): Don't dump osabi.
12504 * shnbsd-tdep.c: Include "osabi.h".
12505
12506 * sparc-tdep.c: Include "osabi.h".
12507 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12508 iterate over arches. Update call to gdbarch_init_osabi.
12509 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12510 tdep structure.
12511
12512 * vax-tdep.h: Don't include "osabi.h".
12513 (struct gdbarch_tdep): Remove.
12514 * vax-tdep.c: Include "osabi.h".
12515 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12516 iterate over arches. Don't allocate tdep. Update call
12517 to gdbarch_init_osabi.
12518 (vax_dump_tdep): Remove.
12519 (_initialize_vax_tdep): Update call to gdbarch_register.
12520
a881cf8e
DJ
125212003-01-04 Daniel Jacobowitz <drow@mvista.com>
12522
12523 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12524 entirely.
12525 (breakpoint_re_set_one): Don't fetch the value for a disabled
12526 watchpoint.
12527
1e698235
DJ
125282003-01-04 Daniel Jacobowitz <drow@mvista.com>
12529
12530 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12531 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12532 (COERCE_FLOAT_TO_DOUBLE): Remove.
12533 * gdbarch.c: Regenerate.
12534 * gdbarch.h: Regenerate.
12535 * Makefile.in: Remove value_h from gdbarch_h.
12536 * valops.c (coerce_float_to_double): New variable.
12537 (default_coerce_float_to_double): Remove.
12538 (standard_coerce_float_to_double): Remove.
12539 (value_arg_coerce): Use coerce_float_to_double.
12540 (_initialize_valops): Add "set coerce-float-to-double".
12541 * value.h (default_coerce_float_to_double): Remove prototype.
12542 (standard_coerce_float_to_double): Remove prototype.
12543
12544 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12545 prototyped.
12546 * mdebugread.c (parse_symbol): Likewise.
12547 * stabsread.c (define_symbol): Mark all functions as prototyped.
12548
12549 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12550 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12551 set_gdbarch_coerce_float_to_double.
12552 * arm-tdep.c (arm_gdbarch_init): Likewise.
12553 * frv-tdep.c (frv_gdbarch_init): Likewise.
12554 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12555 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12556 * mips-tdep.c (mips_gdbarch_init): Likewise.
12557 (mips_coerce_float_to_double): Remove.
12558 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12559 (rs6000_coerce_float_to_double): Remove.
12560 * s390-tdep.c (s390_gdbarch_init): Likewise.
12561 * sh-tdep.c (sh_gdbarch_init): Likewise.
12562 (sh_coerce_float_to_double): Remove.
12563 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12564 (sparc_coerce_float_to_double): Remove.
12565 * v850-tdep.c (v850_gdbarch_init): Likewise.
12566 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12567 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12568 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12569 (hppa_coerce_float_to_double): Remove prototype.
12570 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12571
f436a26a
DJ
125722003-01-04 Daniel Jacobowitz <drow@mvista.com>
12573
12574 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12575
248f8055
DJ
125762003-01-04 Daniel Jacobowitz <drow@mvista.com>
12577
12578 Suggested by Stewart Brown <sb24@avaya.com>:
12579 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12580 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12581 (c_type_print_varspec_suffix): Likewise.
12582
72cfdc76
MK
125832003-01-04 Mark Kettenis <kettenis@gnu.org>
12584
bfd260bb
MK
12585 * configure.in: Don't set and AC_SUBST SUBDIRS.
12586 * configure: Regenerated.
12587
72cfdc76
MK
12588 * configure.in: Remove code dealing with shared libraries.
12589 * Makefile.in: Remove HLDFLAGS and HLDENV.
12590 * configure: Regenerated.
12591
c8b8a898
AC
125922003-01-04 Andrew Cagney <ac131313@redhat.com>
12593
12594 * frame.c (deprecated_frame_xmalloc): New function.
12595 (deprecated_set_frame_saved_regs_hack): New function.
12596 (deprecated_set_frame_extra_info_hack): New function.
12597 * frame.h (deprecated_frame_xmalloc): Declare.
12598 (deprecated_set_frame_saved_regs_hack): Declare.
12599 (deprecated_set_frame_extra_info_hack): Declare.
12600
14abd0fb
MK
126012003-01-04 Mark Kettenis <kettenis@gnu.org>
12602
8ee53726
MK
12603 * configure.in: Move code that provides the --enable-gdbtk option
12604 right after the code that handles the --enable-tui option, and
12605 polish it somewhat.
12606 * configure: Regenerated.
12607
14abd0fb
MK
12608 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12609 AC_CHECK_FUNCS and remove the old check for pread64.
12610 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12611 * acconfig.h (_GNU_SOURCE): Add.
12612 (HAVE_PREAD64): Remove.
12613 * configure, aclocal.m4, config.in: Regenerated.
12614
b2fb4676
AC
126152003-01-03 Andrew Cagney <ac131313@redhat.com>
12616
12617 * alpha-tdep.c: Use get_frame_saved_regs.
12618 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12619 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12620 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12621 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12622 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12623
8dcde887
MK
126242003-01-03 Mark Kettenis <kettenis@gnu.org>
12625
12626 * configure.in: Remove all use of the SUBDIRS variable; add
12627 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12628 code providing the --enable-multi-ice option, and move it right in
12629 front of the code that checks whether gdbserver is supported.
12630 Polish that too.
12631 * configure: Regenerated.
12632 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12633 @SUBDIRS@.
12634
8ccd593b
AC
126352003-01-03 Andrew Cagney <cagney@redhat.com>
12636
12637 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12638 * avr-tdep.c, cris-tdep.c: Ditto.
12639 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12640 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12641
91151a06
MK
126422003-01-03 Mark Kettenis <kettenis@gnu.org>
12643
12644 * configure.in: Remove --enable-netrom option.
12645 * configure: Regenerated.
12646
8fe84d01
MK
126472003-01-03 Mark Kettenis <kettenis@gnu.org>
12648
12649 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12650 declaration for `struct re_pattern_buffer' instead.
12651 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12652
f0394be6
JB
126532003-01-03 J. Brobecker <brobecker@gnat.com>
12654
12655 * mdebugread.c (parse_symbol): Count until the stEnd matching
12656 the structure name.
12657
27e9bf90
MK
126582003-01-02 Mark Kettenis <kettenis@gnu.org>
12659
93d331ba
MK
12660 * configure.in: Remove --with-cpu option.
12661 subscripts. Remove evil changequotes here.
12662 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12663 * config.in, configure: Regenerated.
8ffd9b1b 12664
27e9bf90
MK
12665 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12666 * configure.in: Cleanup section that sources GDB and BFD configure
12667 subscripts. Remove evil changequotes here.
12668 * config.in, configure: Regenerated.
12669
50abf9e5
AC
126702003-01-02 Andrew Cagney <ac131313@redhat.com>
12671
12672 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12673 frame accessor methods.
12674 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12675 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12676 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12677 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12678 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12679 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12680 * z8k-tdep.c: Ditto.
8ffd9b1b 12681
287c1a40
MK
126822003-01-02 Mark Kettenis <kettenis@gnu.org>
12683
f5dbc56d
MK
12684 * configure.in: Remove UI_OUT configuration code.
12685 * ada-lang.c: Update assuming UI_OUT is always true.
12686 * Makefile.in (UIOUT_CFLAGS): Remove.
12687 * configure: Regenerated.
12688 * TODO: Remove blurb about elimination of -DUI_OUT.
12689
627af7ea
MK
12690 * configure.in: Move code that provides the --enable-gdbcli,
12691 --enable-gdbmi options right before the code that handles the
12692 --enable-tui option. Polish a bit.
12693 * configure: Regenerated.
12694
06825bd1
MK
12695 * configure.in: Rewrite check for GNU regex and the
12696 --without-included regex option, and move it into the "Checks for
12697 library functions" section. This makes us use the system regex
12698 again by default on systems with version 2 of the GNU C library.
12699 This was apparently broken.
12700 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12701 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12702 * config.in, configure: Regenerated.
12703
287c1a40
MK
12704 * configure.in: Move code that provides the --enable-tui option
12705 before the "Checks for libraries" section. Polish the code
12706 somewhat and set need_curses to yes if we build the TUI. Rewrite
12707 code that looks for a library providing termcap functionality to
12708 match more closely what's done in the Readline library, and move
12709 it into to the "Checks for libraries" section.
12710 * configure: Regenerated.
12711 * Makefile.in (TERMCAP): Remove variable.
12712 * config/i386/go32.mh (TERMCAP): Remove variable.
12713
684e56bf
AC
127142003-01-02 Andrew Cagney <ac131313@redhat.com>
12715
12716 * MAINTAINERS: Mention gdb_mbuild.sh.
12717 * gdb_mbuild.sh: Rewrite.
12718
e1ea1d75
MK
127192003-01-02 Mark Kettenis <kettenis@gnu.org>
12720
12721 * configure.in: Fix typo in last change.
12722 * config.in, configure: Regenerated.
12723
1b831c93
AC
127242003-01-02 Andrew Cagney <ac131313@redhat.com>
12725
12726 * valarith.c (value_binop): Delete obsolete code and comments.
12727 * configure.host: Ditto.
12728 * buildsym.h (make_blockvector): Ditto.
12729 * buildsym.c (make_blockvector): Ditto.
12730 * defs.h (enum language): Ditto.
12731 (chill_demangle): Ditto.
12732 * elfread.c (elf_symtab_read): Ditto.
12733 * dwarfread.c (CHILL_PRODUCER): Ditto.
12734 (set_cu_language): Ditto.
12735 (handle_producer): Ditto.
12736 * expprint.c (print_subexp): Ditto.
12737 * gdbtypes.c (chill_varying_type): Ditto.
12738 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12739 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12740 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12741 (chill_varying_type): Ditto.
12742 * language.h (_LANG_chill): Ditto.
12743 * language.c (binop_result_type, integral_type): Ditto.
12744 (character_type, string_type, structured_type): Ditto.
12745 (lang_bool_type, binop_type_check): Ditto.
12746 * stabsread.h (os9k_stabs): Ditto.
12747 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12748 (define_symbol, read_type, read_struct_fields): Ditto.
12749 (read_array_type, read_enum_type, read_huge_number): Ditto.
12750 (read_range_type, start_stabs): Ditto.
12751 * symfile.c (init_filename_language_table): Ditto.
12752 (add_psymbol_with_dem_name_to_list): Ditto.
12753 * symtab.c (symbol_init_language_specific): Ditto.
12754 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12755 * symtab.h (struct general_symbol_info): Ditto.
12756 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12757 * typeprint.c (typedef_print): Ditto.
12758 * utils.c (fprintf_symbol_filtered): Ditto.
12759 * valops.c (value_cast, search_struct_field, value_slice): Delete
12760 obsolete code.
12761 (varying_to_slice): Delete function.
12762 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12763 (varying_to_slice): Delete declaration.
12764 * MAINTAINERS: Update.
12765
8bb2c122
MK
127662003-01-02 Mark Kettenis <kettenis@gnu.org>
12767
97bf5e38
MK
12768 * configure.in: Reorganize "Checks for library functions section"
12769 a bit. Remove check for `btowc' and `isascii' functions.
12770 * configure: Regenerated.
12771
5ee754fc
MK
12772 * acconfig.h (_MSE_INT_H): Remove.
12773 * configure.in: Create "Checks for header files" section, and move
12774 appropriate tests there. Don't check for objlist.h, wchar.h,
12775 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12776 misdetection fix. Also add "Checks for types", "Checks for
12777 compiler characteristics" and "Checks for library functions"
12778 sections.
12779 * config.in, configure: Regenerated.
12780
8bb2c122
MK
12781 * configure.in: Create "Checks for programs" section, and move
12782 appropriate tests there.
12783
9a156167
MK
127842003-01-01 Mark Kettenis <kettenis@gnu.org>
12785
12786 * configure.in: Create "Checks for libraries" section, and move
12787 appropriate tests there. Cleanup check for wctype in libw. Use
12788 AC_SEARCH_LIBS to see whether we need libsocket.
12789 * configure: Regenerated.
12790
a80e2bcb 12791For older changes see ChangeLog-2002
c906108c
SS
12792\f
12793Local Variables:
12794mode: change-log
12795left-margin: 8
12796fill-column: 74
12797version-control: never
12798End:
This page took 1.083124 seconds and 4 git commands to generate.