]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* language.h (default_word_break_characters): Add prototype.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9f0a5303
JB
12003-10-06 J. Brobecker <brobecker@gnat.com>
2
3 * language.h (default_word_break_characters): Add prototype.
4 * language.c (default_word_break_characters): New function.
5
7270b6ed
AS
62003-10-06 Andreas Schwab <schwab@suse.de>
7
8 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
9 with %eax.
10
a5d61f66
AC
112003-10-06 Andrew Cagney <cagney@redhat.com>
12
13 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
14 "h8500-tdep.c".
15 (z8k-tdep.o): Delete custom build rule.
16
28a86f5c
AC
172003-10-06 Andrew Cagney <cagney@redhat.com>
18
1bfd8a83
AC
19 * Makefile.in: Update all dependencies.
20
17144ef8
AC
21 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
22 No longer list PA as as obsolete candidate. List m32r as
23 broken instead of obsolete.
24
a5679ae5
AC
25 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
26 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
27 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
28 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
29 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
30 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
31 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
32 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
33 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
34 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
35 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
36 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
37 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
38 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
39 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
40 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
41 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
42 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
43 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
44 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
45 * config/z8k/z8k.mt: Ditto.
46
4a8269c0
AC
47 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
48 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
49 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
50 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
51 sparclite were removed.
52 * configure.host, configure.tgt: Remove corresponding tuples.
53
41989fcd
AC
54 * breakpoint.c, breakpoint.h: Remove obsolete code.
55 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
56 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
57 * stabsread.h, xcoffread.c: Ditto.
58
28a86f5c
AC
59 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
60 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
61 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
62 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
63
4efdaa0d
DL
642003-10-06 David Lecomber <dsl@sources.redhat.com>
65
66 * f-valprint.c: Reformatting
67
ae53de43
MK
682003-10-06 Mark Kettenis <kettenis@gnu.org>
69
a8bb57e7
MK
70 * x86-64-tdep.c: Remove duplicate comment.
71
ae53de43
MK
72 * x86-64-tdep.c (x86_64_store_return_value): Don't use
73 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
74 names for return values. This fixes a bug since we looked at %rbx
75 instead of %rdx.
76
473f17b0
MK
772003-10-05 Mark Kettenis <kettenis@gnu.org>
78
2c261fae
MK
79 * x86-64-tdep.c: Include "regset.h".
80
473f17b0
MK
81 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
82 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
83 sizeof_fpregset.
84 * i386-tdep.c: Include "regset.h".
85 (i386_supply_gregset): New function.
86 (i386_supply_fpregset): New function.
87 (i386_gdbarch_init): Initialze register set-related members of
88 TDEP.
89 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
90 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
91
afd48b75
AC
922003-10-03 Andrew Cagney <cagney@redhat.com>
93
94 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
95 set extract_return_value, store_return_value and
96 use_struct_convention to ppc64_sysv_abi_extract_return_value,
97 ppc64_sysv_abi_store_return_value and
98 ppc64_sysv_abi_use_struct_convention.
99 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
100 (ppc64_sysv_abi_store_return_value): Declare.
101 (ppc64_sysv_abi_use_struct_convention): Declare.
102 * ppc-sysv-tdep.c (enum return_value_convention): Define.
103 (ppc64_sysv_abi_extract_return_value): New function.
104 (ppc64_sysv_abi_store_return_value): New function.
105 (ppc64_sysv_abi_use_struct_convention): New function.
106 (ppc64_sysv_abi_return_value): New function.
107
9b540880
AC
1082003-10-03 Andrew Cagney <cagney@redhat.com>
109
110 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
111 convert a descriptor to a function when it's in the ".opd"
112 section.
113
8748518b
CV
1142003-10-03 Corinna Vinschen <vinschen@redhat.com>
115
116 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
117 reg_size to keep GCC silent.
118
0fd85043
CV
1192003-10-03 Corinna Vinschen <vinschen@redhat.com>
120
121 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
122 base for DW_EH_PE_textrel encodings.
123 (read_encoded_value): Add a DW_EH_PE_textrel case.
124 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
125 section.
126
37b517aa
MK
1272003-10-03 Mark Kettenis <kettenis@gnu.org>
128
129 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
130
12c266ea
AC
1312003-10-02 Andrew Cagney <cagney@redhat.com>
132
133 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
134 REGISTER_RAW_SIZE.
135 * gdbarch.h, gdbarch.c: Re-generate.
136 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
137 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
138 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
139 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
140 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
141 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
142 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
143 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
144 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
145 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
146 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
147 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
148 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
149 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
150 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
151 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
152
78ba4af6
JB
1532003-10-02 Jim Blandy <jimb@redhat.com>
154
155 * dwarf2read.c (struct die_info): Doc fix.
156
617daa0e
CV
1572003-10-02 Corinna Vinschen <vinschen@redhat.com>
158
159 * sh-tdep.c: Running thru gdb_indent.sh.
160
e5e33cd9
CV
1612003-10-02 Corinna Vinschen <vinschen@redhat.com>
162
163 * sh-tdep.c (sh_justify_value_in_reg): New function.
164 (sh_stack_allocsize): Ditto.
165 (flt_argreg_array): New array used for floating point argument
166 passing.
167 (sh_init_flt_argreg): New function.
168 (sh_next_flt_argreg): Ditto.
169 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
170 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
171 Fix argument passing strategy.
172 (sh_push_dummy_call_nofpu): Ditto.
173
5fe830e4
AC
1742003-10-01 Andrew Cagney <cagney@redhat.com>
175
176 * value.h (register_value_being_returned): Declare. Replace
177 "value_being_returned".
178 * infcall.c (call_function_by_hand): Use
179 register_value_being_returned.
180 * infcmd.c (print_return_value): Call
181 "register_value_being_returned", handle struct return locally.
182 * values.c (register_value_being_returned): New function. Replace
183 "value_being_returned".
184
1852003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
186
187 * linux-proc.c (linux_do_registers): New function.
188 (linux_make_note_section): Use linux_do_registers in case of
189 single threaded inferior programs.
190
64f395bf
AC
1912003-10-01 Andrew Cagney <cagney@redhat.com>
192
193 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
194 use STRUCT_ADDR. When not using "struct return convention", pass
195 "0" to "value_being_returned". Add FIXMEs.
196 * infcmd.c (print_return_value): Pass an explicit 0/1 to
197 value_being_returned. Add comments.
198 * values.c (value_being_returned): Add fixme.
199 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
200 (hppa_value_returned_from_stack): Add FIXME.
201
639d11d3
DC
2022003-09-30 David Carlton <carlton@kealia.com>
203
204 * dwarf2read.c (struct die_info): Add 'parent' field; replace
205 'has_children' and 'next' by 'child' and 'sibling'.
206 (read_comp_unit): Rework algorithm, breaking body into
207 read_die_and_children and read_die_and_siblings.
208 (read_die_and_children, read_die_and_siblings): New.
209 (read_full_die): Add 'has_children' argument; set it instead of
210 the die's 'has_children' field. Minor formatting cleanup.
211 (free_die_list): Use die->child and die->sibling instead of
212 die->next.
213 (dump_die_list): Ditto.
214 (sibling_die): Use die->sibling.
215 (psymtab_to_symtab_1): Use die's 'child' field in place of its
216 'has_children' and 'next' fields.
217 (process_die, read_file_scope, read_func_scope)
218 (read_lexical_block_scope, read_structure_scope)
219 (read_enumeration, read_array_type, read_common_block)
220 (read_namespace, read_subroutine_type, dump_die): Ditto.
221
5bffac25
AC
2222003-09-30 Andrew Cagney <cagney@redhat.com>
223
224 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
225 to 224, not 220.
226
f30992d4
AC
2272003-09-30 Andrew Cagney <cagney@redhat.com>
228
229 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
230 REGISTER_VIRTUAL_SIZE.
231 * gdbarch.h, gdbarch.c: Regenerate.
232 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
233 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
234 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
235
2e092625
AC
2362003-09-29 Andrew Cagney <cagney@redhat.com>
237
238 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
239 DEPRECATED_REGISTER_VIRTUAL_TYPE.
240 * gdbarch.h, gdbarch.c: Regenerate.
241 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
242 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
243
244 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
245 * remote-vxmips.c (vx_read_register): Ditto.
246 * remote-vx68.c (vx_read_register): Ditto.
247 * gnu-nat.c (inf_validate_procs): Ditto.
248
7a5dd6ee
JB
2492003-09-29 J. Brobecker <brobecker@gnat.com>
250
251 * infcall.c (call_function_by_hand): Fix build failure
252 introduced in the previous change to this file.
253
1fe43d45
AC
2542003-09-29 Andrew Cagney <cagney@redhat.com>
255
256 * NEWS: Mention Objective-C.
257
e28a332c
JG
2582003-09-29 Jerome Guitton <guitton@act-europe.fr>
259
260 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
261 test if the register has been saved on the stack.
262 (arm_scan_prologue_cache): When analysing the instruction
263 "str lr, [sp, #-4]", save the address where lr has been stored.
264
9ff63c35
AC
2652003-09-28 Andrew Cagney <cagney@redhat.com>
266
7f5f525d
AC
267 * frame.c (frame_read_unsigned_register): Delete function.
268 * frame.h (frame_read_unsigned_register): Delete declaration.
269 * sparc-tdep.c (sparc_init_extra_frame_info): Use
270 get_frame_register_unsigned.
271 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
272 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
273 * d10v-tdep.c (d10v_print_registers_info): Ditto.
274
275 * frame.h (frame_read_register): Delete declaration.
276 * frame.c (frame_read_register): Delete function.
277 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
278 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
279 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
280 * mips-tdep.c (mips_register_to_value): Ditto.
281 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
282 * d10v-tdep.c (d10v_print_registers_info): Ditto.
283
284 * frame.c (frame_read_signed_register): Delete function.
285 (frame_read_unsigned_register): Update comments.
286 * frame.h (frame_read_signed_register): Delete declaration.
287 * h8300-tdep.c (h8300_print_register): Use
288 get_frame_register_signed.
289 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
290
9ff63c35
AC
291 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
292 Rename VALUE_RETURNED_FROM_STACK.
293 * infcmd.c (print_return_value): Update.
294 * infcall.c (call_function_by_hand): Update.
295
41d041d6
MK
2962003-09-28 Mark Kettenis <kettenis@gnu.org>
297
298 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
299 regcache argument and reverse the order of the other two
300 arguments. Remove local regcache variable. Determine
301 architecture from REGCACHE. Update comments.
302 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
303 reverse the order of the other two arguments. Remove local
304 regcache variable. Determine architecture from REGCACHE. Update
305 comments.
306 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
307 prototypes. Update comments.
308 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
309 comment.
310 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
311 Update.
312 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
313 * i386-interix-nat.c (supply_fpregset): Update.
314 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
315 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
316 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
317 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
318 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
319 Update.
320 * i386obsd-tdep.c (fetch_core_registers): Update.
321 * i386v4-nat.c (supply_fpregset): Update.
322 * x86-64-linux-nat.c (supply_fpregset): Update.
323 * x86-64-linux-tdep.c (fetch_core_registers): Update.
324
1cb97e17
MK
3252003-09-27 Mark Kettenis <kettenis@gnu.org>
326
5716833c
MK
327 * i386-tdep.h: Put opaque declarations in alphabetical
328 order. Remove spurious whitespace.
329 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
330 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
331 * i386-tdep.c (MM0_REGNUM): Remove define.
332 (i386_mmx_regnum_p): Add gdbarch argument.
333 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
334 Rewrite using new macro definitions for FPU/SSE registers.
335 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
336 definitions from i387-tdep.h.
337 (i386_register_name): Update.
338 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
339 new macro definitions for FPU/SSE registers.
340 (i386_extract_return_value): Determine whether floating-point
341 registers are present by examining REGCACHE's architecture.
342 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
343 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
344 FPU/SSE registers.
345 (i386_register_type): Update.
346 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
347 definitions for FPU registers. Use REGCACHE's architecture to
348 determine the appropriate register numbers.
349 (i386_pseudo_register_read, i386_pseudo_register_write,
350 i386_register_reggroup_p): Update.
351 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
352 TDEP->mm0_regnum.
353 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
354 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
355 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
356 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
357 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
358 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
359 *' to `void *'.
360 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
361 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
362 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
363 definitions for FPU/SSE registers.
364 (FXSAVE_MXCSR_ADDR): New define.
365 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
366 TDEP->mm0_regnum.
367 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
368 (I387_ST0_REGNUM): Define.
369
41d35cb0
MK
370 * regcache.h (get_regcache_arch): New prototype.
371 * regcache.c (get_regcache_arch): New function.
372
54e74f72
MK
373 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
374 whitespace.
375
1cb97e17
MK
376 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
377 Initialize using ARRAY_SIZE.
378
0968aa8c
AC
3792003-09-27 Andrew Cagney <cagney@redhat.com>
380
381 * arch-utils.c (deprecated_init_frame_pc_default): Rename
382 "init_frame_pc_default".
383 * arch-utils.h (deprecated_init_frame_pc_default): Update.
384 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
385 * vax-tdep.c (vax_gdbarch_init): Update.
386 * v850-tdep.c (v850_gdbarch_init): Update.
387 * sh64-tdep.c (sh64_gdbarch_init): Update.
388 * s390-tdep.c (s390_gdbarch_init): Update.
389 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
390 * mcore-tdep.c (mcore_gdbarch_init): Update.
391 * h8300-tdep.c (h8300_gdbarch_init): Update.
392 * cris-tdep.c (cris_gdbarch_init): Update.
393 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
394
54c84734
MK
3952003-09-26 Mark Kettenis <kettenis@gnu.org>
396
397 * regset.h: New file.
398 * Makefile.in (regset_h): Add.
399
1b1d3794
AC
4002003-09-25 Andrew Cagney <cagney@redhat.com>
401
402 * frame.h (deprecated_frame_saved_regs): Rename
403 get_frame_saved_regs.
404 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
405 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
406 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
407 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
408 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
409
e6beb428
AC
4102003-09-25 Andrew Cagney <cagney@redhat.com>
411
412 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
413 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
414 and Java.
415 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
416 arm*-*-* do not use the new frame code.
417
710122da
DC
4182003-09-25 David Carlton <carlton@kealia.com>
419
420 * c-exp.y: Remove 'register' declarations.
421 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
422
79c2c32d
DC
4232003-09-25 David Carlton <carlton@kealia.com>
424
425 * c-exp.y: Include cp-support.h. Add qualified_type.
426 (yylex): Delete nested type hack; add comments.
427 * cp-namespace.c (cp_lookup_nested_type): New function.
428 * cp-support.h: Declare cp_lookup_nested_type.
429 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
430 instead of value_struct_elt_for_reference.
431 * valops.c: Include cp-support.h.
432 (value_aggregate_elt): New function.
433 (value_namespace_elt): Ditto.
434 (value_struct_elt_for_reference): Make static.
435 * value.h: Delete declaration of value_struct_elt_for_reference;
436 add declaration for value_aggregate_elt.
437 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
438 (valops.o): Ditto.
439
898c62f5
DJ
4402003-09-25 Daniel Jacobowitz <drow@mvista.com>
441
442 * stack.c: Include "reggroups.h".
443 (frame_info): Only display registers in all_reggroup.
444 * Makefile.in (stack.o): Update dependencies.
445
28cd8767
JG
4462003-09-25 Jerome Guitton <guitton@act-europe.fr>
447
448 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
449 "add ip, sp #n" in the prologue.
450 (arm_scan_prologue): Ditto.
451
a4ab2b5d
JG
4522003-09-25 Jerome Guitton <guitton@act-europe.fr>
453
454 * MAINTAINERS (write after approval): Add myself.
455
3f244638
AS
4562003-09-25 Andreas Schwab <schwab@suse.de>
457
458 * m68k-tdep.c: Include "dwarf2-frame.h".
459 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
460 * Makefile.in (m68k-tdep.o): Update dependencies.
461
1c0159e0
CV
4622003-09-25 Corinna Vinschen <vinschen@redhat.com>
463
464 * sh-tdep.c (struct frame_extra_info): Remove.
465 (struct sh_frame_cache): New structure.
466 (GET_SOURCE_REG): New macro extracting source register of an opcode.
467 (GET_TARGET_REG): Ditto but target register.
468 (GET_PUSHED_REG): Remove.
469 (IS_MOV_ARG_TO_REG): New macro.
470 (IS_MOV_ARG_TO_IND_R14): New macro.
471 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
472 (IS_MOVW_PCREL_TO_REG): New macro.
473 (IS_MOVL_PCREL_TO_REG): New macro.
474 (IS_SUB_REG_FROM_SP): New macro.
475 (IS_ARG_MOV): Remove.
476 (IS_MOV_TO_R14): Remove.
477 (IS_RESTORE_FP): New macro.
478 (IS_RTS): New macro.
479 (IS_LDS): New macro.
480 (IS_MOV_FP_SP): New macro.
481 (IS_ADD_REG_TO_FP): New macro.
482 (IS_ADD_IMM_FP): New macro.
483 (sh_skip_prologue_hard_way): Remove.
484 (sh_saved_pc_after_call): Remove.
485 (sh_frame_chain): Remove.
486 (sh_find_callers_reg): Remove.
487 (sh_nofp_frame_init_saved_regs): Remove.
488 (sh_fp_frame_init_saved_regs): Remove.
489 (sh_init_extra_frame_info): Remove.
490 (sh_analyze_prologue): New function.
491 (sh_skip_prologue): Remove deprecated code. Rely on new function
492 sh_analyze_prologue when after_prologue fails.
493 (sh_frame_saved_pc): Remove.
494 (sh_alloc_frame_cache): New function.
495 (sh_frame_cache): Ditto.
496 (sh_frame_prev_register): Ditto.
497 (sh_frame_this_id): Ditto.
498 (sh_frame_unwind): New structure defining the heuristic frame
499 sniffer interface.
500 (sh_frame_sniffer): New function.
501 (sh_unwind_sp): Ditto.
502 (sh_unwind_pc): Ditto.
503 (sh_unwind_dummy_id): Ditto.
504 (sh_frame_base_address): Ditto.
505 (sh_frame_base): New structure defining new frame base code.
506 (sh_in_function_epilogue_p): New function.
507 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
508 code and to call all new code instead. Initialize dwarf2 and
509 heuristic frame sniffer.
510
5f9769d1
PH
5112003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
512
513 * parser-defs.h (struct exp_descriptor): New definition, containing
514 language-specific info for printing, prefixifying, dumping, and
515 evaluating expressions.
516 (exp_descriptor_standard): Declare new variable.
517 (print_subexp): Make global and declare here (from expprint.c).
518 (dump_subexp): Ditto.
519 (dump_subexp_body_standard): Declare.
520 (operator_length_standard): Declare.
521 (op_name_standard): Declare.
522 (print_subexp): Declare.
523 (print_subexp_standard): Declare.
524
525 * language.h (struct language_defn): Add la_exp_desc field to hold
526 pointer to table for language-specific operators.
527 Remove evaluate_exp field, which is now in struct exp_descriptor.
528
529 * parse.c (operator_length): Move most code to new
530 operator_length_standard function. Use language-specific information.
531 (operator_length_standard): New function taking most code from
532 operator_length.
533 (exp_descriptor_standard): New constant.
534
535 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
536 and OP_EXTENDED_LAST.
537
538 * expprint.c (print_subexp): Use language-specific print_subexp.
539 Make global; remove static declaration.
540 Move most code to print_subexp_standard.
541 (print_subexp_standard): New function, containing code formerly in
542 print_subexp.
543 (op_name): Add expression to argument signature.
544 Use langauge-specific op_name.
545 Move most code to op_name_standard.
546 (op_name_standard): New function, containing code formerly in op_name.
547 (dump_subexp): Use new version of op_name function.
548 Use language-specific dump_subexp_body, and move most existing code to
549 dump_subexp_body_standard.
550 (dump_raw_expression): Use new op_name interface.
551 (dump_subexp_body): Move most code to dump_subexp_body_standard.
552 (dump_subexp_body_standard): New function, containing code formerly
553 in dump_subexp_body.
554
555 * language.c (unknown_language): Add default la_exp_desc field and
556 remove evaluate_exp field.
557 (auto_language): Ditto.
558 (local_language): Ditto.
559 * f-lang.c (f_language_defn): Ditto.
560 * c-lang.c (c_language_defn): Ditto.
561 (cplus_language_defn): Ditto.
562 (asm_language_defn): Ditto.
563 (minimal_language_defn): Ditto.
564 * p-lang.c (pascal_language_defn): Ditto.
565 * m2-lang.c (m2_language_defn): Ditto.
566 * objc-lang.c (objc_language_defn): Ditto.
567
568 * jv-lang.c (exp_descriptor_java): New variable, containing
569 Java-specific expression evaluator.
570 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
571 field.
572 * scm-lang.c (exp_descriptor_scm): New variable, containing
573 Scheme-specific expression evaluator.
574 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
575 field.
576 * objc-lang.c (print_object_command): Take evaluate_exp from the
577 la_exp_desc field.
578
579 * Makefile.in (eval.o): Add dependency on parser-defs.h.
580
581 * eval.c: Include parser-defs.h for the full declaration of
582 la_exp_desc's type.
583 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
584
24daaebc
PH
5852003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
586
587 * parser-defs.h (operator_length): Declare.
588
589 * parse.c (length_of_subexp): Use operator_length to get operator
590 lengths and arities for operators.
591 Move most code to new operator_length function.
592 (operator_length): New function absorbing most code from
593 length_of_subexp.
594 (prefixify_subexp): Remove large case and use operator_length instead.
595 (parse_exp_1): Use renamings:
596 dump_prefix_expression => dump_raw_expression and
597 dump_postfix_expression => dump_prefix_expression.
598
599 * expression.h (dump_prefix_expression): Rename to ...
600 (dump_raw_expression): New name.
601 (dump_postfix_expression): Rename to ...
602 (dump_prefix_expression): New name.
603
604 * expprint.c (dump_subexp): Make global. Add comment.
605 Move most existing code to dump_subexp_body.
606 (dump_subexp_body): New function.
607 (dump_prefix_expression): Rename to dump_raw_expression.
608 Remove attempt to print the expression via print_expression: it can't
609 work before the expression is prefixified.
610 (dump_raw_expression): Renamed from dump_prefix_expression.
611 (dump_postfix_expression): Rename to dump_prefix_expression, since
612 that's what it does.
613 Remove 'note' parameter, since this routine must be used on
614 prefixified expression.
615 (dump_prefix_expression): Renamed from dump_postfix_expression.
616
8c2957c4
JB
6172003-09-22 Jim Blandy <jimb@redhat.com>
618
619 * dwarf2read.c (read_array_type): When building the type for an
620 array of unspecified length, make sure to choose the upper bound
621 so that the array's total length comes out to be zero --- that's
622 how we represent such arrays.
623
592e3010
MC
6242003-09-22 Michael Chastain <mec@shout.net>
625
626 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
627
365c70b1
JJ
6282003-09-22 Jeff Johnston <jjohnstn@redhat.com>
629
630 * top.c (quit_force): Fix indirect call to quit_target so
631 a struct qt_args pointer is passed.
632
5d6eb653
AC
6332003-09-22 Andrew Cagney <cagney@redhat.com>
634
635 * arch-utils.h (init_frame_pc_noop): Delete declaration.
636 * arch-utils.c (init_frame_pc_noop): Delete function.
637 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
638 "init_frame_pc".
639 * mips-tdep.c (mips_gdbarch_init): Ditto.
640 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
641 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
642 declaration.
643 (DEPRECATED_INIT_FRAME_PC): Delete macro.
644 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
645 declaration.
646 (DEPRECATED_INIT_FRAME_PC): Delete macro.
647
b222a67f
AG
6482003-09-22 Anthony Green <green@redhat.com>
649
650 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
651 declaration.
652
d5b5ac79
AC
6532003-09-20 Andrew Cagney <cagney@redhat.com>
654
deafb061
AC
655 * breakpoint.c: Eliminate ARGSUSED.
656 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
657 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
658 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
659 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
660 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
661 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
662 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
663 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
664 * wince.c, remote-vx.c: Ditto.
665
d5b5ac79
AC
666 * cli/cli-script.c: Remove "register" attributes.
667 * config/pa/tm-hppa.h: Ditto.
668 * cli/cli-decode.c: Ditto.
669 * cli/cli-cmds.c: Ditto.
670
c6316faa
AC
6712003-09-19 Andrew Cagney <cagney@redhat.com>
672
673 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
674 DEPRECATED_NPC_REGNUM.
675 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
676
f4f99b11
CF
6772003-09-19 Christopher Faylor <cgf@redhat.com>
678
679 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
680
1708f284
JB
6812003-09-19 Jim Blandy <jimb@redhat.com>
682
683 * macrotab.c (macro_include): Use the correct comparison to find
684 the appropriate place for this inclusion in the list.
685
b9fbf434
AC
6862003-09-19 Andrew Cagney <cagney@redhat.com>
687
688 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
689 (DEPRECATED_HPUX_TEXT_END): Define.
690 (deprecated_hpux_text_end): Declare.
691 (struct target_ops): Declare opaque.
692 * hppah-nat.c (text_end): Make static.
693 (deprecated_hpux_text_end): New function.
694 * exec.c (text_end): Delete global variable.
695 (NEED_TEXT_START_END): Do not define.
696 (exec_file_attach): Replace code computing "text_end" code with
697 call to DEPRECATED_HPUX_TEXT_END.
698
5b03f266
AC
6992003-09-19 Andrew Cagney <cagney@redhat.com>
700
701 * utils.c (align_up, align_down): New functions.
702 * defs.h (align_up, align_down): Declare.
703 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
704 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
705 and "align_down".
706 (round_up, round_down): Delete functions.
707 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
708 "align_down".
709 (ROUND_DOWN, ROUND_UP): Delete macros.
710 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
711 * h8300-tdep.c: Replace "round_up" and "round_down" with
712 "align_up" and "align_down".
713 (round_up, round_down): Delete macros.
714 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
715 "align_down".
716 (ROUND_UP, ROUND_DOWN): Delete macros.
717
51db5742
JB
7182003-09-18 J. Brobecker <brobecker@gnat.com>
719
720 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
721 hard-coded constant. Use the proper machine name instead.
722
77949794
AC
7232003-09-17 Andrew Cagney <cagney@redhat.com>
724
725 * sparc-tdep.c (legacy_register_name): Delete function.
726 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
727 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
728 * infcmd.c (gdb_register_name): Delete variable.
729 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
730 REGISTER_NAME and "tm.h".
731 * gdbarch.h, gdbarch.c: Regenerate.
732 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
733 REGISTER_NAMES in comments.
734 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
735 * m68klinux-nat.c (regmap): Ditto.
736
b55c33cc
JB
7372003-09-17 Jim Blandy <jimb@redhat.com>
738
739 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
740
957e27ac
AC
7412003-09-17 Andrew Cagney <cagney@redhat.com>
742
743 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
744 (ppcnbsd_init_abi): Set "use_struct_convention" to
745 "ppcnbsd_use_struct_convention".
746
192cb3d4
MK
7472003-09-17 Mark Kettenis <kettenis@gnu.org>
748
749 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
750 * gdbarch.h, gdbarch.c: Regenerate.
751 (stabs_argument_has_addr): New architecture method.
752 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
753 * arch-utils.c: Include "buildsym.h".
754 (default_stabs_argument_has_addr): New function.
755 * stabsread.c (define_symbol): Use stabs_argument_has_addr
756 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
757
efe59759
AC
7582003-09-17 Andrew Cagney <cagney@redhat.com>
759
760 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
761 * gdbarch.h, gdbarch.c: Regenerate.
762 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
763 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
764 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
765 * sparcnbsd-tdep.c: Update.
766
62700349
AC
7672003-09-17 Andrew Cagney <cagney@redhat.com>
768
769 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
770 * gdbarch.h, gdbarch.c: Regenerate.
771 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
772 * d10v-tdep.c, frame.c: Update.
773 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
774 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
775 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
776 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
777 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
778 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
779 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
780 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
781 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
782 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
783 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
784 * config/pa/nm-hppah.h: Update.
785
b9ff3018
AC
7862003-09-16 Andrew Cagney <cagney@redhat.com>
787
788 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
789 "use_struct_convention" to "ppc_linux_use_struct_convention".
790 (ppc_linux_use_struct_convention): New function.
791 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
792 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
793 "rs6000_use_struct_convention".
794 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
795 declaration.
796 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
797 Delete function.
798
aa1ee363
AC
7992003-09-16 Andrew Cagney <cagney@redhat.com>
800
801 * buildsym.c: Remove more occurances of "register".
802 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
803 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
804 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
805 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
806 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
807 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
808 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
809 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
810
f2ea0907
CV
8112003-09-16 Corinna Vinschen <vinschen@redhat.com>
812
813 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
814 numbers to enumeration values.
815 * sh-tdep.c: Accomodate above change.
816 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
817 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
818 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
819 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
820 (IS_FPUSH): Rename from IS_FMOV.
821 (sh_extract_struct_value_address): Remove useless comment.
822 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
823 instead of own local values.
824 (sh_dump_tdep): Remove.
825 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
826 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
827
1c704f11
AC
8282003-09-15 Andrew Cagney <cagney@redhat.com>
829
830 * doublest.c (convert_floatformat_to_doublest): No longer need to
831 cast "exp_bias" to an int. Reverts 2002-12-04 change.
832
ac79b88b
DJ
8332003-09-15 Daniel Jacobowitz <drow@mvista.com>
834
835 * values.c (unpack_double): Call floatformat_is_valid.
836
1c671366
MK
8372003-09-15 Mark Kettenis <kettenis@gnu.org>
838
de5227fb
MK
839 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
840 ps_strings into a long.
841
1c671366
MK
842 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
843 _initialize_am64fbsd_nat.
844
a604369a
KB
8452003-09-15 Kevin Buettner <kevinb@redhat.com>
846
847 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
848 associated with DW_AT_ranges attribute is out of bounds.
849
b3cacbee
DL
8502003-09-15 David Lecomber <dsl@sources.redhat.com>
851
852 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
853
d0f37bb2
MC
8542003-09-14 Michael Chastain <mec@shout.net>
855
856 * config/m68k/nm-apollo68v.h: Delete.
857 * config/m68k/xm-apollo68v.h: Delete.
858
69517000
AC
8592003-09-14 Andrew Cagney <cagney@redhat.com>
860
861 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
862 * dcache.c: Update copyrights and descriptions.
863 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
864
ef8b349d
AC
8652003-09-14 Andrew Cagney <cagney@redhat.com>
866
867 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
868 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
869
52f0bd74
AC
8702003-09-14 Andrew Cagney <cagney@redhat.com>
871
872 * alpha-nat.c: Remove some occurances of "register".
873 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
874 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
875 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
876 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
877 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
878 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
879 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
880 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
881 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
882 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
883 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
884 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
885 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
886 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
887 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
888 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
889 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
890 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
891 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
892 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
893 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
894 * values.c, vax-tdep.c, xcoffread.c: Ditto.
895
4a4b3fed
AC
8962003-09-13 Andrew Cagney <cagney@redhat.com>
897
898 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
899 * ppc-tdep.h (struct regcache): Declare opaque.
900 * objfiles.h (struct objfile_data): Declare opaque.
901 * cp-support.h (struct objfile): Declare opaque.
902 * linux-nat.h (target_waitstatus): Declare opaque.
903
2110b94f
MK
9042003-09-14 Mark Kettenis <kettenis@gnu.org>
905
1c671366
MK
906 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
907 (stabs_argument_has_addr): New architecture method.
908 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
909 * arch-utils.c: Include "buildsym.h".
910 (default_stabs_argument_has_addr): New function.
911 * stabsread.c (define_symbol): Use stabs_argument_has_addr
912 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
913
2110b94f
MK
914 * cris-tdep.c (cris_gdbarch_init): Set
915 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
916 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
917 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
918 * mips-tdep.c (mips_gdbarch_init): Likewise.
919 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
920 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
921
48436ce6
AC
9222003-09-13 Andrew Cagney <cagney@redhat.com>
923
924 * values.c (using_struct_return): Delete "function" and "funcaddr"
925 parameters.
926 * value.h (using_struct_return): Update declaration.
927 * infcmd.c (finish_command_continuation): Update.
928 (finish_command): Update.
929 * infcall.c (call_function_by_hand): Update.
930 * eval.c (evaluate_subexp_standard): Update.
931
403d9909
CF
9322003-09-13 Christopher Faylor <cgf@redhat.com>
933
934 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
935 SSE registers since gdb will not operate correctly without this.
936 Restore include file ordering munged in previous change.
937 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
938
ebf7d56b
MK
9392003-09-13 Mark Kettenis <kettenis@gnu.org>
940
8e823e25
MK
941 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
942 REG_STRUCT_HAS_ADDR.
943 * gdbarch.c, gdbarch.h: Updated.
944 * infcall.c (call_function_by_hand): Update.
945 * stabsread.c (define_symbol): Updated.
946
ebf7d56b
MK
947 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
948
d3f13f72
CF
9492003-09-12 Christopher Faylor <cgf@redhat.com>
950
951 * win32-nat.c: Reorganize so that defines used by target headers are
952 actually defined by the system headers.
953 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
954 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
955
14f75137
JB
9562003-09-12 Jim Blandy <jimb@redhat.com>
957
d646061f
JB
958 * dbxread.c (read_dbx_symtab): Don't report an internal error if
959 the file has no .data, .bss, or .rodata sections. Instead wait
960 until we see a variable alleged to live in one of those sections.
961
2a13f9bc
JB
962 * dbxread.c (read_dbx_symtab): If we have no .data section and no
963 .bss section, presume that any variables we find live in the
964 .rodata section.
965
4f49b26b
JB
966 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
967 offsets for global and static variables.
968
14f75137
JB
969 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
970 symbol types are, by definition, in the .data section, so it is
971 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
972 If there is no .data section, there should be no N_DATA or N_DATA
973 | N_EXT symbols.
974
212c460c
MK
9752003-09-12 Mark Kettenis <kettenis@gnu.org>
976
977 * amd64fbsd-tdep.c: Fix sigtramp recognition.
978 (amd64fbsd_sigcontext_addr): Rewrite.
979 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
980 with correct values.
981 (amd64fbsd_sc_reg_offset): Initialize with correct values.
982 (amd64fbsd_init_abi): Fix typo.
983
68856ea3
AC
9842003-09-12 Andrew Cagney <cagney@redhat.com>
985
986 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
987 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
988
627b3ba2
AC
9892003-09-12 Andrew Cagney <cagney@redhat.com>
990
991 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
992 "entry_file_highpc". Update comments.
993 * defs.h (deprecated_inside_entry_file): Rename
994 "inside_entry_file".
995 * blockframe.c (deprecated_inside_entry_file): Rename
996 "inside_entry_file".
997 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
998 * vax-tdep.c (vax_frame_chain): Update.
999 * sh64-tdep.c (sh64_frame_chain): Update.
1000 * sh-tdep.c (sh_frame_chain): Update.
1001 * rs6000-tdep.c (rs6000_frame_chain): Update.
1002 * ns32k-tdep.c (ns32k_frame_chain): Update.
1003 * mips-tdep.c (mips_frame_chain): Update.
1004 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1005 * m32r-tdep.c (m32r_frame_this_id): Update.
1006 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1007 * frv-tdep.c (frv_frame_this_id): Update.
1008 * d10v-tdep.c (d10v_frame_this_id): Update.
1009 * cris-tdep.c (cris_frame_chain): Update.
1010 * blockframe.c (legacy_frame_chain_valid): Update.
1011 * avr-tdep.c (avr_frame_this_id): Update.
1012 * arm-tdep.c (arm_prologue_this_id): Update.
1013 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1014 * objfiles.c (objfile_relocate): Update.
1015 * mipsread.c (mipscoff_symfile_read): Update.
1016 (mipscoff_symfile_read): Update.
1017 * mdebugread.c (parse_partial_symbols): Update.
1018 * dwarfread.c (read_file_scope): Update.
1019 * dwarf2read.c (read_file_scope): Update.
1020 * dbxread.c (read_dbx_symtab): Update.
1021 (read_dbx_symtab): Update.
1022 * coffread.c (complete_symtab): Update.
1023
b0abbc58
JJ
10242003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1025
1026 * top.c (quit_target): New static helper function.
1027 (quit_force): Moved code to quit_target(). Call quit_target()
1028 via catch_errors() to catch errors during quit.
1029
a1632d59
DC
10302003-09-11 David Carlton <carlton@kealia.com>
1031
1032 * buildsym.c (finish_block): Use allocate_block to allocate the
1033 block.
1034 * mdebugread.c (new_block): Add FIXME.
1035
5c4e30ca
DC
10362003-09-11 David Carlton <carlton@kealia.com>
1037
1038 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1039 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1040 (recursive_dump_type): Ditto.
1041 * printcmd.c (print_formatted): Ditto.
1042 * typeprint.c (print_type_scalar): Ditto.
1043 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1044 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1045 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1046 maint_cplus_cmd_list.
1047 * cp-support.c: Make maint_cplus_cmd_list extern.
1048 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1049 command.h.
1050 (lookup_symbol_file): Look in possible namespace blocks when
1051 appropriate.
1052 (initialize_namespace_symtab): New.
1053 (get_possible_namespace_block, free_namespace_block)
1054 (check_possible_namespace_symbols)
1055 (check_possible_namespace_symbols_loop)
1056 (check_one_possible_namespace_symbol)
1057 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1058 (_initialize_cp_namespace): Ditto.
1059 * block.h: Declare allocate_block.
1060 * block.c (allocate_block): New.
1061 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1062 allocate_block.
1063 * symfile.h: Update declaration of add_psymbol_to_list.
1064 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1065 question.
1066 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1067 scan_partial_symbols_call.
1068 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1069 helper functions.
1070 (add_partial_symbol): If necessary, scan mangled names for names
1071 of namespaces.
1072 (add_partial_namespace): Add NAMESPACE argument; generate partial
1073 symbols associated to namespaces.
1074 (add_partial_enumeration): Add NAMESPACE argument.
1075 (new_symbol): Allow namespace syms.
1076 (read_namespace): Generate namespace syms.
1077 * objfiles.h: Add opaque declaration of struct symtab.
1078 (struct objfile): Add cp_namespace_symtab member.
1079 * objfiles.c (allocate_objfile): Set
1080 objfile->cp_namespace_symtab.
1081 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1082 dictionary_h, command_h.
1083
33a7c2fc
AC
10842003-09-11 Andrew Cagney <cagney@redhat.com>
1085
1086 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1087 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1088 near the function's end.
1089 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1090 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1091 regcache_raw_write_signed to set SP_REGNUM.
1092
63cd24fe
EZ
10932003-09-11 Elena Zannoni <ezannoni@redhat.com>
1094
1095 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1096 orig_addrs is set up properly.
1097
f27dd7fd
AC
10982003-09-11 Andrew Cagney <cagney@redhat.com>
1099
1100 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1101 * gdbarch.h, gdbarch.c: Re-generate.
1102 * infcall.c (call_function_by_hand): Update.
1103 * hppa-tdep.c (hppa_push_arguments): Update.
1104 * ada-lang.c (place_on_stack): Update.
1105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1106 * sparc-tdep.c (sparc_gdbarch_init): Update.
1107 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1108 * hppa-tdep.c (hppa_gdbarch_init): Update.
1109 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1110 stack_align.
1111
f630a401
DJ
11122003-09-11 Daniel Jacobowitz <drow@mvista.com>
1113
1114 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1115 register do need a frame.
1116
0ddabb4c
AC
11172003-09-11 Andrew Cagney <cagney@redhat.com>
1118
1119 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1120 buildable since GDB 5.0.
1121 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1122 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1123 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1124 * irix4-nat.c: Delete file.
1125 * config/mips/irix4.mh: Delete file.
1126 * config/mips/irix3.mh: Delete file.
1127 * config/mips/irix3.mt: Delete file.
1128 * config/mips/tm-irix3.h: Delete file.
1129 * config/mips/nm-irix3.h: Delete file.
1130 * config/mips/xm-irix3.h: Delete file.
1131 * config/mips/nm-irix4.h: Delete file.
1132 * config/mips/xm-irix4.h: Delete file.
1133 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1134
fde2cceb
JB
11352003-09-10 J. Brobecker <brobecker@gnat.com>
1136
1137 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1138 * Makefile.in (hppa-tdep.o): Update dependencies.
1139
66f667f5
JW
11402003-09-10 James E Wilson <wilson@specifixinc.com>
1141
ef5fd69f
JW
1142 * MAINTAINERS: Change my e-mail address. Move to paper trail
1143 section.
66f667f5 1144
53e8aaea
KB
11452003-09-10 Kevin Buettner <kevinb@redhat.com>
1146
1147 * MAINTAINERS (frv): New ISA entry.
1148
dcc6aaff
KB
11492003-09-10 Kevin Buettner <kevinb@redhat.com>
1150
1151 * frv-tdep.c (dis-asm.h): Include.
1152 * Makefile.in (frv-tdep.o): Update dependencies.
1153
932644f0
JJ
11542003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1155
1156 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1157 Fix typo for high range of floating registers.
1158
91c24f0a
DC
11592003-09-09 David Carlton <carlton@kealia.com>
1160
1161 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1162 highpc initialization here out of scan_partial_symbols.
1163 (scan_partial_symbols): Restructure into a recursive version,
1164 calling add_partial_namespace and add_partial_enumeration when
1165 appropriate.
1166 (add_partial_namespace): New.
1167 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1168
c9263853
AC
11692003-09-09 Andrew Cagney <cagney@redhat.com>
1170
e56a0ecc
AC
1171 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1172 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1173 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1174 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1175
794a477a
AC
1176 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1177 (rs6000_push_dummy_call): Set the "TOC" register.
1178
c9263853
AC
1179 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1180 methods "max_register_raw_size", "max_register_virtual_size" or
1181 "register_virtual_size".
1182
afa7d0b2
ILT
11832003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1184
1185 * MAINTAINERS: Update my e-mail address.
1186
7a41266b
AC
11872003-09-09 Andrew Cagney <cagney@redhat.com>
1188
1189 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1190 (rs6000_push_dummy_call): Store the struct return address.
1191 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1192
77b2b6d4
AC
11932003-09-09 Andrew Cagney <cagney@redhat.com>
1194
1195 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1196 "ppc_sysv_abi_push_arguments".
1197 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1198 "ppc_sysv_abi_push_arguments".
1199 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1200 instead of "push_arguments".
1201 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1202
e8a7b686
AC
12032003-09-09 Andrew Cagney <cagney@redhat.com>
1204
1205 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1206 instead of CALL_DUMMY_ADDRESS.
1207
f86f5ca3
PH
12082003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1209
1210 * p-lang.c: Eliminate "register".
1211 * c-lang.c: Ditto.
1212 * expprint.c: Ditto.
1213 * f-lang.c: Ditto.
1214 * jv-lang.c: Ditto.
1215 * language.c: Ditto.
1216 * m2-lang.c: Ditto.
1217 * parse.c: Ditto.
1218 * scm-lang.c: Ditto.
1219 * objc-lang.c: Ditto.
1220
83ee270e
NC
12212003-09-09 Nick Clifton <nickc@redhat.com>
1222
1223 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1224
a89aa300
AC
12252003-09-04 Andrew Cagney <cagney@redhat.com>
1226
1227 * avr-tdep.c: Include "dis-asm.h".
1228 * cris-tdep.c: Include "dis-asm.h".
1229 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1230 instead of corresponding typedef.
1231 * h8300-tdep.c: Include "dis-asm.h".
1232 * ia64-tdep.c: Include "dis-asm.h".
1233 * i386-tdep.c: Include "dis-asm.h".
1234 (i386_print_insn): Use "struct disassemble_info" instead of
1235 corresponding typedef.
1236 * m68k-tdep.c: Include "dis-asm.h".
1237 * mcore-tdep.c: Include "dis-asm.h".
1238 * mips-tdep.c: Include "dis-asm.h".
1239 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1240 instead of corresponding typedef.
1241 * ns32k-tdep.c: Include "dis-asm.h".
1242 * s390-tdep.c: Include "dis-asm.h".
1243 * sparc-tdep.c: Include "dis-asm.h".
1244 * vax-tdep.c: Include "dis-asm.h".
1245 * v850-tdep.c: Include "dis-asm.h".
1246 * mn10300-tdep.c: Include "dis-asm.h".
1247 * rs6000-tdep.c: Include "dis-asm.h".
1248 * xstormy16-tdep.c: Include "dis-asm.h".
1249 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1250 print_insn_xstormy16.
1251 * Makefile.in (v850-tdep.o): Update dependencies.
1252 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1253 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1254 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1255 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1256 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1257 (gdbarch_h): Remove $(dis_asm_h).
1258 * disasm.c: Include "dis-asm.h".
1259 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1260 corresponding typedef.
1261 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1262 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1263 * gdbarch.sh: Do not include "dis-asm.h".
1264 (struct disassemble_info): Declare opaque.
1265 (TARGET_PRINT_INSN): Update declaration.
1266 * gdbarch.h, gdbarch.c: Re-generate.
1267
88a82a65
AC
12682003-09-08 Andrew Cagney <cagney@redhat.com>
1269
1270 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1271 CALL_DUMMY_ADDRESS, change to a predicate.
1272 * gdbarch.h, gdbarch.c: Re-generate.
1273 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1274 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1275 * infcall.c (call_function_by_hand): Ditto.
1276 * sparc-tdep.c (sparc_push_return_address): Ditto.
1277 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1278 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1279 CALL_DUMMY_ADDRESS with entry_point_address.
1280 * v850-tdep.c (v850_push_return_address): Ditto.
1281 * s390-tdep.c (s390_push_return_address): Ditto.
1282 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1283 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1284 * mcore-tdep.c (mcore_push_return_address): Ditto.
1285 * cris-tdep.c (cris_push_return_address): Ditto.
1286 * arm-tdep.c (arm_push_return_address): Ditto.
1287
3e2c4033
AC
12882003-09-08 Andrew Cagney <cagney@redhat.com>
1289
1290 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1291 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1292 and REG_UNMODIFIED to REG_SAME_VALUE.
1293 (execute_cfa_program): Update.
1294 (dwarf2_frame_cache): Update. Initialize table to
1295 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1296 location.
1297 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1298
39efb398
AC
12992003-09-08 Andrew Cagney <cagney@redhat.com>
1300
1301 * gnu-nat.c: Remove "inline" function attribute.
1302 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1303
f5cb5aca
KB
13042003-09-08 Kevin Buettner <kevinb@redhat.com>
1305
1306 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1307 target.
1308
1cb761c7
KB
13092003-09-08 Kevin Buettner <kevinb@redhat.com>
1310
1311 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1312 (frame_extra_info): Rename this struct to frv_unwind_cache.
1313 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1314 Add fields ``prev_sp'' and ``base''.
1315 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1316 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1317 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1318 Delete.
1319 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1320 Revise all callers. Fill in the unwind cache argument and make
1321 other adjustments to account for new frame mechanisms.
1322 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1323 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1324 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1325 (frv_frame_unwind, frv_frame_base): New structs.
1326 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1327 additional arguments expected by this method and adjust function
1328 body accordingly.
1329 (frv_gdbarch_init): Remove calls to the following functions:
1330 set_gdbarch_deprecated_init_frame_pc(),
1331 set_gdbarch_deprecated_saved_pc_after_call(),
1332 set_gdbarch_deprecated_frame_chain(),
1333 set_gdbarch_deprecated_frame_saved_pc(),
1334 set_gdbarch_deprecated_frame_init_saved_regs(),
1335 set_gdbarch_deprecated_push_arguments(),
1336 set_gdbarch_deprecated_push_return_address(),
1337 set_gdbarch_deprecated_pop_frame(),
1338 set_gdbarch_deprecated_call_dummy_words(),
1339 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1340 set_gdbarch_deprecated_init_extra_frame_info(),
1341 set_gdbarch_deprecated_dummy_write_sp(), and
1342 set_gdbarch_deprecated_pc_in_call_dummy().
1343 Add calls to the following functions:
1344 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1345 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1346 frame_base_set_default().
1347 * Makefile.in (frv-tdep.o): Update dependencies.
1348
68f6cf99
MK
13492003-09-09 Mark Kettenis <kettenis@gnu.org>
1350
1351 * dwarf2-frame.c (read_encoded_value): Add support for
1352 DW_EH_PE_aligned encoding.
1353
73b65bb0
DJ
13542003-09-08 Daniel Jacobowitz <drow@mvista.com>
1355
1356 * infrun.c (normal_stop): Don't print a message if the inferior
1357 has exited.
1358
7c8a5605
JB
13592003-09-08 Jim Blandy <jimb@redhat.com>
1360
1361 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1362 * dbxread.c: #include "gdb_assert.h".
1363 (read_dbx_symtab): If the objfile has no .data section, use the
1364 section index for the .bss section instead.
1365
7dd88986
DJ
13662003-09-08 Daniel Jacobowitz <drow@mvista.com>
1367
1368 * frame.c (deprecated_safe_get_selected_frame): New function.
1369 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1370 * findvar.c (read_var_value): Call it.
1371
55ff77ac
CV
13722003-09-08 Corinna Vinschen <vinschen@redhat.com>
1373
1374 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1375 (sh64-tdep.o): Add dependencies.
1376 * configure.tgt: Add FIXME to sh-*-linux*.
1377 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1378 (sh_gdbarch_init): Always set correct sh_show_regs function
1379 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1380 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1381 * sh64-tdep.c: New file, containing all sh64 related code from
1382 sh-tdep.c.
1383 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1384 * config/sh/linux.mt (TDEPFILES): Ditto.
1385 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1386 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1387 * config/sh/wince.mt (TDEPFILES): Ditto.
1388
bfb39158
DJ
13892003-09-07 Daniel Jacobowitz <drow@mvista.com>
1390
1391 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1392 (stop_wait_callback): Handle !lp->signalled also.
1393 (lin_lwp_has_pending, flush_callback): New functions.
1394 (lin_lwp_wait): Call flush_callback.
1395 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1396 (linux_proc_pending_signals): New function.
1397 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1398
9407de8e
DJ
13992003-09-07 Daniel Jacobowitz <drow@mvista.com>
1400
1401 From Nick Kelsey <nickk@ubicom.com>:
1402 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1403 when the stop PC is at the beginning of a function also.
1404
2ef47cd0
DJ
14052003-09-06 Daniel Jacobowitz <drow@mvista.com>
1406
1407 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1408 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1409
6f4492c8
MK
14102003-09-06 Mark Kettenis <kettenis@gnu.org>
1411
1412 * sol-thread.c: Include "gdb_string.h".
1413
d3420b2f
MK
14142003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1415
1416 * gcore.c: Reorder include files in alphabetical order. Include
1417 "gdb_assert.h". Various coding style fixes.
1418 (derive_stack_segment, derive_heap_segment): Replace check for
1419 non-null BOTTOM and TOP with gdb_assert.
1420 (derive_heap_segment): Replace check for successful creation of
1421 ZERO with gdb_assert.
1422 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1423
5220ea4c
AC
14242003-09-04 Andrew Cagney <cagney@redhat.com>
1425
1426 * thread-db.c (verbose_dlsym): New function.
1427 (thread_db_load): Use verbose_dlsym
1428 (thread_db_new_objfile): Print that libthread_db was loaded, and
1429 that thread debugging was enabled.
1430
6e8c2c06
AC
14312003-09-04 Andrew Cagney <cagney@redhat.com>
1432
1433 * configure.tgt: Add "mips64*-*-*" target. Delete
1434 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1435 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1436 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1437 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1438 mips*-sony-*, and mips64*-*-elf* targets.
1439 * config/mips/embedl.mt: Delete file.
1440 * config/mips/embedl64.mt: Delete file.
1441 * config/mips/mips.mt: Delete file.
1442 * config/mips/mips64.mt: Delete file.
1443 * config/mips/tm-embed.h: Delete file.
1444 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1445 * config/mips/embed64.mt: Delete out-of-date comment.
1446
3a3bc038
AC
14472003-09-04 Andrew Cagney <cagney@redhat.com>
1448
1449 * hppa-tdep.c (hppa_gdbarch_init): Set
1450 "have_nonsteppable_watchpoint".
1451 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1452 * mips-tdep.c (mips_dump_tdep): Do not print
1453 HAVE_NONSTEPPABLE_WATCHPOINT.
1454 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1455 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1456 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1457 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1458
a957e642
CV
14592003-09-04 Corinna Vinschen <vinschen@redhat.com>
1460
1461 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1462 unused code. Add comment.
1463
a6fbcf2f
CV
14642003-09-04 Corinna Vinschen <vinschen@redhat.com>
1465
1466 * breakpoint.c (watchpoint_check): Check for pc being in an
1467 epilogue if watchpoint frame couldn't be found.
1468
c14a44d5
AC
14692003-09-04 Andrew Cagney <cagney@redhat.com>
1470
1471 * Makefile.in: Re-generate all dependencies.
1472
f6c40618
AC
14732003-09-03 Andrew Cagney <cagney@redhat.com>
1474
1475 * arch-utils.h (legacy_print_insn): Delete declaration.
1476 * arch-utils.c (legacy_print_insn): Delete function.
1477 * disasm.c (deprecated_tm_print_insn_info): Delete.
1478 (_initialize_disasm): Delete function, contained code initializing
1479 deprecated_tm_print_insn_info.
1480 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1481 (deprecated_tm_print_insn_info): Delete.
1482 (TARGET_PRINT_INSN): Do not provide a default.
1483 * gdbarch.h, gdbarch.c: Re-generate.
1484
242e8be5
AC
14852003-09-03 Andrew Cagney <cagney@redhat.com>
1486
1487 * disasm.c (fprintf_disasm): New function.
1488 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1489 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1490 reverts 2003-08-14 change.
1491 (_initialize_disasm): Call "init_disassemble_info", instead of
1492 INIT_DISASSEMBLE_INFO_NO_ARCH.
1493
3ffc3dda
MS
14942003-09-03 Michael Snyder <msnyder@redhat.com>
1495
1496 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1497
52d16ba8
AC
14982003-09-03 Andrew Cagney <cagney@redhat.com>
1499
1500 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1501 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1502 * symfile.c (syms_from_objfile): Update.
1503 (reread_symbols): `Update
1504 * exec.c (exec_file_attach): Update.
1505 (exec_file_attach): Update.
1506 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1507 2003-08-29 change.
1508 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1509
eb5492fa
DJ
15102003-09-03 Daniel Jacobowitz <drow@mvista.com>
1511
1512 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1513 trad-frame.h.
1514 (arm_get_cache): Delete macro.
1515 (struct arm_prologue_cache): Update comments. Make saved_regs into
1516 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1517 to prev_sp.
1518 (thumb_scan_prologue): Update for cache changes. Don't call
1519 DEPRECATED_PC_IN_CALL_DUMMY.
1520 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1521 argument and use it in desperation search for our prologue. Do not
1522 search past the specified PC.
1523 (arm_make_prologue_cache): Simplify.
1524
1525 (arm_prologue_this_id, arm_prologue_prev_register)
1526 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1527 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1528 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1529 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1530 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1531
1532 (arm_frame_chain_valid, arm_find_callers_reg)
1533 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1534 (arm_pop_frame): Delete obsolete methods.
1535 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1536
1537 (arm_gdbarch_init): Update for new frame methods. Register prologue
1538 and sigtramp unwinders. Set the default frame base method.
1539
1540 * Makefile.in (arm-tdep.o): Update dependencies.
1541 * varobj.c (find_frame_addr_in_frame_chain): Call
1542 get_frame_base_address.
1543 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1544
24de872b
DJ
15452003-09-03 Daniel Jacobowitz <drow@mvista.com>
1546
1547 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1548 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1549 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1550 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1551 Take NEXT_FRAME and CACHE arguments. Call
1552 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1553 Set unwound_pc in CACHE instead of modifying the frame argument.
1554 Don't bother checking the frame type when looking for sigtramp
1555 frames.
1556 (arm_make_prologue_cache, arm_frame_chain)
1557 (arm_init_extra_frame_info): New functions.
1558
9b8d791a
DJ
15592003-09-03 Daniel Jacobowitz <drow@mvista.com>
1560
1561 * arm-tdep.c (arm_get_cache): Define.
1562 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1563 unwound_sp, unwound_pc, and saved_regs.
1564 (thumb_scan_prologue): Take a cache instead of the frame.
1565 (arm_scan_prologue): Likewise.
1566 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1567 instead of a temporary frame.
1568 (arm_init_extra_frame_info): Allocate and use a cache.
1569 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1570
7ee3275f
AC
15712003-09-03 Andrew Cagney <cagney@redhat.com>
1572
1573 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1574 * config/mips/wince.mt (TM_CLIBS): Ditto.
1575 * config/sh/wince.mt (TM_CLIBS): Ditto.
1576 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1577 * config/sparc/sp64.mt (CC): Delete.
1578
57b29be7
AC
15792003-09-03 Andrew Cagney <cagney@redhat.com>
1580
1581 * defs.h: Do not include "arch-utils.h".
1582 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1583 GDB_MULTI_ARCH_PURE.
1584 * configure.in (GDB_MULTI_ARCH): Do not define.
1585 * configure, config.in: Regenerate.
1586 * configure.tgt: Do not set variable "gdb_multi_arch".
1587 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1588 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1589 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1590 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1591 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1592 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1593 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1594 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1595 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1596 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1597 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1598 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1599 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1600 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1601 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1602 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1603 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1604 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1605
12e035e2
MC
16062003-08-30 Michael Chastain <mec@shout.net>
1607
1608 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1609 * config/m68k/nm-hp300hpux.h: Delete.
1610 * config/m68k/tm-hp300hpux.h: Delete.
1611 * config/m68k/xm-hp300hpux.h: Delete.
1612 * config/m68k/xm-hp300bsd.h: Delete.
1613 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1614 tm-hp300hpux.h, xm-hp300hpux.h.
1615 * somsolib.c: Remove comment about hp300 shared libraries.
1616
bda34dc2
MK
16172003-08-31 Mark Kettenis <kettenis@gnu.org>
1618
5bca7895
MK
1619 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1620 Only define PTRACE_GET_THREAD_AREA is not already defined.
1621 Various style fixes in code and comments and some additional
1622 spelling fixes in comments. Move after functions dealing with
1623 debug registers.
1624 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1625 Fix coding-style.
1626
bda34dc2
MK
1627 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1628 frame_unwind_register_unsigned instead of
1629 frame_unwind_unsigned_register.
1630
c890192f
MK
16312003-08-30 Mark Kettenis <kettenis@gnu.org>
1632
1633 * configure.in: Search for gethostbyname in libnsl.
1634 * configure: Regenerated.
1635
60fac5b8
MK
16362003-08-29 Mark Kettenis <kettenis@gnu.org>
1637
e294916c
MK
1638 * configure.in: Remove redundant AC_MSG_RESULT in check for
1639 uintptr_t in stdint.h.
1640 * configure: Regenerated.
1641
c40d267a
MK
1642 * amd64-nat.h (struct regcache): Add opaque declaration.
1643
60fac5b8
MK
1644 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1645 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1646 Change "register array" to "register cache" in comments.
1647 (x86_64_linux_gregset64_reg_offset): New variable.
1648 (GETREGS_SUPPLIES): Remove macro.
1649 (supply_gregset): Call amd64_supply_native_gregset instead of
1650 x86_64_linux_supply_gregset.
1651 (fill_gregset): Rename `regno' to `regnum'. Call
1652 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1653 (store_regs): Rename `regno' to `regnum'.
1654 (store_fpregs): Rename `regno' to `regnum'.
1655 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1656 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1657 Reorganize function a bit.
1658 (store_inferior_registers): Rename `regno' to `regnum'. Use
1659 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1660 Reorganize function a bit.
1661 (_initialize_x86_64_linux_nat): New function.
1662 * config/i386/x86-64linux.mh.
1663
546143b6
AC
16642003-08-29 Andrew Cagney <cagney@redhat.com>
1665
1666 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1667 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1668 (target_remove_watchpoint): Delete macro.
1669 (target_insert_watchpoint): Delete macro.
1670 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1671 (remote_mips_stopped_by_watchpoint): Delete declaration.
1672 (remote_mips_remove_watchpoint): Delete declaration.
1673 (remote_mips_set_watchpoint): Delete declaration.
1674 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1675 * remote-mips.c (_initialize_remote_mips): Set
1676 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1677 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1678 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1679 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1680 (mips_stopped_by_watchpoint): Rename
1681 remote_mips_stopped_by_watchpoint.
1682 (mips_can_hardware_watchpoint): Rename
1683 remote_mips_can_use_hardware_watchpoint, update function
1684 signature.
1685
7bace51b
MK
16862003-08-29 Mark Kettenis <kettenis@gnu.org>
1687
b0f5c6f2
MK
1688 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1689 USER_DS. We haven't given them a register number yet.
1690
2a6d284d
MK
1691 * amd64-nat.h: New file.
1692 * amd64-nat.c: New file.
1693 * amd64fbsd-nat.c: Include "amd64-nat.h".
1694 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1695 (amd64fbsd32_r_reg_offset): New variable.
1696 (supply_gregset): Simply call amd64_supply_native_gregset.
1697 (fill_gregset): Rename `regno' to `regnum'. Simply call
1698 amd64_collect_native_gregset.
1699 (fill_fpregset): Rename `regno' to `regnum'.
1700 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1701 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1702 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1703 `fpregset_t'. Call amd64_supply_native_gregset instead of
1704 supply_gregset. Call x86_64_supply_fxsave instead of
1705 supply_fpregset.
1706 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1707 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1708 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1709 `fpregset_t'. Call amd64_collect_native_gregset instead of
1710 fill_gregset. Call x86_64_collect_fxsave instead of
1711 fill_fpregset.
1712 (_initialize_am64fbsd_nat): Initialize
1713 amd64_native_gregset32_reg_offset and
1714 amd64_native_gregset64_reg_offset.
1715 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1716
a16d75cc
MK
1717 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1718 null pointer. Fix typo in comment.
1719
7bace51b
MK
1720 * regcache.c (supply_register): Reimplement to call
1721 regcache_raw_supply.
1722 (regcache_collect): Reimplement by calling regcache_raw_collect.
1723
9a661b68
MK
17242003-08-28 Mark Kettenis <kettenis@gnu.org>
1725
1726 * regcache.c (register_buffer): Consitify first argument.
1727 (regcache_raw_supply, regcache_raw_collect): New
1728 functions.
1729
e94cc8fa
DJ
17302003-08-28 Daniel Jacobowitz <drow@mvista.com>
1731
1732 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1733 by Nathan J. Williams.
1734
c64bd0ce
DJ
17352003-08-28 Daniel Jacobowitz <drow@mvista.com>
1736
1737 * lin-lwp.c (wait_lwp): New function, copied from
1738 stop_wait_callback. Clean up.
1739 (stop_wait_callback): Use wait_lwp.
1740
e5ab0dce
AC
17412003-08-28 Andrew Cagney <cagney@redhat.com>
1742
1743 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1744 flavour and disassembler options.
1745 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1746 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1747 deprecated_tm_print_insn_info.
1748
a788de9b
AC
17492003-08-27 Andrew Cagney <cagney@redhat.com>
1750
1751 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1752 Use target_read_memory.
1753 (s390_get_frame_info): Update. Do not reference
1754 deprecated_tm_print_insn_info.
1755 (s390_check_function_end, s390_is_sigreturn): Ditto.
1756
36482093
AC
17572003-08-27 Andrew Cagney <cagney@redhat.com>
1758
1759 * Makefile.in (cris-tdep.o): Update dependencies.
1760 * cris-tdep.c: Include "gdb_assert.h".
1761 (cris_gdbarch_init): Set print_insn.
1762 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1763 (cris_delayed_get_disassembler): Simplify, directly call the
1764 disassembler returned by cris_get_disassembler.
1765 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1766 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1767 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1768 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1769 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1770 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1771 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1772 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1773 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1774 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1775 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1776 (gdb_print_insn_sparc): Delete function.
1777 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1778 deprecated_tm_print_insn_info.
1779 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1780 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1781 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1783 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1784 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1785 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1786 (s390_gdbarch_init): Set print_insn.
1787
0285512f
AC
17882003-08-27 Andrew Cagney <cagney@redhat.com>
1789
1790 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1791 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1792 * infcall.c (call_function_by_hand): Convert the entry point
1793 address into a code address.
1794
cdcd5552
AC
17952003-08-27 Andrew Cagney <cagney@redhat.com>
1796
1797 * dsrec.c: Include "gdb_string.h".
1798 * Makefile.in (dsrec.o): Update dependencies.
1799
e85cddad
MC
18002003-08-27 Michael Chastain <mec@shout.net>
1801
1802 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1803
8bbfbb23
AC
18042003-08-27 Andrew Cagney <cagney@redhat.com>
1805
1806 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1807 (alpha_osf1_init_abi): Do not set call_dummy_address.
1808
ba058b66
DC
18092003-08-27 David Carlton <carlton@kealia.com>
1810
1811 From Randolph Chung <tausq@debian.org>:
1812 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1813 compiles with -Wformat-nonliteral -Werror.
1814
87f84c9d
JB
18152003-08-26 Jim Blandy <jimb@redhat.com>
1816
1817 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1818 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1819 bfd_lookup_symbol, since we only want symbols in code sections.
1820 (look_for_base): Pass zero as the SECT_FLAGS argument to
1821 bfd_lookup_symbol, since we're not concerned about which section
1822 the symbol is in.
1823
102d615a
JJ
18242003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1825
1826 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1827 we are frameless or the return address register is already known.
1828
cc7ad3ea
AC
18292003-08-26 Andrew Cagney <cagney@redhat.com>
1830
1831 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1832 in size. Add comments.
1833
af8b88dd
JJ
18342003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1835
1836 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1837 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1838
e0a4f5a1
JM
18392003-08-26 Jason Merrill <jason@redhat.com>
1840
1841 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1842 case out of #ifdef MIPS block.
1843
4ae9ee8e
DJ
18442003-08-25 Daniel Jacobowitz <drow@mvista.com>
1845
1846 PR java/1322
1847 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1848 available before calling SECT_OFF_TEXT.
3c164570 1849 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1850
004d836a
JJ
18512003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1852
1853 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1854 bof, and nat0-nat127 as pseudo-registers.
1855 (ia64_frame_cache): New struct used to cache frame info.
1856 (ia64_register_reggroup_p): New routine used to override default
1857 register grouping so registers without names are still saved and
1858 restored.
1859 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1860 pseudo values.
1861 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1862 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1863 (ia64_alloc_frame_cache): New routine to create a new
1864 ia64_frame_cache.
1865 (examine_prologue): Change prototype to add next_frame pointer.
1866 Assume frameless until otherwise proven. Verify that the cfm for
1867 current frame matches the cfm that should occur for the prologues
1868 alloc insn and if equal, mark as not frameless. At end of routine,
1869 if not frameless, calculate registers for the previous frame and store
1870 in the cache, if a cache is provided.
1871 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1872 and pass 0 for next_frame.
1873 (ia64_store_return_value): Change to use convert_typed_floating()
1874 instead of calling ia64_convert_to_raw().
1875 (ia64_extract_return_value): Change to use convert_typed_floating()
1876 instead of calling ia64_convert_to_virtual().
1877 (ia64_frame_cache): New routine to support new frame model.
1878 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1879 (ia64_frame_sniffer): Ditto.
1880 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1881 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1882 (ia64_sigtramp_frame_prev_register): Ditto.
1883 (ia64_sigtramp_frame_sniffer): Ditto.
1884 (ia64_frame_base_address): Ditto.
1885 (ia64_extract_struct_value_address): Change to issue error message.
1886 (ia64_frame_align): New routine to align sp.
1887 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1888 (ia64_push_arguments): Removed. Logic moved to
1889 ia64_push_dummy_call().
1890 (ia64_push_return_address): Ditto.
1891 (ia64_unwind_dummy_id): New function.
1892 (ia64_unwind_pc): Ditto.
1893 (ia64_convert_register_p): Ditto.
1894 (ia64_register_to_value): Ditto.
1895 (ia64_value_to_register): Ditto.
1896 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1897 (ia64_register_byte, ia64_register_raw_size): Ditto.
1898 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1899 (ia64_saved_pc_after_call): Ditto.
1900 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1901 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1902 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1903 (ia64_register_convert_to_raw): Ditto.
1904 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1905 (ia64_init_extra_frame_info): Ditto.
1906 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1907 (ia64_gdbarch_init): Remove registering of deprecated functions that
1908 are no longer used. Add registration of new gdbarch functions.
1909 Remove registering deprecated_write_sp. Replace
1910 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1911 Delete set_gdbarch_deprecated_register_convertible(),
1912 set_gdbarch_deprecated_register_convert_to_virtual(), and
1913 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1914 set_gdbarch_deprecated_register_size(),
1915 set_gdbarch_deprecated_register_bytes(),
1916 set_gdbarch_pcregnum(),
1917 set_gdbarch_deprecated_register_byte(),
1918 set_gdbarch_deprecated_register_raw_size(),
1919 set_gdbarch_deprecated_max_register_raw_size(),
1920 set_gdbarch_deprecated_register_virtual_size(),
1921 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1922 Replace set_gdbarch_deprecated_extract_return_value() with
1923 set_gdbarch_extract_return_value(). Remove calls to:
1924 set_gdbarch_deprecated_saved_pc_after_call();
1925 set_gdbarch_deprecated_frame_chain(),
1926 set_gdbarch_deprecated_frame_saved_pc(),
1927 set_gdbarch_deprecated_frame_init_saved_regs(),
1928 set_gdbarch_deprecated_get_saved_register(),
1929 set_gdbarch_deprecated_call_dummy_words(),
1930 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1931 set_gdbarch_deprecated_init_extra_frame_info(),
1932 set_gdbarch_deprecated_frame_args_address(),
1933 set_gdbarch_deprecated_frame_locals_address(),
1934 and set_gdbarch_deprecated_dummy_write_sp().
1935 Add set_gdbarch_convert_register_p(),
1936 set_gdbarch_register_to_value(),
1937 set_gdbarch_value_to_register(),
1938 set_gdbarch_push_dummy_call(),
1939 set_gdbarch_frame_align(),
1940 set_gdbarch_unwind_dummy_id(),
1941 set_gdbarch_unwind_pc(),
1942 frame_unwind_append_sniffer(),
1943 frame_unwind_append_sniffer(),
1944 and frame_base_set_default().
1945
aede7613
CD
19462003-08-25 Chris Demetriou <cgd@broadcom.com>
1947
1948 * configure.tgt: Document need for special "mipsisa64" handling.
1949 (mipsisa64*-*-linux64): Handle as target linux64.
1950 (mipsisa64*-*-*): Handle as target embed64.
1951
43c3a82e
MC
19522003-08-18 Michael Chastain <mec@shout.net>
1953
1954 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1955 objfile bug.
1956
6564f77d
MK
19572003-08-24 Mark Kettenis <kettenis@gnu.org>
1958
2de139ba
MK
1959 * i387-tdep.h: Update copyright date.
1960 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1961
6564f77d
MK
1962 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1963 CFLAGS games to reflect reality.
1964
42cf1509
AC
19652003-08-24 Andrew Cagney <cagney@redhat.com>
1966
1967 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1968 GDB_MULTI_ARCH is always non-zero.
1969 * osabi.c (_initialize_gdb_osabi): Ditto.
1970 (gdbarch_init_osabi): Ditto.
1971 * sparc-tdep.c: Ditto for #if code.
1972
0485f6ad
MK
19732003-08-23 Mark Kettenis <kettenis@gnu.org>
1974
1975 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1976 Update comments.
1977 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1978 comments.
1979 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1980 x86_64_supply_fxsave.
1981 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1982 x86_64_supply_fxsave.
1983 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1984 x86_64_supply_fxsave.
1985
c7716133
AJ
19862003-08-23 Andreas Jaeger <aj@suse.de>
1987
1988 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1989 i387_supply_fxsave.
1990
ed504bdf
MK
19912003-08-23 Mark Kettenis <kettenis@gnu.org>
1992
1993 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1994 i387_supply_register.
1995 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1996 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1997 i387_supply_fsave.
1998 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1999 i387_supply_fxsave.
2000 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2001 i387_supply_fsave.
2002 * i386bsd-nat.c (supply_fpregset): Adjust call to
2003 i387_supply_fsave.
2004 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2005 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2006 supply_fpregset.
2007 (store_inferior_registers): Remove extraneous whitespace. Call
2008 i387_fill_fsave instead of fill_fpregset.
2009 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2010 (supply_fpregset): Likewise.
2011 * i386v4-nat.c (supply_fpregset): Adjust call to
2012 i387_supply_fsave.
2013 * i386-interix-nat.c (supply_fpregset): Adjust call to
2014 i387_supply_fsave.
2015 * i386-linux-nat.c (supply_fpregset): Adjust call to
2016 i387_supply_fsave.
2017 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2018 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2019 i387supply_fsave and i387_supply_fxsave.
2020 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2021 Incorporate code from `i387_supply_register.
2022 (i387_supply_register): Remove.
2023 (i387_supply_fxsave): Add `regnum' argument.
2024 Update comments.
2025 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2026 prototype.
2027 (i387_supply_register): remove prototype.
2028 Update comments.
2029
4be5d520
MC
20302003-08-22 Michael Chastain <mec@shout.net>
2031
2032 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2033 Add lines for files in gdb/testsuite/gdb.cp/* that are
2034 still not 8.3 unique.
2035
7ed85d26
DJ
20362003-08-22 Daniel Jacobowitz <drow@mvista.com>
2037
2038 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2039 TYPE_VPTR_FIELDNO is valid.
2040
eb0d3137
MK
20412003-08-19 Mark Kettenis <kettenis@gnu.org>
2042
2043 * utils.c (set_width_command): Remove prototypes.
2044 (set_screen_size): New prototype.
2045 (init_page_info): Simplify by fetching the screen size from
2046 Readline. Call set_screen_size.
2047 (set_screen_size): New function.
2048 (set_width): Add missing whitespace in comment.
2049 (set_width_command): Call set_screen_size.
2050 (set_height_command): New function.
2051 (initialize_utils): Fix formatting. Make "set height" command
2052 call set_height_command. Remove redundant code that turns off
2053 pagination if output isn't a terminal. Remove redundant call to
2054 set_width_command.
2055
7e6d0ac8
MK
20562003-08-22 Mark Kettenis <kettenis@gnu.org>
2057
3567a8ea
MK
2058 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2059 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2060 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2061 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2062 `case' keyword.
2063 (sparc64_register_info): Give the reister with number
2064 SPARC64_STATE_REGNUM a name.
2065 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2066 %asi and %ccr.
2067 (sparc64_push_dummy_call): Take BIAS into account when checking
2068 stcak alignment.
2069 (sparc_software_single_step): Remove assertions that check whether
2070 NPC and NNPC were zero.
2071 (sparc_supply_rwindow): Make public. Merge functionality with
2072 sparc64_supply_rwindow.
2073 (sparc_fill_rwindow): Make public. Merge functionality with
2074 sparc64_fill_rwindow.
2075 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2076 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2077 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2078 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2079 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2080
7e6d0ac8
MK
2081 * reggroups.c: Add whitespace after declarations of local
2082 variables in functions.
2083
72e5f484
MC
20842003-08-21 Michael Chastain <mec@shout.net>
2085
2086 * gdbtypes.h: Change array bound type from an int to enum.
2087
435ac228
AC
20882003-08-21 Andrew Cagney <cagney@redhat.com>
2089
2090 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2091 * config/sparc/tm-sparc.h: Ditto.
2092 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2093 unconditionally.
2094 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2095
0d0e1a63
MK
20962003-07-13 Mark Kettenis <kettenis@gnu.org>
2097
2098 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2099 (register_objfile_data, set_objfile_data, objfile_data): New
2100 prototypes.
2101 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2102 prototypes.
2103 (allocate_objfile): Call objfile_alloc_data.
2104 (free_objfile): Call objfile_free_data.
2105 (struct objfile_data): New.
2106 (struct objfile_data_registration): New.
2107 (struct objfile_data_registry): New.
2108 (objfile_data_registry): New variable.
2109 (register_objfile_data): New function.
2110 (objfile_alloc_data, objfile_free_data): New functions.
2111 (set_objfile_data, objfile_data): New functions.
2112 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2113 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2114 (_initialize_dwarf2_frame): New function and prototype.
2115
d90cf509
AC
21162003-08-21 Andrew Cagney <cagney@redhat.com>
2117
2118 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2119 a specific architecture.
2120 * arch-utils.h (set_architecture_from_arch_mach): Delete
2121 declaration.
2122 (target_architecture_hook): Delete declaration.
2123 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2124 (default_float_format): Assume GDB_MULTI_ARCH.
2125 (default_double_format): Assume GDB_MULTI_ARCH.
2126 (set_endian_from_file): Delete function.
2127 (arch_ok): Delete function.
2128 (set_arch): Delete function.
2129 (set_architecture_from_arch_mach): Delete function.
2130 (set_architecture_from_file): Delete function.
2131 (set_architecture): Assume GDB_MULTI_ARCH.
2132 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2133
8b39fe56
MK
21342003-08-21 Mark Kettenis <kettenis@gnu.org>
2135
2136 Rewrite FreeBSD/sparc64 native configuration.
2137 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2138 * sparc64fbsd-nat.c: New file.
2139 * sparc64fbsd-tdep.c: New file.
2140 * sparc64-tdep.c sparc64-tdep.h: New files.
2141 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2142 sparc64fbsd-tdep.o): New dependencies.
2143 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2144 and sparc64fbsd-tdep.c.
2145 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2146 * config/sparc/fbsd.mh: Remove copyright notice.
2147 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2148 sparcbsd-nat.o.
2149 * config/sparc/fbsd.mt: Remove copyright notice.
2150 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2151 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2152 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2153 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2154 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2155 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2156 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2157 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2158 "sparc/tm-sp64.h".
2159 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2160 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2161
a7f19c79
MC
21622003-08-21 Michael Chastain <mec@shout.net>
2163
2164 * symtab.h: Add doco on the space critical structures and
2165 some measurements of space usage.
2166
da08ea5b
MS
21672003-08-21 Michael Snyder <msnyder@redhat.com>
2168
2169 * tracepoint.c (trace_dump_command): Trace break address
2170 is subject to DECR_PC_AFTER_BREAK.
2171 (set_traceframe_context): Make "trace_line" an int.
2172 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2173
6df2bf50
MS
21742003-08-20 Michael Snyder <msnyder@redhat.com>
2175
2176 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2177 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2178 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2179 argument passing.
2180 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2181 functions, replace sh_push_dummy_call.
2182 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2183
0955bbf0
MC
21842003-08-20 Michael Chastain <mec@shout.net>
2185
2186 * gdbtypes.h (struct main_type): Rearrange to save space.
2187
260a4188
MS
21882003-08-20 Michael Snyder <msnyder@redhat.com>
2189
2190 * trad-frame.c: Comment typo fix.
2191
8baa6f92
KB
21922003-08-20 Michael Snyder <msnyder@redhat.com>
2193 Kevin Buettner <kevinb@redhat.com>
2194
2195 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2196 (frv_frame_init_saved_regs): Add declaration.
2197 (frame_extra_info): Add new field ``saved_regs''.
2198 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2199 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2200 Update frame related code.
2201 (frv_extract_struct_value_address): Adjust formatting.
2202 * Makefile.in (frv-tdep.o): Update dependencies.
2203 * config/frv/tm-frv.h (target_insert_watchpoint)
2204 (target_remove_watchpoint, target_insert_hw_breakpoint)
2205 (target_remove_hw_breakpoint): Delete these macros.
2206 (remote_insert_watchpoint, remote_remove_watchpoint)
2207 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2208 these declarations.
2209
87193939
MC
22102003-08-20 Michael Chastain <mec@shout.net>
2211
2212 * defs.h (ENUM_BITFIELD): New macro.
2213 * symtab.h (ENUM_BITFIELD): Use it.
2214 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2215
062103ba
SA
22162003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2217
2218 * MAINTAINERS (write after approval): Add myself.
2219
8b148df9
AC
22202003-08-18 Andrew Cagney <cagney@redhat.com>
2221
2222 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2223 * gdbarch.h, gdbarch.c: Re-generate.
2224 * infcall.c (call_function_by_hand): Adjust the SP by
2225 frame_red_zone_size before allocating any stack space.
2226 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2227 * x86-64-tdep.c (x86_64_frame_align): New function.
2228 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2229
2230 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2231 Remove code adjusting SP so that it skips over the Red Zone.
2232
954a4db8
MK
22332003-08-18 Mark Kettenis <kettenis@gnu.org>
2234
2235 * NEWS (New native configurations): Mention FreeBSD/amd64.
2236
1a241548
AC
22372003-08-18 Andrew Cagney <cagney@redhat.com>
2238
2239 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2240 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2241 "m68k_frame_p".
2242 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2243
f82b2acd
MK
22442003-08-18 Mark Kettenis <kettenis@gnu.org>
2245
2246 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2247
4056d258
ML
22482003-08-18 Michal Ludvig <mludvig@suse.cz>
2249
2250 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2251 Define.
2252 * i386-linux-nat.c: Include "linux-nat.h".
2253 (child_post_startup_inferior): New function.
2254
99ab4326
MK
22552003-08-18 Mark Kettenis <kettenis@gnu.org>
2256
2257 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2258 at the start of a frameless function. This probably fixes PR
2259 backtrace/1338.
2260
c8d5f0d6
MC
22612003-08-17 Michael Chastain <mec@shout.net>
2262
2263 * symfile.c (find_sym_fns): Remove special case for apollo target.
2264
9016a515
DJ
22652003-08-17 Daniel Jacobowitz <drow@mvista.com>
2266
2267 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2268 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2269 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2270 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2271 (linux_supports_tracevforkdone): New function.
2272 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2273 TRACEVFORKDONE.
2274 (child_follow_fork): Handle vfork.
2275 (linux_handle_extended_wait): Likewise. Also handle exec.
2276 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2277 * NEWS: Mention fork tracing.
2278
c538c11c
DJ
22792003-08-17 Daniel Jacobowitz <drow@mvista.com>
2280
2281 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2282
4de4c07c
DJ
22832003-08-17 Daniel Jacobowitz <drow@mvista.com>
2284
2285 * Makefile.in (i386-linux-nat.o): Update dependencies.
2286 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2287 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2288 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2289 * i386-linux-nat.c: Include "linux-nat.h".
2290 (child_post_startup_inferior): New function.
2291 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2292 * infptrace.c (kill_inferior): Wrap in #ifdef.
2293 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2294 attaching to each LWP.
2295 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2296 (init_lin_lwp_ops): Fill in some more operations.
2297 * linux-nat.h (linux_enable_event_reporting)
2298 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2299 prototypes.
2300 * linux-nat.c (linux_enable_event_reporting): New function.
2301 (child_post_attach, linux_child_post_startup_inferior)
2302 (child_post_startup_inferior, child_follow_fork)
2303 (linux_handle_extended_wait, kill_inferior): New functions.
2304
7996bcec
AC
23052003-08-16 Andrew Cagney <cagney@redhat.com>
2306
2307 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2308 * gdbarch.h, gdbarch.c: Re-generate.
2309
3d48a7a0
MK
23102003-08-16 Mark Kettenis <kettenis@gnu.org>
2311
2312 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2313
7989c619
AC
23142003-08-16 Andrew Cagney <cagney@redhat.com>
2315
2316 * NEWS: Mention that "set prompt-escape-char" was deleted.
2317 * top.c (get_prompt_1): Delete function.
2318 (gdb_prompt_escape):
2319 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2320 prompt-escape-char" command.
2321 (MAX_PROMPT_SIZE): Delete macro.
2322 (get_prompt): Simplify, do not call get_prompt_1.
2323
07978cd8
AC
23242003-08-16 Andrew Cagney <cagney@redhat.com>
2325
2326 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2327 -Werror. -Wformat-nonliteral problems.
2328
3ff7cf9e
JB
23292003-08-15 J. Brobecker <brobecker@gnat.com>
2330
2331 Further multiarching work mostly for hppa64-*-hpux11:
2332 * hppa-tdep.h: New file.
2333 * hppa-tdep.c: #include hppa-tdep.c.
2334 (hppa32_num_regs): Renamed from hppa_num_regs.
2335 (hppa64_num_regs): New constant.
2336 (hppa64_call_dummy_breakpoint_offset): New constant.
2337 (hppa32_call_dummy_length): New constant.
2338 (hppa64_call_dummy_length): New constant.
2339 (hppa32_stack_align): Make name 32bit explicit.
2340 (hppa32_register_virtual_type): Likewise.
2341 (hppa32_extract_return_value): Likewise.
2342 (hppa32_use_struct_convention): Likewise.
2343 (hppa32_store_return_value): Likewise.
2344 (hppa64_register_virtual_type): New function.
2345 (hppa64_extract_return_value): New function.
2346 (hppa64_use_struct_convention): New function.
2347 (hppa64_store_return_value): New function.
2348 (hppa_frame_locals_address): Remove declaration, function does
2349 not exist anymore.
2350 (hppa_register_byte): Add support for PA64 ABI.
2351 (hppa_gdbarch_init): Add support for PA64 ABI.
2352 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2353 Make name 32bit explicit.
2354 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2355 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2356 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2357 (hppa64_hpux_frame_base_before_sigtramp): New function.
2358 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2359 * config/pa/tm-hppa64.h: Remove macros that are no longer
2360 necessary now that the gdbarch vector is properly setup.
2361 Transform some macros into function calls. Some minor cleanup.
2362 * config/pa/tm-hppah.h: Update function calls in macros
2363 following the function renaming in hppa-hpux-tdep.c.
2364 * Makefile.in (hppa_tdep_h): New variable.
2365 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2366
5d05ca6d
MS
23672003-08-14 Michael Snyder <msnyder@redhat.com>
2368
2369 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2370
37ba2569
JB
23712003-08-13 J. Brobecker <brobecker@gnat.com>
2372
2373 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2374 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2375 routine.
2376
aed7f26a
MS
23772003-08-13 Michael Snyder <msnyder@redhat.com>
2378
2379 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2380 (frv_saved_pc_after_call): Use deprecated ftype.
2381 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2382 (frv_remote_translate_xfer_address): Remove.
2383 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2384
752d4ac1
JB
23852003-08-13 J. Brobecker <brobecker@gnat.com>
2386
2387 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2388 initialization after the common gdbarch initialization, not before.
2389
1426ac1d
JB
23902003-08-13 J. Brobecker <brobecker@gnat.com>
2391
2392 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2393 (ADDR_BITS_REMOVE): Remove, redundant.
2394
b6fbdd1d
JB
23952003-08-13 J. Brobecker <brobecker@gnat.com>
2396
2397 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2398 gdbarch method to clear the 2 low bits of text addresses.
2399
44160db3
AC
24002003-08-12 Andrew Cagney <cagney@redhat.com>
2401
2402 * Makefile.in (dsrec.o): Update dependencies.
2403 * dsrec.c: Include "gdb_assert.h".
2404 (make_srec): Use snprintf instead of sprintf, use a literal format
2405 string.
2406
bcf7d3ca
AC
24072003-08-12 Andrew Cagney <cagney@redhat.com>
2408
2409 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2410 FRAME_OBSTACK_ZALLOC.
2411
49ed40de
KB
24122003-08-12 Kevin Buettner <kevinb@redhat.com>
2413
2414 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2415 SSE registers.
2416
b246147c
MK
24172003-08-10 Mark Kettenis <kettenis@gnu.org>
2418
2419 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2420 amd64fbsd_sc_reg_offset): Add extern declarations.
2421 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2422 declarations.
2423
d95fdc0d
BE
24242003-08-11 Ben Elliston <bje@wasabisystems.com>
2425
2426 * MAINTAINERS (write after approval): Update my mail address.
2427
cf6a0e73
AC
24282003-08-10 Andrew Cagney <cagney@redhat.com>
2429
2430 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2431
f837910f
MK
24322003-08-10 Mark Kettenis <kettenis@gnu.org>
2433
e2dbbd2d
MK
2434 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2435 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2436 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2437 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2438 i386bsd_sc_reg_offset): Add extern declarations.
2439 * i386obsd-nat.c: Include "i386-tdep.h"
2440 (_initialize_i386obsd_nat): Remove extern declarations.
2441 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2442 declarations.
2443 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2444 declarations.
2445
f837910f
MK
2446 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2447 instead of frame_read_register.
2448 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2449 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2450 SP_REGNUM.
2451 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2452 instead of frame_unwind_unsigned_register. Use
2453 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2454 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2455 instead of read_register. Use builtin_type_void_data_ptr instead
2456 of builtin_type_void_func_ptr when extracting the address of the
2457 jmp_buf.
2458 (i386_extract_return_value, i386_store_return_value,
2459 i386_pseudo_register_read, i386_pseudo_register_write): Use
2460 register_size instead REGISTER_RAW_SIZE.
2461
edcf254d
AC
24622003-08-10 Andrew Cagney <cagney@redhat.com>
2463
2464 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2465 sprintf. Make "name" constant.
2466
26604a34
MK
24672003-08-10 Mark Kettenis <kettenis@gnu.org>
2468
192285c6
MK
2469 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2470 instead of frame_read_register.
f837910f
MK
2471 (i387_print_float_info): Use get_frame_register and
2472 get_frame_register_unsigned instead of frame_register_read.
192285c6 2473
f0925262
MK
2474 * i386fbsd-nat.c: Include "i386-tdep.h".
2475 (child_resume): Make `eflags' an ULONGEST. Use
2476 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2477 instead of register_read and register_write.
2478
a144416f
MK
2479 * i386bsd-nat.c (fetch_inferior_registers,
2480 store_inferior_registers): Don't use && at the end of a line.
2481 (_initialize_i386bsd_nat): Fix typo.
2482
fec74868
MK
2483 * frame.c (_initialize_frame): Add missing backslash.
2484
87232496
MK
2485 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2486 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2487 and supply_register instead of manipulating the register buffer
2488 directly.
2489
c9b9de0b
MK
2490 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2491 * config/i386/nm-i386sol2.h
2492 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2493
26604a34
MK
2494 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2495 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2496 instructions that GCC likes to mingle into the prologue. Fixes
2497 gdb/1253 and gdb/1255.
2498
25d29d70
AC
24992003-08-09 Andrew Cagney <cagney@redhat.com>
2500
2501 Fix GDB PR cli/926.
2502 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2503 * command.h (add_setshow_uinteger_cmd): Declare.
2504 * frame.c (set_backtrace_cmd): New function.
2505 (show_backtrace_cmd): New function.
2506 * frame.c (_initialize_frame): Replace "set/show
2507 backtrace-below-main" with "set/show backtrace past-main". Add
2508 command "set/show backtrace limit".
2509 (backtrace_past_main): Rename "backtrace_below_main".
2510 (backtrace_limit): New variable.
2511 (get_prev_frame): Update. Check the backtrace_limit.
2512
9ebf4acf
AC
25132003-08-09 Andrew Cagney <cagney@redhat.com>
2514
2515 * defs.h (xstrprintf): Declare.
2516 * utils.c (xstrprintf): New function.
2517 * breakpoint.c (insert_breakpoints): Replace sprintf and
2518 non-literal format strings, with xstrprintf and cleanups.
2519 (delete_breakpoint,breakpoint_re_set): Ditto.
2520 (commands_command, insert_breakpoints): Ditto.
2521 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2522 (break_at_finish_command_1): Ditto.
2523
3771659b
AC
25242003-08-09 Andrew Cagney <cagney@redhat.com>
2525
2526 * MAINTAINERS (language support): List Adam Fedor as Objective C
2527 maintainer.
2528
b4263afa
JB
25292003-08-08 J. Brobecker <brobecker@gnat.com>
2530
2531 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2532 are now multiarched.
2533
d84defb1
JB
25342003-08-08 J. Brobecker <brobecker@gnat.com>
2535
2536 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2537 longer necessary now that hppa64 is partially multiarch'ed.
2538
f786f615
AC
25392003-08-08 Andrew Cagney <cagney@redhat.com>
2540
2541 * interps.c (interp_set): Check for a NULL "old_interp".
2542
c938e9b0
L
25432003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2544
2545 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2546 (install-only): Support DESTDIR.
2547 (uninstall): Likewise.
2548 (install-gdbtk): Likewise.
2549
9a146a11
EZ
25502003-08-08 Elena Zannoni <ezannoni@redhat.com>
2551
2552 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2553 contains something meaningful at all times.
2554
2555Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2556
62599e99 2557 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2558
56296155
BC
2559Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2560
62599e99 2561 * MAINTAINERS (write after approval): Added self.
56296155 2562
9710e734
AC
25632003-08-07 Andrew Cagney <cagney@redhat.com>
2564
2565 * inferior.h (AT_SYMBOL): Define.
2566 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2567 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2568 * mips-tdep.c (mips_call_dummy_address): Delete function.
2569 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2570 set call_dummy_address.
2571
98b3ab73
AC
25722003-08-07 Andrew Cagney <cagney@redhat.com>
2573
2574 * language.c (op_error): Delete function.
2575 (binop_type_check): Delete function.
2576 * language.h (type_op_error, range_op_error): Delete macros.
2577 (op_error): Delete declaration.
2578
2fcf52f0
AC
25792003-08-07 Andrew Cagney <cagney@redhat.com>
2580
2581 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2582
abd4220e 25832003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2584
abd4220e 2585 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2586 (x86_64_push_arguments): Skip the red zone.
abd4220e 2587
9dd5f34f
AC
25882003-08-05 Andrew Cagney <cagney@redhat.com>
2589
2590 * reggroups.c (reggroup_next): Check for the final entry.
2591
e5e78edc
AC
25922003-08-04 Andrew Cagney <cagney@redhat.com>
2593
ab4e3d93
AC
2594 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2595 * cli/cli-script.c (define_command): Call query directly, instead
2596 of passing it a buffer.
2597 * ocd.c (ocd_error): Pass error a constant format string.
2598 * remote-mips.c (mips_error): Use fputs_filtered.
2599
1062ca82
AC
2600 * solib-svr4.c (_initialize_svr4_solib): Update
2601 register_gdbarch_data call.
2602 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2603
fcc1c85c
AC
2604 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2605 (register_gdbarch_data): Delete "free" parameter. Update
2606 comments.
2607 * gdbarch.h, gdbarch.c: Re-generate.
2608 * reggroups.c (_initialize_reggroup): Update.
2609 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2610 * frame-base.c (_initialize_frame_base): Update.
2611 * frame-unwind.c (_initialize_frame_unwind): Update.
2612 * user-regs.c (_initialize_user_regs): Update.
2613 * remote.c (_initialize_remote): Update.
2614 * regcache.c (_initialize_regcache): Update.
2615
116f06ea
AC
2616 * regcache.c (xfree_regcache_descr): Delete function.
2617 (_initialize_regcache): Update call to register_gdbarch_data.
2618 (init_regcache_descr, init_legacy_regcache_descr): Use
2619 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2620
e5e78edc
AC
2621 * remote.c (free_remote_state): Delete function.
2622 (_initialize_remote): Update register_gdbarch_data.
2623 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2624 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2625
6c7d17ba
AC
26262003-08-04 Andrew Cagney <cagney@redhat.com>
2627
2628 * reggroups.c (struct reggroup_el): Define.
2629 (struct reggroups): Delete field "nr_group". Replace array
2630 "group" with a "first" to "last" linked list.
2631 (reggroups_init): Update. Allocate using gdbarch's obstack.
2632 (reggroups_free): Delete function.
2633 (add_group): Update. Add "el" parameter.
2634 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2635 (default_groups): Update.
2636 (reggroup_next): Replace reggroups.
2637 (reggroups_dump): Update.
2638 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2639 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2640 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2641
89b7795b
DJ
26422003-08-04 Daniel Jacobowitz <drow@mvista.com>
2643
2644 * Makefile.in (tui-interp.o): Update dependencies.
2645
306d9ac5
DC
26462003-08-04 David Carlton <carlton@kealia.com>
2647
2648 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2649 to internal_error call.
2650 * source.c (forward_search_command): Add "%s" format argument.
2651 (reverse_search_command): Ditto.
2652 * top.c (quit_confirm): Ditto.
2653 * cli/cli-setshow.c (do_setshow_command): Ditto.
2654 * cp-valprint.c (cp_print_class_method): Replace
2655 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2656 (cp_print_class_member): Ditto.
2657 * event-top.c (command_line_handler): Ditto.
2658 * linux-proc.c (linux_info_proc_cmd): Ditto.
2659 * p-typeprint.c (pascal_type_print_base): Ditto.
2660 * p-valprint.c (pascal_object_print_class_method): Ditto.
2661 (pascal_object_print_class_member): Ditto.
2662 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2663 * remote.c (remote_cisco_section_offsets): Ditto.
2664 * top.c (command_line_input): Ditto.
2665 * utils.c (vwarning,error_stream,quit): Ditto.
2666 * valprint.c (print_floating,print_binary_chars)
2667 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2668
57bfe177
AC
26692003-08-04 Andrew Cagney <cagney@redhat.com>
2670
2671 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2672
e546b999
AC
26732003-08-02 Andrew Cagney <cagney@redhat.com>
2674
2675 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2676 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2677 amd64fbsd-nat.c.
2678
91092ee5
AC
26792003-08-02 Andrew Cagney <cagney@redhat.com>
2680
2681 * Makefile.in: Update all dependencies and definitions.
2682
889f28e2
AF
26832003-08-02 Adam Fedor <fedor@gnu.org>
2684
2685 * linespec.c (is_objc_method_format): New function
2686 (decode_line_1, locate_first_half): Use it.
2687 Fixes PR objc/1298
2688
880bc914
AC
26892003-08-01 Andrew Cagney <cagney@redhat.com>
2690
2691 * NEWS: Mention that m32r is multi-arch.
2692 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2693 * configure.tgt: Recognize m32r-*-*.
2694 * config/m32r/tm-m32r.h: Delete file.
2695 * config/m32r/m32r.mt: New file.
2696 * m32r-rom.c (m32r_upload_command): Use hostent only when
2697 gethostname succeeds, in order to avoid a compilation
2698 warning.
2699 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2700 compiler warning.
2701
19f59343
MS
27022003-08-01 Michael Snyder <msnyder@redhat.com>
2703
2704 * sh-tdep.c (sh_frame_align): New gdbarch method.
2705 (sh_gdbarch_init): Set up frame_align method.
2706
4e7d7511
MS
27072003-07-31 Michael Snyder <msnyder@redhat.com>
2708
2709 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2710 which is already covered by the new frames infrastructure.
2711
63022984
AC
27122003-07-31 Andrew Cagney <cagney@redhat.com>
2713
2714 * user-regs.c (struct user_reg): Add "next" link.
2715 (struct user_regs): Replace "user" with "first" and "last" links.
2716 (append_user_reg): Add pre-allocated "reg" parameter.
2717 (builtin_user_regs): Provide initial value for "last".
2718 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2719 (user_regs_init): Allocate memory from the gdbarch obstack.
2720 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2721 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2722 linked list.
2723 (usernum_to_user_reg): New function.
2724 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2725 (value_of_user_reg): Use usernum_to_user_reg.
2726 (user_regs_free): Delete function.
2727 (_initialize_user_regs): Update register_gdbarch_data call.
2728
7cf6e574
DJ
27292003-07-31 Daniel Jacobowitz <drow@mvista.com>
2730
2731 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2732
c48a845b
MS
27332003-07-30 Michael Snyder <msnyder@redhat.com>
2734
4e7d7511 2735 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2736 * infcall.c (call_function_by_hand): Pass struct_addr to
2737 value_being_returned.
2738 * infcmd.c (print_return_value): Pass zero as struct_addr.
2739 * values.c (value_being_returned): If struct_addr is passed,
2740 use it instead of trying to recover it from the inferior.
2741
f0d8db19
KB
27422003-07-30 Kevin Buettner <kevinb@redhat.com>
2743
2744 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2745 the prologue analyzer won't need to attempt to extract the pc
2746 value from the woefully incomplete dummy frame.
2747 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2748 possible. Disable code which modifies the frame.
2749
e5c113a1
AC
27502003-07-28 Andrew Cagney <cagney@redhat.com>
2751
2752 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2753 to level 2.
2754 (annotate_breakpoints_table, annotate_record): Ditto.
2755 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2756 (annotate_field_name_end, annotate_field_value): Ditto.
2757 (annotate_field_end, annotate_frame_source_begin): Ditto.
2758 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2759 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2760 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2761 (annotate_frame_address_end, annotate_frame_address): Ditto.
2762 (annotate_frame_args, annotate_frame_end): Ditto.
2763 (annotate_frame_where, annotate_arg_begin): Ditto.
2764 (annotate_arg_name_end, annotate_arg_value): Ditto.
2765 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2766 (annotate_function_call, annotate_signal_name): Ditto.
2767 (annotate_signal_string, annotate_signal_name_end): Ditto.
2768 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2769 (annotate_value_begin, annotate_value_history_value): Ditto.
2770 (annotate_value_history_end, annotate_value_end): Ditto.
2771 (annotate_display_begin, annotate_display_number_end): Ditto.
2772 (annotate_display_format, annotate_display_expression): Ditto.
2773 (annotate_display_expression_end, annotate_display_value): Ditto.
2774 (annotate_display_end, annotate_array_section_begin): Ditto.
2775 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2776 (annotate_elt, annotate_array_section_end): Ditto.
2777
bb1db049
AC
27782003-07-28 Andrew Cagney <cagney@redhat.com>
2779
2780 * regcache.c (struct regcache_descr): Update comments on
2781 nr_raw_registers.
2782 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2783 sizeof_raw_register_valid_p.
2784 (init_regcache_descr): Set nr_raw_registers and
2785 sizeof_raw_register_valid_p before calling
2786 init_legacy_regcache_descr.
2787
20e6603c
AC
27882003-07-28 Andrew Cagney <cagney@redhat.com>
2789
2790 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2791 MOD NUM_REGS.
2792
db742940
DJ
27932003-07-28 Daniel Jacobowitz <drow@mvista.com>
2794
2795 * thread.c (info_threads_command): Use get_selected_frame ().
2796 Check that there is at least one non-sentinel frame.
2797
ce7f4371
SC
27982003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2799
2800 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2801 (m68hc11_pop_frame): Remove.
2802 (m68hc11_frame_saved_pc): Remove.
2803 (m68hc11_frame_chain): Remove.
2804 (m68hc11_frame_init_saved_regs): Remove.
2805 (m68hc11_init_extra_frame_info): Remove.
2806 (m68hc11_store_struct_return): Remove.
2807 (m68hc11_saved_pc_after_call): Remove.
2808
1ea653ae
SC
28092003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2810
2811 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2812 frame unwind information.
2813 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2814 and adapted for frame unwinding.
2815 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2816 (m68hc11_unwind_pc): New function.
2817 (m68hc11_frame_unwind_cache): New function to analyze frames.
2818 (m68hc11_frame_this_id): New function to create new frame struct.
2819 (m68hc11_frame_prev_register): New function to unwind a register from
2820 the frame.
2821 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2822 (m68hc11_frame_p): New function for the above.
2823 (m68hc11_frame_base_address): New function to return fp of frame.
2824 (m68hc11_frame_args_address): Update for frame.
2825 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2826 (m68hc11_unwind_sp): New function.
2827 (m68hc11_unwind_dummy_id): New function.
2828 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2829 calls.
2830
c8a7f6ac
SC
28312003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2832
2833 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2834 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2835 when we are beyond the current pc.
2836
3dc990bf
SC
28372003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2838
2839 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2840 from m68hc11_push_arguments.
2841 (m68hc11_push_arguments): Remove.
2842 (m68hc11_push_return_address): Remove.
2843 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2844 handlers; remove deprecated_extra_stack_alignment_needed.
2845
222e5d1d
AC
28462003-07-27 Andrew Cagney <cagney@redhat.com>
2847
2848 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2849 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2850 REAL_PC and not the pointer.
2851 * hppa-hpux-tdep.c: Include frame.h
2852
a7e9a47e
AC
28532003-07-27 Andrew Cagney <cagney@redhat.com>
2854
2855 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2856 GDB_MULTI_ACH_PARTIAL.
2857
7e3dd49e
AC
28582003-07-27 Andrew Cagney <cagney@redhat.com>
2859
2860 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2861 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2862 operator at start and not end of line.
2863 (decode_prologue): Ditto.
2864 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2865 frame_unwind_register_unsigned instead of
2866 frame_unwind_unsigned_register.
2867 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2868 read_register.
2869 (m32r_push_dummy_call): Use register_size instead of
2870 REGISTER_RAW_SIZE.
2871 (m32r_frame_sniffer): Replace m32r_frame_p.
2872 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2873 * m32r-rom.c (report_transfer_performance): Delete extern
2874 declaration.
2875 (m32r_load, m32r_upload_command): Use print_transfer_performance
2876 instead of report_transfer_performance.
2877 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2878 / add_show_from_set.
2879
0880807f
AC
28802003-07-26 Andrew Cagney <cagney@redhat.com>
2881
2882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2883 store_return_value and extract_struct_value_address.
2884
64ae9269
DJ
28852003-07-26 Daniel Jacobowitz <drow@mvista.com>
2886
2887 PR c++/1267
2888 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2889 NULL, default to the section containing PC.
2890
e286caf2
SC
28912003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2892
2893 * NEWS: Mention "regs" deprecated for m68hc11 too.
2894
2895 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2896 (m68hc11_print_register): New function to print out one register.
2897 (m68hc11_print_registers_info): New function to print registers.
2898 (show_regs): Deprecate and use the above.
2899 (m68hc11_gdbarch_init): Install the print_registers_info.
2900
705b278b
JJ
29012003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2902
2903 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2904 that we have a SIGTRAP before returning non-zero.
2905
63cd4198
EZ
29062003-07-23 Michal Ludvig <mludvig@suse.cz>
2907 Elena Zannoni <ezannoni@redhat.com>
2908
2909 * linespec.c (decode_line_2): Avoid crash if
2910 find_function_start_sal() returns empty record.
2911
6926787d
AS
29122003-07-23 Andreas Schwab <schwab@suse.de>
2913
2914 * ia64-tdep.c (ia64_print_insn): New function.
2915 (ia64_gdbarch_init): Set print_insn to it.
2916 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2917 deprecated_tm_print_insn_info.
2918
708cc1b6
MS
29192003-07-22 Michael Snyder <msnyder@redhat.com>
2920
2921 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2922 handle 8-bit returns (long long).
2923 (h8300h_extract_return_value): Ditto.
2924 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2925
aebd7893
AC
29262003-07-22 Andrew Cagney <cagney@redhat.com>
2927
2928 * gdbarch.c Include "gdb_obstack.h".
2929 (struct gdbarch): Add an "obstack".
2930 (alloc_gdbarch_data): Allocate the gdbarch data using
2931 GDBARCH_OBSTACK_CALLOC.
2932 (free_gdbarch_data): Delete function.
2933 (gdbarch_obstack_zalloc): New function.
2934 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2935 Assert that the architecture is not initialized.
2936 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2937 vector from the obstack.
2938 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2939 architecture obstack.
2940 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2941 (set_gdbarch_data): Assert that the data is not initialized.
2942 (struct gdbarch_data): Delete member "free".
2943 (register_gdbarch_data): Do not initialize "free".
2944 * gdbarch.h, gdbarch.c: Re-generate.
2945
153721e6
AC
29462003-07-22 Andrew Cagney <cagney@redhat.com>
2947
2948 * configure.in (build_warnings): Add -Wformat-nonliteral.
2949 * configure: Re-generate.
2950
c193f044 29512003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2952
2953 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2954
c3228f12
EZ
29552003-07-22 Elena Zannoni <ezannoni@redhat.com>
2956
2957 * findvar.c (read_var_value): Remove case for thread local storage
2958 variables. It is now entirely handled by the dwarf2 location
2959 expression code.
2960 * printcmd.c (address_info): Ditto.
2961 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2962 enumeration value.
2963 (struct symbol): Remove objfile field, which was used by
2964 LOC_THREAD_LOCAL_STATIC only.
2965 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2966 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2967 usage of objfile pointer.
2968 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2969 thread local variables.
2970 Add include of objfiles.h.
2971 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2972 storage variables.
2973 * Makefile.in (dwarf2loc.o): Update dependencies.
2974
aef9bcd2
AC
29752003-07-22 Andrew Cagney <cagney@redhat.com>
2976
2977 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2978 get_frame_base.
2979 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2980 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2981 (struct value): Add opaque declaration.
2982 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2983
d95a8903
AC
29842003-07-21 Andrew Cagney <cagney@redhat.com>
2985
2986 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2987 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2988
4db73d49
SC
29892003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2990
2991 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2992 regcache_cooked_read_unsigned instead of read_register.
2993 (m68hc11_saved_pc_after_call): Likewise.
2994 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2995 instead of write_register.
2996 (m68hc11_register_type): New function.
2997 (m68hc11_register_virtual_type): Remove.
2998 (m68hc11_store_return_value): Convert to use the regcache.
2999 (m68hc11_extract_struct_value_address): Likewise.
3000 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3001 m68hc11_register_type; undeprecate store_return_value and
3002 extract_struct_value_address.
3003
ef2b8fcd
SC
30042003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3005
3006 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3007 and translate to use regcache.
3008 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3009
625b0b97
AC
30102003-07-18 Andrew Cagney <cagney@redhat.com>
3011
3012 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3013 * gdbarch.h, gdbarch.c: Re-generate.
3014 * i386-tdep.c (i386_gdbarch_init): Do not set
3015 DWARF2_BUILD_FRAME_INFO.
3016 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3017 unconditionally.
3018 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3019 DWARF2_BUILD_FRAME_INFO.
3020
22b0d388
AC
30212003-07-18 Andrew Cagney <cagney@redhat.com>
3022
3023 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3024 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3025
1ce5d6dd
AC
30262003-07-18 Andrew Cagney <cagney@redhat.com>
3027
3028 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3029 frame_unwind_address_in_block, instead of frame_pc_unwind.
3030 (dwarf2_frame_cache): Ditto.
3031
e6e5e94c
AC
30322003-07-18 Andrew Cagney <cagney@redhat.com>
3033
3034 * user-regs.h (struct gdbarch): Declare opaque.
3035 * ui-out.h (struct ui_file): Declare opaque.
3036 * dwarf2-frame.h (struct frame_info): Declare opaque.
3037
5483d879
KW
30382003-07-18 Kris Warkentin <kewarken@qnx.com>
3039
3040 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3041 #include "...".
3042 (procfs_meminfo): Change strerror to safe_strerror.
3043 (procfs_can_run): Remove K&R badness.
3044
278a7cf7
MS
30452003-07-17 Michael Snyder <msnyder@redhat.com>
3046
3047 * remote-sim.c: Comment typo fix.
3048
606e3b82
AC
30492003-07-17 Andrew Cagney <cagney@redhat.com>
3050
3051 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3052 configure.
3053 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3054 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3055 GDB_MULTI_ARCH_PARTIAL.
3056
c43af07c
EZ
30572003-07-17 Elena Zannoni <ezannoni@redhat.com>
3058
3059 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3060 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3061 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3062
3b85b0f1
TR
30632003-07-16 Theodore A. Roth <troth@openavr.org>
3064
3065 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3066 found.
3067 (avr_frame_unwind_cache): Don't unwind FP for main.
3068 Update a comment.
3069 Save the computed prev_sp.
3070 (avr_saved_regs_unwinder): Remove function.
3071 (avr_frame_prev_register): Use PC unwind logic from
3072 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3073
336d1bba
AC
30742003-07-16 Andrew Cagney <cagney@redhat.com>
3075
3076 * frame-base.h (frame_base_p_ftype): Delete definition.
3077 (frame_base_append_predicate): Delete declaration.
3078 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3079 (frame_unwind_append_predicate): Delete declaration.
3080 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3081 (append_predicate): Delete parameter "p".
3082 (frame_unwind_append_predicate): Delete function.
3083 (frame_unwind_append_sniffer): Update call to append_predicate.
3084 (frame_unwind_free): Delete function.
3085 (_initialize_frame_unwind): Pass NULL as "free" to
3086 register_gdbarch_data.
3087 (frame_unwind_init): Append the dummy_frame_sniffer.
3088 (frame_unwind_find_by_frame): Simplify.
3089 * frame-base.c (struct frame_base_table): Delete field "p".
3090 (append_predicate): Delete parameter "p".
3091 (frame_base_append_predicate): Delete function.
3092 (frame_base_append_sniffer): Update call to append_predicate.
3093 (frame_base_free): Delete function.
3094 (frame_base_find_by_frame): Simplify.
3095 (_initialize_frame_base): Pass NULL as "free" to
3096 register_gdbarch_data.
3097 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3098 (x86_64_sigtramp_frame_sniffer): Replace
3099 "x86_64_sigtramp_frame_p".
3100 (x86_64_init_abi): Set the frame unwind sniffers.
3101 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3102 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3103 (m68k_gdbarch_init): Set the frame unwind sniffers.
3104 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3105 "i386_sigtramp_frame_p".
3106 (i386_frame_sniffer): Replace "i386_frame_p".
3107 (i386_gdbarch_init): Set the frame unwind sniffers.
3108 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3109 (avr_gdbarch_init): Set the frame unwind sniffers.
3110 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3111 "alpha_sigtramp_frame_p"
3112 (alpha_heuristic_frame_sniffer): Replace
3113 "alpha_heuristic_frame_p".
3114 (alpha_gdbarch_init): Set the frame unwind sniffers.
3115 (alpha_dwarf2_init_abi): Ditto.
3116 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3117 "alpha_debug_frame_p".
3118 (alpha_mdebug_frame_base_sniffer): Replace
3119 "alpha_mdebug_frame_base_p".
3120 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3121 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3122 (d10v_gdbarch_init): Set the frame unwind sniffer.
3123 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3124 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3125 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3126 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3127 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3128 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3129
48db5a3c
CV
31302003-07-16 Michael Snyder <msnyder@redhat.com>
3131
3132 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3133 should go thru sh_dsp_register_sim_regno, else the dsp regs
3134 will not get the right values.
3135
31362003-07-16 Corinna Vinschen <vinschen@redhat.com>
3137
3138 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3139 deprecated_store_floating by call to store_typed_floating.
3140 (sh_sh4_register_convert_to_raw): Substitute call to
3141 deprecated_extract_floating by call to extract_typed_floating.
3142
31432003-07-16 Corinna Vinschen <vinschen@redhat.com>
3144
3145 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3146
31472003-07-16 Corinna Vinschen <vinschen@redhat.com>
3148
3149 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3150 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3151 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3152 as possible.
3153 (do_pseudo_register): Remove.
3154 (sh_push_dummy_code): New function.
3155 (sh64_store_struct_return): Rename from sh_store_struct_return.
3156 Only called for sh64 now.
3157 (sh_extract_struct_value_address): Regcache'ify.
3158 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3159 and accomodate new tasks.
3160 (sh64_push_return_address): Rename from sh_push_return_address.
3161 Only called for sh64 now.
3162 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3163 Regcache'ify.
3164 (sh3e_sh4_extract_return_value): Regcache'ify.
3165 (sh_default_store_return_value): Ditto.
3166 (sh3e_sh4_store_return_value): Ditto.
3167 (sh_default_register_byte): Remove.
3168 (sh_sh4_register_byte): Remove.
3169 (sh_default_register_raw_size): Remove.
3170 (sh_sh4_register_raw_size): Remove.
3171 (sh_register_virtual_size): Remove.
3172 (sh_sh3e_register_virtual_type): Remove.
3173 (sh_sh3e_register_type): New function.
3174 (sh_sh4_register_virtual_type): Remove.
3175 (sh_sh4_register_type): New function.
3176 (sh_default_register_virtual_type): Remove.
3177 (sh_default_register_type): New function.
3178 (do_fv_register_info): Add parameters to accomodate call from
3179 sh_print_registers_info.
3180 (do_dr_register_info): Ditto.
3181 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3182 Add parameters to accomodate call from sh_print_registers_info.
3183 (sh_do_fp_register): Ditto.
3184 (sh64_do_pseudo_register): Call do_dr_register_info,
3185 do_fv_register_info and sh_do_fp_register with default parameters.
3186 (sh_do_register): Add parameters to accomodate call from
3187 sh_print_registers_info.
3188 (sh_print_register): Ditto.
3189 (sh_print_registers_info): Rename from sh_do_registers_info.
3190 Add parameters to be used as gdbarch_print_registers_info
3191 implementation. Accomodate removed do_pseudo_register function
3192 pointer.
3193 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3194 function pointer. Call sh_print_register with default parameters.
3195 (sh64_do_registers_info): Call sh_print_registers_info instead of
3196 sh_do_registers_info.
3197 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3198 detection of deprecated vs. non-deprecated functionality.
3199 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3200 function pointer assignments by direct function calls.
3201
e8a89fe2
AC
32022003-07-15 Andrew Cagney <cagney@redhat.com>
3203
3204 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3205 (frame_register_unwind, create_new_frame): Ditto.
3206 (legacy_get_prev_frame, get_frame_type): Ditto.
3207 (get_frame_base_address): Use frame_base_find_by_frame.
3208 (get_frame_locals_address): Use frame_base_find_by_frame.
3209 (get_frame_args_address): Use frame_base_find_by_frame.
3210 * frame-base.h (frame_base_sniffer_ftype): Declare.
3211 (frame_base_append_sniffer): Declare.
3212 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3213 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3214 (frame_base_append_sniffer): New function.
3215 (frame_base_append_predicate): Add a NULL sniffer.
3216 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3217 (struct frame_base_table): Add "sniffer".
3218 (frame_base_free): Free the "sniffer" table.
3219 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3220 (frame_unwind_append_sniffer): Declare.
3221 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3222 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3223 (struct frame_unwind_table): Add "sniffer", delete "middle".
3224 (append_predicate): Add "sniffer" parameter, append the sniffer.
3225 (frame_unwind_init): Update append_predicate call.
3226 (frame_unwind_append_sniffer): New function.
3227 (frame_unwind_append_predicate): Update append_predicate call.
3228 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3229
0714963c
AC
32302003-07-15 Andrew Cagney <cagney@redhat.com>
3231
3232 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3233 before code inhibiting repeated unwind attempts. Add to
3234 commentary on that test's problems.
3235 * blockframe.c (inside_main_func): Look for "main" in the minimal
3236 symbol table.
3237 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3238 identical.
3239
d9170e22
AC
32402003-07-15 Andrew Cagney <cagney@redhat.com>
3241
3242 * complaints.c (struct explanation): Define.
3243 (struct complaints): Change type of "explanation" to "struct
3244 explanation".
3245 (symfile_explanations): Convert to a "struct explanation" table.
3246 (vcomplaint): Update.
3247
eba29c8c
ML
32482003-07-15 Michal Ludvig <mludvig@suse.cz>
3249
3250 * x86-64-linux-nat.c (regmap): Removed.
3251 (supply_gregset, fill_gregset): Call
3252 x86_64_linux_(fill,supply)_gregset functions.
3253 * x86-64-linux-tdep.c (USER_*): New defines.
3254 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3255 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3256 New functions.
3257 (fetch_core_registers): Ditto.
3258 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3259 * x86-64-linux-tdep.h: New file.
3260 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3261 and core-regset.o.
3262 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3263
68cc0bfb
MK
32642003-07-13 Mark Kettenis <kettenis@gnu.org>
3265
88a115f7
MK
3266 * x86-64-tdep.c (x86_64_store_return_value): Use
3267 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3268
68cc0bfb
MK
3269 * configure.host: Add x86_64-*-freebsd*.
3270 * configure.tgt: Add x86_64-*-freebsd*.
3271 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3272 * amd64fbsd-nat.c: New file.
3273 * amd64fbsd-tdep.c: New file.
3274 * config/i386/nm-fbsd64.h: New file.
3275 * config/i386/fbsd64.mh: New file.
3276 * config/i386/fbsd64.mt: New file.
3277
138e7be5
MK
32782003-07-11 Mark Kettenis <kettenis@gnu.org>
3279
3280 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3281 `sc_regs_offset' and `sc_fpregs_offset'.
3282 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3283 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3284 (alpha_sigtramp_register_address): Rewrite to use new members of
3285 `struct gdbarch_tdep'.
3286 (alpha_gdbarch_init): Initialize new members of struct
3287 gdbarch_tdep'.
3288 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3289 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3290 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3291 (alphafbsd_pc_in_sigtramp): Implement.
3292 (alphafbsd_sigtramp_offset): New function.
3293 (alphafbsd_sigcontext_addr): New function.
3294 (alphafbsd_init_abi): Initialize signal trampoline related members
3295 of `struct gdbarch_tdep'.
3296 (_initialize_alphafbsd_tdep): Add prototype.
3297
95303a68
TR
32982003-07-11 Theodore A. Roth <troth@openavr.org>
3299
ba292e4c
TR
3300 * Makefile.in (install-only): Quote sed expression when generating
3301 transformed_name.
95303a68 3302
6896c0c7
RH
33032003-07-11 Richard Henderson <rth@redhat.com>
3304
3305 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3306 * dwarf2-frame.c: Include complaints.h.
3307 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3308 variable initialization; return NULL on error.
3309 (decode_frame_entry): New.
3310
8edd5d01
AC
33112003-07-11 Andrew Cagney <cagney@redhat.com>
3312
c4a09524
AC
3313 * frame.h (frame_address_in_block): Delete declaration.
3314 * blockframe.c (frame_address_in_block): Delete function.
3315 (get_frame_block): Use get_frame_address_in_block.
3316 (block_innermost_frame): Ditto.
3317 * stack.c (print_frame, backtrace_command_1): Ditto.
3318
8edd5d01
AC
3319 * frame.h (get_frame_address_in_block): Declare.
3320 (frame_unwind_address_in_block): Declare.
3321 * frame.c (frame_unwind_address_in_block): New function.
3322 (get_frame_address_in_block): New function.
3323
f7968451
AC
33242003-07-10 Andrew Cagney <cagney@redhat.com>
3325
3326 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3327 pre-default. Note: re-generate has no effect.
3328
ae99b398
AC
33292003-07-10 Andrew Cagney <cagney@redhat.com>
3330
3331 * gdbarch.sh: When a variable, but not a function, compare against
3332 0. Fix problem in previous patch.
3333 * gdbarch.c: Re-generate.
3334
956ac328
AC
33352003-07-10 Andrew Cagney <cagney@redhat.com>
3336
3337 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3338 functions against NULL, not 0.
3339 * gdbarch.c: Re-generate.
3340
287c3240
FF
33412003-07-10 Fred Fish <fnf@ninemoons.com>
3342
3343 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3344 null string instead of a null pointer.
3345 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3346
32f63c4b
MS
33472003-07-09 Michael Snyder <msnyder@redhat.com>
3348
3349 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3350
402ecd56
MK
33512003-07-09 Mark Kettenis <kettenis@gnu.org>
3352
3353 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3354 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3355 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3356 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3357 * x86-64-tdep.c: ... from here.
3358
c481dac7
AS
33592003-07-09 Andreas Schwab <schwab@suse.de>
3360
3361 * m68k-tdep.h (enum struct_return): Define.
3362 (struct gdbarch_tdep): Add struct_return.
3363 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3364 bytes are padded to the right, not to the left. Pass struct value
3365 address in register %a1, not on stack.
3366 (m68k_use_struct_convention): New function.
3367 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3368 struct_return in tdep to pcc_struct_return.
3369 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3370 reg_struct_return.
3371
64176fa3
JB
33722003-07-09 Joel Brobecker <brobecker@gnat.com>
3373
3374 * somread.c (som_symfile_offsets): Fix compilation error.
3375
96a4ee76
AC
33762003-07-09 Andrew Cagney <cagney@redhat.com>
3377
3378 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3379 Add comments about the checks.
3380
1517c6d1
AC
33812003-07-08 Andrew Cagney <cagney@redhat.com>
3382
3383 * Makefile.in: Make dependency section headers consistent.
3384 (config_h): Move to $BUILD headers section.
3385 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3386 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3387 (ada-exp.tab.c): Move to YACC/LEX section.
3388 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3389 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3390
dc5dd1eb
KW
33912003-07-08 Kris Warkentin <kewarken@qnx.com>
3392
3393 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3394 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3395 of strerror with safe_strerror, use ISO C function definitions,
3396 and replace instances of sprintf with snprintf.
dc5dd1eb 3397
612dde91
AC
33982003-07-07 Andrew Cagney <cagney@redhat.com>
3399
3400 * frame.c (get_prev_frame): Enable check for identical frames.
3401 Update comments. Update error messages.
3402
492c11d3
JB
34032003-07-07 Joel Brobecker <brobecker@gnat.com>
3404
3405 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3406
376a5a49
JB
34072003-07-07 Joel Brobecker <brobecker@gnat.com>
3408
3409 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3410 sort_symtab_syms, no longer necessary.
3411
22b4a9ad
JB
34122003-07-07 Joel Brobecker <brobecker@gnat.com>
3413
3414 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3415
5bbcb741
JB
34162003-07-07 Joel Brobecker <brobecker@gnat.com>
3417
3418 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3419 (mips_register_byte): Likewise.
3420
c139e7d9
DJ
34212003-07-07 Daniel Jacobowitz <drow@mvista.com>
3422
3423 * Makefile.in (sparc_tdep_h): New.
3424 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3425 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3426 * sparc-linux-nat.c: Include "sparc-tdep.h".
3427 * sparc-nat.c: Likewise.
3428 * sparc-tdep.c: Likewise.
3429 * sparc64nbsd-nat.c: Likewise.
3430 * sparcnbsd-nat.c: Likewise.
3431 * sparcnbsd-tdep.c: Likewise.
3432 * sparc-tdep.h: New file.
3433 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3434 and sparc_npc_regnum.
3435
fd8f87c5
DJ
34362003-07-07 Daniel Jacobowitz <drow@mvista.com>
3437
3438 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3439 (mips_linux_cannot_store_register): List supported instead of
3440 unsupported registers.
3441
13adf674
DJ
34422003-07-07 Daniel Jacobowitz <drow@mvista.com>
3443
3444 * disasm.c (dump_insns): Separate instructions from addresses.
3445
8de307e0
AS
34462003-07-07 Andreas Schwab <schwab@suse.de>
3447
3448 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3449 dependencies.
3450 * m68k-tdep.c (NUM_FREGS): Delete.
3451 (SIG_PC_FP_OFFSET): Delete.
3452 (TARGET_M68K): Delete.
3453 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3454 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3455 P_MOVEL_SP, P_MOVEML_SP): Define.
3456 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3457 P_TRAP): Delete.
3458 (m68k_register_raw_size): Delete.
3459 (m68k_register_virtual_size): Delete.
3460 (m68k_register_type): Renamed from m68k_register_virtual_type and
3461 add gdbarch argument.
3462 (m68k_store_struct_return): Delete.
3463 (m68k_deprecated_extract_return_value): Delete.
3464 (m68k_deprecated_extract_struct_value_address): Delete.
3465 (m68k_frame_chain): Delete.
3466 (m68k_frame_saved_pc): Delete.
3467 (m68k_fix_call_dummy): Delete.
3468 (m68k_push_dummy_frame): Delete.
3469 (m68k_pop_frame): Delete.
3470 (m68k_extract_return_value): New function.
3471 (m68k_store_return_value): Rewrite using regcache.
3472 (m68k_extract_struct_value_address): Rewrite using regcache.
3473 (m68k_push_dummy_call): New function.
3474 (struct m68k_frame_cache): Define.
3475 (m68k_alloc_frame_cache): New function.
3476 (m68k_analyze_frame_setup): New function.
3477 (m68k_analyze_register_saves): New function.
3478 (m68k_analyze_prologue): New function.
3479 (m68k_skip_prologue): Rewrite using above functions.
3480 (m68k_unwind_pc): New function.
3481 (m68k_frame_cache): New function.
3482 (m68k_frame_this_id): New function.
3483 (m68k_frame_prev_register): New function.
3484 (m68k_frame_unwind): New variable.
3485 (m68k_frame_p): New function.
3486 (m68k_sigtramp_frame_cache): New function.
3487 (m68k_sigtramp_frame_this_id): New function.
3488 (m68k_sigtramp_frame_prev_register): New function.
3489 (m68k_sigtramp_frame_unwind): New variable.
3490 (m68k_sigtramp_frame_p): New function.
3491 (m68k_frame_base_address): New function.
3492 (m68k_frame_base): New function.
3493 (m68k_unwind_dummy_id): New function.
3494 (fill_gregset): Use regcache_collect.
3495 (fill_fpregset): Likewise.
3496 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3497 defined.
3498 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3499 deprecated_init_frame_pc, deprecated_store_struct_return,
3500 deprecated_extract_return_value, deprecated_store_return_value,
3501 deprecated_frame_chain, deprecated_frame_saved_pc,
3502 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3503 deprecated_register_virtual_size,
3504 deprecated_max_register_raw_size,
3505 deprecated_max_register_virtual_size,
3506 deprecated_register_virtual_type, deprecated_register_size,
3507 deprecated_register_byte, deprecated_register_bytes,
3508 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3509 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3510 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3511 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3512 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3513 deprecated_push_dummy_frame, deprecated_pop_frame,
3514 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3515 only if SYSCALL_TRAP is defined. Set extract_return_value,
3516 store_return_value, extract_struct_value_address, register_type,
3517 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3518 predicates.
3519 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3520 M68K_MAX_REGISTER_SIZE): Define.
3521 (struct m68k_sigtramp_info): Define.
3522 (struct gdbarch_tdep): Add get_sigtramp_info.
3523 * m68klinux-nat.c (fetch_register): Use register_size instead of
3524 REGISTER_RAW_SIZE. Don't put assignment in if.
3525 (store_register): Likewise.
3526 (fetch_inferior_registers): Likewise.
3527 (store_inferior_registers): Likewise.
3528 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3529 (m68k_linux_frame_saved_pc): Delete.
3530 (m68k_linux_sigcontext_reg_offset,
3531 m68k_linux_ucontext_reg_offset): Define.
3532 (m68k_linux_get_sigtramp_info): New function.
3533 (m68k_linux_extract_return_value): Rewrite using regcache.
3534 (m68k_linux_store_return_value): Likewise.
3535 (m68k_linux_extract_struct_value_address): Likewise.
3536 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3537 Don't set deprecated_frame_saved_pc,
3538 deprecated_extract_return_value, deprecated_store_return_value,
3539 deprecated_extract_struct_value_address. Set
3540 extract_return_value, store_return_value,
3541 extract_struct_value_address.
3542
eb8bc282
AC
35432003-07-07 Andrew Cagney <cagney@redhat.com>
3544
3545 * expprint.c: Include "user-regs.h" instead of "frame.h".
3546 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3547 frame_map_regnum_to_name.
3548 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3549 (frame_map_name_to_regnum): Simplify, call
3550 user_reg_map_name_to_regnum.
3551 (frame_map_regnum_to_name): Simplify, call
3552 user_reg_map_regnum_to_name.
3553 (frame_register_unwind): Update.
3554 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3555 (_initialize_frame_reg): Call user_reg_add_builtin.
3556 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3557 (value_of_register): Use value_of_user_reg.
3558 * eval.c (evaluate_subexp_standard): Update.
3559 * parse.c (write_dollar_variable): Update.
3560 * d10v-tdep.c (d10v_print_registers_info): Update.
3561 * infcmd.c (registers_info): Update.
3562 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3563 (builtin_regs_h): Delete macro.
3564 (user_regs_h): Define.
3565 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3566 (builtin-regs.o): Delete target.
3567 (user-regs.o): Specify dependencies.
3568 (expprint.o): Update dependencies.
3569 (findvar.o): Update dependencies.
3570 (frame.o): Update dependencies.
3571 (std-regs.o): Update dependencies.
3572
9f476a01
CF
35732003-07-06 Christopher Faylor <cgf@redhat.com>
3574
3575 * win32-nat.c (solib_symbols_add): Use one variable for all section
3576 address stuff. Pass variable rather than address of variable to
3577 safe_symbol_file_add.
3578
a731b831
AS
35792003-07-06 Andreas Schwab <schwab@suse.de>
3580
3581 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3582
9f83329d
JB
35832003-07-04 Joel Brobecker <brobecker@gnat.com>
3584
3585 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3586
27e28cc5
KW
35872003-07-04 Kris Warkentin <kewarken@qnx.com>
3588
3589 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3590
35912003-07-04 Kris Warkentin <kewarken@qnx.com>
3592
3593 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3594 * config/i386/nto.mh: New file.
3595 * config/i386/nm-nto.h: New file.
3596 * configure.host: Add i[3456]86-*-nto*.
3597
100f2e98
JB
35982003-07-03 Joel Brobecker <brobecker@gnat.com>
3599
3600 * remote-vx.c (vx_add_symbols): Fix compilation error.
3601
e23457df
AC
36022003-07-03 Andrew Cagney <cagney@redhat.com>
3603
3604 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3605 * gdbarch.h, gdbarch.c: Re-generate.
3606 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3607 (legacy_register_name): Declare.
3608 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3609 (REGISTER_NAME): Define.
3610 * sparc-tdep.c (legacy_register_name): New function.
3611 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3612 (REGISTER_NAME): Define.
3613 (hppa64_register_name): Declare.
3614 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3615 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3616 (hppa64_register_name): New function.
3617 (hppa_register_name): New function.
3618 * arch-utils.c (legacy_register_name): Delete.
3619 * arch-utils.h (legacy_register_name): Delete.
3620
38caaeec
DJ
36212003-07-03 Daniel Jacobowitz <drow@mvista.com>
3622
3623 * cli/cli-interp.c (cli_interpreter_resume): Update the
3624 cli_uiout's stream to gdb_stdout.
3625
dadd712e
AC
36262003-07-03 Andrew Cagney <cagney@redhat.com>
3627
3628 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3629 predicate.
3630 * gdbarch.h, gdbarch.c: Re-generate.
3631 * regcache.c (init_regcache_descr): Use legacy code when either
3632 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3633
c7f1390e
DJ
36342003-07-02 Daniel Jacobowitz <drow@mvista.com>
3635
3636 * NEWS: Move "set logging" entry into GDB 6.0 section.
3637
4bc8c588
JB
36382003-07-02 Jim Blandy <jimb@redhat.com>
3639
a9dd42f1
JB
3640 * s390-tdep.c (struct frame_extra_info): new member:
3641 'stack_bought_valid'.
3642 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3643 initialize fextra_info->stack_bought.
3644 (s390_frameless_function_invocation): Don't trust the value of
3645 fextra_info_ptr->stack_bought unless
3646 fextra_info->stack_bought_valid is set.
3647
4bc8c588
JB
3648 New S390 prologue analyzer.
3649 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3650 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3651 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3652 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3653 compute_x_addr, s390_on_stack, s390_store,
3654 s390_get_signal_frame_info): New functions.
3655 (S390_NUM_SPILL_SLOTS): New macro.
3656 (s390_get_frame_info): Rewritten.
3657 (is_arg_reg): Deleted.
3658
3659 Break out the decoding of S/390 instructions into separate
3660 functions, to make it more legible, and easier to check
3661 against the spec.
3662 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3663 is_rx, is_rxe): New functions.
3664 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3665 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3666 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3667 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3668 enums for opcode values. (Is this an improvement?)
3669
fd13a04a
AC
36702003-07-02 Andrew Cagney <cagney@redhat.com>
3671
3672 * i386-tdep.c: Revert change committed as part of trad-frame code
3673 below.
3674
3f8091c1
DJ
36752003-07-02 Daniel Jacobowitz <drow@mvista.com>
3676
3677 * breakpoint.c (insert_catchpoint): Make static.
3678
8dd5115e
AS
36792003-07-02 Andreas Schwab <schwab@suse.de>
3680
3681 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3682 former ia64_push_arguments and ia64_push_return_address, and use
3683 regcache functions instead of read/write_register.
3684 (ia64_gdbarch_init): Set push_dummy_call instead of
3685 deprecated_push_arguments and deprecated_push_return_address.
3686
a2229c23
AJ
36872003-07-01 Andreas Jaeger <aj@suse.de>
3688
3689 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3690 before the call.
3691 Set %rax only to number of SSE registers used.
3692
3b3850e8
AC
36932003-07-01 Andrew Cagney <cagney@redhat.com>
3694
3695 * trad-frame.h: Update comments, a -1 .addr is reserved.
3696 (trad_frame_value_p, trad_frame_addr_p): Declare.
3697 (trad_frame_reg_p): Declare.
3698 (trad_frame_set_value): Rename trad_frame_register_value.
3699 (trad_frame_set_unknown): Declare.
3700 * trad-frame.c (trad_frame_realreg_p): New function.
3701 (trad_frame_addr_p, trad_frame_value_p): New function.
3702 (trad_frame_set_unknown): New function.
3703 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3704 (trad_frame_prev_register): Use trad_frame_realreg_p,
3705 trad_frame_addr_p and trad_frame_value_p.
3706 (trad_frame_set_value): Rename trad_frame_register_value.
3707 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3708 and trad_frame_set_value.
a2229c23 3709
4d819d0e
JB
37102003-06-30 Jim Blandy <jimb@redhat.com>
3711
3712 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3713 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3714 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3715 for 16 registers, and then 32 more bytes.
3716 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3717 New macros.
3718 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3719 Move up in the file, since it's now used by is_simple_arg.
3720 (is_simple_arg): Don't assume registers are four bytes long.
3721 Exclude all double arguments. Extended floats are not simple
3722 args.
3723 (is_power_of_two): New function.
3724 (pass_by_copy_ref): Call is_power_of_two, and check that the
3725 length fits in a register, rather than listing all the acceptable
3726 sizes. Extended floats are not passed by reference.
3727 (s390_push_arguments): Don't assume registers are four bytes long.
3728 Reserve an argument register to point to the buffer for structures
3729 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3730 S390_STACK_FRAME_OVERHEAD.
3731
1ad828f1
AS
37322003-06-30 Andreas Schwab <schwab@suse.de>
3733
3734 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3735 format error message.
3736
39b00981
JB
37372003-06-30 Joel Brobecker <brobecker@gnat.com>
3738
3739 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3740
b2a7f303
DC
37412003-06-30 David Carlton <carlton@kealia.com>
3742
3743 Band-aid for PR c++/1245.
3744 * Makefile.in (cp-support.o): Depend on complaints_h.
3745 * cp-support.c: Include complaints.h. Add declaration for
3746 find_last_component.
3747 (cp_find_first_component): Separate code into
3748 cp_find_first_component_aux.
3749 (cp_find_first_component_aux): Call demangled_name_complaint.
3750 (demangled_name_complaint): New.
3751
a257b5bb
AC
37522003-06-30 Andrew Cagney <cagney@redhat.com>
3753
3754 * remote.c (remote_write_bytes): Explicitly compute and then use
3755 the payload size. Update comments to reflect. Fixes problem of
3756 GDB not sending small packets as found by Fred Fish.
3757
0a2cfde4
AC
37582003-06-30 Andrew Cagney <cagney@redhat.com>
3759
3760 * remote.c (remote_async_wait): Fix -Wformat problem.
3761
3fcb8548
AC
37622003-06-29 Andrew Cagney <cagney@redhat.com>
3763
3764 * remote.c (remote_wait): Call error, and not warning, when the
3765 packet is corrupt.
3766 (remote_async_wait): Ditto.
3767
9f9970a3
DJ
37682003-06-29 Daniel Jacobowitz <drow@mvista.com>
3769
3770 * sparc-tdep.c (sparc_y_regnum): Make external again.
3771
83a8ccca
DJ
37722003-06-29 Daniel Jacobowitz <drow@mvista.com>
3773
3774 * cli/cli-logging.c (pop_output_files): Add void to function
3775 definition.
3776
d2cf594a
AC
37772003-06-29 Andrew Cagney <cagney@redhat.com>
3778
3779 * frame.c (frame_register_unwind): Use unsigned char when dumping
3780 the buffer contents.
3781
0fac0b41
DJ
37822003-06-28 Daniel Jacobowitz <drow@mvista.com>
3783
3784 * cli/cli-logging.c: New file.
3785 * cli-out.c (struct ui_out_data): Add original_stream.
3786 (cli_redirect): New function.
3787 (cli_ui_out_impl): Add cli_redirect.
3788 (cli_out_new): Initialize original_stream.
3789 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3790 (uo_redirect, ui_out_redirect): New.
3791 * ui-out.h (struct ui_out_impl): Add redirect member.
3792 (redirect_ftype): New.
3793 (ui_out_redirect): Add prototype.
3794 * Makefile.in: Add rules for cli-logging.c.
3795 * NEWS: Mention "set logging".
3796
88a07d7c
EZ
37972003-06-27 Elena Zannoni <ezannoni@redhat.com>
3798
3799 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3800
4eb58876
AC
38012003-06-27 Andrew Cagney <cagney@redhat.com>
3802
3803 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3804 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3805 * avr-tdep.c (avr_call_dummy_address): Delete function.
3806 (avr_gdbarch_init): Do not set call_dummy_address.
3807
1549f619
EZ
38082003-06-27 Elena Zannoni <ezannoni@redhat.com>
3809
3810 * symfile.c (syms_from_objfile): Move variables to inner block.
3811 Move the checks for the non-mainline case a bit earlier to avoid
3812 doing some useless computations.
3813
3cb3398d
EZ
38142003-06-27 Elena Zannoni <ezannoni@redhat.com>
3815
3816 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3817
3799ccc6
EZ
38182003-06-26 Elena Zannoni <ezannoni@redhat.com>
3819
3820 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3821 sections.
3822
ce1f6491
MC
38232003-06-26 Michael Chastain <mec@shout.net>
3824
3825 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3826 gdb/testsuite/gdb.c++/pr-1210.exp.
3827
d958dfd0
AC
38282003-06-26 Andrew Cagney <cagney@redhat.com>
3829
3830 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3831 altivec_expression.h and altivec_registers.h.
3832
d31431ed
AC
38332003-06-26 Andrew Cagney <cagney@redhat.com>
3834
3835 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3836 info->mach when MIPS16. Patch suggested by Fred Fish.
3837
714b1282
AC
38382003-06-26 Andrew Cagney <cagney@redhat.com>
3839
3840 * utils.c (internal_vproblem): Print the problem to a reason
3841 buffer and then pass to query. Make the msg variable more local.
3842
42efa47a
AC
38432003-06-26 Andrew Cagney <cagney@redhat.com>
3844
3845 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3846 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3847 * gdbarch.h, gdbarch.c: Re-generate.
3848 * frame-base.c (default_frame_args_address): Update. Use
3849 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3850 not available.
3851 (default_frame_locals_address): Ditto for
3852 DEPRECATED_FRAME_LOCALS_ADDRESS.
3853 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3854 (vax_frame_num_args): Update.
3855 (vax_gdbarch_init): Update.
3856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3858 * mcore-tdep.c (mcore_gdbarch_init): Update.
3859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3860 * ia64-tdep.c (ia64_gdbarch_init): Update.
3861 * symtab.h (address_class): Update comments.
3862 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3863 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3864 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3865 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3866 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3867 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3868 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3869 * alpha-mdebug-tdep.c: Update.
3870 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3871
8ffd9b1b
AJ
38722003-06-26 Andreas Jaeger <aj@suse.de>
3873
3874 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3875 of SSE registers so that varargs functions work. Rework handling
3876 of passing arguments on the stack.
3877 (x86_64_store_return_value): Return double and float values in SSE
3878 register.
3879
e8ac10a6
MC
38802003-06-24 Michael Chastain <mec@shout.net>
3881
3882 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3883 the "constructor breakpoints ignored" bug.
3884
986af8e6
DC
38852003-06-25 David Carlton <carlton@kealia.com>
3886
3887 * MAINTAINERS: Update e-mail address.
3888
d64558a5
JB
38892003-06-24 Jim Blandy <jimb@redhat.com>
3890
e538d2d7
JB
3891 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3892
02631ec0
JB
3893 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3894 function.
3895 (ppc_linux_init_abi): Register it as the
3896 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3897
e716d87a
JB
3898 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3899 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3900 method.
3901
d64558a5
JB
3902 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3903 (ppc64_standard_linkage_target): Use it.
3904
449a5da4
AC
39052003-06-23 Andrew Cagney <cagney@redhat.com>
3906
3907 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3908 for 0 "int0" and 4 "int32" sized registers.
3909 * gdbtypes.c (builtin_type_int0): Define.
3910 (build_gdbtypes): Initialize builtin_type_int0.
3911 * gdbtypes.h (builtin_type_int0): Declare.
3912
b2a02dda
SC
39132003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3914
3915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3916 as characters are unsigned.
3917
fba3138e
DJ
39182003-06-22 Daniel Jacobowitz <drow@mvista.com>
3919
3920 PR gdb/1179
3921 * dwarfread.c (struct_type): Skip static fields without crashing.
3922
f6c8180b
AC
39232003-06-22 Andrew Cagney <cagney@redhat.com>
3924
3925 GDB 6.0 branch created.
f2c06f52
AC
3926 * README: Update.
3927 * PROBLEMS: Update. Empty.
3928 * NEWS: Update.
f6c8180b 3929
ae822768
DJ
39302003-06-22 Daniel Jacobowitz <drow@mvista.com>
3931
3932 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3933 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3934
261de166
AC
39352003-06-22 Andrew Cagney <cagney@redhat.com>
3936
3937 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3938 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3939 Velikov.
3940
30e94205
DJ
39412003-06-22 Daniel Jacobowitz <drow@mvista.com>
3942
3943 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3944 compilers.
3945
9e14d721
DJ
39462003-06-21 Daniel Jacobowitz <drow@mvista.com>
3947
3948 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3949 argument of val_print.
3950 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3951 to the address argument of baseclass_offset or target_read_memory.
3952 Do add it to the argument of cp_print_value_fields.
3953
a4b8ebc8
AC
39542003-06-21 Andrew Cagney <cagney@redhat.com>
3955
3956 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3957 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3958 instead of 0..NUM_REGS.
3959 (mips_register_reggroup_p): New function.
3960 (mips_pseudo_register_write): New function.
3961 (mips_pseudo_register_read): New function.
3962 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3963 based on the register's type.
3964 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3965 cooked.
3966 (mips_get_saved_register): Simplify. Assert that REGNO is a
3967 pseudo / cooked.
3968 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3969 (mips_register_type): Replace mips_register_virtual_type. Map
3970 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3971 when available.
3972 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3973 that the register is cooked / virtual.
3974 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3975 Only get the extra info when needed.
3976 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3977 (mips32_heuristic_proc_desc): Fetch the cooked register.
3978 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3979 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3980 (mips_print_register): Use gdbarch_register_type, instead of
3981 REGISTER_VIRTUAL_TYPE.
3982 (print_gp_register_row): Use gdbarch_register_type, instead of
3983 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3984 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3985 Print the pseudo / cooked registers.
3986 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3987 Print the pseudo / cooked registers.
3988 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3989 REG_NUM is pseudo / cooked.
3990 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3991 (mips_n32n64_xfer_return_value): Ditto.
3992 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3993 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3994 (mips_register_sim_regno): New function.
3995 (mips_gdbarch_init): Set deprecated_register_byte,
3996 register_group_p, pseudo_register_write, pseudo_register_read,
3997 register_sim_regno, and num_pseudo_regs. Set register_type,
3998 instead of register_virtual_type.
3999 * Makefile.in (mips-tdep.o): Update dependencies.
4000 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4001 REGISTER_VIRTUAL_TYPE.
4002 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4003 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4004 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4005 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4006 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4007
325ed089
DJ
40082003-06-21 Daniel Jacobowitz <drow@mvista.com>
4009
4010 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4011 * cli/cli-cmds.c: Include "gdb_vfork.h".
4012 (shell_escape): Use vfork.
4013
f0e7d0e8
AC
40142003-06-21 Andrew Cagney <cagney@redhat.com>
4015
c57bb9fa
AC
4016 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4017 32 bit floating-point register saves.
4018
6e51443a
AC
4019 * frame.h (deprecated_unwind_get_saved_register): Delete.
4020 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4021 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4022 and deprecated_get_next_frame_hack instead of
4023 deprecated_unwind_get_saved_register.
4024
ed183c7c
AC
4025 * mips-tdep.c (mips_dump_tdep): Do not print
4026 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4027
f0e7d0e8
AC
4028 * frame.c (get_frame_register): New function.
4029 (frame_unwind_register_signed): New function.
4030 (get_frame_register_signed): New function.
4031 (frame_unwind_register_unsigned): New function.
4032 (get_frame_register_unsigned): New function.
4033 * frame.h: Add comments on naming schema.
4034 (get_frame_register, frame_unwind_register_signed): Declare.
4035 (get_frame_register_signed, get_frame_register_signed): Declare.
4036 (frame_unwind_register_unsigned): Declare.
4037 (get_frame_register_unsigned): Declare.
4038
2224d941
TR
40392003-06-20 Theodore A. Roth <troth@openavr.org>
4040
4041 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4042
8619218d
TR
40432003-06-20 Theodore A. Roth <troth@openavr.org>
4044
4045 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4046 (avr_read_sp): Ditto.
4047
0b1b50c0
DJ
40482003-06-20 Daniel Jacobowitz <drow@mvista.com>
4049
4050 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4051 * config/arm/nm-linux.h: Likewise.
4052 * config/arm/tm-linux.h: Likewise.
4053 * config/ia64/nm-linux.h: Likewise.
4054 * config/ia64/tm-ia64.h: Likewise.
4055 * config/s390/tm-linux.h: Likewise.
4056 * config/s390/tm-s390.h: Likewise.
4057 * s390-nat.c: Likewise.
4058 * s390-tdep.c: Likewise.
4059
4060 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4061 * config/ia64/linux.mt: Likewise.
4062 * config/m68k/linux.mh: Likewise.
4063 * config/mips/linux.mt: Likewise.
4064 * config/powerpc/linux.mh: Likewise.
4065 * config/sh/linux.mt: Likewise.
4066
c8c18e65
KW
40672003-06-19 Kris Warkentin <kewarken@qnx.com>
4068
4069 * solib.c (solib_open): Change tests for whether to search
4070 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4071 comments.
4072
dcccef2e
TR
40732003-06-19 Theodore A. Roth <troth@openavr.org>
4074
4075 * avr-tdep.c (avr_frame_address): Delete function.
4076 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4077 set_gdbarch_frame_args_address.
4078
5861a190
AC
40792003-06-19 Andrew Cagney <cagney@redhat.com>
4080
4081 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4082 (REGISTER_CONVERT_FROM_TYPE): Delete.
4083 (mips_register_convert_to_type): Delete declaration.
4084 (mips_register_convert_from_type): Delete declaration.
4085 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4086 kernel/.
4087
0274a8ce
MS
40882003-06-19 Michael Snyder <msnyder@redhat.com>
4089
4090 * linux-nat.h: New file.
4091 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4092 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4093 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4094 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4095 (linux_make_note_section): Iterate over lwps instead of threads.
4096 (linux_do_thread_registers): Use lwp instead of merged pid.
4097 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4098 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4099 Add dependency on linux_nat_h.
4100
adf5f719
TR
41012003-06-19 Theodore A. Roth <troth@openavr.org>
4102
4103 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4104
6766a268
DJ
41052003-06-19 Daniel Jacobowitz <drow@mvista.com>
4106
4107 * varobj.c (get_type, get_target_type): Use check_typedef.
4108
1171114a
DJ
41092003-06-19 Daniel Jacobowitz <drow@mvista.com>
4110
4111 * breakpoint.c (insert_catchpoint): Call internal_error.
4112
adcf68a2
TR
41132003-06-19 Theodore A. Roth <troth@openavr.org>
4114
4115 * avr-tdep.c (avr_push_dummy_code): Delete function.
4116 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4117
ea67f13b
DJ
41182003-06-19 Daniel Jacobowitz <drow@mvista.com>
4119
4120 * arch-utils.c (default_prepare_to_proceed): Remove.
4121 (generic_prepare_to_proceed): Remove.
4122 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4123 (generic_prepare_to_proceed): Remove prototype.
4124 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4125 * gdbarch.c: Regenerate.
4126 * gdbarch.h: Regenerate.
4127 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4128 * hppah-nat.c (hppa_switched_threads): Remove.
4129 * infrun.c (prepare_to_proceed): New static function, copied from
4130 generic_prepare_to_proceed. Remove select_it argument.
4131 (proceed): Call prepare_to_proceed.
4132 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4133 variables.
4134 (ptrace_wait): Don't set the removed variables.
4135 (hppa_switched_threads): Remove.
4136 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4137 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4138 (lin_lwp_prepare_to_proceed): Remove prototype.
4139 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4140 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4141
4add8633
TR
41422003-06-18 Theodore A. Roth <troth@openavr.org>
4143
4144 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4145 trad-frame.h.
4146 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4147 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4148 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4149 (AVR_PROLOGUE_*): Enumerate prologue types.
4150 (struct frame_extra_info): Remove.
4151 (struct avr_unwind_cache): Define.
4152 (avr_write_sp): Delete function.
4153 (avr_read_fp): Ditto.
4154 (avr_init_extra_frame_info): Ditto.
4155 (avr_pop_frame): Ditto.
4156 (avr_frame_saved_pc): Ditto.
4157 (avr_saved_pc_after_call): Ditto.
4158 (avr_push_return_address): Ditto.
4159 (avr_frame_chain): Ditto.
4160 (avr_store_struct_return): Ditto.
4161 (avr_push_arguments): Ditto.
4162 (avr_scan_prologue): Update comments. Changed to set up the info for
4163 cache unwinding. Now returns end of prologue PC.
4164 (avr_skip_prologue): Better handling of functions lacking a prologue
4165 by using avr_scan_prologue.
4166 (avr_scan_arg_moves): New function.
4167 (avr_saved_regs_unwinder): Ditto.
4168 (avr_frame_unwind_cache): Ditto.
4169 (avr_unwind_pc): Ditto.
4170 (avr_frame_this_id): Ditto.
4171 (avr_frame_prev_register): Ditto.
4172 (avr_frame_p): Ditto.
4173 (avr_frame_base_address ): Ditto.
4174 (avr_unwind_dummy_id): Ditto.
4175 (avr_push_dummy_code): Ditto.
4176 (push_stack_item): Ditto.
4177 (pop_stack_item): Ditto.
4178 (avr_push_dummy_call): Ditto.
4179 (struct stack_item): Define.
4180 (avr_frame_unwind): Declare structure.
4181 (avr_frame_base): Ditto.
4182 (avr_gdbarch_init): Remove calls to
4183 set_gdbarch_deprecated_init_frame_pc,
4184 set_gdbarch_deprecated_target_read_fp,
4185 set_gdbarch_deprecated_dummy_write_sp,
4186 set_gdbarch_deprecated_fp_regnum,
4187 set_gdbarch_deprecated_push_arguments,
4188 set_gdbarch_deprecated_push_return_address,
4189 set_gdbarch_deprecated_pop_frame,
4190 set_gdbarch_deprecated_store_struct_return,
4191 set_gdbarch_deprecated_frame_init_saved_regs,
4192 set_gdbarch_deprecated_init_extra_frame_info,
4193 set_gdbarch_deprecated_frame_chain,
4194 set_gdbarch_deprecated_frame_saved_pc,
4195 set_gdbarch_deprecated_saved_pc_after_call.
4196 Add calls to set_gdbarch_push_dummy_call,
4197 set_gdbarch_push_dummy_code,
4198 frame_unwind_append_predicate,
4199 frame_base_set_default,
4200 set_gdbarch_unwind_dummy_id,
4201 set_gdbarch_unwind_pc.
4202 Wrap a long line.
4203
7be04a68
MS
42042003-06-18 Corinna Vinschen <vinschen@redhat.com>
4205
4206 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4207 registers for H8/300S.
4208 (h8300_print_registers_info): Ditto.
8ffd9b1b 4209 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4210
ae087d01
DJ
42112003-06-18 Daniel Jacobowitz <drow@mvista.com>
4212
4213 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4214 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4215 (lin_lwp_wait): Likewise. Update comments.
4216 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4217 (pull_pid_from_list, linux_record_stopped_pid): New.
4218
07d8f827
SC
42192003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4220
4221 * ada-lang.c (scan_discrim_bound): Name first argument.
4222 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4223 declared by ALL_BLOCK_SYMBOLS.
4224
7cb47b14
SC
42252003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4226
4227 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4228 ("regcache.h"): Include it.
4229 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4230
6ad8ae5c
DJ
42312003-06-17 Daniel Jacobowitz <drow@mvista.com>
4232
4233 * NEWS: Mention gdbserver detach change and "disconnect" command.
4234 * infcmd.c (disconnect_command): New function.
4235 (_initialize_infcmd): Add ``disconnect'' command.
4236 * remote.c (remote_async_detach): Delete.
4237 (remote_detach): Merge remote_async_detach.
4238 (remote_disconnect): New.
4239 (init_remote_ops): Set to_disconnect.
4240 (init_remote_cisco_ops): Likewise.
4241 (init_remote_async_ops): Likewise. Use remote_detach.
4242 * target.c (cleanup_target): Default to_disconnect.
4243 (update_current_target): Inherit to_disconnect.
4244 (target_disconnect, debug_to_disconnect): New functions.
4245 (setup_target_debug): Set to_disconnect.
4246 * target.h (struct target_ops): Add to_disconnect.
4247 (target_disconnect): Add prototype.
4248
687595f9
DJ
42492003-06-17 Daniel Jacobowitz <drow@mvista.com>
4250
4251 * breakpoint.c (insert_catchpoint): New function.
4252 (insert_breakpoints): Use catch_exceptions to call
4253 insert_catchpoint. Disable catchpoints if they fail to insert.
4254
29239a8f
DJ
42552003-06-17 Daniel Jacobowitz <drow@mvista.com>
4256
4257 * symfile.c (reread_symbols): Clear sym_private.
4258
2cdf3c63
AC
42592003-06-17 Andrew Cagney <cagney@redhat.com>
4260
4261 * trad-frame.h (struct frame_info): Add opaque declaration.
4262 * remote-fileio.h (struct cmd_list_element): Add opaque
4263 declaration.
4264 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4265 comments.
4266
cf0e1e0d
DJ
42672003-06-17 Daniel Jacobowitz <drow@mvista.com>
4268
4269 * remote.c (remote_prepare_to_store): Replace call to
4270 deprecated_read_register_bytes with multiple regcache_raw_read
4271 calls.
4272
192cdb19
KW
42732003-06-17 Kris Warkentin <kewarken@qnx.com>
4274
4275 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4276 (nto_find_and_open_solib): Likewise.
4277 (nto_init_solib_absolute_prefix): Likewise.
4278 (_initialize_nto_tdep): Fix indentation.
4279
89929b45
KW
42802003-06-17 Kris Warkentin <kewarken@qnx.com>
4281
4282 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4283
46019f27
KW
42842003-06-17 Kris Warkentin <kewarken@qnx.com>
4285
4286 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4287
1a38736e
JB
42882003-06-17 Jim Blandy <jimb@redhat.com>
4289
4290 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4291
3605c34a
TR
42922003-06-16 Theodore A. Roth <troth@openavr.org>
4293
4294 * avr-tdep.c (avr_extract_return_value): New function.
4295 (avr_gdbarch_init): Set extract_return_value method.
4296
870b3035
AC
42972003-06-16 Andrew Cagney <cagney@redhat.com>
4298
4299 * frame.h (deprecated_get_next_frame_hack): Declare.
4300 * frame.c (legacy_saved_regs_prev_register): Only require
4301 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4302 there are always saved regs.
4303 (deprecated_generic_get_saved_register): Do not require
4304 DEPRECATED_FRAME_INIT_SAVED_REGS.
4305 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4306 use frame ID unwind instead.
4307 (deprecated_get_next_frame_hack): New function.
4308
63d47a7d
CV
43092003-06-16 Corinna Vinschen <vinschen@redhat.com>
4310
4311 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4312 (h8300_push_dummy_call): ...this function. Some minor optimization.
4313 (h8300_push_return_address): Remove.
4314 (h8300_gdbarch_init): Remove calls to
4315 set_gdbarch_deprecated_dummy_write_sp,
4316 set_gdbarch_deprecated_push_arguments and
4317 set_gdbarch_deprecated_push_return_address.
4318 Add call to set_gdbarch_push_dummy_call.
4319
4bb1dc5e
CV
43202003-06-16 Corinna Vinschen <vinschen@redhat.com>
4321
4322 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4323 (E_PSEUDO_EXR_REGNUM): Ditto.
4324 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4325 registers into safe registers.
4bb1dc5e
CV
4326 (h8300_skip_prologue): Check for stm instruction to push registers
4327 used for register variables onto stack.
4328 (gdb_print_insn_h8300): Remove.
4329 (h8300_examine_prologue): Add a comment.
4330 (h8300_register_name): Take pseudo registers into account.
4331 (h8300s_register_name): Ditto.
4332 (h8300sx_register_name): Ditto.
4333 (h8300_print_register): Ditto.
4334 (h8300_print_registers_info): Define "nice" printing order.
4335 (h8300_saved_pc_after_call): Take pseudo registers into account.
4336 (h8300_register_type): Ditto. Return type used for remote connection
4337 when requesting real CCR or EXR register, return actual type when
4338 requesting pseudo CCR or EXR.
4339 (h8300_pseudo_register_read): New function.
4340 (h8300_pseudo_register_write): Ditto.
4341 (h8300_dbg_reg_to_regnum): Ditto.
4342 (h8300s_dbg_reg_to_regnum): Ditto.
4343 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4344 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4345 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4346 set_gdbarch_print_insn architecture dependent.
4347 Call set_gdbarch_pseudo_register_read and
4348 set_gdbarch_pseudo_register_write.
4349 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4350
a59fe496
AC
43512003-06-16 Andrew Cagney <cagney@redhat.com>
4352
4353 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4354 * gdbarch.h, gdbarch.c: Re-generate.
4355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4356 * s390-tdep.c (s390_gdbarch_init): Update.
4357 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4358 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4359 * mips-tdep.c (mips_gdbarch_init): Update.
4360 * mcore-tdep.c (mcore_gdbarch_init): Update.
4361 * cris-tdep.c (cris_gdbarch_init): Update.
4362 * infcall.c (call_function_by_hand): Update.
4363 * ia64-tdep.c (ia64_push_arguments): Update comment.
4364 * frame.c (legacy_get_prev_frame): Do not assume
4365 SAVE_DUMMY_FRAME_TOS_P.
4366 * dummy-frame.c (find_dummy_frame): Update comment.
4367
6f4e5a41
AC
43682003-06-16 Andrew Cagney <cagney@redhat.com>
4369
4370 * regcache.c (do_cooked_read): Do not use register_valid_p.
4371
72fab697
TR
43722003-06-15 Theodore A. Roth <troth@openavr.org>
4373
4374 * avr-tdep.c (avr_register_type): Remove a blank line.
4375 (avr_scan_prologue): Correct some comments.
4376
e3d8b004
TR
43772003-06-15 Theodore A. Roth <troth@openavr.org>
4378
4379 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4380 prologue types.
8ffd9b1b 4381 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4382 option.
4383 Add code to scan -mcall-prologues for mega devices.
4384
866b76ea
TR
43852003-06-15 Theodore A. Roth <troth@openavr.org>
4386
4387 * avr-tdep.c (avr_register_byte): Delete function.
4388 (avr_register_raw_size): Delete function.
4389 (avr_register_virtual_size): Delete function.
4390 (avr_register_virtual_type): Delete function.
4391 (avr_register_type): New function.
4392 (avr_address_to_pointer): Remove unused code.
4393 (avr_read_fp): Need to read FP as two separate bytes due to change to
4394 avr_register_type() usage.
4395 (avr_gdbarch_init): Don't set deprecated_register_size.
4396 Don't set deprecated_register_bytes.
4397 Don't set deprecated_register_byte.
4398 Don't set deprecated_register_raw_size.
4399 Don't set deprecated_max_register_raw_size.
4400 Don't set deprecated_register_virtual_size.
4401 Don't set deprecated_max_register_virtual_size.
4402 Don't set deprecated_register_virtual_type.
4403 Set register_type method.
4404
3993f6b1
DJ
44052003-06-15 Daniel Jacobowitz <drow@mvista.com>
4406
4407 * Makefile.in (linux-nat.o): Add rule.
4408 * linux-nat.c: New file.
4409 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4410 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4411 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4412 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4413 * config/arm/linux.mh (NATDEPFILES): Likewise.
4414 * config/i386/linux.mh (NATDEPFILES): Likewise.
4415 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4416 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4417 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4418 * config/mips/linux.mh (NATDEPFILES): Likewise.
4419 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4420 * config/s390/s390.mh (NATDEPFILES): Likewise.
4421 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4422
786a90bb
MK
44232003-06-15 Mark Kettenis <kettenis@gnu.org>
4424
4425 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4426 replace out-of-date comment.
4427
3bd3f01e
AC
44282003-06-15 Andrew Cagney <cagney@redhat.com>
4429
4430 * rdi-share/host.h (Fail): Change to a varargs function.
4431 * remote-rdi.c (Fail): Update.
8ffd9b1b 4432
de5b9bb9
MK
44332003-06-15 Mark Kettenis <kettenis@gnu.org>
4434
4435 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4436 (i386_convert_register_p, i386_register_to_value,
4437 i386_register_from_value): Handle types longer than 8 bytes.
4438
d532c08f
MK
44392003-06-15 Mark Kettenis <kettenis@gnu.org>
4440
4441 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4442 Move floating-point code to new function in i387-tdep.c.
4443 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4444 New functions containing code moved here from i386-tdep.c.
4445 * i387-tdep.h: Add opaque declaration for `struct type'.
4446 (i387_register_to_value, i387_value_to_register): New prototypes.
4447 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4448 (x86_64_init_abi): Set convert_register_p, register_to_value and
4449 value_to_register here.
8ffd9b1b 4450
42c466d7
AC
44512003-06-14 Andrew Cagney <cagney@redhat.com>
4452
4453 * mips-tdep.c (mips_register_to_value): Make static.
4454 (mips_value_to_register): Make static.
4455 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4456 * ia64-tdep.c (ia64_register_raw_size): Make static.
4457 (ia64_register_virtual_size): Make static.
4458 (ia64_register_byte): Make static.
4459 * i387-tdep.c: Include "i387-tdep.h".
4460 (print_387_control_word): Delete function.
4461 (print_387_status_word): Delete function.
4462 (print_387_status_bits): Delete function.
4463 (print_387_control_bits): Delete function.
4464 * Makefile.in (i387-tdep.o): Update dependencies.
4465 * rdi-share/host.h (Fail): Declare.
4466 * remote-rdi.c (Fail): Update to match declaration.
4467
2a9cda49
AC
44682003-06-14 Andrew Cagney <cagney@redhat.com>
4469
4470 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4471 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4472 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4473 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4474 * README: Delete reference to remote-array.
4475 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4476 (remote-array.o): Delete target.
4477 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4478 * remote-array.c: Delete file.
4479
ff2e87ac
AC
44802003-06-14 Andrew Cagney <cagney@redhat.com>
4481 Mark Kettenis <kettenis@gnu.org>
4482
4483 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4484 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4485 parameter with "frame".
4486 * gdbarch.h, gdbarch.c: Re-generate.
4487 * frame.h (put_frame_register): Declare.
4488 * frame.c (put_frame_register): New function.
4489 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4490 (legacy_register_to_value): Rewrite, use "frame" to get the
4491 register value.
4492 (legacy_value_to_register): Rewrite, use "frame" to find the
4493 register's location before storing.
4494 * arch-utils.h (legacy_convert_register_p): Update.
4495 (legacy_register_to_value, legacy_value_to_register): Update.
4496 * findvar.c (value_from_register): Rewrite, eliminate use of
4497 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4498 "frame" to REGISTER_TO_VALUE.
4499 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4500 lval_reg_frame_relative + lval_register branch of the switch. Do
4501 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4502 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4503 I386_EDI_REGNUM): New defines.
4504 (i386_next_regnum, i386_convert_register_p,
4505 i386_register_to_value, i386_value_to_register): New functions.
4506 (i386_register_convertible, i386_register_convert_to_virtual,
4507 i386_convert_to_raw): Remove functions.
4508 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4509 value_to_register instead of register_convertible,
4510 register_convert_to_virtual and register_convert_to_raw.
4511 * mips-tdep.c (mips_convert_register_p): New function.
4512 (mips_value_to_register): Replace mips_register_convert_from_type.
4513 (mips_register_to_value): Replace mips_register_convert_to_type.
4514 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4515 register_to_value.
4516 * alpha-tdep.c (alpha_convert_register_p): Update.
4517 (alpha_value_to_register): Update, store the register.
4518 (alpha_register_to_value): Update, fetch the register.
4519
98be1e77
TR
45202003-06-14 Theodore A. Roth <troth@openavr.org>
4521
4522 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4523 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4524 Don't set deprecated_call_dummy_words.
4525 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4526 Don't set remote_translate_xfer_address.
4527 (avr_io_reg_read_command): Remove commented out debug printf.
4528 Wrap a long line.
4529
57bc6122
TR
45302003-06-14 Theodore A. Roth <troth@openavr.org>
4531
4532 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4533 causes gdb to seg fault.
4534
eb01fc62
DJ
45352003-06-14 Daniel Jacobowitz <drow@mvista.com>
4536
4537 * sparc-nat.c (fetch_inferior_registers): Correct
4538 a reference to "registers".
4539
3b3e6bee
DJ
45402003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4541
4542 * Makefile.in (exc_request_U_h): Define
4543 (exc_request_S_h): Likewise.
4544 (msg_reply_S_h): Likewise.
4545 (msg_U_h): Likewise.
4546 (notify_S_h): Likewise.
4547 (process_reply_S_h): Likewise.
4548 (gnu-nat.o): Depend on gdb_obstack_h
4549 * gnu-nat.c: Include "gdb_obstack.h".
4550
b8de8283
AC
45512003-06-13 Andrew Cagney <cagney@redhat.com>
4552
4553 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4554 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4555
f3be58bc
AC
45562003-06-13 Andrew Cagney <cagney@redhat.com>
4557
4558 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4559 when deprecated REGISTER macros can be deleted.
4560 * gdbarch.h, gdbarch.c: Re-generate.
4561
4c0122c8
JB
45622003-06-13 Jim Blandy <jimb@redhat.com>
4563
4564 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4565 Linux entry point symbols for _dl_debug_state, too.
4566
3e210248
AC
45672003-06-13 Andrew Cagney <cagney@redhat.com>
4568
4569 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4570 available, do not use the FP register, and always save the TOS.
4571 * dummy-frame.c (dummy_frame_this_id): Do not assert
4572 SAVE_DUMMY_FRAME_TOS.
4573 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4574 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4575 (i386_push_dummy_call): Add 8 to the returned SP.
4576 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4577 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4578 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4579 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4580 (x86_64_push_dummy_call): Return "sp + 16".
4581 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4582 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4583 save_dummy_frame_tos.
4584
0b65af49
JB
45852003-06-13 Jim Blandy <jimb@redhat.com>
4586
4587 * frv-tdep.c (frv_use_struct_convention): Delete static
4588 declaration for function deleted in my change of 2003-06-12.
4589
4ea2465e
TR
45902003-06-13 Theodore A. Roth <troth@openavr.org>
4591
4592 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4593 (avr_pointer_to_address): Shift code addrs left 1 bit.
4594 (avr_convert_from_func_ptr_addr): Delete function since operation is
4595 better handled by avr_address_to_pointer and avr_pointer_to_address.
4596 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4597
1581182a
MK
45982003-06-13 Mark Kettenis <kettenis@gnu.org>
4599
4600 From Kelley Cook <kelleycook@wideopenwest.com>:
4601 * configure.host: Accept i[34567]86 variants.
4602 * configure.tgt: Likewise.
4603 * nlm/configure.in: Likewise.
4604 * nlm/configure: Regenerated.
4605
7aa1783e
RE
46062003-06-13 Richard Earnshaw <rearnsha@arm.com>
4607
4608 * arm-tdep.c (solib-svr4.h): Dont' include it.
4609 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4610 * arm-linux-tdep.c: ... here. Make static.
4611 (arm_linux_init_abi): Register it.
4612 (solib-svr4.h): Include it.
4613 * Makefile.in: Update dependencies.
4614 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4615 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4616
0261a0d0
CV
46172003-06-13 Corinna Vinschen <vinschen@redhat.com>
4618
4619 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4620 indicate registers used for return values.
4621 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4622 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4623 members.
4624 (h8300_init_extra_frame_info): Ditto.
4625 (h8300_frame_locals_address): Removed.
4626 (h8300_frame_args_address): Removed.
4627 (h8300_extract_return_value): Use new regcache structure. Only care
4628 for 16 bit CPUs.
4629 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4630 (h8300_store_return_value): Use new regcache structure. Only care
4631 for 16 bit CPUs.
4632 (h8300h_store_return_value): Same function for 32 bit CPUs.
4633 (h8300_store_struct_return): Removed.
4634 (h8300_extract_struct_value_address): Use new regcache structure.
4635 (h8300h_extract_struct_value_address): Removed.
4636 (h8300_push_dummy_code): New function.
4637 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4638 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4639 set_gdbarch_store_return_value architecture dependent.
4640 Call set_gdbarch_push_dummy_code and
4641 set_gdbarch_extract_struct_value_address.
4642 Remove calls to set_gdbarch_frame_args_address,
4643 set_gdbarch_frame_locals_address,
4644 set_gdbarch_deprecated_store_struct_return,
4645 set_gdbarch_deprecated_extract_return_value,
4646 set_gdbarch_deprecated_extract_struct_value_address,
4647 set_gdbarch_deprecated_call_dummy_words and
4648 set_gdbarch_deprecated_sizeof_call_dummy_words.
4649
055c394a
CV
46502003-06-13 Corinna Vinschen <vinschen@redhat.com>
4651
4652 * h8300-tdep.c (h8300_register_byte): Remove.
4653 (h8300h_register_byte): Remove.
4654 (h8300_register_virtual_type): Remove. Substitute by...
4655 (h8300_register_type): New function.
4656 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4657 (h8300h_extract_struct_value_address): Ditto.
4658 (h8300_gdbarch_init): Drop calls to
4659 set_gdbarch_deprecated_register_byte and
4660 set_gdbarch_deprecated_register_virtual_type.
4661 Add call to set_gdbarch_register_type.
4662
9c04cab7
AC
46632003-06-13 Andrew Cagney <cagney@redhat.com>
4664
4665 * gdbarch.sh: Update comments on registers.
4666 (deprecated_register_byte): Rename register_byte.
4667 (deprecated_register_raw_size): Rename register_raw_size.
4668 (deprecated_register_virtual_size): Rename register_virtual_size.
4669 (deprecated_register_virtual_type): Rename register_virtual_type.
4670 * gdbarch.h, gdbarch.c: Re-generate.
4671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4672 * vax-tdep.c (vax_gdbarch_init): Update.
4673 * v850-tdep.c (v850_gdbarch_init): Update.
4674 * sparc-tdep.c (sparc_gdbarch_init): Update.
4675 * sh-tdep.c (sh_gdbarch_init): Update.
4676 * s390-tdep.c (s390_gdbarch_init): Update.
4677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4678 * ns32k-tdep.c: Update.
4679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4680 * mips-tdep.c (mips_gdbarch_init): Update.
4681 * mcore-tdep.c (mcore_gdbarch_init): Update.
4682 * m68k-tdep.c (m68k_gdbarch_init): Update.
4683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4684 * ia64-tdep.c (ia64_gdbarch_init): Update.
4685 * hppa-tdep.c (hppa_gdbarch_init): Update.
4686 * h8300-tdep.c (h8300_gdbarch_init): Update.
4687 * frv-tdep.c (frv_gdbarch_init): Update.
4688 * cris-tdep.c (cris_gdbarch_init): Update.
4689 * avr-tdep.c (avr_gdbarch_init): Update.
4690 * alpha-tdep.c (alpha_gdbarch_init): Update.
4691 * arm-tdep.c (arm_gdbarch_init): Update.
4692
b060cbea
AC
46932003-06-13 Andrew Cagney <cagney@redhat.com>
4694
4695 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4696 mips_o32_use_struct_convention with always_use_struct_convention.
4697
0fc9922a
DC
46982003-06-12 David Carlton <carlton@kealia.com>
4699
4700 * cp-namespace.c (cp_set_block_scope): Comment out
4701 processing_has_namespace_info branch.
4702
1fd35568
JB
47032003-06-12 Jim Blandy <jimb@redhat.com>
4704
f470a70a
JB
4705 Recognize and skip 64-bit PowerPC Linux linkage functions.
4706 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4707 insn_pattern, insns_match_pattern, d_field, ds_field): New
4708 functions, macros, and types for working with PPC instructions.
4709 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4710 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4711 ppc64_skip_trampoline_code): New functions, variables, and macros
4712 for recognizing and skipping linkage functions.
4713 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4714 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4715
49ff75ad
JB
4716 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4717 register offsets for both the 32- and 64-bit interfaces.
4718
bd918c83
JB
4719 Actually finish the job started by my change of 2003-05-29.
4720 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4721 other #definition of this.
4722 (ppc_linux_skip_trampoline_code): Remove declaration.
4723 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4724 static.
4725 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4726 method for GDBARCH.
4727
4728 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4729 'long' on ppc64-*-linux*.
4730
f8c59253
JB
4731 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4732 isn't #defined, assume the register doesn't exist: act as if
4733 tdep->ppc_mq_regnum were -1.
4734
8fbb30b1
JB
4735 * configure.host, configure.tgt: Add entries for
4736 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4737 powerpc/linux.mt.
4738 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4739 New files.
4740
1fd35568
JB
4741 * arch-utils.c (always_use_struct_convention): New function.
4742 * arch-utils.h (always_use_struct_convention): New prototype.
4743 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4744 (alpha_gdbarch_init): Register always_use_struct_convention,
4745 instead of alpha_use_struct_convention.
4746 * cris-tdep.c (cris_use_struct_convention): Delete.
4747 (cris_gdbarch_init): Register always_use_struct_convention,
4748 instead of cris_use_struct_convention.
4749 * frv-tdep.c (frv_use_struct_convention): Delete.
4750 (frv_gdbarch_init): Register always_use_struct_convention,
4751 instead of frv_use_struct_convention.
4752 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4753 (h8300_gdbarch_init): Register always_use_struct_convention,
4754 instead of h8300_use_struct_convention.
e3305dd9 4755 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4756 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4757 instead of mips_o32_use_struct_convention.
4758
e14e6e9c
AC
47592003-06-12 Andrew Cagney <cagney@redhat.com>
4760
4761 * wince.c: Include "mips-tdep.h".
4762 * mips-tdep.h (mips_next_pc): Declare.
4763 * mcore-tdep.c: Make more local functions static.
4764 * Makefile.in (wince.o): Update dependencies.
4765
2335f48e
DC
47662003-06-12 David Carlton <carlton@kealia.com>
4767
4768 * symtab.c (lookup_symbol_aux_minsyms): Replace
4769 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4770 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4771 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4772 SYMBOL_NATURAL_NAME.
4773
f70a7d61
AS
47742003-06-12 Andreas Schwab <schwab@suse.de>
4775
4776 * Makefile.in (tuiDisassem.o): Update dependencies.
4777
b6429628
DC
47782003-06-12 David Carlton <carlton@bactrian.org>
4779
4780 * symtab.h: Delete declaration of make_symbol_overload_list.
4781 Add declaration of lookup_partial_symbol.
4782 * symtab.c (remove_params): Move to cp-support.c.
4783 (overload_list_add_symbol, make_symbol_overload_list)
4784 (sym_return_val_size, sym_return_val_index): Ditto.
4785 (lookup_partial_symbol): Make extern.
4786 * cp-support.h: Add declaration of make_symbol_overload_list.
4787 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4788 symtab.h, and block.h.
4789 (remove_params): Move here from symtab.c.
4790 (overload_list_add_symbol, make_symbol_overload_list)
4791 (sym_return_val_size, sym_return_val_index): Ditto.
4792 * valops.c: Include cp-support.h.
4793 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4794 frame_h, and block_h.
4795 (valops.o): Depend on cp_support_h.
4796
084edea5
CV
47972003-06-12 Corinna Vinschen <vinschen@redhat.com>
4798
4799 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4800 substitute by NUM_REGS throughout.
4801 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4802 (h8300s_register_name): New function for H8S registers.
4803 (h8300sx_register_name): Ditto for H8SX registers.
4804 (h8300_print_register): Revise register printing, avoid depending
4805 on 32 bit long.
0261a0d0 4806 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4807 (h8300h_register_byte): New function for any other architecture.
4808 (h8300_register_raw_size): Remove.
4809 (h8300_register_virtual_type): Revise to return actually useful
4810 type.
4811 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4812 (h8300h_extract_struct_value_address): New function for any other
4813 architecture.
4814 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4815 set_gdbarch_register_name, set_gdbarch_register_byte,
4816 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4817 Remove calls to set_gdbarch_deprecated_register_size,
4818 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4819 set_gdbarch_deprecated_max_register_raw_size,
4820 set_gdbarch_register_virtual_size and
4821 set_gdbarch_deprecated_max_register_virtual_size entirely.
4822 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4823 set_gdbarch_long_double_bit.
4824
06194148
JJ
48252003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4826
8ffd9b1b
AJ
4827 * doublest.c (convert_doublest_to_floatformat): When dealing
4828 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4829 processing a full 32 bits of mantissa.
4830
de4f826b
DC
48312003-06-11 David Carlton <carlton@bactrian.org>
4832
4833 * dictionary.h: New.
4834 * dictionary.c: New.
4835 * block.h: Add opaque declaration for struct dictionary.
4836 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4837 'sym' members.
4838 (BLOCK_DICT): New macro.
4839 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4840 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4841 BLOCK_SHOULD_SORT.
4842 (ALL_BLOCK_SYMBOLS): Update definition.
4843 * Makefile.in (SFILES): Add dictionary.c.
4844 (dictionary_h): New.
4845 (COMMON_OBS): Add dictionary.o.
4846 (dictionary.o): New.
4847 (ada-lang.o): Depend on dictionary_h.
4848 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4849 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4850 (mi-cmd-stack.o): Ditto.
4851 (gdbtk-cmds.o): Update dependencies.
4852 (gdbtk-stack.o): Ditto.
4853 * ada-lang.c: Include dictionary.h.
4854 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4855 (fill_in_ada_prototype, debug_print_block): Ditto.
4856 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4857 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4858 'is_sorted'.
4859 * mdebugread.c: Include dictionary.h.
4860 (struct parse_stack): Delete 'maxsyms' member.
4861 (parse_symbol): Update calls to new_block. Delete calls to
4862 shrink_block. Use dictionary methods.
4863 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4864 Update calls to new_symtab. Don't maintain maxsyms data.
4865 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4866 (add_symbol): Just call dict_add_symbol.
4867 (new_symtab): Delete 'maxsyms' argument.
4868 (new_symtab): Update calls to new_block.
4869 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4870 (shrink_block): Delete function.
4871 (fixup_sigtramp): Update call to new_block. Add symbol via
4872 dict_add_symbol.
4873 * jv-lang.c: Include dictionary.h.
4874 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4875 appropriately. Set class_symtab->free_func. Make sure the
4876 blockvector is big enough to hold two blocks.
4877 (add_class_symtab_symbol): Use dictionary methods.
4878 (free_class_block): New function.
4879 (type_from_class): Replace explicit iteration by
4880 ALL_BLOCK_SYMBOLS.
4881 * symtab.h (struct symtab): Replace 'free_ptr' method by
4882 'free_func'.
4883 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4884 sort_symtab_syms.
4885 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4886 sort_symtab_syms.
4887 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4888 Include dictionary.h.
4889 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4890 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4891 sort_symtab_syms.
4892 * objfiles.c: Include dictionary.h.
4893 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4894 * buildsym.c: Include dictionary.h.
4895 (finish_block): Use dictionary methods.
4896 (end_symtab): Set free_func to NULL, not free_ptr.
4897 * tracepoint.c: Include dictionary.h.
4898 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4899 (scope_info): Ditto.
4900 * stack.c: Include dictionary.h.
4901 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4902 (print_block_frame_labels, print_frame_arg_vars)
4903 (print_frame_args): Ditto.
4904 * symmisc.c (free_symtab_block): Use dictionary methods.
4905 (dump_symtab): Ditto.
4906 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4907 Include dictionary.h.
4908 * symfile.h: Delete declarations of sort_block_syms,
4909 sort_symtab_syms.
4910 * symfile.c (sort_block_syms): Delete.
4911 (sort_symtab_syms): Delete.
4912 * symtab.c: Include dictionary.h.
4913 (lookup_block_symbol): Use dictionary iterators.
4914 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4915 (search_symbols, make_symbol_completion_list): Ditto.
4916 (make_symbol_overload_list): Ditto.
4917 * valops.c (value_of_local): Use dict_empty.
4918 Include dictionary.h.
4919
a31f978c
JB
49202003-06-11 J. Brobecker <brobecker@gnat.com>
4921
4922 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4923
526e70c0
DC
49242003-06-11 David Carlton <carlton@bactrian.org>
4925
4926 * block.h (BLOCK_SHOULD_SORT): Delete.
4927 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4928 blocks.
4929 * ada-lang.c (ada_add_block_symbols): Ditto.
4930 * symfile.c (sort_block_syms): Delete.
4931 (sort_symtab_syms): Ditto.
4932 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4933 declarations.
4934 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4935 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4936 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4937 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4938 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4939 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4940 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4941
33c08150
JJ
49422003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4943
8ffd9b1b 4944 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4945 bits to 128.
4946
781a750d
AC
49472003-06-11 Andrew Cagney <cagney@redhat.com>
4948
4949 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4950 REGISTER_CONVERTIBLE.
4951 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4952 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4953 * gdbarch.h, gdbarch.c: Re-generate.
4954 * arch-utils.h (deprecated_register_convertible_not): Rename
4955 generic_register_convertible_not.
4956 * arch-utils.c (deprecated_register_convertible_not): Rename
4957 generic_register_convertible.
4958 (legacy_convert_register_p, legacy_register_to_value): Update.
4959 * sh-tdep.c (sh64_push_arguments): Update.
4960 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4961 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4962 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4963 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4964 * arch-utils.c (legacy_value_to_register): Update.
4965 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4966 (rs6000_register_convert_to_raw): Make parameter "from" const.
4967 * mips-tdep.c (mips_gdbarch_init): Update.
4968 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4969 * infcmd.c (default_print_registers_info): Update.
4970 * ia64-tdep.c (ia64_gdbarch_init): Update.
4971 (ia64_register_convert_to_raw): Make parameter "from" const.
4972 * i386-tdep.c (i386_gdbarch_init): Update.
4973 (i386_register_convert_to_raw): Update.
4974
cd90e54f
AC
49752003-06-11 Andrew Cagney <cagney@redhat.com>
4976
4977 * remote-fileio.c: Include "remote-fileio.h".
4978 * Makefile.in (remote-fileio.o): Update dependencies.
4979 (remote_fileio_h): Fix typo.
4980
a78f21af
AC
49812003-06-11 Andrew Cagney <cagney@redhat.com>
4982
4983 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4984 (xstormy16_save_dummy_frame_tos): Make static.
4985 (_initialize_xstormy16_tdep): Add declaration.
4986 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4987 * v850-tdep.c: Make local functions static.
4988 (_initialize_v850_tdep): Add declaration.
4989 * sparc-tdep.c: Make local functions static.
4990 (_initialize_sparc_tdep): Add declaration.
4991 * sh-tdep.c: Make local functions static.
4992 (_initialize_sh_tdep): Add declaration.
4993 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4994 * s390-tdep.c: Make local functions static.
4995 (_initialize_s390_tdep): Add declaration.
4996 * dbxread.c (find_stab_function_addr): Make static.
4997 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4998 * ocd.c (_initialize_remote_ocd): Add declaration.
4999 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5000 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5001 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5002 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5003 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5004 * remote-array.c (_initialize_array): Add declaration.
5005 (_initialize_remote_monitors): Add declaration.
5006 * remote-mips.c: Make local functions static.
5007 (_initialize_remote_mips): Add declaration.
5008 * mcore-tdep.c: Make all local functions static.
5009 (_initialize_mcore_tdep): Add declaration.
5010 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5011 * abug-rom.c (_initialize_abug_rom): Add declaration.
5012 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5013 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5014 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5015 * remote-est.c (_initialize_est): Add declaration.
5016 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5017 (m68hc11_call_dummy_address): Make static.
5018 * ia64-tdep.c: Make local functions static.
5019 (_initialize_ia64_tdep): Add declaration.
5020 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5021 * monitor.c (monitor_wait_filter): Make static.
5022 (_initialize_remote_monitors): Add declaration.
5023 * remote-hms.c (_initialize_remote_hms): Add declaration.
5024 * remote-e7000.c (fetch_regs_from_dump): Make static.
5025 (expect_n): Make static.
5026 (_initialize_remote_e7000): Add declaration.
5027 * ser-e7kpc.c: Always include "defs.h".
5028 (_initialize_ser_e7000pc): Add declaration.
5029 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5030 * cris-tdep.c: Make all but one function static.
5031 (_initialize_cris_tdep): Add declaration.
5032 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5033 * solib.c (update_solib_list): Make static.
5034 (_initialize_solib): Add declaration.
5035 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5036 (_initialize_avr_tdep): Add declaration.
5037 * remote-rdi.c (voiddummy): Make static.
5038 (_initialize_remote_rdi): Add declaration.
5039 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5040 * remote-rdp.c (send_rdp): Make static.
5041 (_initialize_remote_rdp): Add declaration.
5042 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5043
cbcdb1f5
CV
50442003-06-11 Corinna Vinschen <vinschen@redhat.com>
5045
5046 * remote-fileio.c: Make ari happy.
5047
a191ea8d
JB
50482003-06-10 J. Brobecker <brobecker@gnat.com>
5049
5050 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5051 fetching the trailing bytes of the buffer we are about to write.
5052
0ef75e11
AC
50532003-06-10 Andrew Cagney <cagney@redhat.com>
5054
5055 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5056 * Makefile.in (remote-fileio.o): Update dependencies.
5057 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5058 include <setjmp.h>, or <sys/types.h> conditional on USG.
5059 (remote_fio_jmp_buf): Delete global variable.
5060
449092f6 50612003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5062 Martin M. Hunt <hunt@redhat.com>
449092f6 5063
559fa028
AC
5064 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5065 (SFILES): Add remote-fileio.c.
5066 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5067 dependencies for building remote.o.
449092f6
CV
5068 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5069 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5070 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5071 static storage class.
5072 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5073 'F' packet.
5074 (_initialize_remote): Call initialize_remote_fileio().
5075 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5076 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5077 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5078 (captured_main): Initialize new ui_files.
5079 * ui-file.c: Add read and fgets input functions.
5080 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5081 (null_file_read): New function.
5082 (ui_file_read): New function.
5083 (set_ui_file_read): New function.
5084 (stdio_file_read): New function.
5085 * ui-file.h: New type ui_file_read_ftype.
5086 (set_ui_file_read): Declare.
5087 (ui_file_read): Declare.
5088
248de703
AC
50892003-06-09 Andrew Cagney <cagney@redhat.com>
5090
5091 * frame.h (deprecated_unwind_get_saved_register): Rename
5092 generic_unwind_get_saved_register, update comments.
5093 * mips-tdep.c (mips_get_saved_register): Update.
5094 * frame.c (deprecated_unwind_get_saved_register): Update.
5095
0ed8aa57
AC
50962003-06-09 Andrew Cagney <cagney@redhat.com>
5097
5098 * vax-tdep.c (vax_frame_locals_address): Delete function.
5099 (vax_gdbarch_init): Do not set frame_locals_address.
5100 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5101 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5102 * s390-tdep.c (s390_frame_args_address): Delete function.
5103 (s390_gdbarch_init): Do not set frame_args_address or
5104 frame_locals_address.
5105 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5106 (ns32k_gdbarch_init): Do not set frame_locals_address.
5107 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5108 (hppa_frame_locals_address): Delete function.
5109 (hppa_gdbarch_init): Do not set frame_args_address, or
5110 frame_locals_address.
5111 * arm-tdep.c (arm_frame_args_address): Delete.
5112 (arm_frame_locals_address): Delete.
5113 (arm_gdbarch_init): Do not set frame_args_address, or
5114 frame_locals_address.
5115
983a287a
AC
51162003-06-09 Andrew Cagney <cagney@redhat.com>
5117
5118 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5119 * gdbarch.h, gdbarch.c: Re-generate.
5120 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5121 * arch-utils.c (frame_num_args_unknown): Delete function.
5122 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5123 (frame_info): Use FRAME_NUM_ARGS_P.
5124 * arm-tdep.c (arm_frame_num_args): Delete function.
5125 (arm_gdbarch_init): Do not set frame_num_args.
5126 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5127 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5128 (hppa_gdbarch_init): Do not set frame_num_args.
5129 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5130 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5131 frame_num_args to default frame_num_args_unknown.
5132 * v850-tdep.c (v850_gdbarch_init): Ditto.
5133 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5134 * sh-tdep.c (sh_gdbarch_init): Ditto.
5135 * s390-tdep.c (s390_gdbarch_init): Ditto.
5136 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5137 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5138 * mips-tdep.c (mips_gdbarch_init): Ditto.
5139 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5140 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5142 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5143 * i386-tdep.c (i386_gdbarch_init): Ditto.
5144 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5145 * frv-tdep.c (frv_gdbarch_init): Ditto.
5146 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5147 * cris-tdep.c (cris_gdbarch_init): Ditto.
5148 * avr-tdep.c (avr_gdbarch_init): Ditto.
5149 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5150
8d3b0994
AC
51512003-06-09 Andrew Cagney <cagney@redhat.com>
5152
5153 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5154 (print_frame_args): Moved to "stack.c".
5155 * stack.c: Include "gdb_assert.h".
5156 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5157 (print_frame_args): Moved from "printcmd.c".
5158 * frame.h (print_frame_args): Delete declaration.
5159 * Makefile.in (stack.o): Update dependencies.
5160
25e3a86b
AC
51612003-06-08 Andrew Cagney <cagney@redhat.com>
5162
5163 * frame.c (get_prev_frame): Remove reference to
5164 frame_args_address_correct in comments.
5165 * frame-base.c (default_frame_args_address): Delete code
5166 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5167 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5168 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5169 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5170 (vax_frame_args_address_correct): Delete declaration.
5171
a9e5fdc2
AC
51722003-06-08 Andrew Cagney <cagney@redhat.com>
5173
5174 * gdbarch.sh (UNWIND_SP): Add.
5175 * gdbarch.h, gdbarch.c: Re-generate.
5176 * frame.c (frame_sp_unwind): New function.
5177 (get_frame_sp): New function.
5178 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5179 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5180 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5181 value.
5182 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5183 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5184
8983bd83
AC
51852003-06-08 Andrew Cagney <cagney@redhat.com>
5186
7fec2c59
AC
5187 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5188 REMOTE_BREAKPOINT.
5189 * remote.c: Update.
5190 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5191 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5192 * config/m68k/tm-sun3.h: Update.
5193 * config/m68k/tm-m68klynx.h: Update.
5194 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5195
8983bd83
AC
5196 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5197 trad_frame". Update comments.
5198 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5199 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5200 (trad_frame_register_value, trad_frame_prev_register): Update.
5201
b9362cc7
AC
52022003-06-08 Andrew Cagney <cagney@redhat.com>
5203
5204 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5205 from GCC's acinclude.m4.
5206 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5207 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5208 * main.c (error_init): Delete declaration.
5209 * defs.h (error_init): Declare.
5210 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5211 (rs6000_convert_from_func_ptr_addr): Make static.
5212 (_initialize_rs6000_tdep): Add declaration.
5213 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5214 (show_commands, set_verbose, show_history): Delete declaration.
5215 * top.h (set_verbose): Add declaration.
5216 (show_history, set_history, show_commands): Add declaration.
5217 (do_restore_instream_cleanup): Add declaration.
5218 * objc-lang.c (specialcmp): Make static.
5219 (print_object_command): Make static.
5220 (find_objc_msgsend): Make static.
5221 (find_objc_msgcall_submethod_helper): Make static.
5222 (find_objc_msgcall_submethod): Make static.
5223 (_initialize_objc_language): Add declaration.
5224 (find_implementation_from_class): Make static.
5225 (find_implementation): Make static.
5226 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5227 * objc-lang.h (lookup_struct_typedef): Add declaration.
5228 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5229 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5230 (do_restore_user_call_depth): Make static.
5231 (do_restore_instream_cleanup): Delete declaration.
5232 (dont_repeat): Delete declaration.
5233 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5234 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5235 * reggroups.c (_initialize_reggroup): Add declaration.
5236 * cp-support.c (_initialize_cp_support): Add declaration.
5237 * cp-abi.c (_initialize_cp_abi): Add declaration.
5238 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5239 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5240 (_initialize_gnu_v3_abi): Add declaration.
5241 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5242 (_initialize_gnu_v2_abi): Add declaration.
5243 * frame-base.c (_initialize_frame_base): Add declaration.
5244 * doublest.c (floatformat_from_length): Make static.
5245 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5246 * frame.c (create_sentinel_frame): Make static.
5247 (_initialize_frame): Add declaration.
5248 * top.c (do_catch_errors): Make static.
5249 (gdb_rl_operate_and_get_next_completion): Make static.
5250 * typeprint.c: Include "typeprint.h".
5251 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5252 (sentinel_frame_this_id): Make static.
5253 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5254 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5255 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5256 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5257 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5258 * maint.c (maintenance_print_architecture): Make static.
5259 * signals/signals.c (_initialize_signals): Add declaration.
5260 * std-regs.c (_initialize_frame_reg): Add declaration.
5261 * jv-exp.y (push_variable): ISO C definition.
5262 (push_qualified_expression_name): Ditto.
5263 * memattr.c (_initialize_mem): Add declaration.
5264 * remote.c (remote_check_watch_resources): Make static.
5265 (remote_stopped_by_watchpoint): Make static.
5266 (remote_stopped_data_address): Make static.
5267 * d10v-tdep.c (nr_dmap_regs): Make static.
5268 (a0_regnum): Make static.
5269 (d10v_frame_unwind_cache): Make static.
5270 (d10v_frame_p): Make static.
5271 * osabi.c (show_osabi): Make static.
5272 (_initialize_gdb_osabi): Add extern declaration.
5273 * gdbtypes.c (make_qualified_type): Make static.
5274 (safe_parse_type): Make static.
5275 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5276 * macrotab.c (macro_bcache_free): Make static.
5277 * interps.c (interp_set_quiet): Make static.
5278 (interpreter_exec_cmd): Make static.
5279 * stack.h (select_frame_command): New file.
5280 * stack.c: Include "stack.h".
5281 (select_frame_command_wrapper): Delete function.
5282 (select_frame_command): Make global.
5283 * infcall.c: Include "infcall.h".
5284 * linespec.c: Include "linespec.h".
5285 * symfile.c (sections_overlap): Make static.
5286 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5287 * charset.c (_initialize_charset): Add missing prototype.
5288 * regcache.c (init_legacy_regcache_descr): Make static.
5289 (do_regcache_xfree): Make static.
5290 (regcache_xfer_part): Make static.
5291 (_initialize_regcache): Add missing prototype.
5292 * breakpoint.c (parse_breakpoint_sals): Make static.
5293 (breakpoint_sals_to_pc): Make static.
5294 * interps.h (clear_interpreter_hooks): ISO C declaration.
5295 * Makefile.in (stack_h): Define.
5296 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5297 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5298
a0f267c7
AC
52992003-06-08 Andrew Cagney <cagney@redhat.com>
5300
5301 * Makefile.in (d10v-tdep.o): Update dependencies.
5302 (SFILES): Add trad-frame.c.
5303 (trad_frame_h): Define.
5304 (COMMON_OBS): Add trad-frame.o.
5305 (trad-frame.o): Specify dependencies.
5306 * d10v-tdep.c: Include "trad-frame.h".
5307 (saved_regs_unwinder): Delete function.
5308 (d10v_frame_prev_register): Use trad_frame_prev_register.
5309 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5310 trad_frame", delete "regs" and "prev_sp".
5311 (prologue_find_regs): Use trad-frame.
5312 * trad-frame.h, trad-frame.c: New files.
5313
4538b4f4
MK
53142003-06-08 Mark Kettenis <kettenis@gnu.org>
5315
5316 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5317
a0273b2f
AF
53182003-06-07 Adam Fedor <fedor@gnu.org>
5319
5320 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5321 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5322 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5323 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5324 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5325 Use it.
5326
3a6c3343
AC
53272003-06-07 Andrew Cagney <cagney@redhat.com>
5328
5329 * symfile.h: Re-indent, clean up comments.
5330
b46e02f6
AC
53312003-06-07 Andrew Cagney <cagney@redhat.com>
5332
5333 * inferior.h (deprecated_write_sp): Replace
5334 generic_target_write_sp.
5335 * regcache.c (deprecated_write_sp): Replace
5336 generic_target_write_sp.
5337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5338 * vax-tdep.c (vax_gdbarch_init): Update.
5339 * v850-tdep.c (v850_gdbarch_init): Update.
5340 * sparc-tdep.c (sparc_gdbarch_init): Update.
5341 * sh-tdep.c (sh_gdbarch_init): Update.
5342 * s390-tdep.c (s390_gdbarch_init): Update.
5343 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5344 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5345 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5346 * mcore-tdep.c (mcore_gdbarch_init): Update.
5347 * m68k-tdep.c (m68k_gdbarch_init): Update.
5348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5349 * ia64-tdep.c (ia64_gdbarch_init): Update.
5350 * h8300-tdep.c (h8300_gdbarch_init): Update.
5351 * frv-tdep.c (frv_gdbarch_init): Update.
5352 * cris-tdep.c (cris_gdbarch_init): Update.
5353 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5354
a42e117c
AC
53552003-06-07 Andrew Cagney <cagney@redhat.com>
5356
5357 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5358 Assert that PC_REGNUM is valid.
5359 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5360
bd1ce8ba
AC
53612003-06-07 Andrew Cagney <cagney@redhat.com>
5362
5363 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5364 * gdbarch.h, gdbarch.c: Regenerate.
5365 * mn10300-tdep.c: Include "gdb_assert.h".
5366 (mn10300_read_fp): New function.
5367 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5368 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5369 * ia64-tdep.c: Include "gdb_assert.h".
5370 (ia64_read_fp): New function.
5371 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5372 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5373 * regcache.c (generic_target_read_sp): Delete function.
5374 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5375 * inferior.h (generic_target_read_sp): Delete declaration.
5376 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5377 generic_target_read_sp.
5378 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5379 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5380 * sh-tdep.c (sh_gdbarch_init): Ditto.
5381 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5382 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5383
ec5cbaec
AC
53842003-06-07 Andrew Cagney <cagney@redhat.com>
5385
5386 * gdbarch.sh: Comment each field of startup_gdbarch.
5387 * gdbarch.h, gdbarch.c: Re-generate.
5388
cde9ea48
AC
53892003-06-07 Andrew Cagney <cagney@redhat.com>
5390
5391 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5392 * gdbarch.h, gdbarch.c: Re-generate.
5393 * regcache.c: Update comments on read_pc et.al.
5394 (generic_target_read_pc): Delete function.
5395 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5396 * inferior.h (generic_target_read_pc): Delete declaration.
5397 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5398 generic_target_read_pc.
5399 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5400 * sh-tdep.c (sh_gdbarch_init): Ditto.
5401 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5403
9a90a780
AC
54042003-06-07 Andrew Cagney <cagney@redhat.com>
5405
5406 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5407 "index" with "special_local_sect". Use strcmp instead of STREQ.
5408 Append period to coments.
5409
a39a16c4
MM
54102003-06-06 Mark Mitchell <mark@codesourcery.com>
5411
5412 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5413 (elfstab_offset_sections): Likewise.
5414 * gdb-stabs.h (stab_section_info): Likewise.
5415 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5416 * objfiles.c (objfile_relocate): Likewise.
5417 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5418 * remote.c (get_offsets): Likewise.
5419 (remote_cisco_objfile_relocate): Likewise.
5420 * somread.c (som_symfile_offsets): Likewise.
5421 * symfile.c (alloc_section_addr_info): New function.
5422 (build_section_addr_info_from_section_tab): Use it.
5423 (free_section_addr_info): Adjust.
5424 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5425 (syms_from_objfile): Allocate local_addr dynamically.
5426 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5427 dynamically.
5428 (add_symbol_file_command): Allocate sect_opts dynamically.
5429 (reread_symbols): Avoid use of SECT_OFF_MAX.
5430 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5431 (alloc_section_addr_info): Declare it.
5432 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5433 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5434 dynamically.
5435 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5436
20c6c2f8
AC
54372003-06-06 Andrew Cagney <cagney@redhat.com>
5438
5439 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5440 (d10v_frame_unwind_cache): Do not set "return_pc".
5441
884a26c8
MS
54422003-06-06 Michael Snyder <msnyder@redhat.com>
5443
5444 * h8300-tdep.c: Make tidy (long lines).
5445
088ce440
ML
54462003-06-06 Michal Ludvig <mludvig@suse.cz>
5447
8ffd9b1b 5448 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5449 to regcache_collect().
5450
7d773d96
JB
54512003-06-05 J. Brobecker <brobecker@gnat.com>
5452
5453 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5454 pc_in_sigtramp multiarch method.
5455 (hppa_hpux_som_init_abi): Use it.
5456 (hppa_hpux_elf_init_abi): Likewise.
5457 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5458 macro has been multiarched.
5459 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5460 macro here, as hppa64 isn't multiarched yet.
5461
1df6926e
AC
54622003-06-05 Andrew Cagney <cagney@redhat.com>
5463
5464 * Makefile.in (value_h): Add $(frame_h).
5465 * value.h: Include "frame.h".
5466 (struct value): Replace "frame_addr" with "frame_id".
5467 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5468 * values.c (allocate_value): Use VALUE_FRAME_ID.
5469 (value_copy): Use VALUE_FRAME_ID.
5470 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5471 * valops.c (value_assign): Update. Use frame_find_by_id.
5472
6b53acc6
ML
54732003-06-05 Michal Ludvig <mludvig@suse.cz>
5474
5475 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5476 in each pass.
5477
4d9850d3
JJ
54782003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5479
5480 * thread-db.c (check_event): For create/death event breakpoints,
5481 loop through all messages to ensure that we read the message
5482 corresponding to the breakpoint we are at.
5483
8efca6ba
MS
54842003-06-04 Michael Snyder <msnyder@redhat.com>
5485
5486 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5487
0912c7f2
MK
54882003-06-04 Mark Kettenis <kettenis@gnu.org>
5489
5490 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5491 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5492 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5493 when handling .eh_frame sections.
5494
4e370325
JB
54952003-06-04 J. Brobecker <brobecker@gnat.com>
5496
5497 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5498 prepare_to_proceed procedure instead of the hppa-specific one.
5499 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5500
b757528f 55012003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5502
b757528f
JJ
5503 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5504 * config.in: Regenerated.
5505 * configure.in: Add test for syscall function and check for
5506 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5507 * configure: Regenerated.
5508 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5509 <sys/syscall.h>.
5510 (kill_lwp): New function that uses tkill syscall or
5511 uses kill, depending on whether threading model is nptl or not.
5512 All callers of kill() changed to use kill_lwp().
5513 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5514 see if all threads have already exited in the nptl model.
5515 (stop_and_resume_callback): New callback function used by the
5516 lin_lwp_wait thread exit handling code.
5517 (stop_wait_callback): Check for threads already having exited and
5518 delete such threads fromt the lwp list when discovered.
5519 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5520
b757528f
JJ
5521 Roland McGrath <roland@redhat.com>
5522 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5523 nptl libthread_db.
5524
087779b1
RH
55252003-06-03 Richard Henderson <rth@redhat.com>
5526
b21fd293
RH
5527 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5528 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5529 (alpha_sigtramp_frame_prev_register): Likewise.
5530 (alpha_heuristic_frame_prev_register): Likewise.
5531 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5532
8ffd9b1b 5533 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5534 alpha-specific register id names.
5535 (alpha_mdebug_frame_unwind_cache): Likewise.
5536 (alpha_mdebug_frame_prev_register): Likewise.
5537
baa490c4
RH
55382003-06-03 Richard Henderson <rth@redhat.com>
5539
5540 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5541 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5542 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5543 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5544 unwind routines.
5545 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5546 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5547 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5548
5549 * alpha-linux-tdep.c: Remove unnecessary includes.
5550 * Makefile.in (alpha-linux-tdep.o): Update.
5551
55522003-06-03 Richard Henderson <rth@redhat.com>
5553
5554 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5555 (alphabsd_fill_fpreg): Likewise.
5556
f534e522
JB
55572003-06-03 J. Brobecker <brobecker@gnat.com>
5558
5559 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5560 references to struct frame_info fields by calls to the equivalent
5561 accessors. Necessary now that frame_info is opaque.
5562
4035536b
JB
55632003-06-03 J. Brobecker <brobecker@gnat.com>
5564
5565 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5566 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5567 structure, field no longer exists.
5568
0bd79c5c
JB
55692003-06-03 J. Brobecker <brobecker@gnat.com>
5570
5571 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5572 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5573
37bb6d9f
JB
55742003-06-03 J. Brobecker <brobecker@gnat.com>
5575
5576 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5577 references to struct frame_info fields by calls to the equivalent
5578 accessors. Necessary now that frame_info is opaque.
5579
852ee05c
JB
55802003-06-03 J. Brobecker <brobecker@gnat.com>
5581
5582 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5583 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5584 structure, field no longer exists.
5585
7d58c67d
TR
55862003-06-03 Theodore A. Roth <troth@openavr.org>
5587
8ffd9b1b 5588 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5589 accumulation of the size of all registers instead of blindly using
5590 DEPRECATED_REGISTER_BYTES.
5591
0a48e7e8
MS
55922003-06-03 Michael Snyder <msnyder@redhat.com>
5593
5594 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5595 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5596 for h8300sx.
5597
9798ab0d
JB
55982003-06-03 J. Brobecker <brobecker@gnat.com>
5599
5600 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5601 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5602
00b037e2
AC
56032003-06-03 Andrew Cagney <cagney@redhat.com>
5604
5605 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5606 (sparc_convert_to_raw): Delete function.
5607 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5608 register_convert_to_virtual.
5609
043b2f77
JJ
56102003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5611
5612 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5613 layer if not dealing with a statically-linked threaded program.
5614
f43caff8
KW
56152003-06-03 Kris Warkentin <kewarken@qnx.com>
5616
5617 * solib.c (solib_open): Update comment to reflect actual search order.
5618
ae1e7417
AC
56192003-06-03 Andrew Cagney <cagney@redhat.com>
5620
5621 * frame.c (get_frame_memory_signed): New function.
5622 (get_frame_memory, get_frame_memory_unsigned): New function.
5623 (get_frame_arch): New function.
5624 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5625 (get_frame_memory, get_frame_unsigned_memory): Declare.
5626 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5627 get_frame_memory_unsigned and get_frame_arch.
5628 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5629
cb123844
RG
56302003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5631
5632 * MAINTAINERS (write after approval): Add myself.
5633
1bb792e9
JB
56342003-06-03 Jim Blandy <jimb@redhat.com>
5635
5636 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5637 elements of gregset_t are 64 bits each, but access registers
5638 are still 32 bits, so they're packed two per gregset_t
5639 element. Unpack/pack them properly.
5640
aee8d8ba
DC
56412003-06-02 David Carlton <carlton@bactrian.org>
5642
5643 * linespec.c (find_methods): Break out code into
5644 add_matching_methods and add_constructors.
5645 (add_matching_methods): New.
5646 (add_constructors): Ditto.
5647
bf7488d2
AC
56482003-06-02 Andrew Cagney <cagney@redhat.com>
5649
bf7488d2
AC
5650 * sparc-tdep.c (sparc_print_registers): Delete call to
5651 REGISTER_CONVERTIBLE.
5652 (sparc_gdbarch_init): Do not set register_convertible.
5653 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5654 * frv-tdep.c (frv_gdbarch_init): Ditto.
5655 * cris-tdep.c (cris_gdbarch_init): Ditto.
5656
adedef68
EZ
56572003-06-02 Elena Zannoni <ezannoni@redhat.com>
5658
8ffd9b1b 5659 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5660 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5661 (syms_from_objfile): Ditto.
5662
650fcc91
AS
56632003-06-03 Andreas Schwab <schwab@suse.de>
5664
5665 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5666 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5667
df4a182b
RH
56682003-06-02 Richard Henderson <rth@redhat.com>
5669
5670 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5671 a member of all_reggroup.
5672
c483c494
RH
56732003-06-02 Richard Henderson <rth@redhat.com>
5674
5675 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5676 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5677 (alpha_lds, alpha_sts): New.
5678 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5679 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5680 restructure and fail for type sizes other than 4 or 8.
5681 (alpha_value_to_register): Similarly.
5682 (alpha_extract_return_value): Use alpha_sts.
5683 (alpha_store_return_value): Use alpha_lds.
5684 (alpha_gdbarch_init): Update hooks.
5685
b38b6be2
RH
56862003-06-02 Richard Henderson <rth@redhat.com>
5687
5688 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5689 regnum identifiers.
5690 (alpha_sigtramp_register_address): Likewise.
5691
98a8e1e5
RH
56922003-06-02 Richard Henderson <rth@redhat.com>
5693
5694 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5695 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5696 * alpha-tdep.h: Declare them.
5697
5698 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5699 Remove zerobuf. Don't error on UNIQUE.
5700 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5701 (ALPHA_REGSET_UNIQUE): Provide default.
5702 (supply_gregset): Use alpha_supply_int_regs.
5703 (fill_gregset): Use alpha_fill_int_regs.
5704 (supply_fpregset): Use alpha_supply_fp_regs.
5705 (fill_fpregset): Use alpha_fill_fp_regs.
5706 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5707 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5708 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5709 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5710 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5711 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5712
67dfac52
RH
57132003-06-02 Richard Henderson <rth@redhat.com>
5714
f75d70cc
RH
5715 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5716
67dfac52
RH
5717 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5718 (alpha_store_return_value): Likewise.
5719
0cf566ec
DC
57202003-06-02 David Carlton <carlton@math.stanford.edu>
5721
5722 * block.c (contained_in): Add 'const' to arguments.
5723 (block_function): Ditto.
5724 * block.h: Update declarations for block_function and
5725 contained_in.
5726
cdef89d0
DC
57272003-06-02 David Carlton <carlton@math.stanford.edu>
5728
5729 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5730 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5731 * p-valprint.c (pascal_val_print): Ditto.
5732 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5733
72667056
RH
57342003-06-02 Richard Henderson <rth@redhat.com>
5735
98a8e1e5
RH
5736 * alpha-tdep.c (alpha_push_dummy_call): Use
5737 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5738
8ffd9b1b 5739 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5740 sign-extension of 32-bit values.
5741 (alpha_store_return_value): Similarly.
0ede8eca 5742
98a8e1e5
RH
5743 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5744 (alpha_extract_return_value): Likewise.
5745 (alpha_store_return_value): Likewise.
7b5e1cb3 5746
98a8e1e5
RH
5747 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5748 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5749
98a8e1e5
RH
5750 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5751 (alpha_extract_struct_value_address): Likewise.
5752 (alpha_store_return_value): Likewise.
5753 (alpha_store_struct_return): Remove.
5754 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5755
98a8e1e5
RH
5756 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5757 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5758 macros where appropriate.
5759 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5760 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5761
98a8e1e5
RH
5762 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5763 for SP, GP; void_func_ptr for PC; non-language-specific types
5764 for all others.
5765 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5766
6dd77b81
RH
57672003-06-02 Richard Henderson <rth@redhat.com>
5768
5769 * top.h (lim_at_start): Declare.
5770 * main.c (captured_main): Set it.
5771 * top.c (lim_at_start): Define.
5772 (command_loop): Use it instead of &environ.
5773 * event-top.c (command_handler): Likewise.
5774
f4dbdb54
JT
57752003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5776
5777 * mipsnbsd-tdep.c: Update copyright years.
5778 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5779
8f285956
RH
57802003-06-01 Richard Henderson <rth@redhat.com>
5781
98a8e1e5
RH
5782 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5783 (alpha-linux-tdep.o): Update dependencies.
5784 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5785 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5786
615967cb
RH
57872003-06-01 Richard Henderson <rth@redhat.com>
5788
98a8e1e5
RH
5789 * alpha-tdep.c (alpha_register_reggroup_p): New.
5790 (alpha_gdbarch_init): Register it.
615967cb 5791
b59661bd
AC
57922003-06-02 Andrew Cagney <cagney@redhat.com>
5793
5794 * dwarfread.c: Eliminate "register"
5795 (decode_die_type): Eliminate assignment within "if".
5796 (struct_type, decode_array_element_type): Ditto.
5797 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5798 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5799 (decode_modified_type, completedieinfo): Ditto.
5800 * block.c: Eliminate "register".
5801 (blockvector_for_pc_sect): Eliminate assignment within "if".
5802 * cp-support.h (struct symbol): Opaque declaration.
5803 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5804
5ef165c2
RH
58052003-06-01 Richard Henderson <rth@redhat.com>
5806
98a8e1e5
RH
5807 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5808 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5809
143985b7
AF
58102003-06-01 Adam Fedor <fedor@gnu.org>
5811
5812 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5813 * gdbarch.[ch]: Regenerate.
5814 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5815 (hppa_gdbarch_init): Set it in the gdbarch vector.
5816 * i386-tdep.c (i386_fetch_pointer_argument): New
5817 (i386_gdbarch_init): Set it into gdbarch.
5818 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5819 (rs6000_gdbarch_init): Set it in gdbarch.
5820 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5821 (sparc_gdbarch_init): Set it in gdbarch.
5822
ae0167b9
AC
58232003-06-01 Andrew Cagney <cagney@redhat.com>
5824
7c0b4a20
AC
5825 * defs.h (extract_address): Delete declaration.
5826 * findvar.c (extract_address): Delete function.
5827 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5828 extract_address with the inline equivalent,
5829 extract_unsigned_integer.
5830 (xstormy16_extract_struct_value_address): Ditto.
5831 (xstormy16_pointer_to_address): Ditto.
5832 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5833 * v850-tdep.c (v850_push_arguments): Ditto.
5834 (v850_extract_return_value): Ditto.
5835 (v850_extract_struct_value_address): Ditto.
5836 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5837 (sparcnbsd_get_longjmp_target_64): Ditto.
5838 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5839 (get_longjmp_target): Ditto.
5840 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5841 (sh64_extract_struct_value_address): Ditto.
5842 (sh_push_arguments): Ditto.
5843 (sh64_push_arguments): Ditto.
5844 * remote-vxsparc.c (vx_read_register): Ditto.
5845 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5846 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5847 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5848 * mipsv4-nat.c (get_longjmp_target): Ditto.
5849 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5850 * mips-nat.c (get_longjmp_target): Ditto.
5851 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5852 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5853 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5854 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5855 * irix5-nat.c (get_longjmp_target): Ditto.
5856 * irix4-nat.c (get_longjmp_target): Ditto.
5857 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5858 (ia64_push_arguments): Ditto.
5859 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5860 * h8300-tdep.c (h8300_push_arguments): Ditto.
5861 (h8300_store_return_value): Ditto.
5862 (h8300_extract_struct_value_address): Ditto.
5863 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5864 (frv_push_arguments): Ditto.
5865 * avr-tdep.c (avr_pointer_to_address): Ditto.
5866 (avr_push_arguments): Ditto.
5867 * arm-tdep.c (arm_push_dummy_call): Ditto.
5868 (arm_get_longjmp_target): Ditto.
5869 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5870 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5871 (alpha_get_longjmp_target): Ditto.
5872
ae0167b9
AC
5873 * solib-irix.c (extract_mips_address): Inline extract_address,
5874 replacing it with extract_signed_integer.
5875 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5876 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5877 (first_link_map_member, open_symbol_file_object): Ditto.
5878 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5879 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5880 (LM_NEXT, LM_NAME): Ditto.
5881
44d88583
RH
58822003-06-01 Richard Henderson <rth@redhat.com>
5883
98a8e1e5
RH
5884 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5885 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5886 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5887 (alpha_cannot_store_register): Likewise.
5888 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5889 * alpha-nat.c (supply_gregset): Likewise.
5890 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5891
310e9b6a
AC
58922003-06-01 Andrew Cagney <cagney@redhat.com>
5893
5894 * infcall.c (call_function_by_hand): Update comment on
5895 DEPRECATED_DUMMY_WRITE_SP.
5896
5897 * mips-tdep.c (mips_gdbarch_init): Do not set
5898 deprecated_dummy_write_sp.
5899 (mips_eabi_push_dummy_call): Set the SP register.
5900 (mips_o64_push_dummy_call): Set the SP register.
5901 (mips_o32_push_dummy_call): Set the SP register.
5902 (mips_n32n64_push_dummy_call): Set the SP register.
5903
5ab84872
RH
59042003-06-01 Richard Henderson <rth@redhat.com>
5905
98a8e1e5
RH
5906 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5907 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5908 (supply_gregset): Likewise.
5909 * alpha-tdep.c (alpha_store_return_value): Likewise.
5910 (alpha_get_longjmp_target): Likewise.
5911 (alpha_register_name): Constify array.
5912 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5913 deprecated_register_size, deprecated_register_bytes,
5914 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5915 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5916 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5917
09cc52fd
RH
59182003-06-01 Richard Henderson <rth@redhat.com>
5919
5920 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5921 from arg_reg_buffer to regcache to avoid double conversion.
5922
c7f16359
MK
59232003-06-01 Mark Kettenis <kettenis@gnu.org>
5924
5925 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5926 SP_REGNUM.
5927 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5928 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5929
7131cb6e
RH
59302003-06-01 Richard Henderson <rth@redhat.com>
5931
98a8e1e5
RH
5932 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5933 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5934
f3e0f90b
RH
59352003-06-01 Richard Henderson <rth@redhat.com>
5936
98a8e1e5
RH
5937 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5938 not overlapping PC_REGNUM.
f3e0f90b 5939
c88e30c0
RH
59402003-06-01 Richard Henderson <rth@redhat.com>
5941
98a8e1e5
RH
5942 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5943 alpha_push_arguments. Don't dump argument register data to
5944 the target stack. Fix float and 128-bit long double semantics.
5945 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5946 (alpha_fix_call_dummy): Remove.
5947 (alpha_call_dummy_words): Remove.
5948 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5949
f1a559ae
RH
59502003-06-01 Richard Henderson <rth@redhat.com>
5951
5952 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5953
5e045346
AC
59542003-06-01 Andrew Cagney <cagney@redhat.com>
5955
95404a3e
AC
5956 * mips-tdep.c (is_mips16_addr): New function.
5957 (make_mips16_addr, unmake_mips16_addr): New functions.
5958 (pc_is_mips16, mips_fetch_instruction): Use.
5959 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5960 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5961 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5962 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5963 TARGET_MIPS.
5964 * config/mips/tm-mips.h: Update copyright.
5965 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5966 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5967 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5968 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5969 (TM_PRINT_INSN_MACH): Delete.
5970 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5971
5e045346
AC
5972 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5973 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5974 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5975 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5976 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5977 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5978 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5979 mips*-*-riscos* and mips*-*-sysv* onto mips.
5980 * config/mips/mips64.mt: New file.
5981 * config/mips/mips.mt: New file.
5982 * config/mips/littlemips.mt: Delete file.
5983 * config/mips/decstation.mt: Delete file.
5984 * config/mips/vr4300el.mt: Delete file.
5985 * config/mips/vr5000el.mt: Delete file.
5986 * config/mips/vr5000.mt: Delete file.
5987 * config/mips/vr4100.mt: Delete file.
5988 * config/mips/vr4xxxel.mt: Delete file.
5989 * config/mips/vr4300.mt: Delete file.
5990 * config/mips/vr4xxx.mt: Delete file.
5991 * config/mips/bigmips.mt: Delete file.
5992 * config/mips/bigmips64.mt: Delete file.
5993 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5994 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5995 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5996 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5997 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5998 "tm-bigmips.h".
5999 * config/mips/tm-irix3.h: Ditto.
6000 * config/mips/tm-mipsv4.h: Ditto.
6001 * config/mips/tm-embed.h: Ditto.
6002 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6003 "tm-bigmips64.h".
6004 * config/mips/tm-vr5000el.h: Delete file.
6005 * config/mips/tm-tx39l.h: Delete file.
6006 * config/mips/tm-vr4300el.h: Delete file.
6007 * config/mips/tm-vr4xxxel.h: Delete file.
6008 * config/mips/tm-vr4300.h: Delete file.
6009 * config/mips/tm-vr4100.h: Delete file.
6010 * config/mips/tm-vr4xxx.h: Delete file.
6011 * config/mips/tm-vr5000.h: Delete file.
6012 * config/mips/tm-embedl64.h: Delete file.
6013 * config/mips/tm-embedl.h: Delete file.
6014 * config/mips/tm-embed64.h: Delete file.
6015 * config/mips/tm-bigmips64.h: Delete file.
6016 * config/mips/tm-bigmips.h: Delete file.
6017
2473a4a9
MK
60182003-06-01 Mark Kettenis <kettenis@gnu.org>
6019
97a5b208
MK
6020 Fix gdb/1216.
6021 * shnbsd-nat.c: Include "sh-tdep.h".
6022
2473a4a9
MK
6023 From Richard Henderson <rth@redhat.com>:
6024 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6025
e0f7ec59
AC
60262003-05-31 Andrew Cagney <cagney@redhat.com>
6027
6028 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6029 forward declaration.
6030 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6031 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6032 (mips_find_saved_regs): Use set_reg_offset.
6033 (mips_frame_init_saved_regs): Delete function.
6034 (mips_pop_frame): Call mips_find_saved_regs instead of
6035 DEPRECATED_FRAME_INIT_SAVED_REGS.
6036
68dcc709
AC
60372003-05-31 Andrew Cagney <cagney@redhat.com>
6038
6039 * mips-tdep.c (mips_gdbarch_init): Do not set
6040 deprecated_max_register_raw_size, register_virtual_size, and
6041 deprecated_max_register_virtual_size.
6042
cfc14b3a
MK
60432003-05-31 Mark Kettenis <kettenis@gnu.org>
6044
6405b0a6
MK
6045 * i386-tdep.c: Include "dwarf2-frame.h".
6046 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6047 * Makefile.in (i386-tdep.o): Update dependencies.
6048
cfc14b3a
MK
6049 * dwarf2-frame.c, dwarf2-frame.h: New files.
6050 * Makefile.in (SFILES): Add dwarf2-frame.c.
6051 (dwarf2_frame_h): Define.
6052 (COMMON_OBS): Add dwarf2-frame.o.
6053 (dwarf2-frame.o): Add dependencies.
6054
6a2751d2
AJ
60552003-05-31 Andreas Jaeger <aj@suse.de>
6056
6057 * x86-64-linux-nat.c: Fix comment.
6058
1c3545ae
MK
60592003-05-31 Mark Kettenis <kettenis@gnu.org>
6060
10f93086
MK
6061 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6062 function signature.
6063
1c3545ae
MK
6064 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6065 have a sigcontext_addr handler.
6066 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6067 sigcontext_addr handler.
6068
e11c53d2
AC
60692003-05-31 Andrew Cagney <cagney@redhat.com>
6070
6071 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6072 (print_fp_register_row): Replace do_fp_register_row.
6073 (mips_print_fp_register): Add "file" and "frame" parameters.
6074 (mips_print_register): Add "file" and "frame" parameters.
6075 (mips_print_registers_info): Replace mips_do_registers_info.
6076 (mips_gdbarch_init): Set print_registers_info instead of
6077 deprecated_do_registers_info.
6078 (mips_read_fp_register_single): Add "frame" parameter.
6079 (mips_read_fp_register_double): Add "frame" parameter.
6080
a3386186
MK
60812003-05-31 Mark Kettenis <kettenis@gnu.org>
6082
70913449
MK
6083 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6084 Fixes a bug where GDB would print the wrong register names for
6085 targets without SSE.
6086
2b5e0749
MK
6087 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6088 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6089 registers.
6090
6091 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6092 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6093 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6094 TDEP->sc_sp_offset.
6095
a3386186
MK
6096 From Michal Ludvig <mludvig@suse.cz>:
6097 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6098 and `sc_num_regs'.
6099 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6100 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6101 I386_ST0_REGNUM): Move here from...
6102 * i386-tdep.c: ... here.
6103 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6104 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6105 registers if possible.
6106 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6107 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6108 Remove variables.
6109 (i386bsd_sc_reg_offset): New variable.
6110 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6111 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6112 TDEP->sc_sp_offset.
6113 (i386fbsd_sc_reg_offset): New variable.
6114 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6115 TDEP->sc_num_regs.
6116 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6117 variables.
6118 (i386fbsd4_sc_reg_offset): New variable.
6119 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6120 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6121 TDEP->sc_sp_offset.
6122 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6123 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6124 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6125 Remove variables.
6126 (i386nbsd_sc_reg_offset): New variable.
6127 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6128 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6129 TDEP->sc_sp_offset.
6130 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6131 Remove variables.
6132 (i386obsd_sc_reg_offset): New variable.
6133 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6134 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6135 TDEP->sc_sp_offset.
6136 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6137 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6138 for frame pointer offset in `struct sigcontext'.
6139
25ab4790
AC
61402003-05-31 Andrew Cagney <cagney@redhat.com>
6141
6142 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6143 architecture methods call_dummy_words, sizeof_call_dummy_words,
6144 push_return_address, store_struct_return, and fix_call_dummy. Set
6145 push_dummy_call instead of deprecated_push_arguments.
6146 (mips_store_struct_return): Delete function.
6147 (mips_fix_call_dummy): Delete function.
6148 (mips_push_return_address): Delete function.
6149 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6150 RA_REGNUM and T9_REGNUM.
6151 (mips_n32n64_push_dummy_call): Ditto for
6152 mips_n32n64_push_arguments.
6153 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6154 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6155
6a65450a
AC
61562003-05-31 Andrew Cagney <cagney@redhat.com>
6157
6158 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6159 "dummy_addr" to "bp_addr".
6160 * infcall.c (call_function_by_hand): Pass "funaddr" to
6161 gdbarch_push_dummy_call.
6162 * gdbarch.h, gdbarch.c: Re-generate.
6163 * i386-tdep.c (i386_push_dummy_call): Update.
6164 * arm-tdep.c (arm_push_dummy_call): Update.
6165 * d10v-tdep.c (d10v_push_dummy_call): Update.
6166
c4f35dd8
MK
61672003-05-31 Mark Kettenis <kettenis@gnu.org>
6168
6169 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6170 variable declarations.
6171 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6172 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6173 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6174 x86_64_init_frame_pc, x86_64_init_frame_pc,
6175 x86_64_function_has_prologue): Remove prototypes.
6176 (X86_64_NUM_GREGS): New define.
6177 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6178 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6179 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6180 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6181 XMM1_REGNUM): Remove defines.
6182 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6183 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6184 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6185 X86_64_XMM1_REGNUM): New defines.
6186 (struct x86_64_register_info): Renamed from `struct
6187 register_info'. Remove `size' member.
6188 (x86_64_register_info_table): Remove variable.
6189 (x86_64_register_info): New variable.
6190 (X86_64_NUM_REGS): New define.
6191 (X86_64_NUM_GREGS): Remove define.
6192 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6193 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6194 Remove variables.
6195 (x86_54_dwarf2_reg_to_regnum): Remove function.
6196 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6197 (x86_64_dwarf_reg_to_regnum): New function.
6198 (x86_64_register_name): Rewrite.
6199 (x86_64_register_raw_size): Remove function.
6200 (x86_64_register_byte_table): Remove variable.
6201 (x86_64_register_byte): Remove function.
6202 (x86_64_register_virtual_type): Remove function.
6203 (x86_64_register_type): New function.
6204 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6205 x86_64_register_convert_to_raw): Remove functions.
6206 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6207 (x86_64_use_struct_convention): Make static. Adjust for renamed
6208 defines.
6209 (x86_64_frame_init_saved_regs): Remove function.
6210 (x86_64_push_arguments): Make static. Change to accept a regcache
6211 as argument.
6212 (x86_64_store_return_value, x86_64_extract_return_value): Make
6213 static. Rewrite based on i386 counterparts.
6214 (x86_64_push_dummy_call): New function.
6215 (X86_64_NUM_SAVED_REGS): New define.
6216 (x86_64_register_number): Remove function.
6217 (x86_64_store_struct_return): Remove function.
6218 (x86_64_frameless_function_invocation,
6219 x86_64_function_has_prologue): Remove functions.
6220 (PROLOG_BUFSIZE): Remove define.
6221 (struct x86_64_frame_cache): New structure.
6222 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6223 x86_64_frame_cache, x86_64_frame_this_id,
6224 x86_64_frame_prev_register, x86_64_frame_p,
6225 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6226 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6227 functions.
6228 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6229 variables.
6230 (x86_64_skip_prologue): Rewrite in terms of
6231 x86_64_analyze_prologue.
6232 (x86_64_frame_base_address): New function.
6233 (x86_64_frame_base): New variable.
6234 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6235 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6236 set deprecated_fp_regnum, deprecated_register_size,
6237 deprecated_register_bytes, register_raw_size, register_byte,
6238 register_virtual_type, register_convertiable,
6239 register_convert_to_virtual, convert_to_raw,
6240 deprecated_get_saved_register, deprecated_target_read_fp,
6241 deprecated_push_arguments, deprecated_push_return_address,
6242 deprecated_pop_frame, deprecated_store_struct_return,
6243 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6244 frameless_function_invocation, deprecated_frame_saved_pc,
6245 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6246 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6247 deprecated_init_frame_pc and virtual_frame_pointer. Call
6248 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6249 and x86_64_frame_p. Call frame_base_set_default to register
6250 x86_64_frame_base.
6251 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6252 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6253 (_initialize_x86_64_tdep): Remove function.
6254 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6255 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6256 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6257 define.
6258 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6259 (x86_64_linux_sigcontext_addr): Rewrite.
6260 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6261 x86_64_linux_frame_saved_pc): Remove functions.
6262 (x86_64_linux_pc_in_sigtramp): Renamed from
6263 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6264 trampoline.
6265 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6266 Remove_functions.
6267 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6268 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6269 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6270 (x86_64_regmap): Rename to regmap.
6271 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6272 x86_64_num_gregs.
6273 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6274 x86_64_regmap.
6275 (x86_64_fxsave_offset): Remove function.
6276 (supply_fpregset): Simply call x86_64_supply_fxsave.
6277 (fill_fpregset): Simply call x86_64_fill_fxsave.
6278 (fetch_inferior_registers, store_inferior_registers): Avoid
6279 asignment in if-statement.
6280 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6281 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6282 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6283 (fetch_core_registers): Remove function.
6284 (linux_elf_core_fns): Remove.
6285 (offsetoff): Don't define.
6286 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6287 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6288 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6289 add core-regset.o.
6290 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6291 protection against multiple includes instead of NM_X86_64_h. Add
6292 various comments. Include "config/nm-linux.h". Don't include
6293 <signal.h>.
6294 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6295 GET_THREAD_SIGNALS): Remove defines.
6296 (x86_64_register_u_addr, kernel_u_size,
6297 lin_thread_get_thread_signals): Remove prototypes.
6298 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6299 [HAVE_LINK_H]: Don't include "solib.h".
6300 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6301 * config/i386/tm-x86-64linux.h: Fix comments.
6302 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6303 x86-64-tdep.o): Update dependencies.
6304
c25083af
AC
63052003-05-30 Andrew Cagney <cagney@redhat.com>
6306
c8f55a7b
AC
6307 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6308 Change parameter type to a "struct regcache *".
6309
c25083af
AC
6310 * gdbarch.sh: Regardless of the multi-arch level, always define
6311 the macro when not already defined.
6312 * gdbarch.h, gdbarch.c: Re-generate.
6313
fbe586ae
RH
63142003-05-30 Richard Henderson <rth@redhat.com>
6315
6316 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6317 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6318 (alpha_mdebug_frame_this_id): Likewise.
6319 (alpha_mdebug_frame_prev_register): Likewise.
6320 (alpha_mdebug_frame_base_address): Likewise.
6321 (alpha_mdebug_frame_locals_address): Likewise.
6322 (alpha_mdebug_frame_args_address): Likewise.
6323 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6324 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6325 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6326 loop increment.
6327 (alpha_heuristic_frame_this_id): Make static.
6328 (alpha_heuristic_frame_prev_register): Likewise.
6329 (alpha_heuristic_frame_base_address): Likewise.
6330 * alpha-tdep.h: Update.
6331
acd5c798
MK
63322003-05-30 Mark Kettenis <kettenis@gnu.org>
6333
6334 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6335 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6336 defenitions.
6337 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6338 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6339 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6340 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6341 I386_ST0_REGNUM): New defines.
6342 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6343 codestream_get): Remove define.
6344 (codestream_next_addr, condestream_addr, condestream_buf,
6345 codestream_off, codestream_cnt): Remove variables.
6346 (codestream_fill, codestream_seek, codestream_read): Remove
6347 functions.
6348 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6349 functionality.
6350 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6351 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6352 i386_frame_saved_pc, i386_saved_pc_after_call,
6353 i386_frame_num_args, i386_frame_init_saved_regs,
6354 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6355 i386_push_arguments): Remove functions.
6356 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6357 functionality. Use i386_analyze_prologue instead of
6358 i386_get_frame_setup.
6359 (I386_NUM_SAVED_REGS): New define.
6360 (struct i386_frame_cache): New structure.
6361 (i386_alloc_frame_cache, i386_analyze_struct_return,
6362 i386_skip_probe, i386_analyze_frame_setup,
6363 i386_analyze_register_saves, i386_analyze_prologue,
6364 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6365 i386_frame_prev_register, i386_sigtramp_frame_cache,
6366 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6367 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6368 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6369 New functions.
6370 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6371 New variables.
6372 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6373 I386_EAX_REGNUM and I386_EDX_REGNUM.
6374 (i386_extract_return_value, i386_store_return_value): Use
6375 I386_ST0_REGNUM where appropriate.
6376 (i386_extract_struct_value_address): Rewrite to use extract_address.
6377 (i386_svr4_pc_in_sigtramp): Add comment.
6378 (i386_svr4_sigcontext_addr): Rewrite.
6379 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6380 TDEP->sc_sp_offset.
6381 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6382 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6383 of new defines. Set push_dummy_call, don't set
6384 deprecated_push_arguments, deprecated_push_return_address,
6385 deprecated_pop_frame. Don't set parm_boundary. Don't set
6386 deprecated_frame_chain, deprecated_frame_saved_pc,
6387 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6388 save_dummy_frame_tos, unwind_pc. Call
6389 frame_unwind_append_predicate and frame_base_set_default. Don't
6390 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6391 Don't set frameless_function_invocation. Don't set
6392 deprecated_register_bytes, deprecated_register_size,
6393 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6394 * i386-linux-tdep.c: Fix formatting in some comments.
6395 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6396 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6397 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6398 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6399 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6400 redundant parentheses.
6401 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6402 (i386_linux_sigcontext_addr): Use it. Rewrite.
6403 (find_minsym_and_objfile): Change name of second argument.
6404 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6405 changed. Use frame_pc_unwind instead of
6406 DEPRECATED_SAVED_PC_AFTER_CALL.
6407 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6408 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6409 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6410 unwinder.
6411 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6412 "dummy-frame.h".
6413 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6414 (_initialize_i386_cygwin_tdep): New prototype.
6415 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6416 deprecated_frame_chain_valid.
6417 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6418 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6419 Rely on the SVR4 defaults.
6420 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6421 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6422
c89b70f1
AC
64232003-05-30 Andrew Cagney <cagney@redhat.com>
6424
6425 * infcall.c (call_function_by_hand): Always call
6426 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6427
85b32d22
RH
64282003-05-30 Richard Henderson <rth@redhat.com>
6429
c89b70f1
AC
6430 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6431 increment.
85b32d22 6432
bfe51b1e
JB
64332003-05-29 Jim Blandy <jimb@redhat.com>
6434
6435 Use gdbarch methods for solib stuff on PowerPC Linux.
6436 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6437 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6438 show through.
6439 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6440 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6441 giving the same effect as the #definitions above.
6442
1abf022c
AF
64432003-05-29 Adam Fedor <fedor@gnu.org>
6444
6445 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6446 (find_implementation_from_class): Replace it with the standard
6447 case i.e. do nothing.
6448
d2427a71
RH
64492003-05-29 Richard Henderson <rth@redhat.com>
6450
6451 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6452 (alpha_linux_sigtramp_offset): Use it. Make static.
6453 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6454 update for new frame model.
6455 * alpha-mdebug-tdep.c: New file.
6456 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6457 (alpha_osf1_init_abi): Install it.
6458 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6459 (linked_proc_desc_table): Remove.
6460 (alpha_frame_past_sigtramp_frame): Remove.
6461 (alpha_dynamic_sigtramp_offset): Remove.
6462 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6463 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6464 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6465 (push_sigtramp_desc): Remove.
6466 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6467 (alpha_cannot_store_register): Likewise.
6468 (alpha_sigcontext_addr): Remove.
6469 (alpha_find_saved_regs): Remove.
6470 (alpha_frame_init_saved_regs): Remove.
6471 (alpha_init_frame_pc_first): Remove.
6472 (read_next_frame_reg): Remove.
6473 (alpha_frame_saved_pc): Remove.
6474 (alpha_saved_pc_after_call): Remove.
6475 (temp_proc_desc, temp_saved_regs): Remove.
6476 (alpha_about_to_return): Remove.
6477 (cached_proc_desc): Remove.
6478 (alpha_frame_chain): Remove.
6479 (alpha_print_extra_frame_info): Remove.
6480 (alpha_init_extra_frame_info): Remove.
6481 (alpha_frame_locals_address): Remove.
6482 (alpha_frame_args_address): Remove.
6483 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6484 (alpha_push_dummy_frame): Remove.
6485 (alpha_pop_frame): Remove.
6486 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6487 (alpha_read_insn): New.
6488 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6489 for different insn encodings.
6490 (alpha_in_lenient_prologue): Remove.
6491 (struct alpha_sigtramp_unwind_cache): New.
6492 (alpha_sigtramp_frame_unwind_cache): New.
6493 (alpha_sigtramp_register_address): New.
6494 (alpha_sigtramp_frame_this_id): New.
6495 (alpha_sigtramp_frame_prev_register): New.
6496 (alpha_sigtramp_frame_unwind): New.
6497 (alpha_sigtramp_frame_p): New.
6498 (struct alpha_heuristic_unwind_cache): New.
6499 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6500 don't count nop insns that occur between functions.
6501 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6502 heuristic_proc_desc, but without the mdebug wrapping.
6503 (alpha_heuristic_frame_this_id): New.
6504 (alpha_heuristic_frame_prev_register): New.
6505 (alpha_heuristic_frame_unwind): New.
6506 (alpha_heuristic_frame_p): New.
6507 (alpha_heuristic_frame_base_address): New.
6508 (alpha_heuristic_frame_base): New.
6509 (alpha_unwind_dummy_id): New.
6510 (alpha_unwind_pc): New.
6511 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6512 frame related deprecated initializations; install replacements.
6513 (alpha_dump_tdep): Remove.
6514 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6515 (alpha_read_insn, alpha_after_prologue,
6516 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6517 alpha_heuristic_frame_prev_register,
6518 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6519 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6520 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6521 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6522
93ec1121
AC
65232003-05-29 Andrew Cagney <cagney@redhat.com>
6524
6525 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6526 dependant on the availability of ASSERT_FUNCTION.
6527 (ASSERT_FUNCTION): Do not define when there is no function name.
6528
98f08d3d
KB
65292003-05-29 Kevin Buettner <kevinb@redhat.com>
6530
6531 From Jimi X <jimix@watson.ibm.com>:
6532 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6533
0897f59b
JB
65342003-05-28 Jim Blandy <jimb@redhat.com>
6535
6536 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6537 argument to ptrace to int; the system headers should give it the
6538 right type, and pointers don't fit in ints on powerpc64-*-*.
6539
14898363
L
65402003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6541
6542 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6543 DW_TAG_catch_block.
6544
a7a48797
EZ
65452003-05-26 Elena Zannoni <ezannoni@redhat.com>
6546
6547 * stabsread.c (dbx_lookup_type): Make static.
6548 (read_type): Ditto.
6549 (add_undefined_type): Ditto.
6550 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6551 not export.
6552
f5479e9c
EZ
65532003-05-26 Elena Zannoni <ezannoni@redhat.com>
6554
6555 * hpread.c (hpread_has_name): Make static.
6556 (hpread_psymtab_to_symtab): Ditto.
6557 (file_exists): Ditto.
6558 (hpread_call_pxdb): Ditto.
6559 (hpread_pxdb_needed): Ditto.
6560 (hpread_quick_traverse): Ditto.
6561 (hpread_get_header): Ditto.
6562 (hpread_get_lntt): Ditto.
6563 (hpread_get_slt): Ditto.
6564 (class_of): Ditto.
6565
eb2e12d7
AS
65662003-05-25 Andreas Schwab <schwab@suse.de>
6567
78bf922a
AS
6568 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6569 stack_align and deprecated_extra_stack_alignment_needed.
6570 (m68k_stack_align): Delete.
6571
eb2e12d7
AS
6572 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6573 (m68k_register_virtual_size): Likewise.
6574 (altos_skip_prologue): Remove obsolete function.
6575 (isi_frame_num_args): Likewise.
6576 (news_frame_num_args): Likewise.
6577 (m68k_fix_call_dummy): Make static.
6578 (m68k_push_dummy_frame): Likewise.
6579 (m68k_pop_frame): Likewise.
6580 (m68k_skip_prologue): Likewise.
6581 (m68k_frame_init_saved_regs): Likewise.
6582 (m68k_saved_pc_after_call): Likewise.
6583 (m68k_get_longjmp_target): Make multi-arch.
6584 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6585 structure. Register m68k_get_longjmp_target if enabled.
6586 * m68k-tdep.h (struct gdbarch_tdep): Define.
6587 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6588
6589 * Makefile.in (config.status): Also depend on configure.tgt
6590 and configure.host.
6591 (m68klinux-tdep.o): Update dependencies.
6592 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6593 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6594 (M68K_LINUX_JB_PC): Define.
6595 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6596 and take additional parameter.
6597 (m68k_linux_sigtramp_saved_pc): Update.
6598 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6599 m68k_linux_pc_in_sigtramp, in_plt_section,
6600 find_solib_trampoline_target.
6601 * config/m68k/tm-linux.h: Don't include any tm headers.
6602 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6603 (JB_ELEMENT_SIZE): Likewise.
6604 (JB_PC): Likewise.
6605 (GET_LONGJMP_TARGET): Likewise.
6606 (IN_SIGTRAMP): Likewise.
6607 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6608
eb2c22dc
MK
66092003-05-25 Mark Kettenis <kettenis@gnu.org>
6610
6611 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6612 (sparc32_push_arguments): Re-implement by calling
6613 sparc32_do_push_arguments.
6614
44b7b84e
MK
66152003-05-25 Mark Kettenis <kettenis@gnu.org>
6616
6617 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6618 SPARC_O1_REGNUM): New defines.
6619 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6620 (sparc32_store_return_value): New function.
6621 (sparc_extract_struct_value_address): Rewrite to operate on a
6622 regcache.
6623 (sparc_gdbarch_init): Don't set
6624 deprecated_extract_struct_value_address. Set
6625 extract_struct_value_address instead. Don't set
6626 deprecated_extract_return_value and deprecated_store_return_value
6627 for 32-bit targets. Set extract_return_value and
6628 store_return_value instead.
6629 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6630 DEPRECTAED_EXTRACT_RETURN_VALUE,
6631 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6632 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6633 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6634 (sparc_store_return_value): Remove prototype.
6635 (sparc32_store_return_value): New prototype.
6636 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6637 Adjust prototypes.
6638
f6ad61e3
MK
66392003-05-24 Mark Kettenis <kettenis@gnu.org>
6640
6641 * sparcnbsd-tdep.c: Include "gdb_string.h".
6642
b276f1bb
AC
66432003-05-23 Andrew Cagney <cagney@redhat.com>
6644
6645 * p-valprint.c (pascal_val_print): Replace extract_address with
6646 the inline equivalent extract_unsigned_integer.
6647 * jv-valprint.c (java_value_print): Ditto.
6648 * ada-valprint.c (ada_val_print_1): Ditto.
6649 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6650
e76c5fcc
TR
66512003-05-23 Theodore A. Roth <troth@openavr.org>
6652
6653 * blockframe.c (frameless_look_for_prologue): Remove unused
6654 after_prologue variable.
6655
2cdd89cb
MK
66562003-05-23 Mark Kettenis <kettenis@gnu.org>
6657
6658 * blockframe.c (get_pc_function_start): Rewrite to avoid
6659 asignments in if-statements.
6660
182d43bc
EZ
66612003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6662
6663 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6664 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6665 files, don't relocate absolute symbols (and do use mst_abs).
6666
e8f3fcdd
AC
66672003-05-23 Andrew Cagney <cagney@redhat.com>
6668
6669 * objc-lang.c: Include "gdb_assert.h".
6670 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6671 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6672 (gdb_check, gdb_check_fatal): Delete functions.
6673 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6674 gdb_assert.
6675 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6676 * Makefile.in (objc-lang.o): Update dependencies.
6677
3c23e6fb
ILT
66782003-05-22 Ian Lance Taylor <ian@airs.com>
6679
6680 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6681 with fprintf_filtered, not fprintf_unfiltered.
6682
af1342ab
AC
66832003-05-22 Andrew Cagney <cagney@redhat.com>
6684
6685 * stack.c (frame_info): Inline extract_address, replacing it with
6686 extract_unsigned_integer.
6687 * findvar.c (unsigned_pointer_to_address): Ditto.
6688 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6689 * dwarf2expr.c (dwarf2_read_address): Ditto.
6690 * frame.c (frame_pc_unwind): Update comment.
6691 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6692
47e242ec
JJ
66932003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6694
6695 * infptrace.c (detach): Call print_sys_errmsg rather than
6696 perror_with_name to issue warning message when errno is non-zero
6697 after calling ptrace detach.
6698
e2ac8128
JB
66992003-05-21 J. Brobecker <brobecker@gnat.com>
6700
6701 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6702 macro definitions from here...
6703 * hppa-tdep.c: ...to there.
6704
92b3541e
KB
67052003-05-20 Kevin Buettner <kevinb@redhat.com>
6706
6707 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6708 register_ptrace_addr(). Fix all callers.
6709
55809acb
AS
67102003-05-21 Andreas Schwab <schwab@suse.de>
6711
6712 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6713 dependencies.
6714 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6715 end.
6716 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6717 (_initialize_m68k_linux_tdep): New function.
6718 (m68k_linux_frame_saved_pc): Make static.
6719 (m68k_linux_extract_return_value): Likewise.
6720 (m68k_linux_store_return_value): Likewise.
6721 (m68k_linux_extract_struct_value_address): Likewise.
6722 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6723 Remove.
6724 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6725 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6726 (DEPRECATED_FRAME_SAVED_PC): Remove.
6727
0fbc10f7
KW
67282003-05-20 Kris Warkentin <kewarken@qnx.com>
6729
6730 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6731 regset numbering rather than our own.
6732
58da2eb2
DC
67332003-05-19 David Carlton <carlton@bactrian.org>
6734
6735 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6736
1fcb5155
DC
67372003-05-19 David Carlton <carlton@bactrian.org>
6738
6739 Partial fix for PR c++/827.
6740 * cp-support.h: Include symtab.h.
6741 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6742 * cp-namespace.c: Update contributors.
6743 (cp_lookup_symbol_nonlocal): New.
6744 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6745 (lookup_symbol_file): Ditto.
6746 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6747 * block.h: Declare block_scope, block_using, block_global_block.
6748 * block.c (block_scope): New.
6749 (block_using, block_global_block): Ditto.
6750 * Makefile.in (cp_support_h): Depend on symtab_h.
6751 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6752
5f9a71c3
DC
67532003-05-19 David Carlton <carlton@bactrian.org>
6754
6755 * language.h (struct language_defn): Add 'la_value_of_this'
6756 and 'la_lookup_symbol_nonlocal' members.
6757 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6758 lookup_symbol_static, lookup_symbol_global,
6759 lookup_symbol_aux_block.
6760 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6761 if we should search fields of this and how to do static/global
6762 lookup.
6763 (lookup_symbol_aux_block): Make extern.
6764 (basic_lookup_symbol_nonlocal): New.
6765 (lookup_symbol_static, lookup_symbol_global): Ditto.
6766 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6767 'la_lookup_symbol_nonlocal' members.
6768 * c-lang.c (c_language_defn, cplus_language_defn)
6769 (asm_language_defn, minimal_language_defn): Ditto.
6770 * jv-lang.c (java_language_defn): Ditto.
6771 * language.c (unknown_language_defn, auto_language_defn)
6772 (local_language_defn): Ditto.
6773 * m2-lang.c (m2_language_defn): Ditto.
6774 * objc-lang.c (objc_language_defn): Ditto.
6775 * scm-lang.c (scm_language_defn): Ditto.
6776 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6777 * p-lang.c (pascal_language_defn): Ditto for both.
6778 * Makefile.in (f-lang.o): Depend on value_h.
6779 (p-lang.o): Ditto.
6780
89a9d1b1
DC
67812003-05-19 David Carlton <carlton@bactrian.org>
6782
6783 * block.h: Declare block_static_block.
6784 * block.c (block_static_block): New.
6785 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6786 lookup_symbol_aux_local, calling block_static_block instead.
6787 (lookup_symbol_aux_local): Delete 'static_block' argument.
6788
eed3f8ab
DC
67892003-05-19 David Carlton <carlton@bactrian.org>
6790
6791 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6792
a09d8bda
ML
67932003-05-19 Michal Ludvig <mludvig@suse.cz>
6794
6795 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6796 register numbers mapping.
6797
69636828
AF
67982003-05-18 Adam Fedor <fedor@gnu.org>
6799
6800 * symtab.c (completion_list_objc_symbol): New function.
6801 (make_symbol_completion_list): Use it to add ObjC symbols
6802 when looking though the list.
6803 (language_search_unquoted_string): New function.
6804 (make_file_symbol_completion_list): Use it.
6805
55baeb84
AS
68062003-05-18 Andreas Schwab <schwab@suse.de>
6807
d0b45d99
AS
6808 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6809 dependencies.
6810 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6811 as m68k_linux_extract_return_value.
6812 (DEPRECATED_STORE_RETURN_VALUE): Define as
6813 m68k_linux_store_return_value.
6814 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6815 m68k_linux_extract_struct_value_address.
6816 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6817 get_next_frame, get_frame_base, get_frame_pc.
6818 (m68k_linux_frame_saved_pc): Use get_frame_base.
6819 (m68k_linux_extract_return_value): New function.
6820 (m68k_linux_store_return_value): New function.
6821 (m68k_linux_extract_struct_value_address): New function.
6822 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6823
55baeb84
AS
6824 * c-exp.y (typebase): Remove duplicate occurence of
6825 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6826 of lookup_signed_typename.
55baeb84 6827
b6b08ebf
MK
68282003-05-18 Mark Kettenis <kettenis@gnu.org>
6829
6830 * dwarf2loc.c (find_location_expression): Change type of second
6831 argument to `size_t *'.
6832 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6833 for size variable.
6834
5ad1c190
DC
68352003-05-18 David Carlton <carlton@bactrian.org>
6836
6837 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6838 'linkage_name'. Add comment.
6839 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6840 'linkage_name'.
6841 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6842 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6843 (lookup_block_symbol): Ditto.
6844
b8b527c5
AC
68452003-05-16 Andrew Cagney <cagney@redhat.com>
6846
6847 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6848 * gdbarch.h, gdbarch.c: Re-generate.
6849 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6850 * TODO (REGISTER_BYTES): Delete reference.
6851 * alpha-tdep.c (alpha_gdbarch_init): Update.
6852 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6853 * x86-64-tdep.c (x86_64_init_abi): Update.
6854 * vax-tdep.c (vax_gdbarch_init): Update.
6855 * v850-tdep.c (v850_gdbarch_init): Update.
6856 * sparc-tdep.c (sparc_gdbarch_init): Update.
6857 * sh-tdep.c (sh_gdbarch_init): Update.
6858 * s390-tdep.c (s390_gdbarch_init): Update.
6859 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6860 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6861 (ns32k_gdbarch_init_32382): Update.
6862 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6863 * mcore-tdep.c (mcore_gdbarch_init): Update.
6864 * m68k-tdep.c (m68k_gdbarch_init): Update.
6865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6866 * ia64-tdep.c (ia64_gdbarch_init): Update.
6867 * i386-tdep.c (i386_gdbarch_init): Update.
6868 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6869 * hppa-tdep.c (hppa_gdbarch_init): Update.
6870 * h8300-tdep.c (h8300_gdbarch_init): Update.
6871 * frv-tdep.c (frv_gdbarch_init): Update.
6872 * cris-tdep.c (cris_gdbarch_init): Update.
6873 * avr-tdep.c (avr_gdbarch_init): Update.
6874 * arm-tdep.c (arm_gdbarch_init): Update.
6875 * sparc-tdep.c (sparc_pop_frame): Update.
6876 * rs6000-tdep.c (rs6000_pop_frame): Update.
6877 * remote.c (init_remote_state): Update.
6878 (remote_prepare_to_store): Update.
6879 * remote-vx.c (vx_prepare_to_store): Update.
6880 * remote-sds.c (sds_fetch_registers): Update.
6881 (sds_prepare_to_store): Update.
6882 * remote-array.c: Update.
6883 * regcache.c (init_legacy_regcache_descr): Update.
6884 (init_regcache_descr): Update.
6885 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6886 (mips_o64_extract_return_value): Update.
6887 * irix5-nat.c (fetch_core_registers): Update.
6888 * irix4-nat.c (fetch_core_registers): Update.
6889 * i386-tdep.h: Update.
6890 * hppa-tdep.c (pa_do_registers_info): Update.
6891 (pa_do_strcat_registers_info): Update.
6892 * cris-tdep.c (cris_register_bytes_ok): Update.
6893 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6894 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6895 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6896 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6897 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6898 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6899 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6900 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6901 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6902 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6903 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6904 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6905 (REGISTER_BYTES_OK): Update.
6906 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6907 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6908
ee2842e2
ILT
69092003-05-16 Ian Lance Taylor <ian@airs.com>
6910
6911 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6912 (vax_print_insn, print_insn_arg): Remove static functions.
6913 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6914 print_insn_vax from opcodes library.
6915 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6916
973177d3
AC
69172003-05-15 Andrew Cagney <cagney@redhat.com>
6918
aaab4dba
AC
6919 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6920 * target.h (memory_breakpoint_from_pc): Delete declaration.
6921 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6922 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6923 * monitor.c (monitor_insert_breakpoint): Use
6924 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6925 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6926 * gdbarch.h, gdbarch.c: Re-generate.
6927 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6928 (sparc_gdbarch_init): Set breakpoint_from_pc to
6929 sparc_breakpoint_from_pc.
6930 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6931 (BREAKPOINT_FROM_PC): Define.
6932 (sparc_breakpoint_from_pc): Declare.
6933 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6934 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6935 (BREAKPOINT_FROM_PC): Define.
6936 (BREAKPOINT): Delete macro.
6937 * target.h: Update comment.
6938 * s390-tdep.c (s390_gdbarch_init): Update comments.
6939 * remote.c: Update comments.
6940 * remote-mips.c: Update comments.
6941 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6942 * mem-break.c: Update comment.
6943 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6944 (ia64_memory_insert_breakpoint): Update.
6945 * config/sparc/tm-sparc.h: Update comment.
6946 * config/pa/tm-hppa64.h: Update comment.
6947 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6948 (rs6000_breakpoint_from_pc): Update.
6949 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6950 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6951 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6952 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6953 (mips_breakpoint_from_pc): Update.
6954 (mips_dump_tdep): Update.
6955
e06963ff
AC
6956 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6957 * minsyms.c (lookup_minimal_symbol): Inline
6958 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6959
973177d3
AC
6960 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6961 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6962 * p-lang.c (pascal_printstr): Ditto.
6963 * objc-lang.c (objc_printstr): Ditto.
6964 * m2-lang.c (m2_printstr): Ditto.
6965 * jv-valprint.c (java_print_value_fields): Ditto.
6966 * f-lang.c (f_printstr): Ditto.
6967 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6968 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6969 for repeat_count_threshold.
6970 * Makefile.in (cp-valprint.o): Update dependencies.
6971
5ea2bd7f 69722003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6973
5ea2bd7f
JJ
6974 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6975 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6976 they start with mov r2,r12. Support skipping over indirect stores
6977 of the input registers. Upon hitting a non-nop branch instruction
6978 or predicated instruction, bail out by setting lim_pc to the current
6979 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6980 beyond our calculated value and we have trust_limit set,
6981 use the lim_pc value.
6982
cc8c88f3
AC
69832003-05-15 Andrew Cagney <cagney@redhat.com>
6984
6985 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6986 generic_find_dummy_frame.
6987 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6988 (deprecated_generic_find_dummy_frame): Update.
6989 (deprecated_read_register_dummy): Update.
6990 * frame.c (deprecated_generic_get_saved_register): Update.
6991
909cd28e
TR
69922003-05-15 Theodore A. Roth <troth@openavr.org>
6993
6994 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6995 (avr_gdbarch_init): Set breakpoint_from_pc method.
6996
b923b08d
AC
69972003-05-15 Andrew Cagney <cagney@redhat.com>
6998
6999 * regcache.c (build_regcache): Set deprecated_register_valid
7000 directly.
7001 (deprecated_grub_regcache_for_register_valid): Delete function.
7002 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7003 declaration.
7004
ae2f03ac 70052003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7006
7007 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7008 * symtab.c (lookup_symbol_aux): Delete calls to
7009 lookup_symbol_aux_minsyms.
7010 (lookup_symbol_aux_minsyms): Comment out function and
7011 prototype. Delete lookup by mangled name.
ae2f03ac 7012
18ec9831
KB
70132003-05-14 Kevin Buettner <kevinb@redhat.com>
7014
7015 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7016 correctly indicate an empty stack and ``stack_allocated'' to the
7017 indicate the number of elements initially allocated.
7018 (dwarf_expr_grow_stack): Simplify method for computing new
7019 stack size. Don't loop infinitely if ``stack_len'' is zero.
7020 (execute_stack_op): Move ``ctx->in_reg'' initialization
7021 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7022 be used in conjuction with DW_OP_piece. Revise error message
7023 accordingly.
7024
de18ac1f
TR
70252003-05-14 Theodore A. Roth <troth@openavr.org>
7026
7027 * MAINTAINERS: Update my email address.
7028 * avr-tdep.c: Ditto.
7029
176620f1
EZ
70302003-05-14 Elena Zannoni <ezannoni@redhat.com>
7031
7032 * symtab.h (enum domain_enum): Rename from namespace_enum.
7033 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7034 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7035 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7036 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7037 TYPES_NAMESPACE, METHODS_NAMESPACE.
7038 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7039 (struct symbol, struct partial_symbol): Rename field
7040 'namespace_enum namespace' to 'domain_enum domain'.
7041 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7042 Delete old define kludge for namespace.
7043
7044 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7045 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7046 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7047 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7048 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7049 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7050 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7051 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7052 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7053 occurrences of the above.
7054
b7f31508
ILT
70552003-05-14 Ian Lance Taylor <ian@airs.com>
7056
7057 * Makefile.in (install-only): Use $(SHELL) when running
7058 mkinstalldirs.
7059
2fdbdd39
ILT
70602003-05-13 Ian Lance Taylor <ian@airs.com>
7061
a208d82c
ILT
7062 * MAINTAINERS (write after approval): Add myself.
7063
2fdbdd39
ILT
7064 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7065 second and third arguments.
7066 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7067 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7068
fbd9dcd3
AC
70692003-05-13 Andrew Cagney <cagney@redhat.com>
7070
7071 * defs.h (store_address): Delete declaration.
7072 findvar.c (store_address): Delete function.
7073 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7074 store_unsigned_integer.
7075 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7076 * v850-tdep.c (v850_push_arguments): Ditto.
7077 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7078 * sh-tdep.c (sh64_get_saved_register): Ditto.
7079 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7080 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7081 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7082 (mips_get_saved_register): Ditto.
7083 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7084 (find_func_descr, ia64_push_arguments): Ditto.
7085 * i386-tdep.c (i386_push_arguments): Ditto.
7086 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7087 * frv-tdep.c (frv_push_arguments): Ditto.
7088 * frame.c (legacy_saved_regs_prev_register): Ditto.
7089 (deprecated_generic_get_saved_register): Ditto.
7090 * findvar.c (unsigned_address_to_pointer): Ditto.
7091 * dwarf2read.c (dwarf2_const_value): Ditto.
7092 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7093 * alpha-tdep.c (alpha_push_arguments): Ditto.
7094
6760f9e6
JB
70952003-05-12 J. Brobecker <brobecker@gnat.com>
7096
7097 * NEWS: Mention that the hppa-hpux port has been partially
7098 multiarched (32bit ABIT only, so far).
7099
30e221b4
AC
71002003-05-11 Andrew Cagney <cagney@redhat.com>
7101
7102 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7103 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7104 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7105 sim/testsuite/sim/arm/misaligned2.ms, and
7106 sim/testsuite/sim/arm/misaligned3.ms.
7107 * disasm.h (struct ui_file): Add opaque struct declaration.
7108 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7109 * frame.h (struct ui_file): Ditto.
7110
dea7f9ba
MK
71112003-05-11 Mark Kettenis <kettenis@gnu.org>
7112
7113 * value.h: Pretty print.
7114
01986c48
MK
71152003-05-10 Mark Kettenis <kettenis@gnu.org>
7116
7117 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7118
123a958e
AC
71192003-05-08 Andrew Cagney <cagney@redhat.com>
7120
7121 * regcache.h (max_register_size): Delete declaration.
7122 * regcache.c (max_register_size): Delete function.
7123 (struct regcache_descr): Delete field "max_register_size".
7124 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7125 registers fit in MAX_REGISTER_SIZE.
7126 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7127 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7128 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7129 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7130 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7131 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7132 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7133 * dve3900-rom.c, hppa-tdep.c: Ditto.
7134
eb294659
DC
71352003-05-08 David Carlton <carlton@math.stanford.edu>
7136
7137 * valops.c (push_word): Fix typo.
7138
d9d9c31f
AC
71392003-05-08 Andrew Cagney <cagney@redhat.com>
7140
7141 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7142 * gdbarch.h: Re-generate.
7143 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7144 (legacy_max_register_raw_size): Delete declaration.
7145 * regcache.c (legacy_max_register_raw_size): Delete function.
7146 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7147 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7148 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7149 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7150 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7151 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7152 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7153 * findvar.c, dwarf2cfi.c: Ditto.
7154
22540ece
AC
71552003-05-08 Andrew Cagney <cagney@redhat.com>
7156
7157 * mips-tdep.c (read_signed_register): New function, moved to here
7158 from "regcache.c".
7159 (read_signed_register_pid): Ditto.
7160 * regcache.c (read_signed_register_pid): Delete function, moved to
7161 "mips-tdep.c".
7162 (read_signed_register): Ditto.
7163 * regcache.h (read_signed_register): Delete declaration.
7164 (read_signed_register_pid): Delete declaration.
7165
0c92afe8
AC
71662003-05-08 Andrew Cagney <cagney@redhat.com>
7167
7168 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7169 * gdbarch.h: Re-generate.
7170 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7171 (legacy_max_register_virtual_size): Delete declaration.
7172 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7173 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7174 * tracepoint.c (memrange_sortmerge): Ditto.
7175 * sparc-tdep.c (sparc_print_registers): Ditto.
7176 * regcache.c (legacy_max_register_virtual_size): Delete function.
7177
6037b830
JB
71782002-05-08 J. Brobecker <brobecker@gnat.com>
7179
7180 * fork-child.c (escape_bang_in_quoted_argument): New function.
7181 (fork_inferior): Escape '!' characters in quoted arguments
7182 only when needed.
7183
5d62c8b1
JB
71842003-05-08 J. Brobecker <brobecker@gnat.com>
7185
7186 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7187 the language of the CU is not currently supported by GDB.
7188
20a0e81d
JB
71892003-05-08 J. Brobecker <brobecker@gnat.com>
7190
7191 * defs.h (language): Add language_minimal enum value.
7192 * c-lang.c (minimal_language_defn): New language definition.
7193 (_initialize_c_language): Add the new minimal language to the list
7194 of languages known to GDB.
7195
710ee10a
KB
71962003-05-08 Kevin Buettner <kevinb@redhat.com>
7197
7198 * frame.c (get_frame_type): Don't attempt to lazily initialize
7199 frame's unwinder for legacy frames.
7200
1750fa04
AC
72012003-05-07 Andrew Cagney <cagney@redhat.com>
7202
7203 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7204 and "regcache" parameters.
7205 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7206
ddf9f258 72072003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7208
7209 * dwarf2read.c (dwarf_decode_lines): Only use output of
7210 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7211 the current address.
7212
87767c29
AC
72132003-05-07 Andrew Cagney <cagney@redhat.com>
7214
7215 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7216 code.
7217
5e7b2f39
JB
72182003-05-07 Jim Blandy <jimb@redhat.com>
7219
7220 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7221 'maint info symtabs' and 'maint info psymtabs'.
7222 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7223 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7224 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7225 Declarations updated.
7226 * maint.c (maintenance_list_command): Delete.
7227 (_initialize_maint_cmds): Update calls to add_cmd.
7228 * gdbcmd.h (maintenancelistlist): Delete declaration.
7229 * cli/cli-cmds.c (maintenancelistlist): Delete.
7230 (init_cmd_lists): Don't initialize it.
7231 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7232
f6684c31
AC
72332003-05-07 Andrew Cagney <cagney@redhat.com>
7234
7235 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7236 "regcache".
7237 (d10v_print_registers_info): Update.
7238 (d10v_dmap_register, d10v_imap_register): Delete functions.
7239 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7240 and "imap_register".
7241 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7242 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7243 * arch-utils.c (generic_remote_translate_xfer_address): Add
7244 "regcache" and "gdbarch" parameters.
7245 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7246 parameter. Change class to multi-arch.
7247 * gdbarch.h, gdbarch.c: Re-generate.
7248 * remote.c (remote_xfer_memory): Use
7249 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7250
e4846b08
JJ
72512003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7252
7253 * infrun.c (prev_pc): Move declaration ahead of proceed().
7254 (proceed): Refresh prev_pc value before resuming.
7255 (stop_stepping): Remove code to refresh prev_pc.
7256
6b71b8ac
KW
72572003-05-06 Kris Warkentin <kewarken@qnx.com>
7258
7259 * nto-tdep.c: Removed stray comment.
7260
47979a4b
KW
72612003-05-06 Kris Warkentin <kewarken@qnx.com>
7262
7263 * i386-nto-tdep.c: Fix old K&R function definitions.
7264 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7265 Also change add_show_from_set() call to add_setshow_cmd().
7266 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7267
00905d52
AC
72682003-05-05 Andrew Cagney <cagney@redhat.com>
7269
7270 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7271 (fprint_dummy_frames): New function.
7272 (maintenance_print_dummy_frames): New function.
7273 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7274 * frame.c (fprint_frame_id): Make global.
7275 * frame.h (fprint_frame_id): Declare.
7276 * Makefile.in (dummy-frame.o): Update dependencies.
7277
b1e29e33
AC
72782003-05-05 Andrew Cagney <cagney@redhat.com>
7279
7280 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7281 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7282 SIZEOF_CALL_DUMMY_WORDS.
7283 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7284 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7285 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7286 CALL_DUMMY_BREAKPOINT_OFFSET.
7287 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7288 CALL_DUMMY_START_OFFSET.
7289 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7290 * gdbarch.h, gdbarch.c: Re-generate.
7291 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7292 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7293 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7294 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7295 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7296 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7297 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7298 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7299 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7300 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7301 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7302 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7303 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7304 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7305 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7306
73072003-05-05 Kris Warkentin <kewarken@qnx.com>
7308
7309 * configure.tgt: Add i[3456]86-*-nto*.
7310 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7311 * nto-tdep.c: New file. Neutrino target support routines.
7312 * nto-tdep.h: New file. Neutrino target header.
7313 * config/tm-qnxnto.h: New file.
7314 * config/i386/i386nto.mt: New file.
7315 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7316
0ce3d317
AC
73172003-05-04 Andrew Cagney <cagney@redhat.com>
7318
7319 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7320 (load_infrun_state): Ditto.
7321 (struct thread_info): Drop "prev_func_name" field.
7322 * thread.c (load_infrun_state): Update.
7323 (save_infrun_state): Update.
7324 * infrun.c (prev_func_name): Delete variable.
7325 (init_wait_for_inferior): Do not clear prev_func_name.
7326 (stop_stepping, keep_going, context_switch): Do not swap
7327 prev_func_name.
7328 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7329 instead of PC_IN_SIGTRAMP.
7330
46654a5b
AC
73312003-05-04 Andrew Cagney <cagney@redhat.com>
7332
7333 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7334 REGISTER_BYTE with register_offset_hack.
7335 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7336 that REGISTER_BYTE is consistent with the regcache.
7337 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7338 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7339
14b08c1b
MK
73402003-05-04 Mark Kettenis <kettenis@gnu.org>
7341
04c8243f
MK
7342 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7343 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7344
14b08c1b
MK
7345 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7346
c7a11e01
JB
73472003-05-03 J. Brobecker <brobecker@gnat.com>
7348
7349 From Thierry Schneider <tpschneider1@yahoo.com>
7350 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7351 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7352 (mi-cmd-symbol.o): Add rule.
7353
7043d8dc
AC
73542003-05-03 Andrew Cagney <cagney@redhat.com>
7355
7356 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7357 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7358 * gdbarch.h, gdbarch.c: Re-generate.
7359 * d10v-tdep.c (d10v_push_dummy_code): New function.
7360 (d10v_gdbarch_init): Set push_dummy_code.
7361 * infcall.c (legacy_push_dummy_code): New function.
7362 (generic_push_dummy_code): New function.
7363 (push_dummy_code): New function.
7364 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7365 instead of dummy_addr, to push_dummy_call. Move call to
7366 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7367 switch.
7368 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7369
92bf2b80
AC
73702003-05-03 Andrew Cagney <cagney@redhat.com>
7371
7372 * disasm.h (print_insn): Declare.
7373 * disasm.c (init_gdb_disassemble_info): New function.
7374 (gdb_disassembly): Call init_gdb_disassemble_info.
7375 (gdb_print_insn): New function.
7376 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7377 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7378 * mcore-tdep.c: Include "disasm.h"
7379 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7380 * d10v-tdep.c: Include "disasm.h".
7381 (display_trace): Call gdb_print_insn, instead of print_insn.
7382 (print_insn): Delete function.
7383 * printcmd.c: Include "disasm.h".
7384 (print_insn): Delete function.
7385 (print_formatted): Call gdb_print_insn, instead of print_insn.
7386 * Makefile.in (printcmd.o): Update dependencies.
7387 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7388
27d94c49
AC
73892003-05-02 Andrew Cagney <cagney@redhat.com>
7390
82de1e5b
AC
7391 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7392 PC_REGNUM, re-indent.
7393 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7394 PC_REGNUM isn't set.
7395
27d94c49
AC
7396 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7397 * gdbarch.h, gdbarch.c: Re-generate.
7398 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7399 register_virtual_size, pc_regnum, or register_bytes.
7400 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7401 (d10v_register_type): Use D10V_PC_REGNUM.
7402 (d10v_print_registers_info, d10v_read_pc): Ditto.
7403 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7404 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7405
a9c0dc7f
DC
74062003-05-02 David Carlton <carlton@bactrian.org>
7407
7408 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7409 the name with mstrsave.
7410
e33d66ec
EZ
74112003-05-02 Elena Zannoni <ezannoni@redhat.com>
7412
7413 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7414 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7415 (host_charset_name, target_charset_name): New vars for use by
7416 set/show commands.
7417 (host_charset_enum, target_charset_enum): New enums for set/show
7418 commands.
7419 (set_charset_sfunc, set_host_charset_sfunc,
7420 set_target_charset_sfunc): New functions.
7421 (set_host_charset, set_target_charset): Make static.
7422 (list_charsets, set_host_charset_command,
7423 set_target_charset_command): Delete functions.
7424 (show_charset_command): Rewrite as....
7425 (show_charset): Hook this up with the set/show command mechanism.
7426 (_initialize_charset): Change names of charsets to match the
7427 set/show enums. Use host_charset_name and target_charset_name.
7428 Use set/show mechanism for charset, host-charset, target-charset
7429 commands. Do not make 'show host-charset' and 'show
7430 target-charset' be aliases of 'show charset'.
7431
7432 * charset.h (set_host_charset, set_target_charset): Don't export,
7433 they are not used outside the file.
7434
2b6fd0d8
AC
74352003-05-01 Andrew Cagney <cagney@redhat.com>
7436
7437 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7438 (gdb_disassembly): Make "di" non static, always initialize and
7439 cleanup. Always use dis_asm_read_memory.
7440 (gdb_dis_asm_read_memory): Delete function.
7441
6ae2f580
AC
74422003-05-01 Andrew Cagney <cagney@redhat.com>
7443
7444 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7445 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7446
810ecf9f
AC
74472003-04-30 Andrew Cagney <cagney@redhat.com>
7448
7449 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7450 "tm_print_insn_info".
7451 (TARGET_PRINT_INSN_INFO): Delete macro.
7452 (dis_asm_read_memory): Delete function declaration.
7453 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7454 (tm_print_insn_info): Delete variable definition.
7455 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7456 * gdbarch.h, gdbarch.c: Re-generate.
7457 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7458 "deprecated_tm_print_insn_info".
7459 * mcore-tdep.c (mcore_dump_insn): Ditto.
7460 * mips-tdep.c (mips_gdbarch_init): Ditto.
7461 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7462 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7463 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7464 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7465 instead of TARGET_PRINT_INSN_INFO, add comment.
7466 * s390-tdep.c (s390_get_frame_info): Instead of
7467 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7468 (s390_check_function_end, s390_is_sigreturn): Ditto.
7469 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7470 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7471 * disasm.c: Include "gdbcore.h".
7472 (_initialize_disasm): New function, initialize
7473 "deprecated_tm_print_insn_info".
7474 (deprecated_tm_print_insn_info): New variable.
7475 (dis_asm_read_memory): Moved from "corefile.c", made static.
7476 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7477 * Makefile.in (disasm.o): Update dependencies.
7478
07020390
AC
74792003-04-30 Andrew Cagney <cagney@redhat.com>
7480
7481 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7482
a9fa03de
AF
74832003-04-29 Adam Fedor <fedor@gnu.org>
7484
7485 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7486 * infcall.c (find_function_addr): Make non-static.
7487 * infcall.h (find_function_addr): Declare.
7488 * Makefile.in (eval.o): Update dependencies.
7489
1bae87b9
AF
74902003-04-28 Adam Fedor <fedor@gnu.org>
7491
7492 * symtab.c (symbol_find_demangled_name): Check for and demangle
7493 ObjC symbols.
7494 (symbol_init_demangled_name): Init for language_objc as well.
7495
0ba6dca9
AC
74962003-04-28 Andrew Cagney <cagney@redhat.com>
7497
7498 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7499 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7500 * gdbarch.h, gdbarch.c: Re-generate.
7501 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7502 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7503 * inferior.h (deprecated_read_fp): Rename read_fp.
7504 (generic_target_read_fp): Delete declaration.
7505 * regcache.c (generic_target_read_fp): Delete function.
7506 (deprecated_read_fp): Replace read_fp, use
7507 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7508 * d10v-tdep.c (d10v_read_fp): Delete function.
7509 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7510
7511 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7512 deprecated_target_read_fp to generic_target_read_fp.
7513 * sh-tdep.c (sh_gdbarch_init): Ditto.
7514 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7515 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7516 * frv-tdep.c (frv_gdbarch_init): Ditto.
7517
7518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7519 deprecated_fp_regnum.
7520 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7521 * vax-tdep.c (vax_gdbarch_init): Ditto.
7522 * v850-tdep.c (v850_gdbarch_init): Ditto.
7523 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7524 * sh-tdep.c (sh_gdbarch_init): Ditto.
7525 * s390-tdep.c (s390_gdbarch_init): Ditto.
7526 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7527 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7528 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7529 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7531 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7532 * i386-tdep.c (i386_gdbarch_init): Ditto.
7533 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7534 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7535 * frv-tdep.c (frv_gdbarch_init): Ditto.
7536 * cris-tdep.c (cris_gdbarch_init): Ditto.
7537 * avr-tdep.c (avr_gdbarch_init): Ditto.
7538 * arm-tdep.c (arm_gdbarch_init): Ditto.
7539 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7540
7541 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7542 * v850-tdep.c (v850_gdbarch_init): Ditto.
7543 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7544 * sh-tdep.c (sh_gdbarch_init): Ditto.
7545 * s390-tdep.c (s390_gdbarch_init): Ditto.
7546 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7547 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7548 * mips-tdep.c (mips_gdbarch_init): Ditto.
7549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7550 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7551 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7552 * frv-tdep.c (frv_gdbarch_init): Ditto.
7553 * avr-tdep.c (avr_gdbarch_init): Ditto.
7554 * arm-tdep.c (arm_gdbarch_init): Ditto.
7555
7556 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7557 DEPRECATED_FP_REGNUM.
7558 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7559 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7560 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7561 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7562 (sparc32_register_virtual_type): Ditto.
7563 * sh-tdep.c (sh64_frame_chain): Ditto.
7564 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7565 (sh_nofp_frame_init_saved_regs): Ditto.
7566 (sh64_nofp_frame_init_saved_regs): Ditto.
7567 (sh_fp_frame_init_saved_regs): Ditto.
7568 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7569 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7570 * procfs.c (procfs_fetch_registers): Ditto.
7571 (procfs_store_registers): Ditto.
7572 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7573 (store_inferior_registers, fetch_core_registers): Ditto.
7574 (fetch_kcore_registers, clear_regs): Ditto.
7575 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7576 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7577 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7578 * nlm/i386.c (do_status): Ditto.
7579 * mipsv4-nat.c (supply_gregset): Ditto.
7580 * mips-tdep.c: Ditto for comments.
7581 * mips-nat.c (fetch_inferior_registers): Ditto.
7582 (store_inferior_registers, fetch_core_registers): Ditto.
7583 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7584 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7585 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7586 (i386_do_pop_frame, i386_register_type): Ditto.
7587 * hppa-tdep.c (hppa_frame_chain): Ditto.
7588 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7589 (hppa_pop_frame, hppa_read_fp): Ditto.
7590 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7591 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7592 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7593 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7594 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7595 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7596 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7597 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7598 * blockframe.c: Ditto for comments.
7599 * arch-utils.h: Ditto for comments.
7600 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7601 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7602 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7603 * alpha-tdep.h: Ditto for comments.
7604 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7605 (alpha_cannot_store_register): Ditto.
7606 (alpha_push_dummy_frame): Ditto.
7607 * alpha-nat.c (supply_gregset): Ditto.
7608
7609 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7610 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7611 * config/sparc/tm-sparc.h: Update comment.
7612
7613 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7614 deprecated_read_fp instead of TARGET_READ_FP.
7615 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7616 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7617 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7618 deprecated_read_fp instead of read_fp.
7619 * s390-tdep.c (s390_push_arguments): Ditto.
7620 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7621 * frame.h: Ditto in comments.
7622 * frame.c (legacy_get_prev_frame): Ditto.
7623 * dummy-frame.c (dummy_frame_this_id): Ditto.
7624 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7625
d7a27068
AC
76262003-04-28 Andrew Cagney <cagney@redhat.com>
7627
7628 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7629 * gdbarch.h, gdbarch.c: Re-generate.
7630 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7631 * vax-tdep.c (_initialize_vax_tdep): Update.
7632 * v850-tdep.c (_initialize_v850_tdep): Update.
7633 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7634 * s390-tdep.c (_initialize_s390_tdep): Update.
7635 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7636 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7637 * mips-tdep.c (_initialize_mips_tdep): Update.
7638 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7639 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7640 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7641 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7642 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7643 * frv-tdep.c (_initialize_frv_tdep): Update.
7644 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7645 (_initialize_cris_tdep): Update.
7646 * arch-utils.c (legacy_print_insn): Update.
7647 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7648
d2630e69
AF
76492003-04-26 Adam Fedor <fedor@gnu.org>
7650
7651 * linespec.c (decode_objc): New function to decode ObjC calls
7652 (decode_line_1): Check for ObjC calls (using decode_objc)
7653 * Makefile (linespec.o): Update dependencies.
7654
3086aeae
DJ
76552003-04-26 Daniel Jacobowitz <drow@mvista.com>
7656
7657 * breakpoint.h (struct breakpoint_ops): New.
7658 (struct breakpoint): Add ops member.
7659
7660 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7661 (mention): Use new breakpoint ops member.
7662 (set_raw_breakpoint): Initialize ops field to NULL.
7663 (print_exception_catchpoint, print_one_exception_catchpoint)
7664 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7665 (gnu_v3_exception_catchpoint_ops): New.
7666 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7667
1fbec6c3
AF
76682003-04-25 Adam Fedor <fedor@gnu.org>
7669
7670 * Makefile.in (COMMON_OBS): Add objc-lang.o
7671
0ef21242
AC
76722003-04-25 Andrew Cagney <cagney@redhat.com>
7673
7674 * d10v-tdep.c (print_insn): Delete function.
7675 (display_trace): Use TARGET_PRINT_INSN.
7676 (_initialize_d10v_tdep): Do not set tm_print_insn.
7677 (d10v_gdbarch_init): Set print_insn.
7678
f75493ed
AC
76792003-04-25 Andrew Cagney <cagney@redhat.com>
7680
7681 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7682 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7683 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7684 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7685 (nr_dmap_regs, a0_regnum): ... new functions.
7686 (d10v_print_registers_info): Use a0_regnum, use register_size.
7687 (d10v_register_byte): Delete function.
7688 (d10v_register_raw_size): Delete function.
7689 (d10v_register_type): Use a0_regnum.
7690 (d10v_print_registers_info): Use a0_regnum.
7691 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7692 (d10v_gdbarch_init): Do not set register_byte or
7693 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7694 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7695 extract_address.
7696 (trace_command): Use XCALLOC.
7697 (print_insn): Delete reference to tm_print_insn.
7698 (saved_regs_unwinder): Use store_unsigned_integer instead of
7699 store_address.
7700 * frame.h (FRAME_OBSTACK_CALLOC): Define
7701
2202b100
DC
77022003-04-25 David Carlton <carlton@bactrian.org>
7703
7704 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7705
4e45ca2e
AF
77062003-04-24 Adam Fedor <fedor@gnu.org>
7707
7708 * objc-lang.c: Include "valprint.h"
7709 * Makefile.in (objc-lang.o): Update dependencies.
7710
93de3e7f
AF
77112003-04-24 Adam Fedor <fedor@gnu.org>
7712
8ffd9b1b 7713 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7714 architecture dependant compilation and mark as unimplemented
7715 (until they get put in the gdbarch vector).
7716
0f20eeea
DC
77172003-04-23 David Carlton <carlton@bactrian.org>
7718
7719 * cp-support.c (cp_find_first_component): Accept 'operator' in
7720 more locations.
7721
74cfe982
AC
77222003-04-23 Andrew Cagney <cagney@redhat.com>
7723
7724 * infcall.c (call_function_by_hand): Eliminate redundant
7725 indentation. Move "saved_async" and "old_cleanups" to where they
7726 are needed.
8ffd9b1b 7727
52557533
AC
77282003-04-23 Andrew Cagney <cagney@redhat.com>
7729
7730 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7731 and "buffer". Move the "name" code to where it is needed.
7732
158775de
AC
77332003-04-23 Andrew Cagney <cagney@redhat.com>
7734
7735 * infcall.c (call_function_by_hand): Move variables "start_sp",
7736 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7737 code to ON_STACK switch branch.
8ffd9b1b 7738
ebc7896c
AC
77392003-04-23 Andrew Cagney <cagney@redhat.com>
7740
7741 * infcall.c (call_function_by_hand): Make declaration of "i",
7742 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7743 lint.
7744
d727590f
AC
77452003-04-23 Andrew Cagney <cagney@redhat.com>
7746
7747 * infcall.c (call_function_by_hand): Delete variable
7748 "n_method_args". Localize "param_type"'s declaration to the loop
7749 that it is used. Reinstate code assigning to said variable -
7750 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7751 Rationalize code using "param_type".
7752
d585e13a
AC
77532003-04-22 Andrew Cagney <cagney@redhat.com>
7754
7755 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7756 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7757 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7758 to DEPRECATED_PUSH_RETURN_ADDRESS.
7759
051caad9
KB
77602003-04-22 Kevin Buettner <kevinb@redhat.com>
7761
7762 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7763 on the DWARF2 register number prior to fetching a register.
7764
77296879
JB
77652003-04-22 J. Brobecker <brobecker@gnat.com>
7766
7767 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7768 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7769 this macro was always set to 0.
77296879
JB
7770 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7771 considering the fact that this macro was always set to 0.
7772 * hppa-tdep.h (hppa_store_return_value): Likewise.
7773 (hppa_extract_return_value): Likewise.
7774
4252f1df
JB
77752003-04-22 J. Brobecker <brobecker@gnat.com>
7776
7777 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7778 the hppa-pro target only.
7779
14604c6b
JB
77802003-04-21 J. Brobecker <brobecker@gnat.com>
7781
7782 Ongoing multi-arch conversion effort for HP/UX:
7783 * config/pa/tm-hppa.h: Move all macro that are no longer
7784 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7785 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7786
77eb01d1
JB
77872003-04-21 J. Brobecker <brobecker@gnat.com>
7788
7789 * config/pa/tm-hppa.h: Obsolete a section that was only used
7790 for hppa-pro.
7791
61995b3b
JB
77922003-04-21 J. Brobecker <brobecker@gnat.com>
7793
7794 Ongoing multi-arch conversion for HP/UX.
7795 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7796 if already defined (allows hppa64 to stay non-multiarched for now).
7797 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7798
4aa79dcc
AC
77992003-04-21 Andrew Cagney <cagney@redhat.com>
7800
7801 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7802
0f751ff2
AC
78032003-04-21 Andrew Cagney <cagney@redhat.com>
7804
7805 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7806 "i386_num_mmx_regs".
7807
04714b91
AC
78082003-04-21 Andrew Cagney <cagney@redhat.com>
7809
7810 * infcall.c: New file.
7811 * infcall.h: New file.
7812 * valarith.c: Include "infcall.h".
7813 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7814 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7815 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7816 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7817 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7818 (SFILES): Add "infcall.c"
7819 (COMMON_OBS): Add "infcall.o".
7820 (infcall.o): Specify dependencies.
7821 * value.h (call_function_by_hand): Delete declaration.
7822 * inferior.h (run_stack_dummy): Delete declaration.
7823 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7824 (run_stack_dummy): Move to "infcall.c", merged into
7825 call_function_by_hand.
7826 * valops.c (call_function_by_hand): Moved to "infcall.c".
7827 (find_function_addr, value_arg_coerce): Ditto.
7828 (unwindonsignal_p, coerce_float_to_double): Ditto.
7829 (_initialize_valops): Move "set/show coerce-float-to-double", and
7830 "set/show unwindonsignal" commands to "infcall.c".
7831 * v850-tdep.c, target.h: Update comments.
7832 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7833 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7834 (sh64_init_extra_frame_info): Update comments.
7835 * mn10300-tdep.c: Update comments.
7836 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7837 * config/sparc/tm-sparc.h: Update comments.
7838 * breakpoint.h: Update comments.
7839 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7840 * arm-tdep.c: Update comment.
7841
f9d3c2a8
MK
78422003-04-19 Mark Kettenis <kettenis@gnu.org>
7843
c40e1eab
MK
7844 * i386-tdep.c (i386_num_register_names): New variable.
7845 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7846 (MM0_REGNUM): Remove redundant parentheses in define.
7847 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7848 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7849 i386_mxcsr_regnum_p): Remove redundant parentheses.
7850 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7851
94ea66b3
MK
7852 * i386-tdep.c (i386_extract_return_value,
7853 i386_store_return_value): Correct check for availability of
7854 floating-point registers.
7855
54299a1d
MK
7856 * i386-tdep.c (i386_frame_num_args): Remove function.
7857 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7858
c86c27af
MK
7859 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7860 mmx_regnum_to_fp_regnum. Adjust all callers.
7861
f9d3c2a8
MK
7862 * i386-tdep.c (i386_get_longjmp_target): Use
7863 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7864 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7865 extract_address.
7866
94ba74a9
MK
78672003-04-19 Mark Kettenis <kettenis@gnu.org>
7868
7869 * core-regset.c: Update comments to reflect reality. Re-order
7870 includes.
7871 (fetch_core_registers): Use switch instead of if. Remove
7872 redundant prototype.
7873
4074e13c
JB
78742003-04-18 Jim Blandy <jimb@redhat.com>
7875
7876 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7877 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7878
e3ab4aba
RH
78792003-04-17 Richard Henderson <rth@redhat.com>
7880
7881 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7882
627bf7c1
EZ
78832003-04-17 Michael Snyder <msnyder@redhat.com>
7884 Karen Bennet <bennet@redhat.com>
7885
7886 Committed by Elena Zannoni <ezannoni@redhat.com>
7887 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7888
514621a9
EZ
78892003-04-17 Elena Zannoni <ezannoni@redhat.com>
7890
7891 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7892 value if the return type is void.
514621a9 7893
b4acd559
JJ
78942003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7895
7896 * thread-db.c: Reindented.
8ffd9b1b 7897
530b167e 78982003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7899
7900 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7901 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7902 as types.
7903
0a48e7e8
MS
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
8ffd9b1b 7927
ab9fe00e
KB
79282003-04-16 Kevin Buettner <kevinb@redhat.com>
7929
610a3745 7930 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7931 the size of ``long double'' to 16, instead of 8.
7932
e64a344c
MK
79332003-04-16 Mark Kettenis <kettenis@gnu.org>
7934
7935 * i386-linux-nat.c: Add some whitespace to make things more
7936 readable.
7937 (fetch_register, store_register, fetch_inferior_registers,
7938 store_inferior_registers): Get rid of assignment in if-statement.
7939 (store_register): Fix typo in error message.
7940
25d41031
AC
79412003-04-16 Andrew Cagney <cagney@redhat.com>
7942
7943 * utils.c (xmmalloc): Always allocate something, matches
7944 libiberty/xmalloc's semantics.
7945 (xmrealloc, xmcalloc): Ditto.
7946
c50901fd
AC
79472003-04-16 Andrew Cagney <cagney@redhat.com>
7948
7949 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7950 update comments.
7951 (get_frame_type): Initialize unwind and type when needed.
7952 (get_frame_id, frame_register_unwind): Ditto.
7953
f81824a9
AC
79542003-04-16 Andrew Cagney <cagney@redhat.com>
7955
7956 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7957 obsolete.
7958 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7959 * sparcl-stub.c: Obsolete file.
7960 * config/sparc/tm-sparclet.h: Obsolete file.
7961 * sparclet-stub.c: Obsolete file.
7962 * sparclet-rom.c: Obsolete file.
7963 * sparcl-tdep.c: Obsolete file.
7964 * config/sparc/tm-sparclite.h: Obsolete file.
7965 * config/sparc/sparclite.mt: Obsolete file.
7966 * config/sparc/sparclet.mt: Obsolete file.
7967 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7968 sparc86x-*-* obsolete.
7969
9219021c
DC
79702003-04-15 David Carlton <carlton@math.stanford.edu>
7971
7972 * Makefile.in (SFILES): Add cp-namespace.c.
7973 (COMMON_OBS): Add cp-namespace.o.
7974 (block.o): Depend on gdb_obstack_h and cp_support_h.
7975 (buildsym.o): Depend on cp_support_h.
7976 (cp-namespace.o): New.
7977 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7978 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7979 (dwarf2read.o): Depend on cp_support_h.
7980 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7981 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7982 processing_current_namespace.
7983 (read_namespace): Update processing_current_namespace; check for
7984 anonymous namespaces.
7985 (dwarf2_name): New function.
7986 (dwarf2_extension): Ditto.
7987 * cp-support.h: Update copyright, contributors.
7988 Add inclusion guards.
7989 Add opaque declaration for structs obstack, block, symbol.
7990 (struct using_direct): New struct.
7991 Add declarations for cp_find_first_component,
7992 cp_entire_prefix_len, processing_has_namespace_info,
7993 processing_current_namespace, cp_is_anonymous,
7994 cp_add_using_directive, cp_initialize_namespace,
7995 cp_finalize_namespace, cp_set_block_scope,
7996 cp_scan_for_anonymous_namespaces.
7997 * cp-namespace.c: New file.
7998 * cp-support.c: Update copyright.
7999 Include ctype.h, gdb_assert.h, gdbcmd.h.
8000 New variable maint_cplus_cmd_list.
8001 (cp_find_first_component): New function.
8002 (cp_entire_prefix_len, maint_cplus_command)
8003 (first_component_command, _initialize_cp_support): Ditto.
8004 * buildsym.c: Include cp-support.h.
8005 New variable using_list.
8006 (add_symbol_to_list): Check for anonymous namespaces.
8007 (finish_block): Set block's scope.
8008 (start_symtab): Initialize C++ namespace support.
8009 (end_symtab): Finalize C++ namespace support.
8010 * block.h: Add opaque declarations for structs
8011 block_namespace_info, using_direct, and obstack.
8012 Add declarations for block_set_scope and block_set_using.
8013 (struct block): Add 'language_specific' member.
8014 (BLOCK_NAMESPACE): New macro.
8015 * block.c: Include gdb_obstack.h and cp-support.h.
8016 (struct block_namespace_info): New struct.
8017 (block_set_scope): New function.
8018 (block_set_using, block_initialize_namespace): Ditto.
8019
d5a921c9
KB
80202003-04-14 Kevin Buettner <kevinb@redhat.com>
8021
8022 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8023 (locate_base): Return early if there aren't any link map offsets.
8024 (svr4_solib_create_inferior_hook): Warn if shared library support
8025 is unavailable.
8026
d2a52b27
DC
80272003-04-14 David Carlton <carlton@math.stanford.edu>
8028
8029 * symtab.c (symbol_set_names): Add prefix when storing Java names
8030 in hash table. Fix for PR java/1039.
8031
980cae7a
DC
80322003-04-14 David Carlton <carlton@math.stanford.edu>
8033
8034 * symtab.c (symbol_set_names): Rename 'name' arg to
8035 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8036 * symtab.h: Change 'name' argument in declaration of
8037 symbol_set_names to 'linkage_name'.
8038 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8039
e227b13c
AC
80402003-04-14 Andrew Cagney <cagney@redhat.com>
8041
8042 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8043 return the fully sign-extended register value.
8044 (get_frame_pointer): Ditto.
8045 (mips_pop_frame): Initialize "proc_desc" after checking for a
8046 dummy frame.
8047
36712a20
AC
80482003-04-14 Andrew Cagney <cagney@redhat.com>
8049
8050 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8051 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8052 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8053 (mips_push_register): Delete function.
8054 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8055 PUSH_FP_REGNUM.
8056
44ea7b70
JB
80572003-04-14 Jim Blandy <jimb@redhat.com>
8058
8059 * symmisc.c: #include "gdb_regex.h".
8060 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8061 functions.
8062 * maint.c (maintenance_list_command): New function.
8063 (_initialize_maint_cmds): Register the above as commands.
8064 * symtab.h (maintenance_list_symtabs,
8065 maintenance_list_psymtabs): New declarations.
8066 * cli/cli-cmds.c (maintenancelistlist): New variable.
8067 (init_cmd_lists): Initialize it.
8068 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8069 * gdbcmd.h (maintenancelistlist): New declaration.
8070 * Makefile.in (symmisc.o): Update dependencies.
8071
2d0c7962
EZ
80722003-04-14 Elena Zannoni <ezannoni@redhat.com>
8073
8074 * s390-nat.c: Include asm/types.h for addr_t.
8075
1947a811
CV
80762003-04-14 Corinna Vinschen <vinschen@redhat.com>
8077
8078 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8079 actually incoming type.
8080
adb616d7
AC
80812003-04-13 Andrew Cagney <cagney@redhat.com>
8082
8083 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8084 get_next_frame and get_frame_saved_regs.
8085
9b5e151c
AC
80862003-04-13 Andrew Cagney <cagney@redhat.com>
8087
8088 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8089 of gdbarch_num_regs.
8090
ef6e7e13
AC
80912003-04-13 Andrew Cagney <cagney@redhat.com>
8092
8093 * frame.h: Mention what replaced what in "struct frame_info".
8094 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8095 deprecated_update_frame_base_hack and
8096 deprecated_update_frame_pc_hack.
8097 * hppa-tdep.c: Ditto.
8098
61fbb938
DJ
80992003-04-13 Daniel Jacobowitz <drow@mvista.com>
8100
8101 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8102 to read_reg and update its comment. Remove regnum member.
8103 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8104 Don't call read_reg when setting in_reg. Call read_reg to get
8105 the frame base if it's in a register. Return the register number
8106 on the stack instead of in the context. Remove extra arguments
8107 to read_reg.
8108 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8109 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8110 the register number on the expression stack.
8111 (needs_frame_read_reg): Remove extra arguments.
8112
0d53c4c4
DJ
81132003-04-13 Daniel Jacobowitz <drow@mvista.com>
8114
8115 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8116 made non-static.
8117 (execute_stack_op): All callers updated.
8118 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8119 * dwarf2loc.c (find_location_expression): New function.
8120 (dwarf_expr_frame_base): Call it.
8121 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8122 (dwarf2_tracepoint_var_ref): New function, broken out from
8123 locexpr_tracepoint_var_ref.
8124 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8125 Make static.
8126 (loclist_read_variable, loclist_read_needs_frame): New functions.
8127 (loclist_describe_location, loclist_tracepoint_var_ref): New
8128 functions.
8129 (dwarf2_loclist_funcs): New struct location_funcs.
8130 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8131 (struct dwarf2_locexpr_baton): Add comments.
8132 (dwarf2_loclist_funcs): New extern.
8133 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8134 base_address and base_known.
8135 (dwarf_loc_buffer): New variable.
8136 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8137 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8138 (dwarf2_has_info): Initialize dwarf_loc_offset.
8139 (dwarf2_build_psymtabs): Read in .debug_loc.
8140 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8141 DWARF_LOC_SIZE.
8142 (psymtab_to_symtab_1): Likewise. Move base address calculation
8143 here, from...
8144 (dwarf2_get_pc_bounds): ... here. Use the base address from
8145 cu_header.
8146 (dwarf2_symbol_mark_computed): Handle location lists.
8147
6aca59a3
DJ
81482003-04-13 Daniel Jacobowitz <drow@mvista.com>
8149
8150 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8151 if the linkage name demangled successfully.
8152
aca1fcd0
MK
81532003-04-13 Mark Kettenis <kettenis@gnu.org>
8154
97095916
MK
8155 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8156 disassmbly_flavour): Removed.
8157
aca1fcd0
MK
8158 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8159
562a961f
MK
81602003-04-13 Mark Kettenis <kettenis@gnu.org>
8161
8162 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8163
bd013d54
AC
81642003-04-12 Andrew Cagney <cagney@redhat.com>
8165
8166 * frame.h (struct frame_info): Move definition from here ...
8167 * frame.c (struct frame_info): ... to here.
8168
167ef8b1
AC
81692003-04-12 Andrew Cagney <cagney@redhat.com>
8170
8171 * gdbthread.h (save_infrun_state): Delete parameter
8172 "prev_func_start".
8173 (struct thread_info): Delete field "prev_func_start".
8174 (load_infrun_state): Ditto.
8175 * thread.c (load_infrun_state, save_infrun_state): Update.
8176 * infrun.c (prev_func_start): Delete variable.
8177 (context_switch, init_wait_for_inferior): Update.
8178 (stop_stepping, keep_going): Update.
8179
da3331ec
AC
81802003-04-12 Andrew Cagney <cagney@redhat.com>
8181
8182 * gdbarch.sh: Add missing opaque declarations.
8183 * gdbarch.h: Regnerate.
8184 * symtab.h: Add missing opaque declarations.
8185 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8186 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8187 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8188 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8189 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8190 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8191 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8192 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8193 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8194 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8195 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8196 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8197 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8198
18adea3f
AC
81992003-04-11 Andrew Cagney <cagney@redhat.com>
8200
8201 * frame.c (get_frame_id): Return this frame's "id".
8202 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8203 function start.
8204 (legacy_saved_regs_this_id): Replace function body with
8205 internal-error.
8206 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8207 FRAME_OBSTACK_ZALLOC.
8208 (create_new_frame): Mark the frame ID as valid.
8209
2252e863
AO
82102003-04-11 Alexandre Oliva <aoliva@redhat.com>
8211
8212 * Makefile.in (libbfd_h): Added missing setting.
8213 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8214 according to the selected ABI.
8215
a8245ab8
JJ
82162003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8217
8218 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8219
6913c89a
AC
82202003-04-11 Andrew Cagney <cagney@redhat.com>
8221
8222 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8223 SAVED_PC_AFTER_CALL.
8224 * gdbarch.h, gdbarch.c: Regenerate.
8225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8226 * x86-64-tdep.c (x86_64_init_abi): Update.
8227 * vax-tdep.c (vax_gdbarch_init): Update.
8228 * v850-tdep.c (v850_gdbarch_init): Update.
8229 * sparc-tdep.c (sparc_gdbarch_init): Update.
8230 * sh-tdep.c (sh_gdbarch_init): Update.
8231 * s390-tdep.c (s390_gdbarch_init): Update.
8232 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8233 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8234 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8235 * mips-tdep.c (mips_gdbarch_init): Update.
8236 * mcore-tdep.c (mcore_gdbarch_init): Update.
8237 * m68k-tdep.c (m68k_gdbarch_init): Update.
8238 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8239 * ia64-tdep.c (ia64_gdbarch_init): Update.
8240 (ia64_saved_pc_after_call): Update declaration.
8241 * i386ly-tdep.c (i386lynx_init_abi): Update.
8242 * i386-tdep.c (i386_gdbarch_init): Update.
8243 * hppa-tdep.c (hppa_gdbarch_init): Update.
8244 * h8300-tdep.c (h8300_gdbarch_init): Update.
8245 * frv-tdep.c (frv_gdbarch_init): Update.
8246 * cris-tdep.c (cris_gdbarch_init): Update.
8247 * avr-tdep.c (avr_gdbarch_init): Update.
8248 * arm-tdep.c (arm_gdbarch_init): Update.
8249 * alpha-tdep.c (alpha_gdbarch_init): Update.
8250 * ns32knbsd-nat.c (frame_num_args): Update.
8251 * ns32k-tdep.c (umax_frame_num_args): Update.
8252 * mips-tdep.c (mips_init_frame_pc_first): Update.
8253 * infrun.c (step_over_function): Update.
8254 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8255 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8256 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8257 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8258 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8259 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8260 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8261 * arch-utils.c (init_frame_pc_default): Update.
8262 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8263 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8264 declaration.
8ffd9b1b 8265
38edeab8
AC
82662003-04-11 Andrew Cagney <cagney@redhat.com>
8267
8268 * i387-tdep.c: Update copyright.
8269 (i387_to_double): Delete function.
8270 (double_to_i387): Delete function.
8271
81f8a206
AC
82722003-04-10 Andrew Cagney <cagney@redhat.com>
8273
8274 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8275 frame's function's address. Simplify.
8276 (d10v_frame_unwind_cache): Check that the frame's function is
8277 non-zero.
8278
6e691f7a
JB
82792003-04-10 Jim Blandy <jimb@redhat.com>
8280
8281 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8282 call to set_gdbarch_deprecated_push_arguments.
8283
7f78e237
AC
82842003-04-10 Andrew Cagney <cagney@redhat.com>
8285
8286 * frame.c (fprint_frame_id): New function.
8287 (fprint_frame_type, fprint_frame): New function.
8288 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8289 (create_sentinel_frame, get_frame_id): Ditto.
8290 (frame_id_p, frame_id_eq): Ditto.
8291 (frame_id_inner, create_new_frame): Ditto.
8292 (legacy_get_prev_frame, get_prev_frame): Ditto.
8293 (deprecated_update_frame_pc_hack): Ditto.
8294 (frame_register_unwind): Ditto.
8295 (deprecated_update_frame_base_hack): Ditto.
8296
f870b49b
CV
82972003-04-10 Corinna Vinschen <vinschen@redhat.com>
8298
8299 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8300 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8301 frame_chain function.
8302 * Makefile.in: Add dependencies due to above change.
8303
7c86889b
CV
83042003-04-10 Corinna Vinschen <vinschen@redhat.com>
8305
8306 * blockframe.c (legacy_frame_chain_valid): Move call to
8307 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8308 inside_entry_file.
8309
d0a55772
AC
83102003-04-09 Andrew Cagney <cagney@redhat.com>
8311
8312 * frame.h (struct frame_id): Replace "pc" and "base" with
8313 "stack_addr" and "code_addr". Update comments.
8314 (frame_id_build): Update parameter names and comment.
8315 (struct frame_info): Replace "id_p" and "id" with "this_id".
8316 * dummy-frame.c (dummy_frame_this_id): Update.
8317 * breakpoint.c (print_one_breakpoint): Update.
8318 * frame.c (get_frame_id): Update.
8319 (get_frame_base, frame_id_build): Update.
8320 (create_sentinel_frame, legacy_get_prev_frame): Update.
8321 (deprecated_update_frame_base_hack): Update.
8322 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8323 (frame_id_inner): Ditto.
8324
ac16bf07
AC
83252003-04-09 Andrew Cagney <cagney@redhat.com>
8326
8327 * defs.h (gdb_print_host_address): Make "addr" parameter a
8328 pointer constant.
8329 * utils.c (gdb_print_host_address): Update.
8330
366cfc9e
KB
83312003-04-09 Kevin Buettner <kevinb@redhat.com>
8332
8333 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8334 register number for R0 is 0.
8335
cd983b5c
JB
83362003-04-09 J. Brobecker <brobecker@gnat.com>
8337
8338 * frame.h (struct gdbarch): Add opaque structure definition
8339 to avoid a compilation warning on LynxOS 4.0.
8340
d1340264
AC
83412003-04-09 Andrew Cagney <cagney@redhat.com>
8342
8343 * frame.h (struct frame_info): Delete field "pc". Replace
8344 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8345 structure.
8346 * frame.c (frame_pc_unwind): Update.
8347 (create_sentinel_frame): Do not set "pc".
8348 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8349 (get_frame_pc): Call frame_pc_unwind.
8350 (deprecated_update_frame_pc_hack): Update.
8351 (create_new_frame): Use "pc" not "->pc".
8352
90a6fffb
AC
83532003-04-09 Andrew Cagney <cagney@redhat.com>
8354
8355 * frame.c (get_frame_id): Eliminate code updating "frame".
8356 (legacy_get_prev_frame): Ditto.
8357 (get_frame_base): Return id.base directly.
8358 (deprecated_update_frame_base_hack): Update "id.base".
8359 * frame.h (struct frame_info): Delete field "frame".
8360
2fbce691
AC
83612003-04-09 Andrew Cagney <cagney@redhat.com>
8362
8363 * NEWS: Mention that the "Sequent family" is obsolete.
8364 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8365 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8366 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8367 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8368 * config/i386/tm-ptx4.h: Obsolete file.
8369 * config/i386/tm-ptx.h: Obsolete file.
8370 * symm-tdep.c: Obsolete file.
8371 * config/i386/symmetry.mt: Obsolete file.
8372 * config/i386/tm-symmetry.h: Obsolete file.
8373 * symm-nat.c: Obsolete file.
8374 * config/i386/nm-symmetry.h: Obsolete file.
8375 * config/i386/xm-symmetry.h: Obsolete file.
8376 * config/i386/symmetry.mh: Obsolete file.
8377 * config/i386/nm-ptx4.h: Obsolete file.
8378 * config/i386/ptx4.mh: Obsolete file.
8379 * config/i386/ptx.mt: Obsolete file.
8380 * config/i386/ptx.mh: Obsolete file.
8381 * config/i386/xm-ptx4.h: Obsolete file.
8382 * config/i386/xm-ptx.h: Obsolete file.
8383
78c43945
AC
83842003-04-09 Andrew Cagney <cagney@redhat.com>
8385
8386 Obsolete mips*-*-mach3*.
8387 * NEWS: Mention that mips*-*-mach3* is obsolete.
8388 * m3-nat.c: Obsolete file.
8389 * config/nm-m3.h: Obsolete file.
8390 * config/mips/tm-mipsm3.h: Obsolete file.
8391 * config/mips/mipsm3.mt: Obsolete file.
8392 * config/mips/mipsm3.mh: Obsolete file.
8393 * config/mips/xm-mipsm3.h: Obsolete file.
8394 * mipsm3-nat.c: Obsolete file.
8395 * configure.host: Obsolete mips-dec-mach3*.
8396 * configure.tgt: Obsolete mips*-*-mach3*.
8397
f1908289
AC
83982003-04-09 Andrew Cagney <cagney@redhat.com>
8399
8400 * doublest.h: Update copyright.
8401 (deprecated_store_floating, deprecated_extract_floating): Rename
8402 store_floating and extract_floating. Update comments.
8403 * doublest.c: Update copyright.
8404 (extract_floating_by_length): Replace extract_floating.
8405 (store_floating_by_length): Replace store_floating.
8406 (deprecated_extract_floating): New function.
8407 (deprecated_store_floating): New function.
8408 (extract_typed_floating): Call extract_floating_by_length.
8409 (store_typed_floating): Call store_floating_by_length.
8410 * x86-64-tdep.c (x86_64_store_return_value): Update.
8411 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8412 (sh64_extract_return_value): Update.
8413 (sh_sh4_register_convert_to_virtual): Update.
8414 (sh_sh64_register_convert_to_virtual): Update.
8415 (sh_sh4_register_convert_to_raw): Update.
8416 (sh_sh64_register_convert_to_raw): Update.
8417 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8418 (rs6000_register_convert_to_raw): Update.
8419 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8420 (ia64_register_convert_to_raw): Update.
8421 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8422 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8423 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8424 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8425 (alpha_register_convert_to_raw): Update.
8426
4443bd83
AC
84272003-04-08 Andrew Cagney <cagney@redhat.com>
8428
8429 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8430 * gdbarch.h, gdbarch.c: Re-generate.
8431 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8432 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8433 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8434 conditionally, use frame_pc_unwind as an alternative. Add
8435 comments.
8436 * arch-utils.c (init_frame_pc_default): Only call
8437 SAVED_PC_AFTER_CALL when available.
8438
c0236d92
EZ
84392003-04-08 Elena Zannoni <ezannoni@redhat.com>
8440
fbe586ae 8441 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8442 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8443 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8444 (start_remote): Ditto.
8445 (handle_inferior_event): Ditto.
8446 (save_inferior_status): Ditto.
8447 (restore_inferior_status): Ditto.
8448 * infcmd.c (attach_command): Ditto.
8449 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8450 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8451 * alpha-tdep.c (heuristic_proc_start): Ditto.
8452 * mips-tdep.c (heuristic_proc_start): Ditto.
8453 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8454 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8455 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8456 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8457 * remote-vx.c (vx_create_inferior): Ditto.
8458
84592003-04-08 Elena Zannoni <ezannoni@redhat.com>
8460
8461 * infrun.c (stop_soon_quietly): Make it an enum, to better
8462 override the default behavior of handle_inferior_event.
8463 (clear_proceed_status): Update uses of stop_soon_quietly to
8464 reflect that it is now an enum.
8465 (start_remote): Ditto.
8466 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8467 is set to handle the new GNU/Linux kernel behavior for
8468 attach/sigstop. Update uses of stop_soon_quietly.
8469 * inferior.h (enum stop_kind): New enum.
8470 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8471 Reset normal handle_inferior_event behavior, afterwards.
8472 * fork-child.c (startup_inferior): Update.
8473 * alpha-tdep.c (heuristic_proc_start): Update.
8474 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8475 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8476 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8477 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8478 * remote-vx.c (vx_create_inferior): Update.
8479 * mips-tdep.c (heuristic_proc_start): Update.
8480
1211bce3
EZ
84812003-04-07 Elena Zannoni <ezannoni@redhat.com>
8482
8483 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8484 be freed more than once, causing wild memory corruptions.
1211bce3 8485 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8486 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8487 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8488 with the "core" target.
1211bce3 8489
f0ef6b29
KB
84902003-04-07 Kevin Buettner <kevinb@redhat.com>
8491
8492 * mips-tdep.c (mips_print_fp_register): New function, created from
8493 do_fp_register_row(). Registers are now (also) printed as hex.
8494 Only one register is printed per row.
8495 (mips_print_register, do_fp_register_row): Print floating point
8496 registers with mips_print_fp_register().
8497
8cf71652
AC
84982003-04-06 Andrew Cagney <cagney@redhat.com>
8499
5e488a7b
AC
8500 * valprint.h (inspect_it): Add extern declaration.
8501 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8502 (selectors_info, classes_info): Ditto.
8503 (find_objc_msgcall): Fix indentation.
8504 (objc_printstr): Delete extern declarations.
8505
8cf71652
AC
8506 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8507
e6ba3bc9
AC
85082003-04-06 Andrew Cagney <cagney@redhat.com>
8509
8510 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8511 Update comment.
8512 * frame.c (legacy_saved_regs_this_id): Update.
8513 (legacy_get_prev_frame): Update.
8514 * xstormy16-tdep.c: Update comment.
8515 * sparc-tdep.c (sparc_frame_chain): Update comment.
8516 * blockframe.c (legacy_frame_chain_valid): Update.
8517
55e1d7e7
AC
85182003-04-06 Andrew Cagney <cagney@redhat.com>
8519
996179ee
AC
8520 * valprint.c (val_print_type_code_int): Delete #ifdef
8521 PRINT_TYPELESS_INTEGER code.
8522
55e1d7e7
AC
8523 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8524 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8525 multi-arch definition.
8526 * gdbarch.h: Re-generate.
8527
43bd9a9e
AC
85282003-04-05 Andrew Cagney <cagney@redhat.com>
8529
8530 Eliminate FRAME_FIND_SAVED_REGS.
8531 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8532 Change FSR parameter to a pointer.
8533 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8534 Assume FSR parameter is a pointer.
8535 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8536 Make fsr a pointer.
8537 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8538 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8539 saved_regs a pointer.
8540 (hppa_frame_saved_pc): Ditto.
8541 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8542 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8543 pointer.
8544 (restore_pc_queue): Make fsr a pointer.
8545 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8546 (hppa_frame_chain): Make saved_regs a pointer, call
8547 hppa_frame_init_saved_regs.
8548 * sparc-tdep.c: Include "gdb_assert.h".
8549 (sparc_frame_find_saved_regs): Replace internal_error with
8550 gdb_assert.
8551 * remote-vxsparc.c (vx_read_register): Delete reference to
8552 FRAME_FIND_SAVED_REGS.
8553 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8554 * gdbarch.h: Regenerate.
8555 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8556 (deprecated_get_frame_saved_regs): Delete declaration.
8557 (struct frame_saved_regs): Delete definition.
8558 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8559 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8560 (hppa_frame_find_saved_regs): Delete declaration.
8561 (FRAME_FIND_SAVED_REGS): Delete macro.
8562 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8563 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8564 FRAME_FIND_SAVED_REGS in comment.
8565
be41e9f4
AC
85662003-04-05 Andrew Cagney <cagney@redhat.com>
8567
8568 * frame.c (frame_func_unwind, get_frame_func): New functions.
8569 * frame.h (get_frame_func, frame_func_unwind): Declare.
8570 (struct frame_info): Add field "prev_func" for caching the
8571 previous frame's function address.
8572 * arm-tdep.c (arm_frameless_function_invocation): Combine
8573 get_pc_function_start and get_frame_pc into get_frame_func.
8574 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8575 (sh64_nofp_frame_init_saved_regs): Ditto.
8576 * s390-tdep.c (s390_function_start): Ditto.
8577 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8578 (rs6000_frameless_function_invocation): Ditto.
8579 (rs6000_frame_saved_pc): Ditto.
8580 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8581 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8582 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8583 (i386_frame_init_saved_regs): Ditto.
8584 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8585 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8586 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8587 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8588 * blockframe.c (frameless_look_for_prologue): Ditto.
8589
a01dd7cc
AC
85902003-04-05 Andrew Cagney <cagney@redhat.com>
8591
8592 * frame.c (legacy_get_prev_frame): Link prev to next at the
8593 function start. Update comments.
8594
5e5592e6
AC
85952003-04-05 Andrew Cagney <cagney@redhat.com>
8596
8597 * frame.c (get_frame_id): Update comment.
8598 (legacy_get_prev_frame): Update comment.
8599 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8600 * gdbarch.h: Regenerate.
8601 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8602 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8603
6fba5002
AC
86042003-04-05 Andrew Cagney <cagney@redhat.com>
8605
8606 * stack.c (print_frame_info): Use get_frame_pc.
8607
7df05f2b
AC
86082003-04-04 Andrew Cagney <cagney@redhat.com>
8609
8610 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8611 the frame's type from the unwinder.
8612 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8613 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8614 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8615 (get_frame_base_address): Use get_frame_type.
8616 (get_frame_locals_address, get_frame_args_address): Ditto.
8617 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8618 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8619 (struct frame_info): Add comment explaining why the frame contains
8620 a "type" field.
8621 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8622 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8623 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8624 NORMAL_FRAME.
8625 * frame-unwind.h: Include "frame.h".
8626 (struct frame_unwind): Add "type" field.
8627 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8628
11889732
AC
86292003-04-04 Andrew Cagney <cagney@redhat.com>
8630
8631 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8632 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8633 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8634 get_frame_base.
8635 (d10v_unwind_dummy_id): Use frame_id_build.
8636 * frame.c (find_frame_sal): Use get_frame_pc.
8637 (create_new_frame): Use deprecated_update_frame_pc_hack and
8638 deprecated_update_frame_base_hack.
8639 (create_sentinel_frame): Add comment about ->pc going away.
8640 (get_prev_frame): Add comment about ->pc going away.
8641 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8642 frame_id_build, deprecated_update_frame_pc_hack and
8643 deprecated_update_frame_base_hack.
8644 (select_frame): Use get_frame_pc.
8645 (legacy_saved_regs_this_id): Use frame_id_build.
8646
50c46a0d
EZ
86472003-04-04 Elena Zannoni <ezannoni@redhat.com>
8648
fbe586ae
RH
8649 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8650 signed integer case.
8651 (classify_argument): Handle enumerations and references.
50c46a0d 8652
50bbdbd9
AC
86532003-04-04 Andrew Cagney <cagney@redhat.com>
8654
8655 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8656 ID to NULL.
8657
36018d2e
AF
86582003-04-01 Adam Fedor <fedor@gnu.org>
8659
8660 * gdb/objc-lang.c (selectors_info): Replace calls to
8661 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8662 SYMBOL_NATURAL_NAME.
8663 (classes_info, find_methods): Likewise.
8664
35cec841
KB
86652003-04-03 Kevin Buettner <kevinb@redhat.com>
8666
8667 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8668 ``mach'' to the value determined by bfd_default_set_arch_mach().
8669
43136899
BR
86702003-04-02 Bob Rossi <bob_rossi@cox.net>
8671
8672 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8673 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8674 (mi-cmd-file.o): Update dependencies.
8675
040b99fd
KB
86762003-04-01 Kevin Buettner <kevinb@redhat.com>
8677
8678 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8679 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8680
9a3d7dfd
AF
86812003-04-01 Adam Fedor <fedor@gnu.org>
8682
8683 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8684 * language.h (struct language_defn): Add la_demangle.
8685 (language_demangle): Declare.
8686 * language.c (language_demangle): New function.
8687 (unk_lang_demangle): Likewise.
8688 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8689 Add ukn_lang_demangle.
9a3d7dfd 8690 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8691 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8692 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8693 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8694 * jv-lang.c (java_demangle): New function
8695 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8696 * objc-lang.c (objc_demangle): Add options argument
8697 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8698 * maint.c (maintenance_demangle): Replace switch with
8699 call to language_demangle.
8700 * utils.c (fprintf_symbol_filtered): Likewise.
8701
5e074003
AC
87022003-04-01 Andrew Cagney <cagney@redhat.com>
8703
8704 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8705 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8706 PRINT_TYPELESS_INTEGER.
8707 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8708 PUSH_RETURN_ADDRESS.
8709
270cb5d6
AC
87102003-04-01 Andrew Cagney <cagney@redhat.com>
8711
8712 * Makefile.in (d10v-tdep.o): Update dependencies.
8713 * d10v-tdep.c: Include "frame-base.h".
8714 (d10v_frame_unwind): Make constant.
8715 (d10v_frame_base_address): New function.
8716 (d10v_frame_base): New variable.
8717 (d10v_gdbarch_init): Set frame_base default.
8718 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8719 comment for base.
8720 (d10v_frame_unwind_cache): Set and use "prev_sp".
8721 (d10v_frame_this_id): Use the previous frame's inner most stack
8722 address and this frame's func address for the frame ID. Use
8723 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8724
6bfb3e36
AC
87252003-04-01 Andrew Cagney <cagney@redhat.com>
8726
8727 * frame.h (get_frame_locals_address, get_frame_args_address):
8728 Refer to the base address, instead of the address of the first
8729 local or parameter.
8ffd9b1b 8730
da62e633
AC
87312003-04-01 Andrew Cagney <cagney@redhat.com>
8732
8733 Add frame debug info addresses:
8734 * frame-base.c: New file.
8735 * frame-base.h: New file.
8736 * frame.h (struct frame_base): Add opaque declaration.
8737 (get_frame_base): Update comment.
8738 (get_frame_base_address): Declare.
8739 (get_frame_locals_address): Declare.
8740 (get_frame_args_address): Declare.
8741 (struct frame_info): Add "base" and "base_cache". Update
8742 comments on the unwinder.
8743 * frame.c: Include "frame-base.h".
8744 (get_frame_locals_address): New function.
8745 (get_frame_base_address): New function.
8746 (get_frame_args_address): New function.
8747 * findvar.c (read_var_value): Use get_frame_locals_address and
8748 get_frame_args_address.
8749 * stack.c (frame_info): Use get_frame_locals_address and
8750 get_frame_args_address.
8751 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8752 moved to "frame-base.c".
8753 * printcmd.c (print_frame_nameless_args): Ditto.
8754 * symtab.h (address_class): Update comments.
8755 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8756 get_frame_base_address.
8757 * dwarf2expr.c (execute_stack_op): Ditto.
8758 * Makefile.in (frame_base_h): Define.
8759 (frame.o): Update dependencies.
8760 (frame-base.o): Add dependencies.
8761 (SFILES): Add frame-base.c.
8762 (COMMON_OBS): Add frame-base.o.
8763
3d30e9c2
AC
87642003-04-01 Andrew Cagney <cagney@redhat.com>
8765
8766 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8767 CALL_DUMMY_LENGTH): Ditto.
8768 * gdbarch.c: Re-generate.
8769 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8770 (CALL_DUMMY_LENGTH): Delete macro.
8771 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8772 * arm-tdep.c (arm_gdbarch_init): Ditto.
8773 * avr-tdep.c (avr_gdbarch_init): Ditto.
8774 * cris-tdep.c (cris_gdbarch_init): Ditto.
8775 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8776 * frv-tdep.c (frv_gdbarch_init): Ditto.
8777 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8778 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8779 * i386-tdep.c (i386_gdbarch_init): Ditto.
8780 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8781 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8782 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8783 * mips-tdep.c (mips_gdbarch_init): Ditto.
8784 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8785 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8786 * s390-tdep.c (s390_gdbarch_init): Ditto.
8787 * sh-tdep.c (sh_gdbarch_init): Ditto.
8788 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8789 * v850-tdep.c (v850_gdbarch_init): Ditto.
8790 * vax-tdep.c (vax_gdbarch_init): Ditto.
8791 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8792
ce0c7262
CV
87932003-04-01 Corinna Vinschen <vinschen@redhat.com>
8794
8795 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8796
73dd234f
AC
87972003-04-01 Andrew Cagney <cagney@redhat.com>
8798
8799 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8800 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8801 * gdbarch.h, gdbarch.c: Re-generate.
8802 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8803 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8804 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8805 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8806 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8807 * infcmd.c (run_stack_dummy): Simplify assuming
8808 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8809 * infrun.c (handle_inferior_event): Ditto.
8810 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8811 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8812 * arm-tdep.c (arm_gdbarch_init): Ditto.
8813 * avr-tdep.c (avr_gdbarch_init): Ditto.
8814 * cris-tdep.c (cris_gdbarch_init): Ditto.
8815 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8816 * frv-tdep.c (frv_gdbarch_init): Ditto.
8817 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8818 * i386-tdep.c (i386_gdbarch_init): Ditto.
8819 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8821 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8822 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8823 * mips-tdep.c (mips_gdbarch_init): Ditto.
8824 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8825 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8826 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8827 * s390-tdep.c (s390_gdbarch_init): Ditto.
8828 * sh-tdep.c (sh_gdbarch_init): Ditto.
8829 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8830 * v850-tdep.c (v850_gdbarch_init): Ditto.
8831 * vax-tdep.c (vax_gdbarch_init): Ditto.
8832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8833
97606a13
DJ
88342003-04-01 Daniel Jacobowitz <drow@mvista.com>
8835
8836 * symfile.c (symfile_relocate_debug_section): Update call to
8837 bfd_simple_get_relocated_section_contents.
8838
e8ab51f7
AC
88392003-03-31 Andrew Cagney <cagney@redhat.com>
8840
8841 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8842 * gdbarch.h, gdbarch.c: Regenerate.
8843 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8844 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8845 available.
8846 * frame.h (generic_fix_call_dummy): Delete declaration.
8847 * dummy-frame.h: Update comment.
8848 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8850 fix_call_dummy.
8851 * sh-tdep.c (sh_gdbarch_init): Ditto.
8852 * s390-tdep.c (s390_gdbarch_init): Ditto.
8853 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8854 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8856 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8857 * i386-tdep.c (i386_gdbarch_init): Ditto.
8858 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8859 * frv-tdep.c (frv_gdbarch_init): Ditto.
8860 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8861 * cris-tdep.c (cris_gdbarch_init): Ditto.
8862 * avr-tdep.c (avr_gdbarch_init): Ditto.
8863 * arm-tdep.c (arm_gdbarch_init): Ditto.
8864
018d1b48
JB
88652003-03-31 J. Brobecker <brobecker@gnat.com>
8866
8867 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8868 (INIT_FRAME_AP): Likewise.
8869 (EXTRA_FRAME_INFO): Likewise.
8870
e9a2674e
AC
88712003-03-31 Andrew Cagney <cagney@redhat.com>
8872
8873 * gdbarch.sh: Include "symfile.h".
8874 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8875 * gdbarch.h, gdbarch.c: Re-generate.
8876 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8878 call_dummy_address, the default is at entry_point_address.
8879 * v850-tdep.c (v850_gdbarch_init): Ditto.
8880 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8881 * sh-tdep.c (sh_gdbarch_init): Ditto.
8882 * s390-tdep.c (s390_gdbarch_init): Ditto.
8883 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8884 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8885 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8886 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8887 * i386-tdep.c (i386_gdbarch_init): Ditto.
8888 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8889 * frv-tdep.c (frv_gdbarch_init): Ditto.
8890 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8891 * cris-tdep.c (cris_gdbarch_init): Ditto.
8892 * arm-tdep.c (arm_gdbarch_init): Ditto.
8893
e8a8712a
AC
88942003-03-31 Andrew Cagney <cagney@redhat.com>
8895
8896 * gdbarch.sh (CALL_DUMMY_P): Delete.
8897 * gdbarch.h, gdbarch.c: Re-generate.
8898 * inferior.h (CALL_DUMMY_P): Delete macro.
8899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8900 * vax-tdep.c (vax_gdbarch_init): Update.
8901 * v850-tdep.c (v850_gdbarch_init): Update.
8902 * sparc-tdep.c (sparc_gdbarch_init): Update.
8903 * sh-tdep.c (sh_gdbarch_init): Update.
8904 * s390-tdep.c (s390_gdbarch_init): Update.
8905 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8906 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8907 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8908 * mips-tdep.c (mips_gdbarch_init): Update.
8909 * mcore-tdep.c (mcore_gdbarch_init): Update.
8910 * m68k-tdep.c (m68k_gdbarch_init): Update.
8911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8912 * ia64-tdep.c (ia64_gdbarch_init): Update.
8913 * i386-tdep.c (i386_gdbarch_init): Update.
8914 * h8300-tdep.c (h8300_gdbarch_init): Update.
8915 * frv-tdep.c (frv_gdbarch_init): Update.
8916 * d10v-tdep.c (d10v_gdbarch_init): Update.
8917 * cris-tdep.c (cris_gdbarch_init): Update.
8918 * breakpoint.c (deprecated_frame_in_dummy): Update.
8919 * avr-tdep.c (avr_gdbarch_init): Update.
8920 * alpha-tdep.c (alpha_gdbarch_init): Update.
8921 * arm-tdep.c (arm_gdbarch_init): Update.
8922 * dummy-frame.c (dummy_frame_this_id): Update comments.
8923 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8924 * frame.c (legacy_get_prev_frame): Ditto.
8925 * valops.c (call_function_by_hand): Delete function.
8926 (hand_function_call): Rename to call_function_by_hand
8927
ed234cf8
AC
89282003-03-30 Andrew Cagney <cagney@redhat.com>
8929
8930 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8931 * value.h (struct value): Update comment.
ed234cf8 8932
06c77151
AC
89332003-03-30 Andrew Cagney <cagney@redhat.com>
8934
6c2b5168
AC
8935 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8936 D10V_FP_REGNUM.
8937 (d10v_gdbarch_init): Do not set fp_regnum.
8938
06c77151
AC
8939 * frame.c (get_frame_base): Force ID initialization.
8940 (get_prev_frame): Move computation of the frame ID from here ...
8941 (get_frame_id): ... to here.
8942 (legacy_get_prev_frame): Mark the frame ID as valid.
8943 * frame.h (struct frame_info): Add field "id_p".
8944
97a1a11c
MK
89452003-03-30 Mark Kettenis <kettenis@gnu.org>
8946
8947 * i386-tdep.c (i386_store_struct_return): Removed.
8948 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8949
6c0e89ed
AC
89502003-03-30 Andrew Cagney <cagney@redhat.com>
8951
8952 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8953 * gdbarch.h, gdbarch.c: Regenerate.
8954 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8956 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8957 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8958 * i386-tdep.c (i386_gdbarch_init): Ditto.
8959 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8960 * cris-tdep.c (cris_gdbarch_init): Ditto.
8961 * vax-tdep.c (vax_gdbarch_init): Ditto.
8962 * s390-tdep.c (s390_gdbarch_init): Ditto.
8963 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8964 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8965 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8966 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8967 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8968 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8969 * sparc-tdep.c (sparc_gdbarch_init): Update.
8970 * sh-tdep.c (sh_gdbarch_init): Update.
8971 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8972 * mips-tdep.c (mips_gdbarch_init): Update.
8973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8974 * ia64-tdep.c (ia64_gdbarch_init): Update.
8975 * frv-tdep.c (frv_gdbarch_init): Update.
8976 * avr-tdep.c (avr_gdbarch_init): Update.
8977 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8978 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8979 instead of when push_dummy_call is not available.
8ffd9b1b 8980
f7dd6af2
AC
89812003-03-30 Andrew Cagney <cagney@redhat.com>
8982
8983 * infttrace.c: Include "gdbthread.h".
8984 (parent_attach_all): Fix function signature.
8985 (call_ptrace): Update call.
8986 * Makefile.in (infttrace.o): Update dependencies.
8987
28f617b3
AC
89882003-03-30 Andrew Cagney <cagney@redhat.com>
8989
8990 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8991 PUSH_RETURN_ADDRESS.
8992 * gdbarch.h, gdbarch.c: Regenerate.
8993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8994 * x86-64-tdep.c (x86_64_init_abi): Update.
8995 * v850-tdep.c (v850_gdbarch_init): Update.
8996 * sparc-tdep.c (sparc_gdbarch_init): Update.
8997 * sh-tdep.c (sh_gdbarch_init): Update.
8998 * s390-tdep.c (s390_gdbarch_init): Update.
8999 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9001 * mips-tdep.c (mips_gdbarch_init): Update.
9002 * mcore-tdep.c (mcore_gdbarch_init): Update.
9003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9004 * ia64-tdep.c (ia64_gdbarch_init): Update.
9005 * i386-tdep.c (i386_gdbarch_init): Update.
9006 * h8300-tdep.c (h8300_gdbarch_init): Update.
9007 * frv-tdep.c (frv_gdbarch_init): Update.
9008 * cris-tdep.c (cris_gdbarch_init): Update.
9009 * avr-tdep.c (avr_gdbarch_init): Update.
9010 * arm-tdep.c (arm_gdbarch_init): Update.
9011 * valops.c (hand_function_call): Update.
9012
4d628cd7
AC
90132003-03-29 Andrew Cagney <cagney@redhat.com>
9014
9015 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9016 sizeof_call_dummy_words.
9017 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9018 define.
9019 * gdbarch.h: Regenerate.
8ffd9b1b 9020
65e82032
AC
90212003-03-29 Andrew Cagney <cagney@redhat.com>
9022
9023 * infttrace.h: New file.
9024 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9025 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9026 (hpread_read_doc_function_type): Detect an initialized type1.
9027 (hpread_quick_traverse): Initialize mod_name_string.
9028 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9029 (som_solib_get_solib_by_pc): Declare.
9030 (so_lib_thread_start_addr): Declare.
9031 (no_shared_libraries): Declare.
9032 * somread.c (init_import_symbols): Make static. Add forward
9033 declaration.
9034 * config/pa/nm-hppah.h: Include "infttrace.h" for
9035 parent_attach_all.
9036 (hppa_insert_hw_watchpoint): Declare.
9037 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9038 * hppah-nat.c: Include "gdb_string.h".
9039 (parent_attach_all): Delete extern declaration, moved to
9040 "infttrace.h".
9041 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9042 int.
9043 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9044 * Makefile.in (infttrace_h): Define.
9045 (hpread.o): Update dependencies.
9046 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9047 * hppa-hpux-tdep.c: Include "gdb_string.h".
9048 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9049 * infrun.c (handle_inferior_event): Always initialize
9050 stepped_after_stopped_by_watchpoint. Add default and remove
9051 fallthrough in switch statement.
9052 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9053 parameter to int.
9054 (hppa_remove_hw_watchpoint): Ditto.
9055
2c3bbe77
AC
90562003-03-29 Andrew Cagney <cagney@redhat.com>
9057
9058 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9059 offset.
9060
2dd604e7
RE
90612003-03-29 Richard Earnshaw <rearnsha@arm.com>
9062
9063 * arm-tdep.c (arm_push_arguments): Delete.
9064 (struct stack_item): New type.
9065 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9066 (arm_store_struct_return): Delte.
9067 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9068 arm_push_arguments or arm_store_struct_return.
9069
e8933a55
AC
90702003-03-28 Andrew Cagney <cagney@redhat.com>
9071
9072 * Makefile.in (d10v-tdep.o): Update dependencies.
9073 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9074 * d10v-tdep.c: Include "remote.h".
9075 (target_resume_hook): Delete extern declaration.
9076 (target_wait_loop_hook): Ditto.
9077 (tdisassemble_command): Eliminate assignment in "if" conditional.
9078 (d10v_ts2_register_sim_regno): Eliminate call to
9079 legacy_register_sim_regno.
9080 (d10v_ts3_register_sim_regno): Ditto.
9081
6949171e
JJ
90822003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9083
9084 * thread.c: Reindented.
9085 * lin-lwp.c: Ditto.
9086 * linux-proc.c: Ditto.
9087
98c7071f
BR
90882003-03-28 Bob Rossi <bob_rossi@cox.net>
9089
fbe586ae 9090 * MAINTAINERS (write after approval): Add myself.
98c7071f 9091
5edc9ca6
TR
90922003-03-27 Theodore A. Roth <troth@openavr.org>
9093
9094 * objc-exp.y: Add missing semi-colons.
9095
378bfd1b
AC
90962003-03-27 Andrew Cagney <cagney@redhat.com>
9097
9098 * regcache.c (write_sp): Delete function and references.
9099 * inferior.h (write_sp): Delete declaration.
9100 * valops.c (hand_function_call): Replace write_sp with
9101 TARGET_WRITE_SP.
9102 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9103 (sparc_pop_frame): Ditto.
8ffd9b1b 9104
56056df7
AC
91052003-03-27 Andrew Cagney <cagney@redhat.com>
9106
9107 * NEWS: Mention removal of support for hppa*-*-bsd* and
9108 hppa*-*-osf* natives, and hppa*-*-pro* target.
9109 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9110 * config/pa/xm-pa.h: Obsolete file.
9111 * config/pa/xm-hppab.h: Obsolete file.
9112 * config/pa/nm-hppab.h: Obsolete file.
9113 * config/pa/tm-hppab.h: Obsolete file.
9114 * config/pa/tm-hppao.h: Obsolete file.
9115 * config/pa/nm-hppao.h: Obsolete file.
9116 * config/pa/tm-pro.h: Obsolete file.
9117 * config/pa/hppaosf.mt: Obsolete file.
9118 * config/pa/hppaosf.mh: Obsolete file.
9119 * config/pa/hppapro.mt: Obsolete file.
9120 * config/pa/hppabsd.mt: Obsolete file.
9121 * config/pa/hppabsd.mh: Obsolete file.
9122 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9123 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9124 hppa*-*-osf*.
9125
5873a88d
AC
91262003-03-27 Andrew Cagney <cagney@redhat.com>
9127
9128 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9129 push_arguments. Don't set push_return_address or write_sp.
9130 (d10v_push_dummy_call): Replace d10v_push_arguments.
9131 (d10v_push_return_address, d10v_write_sp): Delete function,
9132 handled by push_dummy_call.
9133
b81774d8
AC
91342003-03-26 Andrew Cagney <cagney@redhat.com>
9135
9136 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9137 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9138 regcache and dummy_addr parameters.
9139 * gdbarch.h, gdbarch.c: Re-generate.
9140 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9141 available; assume it will handle stack alignment and return
9142 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9143 legacy_push_arguments.
9144 (legacy_push_arguments): Rename default_push_arguments.
9145 * value.h (legacy_push_arguments): Rename default_push_arguments.
9146 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9147 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9148 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9149 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9150 * config/i386/tm-symmetry.h: Update.
9151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9152 * x86-64-tdep.c (x86_64_init_abi): Update.
9153 * v850-tdep.c (v850_gdbarch_init): Update.
9154 * sparc-tdep.c (sparc_gdbarch_init): Update.
9155 * sh-tdep.c (sh_gdbarch_init): Update.
9156 * s390-tdep.c (s390_gdbarch_init): Update.
9157 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9158 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9159 * mips-tdep.c (mips_gdbarch_init): Update.
9160 * mcore-tdep.c (mcore_gdbarch_init): Update.
9161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9162 * ia64-tdep.c (ia64_gdbarch_init): Update.
9163 * i386-tdep.c (i386_gdbarch_init): Update.
9164 * hppa-tdep.c (hppa_gdbarch_init): Update.
9165 * h8300-tdep.c (h8300_gdbarch_init): Update.
9166 * frv-tdep.c (frv_gdbarch_init): Update.
9167 * d10v-tdep.c (d10v_gdbarch_init): Update.
9168 * cris-tdep.c (cris_gdbarch_init): Update.
9169 * avr-tdep.c (avr_gdbarch_init): Update.
9170 * arm-tdep.c (arm_gdbarch_init): Update.
9171 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9172 * alpha-tdep.c (alpha_gdbarch_init): Update.
9173
f541410f
DJ
91742003-03-26 Daniel Jacobowitz <drow@mvista.com>
9175
9176 * signals/signals.c (do_target_signal_to_host): Correct realtime
9177 signal range test.
9178
69f567ae
DJ
91792003-03-26 Daniel Jacobowitz <drow@mvista.com>
9180
9181 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9182 (struct sal_chain, map_catch_names): Remove.
9183 (catch_exception_command_1): Don't call
9184 handle_gnu_4_16_catch_command.
9185
d5d14a5a
DJ
91862003-03-26 Daniel Jacobowitz <drow@mvista.com>
9187
9188 From Mark Dettinger <dettinge@de.ibm.com>:
9189 * dwarf2cfi.c (read_2u): Increment pointer by two.
9190
bdd73e22
DJ
91912003-03-26 Daniel Jacobowitz <drow@mvista.com>
9192
9193 * signals/signals.c: Fix typos in last change.
9194
960cb555
DJ
91952003-03-26 Daniel Jacobowitz <drow@mvista.com>
9196
9197 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9198 not already defined. Use __SIGRTMIN if available.
9199 (target_signal_from_host): Remove SIGRTMIN block.
9200 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9201 the signal is within the realtime range.
9202
f636b87d
AF
92032003-03-25 Adam Fedor <fedor@gnu.org>
9204
9205 * Makefile.in (infrun.o): Add $(language_h)
9206 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9207 for language specific trampolines.
9208 * language.h (struct language_defn): Add skip_trampoline.
9209 (skip_language_trampoline): Declare.
9210 * language.c (unk_lang_trampoline, skip_language_trampoline):
9211 New functions.
9212 (unknown_language_defn, auto_language_defn, local_language_defn):
9213 Add ukn_lang_trampoline.
9214 * ada-lang.c (ada_language_defn): Add NULL for language
9215 specific skip_trampoline.
9216 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9217 scm-lang.c: Likewise.
9218 * objc-lang.c (objc_skip_trampoline): New function.
9219 (objc_language_defn): Add objc_skip_trampoline.
9220
28f617b3 92212003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9222
9223 * frame.c (get_prev_frame): Delay validating a frame's ID -
9224 non-NULL, didn't go backwards - until an attempt to unwind it to
9225 the previous frame.
9226
f933a9c5
AC
92272003-03-25 Andrew Cagney <cagney@redhat.com>
9228
9229 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9230 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9231 * gdbarch.h, gdbarch.c: Re-generate.
9232 * config/sparc/tm-sparc.h
9233 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9234 * sparc-tdep.c (sparc_gdbarch_init): Set
9235 deprecated_extra_stack_alignment_needed.
9236 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9237 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9238 extra_stack_alignment_needed.
9239 * v850-tdep.c (v850_gdbarch_init): Ditto.
9240 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9241 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9242 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9243 * cris-tdep.c (cris_gdbarch_init): Ditto.
9244 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9246
4183d812
AC
92472003-03-25 Andrew Cagney <cagney@redhat.com>
9248
9249 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9250 STORE_STRUCT_RETURN.
9251 * gdbarch.h, gdbarch.c: Regenerate.
9252 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9253 (d10v_push_arguments): Set the struct return register.
9254 (d10v_gdbarch_init): Update.
9255 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9256 * x86-64-tdep.c (x86_64_init_abi): Update.
9257 * vax-tdep.c (vax_gdbarch_init): Update.
9258 * v850-tdep.c (v850_gdbarch_init): Update.
9259 * sparc-tdep.c (sparc_gdbarch_init): Update.
9260 * sh-tdep.c (sh_gdbarch_init): Update.
9261 * s390-tdep.c (s390_gdbarch_init): Update.
9262 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9263 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9264 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9265 * mips-tdep.c (mips_gdbarch_init): Update.
9266 * mcore-tdep.c (mcore_gdbarch_init): Update.
9267 * m68k-tdep.c (m68k_gdbarch_init): Update.
9268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9269 * ia64-tdep.c (ia64_gdbarch_init): Update.
9270 * i386-tdep.c (i386_gdbarch_init): Update.
9271 * hppa-tdep.c (hppa_gdbarch_init): Update.
9272 * h8300-tdep.c (h8300_gdbarch_init): Update.
9273 * frv-tdep.c (frv_gdbarch_init): Update.
9274 * cris-tdep.c (cris_gdbarch_init): Update.
9275 * avr-tdep.c (avr_gdbarch_init): Update.
9276 * arm-tdep.c (arm_gdbarch_init): Update.
9277 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9278
1bf6d5cc
AC
92792003-03-25 Andrew Cagney <cagney@redhat.com>
9280
9281 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9282 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9283 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9284 * gdbarch.h, gdbarch.c: Regenerate.
9285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9286 call_dummy_stack_adjust_p.
9287 * vax-tdep.c (vax_gdbarch_init): Ditto.
9288 * v850-tdep.c (v850_gdbarch_init): Ditto.
9289 * sh-tdep.c (sh_gdbarch_init): Ditto.
9290 * s390-tdep.c (s390_gdbarch_init): Ditto.
9291 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9292 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9293 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9294 * mips-tdep.c (mips_gdbarch_init): Ditto.
9295 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9296 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9298 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9299 * i386-tdep.c (i386_gdbarch_init): Ditto.
9300 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9301 * frv-tdep.c (frv_gdbarch_init): Ditto.
9302 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9303 * cris-tdep.c (cris_gdbarch_init): Ditto.
9304 * avr-tdep.c (avr_gdbarch_init): Ditto.
9305 * arm-tdep.c (arm_gdbarch_init): Ditto.
9306 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9307 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9308 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9309 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9310 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9311 call_dummy_stack_adjust_p.
9312 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9313 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9314 * sparc-tdep.c (sparc32_push_arguments): Update.
9315 * valops.c (hand_function_call): Update.
9316
71c08af0
CV
93172003-03-25 Corinna Vinschen <vinschen@redhat.com>
9318
9319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9320 set_gdbarch_char_signed.
9321
30757f90
RE
93222003-03-25 Richard Earnshaw <rearnsha@arm.com>
9323
9324 PR cli/548
9325 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9326
03d48a7d
RE
93272003-03-25 Richard Earnshaw <rearnsha@arm.com>
9328
9329 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9330 (_initialize_arm_tdep): Don't set tm_print_insn.
9331
2cf6873c
AF
93322003-03-24 Adam Fedor <fedor@gnu.org>
9333
9334 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9335 * objc-lang.h: Add multiple inclusion protection.
9336 (start_msglist, add_msglist, end_msglist): Additional declarations.
9337
17c0759e
RE
93382003-03-24 Richard Earnshaw <rearnsha@arm.com>
9339
9340 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9341 value was renamed to ARM_FLOAT_SOFT_FPA.
9342
618ce49f
AC
93432003-03-23 Andrew Cagney <cagney@redhat.com>
9344
9345 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9346 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9347 * gdbarch.h, gdbarch.c: Regenerate.
9348 * valops.c (hand_function_call): Update.
9349 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9350 * frame.c (legacy_saved_regs_this_id): Update.
9351 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9352 * dummy-frame.h: Update.
9353 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9354 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9355 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9356 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9357 * config/m68k/tm-sun3.h: Update.
9358 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9360 * x86-64-tdep.c (x86_64_init_abi): Update.
9361 * vax-tdep.c (vax_gdbarch_init): Update.
9362 * v850-tdep.c (v850_gdbarch_init): Update.
9363 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9364 * sh-tdep.c (sh_gdbarch_init): Update.
9365 * s390-tdep.c (s390_gdbarch_init): Update.
9366 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9367 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9368 (frame_get_saved_regs): Update.
9369 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9370 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9371 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9372 * mips-tdep.c (mips_gdbarch_init): Update.
9373 * mcore-tdep.c (mcore_gdbarch_init): Update.
9374 * m68k-tdep.c (m68k_gdbarch_init): Update.
9375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9376 * ia64-tdep.c (ia64_gdbarch_init): Update.
9377 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9378 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9379 (i386_interix_back_one_frame): Update.
9380 * hppa-tdep.c (hppa_gdbarch_init): Update.
9381 (hppa_init_extra_frame_info): Update.
9382 * h8300-tdep.c (h8300_gdbarch_init): Update.
9383 * frv-tdep.c (frv_gdbarch_init): Update.
9384 * cris-tdep.c (cris_gdbarch_init): Update.
9385 * avr-tdep.c (avr_gdbarch_init): Update.
9386 * arm-tdep.c (arm_gdbarch_init): Update.
9387 * alpha-tdep.c (alpha_gdbarch_init): Update.
9388
fd50bc42
RE
93892003-03-22 Richard Earnshaw <rearnsha@arm.com>
9390
9391 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9392 (arm_get_fp_model): Declare.
9393 * arm-tdep.c (fp_model_strings): New string array.
9394 (arm_fp_model, current_fp_model): New variables.
9395 (arm_get_fp_model): New function.
9396 (arm_set_fp): New function.
9397 (set_fp_model_sfunc): New function.
9398 (show_fp_model): New function.
9399 (_initialize_arm_tdep): Add new command to set/show the FPU.
9400 (arm_extract_return_value): Use arm_get_fp_model.
9401 (arm_store_return_value): Likewise.
9402 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9403 to initialize the floating-point data types.
9404 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9405 model is FPA.
9406
26304000
RE
94072003-03-22 Richard Earnshaw <rearnsha@arm.com>
9408
9409 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9410 the current setting of each value.
9411 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9412 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9413 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9414 commands and add new version as subcommands of "set/show arm".
9415
afd7eef0
RE
94162003-03-22 Richard Earnshaw <rearnsha@arm.com>
9417
9418 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9419 (set_arm_command, show_arm_command): New functions.
9420 (_initialize_arm_tdep): Add them.
9421 (num_disassembly_options): Renamed from num_flavor_options.
9422 (valid_disassembly_styles): Renamed from valid_flavors.
9423 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9424 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9425 set_disassembly_flavor_sfunc.
9426 (set_disassembly_style): Renamed from set_disassembly_flavor.
9427 (arm_othernames): Updated.
9428 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9429 command. Add "set/show arm disassembly" commands. Deprecate
9430 "othernames" command.
9431
299a7944
RE
94322003-03-22 Richard Earnshaw <rearnsha@arm.com>
9433
9434 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9435 (arm-tdep.o): Depend on elf_arm_h.
9436
c1dac9e6
RE
94372003-03-22 Richard Earnshaw <rearnsha@arm.com>
9438
9439 * Makefile.in (coff_internal_h): Define.
9440 (arm-tdep.o): Update dependencies.
9441
2702d96c
RE
94422003-03-22 Richard Earnshaw <rearnsha@arm.com>
9443
9444 * arm-tdep.c (prologue_cache): Delete.
9445 (check_prologue_cache, save_prologue_cache): Delete.
9446 (arm_scan_prologue): Don't check or update the prologue_cache.
9447 (arm_gdb_arch_init): Don't initialize it.
9448 (_initialize_arm_tdep): Likewise.
9449
27d5d74b
SC
94502003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9451
9452 * MAINTAINERS (tui): Maintainer of tui code.
9453
1762d96d
CV
94542003-03-21 Corinna Vinschen <vinschen@redhat.com>
9455
9456 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9457 (i386-cygwin-tdep.o): Add dependencies.
9458 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9459 * i386-cygwin-tdep.c: New file.
9460 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9461 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9462
4c2e2391
AC
94632003-03-20 Andrew Cagney <cagney@redhat.com>
9464
f20d38b7
AC
9465 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9466 (handle_inferior_event): Remove code calling
9467 DYNAMIC_TRAMPOLINE_NEXTPC.
9468
0022b738
AC
9469 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9470 already has a full path.
9471
864dbc90
AC
9472 * main.c (gdb_main): Return 1.
9473 (captured_main): Call error to report an invalid interpreter.
9474
4c2e2391
AC
9475 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9476 * alpha-osf1-tdep.c: Include "gdb_string.h".
9477
5ef7553b
JB
94782003-03-19 J. Brobecker <brobecker@gnat.com>
9479
9480 Continuing work to convert the hppa targets to multiarch partial.
9481
9482 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9483 method, now that hppa_push_dummy_frame has a conformant prototype.
9484 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9485 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9486 for the switch to multiarch partial.
9487
7bde8967
KB
94882003-03-19 Kevin Buettner <kevinb@redhat.com>
9489
9490 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9491 when iss is issNull.
9492
b006a9e9
KB
94932003-03-18 Kevin Buettner <kevinb@redhat.com>
9494
9495 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9496 NUM_REGS bounds check.
9497
5e2e9765
KB
94982003-03-18 Kevin Buettner <kevinb@redhat.com>
9499
9500 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9501 * mips-tdep.c (gdb_assert.h): Include.
9502 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9503 (mips_register_name): Handle integer registers explicitly. Add
9504 bounds checking.
9505 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9506 (mips_lsi33k_reg_names): Don't list integer registers; they're
9507 handled by mips_register_name() now.
9508 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9509 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9510 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9511 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9512 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9513
a2867626
AC
95142003-03-18 Andrew Cagney <cagney@redhat.com>
9515
9516 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9517 a void pointer.
9518 * gdbtypes.h (print_scalar_formatted): Update declaration.
9519 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9520
06600e06
JB
95212003-03-18 J. Brobecker <brobecker@gnat.com>
9522
9523 * infrun.c (observer.h): Add #include.
9524 (normal_stop): Add call to observer_notify_normal_stop.
9525 * Makefile.in (infrun.o): Add dependency on observer.h.
9526
7daf4f5b
JB
95272003-03-18 J. Brobecker <brobecker@gnat.com>
9528
9529 Continuing work to convert the hppa targets to multiarch partial.
9530 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9531 parameter. Reformat comment.
9532 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9533 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9534 to match new profile.
9535
3371ccc0
JB
95362003-03-18 J. Brobecker <brobecker@gnat.com>
9537
9538 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9539 appear to be working in any case.
9540
4fbe891e
JB
95412003-03-18 J. Brobecker <brobecker@gnat.com>
9542
9543 * observer.c (observer_test_first_observer): New static variable.
9544 (observer_test_second_observer): Likewise.
9545 (observer_test_third_observer): Likewise.
9546 (observer_test_first_notification_function): New static function.
9547 (observer_test_second_notification_function): Likewise.
9548 (observer_test_third_notification_function): Likewise.
9549
a7ff40e7
JB
95502003-03-17 J. Brobecker <brobecker@gnat.com>
9551
9552 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9553 * somsolib.c (gdb_assert.h): Likewise.
9554 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9555 (somsolib.o): Likewise.
9556
26ca4152
AC
95572003-03-17 Andrew Cagney <cagney@redhat.com>
9558
9559 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9560 BFD. Simplify setting of di.endian.
9561
0a613259
AC
95622003-03-17 Andrew Cagney <cagney@redhat.com>
9563
9564 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9565 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9566
9567 From Elena Zannoni <ezannoni@redhat.com>
9568 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9569 vector and floating-point parameters.
9570 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9571 convention.
9572 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9573
1132738f
FN
95742003-03-17 Fernando Nasser <fnasser@redhat.com>
9575
9576 * MAINTAINERS: Remove my name from several maintainership roles.
9577
6dc42492
AC
95782003-03-17 Andrew Cagney <cagney@redhat.com>
9579
9580 Fix frame off-by-one bug.
9581 * frame-unwind.h (frame_this_id_ftype): Replace
9582 frame_unwind_id_ftype.
9583 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9584 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9585 with "prev_register".
9586 * frame-unwind.c (frame_unwind_find_by_pc): Return
9587 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9588 comment.
9589 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9590 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9591 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9592 (dummy_frame_unwind): Update.
9593 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9594 sentinel_frame_register_unwind.
9595 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9596 (sentinel_frame_unwinder): Update.
9597 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9598 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9599 * frame.c (create_sentinel_frame): Update. Initialize
9600 "prologue_cache" instead of "unwind_cache".
9601 (frame_register_unwind): Call this frame's prev_register with the
9602 next frame and this frame's prologue cache.
9603 (get_prev_frame): Simplify. Always call prev frame's this_id with
9604 this frame and prev frame's prologue cache. Document that this
9605 call is shifted one to the left when compared to the
9606 frame_register_unwind call.
9607 (legacy_saved_regs_prev_register): Replace
9608 frame_saved_regs_register_unwind.
9609 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9610 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9611 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9612 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9613 (d10v_frame_unwind): Update.
9614 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9615 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9616 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9617 "saved_regs" with "this_saved_regs".
9618
efd710d6
AC
96192003-03-16 Andrew Cagney <cagney@redhat.com>
9620
9621 * frame.c (frame_pop): Don't call target_store_registers. Fix
9622 problem reported by Mark Kettenis.
9623
4e259f09
MK
96242003-03-16 Mark Kettenis <kettenis@gnu.org>
9625
9626 * i386-tdep.c (i386_register_type): Renamed from
9627 i386_register_virtual_type. Adjust function signature.
9628 (i386_gdbarch_init): Set register_type instead of
9629 deprecated_max_register_raw_size,
9630 deprecated_max_register_virtual_size and register_virtual_type.
9631
055bb976
AC
96322003-03-14 Andrew Cagney <cagney@redhat.com>
9633
9634 * frame.c (get_prev_frame): When a legacy frame, always call
9635 legacy_get_prev_frame. Simplify unwind code using assumption that
9636 the unwinder is new.
9637 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9638 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9639 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9640
ac2adee5
AC
96412003-03-14 Andrew Cagney <cagney@redhat.com>
9642
9643 * frame.c (get_saved_register): Delete function.
9644 * frame.h (get_saved_register): Delete declaration.
9645 * xstormy16-tdep.c: Update comment.
9646 * regcache.h: Update comments.
9647 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9648 get_saved_register and extract_address, use
9649 frame_read_unsigned_register.
9650 (sparc_frame_saved_pc): Ditto.
9651 (sparc_get_saved_register): Instead of get_saved_register, use
9652 frame_register.
9653 (sparc_pop_frame): Ditto.
9654 * findvar.c: Update comments.
9655 (value_of_register): Call frame_register instead of
9656 get_saved_register.
9657 (value_from_register): Ditto.
9658 * config/sparc/tm-sparc.h: Update comment.
9659 * breakpoint.c: Update comment.
9660
129c1cd6
AC
96612003-03-14 Andrew Cagney <cagney@redhat.com>
9662
9663 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9664 GET_SAVED_REGISTER.
9665 * gdbarch.h, gdbarch.c: Re-generate.
9666 * frame.h: Update comments.
9667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9668 * x86-64-tdep.c (x86_64_init_abi): Update.
9669 * sparc-tdep.c (sparc_gdbarch_init): Update.
9670 * sh-tdep.c (sh_gdbarch_init): Update.
9671 * mips-tdep.c (mips_gdbarch_init): Update.
9672 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9673 * cris-tdep.c (cris_gdbarch_init): Update.
9674 * ia64-tdep.c (ia64_gdbarch_init): Update.
9675 * frame.c (frame_register): Update.
9676 (get_saved_register): Update.
9677 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9678
749b82f6
AC
96792003-03-13 Andrew Cagney <cagney@redhat.com>
9680
9681 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9682 * gdbarch.h, gdbarch.c: Regenerate.
9683 * valops.c (hand_function_call): Update comment.
9684 * stack.c (return_command): Update comment.
9685 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9686 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9687 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9688 * x86-64-tdep.c (x86_64_init_abi): Update.
9689 * vax-tdep.c (vax_gdbarch_init): 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 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9696 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9697 * mips-tdep.c (mips_gdbarch_init): Update.
9698 * mcore-tdep.c (mcore_gdbarch_init): Update.
9699 * m68k-tdep.c (m68k_gdbarch_init): Update.
9700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9701 * ia64-tdep.c (ia64_gdbarch_init): Update.
9702 * i386-tdep.c (i386_gdbarch_init): Update.
9703 * hppa-tdep.c (hppa_gdbarch_init): Update.
9704 * h8300-tdep.c (h8300_gdbarch_init): Update.
9705 * frv-tdep.c (frv_gdbarch_init): Update.
9706 * cris-tdep.c (cris_gdbarch_init): Update.
9707 * avr-tdep.c (avr_gdbarch_init): Update.
9708 * arm-tdep.c (arm_gdbarch_init): Update.
9709 * alpha-tdep.c (alpha_gdbarch_init): Update.
9710
1594fa56
AC
97112003-03-13 Andrew Cagney <cagney@redhat.com>
9712
9713 * frame.c (legacy_frame_p): New function.
9714 (get_prev_frame): Use legacy_frame_p.
9715 * frame.h (legacy_frame_p): Declare.
9716
7717fda3
V
97172003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9718
fbe586ae 9719 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9720 listing corrected.
9721
0c67cbe9
V
97222003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9723
fbe586ae 9724 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9725
03febf99
AC
97262003-03-12 Andrew Cagney <cagney@redhat.com>
9727
9728 * frame.c (get_prev_frame): Rename the frame parameter to
9729 "this_frame".
9730 (get_next_frame, legacy_get_prev_frame): Ditto.
9731
0a1e1ca1
AC
97322003-03-12 Andrew Cagney <cagney@redhat.com>
9733
9734 * frame.c (get_current_frame): Check target_has_registers before
9735 checking target_has_stack.
9736 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9737 instead of deprecated_selected_frame.
9738 * findvar.c (value_of_register): Pass "frame", not
9739 deprecated_selected_frame, to value_of_builtin_reg.
9740
a66a9c23
AC
97412003-03-12 Andrew Cagney <cagney@redhat.com>
9742
9743 * regcache.c (regcache_cooked_write_signed): New function.
9744 (regcache_cooked_write_unsigned): New function.
9745 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9746 (regcache_cooked_read_signed): Fix regnum in range assertion.
9747 * regcache.h (regcache_cooked_write_signed): Declare.
9748 (regcache_cooked_write_unsigned): Declare.
9749
8bedc050
AC
97502003-03-12 Andrew Cagney <cagney@redhat.com>
9751
9752 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9753 * gdbarch.h, gdbarch.c: Re-generate.
9754 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9755 * x86-64-tdep.h: Update.
9756 * x86-64-tdep.c (x86_64_init_abi): Update.
9757 * v850-tdep.c (v850_gdbarch_init): Update.
9758 * sparc-tdep.c (sparc_gdbarch_init): Update.
9759 * sh-tdep.c (sh_gdbarch_init): Update.
9760 * s390-tdep.c (s390_gdbarch_init): Update.
9761 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9762 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9763 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9764 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9765 * mips-tdep.c (mips_gdbarch_init): Update.
9766 * mcore-tdep.c (mcore_gdbarch_init): Update.
9767 * m68k-tdep.c (m68k_gdbarch_init): Update.
9768 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9769 * ia64-tdep.c (ia64_gdbarch_init): Update.
9770 * i386-tdep.c (i386_gdbarch_init): Update.
9771 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9772 * hppa-tdep.c (hppa_gdbarch_init): Update.
9773 * h8300-tdep.c (h8300_gdbarch_init): Update.
9774 * frv-tdep.c (frv_gdbarch_init): Update.
9775 * cris-tdep.c (cris_gdbarch_init): Update.
9776 * avr-tdep.c (avr_gdbarch_init): Update.
9777 * arm-tdep.c (arm_gdbarch_init): Update.
9778 * alpha-tdep.c (alpha_gdbarch_init): Update.
9779 * sh-tdep.c (sh_init_extra_frame_info): Update.
9780 (sh64_init_extra_frame_info): Update.
9781 * ns32knbsd-nat.c (frame_num_args): Update.
9782 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9783 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9784 (xstormy16_frame_chain_valid): Update.
9785 * vax-tdep.c (vax_saved_pc_after_call): Update.
9786 * v850-tdep.c (v850_frame_chain): Update.
9787 (v850_pop_frame): Update.
9788 (v850_init_extra_frame_info): Update.
9789 * sparc-tdep.c (setup_arbitrary_frame): Update.
9790 * ns32k-tdep.c (umax_frame_num_args): Update.
9791 * s390-tdep.c (s390_pop_frame_regular): Update.
9792 * mn10300-tdep.c (mn10300_frame_chain): Update.
9793 (mn10300_pop_frame_regular): Update.
9794 (mn10300_init_extra_frame_info): Update.
9795 * mips-tdep.c (mips_init_frame_pc_first): Update.
9796 (mips_frame_chain): Update.
9797 (mips_pop_frame): Update.
9798 * mcore-tdep.c (mcore_frame_chain): Update.
9799 (mcore_pop_frame): Update.
9800 (mcore_init_extra_frame_info): Update.
9801 * arch-utils.c (init_frame_pc_default): Update.
9802 * m68k-tdep.c (isi_frame_num_args): Update.
9803 (delta68_frame_num_args): Update.
9804 (news_frame_num_args): Update.
9805 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9806 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9807 (alpha_frame_chain): Update.
9808 (alpha_pop_frame): Update.
9809 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9810 (hppa_init_extra_frame_info): Update.
9811 (hppa_frame_chain): Update.
9812 (hppa_frame_chain_valid): Update.
9813 * cris-tdep.c (cris_init_extra_frame_info): Update.
9814 * avr-tdep.c (avr_init_extra_frame_info): Update.
9815 * arm-tdep.c (arm_frame_chain_valid): Update.
9816 (arm_init_extra_frame_info): Update.
9817 (arm_pop_frame): Update.
9818 * frame.c (frame_pc_unwind): Update.
9819 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9820 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9821 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9822 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9823 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9824 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9825
7a25a7c1
AC
98262003-03-12 Andrew Cagney <cagney@redhat.com>
9827
9828 Eliminate the need for POP_FRAME.
9829 * frame.c (do_frame_unwind_register): New function.
9830 (frame_pop): When no POP_FRAME, pop the frame using register
9831 unwind and a scratch regcache.
9832 (frame_saved_regs_pop): Delete function.
9833 (trad_frame_unwinder): Update.
9834 * d10v-tdep.c (d10v_frame_pop): Delete function.
9835 (d10v_frame_unwind): Update.
9836 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9837 (sentinel_frame_unwinder): Update.
9838 * dummy-frame.c (dummy_frame_pop): Delete function.
9839 (dummy_frame_unwind): Update.
9840 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9841 (struct frame_unwind): Update.
9842
2f38ef89
KB
98432003-03-11 Kevin Buettner <kevinb@redhat.com>
9844
9845 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9846 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9847 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9848 Do range checks on register number obtained from debugging info.
9849 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9850 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9851 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9852 mapping function.
9853 (do_fp_register_row): Fix typo which caused double type to be
9854 used when attempting to unpack a float.
9855
552f4abf
JB
98562003-03-11 J. Brobecker <brobecker@gnat.com>
9857
9858 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9859
e0d2ae16
AC
98602003-03-11 Andrew Cagney <cagney@redhat.com>
9861
9862 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9863 frame. Problem found by Corinna Vinschen.
9864
ddbfdd06
PM
98652003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9866
9867 * doublest.c (floatformat_from_length): Accept also
9868 the real size of 'long double' type.
9869
088b2ddc 98702003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9871
088b2ddc 9872 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9873 * breakpoint.c (bpstat_copy): Copy the command lines as well
9874 as the old value, to match what is freed in bpstat_clear.
9875
f56f77c1
DC
98762003-03-10 David Carlton <carlton@math.stanford.edu>
9877
9878 * minsyms.c (add_minsym_to_hash_table): Replace
9879 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9880 (compare_minimal_symbols, compact_minimal_symbols)
9881 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9882 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9883 of DEPRECATED_SYMBOL_MATCHES_NAME.
9884 (lookup_minimal_symbol_solib_trampoline): Ditto.
9885
5602984a
AC
98862003-03-10 Andrew Cagney <cagney@redhat.com>
9887
9888 * regcache.h (regcache_cooked_read_ftype): Define.
9889 (regcache_save, regcache_restore): Add a cooked_read parameter.
9890 * regcache.c (regcache_save, regcache_restore): Update.
9891 (do_cooked_read): New function.
9892 (regcache_cpy): Pass do_cooked_read to regcache_save and
9893 regcache_restore.
9894
8bedc050
AC
98952003-03-10 Andrew Cagney <cagney@redhat.com>
9896
9897 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9898 * gdbarch.h, gdbarch.c: Re-generate.
9899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9900 * x86-64-tdep.h: Update.
9901 * x86-64-tdep.c (x86_64_init_abi): Update.
9902 * v850-tdep.c (v850_gdbarch_init): Update.
9903 * sparc-tdep.c (sparc_gdbarch_init): Update.
9904 * sh-tdep.c (sh_gdbarch_init): Update.
9905 * s390-tdep.c (s390_gdbarch_init): Update.
9906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9907 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9908 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9909 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9910 * mips-tdep.c (mips_gdbarch_init): Update.
9911 * mcore-tdep.c (mcore_gdbarch_init): Update.
9912 * m68k-tdep.c (m68k_gdbarch_init): Update.
9913 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9914 * ia64-tdep.c (ia64_gdbarch_init): Update.
9915 * i386-tdep.c (i386_gdbarch_init): Update.
9916 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9917 * hppa-tdep.c (hppa_gdbarch_init): Update.
9918 * h8300-tdep.c (h8300_gdbarch_init): Update.
9919 * frv-tdep.c (frv_gdbarch_init): Update.
9920 * cris-tdep.c (cris_gdbarch_init): Update.
9921 * avr-tdep.c (avr_gdbarch_init): Update.
9922 * arm-tdep.c (arm_gdbarch_init): Update.
9923 * alpha-tdep.c (alpha_gdbarch_init): Update.
9924 * sh-tdep.c (sh_init_extra_frame_info): Update.
9925 (sh64_init_extra_frame_info): Update.
9926 * ns32knbsd-nat.c (frame_num_args): Update.
9927 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9928 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9929 (xstormy16_frame_chain_valid): Update.
9930 * vax-tdep.c (vax_saved_pc_after_call): Update.
9931 * v850-tdep.c (v850_frame_chain): Update.
9932 (v850_pop_frame): Update.
9933 (v850_init_extra_frame_info): Update.
9934 * sparc-tdep.c (setup_arbitrary_frame): Update.
9935 * ns32k-tdep.c (umax_frame_num_args): Update.
9936 * s390-tdep.c (s390_pop_frame_regular): Update.
9937 * mn10300-tdep.c (mn10300_frame_chain): Update.
9938 (mn10300_pop_frame_regular): Update.
9939 (mn10300_init_extra_frame_info): Update.
9940 * mips-tdep.c (mips_init_frame_pc_first): Update.
9941 (mips_frame_chain): Update.
9942 (mips_pop_frame): Update.
9943 * mcore-tdep.c (mcore_frame_chain): Update.
9944 (mcore_pop_frame): Update.
9945 (mcore_init_extra_frame_info): Update.
9946 * arch-utils.c (init_frame_pc_default): Update.
9947 * m68k-tdep.c (isi_frame_num_args): Update.
9948 (delta68_frame_num_args): Update.
9949 (news_frame_num_args): Update.
9950 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9951 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9952 (alpha_frame_chain): Update.
9953 (alpha_pop_frame): Update.
9954 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9955 (hppa_init_extra_frame_info): Update.
9956 (hppa_frame_chain): Update.
9957 (hppa_frame_chain_valid): Update.
9958 * cris-tdep.c (cris_init_extra_frame_info): Update.
9959 * avr-tdep.c (avr_init_extra_frame_info): Update.
9960 * arm-tdep.c (arm_frame_chain_valid): Update.
9961 (arm_init_extra_frame_info): Update.
9962 (arm_pop_frame): Update.
9963 * frame.c (frame_pc_unwind): Update.
9964 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9965 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9966 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9967 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9968 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9969 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9970
12cc2063
AC
99712003-03-10 Andrew Cagney <cagney@redhat.com>
9972
9973 * gdbarch.sh (gdbarch_unwind_pc): New method.
9974 * gdbarch.h, gdbarch.c: Regenerate.
9975 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9976 but use read_pc and FRAME_SAVED_PC as fall backs.
9977 (frame_saved_regs_pc_unwind): Delete function.
9978 (trad_frame_unwinder): Update.
9979 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9980 (struct frame_unwind): Update.
9981 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9982 (dummy_frame_unwind): Update.
9983 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9984 (sentinel_frame_unwinder): Update.
9985 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9986 (d10v_frame_unwind): Update.
9987 (d10v_unwind_pc): New function.
9988 (d10v_gdbarch_init): Set unwind_pc.
9989
ef840a37
AC
99902003-03-10 Andrew Cagney <cagney@redhat.com>
9991
a2ce2e56
AC
9992 * gdbarch.h: Re-generate.
9993
ef840a37
AC
9994 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9995 PC.
9996 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9997 the PC register.
9998
08f3424b
MK
99992003-03-08 Mark Kettenis <kettenis@gnu.org>
10000
10001 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10002
1248ede2
AC
100032003-03-08 Andrew Cagney <cagney@redhat.com>
10004
10005 * cli-out.c: Update copyright.
10006 (cli_out_data): Define typedef. Use instead of ui_out_data.
10007
f49bacc8
AC
100082003-03-08 Andrew Cagney <cagney@redhat.com>
10009
10010 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10011 the result.
10012
9b05f993
AC
100132003-03-07 Andrew Cagney <cagney@redhat.com>
10014
10015 * gdbarch.sh: Don't generate two macro definitions when an
10016 undefined macro taking no arguments.
10017 * gdbarch.h: Regenerate.
8ffd9b1b 10018
166f4c7b
ML
100192002-03-07 Michal Ludvig <mludvig@suse.cz>
10020
10021 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10022 (x86_64_unwind_dummy_id): New functions.
10023 (x86_64_init_abi): Register these two new functions.
10024
6d686a84
ML
100252003-03-07 Michal Ludvig <mludvig@suse.cz>
10026
10027 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10028 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10029 separate function.
10030 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10031
6314f104
AC
100322003-03-05 Andrew Cagney <cagney@redhat.com>
10033
10034 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10035 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10036 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10037 to use unwind_dummy_id when a dummy frame.
10038 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10039 predicate.
10040 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10041
ceea5145
AC
100422003-03-05 Andrew Cagney <cagney@redhat.com>
10043
10044 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10045 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10046 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10047 values.
10048
0d843116
AC
100492003-03-05 Andrew Cagney <cagney@redhat.com>
10050
10051 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10052 (struct d10v_unwind_cache): Delete field "frameless". Replace
10053 "next_addr" with "sp_offset". Add "r11_offset".
10054 (d10v_frame_unwind_cache): Update.
10055 (prologue_find_regs): Update. When "mv r11, sp", save the
10056 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10057 RN was saved in r11_offset.
10058
b2579786
AC
100592003-03-05 Andrew Cagney <cagney@redhat.com>
10060
10061 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10062 cached PC value in the next frame.
10063
218e5956
AC
100642003-03-05 Andrew Cagney <cagney@redhat.com>
10065
10066 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10067 "id_unwind_cache" with "id".
10068 (frame_id_unwind): Delete declaration.
10069 * frame.c (frame_id_unwind): Delete function.
10070 (get_prev_frame): Call the frame id unwind method directly. Store
10071 the returned next frame's ID value in NEXT_FRAME. Note that there
10072 is a problem with the wrong unwind ID being called with the wrong
10073 unwind cache.
10074
ed363b1b
DJ
100752003-03-05 Daniel Jacobowitz <drow@mvista.com>
10076
10077 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10078
fe1f4a5e
DJ
100792003-03-05 James Ingham <jingham@apple.com>
10080 Daniel Jacobowitz <drow@mvista.com>
10081
10082 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10083 (auto_cp_abi): New variable.
10084 (current_cp_abi, num_cp_abis): Make static.
10085 (CP_ABI_MAX): Define.
10086 (cp_abis): Turn into an array.
10087 (value_virtual_fn_field): Fix formatting.
10088 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10089 takes a pointer.
10090 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10091 (list_cp_abis, _initialize_cp_abi): New functions.
10092 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10093 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10094 switch_to_cp_abi. Update prototype for register_cp_abi.
10095 * Makefile.in (cp-abi.o): Update dependencies.
10096 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10097 instead of switch_to_cp_abi.
10098 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10099 register_cp_abi.
10100 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10101 register_cp_abi.
10102 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10103
e4adbba9
DJ
101042003-03-05 Daniel Jacobowitz <drow@mvista.com>
10105
10106 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10107 * dwarf2loc.c: Include "regcache.h".
10108 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10109 register_size.
10110 * Makefile.in (dwarf2loc.o): Update dependencies.
10111
91ccbfc1
TR
101122003-03-04 Theodore A. Roth <troth@openavr.org>
10113
10114 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10115 number of io registers reported by remote target is not a multiple of
10116 step.
10117
3d4e8fd2
DC
101182003-03-04 David Carlton <carlton@math.stanford.edu>
10119
10120 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10121 (lookup_symbol_aux_psymtabs): Update call to
10122 lookup_partial_symbol.
10123 (lookup_transparent_type, find_main_psymtab)
10124 (make_symbol_overload_list): Ditto.
10125
ed42d87b
KH
101262003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10127
10128 * MAINTAINERS (Write after approval): Update my email address.
10129
a0ed5532
AC
101302003-03-03 Andrew Cagney <cagney@redhat.com>
10131
10132 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10133 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10134 predicate. Replace MAX_REGISTER_RAW_SIZE.
10135 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10136 MAX_REGISTER_VIRTUAL_SIZE.
10137 * regcache.c (legacy_max_register_raw_size): New function.
10138 (legacy_max_register_virtual_size): New function.
10139 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10140 (MAX_REGISTER_RAW_SIZE): Define.
10141 (legacy_max_register_raw_size): Declare.
10142 (legacy_max_register_virtual_size): Declare.
10143 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10144 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10145 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10146 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10147 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10148 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10149 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10150 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10151 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10152 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10153 * vax-tdep.c (vax_gdbarch_init): Update.
10154 * v850-tdep.c (v850_gdbarch_init): Update.
10155 * sparc-tdep.c (sparc_gdbarch_init): Update.
10156 * sh-tdep.c (sh_gdbarch_init): Update.
10157 * s390-tdep.c (s390_gdbarch_init): Update.
10158 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10159 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10160 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10161 * mips-tdep.c (mips_gdbarch_init): Update.
10162 * mcore-tdep.c (mcore_gdbarch_init): Update.
10163 * m68k-tdep.c (m68k_gdbarch_init): Update.
10164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10165 * ia64-tdep.c (ia64_gdbarch_init): Update.
10166 * i386-tdep.c (i386_gdbarch_init): Update.
10167 * hppa-tdep.c (hppa_gdbarch_init): Update.
10168 * h8300-tdep.c (h8300_gdbarch_init): Update.
10169 * frv-tdep.c (frv_gdbarch_init): Update.
10170 * cris-tdep.c (cris_gdbarch_init): Update.
10171 * avr-tdep.c (avr_gdbarch_init): Update.
10172 * arm-tdep.c (arm_gdbarch_init): Update.
10173 * alpha-tdep.c (alpha_gdbarch_init): Update.
10174 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10175 max_register_raw_size or max_register_virtual_size.
10176
8e437497
DC
101772003-03-03 David Carlton <carlton@math.stanford.edu>
10178
10179 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10180 SYMBOL_MATCHES_NAME, add comment.
10181 (SYMBOL_MATCHES_NATURAL_NAME): New.
10182 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10183 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10184 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10185 * symtab.c (lookup_partial_symbol): Use
10186 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10187 unhelpful comment.
10188 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10189 SYMBOL_MATCHES_NAME.
10190 Fix for PR c++/33.
10191
25120b0d
DC
101922003-03-03 David Carlton <carlton@math.stanford.edu>
10193
10194 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10195 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10196 by regexp matching against SYMBOL_NATURAL_NAME.
10197
78a11fb4
DC
101982003-03-03 David Carlton <carlton@math.stanford.edu>
10199
10200 * linespec.c (find_method): Extract code into collect_methods.
10201 (collect_methods): New.
10202
645dd519
MK
102032003-03-02 Mark Kettenis <kettenis@gnu.org>
10204
b4700d91
MK
10205 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10206 get_frame_base.
10207
645dd519
MK
10208 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10209 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10210
0aa7e1aa
SC
102112003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10212
8ffd9b1b 10213 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10214 and not regnum when summing the size of all registers up to regnum.
10215
f30ee0bc
AC
102162003-03-01 Andrew Cagney <cagney@redhat.com>
10217
10218 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10219 FRAME_INIT_SAVED_REGS.
10220 * gdbarch.h, gdbarch.c: Regenerate.
10221 * stack.c (frame_info): Update.
10222 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10223 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10224 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10225 * ns32k-tdep.c (ns32k_pop_frame): Update.
10226 * mips-tdep.c (mips_pop_frame): Update.
10227 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10228 * ia64-tdep.c (ia64_frame_chain): Update.
10229 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10230 (ia64_frameless_function_invocation): Update.
10231 (ia64_init_extra_frame_info): Update.
10232 (ia64_pop_frame_regular): Update.
10233 * frame.h (struct frame_info): Update comment.
10234 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10235 * frame.c (frame_saved_regs_register_unwind): Update.
10236 (frame_saved_regs_register_unwind): Update.
10237 (deprecated_generic_get_saved_register): Update.
10238 * cris-tdep.c: Update comment.
10239 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10240 Rename macro.
10241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10242 * x86-64-tdep.c (x86_64_init_abi): Update.
10243 * vax-tdep.c (vax_gdbarch_init): Update.
10244 * v850-tdep.c (v850_gdbarch_init): Update.
10245 * sparc-tdep.c (sparc_gdbarch_init): Update.
10246 * sh-tdep.c (sh_gdbarch_init): Update.
10247 * s390-tdep.c (s390_gdbarch_init): Update.
10248 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10249 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10250 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10251 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10252 * mips-tdep.c (mips_gdbarch_init): Update.
10253 * mcore-tdep.c (mcore_gdbarch_init): Update.
10254 * m68k-tdep.c (m68k_gdbarch_init): Update.
10255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10256 * ia64-tdep.c (ia64_gdbarch_init): Update.
10257 * i386-tdep.c (i386_gdbarch_init): Update.
10258 * frv-tdep.c (frv_gdbarch_init): Update.
10259 * avr-tdep.c (avr_gdbarch_init): Update.
10260 * arm-tdep.c (arm_gdbarch_init): Update.
10261 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10262
42fa7c0f
AC
102632003-03-01 Andrew Cagney <cagney@redhat.com>
10264
10265 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10266 option enum and switch. When no windows, set the interpreter to
10267 INTERP_CONSOLE.
8ffd9b1b 10268
49c7e338
AC
102692003-03-01 Andrew Cagney <cagney@redhat.com>
10270
10271 * main.c (captured_main): Replace magic option characters with an
10272 enum.
10273
e9582e71
AC
102742003-03-01 Andrew Cagney <cagney@redhat.com>
10275
10276 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10277 INIT_EXTRA_FRAME_INFO.
10278 * gdbarch.h, gdbarch.c: Regenerate.
10279 * arm-tdep.c: Update comments.
10280 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10281 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10282 * frame.h, avr-tdep.c: Ditto.
10283 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10284 (create_new_frame, legacy_get_prev_frame): Ditto.
10285 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10286 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10288 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10289 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10290 * v850-tdep.c (v850_gdbarch_init): Ditto.
10291 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10292 * sh-tdep.c (sh_gdbarch_init): Ditto.
10293 * s390-tdep.c (s390_gdbarch_init): Ditto.
10294 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10295 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10296 * mips-tdep.c (mips_gdbarch_init): Ditto.
10297 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10299 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10300 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10301 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10302 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10303 * frv-tdep.c (frv_gdbarch_init): Ditto.
10304 * cris-tdep.c (cris_gdbarch_init): Ditto.
10305 * avr-tdep.c (avr_gdbarch_init): Ditto.
10306 * arm-tdep.c (arm_gdbarch_init): Ditto.
10307 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10308 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10309
35cac7cf
AC
103102003-03-01 Andrew Cagney <cagney@redhat.com>
10311
10312 * gdbarch.sh (register_type): New function with predicate.
10313 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10314 * gdbarch.h, gdbarch.c: Re-generate.
10315 * arch-utils.c (generic_register_byte): Use generic_register_size.
10316 (generic_register_size): When available, use
10317 gdbarch_register_type.
10318 * regcache.c (init_regcache_descr): When available, initialize the
10319 register type array using gdbarch_register_type. If the
10320 architecture supplies gdbarch_register_type, do not use the legacy
10321 regcache layout.
10322 * d10v-tdep.c (d10v_register_type): Replace
10323 d10v_register_virtual_type.
10324 (d10v_gdbarch_init): Set register_type instead of
10325 register_virtual_type.
10326
7b83296f
AC
103272003-03-01 Andrew Cagney <cagney@redhat.com>
10328
10329 * Makefile.in (ax-gdb.o): Update dependencies.
10330 * ax-gdb.c: Include "regcache.h".
10331 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10332 * findvar.c (value_of_register): Ditto.
10333 * infcmd.c (default_print_registers_info): Ditto.
10334
eadc1c87
MK
103352003-03-01 Mark Kettenis <kettenis@gnu.org>
10336
10337 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10338 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10339
14143612
MK
103402003-03-01 Mark Kettenis <kettenis@gnu.org>
10341
10342 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10343 of STREQ.
10344
a55cc764
DJ
103452003-02-28 Daniel Jacobowitz <drow@mvista.com>
10346
10347 * Makefile.in (dwarf2loc.o): Update dependencies.
10348 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10349 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10350 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10351 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10352 (locexpr_tracepoint_var_ref): New function.
10353 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10354
08a617da
AC
103552003-02-28 Andrew Cagney <cagney@redhat.com>
10356
10357 * regcache.c (register_size): New function.
10358 * regcache.h (register_size): Declare
10359 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10360 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10361
4224873a
DC
103622003-02-28 David Carlton <carlton@math.stanford.edu>
10363
10364 * linespec.c (decode_compound): Extract code into find_method.
10365 (find_method): New.
10366
ccdc5d7f
JB
103672003-02-28 J. Brobecker <brobecker@gnat.com>
10368
10369 * Makefile.in: Add rules to build and link in observer.o.
10370
974e8ced
JB
103712003-02-27 J. Brobecker <brobecker@gnat.com>
10372
10373 * observer.c: Minor comments edits.
10374
7a28f973
JB
103752003-02-27 J. Brobecker <brobecker@gnat.com>
10376
10377 * observer.h, observer.c: New file.
10378
27cddce2
AC
103792003-02-27 Andrew Cagney <cagney@redhat.com>
10380
10381 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10382
b94a41a1
SC
103832003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10384
10385 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10386 (M6812_OP_STS_EXT): Likewise.
10387 (m6811_prologue): Use the above to recognize prologue.
10388 (m6812_prologue): Likewise.
10389
c8be8951
DC
103902003-02-27 David Carlton <carlton@math.stanford.edu>
10391
10392 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10393 SYMBOL_PRINT_NAME.
10394 (compare_psymbols): Ditto.
10395 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10396
d05bb1fc
MS
103972003-02-27 Michael Snyder <msnyder@redhat.com>
10398
4e845cd3
MS
10399 * f-lang.c (build_fortran_types): New function.
10400 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10401 * doublest.c (extract_floating): Fix warning text.
10402
f3824013
AC
104032003-02-27 Andrew Cagney <cagney@redhat.com>
10404
10405 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10406 predicate. Replaces PUSH_DUMMY_FRAME.
10407 * gdbarch.h, gdbarch.c: Regnerate.
10408 * valops.c (hand_function_call): Update. Call
10409 generic_push_dummy_frame directly.
10410 * vax-tdep.c (vax_gdbarch_init): Update.
10411 * sparc-tdep.c (sparc_gdbarch_init): Update.
10412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10413 * m68k-tdep.c (m68k_gdbarch_init): Update.
10414 * hppa-tdep.c (hppa_gdbarch_init): Update.
10415 * alpha-tdep.c (alpha_gdbarch_init): Update.
10416 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10417 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10418 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10420 push_dummy_frame to generic_push_dummy_frame.
10421 * v850-tdep.c (v850_gdbarch_init): Ditto.
10422 * sh-tdep.c (sh_gdbarch_init): Ditto.
10423 * s390-tdep.c (s390_gdbarch_init): Ditto.
10424 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10425 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10426 * mips-tdep.c (mips_gdbarch_init): Ditto.
10427 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10429 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10430 * i386-tdep.c (i386_gdbarch_init): Ditto.
10431 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10432 * frv-tdep.c (frv_gdbarch_init): Ditto.
10433 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10434 * cris-tdep.c (cris_gdbarch_init): Ditto.
10435 * avr-tdep.c (avr_gdbarch_init): Ditto.
10436 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10437
ad188201
KB
104382003-02-26 Kevin Buettner <kevinb@redhat.com>
10439
10440 * mips-tdep.c (show_mips_abi): New function.
10441 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10442 command ``show mips abi''.
10443
6b37567a 104442003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10445
6b37567a 10446 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10447 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10448 more sline entries have been seen for the function.
10449
d3e0a5bf
MC
104502003-02-26 Michael Chastain <mec@shout.net>
10451
10452 * configure: Regenerate with autoconf 000227.
10453
18972eea
MC
104542003-02-26 Michael Chastain <mec@shout.net>
10455
10456 Close PR build/660.
10457 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10458 for old libc5/glibc.
10459 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10460
0bbde931
KW
104612003-02-26 Kris Warkentin <kewarken@qnx.com>
10462
10463 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10464 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10465
27ca5dad
MC
104662003-02-26 Michael Chastain <mec@shout.net>
10467
10468 * configure.in: New variable HAVE_UINTPTR_T.
10469 * configure, config.in: Regenerated.
10470
6f88d630
DJ
104712003-02-26 Daniel Jacobowitz <drow@mvista.com>
10472
10473 Fix PR build/1097.
10474 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10475
b14185ce
AC
104762003-02-25 Andrew Cagney <cagney@redhat.com>
10477
10478 * frame.c (get_prev_frame): Add comment on check for
10479 inside_entry_func. Only check for inside_entry_file when not a
10480 dummy and not a sentinel. Check that the new frame is not inner
10481 to the old frame.
10482
ac2bd0a9
AC
104832003-02-25 Andrew Cagney <cagney@redhat.com>
10484
10485 * frame.c (frame_debug): New variable.
10486 (_initialize_frame): Add "set/show debug frame" command.
10487 (get_prev_frame): When frame_debug, print reason why unwind
10488 failed.
10489
b18a0fd2
MC
104902003-02-25 Michael Chastain <mec@shout.net>
10491
10492 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10493 to avoid uintptr_t definition problems.
10494
22abf04a
DC
104952003-02-25 David Carlton <carlton@math.stanford.edu>
10496
10497 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10498 (SYMBOL_LINKAGE_NAME): Ditto.
10499 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10500 SYMBOL_LINKAGE_NAME.
10501 (struct general_symbol_info): Expand comment.
10502 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10503 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10504 (SYMBOL_MATCHES_REGEXP): Ditto.
10505 * symtab.c (symbol_natural_name): New function.
10506 * objfiles.h: Replace all uses of SYMBOL_NAME by
10507 DEPRECATED_SYMBOL_NAME.
10508 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10509 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10510 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10511 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10512 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10513 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10514 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10515 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10516 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10517 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10518 * ada-exp.y: Ditto.
10519 * ada-exp.y: Update copyright.
10520 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10521 * cp-valprint.c: Ditto.
10522
1a5848f6
JJ
105232003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10524
10525 * infptrace.c (detach): Do not flag error if ptrace detach fails
10526 and errno is set to ESRCH.
10527
7343d46a
AC
105282003-02-24 Andrew Cagney <cagney@redhat.com>
10529
10530 * infptrace.c (udot_info): Change type of udot_off to long. Use
10531 paddr when printing udot_off's value.
10532
49fa1dc2
DC
105332003-02-24 David Carlton <carlton@math.stanford.edu>
10534
10535 * symtab.c (make_symbol_overload_list): Only read in partial
10536 symtabs containing a matching partial symbol.
10537
0fe19209
DC
105382003-02-24 David Carlton <carlton@math.stanford.edu>
10539
10540 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10541 do the comparison, not strcmp.
10542 * symfile.c (compare_psymbols): Ditto.
10543 * defs.h: Declare strcmp_iw_ordered.
10544 * utils.c (strcmp_iw_ordered): New function.
10545
8e3ee7b5
JB
105462003-02-24 Jim Blandy <jimb@redhat.com>
10547
10548 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10549 support, shared libs): Remove my name from here, to better reflect
10550 reality.
10551
7df1a324
KW
105522003-02-24 Kris Warkentin <kewarken@qnx.com>
10553
10554 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10555 (target_ops): Add to_have_continuable_watchpoint.
10556 * target.c (update_current_target): Add INHERIT line for
10557 to_have_continuable_watchpoint.
10558 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10559 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10560 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10561 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10562
d1c76907
EZ
105632003-02-24 Elena Zannoni <ezannoni@redhat.com>
10564
10565 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10566 maintainership.
10567
2610b0bf
KW
105682003-02-24 Kris Warkentin <kewarken@qnx.com>
10569
f46169db
KW
10570 * solib.c (solib_open): Call target defined search function after
10571 failing with solib-search-path.
10572 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10573 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10574
9a3c34fe
KW
105752003-02-24 Kris Warkentin <kewarken@qnx.com>
10576
f46169db 10577 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10578
2417dd25
SC
105792003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10580
10581 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10582
b631436b
SC
105832003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10584
10585 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10586 (m68hc11_add_reggroups): New function.
10587 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10588 (m68hc11_gdbarch_init): Install the reggroups.
10589 (_initialize_m68hc11_tdep): Initialize them.
10590
0aa8c1e4
JW
105912003-02-21 James E Wilson <wilson@tuliptree.org>
10592
10593 * MAINTAINERS: Update my email address.
10594
50ceaba5
DC
105952003-02-21 David Carlton <carlton@math.stanford.edu>
10596
10597 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10598
4c2df51b
DJ
105992003-02-21 Daniel Jacobowitz <drow@mvista.com>
10600
10601 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10602 * symtab.h: Add opaque declarations of struct axs_value and
10603 struct agent_expr.
10604 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10605 (struct location_funcs): New type.
10606 (struct symbol): Add "loc" to aux_value.
10607 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10608 * dwarf2read.c: Include "dwarf2expr.h".
10609 (dwarf2_symbol_mark_computed): New function.
10610 (read_func_scope): Use it.
10611 (var_decode_location): New function.
10612 (new_symbol): Use it.
10613 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10614
10615 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10616 (dwarf2expr_h, dwarf2loc_h): New variables.
10617 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10618 (dwarf2expr.o, dwarf2loc.o): New rules.
10619 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10620 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10621 LOC_COMPUTED_ARG.
10622 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10623 * m2-exp.y (yylex): Likewise.
10624 * printcmd.c (address_info, print_frame_args): Likewise.
10625 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10626 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10627 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10628 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10629 * symtab.c (lookup_block_symbol): Likewise.
10630
5784d15e
AF
106312003-02-20 Adam Fedor <fedor@gnu.org>
10632
10633 * symtab.h: Remove objc_specific struct
10634 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10635 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10636 Have language_objc use cplus_specific struct.
10637
d4cad8db
TT
106382003-02-20 Tom Tromey <tromey@redhat.com>
10639
10640 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10641 TYPE_NAME, when printing a String value. PR java/1075.
10642
2f9a90b4
AF
106432003-02-20 Adam Fedor <fedor@gnu.org>
10644
d38074a8 10645 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10646 * objc-lang.c (find_methods): Make static.
2f9a90b4 10647
6f17862b
CF
106482003-02-20 Christopher Faylor <cgf@redhat.com>
10649
10650 * win32-nat.c (get_image_name): Check return value from
10651 ReadProcessMemory.
10652 (child_xfer_memory): Ditto.
10653
715d1656
AO
106542003-02-20 Alexandre Oliva <aoliva@redhat.com>
10655
10656 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10657 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10658 '${exec_prefix}' (in addition to the expansion thereof) as
10659 relocatable.
10660 * configure: Rebuilt.
10661
b1262a02
DC
106622003-02-20 David Carlton <carlton@math.stanford.edu>
10663
10664 * symtab.c (search_symbols): Revert the search_symbols part of my
10665 2002-12-23 patch. Add comment.
10666
7134143f
DJ
106672002-02-20 Daniel Jacobowitz <drow@mvista.com>
10668
10669 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10670 * dbxread.c (elfstab_build_psymtabs): Don't call
10671 install_minimal_symbols.
10672 (stabsect_build_psymtabs): Likewise.
10673 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10674 earlier.
10675 * somread.c (som_symfile_read): Call install_minimal_symbols
10676 and do_cleanups earlier.
10677 * nlmread.c (nlm_symfile_read): Likewise.
10678 * mdebugread.c (elfmdebug_build_psymtabs): Call
10679 install_minimal_symbols and make appropriate cleanups.
10680
cf466558
KB
106812003-02-20 Kevin Buettner <kevinb@redhat.com>
10682
10683 * solib.c (reload_shared_libraries): New function.
10684 (_initialize_solib): Add callbacks for ``set solib-search-path''
10685 and ``set solib-absolute-prefix''.
10686
de5ad195
DC
106872003-02-20 David Carlton <carlton@math.stanford.edu>
10688
10689 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10690 expand comment.
10691 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10692 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10693 * ada-typeprint.c (ada_typedef_print): Ditto.
10694 * ax-gdb.c (gen_var_ref): Ditto.
10695 * breakpoint.c (print_one_breakpoint): Ditto.
10696 * buildsym.c (finish_block): Ditto.
10697 * c-valprint.c (c_val_print): Ditto.
10698 * expprint.c (print_subexp): Ditto.
10699 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10700 * infcmd.c (jump_command): Ditto.
10701 * linespec.c (decode_line_2, decode_compound): Ditto.
10702 * maint.c (maintenance_translate_address): Ditto.
10703 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10704 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10705 Ditto.
8ffd9b1b
AJ
10706 * p-valprint.c (pascal_val_print): Ditto.
10707 * stabsread.c (define_symbol): Ditto.
de5ad195 10708 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10709 (print_frame_arg_vars, return_command): Ditto.
10710 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10711 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10712 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10713 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10714 (rbreak_command): Ditto.
10715 * tracepoint.c (tracepoints_info): Ditto.
10716 * typeprint.c (typedef_print): Ditto.
10717 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10718 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10719 * ada-typeprint.c: Update Copyright.
10720 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10721 * tracepoint.c, cli/cli-cmds.c: Ditto.
10722
f796e4be
KB
107232003-02-20 Kevin Buettner <kevinb@redhat.com>
10724
10725 * frame.c (generic_unwind_get_saved_register): Make non-static.
10726 * frame.h (generic_unwind_get_saved_register): Declare.
10727 * mips-tdep.c (read_next_frame_reg): Fetch register from
10728 current regcache when frame is NULL.
10729 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10730 that must be NULL.
10731 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10732 instead of frame_register_unwind().
10733
836cc9f4
AC
107342003-02-20 Andrew Cagney <ac131313@redhat.com>
10735
10736 * remote-sim.c (gdbsim_insert_breakpoint)
10737 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10738 code.
10739
501eef12
AC
107402003-02-20 Andrew Cagney <ac131313@redhat.com>
10741
10742 * remote.c (_initialize_remote): Add commands "set/show remote
10743 hardware-watchpoint-limit" and "set/show remote
10744 hardware-breakpoint-limit".
10745 (remote_hw_watchpoint_limit): Initialize to -1.
10746 (remote_hw_breakpoint_limit): Ditto.
10747 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10748
1b6bc7e0
CF
107492003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10750
10751 * coff-pe-read.c: New file - support reading of minimal symbols from a
10752 portable executable using the export table.
10753 * coff-pe-read.h: New file.
10754 * coffread.c: Include coff-pe-read.h.
10755 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10756 debugging symbols found.
10757 * Makefile.in (SFILES): Add coff-pe-read.o.
10758 (coff_pe_read_h): Define.
10759 (COMMON_OBS): Add coff-pe-read.o.
10760 (coffread.o): Add coff_pe_read_h dependency.
10761 (coff-pe-read.o): New target.
10762
fe898f56
DC
107632003-02-19 David Carlton <carlton@math.stanford.edu>
10764
10765 * Makefile.in (SFILES): Add block.c.
10766 (block_h): New.
10767 (COMMON_OBS): Add block.o.
10768 (block.o): New.
10769 (x86-64-tdep.o): Add $(block_h).
10770 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10771 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10772 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10773 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10774 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10775 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10776 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10777 * value.h: Add opaque declaration for struct block.
10778 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10779 * ada-lang.h: Ditto.
10780 * x86-64-tdep.c: #include "block.h"
10781 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10782 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10783 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10784 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10785 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10786 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10787 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10788 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10789 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10790 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10791 * symtab.c (block_function): Ditto.
10792 (contained_in): Ditto.
10793 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10794 block.h. Add opaque declaration for struct block.
10795 * symtab.h: Move block_function and contained_in declarations to
10796 block.h. Add opaque declarations for struct block, struct
10797 blockvector.
10798 (struct block): Move to block.h.
10799 (struct blockvector): Ditto.
10800 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10801 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10802 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10803 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10804 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10805 Ditto.
10806 * block.c: New file.
10807 * block.h: New file.
10808
173345b5
TR
108092003-02-19 Theodore A. Roth <troth@openavr.org>
10810
10811 * avr-tdep.c (avr_extract_return_value): Remove function.
10812 (avr_store_return_value): Remove function.
10813 (avr_extract_struct_value_address): Remove function.
10814 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10815
338ef23d
AC
108162003-02-19 Andrew Cagney <ac131313@redhat.com>
10817
10818 * rs6000-tdep.c: Include "gdb_assert.h".
10819 (registers_e500): Add "acc" and "spefscr".
10820 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10821 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10822 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10823 really is "r0".
10824 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10825
5412f5f3
KS
108262003-02-18 Keith Seitz <keiths@redhat.com>
10827
10828 * Makefile.in: Add gdbtk-interps.c.
10829
881324eb
KB
108302003-02-18 Kevin Buettner <kevinb@redhat.com>
10831
10832 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10833 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10834
6a2f5abf
AC
108352003-02-18 Andrew Cagney <cagney@redhat.com>
10836
10837 * symtab.h (struct objfile): Add opaque declaration.
10838
54c7009d
EZ
108392003-02-18 Elena Zannoni <ezannoni@redhat.com>
10840
10841 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10842 * dbxread.c (process_one_symbol): Use last_function_start rather
10843 than function_start_offset to find the real beginning of the
10844 current function. The latter is just the text section offset on
10845 some systems, the former is always the real function start.
54c7009d 10846
7ee6d7eb
AC
108472003-02-17 Andrew Cagney <cagney@redhat.com>
10848
10849 * configure.in: Revert ${target} != ${host}.
10850
2846da9b
AC
108512003-02-17 Andrew Cagney <ac131313@redhat.com>
10852
10853 * configure.in (Makefile): Use the test ${target} != ${host},
10854 instead of the absence of the "nm.h" file, to determine of the
10855 configuration non-native.
10856 * configure: Regenerate.
8ffd9b1b 10857
3b27aeea
EZ
108582003-02-14 Elena Zannoni <ezannoni@redhat.com>
10859
fbe586ae 10860 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10861
10862 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10863 conditionalize tui_active test.
10864 (lookup_cmd_1): Ditto.
10865
b0b1c2c0
MK
108662003-02-14 Mark Kettenis <kettenis@gnu.org>
10867
10868 * configure.in: Add check for _etext.
10869 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10870 available.
10871 * config.in, configure: regenerated.
10872
8f05cde5
DJ
108732003-02-14 Daniel Jacobowitz <drow@mvista.com>
10874
10875 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10876
021e7609
AC
108772003-02-14 Andrew Cagney <ac131313@redhat.com>
10878
10879 * main.c (tui_version): Delete variable.
10880 (captured_main): When --tui, set interpreter_p to "tui" instead of
10881 enabling tui_version.
10882 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10883 tui_version.
10884 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10885 * cli/cli-cmds.c (disassemble_command): Ditto.
10886 * defs.h (tui_version): Delete declaration.
10887 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10888 (tui-interp.o): Add rules.
10889 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10890
e325dcec
CF
108912003-02-14 Christopher Faylor <cgf@redhat.com>
10892
36ffb041 10893 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10894 just-loaded dll.
10895
c4f90d87
JM
108962003-02-12 Jason Molenda (jmolenda@apple.com)
10897
fbe586ae
RH
10898 * symmisc.c (print_objfile_statistics): Include information about
10899 the number of psymtabs and symtabs in each object file.
c4f90d87 10900
e46e5ccd
KS
109012003-02-13 Keith R Seitz <keiths@redhat.com>
10902
10903 * main.h (struct captured_main_args): Add interpreter_p.
10904 * main.c (captured_main): Initialize interpreter_p from context.
10905 * gdb.c (main): Set interpreter_p argument.
10906 * Makefile.in (gdb.o): Add dependency for interps.h.
10907
fe97fe9c
AC
109082003-02-12 Andrew Cagney <ac131313@redhat.com>
10909
10910 * event-top.c (cli_command_loop): Delete declaration.
10911 (_initialize_event_loop): Delete function setting event_loop_hook.
10912 * event-top.h (cli_command_loop): Declare. Update copyright.
10913 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10914 * interps.c (current_interp_command_loop): When event_loop_p, call
10915 cli_command_loop.
10916
1cdac4ef
AC
109172003-02-12 Andrew Cagney <ac131313@redhat.com>
10918
10919 * interps.h (interp_command_loop_ftype): Change return type to
10920 void.
10921
48037ead
ML
109222003-02-12 Michal Ludvig <mludvig@suse.cz>
10923
10924 * x86-64-tdep.c (x86_64_extract_return_value)
10925 (x86_64_store_return_value): Use regcache instead of regbuf.
10926 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10927 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10928
033afc63
AC
109292003-02-11 Andrew Cagney <ac131313@redhat.com>
10930
10931 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10932 * aclocal.m4: Regenerate.
10933 * configure: Regenerate.
10934
10935 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10936 TCL_LD_SEARCH_FLAGS.
10937
40d02bca
ML
109382003-02-10 Michal Ludvig <mludvig@suse.cz>
10939
10940 * dwarf2cfi.c: Reindented.
10941
11308a41
AC
109422003-02-09 Andrew Cagney <ac131313@redhat.com>
10943
10944 * interps.c (clear_interpreter_hooks): Convert function definition
10945 to ISO C.
10946
e1c1c0f6
DC
109472003-02-07 David Carlton <carlton@math.stanford.edu>
10948
10949 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10950
ab5d3da6
KB
109512003-02-07 Kevin Buettner <kevinb@redhat.com>
10952
10953 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10954 (struct type): ...to here.
10955 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10956 field.
10957 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10958 (replace_type): Set length on all type variants for a given type.
10959
b8a92b82
AC
109602003-02-07 Andrew Cagney <ac131313@redhat.com>
10961
10962 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10963 <sys/stat.h>.
10964 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10965
5cb316ef
AC
109662003-02-06 Andrew Cagney <ac131313@redhat.com>
10967
2555fe1a
AC
10968 * Makefile.in (symm-nat.o): Update dependencies.
10969 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10970 (lynx-nat.o, ia64-linux-nat.): Ditto.
10971 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10972 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10973 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10974
44270758
AC
10975 * Makefile.in (inflow_h): Define.
10976 (procfs.o, inflow.o, procfs.o): Update dependencies.
10977 * inftarg.c (child_stop): Delete extern declaration of
10978 inferior_process_group. Include "inflow.h".
10979 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10980 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10981 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10982 (our_process_group, inferior_process_group): Extern declarations.
10983
df8f7274
AC
10984 * procfs.c: Include "gdb_assert.h".
10985
5cb316ef
AC
10986 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10987 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10988 * jv-typeprint.c (java_type_print_base): Ditto.
10989 * typeprint.c (typedef_print): Eliminate STREQ.
10990 * cli/cli-script.c (define_command, define_command): Ditto.
10991 * main.c (captured_main): Ditto.
10992 * values.c (lookup_internalvar): Ditto.
10993 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10994 within `if' conditional.
10995 * linespec.c (decode_line_2): Ditto.
10996 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10997 (bfd_openw_with_cleanup): Ditto.
10998
2a28ccea
MK
109992003-02-07 Mark Kettenis <kettenis@gnu.org>
11000
11001 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11002 legacy_extract_return_value and store_return_value to
11003 legacy_return_value.
11004
786b8124
CF
110052003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11006
11007 * win32-nat.c (get_relocated_section_addrs): New function. Find
11008 section load addresses for symbol handling in relocated DLLs.
11009 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11010
b871e4ec
FF
110112003-02-05 Fred Fish <fnf@intrinsity.com>
11012
11013 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11014 '=' and '!='.
11015 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11016 with '&' and '=='.
11017 (angel_RDI_info): Ditto.
11018 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11019 with '&' and '!='.
11020 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11021
4389a95a 110222003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11023 Keith Seitz <keiths@redhat.com>
11024 Elena Zannoni <ezannoni@redhat.com>
11025 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11026
11027 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11028 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11029 (SUBDIR_MI_OBS): Add "mi-interp.o".
11030 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11031 (SFILES): Add "interps.c".
11032 (COMMON_OBS): Add "interps.o".
11033 (interps_h, mi_main_h): Define.
11034 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11035 (mi-main.o, main.o, event-top.o): Update dependencies.
11036 * cli/cli-interp.c: New file.
11037 * interps.h, interps.c: New files.
11038 * top.c: (gdb_init): Don't install the default interpreter, handed
11039 by captured_main.
11040 * main.c: Include "interps.h".
11041 (interpreter_p): Note that it should malloc'ed.
11042 (captured_command_loop): Call current_interp_command_loop.
11043 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11044 xfree and xstrdup when updating interpreter_p. Install the
11045 default interpreter. Add hack to stop mi1's copyright notice
11046 being encoded.
11047 * event-top.h (gdb_setup_readline): Declare.
11048 (gdb_disable_readline): Declare.
11049 * event-top.c: Include "interps.h".
11050 (display_gdb_prompt): Call current_interp_display_prompt_p.
11051 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11052 gdb_stdlog, and gdb_stdtarg.
11053 (_initialize_event_loop): Don't call gdb_setup_readline.
11054 * cli-out.c (cli_out_set_stream): New function.
11055 * cli-out.h (cli_out_set_stream): Declare.
11056
ff3b5810
MK
110572003-02-06 Mark Kettenis <kettenis@gnu.org>
11058
11059 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11060 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11061 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11062 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11063 config/i386/i386v42mp.mt: Removed.
11064
5b729aa5
MK
110652003-02-05 Mark Kettenis <kettenis@gnu.org>
11066
11067 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11068 GDB_OSABI_SOLARIS.
11069
8cc15142
MC
110702003-02-05 Michael Chastain <mec@shout.net>
11071
11072 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11073 2.12.1 and earlier versions.
11074
5aa5d4b9
AC
110752003-02-05 Andrew Cagney <ac131313@redhat.com>
11076
11077 Remove orphaned hosts, targets and files.
11078 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11079 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11080 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11081 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11082 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11083 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11084 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11085 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11086 * config/sparc/tm-sp64sim.h: Delete.
11087 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11088 hosts.
11089 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11090 mips*-dec-mach3* targets.
11091
b68767c1
MC
110922003-02-04 Michael Chastain <mec@shout.net>
11093
11094 * NEWS: Fix typo: sepcifying -> specifying.
11095
5ae7ca1d
MC
110962003-02-04 Michael Chastain <mec@shout.net>
11097
11098 * dwarfread.c: Add documentation on the state of dwarf-1,
11099 looking towards obsoletion.
11100
d08a4280
MC
111012003-02-03 Michael Chastain <mec@shout.net>
11102
11103 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11104 gdb/testsuite/gdb.c++/pr-1023.exp.
11105
e9be73e4
AC
111062003-02-04 Andrew Cagney <ac131313@redhat.com>
11107
11108 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11109 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11110
11111 * utils.c (init_page_info): Delete reference to MPW in comments.
11112 * main.c (captured_main): Delete #ifdef MPW.
11113
05d57f6f
AC
111142003-02-04 Andrew Cagney <ac131313@redhat.com>
11115
8ffd9b1b 11116 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11117 * monitor.c (monitor_expect): Obsolete reference to m32r.
11118 * configure.tgt: Mark m32r-*-elf* as obsolete.
11119 * MAINTAINERS: Mark m32k as obsolete.
11120 * m32r-rom.c: Obsolete file.
11121 * config/m32r/m32r.mt: Obsolete file.
11122 * config/m32r/tm-m32r.h: Obsolete file.
11123 * m32r-stub.c: Obsolete file.
11124 * m32r-tdep.c: Obsolete file.
11125
8b0e5691
AC
111262003-02-04 Andrew Cagney <ac131313@redhat.com>
11127
11128 * NEWS: Mention that the z8k-zilog-none is obsolete.
11129 * MAINTAINERS: Mark z8k as obsolete.
11130 * configure.tgt: Obsolete the z8k-*-coff* target.
11131 * config/z8k/z8k.mt: Obsolete file.
11132 * config/z8k/tm-z8k.h: Obsolete file.
11133 * z8k-tdep.c: Obsolete file.
11134
67f16606
AC
111352003-02-04 Andrew Cagney <ac131313@redhat.com>
11136
11137 * NEWS: Mention that the mn10200-elf is obsolete.
11138 * configure.tgt: Obsolete mn10200-*-* target.
11139 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11140 mention that the mn10200 is obsolete.
11141 * breakpoint.h: Ditto.
11142 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11143 * config/mn10200/mn10200.mt: Obsolete file.
11144 * config/mn10200/tm-mn10200.h: Obsolete file.
11145 * mn10200-tdep.c: Obsolete file.
11146
fd2299bd
AC
111472003-02-04 Andrew Cagney <ac131313@redhat.com>
11148
11149 * MAINTAINERS: Mark h8500 as obsolete.
11150 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11151 * findvar.c (value_from_register): Ditto.
11152 * h8500-tdep.c: Mark file as obsolete.
11153 * config/h8500/h8500.mt: Ditto.
11154 * config/h8500/tm-h8500.h: Ditto.
11155 * NEWS: Mention that h8500 is obsolete.
11156
eb9a305d
DC
111572003-02-04 David Carlton <carlton@math.stanford.edu>
11158
11159 * objfiles.c (allocate_objfile): Always set name. Add comment at
11160 start of function.
11161 * jv-lang.c (get_dynamics_objfile): Add comment.
11162
406fc7fb
DC
111632003-02-04 David Carlton <carlton@math.stanford.edu>
11164
11165 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11166 * printcmd.c (build_address_symbolic): Replace uses of
11167 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11168 SYMBOL_NAME, and asm_demangle.
11169 Update copyright.
11170
93d91629
DC
111712003-02-04 David Carlton <carlton@math.stanford.edu>
11172
11173 * linespec.c (decode_compound): Extract code into
11174 lookup_prefix_sym.
11175 (lookup_prefix_sym): New function.
11176
1c5cb38e
DC
111772003-02-04 David Carlton <carlton@math.stanford.edu>
11178
11179 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11180 FLOAT_COERCION_BADNESS.
11181 * gdbtypes.c (rank_one_type): Replace all uses of
11182 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11183
0cf824c9
JB
111842003-02-04 Jim Blandy <jimb@redhat.com>
11185
11186 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11187 section, let dwarf_macinfo_section point to it, not
11188 dwarf_loc_section.
11189
a2d356b0
DJ
111902003-02-04 Daniel Jacobowitz <drow@mvista.com>
11191
11192 Pointed out by Anton Blanchard <anton@samba.org>.
11193 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11194 (ppc_linux_at_sigtramp_return_path): Use it.
11195
2de7ced7
DJ
111962003-02-04 Daniel Jacobowitz <drow@mvista.com>
11197
11198 * defs.h (streq): Add prototype.
11199 * utils.c (streq): New function.
11200
11201 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11202 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11203 * mdebugread.c (new_symbol): Likewise.
11204 * stabsread.c (define_symbol): Likewise.
11205 * coffread.c (process_coff_symbol): Likewise.
11206 * dwarfread.c (new_symbol): Likewise.
11207
11208 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11209 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11210 here.
11211 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11212 SYMBOL_INIT_DEMANGLED_NAME.
11213 * objfiles.c: Include "hashtab.h".
11214 (allocate_objfile): Call htab_set_functions_ex for the
11215 demangled_names_hash.
11216 (free_objfile): Call htab_delete for the demangled_names_hash.
11217 * objfiles.h (struct htab): Add declaration.
11218 (struct objfile): Add demangled_names_hash.
11219 * symfile.c: Include "hashtab.h".
11220 (reread_symbols): Call htab_delete for the demangled_names_hash.
11221 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11222 SYMBOL_NAME in the bcache.
11223 * symtab.c: Include "hashtab.h". Update comments.
11224 (create_demangled_names_hash, symbol_set_names): New functions.
11225 (symbol_find_demangled_name): New function, broken out from
11226 symbol_init_demangled_names.
11227 (symbol_init_demangled_names): Use it.
11228 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11229 (SYMBOL_SET_NAMES): New macro.
11230 (symbol_set_names): Add prototype.
11231
15831452
JB
112322003-02-03 Jim Blandy <jimb@redhat.com>
11233
11234 Use a single, consistent representation for an empty minimal
11235 symbol table in an objfile.
11236 * objfiles.c (terminate_minimal_symbol_table): New function.
11237 (allocate_objfile): Call it.
11238 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11239 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11240 non-NULL.
15831452
JB
11241 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11242 objfile has minimal symbols, compare minimal_symbol_count to zero,
11243 instead of comparing msymbols with NULL.
11244 * objfiles.c (have_minimal_symbols): Same.
11245 * solib-sunos.c (solib_add_common_symbols): Call
11246 terminate_minimal_symbol_table.
11247 * symfile.c (reread_symbols): Same.
8ffd9b1b 11248
ffc65945
KB
112492003-02-03 Kevin Buettner <kevinb@redhat.com>
11250
11251 * s390-tdep.c (s390_address_class_type_flags)
11252 (s390_address_class_type_flags_to_name)
11253 (s390_address_class_name_to_type_flags): New functions.
11254 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11255 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11256
f211c6d4
MS
112572003-02-03 Michael Snyder <msnyder@redhat.com>
11258
11259 * arm-tdep.c: Fix spell-o in comment.
11260
659b0389
ML
112612003-02-03 Michal Ludvig <mludvig@suse.cz>
11262
11263 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11264 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11265 error messages to contain BFD filename.
659b0389 11266
3b31d625
EZ
112672003-02-02 Elena Zannoni <ezannoni@redhat.com>
11268
997b089a 11269 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11270 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11271 (do_mixed_source_and_assembly): Use
11272 make_cleanup_ui_out_tuple_begin_end and
11273 make_cleanup_ui_out_tuple_begin_end.
11274 (do_mixed_source_and_assembly): Ditto.
11275 * thread.c (do_captured_list_thread_ids): Ditto.
11276 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11277 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11278 ui_out_tuple_end): Delete prototypes.
11279 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11280 ui_out_list_end, ui_out_tuple_end): Delete.
11281
11282 From Kevin Buettner <kevinb@redhat.com>:
11283 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11284 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11285 (do_cleanup_table_end): New functions.
11286 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11287 Use cleanups to invoke_ui_out_tuple_end().
11288 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11289 * cli/cli-setshow.c (cmd_show_list): Use
11290 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11291
5b181d62
AC
112922003-02-02 Andrew Cagney <ac131313@redhat.com>
11293
11294 * frame.c (frame_unwind_register): New function.
11295 (frame_unwind_unsigned_register): Use.
11296 (frame_unwind_signed_register): Use.
11297 (frame_read_register): New function.
11298 * frame.h (frame_unwind_register): Declare.
11299 (frame_read_register): Declare.
11300
11301 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11302 and frame_unwind_register instead of read_memory, write_register
11303 and deprecated_write_register_bytes.
11304
5f601589
AC
113052003-02-02 Andrew Cagney <ac131313@redhat.com>
11306
11307 * frame.h: Note that namelen can be negative.
11308 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11309 NAME's length.
11310
11311 * NEWS: Mention that the d10v's `regs' command is deprecated.
11312 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11313 (d10v_print_registers_info): New function.
11314 (show_regs): Call d10v_print_registers_info.
11315 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11316
6a3fe0a4
MK
113172003-02-02 Mark Kettenis <kettenis@gnu.org>
11318
11319 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11320 lost in the previous patch.
11321
075559bc
AC
113222003-02-01 Andrew Cagney <ac131313@redhat.com>
11323
11324 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11325 * stack.c (print_frame_info_base): Output complete FRAME tuple
11326 for synthesized frames.
075559bc 11327
6789195b
AC
113282003-02-02 Andrew Cagney <ac131313@redhat.com>
11329
11330 * mips-nat.c (zerobuf): Delete.
11331 (fetch_inferior_registers): Alloc local zerobuf.
11332 (fetch_core_registers): Alloc local zerobuf.
11333 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11334 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11335 * thread-db.c (thread_db_store_registers): Ditto.
11336 * sh-tdep.c (sh_do_register): Ditto.
11337 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11338 * remote-sim.c (gdbsim_store_register): Ditto.
11339 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11340 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11341 * monitor.c (monitor_supply_register): Ditto.
11342 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11343 * mips-nat.c (fetch_inferior_registers): Ditto.
11344 * m68klinux-nat.c (fetch_register): Ditto.
11345 * lynx-nat.c (fetch_inferior_registers): Ditto.
11346 (fetch_inferior_registers): Ditto.
11347 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11348 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11349 (hpux_thread_store_registers): Ditto.
11350 * hppah-nat.c (fetch_register): Ditto.
11351 * hppab-nat.c (fetch_register): Ditto.
11352 * hppa-tdep.c (pa_register_look_aside): Ditto.
11353 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11354 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11355
e669114a
AC
113562003-02-01 Andrew Cagney <ac131313@redhat.com>
11357
11358 * gdbarch.sh: Explictly specify all method levels. When a
11359 variable with an empty level, provide a non-multi-arch default.
11360 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11361 * gdbarch.h: Re-generate.
11362 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11363 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11364
9a043c1d
AC
113652003-02-01 Andrew Cagney <ac131313@redhat.com>
11366
11367 * defs.h (host_pointer_to_address): Delete declaration.
11368 (address_to_host_pointer): Delete declaration.
11369 * utils.c (host_pointer_to_address): Delete function.
11370 (address_to_host_pointer): Delete function.
11371 * procfs.c (procfs_address_to_host_pointer): New function.
11372 * procfs.c (proc_set_watchpoint): Use.
11373 (procfs_can_use_hw_breakpoint): Update comments.
11374 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11375 (som_solib_add): Use.
11376 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11377 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11378
7ca9f392
AC
113792003-02-01 Andrew Cagney <ac131313@redhat.com>
11380
94bbfd30
AC
11381 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11382 strlen d_name.
11383
7ca9f392
AC
11384 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11385 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11386 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11387 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11388 (define_symbol): Update.
11389 * symfile.c (generic_load): Remove references to nindy.
11390 * symtab.c: Remove references to nindy.
11391
31a85ea2
AC
113922003-02-01 Andrew Cagney <ac131313@redhat.com>
11393
11394 * infcmd.c (print_float_info): Delete code conditional on
11395 FLOAT_INFO.
11396 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11397 * config/m68k/nm-apollo68b.h: Ditto.
11398 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11399 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11400 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11401
f6e85fc8
MK
114022003-02-01 Mark Kettenis <kettenis@gnu.org>
11403
6015b6a0
MK
11404 * config/i386/tm-i386os9k.h: Removed.
11405
f7a30bdf
MK
11406 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11407 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11408 they're identical to i[3456]86-*-sysv* now.
11409 * config/i386/i386v32.mh: Removed.
11410 * config/i386/xm-i386v32.h: Removed.
11411 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11412
28d52111
MK
11413 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11414
4d3f6bce
MK
11415 * config/i386/i386dgux.mh: Removed.
11416 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11417
f6e85fc8
MK
11418 * configure.in: Fix typo.
11419 * configure: Regenerated.
11420
53955967
DC
114212003-01-31 David Carlton <carlton@math.stanford.edu>
11422
11423 * dwarf2read.c (dwarf2_locate_sections): Set
11424 dwarf_ranges_section.
11425
b1364885
AC
114262003-01-31 Andrew Cagney <ac131313@redhat.com>
11427
8dbb1c65
AC
11428 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11429 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11430
8731e58e
AC
11431 * utils.c: Re-indent.
11432
b1364885
AC
11433 * config/djgpp/fnchange.lst: Delete nindy files.
11434 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11435 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11436 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11437 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11438 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11439 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11440 * Makefile.in (init.c): Remove nindy references.
11441 (saber_gdb): Delete rule.
11442 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11443 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11444 and a68v-nat.c.
11445 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11446 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11447 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11448 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11449 nindy-share/stop.h.
11450 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11451 * saber.suppress: Delete file.
11452
086df311
DJ
114532003-01-31 Daniel Jacobowitz <drow@mvista.com>
11454
11455 * dbxread.c (stabs_data): New static variable.
11456 (fill_symbuf): Support an in-memory buffer for stabs data.
11457 (stabs_seek): New function.
11458 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11459 (read_ofile_symtab): Use stabs_seek.
11460 (elfstab_build_psymtabs): Take an asection* instead of
11461 an offset and size. Relocate the stabs data if necessary.
11462 Save the section* for dbx_psymtab_to_symtab.
11463 * dwarf2read.c: Add section variables for each debug section.
11464 (dwarf2_locate_sections): Fill them in.
11465 (dwarf2_read_section): Take an asection* argument.
11466 Relocate the section contents if necessary.
11467 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11468 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11469 it to dwarf2_read_section.
11470 (dwarf2_build_frame_info): Update callers.
11471 * elfread.c (elf_symfile_read): Update call to
11472 elfstab_build_psymtabs.
11473 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11474 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11475 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11476 * symfile.c (symfile_dummy_outputs): New function.
11477 (symfile_relocate_debug_section): New function.
11478 * symfile.h (symfile_relocate_debug_section): Add prototype.
11479
87d1b352
RH
114802003-01-31 Richard Henderson <rth@redhat.com>
11481
11482 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11483 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11484 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11485 * alpha-tdep.c (alpha_register_name): Add "unique".
11486 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11487 (ALPHA_UNIQUE_REGNUM): New.
11488 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11489
c48861fb
AC
114902003-01-31 Andrew Cagney <ac131313@redhat.com>
11491
11492 * README: Remove reference to Ericsson 1800 monitor.
11493 * Makefile.in (remote-es.o): Delete rule.
11494 (ALLDEPFILES): Delete remote-es.c.
11495 * remote-es.c: Delete file.
11496 * config/m68k/es1800.mt: Delete file.
11497 * config/djgpp/fnchange.lst: Update.
11498 * configure.tgt: Delete m68*-ericsson-* target.
11499
d764a824
AF
115002003-01-31 Adam Fedor <fedor@gnu.org>
11501
11502 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11503 Remove duplicate/shadowing variable of same name.
11504
fe36c4f4
JB
115052003-01-30 Jim Blandy <jimb@redhat.com>
11506
11507 * symfile.c (find_separate_debug_file): Assert that the objfile's
11508 directory name we compute ends with a slash, and then assume that
11509 that's so everywhere we use it.
11510
cb741690
DJ
115112003-01-30 Daniel Jacobowitz <drow@mvista.com>
11512
11513 * valops.c (value_assign): Flush frame cache after stores to memory
11514 also.
11515
96ee5227
AC
115162003-01-30 Andrew Cagney <ac131313@redhat.com>
11517
11518 * Makefile.in (mon960-rom.o): Delete rule.
11519 * mon960-rom.c: Delete file.
11520
7f6104a9
AC
115212003-01-30 Andrew Cagney <ac131313@redhat.com>
11522
11523 * d10v-tdep.c: Include "frame-unwind.h".
11524 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11525 list.
11526 (next_addr, uses_frame): Delete.
11527 (struct d10v_unwind_cache): Define.
11528 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11529 Use info instead of next_addr and uses_frame globals.
11530 (d10v_frame_init_saved_regs): Delete function.
11531 (d10v_init_extra_frame_info): Delete function.
11532 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11533 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11534 init_frame_pc or frame_saved_pc.
11535 (d10v_pop_frame): Delete function.
11536 (do_d10v_pop_frame): Delete function.
11537 (d10v_frame_chain): Delete function.
11538 (d10v_frame_chain_valid): Delete function.
11539 (d10v_frame_pc_unwind): New function.
11540 (d10v_frame_id_unwind): New function.
11541 (saved_regs_unwinder): New function.
11542 (d10v_frame_register_unwind): New function.
11543 (d10v_frame_pop): New function.
11544 (d10v_frame_unwind): New variable.
11545 (d10v_frame_p): New function.
11546 (d10v_frame_saved_pc): Delete function.
11547 * Makefile.in (d10v-tdep.o): Update dependencies.
11548
cad2e848
JB
115492003-01-30 J. Brobecker <brobecker@gnat.com>
11550
11551 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11552 causing some regressions due to a change in the default value
11553 for this macro.
11554
af34e669
DJ
115552003-01-29 Richard Henderson <rth@redhat.com>
11556 Elena Zannoni <ezannoni@redhat.com>
11557 Daniel Jacobowitz <drow@mvista.com>
11558
11559 Fix PR gdb/961.
8ffd9b1b 11560 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11561 variables.
11562 (RANGES_SECTION): New.
11563 (dwarf_ranges_buffer): New variable.
11564 (struct comp_unit_head): Add member "die".
11565 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11566 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11567 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11568 (dwarf2_locate_sections): Likewise.
11569 (dwarf2_build_psymtabs): Read .debug_ranges.
11570 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11571 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11572 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11573 Look for DW_AT_ranges and return the bounding box.
11574
baa93fa6
CF
115752003-01-29 Brian Ford <ford@vss.fsi.com>
11576
11577 * win32-nat.c (cygwin_pid): Removed as unused.
11578 (child_attach): Try fall back to Cygwin pid.
11579
c63f977f
JB
115802003-01-29 Jim Blandy <jimb@redhat.com>
11581
11582 * objfiles.h (struct objfile): Doc fix.
11583
d62d1979
AC
115842003-01-29 Andrew Cagney <ac131313@redhat.com>
11585
11586 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11587 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11588 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11589 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11590 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11591 (FRAME_SAVED_PC): Change to a function with predicate.
11592 * gdbarch.h, gdbarch.c: Re-generate.
11593
1ae18a04
AC
115942003-01-28 Andrew Cagney <ac131313@redhat.com>
11595
52287340
AC
11596 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11597
1ae18a04
AC
11598 * complaints.c (complain): Delete function.
11599 * complaints.h (struct deprecated_complaint): Delete definition.
11600 (complain): Delete declaration.
11601
f2c16bd6
KB
116022003-01-28 Kevin Buettner <kevinb@redhat.com>
11603
11604 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11605 dummy frames.
11606
a94dd1fd
AC
116072003-01-27 Andrew Cagney <ac131313@redhat.com>
11608
11609 * sentinel-frame.h, sentinel-frame.c: New files.
11610 * Makefile.in (frame.o): Update dependencies.
11611 (SFILES): Add sentinel-frame.c.
11612 (sentinel_frame_h): Define.
11613 (COMMON_OBS): Add sentinel-frame.o.
11614 (sentinel-frame.o): Specify dependencies.
11615 * frame.c: Include "sentinel-frame.h".
11616 (frame_register_unwind): Rewrite assuming that there is always a a
11617 ->next frame.
11618 (frame_register, generic_unwind_get_saved_register): Ditto.
11619 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11620 (create_sentinel_frame, unwind_to_current_frame): New functions.
11621 (get_current_frame): Rewrite using create_sentinel_frame and
11622 unwind_to_current_frame. When possible, always create a frame.
11623 (create_new_frame): Set next to the sentinel frame.
11624 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11625 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11626 ID cache when necessary.
11627 (frame_saved_regs_id_unwind): Use frame_relative_level.
11628 (deprecated_generic_get_saved_register): Use frame_relative_level,
11629 get_frame_saved_regs, get_frame_pc, get_frame_base and
11630 get_next_frame.
11631 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11632 frame_register.
11633
5378adc4
DJ
116342003-01-27 Daniel Jacobowitz <drow@mvista.com>
11635
11636 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11637
51ee2ddc
DJ
116382003-01-27 Daniel Jacobowitz <drow@mvista.com>
11639
11640 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11641 (maintenance_set_profile_cmd): Use error () instead of warning ().
11642
d9feb4e7
DJ
116432003-01-27 Daniel Jacobowitz <drow@mvista.com>
11644
11645 * configure.in: Check that -pg works if using --enable-profiling.
11646 Check for monstartup and _mcleanup regardless of --enable-profiling.
11647 * maint.c: Check for monstartup and _mcleanup before using them.
11648 * config.in: Regenerated.
11649 * configure: Regenerated.
11650
2d188dd3
NC
116512003-01-24 Nick Clifton <nickc@redhat.com>
11652
11653 * Add sh2e support:
11654
11655 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11656
11657 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11658 (sh2e_show_regs): New.
11659 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11660 * config/sh/tm-sh.h: Added sh2e to comments.
11661
cb3c37b2
JB
116622003-01-23 Jim Blandy <jimb@redhat.com>
11663
11664 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11665 symbols found)" message here; we haven't checked for a separate
11666 debug info file yet, so we don't know yet.
11667 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11668 we've looked everywhere. Also, there's no need to print a special
11669 message when we're loading the separate debug info file: the one
11670 symbol_file_add prints is fine.
11671
5b5d99cf
JB
116722003-01-23 Alexander Larsson <alexl@redhat.com>
11673 Jim Blandy <jimb@redhat.com>
11674
11675 Add support for executables whose debug info has been separated
11676 out into a separate file, leaving only a link behind.
11677 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11678 and separate_debug_objfile_backlink.
11679 (put_objfile_before): New declaration.
11680 * symfile.c: #include "filenames.h".
11681 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11682 debug info in a separate file, read that, too. Save the addrs
11683 argument, so we can use it again to read the separated debug info;
11684 syms_from_objfile modifies the table we pass it.
11685 (reread_symbols): After re-reading an objfile, call
11686 reread_separate_symbols to refresh its separate debug info
11687 objfile, if it has one.
11688 (reread_separate_symbols, find_separate_debug_file,
11689 get_debug_link_info, separate_debug_file_exists): New functions.
11690 (debug_file_directory): New global var.
11691 (_initialize_symfile): Initialize debug_file_directory, and
11692 provide the new `set debug-file-directory' command to let the user
11693 change it.
11694 * objfiles.c (free_objfile): If this objfile has its debug info in
11695 a separate objfile, free that one too. If this is itself a
11696 separate debug info objfile, clear our parent's backlink.
11697 (put_objfile_before): New function.
11698 * utils.c (gnu_debuglink_crc32): New function.
11699 * defs.h (gnu_debuglink_crc32): New declaration.
11700 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11701 * configure.in: Handle --with-separate-debug-dir config option.
11702 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11703 * acconfig.h (DEBUGDIR): New macro.
11704 * configure, aclocal.m4, config.in: Regenerated.
11705
7e8580c1
JB
117062003-01-22 Jim Blandy <jimb@redhat.com>
11707
7904e09f
JB
11708 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11709 like the old symbol_file_add, but taking new arguments: you can
11710 now pass in either a `struct section_addr_info' list to say where
11711 each section is loaded, or a `struct section_offsets' table. Pass
11712 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11713 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11714 with the appropriate quiescent values for the new arguments.
11715
7e8580c1
JB
11716 * symfile.c: #include "gdb_assert.h".
11717 (syms_from_objfile): Add the ability to pass in a section offset
11718 table directly, as an alternative to the section_addr_info table.
11719 Document arguments better.
11720 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11721 * symfile.h (syms_from_objfile): Update declaration.
11722 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11723 syms_from_objfile.
11724 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11725
d28f9cdf
DJ
117262003-01-22 Daniel Jacobowitz <drow@mvista.com>
11727
11728 Original patch by Tom Tromey <tromey@cygnus.com> and
11729 Jason Molenda <jmolenda@apple.com>.
11730 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11731 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11732 * NEWS: Mention profiling.
11733 * configure.in (--enable-gdbtk): Fix typo.
11734 (--enable-profiling): New. Set PROFILE_CFLAGS.
11735 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11736 Fill in function.
11737 (profiling_state): New variable.
11738 (mcleanup_wrapper): New function.
11739 (_initialize_maint): Remove NOTYET, fix call to
11740 add_setshow_boolean_cmd for "maint set profile".
11741 * configure: Regenerated.
11742
df21e465
MH
117432003-01-21 Martin M. Hunt <hunt@redhat.com>
11744
11745 * Makefile.in (install-gdbtk): Install PNG images too.
11746
73c1f219
AC
117472003-01-21 Andrew Cagney <ac131313@redhat.com>
11748
11749 * exec.c (text_start): Delete global variable.
11750 (exec_file_attach): Make text_start local to the function.
11751 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11752 * valops.c (hand_function_call): Delete code that handles
11753 BEFORE_TEXT_END and AFTER_TEXT_END.
11754 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11755 of CALL_DUMMY_LOCATION.
11756 * gdbarch.c: Regenerate.
11757 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11758 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11759 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11760 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11761 (text_end): Delete extern declaration.
11762
eb4f72c5
AC
117632003-01-21 Andrew Cagney <ac131313@redhat.com>
11764
11765 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11766 * blockframe.c (backtrace_below_main): Move to "frame.c".
11767 (frame_chain_valid): Delete check for backtrace_below_main.
11768 (_initialize_blockframe): Delete initialization, move ``set
11769 backtrace-below-main'' command to "frame.c".
11770 (do_flush_frames_sfunc): Delete function.
11771 * frame.c: Include "command.h" and "gdbcmd.h".
11772 (frame_type_from_pc): New function.
11773 (create_new_frame): Use frame_type_from_pc.
11774 (legacy_get_prev_frame): New function.
11775 (get_prev_frame): Rewrite. When an old style frame, call
11776 legacy_get_prev_frame. Otherwize, unwind the PC first.
11777 (_initialize_frame): Add ``set backtrace-below-main'' command.
11778 * Makefile.in (frame.o): Update dependencies.
11779
778ce8cc
AC
117802003-01-19 Andrew Cagney <ac131313@redhat.com>
11781
11782 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11783 DEPRECATED_REGISTERS_INFO.
11784
01c193c8
AC
117852003-01-19 Andrew Cagney <ac131313@redhat.com>
11786
11787 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11788 Maintainers'. Update `Various Maintainers'.
11789
dedc2a2b
AC
117902003-01-19 Andrew Cagney <ac131313@redhat.com>
11791
11792 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11793 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11794 Suppress actual parameters when `-'.
11795 * gdbarch.h, gdbarch.c: Regenerate.
11796
b7261c70
AC
117972003-01-19 Andrew Cagney <ac131313@redhat.com>
11798
11799 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11800 code handling dummy frames.
11801
dbe9fe58
AC
118022003-01-19 Andrew Cagney <ac131313@redhat.com>
11803
11804 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11805 (struct frame_unwind): Add field pop.
11806 * frame.h (frame_pop): Declare.
11807 * frame.c (frame_saved_regs_pop): New function.
11808 (trad_frame_unwinder): Add frame_saved_regs_pop.
11809 (frame_pop): New function.
11810 * dummy-frame.c (dummy_frame_pop): New function.
11811 (discard_innermost_dummy): New function.
11812 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11813 (dummy_frame_unwind): Add dummy_frame_pop.
11814 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11815 * valops.c (hand_function_call): Ditto.
11816 * stack.c (return_command): Ditto.
11817
570b8f7c
AC
118182003-01-18 Andrew Cagney <ac131313@redhat.com>
11819
11820 * cris-tdep.c: Fix function declaration indentation.
11821 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11822 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11823 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11824 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11825 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11826 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11827
118282003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11829
11830 * README (Unpacking and Installation -- quick overview):
11831 Warn against ".../gdb-5.3/gdb/configure".
11832
494cca16
AC
118332003-01-18 Andrew Cagney <ac131313@redhat.com>
11834
11835 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11836 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11837 (struct frame_unwind): Declare opaque.
11838 (dummy_frame_p): Declare function.
11839 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11840 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11841 * dummy-frame.c: Include "frame-unwind.h".
11842 (dummy_frame_p): New function.
11843 (dummy_frame_unwind): New variable.
11844 * frame.c: Include "frame-unwind.h".
11845 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11846 to use the new unwind field.
11847 (set_unwind_by_pc): Delete function.
11848 (create_new_frame, get_prev_frame): Set unwind field using
11849 frame_unwind_find_by_pc.
11850 (trad_frame_unwind, trad_frame_unwinder): New variables.
11851 * frame.h (trad_frame_unwind): Declare variable.
11852 (frame_id_unwind_ftype): Delete declaration.
11853 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11854 (struct frame_unwind): Declare opaque.
11855 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11856 register_unwind with a single unwind pointer.
11857 * frame-unwind.h, frame-unwind.c: New files.
11858 * Makefile.in (SFILES): Add frame-unwind.c.
11859 (frame_unwind_h): Define.
11860 (COMMON_OBS): Add frame-unwind.o.
11861 (frame-unwind.o): Specify dependencies.
11862 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11863
4efb68b1
AC
118642003-01-18 Andrew Cagney <ac131313@redhat.com>
11865
11866 * ada-valprint.c: Eliminate PTR.
11867 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11868 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11869 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11870 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11871 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11872 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11873 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11874
a84d24ee
AC
118752003-01-17 Andrew Cagney <ac131313@redhat.com>
11876
762f08a3
AC
11877 * main.c (captured_main): Don't use PTR.
11878 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11879 * gdbtypes.c (lookup_primitive_typename): Ditto.
11880 (lookup_struct_elt_type): Ditto.
11881 * f-valprint.c (info_common_command): Ditto.
11882 (list_all_visible_commons): Ditto.
11883 * jv-typeprint.c (java_type_print_base): Ditto.
11884
a84d24ee
AC
11885 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11886 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11887 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11888 i386-interix-nat.c and i386-interix-tdep.c. Rename
11889 m68klinux-nat.c and m68klinux-tdep.c. Rename
11890 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11891 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11892 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11893 * main.c (captured_main): Use xfree, not free.
11894
c170fb60
AC
118952003-01-16 Andrew Cagney <ac131313@redhat.com>
11896
11897 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11898 ID back using a parameter.
11899 * frame.c (frame_id_unwind): Update call.
11900 (frame_saved_regs_id_unwind): Update.
11901 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11902 * dummy-frame.h (struct frame_id): Add opaque declaration.
11903 (dummy_frame_id_unwind): Update declaration.
11904
867f3898
AC
119052003-01-15 Andrew Cagney <ac131313@redhat.com>
11906
11907 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11908
40622be8 119092003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11910
40622be8 11911 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11912
ae66c1fc
EZ
119132003-01-14 Elena Zannoni <ezannoni@redhat.com>
11914
997b089a 11915 Fix PR gdb/898
ae66c1fc
EZ
11916 * breakpoint.c (until_break_command): Add new argument. Use it to
11917 decide whether to stop only at the current frame or not.
11918 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11919 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11920 call.
11921 (advance_command): New function.
11922 (_initialize_infcmd): Update help string for 'until' command.
11923 Add new 'advance' command.
11924
a04257e6
DC
119252003-01-14 David Carlton <carlton@math.stanford.edu>
11926
11927 * linespec.c (decode_line_1): Normalize comments.
11928 (set_flags): Ditto.
11929 (locate_first_half): Ditto.
11930 (decode_compound): Ditto.
11931 (symtab_from_filename): Ditto.
11932 (decode_all_digits): Ditto.
11933 (decode_dollar): Ditto.
11934 (find_methods): Ditto.
11935 (find_toplevel_char): Ditto.
11936
1bac305b
AC
119372003-01-13 Andrew Cagney <ac131313@redhat.com>
11938
11939 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11940 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11941 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11942 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11943 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11944 * language.c, language.h, m32r-tdep.c: Update copyright.
11945 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11946 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11947 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11948 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11949 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11950 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11951
25caa7a8
EZ
119522003-01-13 Elena Zannoni <ezannoni@redhat.com>
11953
11954 * stabsread.h (process_later, resolve_cfront_continuation):
11955 Obsolete.
11956 Update copyright years.
11957 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11958 Update copyright year.
11959 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11960 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11961 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11962 Update copyright year.
11963 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11964 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11965 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11966 (parse_partial_symbols): Obsolete cfront support.
11967 * stabsread.c
11968 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11969 macros.
11970 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11971 read_cfront_baseclasses, read_cfront_member_functions,
11972 resolve_cfront_continuation,read_cfront_static_fields,
11973 copy_cfront_struct_fields): Obsolete functions.
11974 (define_symbol, read_one_struct_field): Obsolete cfront support.
11975 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11976 Update Copyright year.
11977
7789c6f5
EZ
119782003-01-13 Elena Zannoni <ezannoni@redhat.com>
11979
11980 * stack.c (print_frame_info, print_stack_frame_base_stub,
11981 print_stack_frame_base, show_and_print_stack_frame_stub,
11982 show_and_print_stack_frame, print_only_stack_frame_stub,
11983 print_only_stack_frame): Delete functions.
11984 (print_stack_frame_stub): Call print_frame_info instead of
11985 print_frame_info_base.
11986 (print_frame_info_base): Rename to print_frame_info.
11987 (backtrace_command_1): Call print_frame_info, instead of
11988 print_frame_info_base.
11989 (current_frame_command): Call print_stack_frame, instead of
11990 print_only_stack_frame.
11991 (frame_command): Call print_stack_frame, instead of
11992 show_and_print_stack_frame.
11993 (up_command): Ditto.
11994 (down_command): Ditto.
11995 * frame.h (print_only_stack_frame): Delete prototype.
11996 * infrun.c (normal_stop): Call print_stack_frame, instead of
11997 show_and_print_stack_frame.
11998 * thread.c (info_threads_command): Call print_stack_frame, instead
11999 of print_only_stack_frame.
12000
3f5a3016
AC
120012003-01-13 Andrew Cagney <ac131313@redhat.com>
12002
d99ba314
AC
12003 * README (Graphical interface to GDB): Update URL. Point at
12004 gdb/links/.
12005
3f5a3016
AC
12006 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12007 version match.
12008
083ae935
DJ
120092003-01-13 Daniel Jacobowitz <drow@mvista.com>
12010
12011 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12012 lines.
12013
5365276c
DJ
120142003-01-13 Daniel Jacobowitz <drow@mvista.com>
12015
12016 * thread-db.c (attach_thread): Prototype.
12017 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12018 thread information (ti), and valid flags (th_valid, ti_valid).
12019 (attach_thread): Move target_pid_to_str call to after the thread
12020 is added to GDB's list. Initialize the cache.
12021 (thread_get_info_callback, thread_db_map_id2thr)
12022 (thread_db_get_info): New functions.
12023 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12024 (thread_db_store_registers, thread_db_thread_alive)
12025 (thread_db_get_thread_local_address): Use them.
12026 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12027 of calling error() for threads in unknown state.
12028
12029 (clear_lwpid_callback): New function.
12030 (thread_db_resume): Use it to clear the cache.
12031
9fc30b6b
DJ
120322003-01-13 Daniel Jacobowitz <drow@mvista.com>
12033
12034 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12035 (resume_callback): Remove dead code.
12036
8f871025
AC
120372003-01-13 Andrew Cagney <ac131313@redhat.com>
12038
12039 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12040 predicate.
12041 * gdbarch.h, gdbarch.c: Regenerate.
12042 * stack.c (frame_info): Only initialize the saved registers when
12043 FRAME_INIT_SAVED_REGS_P.
12044 * frame.c (frame_saved_regs_register_unwind): Assert
12045 FRAME_INIT_SAVED_REGS_P.
12046 (deprecated_generic_get_saved_register): Ditto.
12047
3f565f1e
DJ
120482003-01-13 Daniel Jacobowitz <drow@mvista.com>
12049
12050 * source.c (openp): Squelch warning about "filename".
12051
072b1022
DJ
120522003-01-13 Daniel Jacobowitz <drow@mvista.com>
12053
12054 * source.c (openp): If the file does not exist don't necessarily
12055 search the path.
12056
973ccf8b
DJ
120572003-01-13 Daniel Jacobowitz <drow@mvista.com>
12058
12059 Fix PR gdb/872.
12060 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12061 (integer_types_same_name_p): New function.
12062 (rank_one_type): Use it.
12063 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12064
030292b7
DJ
120652003-01-13 Daniel Jacobowitz <drow@mvista.com>
12066
12067 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12068 variables.
12069 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12070 * configure.in: Add --with-sysroot.
12071 * configure: Regenerated.
12072 * main.c (gdb_sysroot): New variable.
12073 (captured_main): Initialize gdb_sysroot.
12074 * defs.h (gdb_sysroot): New extern declaration.
12075 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12076
afb5d334
MC
120772003-01-12 Michael Chastain <mec@shout.net>
12078
12079 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12080
751ceeb4
MC
120812003-01-12 Michael Chastain <mec@shout.net>
12082
12083 * top.c (print_gdb_version): Bump copyright year to 2003.
12084
94cd26f8
DC
120852003-01-12 David Carlton <carlton@bactrian.org>
12086
12087 * linespec.c (symtab_from_filename): Rename variable 's' to
12088 'file_symtab'.
12089
1ce79225
AC
120902003-01-12 Andrew Cagney <ac131313@redhat.com>
12091
12092 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12093 dummy frame.
12094 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12095
fa1fd571
AC
120962003-01-12 Andrew Cagney <ac131313@redhat.com>
12097
12098 * d10v-tdep.c: Include "gdb_assert.h".
12099 (d10v_store_return_value): Rewrite to match current interface.
12100 (d10v_extract_struct_value_address): Ditto.
12101 (d10v_extract_return_value): Ditto.
12102 (d10v_gdbarch_init): Set store_restore_value,
12103 extract_struct_value_address and extract_return_value.
12104
68b8d23e
JB
121052003-01-12 J. Brobecker <brobecker@gnat.com>
12106
12107 * hpread.c (set_namestring): New procedure replacing the
12108 SET_NAMESTRING macro.
12109 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12110 by calls to set_namestring.
12111
121122003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12113
12114 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12115 a compilation warning.
12116 (hpread_process_one_debug_symbol): Likewise.
12117
88d262ca
DC
121182003-01-10 David Carlton <carlton@math.stanford.edu>
12119
12120 * linespec.c (decode_line_1): Rename variable 's' to
12121 'file_symtab'.
12122 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12123 (decode_dollar): Ditto.
12124 (decode_variable): Ditto.
12125 (symbol_found): Ditto.
12126
86669319
MC
121272003-01-09 Michael Chastain <mec@shout.net>
12128
12129 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12130
616a9dc4
CV
121312003-01-07 Corinna Vinschen <vinschen@redhat.com>
12132
12133 * win32-nat.c (set_process_privilege): New function.
12134 (child_attach): Call set_process_privilege() to enable the
12135 SE_DEBUG_NAME user privilege if available in process token.
12136
3269bcfa
JB
121372003-01-10 J. Brobecker <brobecker@gnat.com>
12138
12139 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12140 compilation error in the previous revision.
12141
2b0ee454
DC
121422003-01-09 David Carlton <carlton@math.stanford.edu>
12143
12144 * linespec.c: Update copyright.
12145
b3ba1b44
DJ
121462003-01-09 Daniel Jacobowitz <drow@mvista.com>
12147
12148 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12149 than inferior_ptid.
12150 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12151
4ef3f3be
AC
121522003-01-09 Andrew Cagney <ac131313@redhat.com>
12153
479ab5a0
AC
12154 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12155 Update comments.
12156 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12157 (frame_saved_regs_zalloc): Update.
12158 (frame_saved_regs_register_unwind): Update.
12159 (create_new_frame): Update.
12160 (get_prev_frame): Update.
12161 (frame_extra_info_zalloc): Update.
12162 (deprecated_get_frame_saved_regs): Update.
12163 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12164 * cris-tdep.c: Update comment.
12165
bde58177
AC
12166 * somsolib.h: Fix function indentation.
12167 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12168 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12169 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12170 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12171 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12172
4ef3f3be
AC
12173 * infrun.c (follow_fork): Use ISO C definition.
12174 * expprint.c (print_subexp): Use xfree instead of free.
12175 * charset.c: Include "gdb_string.h" instead of <string.h>.
12176 (register_iconv_charsets): Use ISO C definition.
12177 (host_charset, target_charset): Ditto.
12178 * Makefile.in (charset.o): Update dependencies.
12179 (mi-cmd-env.o): Update dependencies.
12180
1c615f7a
AC
121812003-01-08 Andrew Cagney <cagney@redhat.com>
12182
12183 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12184 get_frame_base.
12185
c9a1dc08
AC
121862003-01-08 Andrew Cagney <ac131313@redhat.com>
12187
12188 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12189 build directories. Save edited gdb output in Mbuild.log. If a
12190 build fails, remove any final GDB executable.
12191
dbad9d94
AC
121922003-01-08 Andrew Cagney <ac131313@redhat.com>
12193
12194 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12195 replacing hex constants with function names and stripping leading
12196 file name directory prefixes.
12197
8d357cca
AC
121982003-01-08 Andrew Cagney <cagney@redhat.com>
12199
12200 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12201 get_frame_base.
12202
bca02a8a
DC
122032003-01-08 David Carlton <carlton@math.stanford.edu>
12204
12205 * linespec.c (decode_line_1): Move code into decode_variable.
12206 (decode_variable): New function.
12207
7f8ab3a0
AC
122082003-01-08 Andrew Cagney <ac131313@redhat.com>
12209
12210 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12211
7b5849cc
AC
122122003-01-08 Andrew Cagney <cagney@redhat.com>
12213
12214 * cris-tdep.c (cris_frame_init_saved_regs): Use
12215 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12216 saved_regs buffer.
12217 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12218 (sh64_nofp_frame_init_saved_regs): Ditto.
12219 (sh_fp_frame_init_saved_regs): Ditto.
12220 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12221 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12222 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12223 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12224
72a5efb3
DJ
122252003-01-08 Daniel Jacobowitz <drow@mvista.com>
12226
12227 * minsyms.c (lookup_minimal_symbol): Update comment.
12228 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12229 (lookup_minimal_symbol_solib_trampoline): Likewise.
12230
11c02a10
AC
122312003-01-08 Andrew Cagney <cagney@redhat.com>
12232
aab3ea25
AC
12233 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12234 frame_relative_level.
12235
da50a4b7
AC
12236 * alpha-tdep.c: Use get_frame_extra_info.
12237 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12238 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12239 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12240 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12241
11c02a10
AC
12242 * alpha-tdep.c: Use get_next_frame.
12243 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12244 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12245 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12246 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12247 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12248 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12249 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12250
1e2330ba
AC
122512003-01-07 Andrew Cagney <cagney@redhat.com>
12252
12253 * alpha-tdep.c: Use get_frame_base.
12254 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12255 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12256 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12257 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12258 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12259 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12260 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12261 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12262
2d75187b
AC
122632003-01-07 Andrew Cagney <cagney@redhat.com>
12264
12265 * frame.c (deprecated_get_frame_context): New function.
12266 (deprecated_set_frame_context): New function.
12267 * frame.h (deprecated_get_frame_context): Declare.
12268 (deprecated_set_frame_context): Declare.
12269 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12270 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12271
483d36b2
AC
122722003-01-07 Andrew Cagney <cagney@redhat.com>
12273
12274 * frame.c (deprecated_set_frame_next_hack): New function.
12275 (deprecated_set_frame_prev_hack): New function.
12276 * frame.h (deprecated_set_frame_next_hack): Declare.
12277 (deprecated_set_frame_prev_hack): Declare.
12278 * mcore-tdep.c (analyze_dummy_frame): Use
12279 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12280 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12281
14e91ac5
DC
122822003-01-07 David Carlton <carlton@math.stanford.edu>
12283
12284 * linespec.c (decode_line_1): Move code into decode_dollar.
12285 (decode_dollar): New function.
12286
b0c6b05c
AC
122872003-01-07 Andrew Cagney <cagney@redhat.com>
12288
12289 * arm-tdep.c (arm_init_extra_frame_info): Use
12290 deprecated_update_frame_base_hack.
12291 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12292 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12293 (fix_frame_pointer): Ditto.
12294 (mn10300_analyze_prologue): Ditto.
12295
a00a19e9
AC
122962003-01-07 Andrew Cagney <cagney@redhat.com>
12297
12298 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12299 extra_info using frame_extra_info_zalloc.
12300 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12301 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12302 (sh64_init_extra_frame_info): Ditto.
12303 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12304 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12305 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12306 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12307 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12308 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12309 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12310 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12311 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12312 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12313 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12314 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12315
12316 * mn10300-tdep.c (analyze_dummy_frame): Use
12317 deprecated_set_frame_extra_info_hack.
12318 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12319
1fb4c65b
JB
123202003-01-07 J. Brobecker <brobecker@gnat.com>
12321
12322 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12323 class is not scText. These do not define "real" procedures.
12324 (parse_partial_symbols): Likewise.
12325
9fe7d6bf
MS
123262003-01-06 Michael Snyder <msnyder@redhat.com>
12327
12328 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12329
f6c609c4
AC
123302003-01-06 Andrew Cagney <ac131313@redhat.com>
12331
12332 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12333 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12334 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12335 deprecated_frame_xmalloc_with_cleanup.
12336 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12337 deprecated_frame_xmalloc.
12338 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12339 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12340
d995ff4b
AC
123412003-01-06 Andrew Cagney <cagney@redhat.com>
12342
84dc46cb
AC
12343 * x86-64-linux-tdep.c: Include "osabi.h".
12344 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12345
d995ff4b
AC
12346 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12347
66140c26
AC
123482003-01-06 Andrew Cagney <cagney@redhat.com>
12349
12350 * MAINTAINERS (Target Instruction Set Architectures): Update
12351 arm-elf. Can be built with -Werror, has been multiarched.
12352
12353 * value.h (unpack_long): Make buffer parameter constant.
12354 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12355 * scm-lang.h (scm_parse): Ditto.
12356 * defs.h (extract_typed_address, extract_address): Ditto.
12357 (extract_long_unsigned_integer): Ditto.
12358 * inferior.h (unsigned_pointer_to_address): Ditto.
12359 (signed_pointer_to_address): Ditto.
12360 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12361 * gdbarch.h, gdbarch.c: Regenerate.
12362 * findvar.c (extract_long_unsigned_integer): Update.
12363 (extract_address): Update.
12364 (extract_typed_address): Update.
12365 (unsigned_pointer_to_address): Update.
12366 * values.c (unpack_long): Update.
12367 (unpack_double): Update.
12368 (unpack_pointer): Update.
12369 (unpack_field_as_long): Update.
12370 * d10v-tdep.c (d10v_pointer_to_address): Update.
12371 * avr-tdep.c (avr_pointer_to_address): Update.
12372 * scm-lang.c (scm_unpack): Update.
12373 * findvar.c (signed_pointer_to_address): Update.
12374
b089b3da
ML
123752003-01-06 Michal Ludvig <mludvig@suse.cz>
12376
8ffd9b1b 12377 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12378 since it is in i386-tdep.c.
12379
aff87235
JB
123802003-01-06 J. Brobecker <brobecker@gnat.com>
12381
12382 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12383 failure introduced in the previous change.
12384
34f5e845
MC
123852003-01-05 Michael Chastain <mec@shout.net>
12386
12387 * README: Remove references to deleted remote-*.c files:
12388 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12389 remote-nrom.c, remote-os9k.c, remote-udi.c.
12390
28bcfd30
MK
123912003-01-05 Mark Kettenis <kettenis@gnu.org>
12392
12393 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12394 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12395 i386_get_longjmp_target.
12396
15a5b3ee
AC
123972003-01-05 Andrew Cagney <ac131313@redhat.com>
12398
12399 * arm-tdep.c (prologue_cache): Change to a pointer.
12400 (_initialize_arm_tdep): Allocate prologue_cache.
12401 (check_prologue_cache): Update.
12402 (save_prologue_cache): Update.
12403 (arm_gdbarch_init): Update.
12404
c263362b
DJ
124052003-01-04 Daniel Jacobowitz <drow@mvista.com>
12406
12407 * stabsread.c (update_method_name_from_physname): Call complaint()
12408 instead of error.
12409
51603483
DJ
124102003-01-04 Daniel Jacobowitz <drow@mvista.com>
12411
12412 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12413 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12414 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12415
12416 * blockframe.c: Include "gdbcmd.h" and "command.h".
12417 (backtrace_below_main): New variable.
12418 (file_frame_chain_valid, func_frame_chain_valid)
12419 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12420 (generic_func_frame_chain_valid): Remove functions.
12421 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12422 (_initialize_blockframe): New function.
12423 * Makefile.in (blockframe.o): Update dependencies.
12424 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12425 comment. Call frame_chain_valid ().
12426 * frame.h: Remove old prototypes. Add prototype for
12427 frame_chain_valid and update comments to match.
12428 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12429 Remove old comment.
12430 * gdbarch.h: Regenerated.
12431 * gdbarch.c: Regenerated.
12432
12433 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12434 set_gdbarch_frame_chain_valid.
12435 * avr-tdep.c (avr_gdbarch_init): Likewise.
12436 * cris-tdep.c (cris_gdbarch_init): Likewise.
12437 * frv-tdep.c (frv_gdbarch_init): Likewise.
12438 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12439 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12440 (i386_nw_init_abi): Likewise.
12441 (i386_gdbarch_init): Likewise.
12442 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12443 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12444 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12445 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12446 * mips-tdep.c (mips_gdbarch_init): Likewise.
12447 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12448 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12449 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12450 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12451 * s390-tdep.c (s390_gdbarch_init): Likewise.
12452 * sh-tdep.c (sh_gdbarch_init): Likewise.
12453 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12454 * v850-tdep.c (v850_gdbarch_init): Likewise.
12455 * vax-tdep.c (vax_gdbarch_init): Likewise.
12456 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12457
12458 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12459 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12460 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12461 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12462 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12463 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12464 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12465 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12466
b00a8037
DJ
124672002-01-04 Daniel Jacobowitz <drow@mvista.com>
12468
12469 * Makefile.in (acconfig_h): Remove incorrect macro.
12470 (config_h): Define.
12471 (osabi.o): Update dependencies.
12472 * configure.tgt: Set gdb_osabi based on target triplet.
12473 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12474 * configure: Regenerated.
12475 * config.in: Regenerated.
12476 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12477 (GDB_OSABI_DEFAULT): Define if not already defined.
12478 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12479 (set_osabi_string): New variables.
12480 (gdbarch_register_osabi): Add new OS ABI to
12481 gdb_osabi_available_names.
12482 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12483 (set_osabi, show_osabi): New functions.
12484 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12485
4be87837
DJ
124862003-01-04 Daniel Jacobowitz <drow@mvista.com>
12487
12488 * arch-utils.c (gdbarch_info_init): Set osabi to
12489 GDB_OSABI_UNINITIALIZED.
12490 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12491 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12492 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12493 * gdbarch.c: Regenerated.
12494 * gdbarch.h: Regenerated.
12495 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12496 there's no BFD.
12497 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12498 * osabi.h (enum gdb_osabi): Move to defs.h.
12499 (gdbarch_init_osabi): Update prototype.
12500 * defs.h (enum gdb_osabi): Moved here.
12501 * Makefile.in: Update dependencies.
12502
12503 * alpha-tdep.h: Don't include "osabi.h".
12504 (struct gdbarch_tdep): Remove osabi member.
12505 * alpha-tdep.c: Include "osabi.h".
12506 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12507 iterate over arches. Update call to gdbarch_init_osabi.
12508 (alpha_dump_tdep): Don't dump osabi.
12509 * alpha-linux-tdep.c: Include "osabi.h".
12510 * alpha-osf1-tdep.c: Include "osabi.h".
12511 * alphafbsd-tdep.c: Include "osabi.h".
12512 * alphanbsd-tdep.c: Include "osabi.h".
12513
12514 * arm-tdep.h: Don't include "osabi.h".
12515 (struct gdbarch_tdep): Remove osabi member.
12516 * arm-tdep.c: Include "osabi.h".
12517 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12518 iterate over arches. Update call to gdbarch_init_osabi.
12519 (arm_dump_tdep): Don't dump osabi.
12520 * arm-linux-tdep.c: Include "osabi.h".
12521 * armnbsd-tdep.c: Include "osabi.h".
12522
12523 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12524 Update call to gdbarch_init_osabi.
12525
12526 * i386-tdep.h: Don't include "osabi.h".
12527 (struct gdbarch_tdep): Remove osabi member.
12528 * i386-tdep.c: Include "osabi.h".
12529 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12530 iterate over arches. Update call to gdbarch_init_osabi.
12531 (i386_dump_tdep): Don't dump osabi.
12532 * i386-linux-tdep.c: Include "osabi.h".
12533 * i386-sol2-tdep.c: Include "osabi.h".
12534 * i386bsd-tdep.c: Include "osabi.h".
12535 * i386gnu-tdep.c: Include "osabi.h".
12536 * i386ly-tdep.c: Include "osabi.h".
12537 * i386nbsd-tdep.c: Include "osabi.h".
12538 * i386obsd-tdep.c: Include "osabi.h".
12539
12540 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12541 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12542 check osabi when iterating over arches. Update call to
12543 gdbarch_init_osabi.
12544 (mips_dump_tdep): Don't dump osabi.
12545
12546 * ns32k-tdep.h: Don't include "osabi.h".
12547 (struct gdbarch_tdep): Remove.
12548 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12549 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12550 allocate tdep. Update call to gdbarch_init_osabi.
12551 (ns32k_dump_tdep): Remove.
12552 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12553 * ns32knbsd-tdep.c: Include "osabi.h".
12554
12555 * ppc-tdep.h: Don't include "osabi.h".
12556 (struct gdbarch_tdep): Remove osabi member.
12557 * rs6000-tdep.c: Include "osabi.h".
12558 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12559 osabi when iterating over arches. Update call to
12560 gdbarch_init_osabi.
12561 (rs6000_dump_tdep): Don't dump osabi.
12562 * ppc-linux-tdep.c: Include "osabi.h".
12563 * ppcnbsd-tdep.c: Include "osabi.h".
12564
12565 * sh-tdep.h: Don't include "osabi.h".
12566 (struct gdbarch_tdep): Remove osabi member.
12567 * sh-tdep.c: Include "osabi.h".
12568 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12569 iterate over arches. Update call to gdbarch_init_osabi.
12570 (sh_dump_tdep): Don't dump osabi.
12571 * shnbsd-tdep.c: Include "osabi.h".
12572
12573 * sparc-tdep.c: Include "osabi.h".
12574 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12575 iterate over arches. Update call to gdbarch_init_osabi.
12576 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12577 tdep structure.
12578
12579 * vax-tdep.h: Don't include "osabi.h".
12580 (struct gdbarch_tdep): Remove.
12581 * vax-tdep.c: Include "osabi.h".
12582 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12583 iterate over arches. Don't allocate tdep. Update call
12584 to gdbarch_init_osabi.
12585 (vax_dump_tdep): Remove.
12586 (_initialize_vax_tdep): Update call to gdbarch_register.
12587
a881cf8e
DJ
125882003-01-04 Daniel Jacobowitz <drow@mvista.com>
12589
12590 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12591 entirely.
12592 (breakpoint_re_set_one): Don't fetch the value for a disabled
12593 watchpoint.
12594
1e698235
DJ
125952003-01-04 Daniel Jacobowitz <drow@mvista.com>
12596
12597 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12598 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12599 (COERCE_FLOAT_TO_DOUBLE): Remove.
12600 * gdbarch.c: Regenerate.
12601 * gdbarch.h: Regenerate.
12602 * Makefile.in: Remove value_h from gdbarch_h.
12603 * valops.c (coerce_float_to_double): New variable.
12604 (default_coerce_float_to_double): Remove.
12605 (standard_coerce_float_to_double): Remove.
12606 (value_arg_coerce): Use coerce_float_to_double.
12607 (_initialize_valops): Add "set coerce-float-to-double".
12608 * value.h (default_coerce_float_to_double): Remove prototype.
12609 (standard_coerce_float_to_double): Remove prototype.
12610
12611 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12612 prototyped.
12613 * mdebugread.c (parse_symbol): Likewise.
12614 * stabsread.c (define_symbol): Mark all functions as prototyped.
12615
12616 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12617 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12618 set_gdbarch_coerce_float_to_double.
12619 * arm-tdep.c (arm_gdbarch_init): Likewise.
12620 * frv-tdep.c (frv_gdbarch_init): Likewise.
12621 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12622 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12623 * mips-tdep.c (mips_gdbarch_init): Likewise.
12624 (mips_coerce_float_to_double): Remove.
12625 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12626 (rs6000_coerce_float_to_double): Remove.
12627 * s390-tdep.c (s390_gdbarch_init): Likewise.
12628 * sh-tdep.c (sh_gdbarch_init): Likewise.
12629 (sh_coerce_float_to_double): Remove.
12630 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12631 (sparc_coerce_float_to_double): Remove.
12632 * v850-tdep.c (v850_gdbarch_init): Likewise.
12633 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12634 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12635 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12636 (hppa_coerce_float_to_double): Remove prototype.
12637 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12638
f436a26a
DJ
126392003-01-04 Daniel Jacobowitz <drow@mvista.com>
12640
12641 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12642
248f8055
DJ
126432003-01-04 Daniel Jacobowitz <drow@mvista.com>
12644
12645 Suggested by Stewart Brown <sb24@avaya.com>:
12646 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12647 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12648 (c_type_print_varspec_suffix): Likewise.
12649
72cfdc76
MK
126502003-01-04 Mark Kettenis <kettenis@gnu.org>
12651
bfd260bb
MK
12652 * configure.in: Don't set and AC_SUBST SUBDIRS.
12653 * configure: Regenerated.
12654
72cfdc76
MK
12655 * configure.in: Remove code dealing with shared libraries.
12656 * Makefile.in: Remove HLDFLAGS and HLDENV.
12657 * configure: Regenerated.
12658
c8b8a898
AC
126592003-01-04 Andrew Cagney <ac131313@redhat.com>
12660
12661 * frame.c (deprecated_frame_xmalloc): New function.
12662 (deprecated_set_frame_saved_regs_hack): New function.
12663 (deprecated_set_frame_extra_info_hack): New function.
12664 * frame.h (deprecated_frame_xmalloc): Declare.
12665 (deprecated_set_frame_saved_regs_hack): Declare.
12666 (deprecated_set_frame_extra_info_hack): Declare.
12667
14abd0fb
MK
126682003-01-04 Mark Kettenis <kettenis@gnu.org>
12669
8ee53726
MK
12670 * configure.in: Move code that provides the --enable-gdbtk option
12671 right after the code that handles the --enable-tui option, and
12672 polish it somewhat.
12673 * configure: Regenerated.
12674
14abd0fb
MK
12675 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12676 AC_CHECK_FUNCS and remove the old check for pread64.
12677 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12678 * acconfig.h (_GNU_SOURCE): Add.
12679 (HAVE_PREAD64): Remove.
12680 * configure, aclocal.m4, config.in: Regenerated.
12681
b2fb4676
AC
126822003-01-03 Andrew Cagney <ac131313@redhat.com>
12683
12684 * alpha-tdep.c: Use get_frame_saved_regs.
12685 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12686 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12687 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12688 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12689 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12690
8dcde887
MK
126912003-01-03 Mark Kettenis <kettenis@gnu.org>
12692
12693 * configure.in: Remove all use of the SUBDIRS variable; add
12694 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12695 code providing the --enable-multi-ice option, and move it right in
12696 front of the code that checks whether gdbserver is supported.
12697 Polish that too.
12698 * configure: Regenerated.
12699 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12700 @SUBDIRS@.
12701
8ccd593b
AC
127022003-01-03 Andrew Cagney <cagney@redhat.com>
12703
12704 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12705 * avr-tdep.c, cris-tdep.c: Ditto.
12706 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12707 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12708
91151a06
MK
127092003-01-03 Mark Kettenis <kettenis@gnu.org>
12710
12711 * configure.in: Remove --enable-netrom option.
12712 * configure: Regenerated.
12713
8fe84d01
MK
127142003-01-03 Mark Kettenis <kettenis@gnu.org>
12715
12716 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12717 declaration for `struct re_pattern_buffer' instead.
12718 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12719
f0394be6
JB
127202003-01-03 J. Brobecker <brobecker@gnat.com>
12721
12722 * mdebugread.c (parse_symbol): Count until the stEnd matching
12723 the structure name.
12724
27e9bf90
MK
127252003-01-02 Mark Kettenis <kettenis@gnu.org>
12726
93d331ba
MK
12727 * configure.in: Remove --with-cpu option.
12728 subscripts. Remove evil changequotes here.
12729 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12730 * config.in, configure: Regenerated.
8ffd9b1b 12731
27e9bf90
MK
12732 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12733 * configure.in: Cleanup section that sources GDB and BFD configure
12734 subscripts. Remove evil changequotes here.
12735 * config.in, configure: Regenerated.
12736
50abf9e5
AC
127372003-01-02 Andrew Cagney <ac131313@redhat.com>
12738
12739 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12740 frame accessor methods.
12741 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12742 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12743 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12744 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12745 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12746 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12747 * z8k-tdep.c: Ditto.
8ffd9b1b 12748
287c1a40
MK
127492003-01-02 Mark Kettenis <kettenis@gnu.org>
12750
f5dbc56d
MK
12751 * configure.in: Remove UI_OUT configuration code.
12752 * ada-lang.c: Update assuming UI_OUT is always true.
12753 * Makefile.in (UIOUT_CFLAGS): Remove.
12754 * configure: Regenerated.
12755 * TODO: Remove blurb about elimination of -DUI_OUT.
12756
627af7ea
MK
12757 * configure.in: Move code that provides the --enable-gdbcli,
12758 --enable-gdbmi options right before the code that handles the
12759 --enable-tui option. Polish a bit.
12760 * configure: Regenerated.
12761
06825bd1
MK
12762 * configure.in: Rewrite check for GNU regex and the
12763 --without-included regex option, and move it into the "Checks for
12764 library functions" section. This makes us use the system regex
12765 again by default on systems with version 2 of the GNU C library.
12766 This was apparently broken.
12767 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12768 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12769 * config.in, configure: Regenerated.
12770
287c1a40
MK
12771 * configure.in: Move code that provides the --enable-tui option
12772 before the "Checks for libraries" section. Polish the code
12773 somewhat and set need_curses to yes if we build the TUI. Rewrite
12774 code that looks for a library providing termcap functionality to
12775 match more closely what's done in the Readline library, and move
12776 it into to the "Checks for libraries" section.
12777 * configure: Regenerated.
12778 * Makefile.in (TERMCAP): Remove variable.
12779 * config/i386/go32.mh (TERMCAP): Remove variable.
12780
684e56bf
AC
127812003-01-02 Andrew Cagney <ac131313@redhat.com>
12782
12783 * MAINTAINERS: Mention gdb_mbuild.sh.
12784 * gdb_mbuild.sh: Rewrite.
12785
e1ea1d75
MK
127862003-01-02 Mark Kettenis <kettenis@gnu.org>
12787
12788 * configure.in: Fix typo in last change.
12789 * config.in, configure: Regenerated.
12790
1b831c93
AC
127912003-01-02 Andrew Cagney <ac131313@redhat.com>
12792
12793 * valarith.c (value_binop): Delete obsolete code and comments.
12794 * configure.host: Ditto.
12795 * buildsym.h (make_blockvector): Ditto.
12796 * buildsym.c (make_blockvector): Ditto.
12797 * defs.h (enum language): Ditto.
12798 (chill_demangle): Ditto.
12799 * elfread.c (elf_symtab_read): Ditto.
12800 * dwarfread.c (CHILL_PRODUCER): Ditto.
12801 (set_cu_language): Ditto.
12802 (handle_producer): Ditto.
12803 * expprint.c (print_subexp): Ditto.
12804 * gdbtypes.c (chill_varying_type): Ditto.
12805 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12806 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12807 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12808 (chill_varying_type): Ditto.
12809 * language.h (_LANG_chill): Ditto.
12810 * language.c (binop_result_type, integral_type): Ditto.
12811 (character_type, string_type, structured_type): Ditto.
12812 (lang_bool_type, binop_type_check): Ditto.
12813 * stabsread.h (os9k_stabs): Ditto.
12814 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12815 (define_symbol, read_type, read_struct_fields): Ditto.
12816 (read_array_type, read_enum_type, read_huge_number): Ditto.
12817 (read_range_type, start_stabs): Ditto.
12818 * symfile.c (init_filename_language_table): Ditto.
12819 (add_psymbol_with_dem_name_to_list): Ditto.
12820 * symtab.c (symbol_init_language_specific): Ditto.
12821 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12822 * symtab.h (struct general_symbol_info): Ditto.
12823 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12824 * typeprint.c (typedef_print): Ditto.
12825 * utils.c (fprintf_symbol_filtered): Ditto.
12826 * valops.c (value_cast, search_struct_field, value_slice): Delete
12827 obsolete code.
12828 (varying_to_slice): Delete function.
12829 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12830 (varying_to_slice): Delete declaration.
12831 * MAINTAINERS: Update.
12832
8bb2c122
MK
128332003-01-02 Mark Kettenis <kettenis@gnu.org>
12834
97bf5e38
MK
12835 * configure.in: Reorganize "Checks for library functions section"
12836 a bit. Remove check for `btowc' and `isascii' functions.
12837 * configure: Regenerated.
12838
5ee754fc
MK
12839 * acconfig.h (_MSE_INT_H): Remove.
12840 * configure.in: Create "Checks for header files" section, and move
12841 appropriate tests there. Don't check for objlist.h, wchar.h,
12842 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12843 misdetection fix. Also add "Checks for types", "Checks for
12844 compiler characteristics" and "Checks for library functions"
12845 sections.
12846 * config.in, configure: Regenerated.
12847
8bb2c122
MK
12848 * configure.in: Create "Checks for programs" section, and move
12849 appropriate tests there.
12850
9a156167
MK
128512003-01-01 Mark Kettenis <kettenis@gnu.org>
12852
12853 * configure.in: Create "Checks for libraries" section, and move
12854 appropriate tests there. Cleanup check for wctype in libw. Use
12855 AC_SEARCH_LIBS to see whether we need libsocket.
12856 * configure: Regenerated.
12857
a80e2bcb 12858For older changes see ChangeLog-2002
c906108c
SS
12859\f
12860Local Variables:
12861mode: change-log
12862left-margin: 8
12863fill-column: 74
12864version-control: never
12865End: