2003-10-06 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
944fcfab
AC
12003-10-06 Andrew Cagney <cagney@redhat.com>
2
3 * ppc-sysv-tdep.c: Re-indent.
4
9f0a5303
JB
52003-10-06 J. Brobecker <brobecker@gnat.com>
6
7 * language.h (default_word_break_characters): Add prototype.
8 * language.c (default_word_break_characters): New function.
9
7270b6ed
AS
102003-10-06 Andreas Schwab <schwab@suse.de>
11
12 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
13 with %eax.
14
a5d61f66
AC
152003-10-06 Andrew Cagney <cagney@redhat.com>
16
17 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
18 "h8500-tdep.c".
19 (z8k-tdep.o): Delete custom build rule.
20
28a86f5c
AC
212003-10-06 Andrew Cagney <cagney@redhat.com>
22
1bfd8a83
AC
23 * Makefile.in: Update all dependencies.
24
17144ef8
AC
25 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
26 No longer list PA as as obsolete candidate. List m32r as
27 broken instead of obsolete.
28
a5679ae5
AC
29 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
30 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
31 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
32 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
33 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
34 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
35 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
36 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
37 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
38 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
39 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
40 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
41 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
42 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
43 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
44 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
45 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
46 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
47 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
48 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
49 * config/z8k/z8k.mt: Ditto.
50
4a8269c0
AC
51 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
52 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
53 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
54 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
55 sparclite were removed.
56 * configure.host, configure.tgt: Remove corresponding tuples.
57
41989fcd
AC
58 * breakpoint.c, breakpoint.h: Remove obsolete code.
59 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
60 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
61 * stabsread.h, xcoffread.c: Ditto.
62
28a86f5c
AC
63 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
64 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
65 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
66 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
67
4efdaa0d
DL
682003-10-06 David Lecomber <dsl@sources.redhat.com>
69
70 * f-valprint.c: Reformatting
71
ae53de43
MK
722003-10-06 Mark Kettenis <kettenis@gnu.org>
73
a8bb57e7
MK
74 * x86-64-tdep.c: Remove duplicate comment.
75
ae53de43
MK
76 * x86-64-tdep.c (x86_64_store_return_value): Don't use
77 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
78 names for return values. This fixes a bug since we looked at %rbx
79 instead of %rdx.
80
473f17b0
MK
812003-10-05 Mark Kettenis <kettenis@gnu.org>
82
2c261fae
MK
83 * x86-64-tdep.c: Include "regset.h".
84
473f17b0
MK
85 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
86 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
87 sizeof_fpregset.
88 * i386-tdep.c: Include "regset.h".
89 (i386_supply_gregset): New function.
90 (i386_supply_fpregset): New function.
91 (i386_gdbarch_init): Initialze register set-related members of
92 TDEP.
93 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
94 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
95
afd48b75
AC
962003-10-03 Andrew Cagney <cagney@redhat.com>
97
98 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
99 set extract_return_value, store_return_value and
100 use_struct_convention to ppc64_sysv_abi_extract_return_value,
101 ppc64_sysv_abi_store_return_value and
102 ppc64_sysv_abi_use_struct_convention.
103 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
104 (ppc64_sysv_abi_store_return_value): Declare.
105 (ppc64_sysv_abi_use_struct_convention): Declare.
106 * ppc-sysv-tdep.c (enum return_value_convention): Define.
107 (ppc64_sysv_abi_extract_return_value): New function.
108 (ppc64_sysv_abi_store_return_value): New function.
109 (ppc64_sysv_abi_use_struct_convention): New function.
110 (ppc64_sysv_abi_return_value): New function.
111
9b540880
AC
1122003-10-03 Andrew Cagney <cagney@redhat.com>
113
114 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
115 convert a descriptor to a function when it's in the ".opd"
116 section.
117
8748518b
CV
1182003-10-03 Corinna Vinschen <vinschen@redhat.com>
119
120 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
121 reg_size to keep GCC silent.
122
0fd85043
CV
1232003-10-03 Corinna Vinschen <vinschen@redhat.com>
124
125 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
126 base for DW_EH_PE_textrel encodings.
127 (read_encoded_value): Add a DW_EH_PE_textrel case.
128 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
129 section.
130
37b517aa
MK
1312003-10-03 Mark Kettenis <kettenis@gnu.org>
132
133 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
134
12c266ea
AC
1352003-10-02 Andrew Cagney <cagney@redhat.com>
136
137 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
138 REGISTER_RAW_SIZE.
139 * gdbarch.h, gdbarch.c: Re-generate.
140 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
141 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
142 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
143 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
144 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
145 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
146 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
147 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
148 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
149 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
150 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
151 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
152 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
153 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
154 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
155 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
156
78ba4af6
JB
1572003-10-02 Jim Blandy <jimb@redhat.com>
158
159 * dwarf2read.c (struct die_info): Doc fix.
160
617daa0e
CV
1612003-10-02 Corinna Vinschen <vinschen@redhat.com>
162
163 * sh-tdep.c: Running thru gdb_indent.sh.
164
e5e33cd9
CV
1652003-10-02 Corinna Vinschen <vinschen@redhat.com>
166
167 * sh-tdep.c (sh_justify_value_in_reg): New function.
168 (sh_stack_allocsize): Ditto.
169 (flt_argreg_array): New array used for floating point argument
170 passing.
171 (sh_init_flt_argreg): New function.
172 (sh_next_flt_argreg): Ditto.
173 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
174 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
175 Fix argument passing strategy.
176 (sh_push_dummy_call_nofpu): Ditto.
177
5fe830e4
AC
1782003-10-01 Andrew Cagney <cagney@redhat.com>
179
180 * value.h (register_value_being_returned): Declare. Replace
181 "value_being_returned".
182 * infcall.c (call_function_by_hand): Use
183 register_value_being_returned.
184 * infcmd.c (print_return_value): Call
185 "register_value_being_returned", handle struct return locally.
186 * values.c (register_value_being_returned): New function. Replace
187 "value_being_returned".
188
1892003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
190
191 * linux-proc.c (linux_do_registers): New function.
192 (linux_make_note_section): Use linux_do_registers in case of
193 single threaded inferior programs.
194
64f395bf
AC
1952003-10-01 Andrew Cagney <cagney@redhat.com>
196
197 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
198 use STRUCT_ADDR. When not using "struct return convention", pass
199 "0" to "value_being_returned". Add FIXMEs.
200 * infcmd.c (print_return_value): Pass an explicit 0/1 to
201 value_being_returned. Add comments.
202 * values.c (value_being_returned): Add fixme.
203 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
204 (hppa_value_returned_from_stack): Add FIXME.
205
639d11d3
DC
2062003-09-30 David Carlton <carlton@kealia.com>
207
208 * dwarf2read.c (struct die_info): Add 'parent' field; replace
209 'has_children' and 'next' by 'child' and 'sibling'.
210 (read_comp_unit): Rework algorithm, breaking body into
211 read_die_and_children and read_die_and_siblings.
212 (read_die_and_children, read_die_and_siblings): New.
213 (read_full_die): Add 'has_children' argument; set it instead of
214 the die's 'has_children' field. Minor formatting cleanup.
215 (free_die_list): Use die->child and die->sibling instead of
216 die->next.
217 (dump_die_list): Ditto.
218 (sibling_die): Use die->sibling.
219 (psymtab_to_symtab_1): Use die's 'child' field in place of its
220 'has_children' and 'next' fields.
221 (process_die, read_file_scope, read_func_scope)
222 (read_lexical_block_scope, read_structure_scope)
223 (read_enumeration, read_array_type, read_common_block)
224 (read_namespace, read_subroutine_type, dump_die): Ditto.
225
5bffac25
AC
2262003-09-30 Andrew Cagney <cagney@redhat.com>
227
228 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
229 to 224, not 220.
230
f30992d4
AC
2312003-09-30 Andrew Cagney <cagney@redhat.com>
232
233 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
234 REGISTER_VIRTUAL_SIZE.
235 * gdbarch.h, gdbarch.c: Regenerate.
236 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
237 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
238 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
239
2e092625
AC
2402003-09-29 Andrew Cagney <cagney@redhat.com>
241
242 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
243 DEPRECATED_REGISTER_VIRTUAL_TYPE.
244 * gdbarch.h, gdbarch.c: Regenerate.
245 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
246 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
247
248 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
249 * remote-vxmips.c (vx_read_register): Ditto.
250 * remote-vx68.c (vx_read_register): Ditto.
251 * gnu-nat.c (inf_validate_procs): Ditto.
252
7a5dd6ee
JB
2532003-09-29 J. Brobecker <brobecker@gnat.com>
254
255 * infcall.c (call_function_by_hand): Fix build failure
256 introduced in the previous change to this file.
257
1fe43d45
AC
2582003-09-29 Andrew Cagney <cagney@redhat.com>
259
260 * NEWS: Mention Objective-C.
261
e28a332c
JG
2622003-09-29 Jerome Guitton <guitton@act-europe.fr>
263
264 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
265 test if the register has been saved on the stack.
266 (arm_scan_prologue_cache): When analysing the instruction
267 "str lr, [sp, #-4]", save the address where lr has been stored.
268
9ff63c35
AC
2692003-09-28 Andrew Cagney <cagney@redhat.com>
270
7f5f525d
AC
271 * frame.c (frame_read_unsigned_register): Delete function.
272 * frame.h (frame_read_unsigned_register): Delete declaration.
273 * sparc-tdep.c (sparc_init_extra_frame_info): Use
274 get_frame_register_unsigned.
275 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
276 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
277 * d10v-tdep.c (d10v_print_registers_info): Ditto.
278
279 * frame.h (frame_read_register): Delete declaration.
280 * frame.c (frame_read_register): Delete function.
281 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
282 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
283 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
284 * mips-tdep.c (mips_register_to_value): Ditto.
285 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
286 * d10v-tdep.c (d10v_print_registers_info): Ditto.
287
288 * frame.c (frame_read_signed_register): Delete function.
289 (frame_read_unsigned_register): Update comments.
290 * frame.h (frame_read_signed_register): Delete declaration.
291 * h8300-tdep.c (h8300_print_register): Use
292 get_frame_register_signed.
293 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
294
9ff63c35
AC
295 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
296 Rename VALUE_RETURNED_FROM_STACK.
297 * infcmd.c (print_return_value): Update.
298 * infcall.c (call_function_by_hand): Update.
299
41d041d6
MK
3002003-09-28 Mark Kettenis <kettenis@gnu.org>
301
302 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
303 regcache argument and reverse the order of the other two
304 arguments. Remove local regcache variable. Determine
305 architecture from REGCACHE. Update comments.
306 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
307 reverse the order of the other two arguments. Remove local
308 regcache variable. Determine architecture from REGCACHE. Update
309 comments.
310 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
311 prototypes. Update comments.
312 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
313 comment.
314 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
315 Update.
316 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
317 * i386-interix-nat.c (supply_fpregset): Update.
318 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
319 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
320 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
321 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
322 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
323 Update.
324 * i386obsd-tdep.c (fetch_core_registers): Update.
325 * i386v4-nat.c (supply_fpregset): Update.
326 * x86-64-linux-nat.c (supply_fpregset): Update.
327 * x86-64-linux-tdep.c (fetch_core_registers): Update.
328
1cb97e17
MK
3292003-09-27 Mark Kettenis <kettenis@gnu.org>
330
5716833c
MK
331 * i386-tdep.h: Put opaque declarations in alphabetical
332 order. Remove spurious whitespace.
333 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
334 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
335 * i386-tdep.c (MM0_REGNUM): Remove define.
336 (i386_mmx_regnum_p): Add gdbarch argument.
337 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
338 Rewrite using new macro definitions for FPU/SSE registers.
339 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
340 definitions from i387-tdep.h.
341 (i386_register_name): Update.
342 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
343 new macro definitions for FPU/SSE registers.
344 (i386_extract_return_value): Determine whether floating-point
345 registers are present by examining REGCACHE's architecture.
346 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
347 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
348 FPU/SSE registers.
349 (i386_register_type): Update.
350 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
351 definitions for FPU registers. Use REGCACHE's architecture to
352 determine the appropriate register numbers.
353 (i386_pseudo_register_read, i386_pseudo_register_write,
354 i386_register_reggroup_p): Update.
355 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
356 TDEP->mm0_regnum.
357 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
358 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
359 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
360 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
361 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
362 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
363 *' to `void *'.
364 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
365 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
366 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
367 definitions for FPU/SSE registers.
368 (FXSAVE_MXCSR_ADDR): New define.
369 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
370 TDEP->mm0_regnum.
371 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
372 (I387_ST0_REGNUM): Define.
373
41d35cb0
MK
374 * regcache.h (get_regcache_arch): New prototype.
375 * regcache.c (get_regcache_arch): New function.
376
54e74f72
MK
377 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
378 whitespace.
379
1cb97e17
MK
380 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
381 Initialize using ARRAY_SIZE.
382
0968aa8c
AC
3832003-09-27 Andrew Cagney <cagney@redhat.com>
384
385 * arch-utils.c (deprecated_init_frame_pc_default): Rename
386 "init_frame_pc_default".
387 * arch-utils.h (deprecated_init_frame_pc_default): Update.
388 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
389 * vax-tdep.c (vax_gdbarch_init): Update.
390 * v850-tdep.c (v850_gdbarch_init): Update.
391 * sh64-tdep.c (sh64_gdbarch_init): Update.
392 * s390-tdep.c (s390_gdbarch_init): Update.
393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
394 * mcore-tdep.c (mcore_gdbarch_init): Update.
395 * h8300-tdep.c (h8300_gdbarch_init): Update.
396 * cris-tdep.c (cris_gdbarch_init): Update.
397 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
398
54c84734
MK
3992003-09-26 Mark Kettenis <kettenis@gnu.org>
400
401 * regset.h: New file.
402 * Makefile.in (regset_h): Add.
403
1b1d3794
AC
4042003-09-25 Andrew Cagney <cagney@redhat.com>
405
406 * frame.h (deprecated_frame_saved_regs): Rename
407 get_frame_saved_regs.
408 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
409 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
410 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
411 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
412 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
413
e6beb428
AC
4142003-09-25 Andrew Cagney <cagney@redhat.com>
415
416 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
417 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
418 and Java.
419 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
420 arm*-*-* do not use the new frame code.
421
710122da
DC
4222003-09-25 David Carlton <carlton@kealia.com>
423
424 * c-exp.y: Remove 'register' declarations.
425 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
426
79c2c32d
DC
4272003-09-25 David Carlton <carlton@kealia.com>
428
429 * c-exp.y: Include cp-support.h. Add qualified_type.
430 (yylex): Delete nested type hack; add comments.
431 * cp-namespace.c (cp_lookup_nested_type): New function.
432 * cp-support.h: Declare cp_lookup_nested_type.
433 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
434 instead of value_struct_elt_for_reference.
435 * valops.c: Include cp-support.h.
436 (value_aggregate_elt): New function.
437 (value_namespace_elt): Ditto.
438 (value_struct_elt_for_reference): Make static.
439 * value.h: Delete declaration of value_struct_elt_for_reference;
440 add declaration for value_aggregate_elt.
441 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
442 (valops.o): Ditto.
443
898c62f5
DJ
4442003-09-25 Daniel Jacobowitz <drow@mvista.com>
445
446 * stack.c: Include "reggroups.h".
447 (frame_info): Only display registers in all_reggroup.
448 * Makefile.in (stack.o): Update dependencies.
449
28cd8767
JG
4502003-09-25 Jerome Guitton <guitton@act-europe.fr>
451
452 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
453 "add ip, sp #n" in the prologue.
454 (arm_scan_prologue): Ditto.
455
a4ab2b5d
JG
4562003-09-25 Jerome Guitton <guitton@act-europe.fr>
457
458 * MAINTAINERS (write after approval): Add myself.
459
3f244638
AS
4602003-09-25 Andreas Schwab <schwab@suse.de>
461
462 * m68k-tdep.c: Include "dwarf2-frame.h".
463 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
464 * Makefile.in (m68k-tdep.o): Update dependencies.
465
1c0159e0
CV
4662003-09-25 Corinna Vinschen <vinschen@redhat.com>
467
468 * sh-tdep.c (struct frame_extra_info): Remove.
469 (struct sh_frame_cache): New structure.
470 (GET_SOURCE_REG): New macro extracting source register of an opcode.
471 (GET_TARGET_REG): Ditto but target register.
472 (GET_PUSHED_REG): Remove.
473 (IS_MOV_ARG_TO_REG): New macro.
474 (IS_MOV_ARG_TO_IND_R14): New macro.
475 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
476 (IS_MOVW_PCREL_TO_REG): New macro.
477 (IS_MOVL_PCREL_TO_REG): New macro.
478 (IS_SUB_REG_FROM_SP): New macro.
479 (IS_ARG_MOV): Remove.
480 (IS_MOV_TO_R14): Remove.
481 (IS_RESTORE_FP): New macro.
482 (IS_RTS): New macro.
483 (IS_LDS): New macro.
484 (IS_MOV_FP_SP): New macro.
485 (IS_ADD_REG_TO_FP): New macro.
486 (IS_ADD_IMM_FP): New macro.
487 (sh_skip_prologue_hard_way): Remove.
488 (sh_saved_pc_after_call): Remove.
489 (sh_frame_chain): Remove.
490 (sh_find_callers_reg): Remove.
491 (sh_nofp_frame_init_saved_regs): Remove.
492 (sh_fp_frame_init_saved_regs): Remove.
493 (sh_init_extra_frame_info): Remove.
494 (sh_analyze_prologue): New function.
495 (sh_skip_prologue): Remove deprecated code. Rely on new function
496 sh_analyze_prologue when after_prologue fails.
497 (sh_frame_saved_pc): Remove.
498 (sh_alloc_frame_cache): New function.
499 (sh_frame_cache): Ditto.
500 (sh_frame_prev_register): Ditto.
501 (sh_frame_this_id): Ditto.
502 (sh_frame_unwind): New structure defining the heuristic frame
503 sniffer interface.
504 (sh_frame_sniffer): New function.
505 (sh_unwind_sp): Ditto.
506 (sh_unwind_pc): Ditto.
507 (sh_unwind_dummy_id): Ditto.
508 (sh_frame_base_address): Ditto.
509 (sh_frame_base): New structure defining new frame base code.
510 (sh_in_function_epilogue_p): New function.
511 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
512 code and to call all new code instead. Initialize dwarf2 and
513 heuristic frame sniffer.
514
5f9769d1
PH
5152003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
516
517 * parser-defs.h (struct exp_descriptor): New definition, containing
518 language-specific info for printing, prefixifying, dumping, and
519 evaluating expressions.
520 (exp_descriptor_standard): Declare new variable.
521 (print_subexp): Make global and declare here (from expprint.c).
522 (dump_subexp): Ditto.
523 (dump_subexp_body_standard): Declare.
524 (operator_length_standard): Declare.
525 (op_name_standard): Declare.
526 (print_subexp): Declare.
527 (print_subexp_standard): Declare.
528
529 * language.h (struct language_defn): Add la_exp_desc field to hold
530 pointer to table for language-specific operators.
531 Remove evaluate_exp field, which is now in struct exp_descriptor.
532
533 * parse.c (operator_length): Move most code to new
534 operator_length_standard function. Use language-specific information.
535 (operator_length_standard): New function taking most code from
536 operator_length.
537 (exp_descriptor_standard): New constant.
538
539 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
540 and OP_EXTENDED_LAST.
541
542 * expprint.c (print_subexp): Use language-specific print_subexp.
543 Make global; remove static declaration.
544 Move most code to print_subexp_standard.
545 (print_subexp_standard): New function, containing code formerly in
546 print_subexp.
547 (op_name): Add expression to argument signature.
548 Use langauge-specific op_name.
549 Move most code to op_name_standard.
550 (op_name_standard): New function, containing code formerly in op_name.
551 (dump_subexp): Use new version of op_name function.
552 Use language-specific dump_subexp_body, and move most existing code to
553 dump_subexp_body_standard.
554 (dump_raw_expression): Use new op_name interface.
555 (dump_subexp_body): Move most code to dump_subexp_body_standard.
556 (dump_subexp_body_standard): New function, containing code formerly
557 in dump_subexp_body.
558
559 * language.c (unknown_language): Add default la_exp_desc field and
560 remove evaluate_exp field.
561 (auto_language): Ditto.
562 (local_language): Ditto.
563 * f-lang.c (f_language_defn): Ditto.
564 * c-lang.c (c_language_defn): Ditto.
565 (cplus_language_defn): Ditto.
566 (asm_language_defn): Ditto.
567 (minimal_language_defn): Ditto.
568 * p-lang.c (pascal_language_defn): Ditto.
569 * m2-lang.c (m2_language_defn): Ditto.
570 * objc-lang.c (objc_language_defn): Ditto.
571
572 * jv-lang.c (exp_descriptor_java): New variable, containing
573 Java-specific expression evaluator.
574 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
575 field.
576 * scm-lang.c (exp_descriptor_scm): New variable, containing
577 Scheme-specific expression evaluator.
578 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
579 field.
580 * objc-lang.c (print_object_command): Take evaluate_exp from the
581 la_exp_desc field.
582
583 * Makefile.in (eval.o): Add dependency on parser-defs.h.
584
585 * eval.c: Include parser-defs.h for the full declaration of
586 la_exp_desc's type.
587 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
588
24daaebc
PH
5892003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
590
591 * parser-defs.h (operator_length): Declare.
592
593 * parse.c (length_of_subexp): Use operator_length to get operator
594 lengths and arities for operators.
595 Move most code to new operator_length function.
596 (operator_length): New function absorbing most code from
597 length_of_subexp.
598 (prefixify_subexp): Remove large case and use operator_length instead.
599 (parse_exp_1): Use renamings:
600 dump_prefix_expression => dump_raw_expression and
601 dump_postfix_expression => dump_prefix_expression.
602
603 * expression.h (dump_prefix_expression): Rename to ...
604 (dump_raw_expression): New name.
605 (dump_postfix_expression): Rename to ...
606 (dump_prefix_expression): New name.
607
608 * expprint.c (dump_subexp): Make global. Add comment.
609 Move most existing code to dump_subexp_body.
610 (dump_subexp_body): New function.
611 (dump_prefix_expression): Rename to dump_raw_expression.
612 Remove attempt to print the expression via print_expression: it can't
613 work before the expression is prefixified.
614 (dump_raw_expression): Renamed from dump_prefix_expression.
615 (dump_postfix_expression): Rename to dump_prefix_expression, since
616 that's what it does.
617 Remove 'note' parameter, since this routine must be used on
618 prefixified expression.
619 (dump_prefix_expression): Renamed from dump_postfix_expression.
620
8c2957c4
JB
6212003-09-22 Jim Blandy <jimb@redhat.com>
622
623 * dwarf2read.c (read_array_type): When building the type for an
624 array of unspecified length, make sure to choose the upper bound
625 so that the array's total length comes out to be zero --- that's
626 how we represent such arrays.
627
592e3010
MC
6282003-09-22 Michael Chastain <mec@shout.net>
629
630 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
631
365c70b1
JJ
6322003-09-22 Jeff Johnston <jjohnstn@redhat.com>
633
634 * top.c (quit_force): Fix indirect call to quit_target so
635 a struct qt_args pointer is passed.
636
5d6eb653
AC
6372003-09-22 Andrew Cagney <cagney@redhat.com>
638
639 * arch-utils.h (init_frame_pc_noop): Delete declaration.
640 * arch-utils.c (init_frame_pc_noop): Delete function.
641 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
642 "init_frame_pc".
643 * mips-tdep.c (mips_gdbarch_init): Ditto.
644 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
645 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
646 declaration.
647 (DEPRECATED_INIT_FRAME_PC): Delete macro.
648 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
649 declaration.
650 (DEPRECATED_INIT_FRAME_PC): Delete macro.
651
b222a67f
AG
6522003-09-22 Anthony Green <green@redhat.com>
653
654 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
655 declaration.
656
d5b5ac79
AC
6572003-09-20 Andrew Cagney <cagney@redhat.com>
658
deafb061
AC
659 * breakpoint.c: Eliminate ARGSUSED.
660 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
661 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
662 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
663 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
664 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
665 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
666 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
667 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
668 * wince.c, remote-vx.c: Ditto.
669
d5b5ac79
AC
670 * cli/cli-script.c: Remove "register" attributes.
671 * config/pa/tm-hppa.h: Ditto.
672 * cli/cli-decode.c: Ditto.
673 * cli/cli-cmds.c: Ditto.
674
c6316faa
AC
6752003-09-19 Andrew Cagney <cagney@redhat.com>
676
677 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
678 DEPRECATED_NPC_REGNUM.
679 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
680
f4f99b11
CF
6812003-09-19 Christopher Faylor <cgf@redhat.com>
682
683 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
684
1708f284
JB
6852003-09-19 Jim Blandy <jimb@redhat.com>
686
687 * macrotab.c (macro_include): Use the correct comparison to find
688 the appropriate place for this inclusion in the list.
689
b9fbf434
AC
6902003-09-19 Andrew Cagney <cagney@redhat.com>
691
692 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
693 (DEPRECATED_HPUX_TEXT_END): Define.
694 (deprecated_hpux_text_end): Declare.
695 (struct target_ops): Declare opaque.
696 * hppah-nat.c (text_end): Make static.
697 (deprecated_hpux_text_end): New function.
698 * exec.c (text_end): Delete global variable.
699 (NEED_TEXT_START_END): Do not define.
700 (exec_file_attach): Replace code computing "text_end" code with
701 call to DEPRECATED_HPUX_TEXT_END.
702
5b03f266
AC
7032003-09-19 Andrew Cagney <cagney@redhat.com>
704
705 * utils.c (align_up, align_down): New functions.
706 * defs.h (align_up, align_down): Declare.
707 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
708 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
709 and "align_down".
710 (round_up, round_down): Delete functions.
711 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
712 "align_down".
713 (ROUND_DOWN, ROUND_UP): Delete macros.
714 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
715 * h8300-tdep.c: Replace "round_up" and "round_down" with
716 "align_up" and "align_down".
717 (round_up, round_down): Delete macros.
718 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
719 "align_down".
720 (ROUND_UP, ROUND_DOWN): Delete macros.
721
51db5742
JB
7222003-09-18 J. Brobecker <brobecker@gnat.com>
723
724 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
725 hard-coded constant. Use the proper machine name instead.
726
77949794
AC
7272003-09-17 Andrew Cagney <cagney@redhat.com>
728
729 * sparc-tdep.c (legacy_register_name): Delete function.
730 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
731 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
732 * infcmd.c (gdb_register_name): Delete variable.
733 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
734 REGISTER_NAME and "tm.h".
735 * gdbarch.h, gdbarch.c: Regenerate.
736 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
737 REGISTER_NAMES in comments.
738 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
739 * m68klinux-nat.c (regmap): Ditto.
740
b55c33cc
JB
7412003-09-17 Jim Blandy <jimb@redhat.com>
742
743 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
744
957e27ac
AC
7452003-09-17 Andrew Cagney <cagney@redhat.com>
746
747 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
748 (ppcnbsd_init_abi): Set "use_struct_convention" to
749 "ppcnbsd_use_struct_convention".
750
192cb3d4
MK
7512003-09-17 Mark Kettenis <kettenis@gnu.org>
752
753 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
754 * gdbarch.h, gdbarch.c: Regenerate.
755 (stabs_argument_has_addr): New architecture method.
756 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
757 * arch-utils.c: Include "buildsym.h".
758 (default_stabs_argument_has_addr): New function.
759 * stabsread.c (define_symbol): Use stabs_argument_has_addr
760 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
761
efe59759
AC
7622003-09-17 Andrew Cagney <cagney@redhat.com>
763
764 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
765 * gdbarch.h, gdbarch.c: Regenerate.
766 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
767 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
768 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
769 * sparcnbsd-tdep.c: Update.
770
62700349
AC
7712003-09-17 Andrew Cagney <cagney@redhat.com>
772
773 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
774 * gdbarch.h, gdbarch.c: Regenerate.
775 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
776 * d10v-tdep.c, frame.c: Update.
777 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
778 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
779 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
780 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
781 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
782 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
783 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
784 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
785 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
786 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
787 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
788 * config/pa/nm-hppah.h: Update.
789
b9ff3018
AC
7902003-09-16 Andrew Cagney <cagney@redhat.com>
791
792 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
793 "use_struct_convention" to "ppc_linux_use_struct_convention".
794 (ppc_linux_use_struct_convention): New function.
795 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
796 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
797 "rs6000_use_struct_convention".
798 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
799 declaration.
800 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
801 Delete function.
802
aa1ee363
AC
8032003-09-16 Andrew Cagney <cagney@redhat.com>
804
805 * buildsym.c: Remove more occurances of "register".
806 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
807 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
808 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
809 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
810 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
811 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
812 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
813 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
814
f2ea0907
CV
8152003-09-16 Corinna Vinschen <vinschen@redhat.com>
816
817 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
818 numbers to enumeration values.
819 * sh-tdep.c: Accomodate above change.
820 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
821 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
822 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
823 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
824 (IS_FPUSH): Rename from IS_FMOV.
825 (sh_extract_struct_value_address): Remove useless comment.
826 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
827 instead of own local values.
828 (sh_dump_tdep): Remove.
829 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
830 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
831
1c704f11
AC
8322003-09-15 Andrew Cagney <cagney@redhat.com>
833
834 * doublest.c (convert_floatformat_to_doublest): No longer need to
835 cast "exp_bias" to an int. Reverts 2002-12-04 change.
836
ac79b88b
DJ
8372003-09-15 Daniel Jacobowitz <drow@mvista.com>
838
839 * values.c (unpack_double): Call floatformat_is_valid.
840
1c671366
MK
8412003-09-15 Mark Kettenis <kettenis@gnu.org>
842
de5227fb
MK
843 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
844 ps_strings into a long.
845
1c671366
MK
846 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
847 _initialize_am64fbsd_nat.
848
a604369a
KB
8492003-09-15 Kevin Buettner <kevinb@redhat.com>
850
851 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
852 associated with DW_AT_ranges attribute is out of bounds.
853
b3cacbee
DL
8542003-09-15 David Lecomber <dsl@sources.redhat.com>
855
856 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
857
d0f37bb2
MC
8582003-09-14 Michael Chastain <mec@shout.net>
859
860 * config/m68k/nm-apollo68v.h: Delete.
861 * config/m68k/xm-apollo68v.h: Delete.
862
69517000
AC
8632003-09-14 Andrew Cagney <cagney@redhat.com>
864
865 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
866 * dcache.c: Update copyrights and descriptions.
867 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
868
ef8b349d
AC
8692003-09-14 Andrew Cagney <cagney@redhat.com>
870
871 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
872 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
873
52f0bd74
AC
8742003-09-14 Andrew Cagney <cagney@redhat.com>
875
876 * alpha-nat.c: Remove some occurances of "register".
877 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
878 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
879 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
880 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
881 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
882 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
883 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
884 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
885 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
886 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
887 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
888 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
889 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
890 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
891 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
892 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
893 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
894 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
895 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
896 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
897 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
898 * values.c, vax-tdep.c, xcoffread.c: Ditto.
899
4a4b3fed
AC
9002003-09-13 Andrew Cagney <cagney@redhat.com>
901
902 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
903 * ppc-tdep.h (struct regcache): Declare opaque.
904 * objfiles.h (struct objfile_data): Declare opaque.
905 * cp-support.h (struct objfile): Declare opaque.
906 * linux-nat.h (target_waitstatus): Declare opaque.
907
2110b94f
MK
9082003-09-14 Mark Kettenis <kettenis@gnu.org>
909
1c671366
MK
910 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
911 (stabs_argument_has_addr): New architecture method.
912 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
913 * arch-utils.c: Include "buildsym.h".
914 (default_stabs_argument_has_addr): New function.
915 * stabsread.c (define_symbol): Use stabs_argument_has_addr
916 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
917
2110b94f
MK
918 * cris-tdep.c (cris_gdbarch_init): Set
919 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
920 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
921 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
922 * mips-tdep.c (mips_gdbarch_init): Likewise.
923 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
924 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
925
48436ce6
AC
9262003-09-13 Andrew Cagney <cagney@redhat.com>
927
928 * values.c (using_struct_return): Delete "function" and "funcaddr"
929 parameters.
930 * value.h (using_struct_return): Update declaration.
931 * infcmd.c (finish_command_continuation): Update.
932 (finish_command): Update.
933 * infcall.c (call_function_by_hand): Update.
934 * eval.c (evaluate_subexp_standard): Update.
935
403d9909
CF
9362003-09-13 Christopher Faylor <cgf@redhat.com>
937
938 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
939 SSE registers since gdb will not operate correctly without this.
940 Restore include file ordering munged in previous change.
941 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
942
ebf7d56b
MK
9432003-09-13 Mark Kettenis <kettenis@gnu.org>
944
8e823e25
MK
945 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
946 REG_STRUCT_HAS_ADDR.
947 * gdbarch.c, gdbarch.h: Updated.
948 * infcall.c (call_function_by_hand): Update.
949 * stabsread.c (define_symbol): Updated.
950
ebf7d56b
MK
951 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
952
d3f13f72
CF
9532003-09-12 Christopher Faylor <cgf@redhat.com>
954
955 * win32-nat.c: Reorganize so that defines used by target headers are
956 actually defined by the system headers.
957 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
958 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
959
14f75137
JB
9602003-09-12 Jim Blandy <jimb@redhat.com>
961
d646061f
JB
962 * dbxread.c (read_dbx_symtab): Don't report an internal error if
963 the file has no .data, .bss, or .rodata sections. Instead wait
964 until we see a variable alleged to live in one of those sections.
965
2a13f9bc
JB
966 * dbxread.c (read_dbx_symtab): If we have no .data section and no
967 .bss section, presume that any variables we find live in the
968 .rodata section.
969
4f49b26b
JB
970 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
971 offsets for global and static variables.
972
14f75137
JB
973 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
974 symbol types are, by definition, in the .data section, so it is
975 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
976 If there is no .data section, there should be no N_DATA or N_DATA
977 | N_EXT symbols.
978
212c460c
MK
9792003-09-12 Mark Kettenis <kettenis@gnu.org>
980
981 * amd64fbsd-tdep.c: Fix sigtramp recognition.
982 (amd64fbsd_sigcontext_addr): Rewrite.
983 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
984 with correct values.
985 (amd64fbsd_sc_reg_offset): Initialize with correct values.
986 (amd64fbsd_init_abi): Fix typo.
987
68856ea3
AC
9882003-09-12 Andrew Cagney <cagney@redhat.com>
989
990 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
991 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
992
627b3ba2
AC
9932003-09-12 Andrew Cagney <cagney@redhat.com>
994
995 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
996 "entry_file_highpc". Update comments.
997 * defs.h (deprecated_inside_entry_file): Rename
998 "inside_entry_file".
999 * blockframe.c (deprecated_inside_entry_file): Rename
1000 "inside_entry_file".
1001 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1002 * vax-tdep.c (vax_frame_chain): Update.
1003 * sh64-tdep.c (sh64_frame_chain): Update.
1004 * sh-tdep.c (sh_frame_chain): Update.
1005 * rs6000-tdep.c (rs6000_frame_chain): Update.
1006 * ns32k-tdep.c (ns32k_frame_chain): Update.
1007 * mips-tdep.c (mips_frame_chain): Update.
1008 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1009 * m32r-tdep.c (m32r_frame_this_id): Update.
1010 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1011 * frv-tdep.c (frv_frame_this_id): Update.
1012 * d10v-tdep.c (d10v_frame_this_id): Update.
1013 * cris-tdep.c (cris_frame_chain): Update.
1014 * blockframe.c (legacy_frame_chain_valid): Update.
1015 * avr-tdep.c (avr_frame_this_id): Update.
1016 * arm-tdep.c (arm_prologue_this_id): Update.
1017 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1018 * objfiles.c (objfile_relocate): Update.
1019 * mipsread.c (mipscoff_symfile_read): Update.
1020 (mipscoff_symfile_read): Update.
1021 * mdebugread.c (parse_partial_symbols): Update.
1022 * dwarfread.c (read_file_scope): Update.
1023 * dwarf2read.c (read_file_scope): Update.
1024 * dbxread.c (read_dbx_symtab): Update.
1025 (read_dbx_symtab): Update.
1026 * coffread.c (complete_symtab): Update.
1027
b0abbc58
JJ
10282003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1029
1030 * top.c (quit_target): New static helper function.
1031 (quit_force): Moved code to quit_target(). Call quit_target()
1032 via catch_errors() to catch errors during quit.
1033
a1632d59
DC
10342003-09-11 David Carlton <carlton@kealia.com>
1035
1036 * buildsym.c (finish_block): Use allocate_block to allocate the
1037 block.
1038 * mdebugread.c (new_block): Add FIXME.
1039
5c4e30ca
DC
10402003-09-11 David Carlton <carlton@kealia.com>
1041
1042 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1043 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1044 (recursive_dump_type): Ditto.
1045 * printcmd.c (print_formatted): Ditto.
1046 * typeprint.c (print_type_scalar): Ditto.
1047 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1048 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1049 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1050 maint_cplus_cmd_list.
1051 * cp-support.c: Make maint_cplus_cmd_list extern.
1052 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1053 command.h.
1054 (lookup_symbol_file): Look in possible namespace blocks when
1055 appropriate.
1056 (initialize_namespace_symtab): New.
1057 (get_possible_namespace_block, free_namespace_block)
1058 (check_possible_namespace_symbols)
1059 (check_possible_namespace_symbols_loop)
1060 (check_one_possible_namespace_symbol)
1061 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1062 (_initialize_cp_namespace): Ditto.
1063 * block.h: Declare allocate_block.
1064 * block.c (allocate_block): New.
1065 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1066 allocate_block.
1067 * symfile.h: Update declaration of add_psymbol_to_list.
1068 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1069 question.
1070 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1071 scan_partial_symbols_call.
1072 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1073 helper functions.
1074 (add_partial_symbol): If necessary, scan mangled names for names
1075 of namespaces.
1076 (add_partial_namespace): Add NAMESPACE argument; generate partial
1077 symbols associated to namespaces.
1078 (add_partial_enumeration): Add NAMESPACE argument.
1079 (new_symbol): Allow namespace syms.
1080 (read_namespace): Generate namespace syms.
1081 * objfiles.h: Add opaque declaration of struct symtab.
1082 (struct objfile): Add cp_namespace_symtab member.
1083 * objfiles.c (allocate_objfile): Set
1084 objfile->cp_namespace_symtab.
1085 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1086 dictionary_h, command_h.
1087
33a7c2fc
AC
10882003-09-11 Andrew Cagney <cagney@redhat.com>
1089
1090 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1091 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1092 near the function's end.
1093 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1094 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1095 regcache_raw_write_signed to set SP_REGNUM.
1096
63cd24fe
EZ
10972003-09-11 Elena Zannoni <ezannoni@redhat.com>
1098
1099 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1100 orig_addrs is set up properly.
1101
f27dd7fd
AC
11022003-09-11 Andrew Cagney <cagney@redhat.com>
1103
1104 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1105 * gdbarch.h, gdbarch.c: Re-generate.
1106 * infcall.c (call_function_by_hand): Update.
1107 * hppa-tdep.c (hppa_push_arguments): Update.
1108 * ada-lang.c (place_on_stack): Update.
1109 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1110 * sparc-tdep.c (sparc_gdbarch_init): Update.
1111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1112 * hppa-tdep.c (hppa_gdbarch_init): Update.
1113 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1114 stack_align.
1115
f630a401
DJ
11162003-09-11 Daniel Jacobowitz <drow@mvista.com>
1117
1118 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1119 register do need a frame.
1120
0ddabb4c
AC
11212003-09-11 Andrew Cagney <cagney@redhat.com>
1122
1123 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1124 buildable since GDB 5.0.
1125 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1126 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1127 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1128 * irix4-nat.c: Delete file.
1129 * config/mips/irix4.mh: Delete file.
1130 * config/mips/irix3.mh: Delete file.
1131 * config/mips/irix3.mt: Delete file.
1132 * config/mips/tm-irix3.h: Delete file.
1133 * config/mips/nm-irix3.h: Delete file.
1134 * config/mips/xm-irix3.h: Delete file.
1135 * config/mips/nm-irix4.h: Delete file.
1136 * config/mips/xm-irix4.h: Delete file.
1137 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1138
fde2cceb
JB
11392003-09-10 J. Brobecker <brobecker@gnat.com>
1140
1141 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1142 * Makefile.in (hppa-tdep.o): Update dependencies.
1143
66f667f5
JW
11442003-09-10 James E Wilson <wilson@specifixinc.com>
1145
ef5fd69f
JW
1146 * MAINTAINERS: Change my e-mail address. Move to paper trail
1147 section.
66f667f5 1148
53e8aaea
KB
11492003-09-10 Kevin Buettner <kevinb@redhat.com>
1150
1151 * MAINTAINERS (frv): New ISA entry.
1152
dcc6aaff
KB
11532003-09-10 Kevin Buettner <kevinb@redhat.com>
1154
1155 * frv-tdep.c (dis-asm.h): Include.
1156 * Makefile.in (frv-tdep.o): Update dependencies.
1157
932644f0
JJ
11582003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1159
1160 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1161 Fix typo for high range of floating registers.
1162
91c24f0a
DC
11632003-09-09 David Carlton <carlton@kealia.com>
1164
1165 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1166 highpc initialization here out of scan_partial_symbols.
1167 (scan_partial_symbols): Restructure into a recursive version,
1168 calling add_partial_namespace and add_partial_enumeration when
1169 appropriate.
1170 (add_partial_namespace): New.
1171 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1172
c9263853
AC
11732003-09-09 Andrew Cagney <cagney@redhat.com>
1174
e56a0ecc
AC
1175 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1176 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1177 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1178 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1179
794a477a
AC
1180 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1181 (rs6000_push_dummy_call): Set the "TOC" register.
1182
c9263853
AC
1183 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1184 methods "max_register_raw_size", "max_register_virtual_size" or
1185 "register_virtual_size".
1186
afa7d0b2
ILT
11872003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1188
1189 * MAINTAINERS: Update my e-mail address.
1190
7a41266b
AC
11912003-09-09 Andrew Cagney <cagney@redhat.com>
1192
1193 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1194 (rs6000_push_dummy_call): Store the struct return address.
1195 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1196
77b2b6d4
AC
11972003-09-09 Andrew Cagney <cagney@redhat.com>
1198
1199 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1200 "ppc_sysv_abi_push_arguments".
1201 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1202 "ppc_sysv_abi_push_arguments".
1203 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1204 instead of "push_arguments".
1205 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1206
e8a7b686
AC
12072003-09-09 Andrew Cagney <cagney@redhat.com>
1208
1209 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1210 instead of CALL_DUMMY_ADDRESS.
1211
f86f5ca3
PH
12122003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1213
1214 * p-lang.c: Eliminate "register".
1215 * c-lang.c: Ditto.
1216 * expprint.c: Ditto.
1217 * f-lang.c: Ditto.
1218 * jv-lang.c: Ditto.
1219 * language.c: Ditto.
1220 * m2-lang.c: Ditto.
1221 * parse.c: Ditto.
1222 * scm-lang.c: Ditto.
1223 * objc-lang.c: Ditto.
1224
83ee270e
NC
12252003-09-09 Nick Clifton <nickc@redhat.com>
1226
1227 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1228
a89aa300
AC
12292003-09-04 Andrew Cagney <cagney@redhat.com>
1230
1231 * avr-tdep.c: Include "dis-asm.h".
1232 * cris-tdep.c: Include "dis-asm.h".
1233 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1234 instead of corresponding typedef.
1235 * h8300-tdep.c: Include "dis-asm.h".
1236 * ia64-tdep.c: Include "dis-asm.h".
1237 * i386-tdep.c: Include "dis-asm.h".
1238 (i386_print_insn): Use "struct disassemble_info" instead of
1239 corresponding typedef.
1240 * m68k-tdep.c: Include "dis-asm.h".
1241 * mcore-tdep.c: Include "dis-asm.h".
1242 * mips-tdep.c: Include "dis-asm.h".
1243 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1244 instead of corresponding typedef.
1245 * ns32k-tdep.c: Include "dis-asm.h".
1246 * s390-tdep.c: Include "dis-asm.h".
1247 * sparc-tdep.c: Include "dis-asm.h".
1248 * vax-tdep.c: Include "dis-asm.h".
1249 * v850-tdep.c: Include "dis-asm.h".
1250 * mn10300-tdep.c: Include "dis-asm.h".
1251 * rs6000-tdep.c: Include "dis-asm.h".
1252 * xstormy16-tdep.c: Include "dis-asm.h".
1253 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1254 print_insn_xstormy16.
1255 * Makefile.in (v850-tdep.o): Update dependencies.
1256 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1257 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1258 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1259 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1260 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1261 (gdbarch_h): Remove $(dis_asm_h).
1262 * disasm.c: Include "dis-asm.h".
1263 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1264 corresponding typedef.
1265 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1266 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1267 * gdbarch.sh: Do not include "dis-asm.h".
1268 (struct disassemble_info): Declare opaque.
1269 (TARGET_PRINT_INSN): Update declaration.
1270 * gdbarch.h, gdbarch.c: Re-generate.
1271
88a82a65
AC
12722003-09-08 Andrew Cagney <cagney@redhat.com>
1273
1274 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1275 CALL_DUMMY_ADDRESS, change to a predicate.
1276 * gdbarch.h, gdbarch.c: Re-generate.
1277 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1278 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1279 * infcall.c (call_function_by_hand): Ditto.
1280 * sparc-tdep.c (sparc_push_return_address): Ditto.
1281 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1282 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1283 CALL_DUMMY_ADDRESS with entry_point_address.
1284 * v850-tdep.c (v850_push_return_address): Ditto.
1285 * s390-tdep.c (s390_push_return_address): Ditto.
1286 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1287 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1288 * mcore-tdep.c (mcore_push_return_address): Ditto.
1289 * cris-tdep.c (cris_push_return_address): Ditto.
1290 * arm-tdep.c (arm_push_return_address): Ditto.
1291
3e2c4033
AC
12922003-09-08 Andrew Cagney <cagney@redhat.com>
1293
1294 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1295 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1296 and REG_UNMODIFIED to REG_SAME_VALUE.
1297 (execute_cfa_program): Update.
1298 (dwarf2_frame_cache): Update. Initialize table to
1299 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1300 location.
1301 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1302
39efb398
AC
13032003-09-08 Andrew Cagney <cagney@redhat.com>
1304
1305 * gnu-nat.c: Remove "inline" function attribute.
1306 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1307
f5cb5aca
KB
13082003-09-08 Kevin Buettner <kevinb@redhat.com>
1309
1310 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1311 target.
1312
1cb761c7
KB
13132003-09-08 Kevin Buettner <kevinb@redhat.com>
1314
1315 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1316 (frame_extra_info): Rename this struct to frv_unwind_cache.
1317 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1318 Add fields ``prev_sp'' and ``base''.
1319 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1320 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1321 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1322 Delete.
1323 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1324 Revise all callers. Fill in the unwind cache argument and make
1325 other adjustments to account for new frame mechanisms.
1326 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1327 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1328 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1329 (frv_frame_unwind, frv_frame_base): New structs.
1330 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1331 additional arguments expected by this method and adjust function
1332 body accordingly.
1333 (frv_gdbarch_init): Remove calls to the following functions:
1334 set_gdbarch_deprecated_init_frame_pc(),
1335 set_gdbarch_deprecated_saved_pc_after_call(),
1336 set_gdbarch_deprecated_frame_chain(),
1337 set_gdbarch_deprecated_frame_saved_pc(),
1338 set_gdbarch_deprecated_frame_init_saved_regs(),
1339 set_gdbarch_deprecated_push_arguments(),
1340 set_gdbarch_deprecated_push_return_address(),
1341 set_gdbarch_deprecated_pop_frame(),
1342 set_gdbarch_deprecated_call_dummy_words(),
1343 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1344 set_gdbarch_deprecated_init_extra_frame_info(),
1345 set_gdbarch_deprecated_dummy_write_sp(), and
1346 set_gdbarch_deprecated_pc_in_call_dummy().
1347 Add calls to the following functions:
1348 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1349 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1350 frame_base_set_default().
1351 * Makefile.in (frv-tdep.o): Update dependencies.
1352
68f6cf99
MK
13532003-09-09 Mark Kettenis <kettenis@gnu.org>
1354
1355 * dwarf2-frame.c (read_encoded_value): Add support for
1356 DW_EH_PE_aligned encoding.
1357
73b65bb0
DJ
13582003-09-08 Daniel Jacobowitz <drow@mvista.com>
1359
1360 * infrun.c (normal_stop): Don't print a message if the inferior
1361 has exited.
1362
7c8a5605
JB
13632003-09-08 Jim Blandy <jimb@redhat.com>
1364
1365 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1366 * dbxread.c: #include "gdb_assert.h".
1367 (read_dbx_symtab): If the objfile has no .data section, use the
1368 section index for the .bss section instead.
1369
7dd88986
DJ
13702003-09-08 Daniel Jacobowitz <drow@mvista.com>
1371
1372 * frame.c (deprecated_safe_get_selected_frame): New function.
1373 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1374 * findvar.c (read_var_value): Call it.
1375
55ff77ac
CV
13762003-09-08 Corinna Vinschen <vinschen@redhat.com>
1377
1378 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1379 (sh64-tdep.o): Add dependencies.
1380 * configure.tgt: Add FIXME to sh-*-linux*.
1381 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1382 (sh_gdbarch_init): Always set correct sh_show_regs function
1383 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1384 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1385 * sh64-tdep.c: New file, containing all sh64 related code from
1386 sh-tdep.c.
1387 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1388 * config/sh/linux.mt (TDEPFILES): Ditto.
1389 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1390 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1391 * config/sh/wince.mt (TDEPFILES): Ditto.
1392
bfb39158
DJ
13932003-09-07 Daniel Jacobowitz <drow@mvista.com>
1394
1395 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1396 (stop_wait_callback): Handle !lp->signalled also.
1397 (lin_lwp_has_pending, flush_callback): New functions.
1398 (lin_lwp_wait): Call flush_callback.
1399 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1400 (linux_proc_pending_signals): New function.
1401 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1402
9407de8e
DJ
14032003-09-07 Daniel Jacobowitz <drow@mvista.com>
1404
1405 From Nick Kelsey <nickk@ubicom.com>:
1406 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1407 when the stop PC is at the beginning of a function also.
1408
2ef47cd0
DJ
14092003-09-06 Daniel Jacobowitz <drow@mvista.com>
1410
1411 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1412 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1413
6f4492c8
MK
14142003-09-06 Mark Kettenis <kettenis@gnu.org>
1415
1416 * sol-thread.c: Include "gdb_string.h".
1417
d3420b2f
MK
14182003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1419
1420 * gcore.c: Reorder include files in alphabetical order. Include
1421 "gdb_assert.h". Various coding style fixes.
1422 (derive_stack_segment, derive_heap_segment): Replace check for
1423 non-null BOTTOM and TOP with gdb_assert.
1424 (derive_heap_segment): Replace check for successful creation of
1425 ZERO with gdb_assert.
1426 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1427
5220ea4c
AC
14282003-09-04 Andrew Cagney <cagney@redhat.com>
1429
1430 * thread-db.c (verbose_dlsym): New function.
1431 (thread_db_load): Use verbose_dlsym
1432 (thread_db_new_objfile): Print that libthread_db was loaded, and
1433 that thread debugging was enabled.
1434
6e8c2c06
AC
14352003-09-04 Andrew Cagney <cagney@redhat.com>
1436
1437 * configure.tgt: Add "mips64*-*-*" target. Delete
1438 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1439 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1440 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1441 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1442 mips*-sony-*, and mips64*-*-elf* targets.
1443 * config/mips/embedl.mt: Delete file.
1444 * config/mips/embedl64.mt: Delete file.
1445 * config/mips/mips.mt: Delete file.
1446 * config/mips/mips64.mt: Delete file.
1447 * config/mips/tm-embed.h: Delete file.
1448 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1449 * config/mips/embed64.mt: Delete out-of-date comment.
1450
3a3bc038
AC
14512003-09-04 Andrew Cagney <cagney@redhat.com>
1452
1453 * hppa-tdep.c (hppa_gdbarch_init): Set
1454 "have_nonsteppable_watchpoint".
1455 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1456 * mips-tdep.c (mips_dump_tdep): Do not print
1457 HAVE_NONSTEPPABLE_WATCHPOINT.
1458 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1459 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1460 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1461 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1462
a957e642
CV
14632003-09-04 Corinna Vinschen <vinschen@redhat.com>
1464
1465 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1466 unused code. Add comment.
1467
a6fbcf2f
CV
14682003-09-04 Corinna Vinschen <vinschen@redhat.com>
1469
1470 * breakpoint.c (watchpoint_check): Check for pc being in an
1471 epilogue if watchpoint frame couldn't be found.
1472
c14a44d5
AC
14732003-09-04 Andrew Cagney <cagney@redhat.com>
1474
1475 * Makefile.in: Re-generate all dependencies.
1476
f6c40618
AC
14772003-09-03 Andrew Cagney <cagney@redhat.com>
1478
1479 * arch-utils.h (legacy_print_insn): Delete declaration.
1480 * arch-utils.c (legacy_print_insn): Delete function.
1481 * disasm.c (deprecated_tm_print_insn_info): Delete.
1482 (_initialize_disasm): Delete function, contained code initializing
1483 deprecated_tm_print_insn_info.
1484 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1485 (deprecated_tm_print_insn_info): Delete.
1486 (TARGET_PRINT_INSN): Do not provide a default.
1487 * gdbarch.h, gdbarch.c: Re-generate.
1488
242e8be5
AC
14892003-09-03 Andrew Cagney <cagney@redhat.com>
1490
1491 * disasm.c (fprintf_disasm): New function.
1492 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1493 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1494 reverts 2003-08-14 change.
1495 (_initialize_disasm): Call "init_disassemble_info", instead of
1496 INIT_DISASSEMBLE_INFO_NO_ARCH.
1497
3ffc3dda
MS
14982003-09-03 Michael Snyder <msnyder@redhat.com>
1499
1500 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1501
52d16ba8
AC
15022003-09-03 Andrew Cagney <cagney@redhat.com>
1503
1504 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1505 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1506 * symfile.c (syms_from_objfile): Update.
1507 (reread_symbols): `Update
1508 * exec.c (exec_file_attach): Update.
1509 (exec_file_attach): Update.
1510 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1511 2003-08-29 change.
1512 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1513
eb5492fa
DJ
15142003-09-03 Daniel Jacobowitz <drow@mvista.com>
1515
1516 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1517 trad-frame.h.
1518 (arm_get_cache): Delete macro.
1519 (struct arm_prologue_cache): Update comments. Make saved_regs into
1520 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1521 to prev_sp.
1522 (thumb_scan_prologue): Update for cache changes. Don't call
1523 DEPRECATED_PC_IN_CALL_DUMMY.
1524 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1525 argument and use it in desperation search for our prologue. Do not
1526 search past the specified PC.
1527 (arm_make_prologue_cache): Simplify.
1528
1529 (arm_prologue_this_id, arm_prologue_prev_register)
1530 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1531 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1532 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1533 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1534 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1535
1536 (arm_frame_chain_valid, arm_find_callers_reg)
1537 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1538 (arm_pop_frame): Delete obsolete methods.
1539 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1540
1541 (arm_gdbarch_init): Update for new frame methods. Register prologue
1542 and sigtramp unwinders. Set the default frame base method.
1543
1544 * Makefile.in (arm-tdep.o): Update dependencies.
1545 * varobj.c (find_frame_addr_in_frame_chain): Call
1546 get_frame_base_address.
1547 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1548
24de872b
DJ
15492003-09-03 Daniel Jacobowitz <drow@mvista.com>
1550
1551 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1552 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1553 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1554 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1555 Take NEXT_FRAME and CACHE arguments. Call
1556 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1557 Set unwound_pc in CACHE instead of modifying the frame argument.
1558 Don't bother checking the frame type when looking for sigtramp
1559 frames.
1560 (arm_make_prologue_cache, arm_frame_chain)
1561 (arm_init_extra_frame_info): New functions.
1562
9b8d791a
DJ
15632003-09-03 Daniel Jacobowitz <drow@mvista.com>
1564
1565 * arm-tdep.c (arm_get_cache): Define.
1566 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1567 unwound_sp, unwound_pc, and saved_regs.
1568 (thumb_scan_prologue): Take a cache instead of the frame.
1569 (arm_scan_prologue): Likewise.
1570 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1571 instead of a temporary frame.
1572 (arm_init_extra_frame_info): Allocate and use a cache.
1573 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1574
7ee3275f
AC
15752003-09-03 Andrew Cagney <cagney@redhat.com>
1576
1577 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1578 * config/mips/wince.mt (TM_CLIBS): Ditto.
1579 * config/sh/wince.mt (TM_CLIBS): Ditto.
1580 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1581 * config/sparc/sp64.mt (CC): Delete.
1582
57b29be7
AC
15832003-09-03 Andrew Cagney <cagney@redhat.com>
1584
1585 * defs.h: Do not include "arch-utils.h".
1586 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1587 GDB_MULTI_ARCH_PURE.
1588 * configure.in (GDB_MULTI_ARCH): Do not define.
1589 * configure, config.in: Regenerate.
1590 * configure.tgt: Do not set variable "gdb_multi_arch".
1591 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1592 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1593 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1594 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1595 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1596 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1597 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1598 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1599 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1600 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1601 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1602 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1603 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1604 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1605 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1606 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1607 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1608 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1609
12e035e2
MC
16102003-08-30 Michael Chastain <mec@shout.net>
1611
1612 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1613 * config/m68k/nm-hp300hpux.h: Delete.
1614 * config/m68k/tm-hp300hpux.h: Delete.
1615 * config/m68k/xm-hp300hpux.h: Delete.
1616 * config/m68k/xm-hp300bsd.h: Delete.
1617 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1618 tm-hp300hpux.h, xm-hp300hpux.h.
1619 * somsolib.c: Remove comment about hp300 shared libraries.
1620
bda34dc2
MK
16212003-08-31 Mark Kettenis <kettenis@gnu.org>
1622
5bca7895
MK
1623 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1624 Only define PTRACE_GET_THREAD_AREA is not already defined.
1625 Various style fixes in code and comments and some additional
1626 spelling fixes in comments. Move after functions dealing with
1627 debug registers.
1628 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1629 Fix coding-style.
1630
bda34dc2
MK
1631 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1632 frame_unwind_register_unsigned instead of
1633 frame_unwind_unsigned_register.
1634
c890192f
MK
16352003-08-30 Mark Kettenis <kettenis@gnu.org>
1636
1637 * configure.in: Search for gethostbyname in libnsl.
1638 * configure: Regenerated.
1639
60fac5b8
MK
16402003-08-29 Mark Kettenis <kettenis@gnu.org>
1641
e294916c
MK
1642 * configure.in: Remove redundant AC_MSG_RESULT in check for
1643 uintptr_t in stdint.h.
1644 * configure: Regenerated.
1645
c40d267a
MK
1646 * amd64-nat.h (struct regcache): Add opaque declaration.
1647
60fac5b8
MK
1648 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1649 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1650 Change "register array" to "register cache" in comments.
1651 (x86_64_linux_gregset64_reg_offset): New variable.
1652 (GETREGS_SUPPLIES): Remove macro.
1653 (supply_gregset): Call amd64_supply_native_gregset instead of
1654 x86_64_linux_supply_gregset.
1655 (fill_gregset): Rename `regno' to `regnum'. Call
1656 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1657 (store_regs): Rename `regno' to `regnum'.
1658 (store_fpregs): Rename `regno' to `regnum'.
1659 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1660 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1661 Reorganize function a bit.
1662 (store_inferior_registers): Rename `regno' to `regnum'. Use
1663 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1664 Reorganize function a bit.
1665 (_initialize_x86_64_linux_nat): New function.
1666 * config/i386/x86-64linux.mh.
1667
546143b6
AC
16682003-08-29 Andrew Cagney <cagney@redhat.com>
1669
1670 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1671 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1672 (target_remove_watchpoint): Delete macro.
1673 (target_insert_watchpoint): Delete macro.
1674 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1675 (remote_mips_stopped_by_watchpoint): Delete declaration.
1676 (remote_mips_remove_watchpoint): Delete declaration.
1677 (remote_mips_set_watchpoint): Delete declaration.
1678 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1679 * remote-mips.c (_initialize_remote_mips): Set
1680 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1681 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1682 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1683 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1684 (mips_stopped_by_watchpoint): Rename
1685 remote_mips_stopped_by_watchpoint.
1686 (mips_can_hardware_watchpoint): Rename
1687 remote_mips_can_use_hardware_watchpoint, update function
1688 signature.
1689
7bace51b
MK
16902003-08-29 Mark Kettenis <kettenis@gnu.org>
1691
b0f5c6f2
MK
1692 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1693 USER_DS. We haven't given them a register number yet.
1694
2a6d284d
MK
1695 * amd64-nat.h: New file.
1696 * amd64-nat.c: New file.
1697 * amd64fbsd-nat.c: Include "amd64-nat.h".
1698 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1699 (amd64fbsd32_r_reg_offset): New variable.
1700 (supply_gregset): Simply call amd64_supply_native_gregset.
1701 (fill_gregset): Rename `regno' to `regnum'. Simply call
1702 amd64_collect_native_gregset.
1703 (fill_fpregset): Rename `regno' to `regnum'.
1704 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1705 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1706 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1707 `fpregset_t'. Call amd64_supply_native_gregset instead of
1708 supply_gregset. Call x86_64_supply_fxsave instead of
1709 supply_fpregset.
1710 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1711 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1712 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1713 `fpregset_t'. Call amd64_collect_native_gregset instead of
1714 fill_gregset. Call x86_64_collect_fxsave instead of
1715 fill_fpregset.
1716 (_initialize_am64fbsd_nat): Initialize
1717 amd64_native_gregset32_reg_offset and
1718 amd64_native_gregset64_reg_offset.
1719 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1720
a16d75cc
MK
1721 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1722 null pointer. Fix typo in comment.
1723
7bace51b
MK
1724 * regcache.c (supply_register): Reimplement to call
1725 regcache_raw_supply.
1726 (regcache_collect): Reimplement by calling regcache_raw_collect.
1727
9a661b68
MK
17282003-08-28 Mark Kettenis <kettenis@gnu.org>
1729
1730 * regcache.c (register_buffer): Consitify first argument.
1731 (regcache_raw_supply, regcache_raw_collect): New
1732 functions.
1733
e94cc8fa
DJ
17342003-08-28 Daniel Jacobowitz <drow@mvista.com>
1735
1736 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1737 by Nathan J. Williams.
1738
c64bd0ce
DJ
17392003-08-28 Daniel Jacobowitz <drow@mvista.com>
1740
1741 * lin-lwp.c (wait_lwp): New function, copied from
1742 stop_wait_callback. Clean up.
1743 (stop_wait_callback): Use wait_lwp.
1744
e5ab0dce
AC
17452003-08-28 Andrew Cagney <cagney@redhat.com>
1746
1747 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1748 flavour and disassembler options.
1749 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1750 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1751 deprecated_tm_print_insn_info.
1752
a788de9b
AC
17532003-08-27 Andrew Cagney <cagney@redhat.com>
1754
1755 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1756 Use target_read_memory.
1757 (s390_get_frame_info): Update. Do not reference
1758 deprecated_tm_print_insn_info.
1759 (s390_check_function_end, s390_is_sigreturn): Ditto.
1760
36482093
AC
17612003-08-27 Andrew Cagney <cagney@redhat.com>
1762
1763 * Makefile.in (cris-tdep.o): Update dependencies.
1764 * cris-tdep.c: Include "gdb_assert.h".
1765 (cris_gdbarch_init): Set print_insn.
1766 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1767 (cris_delayed_get_disassembler): Simplify, directly call the
1768 disassembler returned by cris_get_disassembler.
1769 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1770 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1771 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1772 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1773 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1774 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1775 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1776 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1777 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1778 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1779 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1780 (gdb_print_insn_sparc): Delete function.
1781 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1782 deprecated_tm_print_insn_info.
1783 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1784 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1785 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1787 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1788 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1789 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1790 (s390_gdbarch_init): Set print_insn.
1791
0285512f
AC
17922003-08-27 Andrew Cagney <cagney@redhat.com>
1793
1794 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1795 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1796 * infcall.c (call_function_by_hand): Convert the entry point
1797 address into a code address.
1798
cdcd5552
AC
17992003-08-27 Andrew Cagney <cagney@redhat.com>
1800
1801 * dsrec.c: Include "gdb_string.h".
1802 * Makefile.in (dsrec.o): Update dependencies.
1803
e85cddad
MC
18042003-08-27 Michael Chastain <mec@shout.net>
1805
1806 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1807
8bbfbb23
AC
18082003-08-27 Andrew Cagney <cagney@redhat.com>
1809
1810 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1811 (alpha_osf1_init_abi): Do not set call_dummy_address.
1812
ba058b66
DC
18132003-08-27 David Carlton <carlton@kealia.com>
1814
1815 From Randolph Chung <tausq@debian.org>:
1816 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1817 compiles with -Wformat-nonliteral -Werror.
1818
87f84c9d
JB
18192003-08-26 Jim Blandy <jimb@redhat.com>
1820
1821 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1822 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1823 bfd_lookup_symbol, since we only want symbols in code sections.
1824 (look_for_base): Pass zero as the SECT_FLAGS argument to
1825 bfd_lookup_symbol, since we're not concerned about which section
1826 the symbol is in.
1827
102d615a
JJ
18282003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1829
1830 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1831 we are frameless or the return address register is already known.
1832
cc7ad3ea
AC
18332003-08-26 Andrew Cagney <cagney@redhat.com>
1834
1835 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1836 in size. Add comments.
1837
af8b88dd
JJ
18382003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1839
1840 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1841 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1842
e0a4f5a1
JM
18432003-08-26 Jason Merrill <jason@redhat.com>
1844
1845 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1846 case out of #ifdef MIPS block.
1847
4ae9ee8e
DJ
18482003-08-25 Daniel Jacobowitz <drow@mvista.com>
1849
1850 PR java/1322
1851 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1852 available before calling SECT_OFF_TEXT.
3c164570 1853 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1854
004d836a
JJ
18552003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1856
1857 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1858 bof, and nat0-nat127 as pseudo-registers.
1859 (ia64_frame_cache): New struct used to cache frame info.
1860 (ia64_register_reggroup_p): New routine used to override default
1861 register grouping so registers without names are still saved and
1862 restored.
1863 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1864 pseudo values.
1865 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1866 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1867 (ia64_alloc_frame_cache): New routine to create a new
1868 ia64_frame_cache.
1869 (examine_prologue): Change prototype to add next_frame pointer.
1870 Assume frameless until otherwise proven. Verify that the cfm for
1871 current frame matches the cfm that should occur for the prologues
1872 alloc insn and if equal, mark as not frameless. At end of routine,
1873 if not frameless, calculate registers for the previous frame and store
1874 in the cache, if a cache is provided.
1875 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1876 and pass 0 for next_frame.
1877 (ia64_store_return_value): Change to use convert_typed_floating()
1878 instead of calling ia64_convert_to_raw().
1879 (ia64_extract_return_value): Change to use convert_typed_floating()
1880 instead of calling ia64_convert_to_virtual().
1881 (ia64_frame_cache): New routine to support new frame model.
1882 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1883 (ia64_frame_sniffer): Ditto.
1884 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1885 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1886 (ia64_sigtramp_frame_prev_register): Ditto.
1887 (ia64_sigtramp_frame_sniffer): Ditto.
1888 (ia64_frame_base_address): Ditto.
1889 (ia64_extract_struct_value_address): Change to issue error message.
1890 (ia64_frame_align): New routine to align sp.
1891 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1892 (ia64_push_arguments): Removed. Logic moved to
1893 ia64_push_dummy_call().
1894 (ia64_push_return_address): Ditto.
1895 (ia64_unwind_dummy_id): New function.
1896 (ia64_unwind_pc): Ditto.
1897 (ia64_convert_register_p): Ditto.
1898 (ia64_register_to_value): Ditto.
1899 (ia64_value_to_register): Ditto.
1900 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1901 (ia64_register_byte, ia64_register_raw_size): Ditto.
1902 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1903 (ia64_saved_pc_after_call): Ditto.
1904 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1905 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1906 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1907 (ia64_register_convert_to_raw): Ditto.
1908 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1909 (ia64_init_extra_frame_info): Ditto.
1910 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1911 (ia64_gdbarch_init): Remove registering of deprecated functions that
1912 are no longer used. Add registration of new gdbarch functions.
1913 Remove registering deprecated_write_sp. Replace
1914 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1915 Delete set_gdbarch_deprecated_register_convertible(),
1916 set_gdbarch_deprecated_register_convert_to_virtual(), and
1917 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1918 set_gdbarch_deprecated_register_size(),
1919 set_gdbarch_deprecated_register_bytes(),
1920 set_gdbarch_pcregnum(),
1921 set_gdbarch_deprecated_register_byte(),
1922 set_gdbarch_deprecated_register_raw_size(),
1923 set_gdbarch_deprecated_max_register_raw_size(),
1924 set_gdbarch_deprecated_register_virtual_size(),
1925 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1926 Replace set_gdbarch_deprecated_extract_return_value() with
1927 set_gdbarch_extract_return_value(). Remove calls to:
1928 set_gdbarch_deprecated_saved_pc_after_call();
1929 set_gdbarch_deprecated_frame_chain(),
1930 set_gdbarch_deprecated_frame_saved_pc(),
1931 set_gdbarch_deprecated_frame_init_saved_regs(),
1932 set_gdbarch_deprecated_get_saved_register(),
1933 set_gdbarch_deprecated_call_dummy_words(),
1934 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1935 set_gdbarch_deprecated_init_extra_frame_info(),
1936 set_gdbarch_deprecated_frame_args_address(),
1937 set_gdbarch_deprecated_frame_locals_address(),
1938 and set_gdbarch_deprecated_dummy_write_sp().
1939 Add set_gdbarch_convert_register_p(),
1940 set_gdbarch_register_to_value(),
1941 set_gdbarch_value_to_register(),
1942 set_gdbarch_push_dummy_call(),
1943 set_gdbarch_frame_align(),
1944 set_gdbarch_unwind_dummy_id(),
1945 set_gdbarch_unwind_pc(),
1946 frame_unwind_append_sniffer(),
1947 frame_unwind_append_sniffer(),
1948 and frame_base_set_default().
1949
aede7613
CD
19502003-08-25 Chris Demetriou <cgd@broadcom.com>
1951
1952 * configure.tgt: Document need for special "mipsisa64" handling.
1953 (mipsisa64*-*-linux64): Handle as target linux64.
1954 (mipsisa64*-*-*): Handle as target embed64.
1955
43c3a82e
MC
19562003-08-18 Michael Chastain <mec@shout.net>
1957
1958 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1959 objfile bug.
1960
6564f77d
MK
19612003-08-24 Mark Kettenis <kettenis@gnu.org>
1962
2de139ba
MK
1963 * i387-tdep.h: Update copyright date.
1964 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1965
6564f77d
MK
1966 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1967 CFLAGS games to reflect reality.
1968
42cf1509
AC
19692003-08-24 Andrew Cagney <cagney@redhat.com>
1970
1971 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1972 GDB_MULTI_ARCH is always non-zero.
1973 * osabi.c (_initialize_gdb_osabi): Ditto.
1974 (gdbarch_init_osabi): Ditto.
1975 * sparc-tdep.c: Ditto for #if code.
1976
0485f6ad
MK
19772003-08-23 Mark Kettenis <kettenis@gnu.org>
1978
1979 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1980 Update comments.
1981 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1982 comments.
1983 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1984 x86_64_supply_fxsave.
1985 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1986 x86_64_supply_fxsave.
1987 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1988 x86_64_supply_fxsave.
1989
c7716133
AJ
19902003-08-23 Andreas Jaeger <aj@suse.de>
1991
1992 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1993 i387_supply_fxsave.
1994
ed504bdf
MK
19952003-08-23 Mark Kettenis <kettenis@gnu.org>
1996
1997 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1998 i387_supply_register.
1999 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2000 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2001 i387_supply_fsave.
2002 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2003 i387_supply_fxsave.
2004 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2005 i387_supply_fsave.
2006 * i386bsd-nat.c (supply_fpregset): Adjust call to
2007 i387_supply_fsave.
2008 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2009 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2010 supply_fpregset.
2011 (store_inferior_registers): Remove extraneous whitespace. Call
2012 i387_fill_fsave instead of fill_fpregset.
2013 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2014 (supply_fpregset): Likewise.
2015 * i386v4-nat.c (supply_fpregset): Adjust call to
2016 i387_supply_fsave.
2017 * i386-interix-nat.c (supply_fpregset): Adjust call to
2018 i387_supply_fsave.
2019 * i386-linux-nat.c (supply_fpregset): Adjust call to
2020 i387_supply_fsave.
2021 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2022 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2023 i387supply_fsave and i387_supply_fxsave.
2024 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2025 Incorporate code from `i387_supply_register.
2026 (i387_supply_register): Remove.
2027 (i387_supply_fxsave): Add `regnum' argument.
2028 Update comments.
2029 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2030 prototype.
2031 (i387_supply_register): remove prototype.
2032 Update comments.
2033
4be5d520
MC
20342003-08-22 Michael Chastain <mec@shout.net>
2035
2036 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2037 Add lines for files in gdb/testsuite/gdb.cp/* that are
2038 still not 8.3 unique.
2039
7ed85d26
DJ
20402003-08-22 Daniel Jacobowitz <drow@mvista.com>
2041
2042 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2043 TYPE_VPTR_FIELDNO is valid.
2044
eb0d3137
MK
20452003-08-19 Mark Kettenis <kettenis@gnu.org>
2046
2047 * utils.c (set_width_command): Remove prototypes.
2048 (set_screen_size): New prototype.
2049 (init_page_info): Simplify by fetching the screen size from
2050 Readline. Call set_screen_size.
2051 (set_screen_size): New function.
2052 (set_width): Add missing whitespace in comment.
2053 (set_width_command): Call set_screen_size.
2054 (set_height_command): New function.
2055 (initialize_utils): Fix formatting. Make "set height" command
2056 call set_height_command. Remove redundant code that turns off
2057 pagination if output isn't a terminal. Remove redundant call to
2058 set_width_command.
2059
7e6d0ac8
MK
20602003-08-22 Mark Kettenis <kettenis@gnu.org>
2061
3567a8ea
MK
2062 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2063 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2064 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2065 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2066 `case' keyword.
2067 (sparc64_register_info): Give the reister with number
2068 SPARC64_STATE_REGNUM a name.
2069 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2070 %asi and %ccr.
2071 (sparc64_push_dummy_call): Take BIAS into account when checking
2072 stcak alignment.
2073 (sparc_software_single_step): Remove assertions that check whether
2074 NPC and NNPC were zero.
2075 (sparc_supply_rwindow): Make public. Merge functionality with
2076 sparc64_supply_rwindow.
2077 (sparc_fill_rwindow): Make public. Merge functionality with
2078 sparc64_fill_rwindow.
2079 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2080 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2081 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2082 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2083 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2084
7e6d0ac8
MK
2085 * reggroups.c: Add whitespace after declarations of local
2086 variables in functions.
2087
72e5f484
MC
20882003-08-21 Michael Chastain <mec@shout.net>
2089
2090 * gdbtypes.h: Change array bound type from an int to enum.
2091
435ac228
AC
20922003-08-21 Andrew Cagney <cagney@redhat.com>
2093
2094 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2095 * config/sparc/tm-sparc.h: Ditto.
2096 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2097 unconditionally.
2098 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2099
0d0e1a63
MK
21002003-07-13 Mark Kettenis <kettenis@gnu.org>
2101
2102 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2103 (register_objfile_data, set_objfile_data, objfile_data): New
2104 prototypes.
2105 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2106 prototypes.
2107 (allocate_objfile): Call objfile_alloc_data.
2108 (free_objfile): Call objfile_free_data.
2109 (struct objfile_data): New.
2110 (struct objfile_data_registration): New.
2111 (struct objfile_data_registry): New.
2112 (objfile_data_registry): New variable.
2113 (register_objfile_data): New function.
2114 (objfile_alloc_data, objfile_free_data): New functions.
2115 (set_objfile_data, objfile_data): New functions.
2116 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2117 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2118 (_initialize_dwarf2_frame): New function and prototype.
2119
d90cf509
AC
21202003-08-21 Andrew Cagney <cagney@redhat.com>
2121
2122 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2123 a specific architecture.
2124 * arch-utils.h (set_architecture_from_arch_mach): Delete
2125 declaration.
2126 (target_architecture_hook): Delete declaration.
2127 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2128 (default_float_format): Assume GDB_MULTI_ARCH.
2129 (default_double_format): Assume GDB_MULTI_ARCH.
2130 (set_endian_from_file): Delete function.
2131 (arch_ok): Delete function.
2132 (set_arch): Delete function.
2133 (set_architecture_from_arch_mach): Delete function.
2134 (set_architecture_from_file): Delete function.
2135 (set_architecture): Assume GDB_MULTI_ARCH.
2136 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2137
8b39fe56
MK
21382003-08-21 Mark Kettenis <kettenis@gnu.org>
2139
2140 Rewrite FreeBSD/sparc64 native configuration.
2141 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2142 * sparc64fbsd-nat.c: New file.
2143 * sparc64fbsd-tdep.c: New file.
2144 * sparc64-tdep.c sparc64-tdep.h: New files.
2145 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2146 sparc64fbsd-tdep.o): New dependencies.
2147 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2148 and sparc64fbsd-tdep.c.
2149 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2150 * config/sparc/fbsd.mh: Remove copyright notice.
2151 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2152 sparcbsd-nat.o.
2153 * config/sparc/fbsd.mt: Remove copyright notice.
2154 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2155 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2156 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2157 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2158 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2159 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2160 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2161 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2162 "sparc/tm-sp64.h".
2163 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2164 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2165
a7f19c79
MC
21662003-08-21 Michael Chastain <mec@shout.net>
2167
2168 * symtab.h: Add doco on the space critical structures and
2169 some measurements of space usage.
2170
da08ea5b
MS
21712003-08-21 Michael Snyder <msnyder@redhat.com>
2172
2173 * tracepoint.c (trace_dump_command): Trace break address
2174 is subject to DECR_PC_AFTER_BREAK.
2175 (set_traceframe_context): Make "trace_line" an int.
2176 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2177
6df2bf50
MS
21782003-08-20 Michael Snyder <msnyder@redhat.com>
2179
2180 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2181 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2182 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2183 argument passing.
2184 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2185 functions, replace sh_push_dummy_call.
2186 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2187
0955bbf0
MC
21882003-08-20 Michael Chastain <mec@shout.net>
2189
2190 * gdbtypes.h (struct main_type): Rearrange to save space.
2191
260a4188
MS
21922003-08-20 Michael Snyder <msnyder@redhat.com>
2193
2194 * trad-frame.c: Comment typo fix.
2195
8baa6f92
KB
21962003-08-20 Michael Snyder <msnyder@redhat.com>
2197 Kevin Buettner <kevinb@redhat.com>
2198
2199 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2200 (frv_frame_init_saved_regs): Add declaration.
2201 (frame_extra_info): Add new field ``saved_regs''.
2202 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2203 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2204 Update frame related code.
2205 (frv_extract_struct_value_address): Adjust formatting.
2206 * Makefile.in (frv-tdep.o): Update dependencies.
2207 * config/frv/tm-frv.h (target_insert_watchpoint)
2208 (target_remove_watchpoint, target_insert_hw_breakpoint)
2209 (target_remove_hw_breakpoint): Delete these macros.
2210 (remote_insert_watchpoint, remote_remove_watchpoint)
2211 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2212 these declarations.
2213
87193939
MC
22142003-08-20 Michael Chastain <mec@shout.net>
2215
2216 * defs.h (ENUM_BITFIELD): New macro.
2217 * symtab.h (ENUM_BITFIELD): Use it.
2218 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2219
062103ba
SA
22202003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2221
2222 * MAINTAINERS (write after approval): Add myself.
2223
8b148df9
AC
22242003-08-18 Andrew Cagney <cagney@redhat.com>
2225
2226 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2227 * gdbarch.h, gdbarch.c: Re-generate.
2228 * infcall.c (call_function_by_hand): Adjust the SP by
2229 frame_red_zone_size before allocating any stack space.
2230 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2231 * x86-64-tdep.c (x86_64_frame_align): New function.
2232 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2233
2234 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2235 Remove code adjusting SP so that it skips over the Red Zone.
2236
954a4db8
MK
22372003-08-18 Mark Kettenis <kettenis@gnu.org>
2238
2239 * NEWS (New native configurations): Mention FreeBSD/amd64.
2240
1a241548
AC
22412003-08-18 Andrew Cagney <cagney@redhat.com>
2242
2243 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2244 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2245 "m68k_frame_p".
2246 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2247
f82b2acd
MK
22482003-08-18 Mark Kettenis <kettenis@gnu.org>
2249
2250 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2251
4056d258
ML
22522003-08-18 Michal Ludvig <mludvig@suse.cz>
2253
2254 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2255 Define.
2256 * i386-linux-nat.c: Include "linux-nat.h".
2257 (child_post_startup_inferior): New function.
2258
99ab4326
MK
22592003-08-18 Mark Kettenis <kettenis@gnu.org>
2260
2261 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2262 at the start of a frameless function. This probably fixes PR
2263 backtrace/1338.
2264
c8d5f0d6
MC
22652003-08-17 Michael Chastain <mec@shout.net>
2266
2267 * symfile.c (find_sym_fns): Remove special case for apollo target.
2268
9016a515
DJ
22692003-08-17 Daniel Jacobowitz <drow@mvista.com>
2270
2271 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2272 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2273 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2274 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2275 (linux_supports_tracevforkdone): New function.
2276 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2277 TRACEVFORKDONE.
2278 (child_follow_fork): Handle vfork.
2279 (linux_handle_extended_wait): Likewise. Also handle exec.
2280 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2281 * NEWS: Mention fork tracing.
2282
c538c11c
DJ
22832003-08-17 Daniel Jacobowitz <drow@mvista.com>
2284
2285 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2286
4de4c07c
DJ
22872003-08-17 Daniel Jacobowitz <drow@mvista.com>
2288
2289 * Makefile.in (i386-linux-nat.o): Update dependencies.
2290 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2291 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2292 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2293 * i386-linux-nat.c: Include "linux-nat.h".
2294 (child_post_startup_inferior): New function.
2295 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2296 * infptrace.c (kill_inferior): Wrap in #ifdef.
2297 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2298 attaching to each LWP.
2299 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2300 (init_lin_lwp_ops): Fill in some more operations.
2301 * linux-nat.h (linux_enable_event_reporting)
2302 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2303 prototypes.
2304 * linux-nat.c (linux_enable_event_reporting): New function.
2305 (child_post_attach, linux_child_post_startup_inferior)
2306 (child_post_startup_inferior, child_follow_fork)
2307 (linux_handle_extended_wait, kill_inferior): New functions.
2308
7996bcec
AC
23092003-08-16 Andrew Cagney <cagney@redhat.com>
2310
2311 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2312 * gdbarch.h, gdbarch.c: Re-generate.
2313
3d48a7a0
MK
23142003-08-16 Mark Kettenis <kettenis@gnu.org>
2315
2316 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2317
7989c619
AC
23182003-08-16 Andrew Cagney <cagney@redhat.com>
2319
2320 * NEWS: Mention that "set prompt-escape-char" was deleted.
2321 * top.c (get_prompt_1): Delete function.
2322 (gdb_prompt_escape):
2323 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2324 prompt-escape-char" command.
2325 (MAX_PROMPT_SIZE): Delete macro.
2326 (get_prompt): Simplify, do not call get_prompt_1.
2327
07978cd8
AC
23282003-08-16 Andrew Cagney <cagney@redhat.com>
2329
2330 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2331 -Werror. -Wformat-nonliteral problems.
2332
3ff7cf9e
JB
23332003-08-15 J. Brobecker <brobecker@gnat.com>
2334
2335 Further multiarching work mostly for hppa64-*-hpux11:
2336 * hppa-tdep.h: New file.
2337 * hppa-tdep.c: #include hppa-tdep.c.
2338 (hppa32_num_regs): Renamed from hppa_num_regs.
2339 (hppa64_num_regs): New constant.
2340 (hppa64_call_dummy_breakpoint_offset): New constant.
2341 (hppa32_call_dummy_length): New constant.
2342 (hppa64_call_dummy_length): New constant.
2343 (hppa32_stack_align): Make name 32bit explicit.
2344 (hppa32_register_virtual_type): Likewise.
2345 (hppa32_extract_return_value): Likewise.
2346 (hppa32_use_struct_convention): Likewise.
2347 (hppa32_store_return_value): Likewise.
2348 (hppa64_register_virtual_type): New function.
2349 (hppa64_extract_return_value): New function.
2350 (hppa64_use_struct_convention): New function.
2351 (hppa64_store_return_value): New function.
2352 (hppa_frame_locals_address): Remove declaration, function does
2353 not exist anymore.
2354 (hppa_register_byte): Add support for PA64 ABI.
2355 (hppa_gdbarch_init): Add support for PA64 ABI.
2356 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2357 Make name 32bit explicit.
2358 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2359 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2360 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2361 (hppa64_hpux_frame_base_before_sigtramp): New function.
2362 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2363 * config/pa/tm-hppa64.h: Remove macros that are no longer
2364 necessary now that the gdbarch vector is properly setup.
2365 Transform some macros into function calls. Some minor cleanup.
2366 * config/pa/tm-hppah.h: Update function calls in macros
2367 following the function renaming in hppa-hpux-tdep.c.
2368 * Makefile.in (hppa_tdep_h): New variable.
2369 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2370
5d05ca6d
MS
23712003-08-14 Michael Snyder <msnyder@redhat.com>
2372
2373 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2374
37ba2569
JB
23752003-08-13 J. Brobecker <brobecker@gnat.com>
2376
2377 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2378 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2379 routine.
2380
aed7f26a
MS
23812003-08-13 Michael Snyder <msnyder@redhat.com>
2382
2383 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2384 (frv_saved_pc_after_call): Use deprecated ftype.
2385 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2386 (frv_remote_translate_xfer_address): Remove.
2387 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2388
752d4ac1
JB
23892003-08-13 J. Brobecker <brobecker@gnat.com>
2390
2391 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2392 initialization after the common gdbarch initialization, not before.
2393
1426ac1d
JB
23942003-08-13 J. Brobecker <brobecker@gnat.com>
2395
2396 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2397 (ADDR_BITS_REMOVE): Remove, redundant.
2398
b6fbdd1d
JB
23992003-08-13 J. Brobecker <brobecker@gnat.com>
2400
2401 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2402 gdbarch method to clear the 2 low bits of text addresses.
2403
44160db3
AC
24042003-08-12 Andrew Cagney <cagney@redhat.com>
2405
2406 * Makefile.in (dsrec.o): Update dependencies.
2407 * dsrec.c: Include "gdb_assert.h".
2408 (make_srec): Use snprintf instead of sprintf, use a literal format
2409 string.
2410
bcf7d3ca
AC
24112003-08-12 Andrew Cagney <cagney@redhat.com>
2412
2413 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2414 FRAME_OBSTACK_ZALLOC.
2415
49ed40de
KB
24162003-08-12 Kevin Buettner <kevinb@redhat.com>
2417
2418 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2419 SSE registers.
2420
b246147c
MK
24212003-08-10 Mark Kettenis <kettenis@gnu.org>
2422
2423 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2424 amd64fbsd_sc_reg_offset): Add extern declarations.
2425 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2426 declarations.
2427
d95fdc0d
BE
24282003-08-11 Ben Elliston <bje@wasabisystems.com>
2429
2430 * MAINTAINERS (write after approval): Update my mail address.
2431
cf6a0e73
AC
24322003-08-10 Andrew Cagney <cagney@redhat.com>
2433
2434 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2435
f837910f
MK
24362003-08-10 Mark Kettenis <kettenis@gnu.org>
2437
e2dbbd2d
MK
2438 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2439 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2440 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2441 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2442 i386bsd_sc_reg_offset): Add extern declarations.
2443 * i386obsd-nat.c: Include "i386-tdep.h"
2444 (_initialize_i386obsd_nat): Remove extern declarations.
2445 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2446 declarations.
2447 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2448 declarations.
2449
f837910f
MK
2450 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2451 instead of frame_read_register.
2452 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2453 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2454 SP_REGNUM.
2455 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2456 instead of frame_unwind_unsigned_register. Use
2457 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2458 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2459 instead of read_register. Use builtin_type_void_data_ptr instead
2460 of builtin_type_void_func_ptr when extracting the address of the
2461 jmp_buf.
2462 (i386_extract_return_value, i386_store_return_value,
2463 i386_pseudo_register_read, i386_pseudo_register_write): Use
2464 register_size instead REGISTER_RAW_SIZE.
2465
edcf254d
AC
24662003-08-10 Andrew Cagney <cagney@redhat.com>
2467
2468 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2469 sprintf. Make "name" constant.
2470
26604a34
MK
24712003-08-10 Mark Kettenis <kettenis@gnu.org>
2472
192285c6
MK
2473 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2474 instead of frame_read_register.
f837910f
MK
2475 (i387_print_float_info): Use get_frame_register and
2476 get_frame_register_unsigned instead of frame_register_read.
192285c6 2477
f0925262
MK
2478 * i386fbsd-nat.c: Include "i386-tdep.h".
2479 (child_resume): Make `eflags' an ULONGEST. Use
2480 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2481 instead of register_read and register_write.
2482
a144416f
MK
2483 * i386bsd-nat.c (fetch_inferior_registers,
2484 store_inferior_registers): Don't use && at the end of a line.
2485 (_initialize_i386bsd_nat): Fix typo.
2486
fec74868
MK
2487 * frame.c (_initialize_frame): Add missing backslash.
2488
87232496
MK
2489 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2490 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2491 and supply_register instead of manipulating the register buffer
2492 directly.
2493
c9b9de0b
MK
2494 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2495 * config/i386/nm-i386sol2.h
2496 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2497
26604a34
MK
2498 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2499 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2500 instructions that GCC likes to mingle into the prologue. Fixes
2501 gdb/1253 and gdb/1255.
2502
25d29d70
AC
25032003-08-09 Andrew Cagney <cagney@redhat.com>
2504
2505 Fix GDB PR cli/926.
2506 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2507 * command.h (add_setshow_uinteger_cmd): Declare.
2508 * frame.c (set_backtrace_cmd): New function.
2509 (show_backtrace_cmd): New function.
2510 * frame.c (_initialize_frame): Replace "set/show
2511 backtrace-below-main" with "set/show backtrace past-main". Add
2512 command "set/show backtrace limit".
2513 (backtrace_past_main): Rename "backtrace_below_main".
2514 (backtrace_limit): New variable.
2515 (get_prev_frame): Update. Check the backtrace_limit.
2516
9ebf4acf
AC
25172003-08-09 Andrew Cagney <cagney@redhat.com>
2518
2519 * defs.h (xstrprintf): Declare.
2520 * utils.c (xstrprintf): New function.
2521 * breakpoint.c (insert_breakpoints): Replace sprintf and
2522 non-literal format strings, with xstrprintf and cleanups.
2523 (delete_breakpoint,breakpoint_re_set): Ditto.
2524 (commands_command, insert_breakpoints): Ditto.
2525 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2526 (break_at_finish_command_1): Ditto.
2527
3771659b
AC
25282003-08-09 Andrew Cagney <cagney@redhat.com>
2529
2530 * MAINTAINERS (language support): List Adam Fedor as Objective C
2531 maintainer.
2532
b4263afa
JB
25332003-08-08 J. Brobecker <brobecker@gnat.com>
2534
2535 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2536 are now multiarched.
2537
d84defb1
JB
25382003-08-08 J. Brobecker <brobecker@gnat.com>
2539
2540 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2541 longer necessary now that hppa64 is partially multiarch'ed.
2542
f786f615
AC
25432003-08-08 Andrew Cagney <cagney@redhat.com>
2544
2545 * interps.c (interp_set): Check for a NULL "old_interp".
2546
c938e9b0
L
25472003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2548
2549 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2550 (install-only): Support DESTDIR.
2551 (uninstall): Likewise.
2552 (install-gdbtk): Likewise.
2553
9a146a11
EZ
25542003-08-08 Elena Zannoni <ezannoni@redhat.com>
2555
2556 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2557 contains something meaningful at all times.
2558
2559Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2560
62599e99 2561 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2562
56296155
BC
2563Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2564
62599e99 2565 * MAINTAINERS (write after approval): Added self.
56296155 2566
9710e734
AC
25672003-08-07 Andrew Cagney <cagney@redhat.com>
2568
2569 * inferior.h (AT_SYMBOL): Define.
2570 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2571 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2572 * mips-tdep.c (mips_call_dummy_address): Delete function.
2573 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2574 set call_dummy_address.
2575
98b3ab73
AC
25762003-08-07 Andrew Cagney <cagney@redhat.com>
2577
2578 * language.c (op_error): Delete function.
2579 (binop_type_check): Delete function.
2580 * language.h (type_op_error, range_op_error): Delete macros.
2581 (op_error): Delete declaration.
2582
2fcf52f0
AC
25832003-08-07 Andrew Cagney <cagney@redhat.com>
2584
2585 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2586
abd4220e 25872003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2588
abd4220e 2589 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2590 (x86_64_push_arguments): Skip the red zone.
abd4220e 2591
9dd5f34f
AC
25922003-08-05 Andrew Cagney <cagney@redhat.com>
2593
2594 * reggroups.c (reggroup_next): Check for the final entry.
2595
e5e78edc
AC
25962003-08-04 Andrew Cagney <cagney@redhat.com>
2597
ab4e3d93
AC
2598 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2599 * cli/cli-script.c (define_command): Call query directly, instead
2600 of passing it a buffer.
2601 * ocd.c (ocd_error): Pass error a constant format string.
2602 * remote-mips.c (mips_error): Use fputs_filtered.
2603
1062ca82
AC
2604 * solib-svr4.c (_initialize_svr4_solib): Update
2605 register_gdbarch_data call.
2606 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2607
fcc1c85c
AC
2608 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2609 (register_gdbarch_data): Delete "free" parameter. Update
2610 comments.
2611 * gdbarch.h, gdbarch.c: Re-generate.
2612 * reggroups.c (_initialize_reggroup): Update.
2613 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2614 * frame-base.c (_initialize_frame_base): Update.
2615 * frame-unwind.c (_initialize_frame_unwind): Update.
2616 * user-regs.c (_initialize_user_regs): Update.
2617 * remote.c (_initialize_remote): Update.
2618 * regcache.c (_initialize_regcache): Update.
2619
116f06ea
AC
2620 * regcache.c (xfree_regcache_descr): Delete function.
2621 (_initialize_regcache): Update call to register_gdbarch_data.
2622 (init_regcache_descr, init_legacy_regcache_descr): Use
2623 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2624
e5e78edc
AC
2625 * remote.c (free_remote_state): Delete function.
2626 (_initialize_remote): Update register_gdbarch_data.
2627 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2628 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2629
6c7d17ba
AC
26302003-08-04 Andrew Cagney <cagney@redhat.com>
2631
2632 * reggroups.c (struct reggroup_el): Define.
2633 (struct reggroups): Delete field "nr_group". Replace array
2634 "group" with a "first" to "last" linked list.
2635 (reggroups_init): Update. Allocate using gdbarch's obstack.
2636 (reggroups_free): Delete function.
2637 (add_group): Update. Add "el" parameter.
2638 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2639 (default_groups): Update.
2640 (reggroup_next): Replace reggroups.
2641 (reggroups_dump): Update.
2642 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2643 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2644 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2645
89b7795b
DJ
26462003-08-04 Daniel Jacobowitz <drow@mvista.com>
2647
2648 * Makefile.in (tui-interp.o): Update dependencies.
2649
306d9ac5
DC
26502003-08-04 David Carlton <carlton@kealia.com>
2651
2652 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2653 to internal_error call.
2654 * source.c (forward_search_command): Add "%s" format argument.
2655 (reverse_search_command): Ditto.
2656 * top.c (quit_confirm): Ditto.
2657 * cli/cli-setshow.c (do_setshow_command): Ditto.
2658 * cp-valprint.c (cp_print_class_method): Replace
2659 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2660 (cp_print_class_member): Ditto.
2661 * event-top.c (command_line_handler): Ditto.
2662 * linux-proc.c (linux_info_proc_cmd): Ditto.
2663 * p-typeprint.c (pascal_type_print_base): Ditto.
2664 * p-valprint.c (pascal_object_print_class_method): Ditto.
2665 (pascal_object_print_class_member): Ditto.
2666 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2667 * remote.c (remote_cisco_section_offsets): Ditto.
2668 * top.c (command_line_input): Ditto.
2669 * utils.c (vwarning,error_stream,quit): Ditto.
2670 * valprint.c (print_floating,print_binary_chars)
2671 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2672
57bfe177
AC
26732003-08-04 Andrew Cagney <cagney@redhat.com>
2674
2675 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2676
e546b999
AC
26772003-08-02 Andrew Cagney <cagney@redhat.com>
2678
2679 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2680 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2681 amd64fbsd-nat.c.
2682
91092ee5
AC
26832003-08-02 Andrew Cagney <cagney@redhat.com>
2684
2685 * Makefile.in: Update all dependencies and definitions.
2686
889f28e2
AF
26872003-08-02 Adam Fedor <fedor@gnu.org>
2688
2689 * linespec.c (is_objc_method_format): New function
2690 (decode_line_1, locate_first_half): Use it.
2691 Fixes PR objc/1298
2692
880bc914
AC
26932003-08-01 Andrew Cagney <cagney@redhat.com>
2694
2695 * NEWS: Mention that m32r is multi-arch.
2696 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2697 * configure.tgt: Recognize m32r-*-*.
2698 * config/m32r/tm-m32r.h: Delete file.
2699 * config/m32r/m32r.mt: New file.
2700 * m32r-rom.c (m32r_upload_command): Use hostent only when
2701 gethostname succeeds, in order to avoid a compilation
2702 warning.
2703 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2704 compiler warning.
2705
19f59343
MS
27062003-08-01 Michael Snyder <msnyder@redhat.com>
2707
2708 * sh-tdep.c (sh_frame_align): New gdbarch method.
2709 (sh_gdbarch_init): Set up frame_align method.
2710
4e7d7511
MS
27112003-07-31 Michael Snyder <msnyder@redhat.com>
2712
2713 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2714 which is already covered by the new frames infrastructure.
2715
63022984
AC
27162003-07-31 Andrew Cagney <cagney@redhat.com>
2717
2718 * user-regs.c (struct user_reg): Add "next" link.
2719 (struct user_regs): Replace "user" with "first" and "last" links.
2720 (append_user_reg): Add pre-allocated "reg" parameter.
2721 (builtin_user_regs): Provide initial value for "last".
2722 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2723 (user_regs_init): Allocate memory from the gdbarch obstack.
2724 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2725 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2726 linked list.
2727 (usernum_to_user_reg): New function.
2728 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2729 (value_of_user_reg): Use usernum_to_user_reg.
2730 (user_regs_free): Delete function.
2731 (_initialize_user_regs): Update register_gdbarch_data call.
2732
7cf6e574
DJ
27332003-07-31 Daniel Jacobowitz <drow@mvista.com>
2734
2735 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2736
c48a845b
MS
27372003-07-30 Michael Snyder <msnyder@redhat.com>
2738
4e7d7511 2739 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2740 * infcall.c (call_function_by_hand): Pass struct_addr to
2741 value_being_returned.
2742 * infcmd.c (print_return_value): Pass zero as struct_addr.
2743 * values.c (value_being_returned): If struct_addr is passed,
2744 use it instead of trying to recover it from the inferior.
2745
f0d8db19
KB
27462003-07-30 Kevin Buettner <kevinb@redhat.com>
2747
2748 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2749 the prologue analyzer won't need to attempt to extract the pc
2750 value from the woefully incomplete dummy frame.
2751 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2752 possible. Disable code which modifies the frame.
2753
e5c113a1
AC
27542003-07-28 Andrew Cagney <cagney@redhat.com>
2755
2756 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2757 to level 2.
2758 (annotate_breakpoints_table, annotate_record): Ditto.
2759 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2760 (annotate_field_name_end, annotate_field_value): Ditto.
2761 (annotate_field_end, annotate_frame_source_begin): Ditto.
2762 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2763 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2764 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2765 (annotate_frame_address_end, annotate_frame_address): Ditto.
2766 (annotate_frame_args, annotate_frame_end): Ditto.
2767 (annotate_frame_where, annotate_arg_begin): Ditto.
2768 (annotate_arg_name_end, annotate_arg_value): Ditto.
2769 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2770 (annotate_function_call, annotate_signal_name): Ditto.
2771 (annotate_signal_string, annotate_signal_name_end): Ditto.
2772 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2773 (annotate_value_begin, annotate_value_history_value): Ditto.
2774 (annotate_value_history_end, annotate_value_end): Ditto.
2775 (annotate_display_begin, annotate_display_number_end): Ditto.
2776 (annotate_display_format, annotate_display_expression): Ditto.
2777 (annotate_display_expression_end, annotate_display_value): Ditto.
2778 (annotate_display_end, annotate_array_section_begin): Ditto.
2779 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2780 (annotate_elt, annotate_array_section_end): Ditto.
2781
bb1db049
AC
27822003-07-28 Andrew Cagney <cagney@redhat.com>
2783
2784 * regcache.c (struct regcache_descr): Update comments on
2785 nr_raw_registers.
2786 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2787 sizeof_raw_register_valid_p.
2788 (init_regcache_descr): Set nr_raw_registers and
2789 sizeof_raw_register_valid_p before calling
2790 init_legacy_regcache_descr.
2791
20e6603c
AC
27922003-07-28 Andrew Cagney <cagney@redhat.com>
2793
2794 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2795 MOD NUM_REGS.
2796
db742940
DJ
27972003-07-28 Daniel Jacobowitz <drow@mvista.com>
2798
2799 * thread.c (info_threads_command): Use get_selected_frame ().
2800 Check that there is at least one non-sentinel frame.
2801
ce7f4371
SC
28022003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2803
2804 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2805 (m68hc11_pop_frame): Remove.
2806 (m68hc11_frame_saved_pc): Remove.
2807 (m68hc11_frame_chain): Remove.
2808 (m68hc11_frame_init_saved_regs): Remove.
2809 (m68hc11_init_extra_frame_info): Remove.
2810 (m68hc11_store_struct_return): Remove.
2811 (m68hc11_saved_pc_after_call): Remove.
2812
1ea653ae
SC
28132003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2814
2815 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2816 frame unwind information.
2817 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2818 and adapted for frame unwinding.
2819 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2820 (m68hc11_unwind_pc): New function.
2821 (m68hc11_frame_unwind_cache): New function to analyze frames.
2822 (m68hc11_frame_this_id): New function to create new frame struct.
2823 (m68hc11_frame_prev_register): New function to unwind a register from
2824 the frame.
2825 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2826 (m68hc11_frame_p): New function for the above.
2827 (m68hc11_frame_base_address): New function to return fp of frame.
2828 (m68hc11_frame_args_address): Update for frame.
2829 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2830 (m68hc11_unwind_sp): New function.
2831 (m68hc11_unwind_dummy_id): New function.
2832 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2833 calls.
2834
c8a7f6ac
SC
28352003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2836
2837 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2838 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2839 when we are beyond the current pc.
2840
3dc990bf
SC
28412003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2842
2843 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2844 from m68hc11_push_arguments.
2845 (m68hc11_push_arguments): Remove.
2846 (m68hc11_push_return_address): Remove.
2847 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2848 handlers; remove deprecated_extra_stack_alignment_needed.
2849
222e5d1d
AC
28502003-07-27 Andrew Cagney <cagney@redhat.com>
2851
2852 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2853 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2854 REAL_PC and not the pointer.
2855 * hppa-hpux-tdep.c: Include frame.h
2856
a7e9a47e
AC
28572003-07-27 Andrew Cagney <cagney@redhat.com>
2858
2859 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2860 GDB_MULTI_ACH_PARTIAL.
2861
7e3dd49e
AC
28622003-07-27 Andrew Cagney <cagney@redhat.com>
2863
2864 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2865 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2866 operator at start and not end of line.
2867 (decode_prologue): Ditto.
2868 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2869 frame_unwind_register_unsigned instead of
2870 frame_unwind_unsigned_register.
2871 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2872 read_register.
2873 (m32r_push_dummy_call): Use register_size instead of
2874 REGISTER_RAW_SIZE.
2875 (m32r_frame_sniffer): Replace m32r_frame_p.
2876 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2877 * m32r-rom.c (report_transfer_performance): Delete extern
2878 declaration.
2879 (m32r_load, m32r_upload_command): Use print_transfer_performance
2880 instead of report_transfer_performance.
2881 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2882 / add_show_from_set.
2883
0880807f
AC
28842003-07-26 Andrew Cagney <cagney@redhat.com>
2885
2886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2887 store_return_value and extract_struct_value_address.
2888
64ae9269
DJ
28892003-07-26 Daniel Jacobowitz <drow@mvista.com>
2890
2891 PR c++/1267
2892 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2893 NULL, default to the section containing PC.
2894
e286caf2
SC
28952003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2896
2897 * NEWS: Mention "regs" deprecated for m68hc11 too.
2898
2899 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2900 (m68hc11_print_register): New function to print out one register.
2901 (m68hc11_print_registers_info): New function to print registers.
2902 (show_regs): Deprecate and use the above.
2903 (m68hc11_gdbarch_init): Install the print_registers_info.
2904
705b278b
JJ
29052003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2906
2907 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2908 that we have a SIGTRAP before returning non-zero.
2909
63cd4198
EZ
29102003-07-23 Michal Ludvig <mludvig@suse.cz>
2911 Elena Zannoni <ezannoni@redhat.com>
2912
2913 * linespec.c (decode_line_2): Avoid crash if
2914 find_function_start_sal() returns empty record.
2915
6926787d
AS
29162003-07-23 Andreas Schwab <schwab@suse.de>
2917
2918 * ia64-tdep.c (ia64_print_insn): New function.
2919 (ia64_gdbarch_init): Set print_insn to it.
2920 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2921 deprecated_tm_print_insn_info.
2922
708cc1b6
MS
29232003-07-22 Michael Snyder <msnyder@redhat.com>
2924
2925 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2926 handle 8-bit returns (long long).
2927 (h8300h_extract_return_value): Ditto.
2928 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2929
aebd7893
AC
29302003-07-22 Andrew Cagney <cagney@redhat.com>
2931
2932 * gdbarch.c Include "gdb_obstack.h".
2933 (struct gdbarch): Add an "obstack".
2934 (alloc_gdbarch_data): Allocate the gdbarch data using
2935 GDBARCH_OBSTACK_CALLOC.
2936 (free_gdbarch_data): Delete function.
2937 (gdbarch_obstack_zalloc): New function.
2938 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2939 Assert that the architecture is not initialized.
2940 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2941 vector from the obstack.
2942 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2943 architecture obstack.
2944 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2945 (set_gdbarch_data): Assert that the data is not initialized.
2946 (struct gdbarch_data): Delete member "free".
2947 (register_gdbarch_data): Do not initialize "free".
2948 * gdbarch.h, gdbarch.c: Re-generate.
2949
153721e6
AC
29502003-07-22 Andrew Cagney <cagney@redhat.com>
2951
2952 * configure.in (build_warnings): Add -Wformat-nonliteral.
2953 * configure: Re-generate.
2954
c193f044 29552003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2956
2957 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2958
c3228f12
EZ
29592003-07-22 Elena Zannoni <ezannoni@redhat.com>
2960
2961 * findvar.c (read_var_value): Remove case for thread local storage
2962 variables. It is now entirely handled by the dwarf2 location
2963 expression code.
2964 * printcmd.c (address_info): Ditto.
2965 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2966 enumeration value.
2967 (struct symbol): Remove objfile field, which was used by
2968 LOC_THREAD_LOCAL_STATIC only.
2969 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2970 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2971 usage of objfile pointer.
2972 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2973 thread local variables.
2974 Add include of objfiles.h.
2975 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2976 storage variables.
2977 * Makefile.in (dwarf2loc.o): Update dependencies.
2978
aef9bcd2
AC
29792003-07-22 Andrew Cagney <cagney@redhat.com>
2980
2981 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2982 get_frame_base.
2983 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2984 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2985 (struct value): Add opaque declaration.
2986 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2987
d95a8903
AC
29882003-07-21 Andrew Cagney <cagney@redhat.com>
2989
2990 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2991 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2992
4db73d49
SC
29932003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2994
2995 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2996 regcache_cooked_read_unsigned instead of read_register.
2997 (m68hc11_saved_pc_after_call): Likewise.
2998 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2999 instead of write_register.
3000 (m68hc11_register_type): New function.
3001 (m68hc11_register_virtual_type): Remove.
3002 (m68hc11_store_return_value): Convert to use the regcache.
3003 (m68hc11_extract_struct_value_address): Likewise.
3004 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3005 m68hc11_register_type; undeprecate store_return_value and
3006 extract_struct_value_address.
3007
ef2b8fcd
SC
30082003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3009
3010 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3011 and translate to use regcache.
3012 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3013
625b0b97
AC
30142003-07-18 Andrew Cagney <cagney@redhat.com>
3015
3016 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3017 * gdbarch.h, gdbarch.c: Re-generate.
3018 * i386-tdep.c (i386_gdbarch_init): Do not set
3019 DWARF2_BUILD_FRAME_INFO.
3020 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3021 unconditionally.
3022 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3023 DWARF2_BUILD_FRAME_INFO.
3024
22b0d388
AC
30252003-07-18 Andrew Cagney <cagney@redhat.com>
3026
3027 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3028 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3029
1ce5d6dd
AC
30302003-07-18 Andrew Cagney <cagney@redhat.com>
3031
3032 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3033 frame_unwind_address_in_block, instead of frame_pc_unwind.
3034 (dwarf2_frame_cache): Ditto.
3035
e6e5e94c
AC
30362003-07-18 Andrew Cagney <cagney@redhat.com>
3037
3038 * user-regs.h (struct gdbarch): Declare opaque.
3039 * ui-out.h (struct ui_file): Declare opaque.
3040 * dwarf2-frame.h (struct frame_info): Declare opaque.
3041
5483d879
KW
30422003-07-18 Kris Warkentin <kewarken@qnx.com>
3043
3044 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3045 #include "...".
3046 (procfs_meminfo): Change strerror to safe_strerror.
3047 (procfs_can_run): Remove K&R badness.
3048
278a7cf7
MS
30492003-07-17 Michael Snyder <msnyder@redhat.com>
3050
3051 * remote-sim.c: Comment typo fix.
3052
606e3b82
AC
30532003-07-17 Andrew Cagney <cagney@redhat.com>
3054
3055 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3056 configure.
3057 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3058 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3059 GDB_MULTI_ARCH_PARTIAL.
3060
c43af07c
EZ
30612003-07-17 Elena Zannoni <ezannoni@redhat.com>
3062
3063 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3064 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3065 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3066
3b85b0f1
TR
30672003-07-16 Theodore A. Roth <troth@openavr.org>
3068
3069 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3070 found.
3071 (avr_frame_unwind_cache): Don't unwind FP for main.
3072 Update a comment.
3073 Save the computed prev_sp.
3074 (avr_saved_regs_unwinder): Remove function.
3075 (avr_frame_prev_register): Use PC unwind logic from
3076 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3077
336d1bba
AC
30782003-07-16 Andrew Cagney <cagney@redhat.com>
3079
3080 * frame-base.h (frame_base_p_ftype): Delete definition.
3081 (frame_base_append_predicate): Delete declaration.
3082 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3083 (frame_unwind_append_predicate): Delete declaration.
3084 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3085 (append_predicate): Delete parameter "p".
3086 (frame_unwind_append_predicate): Delete function.
3087 (frame_unwind_append_sniffer): Update call to append_predicate.
3088 (frame_unwind_free): Delete function.
3089 (_initialize_frame_unwind): Pass NULL as "free" to
3090 register_gdbarch_data.
3091 (frame_unwind_init): Append the dummy_frame_sniffer.
3092 (frame_unwind_find_by_frame): Simplify.
3093 * frame-base.c (struct frame_base_table): Delete field "p".
3094 (append_predicate): Delete parameter "p".
3095 (frame_base_append_predicate): Delete function.
3096 (frame_base_append_sniffer): Update call to append_predicate.
3097 (frame_base_free): Delete function.
3098 (frame_base_find_by_frame): Simplify.
3099 (_initialize_frame_base): Pass NULL as "free" to
3100 register_gdbarch_data.
3101 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3102 (x86_64_sigtramp_frame_sniffer): Replace
3103 "x86_64_sigtramp_frame_p".
3104 (x86_64_init_abi): Set the frame unwind sniffers.
3105 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3106 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3107 (m68k_gdbarch_init): Set the frame unwind sniffers.
3108 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3109 "i386_sigtramp_frame_p".
3110 (i386_frame_sniffer): Replace "i386_frame_p".
3111 (i386_gdbarch_init): Set the frame unwind sniffers.
3112 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3113 (avr_gdbarch_init): Set the frame unwind sniffers.
3114 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3115 "alpha_sigtramp_frame_p"
3116 (alpha_heuristic_frame_sniffer): Replace
3117 "alpha_heuristic_frame_p".
3118 (alpha_gdbarch_init): Set the frame unwind sniffers.
3119 (alpha_dwarf2_init_abi): Ditto.
3120 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3121 "alpha_debug_frame_p".
3122 (alpha_mdebug_frame_base_sniffer): Replace
3123 "alpha_mdebug_frame_base_p".
3124 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3125 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3126 (d10v_gdbarch_init): Set the frame unwind sniffer.
3127 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3128 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3129 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3130 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3131 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3132 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3133
48db5a3c
CV
31342003-07-16 Michael Snyder <msnyder@redhat.com>
3135
3136 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3137 should go thru sh_dsp_register_sim_regno, else the dsp regs
3138 will not get the right values.
3139
31402003-07-16 Corinna Vinschen <vinschen@redhat.com>
3141
3142 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3143 deprecated_store_floating by call to store_typed_floating.
3144 (sh_sh4_register_convert_to_raw): Substitute call to
3145 deprecated_extract_floating by call to extract_typed_floating.
3146
31472003-07-16 Corinna Vinschen <vinschen@redhat.com>
3148
3149 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3150
31512003-07-16 Corinna Vinschen <vinschen@redhat.com>
3152
3153 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3154 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3155 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3156 as possible.
3157 (do_pseudo_register): Remove.
3158 (sh_push_dummy_code): New function.
3159 (sh64_store_struct_return): Rename from sh_store_struct_return.
3160 Only called for sh64 now.
3161 (sh_extract_struct_value_address): Regcache'ify.
3162 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3163 and accomodate new tasks.
3164 (sh64_push_return_address): Rename from sh_push_return_address.
3165 Only called for sh64 now.
3166 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3167 Regcache'ify.
3168 (sh3e_sh4_extract_return_value): Regcache'ify.
3169 (sh_default_store_return_value): Ditto.
3170 (sh3e_sh4_store_return_value): Ditto.
3171 (sh_default_register_byte): Remove.
3172 (sh_sh4_register_byte): Remove.
3173 (sh_default_register_raw_size): Remove.
3174 (sh_sh4_register_raw_size): Remove.
3175 (sh_register_virtual_size): Remove.
3176 (sh_sh3e_register_virtual_type): Remove.
3177 (sh_sh3e_register_type): New function.
3178 (sh_sh4_register_virtual_type): Remove.
3179 (sh_sh4_register_type): New function.
3180 (sh_default_register_virtual_type): Remove.
3181 (sh_default_register_type): New function.
3182 (do_fv_register_info): Add parameters to accomodate call from
3183 sh_print_registers_info.
3184 (do_dr_register_info): Ditto.
3185 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3186 Add parameters to accomodate call from sh_print_registers_info.
3187 (sh_do_fp_register): Ditto.
3188 (sh64_do_pseudo_register): Call do_dr_register_info,
3189 do_fv_register_info and sh_do_fp_register with default parameters.
3190 (sh_do_register): Add parameters to accomodate call from
3191 sh_print_registers_info.
3192 (sh_print_register): Ditto.
3193 (sh_print_registers_info): Rename from sh_do_registers_info.
3194 Add parameters to be used as gdbarch_print_registers_info
3195 implementation. Accomodate removed do_pseudo_register function
3196 pointer.
3197 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3198 function pointer. Call sh_print_register with default parameters.
3199 (sh64_do_registers_info): Call sh_print_registers_info instead of
3200 sh_do_registers_info.
3201 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3202 detection of deprecated vs. non-deprecated functionality.
3203 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3204 function pointer assignments by direct function calls.
3205
e8a89fe2
AC
32062003-07-15 Andrew Cagney <cagney@redhat.com>
3207
3208 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3209 (frame_register_unwind, create_new_frame): Ditto.
3210 (legacy_get_prev_frame, get_frame_type): Ditto.
3211 (get_frame_base_address): Use frame_base_find_by_frame.
3212 (get_frame_locals_address): Use frame_base_find_by_frame.
3213 (get_frame_args_address): Use frame_base_find_by_frame.
3214 * frame-base.h (frame_base_sniffer_ftype): Declare.
3215 (frame_base_append_sniffer): Declare.
3216 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3217 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3218 (frame_base_append_sniffer): New function.
3219 (frame_base_append_predicate): Add a NULL sniffer.
3220 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3221 (struct frame_base_table): Add "sniffer".
3222 (frame_base_free): Free the "sniffer" table.
3223 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3224 (frame_unwind_append_sniffer): Declare.
3225 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3226 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3227 (struct frame_unwind_table): Add "sniffer", delete "middle".
3228 (append_predicate): Add "sniffer" parameter, append the sniffer.
3229 (frame_unwind_init): Update append_predicate call.
3230 (frame_unwind_append_sniffer): New function.
3231 (frame_unwind_append_predicate): Update append_predicate call.
3232 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3233
0714963c
AC
32342003-07-15 Andrew Cagney <cagney@redhat.com>
3235
3236 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3237 before code inhibiting repeated unwind attempts. Add to
3238 commentary on that test's problems.
3239 * blockframe.c (inside_main_func): Look for "main" in the minimal
3240 symbol table.
3241 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3242 identical.
3243
d9170e22
AC
32442003-07-15 Andrew Cagney <cagney@redhat.com>
3245
3246 * complaints.c (struct explanation): Define.
3247 (struct complaints): Change type of "explanation" to "struct
3248 explanation".
3249 (symfile_explanations): Convert to a "struct explanation" table.
3250 (vcomplaint): Update.
3251
eba29c8c
ML
32522003-07-15 Michal Ludvig <mludvig@suse.cz>
3253
3254 * x86-64-linux-nat.c (regmap): Removed.
3255 (supply_gregset, fill_gregset): Call
3256 x86_64_linux_(fill,supply)_gregset functions.
3257 * x86-64-linux-tdep.c (USER_*): New defines.
3258 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3259 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3260 New functions.
3261 (fetch_core_registers): Ditto.
3262 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3263 * x86-64-linux-tdep.h: New file.
3264 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3265 and core-regset.o.
3266 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3267
68cc0bfb
MK
32682003-07-13 Mark Kettenis <kettenis@gnu.org>
3269
88a115f7
MK
3270 * x86-64-tdep.c (x86_64_store_return_value): Use
3271 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3272
68cc0bfb
MK
3273 * configure.host: Add x86_64-*-freebsd*.
3274 * configure.tgt: Add x86_64-*-freebsd*.
3275 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3276 * amd64fbsd-nat.c: New file.
3277 * amd64fbsd-tdep.c: New file.
3278 * config/i386/nm-fbsd64.h: New file.
3279 * config/i386/fbsd64.mh: New file.
3280 * config/i386/fbsd64.mt: New file.
3281
138e7be5
MK
32822003-07-11 Mark Kettenis <kettenis@gnu.org>
3283
3284 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3285 `sc_regs_offset' and `sc_fpregs_offset'.
3286 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3287 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3288 (alpha_sigtramp_register_address): Rewrite to use new members of
3289 `struct gdbarch_tdep'.
3290 (alpha_gdbarch_init): Initialize new members of struct
3291 gdbarch_tdep'.
3292 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3293 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3294 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3295 (alphafbsd_pc_in_sigtramp): Implement.
3296 (alphafbsd_sigtramp_offset): New function.
3297 (alphafbsd_sigcontext_addr): New function.
3298 (alphafbsd_init_abi): Initialize signal trampoline related members
3299 of `struct gdbarch_tdep'.
3300 (_initialize_alphafbsd_tdep): Add prototype.
3301
95303a68
TR
33022003-07-11 Theodore A. Roth <troth@openavr.org>
3303
ba292e4c
TR
3304 * Makefile.in (install-only): Quote sed expression when generating
3305 transformed_name.
95303a68 3306
6896c0c7
RH
33072003-07-11 Richard Henderson <rth@redhat.com>
3308
3309 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3310 * dwarf2-frame.c: Include complaints.h.
3311 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3312 variable initialization; return NULL on error.
3313 (decode_frame_entry): New.
3314
8edd5d01
AC
33152003-07-11 Andrew Cagney <cagney@redhat.com>
3316
c4a09524
AC
3317 * frame.h (frame_address_in_block): Delete declaration.
3318 * blockframe.c (frame_address_in_block): Delete function.
3319 (get_frame_block): Use get_frame_address_in_block.
3320 (block_innermost_frame): Ditto.
3321 * stack.c (print_frame, backtrace_command_1): Ditto.
3322
8edd5d01
AC
3323 * frame.h (get_frame_address_in_block): Declare.
3324 (frame_unwind_address_in_block): Declare.
3325 * frame.c (frame_unwind_address_in_block): New function.
3326 (get_frame_address_in_block): New function.
3327
f7968451
AC
33282003-07-10 Andrew Cagney <cagney@redhat.com>
3329
3330 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3331 pre-default. Note: re-generate has no effect.
3332
ae99b398
AC
33332003-07-10 Andrew Cagney <cagney@redhat.com>
3334
3335 * gdbarch.sh: When a variable, but not a function, compare against
3336 0. Fix problem in previous patch.
3337 * gdbarch.c: Re-generate.
3338
956ac328
AC
33392003-07-10 Andrew Cagney <cagney@redhat.com>
3340
3341 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3342 functions against NULL, not 0.
3343 * gdbarch.c: Re-generate.
3344
287c3240
FF
33452003-07-10 Fred Fish <fnf@ninemoons.com>
3346
3347 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3348 null string instead of a null pointer.
3349 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3350
32f63c4b
MS
33512003-07-09 Michael Snyder <msnyder@redhat.com>
3352
3353 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3354
402ecd56
MK
33552003-07-09 Mark Kettenis <kettenis@gnu.org>
3356
3357 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3358 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3359 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3360 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3361 * x86-64-tdep.c: ... from here.
3362
c481dac7
AS
33632003-07-09 Andreas Schwab <schwab@suse.de>
3364
3365 * m68k-tdep.h (enum struct_return): Define.
3366 (struct gdbarch_tdep): Add struct_return.
3367 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3368 bytes are padded to the right, not to the left. Pass struct value
3369 address in register %a1, not on stack.
3370 (m68k_use_struct_convention): New function.
3371 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3372 struct_return in tdep to pcc_struct_return.
3373 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3374 reg_struct_return.
3375
64176fa3
JB
33762003-07-09 Joel Brobecker <brobecker@gnat.com>
3377
3378 * somread.c (som_symfile_offsets): Fix compilation error.
3379
96a4ee76
AC
33802003-07-09 Andrew Cagney <cagney@redhat.com>
3381
3382 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3383 Add comments about the checks.
3384
1517c6d1
AC
33852003-07-08 Andrew Cagney <cagney@redhat.com>
3386
3387 * Makefile.in: Make dependency section headers consistent.
3388 (config_h): Move to $BUILD headers section.
3389 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3390 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3391 (ada-exp.tab.c): Move to YACC/LEX section.
3392 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3393 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3394
dc5dd1eb
KW
33952003-07-08 Kris Warkentin <kewarken@qnx.com>
3396
3397 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3398 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3399 of strerror with safe_strerror, use ISO C function definitions,
3400 and replace instances of sprintf with snprintf.
dc5dd1eb 3401
612dde91
AC
34022003-07-07 Andrew Cagney <cagney@redhat.com>
3403
3404 * frame.c (get_prev_frame): Enable check for identical frames.
3405 Update comments. Update error messages.
3406
492c11d3
JB
34072003-07-07 Joel Brobecker <brobecker@gnat.com>
3408
3409 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3410
376a5a49
JB
34112003-07-07 Joel Brobecker <brobecker@gnat.com>
3412
3413 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3414 sort_symtab_syms, no longer necessary.
3415
22b4a9ad
JB
34162003-07-07 Joel Brobecker <brobecker@gnat.com>
3417
3418 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3419
5bbcb741
JB
34202003-07-07 Joel Brobecker <brobecker@gnat.com>
3421
3422 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3423 (mips_register_byte): Likewise.
3424
c139e7d9
DJ
34252003-07-07 Daniel Jacobowitz <drow@mvista.com>
3426
3427 * Makefile.in (sparc_tdep_h): New.
3428 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3429 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3430 * sparc-linux-nat.c: Include "sparc-tdep.h".
3431 * sparc-nat.c: Likewise.
3432 * sparc-tdep.c: Likewise.
3433 * sparc64nbsd-nat.c: Likewise.
3434 * sparcnbsd-nat.c: Likewise.
3435 * sparcnbsd-tdep.c: Likewise.
3436 * sparc-tdep.h: New file.
3437 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3438 and sparc_npc_regnum.
3439
fd8f87c5
DJ
34402003-07-07 Daniel Jacobowitz <drow@mvista.com>
3441
3442 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3443 (mips_linux_cannot_store_register): List supported instead of
3444 unsupported registers.
3445
13adf674
DJ
34462003-07-07 Daniel Jacobowitz <drow@mvista.com>
3447
3448 * disasm.c (dump_insns): Separate instructions from addresses.
3449
8de307e0
AS
34502003-07-07 Andreas Schwab <schwab@suse.de>
3451
3452 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3453 dependencies.
3454 * m68k-tdep.c (NUM_FREGS): Delete.
3455 (SIG_PC_FP_OFFSET): Delete.
3456 (TARGET_M68K): Delete.
3457 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3458 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3459 P_MOVEL_SP, P_MOVEML_SP): Define.
3460 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3461 P_TRAP): Delete.
3462 (m68k_register_raw_size): Delete.
3463 (m68k_register_virtual_size): Delete.
3464 (m68k_register_type): Renamed from m68k_register_virtual_type and
3465 add gdbarch argument.
3466 (m68k_store_struct_return): Delete.
3467 (m68k_deprecated_extract_return_value): Delete.
3468 (m68k_deprecated_extract_struct_value_address): Delete.
3469 (m68k_frame_chain): Delete.
3470 (m68k_frame_saved_pc): Delete.
3471 (m68k_fix_call_dummy): Delete.
3472 (m68k_push_dummy_frame): Delete.
3473 (m68k_pop_frame): Delete.
3474 (m68k_extract_return_value): New function.
3475 (m68k_store_return_value): Rewrite using regcache.
3476 (m68k_extract_struct_value_address): Rewrite using regcache.
3477 (m68k_push_dummy_call): New function.
3478 (struct m68k_frame_cache): Define.
3479 (m68k_alloc_frame_cache): New function.
3480 (m68k_analyze_frame_setup): New function.
3481 (m68k_analyze_register_saves): New function.
3482 (m68k_analyze_prologue): New function.
3483 (m68k_skip_prologue): Rewrite using above functions.
3484 (m68k_unwind_pc): New function.
3485 (m68k_frame_cache): New function.
3486 (m68k_frame_this_id): New function.
3487 (m68k_frame_prev_register): New function.
3488 (m68k_frame_unwind): New variable.
3489 (m68k_frame_p): New function.
3490 (m68k_sigtramp_frame_cache): New function.
3491 (m68k_sigtramp_frame_this_id): New function.
3492 (m68k_sigtramp_frame_prev_register): New function.
3493 (m68k_sigtramp_frame_unwind): New variable.
3494 (m68k_sigtramp_frame_p): New function.
3495 (m68k_frame_base_address): New function.
3496 (m68k_frame_base): New function.
3497 (m68k_unwind_dummy_id): New function.
3498 (fill_gregset): Use regcache_collect.
3499 (fill_fpregset): Likewise.
3500 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3501 defined.
3502 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3503 deprecated_init_frame_pc, deprecated_store_struct_return,
3504 deprecated_extract_return_value, deprecated_store_return_value,
3505 deprecated_frame_chain, deprecated_frame_saved_pc,
3506 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3507 deprecated_register_virtual_size,
3508 deprecated_max_register_raw_size,
3509 deprecated_max_register_virtual_size,
3510 deprecated_register_virtual_type, deprecated_register_size,
3511 deprecated_register_byte, deprecated_register_bytes,
3512 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3513 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3514 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3515 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3516 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3517 deprecated_push_dummy_frame, deprecated_pop_frame,
3518 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3519 only if SYSCALL_TRAP is defined. Set extract_return_value,
3520 store_return_value, extract_struct_value_address, register_type,
3521 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3522 predicates.
3523 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3524 M68K_MAX_REGISTER_SIZE): Define.
3525 (struct m68k_sigtramp_info): Define.
3526 (struct gdbarch_tdep): Add get_sigtramp_info.
3527 * m68klinux-nat.c (fetch_register): Use register_size instead of
3528 REGISTER_RAW_SIZE. Don't put assignment in if.
3529 (store_register): Likewise.
3530 (fetch_inferior_registers): Likewise.
3531 (store_inferior_registers): Likewise.
3532 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3533 (m68k_linux_frame_saved_pc): Delete.
3534 (m68k_linux_sigcontext_reg_offset,
3535 m68k_linux_ucontext_reg_offset): Define.
3536 (m68k_linux_get_sigtramp_info): New function.
3537 (m68k_linux_extract_return_value): Rewrite using regcache.
3538 (m68k_linux_store_return_value): Likewise.
3539 (m68k_linux_extract_struct_value_address): Likewise.
3540 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3541 Don't set deprecated_frame_saved_pc,
3542 deprecated_extract_return_value, deprecated_store_return_value,
3543 deprecated_extract_struct_value_address. Set
3544 extract_return_value, store_return_value,
3545 extract_struct_value_address.
3546
eb8bc282
AC
35472003-07-07 Andrew Cagney <cagney@redhat.com>
3548
3549 * expprint.c: Include "user-regs.h" instead of "frame.h".
3550 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3551 frame_map_regnum_to_name.
3552 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3553 (frame_map_name_to_regnum): Simplify, call
3554 user_reg_map_name_to_regnum.
3555 (frame_map_regnum_to_name): Simplify, call
3556 user_reg_map_regnum_to_name.
3557 (frame_register_unwind): Update.
3558 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3559 (_initialize_frame_reg): Call user_reg_add_builtin.
3560 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3561 (value_of_register): Use value_of_user_reg.
3562 * eval.c (evaluate_subexp_standard): Update.
3563 * parse.c (write_dollar_variable): Update.
3564 * d10v-tdep.c (d10v_print_registers_info): Update.
3565 * infcmd.c (registers_info): Update.
3566 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3567 (builtin_regs_h): Delete macro.
3568 (user_regs_h): Define.
3569 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3570 (builtin-regs.o): Delete target.
3571 (user-regs.o): Specify dependencies.
3572 (expprint.o): Update dependencies.
3573 (findvar.o): Update dependencies.
3574 (frame.o): Update dependencies.
3575 (std-regs.o): Update dependencies.
3576
9f476a01
CF
35772003-07-06 Christopher Faylor <cgf@redhat.com>
3578
3579 * win32-nat.c (solib_symbols_add): Use one variable for all section
3580 address stuff. Pass variable rather than address of variable to
3581 safe_symbol_file_add.
3582
a731b831
AS
35832003-07-06 Andreas Schwab <schwab@suse.de>
3584
3585 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3586
9f83329d
JB
35872003-07-04 Joel Brobecker <brobecker@gnat.com>
3588
3589 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3590
27e28cc5
KW
35912003-07-04 Kris Warkentin <kewarken@qnx.com>
3592
3593 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3594
35952003-07-04 Kris Warkentin <kewarken@qnx.com>
3596
3597 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3598 * config/i386/nto.mh: New file.
3599 * config/i386/nm-nto.h: New file.
3600 * configure.host: Add i[3456]86-*-nto*.
3601
100f2e98
JB
36022003-07-03 Joel Brobecker <brobecker@gnat.com>
3603
3604 * remote-vx.c (vx_add_symbols): Fix compilation error.
3605
e23457df
AC
36062003-07-03 Andrew Cagney <cagney@redhat.com>
3607
3608 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3609 * gdbarch.h, gdbarch.c: Re-generate.
3610 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3611 (legacy_register_name): Declare.
3612 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3613 (REGISTER_NAME): Define.
3614 * sparc-tdep.c (legacy_register_name): New function.
3615 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3616 (REGISTER_NAME): Define.
3617 (hppa64_register_name): Declare.
3618 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3619 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3620 (hppa64_register_name): New function.
3621 (hppa_register_name): New function.
3622 * arch-utils.c (legacy_register_name): Delete.
3623 * arch-utils.h (legacy_register_name): Delete.
3624
38caaeec
DJ
36252003-07-03 Daniel Jacobowitz <drow@mvista.com>
3626
3627 * cli/cli-interp.c (cli_interpreter_resume): Update the
3628 cli_uiout's stream to gdb_stdout.
3629
dadd712e
AC
36302003-07-03 Andrew Cagney <cagney@redhat.com>
3631
3632 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3633 predicate.
3634 * gdbarch.h, gdbarch.c: Re-generate.
3635 * regcache.c (init_regcache_descr): Use legacy code when either
3636 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3637
c7f1390e
DJ
36382003-07-02 Daniel Jacobowitz <drow@mvista.com>
3639
3640 * NEWS: Move "set logging" entry into GDB 6.0 section.
3641
4bc8c588
JB
36422003-07-02 Jim Blandy <jimb@redhat.com>
3643
a9dd42f1
JB
3644 * s390-tdep.c (struct frame_extra_info): new member:
3645 'stack_bought_valid'.
3646 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3647 initialize fextra_info->stack_bought.
3648 (s390_frameless_function_invocation): Don't trust the value of
3649 fextra_info_ptr->stack_bought unless
3650 fextra_info->stack_bought_valid is set.
3651
4bc8c588
JB
3652 New S390 prologue analyzer.
3653 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3654 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3655 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3656 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3657 compute_x_addr, s390_on_stack, s390_store,
3658 s390_get_signal_frame_info): New functions.
3659 (S390_NUM_SPILL_SLOTS): New macro.
3660 (s390_get_frame_info): Rewritten.
3661 (is_arg_reg): Deleted.
3662
3663 Break out the decoding of S/390 instructions into separate
3664 functions, to make it more legible, and easier to check
3665 against the spec.
3666 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3667 is_rx, is_rxe): New functions.
3668 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3669 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3670 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3671 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3672 enums for opcode values. (Is this an improvement?)
3673
fd13a04a
AC
36742003-07-02 Andrew Cagney <cagney@redhat.com>
3675
3676 * i386-tdep.c: Revert change committed as part of trad-frame code
3677 below.
3678
3f8091c1
DJ
36792003-07-02 Daniel Jacobowitz <drow@mvista.com>
3680
3681 * breakpoint.c (insert_catchpoint): Make static.
3682
8dd5115e
AS
36832003-07-02 Andreas Schwab <schwab@suse.de>
3684
3685 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3686 former ia64_push_arguments and ia64_push_return_address, and use
3687 regcache functions instead of read/write_register.
3688 (ia64_gdbarch_init): Set push_dummy_call instead of
3689 deprecated_push_arguments and deprecated_push_return_address.
3690
a2229c23
AJ
36912003-07-01 Andreas Jaeger <aj@suse.de>
3692
3693 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3694 before the call.
3695 Set %rax only to number of SSE registers used.
3696
3b3850e8
AC
36972003-07-01 Andrew Cagney <cagney@redhat.com>
3698
3699 * trad-frame.h: Update comments, a -1 .addr is reserved.
3700 (trad_frame_value_p, trad_frame_addr_p): Declare.
3701 (trad_frame_reg_p): Declare.
3702 (trad_frame_set_value): Rename trad_frame_register_value.
3703 (trad_frame_set_unknown): Declare.
3704 * trad-frame.c (trad_frame_realreg_p): New function.
3705 (trad_frame_addr_p, trad_frame_value_p): New function.
3706 (trad_frame_set_unknown): New function.
3707 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3708 (trad_frame_prev_register): Use trad_frame_realreg_p,
3709 trad_frame_addr_p and trad_frame_value_p.
3710 (trad_frame_set_value): Rename trad_frame_register_value.
3711 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3712 and trad_frame_set_value.
a2229c23 3713
4d819d0e
JB
37142003-06-30 Jim Blandy <jimb@redhat.com>
3715
3716 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3717 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3718 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3719 for 16 registers, and then 32 more bytes.
3720 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3721 New macros.
3722 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3723 Move up in the file, since it's now used by is_simple_arg.
3724 (is_simple_arg): Don't assume registers are four bytes long.
3725 Exclude all double arguments. Extended floats are not simple
3726 args.
3727 (is_power_of_two): New function.
3728 (pass_by_copy_ref): Call is_power_of_two, and check that the
3729 length fits in a register, rather than listing all the acceptable
3730 sizes. Extended floats are not passed by reference.
3731 (s390_push_arguments): Don't assume registers are four bytes long.
3732 Reserve an argument register to point to the buffer for structures
3733 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3734 S390_STACK_FRAME_OVERHEAD.
3735
1ad828f1
AS
37362003-06-30 Andreas Schwab <schwab@suse.de>
3737
3738 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3739 format error message.
3740
39b00981
JB
37412003-06-30 Joel Brobecker <brobecker@gnat.com>
3742
3743 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3744
b2a7f303
DC
37452003-06-30 David Carlton <carlton@kealia.com>
3746
3747 Band-aid for PR c++/1245.
3748 * Makefile.in (cp-support.o): Depend on complaints_h.
3749 * cp-support.c: Include complaints.h. Add declaration for
3750 find_last_component.
3751 (cp_find_first_component): Separate code into
3752 cp_find_first_component_aux.
3753 (cp_find_first_component_aux): Call demangled_name_complaint.
3754 (demangled_name_complaint): New.
3755
a257b5bb
AC
37562003-06-30 Andrew Cagney <cagney@redhat.com>
3757
3758 * remote.c (remote_write_bytes): Explicitly compute and then use
3759 the payload size. Update comments to reflect. Fixes problem of
3760 GDB not sending small packets as found by Fred Fish.
3761
0a2cfde4
AC
37622003-06-30 Andrew Cagney <cagney@redhat.com>
3763
3764 * remote.c (remote_async_wait): Fix -Wformat problem.
3765
3fcb8548
AC
37662003-06-29 Andrew Cagney <cagney@redhat.com>
3767
3768 * remote.c (remote_wait): Call error, and not warning, when the
3769 packet is corrupt.
3770 (remote_async_wait): Ditto.
3771
9f9970a3
DJ
37722003-06-29 Daniel Jacobowitz <drow@mvista.com>
3773
3774 * sparc-tdep.c (sparc_y_regnum): Make external again.
3775
83a8ccca
DJ
37762003-06-29 Daniel Jacobowitz <drow@mvista.com>
3777
3778 * cli/cli-logging.c (pop_output_files): Add void to function
3779 definition.
3780
d2cf594a
AC
37812003-06-29 Andrew Cagney <cagney@redhat.com>
3782
3783 * frame.c (frame_register_unwind): Use unsigned char when dumping
3784 the buffer contents.
3785
0fac0b41
DJ
37862003-06-28 Daniel Jacobowitz <drow@mvista.com>
3787
3788 * cli/cli-logging.c: New file.
3789 * cli-out.c (struct ui_out_data): Add original_stream.
3790 (cli_redirect): New function.
3791 (cli_ui_out_impl): Add cli_redirect.
3792 (cli_out_new): Initialize original_stream.
3793 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3794 (uo_redirect, ui_out_redirect): New.
3795 * ui-out.h (struct ui_out_impl): Add redirect member.
3796 (redirect_ftype): New.
3797 (ui_out_redirect): Add prototype.
3798 * Makefile.in: Add rules for cli-logging.c.
3799 * NEWS: Mention "set logging".
3800
88a07d7c
EZ
38012003-06-27 Elena Zannoni <ezannoni@redhat.com>
3802
3803 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3804
4eb58876
AC
38052003-06-27 Andrew Cagney <cagney@redhat.com>
3806
3807 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3808 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3809 * avr-tdep.c (avr_call_dummy_address): Delete function.
3810 (avr_gdbarch_init): Do not set call_dummy_address.
3811
1549f619
EZ
38122003-06-27 Elena Zannoni <ezannoni@redhat.com>
3813
3814 * symfile.c (syms_from_objfile): Move variables to inner block.
3815 Move the checks for the non-mainline case a bit earlier to avoid
3816 doing some useless computations.
3817
3cb3398d
EZ
38182003-06-27 Elena Zannoni <ezannoni@redhat.com>
3819
3820 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3821
3799ccc6
EZ
38222003-06-26 Elena Zannoni <ezannoni@redhat.com>
3823
3824 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3825 sections.
3826
ce1f6491
MC
38272003-06-26 Michael Chastain <mec@shout.net>
3828
3829 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3830 gdb/testsuite/gdb.c++/pr-1210.exp.
3831
d958dfd0
AC
38322003-06-26 Andrew Cagney <cagney@redhat.com>
3833
3834 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3835 altivec_expression.h and altivec_registers.h.
3836
d31431ed
AC
38372003-06-26 Andrew Cagney <cagney@redhat.com>
3838
3839 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3840 info->mach when MIPS16. Patch suggested by Fred Fish.
3841
714b1282
AC
38422003-06-26 Andrew Cagney <cagney@redhat.com>
3843
3844 * utils.c (internal_vproblem): Print the problem to a reason
3845 buffer and then pass to query. Make the msg variable more local.
3846
42efa47a
AC
38472003-06-26 Andrew Cagney <cagney@redhat.com>
3848
3849 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3850 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3851 * gdbarch.h, gdbarch.c: Re-generate.
3852 * frame-base.c (default_frame_args_address): Update. Use
3853 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3854 not available.
3855 (default_frame_locals_address): Ditto for
3856 DEPRECATED_FRAME_LOCALS_ADDRESS.
3857 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3858 (vax_frame_num_args): Update.
3859 (vax_gdbarch_init): Update.
3860 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3861 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3862 * mcore-tdep.c (mcore_gdbarch_init): Update.
3863 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3864 * ia64-tdep.c (ia64_gdbarch_init): Update.
3865 * symtab.h (address_class): Update comments.
3866 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3867 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3868 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3869 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3870 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3871 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3872 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3873 * alpha-mdebug-tdep.c: Update.
3874 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3875
8ffd9b1b
AJ
38762003-06-26 Andreas Jaeger <aj@suse.de>
3877
3878 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3879 of SSE registers so that varargs functions work. Rework handling
3880 of passing arguments on the stack.
3881 (x86_64_store_return_value): Return double and float values in SSE
3882 register.
3883
e8ac10a6
MC
38842003-06-24 Michael Chastain <mec@shout.net>
3885
3886 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3887 the "constructor breakpoints ignored" bug.
3888
986af8e6
DC
38892003-06-25 David Carlton <carlton@kealia.com>
3890
3891 * MAINTAINERS: Update e-mail address.
3892
d64558a5
JB
38932003-06-24 Jim Blandy <jimb@redhat.com>
3894
e538d2d7
JB
3895 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3896
02631ec0
JB
3897 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3898 function.
3899 (ppc_linux_init_abi): Register it as the
3900 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3901
e716d87a
JB
3902 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3903 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3904 method.
3905
d64558a5
JB
3906 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3907 (ppc64_standard_linkage_target): Use it.
3908
449a5da4
AC
39092003-06-23 Andrew Cagney <cagney@redhat.com>
3910
3911 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3912 for 0 "int0" and 4 "int32" sized registers.
3913 * gdbtypes.c (builtin_type_int0): Define.
3914 (build_gdbtypes): Initialize builtin_type_int0.
3915 * gdbtypes.h (builtin_type_int0): Declare.
3916
b2a02dda
SC
39172003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3918
3919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3920 as characters are unsigned.
3921
fba3138e
DJ
39222003-06-22 Daniel Jacobowitz <drow@mvista.com>
3923
3924 PR gdb/1179
3925 * dwarfread.c (struct_type): Skip static fields without crashing.
3926
f6c8180b
AC
39272003-06-22 Andrew Cagney <cagney@redhat.com>
3928
3929 GDB 6.0 branch created.
f2c06f52
AC
3930 * README: Update.
3931 * PROBLEMS: Update. Empty.
3932 * NEWS: Update.
f6c8180b 3933
ae822768
DJ
39342003-06-22 Daniel Jacobowitz <drow@mvista.com>
3935
3936 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3937 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3938
261de166
AC
39392003-06-22 Andrew Cagney <cagney@redhat.com>
3940
3941 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3942 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3943 Velikov.
3944
30e94205
DJ
39452003-06-22 Daniel Jacobowitz <drow@mvista.com>
3946
3947 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3948 compilers.
3949
9e14d721
DJ
39502003-06-21 Daniel Jacobowitz <drow@mvista.com>
3951
3952 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3953 argument of val_print.
3954 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3955 to the address argument of baseclass_offset or target_read_memory.
3956 Do add it to the argument of cp_print_value_fields.
3957
a4b8ebc8
AC
39582003-06-21 Andrew Cagney <cagney@redhat.com>
3959
3960 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3961 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3962 instead of 0..NUM_REGS.
3963 (mips_register_reggroup_p): New function.
3964 (mips_pseudo_register_write): New function.
3965 (mips_pseudo_register_read): New function.
3966 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3967 based on the register's type.
3968 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3969 cooked.
3970 (mips_get_saved_register): Simplify. Assert that REGNO is a
3971 pseudo / cooked.
3972 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3973 (mips_register_type): Replace mips_register_virtual_type. Map
3974 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3975 when available.
3976 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3977 that the register is cooked / virtual.
3978 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3979 Only get the extra info when needed.
3980 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3981 (mips32_heuristic_proc_desc): Fetch the cooked register.
3982 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3983 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3984 (mips_print_register): Use gdbarch_register_type, instead of
3985 REGISTER_VIRTUAL_TYPE.
3986 (print_gp_register_row): Use gdbarch_register_type, instead of
3987 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3988 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3989 Print the pseudo / cooked registers.
3990 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3991 Print the pseudo / cooked registers.
3992 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3993 REG_NUM is pseudo / cooked.
3994 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3995 (mips_n32n64_xfer_return_value): Ditto.
3996 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3997 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3998 (mips_register_sim_regno): New function.
3999 (mips_gdbarch_init): Set deprecated_register_byte,
4000 register_group_p, pseudo_register_write, pseudo_register_read,
4001 register_sim_regno, and num_pseudo_regs. Set register_type,
4002 instead of register_virtual_type.
4003 * Makefile.in (mips-tdep.o): Update dependencies.
4004 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4005 REGISTER_VIRTUAL_TYPE.
4006 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4007 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4008 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4009 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4010 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4011
325ed089
DJ
40122003-06-21 Daniel Jacobowitz <drow@mvista.com>
4013
4014 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4015 * cli/cli-cmds.c: Include "gdb_vfork.h".
4016 (shell_escape): Use vfork.
4017
f0e7d0e8
AC
40182003-06-21 Andrew Cagney <cagney@redhat.com>
4019
c57bb9fa
AC
4020 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4021 32 bit floating-point register saves.
4022
6e51443a
AC
4023 * frame.h (deprecated_unwind_get_saved_register): Delete.
4024 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4025 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4026 and deprecated_get_next_frame_hack instead of
4027 deprecated_unwind_get_saved_register.
4028
ed183c7c
AC
4029 * mips-tdep.c (mips_dump_tdep): Do not print
4030 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4031
f0e7d0e8
AC
4032 * frame.c (get_frame_register): New function.
4033 (frame_unwind_register_signed): New function.
4034 (get_frame_register_signed): New function.
4035 (frame_unwind_register_unsigned): New function.
4036 (get_frame_register_unsigned): New function.
4037 * frame.h: Add comments on naming schema.
4038 (get_frame_register, frame_unwind_register_signed): Declare.
4039 (get_frame_register_signed, get_frame_register_signed): Declare.
4040 (frame_unwind_register_unsigned): Declare.
4041 (get_frame_register_unsigned): Declare.
4042
2224d941
TR
40432003-06-20 Theodore A. Roth <troth@openavr.org>
4044
4045 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4046
8619218d
TR
40472003-06-20 Theodore A. Roth <troth@openavr.org>
4048
4049 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4050 (avr_read_sp): Ditto.
4051
0b1b50c0
DJ
40522003-06-20 Daniel Jacobowitz <drow@mvista.com>
4053
4054 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4055 * config/arm/nm-linux.h: Likewise.
4056 * config/arm/tm-linux.h: Likewise.
4057 * config/ia64/nm-linux.h: Likewise.
4058 * config/ia64/tm-ia64.h: Likewise.
4059 * config/s390/tm-linux.h: Likewise.
4060 * config/s390/tm-s390.h: Likewise.
4061 * s390-nat.c: Likewise.
4062 * s390-tdep.c: Likewise.
4063
4064 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4065 * config/ia64/linux.mt: Likewise.
4066 * config/m68k/linux.mh: Likewise.
4067 * config/mips/linux.mt: Likewise.
4068 * config/powerpc/linux.mh: Likewise.
4069 * config/sh/linux.mt: Likewise.
4070
c8c18e65
KW
40712003-06-19 Kris Warkentin <kewarken@qnx.com>
4072
4073 * solib.c (solib_open): Change tests for whether to search
4074 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4075 comments.
4076
dcccef2e
TR
40772003-06-19 Theodore A. Roth <troth@openavr.org>
4078
4079 * avr-tdep.c (avr_frame_address): Delete function.
4080 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4081 set_gdbarch_frame_args_address.
4082
5861a190
AC
40832003-06-19 Andrew Cagney <cagney@redhat.com>
4084
4085 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4086 (REGISTER_CONVERT_FROM_TYPE): Delete.
4087 (mips_register_convert_to_type): Delete declaration.
4088 (mips_register_convert_from_type): Delete declaration.
4089 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4090 kernel/.
4091
0274a8ce
MS
40922003-06-19 Michael Snyder <msnyder@redhat.com>
4093
4094 * linux-nat.h: New file.
4095 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4096 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4097 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4098 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4099 (linux_make_note_section): Iterate over lwps instead of threads.
4100 (linux_do_thread_registers): Use lwp instead of merged pid.
4101 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4102 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4103 Add dependency on linux_nat_h.
4104
adf5f719
TR
41052003-06-19 Theodore A. Roth <troth@openavr.org>
4106
4107 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4108
6766a268
DJ
41092003-06-19 Daniel Jacobowitz <drow@mvista.com>
4110
4111 * varobj.c (get_type, get_target_type): Use check_typedef.
4112
1171114a
DJ
41132003-06-19 Daniel Jacobowitz <drow@mvista.com>
4114
4115 * breakpoint.c (insert_catchpoint): Call internal_error.
4116
adcf68a2
TR
41172003-06-19 Theodore A. Roth <troth@openavr.org>
4118
4119 * avr-tdep.c (avr_push_dummy_code): Delete function.
4120 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4121
ea67f13b
DJ
41222003-06-19 Daniel Jacobowitz <drow@mvista.com>
4123
4124 * arch-utils.c (default_prepare_to_proceed): Remove.
4125 (generic_prepare_to_proceed): Remove.
4126 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4127 (generic_prepare_to_proceed): Remove prototype.
4128 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4129 * gdbarch.c: Regenerate.
4130 * gdbarch.h: Regenerate.
4131 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4132 * hppah-nat.c (hppa_switched_threads): Remove.
4133 * infrun.c (prepare_to_proceed): New static function, copied from
4134 generic_prepare_to_proceed. Remove select_it argument.
4135 (proceed): Call prepare_to_proceed.
4136 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4137 variables.
4138 (ptrace_wait): Don't set the removed variables.
4139 (hppa_switched_threads): Remove.
4140 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4141 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4142 (lin_lwp_prepare_to_proceed): Remove prototype.
4143 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4144 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4145
4add8633
TR
41462003-06-18 Theodore A. Roth <troth@openavr.org>
4147
4148 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4149 trad-frame.h.
4150 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4151 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4152 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4153 (AVR_PROLOGUE_*): Enumerate prologue types.
4154 (struct frame_extra_info): Remove.
4155 (struct avr_unwind_cache): Define.
4156 (avr_write_sp): Delete function.
4157 (avr_read_fp): Ditto.
4158 (avr_init_extra_frame_info): Ditto.
4159 (avr_pop_frame): Ditto.
4160 (avr_frame_saved_pc): Ditto.
4161 (avr_saved_pc_after_call): Ditto.
4162 (avr_push_return_address): Ditto.
4163 (avr_frame_chain): Ditto.
4164 (avr_store_struct_return): Ditto.
4165 (avr_push_arguments): Ditto.
4166 (avr_scan_prologue): Update comments. Changed to set up the info for
4167 cache unwinding. Now returns end of prologue PC.
4168 (avr_skip_prologue): Better handling of functions lacking a prologue
4169 by using avr_scan_prologue.
4170 (avr_scan_arg_moves): New function.
4171 (avr_saved_regs_unwinder): Ditto.
4172 (avr_frame_unwind_cache): Ditto.
4173 (avr_unwind_pc): Ditto.
4174 (avr_frame_this_id): Ditto.
4175 (avr_frame_prev_register): Ditto.
4176 (avr_frame_p): Ditto.
4177 (avr_frame_base_address ): Ditto.
4178 (avr_unwind_dummy_id): Ditto.
4179 (avr_push_dummy_code): Ditto.
4180 (push_stack_item): Ditto.
4181 (pop_stack_item): Ditto.
4182 (avr_push_dummy_call): Ditto.
4183 (struct stack_item): Define.
4184 (avr_frame_unwind): Declare structure.
4185 (avr_frame_base): Ditto.
4186 (avr_gdbarch_init): Remove calls to
4187 set_gdbarch_deprecated_init_frame_pc,
4188 set_gdbarch_deprecated_target_read_fp,
4189 set_gdbarch_deprecated_dummy_write_sp,
4190 set_gdbarch_deprecated_fp_regnum,
4191 set_gdbarch_deprecated_push_arguments,
4192 set_gdbarch_deprecated_push_return_address,
4193 set_gdbarch_deprecated_pop_frame,
4194 set_gdbarch_deprecated_store_struct_return,
4195 set_gdbarch_deprecated_frame_init_saved_regs,
4196 set_gdbarch_deprecated_init_extra_frame_info,
4197 set_gdbarch_deprecated_frame_chain,
4198 set_gdbarch_deprecated_frame_saved_pc,
4199 set_gdbarch_deprecated_saved_pc_after_call.
4200 Add calls to set_gdbarch_push_dummy_call,
4201 set_gdbarch_push_dummy_code,
4202 frame_unwind_append_predicate,
4203 frame_base_set_default,
4204 set_gdbarch_unwind_dummy_id,
4205 set_gdbarch_unwind_pc.
4206 Wrap a long line.
4207
7be04a68
MS
42082003-06-18 Corinna Vinschen <vinschen@redhat.com>
4209
4210 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4211 registers for H8/300S.
4212 (h8300_print_registers_info): Ditto.
8ffd9b1b 4213 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4214
ae087d01
DJ
42152003-06-18 Daniel Jacobowitz <drow@mvista.com>
4216
4217 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4218 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4219 (lin_lwp_wait): Likewise. Update comments.
4220 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4221 (pull_pid_from_list, linux_record_stopped_pid): New.
4222
07d8f827
SC
42232003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4224
4225 * ada-lang.c (scan_discrim_bound): Name first argument.
4226 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4227 declared by ALL_BLOCK_SYMBOLS.
4228
7cb47b14
SC
42292003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4230
4231 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4232 ("regcache.h"): Include it.
4233 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4234
6ad8ae5c
DJ
42352003-06-17 Daniel Jacobowitz <drow@mvista.com>
4236
4237 * NEWS: Mention gdbserver detach change and "disconnect" command.
4238 * infcmd.c (disconnect_command): New function.
4239 (_initialize_infcmd): Add ``disconnect'' command.
4240 * remote.c (remote_async_detach): Delete.
4241 (remote_detach): Merge remote_async_detach.
4242 (remote_disconnect): New.
4243 (init_remote_ops): Set to_disconnect.
4244 (init_remote_cisco_ops): Likewise.
4245 (init_remote_async_ops): Likewise. Use remote_detach.
4246 * target.c (cleanup_target): Default to_disconnect.
4247 (update_current_target): Inherit to_disconnect.
4248 (target_disconnect, debug_to_disconnect): New functions.
4249 (setup_target_debug): Set to_disconnect.
4250 * target.h (struct target_ops): Add to_disconnect.
4251 (target_disconnect): Add prototype.
4252
687595f9
DJ
42532003-06-17 Daniel Jacobowitz <drow@mvista.com>
4254
4255 * breakpoint.c (insert_catchpoint): New function.
4256 (insert_breakpoints): Use catch_exceptions to call
4257 insert_catchpoint. Disable catchpoints if they fail to insert.
4258
29239a8f
DJ
42592003-06-17 Daniel Jacobowitz <drow@mvista.com>
4260
4261 * symfile.c (reread_symbols): Clear sym_private.
4262
2cdf3c63
AC
42632003-06-17 Andrew Cagney <cagney@redhat.com>
4264
4265 * trad-frame.h (struct frame_info): Add opaque declaration.
4266 * remote-fileio.h (struct cmd_list_element): Add opaque
4267 declaration.
4268 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4269 comments.
4270
cf0e1e0d
DJ
42712003-06-17 Daniel Jacobowitz <drow@mvista.com>
4272
4273 * remote.c (remote_prepare_to_store): Replace call to
4274 deprecated_read_register_bytes with multiple regcache_raw_read
4275 calls.
4276
192cdb19
KW
42772003-06-17 Kris Warkentin <kewarken@qnx.com>
4278
4279 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4280 (nto_find_and_open_solib): Likewise.
4281 (nto_init_solib_absolute_prefix): Likewise.
4282 (_initialize_nto_tdep): Fix indentation.
4283
89929b45
KW
42842003-06-17 Kris Warkentin <kewarken@qnx.com>
4285
4286 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4287
46019f27
KW
42882003-06-17 Kris Warkentin <kewarken@qnx.com>
4289
4290 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4291
1a38736e
JB
42922003-06-17 Jim Blandy <jimb@redhat.com>
4293
4294 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4295
3605c34a
TR
42962003-06-16 Theodore A. Roth <troth@openavr.org>
4297
4298 * avr-tdep.c (avr_extract_return_value): New function.
4299 (avr_gdbarch_init): Set extract_return_value method.
4300
870b3035
AC
43012003-06-16 Andrew Cagney <cagney@redhat.com>
4302
4303 * frame.h (deprecated_get_next_frame_hack): Declare.
4304 * frame.c (legacy_saved_regs_prev_register): Only require
4305 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4306 there are always saved regs.
4307 (deprecated_generic_get_saved_register): Do not require
4308 DEPRECATED_FRAME_INIT_SAVED_REGS.
4309 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4310 use frame ID unwind instead.
4311 (deprecated_get_next_frame_hack): New function.
4312
63d47a7d
CV
43132003-06-16 Corinna Vinschen <vinschen@redhat.com>
4314
4315 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4316 (h8300_push_dummy_call): ...this function. Some minor optimization.
4317 (h8300_push_return_address): Remove.
4318 (h8300_gdbarch_init): Remove calls to
4319 set_gdbarch_deprecated_dummy_write_sp,
4320 set_gdbarch_deprecated_push_arguments and
4321 set_gdbarch_deprecated_push_return_address.
4322 Add call to set_gdbarch_push_dummy_call.
4323
4bb1dc5e
CV
43242003-06-16 Corinna Vinschen <vinschen@redhat.com>
4325
4326 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4327 (E_PSEUDO_EXR_REGNUM): Ditto.
4328 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4329 registers into safe registers.
4bb1dc5e
CV
4330 (h8300_skip_prologue): Check for stm instruction to push registers
4331 used for register variables onto stack.
4332 (gdb_print_insn_h8300): Remove.
4333 (h8300_examine_prologue): Add a comment.
4334 (h8300_register_name): Take pseudo registers into account.
4335 (h8300s_register_name): Ditto.
4336 (h8300sx_register_name): Ditto.
4337 (h8300_print_register): Ditto.
4338 (h8300_print_registers_info): Define "nice" printing order.
4339 (h8300_saved_pc_after_call): Take pseudo registers into account.
4340 (h8300_register_type): Ditto. Return type used for remote connection
4341 when requesting real CCR or EXR register, return actual type when
4342 requesting pseudo CCR or EXR.
4343 (h8300_pseudo_register_read): New function.
4344 (h8300_pseudo_register_write): Ditto.
4345 (h8300_dbg_reg_to_regnum): Ditto.
4346 (h8300s_dbg_reg_to_regnum): Ditto.
4347 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4348 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4349 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4350 set_gdbarch_print_insn architecture dependent.
4351 Call set_gdbarch_pseudo_register_read and
4352 set_gdbarch_pseudo_register_write.
4353 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4354
a59fe496
AC
43552003-06-16 Andrew Cagney <cagney@redhat.com>
4356
4357 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4358 * gdbarch.h, gdbarch.c: Re-generate.
4359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4360 * s390-tdep.c (s390_gdbarch_init): Update.
4361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4362 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4363 * mips-tdep.c (mips_gdbarch_init): Update.
4364 * mcore-tdep.c (mcore_gdbarch_init): Update.
4365 * cris-tdep.c (cris_gdbarch_init): Update.
4366 * infcall.c (call_function_by_hand): Update.
4367 * ia64-tdep.c (ia64_push_arguments): Update comment.
4368 * frame.c (legacy_get_prev_frame): Do not assume
4369 SAVE_DUMMY_FRAME_TOS_P.
4370 * dummy-frame.c (find_dummy_frame): Update comment.
4371
6f4e5a41
AC
43722003-06-16 Andrew Cagney <cagney@redhat.com>
4373
4374 * regcache.c (do_cooked_read): Do not use register_valid_p.
4375
72fab697
TR
43762003-06-15 Theodore A. Roth <troth@openavr.org>
4377
4378 * avr-tdep.c (avr_register_type): Remove a blank line.
4379 (avr_scan_prologue): Correct some comments.
4380
e3d8b004
TR
43812003-06-15 Theodore A. Roth <troth@openavr.org>
4382
4383 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4384 prologue types.
8ffd9b1b 4385 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4386 option.
4387 Add code to scan -mcall-prologues for mega devices.
4388
866b76ea
TR
43892003-06-15 Theodore A. Roth <troth@openavr.org>
4390
4391 * avr-tdep.c (avr_register_byte): Delete function.
4392 (avr_register_raw_size): Delete function.
4393 (avr_register_virtual_size): Delete function.
4394 (avr_register_virtual_type): Delete function.
4395 (avr_register_type): New function.
4396 (avr_address_to_pointer): Remove unused code.
4397 (avr_read_fp): Need to read FP as two separate bytes due to change to
4398 avr_register_type() usage.
4399 (avr_gdbarch_init): Don't set deprecated_register_size.
4400 Don't set deprecated_register_bytes.
4401 Don't set deprecated_register_byte.
4402 Don't set deprecated_register_raw_size.
4403 Don't set deprecated_max_register_raw_size.
4404 Don't set deprecated_register_virtual_size.
4405 Don't set deprecated_max_register_virtual_size.
4406 Don't set deprecated_register_virtual_type.
4407 Set register_type method.
4408
3993f6b1
DJ
44092003-06-15 Daniel Jacobowitz <drow@mvista.com>
4410
4411 * Makefile.in (linux-nat.o): Add rule.
4412 * linux-nat.c: New file.
4413 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4414 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4415 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4416 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4417 * config/arm/linux.mh (NATDEPFILES): Likewise.
4418 * config/i386/linux.mh (NATDEPFILES): Likewise.
4419 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4420 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4421 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4422 * config/mips/linux.mh (NATDEPFILES): Likewise.
4423 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4424 * config/s390/s390.mh (NATDEPFILES): Likewise.
4425 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4426
786a90bb
MK
44272003-06-15 Mark Kettenis <kettenis@gnu.org>
4428
4429 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4430 replace out-of-date comment.
4431
3bd3f01e
AC
44322003-06-15 Andrew Cagney <cagney@redhat.com>
4433
4434 * rdi-share/host.h (Fail): Change to a varargs function.
4435 * remote-rdi.c (Fail): Update.
8ffd9b1b 4436
de5b9bb9
MK
44372003-06-15 Mark Kettenis <kettenis@gnu.org>
4438
4439 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4440 (i386_convert_register_p, i386_register_to_value,
4441 i386_register_from_value): Handle types longer than 8 bytes.
4442
d532c08f
MK
44432003-06-15 Mark Kettenis <kettenis@gnu.org>
4444
4445 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4446 Move floating-point code to new function in i387-tdep.c.
4447 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4448 New functions containing code moved here from i386-tdep.c.
4449 * i387-tdep.h: Add opaque declaration for `struct type'.
4450 (i387_register_to_value, i387_value_to_register): New prototypes.
4451 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4452 (x86_64_init_abi): Set convert_register_p, register_to_value and
4453 value_to_register here.
8ffd9b1b 4454
42c466d7
AC
44552003-06-14 Andrew Cagney <cagney@redhat.com>
4456
4457 * mips-tdep.c (mips_register_to_value): Make static.
4458 (mips_value_to_register): Make static.
4459 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4460 * ia64-tdep.c (ia64_register_raw_size): Make static.
4461 (ia64_register_virtual_size): Make static.
4462 (ia64_register_byte): Make static.
4463 * i387-tdep.c: Include "i387-tdep.h".
4464 (print_387_control_word): Delete function.
4465 (print_387_status_word): Delete function.
4466 (print_387_status_bits): Delete function.
4467 (print_387_control_bits): Delete function.
4468 * Makefile.in (i387-tdep.o): Update dependencies.
4469 * rdi-share/host.h (Fail): Declare.
4470 * remote-rdi.c (Fail): Update to match declaration.
4471
2a9cda49
AC
44722003-06-14 Andrew Cagney <cagney@redhat.com>
4473
4474 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4475 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4476 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4477 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4478 * README: Delete reference to remote-array.
4479 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4480 (remote-array.o): Delete target.
4481 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4482 * remote-array.c: Delete file.
4483
ff2e87ac
AC
44842003-06-14 Andrew Cagney <cagney@redhat.com>
4485 Mark Kettenis <kettenis@gnu.org>
4486
4487 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4488 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4489 parameter with "frame".
4490 * gdbarch.h, gdbarch.c: Re-generate.
4491 * frame.h (put_frame_register): Declare.
4492 * frame.c (put_frame_register): New function.
4493 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4494 (legacy_register_to_value): Rewrite, use "frame" to get the
4495 register value.
4496 (legacy_value_to_register): Rewrite, use "frame" to find the
4497 register's location before storing.
4498 * arch-utils.h (legacy_convert_register_p): Update.
4499 (legacy_register_to_value, legacy_value_to_register): Update.
4500 * findvar.c (value_from_register): Rewrite, eliminate use of
4501 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4502 "frame" to REGISTER_TO_VALUE.
4503 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4504 lval_reg_frame_relative + lval_register branch of the switch. Do
4505 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4506 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4507 I386_EDI_REGNUM): New defines.
4508 (i386_next_regnum, i386_convert_register_p,
4509 i386_register_to_value, i386_value_to_register): New functions.
4510 (i386_register_convertible, i386_register_convert_to_virtual,
4511 i386_convert_to_raw): Remove functions.
4512 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4513 value_to_register instead of register_convertible,
4514 register_convert_to_virtual and register_convert_to_raw.
4515 * mips-tdep.c (mips_convert_register_p): New function.
4516 (mips_value_to_register): Replace mips_register_convert_from_type.
4517 (mips_register_to_value): Replace mips_register_convert_to_type.
4518 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4519 register_to_value.
4520 * alpha-tdep.c (alpha_convert_register_p): Update.
4521 (alpha_value_to_register): Update, store the register.
4522 (alpha_register_to_value): Update, fetch the register.
4523
98be1e77
TR
45242003-06-14 Theodore A. Roth <troth@openavr.org>
4525
4526 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4527 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4528 Don't set deprecated_call_dummy_words.
4529 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4530 Don't set remote_translate_xfer_address.
4531 (avr_io_reg_read_command): Remove commented out debug printf.
4532 Wrap a long line.
4533
57bc6122
TR
45342003-06-14 Theodore A. Roth <troth@openavr.org>
4535
4536 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4537 causes gdb to seg fault.
4538
eb01fc62
DJ
45392003-06-14 Daniel Jacobowitz <drow@mvista.com>
4540
4541 * sparc-nat.c (fetch_inferior_registers): Correct
4542 a reference to "registers".
4543
3b3e6bee
DJ
45442003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4545
4546 * Makefile.in (exc_request_U_h): Define
4547 (exc_request_S_h): Likewise.
4548 (msg_reply_S_h): Likewise.
4549 (msg_U_h): Likewise.
4550 (notify_S_h): Likewise.
4551 (process_reply_S_h): Likewise.
4552 (gnu-nat.o): Depend on gdb_obstack_h
4553 * gnu-nat.c: Include "gdb_obstack.h".
4554
b8de8283
AC
45552003-06-13 Andrew Cagney <cagney@redhat.com>
4556
4557 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4558 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4559
f3be58bc
AC
45602003-06-13 Andrew Cagney <cagney@redhat.com>
4561
4562 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4563 when deprecated REGISTER macros can be deleted.
4564 * gdbarch.h, gdbarch.c: Re-generate.
4565
4c0122c8
JB
45662003-06-13 Jim Blandy <jimb@redhat.com>
4567
4568 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4569 Linux entry point symbols for _dl_debug_state, too.
4570
3e210248
AC
45712003-06-13 Andrew Cagney <cagney@redhat.com>
4572
4573 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4574 available, do not use the FP register, and always save the TOS.
4575 * dummy-frame.c (dummy_frame_this_id): Do not assert
4576 SAVE_DUMMY_FRAME_TOS.
4577 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4578 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4579 (i386_push_dummy_call): Add 8 to the returned SP.
4580 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4581 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4582 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4583 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4584 (x86_64_push_dummy_call): Return "sp + 16".
4585 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4586 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4587 save_dummy_frame_tos.
4588
0b65af49
JB
45892003-06-13 Jim Blandy <jimb@redhat.com>
4590
4591 * frv-tdep.c (frv_use_struct_convention): Delete static
4592 declaration for function deleted in my change of 2003-06-12.
4593
4ea2465e
TR
45942003-06-13 Theodore A. Roth <troth@openavr.org>
4595
4596 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4597 (avr_pointer_to_address): Shift code addrs left 1 bit.
4598 (avr_convert_from_func_ptr_addr): Delete function since operation is
4599 better handled by avr_address_to_pointer and avr_pointer_to_address.
4600 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4601
1581182a
MK
46022003-06-13 Mark Kettenis <kettenis@gnu.org>
4603
4604 From Kelley Cook <kelleycook@wideopenwest.com>:
4605 * configure.host: Accept i[34567]86 variants.
4606 * configure.tgt: Likewise.
4607 * nlm/configure.in: Likewise.
4608 * nlm/configure: Regenerated.
4609
7aa1783e
RE
46102003-06-13 Richard Earnshaw <rearnsha@arm.com>
4611
4612 * arm-tdep.c (solib-svr4.h): Dont' include it.
4613 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4614 * arm-linux-tdep.c: ... here. Make static.
4615 (arm_linux_init_abi): Register it.
4616 (solib-svr4.h): Include it.
4617 * Makefile.in: Update dependencies.
4618 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4619 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4620
0261a0d0
CV
46212003-06-13 Corinna Vinschen <vinschen@redhat.com>
4622
4623 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4624 indicate registers used for return values.
4625 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4626 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4627 members.
4628 (h8300_init_extra_frame_info): Ditto.
4629 (h8300_frame_locals_address): Removed.
4630 (h8300_frame_args_address): Removed.
4631 (h8300_extract_return_value): Use new regcache structure. Only care
4632 for 16 bit CPUs.
4633 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4634 (h8300_store_return_value): Use new regcache structure. Only care
4635 for 16 bit CPUs.
4636 (h8300h_store_return_value): Same function for 32 bit CPUs.
4637 (h8300_store_struct_return): Removed.
4638 (h8300_extract_struct_value_address): Use new regcache structure.
4639 (h8300h_extract_struct_value_address): Removed.
4640 (h8300_push_dummy_code): New function.
4641 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4642 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4643 set_gdbarch_store_return_value architecture dependent.
4644 Call set_gdbarch_push_dummy_code and
4645 set_gdbarch_extract_struct_value_address.
4646 Remove calls to set_gdbarch_frame_args_address,
4647 set_gdbarch_frame_locals_address,
4648 set_gdbarch_deprecated_store_struct_return,
4649 set_gdbarch_deprecated_extract_return_value,
4650 set_gdbarch_deprecated_extract_struct_value_address,
4651 set_gdbarch_deprecated_call_dummy_words and
4652 set_gdbarch_deprecated_sizeof_call_dummy_words.
4653
055c394a
CV
46542003-06-13 Corinna Vinschen <vinschen@redhat.com>
4655
4656 * h8300-tdep.c (h8300_register_byte): Remove.
4657 (h8300h_register_byte): Remove.
4658 (h8300_register_virtual_type): Remove. Substitute by...
4659 (h8300_register_type): New function.
4660 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4661 (h8300h_extract_struct_value_address): Ditto.
4662 (h8300_gdbarch_init): Drop calls to
4663 set_gdbarch_deprecated_register_byte and
4664 set_gdbarch_deprecated_register_virtual_type.
4665 Add call to set_gdbarch_register_type.
4666
9c04cab7
AC
46672003-06-13 Andrew Cagney <cagney@redhat.com>
4668
4669 * gdbarch.sh: Update comments on registers.
4670 (deprecated_register_byte): Rename register_byte.
4671 (deprecated_register_raw_size): Rename register_raw_size.
4672 (deprecated_register_virtual_size): Rename register_virtual_size.
4673 (deprecated_register_virtual_type): Rename register_virtual_type.
4674 * gdbarch.h, gdbarch.c: Re-generate.
4675 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4676 * vax-tdep.c (vax_gdbarch_init): Update.
4677 * v850-tdep.c (v850_gdbarch_init): Update.
4678 * sparc-tdep.c (sparc_gdbarch_init): Update.
4679 * sh-tdep.c (sh_gdbarch_init): Update.
4680 * s390-tdep.c (s390_gdbarch_init): Update.
4681 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4682 * ns32k-tdep.c: Update.
4683 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4684 * mips-tdep.c (mips_gdbarch_init): Update.
4685 * mcore-tdep.c (mcore_gdbarch_init): Update.
4686 * m68k-tdep.c (m68k_gdbarch_init): Update.
4687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4688 * ia64-tdep.c (ia64_gdbarch_init): Update.
4689 * hppa-tdep.c (hppa_gdbarch_init): Update.
4690 * h8300-tdep.c (h8300_gdbarch_init): Update.
4691 * frv-tdep.c (frv_gdbarch_init): Update.
4692 * cris-tdep.c (cris_gdbarch_init): Update.
4693 * avr-tdep.c (avr_gdbarch_init): Update.
4694 * alpha-tdep.c (alpha_gdbarch_init): Update.
4695 * arm-tdep.c (arm_gdbarch_init): Update.
4696
b060cbea
AC
46972003-06-13 Andrew Cagney <cagney@redhat.com>
4698
4699 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4700 mips_o32_use_struct_convention with always_use_struct_convention.
4701
0fc9922a
DC
47022003-06-12 David Carlton <carlton@kealia.com>
4703
4704 * cp-namespace.c (cp_set_block_scope): Comment out
4705 processing_has_namespace_info branch.
4706
1fd35568
JB
47072003-06-12 Jim Blandy <jimb@redhat.com>
4708
f470a70a
JB
4709 Recognize and skip 64-bit PowerPC Linux linkage functions.
4710 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4711 insn_pattern, insns_match_pattern, d_field, ds_field): New
4712 functions, macros, and types for working with PPC instructions.
4713 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4714 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4715 ppc64_skip_trampoline_code): New functions, variables, and macros
4716 for recognizing and skipping linkage functions.
4717 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4718 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4719
49ff75ad
JB
4720 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4721 register offsets for both the 32- and 64-bit interfaces.
4722
bd918c83
JB
4723 Actually finish the job started by my change of 2003-05-29.
4724 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4725 other #definition of this.
4726 (ppc_linux_skip_trampoline_code): Remove declaration.
4727 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4728 static.
4729 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4730 method for GDBARCH.
4731
4732 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4733 'long' on ppc64-*-linux*.
4734
f8c59253
JB
4735 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4736 isn't #defined, assume the register doesn't exist: act as if
4737 tdep->ppc_mq_regnum were -1.
4738
8fbb30b1
JB
4739 * configure.host, configure.tgt: Add entries for
4740 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4741 powerpc/linux.mt.
4742 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4743 New files.
4744
1fd35568
JB
4745 * arch-utils.c (always_use_struct_convention): New function.
4746 * arch-utils.h (always_use_struct_convention): New prototype.
4747 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4748 (alpha_gdbarch_init): Register always_use_struct_convention,
4749 instead of alpha_use_struct_convention.
4750 * cris-tdep.c (cris_use_struct_convention): Delete.
4751 (cris_gdbarch_init): Register always_use_struct_convention,
4752 instead of cris_use_struct_convention.
4753 * frv-tdep.c (frv_use_struct_convention): Delete.
4754 (frv_gdbarch_init): Register always_use_struct_convention,
4755 instead of frv_use_struct_convention.
4756 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4757 (h8300_gdbarch_init): Register always_use_struct_convention,
4758 instead of h8300_use_struct_convention.
e3305dd9 4759 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4760 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4761 instead of mips_o32_use_struct_convention.
4762
e14e6e9c
AC
47632003-06-12 Andrew Cagney <cagney@redhat.com>
4764
4765 * wince.c: Include "mips-tdep.h".
4766 * mips-tdep.h (mips_next_pc): Declare.
4767 * mcore-tdep.c: Make more local functions static.
4768 * Makefile.in (wince.o): Update dependencies.
4769
2335f48e
DC
47702003-06-12 David Carlton <carlton@kealia.com>
4771
4772 * symtab.c (lookup_symbol_aux_minsyms): Replace
4773 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4774 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4775 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4776 SYMBOL_NATURAL_NAME.
4777
f70a7d61
AS
47782003-06-12 Andreas Schwab <schwab@suse.de>
4779
4780 * Makefile.in (tuiDisassem.o): Update dependencies.
4781
b6429628
DC
47822003-06-12 David Carlton <carlton@bactrian.org>
4783
4784 * symtab.h: Delete declaration of make_symbol_overload_list.
4785 Add declaration of lookup_partial_symbol.
4786 * symtab.c (remove_params): Move to cp-support.c.
4787 (overload_list_add_symbol, make_symbol_overload_list)
4788 (sym_return_val_size, sym_return_val_index): Ditto.
4789 (lookup_partial_symbol): Make extern.
4790 * cp-support.h: Add declaration of make_symbol_overload_list.
4791 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4792 symtab.h, and block.h.
4793 (remove_params): Move here from symtab.c.
4794 (overload_list_add_symbol, make_symbol_overload_list)
4795 (sym_return_val_size, sym_return_val_index): Ditto.
4796 * valops.c: Include cp-support.h.
4797 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4798 frame_h, and block_h.
4799 (valops.o): Depend on cp_support_h.
4800
084edea5
CV
48012003-06-12 Corinna Vinschen <vinschen@redhat.com>
4802
4803 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4804 substitute by NUM_REGS throughout.
4805 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4806 (h8300s_register_name): New function for H8S registers.
4807 (h8300sx_register_name): Ditto for H8SX registers.
4808 (h8300_print_register): Revise register printing, avoid depending
4809 on 32 bit long.
0261a0d0 4810 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4811 (h8300h_register_byte): New function for any other architecture.
4812 (h8300_register_raw_size): Remove.
4813 (h8300_register_virtual_type): Revise to return actually useful
4814 type.
4815 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4816 (h8300h_extract_struct_value_address): New function for any other
4817 architecture.
4818 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4819 set_gdbarch_register_name, set_gdbarch_register_byte,
4820 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4821 Remove calls to set_gdbarch_deprecated_register_size,
4822 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4823 set_gdbarch_deprecated_max_register_raw_size,
4824 set_gdbarch_register_virtual_size and
4825 set_gdbarch_deprecated_max_register_virtual_size entirely.
4826 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4827 set_gdbarch_long_double_bit.
4828
06194148
JJ
48292003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4830
8ffd9b1b
AJ
4831 * doublest.c (convert_doublest_to_floatformat): When dealing
4832 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4833 processing a full 32 bits of mantissa.
4834
de4f826b
DC
48352003-06-11 David Carlton <carlton@bactrian.org>
4836
4837 * dictionary.h: New.
4838 * dictionary.c: New.
4839 * block.h: Add opaque declaration for struct dictionary.
4840 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4841 'sym' members.
4842 (BLOCK_DICT): New macro.
4843 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4844 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4845 BLOCK_SHOULD_SORT.
4846 (ALL_BLOCK_SYMBOLS): Update definition.
4847 * Makefile.in (SFILES): Add dictionary.c.
4848 (dictionary_h): New.
4849 (COMMON_OBS): Add dictionary.o.
4850 (dictionary.o): New.
4851 (ada-lang.o): Depend on dictionary_h.
4852 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4853 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4854 (mi-cmd-stack.o): Ditto.
4855 (gdbtk-cmds.o): Update dependencies.
4856 (gdbtk-stack.o): Ditto.
4857 * ada-lang.c: Include dictionary.h.
4858 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4859 (fill_in_ada_prototype, debug_print_block): Ditto.
4860 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4861 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4862 'is_sorted'.
4863 * mdebugread.c: Include dictionary.h.
4864 (struct parse_stack): Delete 'maxsyms' member.
4865 (parse_symbol): Update calls to new_block. Delete calls to
4866 shrink_block. Use dictionary methods.
4867 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4868 Update calls to new_symtab. Don't maintain maxsyms data.
4869 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4870 (add_symbol): Just call dict_add_symbol.
4871 (new_symtab): Delete 'maxsyms' argument.
4872 (new_symtab): Update calls to new_block.
4873 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4874 (shrink_block): Delete function.
4875 (fixup_sigtramp): Update call to new_block. Add symbol via
4876 dict_add_symbol.
4877 * jv-lang.c: Include dictionary.h.
4878 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4879 appropriately. Set class_symtab->free_func. Make sure the
4880 blockvector is big enough to hold two blocks.
4881 (add_class_symtab_symbol): Use dictionary methods.
4882 (free_class_block): New function.
4883 (type_from_class): Replace explicit iteration by
4884 ALL_BLOCK_SYMBOLS.
4885 * symtab.h (struct symtab): Replace 'free_ptr' method by
4886 'free_func'.
4887 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4888 sort_symtab_syms.
4889 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4890 sort_symtab_syms.
4891 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4892 Include dictionary.h.
4893 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4894 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4895 sort_symtab_syms.
4896 * objfiles.c: Include dictionary.h.
4897 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4898 * buildsym.c: Include dictionary.h.
4899 (finish_block): Use dictionary methods.
4900 (end_symtab): Set free_func to NULL, not free_ptr.
4901 * tracepoint.c: Include dictionary.h.
4902 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4903 (scope_info): Ditto.
4904 * stack.c: Include dictionary.h.
4905 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4906 (print_block_frame_labels, print_frame_arg_vars)
4907 (print_frame_args): Ditto.
4908 * symmisc.c (free_symtab_block): Use dictionary methods.
4909 (dump_symtab): Ditto.
4910 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4911 Include dictionary.h.
4912 * symfile.h: Delete declarations of sort_block_syms,
4913 sort_symtab_syms.
4914 * symfile.c (sort_block_syms): Delete.
4915 (sort_symtab_syms): Delete.
4916 * symtab.c: Include dictionary.h.
4917 (lookup_block_symbol): Use dictionary iterators.
4918 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4919 (search_symbols, make_symbol_completion_list): Ditto.
4920 (make_symbol_overload_list): Ditto.
4921 * valops.c (value_of_local): Use dict_empty.
4922 Include dictionary.h.
4923
a31f978c
JB
49242003-06-11 J. Brobecker <brobecker@gnat.com>
4925
4926 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4927
526e70c0
DC
49282003-06-11 David Carlton <carlton@bactrian.org>
4929
4930 * block.h (BLOCK_SHOULD_SORT): Delete.
4931 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4932 blocks.
4933 * ada-lang.c (ada_add_block_symbols): Ditto.
4934 * symfile.c (sort_block_syms): Delete.
4935 (sort_symtab_syms): Ditto.
4936 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4937 declarations.
4938 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4939 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4940 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4941 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4942 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4943 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4944 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4945
33c08150
JJ
49462003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4947
8ffd9b1b 4948 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4949 bits to 128.
4950
781a750d
AC
49512003-06-11 Andrew Cagney <cagney@redhat.com>
4952
4953 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4954 REGISTER_CONVERTIBLE.
4955 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4956 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4957 * gdbarch.h, gdbarch.c: Re-generate.
4958 * arch-utils.h (deprecated_register_convertible_not): Rename
4959 generic_register_convertible_not.
4960 * arch-utils.c (deprecated_register_convertible_not): Rename
4961 generic_register_convertible.
4962 (legacy_convert_register_p, legacy_register_to_value): Update.
4963 * sh-tdep.c (sh64_push_arguments): Update.
4964 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4965 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4966 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4967 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4968 * arch-utils.c (legacy_value_to_register): Update.
4969 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4970 (rs6000_register_convert_to_raw): Make parameter "from" const.
4971 * mips-tdep.c (mips_gdbarch_init): Update.
4972 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4973 * infcmd.c (default_print_registers_info): Update.
4974 * ia64-tdep.c (ia64_gdbarch_init): Update.
4975 (ia64_register_convert_to_raw): Make parameter "from" const.
4976 * i386-tdep.c (i386_gdbarch_init): Update.
4977 (i386_register_convert_to_raw): Update.
4978
cd90e54f
AC
49792003-06-11 Andrew Cagney <cagney@redhat.com>
4980
4981 * remote-fileio.c: Include "remote-fileio.h".
4982 * Makefile.in (remote-fileio.o): Update dependencies.
4983 (remote_fileio_h): Fix typo.
4984
a78f21af
AC
49852003-06-11 Andrew Cagney <cagney@redhat.com>
4986
4987 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4988 (xstormy16_save_dummy_frame_tos): Make static.
4989 (_initialize_xstormy16_tdep): Add declaration.
4990 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4991 * v850-tdep.c: Make local functions static.
4992 (_initialize_v850_tdep): Add declaration.
4993 * sparc-tdep.c: Make local functions static.
4994 (_initialize_sparc_tdep): Add declaration.
4995 * sh-tdep.c: Make local functions static.
4996 (_initialize_sh_tdep): Add declaration.
4997 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4998 * s390-tdep.c: Make local functions static.
4999 (_initialize_s390_tdep): Add declaration.
5000 * dbxread.c (find_stab_function_addr): Make static.
5001 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5002 * ocd.c (_initialize_remote_ocd): Add declaration.
5003 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5004 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5005 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5006 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5007 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5008 * remote-array.c (_initialize_array): Add declaration.
5009 (_initialize_remote_monitors): Add declaration.
5010 * remote-mips.c: Make local functions static.
5011 (_initialize_remote_mips): Add declaration.
5012 * mcore-tdep.c: Make all local functions static.
5013 (_initialize_mcore_tdep): Add declaration.
5014 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5015 * abug-rom.c (_initialize_abug_rom): Add declaration.
5016 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5017 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5018 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5019 * remote-est.c (_initialize_est): Add declaration.
5020 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5021 (m68hc11_call_dummy_address): Make static.
5022 * ia64-tdep.c: Make local functions static.
5023 (_initialize_ia64_tdep): Add declaration.
5024 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5025 * monitor.c (monitor_wait_filter): Make static.
5026 (_initialize_remote_monitors): Add declaration.
5027 * remote-hms.c (_initialize_remote_hms): Add declaration.
5028 * remote-e7000.c (fetch_regs_from_dump): Make static.
5029 (expect_n): Make static.
5030 (_initialize_remote_e7000): Add declaration.
5031 * ser-e7kpc.c: Always include "defs.h".
5032 (_initialize_ser_e7000pc): Add declaration.
5033 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5034 * cris-tdep.c: Make all but one function static.
5035 (_initialize_cris_tdep): Add declaration.
5036 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5037 * solib.c (update_solib_list): Make static.
5038 (_initialize_solib): Add declaration.
5039 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5040 (_initialize_avr_tdep): Add declaration.
5041 * remote-rdi.c (voiddummy): Make static.
5042 (_initialize_remote_rdi): Add declaration.
5043 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5044 * remote-rdp.c (send_rdp): Make static.
5045 (_initialize_remote_rdp): Add declaration.
5046 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5047
cbcdb1f5
CV
50482003-06-11 Corinna Vinschen <vinschen@redhat.com>
5049
5050 * remote-fileio.c: Make ari happy.
5051
a191ea8d
JB
50522003-06-10 J. Brobecker <brobecker@gnat.com>
5053
5054 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5055 fetching the trailing bytes of the buffer we are about to write.
5056
0ef75e11
AC
50572003-06-10 Andrew Cagney <cagney@redhat.com>
5058
5059 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5060 * Makefile.in (remote-fileio.o): Update dependencies.
5061 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5062 include <setjmp.h>, or <sys/types.h> conditional on USG.
5063 (remote_fio_jmp_buf): Delete global variable.
5064
449092f6 50652003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5066 Martin M. Hunt <hunt@redhat.com>
449092f6 5067
559fa028
AC
5068 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5069 (SFILES): Add remote-fileio.c.
5070 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5071 dependencies for building remote.o.
449092f6
CV
5072 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5073 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5074 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5075 static storage class.
5076 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5077 'F' packet.
5078 (_initialize_remote): Call initialize_remote_fileio().
5079 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5080 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5081 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5082 (captured_main): Initialize new ui_files.
5083 * ui-file.c: Add read and fgets input functions.
5084 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5085 (null_file_read): New function.
5086 (ui_file_read): New function.
5087 (set_ui_file_read): New function.
5088 (stdio_file_read): New function.
5089 * ui-file.h: New type ui_file_read_ftype.
5090 (set_ui_file_read): Declare.
5091 (ui_file_read): Declare.
5092
248de703
AC
50932003-06-09 Andrew Cagney <cagney@redhat.com>
5094
5095 * frame.h (deprecated_unwind_get_saved_register): Rename
5096 generic_unwind_get_saved_register, update comments.
5097 * mips-tdep.c (mips_get_saved_register): Update.
5098 * frame.c (deprecated_unwind_get_saved_register): Update.
5099
0ed8aa57
AC
51002003-06-09 Andrew Cagney <cagney@redhat.com>
5101
5102 * vax-tdep.c (vax_frame_locals_address): Delete function.
5103 (vax_gdbarch_init): Do not set frame_locals_address.
5104 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5105 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5106 * s390-tdep.c (s390_frame_args_address): Delete function.
5107 (s390_gdbarch_init): Do not set frame_args_address or
5108 frame_locals_address.
5109 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5110 (ns32k_gdbarch_init): Do not set frame_locals_address.
5111 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5112 (hppa_frame_locals_address): Delete function.
5113 (hppa_gdbarch_init): Do not set frame_args_address, or
5114 frame_locals_address.
5115 * arm-tdep.c (arm_frame_args_address): Delete.
5116 (arm_frame_locals_address): Delete.
5117 (arm_gdbarch_init): Do not set frame_args_address, or
5118 frame_locals_address.
5119
983a287a
AC
51202003-06-09 Andrew Cagney <cagney@redhat.com>
5121
5122 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5123 * gdbarch.h, gdbarch.c: Re-generate.
5124 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5125 * arch-utils.c (frame_num_args_unknown): Delete function.
5126 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5127 (frame_info): Use FRAME_NUM_ARGS_P.
5128 * arm-tdep.c (arm_frame_num_args): Delete function.
5129 (arm_gdbarch_init): Do not set frame_num_args.
5130 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5131 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5132 (hppa_gdbarch_init): Do not set frame_num_args.
5133 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5134 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5135 frame_num_args to default frame_num_args_unknown.
5136 * v850-tdep.c (v850_gdbarch_init): Ditto.
5137 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5138 * sh-tdep.c (sh_gdbarch_init): Ditto.
5139 * s390-tdep.c (s390_gdbarch_init): Ditto.
5140 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5141 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5142 * mips-tdep.c (mips_gdbarch_init): Ditto.
5143 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5144 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5146 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5147 * i386-tdep.c (i386_gdbarch_init): Ditto.
5148 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5149 * frv-tdep.c (frv_gdbarch_init): Ditto.
5150 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5151 * cris-tdep.c (cris_gdbarch_init): Ditto.
5152 * avr-tdep.c (avr_gdbarch_init): Ditto.
5153 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5154
8d3b0994
AC
51552003-06-09 Andrew Cagney <cagney@redhat.com>
5156
5157 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5158 (print_frame_args): Moved to "stack.c".
5159 * stack.c: Include "gdb_assert.h".
5160 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5161 (print_frame_args): Moved from "printcmd.c".
5162 * frame.h (print_frame_args): Delete declaration.
5163 * Makefile.in (stack.o): Update dependencies.
5164
25e3a86b
AC
51652003-06-08 Andrew Cagney <cagney@redhat.com>
5166
5167 * frame.c (get_prev_frame): Remove reference to
5168 frame_args_address_correct in comments.
5169 * frame-base.c (default_frame_args_address): Delete code
5170 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5171 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5172 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5173 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5174 (vax_frame_args_address_correct): Delete declaration.
5175
a9e5fdc2
AC
51762003-06-08 Andrew Cagney <cagney@redhat.com>
5177
5178 * gdbarch.sh (UNWIND_SP): Add.
5179 * gdbarch.h, gdbarch.c: Re-generate.
5180 * frame.c (frame_sp_unwind): New function.
5181 (get_frame_sp): New function.
5182 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5183 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5184 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5185 value.
5186 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5187 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5188
8983bd83
AC
51892003-06-08 Andrew Cagney <cagney@redhat.com>
5190
7fec2c59
AC
5191 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5192 REMOTE_BREAKPOINT.
5193 * remote.c: Update.
5194 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5195 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5196 * config/m68k/tm-sun3.h: Update.
5197 * config/m68k/tm-m68klynx.h: Update.
5198 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5199
8983bd83
AC
5200 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5201 trad_frame". Update comments.
5202 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5203 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5204 (trad_frame_register_value, trad_frame_prev_register): Update.
5205
b9362cc7
AC
52062003-06-08 Andrew Cagney <cagney@redhat.com>
5207
5208 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5209 from GCC's acinclude.m4.
5210 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5211 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5212 * main.c (error_init): Delete declaration.
5213 * defs.h (error_init): Declare.
5214 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5215 (rs6000_convert_from_func_ptr_addr): Make static.
5216 (_initialize_rs6000_tdep): Add declaration.
5217 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5218 (show_commands, set_verbose, show_history): Delete declaration.
5219 * top.h (set_verbose): Add declaration.
5220 (show_history, set_history, show_commands): Add declaration.
5221 (do_restore_instream_cleanup): Add declaration.
5222 * objc-lang.c (specialcmp): Make static.
5223 (print_object_command): Make static.
5224 (find_objc_msgsend): Make static.
5225 (find_objc_msgcall_submethod_helper): Make static.
5226 (find_objc_msgcall_submethod): Make static.
5227 (_initialize_objc_language): Add declaration.
5228 (find_implementation_from_class): Make static.
5229 (find_implementation): Make static.
5230 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5231 * objc-lang.h (lookup_struct_typedef): Add declaration.
5232 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5233 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5234 (do_restore_user_call_depth): Make static.
5235 (do_restore_instream_cleanup): Delete declaration.
5236 (dont_repeat): Delete declaration.
5237 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5238 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5239 * reggroups.c (_initialize_reggroup): Add declaration.
5240 * cp-support.c (_initialize_cp_support): Add declaration.
5241 * cp-abi.c (_initialize_cp_abi): Add declaration.
5242 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5243 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5244 (_initialize_gnu_v3_abi): Add declaration.
5245 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5246 (_initialize_gnu_v2_abi): Add declaration.
5247 * frame-base.c (_initialize_frame_base): Add declaration.
5248 * doublest.c (floatformat_from_length): Make static.
5249 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5250 * frame.c (create_sentinel_frame): Make static.
5251 (_initialize_frame): Add declaration.
5252 * top.c (do_catch_errors): Make static.
5253 (gdb_rl_operate_and_get_next_completion): Make static.
5254 * typeprint.c: Include "typeprint.h".
5255 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5256 (sentinel_frame_this_id): Make static.
5257 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5258 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5259 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5260 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5261 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5262 * maint.c (maintenance_print_architecture): Make static.
5263 * signals/signals.c (_initialize_signals): Add declaration.
5264 * std-regs.c (_initialize_frame_reg): Add declaration.
5265 * jv-exp.y (push_variable): ISO C definition.
5266 (push_qualified_expression_name): Ditto.
5267 * memattr.c (_initialize_mem): Add declaration.
5268 * remote.c (remote_check_watch_resources): Make static.
5269 (remote_stopped_by_watchpoint): Make static.
5270 (remote_stopped_data_address): Make static.
5271 * d10v-tdep.c (nr_dmap_regs): Make static.
5272 (a0_regnum): Make static.
5273 (d10v_frame_unwind_cache): Make static.
5274 (d10v_frame_p): Make static.
5275 * osabi.c (show_osabi): Make static.
5276 (_initialize_gdb_osabi): Add extern declaration.
5277 * gdbtypes.c (make_qualified_type): Make static.
5278 (safe_parse_type): Make static.
5279 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5280 * macrotab.c (macro_bcache_free): Make static.
5281 * interps.c (interp_set_quiet): Make static.
5282 (interpreter_exec_cmd): Make static.
5283 * stack.h (select_frame_command): New file.
5284 * stack.c: Include "stack.h".
5285 (select_frame_command_wrapper): Delete function.
5286 (select_frame_command): Make global.
5287 * infcall.c: Include "infcall.h".
5288 * linespec.c: Include "linespec.h".
5289 * symfile.c (sections_overlap): Make static.
5290 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5291 * charset.c (_initialize_charset): Add missing prototype.
5292 * regcache.c (init_legacy_regcache_descr): Make static.
5293 (do_regcache_xfree): Make static.
5294 (regcache_xfer_part): Make static.
5295 (_initialize_regcache): Add missing prototype.
5296 * breakpoint.c (parse_breakpoint_sals): Make static.
5297 (breakpoint_sals_to_pc): Make static.
5298 * interps.h (clear_interpreter_hooks): ISO C declaration.
5299 * Makefile.in (stack_h): Define.
5300 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5301 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5302
a0f267c7
AC
53032003-06-08 Andrew Cagney <cagney@redhat.com>
5304
5305 * Makefile.in (d10v-tdep.o): Update dependencies.
5306 (SFILES): Add trad-frame.c.
5307 (trad_frame_h): Define.
5308 (COMMON_OBS): Add trad-frame.o.
5309 (trad-frame.o): Specify dependencies.
5310 * d10v-tdep.c: Include "trad-frame.h".
5311 (saved_regs_unwinder): Delete function.
5312 (d10v_frame_prev_register): Use trad_frame_prev_register.
5313 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5314 trad_frame", delete "regs" and "prev_sp".
5315 (prologue_find_regs): Use trad-frame.
5316 * trad-frame.h, trad-frame.c: New files.
5317
4538b4f4
MK
53182003-06-08 Mark Kettenis <kettenis@gnu.org>
5319
5320 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5321
a0273b2f
AF
53222003-06-07 Adam Fedor <fedor@gnu.org>
5323
5324 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5325 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5326 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5327 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5328 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5329 Use it.
5330
3a6c3343
AC
53312003-06-07 Andrew Cagney <cagney@redhat.com>
5332
5333 * symfile.h: Re-indent, clean up comments.
5334
b46e02f6
AC
53352003-06-07 Andrew Cagney <cagney@redhat.com>
5336
5337 * inferior.h (deprecated_write_sp): Replace
5338 generic_target_write_sp.
5339 * regcache.c (deprecated_write_sp): Replace
5340 generic_target_write_sp.
5341 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5342 * vax-tdep.c (vax_gdbarch_init): Update.
5343 * v850-tdep.c (v850_gdbarch_init): Update.
5344 * sparc-tdep.c (sparc_gdbarch_init): Update.
5345 * sh-tdep.c (sh_gdbarch_init): Update.
5346 * s390-tdep.c (s390_gdbarch_init): Update.
5347 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5348 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5349 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5350 * mcore-tdep.c (mcore_gdbarch_init): Update.
5351 * m68k-tdep.c (m68k_gdbarch_init): Update.
5352 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5353 * ia64-tdep.c (ia64_gdbarch_init): Update.
5354 * h8300-tdep.c (h8300_gdbarch_init): Update.
5355 * frv-tdep.c (frv_gdbarch_init): Update.
5356 * cris-tdep.c (cris_gdbarch_init): Update.
5357 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5358
a42e117c
AC
53592003-06-07 Andrew Cagney <cagney@redhat.com>
5360
5361 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5362 Assert that PC_REGNUM is valid.
5363 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5364
bd1ce8ba
AC
53652003-06-07 Andrew Cagney <cagney@redhat.com>
5366
5367 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5368 * gdbarch.h, gdbarch.c: Regenerate.
5369 * mn10300-tdep.c: Include "gdb_assert.h".
5370 (mn10300_read_fp): New function.
5371 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5372 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5373 * ia64-tdep.c: Include "gdb_assert.h".
5374 (ia64_read_fp): New function.
5375 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5376 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5377 * regcache.c (generic_target_read_sp): Delete function.
5378 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5379 * inferior.h (generic_target_read_sp): Delete declaration.
5380 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5381 generic_target_read_sp.
5382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5383 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5384 * sh-tdep.c (sh_gdbarch_init): Ditto.
5385 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5386 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5387
ec5cbaec
AC
53882003-06-07 Andrew Cagney <cagney@redhat.com>
5389
5390 * gdbarch.sh: Comment each field of startup_gdbarch.
5391 * gdbarch.h, gdbarch.c: Re-generate.
5392
cde9ea48
AC
53932003-06-07 Andrew Cagney <cagney@redhat.com>
5394
5395 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5396 * gdbarch.h, gdbarch.c: Re-generate.
5397 * regcache.c: Update comments on read_pc et.al.
5398 (generic_target_read_pc): Delete function.
5399 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5400 * inferior.h (generic_target_read_pc): Delete declaration.
5401 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5402 generic_target_read_pc.
5403 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5404 * sh-tdep.c (sh_gdbarch_init): Ditto.
5405 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5407
9a90a780
AC
54082003-06-07 Andrew Cagney <cagney@redhat.com>
5409
5410 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5411 "index" with "special_local_sect". Use strcmp instead of STREQ.
5412 Append period to coments.
5413
a39a16c4
MM
54142003-06-06 Mark Mitchell <mark@codesourcery.com>
5415
5416 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5417 (elfstab_offset_sections): Likewise.
5418 * gdb-stabs.h (stab_section_info): Likewise.
5419 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5420 * objfiles.c (objfile_relocate): Likewise.
5421 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5422 * remote.c (get_offsets): Likewise.
5423 (remote_cisco_objfile_relocate): Likewise.
5424 * somread.c (som_symfile_offsets): Likewise.
5425 * symfile.c (alloc_section_addr_info): New function.
5426 (build_section_addr_info_from_section_tab): Use it.
5427 (free_section_addr_info): Adjust.
5428 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5429 (syms_from_objfile): Allocate local_addr dynamically.
5430 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5431 dynamically.
5432 (add_symbol_file_command): Allocate sect_opts dynamically.
5433 (reread_symbols): Avoid use of SECT_OFF_MAX.
5434 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5435 (alloc_section_addr_info): Declare it.
5436 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5437 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5438 dynamically.
5439 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5440
20c6c2f8
AC
54412003-06-06 Andrew Cagney <cagney@redhat.com>
5442
5443 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5444 (d10v_frame_unwind_cache): Do not set "return_pc".
5445
884a26c8
MS
54462003-06-06 Michael Snyder <msnyder@redhat.com>
5447
5448 * h8300-tdep.c: Make tidy (long lines).
5449
088ce440
ML
54502003-06-06 Michal Ludvig <mludvig@suse.cz>
5451
8ffd9b1b 5452 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5453 to regcache_collect().
5454
7d773d96
JB
54552003-06-05 J. Brobecker <brobecker@gnat.com>
5456
5457 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5458 pc_in_sigtramp multiarch method.
5459 (hppa_hpux_som_init_abi): Use it.
5460 (hppa_hpux_elf_init_abi): Likewise.
5461 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5462 macro has been multiarched.
5463 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5464 macro here, as hppa64 isn't multiarched yet.
5465
1df6926e
AC
54662003-06-05 Andrew Cagney <cagney@redhat.com>
5467
5468 * Makefile.in (value_h): Add $(frame_h).
5469 * value.h: Include "frame.h".
5470 (struct value): Replace "frame_addr" with "frame_id".
5471 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5472 * values.c (allocate_value): Use VALUE_FRAME_ID.
5473 (value_copy): Use VALUE_FRAME_ID.
5474 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5475 * valops.c (value_assign): Update. Use frame_find_by_id.
5476
6b53acc6
ML
54772003-06-05 Michal Ludvig <mludvig@suse.cz>
5478
5479 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5480 in each pass.
5481
4d9850d3
JJ
54822003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5483
5484 * thread-db.c (check_event): For create/death event breakpoints,
5485 loop through all messages to ensure that we read the message
5486 corresponding to the breakpoint we are at.
5487
8efca6ba
MS
54882003-06-04 Michael Snyder <msnyder@redhat.com>
5489
5490 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5491
0912c7f2
MK
54922003-06-04 Mark Kettenis <kettenis@gnu.org>
5493
5494 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5495 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5496 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5497 when handling .eh_frame sections.
5498
4e370325
JB
54992003-06-04 J. Brobecker <brobecker@gnat.com>
5500
5501 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5502 prepare_to_proceed procedure instead of the hppa-specific one.
5503 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5504
b757528f 55052003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5506
b757528f
JJ
5507 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5508 * config.in: Regenerated.
5509 * configure.in: Add test for syscall function and check for
5510 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5511 * configure: Regenerated.
5512 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5513 <sys/syscall.h>.
5514 (kill_lwp): New function that uses tkill syscall or
5515 uses kill, depending on whether threading model is nptl or not.
5516 All callers of kill() changed to use kill_lwp().
5517 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5518 see if all threads have already exited in the nptl model.
5519 (stop_and_resume_callback): New callback function used by the
5520 lin_lwp_wait thread exit handling code.
5521 (stop_wait_callback): Check for threads already having exited and
5522 delete such threads fromt the lwp list when discovered.
5523 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5524
b757528f
JJ
5525 Roland McGrath <roland@redhat.com>
5526 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5527 nptl libthread_db.
5528
087779b1
RH
55292003-06-03 Richard Henderson <rth@redhat.com>
5530
b21fd293
RH
5531 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5532 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5533 (alpha_sigtramp_frame_prev_register): Likewise.
5534 (alpha_heuristic_frame_prev_register): Likewise.
5535 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5536
8ffd9b1b 5537 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5538 alpha-specific register id names.
5539 (alpha_mdebug_frame_unwind_cache): Likewise.
5540 (alpha_mdebug_frame_prev_register): Likewise.
5541
baa490c4
RH
55422003-06-03 Richard Henderson <rth@redhat.com>
5543
5544 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5545 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5546 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5547 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5548 unwind routines.
5549 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5550 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5551 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5552
5553 * alpha-linux-tdep.c: Remove unnecessary includes.
5554 * Makefile.in (alpha-linux-tdep.o): Update.
5555
55562003-06-03 Richard Henderson <rth@redhat.com>
5557
5558 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5559 (alphabsd_fill_fpreg): Likewise.
5560
f534e522
JB
55612003-06-03 J. Brobecker <brobecker@gnat.com>
5562
5563 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5564 references to struct frame_info fields by calls to the equivalent
5565 accessors. Necessary now that frame_info is opaque.
5566
4035536b
JB
55672003-06-03 J. Brobecker <brobecker@gnat.com>
5568
5569 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5570 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5571 structure, field no longer exists.
5572
0bd79c5c
JB
55732003-06-03 J. Brobecker <brobecker@gnat.com>
5574
5575 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5576 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5577
37bb6d9f
JB
55782003-06-03 J. Brobecker <brobecker@gnat.com>
5579
5580 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5581 references to struct frame_info fields by calls to the equivalent
5582 accessors. Necessary now that frame_info is opaque.
5583
852ee05c
JB
55842003-06-03 J. Brobecker <brobecker@gnat.com>
5585
5586 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5587 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5588 structure, field no longer exists.
5589
7d58c67d
TR
55902003-06-03 Theodore A. Roth <troth@openavr.org>
5591
8ffd9b1b 5592 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5593 accumulation of the size of all registers instead of blindly using
5594 DEPRECATED_REGISTER_BYTES.
5595
0a48e7e8
MS
55962003-06-03 Michael Snyder <msnyder@redhat.com>
5597
5598 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5599 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5600 for h8300sx.
5601
9798ab0d
JB
56022003-06-03 J. Brobecker <brobecker@gnat.com>
5603
5604 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5605 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5606
00b037e2
AC
56072003-06-03 Andrew Cagney <cagney@redhat.com>
5608
5609 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5610 (sparc_convert_to_raw): Delete function.
5611 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5612 register_convert_to_virtual.
5613
043b2f77
JJ
56142003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5615
5616 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5617 layer if not dealing with a statically-linked threaded program.
5618
f43caff8
KW
56192003-06-03 Kris Warkentin <kewarken@qnx.com>
5620
5621 * solib.c (solib_open): Update comment to reflect actual search order.
5622
ae1e7417
AC
56232003-06-03 Andrew Cagney <cagney@redhat.com>
5624
5625 * frame.c (get_frame_memory_signed): New function.
5626 (get_frame_memory, get_frame_memory_unsigned): New function.
5627 (get_frame_arch): New function.
5628 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5629 (get_frame_memory, get_frame_unsigned_memory): Declare.
5630 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5631 get_frame_memory_unsigned and get_frame_arch.
5632 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5633
cb123844
RG
56342003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5635
5636 * MAINTAINERS (write after approval): Add myself.
5637
1bb792e9
JB
56382003-06-03 Jim Blandy <jimb@redhat.com>
5639
5640 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5641 elements of gregset_t are 64 bits each, but access registers
5642 are still 32 bits, so they're packed two per gregset_t
5643 element. Unpack/pack them properly.
5644
aee8d8ba
DC
56452003-06-02 David Carlton <carlton@bactrian.org>
5646
5647 * linespec.c (find_methods): Break out code into
5648 add_matching_methods and add_constructors.
5649 (add_matching_methods): New.
5650 (add_constructors): Ditto.
5651
bf7488d2
AC
56522003-06-02 Andrew Cagney <cagney@redhat.com>
5653
bf7488d2
AC
5654 * sparc-tdep.c (sparc_print_registers): Delete call to
5655 REGISTER_CONVERTIBLE.
5656 (sparc_gdbarch_init): Do not set register_convertible.
5657 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5658 * frv-tdep.c (frv_gdbarch_init): Ditto.
5659 * cris-tdep.c (cris_gdbarch_init): Ditto.
5660
adedef68
EZ
56612003-06-02 Elena Zannoni <ezannoni@redhat.com>
5662
8ffd9b1b 5663 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5664 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5665 (syms_from_objfile): Ditto.
5666
650fcc91
AS
56672003-06-03 Andreas Schwab <schwab@suse.de>
5668
5669 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5670 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5671
df4a182b
RH
56722003-06-02 Richard Henderson <rth@redhat.com>
5673
5674 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5675 a member of all_reggroup.
5676
c483c494
RH
56772003-06-02 Richard Henderson <rth@redhat.com>
5678
5679 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5680 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5681 (alpha_lds, alpha_sts): New.
5682 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5683 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5684 restructure and fail for type sizes other than 4 or 8.
5685 (alpha_value_to_register): Similarly.
5686 (alpha_extract_return_value): Use alpha_sts.
5687 (alpha_store_return_value): Use alpha_lds.
5688 (alpha_gdbarch_init): Update hooks.
5689
b38b6be2
RH
56902003-06-02 Richard Henderson <rth@redhat.com>
5691
5692 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5693 regnum identifiers.
5694 (alpha_sigtramp_register_address): Likewise.
5695
98a8e1e5
RH
56962003-06-02 Richard Henderson <rth@redhat.com>
5697
5698 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5699 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5700 * alpha-tdep.h: Declare them.
5701
5702 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5703 Remove zerobuf. Don't error on UNIQUE.
5704 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5705 (ALPHA_REGSET_UNIQUE): Provide default.
5706 (supply_gregset): Use alpha_supply_int_regs.
5707 (fill_gregset): Use alpha_fill_int_regs.
5708 (supply_fpregset): Use alpha_supply_fp_regs.
5709 (fill_fpregset): Use alpha_fill_fp_regs.
5710 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5711 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5712 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5713 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5714 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5715 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5716
67dfac52
RH
57172003-06-02 Richard Henderson <rth@redhat.com>
5718
f75d70cc
RH
5719 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5720
67dfac52
RH
5721 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5722 (alpha_store_return_value): Likewise.
5723
0cf566ec
DC
57242003-06-02 David Carlton <carlton@math.stanford.edu>
5725
5726 * block.c (contained_in): Add 'const' to arguments.
5727 (block_function): Ditto.
5728 * block.h: Update declarations for block_function and
5729 contained_in.
5730
cdef89d0
DC
57312003-06-02 David Carlton <carlton@math.stanford.edu>
5732
5733 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5734 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5735 * p-valprint.c (pascal_val_print): Ditto.
5736 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5737
72667056
RH
57382003-06-02 Richard Henderson <rth@redhat.com>
5739
98a8e1e5
RH
5740 * alpha-tdep.c (alpha_push_dummy_call): Use
5741 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5742
8ffd9b1b 5743 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5744 sign-extension of 32-bit values.
5745 (alpha_store_return_value): Similarly.
0ede8eca 5746
98a8e1e5
RH
5747 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5748 (alpha_extract_return_value): Likewise.
5749 (alpha_store_return_value): Likewise.
7b5e1cb3 5750
98a8e1e5
RH
5751 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5752 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5753
98a8e1e5
RH
5754 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5755 (alpha_extract_struct_value_address): Likewise.
5756 (alpha_store_return_value): Likewise.
5757 (alpha_store_struct_return): Remove.
5758 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5759
98a8e1e5
RH
5760 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5761 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5762 macros where appropriate.
5763 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5764 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5765
98a8e1e5
RH
5766 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5767 for SP, GP; void_func_ptr for PC; non-language-specific types
5768 for all others.
5769 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5770
6dd77b81
RH
57712003-06-02 Richard Henderson <rth@redhat.com>
5772
5773 * top.h (lim_at_start): Declare.
5774 * main.c (captured_main): Set it.
5775 * top.c (lim_at_start): Define.
5776 (command_loop): Use it instead of &environ.
5777 * event-top.c (command_handler): Likewise.
5778
f4dbdb54
JT
57792003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5780
5781 * mipsnbsd-tdep.c: Update copyright years.
5782 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5783
8f285956
RH
57842003-06-01 Richard Henderson <rth@redhat.com>
5785
98a8e1e5
RH
5786 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5787 (alpha-linux-tdep.o): Update dependencies.
5788 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5789 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5790
615967cb
RH
57912003-06-01 Richard Henderson <rth@redhat.com>
5792
98a8e1e5
RH
5793 * alpha-tdep.c (alpha_register_reggroup_p): New.
5794 (alpha_gdbarch_init): Register it.
615967cb 5795
b59661bd
AC
57962003-06-02 Andrew Cagney <cagney@redhat.com>
5797
5798 * dwarfread.c: Eliminate "register"
5799 (decode_die_type): Eliminate assignment within "if".
5800 (struct_type, decode_array_element_type): Ditto.
5801 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5802 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5803 (decode_modified_type, completedieinfo): Ditto.
5804 * block.c: Eliminate "register".
5805 (blockvector_for_pc_sect): Eliminate assignment within "if".
5806 * cp-support.h (struct symbol): Opaque declaration.
5807 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5808
5ef165c2
RH
58092003-06-01 Richard Henderson <rth@redhat.com>
5810
98a8e1e5
RH
5811 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5812 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5813
143985b7
AF
58142003-06-01 Adam Fedor <fedor@gnu.org>
5815
5816 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5817 * gdbarch.[ch]: Regenerate.
5818 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5819 (hppa_gdbarch_init): Set it in the gdbarch vector.
5820 * i386-tdep.c (i386_fetch_pointer_argument): New
5821 (i386_gdbarch_init): Set it into gdbarch.
5822 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5823 (rs6000_gdbarch_init): Set it in gdbarch.
5824 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5825 (sparc_gdbarch_init): Set it in gdbarch.
5826
ae0167b9
AC
58272003-06-01 Andrew Cagney <cagney@redhat.com>
5828
7c0b4a20
AC
5829 * defs.h (extract_address): Delete declaration.
5830 * findvar.c (extract_address): Delete function.
5831 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5832 extract_address with the inline equivalent,
5833 extract_unsigned_integer.
5834 (xstormy16_extract_struct_value_address): Ditto.
5835 (xstormy16_pointer_to_address): Ditto.
5836 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5837 * v850-tdep.c (v850_push_arguments): Ditto.
5838 (v850_extract_return_value): Ditto.
5839 (v850_extract_struct_value_address): Ditto.
5840 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5841 (sparcnbsd_get_longjmp_target_64): Ditto.
5842 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5843 (get_longjmp_target): Ditto.
5844 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5845 (sh64_extract_struct_value_address): Ditto.
5846 (sh_push_arguments): Ditto.
5847 (sh64_push_arguments): Ditto.
5848 * remote-vxsparc.c (vx_read_register): Ditto.
5849 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5850 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5851 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5852 * mipsv4-nat.c (get_longjmp_target): Ditto.
5853 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5854 * mips-nat.c (get_longjmp_target): Ditto.
5855 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5856 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5857 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5858 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5859 * irix5-nat.c (get_longjmp_target): Ditto.
5860 * irix4-nat.c (get_longjmp_target): Ditto.
5861 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5862 (ia64_push_arguments): Ditto.
5863 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5864 * h8300-tdep.c (h8300_push_arguments): Ditto.
5865 (h8300_store_return_value): Ditto.
5866 (h8300_extract_struct_value_address): Ditto.
5867 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5868 (frv_push_arguments): Ditto.
5869 * avr-tdep.c (avr_pointer_to_address): Ditto.
5870 (avr_push_arguments): Ditto.
5871 * arm-tdep.c (arm_push_dummy_call): Ditto.
5872 (arm_get_longjmp_target): Ditto.
5873 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5874 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5875 (alpha_get_longjmp_target): Ditto.
5876
ae0167b9
AC
5877 * solib-irix.c (extract_mips_address): Inline extract_address,
5878 replacing it with extract_signed_integer.
5879 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5880 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5881 (first_link_map_member, open_symbol_file_object): Ditto.
5882 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5883 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5884 (LM_NEXT, LM_NAME): Ditto.
5885
44d88583
RH
58862003-06-01 Richard Henderson <rth@redhat.com>
5887
98a8e1e5
RH
5888 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5889 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5890 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5891 (alpha_cannot_store_register): Likewise.
5892 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5893 * alpha-nat.c (supply_gregset): Likewise.
5894 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5895
310e9b6a
AC
58962003-06-01 Andrew Cagney <cagney@redhat.com>
5897
5898 * infcall.c (call_function_by_hand): Update comment on
5899 DEPRECATED_DUMMY_WRITE_SP.
5900
5901 * mips-tdep.c (mips_gdbarch_init): Do not set
5902 deprecated_dummy_write_sp.
5903 (mips_eabi_push_dummy_call): Set the SP register.
5904 (mips_o64_push_dummy_call): Set the SP register.
5905 (mips_o32_push_dummy_call): Set the SP register.
5906 (mips_n32n64_push_dummy_call): Set the SP register.
5907
5ab84872
RH
59082003-06-01 Richard Henderson <rth@redhat.com>
5909
98a8e1e5
RH
5910 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5911 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5912 (supply_gregset): Likewise.
5913 * alpha-tdep.c (alpha_store_return_value): Likewise.
5914 (alpha_get_longjmp_target): Likewise.
5915 (alpha_register_name): Constify array.
5916 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5917 deprecated_register_size, deprecated_register_bytes,
5918 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5919 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5920 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5921
09cc52fd
RH
59222003-06-01 Richard Henderson <rth@redhat.com>
5923
5924 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5925 from arg_reg_buffer to regcache to avoid double conversion.
5926
c7f16359
MK
59272003-06-01 Mark Kettenis <kettenis@gnu.org>
5928
5929 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5930 SP_REGNUM.
5931 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5932 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5933
7131cb6e
RH
59342003-06-01 Richard Henderson <rth@redhat.com>
5935
98a8e1e5
RH
5936 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5937 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5938
f3e0f90b
RH
59392003-06-01 Richard Henderson <rth@redhat.com>
5940
98a8e1e5
RH
5941 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5942 not overlapping PC_REGNUM.
f3e0f90b 5943
c88e30c0
RH
59442003-06-01 Richard Henderson <rth@redhat.com>
5945
98a8e1e5
RH
5946 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5947 alpha_push_arguments. Don't dump argument register data to
5948 the target stack. Fix float and 128-bit long double semantics.
5949 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5950 (alpha_fix_call_dummy): Remove.
5951 (alpha_call_dummy_words): Remove.
5952 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5953
f1a559ae
RH
59542003-06-01 Richard Henderson <rth@redhat.com>
5955
5956 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5957
5e045346
AC
59582003-06-01 Andrew Cagney <cagney@redhat.com>
5959
95404a3e
AC
5960 * mips-tdep.c (is_mips16_addr): New function.
5961 (make_mips16_addr, unmake_mips16_addr): New functions.
5962 (pc_is_mips16, mips_fetch_instruction): Use.
5963 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5964 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5965 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5966 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5967 TARGET_MIPS.
5968 * config/mips/tm-mips.h: Update copyright.
5969 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5970 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5971 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5972 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5973 (TM_PRINT_INSN_MACH): Delete.
5974 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5975
5e045346
AC
5976 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5977 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5978 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5979 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5980 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5981 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5982 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5983 mips*-*-riscos* and mips*-*-sysv* onto mips.
5984 * config/mips/mips64.mt: New file.
5985 * config/mips/mips.mt: New file.
5986 * config/mips/littlemips.mt: Delete file.
5987 * config/mips/decstation.mt: Delete file.
5988 * config/mips/vr4300el.mt: Delete file.
5989 * config/mips/vr5000el.mt: Delete file.
5990 * config/mips/vr5000.mt: Delete file.
5991 * config/mips/vr4100.mt: Delete file.
5992 * config/mips/vr4xxxel.mt: Delete file.
5993 * config/mips/vr4300.mt: Delete file.
5994 * config/mips/vr4xxx.mt: Delete file.
5995 * config/mips/bigmips.mt: Delete file.
5996 * config/mips/bigmips64.mt: Delete file.
5997 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5998 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5999 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6000 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6001 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6002 "tm-bigmips.h".
6003 * config/mips/tm-irix3.h: Ditto.
6004 * config/mips/tm-mipsv4.h: Ditto.
6005 * config/mips/tm-embed.h: Ditto.
6006 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6007 "tm-bigmips64.h".
6008 * config/mips/tm-vr5000el.h: Delete file.
6009 * config/mips/tm-tx39l.h: Delete file.
6010 * config/mips/tm-vr4300el.h: Delete file.
6011 * config/mips/tm-vr4xxxel.h: Delete file.
6012 * config/mips/tm-vr4300.h: Delete file.
6013 * config/mips/tm-vr4100.h: Delete file.
6014 * config/mips/tm-vr4xxx.h: Delete file.
6015 * config/mips/tm-vr5000.h: Delete file.
6016 * config/mips/tm-embedl64.h: Delete file.
6017 * config/mips/tm-embedl.h: Delete file.
6018 * config/mips/tm-embed64.h: Delete file.
6019 * config/mips/tm-bigmips64.h: Delete file.
6020 * config/mips/tm-bigmips.h: Delete file.
6021
2473a4a9
MK
60222003-06-01 Mark Kettenis <kettenis@gnu.org>
6023
97a5b208
MK
6024 Fix gdb/1216.
6025 * shnbsd-nat.c: Include "sh-tdep.h".
6026
2473a4a9
MK
6027 From Richard Henderson <rth@redhat.com>:
6028 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6029
e0f7ec59
AC
60302003-05-31 Andrew Cagney <cagney@redhat.com>
6031
6032 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6033 forward declaration.
6034 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6035 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6036 (mips_find_saved_regs): Use set_reg_offset.
6037 (mips_frame_init_saved_regs): Delete function.
6038 (mips_pop_frame): Call mips_find_saved_regs instead of
6039 DEPRECATED_FRAME_INIT_SAVED_REGS.
6040
68dcc709
AC
60412003-05-31 Andrew Cagney <cagney@redhat.com>
6042
6043 * mips-tdep.c (mips_gdbarch_init): Do not set
6044 deprecated_max_register_raw_size, register_virtual_size, and
6045 deprecated_max_register_virtual_size.
6046
cfc14b3a
MK
60472003-05-31 Mark Kettenis <kettenis@gnu.org>
6048
6405b0a6
MK
6049 * i386-tdep.c: Include "dwarf2-frame.h".
6050 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6051 * Makefile.in (i386-tdep.o): Update dependencies.
6052
cfc14b3a
MK
6053 * dwarf2-frame.c, dwarf2-frame.h: New files.
6054 * Makefile.in (SFILES): Add dwarf2-frame.c.
6055 (dwarf2_frame_h): Define.
6056 (COMMON_OBS): Add dwarf2-frame.o.
6057 (dwarf2-frame.o): Add dependencies.
6058
6a2751d2
AJ
60592003-05-31 Andreas Jaeger <aj@suse.de>
6060
6061 * x86-64-linux-nat.c: Fix comment.
6062
1c3545ae
MK
60632003-05-31 Mark Kettenis <kettenis@gnu.org>
6064
10f93086
MK
6065 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6066 function signature.
6067
1c3545ae
MK
6068 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6069 have a sigcontext_addr handler.
6070 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6071 sigcontext_addr handler.
6072
e11c53d2
AC
60732003-05-31 Andrew Cagney <cagney@redhat.com>
6074
6075 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6076 (print_fp_register_row): Replace do_fp_register_row.
6077 (mips_print_fp_register): Add "file" and "frame" parameters.
6078 (mips_print_register): Add "file" and "frame" parameters.
6079 (mips_print_registers_info): Replace mips_do_registers_info.
6080 (mips_gdbarch_init): Set print_registers_info instead of
6081 deprecated_do_registers_info.
6082 (mips_read_fp_register_single): Add "frame" parameter.
6083 (mips_read_fp_register_double): Add "frame" parameter.
6084
a3386186
MK
60852003-05-31 Mark Kettenis <kettenis@gnu.org>
6086
70913449
MK
6087 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6088 Fixes a bug where GDB would print the wrong register names for
6089 targets without SSE.
6090
2b5e0749
MK
6091 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6092 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6093 registers.
6094
6095 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6096 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6097 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6098 TDEP->sc_sp_offset.
6099
a3386186
MK
6100 From Michal Ludvig <mludvig@suse.cz>:
6101 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6102 and `sc_num_regs'.
6103 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6104 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6105 I386_ST0_REGNUM): Move here from...
6106 * i386-tdep.c: ... here.
6107 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6108 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6109 registers if possible.
6110 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6111 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6112 Remove variables.
6113 (i386bsd_sc_reg_offset): New variable.
6114 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6115 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6116 TDEP->sc_sp_offset.
6117 (i386fbsd_sc_reg_offset): New variable.
6118 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6119 TDEP->sc_num_regs.
6120 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6121 variables.
6122 (i386fbsd4_sc_reg_offset): New variable.
6123 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6124 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6125 TDEP->sc_sp_offset.
6126 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6127 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6128 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6129 Remove variables.
6130 (i386nbsd_sc_reg_offset): New variable.
6131 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6132 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6133 TDEP->sc_sp_offset.
6134 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6135 Remove variables.
6136 (i386obsd_sc_reg_offset): New variable.
6137 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6138 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6139 TDEP->sc_sp_offset.
6140 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6141 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6142 for frame pointer offset in `struct sigcontext'.
6143
25ab4790
AC
61442003-05-31 Andrew Cagney <cagney@redhat.com>
6145
6146 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6147 architecture methods call_dummy_words, sizeof_call_dummy_words,
6148 push_return_address, store_struct_return, and fix_call_dummy. Set
6149 push_dummy_call instead of deprecated_push_arguments.
6150 (mips_store_struct_return): Delete function.
6151 (mips_fix_call_dummy): Delete function.
6152 (mips_push_return_address): Delete function.
6153 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6154 RA_REGNUM and T9_REGNUM.
6155 (mips_n32n64_push_dummy_call): Ditto for
6156 mips_n32n64_push_arguments.
6157 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6158 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6159
6a65450a
AC
61602003-05-31 Andrew Cagney <cagney@redhat.com>
6161
6162 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6163 "dummy_addr" to "bp_addr".
6164 * infcall.c (call_function_by_hand): Pass "funaddr" to
6165 gdbarch_push_dummy_call.
6166 * gdbarch.h, gdbarch.c: Re-generate.
6167 * i386-tdep.c (i386_push_dummy_call): Update.
6168 * arm-tdep.c (arm_push_dummy_call): Update.
6169 * d10v-tdep.c (d10v_push_dummy_call): Update.
6170
c4f35dd8
MK
61712003-05-31 Mark Kettenis <kettenis@gnu.org>
6172
6173 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6174 variable declarations.
6175 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6176 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6177 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6178 x86_64_init_frame_pc, x86_64_init_frame_pc,
6179 x86_64_function_has_prologue): Remove prototypes.
6180 (X86_64_NUM_GREGS): New define.
6181 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6182 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6183 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6184 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6185 XMM1_REGNUM): Remove defines.
6186 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6187 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6188 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6189 X86_64_XMM1_REGNUM): New defines.
6190 (struct x86_64_register_info): Renamed from `struct
6191 register_info'. Remove `size' member.
6192 (x86_64_register_info_table): Remove variable.
6193 (x86_64_register_info): New variable.
6194 (X86_64_NUM_REGS): New define.
6195 (X86_64_NUM_GREGS): Remove define.
6196 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6197 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6198 Remove variables.
6199 (x86_54_dwarf2_reg_to_regnum): Remove function.
6200 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6201 (x86_64_dwarf_reg_to_regnum): New function.
6202 (x86_64_register_name): Rewrite.
6203 (x86_64_register_raw_size): Remove function.
6204 (x86_64_register_byte_table): Remove variable.
6205 (x86_64_register_byte): Remove function.
6206 (x86_64_register_virtual_type): Remove function.
6207 (x86_64_register_type): New function.
6208 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6209 x86_64_register_convert_to_raw): Remove functions.
6210 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6211 (x86_64_use_struct_convention): Make static. Adjust for renamed
6212 defines.
6213 (x86_64_frame_init_saved_regs): Remove function.
6214 (x86_64_push_arguments): Make static. Change to accept a regcache
6215 as argument.
6216 (x86_64_store_return_value, x86_64_extract_return_value): Make
6217 static. Rewrite based on i386 counterparts.
6218 (x86_64_push_dummy_call): New function.
6219 (X86_64_NUM_SAVED_REGS): New define.
6220 (x86_64_register_number): Remove function.
6221 (x86_64_store_struct_return): Remove function.
6222 (x86_64_frameless_function_invocation,
6223 x86_64_function_has_prologue): Remove functions.
6224 (PROLOG_BUFSIZE): Remove define.
6225 (struct x86_64_frame_cache): New structure.
6226 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6227 x86_64_frame_cache, x86_64_frame_this_id,
6228 x86_64_frame_prev_register, x86_64_frame_p,
6229 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6230 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6231 functions.
6232 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6233 variables.
6234 (x86_64_skip_prologue): Rewrite in terms of
6235 x86_64_analyze_prologue.
6236 (x86_64_frame_base_address): New function.
6237 (x86_64_frame_base): New variable.
6238 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6239 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6240 set deprecated_fp_regnum, deprecated_register_size,
6241 deprecated_register_bytes, register_raw_size, register_byte,
6242 register_virtual_type, register_convertiable,
6243 register_convert_to_virtual, convert_to_raw,
6244 deprecated_get_saved_register, deprecated_target_read_fp,
6245 deprecated_push_arguments, deprecated_push_return_address,
6246 deprecated_pop_frame, deprecated_store_struct_return,
6247 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6248 frameless_function_invocation, deprecated_frame_saved_pc,
6249 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6250 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6251 deprecated_init_frame_pc and virtual_frame_pointer. Call
6252 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6253 and x86_64_frame_p. Call frame_base_set_default to register
6254 x86_64_frame_base.
6255 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6256 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6257 (_initialize_x86_64_tdep): Remove function.
6258 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6259 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6260 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6261 define.
6262 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6263 (x86_64_linux_sigcontext_addr): Rewrite.
6264 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6265 x86_64_linux_frame_saved_pc): Remove functions.
6266 (x86_64_linux_pc_in_sigtramp): Renamed from
6267 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6268 trampoline.
6269 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6270 Remove_functions.
6271 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6272 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6273 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6274 (x86_64_regmap): Rename to regmap.
6275 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6276 x86_64_num_gregs.
6277 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6278 x86_64_regmap.
6279 (x86_64_fxsave_offset): Remove function.
6280 (supply_fpregset): Simply call x86_64_supply_fxsave.
6281 (fill_fpregset): Simply call x86_64_fill_fxsave.
6282 (fetch_inferior_registers, store_inferior_registers): Avoid
6283 asignment in if-statement.
6284 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6285 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6286 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6287 (fetch_core_registers): Remove function.
6288 (linux_elf_core_fns): Remove.
6289 (offsetoff): Don't define.
6290 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6291 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6292 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6293 add core-regset.o.
6294 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6295 protection against multiple includes instead of NM_X86_64_h. Add
6296 various comments. Include "config/nm-linux.h". Don't include
6297 <signal.h>.
6298 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6299 GET_THREAD_SIGNALS): Remove defines.
6300 (x86_64_register_u_addr, kernel_u_size,
6301 lin_thread_get_thread_signals): Remove prototypes.
6302 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6303 [HAVE_LINK_H]: Don't include "solib.h".
6304 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6305 * config/i386/tm-x86-64linux.h: Fix comments.
6306 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6307 x86-64-tdep.o): Update dependencies.
6308
c25083af
AC
63092003-05-30 Andrew Cagney <cagney@redhat.com>
6310
c8f55a7b
AC
6311 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6312 Change parameter type to a "struct regcache *".
6313
c25083af
AC
6314 * gdbarch.sh: Regardless of the multi-arch level, always define
6315 the macro when not already defined.
6316 * gdbarch.h, gdbarch.c: Re-generate.
6317
fbe586ae
RH
63182003-05-30 Richard Henderson <rth@redhat.com>
6319
6320 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6321 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6322 (alpha_mdebug_frame_this_id): Likewise.
6323 (alpha_mdebug_frame_prev_register): Likewise.
6324 (alpha_mdebug_frame_base_address): Likewise.
6325 (alpha_mdebug_frame_locals_address): Likewise.
6326 (alpha_mdebug_frame_args_address): Likewise.
6327 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6328 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6329 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6330 loop increment.
6331 (alpha_heuristic_frame_this_id): Make static.
6332 (alpha_heuristic_frame_prev_register): Likewise.
6333 (alpha_heuristic_frame_base_address): Likewise.
6334 * alpha-tdep.h: Update.
6335
acd5c798
MK
63362003-05-30 Mark Kettenis <kettenis@gnu.org>
6337
6338 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6339 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6340 defenitions.
6341 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6342 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6343 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6344 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6345 I386_ST0_REGNUM): New defines.
6346 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6347 codestream_get): Remove define.
6348 (codestream_next_addr, condestream_addr, condestream_buf,
6349 codestream_off, codestream_cnt): Remove variables.
6350 (codestream_fill, codestream_seek, codestream_read): Remove
6351 functions.
6352 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6353 functionality.
6354 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6355 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6356 i386_frame_saved_pc, i386_saved_pc_after_call,
6357 i386_frame_num_args, i386_frame_init_saved_regs,
6358 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6359 i386_push_arguments): Remove functions.
6360 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6361 functionality. Use i386_analyze_prologue instead of
6362 i386_get_frame_setup.
6363 (I386_NUM_SAVED_REGS): New define.
6364 (struct i386_frame_cache): New structure.
6365 (i386_alloc_frame_cache, i386_analyze_struct_return,
6366 i386_skip_probe, i386_analyze_frame_setup,
6367 i386_analyze_register_saves, i386_analyze_prologue,
6368 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6369 i386_frame_prev_register, i386_sigtramp_frame_cache,
6370 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6371 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6372 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6373 New functions.
6374 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6375 New variables.
6376 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6377 I386_EAX_REGNUM and I386_EDX_REGNUM.
6378 (i386_extract_return_value, i386_store_return_value): Use
6379 I386_ST0_REGNUM where appropriate.
6380 (i386_extract_struct_value_address): Rewrite to use extract_address.
6381 (i386_svr4_pc_in_sigtramp): Add comment.
6382 (i386_svr4_sigcontext_addr): Rewrite.
6383 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6384 TDEP->sc_sp_offset.
6385 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6386 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6387 of new defines. Set push_dummy_call, don't set
6388 deprecated_push_arguments, deprecated_push_return_address,
6389 deprecated_pop_frame. Don't set parm_boundary. Don't set
6390 deprecated_frame_chain, deprecated_frame_saved_pc,
6391 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6392 save_dummy_frame_tos, unwind_pc. Call
6393 frame_unwind_append_predicate and frame_base_set_default. Don't
6394 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6395 Don't set frameless_function_invocation. Don't set
6396 deprecated_register_bytes, deprecated_register_size,
6397 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6398 * i386-linux-tdep.c: Fix formatting in some comments.
6399 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6400 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6401 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6402 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6403 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6404 redundant parentheses.
6405 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6406 (i386_linux_sigcontext_addr): Use it. Rewrite.
6407 (find_minsym_and_objfile): Change name of second argument.
6408 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6409 changed. Use frame_pc_unwind instead of
6410 DEPRECATED_SAVED_PC_AFTER_CALL.
6411 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6412 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6413 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6414 unwinder.
6415 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6416 "dummy-frame.h".
6417 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6418 (_initialize_i386_cygwin_tdep): New prototype.
6419 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6420 deprecated_frame_chain_valid.
6421 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6422 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6423 Rely on the SVR4 defaults.
6424 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6425 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6426
c89b70f1
AC
64272003-05-30 Andrew Cagney <cagney@redhat.com>
6428
6429 * infcall.c (call_function_by_hand): Always call
6430 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6431
85b32d22
RH
64322003-05-30 Richard Henderson <rth@redhat.com>
6433
c89b70f1
AC
6434 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6435 increment.
85b32d22 6436
bfe51b1e
JB
64372003-05-29 Jim Blandy <jimb@redhat.com>
6438
6439 Use gdbarch methods for solib stuff on PowerPC Linux.
6440 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6441 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6442 show through.
6443 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6444 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6445 giving the same effect as the #definitions above.
6446
1abf022c
AF
64472003-05-29 Adam Fedor <fedor@gnu.org>
6448
6449 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6450 (find_implementation_from_class): Replace it with the standard
6451 case i.e. do nothing.
6452
d2427a71
RH
64532003-05-29 Richard Henderson <rth@redhat.com>
6454
6455 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6456 (alpha_linux_sigtramp_offset): Use it. Make static.
6457 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6458 update for new frame model.
6459 * alpha-mdebug-tdep.c: New file.
6460 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6461 (alpha_osf1_init_abi): Install it.
6462 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6463 (linked_proc_desc_table): Remove.
6464 (alpha_frame_past_sigtramp_frame): Remove.
6465 (alpha_dynamic_sigtramp_offset): Remove.
6466 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6467 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6468 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6469 (push_sigtramp_desc): Remove.
6470 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6471 (alpha_cannot_store_register): Likewise.
6472 (alpha_sigcontext_addr): Remove.
6473 (alpha_find_saved_regs): Remove.
6474 (alpha_frame_init_saved_regs): Remove.
6475 (alpha_init_frame_pc_first): Remove.
6476 (read_next_frame_reg): Remove.
6477 (alpha_frame_saved_pc): Remove.
6478 (alpha_saved_pc_after_call): Remove.
6479 (temp_proc_desc, temp_saved_regs): Remove.
6480 (alpha_about_to_return): Remove.
6481 (cached_proc_desc): Remove.
6482 (alpha_frame_chain): Remove.
6483 (alpha_print_extra_frame_info): Remove.
6484 (alpha_init_extra_frame_info): Remove.
6485 (alpha_frame_locals_address): Remove.
6486 (alpha_frame_args_address): Remove.
6487 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6488 (alpha_push_dummy_frame): Remove.
6489 (alpha_pop_frame): Remove.
6490 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6491 (alpha_read_insn): New.
6492 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6493 for different insn encodings.
6494 (alpha_in_lenient_prologue): Remove.
6495 (struct alpha_sigtramp_unwind_cache): New.
6496 (alpha_sigtramp_frame_unwind_cache): New.
6497 (alpha_sigtramp_register_address): New.
6498 (alpha_sigtramp_frame_this_id): New.
6499 (alpha_sigtramp_frame_prev_register): New.
6500 (alpha_sigtramp_frame_unwind): New.
6501 (alpha_sigtramp_frame_p): New.
6502 (struct alpha_heuristic_unwind_cache): New.
6503 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6504 don't count nop insns that occur between functions.
6505 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6506 heuristic_proc_desc, but without the mdebug wrapping.
6507 (alpha_heuristic_frame_this_id): New.
6508 (alpha_heuristic_frame_prev_register): New.
6509 (alpha_heuristic_frame_unwind): New.
6510 (alpha_heuristic_frame_p): New.
6511 (alpha_heuristic_frame_base_address): New.
6512 (alpha_heuristic_frame_base): New.
6513 (alpha_unwind_dummy_id): New.
6514 (alpha_unwind_pc): New.
6515 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6516 frame related deprecated initializations; install replacements.
6517 (alpha_dump_tdep): Remove.
6518 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6519 (alpha_read_insn, alpha_after_prologue,
6520 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6521 alpha_heuristic_frame_prev_register,
6522 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6523 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6524 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6525 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6526
93ec1121
AC
65272003-05-29 Andrew Cagney <cagney@redhat.com>
6528
6529 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6530 dependant on the availability of ASSERT_FUNCTION.
6531 (ASSERT_FUNCTION): Do not define when there is no function name.
6532
98f08d3d
KB
65332003-05-29 Kevin Buettner <kevinb@redhat.com>
6534
6535 From Jimi X <jimix@watson.ibm.com>:
6536 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6537
0897f59b
JB
65382003-05-28 Jim Blandy <jimb@redhat.com>
6539
6540 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6541 argument to ptrace to int; the system headers should give it the
6542 right type, and pointers don't fit in ints on powerpc64-*-*.
6543
14898363
L
65442003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6545
6546 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6547 DW_TAG_catch_block.
6548
a7a48797
EZ
65492003-05-26 Elena Zannoni <ezannoni@redhat.com>
6550
6551 * stabsread.c (dbx_lookup_type): Make static.
6552 (read_type): Ditto.
6553 (add_undefined_type): Ditto.
6554 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6555 not export.
6556
f5479e9c
EZ
65572003-05-26 Elena Zannoni <ezannoni@redhat.com>
6558
6559 * hpread.c (hpread_has_name): Make static.
6560 (hpread_psymtab_to_symtab): Ditto.
6561 (file_exists): Ditto.
6562 (hpread_call_pxdb): Ditto.
6563 (hpread_pxdb_needed): Ditto.
6564 (hpread_quick_traverse): Ditto.
6565 (hpread_get_header): Ditto.
6566 (hpread_get_lntt): Ditto.
6567 (hpread_get_slt): Ditto.
6568 (class_of): Ditto.
6569
eb2e12d7
AS
65702003-05-25 Andreas Schwab <schwab@suse.de>
6571
78bf922a
AS
6572 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6573 stack_align and deprecated_extra_stack_alignment_needed.
6574 (m68k_stack_align): Delete.
6575
eb2e12d7
AS
6576 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6577 (m68k_register_virtual_size): Likewise.
6578 (altos_skip_prologue): Remove obsolete function.
6579 (isi_frame_num_args): Likewise.
6580 (news_frame_num_args): Likewise.
6581 (m68k_fix_call_dummy): Make static.
6582 (m68k_push_dummy_frame): Likewise.
6583 (m68k_pop_frame): Likewise.
6584 (m68k_skip_prologue): Likewise.
6585 (m68k_frame_init_saved_regs): Likewise.
6586 (m68k_saved_pc_after_call): Likewise.
6587 (m68k_get_longjmp_target): Make multi-arch.
6588 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6589 structure. Register m68k_get_longjmp_target if enabled.
6590 * m68k-tdep.h (struct gdbarch_tdep): Define.
6591 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6592
6593 * Makefile.in (config.status): Also depend on configure.tgt
6594 and configure.host.
6595 (m68klinux-tdep.o): Update dependencies.
6596 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6597 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6598 (M68K_LINUX_JB_PC): Define.
6599 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6600 and take additional parameter.
6601 (m68k_linux_sigtramp_saved_pc): Update.
6602 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6603 m68k_linux_pc_in_sigtramp, in_plt_section,
6604 find_solib_trampoline_target.
6605 * config/m68k/tm-linux.h: Don't include any tm headers.
6606 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6607 (JB_ELEMENT_SIZE): Likewise.
6608 (JB_PC): Likewise.
6609 (GET_LONGJMP_TARGET): Likewise.
6610 (IN_SIGTRAMP): Likewise.
6611 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6612
eb2c22dc
MK
66132003-05-25 Mark Kettenis <kettenis@gnu.org>
6614
6615 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6616 (sparc32_push_arguments): Re-implement by calling
6617 sparc32_do_push_arguments.
6618
44b7b84e
MK
66192003-05-25 Mark Kettenis <kettenis@gnu.org>
6620
6621 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6622 SPARC_O1_REGNUM): New defines.
6623 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6624 (sparc32_store_return_value): New function.
6625 (sparc_extract_struct_value_address): Rewrite to operate on a
6626 regcache.
6627 (sparc_gdbarch_init): Don't set
6628 deprecated_extract_struct_value_address. Set
6629 extract_struct_value_address instead. Don't set
6630 deprecated_extract_return_value and deprecated_store_return_value
6631 for 32-bit targets. Set extract_return_value and
6632 store_return_value instead.
6633 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6634 DEPRECTAED_EXTRACT_RETURN_VALUE,
6635 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6636 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6637 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6638 (sparc_store_return_value): Remove prototype.
6639 (sparc32_store_return_value): New prototype.
6640 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6641 Adjust prototypes.
6642
f6ad61e3
MK
66432003-05-24 Mark Kettenis <kettenis@gnu.org>
6644
6645 * sparcnbsd-tdep.c: Include "gdb_string.h".
6646
b276f1bb
AC
66472003-05-23 Andrew Cagney <cagney@redhat.com>
6648
6649 * p-valprint.c (pascal_val_print): Replace extract_address with
6650 the inline equivalent extract_unsigned_integer.
6651 * jv-valprint.c (java_value_print): Ditto.
6652 * ada-valprint.c (ada_val_print_1): Ditto.
6653 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6654
e76c5fcc
TR
66552003-05-23 Theodore A. Roth <troth@openavr.org>
6656
6657 * blockframe.c (frameless_look_for_prologue): Remove unused
6658 after_prologue variable.
6659
2cdd89cb
MK
66602003-05-23 Mark Kettenis <kettenis@gnu.org>
6661
6662 * blockframe.c (get_pc_function_start): Rewrite to avoid
6663 asignments in if-statements.
6664
182d43bc
EZ
66652003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6666
6667 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6668 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6669 files, don't relocate absolute symbols (and do use mst_abs).
6670
e8f3fcdd
AC
66712003-05-23 Andrew Cagney <cagney@redhat.com>
6672
6673 * objc-lang.c: Include "gdb_assert.h".
6674 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6675 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6676 (gdb_check, gdb_check_fatal): Delete functions.
6677 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6678 gdb_assert.
6679 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6680 * Makefile.in (objc-lang.o): Update dependencies.
6681
3c23e6fb
ILT
66822003-05-22 Ian Lance Taylor <ian@airs.com>
6683
6684 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6685 with fprintf_filtered, not fprintf_unfiltered.
6686
af1342ab
AC
66872003-05-22 Andrew Cagney <cagney@redhat.com>
6688
6689 * stack.c (frame_info): Inline extract_address, replacing it with
6690 extract_unsigned_integer.
6691 * findvar.c (unsigned_pointer_to_address): Ditto.
6692 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6693 * dwarf2expr.c (dwarf2_read_address): Ditto.
6694 * frame.c (frame_pc_unwind): Update comment.
6695 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6696
47e242ec
JJ
66972003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6698
6699 * infptrace.c (detach): Call print_sys_errmsg rather than
6700 perror_with_name to issue warning message when errno is non-zero
6701 after calling ptrace detach.
6702
e2ac8128
JB
67032003-05-21 J. Brobecker <brobecker@gnat.com>
6704
6705 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6706 macro definitions from here...
6707 * hppa-tdep.c: ...to there.
6708
92b3541e
KB
67092003-05-20 Kevin Buettner <kevinb@redhat.com>
6710
6711 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6712 register_ptrace_addr(). Fix all callers.
6713
55809acb
AS
67142003-05-21 Andreas Schwab <schwab@suse.de>
6715
6716 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6717 dependencies.
6718 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6719 end.
6720 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6721 (_initialize_m68k_linux_tdep): New function.
6722 (m68k_linux_frame_saved_pc): Make static.
6723 (m68k_linux_extract_return_value): Likewise.
6724 (m68k_linux_store_return_value): Likewise.
6725 (m68k_linux_extract_struct_value_address): Likewise.
6726 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6727 Remove.
6728 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6729 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6730 (DEPRECATED_FRAME_SAVED_PC): Remove.
6731
0fbc10f7
KW
67322003-05-20 Kris Warkentin <kewarken@qnx.com>
6733
6734 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6735 regset numbering rather than our own.
6736
58da2eb2
DC
67372003-05-19 David Carlton <carlton@bactrian.org>
6738
6739 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6740
1fcb5155
DC
67412003-05-19 David Carlton <carlton@bactrian.org>
6742
6743 Partial fix for PR c++/827.
6744 * cp-support.h: Include symtab.h.
6745 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6746 * cp-namespace.c: Update contributors.
6747 (cp_lookup_symbol_nonlocal): New.
6748 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6749 (lookup_symbol_file): Ditto.
6750 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6751 * block.h: Declare block_scope, block_using, block_global_block.
6752 * block.c (block_scope): New.
6753 (block_using, block_global_block): Ditto.
6754 * Makefile.in (cp_support_h): Depend on symtab_h.
6755 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6756
5f9a71c3
DC
67572003-05-19 David Carlton <carlton@bactrian.org>
6758
6759 * language.h (struct language_defn): Add 'la_value_of_this'
6760 and 'la_lookup_symbol_nonlocal' members.
6761 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6762 lookup_symbol_static, lookup_symbol_global,
6763 lookup_symbol_aux_block.
6764 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6765 if we should search fields of this and how to do static/global
6766 lookup.
6767 (lookup_symbol_aux_block): Make extern.
6768 (basic_lookup_symbol_nonlocal): New.
6769 (lookup_symbol_static, lookup_symbol_global): Ditto.
6770 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6771 'la_lookup_symbol_nonlocal' members.
6772 * c-lang.c (c_language_defn, cplus_language_defn)
6773 (asm_language_defn, minimal_language_defn): Ditto.
6774 * jv-lang.c (java_language_defn): Ditto.
6775 * language.c (unknown_language_defn, auto_language_defn)
6776 (local_language_defn): Ditto.
6777 * m2-lang.c (m2_language_defn): Ditto.
6778 * objc-lang.c (objc_language_defn): Ditto.
6779 * scm-lang.c (scm_language_defn): Ditto.
6780 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6781 * p-lang.c (pascal_language_defn): Ditto for both.
6782 * Makefile.in (f-lang.o): Depend on value_h.
6783 (p-lang.o): Ditto.
6784
89a9d1b1
DC
67852003-05-19 David Carlton <carlton@bactrian.org>
6786
6787 * block.h: Declare block_static_block.
6788 * block.c (block_static_block): New.
6789 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6790 lookup_symbol_aux_local, calling block_static_block instead.
6791 (lookup_symbol_aux_local): Delete 'static_block' argument.
6792
eed3f8ab
DC
67932003-05-19 David Carlton <carlton@bactrian.org>
6794
6795 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6796
a09d8bda
ML
67972003-05-19 Michal Ludvig <mludvig@suse.cz>
6798
6799 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6800 register numbers mapping.
6801
69636828
AF
68022003-05-18 Adam Fedor <fedor@gnu.org>
6803
6804 * symtab.c (completion_list_objc_symbol): New function.
6805 (make_symbol_completion_list): Use it to add ObjC symbols
6806 when looking though the list.
6807 (language_search_unquoted_string): New function.
6808 (make_file_symbol_completion_list): Use it.
6809
55baeb84
AS
68102003-05-18 Andreas Schwab <schwab@suse.de>
6811
d0b45d99
AS
6812 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6813 dependencies.
6814 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6815 as m68k_linux_extract_return_value.
6816 (DEPRECATED_STORE_RETURN_VALUE): Define as
6817 m68k_linux_store_return_value.
6818 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6819 m68k_linux_extract_struct_value_address.
6820 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6821 get_next_frame, get_frame_base, get_frame_pc.
6822 (m68k_linux_frame_saved_pc): Use get_frame_base.
6823 (m68k_linux_extract_return_value): New function.
6824 (m68k_linux_store_return_value): New function.
6825 (m68k_linux_extract_struct_value_address): New function.
6826 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6827
55baeb84
AS
6828 * c-exp.y (typebase): Remove duplicate occurence of
6829 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6830 of lookup_signed_typename.
55baeb84 6831
b6b08ebf
MK
68322003-05-18 Mark Kettenis <kettenis@gnu.org>
6833
6834 * dwarf2loc.c (find_location_expression): Change type of second
6835 argument to `size_t *'.
6836 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6837 for size variable.
6838
5ad1c190
DC
68392003-05-18 David Carlton <carlton@bactrian.org>
6840
6841 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6842 'linkage_name'. Add comment.
6843 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6844 'linkage_name'.
6845 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6846 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6847 (lookup_block_symbol): Ditto.
6848
b8b527c5
AC
68492003-05-16 Andrew Cagney <cagney@redhat.com>
6850
6851 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6852 * gdbarch.h, gdbarch.c: Re-generate.
6853 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6854 * TODO (REGISTER_BYTES): Delete reference.
6855 * alpha-tdep.c (alpha_gdbarch_init): Update.
6856 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6857 * x86-64-tdep.c (x86_64_init_abi): Update.
6858 * vax-tdep.c (vax_gdbarch_init): Update.
6859 * v850-tdep.c (v850_gdbarch_init): Update.
6860 * sparc-tdep.c (sparc_gdbarch_init): Update.
6861 * sh-tdep.c (sh_gdbarch_init): Update.
6862 * s390-tdep.c (s390_gdbarch_init): Update.
6863 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6864 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6865 (ns32k_gdbarch_init_32382): Update.
6866 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6867 * mcore-tdep.c (mcore_gdbarch_init): Update.
6868 * m68k-tdep.c (m68k_gdbarch_init): Update.
6869 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6870 * ia64-tdep.c (ia64_gdbarch_init): Update.
6871 * i386-tdep.c (i386_gdbarch_init): Update.
6872 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6873 * hppa-tdep.c (hppa_gdbarch_init): Update.
6874 * h8300-tdep.c (h8300_gdbarch_init): Update.
6875 * frv-tdep.c (frv_gdbarch_init): Update.
6876 * cris-tdep.c (cris_gdbarch_init): Update.
6877 * avr-tdep.c (avr_gdbarch_init): Update.
6878 * arm-tdep.c (arm_gdbarch_init): Update.
6879 * sparc-tdep.c (sparc_pop_frame): Update.
6880 * rs6000-tdep.c (rs6000_pop_frame): Update.
6881 * remote.c (init_remote_state): Update.
6882 (remote_prepare_to_store): Update.
6883 * remote-vx.c (vx_prepare_to_store): Update.
6884 * remote-sds.c (sds_fetch_registers): Update.
6885 (sds_prepare_to_store): Update.
6886 * remote-array.c: Update.
6887 * regcache.c (init_legacy_regcache_descr): Update.
6888 (init_regcache_descr): Update.
6889 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6890 (mips_o64_extract_return_value): Update.
6891 * irix5-nat.c (fetch_core_registers): Update.
6892 * irix4-nat.c (fetch_core_registers): Update.
6893 * i386-tdep.h: Update.
6894 * hppa-tdep.c (pa_do_registers_info): Update.
6895 (pa_do_strcat_registers_info): Update.
6896 * cris-tdep.c (cris_register_bytes_ok): Update.
6897 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6898 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6899 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6900 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6901 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6902 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6903 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6904 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6905 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6906 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6907 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6908 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6909 (REGISTER_BYTES_OK): Update.
6910 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6911 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6912
ee2842e2
ILT
69132003-05-16 Ian Lance Taylor <ian@airs.com>
6914
6915 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6916 (vax_print_insn, print_insn_arg): Remove static functions.
6917 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6918 print_insn_vax from opcodes library.
6919 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6920
973177d3
AC
69212003-05-15 Andrew Cagney <cagney@redhat.com>
6922
aaab4dba
AC
6923 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6924 * target.h (memory_breakpoint_from_pc): Delete declaration.
6925 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6926 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6927 * monitor.c (monitor_insert_breakpoint): Use
6928 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6929 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6930 * gdbarch.h, gdbarch.c: Re-generate.
6931 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6932 (sparc_gdbarch_init): Set breakpoint_from_pc to
6933 sparc_breakpoint_from_pc.
6934 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6935 (BREAKPOINT_FROM_PC): Define.
6936 (sparc_breakpoint_from_pc): Declare.
6937 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6938 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6939 (BREAKPOINT_FROM_PC): Define.
6940 (BREAKPOINT): Delete macro.
6941 * target.h: Update comment.
6942 * s390-tdep.c (s390_gdbarch_init): Update comments.
6943 * remote.c: Update comments.
6944 * remote-mips.c: Update comments.
6945 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6946 * mem-break.c: Update comment.
6947 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6948 (ia64_memory_insert_breakpoint): Update.
6949 * config/sparc/tm-sparc.h: Update comment.
6950 * config/pa/tm-hppa64.h: Update comment.
6951 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6952 (rs6000_breakpoint_from_pc): Update.
6953 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6954 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6955 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6956 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6957 (mips_breakpoint_from_pc): Update.
6958 (mips_dump_tdep): Update.
6959
e06963ff
AC
6960 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6961 * minsyms.c (lookup_minimal_symbol): Inline
6962 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6963
973177d3
AC
6964 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6965 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6966 * p-lang.c (pascal_printstr): Ditto.
6967 * objc-lang.c (objc_printstr): Ditto.
6968 * m2-lang.c (m2_printstr): Ditto.
6969 * jv-valprint.c (java_print_value_fields): Ditto.
6970 * f-lang.c (f_printstr): Ditto.
6971 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6972 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6973 for repeat_count_threshold.
6974 * Makefile.in (cp-valprint.o): Update dependencies.
6975
5ea2bd7f 69762003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6977
5ea2bd7f
JJ
6978 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6979 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6980 they start with mov r2,r12. Support skipping over indirect stores
6981 of the input registers. Upon hitting a non-nop branch instruction
6982 or predicated instruction, bail out by setting lim_pc to the current
6983 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
6984 beyond our calculated value and we have trust_limit set,
6985 use the lim_pc value.
6986
cc8c88f3
AC
69872003-05-15 Andrew Cagney <cagney@redhat.com>
6988
6989 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6990 generic_find_dummy_frame.
6991 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6992 (deprecated_generic_find_dummy_frame): Update.
6993 (deprecated_read_register_dummy): Update.
6994 * frame.c (deprecated_generic_get_saved_register): Update.
6995
909cd28e
TR
69962003-05-15 Theodore A. Roth <troth@openavr.org>
6997
6998 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6999 (avr_gdbarch_init): Set breakpoint_from_pc method.
7000
b923b08d
AC
70012003-05-15 Andrew Cagney <cagney@redhat.com>
7002
7003 * regcache.c (build_regcache): Set deprecated_register_valid
7004 directly.
7005 (deprecated_grub_regcache_for_register_valid): Delete function.
7006 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7007 declaration.
7008
ae2f03ac 70092003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7010
7011 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7012 * symtab.c (lookup_symbol_aux): Delete calls to
7013 lookup_symbol_aux_minsyms.
7014 (lookup_symbol_aux_minsyms): Comment out function and
7015 prototype. Delete lookup by mangled name.
ae2f03ac 7016
18ec9831
KB
70172003-05-14 Kevin Buettner <kevinb@redhat.com>
7018
7019 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7020 correctly indicate an empty stack and ``stack_allocated'' to the
7021 indicate the number of elements initially allocated.
7022 (dwarf_expr_grow_stack): Simplify method for computing new
7023 stack size. Don't loop infinitely if ``stack_len'' is zero.
7024 (execute_stack_op): Move ``ctx->in_reg'' initialization
7025 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7026 be used in conjuction with DW_OP_piece. Revise error message
7027 accordingly.
7028
de18ac1f
TR
70292003-05-14 Theodore A. Roth <troth@openavr.org>
7030
7031 * MAINTAINERS: Update my email address.
7032 * avr-tdep.c: Ditto.
7033
176620f1
EZ
70342003-05-14 Elena Zannoni <ezannoni@redhat.com>
7035
7036 * symtab.h (enum domain_enum): Rename from namespace_enum.
7037 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7038 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7039 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7040 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7041 TYPES_NAMESPACE, METHODS_NAMESPACE.
7042 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7043 (struct symbol, struct partial_symbol): Rename field
7044 'namespace_enum namespace' to 'domain_enum domain'.
7045 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7046 Delete old define kludge for namespace.
7047
7048 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7049 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7050 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7051 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7052 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7053 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7054 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7055 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7056 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7057 occurrences of the above.
7058
b7f31508
ILT
70592003-05-14 Ian Lance Taylor <ian@airs.com>
7060
7061 * Makefile.in (install-only): Use $(SHELL) when running
7062 mkinstalldirs.
7063
2fdbdd39
ILT
70642003-05-13 Ian Lance Taylor <ian@airs.com>
7065
a208d82c
ILT
7066 * MAINTAINERS (write after approval): Add myself.
7067
2fdbdd39
ILT
7068 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7069 second and third arguments.
7070 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7071 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7072
fbd9dcd3
AC
70732003-05-13 Andrew Cagney <cagney@redhat.com>
7074
7075 * defs.h (store_address): Delete declaration.
7076 findvar.c (store_address): Delete function.
7077 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7078 store_unsigned_integer.
7079 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7080 * v850-tdep.c (v850_push_arguments): Ditto.
7081 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7082 * sh-tdep.c (sh64_get_saved_register): Ditto.
7083 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7084 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7085 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7086 (mips_get_saved_register): Ditto.
7087 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7088 (find_func_descr, ia64_push_arguments): Ditto.
7089 * i386-tdep.c (i386_push_arguments): Ditto.
7090 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7091 * frv-tdep.c (frv_push_arguments): Ditto.
7092 * frame.c (legacy_saved_regs_prev_register): Ditto.
7093 (deprecated_generic_get_saved_register): Ditto.
7094 * findvar.c (unsigned_address_to_pointer): Ditto.
7095 * dwarf2read.c (dwarf2_const_value): Ditto.
7096 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7097 * alpha-tdep.c (alpha_push_arguments): Ditto.
7098
6760f9e6
JB
70992003-05-12 J. Brobecker <brobecker@gnat.com>
7100
7101 * NEWS: Mention that the hppa-hpux port has been partially
7102 multiarched (32bit ABIT only, so far).
7103
30e221b4
AC
71042003-05-11 Andrew Cagney <cagney@redhat.com>
7105
7106 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7107 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7108 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7109 sim/testsuite/sim/arm/misaligned2.ms, and
7110 sim/testsuite/sim/arm/misaligned3.ms.
7111 * disasm.h (struct ui_file): Add opaque struct declaration.
7112 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7113 * frame.h (struct ui_file): Ditto.
7114
dea7f9ba
MK
71152003-05-11 Mark Kettenis <kettenis@gnu.org>
7116
7117 * value.h: Pretty print.
7118
01986c48
MK
71192003-05-10 Mark Kettenis <kettenis@gnu.org>
7120
7121 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7122
123a958e
AC
71232003-05-08 Andrew Cagney <cagney@redhat.com>
7124
7125 * regcache.h (max_register_size): Delete declaration.
7126 * regcache.c (max_register_size): Delete function.
7127 (struct regcache_descr): Delete field "max_register_size".
7128 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7129 registers fit in MAX_REGISTER_SIZE.
7130 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7131 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7132 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7133 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7134 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7135 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7136 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7137 * dve3900-rom.c, hppa-tdep.c: Ditto.
7138
eb294659
DC
71392003-05-08 David Carlton <carlton@math.stanford.edu>
7140
7141 * valops.c (push_word): Fix typo.
7142
d9d9c31f
AC
71432003-05-08 Andrew Cagney <cagney@redhat.com>
7144
7145 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7146 * gdbarch.h: Re-generate.
7147 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7148 (legacy_max_register_raw_size): Delete declaration.
7149 * regcache.c (legacy_max_register_raw_size): Delete function.
7150 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7151 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7152 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7153 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7154 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7155 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7156 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7157 * findvar.c, dwarf2cfi.c: Ditto.
7158
22540ece
AC
71592003-05-08 Andrew Cagney <cagney@redhat.com>
7160
7161 * mips-tdep.c (read_signed_register): New function, moved to here
7162 from "regcache.c".
7163 (read_signed_register_pid): Ditto.
7164 * regcache.c (read_signed_register_pid): Delete function, moved to
7165 "mips-tdep.c".
7166 (read_signed_register): Ditto.
7167 * regcache.h (read_signed_register): Delete declaration.
7168 (read_signed_register_pid): Delete declaration.
7169
0c92afe8
AC
71702003-05-08 Andrew Cagney <cagney@redhat.com>
7171
7172 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7173 * gdbarch.h: Re-generate.
7174 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7175 (legacy_max_register_virtual_size): Delete declaration.
7176 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7177 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7178 * tracepoint.c (memrange_sortmerge): Ditto.
7179 * sparc-tdep.c (sparc_print_registers): Ditto.
7180 * regcache.c (legacy_max_register_virtual_size): Delete function.
7181
6037b830
JB
71822002-05-08 J. Brobecker <brobecker@gnat.com>
7183
7184 * fork-child.c (escape_bang_in_quoted_argument): New function.
7185 (fork_inferior): Escape '!' characters in quoted arguments
7186 only when needed.
7187
5d62c8b1
JB
71882003-05-08 J. Brobecker <brobecker@gnat.com>
7189
7190 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7191 the language of the CU is not currently supported by GDB.
7192
20a0e81d
JB
71932003-05-08 J. Brobecker <brobecker@gnat.com>
7194
7195 * defs.h (language): Add language_minimal enum value.
7196 * c-lang.c (minimal_language_defn): New language definition.
7197 (_initialize_c_language): Add the new minimal language to the list
7198 of languages known to GDB.
7199
710ee10a
KB
72002003-05-08 Kevin Buettner <kevinb@redhat.com>
7201
7202 * frame.c (get_frame_type): Don't attempt to lazily initialize
7203 frame's unwinder for legacy frames.
7204
1750fa04
AC
72052003-05-07 Andrew Cagney <cagney@redhat.com>
7206
7207 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7208 and "regcache" parameters.
7209 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7210
ddf9f258 72112003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7212
7213 * dwarf2read.c (dwarf_decode_lines): Only use output of
7214 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7215 the current address.
7216
87767c29
AC
72172003-05-07 Andrew Cagney <cagney@redhat.com>
7218
7219 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7220 code.
7221
5e7b2f39
JB
72222003-05-07 Jim Blandy <jimb@redhat.com>
7223
7224 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7225 'maint info symtabs' and 'maint info psymtabs'.
7226 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7227 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7228 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7229 Declarations updated.
7230 * maint.c (maintenance_list_command): Delete.
7231 (_initialize_maint_cmds): Update calls to add_cmd.
7232 * gdbcmd.h (maintenancelistlist): Delete declaration.
7233 * cli/cli-cmds.c (maintenancelistlist): Delete.
7234 (init_cmd_lists): Don't initialize it.
7235 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7236
f6684c31
AC
72372003-05-07 Andrew Cagney <cagney@redhat.com>
7238
7239 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7240 "regcache".
7241 (d10v_print_registers_info): Update.
7242 (d10v_dmap_register, d10v_imap_register): Delete functions.
7243 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7244 and "imap_register".
7245 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7246 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7247 * arch-utils.c (generic_remote_translate_xfer_address): Add
7248 "regcache" and "gdbarch" parameters.
7249 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7250 parameter. Change class to multi-arch.
7251 * gdbarch.h, gdbarch.c: Re-generate.
7252 * remote.c (remote_xfer_memory): Use
7253 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7254
e4846b08
JJ
72552003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7256
7257 * infrun.c (prev_pc): Move declaration ahead of proceed().
7258 (proceed): Refresh prev_pc value before resuming.
7259 (stop_stepping): Remove code to refresh prev_pc.
7260
6b71b8ac
KW
72612003-05-06 Kris Warkentin <kewarken@qnx.com>
7262
7263 * nto-tdep.c: Removed stray comment.
7264
47979a4b
KW
72652003-05-06 Kris Warkentin <kewarken@qnx.com>
7266
7267 * i386-nto-tdep.c: Fix old K&R function definitions.
7268 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7269 Also change add_show_from_set() call to add_setshow_cmd().
7270 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7271
00905d52
AC
72722003-05-05 Andrew Cagney <cagney@redhat.com>
7273
7274 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7275 (fprint_dummy_frames): New function.
7276 (maintenance_print_dummy_frames): New function.
7277 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7278 * frame.c (fprint_frame_id): Make global.
7279 * frame.h (fprint_frame_id): Declare.
7280 * Makefile.in (dummy-frame.o): Update dependencies.
7281
b1e29e33
AC
72822003-05-05 Andrew Cagney <cagney@redhat.com>
7283
7284 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7285 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7286 SIZEOF_CALL_DUMMY_WORDS.
7287 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7288 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7289 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7290 CALL_DUMMY_BREAKPOINT_OFFSET.
7291 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7292 CALL_DUMMY_START_OFFSET.
7293 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7294 * gdbarch.h, gdbarch.c: Re-generate.
7295 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7296 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7297 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7298 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7299 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7300 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7301 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7302 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7303 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7304 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7305 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7306 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7307 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7308 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7309 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7310
73112003-05-05 Kris Warkentin <kewarken@qnx.com>
7312
7313 * configure.tgt: Add i[3456]86-*-nto*.
7314 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7315 * nto-tdep.c: New file. Neutrino target support routines.
7316 * nto-tdep.h: New file. Neutrino target header.
7317 * config/tm-qnxnto.h: New file.
7318 * config/i386/i386nto.mt: New file.
7319 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7320
0ce3d317
AC
73212003-05-04 Andrew Cagney <cagney@redhat.com>
7322
7323 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7324 (load_infrun_state): Ditto.
7325 (struct thread_info): Drop "prev_func_name" field.
7326 * thread.c (load_infrun_state): Update.
7327 (save_infrun_state): Update.
7328 * infrun.c (prev_func_name): Delete variable.
7329 (init_wait_for_inferior): Do not clear prev_func_name.
7330 (stop_stepping, keep_going, context_switch): Do not swap
7331 prev_func_name.
7332 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7333 instead of PC_IN_SIGTRAMP.
7334
46654a5b
AC
73352003-05-04 Andrew Cagney <cagney@redhat.com>
7336
7337 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7338 REGISTER_BYTE with register_offset_hack.
7339 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7340 that REGISTER_BYTE is consistent with the regcache.
7341 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7342 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7343
14b08c1b
MK
73442003-05-04 Mark Kettenis <kettenis@gnu.org>
7345
04c8243f
MK
7346 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7347 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7348
14b08c1b
MK
7349 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7350
c7a11e01
JB
73512003-05-03 J. Brobecker <brobecker@gnat.com>
7352
7353 From Thierry Schneider <tpschneider1@yahoo.com>
7354 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7355 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7356 (mi-cmd-symbol.o): Add rule.
7357
7043d8dc
AC
73582003-05-03 Andrew Cagney <cagney@redhat.com>
7359
7360 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7361 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7362 * gdbarch.h, gdbarch.c: Re-generate.
7363 * d10v-tdep.c (d10v_push_dummy_code): New function.
7364 (d10v_gdbarch_init): Set push_dummy_code.
7365 * infcall.c (legacy_push_dummy_code): New function.
7366 (generic_push_dummy_code): New function.
7367 (push_dummy_code): New function.
7368 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7369 instead of dummy_addr, to push_dummy_call. Move call to
7370 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7371 switch.
7372 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7373
92bf2b80
AC
73742003-05-03 Andrew Cagney <cagney@redhat.com>
7375
7376 * disasm.h (print_insn): Declare.
7377 * disasm.c (init_gdb_disassemble_info): New function.
7378 (gdb_disassembly): Call init_gdb_disassemble_info.
7379 (gdb_print_insn): New function.
7380 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7381 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7382 * mcore-tdep.c: Include "disasm.h"
7383 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7384 * d10v-tdep.c: Include "disasm.h".
7385 (display_trace): Call gdb_print_insn, instead of print_insn.
7386 (print_insn): Delete function.
7387 * printcmd.c: Include "disasm.h".
7388 (print_insn): Delete function.
7389 (print_formatted): Call gdb_print_insn, instead of print_insn.
7390 * Makefile.in (printcmd.o): Update dependencies.
7391 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7392
27d94c49
AC
73932003-05-02 Andrew Cagney <cagney@redhat.com>
7394
82de1e5b
AC
7395 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7396 PC_REGNUM, re-indent.
7397 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7398 PC_REGNUM isn't set.
7399
27d94c49
AC
7400 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7401 * gdbarch.h, gdbarch.c: Re-generate.
7402 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7403 register_virtual_size, pc_regnum, or register_bytes.
7404 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7405 (d10v_register_type): Use D10V_PC_REGNUM.
7406 (d10v_print_registers_info, d10v_read_pc): Ditto.
7407 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7408 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7409
a9c0dc7f
DC
74102003-05-02 David Carlton <carlton@bactrian.org>
7411
7412 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7413 the name with mstrsave.
7414
e33d66ec
EZ
74152003-05-02 Elena Zannoni <ezannoni@redhat.com>
7416
7417 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7418 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7419 (host_charset_name, target_charset_name): New vars for use by
7420 set/show commands.
7421 (host_charset_enum, target_charset_enum): New enums for set/show
7422 commands.
7423 (set_charset_sfunc, set_host_charset_sfunc,
7424 set_target_charset_sfunc): New functions.
7425 (set_host_charset, set_target_charset): Make static.
7426 (list_charsets, set_host_charset_command,
7427 set_target_charset_command): Delete functions.
7428 (show_charset_command): Rewrite as....
7429 (show_charset): Hook this up with the set/show command mechanism.
7430 (_initialize_charset): Change names of charsets to match the
7431 set/show enums. Use host_charset_name and target_charset_name.
7432 Use set/show mechanism for charset, host-charset, target-charset
7433 commands. Do not make 'show host-charset' and 'show
7434 target-charset' be aliases of 'show charset'.
7435
7436 * charset.h (set_host_charset, set_target_charset): Don't export,
7437 they are not used outside the file.
7438
2b6fd0d8
AC
74392003-05-01 Andrew Cagney <cagney@redhat.com>
7440
7441 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7442 (gdb_disassembly): Make "di" non static, always initialize and
7443 cleanup. Always use dis_asm_read_memory.
7444 (gdb_dis_asm_read_memory): Delete function.
7445
6ae2f580
AC
74462003-05-01 Andrew Cagney <cagney@redhat.com>
7447
7448 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7449 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7450
810ecf9f
AC
74512003-04-30 Andrew Cagney <cagney@redhat.com>
7452
7453 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7454 "tm_print_insn_info".
7455 (TARGET_PRINT_INSN_INFO): Delete macro.
7456 (dis_asm_read_memory): Delete function declaration.
7457 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7458 (tm_print_insn_info): Delete variable definition.
7459 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7460 * gdbarch.h, gdbarch.c: Re-generate.
7461 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7462 "deprecated_tm_print_insn_info".
7463 * mcore-tdep.c (mcore_dump_insn): Ditto.
7464 * mips-tdep.c (mips_gdbarch_init): Ditto.
7465 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7466 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7467 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7468 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7469 instead of TARGET_PRINT_INSN_INFO, add comment.
7470 * s390-tdep.c (s390_get_frame_info): Instead of
7471 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7472 (s390_check_function_end, s390_is_sigreturn): Ditto.
7473 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7474 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7475 * disasm.c: Include "gdbcore.h".
7476 (_initialize_disasm): New function, initialize
7477 "deprecated_tm_print_insn_info".
7478 (deprecated_tm_print_insn_info): New variable.
7479 (dis_asm_read_memory): Moved from "corefile.c", made static.
7480 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7481 * Makefile.in (disasm.o): Update dependencies.
7482
07020390
AC
74832003-04-30 Andrew Cagney <cagney@redhat.com>
7484
7485 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7486
a9fa03de
AF
74872003-04-29 Adam Fedor <fedor@gnu.org>
7488
7489 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7490 * infcall.c (find_function_addr): Make non-static.
7491 * infcall.h (find_function_addr): Declare.
7492 * Makefile.in (eval.o): Update dependencies.
7493
1bae87b9
AF
74942003-04-28 Adam Fedor <fedor@gnu.org>
7495
7496 * symtab.c (symbol_find_demangled_name): Check for and demangle
7497 ObjC symbols.
7498 (symbol_init_demangled_name): Init for language_objc as well.
7499
0ba6dca9
AC
75002003-04-28 Andrew Cagney <cagney@redhat.com>
7501
7502 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7503 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7504 * gdbarch.h, gdbarch.c: Re-generate.
7505 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7506 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7507 * inferior.h (deprecated_read_fp): Rename read_fp.
7508 (generic_target_read_fp): Delete declaration.
7509 * regcache.c (generic_target_read_fp): Delete function.
7510 (deprecated_read_fp): Replace read_fp, use
7511 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7512 * d10v-tdep.c (d10v_read_fp): Delete function.
7513 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7514
7515 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7516 deprecated_target_read_fp to generic_target_read_fp.
7517 * sh-tdep.c (sh_gdbarch_init): Ditto.
7518 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7519 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7520 * frv-tdep.c (frv_gdbarch_init): Ditto.
7521
7522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7523 deprecated_fp_regnum.
7524 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7525 * vax-tdep.c (vax_gdbarch_init): Ditto.
7526 * v850-tdep.c (v850_gdbarch_init): Ditto.
7527 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7528 * sh-tdep.c (sh_gdbarch_init): Ditto.
7529 * s390-tdep.c (s390_gdbarch_init): Ditto.
7530 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7531 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7532 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7533 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7535 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7536 * i386-tdep.c (i386_gdbarch_init): Ditto.
7537 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7538 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7539 * frv-tdep.c (frv_gdbarch_init): Ditto.
7540 * cris-tdep.c (cris_gdbarch_init): Ditto.
7541 * avr-tdep.c (avr_gdbarch_init): Ditto.
7542 * arm-tdep.c (arm_gdbarch_init): Ditto.
7543 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7544
7545 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7546 * v850-tdep.c (v850_gdbarch_init): Ditto.
7547 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7548 * sh-tdep.c (sh_gdbarch_init): Ditto.
7549 * s390-tdep.c (s390_gdbarch_init): Ditto.
7550 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7551 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7552 * mips-tdep.c (mips_gdbarch_init): Ditto.
7553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7554 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7555 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7556 * frv-tdep.c (frv_gdbarch_init): Ditto.
7557 * avr-tdep.c (avr_gdbarch_init): Ditto.
7558 * arm-tdep.c (arm_gdbarch_init): Ditto.
7559
7560 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7561 DEPRECATED_FP_REGNUM.
7562 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7563 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7564 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7565 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7566 (sparc32_register_virtual_type): Ditto.
7567 * sh-tdep.c (sh64_frame_chain): Ditto.
7568 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7569 (sh_nofp_frame_init_saved_regs): Ditto.
7570 (sh64_nofp_frame_init_saved_regs): Ditto.
7571 (sh_fp_frame_init_saved_regs): Ditto.
7572 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7573 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7574 * procfs.c (procfs_fetch_registers): Ditto.
7575 (procfs_store_registers): Ditto.
7576 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7577 (store_inferior_registers, fetch_core_registers): Ditto.
7578 (fetch_kcore_registers, clear_regs): Ditto.
7579 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7580 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7581 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7582 * nlm/i386.c (do_status): Ditto.
7583 * mipsv4-nat.c (supply_gregset): Ditto.
7584 * mips-tdep.c: Ditto for comments.
7585 * mips-nat.c (fetch_inferior_registers): Ditto.
7586 (store_inferior_registers, fetch_core_registers): Ditto.
7587 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7588 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7589 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7590 (i386_do_pop_frame, i386_register_type): Ditto.
7591 * hppa-tdep.c (hppa_frame_chain): Ditto.
7592 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7593 (hppa_pop_frame, hppa_read_fp): Ditto.
7594 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7595 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7596 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7597 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7598 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7599 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7600 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7601 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7602 * blockframe.c: Ditto for comments.
7603 * arch-utils.h: Ditto for comments.
7604 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7605 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7606 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7607 * alpha-tdep.h: Ditto for comments.
7608 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7609 (alpha_cannot_store_register): Ditto.
7610 (alpha_push_dummy_frame): Ditto.
7611 * alpha-nat.c (supply_gregset): Ditto.
7612
7613 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7614 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7615 * config/sparc/tm-sparc.h: Update comment.
7616
7617 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7618 deprecated_read_fp instead of TARGET_READ_FP.
7619 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7620 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7621 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7622 deprecated_read_fp instead of read_fp.
7623 * s390-tdep.c (s390_push_arguments): Ditto.
7624 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7625 * frame.h: Ditto in comments.
7626 * frame.c (legacy_get_prev_frame): Ditto.
7627 * dummy-frame.c (dummy_frame_this_id): Ditto.
7628 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7629
d7a27068
AC
76302003-04-28 Andrew Cagney <cagney@redhat.com>
7631
7632 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7633 * gdbarch.h, gdbarch.c: Re-generate.
7634 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7635 * vax-tdep.c (_initialize_vax_tdep): Update.
7636 * v850-tdep.c (_initialize_v850_tdep): Update.
7637 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7638 * s390-tdep.c (_initialize_s390_tdep): Update.
7639 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7640 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7641 * mips-tdep.c (_initialize_mips_tdep): Update.
7642 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7643 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7644 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7645 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7646 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7647 * frv-tdep.c (_initialize_frv_tdep): Update.
7648 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7649 (_initialize_cris_tdep): Update.
7650 * arch-utils.c (legacy_print_insn): Update.
7651 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7652
d2630e69
AF
76532003-04-26 Adam Fedor <fedor@gnu.org>
7654
7655 * linespec.c (decode_objc): New function to decode ObjC calls
7656 (decode_line_1): Check for ObjC calls (using decode_objc)
7657 * Makefile (linespec.o): Update dependencies.
7658
3086aeae
DJ
76592003-04-26 Daniel Jacobowitz <drow@mvista.com>
7660
7661 * breakpoint.h (struct breakpoint_ops): New.
7662 (struct breakpoint): Add ops member.
7663
7664 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7665 (mention): Use new breakpoint ops member.
7666 (set_raw_breakpoint): Initialize ops field to NULL.
7667 (print_exception_catchpoint, print_one_exception_catchpoint)
7668 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7669 (gnu_v3_exception_catchpoint_ops): New.
7670 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7671
1fbec6c3
AF
76722003-04-25 Adam Fedor <fedor@gnu.org>
7673
7674 * Makefile.in (COMMON_OBS): Add objc-lang.o
7675
0ef21242
AC
76762003-04-25 Andrew Cagney <cagney@redhat.com>
7677
7678 * d10v-tdep.c (print_insn): Delete function.
7679 (display_trace): Use TARGET_PRINT_INSN.
7680 (_initialize_d10v_tdep): Do not set tm_print_insn.
7681 (d10v_gdbarch_init): Set print_insn.
7682
f75493ed
AC
76832003-04-25 Andrew Cagney <cagney@redhat.com>
7684
7685 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7686 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7687 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7688 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7689 (nr_dmap_regs, a0_regnum): ... new functions.
7690 (d10v_print_registers_info): Use a0_regnum, use register_size.
7691 (d10v_register_byte): Delete function.
7692 (d10v_register_raw_size): Delete function.
7693 (d10v_register_type): Use a0_regnum.
7694 (d10v_print_registers_info): Use a0_regnum.
7695 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7696 (d10v_gdbarch_init): Do not set register_byte or
7697 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7698 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7699 extract_address.
7700 (trace_command): Use XCALLOC.
7701 (print_insn): Delete reference to tm_print_insn.
7702 (saved_regs_unwinder): Use store_unsigned_integer instead of
7703 store_address.
7704 * frame.h (FRAME_OBSTACK_CALLOC): Define
7705
2202b100
DC
77062003-04-25 David Carlton <carlton@bactrian.org>
7707
7708 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7709
4e45ca2e
AF
77102003-04-24 Adam Fedor <fedor@gnu.org>
7711
7712 * objc-lang.c: Include "valprint.h"
7713 * Makefile.in (objc-lang.o): Update dependencies.
7714
93de3e7f
AF
77152003-04-24 Adam Fedor <fedor@gnu.org>
7716
8ffd9b1b 7717 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7718 architecture dependant compilation and mark as unimplemented
7719 (until they get put in the gdbarch vector).
7720
0f20eeea
DC
77212003-04-23 David Carlton <carlton@bactrian.org>
7722
7723 * cp-support.c (cp_find_first_component): Accept 'operator' in
7724 more locations.
7725
74cfe982
AC
77262003-04-23 Andrew Cagney <cagney@redhat.com>
7727
7728 * infcall.c (call_function_by_hand): Eliminate redundant
7729 indentation. Move "saved_async" and "old_cleanups" to where they
7730 are needed.
8ffd9b1b 7731
52557533
AC
77322003-04-23 Andrew Cagney <cagney@redhat.com>
7733
7734 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7735 and "buffer". Move the "name" code to where it is needed.
7736
158775de
AC
77372003-04-23 Andrew Cagney <cagney@redhat.com>
7738
7739 * infcall.c (call_function_by_hand): Move variables "start_sp",
7740 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7741 code to ON_STACK switch branch.
8ffd9b1b 7742
ebc7896c
AC
77432003-04-23 Andrew Cagney <cagney@redhat.com>
7744
7745 * infcall.c (call_function_by_hand): Make declaration of "i",
7746 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7747 lint.
7748
d727590f
AC
77492003-04-23 Andrew Cagney <cagney@redhat.com>
7750
7751 * infcall.c (call_function_by_hand): Delete variable
7752 "n_method_args". Localize "param_type"'s declaration to the loop
7753 that it is used. Reinstate code assigning to said variable -
7754 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7755 Rationalize code using "param_type".
7756
d585e13a
AC
77572003-04-22 Andrew Cagney <cagney@redhat.com>
7758
7759 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7760 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7761 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7762 to DEPRECATED_PUSH_RETURN_ADDRESS.
7763
051caad9
KB
77642003-04-22 Kevin Buettner <kevinb@redhat.com>
7765
7766 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7767 on the DWARF2 register number prior to fetching a register.
7768
77296879
JB
77692003-04-22 J. Brobecker <brobecker@gnat.com>
7770
7771 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7772 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7773 this macro was always set to 0.
77296879
JB
7774 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7775 considering the fact that this macro was always set to 0.
7776 * hppa-tdep.h (hppa_store_return_value): Likewise.
7777 (hppa_extract_return_value): Likewise.
7778
4252f1df
JB
77792003-04-22 J. Brobecker <brobecker@gnat.com>
7780
7781 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7782 the hppa-pro target only.
7783
14604c6b
JB
77842003-04-21 J. Brobecker <brobecker@gnat.com>
7785
7786 Ongoing multi-arch conversion effort for HP/UX:
7787 * config/pa/tm-hppa.h: Move all macro that are no longer
7788 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7789 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7790
77eb01d1
JB
77912003-04-21 J. Brobecker <brobecker@gnat.com>
7792
7793 * config/pa/tm-hppa.h: Obsolete a section that was only used
7794 for hppa-pro.
7795
61995b3b
JB
77962003-04-21 J. Brobecker <brobecker@gnat.com>
7797
7798 Ongoing multi-arch conversion for HP/UX.
7799 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7800 if already defined (allows hppa64 to stay non-multiarched for now).
7801 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7802
4aa79dcc
AC
78032003-04-21 Andrew Cagney <cagney@redhat.com>
7804
7805 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7806
0f751ff2
AC
78072003-04-21 Andrew Cagney <cagney@redhat.com>
7808
7809 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7810 "i386_num_mmx_regs".
7811
04714b91
AC
78122003-04-21 Andrew Cagney <cagney@redhat.com>
7813
7814 * infcall.c: New file.
7815 * infcall.h: New file.
7816 * valarith.c: Include "infcall.h".
7817 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7818 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7819 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7820 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7821 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7822 (SFILES): Add "infcall.c"
7823 (COMMON_OBS): Add "infcall.o".
7824 (infcall.o): Specify dependencies.
7825 * value.h (call_function_by_hand): Delete declaration.
7826 * inferior.h (run_stack_dummy): Delete declaration.
7827 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7828 (run_stack_dummy): Move to "infcall.c", merged into
7829 call_function_by_hand.
7830 * valops.c (call_function_by_hand): Moved to "infcall.c".
7831 (find_function_addr, value_arg_coerce): Ditto.
7832 (unwindonsignal_p, coerce_float_to_double): Ditto.
7833 (_initialize_valops): Move "set/show coerce-float-to-double", and
7834 "set/show unwindonsignal" commands to "infcall.c".
7835 * v850-tdep.c, target.h: Update comments.
7836 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7837 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7838 (sh64_init_extra_frame_info): Update comments.
7839 * mn10300-tdep.c: Update comments.
7840 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7841 * config/sparc/tm-sparc.h: Update comments.
7842 * breakpoint.h: Update comments.
7843 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7844 * arm-tdep.c: Update comment.
7845
f9d3c2a8
MK
78462003-04-19 Mark Kettenis <kettenis@gnu.org>
7847
c40e1eab
MK
7848 * i386-tdep.c (i386_num_register_names): New variable.
7849 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7850 (MM0_REGNUM): Remove redundant parentheses in define.
7851 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7852 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7853 i386_mxcsr_regnum_p): Remove redundant parentheses.
7854 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7855
94ea66b3
MK
7856 * i386-tdep.c (i386_extract_return_value,
7857 i386_store_return_value): Correct check for availability of
7858 floating-point registers.
7859
54299a1d
MK
7860 * i386-tdep.c (i386_frame_num_args): Remove function.
7861 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7862
c86c27af
MK
7863 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7864 mmx_regnum_to_fp_regnum. Adjust all callers.
7865
f9d3c2a8
MK
7866 * i386-tdep.c (i386_get_longjmp_target): Use
7867 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7868 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7869 extract_address.
7870
94ba74a9
MK
78712003-04-19 Mark Kettenis <kettenis@gnu.org>
7872
7873 * core-regset.c: Update comments to reflect reality. Re-order
7874 includes.
7875 (fetch_core_registers): Use switch instead of if. Remove
7876 redundant prototype.
7877
4074e13c
JB
78782003-04-18 Jim Blandy <jimb@redhat.com>
7879
7880 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7881 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7882
e3ab4aba
RH
78832003-04-17 Richard Henderson <rth@redhat.com>
7884
7885 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7886
627bf7c1
EZ
78872003-04-17 Michael Snyder <msnyder@redhat.com>
7888 Karen Bennet <bennet@redhat.com>
7889
7890 Committed by Elena Zannoni <ezannoni@redhat.com>
7891 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7892
514621a9
EZ
78932003-04-17 Elena Zannoni <ezannoni@redhat.com>
7894
7895 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7896 value if the return type is void.
514621a9 7897
b4acd559
JJ
78982003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7899
7900 * thread-db.c: Reindented.
8ffd9b1b 7901
530b167e 79022003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7903
7904 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7905 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7906 as types.
7907
0a48e7e8
MS
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
8ffd9b1b 7931
ab9fe00e
KB
79322003-04-16 Kevin Buettner <kevinb@redhat.com>
7933
610a3745 7934 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7935 the size of ``long double'' to 16, instead of 8.
7936
e64a344c
MK
79372003-04-16 Mark Kettenis <kettenis@gnu.org>
7938
7939 * i386-linux-nat.c: Add some whitespace to make things more
7940 readable.
7941 (fetch_register, store_register, fetch_inferior_registers,
7942 store_inferior_registers): Get rid of assignment in if-statement.
7943 (store_register): Fix typo in error message.
7944
25d41031
AC
79452003-04-16 Andrew Cagney <cagney@redhat.com>
7946
7947 * utils.c (xmmalloc): Always allocate something, matches
7948 libiberty/xmalloc's semantics.
7949 (xmrealloc, xmcalloc): Ditto.
7950
c50901fd
AC
79512003-04-16 Andrew Cagney <cagney@redhat.com>
7952
7953 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7954 update comments.
7955 (get_frame_type): Initialize unwind and type when needed.
7956 (get_frame_id, frame_register_unwind): Ditto.
7957
f81824a9
AC
79582003-04-16 Andrew Cagney <cagney@redhat.com>
7959
7960 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7961 obsolete.
7962 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7963 * sparcl-stub.c: Obsolete file.
7964 * config/sparc/tm-sparclet.h: Obsolete file.
7965 * sparclet-stub.c: Obsolete file.
7966 * sparclet-rom.c: Obsolete file.
7967 * sparcl-tdep.c: Obsolete file.
7968 * config/sparc/tm-sparclite.h: Obsolete file.
7969 * config/sparc/sparclite.mt: Obsolete file.
7970 * config/sparc/sparclet.mt: Obsolete file.
7971 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7972 sparc86x-*-* obsolete.
7973
9219021c
DC
79742003-04-15 David Carlton <carlton@math.stanford.edu>
7975
7976 * Makefile.in (SFILES): Add cp-namespace.c.
7977 (COMMON_OBS): Add cp-namespace.o.
7978 (block.o): Depend on gdb_obstack_h and cp_support_h.
7979 (buildsym.o): Depend on cp_support_h.
7980 (cp-namespace.o): New.
7981 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7982 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7983 (dwarf2read.o): Depend on cp_support_h.
7984 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7985 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7986 processing_current_namespace.
7987 (read_namespace): Update processing_current_namespace; check for
7988 anonymous namespaces.
7989 (dwarf2_name): New function.
7990 (dwarf2_extension): Ditto.
7991 * cp-support.h: Update copyright, contributors.
7992 Add inclusion guards.
7993 Add opaque declaration for structs obstack, block, symbol.
7994 (struct using_direct): New struct.
7995 Add declarations for cp_find_first_component,
7996 cp_entire_prefix_len, processing_has_namespace_info,
7997 processing_current_namespace, cp_is_anonymous,
7998 cp_add_using_directive, cp_initialize_namespace,
7999 cp_finalize_namespace, cp_set_block_scope,
8000 cp_scan_for_anonymous_namespaces.
8001 * cp-namespace.c: New file.
8002 * cp-support.c: Update copyright.
8003 Include ctype.h, gdb_assert.h, gdbcmd.h.
8004 New variable maint_cplus_cmd_list.
8005 (cp_find_first_component): New function.
8006 (cp_entire_prefix_len, maint_cplus_command)
8007 (first_component_command, _initialize_cp_support): Ditto.
8008 * buildsym.c: Include cp-support.h.
8009 New variable using_list.
8010 (add_symbol_to_list): Check for anonymous namespaces.
8011 (finish_block): Set block's scope.
8012 (start_symtab): Initialize C++ namespace support.
8013 (end_symtab): Finalize C++ namespace support.
8014 * block.h: Add opaque declarations for structs
8015 block_namespace_info, using_direct, and obstack.
8016 Add declarations for block_set_scope and block_set_using.
8017 (struct block): Add 'language_specific' member.
8018 (BLOCK_NAMESPACE): New macro.
8019 * block.c: Include gdb_obstack.h and cp-support.h.
8020 (struct block_namespace_info): New struct.
8021 (block_set_scope): New function.
8022 (block_set_using, block_initialize_namespace): Ditto.
8023
d5a921c9
KB
80242003-04-14 Kevin Buettner <kevinb@redhat.com>
8025
8026 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8027 (locate_base): Return early if there aren't any link map offsets.
8028 (svr4_solib_create_inferior_hook): Warn if shared library support
8029 is unavailable.
8030
d2a52b27
DC
80312003-04-14 David Carlton <carlton@math.stanford.edu>
8032
8033 * symtab.c (symbol_set_names): Add prefix when storing Java names
8034 in hash table. Fix for PR java/1039.
8035
980cae7a
DC
80362003-04-14 David Carlton <carlton@math.stanford.edu>
8037
8038 * symtab.c (symbol_set_names): Rename 'name' arg to
8039 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8040 * symtab.h: Change 'name' argument in declaration of
8041 symbol_set_names to 'linkage_name'.
8042 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8043
e227b13c
AC
80442003-04-14 Andrew Cagney <cagney@redhat.com>
8045
8046 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8047 return the fully sign-extended register value.
8048 (get_frame_pointer): Ditto.
8049 (mips_pop_frame): Initialize "proc_desc" after checking for a
8050 dummy frame.
8051
36712a20
AC
80522003-04-14 Andrew Cagney <cagney@redhat.com>
8053
8054 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8055 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8056 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8057 (mips_push_register): Delete function.
8058 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8059 PUSH_FP_REGNUM.
8060
44ea7b70
JB
80612003-04-14 Jim Blandy <jimb@redhat.com>
8062
8063 * symmisc.c: #include "gdb_regex.h".
8064 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8065 functions.
8066 * maint.c (maintenance_list_command): New function.
8067 (_initialize_maint_cmds): Register the above as commands.
8068 * symtab.h (maintenance_list_symtabs,
8069 maintenance_list_psymtabs): New declarations.
8070 * cli/cli-cmds.c (maintenancelistlist): New variable.
8071 (init_cmd_lists): Initialize it.
8072 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8073 * gdbcmd.h (maintenancelistlist): New declaration.
8074 * Makefile.in (symmisc.o): Update dependencies.
8075
2d0c7962
EZ
80762003-04-14 Elena Zannoni <ezannoni@redhat.com>
8077
8078 * s390-nat.c: Include asm/types.h for addr_t.
8079
1947a811
CV
80802003-04-14 Corinna Vinschen <vinschen@redhat.com>
8081
8082 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8083 actually incoming type.
8084
adb616d7
AC
80852003-04-13 Andrew Cagney <cagney@redhat.com>
8086
8087 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8088 get_next_frame and get_frame_saved_regs.
8089
9b5e151c
AC
80902003-04-13 Andrew Cagney <cagney@redhat.com>
8091
8092 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8093 of gdbarch_num_regs.
8094
ef6e7e13
AC
80952003-04-13 Andrew Cagney <cagney@redhat.com>
8096
8097 * frame.h: Mention what replaced what in "struct frame_info".
8098 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8099 deprecated_update_frame_base_hack and
8100 deprecated_update_frame_pc_hack.
8101 * hppa-tdep.c: Ditto.
8102
61fbb938
DJ
81032003-04-13 Daniel Jacobowitz <drow@mvista.com>
8104
8105 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8106 to read_reg and update its comment. Remove regnum member.
8107 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8108 Don't call read_reg when setting in_reg. Call read_reg to get
8109 the frame base if it's in a register. Return the register number
8110 on the stack instead of in the context. Remove extra arguments
8111 to read_reg.
8112 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8113 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8114 the register number on the expression stack.
8115 (needs_frame_read_reg): Remove extra arguments.
8116
0d53c4c4
DJ
81172003-04-13 Daniel Jacobowitz <drow@mvista.com>
8118
8119 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8120 made non-static.
8121 (execute_stack_op): All callers updated.
8122 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8123 * dwarf2loc.c (find_location_expression): New function.
8124 (dwarf_expr_frame_base): Call it.
8125 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8126 (dwarf2_tracepoint_var_ref): New function, broken out from
8127 locexpr_tracepoint_var_ref.
8128 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8129 Make static.
8130 (loclist_read_variable, loclist_read_needs_frame): New functions.
8131 (loclist_describe_location, loclist_tracepoint_var_ref): New
8132 functions.
8133 (dwarf2_loclist_funcs): New struct location_funcs.
8134 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8135 (struct dwarf2_locexpr_baton): Add comments.
8136 (dwarf2_loclist_funcs): New extern.
8137 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8138 base_address and base_known.
8139 (dwarf_loc_buffer): New variable.
8140 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8141 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8142 (dwarf2_has_info): Initialize dwarf_loc_offset.
8143 (dwarf2_build_psymtabs): Read in .debug_loc.
8144 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8145 DWARF_LOC_SIZE.
8146 (psymtab_to_symtab_1): Likewise. Move base address calculation
8147 here, from...
8148 (dwarf2_get_pc_bounds): ... here. Use the base address from
8149 cu_header.
8150 (dwarf2_symbol_mark_computed): Handle location lists.
8151
6aca59a3
DJ
81522003-04-13 Daniel Jacobowitz <drow@mvista.com>
8153
8154 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8155 if the linkage name demangled successfully.
8156
aca1fcd0
MK
81572003-04-13 Mark Kettenis <kettenis@gnu.org>
8158
97095916
MK
8159 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8160 disassmbly_flavour): Removed.
8161
aca1fcd0
MK
8162 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8163
562a961f
MK
81642003-04-13 Mark Kettenis <kettenis@gnu.org>
8165
8166 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8167
bd013d54
AC
81682003-04-12 Andrew Cagney <cagney@redhat.com>
8169
8170 * frame.h (struct frame_info): Move definition from here ...
8171 * frame.c (struct frame_info): ... to here.
8172
167ef8b1
AC
81732003-04-12 Andrew Cagney <cagney@redhat.com>
8174
8175 * gdbthread.h (save_infrun_state): Delete parameter
8176 "prev_func_start".
8177 (struct thread_info): Delete field "prev_func_start".
8178 (load_infrun_state): Ditto.
8179 * thread.c (load_infrun_state, save_infrun_state): Update.
8180 * infrun.c (prev_func_start): Delete variable.
8181 (context_switch, init_wait_for_inferior): Update.
8182 (stop_stepping, keep_going): Update.
8183
da3331ec
AC
81842003-04-12 Andrew Cagney <cagney@redhat.com>
8185
8186 * gdbarch.sh: Add missing opaque declarations.
8187 * gdbarch.h: Regnerate.
8188 * symtab.h: Add missing opaque declarations.
8189 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8190 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8191 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8192 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8193 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8194 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8195 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8196 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8197 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8198 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8199 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8200 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8201 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8202
18adea3f
AC
82032003-04-11 Andrew Cagney <cagney@redhat.com>
8204
8205 * frame.c (get_frame_id): Return this frame's "id".
8206 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8207 function start.
8208 (legacy_saved_regs_this_id): Replace function body with
8209 internal-error.
8210 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8211 FRAME_OBSTACK_ZALLOC.
8212 (create_new_frame): Mark the frame ID as valid.
8213
2252e863
AO
82142003-04-11 Alexandre Oliva <aoliva@redhat.com>
8215
8216 * Makefile.in (libbfd_h): Added missing setting.
8217 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8218 according to the selected ABI.
8219
a8245ab8
JJ
82202003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8221
8222 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8223
6913c89a
AC
82242003-04-11 Andrew Cagney <cagney@redhat.com>
8225
8226 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8227 SAVED_PC_AFTER_CALL.
8228 * gdbarch.h, gdbarch.c: Regenerate.
8229 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8230 * x86-64-tdep.c (x86_64_init_abi): Update.
8231 * vax-tdep.c (vax_gdbarch_init): Update.
8232 * v850-tdep.c (v850_gdbarch_init): Update.
8233 * sparc-tdep.c (sparc_gdbarch_init): Update.
8234 * sh-tdep.c (sh_gdbarch_init): Update.
8235 * s390-tdep.c (s390_gdbarch_init): Update.
8236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8237 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8238 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8239 * mips-tdep.c (mips_gdbarch_init): Update.
8240 * mcore-tdep.c (mcore_gdbarch_init): Update.
8241 * m68k-tdep.c (m68k_gdbarch_init): Update.
8242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8243 * ia64-tdep.c (ia64_gdbarch_init): Update.
8244 (ia64_saved_pc_after_call): Update declaration.
8245 * i386ly-tdep.c (i386lynx_init_abi): Update.
8246 * i386-tdep.c (i386_gdbarch_init): Update.
8247 * hppa-tdep.c (hppa_gdbarch_init): Update.
8248 * h8300-tdep.c (h8300_gdbarch_init): Update.
8249 * frv-tdep.c (frv_gdbarch_init): Update.
8250 * cris-tdep.c (cris_gdbarch_init): Update.
8251 * avr-tdep.c (avr_gdbarch_init): Update.
8252 * arm-tdep.c (arm_gdbarch_init): Update.
8253 * alpha-tdep.c (alpha_gdbarch_init): Update.
8254 * ns32knbsd-nat.c (frame_num_args): Update.
8255 * ns32k-tdep.c (umax_frame_num_args): Update.
8256 * mips-tdep.c (mips_init_frame_pc_first): Update.
8257 * infrun.c (step_over_function): Update.
8258 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8259 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8260 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8261 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8262 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8263 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8264 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8265 * arch-utils.c (init_frame_pc_default): Update.
8266 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8267 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8268 declaration.
8ffd9b1b 8269
38edeab8
AC
82702003-04-11 Andrew Cagney <cagney@redhat.com>
8271
8272 * i387-tdep.c: Update copyright.
8273 (i387_to_double): Delete function.
8274 (double_to_i387): Delete function.
8275
81f8a206
AC
82762003-04-10 Andrew Cagney <cagney@redhat.com>
8277
8278 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8279 frame's function's address. Simplify.
8280 (d10v_frame_unwind_cache): Check that the frame's function is
8281 non-zero.
8282
6e691f7a
JB
82832003-04-10 Jim Blandy <jimb@redhat.com>
8284
8285 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8286 call to set_gdbarch_deprecated_push_arguments.
8287
7f78e237
AC
82882003-04-10 Andrew Cagney <cagney@redhat.com>
8289
8290 * frame.c (fprint_frame_id): New function.
8291 (fprint_frame_type, fprint_frame): New function.
8292 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8293 (create_sentinel_frame, get_frame_id): Ditto.
8294 (frame_id_p, frame_id_eq): Ditto.
8295 (frame_id_inner, create_new_frame): Ditto.
8296 (legacy_get_prev_frame, get_prev_frame): Ditto.
8297 (deprecated_update_frame_pc_hack): Ditto.
8298 (frame_register_unwind): Ditto.
8299 (deprecated_update_frame_base_hack): Ditto.
8300
f870b49b
CV
83012003-04-10 Corinna Vinschen <vinschen@redhat.com>
8302
8303 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8304 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8305 frame_chain function.
8306 * Makefile.in: Add dependencies due to above change.
8307
7c86889b
CV
83082003-04-10 Corinna Vinschen <vinschen@redhat.com>
8309
8310 * blockframe.c (legacy_frame_chain_valid): Move call to
8311 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8312 inside_entry_file.
8313
d0a55772
AC
83142003-04-09 Andrew Cagney <cagney@redhat.com>
8315
8316 * frame.h (struct frame_id): Replace "pc" and "base" with
8317 "stack_addr" and "code_addr". Update comments.
8318 (frame_id_build): Update parameter names and comment.
8319 (struct frame_info): Replace "id_p" and "id" with "this_id".
8320 * dummy-frame.c (dummy_frame_this_id): Update.
8321 * breakpoint.c (print_one_breakpoint): Update.
8322 * frame.c (get_frame_id): Update.
8323 (get_frame_base, frame_id_build): Update.
8324 (create_sentinel_frame, legacy_get_prev_frame): Update.
8325 (deprecated_update_frame_base_hack): Update.
8326 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8327 (frame_id_inner): Ditto.
8328
ac16bf07
AC
83292003-04-09 Andrew Cagney <cagney@redhat.com>
8330
8331 * defs.h (gdb_print_host_address): Make "addr" parameter a
8332 pointer constant.
8333 * utils.c (gdb_print_host_address): Update.
8334
366cfc9e
KB
83352003-04-09 Kevin Buettner <kevinb@redhat.com>
8336
8337 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8338 register number for R0 is 0.
8339
cd983b5c
JB
83402003-04-09 J. Brobecker <brobecker@gnat.com>
8341
8342 * frame.h (struct gdbarch): Add opaque structure definition
8343 to avoid a compilation warning on LynxOS 4.0.
8344
d1340264
AC
83452003-04-09 Andrew Cagney <cagney@redhat.com>
8346
8347 * frame.h (struct frame_info): Delete field "pc". Replace
8348 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8349 structure.
8350 * frame.c (frame_pc_unwind): Update.
8351 (create_sentinel_frame): Do not set "pc".
8352 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8353 (get_frame_pc): Call frame_pc_unwind.
8354 (deprecated_update_frame_pc_hack): Update.
8355 (create_new_frame): Use "pc" not "->pc".
8356
90a6fffb
AC
83572003-04-09 Andrew Cagney <cagney@redhat.com>
8358
8359 * frame.c (get_frame_id): Eliminate code updating "frame".
8360 (legacy_get_prev_frame): Ditto.
8361 (get_frame_base): Return id.base directly.
8362 (deprecated_update_frame_base_hack): Update "id.base".
8363 * frame.h (struct frame_info): Delete field "frame".
8364
2fbce691
AC
83652003-04-09 Andrew Cagney <cagney@redhat.com>
8366
8367 * NEWS: Mention that the "Sequent family" is obsolete.
8368 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8369 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8370 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8371 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8372 * config/i386/tm-ptx4.h: Obsolete file.
8373 * config/i386/tm-ptx.h: Obsolete file.
8374 * symm-tdep.c: Obsolete file.
8375 * config/i386/symmetry.mt: Obsolete file.
8376 * config/i386/tm-symmetry.h: Obsolete file.
8377 * symm-nat.c: Obsolete file.
8378 * config/i386/nm-symmetry.h: Obsolete file.
8379 * config/i386/xm-symmetry.h: Obsolete file.
8380 * config/i386/symmetry.mh: Obsolete file.
8381 * config/i386/nm-ptx4.h: Obsolete file.
8382 * config/i386/ptx4.mh: Obsolete file.
8383 * config/i386/ptx.mt: Obsolete file.
8384 * config/i386/ptx.mh: Obsolete file.
8385 * config/i386/xm-ptx4.h: Obsolete file.
8386 * config/i386/xm-ptx.h: Obsolete file.
8387
78c43945
AC
83882003-04-09 Andrew Cagney <cagney@redhat.com>
8389
8390 Obsolete mips*-*-mach3*.
8391 * NEWS: Mention that mips*-*-mach3* is obsolete.
8392 * m3-nat.c: Obsolete file.
8393 * config/nm-m3.h: Obsolete file.
8394 * config/mips/tm-mipsm3.h: Obsolete file.
8395 * config/mips/mipsm3.mt: Obsolete file.
8396 * config/mips/mipsm3.mh: Obsolete file.
8397 * config/mips/xm-mipsm3.h: Obsolete file.
8398 * mipsm3-nat.c: Obsolete file.
8399 * configure.host: Obsolete mips-dec-mach3*.
8400 * configure.tgt: Obsolete mips*-*-mach3*.
8401
f1908289
AC
84022003-04-09 Andrew Cagney <cagney@redhat.com>
8403
8404 * doublest.h: Update copyright.
8405 (deprecated_store_floating, deprecated_extract_floating): Rename
8406 store_floating and extract_floating. Update comments.
8407 * doublest.c: Update copyright.
8408 (extract_floating_by_length): Replace extract_floating.
8409 (store_floating_by_length): Replace store_floating.
8410 (deprecated_extract_floating): New function.
8411 (deprecated_store_floating): New function.
8412 (extract_typed_floating): Call extract_floating_by_length.
8413 (store_typed_floating): Call store_floating_by_length.
8414 * x86-64-tdep.c (x86_64_store_return_value): Update.
8415 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8416 (sh64_extract_return_value): Update.
8417 (sh_sh4_register_convert_to_virtual): Update.
8418 (sh_sh64_register_convert_to_virtual): Update.
8419 (sh_sh4_register_convert_to_raw): Update.
8420 (sh_sh64_register_convert_to_raw): Update.
8421 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8422 (rs6000_register_convert_to_raw): Update.
8423 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8424 (ia64_register_convert_to_raw): Update.
8425 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8426 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8427 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8428 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8429 (alpha_register_convert_to_raw): Update.
8430
4443bd83
AC
84312003-04-08 Andrew Cagney <cagney@redhat.com>
8432
8433 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8434 * gdbarch.h, gdbarch.c: Re-generate.
8435 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8436 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8437 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8438 conditionally, use frame_pc_unwind as an alternative. Add
8439 comments.
8440 * arch-utils.c (init_frame_pc_default): Only call
8441 SAVED_PC_AFTER_CALL when available.
8442
c0236d92
EZ
84432003-04-08 Elena Zannoni <ezannoni@redhat.com>
8444
fbe586ae 8445 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8446 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8447 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8448 (start_remote): Ditto.
8449 (handle_inferior_event): Ditto.
8450 (save_inferior_status): Ditto.
8451 (restore_inferior_status): Ditto.
8452 * infcmd.c (attach_command): Ditto.
8453 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8454 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8455 * alpha-tdep.c (heuristic_proc_start): Ditto.
8456 * mips-tdep.c (heuristic_proc_start): Ditto.
8457 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8458 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8459 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8460 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8461 * remote-vx.c (vx_create_inferior): Ditto.
8462
84632003-04-08 Elena Zannoni <ezannoni@redhat.com>
8464
8465 * infrun.c (stop_soon_quietly): Make it an enum, to better
8466 override the default behavior of handle_inferior_event.
8467 (clear_proceed_status): Update uses of stop_soon_quietly to
8468 reflect that it is now an enum.
8469 (start_remote): Ditto.
8470 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8471 is set to handle the new GNU/Linux kernel behavior for
8472 attach/sigstop. Update uses of stop_soon_quietly.
8473 * inferior.h (enum stop_kind): New enum.
8474 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8475 Reset normal handle_inferior_event behavior, afterwards.
8476 * fork-child.c (startup_inferior): Update.
8477 * alpha-tdep.c (heuristic_proc_start): Update.
8478 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8479 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8480 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8481 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8482 * remote-vx.c (vx_create_inferior): Update.
8483 * mips-tdep.c (heuristic_proc_start): Update.
8484
1211bce3
EZ
84852003-04-07 Elena Zannoni <ezannoni@redhat.com>
8486
8487 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8488 be freed more than once, causing wild memory corruptions.
1211bce3 8489 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8490 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8491 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8492 with the "core" target.
1211bce3 8493
f0ef6b29
KB
84942003-04-07 Kevin Buettner <kevinb@redhat.com>
8495
8496 * mips-tdep.c (mips_print_fp_register): New function, created from
8497 do_fp_register_row(). Registers are now (also) printed as hex.
8498 Only one register is printed per row.
8499 (mips_print_register, do_fp_register_row): Print floating point
8500 registers with mips_print_fp_register().
8501
8cf71652
AC
85022003-04-06 Andrew Cagney <cagney@redhat.com>
8503
5e488a7b
AC
8504 * valprint.h (inspect_it): Add extern declaration.
8505 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8506 (selectors_info, classes_info): Ditto.
8507 (find_objc_msgcall): Fix indentation.
8508 (objc_printstr): Delete extern declarations.
8509
8cf71652
AC
8510 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8511
e6ba3bc9
AC
85122003-04-06 Andrew Cagney <cagney@redhat.com>
8513
8514 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8515 Update comment.
8516 * frame.c (legacy_saved_regs_this_id): Update.
8517 (legacy_get_prev_frame): Update.
8518 * xstormy16-tdep.c: Update comment.
8519 * sparc-tdep.c (sparc_frame_chain): Update comment.
8520 * blockframe.c (legacy_frame_chain_valid): Update.
8521
55e1d7e7
AC
85222003-04-06 Andrew Cagney <cagney@redhat.com>
8523
996179ee
AC
8524 * valprint.c (val_print_type_code_int): Delete #ifdef
8525 PRINT_TYPELESS_INTEGER code.
8526
55e1d7e7
AC
8527 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8528 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8529 multi-arch definition.
8530 * gdbarch.h: Re-generate.
8531
43bd9a9e
AC
85322003-04-05 Andrew Cagney <cagney@redhat.com>
8533
8534 Eliminate FRAME_FIND_SAVED_REGS.
8535 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8536 Change FSR parameter to a pointer.
8537 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8538 Assume FSR parameter is a pointer.
8539 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8540 Make fsr a pointer.
8541 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8542 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8543 saved_regs a pointer.
8544 (hppa_frame_saved_pc): Ditto.
8545 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8546 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8547 pointer.
8548 (restore_pc_queue): Make fsr a pointer.
8549 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8550 (hppa_frame_chain): Make saved_regs a pointer, call
8551 hppa_frame_init_saved_regs.
8552 * sparc-tdep.c: Include "gdb_assert.h".
8553 (sparc_frame_find_saved_regs): Replace internal_error with
8554 gdb_assert.
8555 * remote-vxsparc.c (vx_read_register): Delete reference to
8556 FRAME_FIND_SAVED_REGS.
8557 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8558 * gdbarch.h: Regenerate.
8559 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8560 (deprecated_get_frame_saved_regs): Delete declaration.
8561 (struct frame_saved_regs): Delete definition.
8562 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8563 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8564 (hppa_frame_find_saved_regs): Delete declaration.
8565 (FRAME_FIND_SAVED_REGS): Delete macro.
8566 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8567 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8568 FRAME_FIND_SAVED_REGS in comment.
8569
be41e9f4
AC
85702003-04-05 Andrew Cagney <cagney@redhat.com>
8571
8572 * frame.c (frame_func_unwind, get_frame_func): New functions.
8573 * frame.h (get_frame_func, frame_func_unwind): Declare.
8574 (struct frame_info): Add field "prev_func" for caching the
8575 previous frame's function address.
8576 * arm-tdep.c (arm_frameless_function_invocation): Combine
8577 get_pc_function_start and get_frame_pc into get_frame_func.
8578 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8579 (sh64_nofp_frame_init_saved_regs): Ditto.
8580 * s390-tdep.c (s390_function_start): Ditto.
8581 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8582 (rs6000_frameless_function_invocation): Ditto.
8583 (rs6000_frame_saved_pc): Ditto.
8584 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8585 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8586 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8587 (i386_frame_init_saved_regs): Ditto.
8588 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8589 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8590 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8591 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8592 * blockframe.c (frameless_look_for_prologue): Ditto.
8593
a01dd7cc
AC
85942003-04-05 Andrew Cagney <cagney@redhat.com>
8595
8596 * frame.c (legacy_get_prev_frame): Link prev to next at the
8597 function start. Update comments.
8598
5e5592e6
AC
85992003-04-05 Andrew Cagney <cagney@redhat.com>
8600
8601 * frame.c (get_frame_id): Update comment.
8602 (legacy_get_prev_frame): Update comment.
8603 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8604 * gdbarch.h: Regenerate.
8605 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8606 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8607
6fba5002
AC
86082003-04-05 Andrew Cagney <cagney@redhat.com>
8609
8610 * stack.c (print_frame_info): Use get_frame_pc.
8611
7df05f2b
AC
86122003-04-04 Andrew Cagney <cagney@redhat.com>
8613
8614 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8615 the frame's type from the unwinder.
8616 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8617 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8618 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8619 (get_frame_base_address): Use get_frame_type.
8620 (get_frame_locals_address, get_frame_args_address): Ditto.
8621 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8622 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8623 (struct frame_info): Add comment explaining why the frame contains
8624 a "type" field.
8625 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8626 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8627 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8628 NORMAL_FRAME.
8629 * frame-unwind.h: Include "frame.h".
8630 (struct frame_unwind): Add "type" field.
8631 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8632
11889732
AC
86332003-04-04 Andrew Cagney <cagney@redhat.com>
8634
8635 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8636 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8637 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8638 get_frame_base.
8639 (d10v_unwind_dummy_id): Use frame_id_build.
8640 * frame.c (find_frame_sal): Use get_frame_pc.
8641 (create_new_frame): Use deprecated_update_frame_pc_hack and
8642 deprecated_update_frame_base_hack.
8643 (create_sentinel_frame): Add comment about ->pc going away.
8644 (get_prev_frame): Add comment about ->pc going away.
8645 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8646 frame_id_build, deprecated_update_frame_pc_hack and
8647 deprecated_update_frame_base_hack.
8648 (select_frame): Use get_frame_pc.
8649 (legacy_saved_regs_this_id): Use frame_id_build.
8650
50c46a0d
EZ
86512003-04-04 Elena Zannoni <ezannoni@redhat.com>
8652
fbe586ae
RH
8653 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8654 signed integer case.
8655 (classify_argument): Handle enumerations and references.
50c46a0d 8656
50bbdbd9
AC
86572003-04-04 Andrew Cagney <cagney@redhat.com>
8658
8659 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8660 ID to NULL.
8661
36018d2e
AF
86622003-04-01 Adam Fedor <fedor@gnu.org>
8663
8664 * gdb/objc-lang.c (selectors_info): Replace calls to
8665 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8666 SYMBOL_NATURAL_NAME.
8667 (classes_info, find_methods): Likewise.
8668
35cec841
KB
86692003-04-03 Kevin Buettner <kevinb@redhat.com>
8670
8671 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8672 ``mach'' to the value determined by bfd_default_set_arch_mach().
8673
43136899
BR
86742003-04-02 Bob Rossi <bob_rossi@cox.net>
8675
8676 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8677 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8678 (mi-cmd-file.o): Update dependencies.
8679
040b99fd
KB
86802003-04-01 Kevin Buettner <kevinb@redhat.com>
8681
8682 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8683 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8684
9a3d7dfd
AF
86852003-04-01 Adam Fedor <fedor@gnu.org>
8686
8687 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8688 * language.h (struct language_defn): Add la_demangle.
8689 (language_demangle): Declare.
8690 * language.c (language_demangle): New function.
8691 (unk_lang_demangle): Likewise.
8692 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8693 Add ukn_lang_demangle.
9a3d7dfd 8694 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8695 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8696 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8697 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8698 * jv-lang.c (java_demangle): New function
8699 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8700 * objc-lang.c (objc_demangle): Add options argument
8701 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8702 * maint.c (maintenance_demangle): Replace switch with
8703 call to language_demangle.
8704 * utils.c (fprintf_symbol_filtered): Likewise.
8705
5e074003
AC
87062003-04-01 Andrew Cagney <cagney@redhat.com>
8707
8708 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8709 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8710 PRINT_TYPELESS_INTEGER.
8711 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8712 PUSH_RETURN_ADDRESS.
8713
270cb5d6
AC
87142003-04-01 Andrew Cagney <cagney@redhat.com>
8715
8716 * Makefile.in (d10v-tdep.o): Update dependencies.
8717 * d10v-tdep.c: Include "frame-base.h".
8718 (d10v_frame_unwind): Make constant.
8719 (d10v_frame_base_address): New function.
8720 (d10v_frame_base): New variable.
8721 (d10v_gdbarch_init): Set frame_base default.
8722 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8723 comment for base.
8724 (d10v_frame_unwind_cache): Set and use "prev_sp".
8725 (d10v_frame_this_id): Use the previous frame's inner most stack
8726 address and this frame's func address for the frame ID. Use
8727 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8728
6bfb3e36
AC
87292003-04-01 Andrew Cagney <cagney@redhat.com>
8730
8731 * frame.h (get_frame_locals_address, get_frame_args_address):
8732 Refer to the base address, instead of the address of the first
8733 local or parameter.
8ffd9b1b 8734
da62e633
AC
87352003-04-01 Andrew Cagney <cagney@redhat.com>
8736
8737 Add frame debug info addresses:
8738 * frame-base.c: New file.
8739 * frame-base.h: New file.
8740 * frame.h (struct frame_base): Add opaque declaration.
8741 (get_frame_base): Update comment.
8742 (get_frame_base_address): Declare.
8743 (get_frame_locals_address): Declare.
8744 (get_frame_args_address): Declare.
8745 (struct frame_info): Add "base" and "base_cache". Update
8746 comments on the unwinder.
8747 * frame.c: Include "frame-base.h".
8748 (get_frame_locals_address): New function.
8749 (get_frame_base_address): New function.
8750 (get_frame_args_address): New function.
8751 * findvar.c (read_var_value): Use get_frame_locals_address and
8752 get_frame_args_address.
8753 * stack.c (frame_info): Use get_frame_locals_address and
8754 get_frame_args_address.
8755 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8756 moved to "frame-base.c".
8757 * printcmd.c (print_frame_nameless_args): Ditto.
8758 * symtab.h (address_class): Update comments.
8759 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8760 get_frame_base_address.
8761 * dwarf2expr.c (execute_stack_op): Ditto.
8762 * Makefile.in (frame_base_h): Define.
8763 (frame.o): Update dependencies.
8764 (frame-base.o): Add dependencies.
8765 (SFILES): Add frame-base.c.
8766 (COMMON_OBS): Add frame-base.o.
8767
3d30e9c2
AC
87682003-04-01 Andrew Cagney <cagney@redhat.com>
8769
8770 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8771 CALL_DUMMY_LENGTH): Ditto.
8772 * gdbarch.c: Re-generate.
8773 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8774 (CALL_DUMMY_LENGTH): Delete macro.
8775 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8776 * arm-tdep.c (arm_gdbarch_init): Ditto.
8777 * avr-tdep.c (avr_gdbarch_init): Ditto.
8778 * cris-tdep.c (cris_gdbarch_init): Ditto.
8779 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8780 * frv-tdep.c (frv_gdbarch_init): Ditto.
8781 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8782 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8783 * i386-tdep.c (i386_gdbarch_init): Ditto.
8784 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8785 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8786 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8787 * mips-tdep.c (mips_gdbarch_init): Ditto.
8788 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8789 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8790 * s390-tdep.c (s390_gdbarch_init): Ditto.
8791 * sh-tdep.c (sh_gdbarch_init): Ditto.
8792 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8793 * v850-tdep.c (v850_gdbarch_init): Ditto.
8794 * vax-tdep.c (vax_gdbarch_init): Ditto.
8795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8796
ce0c7262
CV
87972003-04-01 Corinna Vinschen <vinschen@redhat.com>
8798
8799 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8800
73dd234f
AC
88012003-04-01 Andrew Cagney <cagney@redhat.com>
8802
8803 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8804 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8805 * gdbarch.h, gdbarch.c: Re-generate.
8806 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8807 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8808 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8809 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8810 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8811 * infcmd.c (run_stack_dummy): Simplify assuming
8812 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8813 * infrun.c (handle_inferior_event): Ditto.
8814 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8815 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8816 * arm-tdep.c (arm_gdbarch_init): Ditto.
8817 * avr-tdep.c (avr_gdbarch_init): Ditto.
8818 * cris-tdep.c (cris_gdbarch_init): Ditto.
8819 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8820 * frv-tdep.c (frv_gdbarch_init): Ditto.
8821 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8822 * i386-tdep.c (i386_gdbarch_init): Ditto.
8823 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8824 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8825 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8826 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8827 * mips-tdep.c (mips_gdbarch_init): Ditto.
8828 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8829 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8830 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8831 * s390-tdep.c (s390_gdbarch_init): Ditto.
8832 * sh-tdep.c (sh_gdbarch_init): Ditto.
8833 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8834 * v850-tdep.c (v850_gdbarch_init): Ditto.
8835 * vax-tdep.c (vax_gdbarch_init): Ditto.
8836 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8837
97606a13
DJ
88382003-04-01 Daniel Jacobowitz <drow@mvista.com>
8839
8840 * symfile.c (symfile_relocate_debug_section): Update call to
8841 bfd_simple_get_relocated_section_contents.
8842
e8ab51f7
AC
88432003-03-31 Andrew Cagney <cagney@redhat.com>
8844
8845 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8846 * gdbarch.h, gdbarch.c: Regenerate.
8847 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8848 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8849 available.
8850 * frame.h (generic_fix_call_dummy): Delete declaration.
8851 * dummy-frame.h: Update comment.
8852 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8853 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8854 fix_call_dummy.
8855 * sh-tdep.c (sh_gdbarch_init): Ditto.
8856 * s390-tdep.c (s390_gdbarch_init): Ditto.
8857 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8858 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8860 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8861 * i386-tdep.c (i386_gdbarch_init): Ditto.
8862 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8863 * frv-tdep.c (frv_gdbarch_init): Ditto.
8864 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8865 * cris-tdep.c (cris_gdbarch_init): Ditto.
8866 * avr-tdep.c (avr_gdbarch_init): Ditto.
8867 * arm-tdep.c (arm_gdbarch_init): Ditto.
8868
018d1b48
JB
88692003-03-31 J. Brobecker <brobecker@gnat.com>
8870
8871 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8872 (INIT_FRAME_AP): Likewise.
8873 (EXTRA_FRAME_INFO): Likewise.
8874
e9a2674e
AC
88752003-03-31 Andrew Cagney <cagney@redhat.com>
8876
8877 * gdbarch.sh: Include "symfile.h".
8878 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8879 * gdbarch.h, gdbarch.c: Re-generate.
8880 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8882 call_dummy_address, the default is at entry_point_address.
8883 * v850-tdep.c (v850_gdbarch_init): Ditto.
8884 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8885 * sh-tdep.c (sh_gdbarch_init): Ditto.
8886 * s390-tdep.c (s390_gdbarch_init): Ditto.
8887 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8888 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8889 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8891 * i386-tdep.c (i386_gdbarch_init): Ditto.
8892 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8893 * frv-tdep.c (frv_gdbarch_init): Ditto.
8894 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8895 * cris-tdep.c (cris_gdbarch_init): Ditto.
8896 * arm-tdep.c (arm_gdbarch_init): Ditto.
8897
e8a8712a
AC
88982003-03-31 Andrew Cagney <cagney@redhat.com>
8899
8900 * gdbarch.sh (CALL_DUMMY_P): Delete.
8901 * gdbarch.h, gdbarch.c: Re-generate.
8902 * inferior.h (CALL_DUMMY_P): Delete macro.
8903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8904 * vax-tdep.c (vax_gdbarch_init): Update.
8905 * v850-tdep.c (v850_gdbarch_init): Update.
8906 * sparc-tdep.c (sparc_gdbarch_init): Update.
8907 * sh-tdep.c (sh_gdbarch_init): Update.
8908 * s390-tdep.c (s390_gdbarch_init): Update.
8909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8910 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8911 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8912 * mips-tdep.c (mips_gdbarch_init): Update.
8913 * mcore-tdep.c (mcore_gdbarch_init): Update.
8914 * m68k-tdep.c (m68k_gdbarch_init): Update.
8915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8916 * ia64-tdep.c (ia64_gdbarch_init): Update.
8917 * i386-tdep.c (i386_gdbarch_init): Update.
8918 * h8300-tdep.c (h8300_gdbarch_init): Update.
8919 * frv-tdep.c (frv_gdbarch_init): Update.
8920 * d10v-tdep.c (d10v_gdbarch_init): Update.
8921 * cris-tdep.c (cris_gdbarch_init): Update.
8922 * breakpoint.c (deprecated_frame_in_dummy): Update.
8923 * avr-tdep.c (avr_gdbarch_init): Update.
8924 * alpha-tdep.c (alpha_gdbarch_init): Update.
8925 * arm-tdep.c (arm_gdbarch_init): Update.
8926 * dummy-frame.c (dummy_frame_this_id): Update comments.
8927 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8928 * frame.c (legacy_get_prev_frame): Ditto.
8929 * valops.c (call_function_by_hand): Delete function.
8930 (hand_function_call): Rename to call_function_by_hand
8931
ed234cf8
AC
89322003-03-30 Andrew Cagney <cagney@redhat.com>
8933
8934 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8935 * value.h (struct value): Update comment.
ed234cf8 8936
06c77151
AC
89372003-03-30 Andrew Cagney <cagney@redhat.com>
8938
6c2b5168
AC
8939 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8940 D10V_FP_REGNUM.
8941 (d10v_gdbarch_init): Do not set fp_regnum.
8942
06c77151
AC
8943 * frame.c (get_frame_base): Force ID initialization.
8944 (get_prev_frame): Move computation of the frame ID from here ...
8945 (get_frame_id): ... to here.
8946 (legacy_get_prev_frame): Mark the frame ID as valid.
8947 * frame.h (struct frame_info): Add field "id_p".
8948
97a1a11c
MK
89492003-03-30 Mark Kettenis <kettenis@gnu.org>
8950
8951 * i386-tdep.c (i386_store_struct_return): Removed.
8952 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8953
6c0e89ed
AC
89542003-03-30 Andrew Cagney <cagney@redhat.com>
8955
8956 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8957 * gdbarch.h, gdbarch.c: Regenerate.
8958 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8959 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8960 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8961 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8962 * i386-tdep.c (i386_gdbarch_init): Ditto.
8963 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8964 * cris-tdep.c (cris_gdbarch_init): Ditto.
8965 * vax-tdep.c (vax_gdbarch_init): Ditto.
8966 * s390-tdep.c (s390_gdbarch_init): Ditto.
8967 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8968 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8969 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8970 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8971 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8972 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8973 * sparc-tdep.c (sparc_gdbarch_init): Update.
8974 * sh-tdep.c (sh_gdbarch_init): Update.
8975 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8976 * mips-tdep.c (mips_gdbarch_init): Update.
8977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8978 * ia64-tdep.c (ia64_gdbarch_init): Update.
8979 * frv-tdep.c (frv_gdbarch_init): Update.
8980 * avr-tdep.c (avr_gdbarch_init): Update.
8981 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8982 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8983 instead of when push_dummy_call is not available.
8ffd9b1b 8984
f7dd6af2
AC
89852003-03-30 Andrew Cagney <cagney@redhat.com>
8986
8987 * infttrace.c: Include "gdbthread.h".
8988 (parent_attach_all): Fix function signature.
8989 (call_ptrace): Update call.
8990 * Makefile.in (infttrace.o): Update dependencies.
8991
28f617b3
AC
89922003-03-30 Andrew Cagney <cagney@redhat.com>
8993
8994 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8995 PUSH_RETURN_ADDRESS.
8996 * gdbarch.h, gdbarch.c: Regenerate.
8997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8998 * x86-64-tdep.c (x86_64_init_abi): Update.
8999 * v850-tdep.c (v850_gdbarch_init): Update.
9000 * sparc-tdep.c (sparc_gdbarch_init): Update.
9001 * sh-tdep.c (sh_gdbarch_init): Update.
9002 * s390-tdep.c (s390_gdbarch_init): Update.
9003 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9004 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9005 * mips-tdep.c (mips_gdbarch_init): Update.
9006 * mcore-tdep.c (mcore_gdbarch_init): Update.
9007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9008 * ia64-tdep.c (ia64_gdbarch_init): Update.
9009 * i386-tdep.c (i386_gdbarch_init): Update.
9010 * h8300-tdep.c (h8300_gdbarch_init): Update.
9011 * frv-tdep.c (frv_gdbarch_init): Update.
9012 * cris-tdep.c (cris_gdbarch_init): Update.
9013 * avr-tdep.c (avr_gdbarch_init): Update.
9014 * arm-tdep.c (arm_gdbarch_init): Update.
9015 * valops.c (hand_function_call): Update.
9016
4d628cd7
AC
90172003-03-29 Andrew Cagney <cagney@redhat.com>
9018
9019 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9020 sizeof_call_dummy_words.
9021 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9022 define.
9023 * gdbarch.h: Regenerate.
8ffd9b1b 9024
65e82032
AC
90252003-03-29 Andrew Cagney <cagney@redhat.com>
9026
9027 * infttrace.h: New file.
9028 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9029 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9030 (hpread_read_doc_function_type): Detect an initialized type1.
9031 (hpread_quick_traverse): Initialize mod_name_string.
9032 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9033 (som_solib_get_solib_by_pc): Declare.
9034 (so_lib_thread_start_addr): Declare.
9035 (no_shared_libraries): Declare.
9036 * somread.c (init_import_symbols): Make static. Add forward
9037 declaration.
9038 * config/pa/nm-hppah.h: Include "infttrace.h" for
9039 parent_attach_all.
9040 (hppa_insert_hw_watchpoint): Declare.
9041 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9042 * hppah-nat.c: Include "gdb_string.h".
9043 (parent_attach_all): Delete extern declaration, moved to
9044 "infttrace.h".
9045 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9046 int.
9047 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9048 * Makefile.in (infttrace_h): Define.
9049 (hpread.o): Update dependencies.
9050 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9051 * hppa-hpux-tdep.c: Include "gdb_string.h".
9052 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9053 * infrun.c (handle_inferior_event): Always initialize
9054 stepped_after_stopped_by_watchpoint. Add default and remove
9055 fallthrough in switch statement.
9056 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9057 parameter to int.
9058 (hppa_remove_hw_watchpoint): Ditto.
9059
2c3bbe77
AC
90602003-03-29 Andrew Cagney <cagney@redhat.com>
9061
9062 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9063 offset.
9064
2dd604e7
RE
90652003-03-29 Richard Earnshaw <rearnsha@arm.com>
9066
9067 * arm-tdep.c (arm_push_arguments): Delete.
9068 (struct stack_item): New type.
9069 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9070 (arm_store_struct_return): Delte.
9071 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9072 arm_push_arguments or arm_store_struct_return.
9073
e8933a55
AC
90742003-03-28 Andrew Cagney <cagney@redhat.com>
9075
9076 * Makefile.in (d10v-tdep.o): Update dependencies.
9077 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9078 * d10v-tdep.c: Include "remote.h".
9079 (target_resume_hook): Delete extern declaration.
9080 (target_wait_loop_hook): Ditto.
9081 (tdisassemble_command): Eliminate assignment in "if" conditional.
9082 (d10v_ts2_register_sim_regno): Eliminate call to
9083 legacy_register_sim_regno.
9084 (d10v_ts3_register_sim_regno): Ditto.
9085
6949171e
JJ
90862003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9087
9088 * thread.c: Reindented.
9089 * lin-lwp.c: Ditto.
9090 * linux-proc.c: Ditto.
9091
98c7071f
BR
90922003-03-28 Bob Rossi <bob_rossi@cox.net>
9093
fbe586ae 9094 * MAINTAINERS (write after approval): Add myself.
98c7071f 9095
5edc9ca6
TR
90962003-03-27 Theodore A. Roth <troth@openavr.org>
9097
9098 * objc-exp.y: Add missing semi-colons.
9099
378bfd1b
AC
91002003-03-27 Andrew Cagney <cagney@redhat.com>
9101
9102 * regcache.c (write_sp): Delete function and references.
9103 * inferior.h (write_sp): Delete declaration.
9104 * valops.c (hand_function_call): Replace write_sp with
9105 TARGET_WRITE_SP.
9106 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9107 (sparc_pop_frame): Ditto.
8ffd9b1b 9108
56056df7
AC
91092003-03-27 Andrew Cagney <cagney@redhat.com>
9110
9111 * NEWS: Mention removal of support for hppa*-*-bsd* and
9112 hppa*-*-osf* natives, and hppa*-*-pro* target.
9113 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9114 * config/pa/xm-pa.h: Obsolete file.
9115 * config/pa/xm-hppab.h: Obsolete file.
9116 * config/pa/nm-hppab.h: Obsolete file.
9117 * config/pa/tm-hppab.h: Obsolete file.
9118 * config/pa/tm-hppao.h: Obsolete file.
9119 * config/pa/nm-hppao.h: Obsolete file.
9120 * config/pa/tm-pro.h: Obsolete file.
9121 * config/pa/hppaosf.mt: Obsolete file.
9122 * config/pa/hppaosf.mh: Obsolete file.
9123 * config/pa/hppapro.mt: Obsolete file.
9124 * config/pa/hppabsd.mt: Obsolete file.
9125 * config/pa/hppabsd.mh: Obsolete file.
9126 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9127 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9128 hppa*-*-osf*.
9129
5873a88d
AC
91302003-03-27 Andrew Cagney <cagney@redhat.com>
9131
9132 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9133 push_arguments. Don't set push_return_address or write_sp.
9134 (d10v_push_dummy_call): Replace d10v_push_arguments.
9135 (d10v_push_return_address, d10v_write_sp): Delete function,
9136 handled by push_dummy_call.
9137
b81774d8
AC
91382003-03-26 Andrew Cagney <cagney@redhat.com>
9139
9140 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9141 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9142 regcache and dummy_addr parameters.
9143 * gdbarch.h, gdbarch.c: Re-generate.
9144 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9145 available; assume it will handle stack alignment and return
9146 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9147 legacy_push_arguments.
9148 (legacy_push_arguments): Rename default_push_arguments.
9149 * value.h (legacy_push_arguments): Rename default_push_arguments.
9150 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9151 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9152 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9153 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9154 * config/i386/tm-symmetry.h: Update.
9155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9156 * x86-64-tdep.c (x86_64_init_abi): Update.
9157 * v850-tdep.c (v850_gdbarch_init): Update.
9158 * sparc-tdep.c (sparc_gdbarch_init): Update.
9159 * sh-tdep.c (sh_gdbarch_init): Update.
9160 * s390-tdep.c (s390_gdbarch_init): Update.
9161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9162 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9163 * mips-tdep.c (mips_gdbarch_init): Update.
9164 * mcore-tdep.c (mcore_gdbarch_init): Update.
9165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9166 * ia64-tdep.c (ia64_gdbarch_init): Update.
9167 * i386-tdep.c (i386_gdbarch_init): Update.
9168 * hppa-tdep.c (hppa_gdbarch_init): Update.
9169 * h8300-tdep.c (h8300_gdbarch_init): Update.
9170 * frv-tdep.c (frv_gdbarch_init): Update.
9171 * d10v-tdep.c (d10v_gdbarch_init): Update.
9172 * cris-tdep.c (cris_gdbarch_init): Update.
9173 * avr-tdep.c (avr_gdbarch_init): Update.
9174 * arm-tdep.c (arm_gdbarch_init): Update.
9175 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9176 * alpha-tdep.c (alpha_gdbarch_init): Update.
9177
f541410f
DJ
91782003-03-26 Daniel Jacobowitz <drow@mvista.com>
9179
9180 * signals/signals.c (do_target_signal_to_host): Correct realtime
9181 signal range test.
9182
69f567ae
DJ
91832003-03-26 Daniel Jacobowitz <drow@mvista.com>
9184
9185 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9186 (struct sal_chain, map_catch_names): Remove.
9187 (catch_exception_command_1): Don't call
9188 handle_gnu_4_16_catch_command.
9189
d5d14a5a
DJ
91902003-03-26 Daniel Jacobowitz <drow@mvista.com>
9191
9192 From Mark Dettinger <dettinge@de.ibm.com>:
9193 * dwarf2cfi.c (read_2u): Increment pointer by two.
9194
bdd73e22
DJ
91952003-03-26 Daniel Jacobowitz <drow@mvista.com>
9196
9197 * signals/signals.c: Fix typos in last change.
9198
960cb555
DJ
91992003-03-26 Daniel Jacobowitz <drow@mvista.com>
9200
9201 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9202 not already defined. Use __SIGRTMIN if available.
9203 (target_signal_from_host): Remove SIGRTMIN block.
9204 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9205 the signal is within the realtime range.
9206
f636b87d
AF
92072003-03-25 Adam Fedor <fedor@gnu.org>
9208
9209 * Makefile.in (infrun.o): Add $(language_h)
9210 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9211 for language specific trampolines.
9212 * language.h (struct language_defn): Add skip_trampoline.
9213 (skip_language_trampoline): Declare.
9214 * language.c (unk_lang_trampoline, skip_language_trampoline):
9215 New functions.
9216 (unknown_language_defn, auto_language_defn, local_language_defn):
9217 Add ukn_lang_trampoline.
9218 * ada-lang.c (ada_language_defn): Add NULL for language
9219 specific skip_trampoline.
9220 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9221 scm-lang.c: Likewise.
9222 * objc-lang.c (objc_skip_trampoline): New function.
9223 (objc_language_defn): Add objc_skip_trampoline.
9224
28f617b3 92252003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9226
9227 * frame.c (get_prev_frame): Delay validating a frame's ID -
9228 non-NULL, didn't go backwards - until an attempt to unwind it to
9229 the previous frame.
9230
f933a9c5
AC
92312003-03-25 Andrew Cagney <cagney@redhat.com>
9232
9233 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9234 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9235 * gdbarch.h, gdbarch.c: Re-generate.
9236 * config/sparc/tm-sparc.h
9237 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9238 * sparc-tdep.c (sparc_gdbarch_init): Set
9239 deprecated_extra_stack_alignment_needed.
9240 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9241 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9242 extra_stack_alignment_needed.
9243 * v850-tdep.c (v850_gdbarch_init): Ditto.
9244 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9245 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9246 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9247 * cris-tdep.c (cris_gdbarch_init): Ditto.
9248 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9250
4183d812
AC
92512003-03-25 Andrew Cagney <cagney@redhat.com>
9252
9253 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9254 STORE_STRUCT_RETURN.
9255 * gdbarch.h, gdbarch.c: Regenerate.
9256 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9257 (d10v_push_arguments): Set the struct return register.
9258 (d10v_gdbarch_init): Update.
9259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9260 * x86-64-tdep.c (x86_64_init_abi): Update.
9261 * vax-tdep.c (vax_gdbarch_init): Update.
9262 * v850-tdep.c (v850_gdbarch_init): Update.
9263 * sparc-tdep.c (sparc_gdbarch_init): Update.
9264 * sh-tdep.c (sh_gdbarch_init): Update.
9265 * s390-tdep.c (s390_gdbarch_init): Update.
9266 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9267 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9268 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9269 * mips-tdep.c (mips_gdbarch_init): Update.
9270 * mcore-tdep.c (mcore_gdbarch_init): Update.
9271 * m68k-tdep.c (m68k_gdbarch_init): Update.
9272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9273 * ia64-tdep.c (ia64_gdbarch_init): Update.
9274 * i386-tdep.c (i386_gdbarch_init): Update.
9275 * hppa-tdep.c (hppa_gdbarch_init): Update.
9276 * h8300-tdep.c (h8300_gdbarch_init): Update.
9277 * frv-tdep.c (frv_gdbarch_init): Update.
9278 * cris-tdep.c (cris_gdbarch_init): Update.
9279 * avr-tdep.c (avr_gdbarch_init): Update.
9280 * arm-tdep.c (arm_gdbarch_init): Update.
9281 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9282
1bf6d5cc
AC
92832003-03-25 Andrew Cagney <cagney@redhat.com>
9284
9285 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9286 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9287 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9288 * gdbarch.h, gdbarch.c: Regenerate.
9289 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9290 call_dummy_stack_adjust_p.
9291 * vax-tdep.c (vax_gdbarch_init): Ditto.
9292 * v850-tdep.c (v850_gdbarch_init): Ditto.
9293 * sh-tdep.c (sh_gdbarch_init): Ditto.
9294 * s390-tdep.c (s390_gdbarch_init): Ditto.
9295 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9296 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9297 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9298 * mips-tdep.c (mips_gdbarch_init): Ditto.
9299 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9300 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9301 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9302 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9303 * i386-tdep.c (i386_gdbarch_init): Ditto.
9304 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9305 * frv-tdep.c (frv_gdbarch_init): Ditto.
9306 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9307 * cris-tdep.c (cris_gdbarch_init): Ditto.
9308 * avr-tdep.c (avr_gdbarch_init): Ditto.
9309 * arm-tdep.c (arm_gdbarch_init): Ditto.
9310 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9311 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9312 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9313 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9314 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9315 call_dummy_stack_adjust_p.
9316 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9317 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9318 * sparc-tdep.c (sparc32_push_arguments): Update.
9319 * valops.c (hand_function_call): Update.
9320
71c08af0
CV
93212003-03-25 Corinna Vinschen <vinschen@redhat.com>
9322
9323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9324 set_gdbarch_char_signed.
9325
30757f90
RE
93262003-03-25 Richard Earnshaw <rearnsha@arm.com>
9327
9328 PR cli/548
9329 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9330
03d48a7d
RE
93312003-03-25 Richard Earnshaw <rearnsha@arm.com>
9332
9333 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9334 (_initialize_arm_tdep): Don't set tm_print_insn.
9335
2cf6873c
AF
93362003-03-24 Adam Fedor <fedor@gnu.org>
9337
9338 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9339 * objc-lang.h: Add multiple inclusion protection.
9340 (start_msglist, add_msglist, end_msglist): Additional declarations.
9341
17c0759e
RE
93422003-03-24 Richard Earnshaw <rearnsha@arm.com>
9343
9344 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9345 value was renamed to ARM_FLOAT_SOFT_FPA.
9346
618ce49f
AC
93472003-03-23 Andrew Cagney <cagney@redhat.com>
9348
9349 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9350 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9351 * gdbarch.h, gdbarch.c: Regenerate.
9352 * valops.c (hand_function_call): Update.
9353 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9354 * frame.c (legacy_saved_regs_this_id): Update.
9355 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9356 * dummy-frame.h: Update.
9357 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9358 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9359 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9360 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9361 * config/m68k/tm-sun3.h: Update.
9362 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9364 * x86-64-tdep.c (x86_64_init_abi): Update.
9365 * vax-tdep.c (vax_gdbarch_init): Update.
9366 * v850-tdep.c (v850_gdbarch_init): Update.
9367 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9368 * sh-tdep.c (sh_gdbarch_init): Update.
9369 * s390-tdep.c (s390_gdbarch_init): Update.
9370 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9371 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9372 (frame_get_saved_regs): Update.
9373 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9374 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9375 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9376 * mips-tdep.c (mips_gdbarch_init): Update.
9377 * mcore-tdep.c (mcore_gdbarch_init): Update.
9378 * m68k-tdep.c (m68k_gdbarch_init): Update.
9379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9380 * ia64-tdep.c (ia64_gdbarch_init): Update.
9381 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9382 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9383 (i386_interix_back_one_frame): Update.
9384 * hppa-tdep.c (hppa_gdbarch_init): Update.
9385 (hppa_init_extra_frame_info): Update.
9386 * h8300-tdep.c (h8300_gdbarch_init): Update.
9387 * frv-tdep.c (frv_gdbarch_init): Update.
9388 * cris-tdep.c (cris_gdbarch_init): Update.
9389 * avr-tdep.c (avr_gdbarch_init): Update.
9390 * arm-tdep.c (arm_gdbarch_init): Update.
9391 * alpha-tdep.c (alpha_gdbarch_init): Update.
9392
fd50bc42
RE
93932003-03-22 Richard Earnshaw <rearnsha@arm.com>
9394
9395 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9396 (arm_get_fp_model): Declare.
9397 * arm-tdep.c (fp_model_strings): New string array.
9398 (arm_fp_model, current_fp_model): New variables.
9399 (arm_get_fp_model): New function.
9400 (arm_set_fp): New function.
9401 (set_fp_model_sfunc): New function.
9402 (show_fp_model): New function.
9403 (_initialize_arm_tdep): Add new command to set/show the FPU.
9404 (arm_extract_return_value): Use arm_get_fp_model.
9405 (arm_store_return_value): Likewise.
9406 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9407 to initialize the floating-point data types.
9408 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9409 model is FPA.
9410
26304000
RE
94112003-03-22 Richard Earnshaw <rearnsha@arm.com>
9412
9413 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9414 the current setting of each value.
9415 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9416 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9417 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9418 commands and add new version as subcommands of "set/show arm".
9419
afd7eef0
RE
94202003-03-22 Richard Earnshaw <rearnsha@arm.com>
9421
9422 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9423 (set_arm_command, show_arm_command): New functions.
9424 (_initialize_arm_tdep): Add them.
9425 (num_disassembly_options): Renamed from num_flavor_options.
9426 (valid_disassembly_styles): Renamed from valid_flavors.
9427 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9428 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9429 set_disassembly_flavor_sfunc.
9430 (set_disassembly_style): Renamed from set_disassembly_flavor.
9431 (arm_othernames): Updated.
9432 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9433 command. Add "set/show arm disassembly" commands. Deprecate
9434 "othernames" command.
9435
299a7944
RE
94362003-03-22 Richard Earnshaw <rearnsha@arm.com>
9437
9438 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9439 (arm-tdep.o): Depend on elf_arm_h.
9440
c1dac9e6
RE
94412003-03-22 Richard Earnshaw <rearnsha@arm.com>
9442
9443 * Makefile.in (coff_internal_h): Define.
9444 (arm-tdep.o): Update dependencies.
9445
2702d96c
RE
94462003-03-22 Richard Earnshaw <rearnsha@arm.com>
9447
9448 * arm-tdep.c (prologue_cache): Delete.
9449 (check_prologue_cache, save_prologue_cache): Delete.
9450 (arm_scan_prologue): Don't check or update the prologue_cache.
9451 (arm_gdb_arch_init): Don't initialize it.
9452 (_initialize_arm_tdep): Likewise.
9453
27d5d74b
SC
94542003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9455
9456 * MAINTAINERS (tui): Maintainer of tui code.
9457
1762d96d
CV
94582003-03-21 Corinna Vinschen <vinschen@redhat.com>
9459
9460 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9461 (i386-cygwin-tdep.o): Add dependencies.
9462 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9463 * i386-cygwin-tdep.c: New file.
9464 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9465 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9466
4c2e2391
AC
94672003-03-20 Andrew Cagney <cagney@redhat.com>
9468
f20d38b7
AC
9469 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9470 (handle_inferior_event): Remove code calling
9471 DYNAMIC_TRAMPOLINE_NEXTPC.
9472
0022b738
AC
9473 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9474 already has a full path.
9475
864dbc90
AC
9476 * main.c (gdb_main): Return 1.
9477 (captured_main): Call error to report an invalid interpreter.
9478
4c2e2391
AC
9479 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9480 * alpha-osf1-tdep.c: Include "gdb_string.h".
9481
5ef7553b
JB
94822003-03-19 J. Brobecker <brobecker@gnat.com>
9483
9484 Continuing work to convert the hppa targets to multiarch partial.
9485
9486 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9487 method, now that hppa_push_dummy_frame has a conformant prototype.
9488 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9489 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9490 for the switch to multiarch partial.
9491
7bde8967
KB
94922003-03-19 Kevin Buettner <kevinb@redhat.com>
9493
9494 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9495 when iss is issNull.
9496
b006a9e9
KB
94972003-03-18 Kevin Buettner <kevinb@redhat.com>
9498
9499 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9500 NUM_REGS bounds check.
9501
5e2e9765
KB
95022003-03-18 Kevin Buettner <kevinb@redhat.com>
9503
9504 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9505 * mips-tdep.c (gdb_assert.h): Include.
9506 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9507 (mips_register_name): Handle integer registers explicitly. Add
9508 bounds checking.
9509 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9510 (mips_lsi33k_reg_names): Don't list integer registers; they're
9511 handled by mips_register_name() now.
9512 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9513 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9514 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9515 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9516 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9517
a2867626
AC
95182003-03-18 Andrew Cagney <cagney@redhat.com>
9519
9520 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9521 a void pointer.
9522 * gdbtypes.h (print_scalar_formatted): Update declaration.
9523 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9524
06600e06
JB
95252003-03-18 J. Brobecker <brobecker@gnat.com>
9526
9527 * infrun.c (observer.h): Add #include.
9528 (normal_stop): Add call to observer_notify_normal_stop.
9529 * Makefile.in (infrun.o): Add dependency on observer.h.
9530
7daf4f5b
JB
95312003-03-18 J. Brobecker <brobecker@gnat.com>
9532
9533 Continuing work to convert the hppa targets to multiarch partial.
9534 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9535 parameter. Reformat comment.
9536 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9537 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9538 to match new profile.
9539
3371ccc0
JB
95402003-03-18 J. Brobecker <brobecker@gnat.com>
9541
9542 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9543 appear to be working in any case.
9544
4fbe891e
JB
95452003-03-18 J. Brobecker <brobecker@gnat.com>
9546
9547 * observer.c (observer_test_first_observer): New static variable.
9548 (observer_test_second_observer): Likewise.
9549 (observer_test_third_observer): Likewise.
9550 (observer_test_first_notification_function): New static function.
9551 (observer_test_second_notification_function): Likewise.
9552 (observer_test_third_notification_function): Likewise.
9553
a7ff40e7
JB
95542003-03-17 J. Brobecker <brobecker@gnat.com>
9555
9556 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9557 * somsolib.c (gdb_assert.h): Likewise.
9558 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9559 (somsolib.o): Likewise.
9560
26ca4152
AC
95612003-03-17 Andrew Cagney <cagney@redhat.com>
9562
9563 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9564 BFD. Simplify setting of di.endian.
9565
0a613259
AC
95662003-03-17 Andrew Cagney <cagney@redhat.com>
9567
9568 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9569 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9570
9571 From Elena Zannoni <ezannoni@redhat.com>
9572 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9573 vector and floating-point parameters.
9574 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9575 convention.
9576 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9577
1132738f
FN
95782003-03-17 Fernando Nasser <fnasser@redhat.com>
9579
9580 * MAINTAINERS: Remove my name from several maintainership roles.
9581
6dc42492
AC
95822003-03-17 Andrew Cagney <cagney@redhat.com>
9583
9584 Fix frame off-by-one bug.
9585 * frame-unwind.h (frame_this_id_ftype): Replace
9586 frame_unwind_id_ftype.
9587 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9588 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9589 with "prev_register".
9590 * frame-unwind.c (frame_unwind_find_by_pc): Return
9591 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9592 comment.
9593 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9594 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9595 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9596 (dummy_frame_unwind): Update.
9597 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9598 sentinel_frame_register_unwind.
9599 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9600 (sentinel_frame_unwinder): Update.
9601 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9602 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9603 * frame.c (create_sentinel_frame): Update. Initialize
9604 "prologue_cache" instead of "unwind_cache".
9605 (frame_register_unwind): Call this frame's prev_register with the
9606 next frame and this frame's prologue cache.
9607 (get_prev_frame): Simplify. Always call prev frame's this_id with
9608 this frame and prev frame's prologue cache. Document that this
9609 call is shifted one to the left when compared to the
9610 frame_register_unwind call.
9611 (legacy_saved_regs_prev_register): Replace
9612 frame_saved_regs_register_unwind.
9613 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9614 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9615 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9616 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9617 (d10v_frame_unwind): Update.
9618 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9619 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9620 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9621 "saved_regs" with "this_saved_regs".
9622
efd710d6
AC
96232003-03-16 Andrew Cagney <cagney@redhat.com>
9624
9625 * frame.c (frame_pop): Don't call target_store_registers. Fix
9626 problem reported by Mark Kettenis.
9627
4e259f09
MK
96282003-03-16 Mark Kettenis <kettenis@gnu.org>
9629
9630 * i386-tdep.c (i386_register_type): Renamed from
9631 i386_register_virtual_type. Adjust function signature.
9632 (i386_gdbarch_init): Set register_type instead of
9633 deprecated_max_register_raw_size,
9634 deprecated_max_register_virtual_size and register_virtual_type.
9635
055bb976
AC
96362003-03-14 Andrew Cagney <cagney@redhat.com>
9637
9638 * frame.c (get_prev_frame): When a legacy frame, always call
9639 legacy_get_prev_frame. Simplify unwind code using assumption that
9640 the unwinder is new.
9641 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9642 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9643 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9644
ac2adee5
AC
96452003-03-14 Andrew Cagney <cagney@redhat.com>
9646
9647 * frame.c (get_saved_register): Delete function.
9648 * frame.h (get_saved_register): Delete declaration.
9649 * xstormy16-tdep.c: Update comment.
9650 * regcache.h: Update comments.
9651 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9652 get_saved_register and extract_address, use
9653 frame_read_unsigned_register.
9654 (sparc_frame_saved_pc): Ditto.
9655 (sparc_get_saved_register): Instead of get_saved_register, use
9656 frame_register.
9657 (sparc_pop_frame): Ditto.
9658 * findvar.c: Update comments.
9659 (value_of_register): Call frame_register instead of
9660 get_saved_register.
9661 (value_from_register): Ditto.
9662 * config/sparc/tm-sparc.h: Update comment.
9663 * breakpoint.c: Update comment.
9664
129c1cd6
AC
96652003-03-14 Andrew Cagney <cagney@redhat.com>
9666
9667 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9668 GET_SAVED_REGISTER.
9669 * gdbarch.h, gdbarch.c: Re-generate.
9670 * frame.h: Update comments.
9671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9672 * x86-64-tdep.c (x86_64_init_abi): Update.
9673 * sparc-tdep.c (sparc_gdbarch_init): Update.
9674 * sh-tdep.c (sh_gdbarch_init): Update.
9675 * mips-tdep.c (mips_gdbarch_init): Update.
9676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9677 * cris-tdep.c (cris_gdbarch_init): Update.
9678 * ia64-tdep.c (ia64_gdbarch_init): Update.
9679 * frame.c (frame_register): Update.
9680 (get_saved_register): Update.
9681 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9682
749b82f6
AC
96832003-03-13 Andrew Cagney <cagney@redhat.com>
9684
9685 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9686 * gdbarch.h, gdbarch.c: Regenerate.
9687 * valops.c (hand_function_call): Update comment.
9688 * stack.c (return_command): Update comment.
9689 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9690 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9691 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9692 * x86-64-tdep.c (x86_64_init_abi): Update.
9693 * vax-tdep.c (vax_gdbarch_init): Update.
9694 * v850-tdep.c (v850_gdbarch_init): Update.
9695 * sparc-tdep.c (sparc_gdbarch_init): Update.
9696 * sh-tdep.c (sh_gdbarch_init): Update.
9697 * s390-tdep.c (s390_gdbarch_init): Update.
9698 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9699 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9700 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9701 * mips-tdep.c (mips_gdbarch_init): Update.
9702 * mcore-tdep.c (mcore_gdbarch_init): Update.
9703 * m68k-tdep.c (m68k_gdbarch_init): Update.
9704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9705 * ia64-tdep.c (ia64_gdbarch_init): Update.
9706 * i386-tdep.c (i386_gdbarch_init): Update.
9707 * hppa-tdep.c (hppa_gdbarch_init): Update.
9708 * h8300-tdep.c (h8300_gdbarch_init): Update.
9709 * frv-tdep.c (frv_gdbarch_init): Update.
9710 * cris-tdep.c (cris_gdbarch_init): Update.
9711 * avr-tdep.c (avr_gdbarch_init): Update.
9712 * arm-tdep.c (arm_gdbarch_init): Update.
9713 * alpha-tdep.c (alpha_gdbarch_init): Update.
9714
1594fa56
AC
97152003-03-13 Andrew Cagney <cagney@redhat.com>
9716
9717 * frame.c (legacy_frame_p): New function.
9718 (get_prev_frame): Use legacy_frame_p.
9719 * frame.h (legacy_frame_p): Declare.
9720
7717fda3
V
97212003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9722
fbe586ae 9723 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9724 listing corrected.
9725
0c67cbe9
V
97262003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9727
fbe586ae 9728 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9729
03febf99
AC
97302003-03-12 Andrew Cagney <cagney@redhat.com>
9731
9732 * frame.c (get_prev_frame): Rename the frame parameter to
9733 "this_frame".
9734 (get_next_frame, legacy_get_prev_frame): Ditto.
9735
0a1e1ca1
AC
97362003-03-12 Andrew Cagney <cagney@redhat.com>
9737
9738 * frame.c (get_current_frame): Check target_has_registers before
9739 checking target_has_stack.
9740 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9741 instead of deprecated_selected_frame.
9742 * findvar.c (value_of_register): Pass "frame", not
9743 deprecated_selected_frame, to value_of_builtin_reg.
9744
a66a9c23
AC
97452003-03-12 Andrew Cagney <cagney@redhat.com>
9746
9747 * regcache.c (regcache_cooked_write_signed): New function.
9748 (regcache_cooked_write_unsigned): New function.
9749 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9750 (regcache_cooked_read_signed): Fix regnum in range assertion.
9751 * regcache.h (regcache_cooked_write_signed): Declare.
9752 (regcache_cooked_write_unsigned): Declare.
9753
8bedc050
AC
97542003-03-12 Andrew Cagney <cagney@redhat.com>
9755
9756 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9757 * gdbarch.h, gdbarch.c: Re-generate.
9758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9759 * x86-64-tdep.h: Update.
9760 * x86-64-tdep.c (x86_64_init_abi): Update.
9761 * v850-tdep.c (v850_gdbarch_init): Update.
9762 * sparc-tdep.c (sparc_gdbarch_init): Update.
9763 * sh-tdep.c (sh_gdbarch_init): Update.
9764 * s390-tdep.c (s390_gdbarch_init): Update.
9765 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9766 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9767 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9768 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9769 * mips-tdep.c (mips_gdbarch_init): Update.
9770 * mcore-tdep.c (mcore_gdbarch_init): Update.
9771 * m68k-tdep.c (m68k_gdbarch_init): Update.
9772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9773 * ia64-tdep.c (ia64_gdbarch_init): Update.
9774 * i386-tdep.c (i386_gdbarch_init): Update.
9775 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9776 * hppa-tdep.c (hppa_gdbarch_init): Update.
9777 * h8300-tdep.c (h8300_gdbarch_init): Update.
9778 * frv-tdep.c (frv_gdbarch_init): Update.
9779 * cris-tdep.c (cris_gdbarch_init): Update.
9780 * avr-tdep.c (avr_gdbarch_init): Update.
9781 * arm-tdep.c (arm_gdbarch_init): Update.
9782 * alpha-tdep.c (alpha_gdbarch_init): Update.
9783 * sh-tdep.c (sh_init_extra_frame_info): Update.
9784 (sh64_init_extra_frame_info): Update.
9785 * ns32knbsd-nat.c (frame_num_args): Update.
9786 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9787 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9788 (xstormy16_frame_chain_valid): Update.
9789 * vax-tdep.c (vax_saved_pc_after_call): Update.
9790 * v850-tdep.c (v850_frame_chain): Update.
9791 (v850_pop_frame): Update.
9792 (v850_init_extra_frame_info): Update.
9793 * sparc-tdep.c (setup_arbitrary_frame): Update.
9794 * ns32k-tdep.c (umax_frame_num_args): Update.
9795 * s390-tdep.c (s390_pop_frame_regular): Update.
9796 * mn10300-tdep.c (mn10300_frame_chain): Update.
9797 (mn10300_pop_frame_regular): Update.
9798 (mn10300_init_extra_frame_info): Update.
9799 * mips-tdep.c (mips_init_frame_pc_first): Update.
9800 (mips_frame_chain): Update.
9801 (mips_pop_frame): Update.
9802 * mcore-tdep.c (mcore_frame_chain): Update.
9803 (mcore_pop_frame): Update.
9804 (mcore_init_extra_frame_info): Update.
9805 * arch-utils.c (init_frame_pc_default): Update.
9806 * m68k-tdep.c (isi_frame_num_args): Update.
9807 (delta68_frame_num_args): Update.
9808 (news_frame_num_args): Update.
9809 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9810 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9811 (alpha_frame_chain): Update.
9812 (alpha_pop_frame): Update.
9813 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9814 (hppa_init_extra_frame_info): Update.
9815 (hppa_frame_chain): Update.
9816 (hppa_frame_chain_valid): Update.
9817 * cris-tdep.c (cris_init_extra_frame_info): Update.
9818 * avr-tdep.c (avr_init_extra_frame_info): Update.
9819 * arm-tdep.c (arm_frame_chain_valid): Update.
9820 (arm_init_extra_frame_info): Update.
9821 (arm_pop_frame): Update.
9822 * frame.c (frame_pc_unwind): Update.
9823 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9824 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9825 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9826 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9827 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9828 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9829
7a25a7c1
AC
98302003-03-12 Andrew Cagney <cagney@redhat.com>
9831
9832 Eliminate the need for POP_FRAME.
9833 * frame.c (do_frame_unwind_register): New function.
9834 (frame_pop): When no POP_FRAME, pop the frame using register
9835 unwind and a scratch regcache.
9836 (frame_saved_regs_pop): Delete function.
9837 (trad_frame_unwinder): Update.
9838 * d10v-tdep.c (d10v_frame_pop): Delete function.
9839 (d10v_frame_unwind): Update.
9840 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9841 (sentinel_frame_unwinder): Update.
9842 * dummy-frame.c (dummy_frame_pop): Delete function.
9843 (dummy_frame_unwind): Update.
9844 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9845 (struct frame_unwind): Update.
9846
2f38ef89
KB
98472003-03-11 Kevin Buettner <kevinb@redhat.com>
9848
9849 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9850 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9851 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9852 Do range checks on register number obtained from debugging info.
9853 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9854 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9855 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9856 mapping function.
9857 (do_fp_register_row): Fix typo which caused double type to be
9858 used when attempting to unpack a float.
9859
552f4abf
JB
98602003-03-11 J. Brobecker <brobecker@gnat.com>
9861
9862 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9863
e0d2ae16
AC
98642003-03-11 Andrew Cagney <cagney@redhat.com>
9865
9866 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9867 frame. Problem found by Corinna Vinschen.
9868
ddbfdd06
PM
98692003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9870
9871 * doublest.c (floatformat_from_length): Accept also
9872 the real size of 'long double' type.
9873
088b2ddc 98742003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9875
088b2ddc 9876 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9877 * breakpoint.c (bpstat_copy): Copy the command lines as well
9878 as the old value, to match what is freed in bpstat_clear.
9879
f56f77c1
DC
98802003-03-10 David Carlton <carlton@math.stanford.edu>
9881
9882 * minsyms.c (add_minsym_to_hash_table): Replace
9883 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9884 (compare_minimal_symbols, compact_minimal_symbols)
9885 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9886 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9887 of DEPRECATED_SYMBOL_MATCHES_NAME.
9888 (lookup_minimal_symbol_solib_trampoline): Ditto.
9889
5602984a
AC
98902003-03-10 Andrew Cagney <cagney@redhat.com>
9891
9892 * regcache.h (regcache_cooked_read_ftype): Define.
9893 (regcache_save, regcache_restore): Add a cooked_read parameter.
9894 * regcache.c (regcache_save, regcache_restore): Update.
9895 (do_cooked_read): New function.
9896 (regcache_cpy): Pass do_cooked_read to regcache_save and
9897 regcache_restore.
9898
8bedc050
AC
98992003-03-10 Andrew Cagney <cagney@redhat.com>
9900
9901 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9902 * gdbarch.h, gdbarch.c: Re-generate.
9903 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9904 * x86-64-tdep.h: Update.
9905 * x86-64-tdep.c (x86_64_init_abi): Update.
9906 * v850-tdep.c (v850_gdbarch_init): Update.
9907 * sparc-tdep.c (sparc_gdbarch_init): Update.
9908 * sh-tdep.c (sh_gdbarch_init): Update.
9909 * s390-tdep.c (s390_gdbarch_init): Update.
9910 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9911 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9912 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9913 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9914 * mips-tdep.c (mips_gdbarch_init): Update.
9915 * mcore-tdep.c (mcore_gdbarch_init): Update.
9916 * m68k-tdep.c (m68k_gdbarch_init): Update.
9917 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9918 * ia64-tdep.c (ia64_gdbarch_init): Update.
9919 * i386-tdep.c (i386_gdbarch_init): Update.
9920 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9921 * hppa-tdep.c (hppa_gdbarch_init): Update.
9922 * h8300-tdep.c (h8300_gdbarch_init): Update.
9923 * frv-tdep.c (frv_gdbarch_init): Update.
9924 * cris-tdep.c (cris_gdbarch_init): Update.
9925 * avr-tdep.c (avr_gdbarch_init): Update.
9926 * arm-tdep.c (arm_gdbarch_init): Update.
9927 * alpha-tdep.c (alpha_gdbarch_init): Update.
9928 * sh-tdep.c (sh_init_extra_frame_info): Update.
9929 (sh64_init_extra_frame_info): Update.
9930 * ns32knbsd-nat.c (frame_num_args): Update.
9931 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9932 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9933 (xstormy16_frame_chain_valid): Update.
9934 * vax-tdep.c (vax_saved_pc_after_call): Update.
9935 * v850-tdep.c (v850_frame_chain): Update.
9936 (v850_pop_frame): Update.
9937 (v850_init_extra_frame_info): Update.
9938 * sparc-tdep.c (setup_arbitrary_frame): Update.
9939 * ns32k-tdep.c (umax_frame_num_args): Update.
9940 * s390-tdep.c (s390_pop_frame_regular): Update.
9941 * mn10300-tdep.c (mn10300_frame_chain): Update.
9942 (mn10300_pop_frame_regular): Update.
9943 (mn10300_init_extra_frame_info): Update.
9944 * mips-tdep.c (mips_init_frame_pc_first): Update.
9945 (mips_frame_chain): Update.
9946 (mips_pop_frame): Update.
9947 * mcore-tdep.c (mcore_frame_chain): Update.
9948 (mcore_pop_frame): Update.
9949 (mcore_init_extra_frame_info): Update.
9950 * arch-utils.c (init_frame_pc_default): Update.
9951 * m68k-tdep.c (isi_frame_num_args): Update.
9952 (delta68_frame_num_args): Update.
9953 (news_frame_num_args): Update.
9954 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9955 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9956 (alpha_frame_chain): Update.
9957 (alpha_pop_frame): Update.
9958 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9959 (hppa_init_extra_frame_info): Update.
9960 (hppa_frame_chain): Update.
9961 (hppa_frame_chain_valid): Update.
9962 * cris-tdep.c (cris_init_extra_frame_info): Update.
9963 * avr-tdep.c (avr_init_extra_frame_info): Update.
9964 * arm-tdep.c (arm_frame_chain_valid): Update.
9965 (arm_init_extra_frame_info): Update.
9966 (arm_pop_frame): Update.
9967 * frame.c (frame_pc_unwind): Update.
9968 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9969 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9970 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9971 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9972 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9973 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9974
12cc2063
AC
99752003-03-10 Andrew Cagney <cagney@redhat.com>
9976
9977 * gdbarch.sh (gdbarch_unwind_pc): New method.
9978 * gdbarch.h, gdbarch.c: Regenerate.
9979 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9980 but use read_pc and FRAME_SAVED_PC as fall backs.
9981 (frame_saved_regs_pc_unwind): Delete function.
9982 (trad_frame_unwinder): Update.
9983 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9984 (struct frame_unwind): Update.
9985 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9986 (dummy_frame_unwind): Update.
9987 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9988 (sentinel_frame_unwinder): Update.
9989 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9990 (d10v_frame_unwind): Update.
9991 (d10v_unwind_pc): New function.
9992 (d10v_gdbarch_init): Set unwind_pc.
9993
ef840a37
AC
99942003-03-10 Andrew Cagney <cagney@redhat.com>
9995
a2ce2e56
AC
9996 * gdbarch.h: Re-generate.
9997
ef840a37
AC
9998 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9999 PC.
10000 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10001 the PC register.
10002
08f3424b
MK
100032003-03-08 Mark Kettenis <kettenis@gnu.org>
10004
10005 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10006
1248ede2
AC
100072003-03-08 Andrew Cagney <cagney@redhat.com>
10008
10009 * cli-out.c: Update copyright.
10010 (cli_out_data): Define typedef. Use instead of ui_out_data.
10011
f49bacc8
AC
100122003-03-08 Andrew Cagney <cagney@redhat.com>
10013
10014 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10015 the result.
10016
9b05f993
AC
100172003-03-07 Andrew Cagney <cagney@redhat.com>
10018
10019 * gdbarch.sh: Don't generate two macro definitions when an
10020 undefined macro taking no arguments.
10021 * gdbarch.h: Regenerate.
8ffd9b1b 10022
166f4c7b
ML
100232002-03-07 Michal Ludvig <mludvig@suse.cz>
10024
10025 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10026 (x86_64_unwind_dummy_id): New functions.
10027 (x86_64_init_abi): Register these two new functions.
10028
6d686a84
ML
100292003-03-07 Michal Ludvig <mludvig@suse.cz>
10030
10031 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10032 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10033 separate function.
10034 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10035
6314f104
AC
100362003-03-05 Andrew Cagney <cagney@redhat.com>
10037
10038 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10039 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10040 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10041 to use unwind_dummy_id when a dummy frame.
10042 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10043 predicate.
10044 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10045
ceea5145
AC
100462003-03-05 Andrew Cagney <cagney@redhat.com>
10047
10048 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10049 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10050 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10051 values.
10052
0d843116
AC
100532003-03-05 Andrew Cagney <cagney@redhat.com>
10054
10055 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10056 (struct d10v_unwind_cache): Delete field "frameless". Replace
10057 "next_addr" with "sp_offset". Add "r11_offset".
10058 (d10v_frame_unwind_cache): Update.
10059 (prologue_find_regs): Update. When "mv r11, sp", save the
10060 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10061 RN was saved in r11_offset.
10062
b2579786
AC
100632003-03-05 Andrew Cagney <cagney@redhat.com>
10064
10065 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10066 cached PC value in the next frame.
10067
218e5956
AC
100682003-03-05 Andrew Cagney <cagney@redhat.com>
10069
10070 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10071 "id_unwind_cache" with "id".
10072 (frame_id_unwind): Delete declaration.
10073 * frame.c (frame_id_unwind): Delete function.
10074 (get_prev_frame): Call the frame id unwind method directly. Store
10075 the returned next frame's ID value in NEXT_FRAME. Note that there
10076 is a problem with the wrong unwind ID being called with the wrong
10077 unwind cache.
10078
ed363b1b
DJ
100792003-03-05 Daniel Jacobowitz <drow@mvista.com>
10080
10081 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10082
fe1f4a5e
DJ
100832003-03-05 James Ingham <jingham@apple.com>
10084 Daniel Jacobowitz <drow@mvista.com>
10085
10086 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10087 (auto_cp_abi): New variable.
10088 (current_cp_abi, num_cp_abis): Make static.
10089 (CP_ABI_MAX): Define.
10090 (cp_abis): Turn into an array.
10091 (value_virtual_fn_field): Fix formatting.
10092 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10093 takes a pointer.
10094 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10095 (list_cp_abis, _initialize_cp_abi): New functions.
10096 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10097 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10098 switch_to_cp_abi. Update prototype for register_cp_abi.
10099 * Makefile.in (cp-abi.o): Update dependencies.
10100 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10101 instead of switch_to_cp_abi.
10102 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10103 register_cp_abi.
10104 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10105 register_cp_abi.
10106 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10107
e4adbba9
DJ
101082003-03-05 Daniel Jacobowitz <drow@mvista.com>
10109
10110 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10111 * dwarf2loc.c: Include "regcache.h".
10112 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10113 register_size.
10114 * Makefile.in (dwarf2loc.o): Update dependencies.
10115
91ccbfc1
TR
101162003-03-04 Theodore A. Roth <troth@openavr.org>
10117
10118 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10119 number of io registers reported by remote target is not a multiple of
10120 step.
10121
3d4e8fd2
DC
101222003-03-04 David Carlton <carlton@math.stanford.edu>
10123
10124 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10125 (lookup_symbol_aux_psymtabs): Update call to
10126 lookup_partial_symbol.
10127 (lookup_transparent_type, find_main_psymtab)
10128 (make_symbol_overload_list): Ditto.
10129
ed42d87b
KH
101302003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10131
10132 * MAINTAINERS (Write after approval): Update my email address.
10133
a0ed5532
AC
101342003-03-03 Andrew Cagney <cagney@redhat.com>
10135
10136 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10137 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10138 predicate. Replace MAX_REGISTER_RAW_SIZE.
10139 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10140 MAX_REGISTER_VIRTUAL_SIZE.
10141 * regcache.c (legacy_max_register_raw_size): New function.
10142 (legacy_max_register_virtual_size): New function.
10143 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10144 (MAX_REGISTER_RAW_SIZE): Define.
10145 (legacy_max_register_raw_size): Declare.
10146 (legacy_max_register_virtual_size): Declare.
10147 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10148 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10149 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10150 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10151 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10152 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10153 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10154 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10155 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10156 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10157 * vax-tdep.c (vax_gdbarch_init): Update.
10158 * v850-tdep.c (v850_gdbarch_init): Update.
10159 * sparc-tdep.c (sparc_gdbarch_init): Update.
10160 * sh-tdep.c (sh_gdbarch_init): Update.
10161 * s390-tdep.c (s390_gdbarch_init): Update.
10162 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10163 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10164 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10165 * mips-tdep.c (mips_gdbarch_init): Update.
10166 * mcore-tdep.c (mcore_gdbarch_init): Update.
10167 * m68k-tdep.c (m68k_gdbarch_init): Update.
10168 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10169 * ia64-tdep.c (ia64_gdbarch_init): Update.
10170 * i386-tdep.c (i386_gdbarch_init): Update.
10171 * hppa-tdep.c (hppa_gdbarch_init): Update.
10172 * h8300-tdep.c (h8300_gdbarch_init): Update.
10173 * frv-tdep.c (frv_gdbarch_init): Update.
10174 * cris-tdep.c (cris_gdbarch_init): Update.
10175 * avr-tdep.c (avr_gdbarch_init): Update.
10176 * arm-tdep.c (arm_gdbarch_init): Update.
10177 * alpha-tdep.c (alpha_gdbarch_init): Update.
10178 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10179 max_register_raw_size or max_register_virtual_size.
10180
8e437497
DC
101812003-03-03 David Carlton <carlton@math.stanford.edu>
10182
10183 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10184 SYMBOL_MATCHES_NAME, add comment.
10185 (SYMBOL_MATCHES_NATURAL_NAME): New.
10186 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10187 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10188 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10189 * symtab.c (lookup_partial_symbol): Use
10190 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10191 unhelpful comment.
10192 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10193 SYMBOL_MATCHES_NAME.
10194 Fix for PR c++/33.
10195
25120b0d
DC
101962003-03-03 David Carlton <carlton@math.stanford.edu>
10197
10198 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10199 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10200 by regexp matching against SYMBOL_NATURAL_NAME.
10201
78a11fb4
DC
102022003-03-03 David Carlton <carlton@math.stanford.edu>
10203
10204 * linespec.c (find_method): Extract code into collect_methods.
10205 (collect_methods): New.
10206
645dd519
MK
102072003-03-02 Mark Kettenis <kettenis@gnu.org>
10208
b4700d91
MK
10209 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10210 get_frame_base.
10211
645dd519
MK
10212 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10213 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10214
0aa7e1aa
SC
102152003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10216
8ffd9b1b 10217 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10218 and not regnum when summing the size of all registers up to regnum.
10219
f30ee0bc
AC
102202003-03-01 Andrew Cagney <cagney@redhat.com>
10221
10222 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10223 FRAME_INIT_SAVED_REGS.
10224 * gdbarch.h, gdbarch.c: Regenerate.
10225 * stack.c (frame_info): Update.
10226 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10227 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10228 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10229 * ns32k-tdep.c (ns32k_pop_frame): Update.
10230 * mips-tdep.c (mips_pop_frame): Update.
10231 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10232 * ia64-tdep.c (ia64_frame_chain): Update.
10233 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10234 (ia64_frameless_function_invocation): Update.
10235 (ia64_init_extra_frame_info): Update.
10236 (ia64_pop_frame_regular): Update.
10237 * frame.h (struct frame_info): Update comment.
10238 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10239 * frame.c (frame_saved_regs_register_unwind): Update.
10240 (frame_saved_regs_register_unwind): Update.
10241 (deprecated_generic_get_saved_register): Update.
10242 * cris-tdep.c: Update comment.
10243 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10244 Rename macro.
10245 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10246 * x86-64-tdep.c (x86_64_init_abi): Update.
10247 * vax-tdep.c (vax_gdbarch_init): Update.
10248 * v850-tdep.c (v850_gdbarch_init): Update.
10249 * sparc-tdep.c (sparc_gdbarch_init): Update.
10250 * sh-tdep.c (sh_gdbarch_init): Update.
10251 * s390-tdep.c (s390_gdbarch_init): Update.
10252 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10253 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10254 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10255 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10256 * mips-tdep.c (mips_gdbarch_init): Update.
10257 * mcore-tdep.c (mcore_gdbarch_init): Update.
10258 * m68k-tdep.c (m68k_gdbarch_init): Update.
10259 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10260 * ia64-tdep.c (ia64_gdbarch_init): Update.
10261 * i386-tdep.c (i386_gdbarch_init): Update.
10262 * frv-tdep.c (frv_gdbarch_init): Update.
10263 * avr-tdep.c (avr_gdbarch_init): Update.
10264 * arm-tdep.c (arm_gdbarch_init): Update.
10265 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10266
42fa7c0f
AC
102672003-03-01 Andrew Cagney <cagney@redhat.com>
10268
10269 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10270 option enum and switch. When no windows, set the interpreter to
10271 INTERP_CONSOLE.
8ffd9b1b 10272
49c7e338
AC
102732003-03-01 Andrew Cagney <cagney@redhat.com>
10274
10275 * main.c (captured_main): Replace magic option characters with an
10276 enum.
10277
e9582e71
AC
102782003-03-01 Andrew Cagney <cagney@redhat.com>
10279
10280 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10281 INIT_EXTRA_FRAME_INFO.
10282 * gdbarch.h, gdbarch.c: Regenerate.
10283 * arm-tdep.c: Update comments.
10284 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10285 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10286 * frame.h, avr-tdep.c: Ditto.
10287 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10288 (create_new_frame, legacy_get_prev_frame): Ditto.
10289 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10290 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10292 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10293 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10294 * v850-tdep.c (v850_gdbarch_init): Ditto.
10295 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10296 * sh-tdep.c (sh_gdbarch_init): Ditto.
10297 * s390-tdep.c (s390_gdbarch_init): Ditto.
10298 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10299 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10300 * mips-tdep.c (mips_gdbarch_init): Ditto.
10301 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10303 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10304 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10305 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10306 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10307 * frv-tdep.c (frv_gdbarch_init): Ditto.
10308 * cris-tdep.c (cris_gdbarch_init): Ditto.
10309 * avr-tdep.c (avr_gdbarch_init): Ditto.
10310 * arm-tdep.c (arm_gdbarch_init): Ditto.
10311 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10312 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10313
35cac7cf
AC
103142003-03-01 Andrew Cagney <cagney@redhat.com>
10315
10316 * gdbarch.sh (register_type): New function with predicate.
10317 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10318 * gdbarch.h, gdbarch.c: Re-generate.
10319 * arch-utils.c (generic_register_byte): Use generic_register_size.
10320 (generic_register_size): When available, use
10321 gdbarch_register_type.
10322 * regcache.c (init_regcache_descr): When available, initialize the
10323 register type array using gdbarch_register_type. If the
10324 architecture supplies gdbarch_register_type, do not use the legacy
10325 regcache layout.
10326 * d10v-tdep.c (d10v_register_type): Replace
10327 d10v_register_virtual_type.
10328 (d10v_gdbarch_init): Set register_type instead of
10329 register_virtual_type.
10330
7b83296f
AC
103312003-03-01 Andrew Cagney <cagney@redhat.com>
10332
10333 * Makefile.in (ax-gdb.o): Update dependencies.
10334 * ax-gdb.c: Include "regcache.h".
10335 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10336 * findvar.c (value_of_register): Ditto.
10337 * infcmd.c (default_print_registers_info): Ditto.
10338
eadc1c87
MK
103392003-03-01 Mark Kettenis <kettenis@gnu.org>
10340
10341 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10342 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10343
14143612
MK
103442003-03-01 Mark Kettenis <kettenis@gnu.org>
10345
10346 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10347 of STREQ.
10348
a55cc764
DJ
103492003-02-28 Daniel Jacobowitz <drow@mvista.com>
10350
10351 * Makefile.in (dwarf2loc.o): Update dependencies.
10352 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10353 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10354 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10355 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10356 (locexpr_tracepoint_var_ref): New function.
10357 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10358
08a617da
AC
103592003-02-28 Andrew Cagney <cagney@redhat.com>
10360
10361 * regcache.c (register_size): New function.
10362 * regcache.h (register_size): Declare
10363 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10364 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10365
4224873a
DC
103662003-02-28 David Carlton <carlton@math.stanford.edu>
10367
10368 * linespec.c (decode_compound): Extract code into find_method.
10369 (find_method): New.
10370
ccdc5d7f
JB
103712003-02-28 J. Brobecker <brobecker@gnat.com>
10372
10373 * Makefile.in: Add rules to build and link in observer.o.
10374
974e8ced
JB
103752003-02-27 J. Brobecker <brobecker@gnat.com>
10376
10377 * observer.c: Minor comments edits.
10378
7a28f973
JB
103792003-02-27 J. Brobecker <brobecker@gnat.com>
10380
10381 * observer.h, observer.c: New file.
10382
27cddce2
AC
103832003-02-27 Andrew Cagney <cagney@redhat.com>
10384
10385 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10386
b94a41a1
SC
103872003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10388
10389 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10390 (M6812_OP_STS_EXT): Likewise.
10391 (m6811_prologue): Use the above to recognize prologue.
10392 (m6812_prologue): Likewise.
10393
c8be8951
DC
103942003-02-27 David Carlton <carlton@math.stanford.edu>
10395
10396 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10397 SYMBOL_PRINT_NAME.
10398 (compare_psymbols): Ditto.
10399 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10400
d05bb1fc
MS
104012003-02-27 Michael Snyder <msnyder@redhat.com>
10402
4e845cd3
MS
10403 * f-lang.c (build_fortran_types): New function.
10404 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10405 * doublest.c (extract_floating): Fix warning text.
10406
f3824013
AC
104072003-02-27 Andrew Cagney <cagney@redhat.com>
10408
10409 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10410 predicate. Replaces PUSH_DUMMY_FRAME.
10411 * gdbarch.h, gdbarch.c: Regnerate.
10412 * valops.c (hand_function_call): Update. Call
10413 generic_push_dummy_frame directly.
10414 * vax-tdep.c (vax_gdbarch_init): Update.
10415 * sparc-tdep.c (sparc_gdbarch_init): Update.
10416 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10417 * m68k-tdep.c (m68k_gdbarch_init): Update.
10418 * hppa-tdep.c (hppa_gdbarch_init): Update.
10419 * alpha-tdep.c (alpha_gdbarch_init): Update.
10420 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10421 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10422 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10424 push_dummy_frame to generic_push_dummy_frame.
10425 * v850-tdep.c (v850_gdbarch_init): Ditto.
10426 * sh-tdep.c (sh_gdbarch_init): Ditto.
10427 * s390-tdep.c (s390_gdbarch_init): Ditto.
10428 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10429 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10430 * mips-tdep.c (mips_gdbarch_init): Ditto.
10431 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10433 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10434 * i386-tdep.c (i386_gdbarch_init): Ditto.
10435 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10436 * frv-tdep.c (frv_gdbarch_init): Ditto.
10437 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10438 * cris-tdep.c (cris_gdbarch_init): Ditto.
10439 * avr-tdep.c (avr_gdbarch_init): Ditto.
10440 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10441
ad188201
KB
104422003-02-26 Kevin Buettner <kevinb@redhat.com>
10443
10444 * mips-tdep.c (show_mips_abi): New function.
10445 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10446 command ``show mips abi''.
10447
6b37567a 104482003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10449
6b37567a 10450 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10451 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10452 more sline entries have been seen for the function.
10453
d3e0a5bf
MC
104542003-02-26 Michael Chastain <mec@shout.net>
10455
10456 * configure: Regenerate with autoconf 000227.
10457
18972eea
MC
104582003-02-26 Michael Chastain <mec@shout.net>
10459
10460 Close PR build/660.
10461 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10462 for old libc5/glibc.
10463 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10464
0bbde931
KW
104652003-02-26 Kris Warkentin <kewarken@qnx.com>
10466
10467 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10468 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10469
27ca5dad
MC
104702003-02-26 Michael Chastain <mec@shout.net>
10471
10472 * configure.in: New variable HAVE_UINTPTR_T.
10473 * configure, config.in: Regenerated.
10474
6f88d630
DJ
104752003-02-26 Daniel Jacobowitz <drow@mvista.com>
10476
10477 Fix PR build/1097.
10478 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10479
b14185ce
AC
104802003-02-25 Andrew Cagney <cagney@redhat.com>
10481
10482 * frame.c (get_prev_frame): Add comment on check for
10483 inside_entry_func. Only check for inside_entry_file when not a
10484 dummy and not a sentinel. Check that the new frame is not inner
10485 to the old frame.
10486
ac2bd0a9
AC
104872003-02-25 Andrew Cagney <cagney@redhat.com>
10488
10489 * frame.c (frame_debug): New variable.
10490 (_initialize_frame): Add "set/show debug frame" command.
10491 (get_prev_frame): When frame_debug, print reason why unwind
10492 failed.
10493
b18a0fd2
MC
104942003-02-25 Michael Chastain <mec@shout.net>
10495
10496 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10497 to avoid uintptr_t definition problems.
10498
22abf04a
DC
104992003-02-25 David Carlton <carlton@math.stanford.edu>
10500
10501 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10502 (SYMBOL_LINKAGE_NAME): Ditto.
10503 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10504 SYMBOL_LINKAGE_NAME.
10505 (struct general_symbol_info): Expand comment.
10506 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10507 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10508 (SYMBOL_MATCHES_REGEXP): Ditto.
10509 * symtab.c (symbol_natural_name): New function.
10510 * objfiles.h: Replace all uses of SYMBOL_NAME by
10511 DEPRECATED_SYMBOL_NAME.
10512 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10513 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10514 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10515 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10516 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10517 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10518 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10519 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10520 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10521 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10522 * ada-exp.y: Ditto.
10523 * ada-exp.y: Update copyright.
10524 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10525 * cp-valprint.c: Ditto.
10526
1a5848f6
JJ
105272003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10528
10529 * infptrace.c (detach): Do not flag error if ptrace detach fails
10530 and errno is set to ESRCH.
10531
7343d46a
AC
105322003-02-24 Andrew Cagney <cagney@redhat.com>
10533
10534 * infptrace.c (udot_info): Change type of udot_off to long. Use
10535 paddr when printing udot_off's value.
10536
49fa1dc2
DC
105372003-02-24 David Carlton <carlton@math.stanford.edu>
10538
10539 * symtab.c (make_symbol_overload_list): Only read in partial
10540 symtabs containing a matching partial symbol.
10541
0fe19209
DC
105422003-02-24 David Carlton <carlton@math.stanford.edu>
10543
10544 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10545 do the comparison, not strcmp.
10546 * symfile.c (compare_psymbols): Ditto.
10547 * defs.h: Declare strcmp_iw_ordered.
10548 * utils.c (strcmp_iw_ordered): New function.
10549
8e3ee7b5
JB
105502003-02-24 Jim Blandy <jimb@redhat.com>
10551
10552 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10553 support, shared libs): Remove my name from here, to better reflect
10554 reality.
10555
7df1a324
KW
105562003-02-24 Kris Warkentin <kewarken@qnx.com>
10557
10558 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10559 (target_ops): Add to_have_continuable_watchpoint.
10560 * target.c (update_current_target): Add INHERIT line for
10561 to_have_continuable_watchpoint.
10562 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10563 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10564 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10565 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10566
d1c76907
EZ
105672003-02-24 Elena Zannoni <ezannoni@redhat.com>
10568
10569 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10570 maintainership.
10571
2610b0bf
KW
105722003-02-24 Kris Warkentin <kewarken@qnx.com>
10573
f46169db
KW
10574 * solib.c (solib_open): Call target defined search function after
10575 failing with solib-search-path.
10576 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10577 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10578
9a3c34fe
KW
105792003-02-24 Kris Warkentin <kewarken@qnx.com>
10580
f46169db 10581 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10582
2417dd25
SC
105832003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10584
10585 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10586
b631436b
SC
105872003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10588
10589 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10590 (m68hc11_add_reggroups): New function.
10591 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10592 (m68hc11_gdbarch_init): Install the reggroups.
10593 (_initialize_m68hc11_tdep): Initialize them.
10594
0aa8c1e4
JW
105952003-02-21 James E Wilson <wilson@tuliptree.org>
10596
10597 * MAINTAINERS: Update my email address.
10598
50ceaba5
DC
105992003-02-21 David Carlton <carlton@math.stanford.edu>
10600
10601 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10602
4c2df51b
DJ
106032003-02-21 Daniel Jacobowitz <drow@mvista.com>
10604
10605 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10606 * symtab.h: Add opaque declarations of struct axs_value and
10607 struct agent_expr.
10608 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10609 (struct location_funcs): New type.
10610 (struct symbol): Add "loc" to aux_value.
10611 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10612 * dwarf2read.c: Include "dwarf2expr.h".
10613 (dwarf2_symbol_mark_computed): New function.
10614 (read_func_scope): Use it.
10615 (var_decode_location): New function.
10616 (new_symbol): Use it.
10617 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10618
10619 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10620 (dwarf2expr_h, dwarf2loc_h): New variables.
10621 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10622 (dwarf2expr.o, dwarf2loc.o): New rules.
10623 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10624 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10625 LOC_COMPUTED_ARG.
10626 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10627 * m2-exp.y (yylex): Likewise.
10628 * printcmd.c (address_info, print_frame_args): Likewise.
10629 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10630 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10631 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10632 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10633 * symtab.c (lookup_block_symbol): Likewise.
10634
5784d15e
AF
106352003-02-20 Adam Fedor <fedor@gnu.org>
10636
10637 * symtab.h: Remove objc_specific struct
10638 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10639 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10640 Have language_objc use cplus_specific struct.
10641
d4cad8db
TT
106422003-02-20 Tom Tromey <tromey@redhat.com>
10643
10644 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10645 TYPE_NAME, when printing a String value. PR java/1075.
10646
2f9a90b4
AF
106472003-02-20 Adam Fedor <fedor@gnu.org>
10648
d38074a8 10649 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10650 * objc-lang.c (find_methods): Make static.
2f9a90b4 10651
6f17862b
CF
106522003-02-20 Christopher Faylor <cgf@redhat.com>
10653
10654 * win32-nat.c (get_image_name): Check return value from
10655 ReadProcessMemory.
10656 (child_xfer_memory): Ditto.
10657
715d1656
AO
106582003-02-20 Alexandre Oliva <aoliva@redhat.com>
10659
10660 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10661 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10662 '${exec_prefix}' (in addition to the expansion thereof) as
10663 relocatable.
10664 * configure: Rebuilt.
10665
b1262a02
DC
106662003-02-20 David Carlton <carlton@math.stanford.edu>
10667
10668 * symtab.c (search_symbols): Revert the search_symbols part of my
10669 2002-12-23 patch. Add comment.
10670
7134143f
DJ
106712002-02-20 Daniel Jacobowitz <drow@mvista.com>
10672
10673 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10674 * dbxread.c (elfstab_build_psymtabs): Don't call
10675 install_minimal_symbols.
10676 (stabsect_build_psymtabs): Likewise.
10677 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10678 earlier.
10679 * somread.c (som_symfile_read): Call install_minimal_symbols
10680 and do_cleanups earlier.
10681 * nlmread.c (nlm_symfile_read): Likewise.
10682 * mdebugread.c (elfmdebug_build_psymtabs): Call
10683 install_minimal_symbols and make appropriate cleanups.
10684
cf466558
KB
106852003-02-20 Kevin Buettner <kevinb@redhat.com>
10686
10687 * solib.c (reload_shared_libraries): New function.
10688 (_initialize_solib): Add callbacks for ``set solib-search-path''
10689 and ``set solib-absolute-prefix''.
10690
de5ad195
DC
106912003-02-20 David Carlton <carlton@math.stanford.edu>
10692
10693 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10694 expand comment.
10695 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10696 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10697 * ada-typeprint.c (ada_typedef_print): Ditto.
10698 * ax-gdb.c (gen_var_ref): Ditto.
10699 * breakpoint.c (print_one_breakpoint): Ditto.
10700 * buildsym.c (finish_block): Ditto.
10701 * c-valprint.c (c_val_print): Ditto.
10702 * expprint.c (print_subexp): Ditto.
10703 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10704 * infcmd.c (jump_command): Ditto.
10705 * linespec.c (decode_line_2, decode_compound): Ditto.
10706 * maint.c (maintenance_translate_address): Ditto.
10707 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10708 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10709 Ditto.
8ffd9b1b
AJ
10710 * p-valprint.c (pascal_val_print): Ditto.
10711 * stabsread.c (define_symbol): Ditto.
de5ad195 10712 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10713 (print_frame_arg_vars, return_command): Ditto.
10714 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10715 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10716 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10717 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10718 (rbreak_command): Ditto.
10719 * tracepoint.c (tracepoints_info): Ditto.
10720 * typeprint.c (typedef_print): Ditto.
10721 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10722 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10723 * ada-typeprint.c: Update Copyright.
10724 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10725 * tracepoint.c, cli/cli-cmds.c: Ditto.
10726
f796e4be
KB
107272003-02-20 Kevin Buettner <kevinb@redhat.com>
10728
10729 * frame.c (generic_unwind_get_saved_register): Make non-static.
10730 * frame.h (generic_unwind_get_saved_register): Declare.
10731 * mips-tdep.c (read_next_frame_reg): Fetch register from
10732 current regcache when frame is NULL.
10733 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10734 that must be NULL.
10735 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10736 instead of frame_register_unwind().
10737
836cc9f4
AC
107382003-02-20 Andrew Cagney <ac131313@redhat.com>
10739
10740 * remote-sim.c (gdbsim_insert_breakpoint)
10741 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10742 code.
10743
501eef12
AC
107442003-02-20 Andrew Cagney <ac131313@redhat.com>
10745
10746 * remote.c (_initialize_remote): Add commands "set/show remote
10747 hardware-watchpoint-limit" and "set/show remote
10748 hardware-breakpoint-limit".
10749 (remote_hw_watchpoint_limit): Initialize to -1.
10750 (remote_hw_breakpoint_limit): Ditto.
10751 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10752
1b6bc7e0
CF
107532003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10754
10755 * coff-pe-read.c: New file - support reading of minimal symbols from a
10756 portable executable using the export table.
10757 * coff-pe-read.h: New file.
10758 * coffread.c: Include coff-pe-read.h.
10759 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10760 debugging symbols found.
10761 * Makefile.in (SFILES): Add coff-pe-read.o.
10762 (coff_pe_read_h): Define.
10763 (COMMON_OBS): Add coff-pe-read.o.
10764 (coffread.o): Add coff_pe_read_h dependency.
10765 (coff-pe-read.o): New target.
10766
fe898f56
DC
107672003-02-19 David Carlton <carlton@math.stanford.edu>
10768
10769 * Makefile.in (SFILES): Add block.c.
10770 (block_h): New.
10771 (COMMON_OBS): Add block.o.
10772 (block.o): New.
10773 (x86-64-tdep.o): Add $(block_h).
10774 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10775 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10776 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10777 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10778 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10779 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10780 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10781 * value.h: Add opaque declaration for struct block.
10782 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10783 * ada-lang.h: Ditto.
10784 * x86-64-tdep.c: #include "block.h"
10785 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10786 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10787 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10788 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10789 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10790 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10791 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10792 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10793 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10794 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10795 * symtab.c (block_function): Ditto.
10796 (contained_in): Ditto.
10797 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10798 block.h. Add opaque declaration for struct block.
10799 * symtab.h: Move block_function and contained_in declarations to
10800 block.h. Add opaque declarations for struct block, struct
10801 blockvector.
10802 (struct block): Move to block.h.
10803 (struct blockvector): Ditto.
10804 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10805 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10806 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10807 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10808 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10809 Ditto.
10810 * block.c: New file.
10811 * block.h: New file.
10812
173345b5
TR
108132003-02-19 Theodore A. Roth <troth@openavr.org>
10814
10815 * avr-tdep.c (avr_extract_return_value): Remove function.
10816 (avr_store_return_value): Remove function.
10817 (avr_extract_struct_value_address): Remove function.
10818 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10819
338ef23d
AC
108202003-02-19 Andrew Cagney <ac131313@redhat.com>
10821
10822 * rs6000-tdep.c: Include "gdb_assert.h".
10823 (registers_e500): Add "acc" and "spefscr".
10824 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10825 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10826 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10827 really is "r0".
10828 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10829
5412f5f3
KS
108302003-02-18 Keith Seitz <keiths@redhat.com>
10831
10832 * Makefile.in: Add gdbtk-interps.c.
10833
881324eb
KB
108342003-02-18 Kevin Buettner <kevinb@redhat.com>
10835
10836 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10837 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10838
6a2f5abf
AC
108392003-02-18 Andrew Cagney <cagney@redhat.com>
10840
10841 * symtab.h (struct objfile): Add opaque declaration.
10842
54c7009d
EZ
108432003-02-18 Elena Zannoni <ezannoni@redhat.com>
10844
10845 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10846 * dbxread.c (process_one_symbol): Use last_function_start rather
10847 than function_start_offset to find the real beginning of the
10848 current function. The latter is just the text section offset on
10849 some systems, the former is always the real function start.
54c7009d 10850
7ee6d7eb
AC
108512003-02-17 Andrew Cagney <cagney@redhat.com>
10852
10853 * configure.in: Revert ${target} != ${host}.
10854
2846da9b
AC
108552003-02-17 Andrew Cagney <ac131313@redhat.com>
10856
10857 * configure.in (Makefile): Use the test ${target} != ${host},
10858 instead of the absence of the "nm.h" file, to determine of the
10859 configuration non-native.
10860 * configure: Regenerate.
8ffd9b1b 10861
3b27aeea
EZ
108622003-02-14 Elena Zannoni <ezannoni@redhat.com>
10863
fbe586ae 10864 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10865
10866 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10867 conditionalize tui_active test.
10868 (lookup_cmd_1): Ditto.
10869
b0b1c2c0
MK
108702003-02-14 Mark Kettenis <kettenis@gnu.org>
10871
10872 * configure.in: Add check for _etext.
10873 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10874 available.
10875 * config.in, configure: regenerated.
10876
8f05cde5
DJ
108772003-02-14 Daniel Jacobowitz <drow@mvista.com>
10878
10879 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10880
021e7609
AC
108812003-02-14 Andrew Cagney <ac131313@redhat.com>
10882
10883 * main.c (tui_version): Delete variable.
10884 (captured_main): When --tui, set interpreter_p to "tui" instead of
10885 enabling tui_version.
10886 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10887 tui_version.
10888 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10889 * cli/cli-cmds.c (disassemble_command): Ditto.
10890 * defs.h (tui_version): Delete declaration.
10891 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10892 (tui-interp.o): Add rules.
10893 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10894
e325dcec
CF
108952003-02-14 Christopher Faylor <cgf@redhat.com>
10896
36ffb041 10897 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10898 just-loaded dll.
10899
c4f90d87
JM
109002003-02-12 Jason Molenda (jmolenda@apple.com)
10901
fbe586ae
RH
10902 * symmisc.c (print_objfile_statistics): Include information about
10903 the number of psymtabs and symtabs in each object file.
c4f90d87 10904
e46e5ccd
KS
109052003-02-13 Keith R Seitz <keiths@redhat.com>
10906
10907 * main.h (struct captured_main_args): Add interpreter_p.
10908 * main.c (captured_main): Initialize interpreter_p from context.
10909 * gdb.c (main): Set interpreter_p argument.
10910 * Makefile.in (gdb.o): Add dependency for interps.h.
10911
fe97fe9c
AC
109122003-02-12 Andrew Cagney <ac131313@redhat.com>
10913
10914 * event-top.c (cli_command_loop): Delete declaration.
10915 (_initialize_event_loop): Delete function setting event_loop_hook.
10916 * event-top.h (cli_command_loop): Declare. Update copyright.
10917 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10918 * interps.c (current_interp_command_loop): When event_loop_p, call
10919 cli_command_loop.
10920
1cdac4ef
AC
109212003-02-12 Andrew Cagney <ac131313@redhat.com>
10922
10923 * interps.h (interp_command_loop_ftype): Change return type to
10924 void.
10925
48037ead
ML
109262003-02-12 Michal Ludvig <mludvig@suse.cz>
10927
10928 * x86-64-tdep.c (x86_64_extract_return_value)
10929 (x86_64_store_return_value): Use regcache instead of regbuf.
10930 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10931 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10932
033afc63
AC
109332003-02-11 Andrew Cagney <ac131313@redhat.com>
10934
10935 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10936 * aclocal.m4: Regenerate.
10937 * configure: Regenerate.
10938
10939 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10940 TCL_LD_SEARCH_FLAGS.
10941
40d02bca
ML
109422003-02-10 Michal Ludvig <mludvig@suse.cz>
10943
10944 * dwarf2cfi.c: Reindented.
10945
11308a41
AC
109462003-02-09 Andrew Cagney <ac131313@redhat.com>
10947
10948 * interps.c (clear_interpreter_hooks): Convert function definition
10949 to ISO C.
10950
e1c1c0f6
DC
109512003-02-07 David Carlton <carlton@math.stanford.edu>
10952
10953 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10954
ab5d3da6
KB
109552003-02-07 Kevin Buettner <kevinb@redhat.com>
10956
10957 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10958 (struct type): ...to here.
10959 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10960 field.
10961 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10962 (replace_type): Set length on all type variants for a given type.
10963
b8a92b82
AC
109642003-02-07 Andrew Cagney <ac131313@redhat.com>
10965
10966 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10967 <sys/stat.h>.
10968 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10969
5cb316ef
AC
109702003-02-06 Andrew Cagney <ac131313@redhat.com>
10971
2555fe1a
AC
10972 * Makefile.in (symm-nat.o): Update dependencies.
10973 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10974 (lynx-nat.o, ia64-linux-nat.): Ditto.
10975 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10976 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10977 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10978
44270758
AC
10979 * Makefile.in (inflow_h): Define.
10980 (procfs.o, inflow.o, procfs.o): Update dependencies.
10981 * inftarg.c (child_stop): Delete extern declaration of
10982 inferior_process_group. Include "inflow.h".
10983 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10984 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10985 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10986 (our_process_group, inferior_process_group): Extern declarations.
10987
df8f7274
AC
10988 * procfs.c: Include "gdb_assert.h".
10989
5cb316ef
AC
10990 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10991 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10992 * jv-typeprint.c (java_type_print_base): Ditto.
10993 * typeprint.c (typedef_print): Eliminate STREQ.
10994 * cli/cli-script.c (define_command, define_command): Ditto.
10995 * main.c (captured_main): Ditto.
10996 * values.c (lookup_internalvar): Ditto.
10997 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10998 within `if' conditional.
10999 * linespec.c (decode_line_2): Ditto.
11000 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11001 (bfd_openw_with_cleanup): Ditto.
11002
2a28ccea
MK
110032003-02-07 Mark Kettenis <kettenis@gnu.org>
11004
11005 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11006 legacy_extract_return_value and store_return_value to
11007 legacy_return_value.
11008
786b8124
CF
110092003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11010
11011 * win32-nat.c (get_relocated_section_addrs): New function. Find
11012 section load addresses for symbol handling in relocated DLLs.
11013 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11014
b871e4ec
FF
110152003-02-05 Fred Fish <fnf@intrinsity.com>
11016
11017 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11018 '=' and '!='.
11019 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11020 with '&' and '=='.
11021 (angel_RDI_info): Ditto.
11022 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11023 with '&' and '!='.
11024 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11025
4389a95a 110262003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11027 Keith Seitz <keiths@redhat.com>
11028 Elena Zannoni <ezannoni@redhat.com>
11029 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11030
11031 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11032 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11033 (SUBDIR_MI_OBS): Add "mi-interp.o".
11034 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11035 (SFILES): Add "interps.c".
11036 (COMMON_OBS): Add "interps.o".
11037 (interps_h, mi_main_h): Define.
11038 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11039 (mi-main.o, main.o, event-top.o): Update dependencies.
11040 * cli/cli-interp.c: New file.
11041 * interps.h, interps.c: New files.
11042 * top.c: (gdb_init): Don't install the default interpreter, handed
11043 by captured_main.
11044 * main.c: Include "interps.h".
11045 (interpreter_p): Note that it should malloc'ed.
11046 (captured_command_loop): Call current_interp_command_loop.
11047 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11048 xfree and xstrdup when updating interpreter_p. Install the
11049 default interpreter. Add hack to stop mi1's copyright notice
11050 being encoded.
11051 * event-top.h (gdb_setup_readline): Declare.
11052 (gdb_disable_readline): Declare.
11053 * event-top.c: Include "interps.h".
11054 (display_gdb_prompt): Call current_interp_display_prompt_p.
11055 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11056 gdb_stdlog, and gdb_stdtarg.
11057 (_initialize_event_loop): Don't call gdb_setup_readline.
11058 * cli-out.c (cli_out_set_stream): New function.
11059 * cli-out.h (cli_out_set_stream): Declare.
11060
ff3b5810
MK
110612003-02-06 Mark Kettenis <kettenis@gnu.org>
11062
11063 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11064 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11065 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11066 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11067 config/i386/i386v42mp.mt: Removed.
11068
5b729aa5
MK
110692003-02-05 Mark Kettenis <kettenis@gnu.org>
11070
11071 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11072 GDB_OSABI_SOLARIS.
11073
8cc15142
MC
110742003-02-05 Michael Chastain <mec@shout.net>
11075
11076 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11077 2.12.1 and earlier versions.
11078
5aa5d4b9
AC
110792003-02-05 Andrew Cagney <ac131313@redhat.com>
11080
11081 Remove orphaned hosts, targets and files.
11082 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11083 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11084 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11085 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11086 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11087 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11088 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11089 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11090 * config/sparc/tm-sp64sim.h: Delete.
11091 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11092 hosts.
11093 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11094 mips*-dec-mach3* targets.
11095
b68767c1
MC
110962003-02-04 Michael Chastain <mec@shout.net>
11097
11098 * NEWS: Fix typo: sepcifying -> specifying.
11099
5ae7ca1d
MC
111002003-02-04 Michael Chastain <mec@shout.net>
11101
11102 * dwarfread.c: Add documentation on the state of dwarf-1,
11103 looking towards obsoletion.
11104
d08a4280
MC
111052003-02-03 Michael Chastain <mec@shout.net>
11106
11107 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11108 gdb/testsuite/gdb.c++/pr-1023.exp.
11109
e9be73e4
AC
111102003-02-04 Andrew Cagney <ac131313@redhat.com>
11111
11112 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11113 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11114
11115 * utils.c (init_page_info): Delete reference to MPW in comments.
11116 * main.c (captured_main): Delete #ifdef MPW.
11117
05d57f6f
AC
111182003-02-04 Andrew Cagney <ac131313@redhat.com>
11119
8ffd9b1b 11120 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11121 * monitor.c (monitor_expect): Obsolete reference to m32r.
11122 * configure.tgt: Mark m32r-*-elf* as obsolete.
11123 * MAINTAINERS: Mark m32k as obsolete.
11124 * m32r-rom.c: Obsolete file.
11125 * config/m32r/m32r.mt: Obsolete file.
11126 * config/m32r/tm-m32r.h: Obsolete file.
11127 * m32r-stub.c: Obsolete file.
11128 * m32r-tdep.c: Obsolete file.
11129
8b0e5691
AC
111302003-02-04 Andrew Cagney <ac131313@redhat.com>
11131
11132 * NEWS: Mention that the z8k-zilog-none is obsolete.
11133 * MAINTAINERS: Mark z8k as obsolete.
11134 * configure.tgt: Obsolete the z8k-*-coff* target.
11135 * config/z8k/z8k.mt: Obsolete file.
11136 * config/z8k/tm-z8k.h: Obsolete file.
11137 * z8k-tdep.c: Obsolete file.
11138
67f16606
AC
111392003-02-04 Andrew Cagney <ac131313@redhat.com>
11140
11141 * NEWS: Mention that the mn10200-elf is obsolete.
11142 * configure.tgt: Obsolete mn10200-*-* target.
11143 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11144 mention that the mn10200 is obsolete.
11145 * breakpoint.h: Ditto.
11146 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11147 * config/mn10200/mn10200.mt: Obsolete file.
11148 * config/mn10200/tm-mn10200.h: Obsolete file.
11149 * mn10200-tdep.c: Obsolete file.
11150
fd2299bd
AC
111512003-02-04 Andrew Cagney <ac131313@redhat.com>
11152
11153 * MAINTAINERS: Mark h8500 as obsolete.
11154 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11155 * findvar.c (value_from_register): Ditto.
11156 * h8500-tdep.c: Mark file as obsolete.
11157 * config/h8500/h8500.mt: Ditto.
11158 * config/h8500/tm-h8500.h: Ditto.
11159 * NEWS: Mention that h8500 is obsolete.
11160
eb9a305d
DC
111612003-02-04 David Carlton <carlton@math.stanford.edu>
11162
11163 * objfiles.c (allocate_objfile): Always set name. Add comment at
11164 start of function.
11165 * jv-lang.c (get_dynamics_objfile): Add comment.
11166
406fc7fb
DC
111672003-02-04 David Carlton <carlton@math.stanford.edu>
11168
11169 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11170 * printcmd.c (build_address_symbolic): Replace uses of
11171 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11172 SYMBOL_NAME, and asm_demangle.
11173 Update copyright.
11174
93d91629
DC
111752003-02-04 David Carlton <carlton@math.stanford.edu>
11176
11177 * linespec.c (decode_compound): Extract code into
11178 lookup_prefix_sym.
11179 (lookup_prefix_sym): New function.
11180
1c5cb38e
DC
111812003-02-04 David Carlton <carlton@math.stanford.edu>
11182
11183 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11184 FLOAT_COERCION_BADNESS.
11185 * gdbtypes.c (rank_one_type): Replace all uses of
11186 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11187
0cf824c9
JB
111882003-02-04 Jim Blandy <jimb@redhat.com>
11189
11190 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11191 section, let dwarf_macinfo_section point to it, not
11192 dwarf_loc_section.
11193
a2d356b0
DJ
111942003-02-04 Daniel Jacobowitz <drow@mvista.com>
11195
11196 Pointed out by Anton Blanchard <anton@samba.org>.
11197 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11198 (ppc_linux_at_sigtramp_return_path): Use it.
11199
2de7ced7
DJ
112002003-02-04 Daniel Jacobowitz <drow@mvista.com>
11201
11202 * defs.h (streq): Add prototype.
11203 * utils.c (streq): New function.
11204
11205 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11206 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11207 * mdebugread.c (new_symbol): Likewise.
11208 * stabsread.c (define_symbol): Likewise.
11209 * coffread.c (process_coff_symbol): Likewise.
11210 * dwarfread.c (new_symbol): Likewise.
11211
11212 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11213 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11214 here.
11215 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11216 SYMBOL_INIT_DEMANGLED_NAME.
11217 * objfiles.c: Include "hashtab.h".
11218 (allocate_objfile): Call htab_set_functions_ex for the
11219 demangled_names_hash.
11220 (free_objfile): Call htab_delete for the demangled_names_hash.
11221 * objfiles.h (struct htab): Add declaration.
11222 (struct objfile): Add demangled_names_hash.
11223 * symfile.c: Include "hashtab.h".
11224 (reread_symbols): Call htab_delete for the demangled_names_hash.
11225 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11226 SYMBOL_NAME in the bcache.
11227 * symtab.c: Include "hashtab.h". Update comments.
11228 (create_demangled_names_hash, symbol_set_names): New functions.
11229 (symbol_find_demangled_name): New function, broken out from
11230 symbol_init_demangled_names.
11231 (symbol_init_demangled_names): Use it.
11232 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11233 (SYMBOL_SET_NAMES): New macro.
11234 (symbol_set_names): Add prototype.
11235
15831452
JB
112362003-02-03 Jim Blandy <jimb@redhat.com>
11237
11238 Use a single, consistent representation for an empty minimal
11239 symbol table in an objfile.
11240 * objfiles.c (terminate_minimal_symbol_table): New function.
11241 (allocate_objfile): Call it.
11242 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11243 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11244 non-NULL.
15831452
JB
11245 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11246 objfile has minimal symbols, compare minimal_symbol_count to zero,
11247 instead of comparing msymbols with NULL.
11248 * objfiles.c (have_minimal_symbols): Same.
11249 * solib-sunos.c (solib_add_common_symbols): Call
11250 terminate_minimal_symbol_table.
11251 * symfile.c (reread_symbols): Same.
8ffd9b1b 11252
ffc65945
KB
112532003-02-03 Kevin Buettner <kevinb@redhat.com>
11254
11255 * s390-tdep.c (s390_address_class_type_flags)
11256 (s390_address_class_type_flags_to_name)
11257 (s390_address_class_name_to_type_flags): New functions.
11258 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11259 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11260
f211c6d4
MS
112612003-02-03 Michael Snyder <msnyder@redhat.com>
11262
11263 * arm-tdep.c: Fix spell-o in comment.
11264
659b0389
ML
112652003-02-03 Michal Ludvig <mludvig@suse.cz>
11266
11267 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11268 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11269 error messages to contain BFD filename.
659b0389 11270
3b31d625
EZ
112712003-02-02 Elena Zannoni <ezannoni@redhat.com>
11272
997b089a 11273 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11274 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11275 (do_mixed_source_and_assembly): Use
11276 make_cleanup_ui_out_tuple_begin_end and
11277 make_cleanup_ui_out_tuple_begin_end.
11278 (do_mixed_source_and_assembly): Ditto.
11279 * thread.c (do_captured_list_thread_ids): Ditto.
11280 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11281 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11282 ui_out_tuple_end): Delete prototypes.
11283 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11284 ui_out_list_end, ui_out_tuple_end): Delete.
11285
11286 From Kevin Buettner <kevinb@redhat.com>:
11287 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11288 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11289 (do_cleanup_table_end): New functions.
11290 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11291 Use cleanups to invoke_ui_out_tuple_end().
11292 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11293 * cli/cli-setshow.c (cmd_show_list): Use
11294 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11295
5b181d62
AC
112962003-02-02 Andrew Cagney <ac131313@redhat.com>
11297
11298 * frame.c (frame_unwind_register): New function.
11299 (frame_unwind_unsigned_register): Use.
11300 (frame_unwind_signed_register): Use.
11301 (frame_read_register): New function.
11302 * frame.h (frame_unwind_register): Declare.
11303 (frame_read_register): Declare.
11304
11305 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11306 and frame_unwind_register instead of read_memory, write_register
11307 and deprecated_write_register_bytes.
11308
5f601589
AC
113092003-02-02 Andrew Cagney <ac131313@redhat.com>
11310
11311 * frame.h: Note that namelen can be negative.
11312 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11313 NAME's length.
11314
11315 * NEWS: Mention that the d10v's `regs' command is deprecated.
11316 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11317 (d10v_print_registers_info): New function.
11318 (show_regs): Call d10v_print_registers_info.
11319 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11320
6a3fe0a4
MK
113212003-02-02 Mark Kettenis <kettenis@gnu.org>
11322
11323 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11324 lost in the previous patch.
11325
075559bc
AC
113262003-02-01 Andrew Cagney <ac131313@redhat.com>
11327
11328 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11329 * stack.c (print_frame_info_base): Output complete FRAME tuple
11330 for synthesized frames.
075559bc 11331
6789195b
AC
113322003-02-02 Andrew Cagney <ac131313@redhat.com>
11333
11334 * mips-nat.c (zerobuf): Delete.
11335 (fetch_inferior_registers): Alloc local zerobuf.
11336 (fetch_core_registers): Alloc local zerobuf.
11337 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11338 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11339 * thread-db.c (thread_db_store_registers): Ditto.
11340 * sh-tdep.c (sh_do_register): Ditto.
11341 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11342 * remote-sim.c (gdbsim_store_register): Ditto.
11343 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11344 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11345 * monitor.c (monitor_supply_register): Ditto.
11346 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11347 * mips-nat.c (fetch_inferior_registers): Ditto.
11348 * m68klinux-nat.c (fetch_register): Ditto.
11349 * lynx-nat.c (fetch_inferior_registers): Ditto.
11350 (fetch_inferior_registers): Ditto.
11351 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11352 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11353 (hpux_thread_store_registers): Ditto.
11354 * hppah-nat.c (fetch_register): Ditto.
11355 * hppab-nat.c (fetch_register): Ditto.
11356 * hppa-tdep.c (pa_register_look_aside): Ditto.
11357 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11358 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11359
e669114a
AC
113602003-02-01 Andrew Cagney <ac131313@redhat.com>
11361
11362 * gdbarch.sh: Explictly specify all method levels. When a
11363 variable with an empty level, provide a non-multi-arch default.
11364 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11365 * gdbarch.h: Re-generate.
11366 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11367 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11368
9a043c1d
AC
113692003-02-01 Andrew Cagney <ac131313@redhat.com>
11370
11371 * defs.h (host_pointer_to_address): Delete declaration.
11372 (address_to_host_pointer): Delete declaration.
11373 * utils.c (host_pointer_to_address): Delete function.
11374 (address_to_host_pointer): Delete function.
11375 * procfs.c (procfs_address_to_host_pointer): New function.
11376 * procfs.c (proc_set_watchpoint): Use.
11377 (procfs_can_use_hw_breakpoint): Update comments.
11378 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11379 (som_solib_add): Use.
11380 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11381 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11382
7ca9f392
AC
113832003-02-01 Andrew Cagney <ac131313@redhat.com>
11384
94bbfd30
AC
11385 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11386 strlen d_name.
11387
7ca9f392
AC
11388 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11389 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11390 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11391 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11392 (define_symbol): Update.
11393 * symfile.c (generic_load): Remove references to nindy.
11394 * symtab.c: Remove references to nindy.
11395
31a85ea2
AC
113962003-02-01 Andrew Cagney <ac131313@redhat.com>
11397
11398 * infcmd.c (print_float_info): Delete code conditional on
11399 FLOAT_INFO.
11400 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11401 * config/m68k/nm-apollo68b.h: Ditto.
11402 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11403 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11404 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11405
f6e85fc8
MK
114062003-02-01 Mark Kettenis <kettenis@gnu.org>
11407
6015b6a0
MK
11408 * config/i386/tm-i386os9k.h: Removed.
11409
f7a30bdf
MK
11410 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11411 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11412 they're identical to i[3456]86-*-sysv* now.
11413 * config/i386/i386v32.mh: Removed.
11414 * config/i386/xm-i386v32.h: Removed.
11415 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11416
28d52111
MK
11417 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11418
4d3f6bce
MK
11419 * config/i386/i386dgux.mh: Removed.
11420 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11421
f6e85fc8
MK
11422 * configure.in: Fix typo.
11423 * configure: Regenerated.
11424
53955967
DC
114252003-01-31 David Carlton <carlton@math.stanford.edu>
11426
11427 * dwarf2read.c (dwarf2_locate_sections): Set
11428 dwarf_ranges_section.
11429
b1364885
AC
114302003-01-31 Andrew Cagney <ac131313@redhat.com>
11431
8dbb1c65
AC
11432 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11433 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11434
8731e58e
AC
11435 * utils.c: Re-indent.
11436
b1364885
AC
11437 * config/djgpp/fnchange.lst: Delete nindy files.
11438 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11439 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11440 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11441 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11442 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11443 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11444 * Makefile.in (init.c): Remove nindy references.
11445 (saber_gdb): Delete rule.
11446 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11447 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11448 and a68v-nat.c.
11449 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11450 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11451 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11452 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11453 nindy-share/stop.h.
11454 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11455 * saber.suppress: Delete file.
11456
086df311
DJ
114572003-01-31 Daniel Jacobowitz <drow@mvista.com>
11458
11459 * dbxread.c (stabs_data): New static variable.
11460 (fill_symbuf): Support an in-memory buffer for stabs data.
11461 (stabs_seek): New function.
11462 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11463 (read_ofile_symtab): Use stabs_seek.
11464 (elfstab_build_psymtabs): Take an asection* instead of
11465 an offset and size. Relocate the stabs data if necessary.
11466 Save the section* for dbx_psymtab_to_symtab.
11467 * dwarf2read.c: Add section variables for each debug section.
11468 (dwarf2_locate_sections): Fill them in.
11469 (dwarf2_read_section): Take an asection* argument.
11470 Relocate the section contents if necessary.
11471 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11472 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11473 it to dwarf2_read_section.
11474 (dwarf2_build_frame_info): Update callers.
11475 * elfread.c (elf_symfile_read): Update call to
11476 elfstab_build_psymtabs.
11477 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11478 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11479 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11480 * symfile.c (symfile_dummy_outputs): New function.
11481 (symfile_relocate_debug_section): New function.
11482 * symfile.h (symfile_relocate_debug_section): Add prototype.
11483
87d1b352
RH
114842003-01-31 Richard Henderson <rth@redhat.com>
11485
11486 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11487 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11488 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11489 * alpha-tdep.c (alpha_register_name): Add "unique".
11490 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11491 (ALPHA_UNIQUE_REGNUM): New.
11492 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11493
c48861fb
AC
114942003-01-31 Andrew Cagney <ac131313@redhat.com>
11495
11496 * README: Remove reference to Ericsson 1800 monitor.
11497 * Makefile.in (remote-es.o): Delete rule.
11498 (ALLDEPFILES): Delete remote-es.c.
11499 * remote-es.c: Delete file.
11500 * config/m68k/es1800.mt: Delete file.
11501 * config/djgpp/fnchange.lst: Update.
11502 * configure.tgt: Delete m68*-ericsson-* target.
11503
d764a824
AF
115042003-01-31 Adam Fedor <fedor@gnu.org>
11505
11506 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11507 Remove duplicate/shadowing variable of same name.
11508
fe36c4f4
JB
115092003-01-30 Jim Blandy <jimb@redhat.com>
11510
11511 * symfile.c (find_separate_debug_file): Assert that the objfile's
11512 directory name we compute ends with a slash, and then assume that
11513 that's so everywhere we use it.
11514
cb741690
DJ
115152003-01-30 Daniel Jacobowitz <drow@mvista.com>
11516
11517 * valops.c (value_assign): Flush frame cache after stores to memory
11518 also.
11519
96ee5227
AC
115202003-01-30 Andrew Cagney <ac131313@redhat.com>
11521
11522 * Makefile.in (mon960-rom.o): Delete rule.
11523 * mon960-rom.c: Delete file.
11524
7f6104a9
AC
115252003-01-30 Andrew Cagney <ac131313@redhat.com>
11526
11527 * d10v-tdep.c: Include "frame-unwind.h".
11528 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11529 list.
11530 (next_addr, uses_frame): Delete.
11531 (struct d10v_unwind_cache): Define.
11532 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11533 Use info instead of next_addr and uses_frame globals.
11534 (d10v_frame_init_saved_regs): Delete function.
11535 (d10v_init_extra_frame_info): Delete function.
11536 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11537 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11538 init_frame_pc or frame_saved_pc.
11539 (d10v_pop_frame): Delete function.
11540 (do_d10v_pop_frame): Delete function.
11541 (d10v_frame_chain): Delete function.
11542 (d10v_frame_chain_valid): Delete function.
11543 (d10v_frame_pc_unwind): New function.
11544 (d10v_frame_id_unwind): New function.
11545 (saved_regs_unwinder): New function.
11546 (d10v_frame_register_unwind): New function.
11547 (d10v_frame_pop): New function.
11548 (d10v_frame_unwind): New variable.
11549 (d10v_frame_p): New function.
11550 (d10v_frame_saved_pc): Delete function.
11551 * Makefile.in (d10v-tdep.o): Update dependencies.
11552
cad2e848
JB
115532003-01-30 J. Brobecker <brobecker@gnat.com>
11554
11555 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11556 causing some regressions due to a change in the default value
11557 for this macro.
11558
af34e669
DJ
115592003-01-29 Richard Henderson <rth@redhat.com>
11560 Elena Zannoni <ezannoni@redhat.com>
11561 Daniel Jacobowitz <drow@mvista.com>
11562
11563 Fix PR gdb/961.
8ffd9b1b 11564 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11565 variables.
11566 (RANGES_SECTION): New.
11567 (dwarf_ranges_buffer): New variable.
11568 (struct comp_unit_head): Add member "die".
11569 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11570 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11571 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11572 (dwarf2_locate_sections): Likewise.
11573 (dwarf2_build_psymtabs): Read .debug_ranges.
11574 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11575 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11576 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11577 Look for DW_AT_ranges and return the bounding box.
11578
baa93fa6
CF
115792003-01-29 Brian Ford <ford@vss.fsi.com>
11580
11581 * win32-nat.c (cygwin_pid): Removed as unused.
11582 (child_attach): Try fall back to Cygwin pid.
11583
c63f977f
JB
115842003-01-29 Jim Blandy <jimb@redhat.com>
11585
11586 * objfiles.h (struct objfile): Doc fix.
11587
d62d1979
AC
115882003-01-29 Andrew Cagney <ac131313@redhat.com>
11589
11590 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11591 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11592 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11593 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11594 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11595 (FRAME_SAVED_PC): Change to a function with predicate.
11596 * gdbarch.h, gdbarch.c: Re-generate.
11597
1ae18a04
AC
115982003-01-28 Andrew Cagney <ac131313@redhat.com>
11599
52287340
AC
11600 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11601
1ae18a04
AC
11602 * complaints.c (complain): Delete function.
11603 * complaints.h (struct deprecated_complaint): Delete definition.
11604 (complain): Delete declaration.
11605
f2c16bd6
KB
116062003-01-28 Kevin Buettner <kevinb@redhat.com>
11607
11608 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11609 dummy frames.
11610
a94dd1fd
AC
116112003-01-27 Andrew Cagney <ac131313@redhat.com>
11612
11613 * sentinel-frame.h, sentinel-frame.c: New files.
11614 * Makefile.in (frame.o): Update dependencies.
11615 (SFILES): Add sentinel-frame.c.
11616 (sentinel_frame_h): Define.
11617 (COMMON_OBS): Add sentinel-frame.o.
11618 (sentinel-frame.o): Specify dependencies.
11619 * frame.c: Include "sentinel-frame.h".
11620 (frame_register_unwind): Rewrite assuming that there is always a a
11621 ->next frame.
11622 (frame_register, generic_unwind_get_saved_register): Ditto.
11623 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11624 (create_sentinel_frame, unwind_to_current_frame): New functions.
11625 (get_current_frame): Rewrite using create_sentinel_frame and
11626 unwind_to_current_frame. When possible, always create a frame.
11627 (create_new_frame): Set next to the sentinel frame.
11628 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11629 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11630 ID cache when necessary.
11631 (frame_saved_regs_id_unwind): Use frame_relative_level.
11632 (deprecated_generic_get_saved_register): Use frame_relative_level,
11633 get_frame_saved_regs, get_frame_pc, get_frame_base and
11634 get_next_frame.
11635 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11636 frame_register.
11637
5378adc4
DJ
116382003-01-27 Daniel Jacobowitz <drow@mvista.com>
11639
11640 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11641
51ee2ddc
DJ
116422003-01-27 Daniel Jacobowitz <drow@mvista.com>
11643
11644 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11645 (maintenance_set_profile_cmd): Use error () instead of warning ().
11646
d9feb4e7
DJ
116472003-01-27 Daniel Jacobowitz <drow@mvista.com>
11648
11649 * configure.in: Check that -pg works if using --enable-profiling.
11650 Check for monstartup and _mcleanup regardless of --enable-profiling.
11651 * maint.c: Check for monstartup and _mcleanup before using them.
11652 * config.in: Regenerated.
11653 * configure: Regenerated.
11654
2d188dd3
NC
116552003-01-24 Nick Clifton <nickc@redhat.com>
11656
11657 * Add sh2e support:
11658
11659 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11660
11661 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11662 (sh2e_show_regs): New.
11663 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11664 * config/sh/tm-sh.h: Added sh2e to comments.
11665
cb3c37b2
JB
116662003-01-23 Jim Blandy <jimb@redhat.com>
11667
11668 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11669 symbols found)" message here; we haven't checked for a separate
11670 debug info file yet, so we don't know yet.
11671 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11672 we've looked everywhere. Also, there's no need to print a special
11673 message when we're loading the separate debug info file: the one
11674 symbol_file_add prints is fine.
11675
5b5d99cf
JB
116762003-01-23 Alexander Larsson <alexl@redhat.com>
11677 Jim Blandy <jimb@redhat.com>
11678
11679 Add support for executables whose debug info has been separated
11680 out into a separate file, leaving only a link behind.
11681 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11682 and separate_debug_objfile_backlink.
11683 (put_objfile_before): New declaration.
11684 * symfile.c: #include "filenames.h".
11685 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11686 debug info in a separate file, read that, too. Save the addrs
11687 argument, so we can use it again to read the separated debug info;
11688 syms_from_objfile modifies the table we pass it.
11689 (reread_symbols): After re-reading an objfile, call
11690 reread_separate_symbols to refresh its separate debug info
11691 objfile, if it has one.
11692 (reread_separate_symbols, find_separate_debug_file,
11693 get_debug_link_info, separate_debug_file_exists): New functions.
11694 (debug_file_directory): New global var.
11695 (_initialize_symfile): Initialize debug_file_directory, and
11696 provide the new `set debug-file-directory' command to let the user
11697 change it.
11698 * objfiles.c (free_objfile): If this objfile has its debug info in
11699 a separate objfile, free that one too. If this is itself a
11700 separate debug info objfile, clear our parent's backlink.
11701 (put_objfile_before): New function.
11702 * utils.c (gnu_debuglink_crc32): New function.
11703 * defs.h (gnu_debuglink_crc32): New declaration.
11704 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11705 * configure.in: Handle --with-separate-debug-dir config option.
11706 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11707 * acconfig.h (DEBUGDIR): New macro.
11708 * configure, aclocal.m4, config.in: Regenerated.
11709
7e8580c1
JB
117102003-01-22 Jim Blandy <jimb@redhat.com>
11711
7904e09f
JB
11712 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11713 like the old symbol_file_add, but taking new arguments: you can
11714 now pass in either a `struct section_addr_info' list to say where
11715 each section is loaded, or a `struct section_offsets' table. Pass
11716 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11717 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11718 with the appropriate quiescent values for the new arguments.
11719
7e8580c1
JB
11720 * symfile.c: #include "gdb_assert.h".
11721 (syms_from_objfile): Add the ability to pass in a section offset
11722 table directly, as an alternative to the section_addr_info table.
11723 Document arguments better.
11724 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11725 * symfile.h (syms_from_objfile): Update declaration.
11726 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11727 syms_from_objfile.
11728 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11729
d28f9cdf
DJ
117302003-01-22 Daniel Jacobowitz <drow@mvista.com>
11731
11732 Original patch by Tom Tromey <tromey@cygnus.com> and
11733 Jason Molenda <jmolenda@apple.com>.
11734 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11735 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11736 * NEWS: Mention profiling.
11737 * configure.in (--enable-gdbtk): Fix typo.
11738 (--enable-profiling): New. Set PROFILE_CFLAGS.
11739 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11740 Fill in function.
11741 (profiling_state): New variable.
11742 (mcleanup_wrapper): New function.
11743 (_initialize_maint): Remove NOTYET, fix call to
11744 add_setshow_boolean_cmd for "maint set profile".
11745 * configure: Regenerated.
11746
df21e465
MH
117472003-01-21 Martin M. Hunt <hunt@redhat.com>
11748
11749 * Makefile.in (install-gdbtk): Install PNG images too.
11750
73c1f219
AC
117512003-01-21 Andrew Cagney <ac131313@redhat.com>
11752
11753 * exec.c (text_start): Delete global variable.
11754 (exec_file_attach): Make text_start local to the function.
11755 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11756 * valops.c (hand_function_call): Delete code that handles
11757 BEFORE_TEXT_END and AFTER_TEXT_END.
11758 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11759 of CALL_DUMMY_LOCATION.
11760 * gdbarch.c: Regenerate.
11761 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11762 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11763 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11764 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11765 (text_end): Delete extern declaration.
11766
eb4f72c5
AC
117672003-01-21 Andrew Cagney <ac131313@redhat.com>
11768
11769 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11770 * blockframe.c (backtrace_below_main): Move to "frame.c".
11771 (frame_chain_valid): Delete check for backtrace_below_main.
11772 (_initialize_blockframe): Delete initialization, move ``set
11773 backtrace-below-main'' command to "frame.c".
11774 (do_flush_frames_sfunc): Delete function.
11775 * frame.c: Include "command.h" and "gdbcmd.h".
11776 (frame_type_from_pc): New function.
11777 (create_new_frame): Use frame_type_from_pc.
11778 (legacy_get_prev_frame): New function.
11779 (get_prev_frame): Rewrite. When an old style frame, call
11780 legacy_get_prev_frame. Otherwize, unwind the PC first.
11781 (_initialize_frame): Add ``set backtrace-below-main'' command.
11782 * Makefile.in (frame.o): Update dependencies.
11783
778ce8cc
AC
117842003-01-19 Andrew Cagney <ac131313@redhat.com>
11785
11786 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11787 DEPRECATED_REGISTERS_INFO.
11788
01c193c8
AC
117892003-01-19 Andrew Cagney <ac131313@redhat.com>
11790
11791 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11792 Maintainers'. Update `Various Maintainers'.
11793
dedc2a2b
AC
117942003-01-19 Andrew Cagney <ac131313@redhat.com>
11795
11796 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11797 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11798 Suppress actual parameters when `-'.
11799 * gdbarch.h, gdbarch.c: Regenerate.
11800
b7261c70
AC
118012003-01-19 Andrew Cagney <ac131313@redhat.com>
11802
11803 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11804 code handling dummy frames.
11805
dbe9fe58
AC
118062003-01-19 Andrew Cagney <ac131313@redhat.com>
11807
11808 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11809 (struct frame_unwind): Add field pop.
11810 * frame.h (frame_pop): Declare.
11811 * frame.c (frame_saved_regs_pop): New function.
11812 (trad_frame_unwinder): Add frame_saved_regs_pop.
11813 (frame_pop): New function.
11814 * dummy-frame.c (dummy_frame_pop): New function.
11815 (discard_innermost_dummy): New function.
11816 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11817 (dummy_frame_unwind): Add dummy_frame_pop.
11818 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11819 * valops.c (hand_function_call): Ditto.
11820 * stack.c (return_command): Ditto.
11821
570b8f7c
AC
118222003-01-18 Andrew Cagney <ac131313@redhat.com>
11823
11824 * cris-tdep.c: Fix function declaration indentation.
11825 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11826 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11827 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11828 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11829 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11830 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11831
118322003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11833
11834 * README (Unpacking and Installation -- quick overview):
11835 Warn against ".../gdb-5.3/gdb/configure".
11836
494cca16
AC
118372003-01-18 Andrew Cagney <ac131313@redhat.com>
11838
11839 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11840 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11841 (struct frame_unwind): Declare opaque.
11842 (dummy_frame_p): Declare function.
11843 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11844 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11845 * dummy-frame.c: Include "frame-unwind.h".
11846 (dummy_frame_p): New function.
11847 (dummy_frame_unwind): New variable.
11848 * frame.c: Include "frame-unwind.h".
11849 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11850 to use the new unwind field.
11851 (set_unwind_by_pc): Delete function.
11852 (create_new_frame, get_prev_frame): Set unwind field using
11853 frame_unwind_find_by_pc.
11854 (trad_frame_unwind, trad_frame_unwinder): New variables.
11855 * frame.h (trad_frame_unwind): Declare variable.
11856 (frame_id_unwind_ftype): Delete declaration.
11857 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11858 (struct frame_unwind): Declare opaque.
11859 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11860 register_unwind with a single unwind pointer.
11861 * frame-unwind.h, frame-unwind.c: New files.
11862 * Makefile.in (SFILES): Add frame-unwind.c.
11863 (frame_unwind_h): Define.
11864 (COMMON_OBS): Add frame-unwind.o.
11865 (frame-unwind.o): Specify dependencies.
11866 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11867
4efb68b1
AC
118682003-01-18 Andrew Cagney <ac131313@redhat.com>
11869
11870 * ada-valprint.c: Eliminate PTR.
11871 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11872 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11873 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11874 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11875 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11876 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11877 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11878
a84d24ee
AC
118792003-01-17 Andrew Cagney <ac131313@redhat.com>
11880
762f08a3
AC
11881 * main.c (captured_main): Don't use PTR.
11882 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11883 * gdbtypes.c (lookup_primitive_typename): Ditto.
11884 (lookup_struct_elt_type): Ditto.
11885 * f-valprint.c (info_common_command): Ditto.
11886 (list_all_visible_commons): Ditto.
11887 * jv-typeprint.c (java_type_print_base): Ditto.
11888
a84d24ee
AC
11889 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11890 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11891 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11892 i386-interix-nat.c and i386-interix-tdep.c. Rename
11893 m68klinux-nat.c and m68klinux-tdep.c. Rename
11894 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11895 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11896 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11897 * main.c (captured_main): Use xfree, not free.
11898
c170fb60
AC
118992003-01-16 Andrew Cagney <ac131313@redhat.com>
11900
11901 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11902 ID back using a parameter.
11903 * frame.c (frame_id_unwind): Update call.
11904 (frame_saved_regs_id_unwind): Update.
11905 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11906 * dummy-frame.h (struct frame_id): Add opaque declaration.
11907 (dummy_frame_id_unwind): Update declaration.
11908
867f3898
AC
119092003-01-15 Andrew Cagney <ac131313@redhat.com>
11910
11911 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11912
40622be8 119132003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11914
40622be8 11915 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11916
ae66c1fc
EZ
119172003-01-14 Elena Zannoni <ezannoni@redhat.com>
11918
997b089a 11919 Fix PR gdb/898
ae66c1fc
EZ
11920 * breakpoint.c (until_break_command): Add new argument. Use it to
11921 decide whether to stop only at the current frame or not.
11922 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11923 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11924 call.
11925 (advance_command): New function.
11926 (_initialize_infcmd): Update help string for 'until' command.
11927 Add new 'advance' command.
11928
a04257e6
DC
119292003-01-14 David Carlton <carlton@math.stanford.edu>
11930
11931 * linespec.c (decode_line_1): Normalize comments.
11932 (set_flags): Ditto.
11933 (locate_first_half): Ditto.
11934 (decode_compound): Ditto.
11935 (symtab_from_filename): Ditto.
11936 (decode_all_digits): Ditto.
11937 (decode_dollar): Ditto.
11938 (find_methods): Ditto.
11939 (find_toplevel_char): Ditto.
11940
1bac305b
AC
119412003-01-13 Andrew Cagney <ac131313@redhat.com>
11942
11943 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11944 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11945 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11946 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11947 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11948 * language.c, language.h, m32r-tdep.c: Update copyright.
11949 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11950 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11951 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11952 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11953 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11954 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11955
25caa7a8
EZ
119562003-01-13 Elena Zannoni <ezannoni@redhat.com>
11957
11958 * stabsread.h (process_later, resolve_cfront_continuation):
11959 Obsolete.
11960 Update copyright years.
11961 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11962 Update copyright year.
11963 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11964 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11965 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11966 Update copyright year.
11967 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11968 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11969 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11970 (parse_partial_symbols): Obsolete cfront support.
11971 * stabsread.c
11972 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11973 macros.
11974 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11975 read_cfront_baseclasses, read_cfront_member_functions,
11976 resolve_cfront_continuation,read_cfront_static_fields,
11977 copy_cfront_struct_fields): Obsolete functions.
11978 (define_symbol, read_one_struct_field): Obsolete cfront support.
11979 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11980 Update Copyright year.
11981
7789c6f5
EZ
119822003-01-13 Elena Zannoni <ezannoni@redhat.com>
11983
11984 * stack.c (print_frame_info, print_stack_frame_base_stub,
11985 print_stack_frame_base, show_and_print_stack_frame_stub,
11986 show_and_print_stack_frame, print_only_stack_frame_stub,
11987 print_only_stack_frame): Delete functions.
11988 (print_stack_frame_stub): Call print_frame_info instead of
11989 print_frame_info_base.
11990 (print_frame_info_base): Rename to print_frame_info.
11991 (backtrace_command_1): Call print_frame_info, instead of
11992 print_frame_info_base.
11993 (current_frame_command): Call print_stack_frame, instead of
11994 print_only_stack_frame.
11995 (frame_command): Call print_stack_frame, instead of
11996 show_and_print_stack_frame.
11997 (up_command): Ditto.
11998 (down_command): Ditto.
11999 * frame.h (print_only_stack_frame): Delete prototype.
12000 * infrun.c (normal_stop): Call print_stack_frame, instead of
12001 show_and_print_stack_frame.
12002 * thread.c (info_threads_command): Call print_stack_frame, instead
12003 of print_only_stack_frame.
12004
3f5a3016
AC
120052003-01-13 Andrew Cagney <ac131313@redhat.com>
12006
d99ba314
AC
12007 * README (Graphical interface to GDB): Update URL. Point at
12008 gdb/links/.
12009
3f5a3016
AC
12010 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12011 version match.
12012
083ae935
DJ
120132003-01-13 Daniel Jacobowitz <drow@mvista.com>
12014
12015 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12016 lines.
12017
5365276c
DJ
120182003-01-13 Daniel Jacobowitz <drow@mvista.com>
12019
12020 * thread-db.c (attach_thread): Prototype.
12021 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12022 thread information (ti), and valid flags (th_valid, ti_valid).
12023 (attach_thread): Move target_pid_to_str call to after the thread
12024 is added to GDB's list. Initialize the cache.
12025 (thread_get_info_callback, thread_db_map_id2thr)
12026 (thread_db_get_info): New functions.
12027 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12028 (thread_db_store_registers, thread_db_thread_alive)
12029 (thread_db_get_thread_local_address): Use them.
12030 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12031 of calling error() for threads in unknown state.
12032
12033 (clear_lwpid_callback): New function.
12034 (thread_db_resume): Use it to clear the cache.
12035
9fc30b6b
DJ
120362003-01-13 Daniel Jacobowitz <drow@mvista.com>
12037
12038 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12039 (resume_callback): Remove dead code.
12040
8f871025
AC
120412003-01-13 Andrew Cagney <ac131313@redhat.com>
12042
12043 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12044 predicate.
12045 * gdbarch.h, gdbarch.c: Regenerate.
12046 * stack.c (frame_info): Only initialize the saved registers when
12047 FRAME_INIT_SAVED_REGS_P.
12048 * frame.c (frame_saved_regs_register_unwind): Assert
12049 FRAME_INIT_SAVED_REGS_P.
12050 (deprecated_generic_get_saved_register): Ditto.
12051
3f565f1e
DJ
120522003-01-13 Daniel Jacobowitz <drow@mvista.com>
12053
12054 * source.c (openp): Squelch warning about "filename".
12055
072b1022
DJ
120562003-01-13 Daniel Jacobowitz <drow@mvista.com>
12057
12058 * source.c (openp): If the file does not exist don't necessarily
12059 search the path.
12060
973ccf8b
DJ
120612003-01-13 Daniel Jacobowitz <drow@mvista.com>
12062
12063 Fix PR gdb/872.
12064 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12065 (integer_types_same_name_p): New function.
12066 (rank_one_type): Use it.
12067 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12068
030292b7
DJ
120692003-01-13 Daniel Jacobowitz <drow@mvista.com>
12070
12071 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12072 variables.
12073 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12074 * configure.in: Add --with-sysroot.
12075 * configure: Regenerated.
12076 * main.c (gdb_sysroot): New variable.
12077 (captured_main): Initialize gdb_sysroot.
12078 * defs.h (gdb_sysroot): New extern declaration.
12079 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12080
afb5d334
MC
120812003-01-12 Michael Chastain <mec@shout.net>
12082
12083 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12084
751ceeb4
MC
120852003-01-12 Michael Chastain <mec@shout.net>
12086
12087 * top.c (print_gdb_version): Bump copyright year to 2003.
12088
94cd26f8
DC
120892003-01-12 David Carlton <carlton@bactrian.org>
12090
12091 * linespec.c (symtab_from_filename): Rename variable 's' to
12092 'file_symtab'.
12093
1ce79225
AC
120942003-01-12 Andrew Cagney <ac131313@redhat.com>
12095
12096 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12097 dummy frame.
12098 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12099
fa1fd571
AC
121002003-01-12 Andrew Cagney <ac131313@redhat.com>
12101
12102 * d10v-tdep.c: Include "gdb_assert.h".
12103 (d10v_store_return_value): Rewrite to match current interface.
12104 (d10v_extract_struct_value_address): Ditto.
12105 (d10v_extract_return_value): Ditto.
12106 (d10v_gdbarch_init): Set store_restore_value,
12107 extract_struct_value_address and extract_return_value.
12108
68b8d23e
JB
121092003-01-12 J. Brobecker <brobecker@gnat.com>
12110
12111 * hpread.c (set_namestring): New procedure replacing the
12112 SET_NAMESTRING macro.
12113 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12114 by calls to set_namestring.
12115
121162003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12117
12118 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12119 a compilation warning.
12120 (hpread_process_one_debug_symbol): Likewise.
12121
88d262ca
DC
121222003-01-10 David Carlton <carlton@math.stanford.edu>
12123
12124 * linespec.c (decode_line_1): Rename variable 's' to
12125 'file_symtab'.
12126 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12127 (decode_dollar): Ditto.
12128 (decode_variable): Ditto.
12129 (symbol_found): Ditto.
12130
86669319
MC
121312003-01-09 Michael Chastain <mec@shout.net>
12132
12133 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12134
616a9dc4
CV
121352003-01-07 Corinna Vinschen <vinschen@redhat.com>
12136
12137 * win32-nat.c (set_process_privilege): New function.
12138 (child_attach): Call set_process_privilege() to enable the
12139 SE_DEBUG_NAME user privilege if available in process token.
12140
3269bcfa
JB
121412003-01-10 J. Brobecker <brobecker@gnat.com>
12142
12143 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12144 compilation error in the previous revision.
12145
2b0ee454
DC
121462003-01-09 David Carlton <carlton@math.stanford.edu>
12147
12148 * linespec.c: Update copyright.
12149
b3ba1b44
DJ
121502003-01-09 Daniel Jacobowitz <drow@mvista.com>
12151
12152 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12153 than inferior_ptid.
12154 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12155
4ef3f3be
AC
121562003-01-09 Andrew Cagney <ac131313@redhat.com>
12157
479ab5a0
AC
12158 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12159 Update comments.
12160 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12161 (frame_saved_regs_zalloc): Update.
12162 (frame_saved_regs_register_unwind): Update.
12163 (create_new_frame): Update.
12164 (get_prev_frame): Update.
12165 (frame_extra_info_zalloc): Update.
12166 (deprecated_get_frame_saved_regs): Update.
12167 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12168 * cris-tdep.c: Update comment.
12169
bde58177
AC
12170 * somsolib.h: Fix function indentation.
12171 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12172 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12173 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12174 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12175 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12176
4ef3f3be
AC
12177 * infrun.c (follow_fork): Use ISO C definition.
12178 * expprint.c (print_subexp): Use xfree instead of free.
12179 * charset.c: Include "gdb_string.h" instead of <string.h>.
12180 (register_iconv_charsets): Use ISO C definition.
12181 (host_charset, target_charset): Ditto.
12182 * Makefile.in (charset.o): Update dependencies.
12183 (mi-cmd-env.o): Update dependencies.
12184
1c615f7a
AC
121852003-01-08 Andrew Cagney <cagney@redhat.com>
12186
12187 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12188 get_frame_base.
12189
c9a1dc08
AC
121902003-01-08 Andrew Cagney <ac131313@redhat.com>
12191
12192 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12193 build directories. Save edited gdb output in Mbuild.log. If a
12194 build fails, remove any final GDB executable.
12195
dbad9d94
AC
121962003-01-08 Andrew Cagney <ac131313@redhat.com>
12197
12198 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12199 replacing hex constants with function names and stripping leading
12200 file name directory prefixes.
12201
8d357cca
AC
122022003-01-08 Andrew Cagney <cagney@redhat.com>
12203
12204 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12205 get_frame_base.
12206
bca02a8a
DC
122072003-01-08 David Carlton <carlton@math.stanford.edu>
12208
12209 * linespec.c (decode_line_1): Move code into decode_variable.
12210 (decode_variable): New function.
12211
7f8ab3a0
AC
122122003-01-08 Andrew Cagney <ac131313@redhat.com>
12213
12214 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12215
7b5849cc
AC
122162003-01-08 Andrew Cagney <cagney@redhat.com>
12217
12218 * cris-tdep.c (cris_frame_init_saved_regs): Use
12219 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12220 saved_regs buffer.
12221 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12222 (sh64_nofp_frame_init_saved_regs): Ditto.
12223 (sh_fp_frame_init_saved_regs): Ditto.
12224 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12225 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12226 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12227 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12228
72a5efb3
DJ
122292003-01-08 Daniel Jacobowitz <drow@mvista.com>
12230
12231 * minsyms.c (lookup_minimal_symbol): Update comment.
12232 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12233 (lookup_minimal_symbol_solib_trampoline): Likewise.
12234
11c02a10
AC
122352003-01-08 Andrew Cagney <cagney@redhat.com>
12236
aab3ea25
AC
12237 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12238 frame_relative_level.
12239
da50a4b7
AC
12240 * alpha-tdep.c: Use get_frame_extra_info.
12241 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12242 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12243 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12244 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12245
11c02a10
AC
12246 * alpha-tdep.c: Use get_next_frame.
12247 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12248 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12249 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12250 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12251 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12252 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12253 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12254
1e2330ba
AC
122552003-01-07 Andrew Cagney <cagney@redhat.com>
12256
12257 * alpha-tdep.c: Use get_frame_base.
12258 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12259 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12260 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12261 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12262 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12263 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12264 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12265 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12266
2d75187b
AC
122672003-01-07 Andrew Cagney <cagney@redhat.com>
12268
12269 * frame.c (deprecated_get_frame_context): New function.
12270 (deprecated_set_frame_context): New function.
12271 * frame.h (deprecated_get_frame_context): Declare.
12272 (deprecated_set_frame_context): Declare.
12273 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12274 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12275
483d36b2
AC
122762003-01-07 Andrew Cagney <cagney@redhat.com>
12277
12278 * frame.c (deprecated_set_frame_next_hack): New function.
12279 (deprecated_set_frame_prev_hack): New function.
12280 * frame.h (deprecated_set_frame_next_hack): Declare.
12281 (deprecated_set_frame_prev_hack): Declare.
12282 * mcore-tdep.c (analyze_dummy_frame): Use
12283 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12284 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12285
14e91ac5
DC
122862003-01-07 David Carlton <carlton@math.stanford.edu>
12287
12288 * linespec.c (decode_line_1): Move code into decode_dollar.
12289 (decode_dollar): New function.
12290
b0c6b05c
AC
122912003-01-07 Andrew Cagney <cagney@redhat.com>
12292
12293 * arm-tdep.c (arm_init_extra_frame_info): Use
12294 deprecated_update_frame_base_hack.
12295 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12296 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12297 (fix_frame_pointer): Ditto.
12298 (mn10300_analyze_prologue): Ditto.
12299
a00a19e9
AC
123002003-01-07 Andrew Cagney <cagney@redhat.com>
12301
12302 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12303 extra_info using frame_extra_info_zalloc.
12304 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12305 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12306 (sh64_init_extra_frame_info): Ditto.
12307 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12308 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12309 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12310 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12311 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12312 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12313 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12314 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12315 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12316 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12317 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12318 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12319
12320 * mn10300-tdep.c (analyze_dummy_frame): Use
12321 deprecated_set_frame_extra_info_hack.
12322 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12323
1fb4c65b
JB
123242003-01-07 J. Brobecker <brobecker@gnat.com>
12325
12326 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12327 class is not scText. These do not define "real" procedures.
12328 (parse_partial_symbols): Likewise.
12329
9fe7d6bf
MS
123302003-01-06 Michael Snyder <msnyder@redhat.com>
12331
12332 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12333
f6c609c4
AC
123342003-01-06 Andrew Cagney <ac131313@redhat.com>
12335
12336 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12337 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12338 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12339 deprecated_frame_xmalloc_with_cleanup.
12340 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12341 deprecated_frame_xmalloc.
12342 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12343 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12344
d995ff4b
AC
123452003-01-06 Andrew Cagney <cagney@redhat.com>
12346
84dc46cb
AC
12347 * x86-64-linux-tdep.c: Include "osabi.h".
12348 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12349
d995ff4b
AC
12350 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12351
66140c26
AC
123522003-01-06 Andrew Cagney <cagney@redhat.com>
12353
12354 * MAINTAINERS (Target Instruction Set Architectures): Update
12355 arm-elf. Can be built with -Werror, has been multiarched.
12356
12357 * value.h (unpack_long): Make buffer parameter constant.
12358 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12359 * scm-lang.h (scm_parse): Ditto.
12360 * defs.h (extract_typed_address, extract_address): Ditto.
12361 (extract_long_unsigned_integer): Ditto.
12362 * inferior.h (unsigned_pointer_to_address): Ditto.
12363 (signed_pointer_to_address): Ditto.
12364 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12365 * gdbarch.h, gdbarch.c: Regenerate.
12366 * findvar.c (extract_long_unsigned_integer): Update.
12367 (extract_address): Update.
12368 (extract_typed_address): Update.
12369 (unsigned_pointer_to_address): Update.
12370 * values.c (unpack_long): Update.
12371 (unpack_double): Update.
12372 (unpack_pointer): Update.
12373 (unpack_field_as_long): Update.
12374 * d10v-tdep.c (d10v_pointer_to_address): Update.
12375 * avr-tdep.c (avr_pointer_to_address): Update.
12376 * scm-lang.c (scm_unpack): Update.
12377 * findvar.c (signed_pointer_to_address): Update.
12378
b089b3da
ML
123792003-01-06 Michal Ludvig <mludvig@suse.cz>
12380
8ffd9b1b 12381 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12382 since it is in i386-tdep.c.
12383
aff87235
JB
123842003-01-06 J. Brobecker <brobecker@gnat.com>
12385
12386 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12387 failure introduced in the previous change.
12388
34f5e845
MC
123892003-01-05 Michael Chastain <mec@shout.net>
12390
12391 * README: Remove references to deleted remote-*.c files:
12392 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12393 remote-nrom.c, remote-os9k.c, remote-udi.c.
12394
28bcfd30
MK
123952003-01-05 Mark Kettenis <kettenis@gnu.org>
12396
12397 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12398 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12399 i386_get_longjmp_target.
12400
15a5b3ee
AC
124012003-01-05 Andrew Cagney <ac131313@redhat.com>
12402
12403 * arm-tdep.c (prologue_cache): Change to a pointer.
12404 (_initialize_arm_tdep): Allocate prologue_cache.
12405 (check_prologue_cache): Update.
12406 (save_prologue_cache): Update.
12407 (arm_gdbarch_init): Update.
12408
c263362b
DJ
124092003-01-04 Daniel Jacobowitz <drow@mvista.com>
12410
12411 * stabsread.c (update_method_name_from_physname): Call complaint()
12412 instead of error.
12413
51603483
DJ
124142003-01-04 Daniel Jacobowitz <drow@mvista.com>
12415
12416 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12417 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12418 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12419
12420 * blockframe.c: Include "gdbcmd.h" and "command.h".
12421 (backtrace_below_main): New variable.
12422 (file_frame_chain_valid, func_frame_chain_valid)
12423 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12424 (generic_func_frame_chain_valid): Remove functions.
12425 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12426 (_initialize_blockframe): New function.
12427 * Makefile.in (blockframe.o): Update dependencies.
12428 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12429 comment. Call frame_chain_valid ().
12430 * frame.h: Remove old prototypes. Add prototype for
12431 frame_chain_valid and update comments to match.
12432 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12433 Remove old comment.
12434 * gdbarch.h: Regenerated.
12435 * gdbarch.c: Regenerated.
12436
12437 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12438 set_gdbarch_frame_chain_valid.
12439 * avr-tdep.c (avr_gdbarch_init): Likewise.
12440 * cris-tdep.c (cris_gdbarch_init): Likewise.
12441 * frv-tdep.c (frv_gdbarch_init): Likewise.
12442 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12443 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12444 (i386_nw_init_abi): Likewise.
12445 (i386_gdbarch_init): Likewise.
12446 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12447 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12448 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12449 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12450 * mips-tdep.c (mips_gdbarch_init): Likewise.
12451 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12452 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12453 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12454 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12455 * s390-tdep.c (s390_gdbarch_init): Likewise.
12456 * sh-tdep.c (sh_gdbarch_init): Likewise.
12457 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12458 * v850-tdep.c (v850_gdbarch_init): Likewise.
12459 * vax-tdep.c (vax_gdbarch_init): Likewise.
12460 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12461
12462 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12463 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12464 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12465 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12466 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12467 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12468 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12469 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12470
b00a8037
DJ
124712002-01-04 Daniel Jacobowitz <drow@mvista.com>
12472
12473 * Makefile.in (acconfig_h): Remove incorrect macro.
12474 (config_h): Define.
12475 (osabi.o): Update dependencies.
12476 * configure.tgt: Set gdb_osabi based on target triplet.
12477 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12478 * configure: Regenerated.
12479 * config.in: Regenerated.
12480 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12481 (GDB_OSABI_DEFAULT): Define if not already defined.
12482 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12483 (set_osabi_string): New variables.
12484 (gdbarch_register_osabi): Add new OS ABI to
12485 gdb_osabi_available_names.
12486 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12487 (set_osabi, show_osabi): New functions.
12488 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12489
4be87837
DJ
124902003-01-04 Daniel Jacobowitz <drow@mvista.com>
12491
12492 * arch-utils.c (gdbarch_info_init): Set osabi to
12493 GDB_OSABI_UNINITIALIZED.
12494 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12495 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12496 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12497 * gdbarch.c: Regenerated.
12498 * gdbarch.h: Regenerated.
12499 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12500 there's no BFD.
12501 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12502 * osabi.h (enum gdb_osabi): Move to defs.h.
12503 (gdbarch_init_osabi): Update prototype.
12504 * defs.h (enum gdb_osabi): Moved here.
12505 * Makefile.in: Update dependencies.
12506
12507 * alpha-tdep.h: Don't include "osabi.h".
12508 (struct gdbarch_tdep): Remove osabi member.
12509 * alpha-tdep.c: Include "osabi.h".
12510 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12511 iterate over arches. Update call to gdbarch_init_osabi.
12512 (alpha_dump_tdep): Don't dump osabi.
12513 * alpha-linux-tdep.c: Include "osabi.h".
12514 * alpha-osf1-tdep.c: Include "osabi.h".
12515 * alphafbsd-tdep.c: Include "osabi.h".
12516 * alphanbsd-tdep.c: Include "osabi.h".
12517
12518 * arm-tdep.h: Don't include "osabi.h".
12519 (struct gdbarch_tdep): Remove osabi member.
12520 * arm-tdep.c: Include "osabi.h".
12521 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12522 iterate over arches. Update call to gdbarch_init_osabi.
12523 (arm_dump_tdep): Don't dump osabi.
12524 * arm-linux-tdep.c: Include "osabi.h".
12525 * armnbsd-tdep.c: Include "osabi.h".
12526
12527 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12528 Update call to gdbarch_init_osabi.
12529
12530 * i386-tdep.h: Don't include "osabi.h".
12531 (struct gdbarch_tdep): Remove osabi member.
12532 * i386-tdep.c: Include "osabi.h".
12533 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12534 iterate over arches. Update call to gdbarch_init_osabi.
12535 (i386_dump_tdep): Don't dump osabi.
12536 * i386-linux-tdep.c: Include "osabi.h".
12537 * i386-sol2-tdep.c: Include "osabi.h".
12538 * i386bsd-tdep.c: Include "osabi.h".
12539 * i386gnu-tdep.c: Include "osabi.h".
12540 * i386ly-tdep.c: Include "osabi.h".
12541 * i386nbsd-tdep.c: Include "osabi.h".
12542 * i386obsd-tdep.c: Include "osabi.h".
12543
12544 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12545 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12546 check osabi when iterating over arches. Update call to
12547 gdbarch_init_osabi.
12548 (mips_dump_tdep): Don't dump osabi.
12549
12550 * ns32k-tdep.h: Don't include "osabi.h".
12551 (struct gdbarch_tdep): Remove.
12552 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12553 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12554 allocate tdep. Update call to gdbarch_init_osabi.
12555 (ns32k_dump_tdep): Remove.
12556 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12557 * ns32knbsd-tdep.c: Include "osabi.h".
12558
12559 * ppc-tdep.h: Don't include "osabi.h".
12560 (struct gdbarch_tdep): Remove osabi member.
12561 * rs6000-tdep.c: Include "osabi.h".
12562 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12563 osabi when iterating over arches. Update call to
12564 gdbarch_init_osabi.
12565 (rs6000_dump_tdep): Don't dump osabi.
12566 * ppc-linux-tdep.c: Include "osabi.h".
12567 * ppcnbsd-tdep.c: Include "osabi.h".
12568
12569 * sh-tdep.h: Don't include "osabi.h".
12570 (struct gdbarch_tdep): Remove osabi member.
12571 * sh-tdep.c: Include "osabi.h".
12572 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12573 iterate over arches. Update call to gdbarch_init_osabi.
12574 (sh_dump_tdep): Don't dump osabi.
12575 * shnbsd-tdep.c: Include "osabi.h".
12576
12577 * sparc-tdep.c: Include "osabi.h".
12578 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12579 iterate over arches. Update call to gdbarch_init_osabi.
12580 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12581 tdep structure.
12582
12583 * vax-tdep.h: Don't include "osabi.h".
12584 (struct gdbarch_tdep): Remove.
12585 * vax-tdep.c: Include "osabi.h".
12586 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12587 iterate over arches. Don't allocate tdep. Update call
12588 to gdbarch_init_osabi.
12589 (vax_dump_tdep): Remove.
12590 (_initialize_vax_tdep): Update call to gdbarch_register.
12591
a881cf8e
DJ
125922003-01-04 Daniel Jacobowitz <drow@mvista.com>
12593
12594 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12595 entirely.
12596 (breakpoint_re_set_one): Don't fetch the value for a disabled
12597 watchpoint.
12598
1e698235
DJ
125992003-01-04 Daniel Jacobowitz <drow@mvista.com>
12600
12601 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12602 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12603 (COERCE_FLOAT_TO_DOUBLE): Remove.
12604 * gdbarch.c: Regenerate.
12605 * gdbarch.h: Regenerate.
12606 * Makefile.in: Remove value_h from gdbarch_h.
12607 * valops.c (coerce_float_to_double): New variable.
12608 (default_coerce_float_to_double): Remove.
12609 (standard_coerce_float_to_double): Remove.
12610 (value_arg_coerce): Use coerce_float_to_double.
12611 (_initialize_valops): Add "set coerce-float-to-double".
12612 * value.h (default_coerce_float_to_double): Remove prototype.
12613 (standard_coerce_float_to_double): Remove prototype.
12614
12615 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12616 prototyped.
12617 * mdebugread.c (parse_symbol): Likewise.
12618 * stabsread.c (define_symbol): Mark all functions as prototyped.
12619
12620 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12621 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12622 set_gdbarch_coerce_float_to_double.
12623 * arm-tdep.c (arm_gdbarch_init): Likewise.
12624 * frv-tdep.c (frv_gdbarch_init): Likewise.
12625 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12626 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12627 * mips-tdep.c (mips_gdbarch_init): Likewise.
12628 (mips_coerce_float_to_double): Remove.
12629 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12630 (rs6000_coerce_float_to_double): Remove.
12631 * s390-tdep.c (s390_gdbarch_init): Likewise.
12632 * sh-tdep.c (sh_gdbarch_init): Likewise.
12633 (sh_coerce_float_to_double): Remove.
12634 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12635 (sparc_coerce_float_to_double): Remove.
12636 * v850-tdep.c (v850_gdbarch_init): Likewise.
12637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12638 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12639 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12640 (hppa_coerce_float_to_double): Remove prototype.
12641 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12642
f436a26a
DJ
126432003-01-04 Daniel Jacobowitz <drow@mvista.com>
12644
12645 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12646
248f8055
DJ
126472003-01-04 Daniel Jacobowitz <drow@mvista.com>
12648
12649 Suggested by Stewart Brown <sb24@avaya.com>:
12650 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12651 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12652 (c_type_print_varspec_suffix): Likewise.
12653
72cfdc76
MK
126542003-01-04 Mark Kettenis <kettenis@gnu.org>
12655
bfd260bb
MK
12656 * configure.in: Don't set and AC_SUBST SUBDIRS.
12657 * configure: Regenerated.
12658
72cfdc76
MK
12659 * configure.in: Remove code dealing with shared libraries.
12660 * Makefile.in: Remove HLDFLAGS and HLDENV.
12661 * configure: Regenerated.
12662
c8b8a898
AC
126632003-01-04 Andrew Cagney <ac131313@redhat.com>
12664
12665 * frame.c (deprecated_frame_xmalloc): New function.
12666 (deprecated_set_frame_saved_regs_hack): New function.
12667 (deprecated_set_frame_extra_info_hack): New function.
12668 * frame.h (deprecated_frame_xmalloc): Declare.
12669 (deprecated_set_frame_saved_regs_hack): Declare.
12670 (deprecated_set_frame_extra_info_hack): Declare.
12671
14abd0fb
MK
126722003-01-04 Mark Kettenis <kettenis@gnu.org>
12673
8ee53726
MK
12674 * configure.in: Move code that provides the --enable-gdbtk option
12675 right after the code that handles the --enable-tui option, and
12676 polish it somewhat.
12677 * configure: Regenerated.
12678
14abd0fb
MK
12679 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12680 AC_CHECK_FUNCS and remove the old check for pread64.
12681 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12682 * acconfig.h (_GNU_SOURCE): Add.
12683 (HAVE_PREAD64): Remove.
12684 * configure, aclocal.m4, config.in: Regenerated.
12685
b2fb4676
AC
126862003-01-03 Andrew Cagney <ac131313@redhat.com>
12687
12688 * alpha-tdep.c: Use get_frame_saved_regs.
12689 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12690 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12691 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12692 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12693 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12694
8dcde887
MK
126952003-01-03 Mark Kettenis <kettenis@gnu.org>
12696
12697 * configure.in: Remove all use of the SUBDIRS variable; add
12698 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12699 code providing the --enable-multi-ice option, and move it right in
12700 front of the code that checks whether gdbserver is supported.
12701 Polish that too.
12702 * configure: Regenerated.
12703 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12704 @SUBDIRS@.
12705
8ccd593b
AC
127062003-01-03 Andrew Cagney <cagney@redhat.com>
12707
12708 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12709 * avr-tdep.c, cris-tdep.c: Ditto.
12710 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12711 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12712
91151a06
MK
127132003-01-03 Mark Kettenis <kettenis@gnu.org>
12714
12715 * configure.in: Remove --enable-netrom option.
12716 * configure: Regenerated.
12717
8fe84d01
MK
127182003-01-03 Mark Kettenis <kettenis@gnu.org>
12719
12720 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12721 declaration for `struct re_pattern_buffer' instead.
12722 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12723
f0394be6
JB
127242003-01-03 J. Brobecker <brobecker@gnat.com>
12725
12726 * mdebugread.c (parse_symbol): Count until the stEnd matching
12727 the structure name.
12728
27e9bf90
MK
127292003-01-02 Mark Kettenis <kettenis@gnu.org>
12730
93d331ba
MK
12731 * configure.in: Remove --with-cpu option.
12732 subscripts. Remove evil changequotes here.
12733 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12734 * config.in, configure: Regenerated.
8ffd9b1b 12735
27e9bf90
MK
12736 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12737 * configure.in: Cleanup section that sources GDB and BFD configure
12738 subscripts. Remove evil changequotes here.
12739 * config.in, configure: Regenerated.
12740
50abf9e5
AC
127412003-01-02 Andrew Cagney <ac131313@redhat.com>
12742
12743 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12744 frame accessor methods.
12745 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12746 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12747 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12748 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12749 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12750 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12751 * z8k-tdep.c: Ditto.
8ffd9b1b 12752
287c1a40
MK
127532003-01-02 Mark Kettenis <kettenis@gnu.org>
12754
f5dbc56d
MK
12755 * configure.in: Remove UI_OUT configuration code.
12756 * ada-lang.c: Update assuming UI_OUT is always true.
12757 * Makefile.in (UIOUT_CFLAGS): Remove.
12758 * configure: Regenerated.
12759 * TODO: Remove blurb about elimination of -DUI_OUT.
12760
627af7ea
MK
12761 * configure.in: Move code that provides the --enable-gdbcli,
12762 --enable-gdbmi options right before the code that handles the
12763 --enable-tui option. Polish a bit.
12764 * configure: Regenerated.
12765
06825bd1
MK
12766 * configure.in: Rewrite check for GNU regex and the
12767 --without-included regex option, and move it into the "Checks for
12768 library functions" section. This makes us use the system regex
12769 again by default on systems with version 2 of the GNU C library.
12770 This was apparently broken.
12771 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12772 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12773 * config.in, configure: Regenerated.
12774
287c1a40
MK
12775 * configure.in: Move code that provides the --enable-tui option
12776 before the "Checks for libraries" section. Polish the code
12777 somewhat and set need_curses to yes if we build the TUI. Rewrite
12778 code that looks for a library providing termcap functionality to
12779 match more closely what's done in the Readline library, and move
12780 it into to the "Checks for libraries" section.
12781 * configure: Regenerated.
12782 * Makefile.in (TERMCAP): Remove variable.
12783 * config/i386/go32.mh (TERMCAP): Remove variable.
12784
684e56bf
AC
127852003-01-02 Andrew Cagney <ac131313@redhat.com>
12786
12787 * MAINTAINERS: Mention gdb_mbuild.sh.
12788 * gdb_mbuild.sh: Rewrite.
12789
e1ea1d75
MK
127902003-01-02 Mark Kettenis <kettenis@gnu.org>
12791
12792 * configure.in: Fix typo in last change.
12793 * config.in, configure: Regenerated.
12794
1b831c93
AC
127952003-01-02 Andrew Cagney <ac131313@redhat.com>
12796
12797 * valarith.c (value_binop): Delete obsolete code and comments.
12798 * configure.host: Ditto.
12799 * buildsym.h (make_blockvector): Ditto.
12800 * buildsym.c (make_blockvector): Ditto.
12801 * defs.h (enum language): Ditto.
12802 (chill_demangle): Ditto.
12803 * elfread.c (elf_symtab_read): Ditto.
12804 * dwarfread.c (CHILL_PRODUCER): Ditto.
12805 (set_cu_language): Ditto.
12806 (handle_producer): Ditto.
12807 * expprint.c (print_subexp): Ditto.
12808 * gdbtypes.c (chill_varying_type): Ditto.
12809 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12810 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12811 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12812 (chill_varying_type): Ditto.
12813 * language.h (_LANG_chill): Ditto.
12814 * language.c (binop_result_type, integral_type): Ditto.
12815 (character_type, string_type, structured_type): Ditto.
12816 (lang_bool_type, binop_type_check): Ditto.
12817 * stabsread.h (os9k_stabs): Ditto.
12818 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12819 (define_symbol, read_type, read_struct_fields): Ditto.
12820 (read_array_type, read_enum_type, read_huge_number): Ditto.
12821 (read_range_type, start_stabs): Ditto.
12822 * symfile.c (init_filename_language_table): Ditto.
12823 (add_psymbol_with_dem_name_to_list): Ditto.
12824 * symtab.c (symbol_init_language_specific): Ditto.
12825 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12826 * symtab.h (struct general_symbol_info): Ditto.
12827 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12828 * typeprint.c (typedef_print): Ditto.
12829 * utils.c (fprintf_symbol_filtered): Ditto.
12830 * valops.c (value_cast, search_struct_field, value_slice): Delete
12831 obsolete code.
12832 (varying_to_slice): Delete function.
12833 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12834 (varying_to_slice): Delete declaration.
12835 * MAINTAINERS: Update.
12836
8bb2c122
MK
128372003-01-02 Mark Kettenis <kettenis@gnu.org>
12838
97bf5e38
MK
12839 * configure.in: Reorganize "Checks for library functions section"
12840 a bit. Remove check for `btowc' and `isascii' functions.
12841 * configure: Regenerated.
12842
5ee754fc
MK
12843 * acconfig.h (_MSE_INT_H): Remove.
12844 * configure.in: Create "Checks for header files" section, and move
12845 appropriate tests there. Don't check for objlist.h, wchar.h,
12846 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12847 misdetection fix. Also add "Checks for types", "Checks for
12848 compiler characteristics" and "Checks for library functions"
12849 sections.
12850 * config.in, configure: Regenerated.
12851
8bb2c122
MK
12852 * configure.in: Create "Checks for programs" section, and move
12853 appropriate tests there.
12854
9a156167
MK
128552003-01-01 Mark Kettenis <kettenis@gnu.org>
12856
12857 * configure.in: Create "Checks for libraries" section, and move
12858 appropriate tests there. Cleanup check for wctype in libw. Use
12859 AC_SEARCH_LIBS to see whether we need libsocket.
12860 * configure: Regenerated.
12861
a80e2bcb 12862For older changes see ChangeLog-2002
c906108c
SS
12863\f
12864Local Variables:
12865mode: change-log
12866left-margin: 8
12867fill-column: 74
12868version-control: never
12869End:
This page took 1.190388 seconds and 4 git commands to generate.