* language.h (language_defn): new field, la_word_break_characters.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6084f43a
JB
12003-10-06 J. Brobecker <brobecker@gnat.com>
2
3 * language.h (language_defn): new field, la_word_break_characters.
4 * language.c (unknown_language_defn): Set new field to
5 default_word_break_characters.
6 (auto_language_defn): Likewise.
7 (local_language_defn): Likewise.
8 * ada-lang.c (ada_language_defn): Likewise.
9 * c-lang.c (c_language_defn): Likewise.
10 (cplus_language_defn): Likewise.
11 (asm_language_defn): Likewise.
12 (minimal_language_defn): Likewise.
13 * f-lang.c (f_language_defn): Likewise.
14 * jv-lang.c (java_language_defn): Likewise.
15 * m2-lang.c (m2_language_defn): Likewise.
16 * objc-lang.c (objc_language_defn): Likewise.
17 * p-lang.c (pascal_language_defn): Likewise.
18 * scm-lang.c (scm_language_defn): Likewise.
19
944fcfab
AC
202003-10-06 Andrew Cagney <cagney@redhat.com>
21
22 * ppc-sysv-tdep.c: Re-indent.
23
9f0a5303
JB
242003-10-06 J. Brobecker <brobecker@gnat.com>
25
26 * language.h (default_word_break_characters): Add prototype.
27 * language.c (default_word_break_characters): New function.
28
7270b6ed
AS
292003-10-06 Andreas Schwab <schwab@suse.de>
30
31 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
32 with %eax.
33
a5d61f66
AC
342003-10-06 Andrew Cagney <cagney@redhat.com>
35
36 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
37 "h8500-tdep.c".
38 (z8k-tdep.o): Delete custom build rule.
39
28a86f5c
AC
402003-10-06 Andrew Cagney <cagney@redhat.com>
41
1bfd8a83
AC
42 * Makefile.in: Update all dependencies.
43
17144ef8
AC
44 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
45 No longer list PA as as obsolete candidate. List m32r as
46 broken instead of obsolete.
47
a5679ae5
AC
48 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
49 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
50 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
51 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
52 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
53 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
54 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
55 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
56 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
57 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
58 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
59 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
60 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
61 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
62 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
63 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
64 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
65 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
66 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
67 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
68 * config/z8k/z8k.mt: Ditto.
69
4a8269c0
AC
70 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
71 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
72 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
73 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
74 sparclite were removed.
75 * configure.host, configure.tgt: Remove corresponding tuples.
76
41989fcd
AC
77 * breakpoint.c, breakpoint.h: Remove obsolete code.
78 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
79 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
80 * stabsread.h, xcoffread.c: Ditto.
81
28a86f5c
AC
82 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
83 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
84 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
85 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
86
4efdaa0d
DL
872003-10-06 David Lecomber <dsl@sources.redhat.com>
88
89 * f-valprint.c: Reformatting
90
ae53de43
MK
912003-10-06 Mark Kettenis <kettenis@gnu.org>
92
a8bb57e7
MK
93 * x86-64-tdep.c: Remove duplicate comment.
94
ae53de43
MK
95 * x86-64-tdep.c (x86_64_store_return_value): Don't use
96 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
97 names for return values. This fixes a bug since we looked at %rbx
98 instead of %rdx.
99
473f17b0
MK
1002003-10-05 Mark Kettenis <kettenis@gnu.org>
101
2c261fae
MK
102 * x86-64-tdep.c: Include "regset.h".
103
473f17b0
MK
104 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
105 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
106 sizeof_fpregset.
107 * i386-tdep.c: Include "regset.h".
108 (i386_supply_gregset): New function.
109 (i386_supply_fpregset): New function.
110 (i386_gdbarch_init): Initialze register set-related members of
111 TDEP.
112 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
113 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
114
afd48b75
AC
1152003-10-03 Andrew Cagney <cagney@redhat.com>
116
117 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
118 set extract_return_value, store_return_value and
119 use_struct_convention to ppc64_sysv_abi_extract_return_value,
120 ppc64_sysv_abi_store_return_value and
121 ppc64_sysv_abi_use_struct_convention.
122 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
123 (ppc64_sysv_abi_store_return_value): Declare.
124 (ppc64_sysv_abi_use_struct_convention): Declare.
125 * ppc-sysv-tdep.c (enum return_value_convention): Define.
126 (ppc64_sysv_abi_extract_return_value): New function.
127 (ppc64_sysv_abi_store_return_value): New function.
128 (ppc64_sysv_abi_use_struct_convention): New function.
129 (ppc64_sysv_abi_return_value): New function.
130
9b540880
AC
1312003-10-03 Andrew Cagney <cagney@redhat.com>
132
133 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
134 convert a descriptor to a function when it's in the ".opd"
135 section.
136
8748518b
CV
1372003-10-03 Corinna Vinschen <vinschen@redhat.com>
138
139 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
140 reg_size to keep GCC silent.
141
0fd85043
CV
1422003-10-03 Corinna Vinschen <vinschen@redhat.com>
143
144 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
145 base for DW_EH_PE_textrel encodings.
146 (read_encoded_value): Add a DW_EH_PE_textrel case.
147 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
148 section.
149
37b517aa
MK
1502003-10-03 Mark Kettenis <kettenis@gnu.org>
151
152 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
153
12c266ea
AC
1542003-10-02 Andrew Cagney <cagney@redhat.com>
155
156 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
157 REGISTER_RAW_SIZE.
158 * gdbarch.h, gdbarch.c: Re-generate.
159 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
160 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
161 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
162 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
163 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
164 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
165 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
166 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
167 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
168 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
169 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
170 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
171 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
172 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
173 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
174 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
175
78ba4af6
JB
1762003-10-02 Jim Blandy <jimb@redhat.com>
177
178 * dwarf2read.c (struct die_info): Doc fix.
179
617daa0e
CV
1802003-10-02 Corinna Vinschen <vinschen@redhat.com>
181
182 * sh-tdep.c: Running thru gdb_indent.sh.
183
e5e33cd9
CV
1842003-10-02 Corinna Vinschen <vinschen@redhat.com>
185
186 * sh-tdep.c (sh_justify_value_in_reg): New function.
187 (sh_stack_allocsize): Ditto.
188 (flt_argreg_array): New array used for floating point argument
189 passing.
190 (sh_init_flt_argreg): New function.
191 (sh_next_flt_argreg): Ditto.
192 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
193 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
194 Fix argument passing strategy.
195 (sh_push_dummy_call_nofpu): Ditto.
196
5fe830e4
AC
1972003-10-01 Andrew Cagney <cagney@redhat.com>
198
199 * value.h (register_value_being_returned): Declare. Replace
200 "value_being_returned".
201 * infcall.c (call_function_by_hand): Use
202 register_value_being_returned.
203 * infcmd.c (print_return_value): Call
204 "register_value_being_returned", handle struct return locally.
205 * values.c (register_value_being_returned): New function. Replace
206 "value_being_returned".
207
2082003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
209
210 * linux-proc.c (linux_do_registers): New function.
211 (linux_make_note_section): Use linux_do_registers in case of
212 single threaded inferior programs.
213
64f395bf
AC
2142003-10-01 Andrew Cagney <cagney@redhat.com>
215
216 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
217 use STRUCT_ADDR. When not using "struct return convention", pass
218 "0" to "value_being_returned". Add FIXMEs.
219 * infcmd.c (print_return_value): Pass an explicit 0/1 to
220 value_being_returned. Add comments.
221 * values.c (value_being_returned): Add fixme.
222 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
223 (hppa_value_returned_from_stack): Add FIXME.
224
639d11d3
DC
2252003-09-30 David Carlton <carlton@kealia.com>
226
227 * dwarf2read.c (struct die_info): Add 'parent' field; replace
228 'has_children' and 'next' by 'child' and 'sibling'.
229 (read_comp_unit): Rework algorithm, breaking body into
230 read_die_and_children and read_die_and_siblings.
231 (read_die_and_children, read_die_and_siblings): New.
232 (read_full_die): Add 'has_children' argument; set it instead of
233 the die's 'has_children' field. Minor formatting cleanup.
234 (free_die_list): Use die->child and die->sibling instead of
235 die->next.
236 (dump_die_list): Ditto.
237 (sibling_die): Use die->sibling.
238 (psymtab_to_symtab_1): Use die's 'child' field in place of its
239 'has_children' and 'next' fields.
240 (process_die, read_file_scope, read_func_scope)
241 (read_lexical_block_scope, read_structure_scope)
242 (read_enumeration, read_array_type, read_common_block)
243 (read_namespace, read_subroutine_type, dump_die): Ditto.
244
5bffac25
AC
2452003-09-30 Andrew Cagney <cagney@redhat.com>
246
247 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
248 to 224, not 220.
249
f30992d4
AC
2502003-09-30 Andrew Cagney <cagney@redhat.com>
251
252 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
253 REGISTER_VIRTUAL_SIZE.
254 * gdbarch.h, gdbarch.c: Regenerate.
255 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
256 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
257 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
258
2e092625
AC
2592003-09-29 Andrew Cagney <cagney@redhat.com>
260
261 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
262 DEPRECATED_REGISTER_VIRTUAL_TYPE.
263 * gdbarch.h, gdbarch.c: Regenerate.
264 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
265 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
266
267 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
268 * remote-vxmips.c (vx_read_register): Ditto.
269 * remote-vx68.c (vx_read_register): Ditto.
270 * gnu-nat.c (inf_validate_procs): Ditto.
271
7a5dd6ee
JB
2722003-09-29 J. Brobecker <brobecker@gnat.com>
273
274 * infcall.c (call_function_by_hand): Fix build failure
275 introduced in the previous change to this file.
276
1fe43d45
AC
2772003-09-29 Andrew Cagney <cagney@redhat.com>
278
279 * NEWS: Mention Objective-C.
280
e28a332c
JG
2812003-09-29 Jerome Guitton <guitton@act-europe.fr>
282
283 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
284 test if the register has been saved on the stack.
285 (arm_scan_prologue_cache): When analysing the instruction
286 "str lr, [sp, #-4]", save the address where lr has been stored.
287
9ff63c35
AC
2882003-09-28 Andrew Cagney <cagney@redhat.com>
289
7f5f525d
AC
290 * frame.c (frame_read_unsigned_register): Delete function.
291 * frame.h (frame_read_unsigned_register): Delete declaration.
292 * sparc-tdep.c (sparc_init_extra_frame_info): Use
293 get_frame_register_unsigned.
294 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
295 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
296 * d10v-tdep.c (d10v_print_registers_info): Ditto.
297
298 * frame.h (frame_read_register): Delete declaration.
299 * frame.c (frame_read_register): Delete function.
300 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
301 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
302 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
303 * mips-tdep.c (mips_register_to_value): Ditto.
304 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
305 * d10v-tdep.c (d10v_print_registers_info): Ditto.
306
307 * frame.c (frame_read_signed_register): Delete function.
308 (frame_read_unsigned_register): Update comments.
309 * frame.h (frame_read_signed_register): Delete declaration.
310 * h8300-tdep.c (h8300_print_register): Use
311 get_frame_register_signed.
312 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
313
9ff63c35
AC
314 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
315 Rename VALUE_RETURNED_FROM_STACK.
316 * infcmd.c (print_return_value): Update.
317 * infcall.c (call_function_by_hand): Update.
318
41d041d6
MK
3192003-09-28 Mark Kettenis <kettenis@gnu.org>
320
321 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
322 regcache argument and reverse the order of the other two
323 arguments. Remove local regcache variable. Determine
324 architecture from REGCACHE. Update comments.
325 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
326 reverse the order of the other two arguments. Remove local
327 regcache variable. Determine architecture from REGCACHE. Update
328 comments.
329 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
330 prototypes. Update comments.
331 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
332 comment.
333 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
334 Update.
335 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
336 * i386-interix-nat.c (supply_fpregset): Update.
337 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
338 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
339 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
340 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
341 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
342 Update.
343 * i386obsd-tdep.c (fetch_core_registers): Update.
344 * i386v4-nat.c (supply_fpregset): Update.
345 * x86-64-linux-nat.c (supply_fpregset): Update.
346 * x86-64-linux-tdep.c (fetch_core_registers): Update.
347
1cb97e17
MK
3482003-09-27 Mark Kettenis <kettenis@gnu.org>
349
5716833c
MK
350 * i386-tdep.h: Put opaque declarations in alphabetical
351 order. Remove spurious whitespace.
352 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
353 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
354 * i386-tdep.c (MM0_REGNUM): Remove define.
355 (i386_mmx_regnum_p): Add gdbarch argument.
356 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
357 Rewrite using new macro definitions for FPU/SSE registers.
358 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
359 definitions from i387-tdep.h.
360 (i386_register_name): Update.
361 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
362 new macro definitions for FPU/SSE registers.
363 (i386_extract_return_value): Determine whether floating-point
364 registers are present by examining REGCACHE's architecture.
365 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
366 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
367 FPU/SSE registers.
368 (i386_register_type): Update.
369 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
370 definitions for FPU registers. Use REGCACHE's architecture to
371 determine the appropriate register numbers.
372 (i386_pseudo_register_read, i386_pseudo_register_write,
373 i386_register_reggroup_p): Update.
374 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
375 TDEP->mm0_regnum.
376 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
377 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
378 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
379 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
380 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
381 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
382 *' to `void *'.
383 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
384 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
385 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
386 definitions for FPU/SSE registers.
387 (FXSAVE_MXCSR_ADDR): New define.
388 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
389 TDEP->mm0_regnum.
390 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
391 (I387_ST0_REGNUM): Define.
392
41d35cb0
MK
393 * regcache.h (get_regcache_arch): New prototype.
394 * regcache.c (get_regcache_arch): New function.
395
54e74f72
MK
396 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
397 whitespace.
398
1cb97e17
MK
399 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
400 Initialize using ARRAY_SIZE.
401
0968aa8c
AC
4022003-09-27 Andrew Cagney <cagney@redhat.com>
403
404 * arch-utils.c (deprecated_init_frame_pc_default): Rename
405 "init_frame_pc_default".
406 * arch-utils.h (deprecated_init_frame_pc_default): Update.
407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
408 * vax-tdep.c (vax_gdbarch_init): Update.
409 * v850-tdep.c (v850_gdbarch_init): Update.
410 * sh64-tdep.c (sh64_gdbarch_init): Update.
411 * s390-tdep.c (s390_gdbarch_init): Update.
412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
413 * mcore-tdep.c (mcore_gdbarch_init): Update.
414 * h8300-tdep.c (h8300_gdbarch_init): Update.
415 * cris-tdep.c (cris_gdbarch_init): Update.
416 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
417
54c84734
MK
4182003-09-26 Mark Kettenis <kettenis@gnu.org>
419
420 * regset.h: New file.
421 * Makefile.in (regset_h): Add.
422
1b1d3794
AC
4232003-09-25 Andrew Cagney <cagney@redhat.com>
424
425 * frame.h (deprecated_frame_saved_regs): Rename
426 get_frame_saved_regs.
427 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
428 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
429 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
430 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
431 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
432
e6beb428
AC
4332003-09-25 Andrew Cagney <cagney@redhat.com>
434
435 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
436 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
437 and Java.
438 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
439 arm*-*-* do not use the new frame code.
440
710122da
DC
4412003-09-25 David Carlton <carlton@kealia.com>
442
443 * c-exp.y: Remove 'register' declarations.
444 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
445
79c2c32d
DC
4462003-09-25 David Carlton <carlton@kealia.com>
447
448 * c-exp.y: Include cp-support.h. Add qualified_type.
449 (yylex): Delete nested type hack; add comments.
450 * cp-namespace.c (cp_lookup_nested_type): New function.
451 * cp-support.h: Declare cp_lookup_nested_type.
452 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
453 instead of value_struct_elt_for_reference.
454 * valops.c: Include cp-support.h.
455 (value_aggregate_elt): New function.
456 (value_namespace_elt): Ditto.
457 (value_struct_elt_for_reference): Make static.
458 * value.h: Delete declaration of value_struct_elt_for_reference;
459 add declaration for value_aggregate_elt.
460 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
461 (valops.o): Ditto.
462
898c62f5
DJ
4632003-09-25 Daniel Jacobowitz <drow@mvista.com>
464
465 * stack.c: Include "reggroups.h".
466 (frame_info): Only display registers in all_reggroup.
467 * Makefile.in (stack.o): Update dependencies.
468
28cd8767
JG
4692003-09-25 Jerome Guitton <guitton@act-europe.fr>
470
471 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
472 "add ip, sp #n" in the prologue.
473 (arm_scan_prologue): Ditto.
474
a4ab2b5d
JG
4752003-09-25 Jerome Guitton <guitton@act-europe.fr>
476
477 * MAINTAINERS (write after approval): Add myself.
478
3f244638
AS
4792003-09-25 Andreas Schwab <schwab@suse.de>
480
481 * m68k-tdep.c: Include "dwarf2-frame.h".
482 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
483 * Makefile.in (m68k-tdep.o): Update dependencies.
484
1c0159e0
CV
4852003-09-25 Corinna Vinschen <vinschen@redhat.com>
486
487 * sh-tdep.c (struct frame_extra_info): Remove.
488 (struct sh_frame_cache): New structure.
489 (GET_SOURCE_REG): New macro extracting source register of an opcode.
490 (GET_TARGET_REG): Ditto but target register.
491 (GET_PUSHED_REG): Remove.
492 (IS_MOV_ARG_TO_REG): New macro.
493 (IS_MOV_ARG_TO_IND_R14): New macro.
494 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
495 (IS_MOVW_PCREL_TO_REG): New macro.
496 (IS_MOVL_PCREL_TO_REG): New macro.
497 (IS_SUB_REG_FROM_SP): New macro.
498 (IS_ARG_MOV): Remove.
499 (IS_MOV_TO_R14): Remove.
500 (IS_RESTORE_FP): New macro.
501 (IS_RTS): New macro.
502 (IS_LDS): New macro.
503 (IS_MOV_FP_SP): New macro.
504 (IS_ADD_REG_TO_FP): New macro.
505 (IS_ADD_IMM_FP): New macro.
506 (sh_skip_prologue_hard_way): Remove.
507 (sh_saved_pc_after_call): Remove.
508 (sh_frame_chain): Remove.
509 (sh_find_callers_reg): Remove.
510 (sh_nofp_frame_init_saved_regs): Remove.
511 (sh_fp_frame_init_saved_regs): Remove.
512 (sh_init_extra_frame_info): Remove.
513 (sh_analyze_prologue): New function.
514 (sh_skip_prologue): Remove deprecated code. Rely on new function
515 sh_analyze_prologue when after_prologue fails.
516 (sh_frame_saved_pc): Remove.
517 (sh_alloc_frame_cache): New function.
518 (sh_frame_cache): Ditto.
519 (sh_frame_prev_register): Ditto.
520 (sh_frame_this_id): Ditto.
521 (sh_frame_unwind): New structure defining the heuristic frame
522 sniffer interface.
523 (sh_frame_sniffer): New function.
524 (sh_unwind_sp): Ditto.
525 (sh_unwind_pc): Ditto.
526 (sh_unwind_dummy_id): Ditto.
527 (sh_frame_base_address): Ditto.
528 (sh_frame_base): New structure defining new frame base code.
529 (sh_in_function_epilogue_p): New function.
530 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
531 code and to call all new code instead. Initialize dwarf2 and
532 heuristic frame sniffer.
533
5f9769d1
PH
5342003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
535
536 * parser-defs.h (struct exp_descriptor): New definition, containing
537 language-specific info for printing, prefixifying, dumping, and
538 evaluating expressions.
539 (exp_descriptor_standard): Declare new variable.
540 (print_subexp): Make global and declare here (from expprint.c).
541 (dump_subexp): Ditto.
542 (dump_subexp_body_standard): Declare.
543 (operator_length_standard): Declare.
544 (op_name_standard): Declare.
545 (print_subexp): Declare.
546 (print_subexp_standard): Declare.
547
548 * language.h (struct language_defn): Add la_exp_desc field to hold
549 pointer to table for language-specific operators.
550 Remove evaluate_exp field, which is now in struct exp_descriptor.
551
552 * parse.c (operator_length): Move most code to new
553 operator_length_standard function. Use language-specific information.
554 (operator_length_standard): New function taking most code from
555 operator_length.
556 (exp_descriptor_standard): New constant.
557
558 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
559 and OP_EXTENDED_LAST.
560
561 * expprint.c (print_subexp): Use language-specific print_subexp.
562 Make global; remove static declaration.
563 Move most code to print_subexp_standard.
564 (print_subexp_standard): New function, containing code formerly in
565 print_subexp.
566 (op_name): Add expression to argument signature.
567 Use langauge-specific op_name.
568 Move most code to op_name_standard.
569 (op_name_standard): New function, containing code formerly in op_name.
570 (dump_subexp): Use new version of op_name function.
571 Use language-specific dump_subexp_body, and move most existing code to
572 dump_subexp_body_standard.
573 (dump_raw_expression): Use new op_name interface.
574 (dump_subexp_body): Move most code to dump_subexp_body_standard.
575 (dump_subexp_body_standard): New function, containing code formerly
576 in dump_subexp_body.
577
578 * language.c (unknown_language): Add default la_exp_desc field and
579 remove evaluate_exp field.
580 (auto_language): Ditto.
581 (local_language): Ditto.
582 * f-lang.c (f_language_defn): Ditto.
583 * c-lang.c (c_language_defn): Ditto.
584 (cplus_language_defn): Ditto.
585 (asm_language_defn): Ditto.
586 (minimal_language_defn): Ditto.
587 * p-lang.c (pascal_language_defn): Ditto.
588 * m2-lang.c (m2_language_defn): Ditto.
589 * objc-lang.c (objc_language_defn): Ditto.
590
591 * jv-lang.c (exp_descriptor_java): New variable, containing
592 Java-specific expression evaluator.
593 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
594 field.
595 * scm-lang.c (exp_descriptor_scm): New variable, containing
596 Scheme-specific expression evaluator.
597 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
598 field.
599 * objc-lang.c (print_object_command): Take evaluate_exp from the
600 la_exp_desc field.
601
602 * Makefile.in (eval.o): Add dependency on parser-defs.h.
603
604 * eval.c: Include parser-defs.h for the full declaration of
605 la_exp_desc's type.
606 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
607
24daaebc
PH
6082003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
609
610 * parser-defs.h (operator_length): Declare.
611
612 * parse.c (length_of_subexp): Use operator_length to get operator
613 lengths and arities for operators.
614 Move most code to new operator_length function.
615 (operator_length): New function absorbing most code from
616 length_of_subexp.
617 (prefixify_subexp): Remove large case and use operator_length instead.
618 (parse_exp_1): Use renamings:
619 dump_prefix_expression => dump_raw_expression and
620 dump_postfix_expression => dump_prefix_expression.
621
622 * expression.h (dump_prefix_expression): Rename to ...
623 (dump_raw_expression): New name.
624 (dump_postfix_expression): Rename to ...
625 (dump_prefix_expression): New name.
626
627 * expprint.c (dump_subexp): Make global. Add comment.
628 Move most existing code to dump_subexp_body.
629 (dump_subexp_body): New function.
630 (dump_prefix_expression): Rename to dump_raw_expression.
631 Remove attempt to print the expression via print_expression: it can't
632 work before the expression is prefixified.
633 (dump_raw_expression): Renamed from dump_prefix_expression.
634 (dump_postfix_expression): Rename to dump_prefix_expression, since
635 that's what it does.
636 Remove 'note' parameter, since this routine must be used on
637 prefixified expression.
638 (dump_prefix_expression): Renamed from dump_postfix_expression.
639
8c2957c4
JB
6402003-09-22 Jim Blandy <jimb@redhat.com>
641
642 * dwarf2read.c (read_array_type): When building the type for an
643 array of unspecified length, make sure to choose the upper bound
644 so that the array's total length comes out to be zero --- that's
645 how we represent such arrays.
646
592e3010
MC
6472003-09-22 Michael Chastain <mec@shout.net>
648
649 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
650
365c70b1
JJ
6512003-09-22 Jeff Johnston <jjohnstn@redhat.com>
652
653 * top.c (quit_force): Fix indirect call to quit_target so
654 a struct qt_args pointer is passed.
655
5d6eb653
AC
6562003-09-22 Andrew Cagney <cagney@redhat.com>
657
658 * arch-utils.h (init_frame_pc_noop): Delete declaration.
659 * arch-utils.c (init_frame_pc_noop): Delete function.
660 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
661 "init_frame_pc".
662 * mips-tdep.c (mips_gdbarch_init): Ditto.
663 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
664 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
665 declaration.
666 (DEPRECATED_INIT_FRAME_PC): Delete macro.
667 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
668 declaration.
669 (DEPRECATED_INIT_FRAME_PC): Delete macro.
670
b222a67f
AG
6712003-09-22 Anthony Green <green@redhat.com>
672
673 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
674 declaration.
675
d5b5ac79
AC
6762003-09-20 Andrew Cagney <cagney@redhat.com>
677
deafb061
AC
678 * breakpoint.c: Eliminate ARGSUSED.
679 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
680 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
681 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
682 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
683 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
684 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
685 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
686 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
687 * wince.c, remote-vx.c: Ditto.
688
d5b5ac79
AC
689 * cli/cli-script.c: Remove "register" attributes.
690 * config/pa/tm-hppa.h: Ditto.
691 * cli/cli-decode.c: Ditto.
692 * cli/cli-cmds.c: Ditto.
693
c6316faa
AC
6942003-09-19 Andrew Cagney <cagney@redhat.com>
695
696 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
697 DEPRECATED_NPC_REGNUM.
698 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
699
f4f99b11
CF
7002003-09-19 Christopher Faylor <cgf@redhat.com>
701
702 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
703
1708f284
JB
7042003-09-19 Jim Blandy <jimb@redhat.com>
705
706 * macrotab.c (macro_include): Use the correct comparison to find
707 the appropriate place for this inclusion in the list.
708
b9fbf434
AC
7092003-09-19 Andrew Cagney <cagney@redhat.com>
710
711 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
712 (DEPRECATED_HPUX_TEXT_END): Define.
713 (deprecated_hpux_text_end): Declare.
714 (struct target_ops): Declare opaque.
715 * hppah-nat.c (text_end): Make static.
716 (deprecated_hpux_text_end): New function.
717 * exec.c (text_end): Delete global variable.
718 (NEED_TEXT_START_END): Do not define.
719 (exec_file_attach): Replace code computing "text_end" code with
720 call to DEPRECATED_HPUX_TEXT_END.
721
5b03f266
AC
7222003-09-19 Andrew Cagney <cagney@redhat.com>
723
724 * utils.c (align_up, align_down): New functions.
725 * defs.h (align_up, align_down): Declare.
726 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
727 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
728 and "align_down".
729 (round_up, round_down): Delete functions.
730 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
731 "align_down".
732 (ROUND_DOWN, ROUND_UP): Delete macros.
733 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
734 * h8300-tdep.c: Replace "round_up" and "round_down" with
735 "align_up" and "align_down".
736 (round_up, round_down): Delete macros.
737 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
738 "align_down".
739 (ROUND_UP, ROUND_DOWN): Delete macros.
740
51db5742
JB
7412003-09-18 J. Brobecker <brobecker@gnat.com>
742
743 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
744 hard-coded constant. Use the proper machine name instead.
745
77949794
AC
7462003-09-17 Andrew Cagney <cagney@redhat.com>
747
748 * sparc-tdep.c (legacy_register_name): Delete function.
749 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
750 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
751 * infcmd.c (gdb_register_name): Delete variable.
752 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
753 REGISTER_NAME and "tm.h".
754 * gdbarch.h, gdbarch.c: Regenerate.
755 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
756 REGISTER_NAMES in comments.
757 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
758 * m68klinux-nat.c (regmap): Ditto.
759
b55c33cc
JB
7602003-09-17 Jim Blandy <jimb@redhat.com>
761
762 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
763
957e27ac
AC
7642003-09-17 Andrew Cagney <cagney@redhat.com>
765
766 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
767 (ppcnbsd_init_abi): Set "use_struct_convention" to
768 "ppcnbsd_use_struct_convention".
769
192cb3d4
MK
7702003-09-17 Mark Kettenis <kettenis@gnu.org>
771
772 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
773 * gdbarch.h, gdbarch.c: Regenerate.
774 (stabs_argument_has_addr): New architecture method.
775 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
776 * arch-utils.c: Include "buildsym.h".
777 (default_stabs_argument_has_addr): New function.
778 * stabsread.c (define_symbol): Use stabs_argument_has_addr
779 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
780
efe59759
AC
7812003-09-17 Andrew Cagney <cagney@redhat.com>
782
783 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
784 * gdbarch.h, gdbarch.c: Regenerate.
785 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
786 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
787 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
788 * sparcnbsd-tdep.c: Update.
789
62700349
AC
7902003-09-17 Andrew Cagney <cagney@redhat.com>
791
792 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
793 * gdbarch.h, gdbarch.c: Regenerate.
794 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
795 * d10v-tdep.c, frame.c: Update.
796 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
797 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
798 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
799 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
800 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
801 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
802 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
803 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
804 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
805 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
806 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
807 * config/pa/nm-hppah.h: Update.
808
b9ff3018
AC
8092003-09-16 Andrew Cagney <cagney@redhat.com>
810
811 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
812 "use_struct_convention" to "ppc_linux_use_struct_convention".
813 (ppc_linux_use_struct_convention): New function.
814 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
815 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
816 "rs6000_use_struct_convention".
817 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
818 declaration.
819 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
820 Delete function.
821
aa1ee363
AC
8222003-09-16 Andrew Cagney <cagney@redhat.com>
823
824 * buildsym.c: Remove more occurances of "register".
825 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
826 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
827 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
828 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
829 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
830 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
831 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
832 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
833
f2ea0907
CV
8342003-09-16 Corinna Vinschen <vinschen@redhat.com>
835
836 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
837 numbers to enumeration values.
838 * sh-tdep.c: Accomodate above change.
839 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
840 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
841 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
842 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
843 (IS_FPUSH): Rename from IS_FMOV.
844 (sh_extract_struct_value_address): Remove useless comment.
845 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
846 instead of own local values.
847 (sh_dump_tdep): Remove.
848 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
849 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
850
1c704f11
AC
8512003-09-15 Andrew Cagney <cagney@redhat.com>
852
853 * doublest.c (convert_floatformat_to_doublest): No longer need to
854 cast "exp_bias" to an int. Reverts 2002-12-04 change.
855
ac79b88b
DJ
8562003-09-15 Daniel Jacobowitz <drow@mvista.com>
857
858 * values.c (unpack_double): Call floatformat_is_valid.
859
1c671366
MK
8602003-09-15 Mark Kettenis <kettenis@gnu.org>
861
de5227fb
MK
862 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
863 ps_strings into a long.
864
1c671366
MK
865 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
866 _initialize_am64fbsd_nat.
867
a604369a
KB
8682003-09-15 Kevin Buettner <kevinb@redhat.com>
869
870 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
871 associated with DW_AT_ranges attribute is out of bounds.
872
b3cacbee
DL
8732003-09-15 David Lecomber <dsl@sources.redhat.com>
874
875 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
876
d0f37bb2
MC
8772003-09-14 Michael Chastain <mec@shout.net>
878
879 * config/m68k/nm-apollo68v.h: Delete.
880 * config/m68k/xm-apollo68v.h: Delete.
881
69517000
AC
8822003-09-14 Andrew Cagney <cagney@redhat.com>
883
884 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
885 * dcache.c: Update copyrights and descriptions.
886 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
887
ef8b349d
AC
8882003-09-14 Andrew Cagney <cagney@redhat.com>
889
890 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
891 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
892
52f0bd74
AC
8932003-09-14 Andrew Cagney <cagney@redhat.com>
894
895 * alpha-nat.c: Remove some occurances of "register".
896 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
897 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
898 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
899 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
900 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
901 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
902 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
903 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
904 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
905 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
906 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
907 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
908 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
909 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
910 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
911 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
912 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
913 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
914 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
915 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
916 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
917 * values.c, vax-tdep.c, xcoffread.c: Ditto.
918
4a4b3fed
AC
9192003-09-13 Andrew Cagney <cagney@redhat.com>
920
921 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
922 * ppc-tdep.h (struct regcache): Declare opaque.
923 * objfiles.h (struct objfile_data): Declare opaque.
924 * cp-support.h (struct objfile): Declare opaque.
925 * linux-nat.h (target_waitstatus): Declare opaque.
926
2110b94f
MK
9272003-09-14 Mark Kettenis <kettenis@gnu.org>
928
1c671366
MK
929 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
930 (stabs_argument_has_addr): New architecture method.
931 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
932 * arch-utils.c: Include "buildsym.h".
933 (default_stabs_argument_has_addr): New function.
934 * stabsread.c (define_symbol): Use stabs_argument_has_addr
935 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
936
2110b94f
MK
937 * cris-tdep.c (cris_gdbarch_init): Set
938 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
939 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
940 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
941 * mips-tdep.c (mips_gdbarch_init): Likewise.
942 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
943 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
944
48436ce6
AC
9452003-09-13 Andrew Cagney <cagney@redhat.com>
946
947 * values.c (using_struct_return): Delete "function" and "funcaddr"
948 parameters.
949 * value.h (using_struct_return): Update declaration.
950 * infcmd.c (finish_command_continuation): Update.
951 (finish_command): Update.
952 * infcall.c (call_function_by_hand): Update.
953 * eval.c (evaluate_subexp_standard): Update.
954
403d9909
CF
9552003-09-13 Christopher Faylor <cgf@redhat.com>
956
957 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
958 SSE registers since gdb will not operate correctly without this.
959 Restore include file ordering munged in previous change.
960 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
961
ebf7d56b
MK
9622003-09-13 Mark Kettenis <kettenis@gnu.org>
963
8e823e25
MK
964 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
965 REG_STRUCT_HAS_ADDR.
966 * gdbarch.c, gdbarch.h: Updated.
967 * infcall.c (call_function_by_hand): Update.
968 * stabsread.c (define_symbol): Updated.
969
ebf7d56b
MK
970 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
971
d3f13f72
CF
9722003-09-12 Christopher Faylor <cgf@redhat.com>
973
974 * win32-nat.c: Reorganize so that defines used by target headers are
975 actually defined by the system headers.
976 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
977 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
978
14f75137
JB
9792003-09-12 Jim Blandy <jimb@redhat.com>
980
d646061f
JB
981 * dbxread.c (read_dbx_symtab): Don't report an internal error if
982 the file has no .data, .bss, or .rodata sections. Instead wait
983 until we see a variable alleged to live in one of those sections.
984
2a13f9bc
JB
985 * dbxread.c (read_dbx_symtab): If we have no .data section and no
986 .bss section, presume that any variables we find live in the
987 .rodata section.
988
4f49b26b
JB
989 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
990 offsets for global and static variables.
991
14f75137
JB
992 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
993 symbol types are, by definition, in the .data section, so it is
994 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
995 If there is no .data section, there should be no N_DATA or N_DATA
996 | N_EXT symbols.
997
212c460c
MK
9982003-09-12 Mark Kettenis <kettenis@gnu.org>
999
1000 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1001 (amd64fbsd_sigcontext_addr): Rewrite.
1002 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1003 with correct values.
1004 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1005 (amd64fbsd_init_abi): Fix typo.
1006
68856ea3
AC
10072003-09-12 Andrew Cagney <cagney@redhat.com>
1008
1009 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1010 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1011
627b3ba2
AC
10122003-09-12 Andrew Cagney <cagney@redhat.com>
1013
1014 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1015 "entry_file_highpc". Update comments.
1016 * defs.h (deprecated_inside_entry_file): Rename
1017 "inside_entry_file".
1018 * blockframe.c (deprecated_inside_entry_file): Rename
1019 "inside_entry_file".
1020 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1021 * vax-tdep.c (vax_frame_chain): Update.
1022 * sh64-tdep.c (sh64_frame_chain): Update.
1023 * sh-tdep.c (sh_frame_chain): Update.
1024 * rs6000-tdep.c (rs6000_frame_chain): Update.
1025 * ns32k-tdep.c (ns32k_frame_chain): Update.
1026 * mips-tdep.c (mips_frame_chain): Update.
1027 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1028 * m32r-tdep.c (m32r_frame_this_id): Update.
1029 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1030 * frv-tdep.c (frv_frame_this_id): Update.
1031 * d10v-tdep.c (d10v_frame_this_id): Update.
1032 * cris-tdep.c (cris_frame_chain): Update.
1033 * blockframe.c (legacy_frame_chain_valid): Update.
1034 * avr-tdep.c (avr_frame_this_id): Update.
1035 * arm-tdep.c (arm_prologue_this_id): Update.
1036 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1037 * objfiles.c (objfile_relocate): Update.
1038 * mipsread.c (mipscoff_symfile_read): Update.
1039 (mipscoff_symfile_read): Update.
1040 * mdebugread.c (parse_partial_symbols): Update.
1041 * dwarfread.c (read_file_scope): Update.
1042 * dwarf2read.c (read_file_scope): Update.
1043 * dbxread.c (read_dbx_symtab): Update.
1044 (read_dbx_symtab): Update.
1045 * coffread.c (complete_symtab): Update.
1046
b0abbc58
JJ
10472003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1048
1049 * top.c (quit_target): New static helper function.
1050 (quit_force): Moved code to quit_target(). Call quit_target()
1051 via catch_errors() to catch errors during quit.
1052
a1632d59
DC
10532003-09-11 David Carlton <carlton@kealia.com>
1054
1055 * buildsym.c (finish_block): Use allocate_block to allocate the
1056 block.
1057 * mdebugread.c (new_block): Add FIXME.
1058
5c4e30ca
DC
10592003-09-11 David Carlton <carlton@kealia.com>
1060
1061 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1062 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1063 (recursive_dump_type): Ditto.
1064 * printcmd.c (print_formatted): Ditto.
1065 * typeprint.c (print_type_scalar): Ditto.
1066 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1067 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1068 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1069 maint_cplus_cmd_list.
1070 * cp-support.c: Make maint_cplus_cmd_list extern.
1071 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1072 command.h.
1073 (lookup_symbol_file): Look in possible namespace blocks when
1074 appropriate.
1075 (initialize_namespace_symtab): New.
1076 (get_possible_namespace_block, free_namespace_block)
1077 (check_possible_namespace_symbols)
1078 (check_possible_namespace_symbols_loop)
1079 (check_one_possible_namespace_symbol)
1080 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1081 (_initialize_cp_namespace): Ditto.
1082 * block.h: Declare allocate_block.
1083 * block.c (allocate_block): New.
1084 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1085 allocate_block.
1086 * symfile.h: Update declaration of add_psymbol_to_list.
1087 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1088 question.
1089 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1090 scan_partial_symbols_call.
1091 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1092 helper functions.
1093 (add_partial_symbol): If necessary, scan mangled names for names
1094 of namespaces.
1095 (add_partial_namespace): Add NAMESPACE argument; generate partial
1096 symbols associated to namespaces.
1097 (add_partial_enumeration): Add NAMESPACE argument.
1098 (new_symbol): Allow namespace syms.
1099 (read_namespace): Generate namespace syms.
1100 * objfiles.h: Add opaque declaration of struct symtab.
1101 (struct objfile): Add cp_namespace_symtab member.
1102 * objfiles.c (allocate_objfile): Set
1103 objfile->cp_namespace_symtab.
1104 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1105 dictionary_h, command_h.
1106
33a7c2fc
AC
11072003-09-11 Andrew Cagney <cagney@redhat.com>
1108
1109 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1110 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1111 near the function's end.
1112 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1113 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1114 regcache_raw_write_signed to set SP_REGNUM.
1115
63cd24fe
EZ
11162003-09-11 Elena Zannoni <ezannoni@redhat.com>
1117
1118 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1119 orig_addrs is set up properly.
1120
f27dd7fd
AC
11212003-09-11 Andrew Cagney <cagney@redhat.com>
1122
1123 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1124 * gdbarch.h, gdbarch.c: Re-generate.
1125 * infcall.c (call_function_by_hand): Update.
1126 * hppa-tdep.c (hppa_push_arguments): Update.
1127 * ada-lang.c (place_on_stack): Update.
1128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1129 * sparc-tdep.c (sparc_gdbarch_init): Update.
1130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1131 * hppa-tdep.c (hppa_gdbarch_init): Update.
1132 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1133 stack_align.
1134
f630a401
DJ
11352003-09-11 Daniel Jacobowitz <drow@mvista.com>
1136
1137 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1138 register do need a frame.
1139
0ddabb4c
AC
11402003-09-11 Andrew Cagney <cagney@redhat.com>
1141
1142 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1143 buildable since GDB 5.0.
1144 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1145 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1146 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1147 * irix4-nat.c: Delete file.
1148 * config/mips/irix4.mh: Delete file.
1149 * config/mips/irix3.mh: Delete file.
1150 * config/mips/irix3.mt: Delete file.
1151 * config/mips/tm-irix3.h: Delete file.
1152 * config/mips/nm-irix3.h: Delete file.
1153 * config/mips/xm-irix3.h: Delete file.
1154 * config/mips/nm-irix4.h: Delete file.
1155 * config/mips/xm-irix4.h: Delete file.
1156 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1157
fde2cceb
JB
11582003-09-10 J. Brobecker <brobecker@gnat.com>
1159
1160 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1161 * Makefile.in (hppa-tdep.o): Update dependencies.
1162
66f667f5
JW
11632003-09-10 James E Wilson <wilson@specifixinc.com>
1164
ef5fd69f
JW
1165 * MAINTAINERS: Change my e-mail address. Move to paper trail
1166 section.
66f667f5 1167
53e8aaea
KB
11682003-09-10 Kevin Buettner <kevinb@redhat.com>
1169
1170 * MAINTAINERS (frv): New ISA entry.
1171
dcc6aaff
KB
11722003-09-10 Kevin Buettner <kevinb@redhat.com>
1173
1174 * frv-tdep.c (dis-asm.h): Include.
1175 * Makefile.in (frv-tdep.o): Update dependencies.
1176
932644f0
JJ
11772003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1178
1179 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1180 Fix typo for high range of floating registers.
1181
91c24f0a
DC
11822003-09-09 David Carlton <carlton@kealia.com>
1183
1184 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1185 highpc initialization here out of scan_partial_symbols.
1186 (scan_partial_symbols): Restructure into a recursive version,
1187 calling add_partial_namespace and add_partial_enumeration when
1188 appropriate.
1189 (add_partial_namespace): New.
1190 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1191
c9263853
AC
11922003-09-09 Andrew Cagney <cagney@redhat.com>
1193
e56a0ecc
AC
1194 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1195 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1196 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1197 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1198
794a477a
AC
1199 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1200 (rs6000_push_dummy_call): Set the "TOC" register.
1201
c9263853
AC
1202 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1203 methods "max_register_raw_size", "max_register_virtual_size" or
1204 "register_virtual_size".
1205
afa7d0b2
ILT
12062003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1207
1208 * MAINTAINERS: Update my e-mail address.
1209
7a41266b
AC
12102003-09-09 Andrew Cagney <cagney@redhat.com>
1211
1212 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1213 (rs6000_push_dummy_call): Store the struct return address.
1214 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1215
77b2b6d4
AC
12162003-09-09 Andrew Cagney <cagney@redhat.com>
1217
1218 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1219 "ppc_sysv_abi_push_arguments".
1220 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1221 "ppc_sysv_abi_push_arguments".
1222 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1223 instead of "push_arguments".
1224 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1225
e8a7b686
AC
12262003-09-09 Andrew Cagney <cagney@redhat.com>
1227
1228 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1229 instead of CALL_DUMMY_ADDRESS.
1230
f86f5ca3
PH
12312003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1232
1233 * p-lang.c: Eliminate "register".
1234 * c-lang.c: Ditto.
1235 * expprint.c: Ditto.
1236 * f-lang.c: Ditto.
1237 * jv-lang.c: Ditto.
1238 * language.c: Ditto.
1239 * m2-lang.c: Ditto.
1240 * parse.c: Ditto.
1241 * scm-lang.c: Ditto.
1242 * objc-lang.c: Ditto.
1243
83ee270e
NC
12442003-09-09 Nick Clifton <nickc@redhat.com>
1245
1246 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1247
a89aa300
AC
12482003-09-04 Andrew Cagney <cagney@redhat.com>
1249
1250 * avr-tdep.c: Include "dis-asm.h".
1251 * cris-tdep.c: Include "dis-asm.h".
1252 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1253 instead of corresponding typedef.
1254 * h8300-tdep.c: Include "dis-asm.h".
1255 * ia64-tdep.c: Include "dis-asm.h".
1256 * i386-tdep.c: Include "dis-asm.h".
1257 (i386_print_insn): Use "struct disassemble_info" instead of
1258 corresponding typedef.
1259 * m68k-tdep.c: Include "dis-asm.h".
1260 * mcore-tdep.c: Include "dis-asm.h".
1261 * mips-tdep.c: Include "dis-asm.h".
1262 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1263 instead of corresponding typedef.
1264 * ns32k-tdep.c: Include "dis-asm.h".
1265 * s390-tdep.c: Include "dis-asm.h".
1266 * sparc-tdep.c: Include "dis-asm.h".
1267 * vax-tdep.c: Include "dis-asm.h".
1268 * v850-tdep.c: Include "dis-asm.h".
1269 * mn10300-tdep.c: Include "dis-asm.h".
1270 * rs6000-tdep.c: Include "dis-asm.h".
1271 * xstormy16-tdep.c: Include "dis-asm.h".
1272 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1273 print_insn_xstormy16.
1274 * Makefile.in (v850-tdep.o): Update dependencies.
1275 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1276 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1277 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1278 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1279 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1280 (gdbarch_h): Remove $(dis_asm_h).
1281 * disasm.c: Include "dis-asm.h".
1282 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1283 corresponding typedef.
1284 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1285 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1286 * gdbarch.sh: Do not include "dis-asm.h".
1287 (struct disassemble_info): Declare opaque.
1288 (TARGET_PRINT_INSN): Update declaration.
1289 * gdbarch.h, gdbarch.c: Re-generate.
1290
88a82a65
AC
12912003-09-08 Andrew Cagney <cagney@redhat.com>
1292
1293 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1294 CALL_DUMMY_ADDRESS, change to a predicate.
1295 * gdbarch.h, gdbarch.c: Re-generate.
1296 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1297 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1298 * infcall.c (call_function_by_hand): Ditto.
1299 * sparc-tdep.c (sparc_push_return_address): Ditto.
1300 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1301 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1302 CALL_DUMMY_ADDRESS with entry_point_address.
1303 * v850-tdep.c (v850_push_return_address): Ditto.
1304 * s390-tdep.c (s390_push_return_address): Ditto.
1305 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1306 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1307 * mcore-tdep.c (mcore_push_return_address): Ditto.
1308 * cris-tdep.c (cris_push_return_address): Ditto.
1309 * arm-tdep.c (arm_push_return_address): Ditto.
1310
3e2c4033
AC
13112003-09-08 Andrew Cagney <cagney@redhat.com>
1312
1313 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1314 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1315 and REG_UNMODIFIED to REG_SAME_VALUE.
1316 (execute_cfa_program): Update.
1317 (dwarf2_frame_cache): Update. Initialize table to
1318 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1319 location.
1320 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1321
39efb398
AC
13222003-09-08 Andrew Cagney <cagney@redhat.com>
1323
1324 * gnu-nat.c: Remove "inline" function attribute.
1325 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1326
f5cb5aca
KB
13272003-09-08 Kevin Buettner <kevinb@redhat.com>
1328
1329 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1330 target.
1331
1cb761c7
KB
13322003-09-08 Kevin Buettner <kevinb@redhat.com>
1333
1334 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1335 (frame_extra_info): Rename this struct to frv_unwind_cache.
1336 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1337 Add fields ``prev_sp'' and ``base''.
1338 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1339 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1340 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1341 Delete.
1342 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1343 Revise all callers. Fill in the unwind cache argument and make
1344 other adjustments to account for new frame mechanisms.
1345 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1346 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1347 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1348 (frv_frame_unwind, frv_frame_base): New structs.
1349 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1350 additional arguments expected by this method and adjust function
1351 body accordingly.
1352 (frv_gdbarch_init): Remove calls to the following functions:
1353 set_gdbarch_deprecated_init_frame_pc(),
1354 set_gdbarch_deprecated_saved_pc_after_call(),
1355 set_gdbarch_deprecated_frame_chain(),
1356 set_gdbarch_deprecated_frame_saved_pc(),
1357 set_gdbarch_deprecated_frame_init_saved_regs(),
1358 set_gdbarch_deprecated_push_arguments(),
1359 set_gdbarch_deprecated_push_return_address(),
1360 set_gdbarch_deprecated_pop_frame(),
1361 set_gdbarch_deprecated_call_dummy_words(),
1362 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1363 set_gdbarch_deprecated_init_extra_frame_info(),
1364 set_gdbarch_deprecated_dummy_write_sp(), and
1365 set_gdbarch_deprecated_pc_in_call_dummy().
1366 Add calls to the following functions:
1367 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1368 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1369 frame_base_set_default().
1370 * Makefile.in (frv-tdep.o): Update dependencies.
1371
68f6cf99
MK
13722003-09-09 Mark Kettenis <kettenis@gnu.org>
1373
1374 * dwarf2-frame.c (read_encoded_value): Add support for
1375 DW_EH_PE_aligned encoding.
1376
73b65bb0
DJ
13772003-09-08 Daniel Jacobowitz <drow@mvista.com>
1378
1379 * infrun.c (normal_stop): Don't print a message if the inferior
1380 has exited.
1381
7c8a5605
JB
13822003-09-08 Jim Blandy <jimb@redhat.com>
1383
1384 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1385 * dbxread.c: #include "gdb_assert.h".
1386 (read_dbx_symtab): If the objfile has no .data section, use the
1387 section index for the .bss section instead.
1388
7dd88986
DJ
13892003-09-08 Daniel Jacobowitz <drow@mvista.com>
1390
1391 * frame.c (deprecated_safe_get_selected_frame): New function.
1392 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1393 * findvar.c (read_var_value): Call it.
1394
55ff77ac
CV
13952003-09-08 Corinna Vinschen <vinschen@redhat.com>
1396
1397 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1398 (sh64-tdep.o): Add dependencies.
1399 * configure.tgt: Add FIXME to sh-*-linux*.
1400 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1401 (sh_gdbarch_init): Always set correct sh_show_regs function
1402 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1403 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1404 * sh64-tdep.c: New file, containing all sh64 related code from
1405 sh-tdep.c.
1406 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1407 * config/sh/linux.mt (TDEPFILES): Ditto.
1408 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1409 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1410 * config/sh/wince.mt (TDEPFILES): Ditto.
1411
bfb39158
DJ
14122003-09-07 Daniel Jacobowitz <drow@mvista.com>
1413
1414 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1415 (stop_wait_callback): Handle !lp->signalled also.
1416 (lin_lwp_has_pending, flush_callback): New functions.
1417 (lin_lwp_wait): Call flush_callback.
1418 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1419 (linux_proc_pending_signals): New function.
1420 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1421
9407de8e
DJ
14222003-09-07 Daniel Jacobowitz <drow@mvista.com>
1423
1424 From Nick Kelsey <nickk@ubicom.com>:
1425 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1426 when the stop PC is at the beginning of a function also.
1427
2ef47cd0
DJ
14282003-09-06 Daniel Jacobowitz <drow@mvista.com>
1429
1430 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1431 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1432
6f4492c8
MK
14332003-09-06 Mark Kettenis <kettenis@gnu.org>
1434
1435 * sol-thread.c: Include "gdb_string.h".
1436
d3420b2f
MK
14372003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1438
1439 * gcore.c: Reorder include files in alphabetical order. Include
1440 "gdb_assert.h". Various coding style fixes.
1441 (derive_stack_segment, derive_heap_segment): Replace check for
1442 non-null BOTTOM and TOP with gdb_assert.
1443 (derive_heap_segment): Replace check for successful creation of
1444 ZERO with gdb_assert.
1445 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1446
5220ea4c
AC
14472003-09-04 Andrew Cagney <cagney@redhat.com>
1448
1449 * thread-db.c (verbose_dlsym): New function.
1450 (thread_db_load): Use verbose_dlsym
1451 (thread_db_new_objfile): Print that libthread_db was loaded, and
1452 that thread debugging was enabled.
1453
6e8c2c06
AC
14542003-09-04 Andrew Cagney <cagney@redhat.com>
1455
1456 * configure.tgt: Add "mips64*-*-*" target. Delete
1457 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1458 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1459 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1460 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1461 mips*-sony-*, and mips64*-*-elf* targets.
1462 * config/mips/embedl.mt: Delete file.
1463 * config/mips/embedl64.mt: Delete file.
1464 * config/mips/mips.mt: Delete file.
1465 * config/mips/mips64.mt: Delete file.
1466 * config/mips/tm-embed.h: Delete file.
1467 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1468 * config/mips/embed64.mt: Delete out-of-date comment.
1469
3a3bc038
AC
14702003-09-04 Andrew Cagney <cagney@redhat.com>
1471
1472 * hppa-tdep.c (hppa_gdbarch_init): Set
1473 "have_nonsteppable_watchpoint".
1474 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1475 * mips-tdep.c (mips_dump_tdep): Do not print
1476 HAVE_NONSTEPPABLE_WATCHPOINT.
1477 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1478 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1479 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1480 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1481
a957e642
CV
14822003-09-04 Corinna Vinschen <vinschen@redhat.com>
1483
1484 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1485 unused code. Add comment.
1486
a6fbcf2f
CV
14872003-09-04 Corinna Vinschen <vinschen@redhat.com>
1488
1489 * breakpoint.c (watchpoint_check): Check for pc being in an
1490 epilogue if watchpoint frame couldn't be found.
1491
c14a44d5
AC
14922003-09-04 Andrew Cagney <cagney@redhat.com>
1493
1494 * Makefile.in: Re-generate all dependencies.
1495
f6c40618
AC
14962003-09-03 Andrew Cagney <cagney@redhat.com>
1497
1498 * arch-utils.h (legacy_print_insn): Delete declaration.
1499 * arch-utils.c (legacy_print_insn): Delete function.
1500 * disasm.c (deprecated_tm_print_insn_info): Delete.
1501 (_initialize_disasm): Delete function, contained code initializing
1502 deprecated_tm_print_insn_info.
1503 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1504 (deprecated_tm_print_insn_info): Delete.
1505 (TARGET_PRINT_INSN): Do not provide a default.
1506 * gdbarch.h, gdbarch.c: Re-generate.
1507
242e8be5
AC
15082003-09-03 Andrew Cagney <cagney@redhat.com>
1509
1510 * disasm.c (fprintf_disasm): New function.
1511 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1512 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1513 reverts 2003-08-14 change.
1514 (_initialize_disasm): Call "init_disassemble_info", instead of
1515 INIT_DISASSEMBLE_INFO_NO_ARCH.
1516
3ffc3dda
MS
15172003-09-03 Michael Snyder <msnyder@redhat.com>
1518
1519 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1520
52d16ba8
AC
15212003-09-03 Andrew Cagney <cagney@redhat.com>
1522
1523 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1524 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1525 * symfile.c (syms_from_objfile): Update.
1526 (reread_symbols): `Update
1527 * exec.c (exec_file_attach): Update.
1528 (exec_file_attach): Update.
1529 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1530 2003-08-29 change.
1531 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1532
eb5492fa
DJ
15332003-09-03 Daniel Jacobowitz <drow@mvista.com>
1534
1535 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1536 trad-frame.h.
1537 (arm_get_cache): Delete macro.
1538 (struct arm_prologue_cache): Update comments. Make saved_regs into
1539 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1540 to prev_sp.
1541 (thumb_scan_prologue): Update for cache changes. Don't call
1542 DEPRECATED_PC_IN_CALL_DUMMY.
1543 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1544 argument and use it in desperation search for our prologue. Do not
1545 search past the specified PC.
1546 (arm_make_prologue_cache): Simplify.
1547
1548 (arm_prologue_this_id, arm_prologue_prev_register)
1549 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1550 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1551 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1552 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1553 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1554
1555 (arm_frame_chain_valid, arm_find_callers_reg)
1556 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1557 (arm_pop_frame): Delete obsolete methods.
1558 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1559
1560 (arm_gdbarch_init): Update for new frame methods. Register prologue
1561 and sigtramp unwinders. Set the default frame base method.
1562
1563 * Makefile.in (arm-tdep.o): Update dependencies.
1564 * varobj.c (find_frame_addr_in_frame_chain): Call
1565 get_frame_base_address.
1566 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1567
24de872b
DJ
15682003-09-03 Daniel Jacobowitz <drow@mvista.com>
1569
1570 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1571 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1572 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1573 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1574 Take NEXT_FRAME and CACHE arguments. Call
1575 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1576 Set unwound_pc in CACHE instead of modifying the frame argument.
1577 Don't bother checking the frame type when looking for sigtramp
1578 frames.
1579 (arm_make_prologue_cache, arm_frame_chain)
1580 (arm_init_extra_frame_info): New functions.
1581
9b8d791a
DJ
15822003-09-03 Daniel Jacobowitz <drow@mvista.com>
1583
1584 * arm-tdep.c (arm_get_cache): Define.
1585 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1586 unwound_sp, unwound_pc, and saved_regs.
1587 (thumb_scan_prologue): Take a cache instead of the frame.
1588 (arm_scan_prologue): Likewise.
1589 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1590 instead of a temporary frame.
1591 (arm_init_extra_frame_info): Allocate and use a cache.
1592 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1593
7ee3275f
AC
15942003-09-03 Andrew Cagney <cagney@redhat.com>
1595
1596 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1597 * config/mips/wince.mt (TM_CLIBS): Ditto.
1598 * config/sh/wince.mt (TM_CLIBS): Ditto.
1599 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1600 * config/sparc/sp64.mt (CC): Delete.
1601
57b29be7
AC
16022003-09-03 Andrew Cagney <cagney@redhat.com>
1603
1604 * defs.h: Do not include "arch-utils.h".
1605 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1606 GDB_MULTI_ARCH_PURE.
1607 * configure.in (GDB_MULTI_ARCH): Do not define.
1608 * configure, config.in: Regenerate.
1609 * configure.tgt: Do not set variable "gdb_multi_arch".
1610 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1611 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1612 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1613 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1614 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1615 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1616 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1617 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1618 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1619 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1620 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1621 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1622 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1623 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1624 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1625 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1626 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1627 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1628
12e035e2
MC
16292003-08-30 Michael Chastain <mec@shout.net>
1630
1631 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1632 * config/m68k/nm-hp300hpux.h: Delete.
1633 * config/m68k/tm-hp300hpux.h: Delete.
1634 * config/m68k/xm-hp300hpux.h: Delete.
1635 * config/m68k/xm-hp300bsd.h: Delete.
1636 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1637 tm-hp300hpux.h, xm-hp300hpux.h.
1638 * somsolib.c: Remove comment about hp300 shared libraries.
1639
bda34dc2
MK
16402003-08-31 Mark Kettenis <kettenis@gnu.org>
1641
5bca7895
MK
1642 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1643 Only define PTRACE_GET_THREAD_AREA is not already defined.
1644 Various style fixes in code and comments and some additional
1645 spelling fixes in comments. Move after functions dealing with
1646 debug registers.
1647 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1648 Fix coding-style.
1649
bda34dc2
MK
1650 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1651 frame_unwind_register_unsigned instead of
1652 frame_unwind_unsigned_register.
1653
c890192f
MK
16542003-08-30 Mark Kettenis <kettenis@gnu.org>
1655
1656 * configure.in: Search for gethostbyname in libnsl.
1657 * configure: Regenerated.
1658
60fac5b8
MK
16592003-08-29 Mark Kettenis <kettenis@gnu.org>
1660
e294916c
MK
1661 * configure.in: Remove redundant AC_MSG_RESULT in check for
1662 uintptr_t in stdint.h.
1663 * configure: Regenerated.
1664
c40d267a
MK
1665 * amd64-nat.h (struct regcache): Add opaque declaration.
1666
60fac5b8
MK
1667 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1668 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1669 Change "register array" to "register cache" in comments.
1670 (x86_64_linux_gregset64_reg_offset): New variable.
1671 (GETREGS_SUPPLIES): Remove macro.
1672 (supply_gregset): Call amd64_supply_native_gregset instead of
1673 x86_64_linux_supply_gregset.
1674 (fill_gregset): Rename `regno' to `regnum'. Call
1675 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1676 (store_regs): Rename `regno' to `regnum'.
1677 (store_fpregs): Rename `regno' to `regnum'.
1678 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1679 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1680 Reorganize function a bit.
1681 (store_inferior_registers): Rename `regno' to `regnum'. Use
1682 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1683 Reorganize function a bit.
1684 (_initialize_x86_64_linux_nat): New function.
1685 * config/i386/x86-64linux.mh.
1686
546143b6
AC
16872003-08-29 Andrew Cagney <cagney@redhat.com>
1688
1689 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1690 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1691 (target_remove_watchpoint): Delete macro.
1692 (target_insert_watchpoint): Delete macro.
1693 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1694 (remote_mips_stopped_by_watchpoint): Delete declaration.
1695 (remote_mips_remove_watchpoint): Delete declaration.
1696 (remote_mips_set_watchpoint): Delete declaration.
1697 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1698 * remote-mips.c (_initialize_remote_mips): Set
1699 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1700 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1701 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1702 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1703 (mips_stopped_by_watchpoint): Rename
1704 remote_mips_stopped_by_watchpoint.
1705 (mips_can_hardware_watchpoint): Rename
1706 remote_mips_can_use_hardware_watchpoint, update function
1707 signature.
1708
7bace51b
MK
17092003-08-29 Mark Kettenis <kettenis@gnu.org>
1710
b0f5c6f2
MK
1711 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1712 USER_DS. We haven't given them a register number yet.
1713
2a6d284d
MK
1714 * amd64-nat.h: New file.
1715 * amd64-nat.c: New file.
1716 * amd64fbsd-nat.c: Include "amd64-nat.h".
1717 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1718 (amd64fbsd32_r_reg_offset): New variable.
1719 (supply_gregset): Simply call amd64_supply_native_gregset.
1720 (fill_gregset): Rename `regno' to `regnum'. Simply call
1721 amd64_collect_native_gregset.
1722 (fill_fpregset): Rename `regno' to `regnum'.
1723 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1724 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1725 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1726 `fpregset_t'. Call amd64_supply_native_gregset instead of
1727 supply_gregset. Call x86_64_supply_fxsave instead of
1728 supply_fpregset.
1729 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1730 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1731 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1732 `fpregset_t'. Call amd64_collect_native_gregset instead of
1733 fill_gregset. Call x86_64_collect_fxsave instead of
1734 fill_fpregset.
1735 (_initialize_am64fbsd_nat): Initialize
1736 amd64_native_gregset32_reg_offset and
1737 amd64_native_gregset64_reg_offset.
1738 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1739
a16d75cc
MK
1740 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1741 null pointer. Fix typo in comment.
1742
7bace51b
MK
1743 * regcache.c (supply_register): Reimplement to call
1744 regcache_raw_supply.
1745 (regcache_collect): Reimplement by calling regcache_raw_collect.
1746
9a661b68
MK
17472003-08-28 Mark Kettenis <kettenis@gnu.org>
1748
1749 * regcache.c (register_buffer): Consitify first argument.
1750 (regcache_raw_supply, regcache_raw_collect): New
1751 functions.
1752
e94cc8fa
DJ
17532003-08-28 Daniel Jacobowitz <drow@mvista.com>
1754
1755 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1756 by Nathan J. Williams.
1757
c64bd0ce
DJ
17582003-08-28 Daniel Jacobowitz <drow@mvista.com>
1759
1760 * lin-lwp.c (wait_lwp): New function, copied from
1761 stop_wait_callback. Clean up.
1762 (stop_wait_callback): Use wait_lwp.
1763
e5ab0dce
AC
17642003-08-28 Andrew Cagney <cagney@redhat.com>
1765
1766 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1767 flavour and disassembler options.
1768 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1769 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1770 deprecated_tm_print_insn_info.
1771
a788de9b
AC
17722003-08-27 Andrew Cagney <cagney@redhat.com>
1773
1774 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1775 Use target_read_memory.
1776 (s390_get_frame_info): Update. Do not reference
1777 deprecated_tm_print_insn_info.
1778 (s390_check_function_end, s390_is_sigreturn): Ditto.
1779
36482093
AC
17802003-08-27 Andrew Cagney <cagney@redhat.com>
1781
1782 * Makefile.in (cris-tdep.o): Update dependencies.
1783 * cris-tdep.c: Include "gdb_assert.h".
1784 (cris_gdbarch_init): Set print_insn.
1785 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1786 (cris_delayed_get_disassembler): Simplify, directly call the
1787 disassembler returned by cris_get_disassembler.
1788 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1789 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1790 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1791 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1792 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1793 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1794 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1795 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1796 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1797 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1798 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1799 (gdb_print_insn_sparc): Delete function.
1800 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1801 deprecated_tm_print_insn_info.
1802 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1803 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1804 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1805 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1806 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1807 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1808 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1809 (s390_gdbarch_init): Set print_insn.
1810
0285512f
AC
18112003-08-27 Andrew Cagney <cagney@redhat.com>
1812
1813 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1814 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1815 * infcall.c (call_function_by_hand): Convert the entry point
1816 address into a code address.
1817
cdcd5552
AC
18182003-08-27 Andrew Cagney <cagney@redhat.com>
1819
1820 * dsrec.c: Include "gdb_string.h".
1821 * Makefile.in (dsrec.o): Update dependencies.
1822
e85cddad
MC
18232003-08-27 Michael Chastain <mec@shout.net>
1824
1825 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1826
8bbfbb23
AC
18272003-08-27 Andrew Cagney <cagney@redhat.com>
1828
1829 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1830 (alpha_osf1_init_abi): Do not set call_dummy_address.
1831
ba058b66
DC
18322003-08-27 David Carlton <carlton@kealia.com>
1833
1834 From Randolph Chung <tausq@debian.org>:
1835 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1836 compiles with -Wformat-nonliteral -Werror.
1837
87f84c9d
JB
18382003-08-26 Jim Blandy <jimb@redhat.com>
1839
1840 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1841 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1842 bfd_lookup_symbol, since we only want symbols in code sections.
1843 (look_for_base): Pass zero as the SECT_FLAGS argument to
1844 bfd_lookup_symbol, since we're not concerned about which section
1845 the symbol is in.
1846
102d615a
JJ
18472003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1848
1849 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1850 we are frameless or the return address register is already known.
1851
cc7ad3ea
AC
18522003-08-26 Andrew Cagney <cagney@redhat.com>
1853
1854 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1855 in size. Add comments.
1856
af8b88dd
JJ
18572003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1858
1859 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1860 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1861
e0a4f5a1
JM
18622003-08-26 Jason Merrill <jason@redhat.com>
1863
1864 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1865 case out of #ifdef MIPS block.
1866
4ae9ee8e
DJ
18672003-08-25 Daniel Jacobowitz <drow@mvista.com>
1868
1869 PR java/1322
1870 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1871 available before calling SECT_OFF_TEXT.
3c164570 1872 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1873
004d836a
JJ
18742003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1875
1876 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1877 bof, and nat0-nat127 as pseudo-registers.
1878 (ia64_frame_cache): New struct used to cache frame info.
1879 (ia64_register_reggroup_p): New routine used to override default
1880 register grouping so registers without names are still saved and
1881 restored.
1882 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1883 pseudo values.
1884 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1885 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1886 (ia64_alloc_frame_cache): New routine to create a new
1887 ia64_frame_cache.
1888 (examine_prologue): Change prototype to add next_frame pointer.
1889 Assume frameless until otherwise proven. Verify that the cfm for
1890 current frame matches the cfm that should occur for the prologues
1891 alloc insn and if equal, mark as not frameless. At end of routine,
1892 if not frameless, calculate registers for the previous frame and store
1893 in the cache, if a cache is provided.
1894 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1895 and pass 0 for next_frame.
1896 (ia64_store_return_value): Change to use convert_typed_floating()
1897 instead of calling ia64_convert_to_raw().
1898 (ia64_extract_return_value): Change to use convert_typed_floating()
1899 instead of calling ia64_convert_to_virtual().
1900 (ia64_frame_cache): New routine to support new frame model.
1901 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1902 (ia64_frame_sniffer): Ditto.
1903 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1904 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1905 (ia64_sigtramp_frame_prev_register): Ditto.
1906 (ia64_sigtramp_frame_sniffer): Ditto.
1907 (ia64_frame_base_address): Ditto.
1908 (ia64_extract_struct_value_address): Change to issue error message.
1909 (ia64_frame_align): New routine to align sp.
1910 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1911 (ia64_push_arguments): Removed. Logic moved to
1912 ia64_push_dummy_call().
1913 (ia64_push_return_address): Ditto.
1914 (ia64_unwind_dummy_id): New function.
1915 (ia64_unwind_pc): Ditto.
1916 (ia64_convert_register_p): Ditto.
1917 (ia64_register_to_value): Ditto.
1918 (ia64_value_to_register): Ditto.
1919 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1920 (ia64_register_byte, ia64_register_raw_size): Ditto.
1921 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1922 (ia64_saved_pc_after_call): Ditto.
1923 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1924 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1925 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1926 (ia64_register_convert_to_raw): Ditto.
1927 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1928 (ia64_init_extra_frame_info): Ditto.
1929 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1930 (ia64_gdbarch_init): Remove registering of deprecated functions that
1931 are no longer used. Add registration of new gdbarch functions.
1932 Remove registering deprecated_write_sp. Replace
1933 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1934 Delete set_gdbarch_deprecated_register_convertible(),
1935 set_gdbarch_deprecated_register_convert_to_virtual(), and
1936 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1937 set_gdbarch_deprecated_register_size(),
1938 set_gdbarch_deprecated_register_bytes(),
1939 set_gdbarch_pcregnum(),
1940 set_gdbarch_deprecated_register_byte(),
1941 set_gdbarch_deprecated_register_raw_size(),
1942 set_gdbarch_deprecated_max_register_raw_size(),
1943 set_gdbarch_deprecated_register_virtual_size(),
1944 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1945 Replace set_gdbarch_deprecated_extract_return_value() with
1946 set_gdbarch_extract_return_value(). Remove calls to:
1947 set_gdbarch_deprecated_saved_pc_after_call();
1948 set_gdbarch_deprecated_frame_chain(),
1949 set_gdbarch_deprecated_frame_saved_pc(),
1950 set_gdbarch_deprecated_frame_init_saved_regs(),
1951 set_gdbarch_deprecated_get_saved_register(),
1952 set_gdbarch_deprecated_call_dummy_words(),
1953 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1954 set_gdbarch_deprecated_init_extra_frame_info(),
1955 set_gdbarch_deprecated_frame_args_address(),
1956 set_gdbarch_deprecated_frame_locals_address(),
1957 and set_gdbarch_deprecated_dummy_write_sp().
1958 Add set_gdbarch_convert_register_p(),
1959 set_gdbarch_register_to_value(),
1960 set_gdbarch_value_to_register(),
1961 set_gdbarch_push_dummy_call(),
1962 set_gdbarch_frame_align(),
1963 set_gdbarch_unwind_dummy_id(),
1964 set_gdbarch_unwind_pc(),
1965 frame_unwind_append_sniffer(),
1966 frame_unwind_append_sniffer(),
1967 and frame_base_set_default().
1968
aede7613
CD
19692003-08-25 Chris Demetriou <cgd@broadcom.com>
1970
1971 * configure.tgt: Document need for special "mipsisa64" handling.
1972 (mipsisa64*-*-linux64): Handle as target linux64.
1973 (mipsisa64*-*-*): Handle as target embed64.
1974
43c3a82e
MC
19752003-08-18 Michael Chastain <mec@shout.net>
1976
1977 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1978 objfile bug.
1979
6564f77d
MK
19802003-08-24 Mark Kettenis <kettenis@gnu.org>
1981
2de139ba
MK
1982 * i387-tdep.h: Update copyright date.
1983 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1984
6564f77d
MK
1985 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1986 CFLAGS games to reflect reality.
1987
42cf1509
AC
19882003-08-24 Andrew Cagney <cagney@redhat.com>
1989
1990 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1991 GDB_MULTI_ARCH is always non-zero.
1992 * osabi.c (_initialize_gdb_osabi): Ditto.
1993 (gdbarch_init_osabi): Ditto.
1994 * sparc-tdep.c: Ditto for #if code.
1995
0485f6ad
MK
19962003-08-23 Mark Kettenis <kettenis@gnu.org>
1997
1998 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1999 Update comments.
2000 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2001 comments.
2002 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2003 x86_64_supply_fxsave.
2004 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2005 x86_64_supply_fxsave.
2006 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2007 x86_64_supply_fxsave.
2008
c7716133
AJ
20092003-08-23 Andreas Jaeger <aj@suse.de>
2010
2011 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2012 i387_supply_fxsave.
2013
ed504bdf
MK
20142003-08-23 Mark Kettenis <kettenis@gnu.org>
2015
2016 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2017 i387_supply_register.
2018 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2019 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2020 i387_supply_fsave.
2021 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2022 i387_supply_fxsave.
2023 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2024 i387_supply_fsave.
2025 * i386bsd-nat.c (supply_fpregset): Adjust call to
2026 i387_supply_fsave.
2027 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2028 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2029 supply_fpregset.
2030 (store_inferior_registers): Remove extraneous whitespace. Call
2031 i387_fill_fsave instead of fill_fpregset.
2032 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2033 (supply_fpregset): Likewise.
2034 * i386v4-nat.c (supply_fpregset): Adjust call to
2035 i387_supply_fsave.
2036 * i386-interix-nat.c (supply_fpregset): Adjust call to
2037 i387_supply_fsave.
2038 * i386-linux-nat.c (supply_fpregset): Adjust call to
2039 i387_supply_fsave.
2040 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2041 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2042 i387supply_fsave and i387_supply_fxsave.
2043 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2044 Incorporate code from `i387_supply_register.
2045 (i387_supply_register): Remove.
2046 (i387_supply_fxsave): Add `regnum' argument.
2047 Update comments.
2048 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2049 prototype.
2050 (i387_supply_register): remove prototype.
2051 Update comments.
2052
4be5d520
MC
20532003-08-22 Michael Chastain <mec@shout.net>
2054
2055 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2056 Add lines for files in gdb/testsuite/gdb.cp/* that are
2057 still not 8.3 unique.
2058
7ed85d26
DJ
20592003-08-22 Daniel Jacobowitz <drow@mvista.com>
2060
2061 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2062 TYPE_VPTR_FIELDNO is valid.
2063
eb0d3137
MK
20642003-08-19 Mark Kettenis <kettenis@gnu.org>
2065
2066 * utils.c (set_width_command): Remove prototypes.
2067 (set_screen_size): New prototype.
2068 (init_page_info): Simplify by fetching the screen size from
2069 Readline. Call set_screen_size.
2070 (set_screen_size): New function.
2071 (set_width): Add missing whitespace in comment.
2072 (set_width_command): Call set_screen_size.
2073 (set_height_command): New function.
2074 (initialize_utils): Fix formatting. Make "set height" command
2075 call set_height_command. Remove redundant code that turns off
2076 pagination if output isn't a terminal. Remove redundant call to
2077 set_width_command.
2078
7e6d0ac8
MK
20792003-08-22 Mark Kettenis <kettenis@gnu.org>
2080
3567a8ea
MK
2081 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2082 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2083 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2084 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2085 `case' keyword.
2086 (sparc64_register_info): Give the reister with number
2087 SPARC64_STATE_REGNUM a name.
2088 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2089 %asi and %ccr.
2090 (sparc64_push_dummy_call): Take BIAS into account when checking
2091 stcak alignment.
2092 (sparc_software_single_step): Remove assertions that check whether
2093 NPC and NNPC were zero.
2094 (sparc_supply_rwindow): Make public. Merge functionality with
2095 sparc64_supply_rwindow.
2096 (sparc_fill_rwindow): Make public. Merge functionality with
2097 sparc64_fill_rwindow.
2098 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2099 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2100 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2101 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2102 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2103
7e6d0ac8
MK
2104 * reggroups.c: Add whitespace after declarations of local
2105 variables in functions.
2106
72e5f484
MC
21072003-08-21 Michael Chastain <mec@shout.net>
2108
2109 * gdbtypes.h: Change array bound type from an int to enum.
2110
435ac228
AC
21112003-08-21 Andrew Cagney <cagney@redhat.com>
2112
2113 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2114 * config/sparc/tm-sparc.h: Ditto.
2115 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2116 unconditionally.
2117 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2118
0d0e1a63
MK
21192003-07-13 Mark Kettenis <kettenis@gnu.org>
2120
2121 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2122 (register_objfile_data, set_objfile_data, objfile_data): New
2123 prototypes.
2124 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2125 prototypes.
2126 (allocate_objfile): Call objfile_alloc_data.
2127 (free_objfile): Call objfile_free_data.
2128 (struct objfile_data): New.
2129 (struct objfile_data_registration): New.
2130 (struct objfile_data_registry): New.
2131 (objfile_data_registry): New variable.
2132 (register_objfile_data): New function.
2133 (objfile_alloc_data, objfile_free_data): New functions.
2134 (set_objfile_data, objfile_data): New functions.
2135 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2136 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2137 (_initialize_dwarf2_frame): New function and prototype.
2138
d90cf509
AC
21392003-08-21 Andrew Cagney <cagney@redhat.com>
2140
2141 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2142 a specific architecture.
2143 * arch-utils.h (set_architecture_from_arch_mach): Delete
2144 declaration.
2145 (target_architecture_hook): Delete declaration.
2146 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2147 (default_float_format): Assume GDB_MULTI_ARCH.
2148 (default_double_format): Assume GDB_MULTI_ARCH.
2149 (set_endian_from_file): Delete function.
2150 (arch_ok): Delete function.
2151 (set_arch): Delete function.
2152 (set_architecture_from_arch_mach): Delete function.
2153 (set_architecture_from_file): Delete function.
2154 (set_architecture): Assume GDB_MULTI_ARCH.
2155 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2156
8b39fe56
MK
21572003-08-21 Mark Kettenis <kettenis@gnu.org>
2158
2159 Rewrite FreeBSD/sparc64 native configuration.
2160 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2161 * sparc64fbsd-nat.c: New file.
2162 * sparc64fbsd-tdep.c: New file.
2163 * sparc64-tdep.c sparc64-tdep.h: New files.
2164 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2165 sparc64fbsd-tdep.o): New dependencies.
2166 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2167 and sparc64fbsd-tdep.c.
2168 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2169 * config/sparc/fbsd.mh: Remove copyright notice.
2170 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2171 sparcbsd-nat.o.
2172 * config/sparc/fbsd.mt: Remove copyright notice.
2173 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2174 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2175 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2176 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2177 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2178 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2179 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2180 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2181 "sparc/tm-sp64.h".
2182 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2183 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2184
a7f19c79
MC
21852003-08-21 Michael Chastain <mec@shout.net>
2186
2187 * symtab.h: Add doco on the space critical structures and
2188 some measurements of space usage.
2189
da08ea5b
MS
21902003-08-21 Michael Snyder <msnyder@redhat.com>
2191
2192 * tracepoint.c (trace_dump_command): Trace break address
2193 is subject to DECR_PC_AFTER_BREAK.
2194 (set_traceframe_context): Make "trace_line" an int.
2195 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2196
6df2bf50
MS
21972003-08-20 Michael Snyder <msnyder@redhat.com>
2198
2199 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2200 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2201 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2202 argument passing.
2203 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2204 functions, replace sh_push_dummy_call.
2205 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2206
0955bbf0
MC
22072003-08-20 Michael Chastain <mec@shout.net>
2208
2209 * gdbtypes.h (struct main_type): Rearrange to save space.
2210
260a4188
MS
22112003-08-20 Michael Snyder <msnyder@redhat.com>
2212
2213 * trad-frame.c: Comment typo fix.
2214
8baa6f92
KB
22152003-08-20 Michael Snyder <msnyder@redhat.com>
2216 Kevin Buettner <kevinb@redhat.com>
2217
2218 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2219 (frv_frame_init_saved_regs): Add declaration.
2220 (frame_extra_info): Add new field ``saved_regs''.
2221 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2222 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2223 Update frame related code.
2224 (frv_extract_struct_value_address): Adjust formatting.
2225 * Makefile.in (frv-tdep.o): Update dependencies.
2226 * config/frv/tm-frv.h (target_insert_watchpoint)
2227 (target_remove_watchpoint, target_insert_hw_breakpoint)
2228 (target_remove_hw_breakpoint): Delete these macros.
2229 (remote_insert_watchpoint, remote_remove_watchpoint)
2230 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2231 these declarations.
2232
87193939
MC
22332003-08-20 Michael Chastain <mec@shout.net>
2234
2235 * defs.h (ENUM_BITFIELD): New macro.
2236 * symtab.h (ENUM_BITFIELD): Use it.
2237 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2238
062103ba
SA
22392003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2240
2241 * MAINTAINERS (write after approval): Add myself.
2242
8b148df9
AC
22432003-08-18 Andrew Cagney <cagney@redhat.com>
2244
2245 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2246 * gdbarch.h, gdbarch.c: Re-generate.
2247 * infcall.c (call_function_by_hand): Adjust the SP by
2248 frame_red_zone_size before allocating any stack space.
2249 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2250 * x86-64-tdep.c (x86_64_frame_align): New function.
2251 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2252
2253 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2254 Remove code adjusting SP so that it skips over the Red Zone.
2255
954a4db8
MK
22562003-08-18 Mark Kettenis <kettenis@gnu.org>
2257
2258 * NEWS (New native configurations): Mention FreeBSD/amd64.
2259
1a241548
AC
22602003-08-18 Andrew Cagney <cagney@redhat.com>
2261
2262 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2263 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2264 "m68k_frame_p".
2265 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2266
f82b2acd
MK
22672003-08-18 Mark Kettenis <kettenis@gnu.org>
2268
2269 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2270
4056d258
ML
22712003-08-18 Michal Ludvig <mludvig@suse.cz>
2272
2273 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2274 Define.
2275 * i386-linux-nat.c: Include "linux-nat.h".
2276 (child_post_startup_inferior): New function.
2277
99ab4326
MK
22782003-08-18 Mark Kettenis <kettenis@gnu.org>
2279
2280 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2281 at the start of a frameless function. This probably fixes PR
2282 backtrace/1338.
2283
c8d5f0d6
MC
22842003-08-17 Michael Chastain <mec@shout.net>
2285
2286 * symfile.c (find_sym_fns): Remove special case for apollo target.
2287
9016a515
DJ
22882003-08-17 Daniel Jacobowitz <drow@mvista.com>
2289
2290 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2291 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2292 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2293 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2294 (linux_supports_tracevforkdone): New function.
2295 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2296 TRACEVFORKDONE.
2297 (child_follow_fork): Handle vfork.
2298 (linux_handle_extended_wait): Likewise. Also handle exec.
2299 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2300 * NEWS: Mention fork tracing.
2301
c538c11c
DJ
23022003-08-17 Daniel Jacobowitz <drow@mvista.com>
2303
2304 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2305
4de4c07c
DJ
23062003-08-17 Daniel Jacobowitz <drow@mvista.com>
2307
2308 * Makefile.in (i386-linux-nat.o): Update dependencies.
2309 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2310 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2311 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2312 * i386-linux-nat.c: Include "linux-nat.h".
2313 (child_post_startup_inferior): New function.
2314 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2315 * infptrace.c (kill_inferior): Wrap in #ifdef.
2316 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2317 attaching to each LWP.
2318 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2319 (init_lin_lwp_ops): Fill in some more operations.
2320 * linux-nat.h (linux_enable_event_reporting)
2321 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2322 prototypes.
2323 * linux-nat.c (linux_enable_event_reporting): New function.
2324 (child_post_attach, linux_child_post_startup_inferior)
2325 (child_post_startup_inferior, child_follow_fork)
2326 (linux_handle_extended_wait, kill_inferior): New functions.
2327
7996bcec
AC
23282003-08-16 Andrew Cagney <cagney@redhat.com>
2329
2330 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2331 * gdbarch.h, gdbarch.c: Re-generate.
2332
3d48a7a0
MK
23332003-08-16 Mark Kettenis <kettenis@gnu.org>
2334
2335 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2336
7989c619
AC
23372003-08-16 Andrew Cagney <cagney@redhat.com>
2338
2339 * NEWS: Mention that "set prompt-escape-char" was deleted.
2340 * top.c (get_prompt_1): Delete function.
2341 (gdb_prompt_escape):
2342 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2343 prompt-escape-char" command.
2344 (MAX_PROMPT_SIZE): Delete macro.
2345 (get_prompt): Simplify, do not call get_prompt_1.
2346
07978cd8
AC
23472003-08-16 Andrew Cagney <cagney@redhat.com>
2348
2349 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2350 -Werror. -Wformat-nonliteral problems.
2351
3ff7cf9e
JB
23522003-08-15 J. Brobecker <brobecker@gnat.com>
2353
2354 Further multiarching work mostly for hppa64-*-hpux11:
2355 * hppa-tdep.h: New file.
2356 * hppa-tdep.c: #include hppa-tdep.c.
2357 (hppa32_num_regs): Renamed from hppa_num_regs.
2358 (hppa64_num_regs): New constant.
2359 (hppa64_call_dummy_breakpoint_offset): New constant.
2360 (hppa32_call_dummy_length): New constant.
2361 (hppa64_call_dummy_length): New constant.
2362 (hppa32_stack_align): Make name 32bit explicit.
2363 (hppa32_register_virtual_type): Likewise.
2364 (hppa32_extract_return_value): Likewise.
2365 (hppa32_use_struct_convention): Likewise.
2366 (hppa32_store_return_value): Likewise.
2367 (hppa64_register_virtual_type): New function.
2368 (hppa64_extract_return_value): New function.
2369 (hppa64_use_struct_convention): New function.
2370 (hppa64_store_return_value): New function.
2371 (hppa_frame_locals_address): Remove declaration, function does
2372 not exist anymore.
2373 (hppa_register_byte): Add support for PA64 ABI.
2374 (hppa_gdbarch_init): Add support for PA64 ABI.
2375 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2376 Make name 32bit explicit.
2377 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2378 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2379 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2380 (hppa64_hpux_frame_base_before_sigtramp): New function.
2381 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2382 * config/pa/tm-hppa64.h: Remove macros that are no longer
2383 necessary now that the gdbarch vector is properly setup.
2384 Transform some macros into function calls. Some minor cleanup.
2385 * config/pa/tm-hppah.h: Update function calls in macros
2386 following the function renaming in hppa-hpux-tdep.c.
2387 * Makefile.in (hppa_tdep_h): New variable.
2388 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2389
5d05ca6d
MS
23902003-08-14 Michael Snyder <msnyder@redhat.com>
2391
2392 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2393
37ba2569
JB
23942003-08-13 J. Brobecker <brobecker@gnat.com>
2395
2396 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2397 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2398 routine.
2399
aed7f26a
MS
24002003-08-13 Michael Snyder <msnyder@redhat.com>
2401
2402 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2403 (frv_saved_pc_after_call): Use deprecated ftype.
2404 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2405 (frv_remote_translate_xfer_address): Remove.
2406 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2407
752d4ac1
JB
24082003-08-13 J. Brobecker <brobecker@gnat.com>
2409
2410 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2411 initialization after the common gdbarch initialization, not before.
2412
1426ac1d
JB
24132003-08-13 J. Brobecker <brobecker@gnat.com>
2414
2415 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2416 (ADDR_BITS_REMOVE): Remove, redundant.
2417
b6fbdd1d
JB
24182003-08-13 J. Brobecker <brobecker@gnat.com>
2419
2420 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2421 gdbarch method to clear the 2 low bits of text addresses.
2422
44160db3
AC
24232003-08-12 Andrew Cagney <cagney@redhat.com>
2424
2425 * Makefile.in (dsrec.o): Update dependencies.
2426 * dsrec.c: Include "gdb_assert.h".
2427 (make_srec): Use snprintf instead of sprintf, use a literal format
2428 string.
2429
bcf7d3ca
AC
24302003-08-12 Andrew Cagney <cagney@redhat.com>
2431
2432 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2433 FRAME_OBSTACK_ZALLOC.
2434
49ed40de
KB
24352003-08-12 Kevin Buettner <kevinb@redhat.com>
2436
2437 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2438 SSE registers.
2439
b246147c
MK
24402003-08-10 Mark Kettenis <kettenis@gnu.org>
2441
2442 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2443 amd64fbsd_sc_reg_offset): Add extern declarations.
2444 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2445 declarations.
2446
d95fdc0d
BE
24472003-08-11 Ben Elliston <bje@wasabisystems.com>
2448
2449 * MAINTAINERS (write after approval): Update my mail address.
2450
cf6a0e73
AC
24512003-08-10 Andrew Cagney <cagney@redhat.com>
2452
2453 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2454
f837910f
MK
24552003-08-10 Mark Kettenis <kettenis@gnu.org>
2456
e2dbbd2d
MK
2457 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2458 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2459 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2460 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2461 i386bsd_sc_reg_offset): Add extern declarations.
2462 * i386obsd-nat.c: Include "i386-tdep.h"
2463 (_initialize_i386obsd_nat): Remove extern declarations.
2464 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2465 declarations.
2466 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2467 declarations.
2468
f837910f
MK
2469 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2470 instead of frame_read_register.
2471 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2472 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2473 SP_REGNUM.
2474 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2475 instead of frame_unwind_unsigned_register. Use
2476 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2477 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2478 instead of read_register. Use builtin_type_void_data_ptr instead
2479 of builtin_type_void_func_ptr when extracting the address of the
2480 jmp_buf.
2481 (i386_extract_return_value, i386_store_return_value,
2482 i386_pseudo_register_read, i386_pseudo_register_write): Use
2483 register_size instead REGISTER_RAW_SIZE.
2484
edcf254d
AC
24852003-08-10 Andrew Cagney <cagney@redhat.com>
2486
2487 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2488 sprintf. Make "name" constant.
2489
26604a34
MK
24902003-08-10 Mark Kettenis <kettenis@gnu.org>
2491
192285c6
MK
2492 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2493 instead of frame_read_register.
f837910f
MK
2494 (i387_print_float_info): Use get_frame_register and
2495 get_frame_register_unsigned instead of frame_register_read.
192285c6 2496
f0925262
MK
2497 * i386fbsd-nat.c: Include "i386-tdep.h".
2498 (child_resume): Make `eflags' an ULONGEST. Use
2499 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2500 instead of register_read and register_write.
2501
a144416f
MK
2502 * i386bsd-nat.c (fetch_inferior_registers,
2503 store_inferior_registers): Don't use && at the end of a line.
2504 (_initialize_i386bsd_nat): Fix typo.
2505
fec74868
MK
2506 * frame.c (_initialize_frame): Add missing backslash.
2507
87232496
MK
2508 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2509 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2510 and supply_register instead of manipulating the register buffer
2511 directly.
2512
c9b9de0b
MK
2513 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2514 * config/i386/nm-i386sol2.h
2515 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2516
26604a34
MK
2517 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2518 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2519 instructions that GCC likes to mingle into the prologue. Fixes
2520 gdb/1253 and gdb/1255.
2521
25d29d70
AC
25222003-08-09 Andrew Cagney <cagney@redhat.com>
2523
2524 Fix GDB PR cli/926.
2525 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2526 * command.h (add_setshow_uinteger_cmd): Declare.
2527 * frame.c (set_backtrace_cmd): New function.
2528 (show_backtrace_cmd): New function.
2529 * frame.c (_initialize_frame): Replace "set/show
2530 backtrace-below-main" with "set/show backtrace past-main". Add
2531 command "set/show backtrace limit".
2532 (backtrace_past_main): Rename "backtrace_below_main".
2533 (backtrace_limit): New variable.
2534 (get_prev_frame): Update. Check the backtrace_limit.
2535
9ebf4acf
AC
25362003-08-09 Andrew Cagney <cagney@redhat.com>
2537
2538 * defs.h (xstrprintf): Declare.
2539 * utils.c (xstrprintf): New function.
2540 * breakpoint.c (insert_breakpoints): Replace sprintf and
2541 non-literal format strings, with xstrprintf and cleanups.
2542 (delete_breakpoint,breakpoint_re_set): Ditto.
2543 (commands_command, insert_breakpoints): Ditto.
2544 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2545 (break_at_finish_command_1): Ditto.
2546
3771659b
AC
25472003-08-09 Andrew Cagney <cagney@redhat.com>
2548
2549 * MAINTAINERS (language support): List Adam Fedor as Objective C
2550 maintainer.
2551
b4263afa
JB
25522003-08-08 J. Brobecker <brobecker@gnat.com>
2553
2554 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2555 are now multiarched.
2556
d84defb1
JB
25572003-08-08 J. Brobecker <brobecker@gnat.com>
2558
2559 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2560 longer necessary now that hppa64 is partially multiarch'ed.
2561
f786f615
AC
25622003-08-08 Andrew Cagney <cagney@redhat.com>
2563
2564 * interps.c (interp_set): Check for a NULL "old_interp".
2565
c938e9b0
L
25662003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2567
2568 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2569 (install-only): Support DESTDIR.
2570 (uninstall): Likewise.
2571 (install-gdbtk): Likewise.
2572
9a146a11
EZ
25732003-08-08 Elena Zannoni <ezannoni@redhat.com>
2574
2575 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2576 contains something meaningful at all times.
2577
2578Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2579
62599e99 2580 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2581
56296155
BC
2582Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2583
62599e99 2584 * MAINTAINERS (write after approval): Added self.
56296155 2585
9710e734
AC
25862003-08-07 Andrew Cagney <cagney@redhat.com>
2587
2588 * inferior.h (AT_SYMBOL): Define.
2589 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2590 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2591 * mips-tdep.c (mips_call_dummy_address): Delete function.
2592 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2593 set call_dummy_address.
2594
98b3ab73
AC
25952003-08-07 Andrew Cagney <cagney@redhat.com>
2596
2597 * language.c (op_error): Delete function.
2598 (binop_type_check): Delete function.
2599 * language.h (type_op_error, range_op_error): Delete macros.
2600 (op_error): Delete declaration.
2601
2fcf52f0
AC
26022003-08-07 Andrew Cagney <cagney@redhat.com>
2603
2604 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2605
abd4220e 26062003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2607
abd4220e 2608 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2609 (x86_64_push_arguments): Skip the red zone.
abd4220e 2610
9dd5f34f
AC
26112003-08-05 Andrew Cagney <cagney@redhat.com>
2612
2613 * reggroups.c (reggroup_next): Check for the final entry.
2614
e5e78edc
AC
26152003-08-04 Andrew Cagney <cagney@redhat.com>
2616
ab4e3d93
AC
2617 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2618 * cli/cli-script.c (define_command): Call query directly, instead
2619 of passing it a buffer.
2620 * ocd.c (ocd_error): Pass error a constant format string.
2621 * remote-mips.c (mips_error): Use fputs_filtered.
2622
1062ca82
AC
2623 * solib-svr4.c (_initialize_svr4_solib): Update
2624 register_gdbarch_data call.
2625 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2626
fcc1c85c
AC
2627 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2628 (register_gdbarch_data): Delete "free" parameter. Update
2629 comments.
2630 * gdbarch.h, gdbarch.c: Re-generate.
2631 * reggroups.c (_initialize_reggroup): Update.
2632 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2633 * frame-base.c (_initialize_frame_base): Update.
2634 * frame-unwind.c (_initialize_frame_unwind): Update.
2635 * user-regs.c (_initialize_user_regs): Update.
2636 * remote.c (_initialize_remote): Update.
2637 * regcache.c (_initialize_regcache): Update.
2638
116f06ea
AC
2639 * regcache.c (xfree_regcache_descr): Delete function.
2640 (_initialize_regcache): Update call to register_gdbarch_data.
2641 (init_regcache_descr, init_legacy_regcache_descr): Use
2642 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2643
e5e78edc
AC
2644 * remote.c (free_remote_state): Delete function.
2645 (_initialize_remote): Update register_gdbarch_data.
2646 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2647 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2648
6c7d17ba
AC
26492003-08-04 Andrew Cagney <cagney@redhat.com>
2650
2651 * reggroups.c (struct reggroup_el): Define.
2652 (struct reggroups): Delete field "nr_group". Replace array
2653 "group" with a "first" to "last" linked list.
2654 (reggroups_init): Update. Allocate using gdbarch's obstack.
2655 (reggroups_free): Delete function.
2656 (add_group): Update. Add "el" parameter.
2657 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2658 (default_groups): Update.
2659 (reggroup_next): Replace reggroups.
2660 (reggroups_dump): Update.
2661 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2662 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2663 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2664
89b7795b
DJ
26652003-08-04 Daniel Jacobowitz <drow@mvista.com>
2666
2667 * Makefile.in (tui-interp.o): Update dependencies.
2668
306d9ac5
DC
26692003-08-04 David Carlton <carlton@kealia.com>
2670
2671 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2672 to internal_error call.
2673 * source.c (forward_search_command): Add "%s" format argument.
2674 (reverse_search_command): Ditto.
2675 * top.c (quit_confirm): Ditto.
2676 * cli/cli-setshow.c (do_setshow_command): Ditto.
2677 * cp-valprint.c (cp_print_class_method): Replace
2678 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2679 (cp_print_class_member): Ditto.
2680 * event-top.c (command_line_handler): Ditto.
2681 * linux-proc.c (linux_info_proc_cmd): Ditto.
2682 * p-typeprint.c (pascal_type_print_base): Ditto.
2683 * p-valprint.c (pascal_object_print_class_method): Ditto.
2684 (pascal_object_print_class_member): Ditto.
2685 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2686 * remote.c (remote_cisco_section_offsets): Ditto.
2687 * top.c (command_line_input): Ditto.
2688 * utils.c (vwarning,error_stream,quit): Ditto.
2689 * valprint.c (print_floating,print_binary_chars)
2690 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2691
57bfe177
AC
26922003-08-04 Andrew Cagney <cagney@redhat.com>
2693
2694 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2695
e546b999
AC
26962003-08-02 Andrew Cagney <cagney@redhat.com>
2697
2698 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2699 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2700 amd64fbsd-nat.c.
2701
91092ee5
AC
27022003-08-02 Andrew Cagney <cagney@redhat.com>
2703
2704 * Makefile.in: Update all dependencies and definitions.
2705
889f28e2
AF
27062003-08-02 Adam Fedor <fedor@gnu.org>
2707
2708 * linespec.c (is_objc_method_format): New function
2709 (decode_line_1, locate_first_half): Use it.
2710 Fixes PR objc/1298
2711
880bc914
AC
27122003-08-01 Andrew Cagney <cagney@redhat.com>
2713
2714 * NEWS: Mention that m32r is multi-arch.
2715 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2716 * configure.tgt: Recognize m32r-*-*.
2717 * config/m32r/tm-m32r.h: Delete file.
2718 * config/m32r/m32r.mt: New file.
2719 * m32r-rom.c (m32r_upload_command): Use hostent only when
2720 gethostname succeeds, in order to avoid a compilation
2721 warning.
2722 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2723 compiler warning.
2724
19f59343
MS
27252003-08-01 Michael Snyder <msnyder@redhat.com>
2726
2727 * sh-tdep.c (sh_frame_align): New gdbarch method.
2728 (sh_gdbarch_init): Set up frame_align method.
2729
4e7d7511
MS
27302003-07-31 Michael Snyder <msnyder@redhat.com>
2731
2732 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2733 which is already covered by the new frames infrastructure.
2734
63022984
AC
27352003-07-31 Andrew Cagney <cagney@redhat.com>
2736
2737 * user-regs.c (struct user_reg): Add "next" link.
2738 (struct user_regs): Replace "user" with "first" and "last" links.
2739 (append_user_reg): Add pre-allocated "reg" parameter.
2740 (builtin_user_regs): Provide initial value for "last".
2741 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2742 (user_regs_init): Allocate memory from the gdbarch obstack.
2743 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2744 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2745 linked list.
2746 (usernum_to_user_reg): New function.
2747 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2748 (value_of_user_reg): Use usernum_to_user_reg.
2749 (user_regs_free): Delete function.
2750 (_initialize_user_regs): Update register_gdbarch_data call.
2751
7cf6e574
DJ
27522003-07-31 Daniel Jacobowitz <drow@mvista.com>
2753
2754 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2755
c48a845b
MS
27562003-07-30 Michael Snyder <msnyder@redhat.com>
2757
4e7d7511 2758 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2759 * infcall.c (call_function_by_hand): Pass struct_addr to
2760 value_being_returned.
2761 * infcmd.c (print_return_value): Pass zero as struct_addr.
2762 * values.c (value_being_returned): If struct_addr is passed,
2763 use it instead of trying to recover it from the inferior.
2764
f0d8db19
KB
27652003-07-30 Kevin Buettner <kevinb@redhat.com>
2766
2767 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2768 the prologue analyzer won't need to attempt to extract the pc
2769 value from the woefully incomplete dummy frame.
2770 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2771 possible. Disable code which modifies the frame.
2772
e5c113a1
AC
27732003-07-28 Andrew Cagney <cagney@redhat.com>
2774
2775 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2776 to level 2.
2777 (annotate_breakpoints_table, annotate_record): Ditto.
2778 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2779 (annotate_field_name_end, annotate_field_value): Ditto.
2780 (annotate_field_end, annotate_frame_source_begin): Ditto.
2781 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2782 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2783 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2784 (annotate_frame_address_end, annotate_frame_address): Ditto.
2785 (annotate_frame_args, annotate_frame_end): Ditto.
2786 (annotate_frame_where, annotate_arg_begin): Ditto.
2787 (annotate_arg_name_end, annotate_arg_value): Ditto.
2788 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2789 (annotate_function_call, annotate_signal_name): Ditto.
2790 (annotate_signal_string, annotate_signal_name_end): Ditto.
2791 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2792 (annotate_value_begin, annotate_value_history_value): Ditto.
2793 (annotate_value_history_end, annotate_value_end): Ditto.
2794 (annotate_display_begin, annotate_display_number_end): Ditto.
2795 (annotate_display_format, annotate_display_expression): Ditto.
2796 (annotate_display_expression_end, annotate_display_value): Ditto.
2797 (annotate_display_end, annotate_array_section_begin): Ditto.
2798 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2799 (annotate_elt, annotate_array_section_end): Ditto.
2800
bb1db049
AC
28012003-07-28 Andrew Cagney <cagney@redhat.com>
2802
2803 * regcache.c (struct regcache_descr): Update comments on
2804 nr_raw_registers.
2805 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2806 sizeof_raw_register_valid_p.
2807 (init_regcache_descr): Set nr_raw_registers and
2808 sizeof_raw_register_valid_p before calling
2809 init_legacy_regcache_descr.
2810
20e6603c
AC
28112003-07-28 Andrew Cagney <cagney@redhat.com>
2812
2813 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2814 MOD NUM_REGS.
2815
db742940
DJ
28162003-07-28 Daniel Jacobowitz <drow@mvista.com>
2817
2818 * thread.c (info_threads_command): Use get_selected_frame ().
2819 Check that there is at least one non-sentinel frame.
2820
ce7f4371
SC
28212003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2822
2823 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2824 (m68hc11_pop_frame): Remove.
2825 (m68hc11_frame_saved_pc): Remove.
2826 (m68hc11_frame_chain): Remove.
2827 (m68hc11_frame_init_saved_regs): Remove.
2828 (m68hc11_init_extra_frame_info): Remove.
2829 (m68hc11_store_struct_return): Remove.
2830 (m68hc11_saved_pc_after_call): Remove.
2831
1ea653ae
SC
28322003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2833
2834 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2835 frame unwind information.
2836 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2837 and adapted for frame unwinding.
2838 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2839 (m68hc11_unwind_pc): New function.
2840 (m68hc11_frame_unwind_cache): New function to analyze frames.
2841 (m68hc11_frame_this_id): New function to create new frame struct.
2842 (m68hc11_frame_prev_register): New function to unwind a register from
2843 the frame.
2844 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2845 (m68hc11_frame_p): New function for the above.
2846 (m68hc11_frame_base_address): New function to return fp of frame.
2847 (m68hc11_frame_args_address): Update for frame.
2848 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2849 (m68hc11_unwind_sp): New function.
2850 (m68hc11_unwind_dummy_id): New function.
2851 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2852 calls.
2853
c8a7f6ac
SC
28542003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2855
2856 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2857 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2858 when we are beyond the current pc.
2859
3dc990bf
SC
28602003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2861
2862 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2863 from m68hc11_push_arguments.
2864 (m68hc11_push_arguments): Remove.
2865 (m68hc11_push_return_address): Remove.
2866 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2867 handlers; remove deprecated_extra_stack_alignment_needed.
2868
222e5d1d
AC
28692003-07-27 Andrew Cagney <cagney@redhat.com>
2870
2871 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2872 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2873 REAL_PC and not the pointer.
2874 * hppa-hpux-tdep.c: Include frame.h
2875
a7e9a47e
AC
28762003-07-27 Andrew Cagney <cagney@redhat.com>
2877
2878 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2879 GDB_MULTI_ACH_PARTIAL.
2880
7e3dd49e
AC
28812003-07-27 Andrew Cagney <cagney@redhat.com>
2882
2883 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2884 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2885 operator at start and not end of line.
2886 (decode_prologue): Ditto.
2887 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2888 frame_unwind_register_unsigned instead of
2889 frame_unwind_unsigned_register.
2890 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2891 read_register.
2892 (m32r_push_dummy_call): Use register_size instead of
2893 REGISTER_RAW_SIZE.
2894 (m32r_frame_sniffer): Replace m32r_frame_p.
2895 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2896 * m32r-rom.c (report_transfer_performance): Delete extern
2897 declaration.
2898 (m32r_load, m32r_upload_command): Use print_transfer_performance
2899 instead of report_transfer_performance.
2900 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2901 / add_show_from_set.
2902
0880807f
AC
29032003-07-26 Andrew Cagney <cagney@redhat.com>
2904
2905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2906 store_return_value and extract_struct_value_address.
2907
64ae9269
DJ
29082003-07-26 Daniel Jacobowitz <drow@mvista.com>
2909
2910 PR c++/1267
2911 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2912 NULL, default to the section containing PC.
2913
e286caf2
SC
29142003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2915
2916 * NEWS: Mention "regs" deprecated for m68hc11 too.
2917
2918 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2919 (m68hc11_print_register): New function to print out one register.
2920 (m68hc11_print_registers_info): New function to print registers.
2921 (show_regs): Deprecate and use the above.
2922 (m68hc11_gdbarch_init): Install the print_registers_info.
2923
705b278b
JJ
29242003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2925
2926 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2927 that we have a SIGTRAP before returning non-zero.
2928
63cd4198
EZ
29292003-07-23 Michal Ludvig <mludvig@suse.cz>
2930 Elena Zannoni <ezannoni@redhat.com>
2931
2932 * linespec.c (decode_line_2): Avoid crash if
2933 find_function_start_sal() returns empty record.
2934
6926787d
AS
29352003-07-23 Andreas Schwab <schwab@suse.de>
2936
2937 * ia64-tdep.c (ia64_print_insn): New function.
2938 (ia64_gdbarch_init): Set print_insn to it.
2939 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2940 deprecated_tm_print_insn_info.
2941
708cc1b6
MS
29422003-07-22 Michael Snyder <msnyder@redhat.com>
2943
2944 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2945 handle 8-bit returns (long long).
2946 (h8300h_extract_return_value): Ditto.
2947 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2948
aebd7893
AC
29492003-07-22 Andrew Cagney <cagney@redhat.com>
2950
2951 * gdbarch.c Include "gdb_obstack.h".
2952 (struct gdbarch): Add an "obstack".
2953 (alloc_gdbarch_data): Allocate the gdbarch data using
2954 GDBARCH_OBSTACK_CALLOC.
2955 (free_gdbarch_data): Delete function.
2956 (gdbarch_obstack_zalloc): New function.
2957 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2958 Assert that the architecture is not initialized.
2959 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2960 vector from the obstack.
2961 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2962 architecture obstack.
2963 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2964 (set_gdbarch_data): Assert that the data is not initialized.
2965 (struct gdbarch_data): Delete member "free".
2966 (register_gdbarch_data): Do not initialize "free".
2967 * gdbarch.h, gdbarch.c: Re-generate.
2968
153721e6
AC
29692003-07-22 Andrew Cagney <cagney@redhat.com>
2970
2971 * configure.in (build_warnings): Add -Wformat-nonliteral.
2972 * configure: Re-generate.
2973
c193f044 29742003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2975
2976 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2977
c3228f12
EZ
29782003-07-22 Elena Zannoni <ezannoni@redhat.com>
2979
2980 * findvar.c (read_var_value): Remove case for thread local storage
2981 variables. It is now entirely handled by the dwarf2 location
2982 expression code.
2983 * printcmd.c (address_info): Ditto.
2984 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2985 enumeration value.
2986 (struct symbol): Remove objfile field, which was used by
2987 LOC_THREAD_LOCAL_STATIC only.
2988 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2989 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2990 usage of objfile pointer.
2991 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2992 thread local variables.
2993 Add include of objfiles.h.
2994 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2995 storage variables.
2996 * Makefile.in (dwarf2loc.o): Update dependencies.
2997
aef9bcd2
AC
29982003-07-22 Andrew Cagney <cagney@redhat.com>
2999
3000 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3001 get_frame_base.
3002 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3003 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3004 (struct value): Add opaque declaration.
3005 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3006
d95a8903
AC
30072003-07-21 Andrew Cagney <cagney@redhat.com>
3008
3009 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3010 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3011
4db73d49
SC
30122003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3013
3014 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3015 regcache_cooked_read_unsigned instead of read_register.
3016 (m68hc11_saved_pc_after_call): Likewise.
3017 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3018 instead of write_register.
3019 (m68hc11_register_type): New function.
3020 (m68hc11_register_virtual_type): Remove.
3021 (m68hc11_store_return_value): Convert to use the regcache.
3022 (m68hc11_extract_struct_value_address): Likewise.
3023 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3024 m68hc11_register_type; undeprecate store_return_value and
3025 extract_struct_value_address.
3026
ef2b8fcd
SC
30272003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3028
3029 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3030 and translate to use regcache.
3031 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3032
625b0b97
AC
30332003-07-18 Andrew Cagney <cagney@redhat.com>
3034
3035 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3036 * gdbarch.h, gdbarch.c: Re-generate.
3037 * i386-tdep.c (i386_gdbarch_init): Do not set
3038 DWARF2_BUILD_FRAME_INFO.
3039 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3040 unconditionally.
3041 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3042 DWARF2_BUILD_FRAME_INFO.
3043
22b0d388
AC
30442003-07-18 Andrew Cagney <cagney@redhat.com>
3045
3046 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3047 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3048
1ce5d6dd
AC
30492003-07-18 Andrew Cagney <cagney@redhat.com>
3050
3051 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3052 frame_unwind_address_in_block, instead of frame_pc_unwind.
3053 (dwarf2_frame_cache): Ditto.
3054
e6e5e94c
AC
30552003-07-18 Andrew Cagney <cagney@redhat.com>
3056
3057 * user-regs.h (struct gdbarch): Declare opaque.
3058 * ui-out.h (struct ui_file): Declare opaque.
3059 * dwarf2-frame.h (struct frame_info): Declare opaque.
3060
5483d879
KW
30612003-07-18 Kris Warkentin <kewarken@qnx.com>
3062
3063 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3064 #include "...".
3065 (procfs_meminfo): Change strerror to safe_strerror.
3066 (procfs_can_run): Remove K&R badness.
3067
278a7cf7
MS
30682003-07-17 Michael Snyder <msnyder@redhat.com>
3069
3070 * remote-sim.c: Comment typo fix.
3071
606e3b82
AC
30722003-07-17 Andrew Cagney <cagney@redhat.com>
3073
3074 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3075 configure.
3076 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3077 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3078 GDB_MULTI_ARCH_PARTIAL.
3079
c43af07c
EZ
30802003-07-17 Elena Zannoni <ezannoni@redhat.com>
3081
3082 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3083 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3084 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3085
3b85b0f1
TR
30862003-07-16 Theodore A. Roth <troth@openavr.org>
3087
3088 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3089 found.
3090 (avr_frame_unwind_cache): Don't unwind FP for main.
3091 Update a comment.
3092 Save the computed prev_sp.
3093 (avr_saved_regs_unwinder): Remove function.
3094 (avr_frame_prev_register): Use PC unwind logic from
3095 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3096
336d1bba
AC
30972003-07-16 Andrew Cagney <cagney@redhat.com>
3098
3099 * frame-base.h (frame_base_p_ftype): Delete definition.
3100 (frame_base_append_predicate): Delete declaration.
3101 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3102 (frame_unwind_append_predicate): Delete declaration.
3103 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3104 (append_predicate): Delete parameter "p".
3105 (frame_unwind_append_predicate): Delete function.
3106 (frame_unwind_append_sniffer): Update call to append_predicate.
3107 (frame_unwind_free): Delete function.
3108 (_initialize_frame_unwind): Pass NULL as "free" to
3109 register_gdbarch_data.
3110 (frame_unwind_init): Append the dummy_frame_sniffer.
3111 (frame_unwind_find_by_frame): Simplify.
3112 * frame-base.c (struct frame_base_table): Delete field "p".
3113 (append_predicate): Delete parameter "p".
3114 (frame_base_append_predicate): Delete function.
3115 (frame_base_append_sniffer): Update call to append_predicate.
3116 (frame_base_free): Delete function.
3117 (frame_base_find_by_frame): Simplify.
3118 (_initialize_frame_base): Pass NULL as "free" to
3119 register_gdbarch_data.
3120 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3121 (x86_64_sigtramp_frame_sniffer): Replace
3122 "x86_64_sigtramp_frame_p".
3123 (x86_64_init_abi): Set the frame unwind sniffers.
3124 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3125 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3126 (m68k_gdbarch_init): Set the frame unwind sniffers.
3127 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3128 "i386_sigtramp_frame_p".
3129 (i386_frame_sniffer): Replace "i386_frame_p".
3130 (i386_gdbarch_init): Set the frame unwind sniffers.
3131 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3132 (avr_gdbarch_init): Set the frame unwind sniffers.
3133 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3134 "alpha_sigtramp_frame_p"
3135 (alpha_heuristic_frame_sniffer): Replace
3136 "alpha_heuristic_frame_p".
3137 (alpha_gdbarch_init): Set the frame unwind sniffers.
3138 (alpha_dwarf2_init_abi): Ditto.
3139 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3140 "alpha_debug_frame_p".
3141 (alpha_mdebug_frame_base_sniffer): Replace
3142 "alpha_mdebug_frame_base_p".
3143 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3144 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3145 (d10v_gdbarch_init): Set the frame unwind sniffer.
3146 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3147 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3148 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3149 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3150 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3151 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3152
48db5a3c
CV
31532003-07-16 Michael Snyder <msnyder@redhat.com>
3154
3155 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3156 should go thru sh_dsp_register_sim_regno, else the dsp regs
3157 will not get the right values.
3158
31592003-07-16 Corinna Vinschen <vinschen@redhat.com>
3160
3161 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3162 deprecated_store_floating by call to store_typed_floating.
3163 (sh_sh4_register_convert_to_raw): Substitute call to
3164 deprecated_extract_floating by call to extract_typed_floating.
3165
31662003-07-16 Corinna Vinschen <vinschen@redhat.com>
3167
3168 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3169
31702003-07-16 Corinna Vinschen <vinschen@redhat.com>
3171
3172 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3173 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3174 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3175 as possible.
3176 (do_pseudo_register): Remove.
3177 (sh_push_dummy_code): New function.
3178 (sh64_store_struct_return): Rename from sh_store_struct_return.
3179 Only called for sh64 now.
3180 (sh_extract_struct_value_address): Regcache'ify.
3181 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3182 and accomodate new tasks.
3183 (sh64_push_return_address): Rename from sh_push_return_address.
3184 Only called for sh64 now.
3185 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3186 Regcache'ify.
3187 (sh3e_sh4_extract_return_value): Regcache'ify.
3188 (sh_default_store_return_value): Ditto.
3189 (sh3e_sh4_store_return_value): Ditto.
3190 (sh_default_register_byte): Remove.
3191 (sh_sh4_register_byte): Remove.
3192 (sh_default_register_raw_size): Remove.
3193 (sh_sh4_register_raw_size): Remove.
3194 (sh_register_virtual_size): Remove.
3195 (sh_sh3e_register_virtual_type): Remove.
3196 (sh_sh3e_register_type): New function.
3197 (sh_sh4_register_virtual_type): Remove.
3198 (sh_sh4_register_type): New function.
3199 (sh_default_register_virtual_type): Remove.
3200 (sh_default_register_type): New function.
3201 (do_fv_register_info): Add parameters to accomodate call from
3202 sh_print_registers_info.
3203 (do_dr_register_info): Ditto.
3204 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3205 Add parameters to accomodate call from sh_print_registers_info.
3206 (sh_do_fp_register): Ditto.
3207 (sh64_do_pseudo_register): Call do_dr_register_info,
3208 do_fv_register_info and sh_do_fp_register with default parameters.
3209 (sh_do_register): Add parameters to accomodate call from
3210 sh_print_registers_info.
3211 (sh_print_register): Ditto.
3212 (sh_print_registers_info): Rename from sh_do_registers_info.
3213 Add parameters to be used as gdbarch_print_registers_info
3214 implementation. Accomodate removed do_pseudo_register function
3215 pointer.
3216 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3217 function pointer. Call sh_print_register with default parameters.
3218 (sh64_do_registers_info): Call sh_print_registers_info instead of
3219 sh_do_registers_info.
3220 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3221 detection of deprecated vs. non-deprecated functionality.
3222 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3223 function pointer assignments by direct function calls.
3224
e8a89fe2
AC
32252003-07-15 Andrew Cagney <cagney@redhat.com>
3226
3227 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3228 (frame_register_unwind, create_new_frame): Ditto.
3229 (legacy_get_prev_frame, get_frame_type): Ditto.
3230 (get_frame_base_address): Use frame_base_find_by_frame.
3231 (get_frame_locals_address): Use frame_base_find_by_frame.
3232 (get_frame_args_address): Use frame_base_find_by_frame.
3233 * frame-base.h (frame_base_sniffer_ftype): Declare.
3234 (frame_base_append_sniffer): Declare.
3235 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3236 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3237 (frame_base_append_sniffer): New function.
3238 (frame_base_append_predicate): Add a NULL sniffer.
3239 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3240 (struct frame_base_table): Add "sniffer".
3241 (frame_base_free): Free the "sniffer" table.
3242 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3243 (frame_unwind_append_sniffer): Declare.
3244 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3245 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3246 (struct frame_unwind_table): Add "sniffer", delete "middle".
3247 (append_predicate): Add "sniffer" parameter, append the sniffer.
3248 (frame_unwind_init): Update append_predicate call.
3249 (frame_unwind_append_sniffer): New function.
3250 (frame_unwind_append_predicate): Update append_predicate call.
3251 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3252
0714963c
AC
32532003-07-15 Andrew Cagney <cagney@redhat.com>
3254
3255 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3256 before code inhibiting repeated unwind attempts. Add to
3257 commentary on that test's problems.
3258 * blockframe.c (inside_main_func): Look for "main" in the minimal
3259 symbol table.
3260 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3261 identical.
3262
d9170e22
AC
32632003-07-15 Andrew Cagney <cagney@redhat.com>
3264
3265 * complaints.c (struct explanation): Define.
3266 (struct complaints): Change type of "explanation" to "struct
3267 explanation".
3268 (symfile_explanations): Convert to a "struct explanation" table.
3269 (vcomplaint): Update.
3270
eba29c8c
ML
32712003-07-15 Michal Ludvig <mludvig@suse.cz>
3272
3273 * x86-64-linux-nat.c (regmap): Removed.
3274 (supply_gregset, fill_gregset): Call
3275 x86_64_linux_(fill,supply)_gregset functions.
3276 * x86-64-linux-tdep.c (USER_*): New defines.
3277 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3278 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3279 New functions.
3280 (fetch_core_registers): Ditto.
3281 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3282 * x86-64-linux-tdep.h: New file.
3283 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3284 and core-regset.o.
3285 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3286
68cc0bfb
MK
32872003-07-13 Mark Kettenis <kettenis@gnu.org>
3288
88a115f7
MK
3289 * x86-64-tdep.c (x86_64_store_return_value): Use
3290 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3291
68cc0bfb
MK
3292 * configure.host: Add x86_64-*-freebsd*.
3293 * configure.tgt: Add x86_64-*-freebsd*.
3294 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3295 * amd64fbsd-nat.c: New file.
3296 * amd64fbsd-tdep.c: New file.
3297 * config/i386/nm-fbsd64.h: New file.
3298 * config/i386/fbsd64.mh: New file.
3299 * config/i386/fbsd64.mt: New file.
3300
138e7be5
MK
33012003-07-11 Mark Kettenis <kettenis@gnu.org>
3302
3303 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3304 `sc_regs_offset' and `sc_fpregs_offset'.
3305 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3306 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3307 (alpha_sigtramp_register_address): Rewrite to use new members of
3308 `struct gdbarch_tdep'.
3309 (alpha_gdbarch_init): Initialize new members of struct
3310 gdbarch_tdep'.
3311 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3312 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3313 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3314 (alphafbsd_pc_in_sigtramp): Implement.
3315 (alphafbsd_sigtramp_offset): New function.
3316 (alphafbsd_sigcontext_addr): New function.
3317 (alphafbsd_init_abi): Initialize signal trampoline related members
3318 of `struct gdbarch_tdep'.
3319 (_initialize_alphafbsd_tdep): Add prototype.
3320
95303a68
TR
33212003-07-11 Theodore A. Roth <troth@openavr.org>
3322
ba292e4c
TR
3323 * Makefile.in (install-only): Quote sed expression when generating
3324 transformed_name.
95303a68 3325
6896c0c7
RH
33262003-07-11 Richard Henderson <rth@redhat.com>
3327
3328 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3329 * dwarf2-frame.c: Include complaints.h.
3330 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3331 variable initialization; return NULL on error.
3332 (decode_frame_entry): New.
3333
8edd5d01
AC
33342003-07-11 Andrew Cagney <cagney@redhat.com>
3335
c4a09524
AC
3336 * frame.h (frame_address_in_block): Delete declaration.
3337 * blockframe.c (frame_address_in_block): Delete function.
3338 (get_frame_block): Use get_frame_address_in_block.
3339 (block_innermost_frame): Ditto.
3340 * stack.c (print_frame, backtrace_command_1): Ditto.
3341
8edd5d01
AC
3342 * frame.h (get_frame_address_in_block): Declare.
3343 (frame_unwind_address_in_block): Declare.
3344 * frame.c (frame_unwind_address_in_block): New function.
3345 (get_frame_address_in_block): New function.
3346
f7968451
AC
33472003-07-10 Andrew Cagney <cagney@redhat.com>
3348
3349 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3350 pre-default. Note: re-generate has no effect.
3351
ae99b398
AC
33522003-07-10 Andrew Cagney <cagney@redhat.com>
3353
3354 * gdbarch.sh: When a variable, but not a function, compare against
3355 0. Fix problem in previous patch.
3356 * gdbarch.c: Re-generate.
3357
956ac328
AC
33582003-07-10 Andrew Cagney <cagney@redhat.com>
3359
3360 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3361 functions against NULL, not 0.
3362 * gdbarch.c: Re-generate.
3363
287c3240
FF
33642003-07-10 Fred Fish <fnf@ninemoons.com>
3365
3366 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3367 null string instead of a null pointer.
3368 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3369
32f63c4b
MS
33702003-07-09 Michael Snyder <msnyder@redhat.com>
3371
3372 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3373
402ecd56
MK
33742003-07-09 Mark Kettenis <kettenis@gnu.org>
3375
3376 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3377 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3378 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3379 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3380 * x86-64-tdep.c: ... from here.
3381
c481dac7
AS
33822003-07-09 Andreas Schwab <schwab@suse.de>
3383
3384 * m68k-tdep.h (enum struct_return): Define.
3385 (struct gdbarch_tdep): Add struct_return.
3386 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3387 bytes are padded to the right, not to the left. Pass struct value
3388 address in register %a1, not on stack.
3389 (m68k_use_struct_convention): New function.
3390 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3391 struct_return in tdep to pcc_struct_return.
3392 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3393 reg_struct_return.
3394
64176fa3
JB
33952003-07-09 Joel Brobecker <brobecker@gnat.com>
3396
3397 * somread.c (som_symfile_offsets): Fix compilation error.
3398
96a4ee76
AC
33992003-07-09 Andrew Cagney <cagney@redhat.com>
3400
3401 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3402 Add comments about the checks.
3403
1517c6d1
AC
34042003-07-08 Andrew Cagney <cagney@redhat.com>
3405
3406 * Makefile.in: Make dependency section headers consistent.
3407 (config_h): Move to $BUILD headers section.
3408 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3409 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3410 (ada-exp.tab.c): Move to YACC/LEX section.
3411 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3412 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3413
dc5dd1eb
KW
34142003-07-08 Kris Warkentin <kewarken@qnx.com>
3415
3416 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3417 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3418 of strerror with safe_strerror, use ISO C function definitions,
3419 and replace instances of sprintf with snprintf.
dc5dd1eb 3420
612dde91
AC
34212003-07-07 Andrew Cagney <cagney@redhat.com>
3422
3423 * frame.c (get_prev_frame): Enable check for identical frames.
3424 Update comments. Update error messages.
3425
492c11d3
JB
34262003-07-07 Joel Brobecker <brobecker@gnat.com>
3427
3428 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3429
376a5a49
JB
34302003-07-07 Joel Brobecker <brobecker@gnat.com>
3431
3432 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3433 sort_symtab_syms, no longer necessary.
3434
22b4a9ad
JB
34352003-07-07 Joel Brobecker <brobecker@gnat.com>
3436
3437 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3438
5bbcb741
JB
34392003-07-07 Joel Brobecker <brobecker@gnat.com>
3440
3441 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3442 (mips_register_byte): Likewise.
3443
c139e7d9
DJ
34442003-07-07 Daniel Jacobowitz <drow@mvista.com>
3445
3446 * Makefile.in (sparc_tdep_h): New.
3447 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3448 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3449 * sparc-linux-nat.c: Include "sparc-tdep.h".
3450 * sparc-nat.c: Likewise.
3451 * sparc-tdep.c: Likewise.
3452 * sparc64nbsd-nat.c: Likewise.
3453 * sparcnbsd-nat.c: Likewise.
3454 * sparcnbsd-tdep.c: Likewise.
3455 * sparc-tdep.h: New file.
3456 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3457 and sparc_npc_regnum.
3458
fd8f87c5
DJ
34592003-07-07 Daniel Jacobowitz <drow@mvista.com>
3460
3461 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3462 (mips_linux_cannot_store_register): List supported instead of
3463 unsupported registers.
3464
13adf674
DJ
34652003-07-07 Daniel Jacobowitz <drow@mvista.com>
3466
3467 * disasm.c (dump_insns): Separate instructions from addresses.
3468
8de307e0
AS
34692003-07-07 Andreas Schwab <schwab@suse.de>
3470
3471 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3472 dependencies.
3473 * m68k-tdep.c (NUM_FREGS): Delete.
3474 (SIG_PC_FP_OFFSET): Delete.
3475 (TARGET_M68K): Delete.
3476 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3477 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3478 P_MOVEL_SP, P_MOVEML_SP): Define.
3479 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3480 P_TRAP): Delete.
3481 (m68k_register_raw_size): Delete.
3482 (m68k_register_virtual_size): Delete.
3483 (m68k_register_type): Renamed from m68k_register_virtual_type and
3484 add gdbarch argument.
3485 (m68k_store_struct_return): Delete.
3486 (m68k_deprecated_extract_return_value): Delete.
3487 (m68k_deprecated_extract_struct_value_address): Delete.
3488 (m68k_frame_chain): Delete.
3489 (m68k_frame_saved_pc): Delete.
3490 (m68k_fix_call_dummy): Delete.
3491 (m68k_push_dummy_frame): Delete.
3492 (m68k_pop_frame): Delete.
3493 (m68k_extract_return_value): New function.
3494 (m68k_store_return_value): Rewrite using regcache.
3495 (m68k_extract_struct_value_address): Rewrite using regcache.
3496 (m68k_push_dummy_call): New function.
3497 (struct m68k_frame_cache): Define.
3498 (m68k_alloc_frame_cache): New function.
3499 (m68k_analyze_frame_setup): New function.
3500 (m68k_analyze_register_saves): New function.
3501 (m68k_analyze_prologue): New function.
3502 (m68k_skip_prologue): Rewrite using above functions.
3503 (m68k_unwind_pc): New function.
3504 (m68k_frame_cache): New function.
3505 (m68k_frame_this_id): New function.
3506 (m68k_frame_prev_register): New function.
3507 (m68k_frame_unwind): New variable.
3508 (m68k_frame_p): New function.
3509 (m68k_sigtramp_frame_cache): New function.
3510 (m68k_sigtramp_frame_this_id): New function.
3511 (m68k_sigtramp_frame_prev_register): New function.
3512 (m68k_sigtramp_frame_unwind): New variable.
3513 (m68k_sigtramp_frame_p): New function.
3514 (m68k_frame_base_address): New function.
3515 (m68k_frame_base): New function.
3516 (m68k_unwind_dummy_id): New function.
3517 (fill_gregset): Use regcache_collect.
3518 (fill_fpregset): Likewise.
3519 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3520 defined.
3521 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3522 deprecated_init_frame_pc, deprecated_store_struct_return,
3523 deprecated_extract_return_value, deprecated_store_return_value,
3524 deprecated_frame_chain, deprecated_frame_saved_pc,
3525 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3526 deprecated_register_virtual_size,
3527 deprecated_max_register_raw_size,
3528 deprecated_max_register_virtual_size,
3529 deprecated_register_virtual_type, deprecated_register_size,
3530 deprecated_register_byte, deprecated_register_bytes,
3531 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3532 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3533 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3534 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3535 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3536 deprecated_push_dummy_frame, deprecated_pop_frame,
3537 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3538 only if SYSCALL_TRAP is defined. Set extract_return_value,
3539 store_return_value, extract_struct_value_address, register_type,
3540 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3541 predicates.
3542 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3543 M68K_MAX_REGISTER_SIZE): Define.
3544 (struct m68k_sigtramp_info): Define.
3545 (struct gdbarch_tdep): Add get_sigtramp_info.
3546 * m68klinux-nat.c (fetch_register): Use register_size instead of
3547 REGISTER_RAW_SIZE. Don't put assignment in if.
3548 (store_register): Likewise.
3549 (fetch_inferior_registers): Likewise.
3550 (store_inferior_registers): Likewise.
3551 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3552 (m68k_linux_frame_saved_pc): Delete.
3553 (m68k_linux_sigcontext_reg_offset,
3554 m68k_linux_ucontext_reg_offset): Define.
3555 (m68k_linux_get_sigtramp_info): New function.
3556 (m68k_linux_extract_return_value): Rewrite using regcache.
3557 (m68k_linux_store_return_value): Likewise.
3558 (m68k_linux_extract_struct_value_address): Likewise.
3559 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3560 Don't set deprecated_frame_saved_pc,
3561 deprecated_extract_return_value, deprecated_store_return_value,
3562 deprecated_extract_struct_value_address. Set
3563 extract_return_value, store_return_value,
3564 extract_struct_value_address.
3565
eb8bc282
AC
35662003-07-07 Andrew Cagney <cagney@redhat.com>
3567
3568 * expprint.c: Include "user-regs.h" instead of "frame.h".
3569 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3570 frame_map_regnum_to_name.
3571 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3572 (frame_map_name_to_regnum): Simplify, call
3573 user_reg_map_name_to_regnum.
3574 (frame_map_regnum_to_name): Simplify, call
3575 user_reg_map_regnum_to_name.
3576 (frame_register_unwind): Update.
3577 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3578 (_initialize_frame_reg): Call user_reg_add_builtin.
3579 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3580 (value_of_register): Use value_of_user_reg.
3581 * eval.c (evaluate_subexp_standard): Update.
3582 * parse.c (write_dollar_variable): Update.
3583 * d10v-tdep.c (d10v_print_registers_info): Update.
3584 * infcmd.c (registers_info): Update.
3585 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3586 (builtin_regs_h): Delete macro.
3587 (user_regs_h): Define.
3588 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3589 (builtin-regs.o): Delete target.
3590 (user-regs.o): Specify dependencies.
3591 (expprint.o): Update dependencies.
3592 (findvar.o): Update dependencies.
3593 (frame.o): Update dependencies.
3594 (std-regs.o): Update dependencies.
3595
9f476a01
CF
35962003-07-06 Christopher Faylor <cgf@redhat.com>
3597
3598 * win32-nat.c (solib_symbols_add): Use one variable for all section
3599 address stuff. Pass variable rather than address of variable to
3600 safe_symbol_file_add.
3601
a731b831
AS
36022003-07-06 Andreas Schwab <schwab@suse.de>
3603
3604 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3605
9f83329d
JB
36062003-07-04 Joel Brobecker <brobecker@gnat.com>
3607
3608 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3609
27e28cc5
KW
36102003-07-04 Kris Warkentin <kewarken@qnx.com>
3611
3612 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3613
36142003-07-04 Kris Warkentin <kewarken@qnx.com>
3615
3616 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3617 * config/i386/nto.mh: New file.
3618 * config/i386/nm-nto.h: New file.
3619 * configure.host: Add i[3456]86-*-nto*.
3620
100f2e98
JB
36212003-07-03 Joel Brobecker <brobecker@gnat.com>
3622
3623 * remote-vx.c (vx_add_symbols): Fix compilation error.
3624
e23457df
AC
36252003-07-03 Andrew Cagney <cagney@redhat.com>
3626
3627 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3628 * gdbarch.h, gdbarch.c: Re-generate.
3629 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3630 (legacy_register_name): Declare.
3631 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3632 (REGISTER_NAME): Define.
3633 * sparc-tdep.c (legacy_register_name): New function.
3634 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3635 (REGISTER_NAME): Define.
3636 (hppa64_register_name): Declare.
3637 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3638 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3639 (hppa64_register_name): New function.
3640 (hppa_register_name): New function.
3641 * arch-utils.c (legacy_register_name): Delete.
3642 * arch-utils.h (legacy_register_name): Delete.
3643
38caaeec
DJ
36442003-07-03 Daniel Jacobowitz <drow@mvista.com>
3645
3646 * cli/cli-interp.c (cli_interpreter_resume): Update the
3647 cli_uiout's stream to gdb_stdout.
3648
dadd712e
AC
36492003-07-03 Andrew Cagney <cagney@redhat.com>
3650
3651 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3652 predicate.
3653 * gdbarch.h, gdbarch.c: Re-generate.
3654 * regcache.c (init_regcache_descr): Use legacy code when either
3655 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3656
c7f1390e
DJ
36572003-07-02 Daniel Jacobowitz <drow@mvista.com>
3658
3659 * NEWS: Move "set logging" entry into GDB 6.0 section.
3660
4bc8c588
JB
36612003-07-02 Jim Blandy <jimb@redhat.com>
3662
a9dd42f1
JB
3663 * s390-tdep.c (struct frame_extra_info): new member:
3664 'stack_bought_valid'.
3665 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3666 initialize fextra_info->stack_bought.
3667 (s390_frameless_function_invocation): Don't trust the value of
3668 fextra_info_ptr->stack_bought unless
3669 fextra_info->stack_bought_valid is set.
3670
4bc8c588
JB
3671 New S390 prologue analyzer.
3672 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3673 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3674 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3675 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3676 compute_x_addr, s390_on_stack, s390_store,
3677 s390_get_signal_frame_info): New functions.
3678 (S390_NUM_SPILL_SLOTS): New macro.
3679 (s390_get_frame_info): Rewritten.
3680 (is_arg_reg): Deleted.
3681
3682 Break out the decoding of S/390 instructions into separate
3683 functions, to make it more legible, and easier to check
3684 against the spec.
3685 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3686 is_rx, is_rxe): New functions.
3687 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3688 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3689 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3690 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3691 enums for opcode values. (Is this an improvement?)
3692
fd13a04a
AC
36932003-07-02 Andrew Cagney <cagney@redhat.com>
3694
3695 * i386-tdep.c: Revert change committed as part of trad-frame code
3696 below.
3697
3f8091c1
DJ
36982003-07-02 Daniel Jacobowitz <drow@mvista.com>
3699
3700 * breakpoint.c (insert_catchpoint): Make static.
3701
8dd5115e
AS
37022003-07-02 Andreas Schwab <schwab@suse.de>
3703
3704 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3705 former ia64_push_arguments and ia64_push_return_address, and use
3706 regcache functions instead of read/write_register.
3707 (ia64_gdbarch_init): Set push_dummy_call instead of
3708 deprecated_push_arguments and deprecated_push_return_address.
3709
a2229c23
AJ
37102003-07-01 Andreas Jaeger <aj@suse.de>
3711
3712 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3713 before the call.
3714 Set %rax only to number of SSE registers used.
3715
3b3850e8
AC
37162003-07-01 Andrew Cagney <cagney@redhat.com>
3717
3718 * trad-frame.h: Update comments, a -1 .addr is reserved.
3719 (trad_frame_value_p, trad_frame_addr_p): Declare.
3720 (trad_frame_reg_p): Declare.
3721 (trad_frame_set_value): Rename trad_frame_register_value.
3722 (trad_frame_set_unknown): Declare.
3723 * trad-frame.c (trad_frame_realreg_p): New function.
3724 (trad_frame_addr_p, trad_frame_value_p): New function.
3725 (trad_frame_set_unknown): New function.
3726 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3727 (trad_frame_prev_register): Use trad_frame_realreg_p,
3728 trad_frame_addr_p and trad_frame_value_p.
3729 (trad_frame_set_value): Rename trad_frame_register_value.
3730 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3731 and trad_frame_set_value.
a2229c23 3732
4d819d0e
JB
37332003-06-30 Jim Blandy <jimb@redhat.com>
3734
3735 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3736 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3737 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3738 for 16 registers, and then 32 more bytes.
3739 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3740 New macros.
3741 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3742 Move up in the file, since it's now used by is_simple_arg.
3743 (is_simple_arg): Don't assume registers are four bytes long.
3744 Exclude all double arguments. Extended floats are not simple
3745 args.
3746 (is_power_of_two): New function.
3747 (pass_by_copy_ref): Call is_power_of_two, and check that the
3748 length fits in a register, rather than listing all the acceptable
3749 sizes. Extended floats are not passed by reference.
3750 (s390_push_arguments): Don't assume registers are four bytes long.
3751 Reserve an argument register to point to the buffer for structures
3752 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3753 S390_STACK_FRAME_OVERHEAD.
3754
1ad828f1
AS
37552003-06-30 Andreas Schwab <schwab@suse.de>
3756
3757 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3758 format error message.
3759
39b00981
JB
37602003-06-30 Joel Brobecker <brobecker@gnat.com>
3761
3762 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3763
b2a7f303
DC
37642003-06-30 David Carlton <carlton@kealia.com>
3765
3766 Band-aid for PR c++/1245.
3767 * Makefile.in (cp-support.o): Depend on complaints_h.
3768 * cp-support.c: Include complaints.h. Add declaration for
3769 find_last_component.
3770 (cp_find_first_component): Separate code into
3771 cp_find_first_component_aux.
3772 (cp_find_first_component_aux): Call demangled_name_complaint.
3773 (demangled_name_complaint): New.
3774
a257b5bb
AC
37752003-06-30 Andrew Cagney <cagney@redhat.com>
3776
3777 * remote.c (remote_write_bytes): Explicitly compute and then use
3778 the payload size. Update comments to reflect. Fixes problem of
3779 GDB not sending small packets as found by Fred Fish.
3780
0a2cfde4
AC
37812003-06-30 Andrew Cagney <cagney@redhat.com>
3782
3783 * remote.c (remote_async_wait): Fix -Wformat problem.
3784
3fcb8548
AC
37852003-06-29 Andrew Cagney <cagney@redhat.com>
3786
3787 * remote.c (remote_wait): Call error, and not warning, when the
3788 packet is corrupt.
3789 (remote_async_wait): Ditto.
3790
9f9970a3
DJ
37912003-06-29 Daniel Jacobowitz <drow@mvista.com>
3792
3793 * sparc-tdep.c (sparc_y_regnum): Make external again.
3794
83a8ccca
DJ
37952003-06-29 Daniel Jacobowitz <drow@mvista.com>
3796
3797 * cli/cli-logging.c (pop_output_files): Add void to function
3798 definition.
3799
d2cf594a
AC
38002003-06-29 Andrew Cagney <cagney@redhat.com>
3801
3802 * frame.c (frame_register_unwind): Use unsigned char when dumping
3803 the buffer contents.
3804
0fac0b41
DJ
38052003-06-28 Daniel Jacobowitz <drow@mvista.com>
3806
3807 * cli/cli-logging.c: New file.
3808 * cli-out.c (struct ui_out_data): Add original_stream.
3809 (cli_redirect): New function.
3810 (cli_ui_out_impl): Add cli_redirect.
3811 (cli_out_new): Initialize original_stream.
3812 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3813 (uo_redirect, ui_out_redirect): New.
3814 * ui-out.h (struct ui_out_impl): Add redirect member.
3815 (redirect_ftype): New.
3816 (ui_out_redirect): Add prototype.
3817 * Makefile.in: Add rules for cli-logging.c.
3818 * NEWS: Mention "set logging".
3819
88a07d7c
EZ
38202003-06-27 Elena Zannoni <ezannoni@redhat.com>
3821
3822 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3823
4eb58876
AC
38242003-06-27 Andrew Cagney <cagney@redhat.com>
3825
3826 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3827 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3828 * avr-tdep.c (avr_call_dummy_address): Delete function.
3829 (avr_gdbarch_init): Do not set call_dummy_address.
3830
1549f619
EZ
38312003-06-27 Elena Zannoni <ezannoni@redhat.com>
3832
3833 * symfile.c (syms_from_objfile): Move variables to inner block.
3834 Move the checks for the non-mainline case a bit earlier to avoid
3835 doing some useless computations.
3836
3cb3398d
EZ
38372003-06-27 Elena Zannoni <ezannoni@redhat.com>
3838
3839 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3840
3799ccc6
EZ
38412003-06-26 Elena Zannoni <ezannoni@redhat.com>
3842
3843 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3844 sections.
3845
ce1f6491
MC
38462003-06-26 Michael Chastain <mec@shout.net>
3847
3848 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3849 gdb/testsuite/gdb.c++/pr-1210.exp.
3850
d958dfd0
AC
38512003-06-26 Andrew Cagney <cagney@redhat.com>
3852
3853 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3854 altivec_expression.h and altivec_registers.h.
3855
d31431ed
AC
38562003-06-26 Andrew Cagney <cagney@redhat.com>
3857
3858 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3859 info->mach when MIPS16. Patch suggested by Fred Fish.
3860
714b1282
AC
38612003-06-26 Andrew Cagney <cagney@redhat.com>
3862
3863 * utils.c (internal_vproblem): Print the problem to a reason
3864 buffer and then pass to query. Make the msg variable more local.
3865
42efa47a
AC
38662003-06-26 Andrew Cagney <cagney@redhat.com>
3867
3868 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3869 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3870 * gdbarch.h, gdbarch.c: Re-generate.
3871 * frame-base.c (default_frame_args_address): Update. Use
3872 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3873 not available.
3874 (default_frame_locals_address): Ditto for
3875 DEPRECATED_FRAME_LOCALS_ADDRESS.
3876 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3877 (vax_frame_num_args): Update.
3878 (vax_gdbarch_init): Update.
3879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3880 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3881 * mcore-tdep.c (mcore_gdbarch_init): Update.
3882 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3883 * ia64-tdep.c (ia64_gdbarch_init): Update.
3884 * symtab.h (address_class): Update comments.
3885 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3886 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3887 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3888 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3889 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3890 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3891 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3892 * alpha-mdebug-tdep.c: Update.
3893 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3894
8ffd9b1b
AJ
38952003-06-26 Andreas Jaeger <aj@suse.de>
3896
3897 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3898 of SSE registers so that varargs functions work. Rework handling
3899 of passing arguments on the stack.
3900 (x86_64_store_return_value): Return double and float values in SSE
3901 register.
3902
e8ac10a6
MC
39032003-06-24 Michael Chastain <mec@shout.net>
3904
3905 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3906 the "constructor breakpoints ignored" bug.
3907
986af8e6
DC
39082003-06-25 David Carlton <carlton@kealia.com>
3909
3910 * MAINTAINERS: Update e-mail address.
3911
d64558a5
JB
39122003-06-24 Jim Blandy <jimb@redhat.com>
3913
e538d2d7
JB
3914 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3915
02631ec0
JB
3916 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3917 function.
3918 (ppc_linux_init_abi): Register it as the
3919 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3920
e716d87a
JB
3921 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3922 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3923 method.
3924
d64558a5
JB
3925 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3926 (ppc64_standard_linkage_target): Use it.
3927
449a5da4
AC
39282003-06-23 Andrew Cagney <cagney@redhat.com>
3929
3930 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3931 for 0 "int0" and 4 "int32" sized registers.
3932 * gdbtypes.c (builtin_type_int0): Define.
3933 (build_gdbtypes): Initialize builtin_type_int0.
3934 * gdbtypes.h (builtin_type_int0): Declare.
3935
b2a02dda
SC
39362003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3937
3938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3939 as characters are unsigned.
3940
fba3138e
DJ
39412003-06-22 Daniel Jacobowitz <drow@mvista.com>
3942
3943 PR gdb/1179
3944 * dwarfread.c (struct_type): Skip static fields without crashing.
3945
f6c8180b
AC
39462003-06-22 Andrew Cagney <cagney@redhat.com>
3947
3948 GDB 6.0 branch created.
f2c06f52
AC
3949 * README: Update.
3950 * PROBLEMS: Update. Empty.
3951 * NEWS: Update.
f6c8180b 3952
ae822768
DJ
39532003-06-22 Daniel Jacobowitz <drow@mvista.com>
3954
3955 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3956 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3957
261de166
AC
39582003-06-22 Andrew Cagney <cagney@redhat.com>
3959
3960 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3961 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3962 Velikov.
3963
30e94205
DJ
39642003-06-22 Daniel Jacobowitz <drow@mvista.com>
3965
3966 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3967 compilers.
3968
9e14d721
DJ
39692003-06-21 Daniel Jacobowitz <drow@mvista.com>
3970
3971 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3972 argument of val_print.
3973 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3974 to the address argument of baseclass_offset or target_read_memory.
3975 Do add it to the argument of cp_print_value_fields.
3976
a4b8ebc8
AC
39772003-06-21 Andrew Cagney <cagney@redhat.com>
3978
3979 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3980 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3981 instead of 0..NUM_REGS.
3982 (mips_register_reggroup_p): New function.
3983 (mips_pseudo_register_write): New function.
3984 (mips_pseudo_register_read): New function.
3985 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3986 based on the register's type.
3987 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3988 cooked.
3989 (mips_get_saved_register): Simplify. Assert that REGNO is a
3990 pseudo / cooked.
3991 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3992 (mips_register_type): Replace mips_register_virtual_type. Map
3993 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3994 when available.
3995 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3996 that the register is cooked / virtual.
3997 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3998 Only get the extra info when needed.
3999 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4000 (mips32_heuristic_proc_desc): Fetch the cooked register.
4001 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4002 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4003 (mips_print_register): Use gdbarch_register_type, instead of
4004 REGISTER_VIRTUAL_TYPE.
4005 (print_gp_register_row): Use gdbarch_register_type, instead of
4006 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4007 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4008 Print the pseudo / cooked registers.
4009 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4010 Print the pseudo / cooked registers.
4011 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4012 REG_NUM is pseudo / cooked.
4013 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4014 (mips_n32n64_xfer_return_value): Ditto.
4015 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4016 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4017 (mips_register_sim_regno): New function.
4018 (mips_gdbarch_init): Set deprecated_register_byte,
4019 register_group_p, pseudo_register_write, pseudo_register_read,
4020 register_sim_regno, and num_pseudo_regs. Set register_type,
4021 instead of register_virtual_type.
4022 * Makefile.in (mips-tdep.o): Update dependencies.
4023 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4024 REGISTER_VIRTUAL_TYPE.
4025 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4026 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4027 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4028 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4029 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4030
325ed089
DJ
40312003-06-21 Daniel Jacobowitz <drow@mvista.com>
4032
4033 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4034 * cli/cli-cmds.c: Include "gdb_vfork.h".
4035 (shell_escape): Use vfork.
4036
f0e7d0e8
AC
40372003-06-21 Andrew Cagney <cagney@redhat.com>
4038
c57bb9fa
AC
4039 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4040 32 bit floating-point register saves.
4041
6e51443a
AC
4042 * frame.h (deprecated_unwind_get_saved_register): Delete.
4043 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4044 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4045 and deprecated_get_next_frame_hack instead of
4046 deprecated_unwind_get_saved_register.
4047
ed183c7c
AC
4048 * mips-tdep.c (mips_dump_tdep): Do not print
4049 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4050
f0e7d0e8
AC
4051 * frame.c (get_frame_register): New function.
4052 (frame_unwind_register_signed): New function.
4053 (get_frame_register_signed): New function.
4054 (frame_unwind_register_unsigned): New function.
4055 (get_frame_register_unsigned): New function.
4056 * frame.h: Add comments on naming schema.
4057 (get_frame_register, frame_unwind_register_signed): Declare.
4058 (get_frame_register_signed, get_frame_register_signed): Declare.
4059 (frame_unwind_register_unsigned): Declare.
4060 (get_frame_register_unsigned): Declare.
4061
2224d941
TR
40622003-06-20 Theodore A. Roth <troth@openavr.org>
4063
4064 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4065
8619218d
TR
40662003-06-20 Theodore A. Roth <troth@openavr.org>
4067
4068 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4069 (avr_read_sp): Ditto.
4070
0b1b50c0
DJ
40712003-06-20 Daniel Jacobowitz <drow@mvista.com>
4072
4073 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4074 * config/arm/nm-linux.h: Likewise.
4075 * config/arm/tm-linux.h: Likewise.
4076 * config/ia64/nm-linux.h: Likewise.
4077 * config/ia64/tm-ia64.h: Likewise.
4078 * config/s390/tm-linux.h: Likewise.
4079 * config/s390/tm-s390.h: Likewise.
4080 * s390-nat.c: Likewise.
4081 * s390-tdep.c: Likewise.
4082
4083 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4084 * config/ia64/linux.mt: Likewise.
4085 * config/m68k/linux.mh: Likewise.
4086 * config/mips/linux.mt: Likewise.
4087 * config/powerpc/linux.mh: Likewise.
4088 * config/sh/linux.mt: Likewise.
4089
c8c18e65
KW
40902003-06-19 Kris Warkentin <kewarken@qnx.com>
4091
4092 * solib.c (solib_open): Change tests for whether to search
4093 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4094 comments.
4095
dcccef2e
TR
40962003-06-19 Theodore A. Roth <troth@openavr.org>
4097
4098 * avr-tdep.c (avr_frame_address): Delete function.
4099 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4100 set_gdbarch_frame_args_address.
4101
5861a190
AC
41022003-06-19 Andrew Cagney <cagney@redhat.com>
4103
4104 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4105 (REGISTER_CONVERT_FROM_TYPE): Delete.
4106 (mips_register_convert_to_type): Delete declaration.
4107 (mips_register_convert_from_type): Delete declaration.
4108 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4109 kernel/.
4110
0274a8ce
MS
41112003-06-19 Michael Snyder <msnyder@redhat.com>
4112
4113 * linux-nat.h: New file.
4114 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4115 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4116 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4117 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4118 (linux_make_note_section): Iterate over lwps instead of threads.
4119 (linux_do_thread_registers): Use lwp instead of merged pid.
4120 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4121 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4122 Add dependency on linux_nat_h.
4123
adf5f719
TR
41242003-06-19 Theodore A. Roth <troth@openavr.org>
4125
4126 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4127
6766a268
DJ
41282003-06-19 Daniel Jacobowitz <drow@mvista.com>
4129
4130 * varobj.c (get_type, get_target_type): Use check_typedef.
4131
1171114a
DJ
41322003-06-19 Daniel Jacobowitz <drow@mvista.com>
4133
4134 * breakpoint.c (insert_catchpoint): Call internal_error.
4135
adcf68a2
TR
41362003-06-19 Theodore A. Roth <troth@openavr.org>
4137
4138 * avr-tdep.c (avr_push_dummy_code): Delete function.
4139 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4140
ea67f13b
DJ
41412003-06-19 Daniel Jacobowitz <drow@mvista.com>
4142
4143 * arch-utils.c (default_prepare_to_proceed): Remove.
4144 (generic_prepare_to_proceed): Remove.
4145 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4146 (generic_prepare_to_proceed): Remove prototype.
4147 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4148 * gdbarch.c: Regenerate.
4149 * gdbarch.h: Regenerate.
4150 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4151 * hppah-nat.c (hppa_switched_threads): Remove.
4152 * infrun.c (prepare_to_proceed): New static function, copied from
4153 generic_prepare_to_proceed. Remove select_it argument.
4154 (proceed): Call prepare_to_proceed.
4155 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4156 variables.
4157 (ptrace_wait): Don't set the removed variables.
4158 (hppa_switched_threads): Remove.
4159 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4160 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4161 (lin_lwp_prepare_to_proceed): Remove prototype.
4162 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4163 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4164
4add8633
TR
41652003-06-18 Theodore A. Roth <troth@openavr.org>
4166
4167 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4168 trad-frame.h.
4169 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4170 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4171 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4172 (AVR_PROLOGUE_*): Enumerate prologue types.
4173 (struct frame_extra_info): Remove.
4174 (struct avr_unwind_cache): Define.
4175 (avr_write_sp): Delete function.
4176 (avr_read_fp): Ditto.
4177 (avr_init_extra_frame_info): Ditto.
4178 (avr_pop_frame): Ditto.
4179 (avr_frame_saved_pc): Ditto.
4180 (avr_saved_pc_after_call): Ditto.
4181 (avr_push_return_address): Ditto.
4182 (avr_frame_chain): Ditto.
4183 (avr_store_struct_return): Ditto.
4184 (avr_push_arguments): Ditto.
4185 (avr_scan_prologue): Update comments. Changed to set up the info for
4186 cache unwinding. Now returns end of prologue PC.
4187 (avr_skip_prologue): Better handling of functions lacking a prologue
4188 by using avr_scan_prologue.
4189 (avr_scan_arg_moves): New function.
4190 (avr_saved_regs_unwinder): Ditto.
4191 (avr_frame_unwind_cache): Ditto.
4192 (avr_unwind_pc): Ditto.
4193 (avr_frame_this_id): Ditto.
4194 (avr_frame_prev_register): Ditto.
4195 (avr_frame_p): Ditto.
4196 (avr_frame_base_address ): Ditto.
4197 (avr_unwind_dummy_id): Ditto.
4198 (avr_push_dummy_code): Ditto.
4199 (push_stack_item): Ditto.
4200 (pop_stack_item): Ditto.
4201 (avr_push_dummy_call): Ditto.
4202 (struct stack_item): Define.
4203 (avr_frame_unwind): Declare structure.
4204 (avr_frame_base): Ditto.
4205 (avr_gdbarch_init): Remove calls to
4206 set_gdbarch_deprecated_init_frame_pc,
4207 set_gdbarch_deprecated_target_read_fp,
4208 set_gdbarch_deprecated_dummy_write_sp,
4209 set_gdbarch_deprecated_fp_regnum,
4210 set_gdbarch_deprecated_push_arguments,
4211 set_gdbarch_deprecated_push_return_address,
4212 set_gdbarch_deprecated_pop_frame,
4213 set_gdbarch_deprecated_store_struct_return,
4214 set_gdbarch_deprecated_frame_init_saved_regs,
4215 set_gdbarch_deprecated_init_extra_frame_info,
4216 set_gdbarch_deprecated_frame_chain,
4217 set_gdbarch_deprecated_frame_saved_pc,
4218 set_gdbarch_deprecated_saved_pc_after_call.
4219 Add calls to set_gdbarch_push_dummy_call,
4220 set_gdbarch_push_dummy_code,
4221 frame_unwind_append_predicate,
4222 frame_base_set_default,
4223 set_gdbarch_unwind_dummy_id,
4224 set_gdbarch_unwind_pc.
4225 Wrap a long line.
4226
7be04a68
MS
42272003-06-18 Corinna Vinschen <vinschen@redhat.com>
4228
4229 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4230 registers for H8/300S.
4231 (h8300_print_registers_info): Ditto.
8ffd9b1b 4232 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4233
ae087d01
DJ
42342003-06-18 Daniel Jacobowitz <drow@mvista.com>
4235
4236 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4237 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4238 (lin_lwp_wait): Likewise. Update comments.
4239 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4240 (pull_pid_from_list, linux_record_stopped_pid): New.
4241
07d8f827
SC
42422003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4243
4244 * ada-lang.c (scan_discrim_bound): Name first argument.
4245 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4246 declared by ALL_BLOCK_SYMBOLS.
4247
7cb47b14
SC
42482003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4249
4250 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4251 ("regcache.h"): Include it.
4252 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4253
6ad8ae5c
DJ
42542003-06-17 Daniel Jacobowitz <drow@mvista.com>
4255
4256 * NEWS: Mention gdbserver detach change and "disconnect" command.
4257 * infcmd.c (disconnect_command): New function.
4258 (_initialize_infcmd): Add ``disconnect'' command.
4259 * remote.c (remote_async_detach): Delete.
4260 (remote_detach): Merge remote_async_detach.
4261 (remote_disconnect): New.
4262 (init_remote_ops): Set to_disconnect.
4263 (init_remote_cisco_ops): Likewise.
4264 (init_remote_async_ops): Likewise. Use remote_detach.
4265 * target.c (cleanup_target): Default to_disconnect.
4266 (update_current_target): Inherit to_disconnect.
4267 (target_disconnect, debug_to_disconnect): New functions.
4268 (setup_target_debug): Set to_disconnect.
4269 * target.h (struct target_ops): Add to_disconnect.
4270 (target_disconnect): Add prototype.
4271
687595f9
DJ
42722003-06-17 Daniel Jacobowitz <drow@mvista.com>
4273
4274 * breakpoint.c (insert_catchpoint): New function.
4275 (insert_breakpoints): Use catch_exceptions to call
4276 insert_catchpoint. Disable catchpoints if they fail to insert.
4277
29239a8f
DJ
42782003-06-17 Daniel Jacobowitz <drow@mvista.com>
4279
4280 * symfile.c (reread_symbols): Clear sym_private.
4281
2cdf3c63
AC
42822003-06-17 Andrew Cagney <cagney@redhat.com>
4283
4284 * trad-frame.h (struct frame_info): Add opaque declaration.
4285 * remote-fileio.h (struct cmd_list_element): Add opaque
4286 declaration.
4287 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4288 comments.
4289
cf0e1e0d
DJ
42902003-06-17 Daniel Jacobowitz <drow@mvista.com>
4291
4292 * remote.c (remote_prepare_to_store): Replace call to
4293 deprecated_read_register_bytes with multiple regcache_raw_read
4294 calls.
4295
192cdb19
KW
42962003-06-17 Kris Warkentin <kewarken@qnx.com>
4297
4298 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4299 (nto_find_and_open_solib): Likewise.
4300 (nto_init_solib_absolute_prefix): Likewise.
4301 (_initialize_nto_tdep): Fix indentation.
4302
89929b45
KW
43032003-06-17 Kris Warkentin <kewarken@qnx.com>
4304
4305 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4306
46019f27
KW
43072003-06-17 Kris Warkentin <kewarken@qnx.com>
4308
4309 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4310
1a38736e
JB
43112003-06-17 Jim Blandy <jimb@redhat.com>
4312
4313 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4314
3605c34a
TR
43152003-06-16 Theodore A. Roth <troth@openavr.org>
4316
4317 * avr-tdep.c (avr_extract_return_value): New function.
4318 (avr_gdbarch_init): Set extract_return_value method.
4319
870b3035
AC
43202003-06-16 Andrew Cagney <cagney@redhat.com>
4321
4322 * frame.h (deprecated_get_next_frame_hack): Declare.
4323 * frame.c (legacy_saved_regs_prev_register): Only require
4324 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4325 there are always saved regs.
4326 (deprecated_generic_get_saved_register): Do not require
4327 DEPRECATED_FRAME_INIT_SAVED_REGS.
4328 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4329 use frame ID unwind instead.
4330 (deprecated_get_next_frame_hack): New function.
4331
63d47a7d
CV
43322003-06-16 Corinna Vinschen <vinschen@redhat.com>
4333
4334 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4335 (h8300_push_dummy_call): ...this function. Some minor optimization.
4336 (h8300_push_return_address): Remove.
4337 (h8300_gdbarch_init): Remove calls to
4338 set_gdbarch_deprecated_dummy_write_sp,
4339 set_gdbarch_deprecated_push_arguments and
4340 set_gdbarch_deprecated_push_return_address.
4341 Add call to set_gdbarch_push_dummy_call.
4342
4bb1dc5e
CV
43432003-06-16 Corinna Vinschen <vinschen@redhat.com>
4344
4345 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4346 (E_PSEUDO_EXR_REGNUM): Ditto.
4347 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4348 registers into safe registers.
4bb1dc5e
CV
4349 (h8300_skip_prologue): Check for stm instruction to push registers
4350 used for register variables onto stack.
4351 (gdb_print_insn_h8300): Remove.
4352 (h8300_examine_prologue): Add a comment.
4353 (h8300_register_name): Take pseudo registers into account.
4354 (h8300s_register_name): Ditto.
4355 (h8300sx_register_name): Ditto.
4356 (h8300_print_register): Ditto.
4357 (h8300_print_registers_info): Define "nice" printing order.
4358 (h8300_saved_pc_after_call): Take pseudo registers into account.
4359 (h8300_register_type): Ditto. Return type used for remote connection
4360 when requesting real CCR or EXR register, return actual type when
4361 requesting pseudo CCR or EXR.
4362 (h8300_pseudo_register_read): New function.
4363 (h8300_pseudo_register_write): Ditto.
4364 (h8300_dbg_reg_to_regnum): Ditto.
4365 (h8300s_dbg_reg_to_regnum): Ditto.
4366 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4367 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4368 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4369 set_gdbarch_print_insn architecture dependent.
4370 Call set_gdbarch_pseudo_register_read and
4371 set_gdbarch_pseudo_register_write.
4372 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4373
a59fe496
AC
43742003-06-16 Andrew Cagney <cagney@redhat.com>
4375
4376 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4377 * gdbarch.h, gdbarch.c: Re-generate.
4378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4379 * s390-tdep.c (s390_gdbarch_init): Update.
4380 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4382 * mips-tdep.c (mips_gdbarch_init): Update.
4383 * mcore-tdep.c (mcore_gdbarch_init): Update.
4384 * cris-tdep.c (cris_gdbarch_init): Update.
4385 * infcall.c (call_function_by_hand): Update.
4386 * ia64-tdep.c (ia64_push_arguments): Update comment.
4387 * frame.c (legacy_get_prev_frame): Do not assume
4388 SAVE_DUMMY_FRAME_TOS_P.
4389 * dummy-frame.c (find_dummy_frame): Update comment.
4390
6f4e5a41
AC
43912003-06-16 Andrew Cagney <cagney@redhat.com>
4392
4393 * regcache.c (do_cooked_read): Do not use register_valid_p.
4394
72fab697
TR
43952003-06-15 Theodore A. Roth <troth@openavr.org>
4396
4397 * avr-tdep.c (avr_register_type): Remove a blank line.
4398 (avr_scan_prologue): Correct some comments.
4399
e3d8b004
TR
44002003-06-15 Theodore A. Roth <troth@openavr.org>
4401
4402 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4403 prologue types.
8ffd9b1b 4404 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4405 option.
4406 Add code to scan -mcall-prologues for mega devices.
4407
866b76ea
TR
44082003-06-15 Theodore A. Roth <troth@openavr.org>
4409
4410 * avr-tdep.c (avr_register_byte): Delete function.
4411 (avr_register_raw_size): Delete function.
4412 (avr_register_virtual_size): Delete function.
4413 (avr_register_virtual_type): Delete function.
4414 (avr_register_type): New function.
4415 (avr_address_to_pointer): Remove unused code.
4416 (avr_read_fp): Need to read FP as two separate bytes due to change to
4417 avr_register_type() usage.
4418 (avr_gdbarch_init): Don't set deprecated_register_size.
4419 Don't set deprecated_register_bytes.
4420 Don't set deprecated_register_byte.
4421 Don't set deprecated_register_raw_size.
4422 Don't set deprecated_max_register_raw_size.
4423 Don't set deprecated_register_virtual_size.
4424 Don't set deprecated_max_register_virtual_size.
4425 Don't set deprecated_register_virtual_type.
4426 Set register_type method.
4427
3993f6b1
DJ
44282003-06-15 Daniel Jacobowitz <drow@mvista.com>
4429
4430 * Makefile.in (linux-nat.o): Add rule.
4431 * linux-nat.c: New file.
4432 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4433 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4434 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4435 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4436 * config/arm/linux.mh (NATDEPFILES): Likewise.
4437 * config/i386/linux.mh (NATDEPFILES): Likewise.
4438 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4439 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4440 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4441 * config/mips/linux.mh (NATDEPFILES): Likewise.
4442 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4443 * config/s390/s390.mh (NATDEPFILES): Likewise.
4444 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4445
786a90bb
MK
44462003-06-15 Mark Kettenis <kettenis@gnu.org>
4447
4448 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4449 replace out-of-date comment.
4450
3bd3f01e
AC
44512003-06-15 Andrew Cagney <cagney@redhat.com>
4452
4453 * rdi-share/host.h (Fail): Change to a varargs function.
4454 * remote-rdi.c (Fail): Update.
8ffd9b1b 4455
de5b9bb9
MK
44562003-06-15 Mark Kettenis <kettenis@gnu.org>
4457
4458 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4459 (i386_convert_register_p, i386_register_to_value,
4460 i386_register_from_value): Handle types longer than 8 bytes.
4461
d532c08f
MK
44622003-06-15 Mark Kettenis <kettenis@gnu.org>
4463
4464 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4465 Move floating-point code to new function in i387-tdep.c.
4466 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4467 New functions containing code moved here from i386-tdep.c.
4468 * i387-tdep.h: Add opaque declaration for `struct type'.
4469 (i387_register_to_value, i387_value_to_register): New prototypes.
4470 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4471 (x86_64_init_abi): Set convert_register_p, register_to_value and
4472 value_to_register here.
8ffd9b1b 4473
42c466d7
AC
44742003-06-14 Andrew Cagney <cagney@redhat.com>
4475
4476 * mips-tdep.c (mips_register_to_value): Make static.
4477 (mips_value_to_register): Make static.
4478 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4479 * ia64-tdep.c (ia64_register_raw_size): Make static.
4480 (ia64_register_virtual_size): Make static.
4481 (ia64_register_byte): Make static.
4482 * i387-tdep.c: Include "i387-tdep.h".
4483 (print_387_control_word): Delete function.
4484 (print_387_status_word): Delete function.
4485 (print_387_status_bits): Delete function.
4486 (print_387_control_bits): Delete function.
4487 * Makefile.in (i387-tdep.o): Update dependencies.
4488 * rdi-share/host.h (Fail): Declare.
4489 * remote-rdi.c (Fail): Update to match declaration.
4490
2a9cda49
AC
44912003-06-14 Andrew Cagney <cagney@redhat.com>
4492
4493 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4494 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4495 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4496 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4497 * README: Delete reference to remote-array.
4498 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4499 (remote-array.o): Delete target.
4500 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4501 * remote-array.c: Delete file.
4502
ff2e87ac
AC
45032003-06-14 Andrew Cagney <cagney@redhat.com>
4504 Mark Kettenis <kettenis@gnu.org>
4505
4506 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4507 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4508 parameter with "frame".
4509 * gdbarch.h, gdbarch.c: Re-generate.
4510 * frame.h (put_frame_register): Declare.
4511 * frame.c (put_frame_register): New function.
4512 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4513 (legacy_register_to_value): Rewrite, use "frame" to get the
4514 register value.
4515 (legacy_value_to_register): Rewrite, use "frame" to find the
4516 register's location before storing.
4517 * arch-utils.h (legacy_convert_register_p): Update.
4518 (legacy_register_to_value, legacy_value_to_register): Update.
4519 * findvar.c (value_from_register): Rewrite, eliminate use of
4520 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4521 "frame" to REGISTER_TO_VALUE.
4522 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4523 lval_reg_frame_relative + lval_register branch of the switch. Do
4524 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4525 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4526 I386_EDI_REGNUM): New defines.
4527 (i386_next_regnum, i386_convert_register_p,
4528 i386_register_to_value, i386_value_to_register): New functions.
4529 (i386_register_convertible, i386_register_convert_to_virtual,
4530 i386_convert_to_raw): Remove functions.
4531 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4532 value_to_register instead of register_convertible,
4533 register_convert_to_virtual and register_convert_to_raw.
4534 * mips-tdep.c (mips_convert_register_p): New function.
4535 (mips_value_to_register): Replace mips_register_convert_from_type.
4536 (mips_register_to_value): Replace mips_register_convert_to_type.
4537 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4538 register_to_value.
4539 * alpha-tdep.c (alpha_convert_register_p): Update.
4540 (alpha_value_to_register): Update, store the register.
4541 (alpha_register_to_value): Update, fetch the register.
4542
98be1e77
TR
45432003-06-14 Theodore A. Roth <troth@openavr.org>
4544
4545 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4546 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4547 Don't set deprecated_call_dummy_words.
4548 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4549 Don't set remote_translate_xfer_address.
4550 (avr_io_reg_read_command): Remove commented out debug printf.
4551 Wrap a long line.
4552
57bc6122
TR
45532003-06-14 Theodore A. Roth <troth@openavr.org>
4554
4555 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4556 causes gdb to seg fault.
4557
eb01fc62
DJ
45582003-06-14 Daniel Jacobowitz <drow@mvista.com>
4559
4560 * sparc-nat.c (fetch_inferior_registers): Correct
4561 a reference to "registers".
4562
3b3e6bee
DJ
45632003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4564
4565 * Makefile.in (exc_request_U_h): Define
4566 (exc_request_S_h): Likewise.
4567 (msg_reply_S_h): Likewise.
4568 (msg_U_h): Likewise.
4569 (notify_S_h): Likewise.
4570 (process_reply_S_h): Likewise.
4571 (gnu-nat.o): Depend on gdb_obstack_h
4572 * gnu-nat.c: Include "gdb_obstack.h".
4573
b8de8283
AC
45742003-06-13 Andrew Cagney <cagney@redhat.com>
4575
4576 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4577 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4578
f3be58bc
AC
45792003-06-13 Andrew Cagney <cagney@redhat.com>
4580
4581 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4582 when deprecated REGISTER macros can be deleted.
4583 * gdbarch.h, gdbarch.c: Re-generate.
4584
4c0122c8
JB
45852003-06-13 Jim Blandy <jimb@redhat.com>
4586
4587 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4588 Linux entry point symbols for _dl_debug_state, too.
4589
3e210248
AC
45902003-06-13 Andrew Cagney <cagney@redhat.com>
4591
4592 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4593 available, do not use the FP register, and always save the TOS.
4594 * dummy-frame.c (dummy_frame_this_id): Do not assert
4595 SAVE_DUMMY_FRAME_TOS.
4596 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4597 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4598 (i386_push_dummy_call): Add 8 to the returned SP.
4599 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4600 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4601 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4602 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4603 (x86_64_push_dummy_call): Return "sp + 16".
4604 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4605 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4606 save_dummy_frame_tos.
4607
0b65af49
JB
46082003-06-13 Jim Blandy <jimb@redhat.com>
4609
4610 * frv-tdep.c (frv_use_struct_convention): Delete static
4611 declaration for function deleted in my change of 2003-06-12.
4612
4ea2465e
TR
46132003-06-13 Theodore A. Roth <troth@openavr.org>
4614
4615 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4616 (avr_pointer_to_address): Shift code addrs left 1 bit.
4617 (avr_convert_from_func_ptr_addr): Delete function since operation is
4618 better handled by avr_address_to_pointer and avr_pointer_to_address.
4619 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4620
1581182a
MK
46212003-06-13 Mark Kettenis <kettenis@gnu.org>
4622
4623 From Kelley Cook <kelleycook@wideopenwest.com>:
4624 * configure.host: Accept i[34567]86 variants.
4625 * configure.tgt: Likewise.
4626 * nlm/configure.in: Likewise.
4627 * nlm/configure: Regenerated.
4628
7aa1783e
RE
46292003-06-13 Richard Earnshaw <rearnsha@arm.com>
4630
4631 * arm-tdep.c (solib-svr4.h): Dont' include it.
4632 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4633 * arm-linux-tdep.c: ... here. Make static.
4634 (arm_linux_init_abi): Register it.
4635 (solib-svr4.h): Include it.
4636 * Makefile.in: Update dependencies.
4637 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4638 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4639
0261a0d0
CV
46402003-06-13 Corinna Vinschen <vinschen@redhat.com>
4641
4642 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4643 indicate registers used for return values.
4644 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4645 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4646 members.
4647 (h8300_init_extra_frame_info): Ditto.
4648 (h8300_frame_locals_address): Removed.
4649 (h8300_frame_args_address): Removed.
4650 (h8300_extract_return_value): Use new regcache structure. Only care
4651 for 16 bit CPUs.
4652 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4653 (h8300_store_return_value): Use new regcache structure. Only care
4654 for 16 bit CPUs.
4655 (h8300h_store_return_value): Same function for 32 bit CPUs.
4656 (h8300_store_struct_return): Removed.
4657 (h8300_extract_struct_value_address): Use new regcache structure.
4658 (h8300h_extract_struct_value_address): Removed.
4659 (h8300_push_dummy_code): New function.
4660 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4661 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4662 set_gdbarch_store_return_value architecture dependent.
4663 Call set_gdbarch_push_dummy_code and
4664 set_gdbarch_extract_struct_value_address.
4665 Remove calls to set_gdbarch_frame_args_address,
4666 set_gdbarch_frame_locals_address,
4667 set_gdbarch_deprecated_store_struct_return,
4668 set_gdbarch_deprecated_extract_return_value,
4669 set_gdbarch_deprecated_extract_struct_value_address,
4670 set_gdbarch_deprecated_call_dummy_words and
4671 set_gdbarch_deprecated_sizeof_call_dummy_words.
4672
055c394a
CV
46732003-06-13 Corinna Vinschen <vinschen@redhat.com>
4674
4675 * h8300-tdep.c (h8300_register_byte): Remove.
4676 (h8300h_register_byte): Remove.
4677 (h8300_register_virtual_type): Remove. Substitute by...
4678 (h8300_register_type): New function.
4679 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4680 (h8300h_extract_struct_value_address): Ditto.
4681 (h8300_gdbarch_init): Drop calls to
4682 set_gdbarch_deprecated_register_byte and
4683 set_gdbarch_deprecated_register_virtual_type.
4684 Add call to set_gdbarch_register_type.
4685
9c04cab7
AC
46862003-06-13 Andrew Cagney <cagney@redhat.com>
4687
4688 * gdbarch.sh: Update comments on registers.
4689 (deprecated_register_byte): Rename register_byte.
4690 (deprecated_register_raw_size): Rename register_raw_size.
4691 (deprecated_register_virtual_size): Rename register_virtual_size.
4692 (deprecated_register_virtual_type): Rename register_virtual_type.
4693 * gdbarch.h, gdbarch.c: Re-generate.
4694 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4695 * vax-tdep.c (vax_gdbarch_init): Update.
4696 * v850-tdep.c (v850_gdbarch_init): Update.
4697 * sparc-tdep.c (sparc_gdbarch_init): Update.
4698 * sh-tdep.c (sh_gdbarch_init): Update.
4699 * s390-tdep.c (s390_gdbarch_init): Update.
4700 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4701 * ns32k-tdep.c: Update.
4702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4703 * mips-tdep.c (mips_gdbarch_init): Update.
4704 * mcore-tdep.c (mcore_gdbarch_init): Update.
4705 * m68k-tdep.c (m68k_gdbarch_init): Update.
4706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4707 * ia64-tdep.c (ia64_gdbarch_init): Update.
4708 * hppa-tdep.c (hppa_gdbarch_init): Update.
4709 * h8300-tdep.c (h8300_gdbarch_init): Update.
4710 * frv-tdep.c (frv_gdbarch_init): Update.
4711 * cris-tdep.c (cris_gdbarch_init): Update.
4712 * avr-tdep.c (avr_gdbarch_init): Update.
4713 * alpha-tdep.c (alpha_gdbarch_init): Update.
4714 * arm-tdep.c (arm_gdbarch_init): Update.
4715
b060cbea
AC
47162003-06-13 Andrew Cagney <cagney@redhat.com>
4717
4718 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4719 mips_o32_use_struct_convention with always_use_struct_convention.
4720
0fc9922a
DC
47212003-06-12 David Carlton <carlton@kealia.com>
4722
4723 * cp-namespace.c (cp_set_block_scope): Comment out
4724 processing_has_namespace_info branch.
4725
1fd35568
JB
47262003-06-12 Jim Blandy <jimb@redhat.com>
4727
f470a70a
JB
4728 Recognize and skip 64-bit PowerPC Linux linkage functions.
4729 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4730 insn_pattern, insns_match_pattern, d_field, ds_field): New
4731 functions, macros, and types for working with PPC instructions.
4732 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4733 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4734 ppc64_skip_trampoline_code): New functions, variables, and macros
4735 for recognizing and skipping linkage functions.
4736 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4737 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4738
49ff75ad
JB
4739 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4740 register offsets for both the 32- and 64-bit interfaces.
4741
bd918c83
JB
4742 Actually finish the job started by my change of 2003-05-29.
4743 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4744 other #definition of this.
4745 (ppc_linux_skip_trampoline_code): Remove declaration.
4746 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4747 static.
4748 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4749 method for GDBARCH.
4750
4751 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4752 'long' on ppc64-*-linux*.
4753
f8c59253
JB
4754 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4755 isn't #defined, assume the register doesn't exist: act as if
4756 tdep->ppc_mq_regnum were -1.
4757
8fbb30b1
JB
4758 * configure.host, configure.tgt: Add entries for
4759 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4760 powerpc/linux.mt.
4761 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4762 New files.
4763
1fd35568
JB
4764 * arch-utils.c (always_use_struct_convention): New function.
4765 * arch-utils.h (always_use_struct_convention): New prototype.
4766 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4767 (alpha_gdbarch_init): Register always_use_struct_convention,
4768 instead of alpha_use_struct_convention.
4769 * cris-tdep.c (cris_use_struct_convention): Delete.
4770 (cris_gdbarch_init): Register always_use_struct_convention,
4771 instead of cris_use_struct_convention.
4772 * frv-tdep.c (frv_use_struct_convention): Delete.
4773 (frv_gdbarch_init): Register always_use_struct_convention,
4774 instead of frv_use_struct_convention.
4775 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4776 (h8300_gdbarch_init): Register always_use_struct_convention,
4777 instead of h8300_use_struct_convention.
e3305dd9 4778 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4779 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4780 instead of mips_o32_use_struct_convention.
4781
e14e6e9c
AC
47822003-06-12 Andrew Cagney <cagney@redhat.com>
4783
4784 * wince.c: Include "mips-tdep.h".
4785 * mips-tdep.h (mips_next_pc): Declare.
4786 * mcore-tdep.c: Make more local functions static.
4787 * Makefile.in (wince.o): Update dependencies.
4788
2335f48e
DC
47892003-06-12 David Carlton <carlton@kealia.com>
4790
4791 * symtab.c (lookup_symbol_aux_minsyms): Replace
4792 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4793 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4794 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4795 SYMBOL_NATURAL_NAME.
4796
f70a7d61
AS
47972003-06-12 Andreas Schwab <schwab@suse.de>
4798
4799 * Makefile.in (tuiDisassem.o): Update dependencies.
4800
b6429628
DC
48012003-06-12 David Carlton <carlton@bactrian.org>
4802
4803 * symtab.h: Delete declaration of make_symbol_overload_list.
4804 Add declaration of lookup_partial_symbol.
4805 * symtab.c (remove_params): Move to cp-support.c.
4806 (overload_list_add_symbol, make_symbol_overload_list)
4807 (sym_return_val_size, sym_return_val_index): Ditto.
4808 (lookup_partial_symbol): Make extern.
4809 * cp-support.h: Add declaration of make_symbol_overload_list.
4810 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4811 symtab.h, and block.h.
4812 (remove_params): Move here from symtab.c.
4813 (overload_list_add_symbol, make_symbol_overload_list)
4814 (sym_return_val_size, sym_return_val_index): Ditto.
4815 * valops.c: Include cp-support.h.
4816 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4817 frame_h, and block_h.
4818 (valops.o): Depend on cp_support_h.
4819
084edea5
CV
48202003-06-12 Corinna Vinschen <vinschen@redhat.com>
4821
4822 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4823 substitute by NUM_REGS throughout.
4824 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4825 (h8300s_register_name): New function for H8S registers.
4826 (h8300sx_register_name): Ditto for H8SX registers.
4827 (h8300_print_register): Revise register printing, avoid depending
4828 on 32 bit long.
0261a0d0 4829 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4830 (h8300h_register_byte): New function for any other architecture.
4831 (h8300_register_raw_size): Remove.
4832 (h8300_register_virtual_type): Revise to return actually useful
4833 type.
4834 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4835 (h8300h_extract_struct_value_address): New function for any other
4836 architecture.
4837 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4838 set_gdbarch_register_name, set_gdbarch_register_byte,
4839 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4840 Remove calls to set_gdbarch_deprecated_register_size,
4841 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4842 set_gdbarch_deprecated_max_register_raw_size,
4843 set_gdbarch_register_virtual_size and
4844 set_gdbarch_deprecated_max_register_virtual_size entirely.
4845 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4846 set_gdbarch_long_double_bit.
4847
06194148
JJ
48482003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4849
8ffd9b1b
AJ
4850 * doublest.c (convert_doublest_to_floatformat): When dealing
4851 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4852 processing a full 32 bits of mantissa.
4853
de4f826b
DC
48542003-06-11 David Carlton <carlton@bactrian.org>
4855
4856 * dictionary.h: New.
4857 * dictionary.c: New.
4858 * block.h: Add opaque declaration for struct dictionary.
4859 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4860 'sym' members.
4861 (BLOCK_DICT): New macro.
4862 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4863 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4864 BLOCK_SHOULD_SORT.
4865 (ALL_BLOCK_SYMBOLS): Update definition.
4866 * Makefile.in (SFILES): Add dictionary.c.
4867 (dictionary_h): New.
4868 (COMMON_OBS): Add dictionary.o.
4869 (dictionary.o): New.
4870 (ada-lang.o): Depend on dictionary_h.
4871 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4872 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4873 (mi-cmd-stack.o): Ditto.
4874 (gdbtk-cmds.o): Update dependencies.
4875 (gdbtk-stack.o): Ditto.
4876 * ada-lang.c: Include dictionary.h.
4877 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4878 (fill_in_ada_prototype, debug_print_block): Ditto.
4879 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4880 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4881 'is_sorted'.
4882 * mdebugread.c: Include dictionary.h.
4883 (struct parse_stack): Delete 'maxsyms' member.
4884 (parse_symbol): Update calls to new_block. Delete calls to
4885 shrink_block. Use dictionary methods.
4886 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4887 Update calls to new_symtab. Don't maintain maxsyms data.
4888 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4889 (add_symbol): Just call dict_add_symbol.
4890 (new_symtab): Delete 'maxsyms' argument.
4891 (new_symtab): Update calls to new_block.
4892 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4893 (shrink_block): Delete function.
4894 (fixup_sigtramp): Update call to new_block. Add symbol via
4895 dict_add_symbol.
4896 * jv-lang.c: Include dictionary.h.
4897 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4898 appropriately. Set class_symtab->free_func. Make sure the
4899 blockvector is big enough to hold two blocks.
4900 (add_class_symtab_symbol): Use dictionary methods.
4901 (free_class_block): New function.
4902 (type_from_class): Replace explicit iteration by
4903 ALL_BLOCK_SYMBOLS.
4904 * symtab.h (struct symtab): Replace 'free_ptr' method by
4905 'free_func'.
4906 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4907 sort_symtab_syms.
4908 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4909 sort_symtab_syms.
4910 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4911 Include dictionary.h.
4912 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4913 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4914 sort_symtab_syms.
4915 * objfiles.c: Include dictionary.h.
4916 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4917 * buildsym.c: Include dictionary.h.
4918 (finish_block): Use dictionary methods.
4919 (end_symtab): Set free_func to NULL, not free_ptr.
4920 * tracepoint.c: Include dictionary.h.
4921 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4922 (scope_info): Ditto.
4923 * stack.c: Include dictionary.h.
4924 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4925 (print_block_frame_labels, print_frame_arg_vars)
4926 (print_frame_args): Ditto.
4927 * symmisc.c (free_symtab_block): Use dictionary methods.
4928 (dump_symtab): Ditto.
4929 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4930 Include dictionary.h.
4931 * symfile.h: Delete declarations of sort_block_syms,
4932 sort_symtab_syms.
4933 * symfile.c (sort_block_syms): Delete.
4934 (sort_symtab_syms): Delete.
4935 * symtab.c: Include dictionary.h.
4936 (lookup_block_symbol): Use dictionary iterators.
4937 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4938 (search_symbols, make_symbol_completion_list): Ditto.
4939 (make_symbol_overload_list): Ditto.
4940 * valops.c (value_of_local): Use dict_empty.
4941 Include dictionary.h.
4942
a31f978c
JB
49432003-06-11 J. Brobecker <brobecker@gnat.com>
4944
4945 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4946
526e70c0
DC
49472003-06-11 David Carlton <carlton@bactrian.org>
4948
4949 * block.h (BLOCK_SHOULD_SORT): Delete.
4950 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4951 blocks.
4952 * ada-lang.c (ada_add_block_symbols): Ditto.
4953 * symfile.c (sort_block_syms): Delete.
4954 (sort_symtab_syms): Ditto.
4955 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4956 declarations.
4957 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4958 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4959 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4960 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4961 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4962 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4963 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4964
33c08150
JJ
49652003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4966
8ffd9b1b 4967 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4968 bits to 128.
4969
781a750d
AC
49702003-06-11 Andrew Cagney <cagney@redhat.com>
4971
4972 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4973 REGISTER_CONVERTIBLE.
4974 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4975 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4976 * gdbarch.h, gdbarch.c: Re-generate.
4977 * arch-utils.h (deprecated_register_convertible_not): Rename
4978 generic_register_convertible_not.
4979 * arch-utils.c (deprecated_register_convertible_not): Rename
4980 generic_register_convertible.
4981 (legacy_convert_register_p, legacy_register_to_value): Update.
4982 * sh-tdep.c (sh64_push_arguments): Update.
4983 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4984 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4985 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4986 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4987 * arch-utils.c (legacy_value_to_register): Update.
4988 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4989 (rs6000_register_convert_to_raw): Make parameter "from" const.
4990 * mips-tdep.c (mips_gdbarch_init): Update.
4991 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4992 * infcmd.c (default_print_registers_info): Update.
4993 * ia64-tdep.c (ia64_gdbarch_init): Update.
4994 (ia64_register_convert_to_raw): Make parameter "from" const.
4995 * i386-tdep.c (i386_gdbarch_init): Update.
4996 (i386_register_convert_to_raw): Update.
4997
cd90e54f
AC
49982003-06-11 Andrew Cagney <cagney@redhat.com>
4999
5000 * remote-fileio.c: Include "remote-fileio.h".
5001 * Makefile.in (remote-fileio.o): Update dependencies.
5002 (remote_fileio_h): Fix typo.
5003
a78f21af
AC
50042003-06-11 Andrew Cagney <cagney@redhat.com>
5005
5006 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5007 (xstormy16_save_dummy_frame_tos): Make static.
5008 (_initialize_xstormy16_tdep): Add declaration.
5009 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5010 * v850-tdep.c: Make local functions static.
5011 (_initialize_v850_tdep): Add declaration.
5012 * sparc-tdep.c: Make local functions static.
5013 (_initialize_sparc_tdep): Add declaration.
5014 * sh-tdep.c: Make local functions static.
5015 (_initialize_sh_tdep): Add declaration.
5016 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5017 * s390-tdep.c: Make local functions static.
5018 (_initialize_s390_tdep): Add declaration.
5019 * dbxread.c (find_stab_function_addr): Make static.
5020 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5021 * ocd.c (_initialize_remote_ocd): Add declaration.
5022 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5023 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5024 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5025 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5026 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5027 * remote-array.c (_initialize_array): Add declaration.
5028 (_initialize_remote_monitors): Add declaration.
5029 * remote-mips.c: Make local functions static.
5030 (_initialize_remote_mips): Add declaration.
5031 * mcore-tdep.c: Make all local functions static.
5032 (_initialize_mcore_tdep): Add declaration.
5033 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5034 * abug-rom.c (_initialize_abug_rom): Add declaration.
5035 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5036 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5037 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5038 * remote-est.c (_initialize_est): Add declaration.
5039 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5040 (m68hc11_call_dummy_address): Make static.
5041 * ia64-tdep.c: Make local functions static.
5042 (_initialize_ia64_tdep): Add declaration.
5043 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5044 * monitor.c (monitor_wait_filter): Make static.
5045 (_initialize_remote_monitors): Add declaration.
5046 * remote-hms.c (_initialize_remote_hms): Add declaration.
5047 * remote-e7000.c (fetch_regs_from_dump): Make static.
5048 (expect_n): Make static.
5049 (_initialize_remote_e7000): Add declaration.
5050 * ser-e7kpc.c: Always include "defs.h".
5051 (_initialize_ser_e7000pc): Add declaration.
5052 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5053 * cris-tdep.c: Make all but one function static.
5054 (_initialize_cris_tdep): Add declaration.
5055 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5056 * solib.c (update_solib_list): Make static.
5057 (_initialize_solib): Add declaration.
5058 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5059 (_initialize_avr_tdep): Add declaration.
5060 * remote-rdi.c (voiddummy): Make static.
5061 (_initialize_remote_rdi): Add declaration.
5062 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5063 * remote-rdp.c (send_rdp): Make static.
5064 (_initialize_remote_rdp): Add declaration.
5065 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5066
cbcdb1f5
CV
50672003-06-11 Corinna Vinschen <vinschen@redhat.com>
5068
5069 * remote-fileio.c: Make ari happy.
5070
a191ea8d
JB
50712003-06-10 J. Brobecker <brobecker@gnat.com>
5072
5073 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5074 fetching the trailing bytes of the buffer we are about to write.
5075
0ef75e11
AC
50762003-06-10 Andrew Cagney <cagney@redhat.com>
5077
5078 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5079 * Makefile.in (remote-fileio.o): Update dependencies.
5080 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5081 include <setjmp.h>, or <sys/types.h> conditional on USG.
5082 (remote_fio_jmp_buf): Delete global variable.
5083
449092f6 50842003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5085 Martin M. Hunt <hunt@redhat.com>
449092f6 5086
559fa028
AC
5087 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5088 (SFILES): Add remote-fileio.c.
5089 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5090 dependencies for building remote.o.
449092f6
CV
5091 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5092 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5093 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5094 static storage class.
5095 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5096 'F' packet.
5097 (_initialize_remote): Call initialize_remote_fileio().
5098 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5099 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5100 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5101 (captured_main): Initialize new ui_files.
5102 * ui-file.c: Add read and fgets input functions.
5103 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5104 (null_file_read): New function.
5105 (ui_file_read): New function.
5106 (set_ui_file_read): New function.
5107 (stdio_file_read): New function.
5108 * ui-file.h: New type ui_file_read_ftype.
5109 (set_ui_file_read): Declare.
5110 (ui_file_read): Declare.
5111
248de703
AC
51122003-06-09 Andrew Cagney <cagney@redhat.com>
5113
5114 * frame.h (deprecated_unwind_get_saved_register): Rename
5115 generic_unwind_get_saved_register, update comments.
5116 * mips-tdep.c (mips_get_saved_register): Update.
5117 * frame.c (deprecated_unwind_get_saved_register): Update.
5118
0ed8aa57
AC
51192003-06-09 Andrew Cagney <cagney@redhat.com>
5120
5121 * vax-tdep.c (vax_frame_locals_address): Delete function.
5122 (vax_gdbarch_init): Do not set frame_locals_address.
5123 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5124 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5125 * s390-tdep.c (s390_frame_args_address): Delete function.
5126 (s390_gdbarch_init): Do not set frame_args_address or
5127 frame_locals_address.
5128 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5129 (ns32k_gdbarch_init): Do not set frame_locals_address.
5130 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5131 (hppa_frame_locals_address): Delete function.
5132 (hppa_gdbarch_init): Do not set frame_args_address, or
5133 frame_locals_address.
5134 * arm-tdep.c (arm_frame_args_address): Delete.
5135 (arm_frame_locals_address): Delete.
5136 (arm_gdbarch_init): Do not set frame_args_address, or
5137 frame_locals_address.
5138
983a287a
AC
51392003-06-09 Andrew Cagney <cagney@redhat.com>
5140
5141 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5142 * gdbarch.h, gdbarch.c: Re-generate.
5143 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5144 * arch-utils.c (frame_num_args_unknown): Delete function.
5145 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5146 (frame_info): Use FRAME_NUM_ARGS_P.
5147 * arm-tdep.c (arm_frame_num_args): Delete function.
5148 (arm_gdbarch_init): Do not set frame_num_args.
5149 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5150 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5151 (hppa_gdbarch_init): Do not set frame_num_args.
5152 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5153 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5154 frame_num_args to default frame_num_args_unknown.
5155 * v850-tdep.c (v850_gdbarch_init): Ditto.
5156 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5157 * sh-tdep.c (sh_gdbarch_init): Ditto.
5158 * s390-tdep.c (s390_gdbarch_init): Ditto.
5159 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5160 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5161 * mips-tdep.c (mips_gdbarch_init): Ditto.
5162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5163 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5165 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5166 * i386-tdep.c (i386_gdbarch_init): Ditto.
5167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5168 * frv-tdep.c (frv_gdbarch_init): Ditto.
5169 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5170 * cris-tdep.c (cris_gdbarch_init): Ditto.
5171 * avr-tdep.c (avr_gdbarch_init): Ditto.
5172 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5173
8d3b0994
AC
51742003-06-09 Andrew Cagney <cagney@redhat.com>
5175
5176 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5177 (print_frame_args): Moved to "stack.c".
5178 * stack.c: Include "gdb_assert.h".
5179 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5180 (print_frame_args): Moved from "printcmd.c".
5181 * frame.h (print_frame_args): Delete declaration.
5182 * Makefile.in (stack.o): Update dependencies.
5183
25e3a86b
AC
51842003-06-08 Andrew Cagney <cagney@redhat.com>
5185
5186 * frame.c (get_prev_frame): Remove reference to
5187 frame_args_address_correct in comments.
5188 * frame-base.c (default_frame_args_address): Delete code
5189 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5190 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5191 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5192 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5193 (vax_frame_args_address_correct): Delete declaration.
5194
a9e5fdc2
AC
51952003-06-08 Andrew Cagney <cagney@redhat.com>
5196
5197 * gdbarch.sh (UNWIND_SP): Add.
5198 * gdbarch.h, gdbarch.c: Re-generate.
5199 * frame.c (frame_sp_unwind): New function.
5200 (get_frame_sp): New function.
5201 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5202 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5203 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5204 value.
5205 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5206 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5207
8983bd83
AC
52082003-06-08 Andrew Cagney <cagney@redhat.com>
5209
7fec2c59
AC
5210 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5211 REMOTE_BREAKPOINT.
5212 * remote.c: Update.
5213 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5214 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5215 * config/m68k/tm-sun3.h: Update.
5216 * config/m68k/tm-m68klynx.h: Update.
5217 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5218
8983bd83
AC
5219 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5220 trad_frame". Update comments.
5221 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5222 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5223 (trad_frame_register_value, trad_frame_prev_register): Update.
5224
b9362cc7
AC
52252003-06-08 Andrew Cagney <cagney@redhat.com>
5226
5227 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5228 from GCC's acinclude.m4.
5229 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5230 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5231 * main.c (error_init): Delete declaration.
5232 * defs.h (error_init): Declare.
5233 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5234 (rs6000_convert_from_func_ptr_addr): Make static.
5235 (_initialize_rs6000_tdep): Add declaration.
5236 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5237 (show_commands, set_verbose, show_history): Delete declaration.
5238 * top.h (set_verbose): Add declaration.
5239 (show_history, set_history, show_commands): Add declaration.
5240 (do_restore_instream_cleanup): Add declaration.
5241 * objc-lang.c (specialcmp): Make static.
5242 (print_object_command): Make static.
5243 (find_objc_msgsend): Make static.
5244 (find_objc_msgcall_submethod_helper): Make static.
5245 (find_objc_msgcall_submethod): Make static.
5246 (_initialize_objc_language): Add declaration.
5247 (find_implementation_from_class): Make static.
5248 (find_implementation): Make static.
5249 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5250 * objc-lang.h (lookup_struct_typedef): Add declaration.
5251 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5252 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5253 (do_restore_user_call_depth): Make static.
5254 (do_restore_instream_cleanup): Delete declaration.
5255 (dont_repeat): Delete declaration.
5256 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5257 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5258 * reggroups.c (_initialize_reggroup): Add declaration.
5259 * cp-support.c (_initialize_cp_support): Add declaration.
5260 * cp-abi.c (_initialize_cp_abi): Add declaration.
5261 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5262 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5263 (_initialize_gnu_v3_abi): Add declaration.
5264 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5265 (_initialize_gnu_v2_abi): Add declaration.
5266 * frame-base.c (_initialize_frame_base): Add declaration.
5267 * doublest.c (floatformat_from_length): Make static.
5268 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5269 * frame.c (create_sentinel_frame): Make static.
5270 (_initialize_frame): Add declaration.
5271 * top.c (do_catch_errors): Make static.
5272 (gdb_rl_operate_and_get_next_completion): Make static.
5273 * typeprint.c: Include "typeprint.h".
5274 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5275 (sentinel_frame_this_id): Make static.
5276 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5277 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5278 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5279 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5280 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5281 * maint.c (maintenance_print_architecture): Make static.
5282 * signals/signals.c (_initialize_signals): Add declaration.
5283 * std-regs.c (_initialize_frame_reg): Add declaration.
5284 * jv-exp.y (push_variable): ISO C definition.
5285 (push_qualified_expression_name): Ditto.
5286 * memattr.c (_initialize_mem): Add declaration.
5287 * remote.c (remote_check_watch_resources): Make static.
5288 (remote_stopped_by_watchpoint): Make static.
5289 (remote_stopped_data_address): Make static.
5290 * d10v-tdep.c (nr_dmap_regs): Make static.
5291 (a0_regnum): Make static.
5292 (d10v_frame_unwind_cache): Make static.
5293 (d10v_frame_p): Make static.
5294 * osabi.c (show_osabi): Make static.
5295 (_initialize_gdb_osabi): Add extern declaration.
5296 * gdbtypes.c (make_qualified_type): Make static.
5297 (safe_parse_type): Make static.
5298 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5299 * macrotab.c (macro_bcache_free): Make static.
5300 * interps.c (interp_set_quiet): Make static.
5301 (interpreter_exec_cmd): Make static.
5302 * stack.h (select_frame_command): New file.
5303 * stack.c: Include "stack.h".
5304 (select_frame_command_wrapper): Delete function.
5305 (select_frame_command): Make global.
5306 * infcall.c: Include "infcall.h".
5307 * linespec.c: Include "linespec.h".
5308 * symfile.c (sections_overlap): Make static.
5309 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5310 * charset.c (_initialize_charset): Add missing prototype.
5311 * regcache.c (init_legacy_regcache_descr): Make static.
5312 (do_regcache_xfree): Make static.
5313 (regcache_xfer_part): Make static.
5314 (_initialize_regcache): Add missing prototype.
5315 * breakpoint.c (parse_breakpoint_sals): Make static.
5316 (breakpoint_sals_to_pc): Make static.
5317 * interps.h (clear_interpreter_hooks): ISO C declaration.
5318 * Makefile.in (stack_h): Define.
5319 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5320 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5321
a0f267c7
AC
53222003-06-08 Andrew Cagney <cagney@redhat.com>
5323
5324 * Makefile.in (d10v-tdep.o): Update dependencies.
5325 (SFILES): Add trad-frame.c.
5326 (trad_frame_h): Define.
5327 (COMMON_OBS): Add trad-frame.o.
5328 (trad-frame.o): Specify dependencies.
5329 * d10v-tdep.c: Include "trad-frame.h".
5330 (saved_regs_unwinder): Delete function.
5331 (d10v_frame_prev_register): Use trad_frame_prev_register.
5332 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5333 trad_frame", delete "regs" and "prev_sp".
5334 (prologue_find_regs): Use trad-frame.
5335 * trad-frame.h, trad-frame.c: New files.
5336
4538b4f4
MK
53372003-06-08 Mark Kettenis <kettenis@gnu.org>
5338
5339 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5340
a0273b2f
AF
53412003-06-07 Adam Fedor <fedor@gnu.org>
5342
5343 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5344 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5345 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5346 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5347 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5348 Use it.
5349
3a6c3343
AC
53502003-06-07 Andrew Cagney <cagney@redhat.com>
5351
5352 * symfile.h: Re-indent, clean up comments.
5353
b46e02f6
AC
53542003-06-07 Andrew Cagney <cagney@redhat.com>
5355
5356 * inferior.h (deprecated_write_sp): Replace
5357 generic_target_write_sp.
5358 * regcache.c (deprecated_write_sp): Replace
5359 generic_target_write_sp.
5360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5361 * vax-tdep.c (vax_gdbarch_init): Update.
5362 * v850-tdep.c (v850_gdbarch_init): Update.
5363 * sparc-tdep.c (sparc_gdbarch_init): Update.
5364 * sh-tdep.c (sh_gdbarch_init): Update.
5365 * s390-tdep.c (s390_gdbarch_init): Update.
5366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5367 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5369 * mcore-tdep.c (mcore_gdbarch_init): Update.
5370 * m68k-tdep.c (m68k_gdbarch_init): Update.
5371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5372 * ia64-tdep.c (ia64_gdbarch_init): Update.
5373 * h8300-tdep.c (h8300_gdbarch_init): Update.
5374 * frv-tdep.c (frv_gdbarch_init): Update.
5375 * cris-tdep.c (cris_gdbarch_init): Update.
5376 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5377
a42e117c
AC
53782003-06-07 Andrew Cagney <cagney@redhat.com>
5379
5380 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5381 Assert that PC_REGNUM is valid.
5382 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5383
bd1ce8ba
AC
53842003-06-07 Andrew Cagney <cagney@redhat.com>
5385
5386 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5387 * gdbarch.h, gdbarch.c: Regenerate.
5388 * mn10300-tdep.c: Include "gdb_assert.h".
5389 (mn10300_read_fp): New function.
5390 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5391 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5392 * ia64-tdep.c: Include "gdb_assert.h".
5393 (ia64_read_fp): New function.
5394 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5395 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5396 * regcache.c (generic_target_read_sp): Delete function.
5397 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5398 * inferior.h (generic_target_read_sp): Delete declaration.
5399 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5400 generic_target_read_sp.
5401 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5402 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5403 * sh-tdep.c (sh_gdbarch_init): Ditto.
5404 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5405 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5406
ec5cbaec
AC
54072003-06-07 Andrew Cagney <cagney@redhat.com>
5408
5409 * gdbarch.sh: Comment each field of startup_gdbarch.
5410 * gdbarch.h, gdbarch.c: Re-generate.
5411
cde9ea48
AC
54122003-06-07 Andrew Cagney <cagney@redhat.com>
5413
5414 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5415 * gdbarch.h, gdbarch.c: Re-generate.
5416 * regcache.c: Update comments on read_pc et.al.
5417 (generic_target_read_pc): Delete function.
5418 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5419 * inferior.h (generic_target_read_pc): Delete declaration.
5420 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5421 generic_target_read_pc.
5422 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5423 * sh-tdep.c (sh_gdbarch_init): Ditto.
5424 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5426
9a90a780
AC
54272003-06-07 Andrew Cagney <cagney@redhat.com>
5428
5429 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5430 "index" with "special_local_sect". Use strcmp instead of STREQ.
5431 Append period to coments.
5432
a39a16c4
MM
54332003-06-06 Mark Mitchell <mark@codesourcery.com>
5434
5435 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5436 (elfstab_offset_sections): Likewise.
5437 * gdb-stabs.h (stab_section_info): Likewise.
5438 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5439 * objfiles.c (objfile_relocate): Likewise.
5440 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5441 * remote.c (get_offsets): Likewise.
5442 (remote_cisco_objfile_relocate): Likewise.
5443 * somread.c (som_symfile_offsets): Likewise.
5444 * symfile.c (alloc_section_addr_info): New function.
5445 (build_section_addr_info_from_section_tab): Use it.
5446 (free_section_addr_info): Adjust.
5447 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5448 (syms_from_objfile): Allocate local_addr dynamically.
5449 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5450 dynamically.
5451 (add_symbol_file_command): Allocate sect_opts dynamically.
5452 (reread_symbols): Avoid use of SECT_OFF_MAX.
5453 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5454 (alloc_section_addr_info): Declare it.
5455 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5456 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5457 dynamically.
5458 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5459
20c6c2f8
AC
54602003-06-06 Andrew Cagney <cagney@redhat.com>
5461
5462 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5463 (d10v_frame_unwind_cache): Do not set "return_pc".
5464
884a26c8
MS
54652003-06-06 Michael Snyder <msnyder@redhat.com>
5466
5467 * h8300-tdep.c: Make tidy (long lines).
5468
088ce440
ML
54692003-06-06 Michal Ludvig <mludvig@suse.cz>
5470
8ffd9b1b 5471 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5472 to regcache_collect().
5473
7d773d96
JB
54742003-06-05 J. Brobecker <brobecker@gnat.com>
5475
5476 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5477 pc_in_sigtramp multiarch method.
5478 (hppa_hpux_som_init_abi): Use it.
5479 (hppa_hpux_elf_init_abi): Likewise.
5480 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5481 macro has been multiarched.
5482 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5483 macro here, as hppa64 isn't multiarched yet.
5484
1df6926e
AC
54852003-06-05 Andrew Cagney <cagney@redhat.com>
5486
5487 * Makefile.in (value_h): Add $(frame_h).
5488 * value.h: Include "frame.h".
5489 (struct value): Replace "frame_addr" with "frame_id".
5490 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5491 * values.c (allocate_value): Use VALUE_FRAME_ID.
5492 (value_copy): Use VALUE_FRAME_ID.
5493 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5494 * valops.c (value_assign): Update. Use frame_find_by_id.
5495
6b53acc6
ML
54962003-06-05 Michal Ludvig <mludvig@suse.cz>
5497
5498 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5499 in each pass.
5500
4d9850d3
JJ
55012003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5502
5503 * thread-db.c (check_event): For create/death event breakpoints,
5504 loop through all messages to ensure that we read the message
5505 corresponding to the breakpoint we are at.
5506
8efca6ba
MS
55072003-06-04 Michael Snyder <msnyder@redhat.com>
5508
5509 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5510
0912c7f2
MK
55112003-06-04 Mark Kettenis <kettenis@gnu.org>
5512
5513 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5514 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5515 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5516 when handling .eh_frame sections.
5517
4e370325
JB
55182003-06-04 J. Brobecker <brobecker@gnat.com>
5519
5520 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5521 prepare_to_proceed procedure instead of the hppa-specific one.
5522 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5523
b757528f 55242003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5525
b757528f
JJ
5526 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5527 * config.in: Regenerated.
5528 * configure.in: Add test for syscall function and check for
5529 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5530 * configure: Regenerated.
5531 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5532 <sys/syscall.h>.
5533 (kill_lwp): New function that uses tkill syscall or
5534 uses kill, depending on whether threading model is nptl or not.
5535 All callers of kill() changed to use kill_lwp().
5536 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5537 see if all threads have already exited in the nptl model.
5538 (stop_and_resume_callback): New callback function used by the
5539 lin_lwp_wait thread exit handling code.
5540 (stop_wait_callback): Check for threads already having exited and
5541 delete such threads fromt the lwp list when discovered.
5542 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5543
b757528f
JJ
5544 Roland McGrath <roland@redhat.com>
5545 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5546 nptl libthread_db.
5547
087779b1
RH
55482003-06-03 Richard Henderson <rth@redhat.com>
5549
b21fd293
RH
5550 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5551 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5552 (alpha_sigtramp_frame_prev_register): Likewise.
5553 (alpha_heuristic_frame_prev_register): Likewise.
5554 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5555
8ffd9b1b 5556 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5557 alpha-specific register id names.
5558 (alpha_mdebug_frame_unwind_cache): Likewise.
5559 (alpha_mdebug_frame_prev_register): Likewise.
5560
baa490c4
RH
55612003-06-03 Richard Henderson <rth@redhat.com>
5562
5563 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5564 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5565 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5566 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5567 unwind routines.
5568 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5569 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5570 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5571
5572 * alpha-linux-tdep.c: Remove unnecessary includes.
5573 * Makefile.in (alpha-linux-tdep.o): Update.
5574
55752003-06-03 Richard Henderson <rth@redhat.com>
5576
5577 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5578 (alphabsd_fill_fpreg): Likewise.
5579
f534e522
JB
55802003-06-03 J. Brobecker <brobecker@gnat.com>
5581
5582 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5583 references to struct frame_info fields by calls to the equivalent
5584 accessors. Necessary now that frame_info is opaque.
5585
4035536b
JB
55862003-06-03 J. Brobecker <brobecker@gnat.com>
5587
5588 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5589 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5590 structure, field no longer exists.
5591
0bd79c5c
JB
55922003-06-03 J. Brobecker <brobecker@gnat.com>
5593
5594 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5595 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5596
37bb6d9f
JB
55972003-06-03 J. Brobecker <brobecker@gnat.com>
5598
5599 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5600 references to struct frame_info fields by calls to the equivalent
5601 accessors. Necessary now that frame_info is opaque.
5602
852ee05c
JB
56032003-06-03 J. Brobecker <brobecker@gnat.com>
5604
5605 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5606 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5607 structure, field no longer exists.
5608
7d58c67d
TR
56092003-06-03 Theodore A. Roth <troth@openavr.org>
5610
8ffd9b1b 5611 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5612 accumulation of the size of all registers instead of blindly using
5613 DEPRECATED_REGISTER_BYTES.
5614
0a48e7e8
MS
56152003-06-03 Michael Snyder <msnyder@redhat.com>
5616
5617 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5618 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5619 for h8300sx.
5620
9798ab0d
JB
56212003-06-03 J. Brobecker <brobecker@gnat.com>
5622
5623 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5624 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5625
00b037e2
AC
56262003-06-03 Andrew Cagney <cagney@redhat.com>
5627
5628 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5629 (sparc_convert_to_raw): Delete function.
5630 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5631 register_convert_to_virtual.
5632
043b2f77
JJ
56332003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5634
5635 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5636 layer if not dealing with a statically-linked threaded program.
5637
f43caff8
KW
56382003-06-03 Kris Warkentin <kewarken@qnx.com>
5639
5640 * solib.c (solib_open): Update comment to reflect actual search order.
5641
ae1e7417
AC
56422003-06-03 Andrew Cagney <cagney@redhat.com>
5643
5644 * frame.c (get_frame_memory_signed): New function.
5645 (get_frame_memory, get_frame_memory_unsigned): New function.
5646 (get_frame_arch): New function.
5647 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5648 (get_frame_memory, get_frame_unsigned_memory): Declare.
5649 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5650 get_frame_memory_unsigned and get_frame_arch.
5651 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5652
cb123844
RG
56532003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5654
5655 * MAINTAINERS (write after approval): Add myself.
5656
1bb792e9
JB
56572003-06-03 Jim Blandy <jimb@redhat.com>
5658
5659 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5660 elements of gregset_t are 64 bits each, but access registers
5661 are still 32 bits, so they're packed two per gregset_t
5662 element. Unpack/pack them properly.
5663
aee8d8ba
DC
56642003-06-02 David Carlton <carlton@bactrian.org>
5665
5666 * linespec.c (find_methods): Break out code into
5667 add_matching_methods and add_constructors.
5668 (add_matching_methods): New.
5669 (add_constructors): Ditto.
5670
bf7488d2
AC
56712003-06-02 Andrew Cagney <cagney@redhat.com>
5672
bf7488d2
AC
5673 * sparc-tdep.c (sparc_print_registers): Delete call to
5674 REGISTER_CONVERTIBLE.
5675 (sparc_gdbarch_init): Do not set register_convertible.
5676 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5677 * frv-tdep.c (frv_gdbarch_init): Ditto.
5678 * cris-tdep.c (cris_gdbarch_init): Ditto.
5679
adedef68
EZ
56802003-06-02 Elena Zannoni <ezannoni@redhat.com>
5681
8ffd9b1b 5682 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5683 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5684 (syms_from_objfile): Ditto.
5685
650fcc91
AS
56862003-06-03 Andreas Schwab <schwab@suse.de>
5687
5688 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5689 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5690
df4a182b
RH
56912003-06-02 Richard Henderson <rth@redhat.com>
5692
5693 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5694 a member of all_reggroup.
5695
c483c494
RH
56962003-06-02 Richard Henderson <rth@redhat.com>
5697
5698 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5699 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5700 (alpha_lds, alpha_sts): New.
5701 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5702 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5703 restructure and fail for type sizes other than 4 or 8.
5704 (alpha_value_to_register): Similarly.
5705 (alpha_extract_return_value): Use alpha_sts.
5706 (alpha_store_return_value): Use alpha_lds.
5707 (alpha_gdbarch_init): Update hooks.
5708
b38b6be2
RH
57092003-06-02 Richard Henderson <rth@redhat.com>
5710
5711 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5712 regnum identifiers.
5713 (alpha_sigtramp_register_address): Likewise.
5714
98a8e1e5
RH
57152003-06-02 Richard Henderson <rth@redhat.com>
5716
5717 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5718 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5719 * alpha-tdep.h: Declare them.
5720
5721 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5722 Remove zerobuf. Don't error on UNIQUE.
5723 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5724 (ALPHA_REGSET_UNIQUE): Provide default.
5725 (supply_gregset): Use alpha_supply_int_regs.
5726 (fill_gregset): Use alpha_fill_int_regs.
5727 (supply_fpregset): Use alpha_supply_fp_regs.
5728 (fill_fpregset): Use alpha_fill_fp_regs.
5729 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5730 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5731 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5732 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5733 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5734 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5735
67dfac52
RH
57362003-06-02 Richard Henderson <rth@redhat.com>
5737
f75d70cc
RH
5738 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5739
67dfac52
RH
5740 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5741 (alpha_store_return_value): Likewise.
5742
0cf566ec
DC
57432003-06-02 David Carlton <carlton@math.stanford.edu>
5744
5745 * block.c (contained_in): Add 'const' to arguments.
5746 (block_function): Ditto.
5747 * block.h: Update declarations for block_function and
5748 contained_in.
5749
cdef89d0
DC
57502003-06-02 David Carlton <carlton@math.stanford.edu>
5751
5752 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5753 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5754 * p-valprint.c (pascal_val_print): Ditto.
5755 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5756
72667056
RH
57572003-06-02 Richard Henderson <rth@redhat.com>
5758
98a8e1e5
RH
5759 * alpha-tdep.c (alpha_push_dummy_call): Use
5760 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5761
8ffd9b1b 5762 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5763 sign-extension of 32-bit values.
5764 (alpha_store_return_value): Similarly.
0ede8eca 5765
98a8e1e5
RH
5766 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5767 (alpha_extract_return_value): Likewise.
5768 (alpha_store_return_value): Likewise.
7b5e1cb3 5769
98a8e1e5
RH
5770 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5771 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5772
98a8e1e5
RH
5773 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5774 (alpha_extract_struct_value_address): Likewise.
5775 (alpha_store_return_value): Likewise.
5776 (alpha_store_struct_return): Remove.
5777 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5778
98a8e1e5
RH
5779 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5780 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5781 macros where appropriate.
5782 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5783 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5784
98a8e1e5
RH
5785 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5786 for SP, GP; void_func_ptr for PC; non-language-specific types
5787 for all others.
5788 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5789
6dd77b81
RH
57902003-06-02 Richard Henderson <rth@redhat.com>
5791
5792 * top.h (lim_at_start): Declare.
5793 * main.c (captured_main): Set it.
5794 * top.c (lim_at_start): Define.
5795 (command_loop): Use it instead of &environ.
5796 * event-top.c (command_handler): Likewise.
5797
f4dbdb54
JT
57982003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5799
5800 * mipsnbsd-tdep.c: Update copyright years.
5801 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5802
8f285956
RH
58032003-06-01 Richard Henderson <rth@redhat.com>
5804
98a8e1e5
RH
5805 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5806 (alpha-linux-tdep.o): Update dependencies.
5807 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5808 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5809
615967cb
RH
58102003-06-01 Richard Henderson <rth@redhat.com>
5811
98a8e1e5
RH
5812 * alpha-tdep.c (alpha_register_reggroup_p): New.
5813 (alpha_gdbarch_init): Register it.
615967cb 5814
b59661bd
AC
58152003-06-02 Andrew Cagney <cagney@redhat.com>
5816
5817 * dwarfread.c: Eliminate "register"
5818 (decode_die_type): Eliminate assignment within "if".
5819 (struct_type, decode_array_element_type): Ditto.
5820 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5821 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5822 (decode_modified_type, completedieinfo): Ditto.
5823 * block.c: Eliminate "register".
5824 (blockvector_for_pc_sect): Eliminate assignment within "if".
5825 * cp-support.h (struct symbol): Opaque declaration.
5826 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5827
5ef165c2
RH
58282003-06-01 Richard Henderson <rth@redhat.com>
5829
98a8e1e5
RH
5830 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5831 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5832
143985b7
AF
58332003-06-01 Adam Fedor <fedor@gnu.org>
5834
5835 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5836 * gdbarch.[ch]: Regenerate.
5837 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5838 (hppa_gdbarch_init): Set it in the gdbarch vector.
5839 * i386-tdep.c (i386_fetch_pointer_argument): New
5840 (i386_gdbarch_init): Set it into gdbarch.
5841 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5842 (rs6000_gdbarch_init): Set it in gdbarch.
5843 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5844 (sparc_gdbarch_init): Set it in gdbarch.
5845
ae0167b9
AC
58462003-06-01 Andrew Cagney <cagney@redhat.com>
5847
7c0b4a20
AC
5848 * defs.h (extract_address): Delete declaration.
5849 * findvar.c (extract_address): Delete function.
5850 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5851 extract_address with the inline equivalent,
5852 extract_unsigned_integer.
5853 (xstormy16_extract_struct_value_address): Ditto.
5854 (xstormy16_pointer_to_address): Ditto.
5855 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5856 * v850-tdep.c (v850_push_arguments): Ditto.
5857 (v850_extract_return_value): Ditto.
5858 (v850_extract_struct_value_address): Ditto.
5859 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5860 (sparcnbsd_get_longjmp_target_64): Ditto.
5861 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5862 (get_longjmp_target): Ditto.
5863 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5864 (sh64_extract_struct_value_address): Ditto.
5865 (sh_push_arguments): Ditto.
5866 (sh64_push_arguments): Ditto.
5867 * remote-vxsparc.c (vx_read_register): Ditto.
5868 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5869 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5870 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5871 * mipsv4-nat.c (get_longjmp_target): Ditto.
5872 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5873 * mips-nat.c (get_longjmp_target): Ditto.
5874 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5875 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5876 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5877 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5878 * irix5-nat.c (get_longjmp_target): Ditto.
5879 * irix4-nat.c (get_longjmp_target): Ditto.
5880 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5881 (ia64_push_arguments): Ditto.
5882 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5883 * h8300-tdep.c (h8300_push_arguments): Ditto.
5884 (h8300_store_return_value): Ditto.
5885 (h8300_extract_struct_value_address): Ditto.
5886 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5887 (frv_push_arguments): Ditto.
5888 * avr-tdep.c (avr_pointer_to_address): Ditto.
5889 (avr_push_arguments): Ditto.
5890 * arm-tdep.c (arm_push_dummy_call): Ditto.
5891 (arm_get_longjmp_target): Ditto.
5892 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5893 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5894 (alpha_get_longjmp_target): Ditto.
5895
ae0167b9
AC
5896 * solib-irix.c (extract_mips_address): Inline extract_address,
5897 replacing it with extract_signed_integer.
5898 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5899 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5900 (first_link_map_member, open_symbol_file_object): Ditto.
5901 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5902 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5903 (LM_NEXT, LM_NAME): Ditto.
5904
44d88583
RH
59052003-06-01 Richard Henderson <rth@redhat.com>
5906
98a8e1e5
RH
5907 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5908 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5909 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5910 (alpha_cannot_store_register): Likewise.
5911 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5912 * alpha-nat.c (supply_gregset): Likewise.
5913 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5914
310e9b6a
AC
59152003-06-01 Andrew Cagney <cagney@redhat.com>
5916
5917 * infcall.c (call_function_by_hand): Update comment on
5918 DEPRECATED_DUMMY_WRITE_SP.
5919
5920 * mips-tdep.c (mips_gdbarch_init): Do not set
5921 deprecated_dummy_write_sp.
5922 (mips_eabi_push_dummy_call): Set the SP register.
5923 (mips_o64_push_dummy_call): Set the SP register.
5924 (mips_o32_push_dummy_call): Set the SP register.
5925 (mips_n32n64_push_dummy_call): Set the SP register.
5926
5ab84872
RH
59272003-06-01 Richard Henderson <rth@redhat.com>
5928
98a8e1e5
RH
5929 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5930 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5931 (supply_gregset): Likewise.
5932 * alpha-tdep.c (alpha_store_return_value): Likewise.
5933 (alpha_get_longjmp_target): Likewise.
5934 (alpha_register_name): Constify array.
5935 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5936 deprecated_register_size, deprecated_register_bytes,
5937 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5938 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5939 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5940
09cc52fd
RH
59412003-06-01 Richard Henderson <rth@redhat.com>
5942
5943 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5944 from arg_reg_buffer to regcache to avoid double conversion.
5945
c7f16359
MK
59462003-06-01 Mark Kettenis <kettenis@gnu.org>
5947
5948 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5949 SP_REGNUM.
5950 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5951 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5952
7131cb6e
RH
59532003-06-01 Richard Henderson <rth@redhat.com>
5954
98a8e1e5
RH
5955 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5956 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5957
f3e0f90b
RH
59582003-06-01 Richard Henderson <rth@redhat.com>
5959
98a8e1e5
RH
5960 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5961 not overlapping PC_REGNUM.
f3e0f90b 5962
c88e30c0
RH
59632003-06-01 Richard Henderson <rth@redhat.com>
5964
98a8e1e5
RH
5965 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5966 alpha_push_arguments. Don't dump argument register data to
5967 the target stack. Fix float and 128-bit long double semantics.
5968 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5969 (alpha_fix_call_dummy): Remove.
5970 (alpha_call_dummy_words): Remove.
5971 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5972
f1a559ae
RH
59732003-06-01 Richard Henderson <rth@redhat.com>
5974
5975 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5976
5e045346
AC
59772003-06-01 Andrew Cagney <cagney@redhat.com>
5978
95404a3e
AC
5979 * mips-tdep.c (is_mips16_addr): New function.
5980 (make_mips16_addr, unmake_mips16_addr): New functions.
5981 (pc_is_mips16, mips_fetch_instruction): Use.
5982 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5983 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5984 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5985 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5986 TARGET_MIPS.
5987 * config/mips/tm-mips.h: Update copyright.
5988 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5989 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5990 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5991 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5992 (TM_PRINT_INSN_MACH): Delete.
5993 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5994
5e045346
AC
5995 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5996 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5997 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5998 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5999 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6000 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6001 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6002 mips*-*-riscos* and mips*-*-sysv* onto mips.
6003 * config/mips/mips64.mt: New file.
6004 * config/mips/mips.mt: New file.
6005 * config/mips/littlemips.mt: Delete file.
6006 * config/mips/decstation.mt: Delete file.
6007 * config/mips/vr4300el.mt: Delete file.
6008 * config/mips/vr5000el.mt: Delete file.
6009 * config/mips/vr5000.mt: Delete file.
6010 * config/mips/vr4100.mt: Delete file.
6011 * config/mips/vr4xxxel.mt: Delete file.
6012 * config/mips/vr4300.mt: Delete file.
6013 * config/mips/vr4xxx.mt: Delete file.
6014 * config/mips/bigmips.mt: Delete file.
6015 * config/mips/bigmips64.mt: Delete file.
6016 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6017 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6018 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6019 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6020 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6021 "tm-bigmips.h".
6022 * config/mips/tm-irix3.h: Ditto.
6023 * config/mips/tm-mipsv4.h: Ditto.
6024 * config/mips/tm-embed.h: Ditto.
6025 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6026 "tm-bigmips64.h".
6027 * config/mips/tm-vr5000el.h: Delete file.
6028 * config/mips/tm-tx39l.h: Delete file.
6029 * config/mips/tm-vr4300el.h: Delete file.
6030 * config/mips/tm-vr4xxxel.h: Delete file.
6031 * config/mips/tm-vr4300.h: Delete file.
6032 * config/mips/tm-vr4100.h: Delete file.
6033 * config/mips/tm-vr4xxx.h: Delete file.
6034 * config/mips/tm-vr5000.h: Delete file.
6035 * config/mips/tm-embedl64.h: Delete file.
6036 * config/mips/tm-embedl.h: Delete file.
6037 * config/mips/tm-embed64.h: Delete file.
6038 * config/mips/tm-bigmips64.h: Delete file.
6039 * config/mips/tm-bigmips.h: Delete file.
6040
2473a4a9
MK
60412003-06-01 Mark Kettenis <kettenis@gnu.org>
6042
97a5b208
MK
6043 Fix gdb/1216.
6044 * shnbsd-nat.c: Include "sh-tdep.h".
6045
2473a4a9
MK
6046 From Richard Henderson <rth@redhat.com>:
6047 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6048
e0f7ec59
AC
60492003-05-31 Andrew Cagney <cagney@redhat.com>
6050
6051 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6052 forward declaration.
6053 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6054 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6055 (mips_find_saved_regs): Use set_reg_offset.
6056 (mips_frame_init_saved_regs): Delete function.
6057 (mips_pop_frame): Call mips_find_saved_regs instead of
6058 DEPRECATED_FRAME_INIT_SAVED_REGS.
6059
68dcc709
AC
60602003-05-31 Andrew Cagney <cagney@redhat.com>
6061
6062 * mips-tdep.c (mips_gdbarch_init): Do not set
6063 deprecated_max_register_raw_size, register_virtual_size, and
6064 deprecated_max_register_virtual_size.
6065
cfc14b3a
MK
60662003-05-31 Mark Kettenis <kettenis@gnu.org>
6067
6405b0a6
MK
6068 * i386-tdep.c: Include "dwarf2-frame.h".
6069 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6070 * Makefile.in (i386-tdep.o): Update dependencies.
6071
cfc14b3a
MK
6072 * dwarf2-frame.c, dwarf2-frame.h: New files.
6073 * Makefile.in (SFILES): Add dwarf2-frame.c.
6074 (dwarf2_frame_h): Define.
6075 (COMMON_OBS): Add dwarf2-frame.o.
6076 (dwarf2-frame.o): Add dependencies.
6077
6a2751d2
AJ
60782003-05-31 Andreas Jaeger <aj@suse.de>
6079
6080 * x86-64-linux-nat.c: Fix comment.
6081
1c3545ae
MK
60822003-05-31 Mark Kettenis <kettenis@gnu.org>
6083
10f93086
MK
6084 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6085 function signature.
6086
1c3545ae
MK
6087 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6088 have a sigcontext_addr handler.
6089 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6090 sigcontext_addr handler.
6091
e11c53d2
AC
60922003-05-31 Andrew Cagney <cagney@redhat.com>
6093
6094 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6095 (print_fp_register_row): Replace do_fp_register_row.
6096 (mips_print_fp_register): Add "file" and "frame" parameters.
6097 (mips_print_register): Add "file" and "frame" parameters.
6098 (mips_print_registers_info): Replace mips_do_registers_info.
6099 (mips_gdbarch_init): Set print_registers_info instead of
6100 deprecated_do_registers_info.
6101 (mips_read_fp_register_single): Add "frame" parameter.
6102 (mips_read_fp_register_double): Add "frame" parameter.
6103
a3386186
MK
61042003-05-31 Mark Kettenis <kettenis@gnu.org>
6105
70913449
MK
6106 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6107 Fixes a bug where GDB would print the wrong register names for
6108 targets without SSE.
6109
2b5e0749
MK
6110 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6111 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6112 registers.
6113
6114 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6115 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6116 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6117 TDEP->sc_sp_offset.
6118
a3386186
MK
6119 From Michal Ludvig <mludvig@suse.cz>:
6120 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6121 and `sc_num_regs'.
6122 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6123 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6124 I386_ST0_REGNUM): Move here from...
6125 * i386-tdep.c: ... here.
6126 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6127 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6128 registers if possible.
6129 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6130 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6131 Remove variables.
6132 (i386bsd_sc_reg_offset): New variable.
6133 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6134 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6135 TDEP->sc_sp_offset.
6136 (i386fbsd_sc_reg_offset): New variable.
6137 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6138 TDEP->sc_num_regs.
6139 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6140 variables.
6141 (i386fbsd4_sc_reg_offset): New variable.
6142 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6143 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6144 TDEP->sc_sp_offset.
6145 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6146 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6147 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6148 Remove variables.
6149 (i386nbsd_sc_reg_offset): New variable.
6150 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6151 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6152 TDEP->sc_sp_offset.
6153 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6154 Remove variables.
6155 (i386obsd_sc_reg_offset): New variable.
6156 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6157 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6158 TDEP->sc_sp_offset.
6159 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6160 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6161 for frame pointer offset in `struct sigcontext'.
6162
25ab4790
AC
61632003-05-31 Andrew Cagney <cagney@redhat.com>
6164
6165 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6166 architecture methods call_dummy_words, sizeof_call_dummy_words,
6167 push_return_address, store_struct_return, and fix_call_dummy. Set
6168 push_dummy_call instead of deprecated_push_arguments.
6169 (mips_store_struct_return): Delete function.
6170 (mips_fix_call_dummy): Delete function.
6171 (mips_push_return_address): Delete function.
6172 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6173 RA_REGNUM and T9_REGNUM.
6174 (mips_n32n64_push_dummy_call): Ditto for
6175 mips_n32n64_push_arguments.
6176 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6177 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6178
6a65450a
AC
61792003-05-31 Andrew Cagney <cagney@redhat.com>
6180
6181 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6182 "dummy_addr" to "bp_addr".
6183 * infcall.c (call_function_by_hand): Pass "funaddr" to
6184 gdbarch_push_dummy_call.
6185 * gdbarch.h, gdbarch.c: Re-generate.
6186 * i386-tdep.c (i386_push_dummy_call): Update.
6187 * arm-tdep.c (arm_push_dummy_call): Update.
6188 * d10v-tdep.c (d10v_push_dummy_call): Update.
6189
c4f35dd8
MK
61902003-05-31 Mark Kettenis <kettenis@gnu.org>
6191
6192 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6193 variable declarations.
6194 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6195 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6196 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6197 x86_64_init_frame_pc, x86_64_init_frame_pc,
6198 x86_64_function_has_prologue): Remove prototypes.
6199 (X86_64_NUM_GREGS): New define.
6200 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6201 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6202 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6203 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6204 XMM1_REGNUM): Remove defines.
6205 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6206 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6207 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6208 X86_64_XMM1_REGNUM): New defines.
6209 (struct x86_64_register_info): Renamed from `struct
6210 register_info'. Remove `size' member.
6211 (x86_64_register_info_table): Remove variable.
6212 (x86_64_register_info): New variable.
6213 (X86_64_NUM_REGS): New define.
6214 (X86_64_NUM_GREGS): Remove define.
6215 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6216 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6217 Remove variables.
6218 (x86_54_dwarf2_reg_to_regnum): Remove function.
6219 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6220 (x86_64_dwarf_reg_to_regnum): New function.
6221 (x86_64_register_name): Rewrite.
6222 (x86_64_register_raw_size): Remove function.
6223 (x86_64_register_byte_table): Remove variable.
6224 (x86_64_register_byte): Remove function.
6225 (x86_64_register_virtual_type): Remove function.
6226 (x86_64_register_type): New function.
6227 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6228 x86_64_register_convert_to_raw): Remove functions.
6229 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6230 (x86_64_use_struct_convention): Make static. Adjust for renamed
6231 defines.
6232 (x86_64_frame_init_saved_regs): Remove function.
6233 (x86_64_push_arguments): Make static. Change to accept a regcache
6234 as argument.
6235 (x86_64_store_return_value, x86_64_extract_return_value): Make
6236 static. Rewrite based on i386 counterparts.
6237 (x86_64_push_dummy_call): New function.
6238 (X86_64_NUM_SAVED_REGS): New define.
6239 (x86_64_register_number): Remove function.
6240 (x86_64_store_struct_return): Remove function.
6241 (x86_64_frameless_function_invocation,
6242 x86_64_function_has_prologue): Remove functions.
6243 (PROLOG_BUFSIZE): Remove define.
6244 (struct x86_64_frame_cache): New structure.
6245 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6246 x86_64_frame_cache, x86_64_frame_this_id,
6247 x86_64_frame_prev_register, x86_64_frame_p,
6248 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6249 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6250 functions.
6251 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6252 variables.
6253 (x86_64_skip_prologue): Rewrite in terms of
6254 x86_64_analyze_prologue.
6255 (x86_64_frame_base_address): New function.
6256 (x86_64_frame_base): New variable.
6257 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6258 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6259 set deprecated_fp_regnum, deprecated_register_size,
6260 deprecated_register_bytes, register_raw_size, register_byte,
6261 register_virtual_type, register_convertiable,
6262 register_convert_to_virtual, convert_to_raw,
6263 deprecated_get_saved_register, deprecated_target_read_fp,
6264 deprecated_push_arguments, deprecated_push_return_address,
6265 deprecated_pop_frame, deprecated_store_struct_return,
6266 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6267 frameless_function_invocation, deprecated_frame_saved_pc,
6268 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6269 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6270 deprecated_init_frame_pc and virtual_frame_pointer. Call
6271 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6272 and x86_64_frame_p. Call frame_base_set_default to register
6273 x86_64_frame_base.
6274 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6275 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6276 (_initialize_x86_64_tdep): Remove function.
6277 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6278 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6279 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6280 define.
6281 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6282 (x86_64_linux_sigcontext_addr): Rewrite.
6283 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6284 x86_64_linux_frame_saved_pc): Remove functions.
6285 (x86_64_linux_pc_in_sigtramp): Renamed from
6286 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6287 trampoline.
6288 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6289 Remove_functions.
6290 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6291 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6292 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6293 (x86_64_regmap): Rename to regmap.
6294 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6295 x86_64_num_gregs.
6296 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6297 x86_64_regmap.
6298 (x86_64_fxsave_offset): Remove function.
6299 (supply_fpregset): Simply call x86_64_supply_fxsave.
6300 (fill_fpregset): Simply call x86_64_fill_fxsave.
6301 (fetch_inferior_registers, store_inferior_registers): Avoid
6302 asignment in if-statement.
6303 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6304 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6305 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6306 (fetch_core_registers): Remove function.
6307 (linux_elf_core_fns): Remove.
6308 (offsetoff): Don't define.
6309 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6310 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6311 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6312 add core-regset.o.
6313 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6314 protection against multiple includes instead of NM_X86_64_h. Add
6315 various comments. Include "config/nm-linux.h". Don't include
6316 <signal.h>.
6317 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6318 GET_THREAD_SIGNALS): Remove defines.
6319 (x86_64_register_u_addr, kernel_u_size,
6320 lin_thread_get_thread_signals): Remove prototypes.
6321 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6322 [HAVE_LINK_H]: Don't include "solib.h".
6323 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6324 * config/i386/tm-x86-64linux.h: Fix comments.
6325 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6326 x86-64-tdep.o): Update dependencies.
6327
c25083af
AC
63282003-05-30 Andrew Cagney <cagney@redhat.com>
6329
c8f55a7b
AC
6330 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6331 Change parameter type to a "struct regcache *".
6332
c25083af
AC
6333 * gdbarch.sh: Regardless of the multi-arch level, always define
6334 the macro when not already defined.
6335 * gdbarch.h, gdbarch.c: Re-generate.
6336
fbe586ae
RH
63372003-05-30 Richard Henderson <rth@redhat.com>
6338
6339 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6340 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6341 (alpha_mdebug_frame_this_id): Likewise.
6342 (alpha_mdebug_frame_prev_register): Likewise.
6343 (alpha_mdebug_frame_base_address): Likewise.
6344 (alpha_mdebug_frame_locals_address): Likewise.
6345 (alpha_mdebug_frame_args_address): Likewise.
6346 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6347 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6348 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6349 loop increment.
6350 (alpha_heuristic_frame_this_id): Make static.
6351 (alpha_heuristic_frame_prev_register): Likewise.
6352 (alpha_heuristic_frame_base_address): Likewise.
6353 * alpha-tdep.h: Update.
6354
acd5c798
MK
63552003-05-30 Mark Kettenis <kettenis@gnu.org>
6356
6357 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6358 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6359 defenitions.
6360 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6361 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6362 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6363 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6364 I386_ST0_REGNUM): New defines.
6365 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6366 codestream_get): Remove define.
6367 (codestream_next_addr, condestream_addr, condestream_buf,
6368 codestream_off, codestream_cnt): Remove variables.
6369 (codestream_fill, codestream_seek, codestream_read): Remove
6370 functions.
6371 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6372 functionality.
6373 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6374 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6375 i386_frame_saved_pc, i386_saved_pc_after_call,
6376 i386_frame_num_args, i386_frame_init_saved_regs,
6377 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6378 i386_push_arguments): Remove functions.
6379 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6380 functionality. Use i386_analyze_prologue instead of
6381 i386_get_frame_setup.
6382 (I386_NUM_SAVED_REGS): New define.
6383 (struct i386_frame_cache): New structure.
6384 (i386_alloc_frame_cache, i386_analyze_struct_return,
6385 i386_skip_probe, i386_analyze_frame_setup,
6386 i386_analyze_register_saves, i386_analyze_prologue,
6387 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6388 i386_frame_prev_register, i386_sigtramp_frame_cache,
6389 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6390 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6391 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6392 New functions.
6393 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6394 New variables.
6395 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6396 I386_EAX_REGNUM and I386_EDX_REGNUM.
6397 (i386_extract_return_value, i386_store_return_value): Use
6398 I386_ST0_REGNUM where appropriate.
6399 (i386_extract_struct_value_address): Rewrite to use extract_address.
6400 (i386_svr4_pc_in_sigtramp): Add comment.
6401 (i386_svr4_sigcontext_addr): Rewrite.
6402 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6403 TDEP->sc_sp_offset.
6404 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6405 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6406 of new defines. Set push_dummy_call, don't set
6407 deprecated_push_arguments, deprecated_push_return_address,
6408 deprecated_pop_frame. Don't set parm_boundary. Don't set
6409 deprecated_frame_chain, deprecated_frame_saved_pc,
6410 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6411 save_dummy_frame_tos, unwind_pc. Call
6412 frame_unwind_append_predicate and frame_base_set_default. Don't
6413 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6414 Don't set frameless_function_invocation. Don't set
6415 deprecated_register_bytes, deprecated_register_size,
6416 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6417 * i386-linux-tdep.c: Fix formatting in some comments.
6418 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6419 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6420 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6421 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6422 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6423 redundant parentheses.
6424 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6425 (i386_linux_sigcontext_addr): Use it. Rewrite.
6426 (find_minsym_and_objfile): Change name of second argument.
6427 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6428 changed. Use frame_pc_unwind instead of
6429 DEPRECATED_SAVED_PC_AFTER_CALL.
6430 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6431 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6432 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6433 unwinder.
6434 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6435 "dummy-frame.h".
6436 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6437 (_initialize_i386_cygwin_tdep): New prototype.
6438 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6439 deprecated_frame_chain_valid.
6440 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6441 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6442 Rely on the SVR4 defaults.
6443 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6444 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6445
c89b70f1
AC
64462003-05-30 Andrew Cagney <cagney@redhat.com>
6447
6448 * infcall.c (call_function_by_hand): Always call
6449 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6450
85b32d22
RH
64512003-05-30 Richard Henderson <rth@redhat.com>
6452
c89b70f1
AC
6453 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6454 increment.
85b32d22 6455
bfe51b1e
JB
64562003-05-29 Jim Blandy <jimb@redhat.com>
6457
6458 Use gdbarch methods for solib stuff on PowerPC Linux.
6459 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6460 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6461 show through.
6462 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6463 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6464 giving the same effect as the #definitions above.
6465
1abf022c
AF
64662003-05-29 Adam Fedor <fedor@gnu.org>
6467
6468 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6469 (find_implementation_from_class): Replace it with the standard
6470 case i.e. do nothing.
6471
d2427a71
RH
64722003-05-29 Richard Henderson <rth@redhat.com>
6473
6474 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6475 (alpha_linux_sigtramp_offset): Use it. Make static.
6476 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6477 update for new frame model.
6478 * alpha-mdebug-tdep.c: New file.
6479 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6480 (alpha_osf1_init_abi): Install it.
6481 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6482 (linked_proc_desc_table): Remove.
6483 (alpha_frame_past_sigtramp_frame): Remove.
6484 (alpha_dynamic_sigtramp_offset): Remove.
6485 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6486 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6487 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6488 (push_sigtramp_desc): Remove.
6489 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6490 (alpha_cannot_store_register): Likewise.
6491 (alpha_sigcontext_addr): Remove.
6492 (alpha_find_saved_regs): Remove.
6493 (alpha_frame_init_saved_regs): Remove.
6494 (alpha_init_frame_pc_first): Remove.
6495 (read_next_frame_reg): Remove.
6496 (alpha_frame_saved_pc): Remove.
6497 (alpha_saved_pc_after_call): Remove.
6498 (temp_proc_desc, temp_saved_regs): Remove.
6499 (alpha_about_to_return): Remove.
6500 (cached_proc_desc): Remove.
6501 (alpha_frame_chain): Remove.
6502 (alpha_print_extra_frame_info): Remove.
6503 (alpha_init_extra_frame_info): Remove.
6504 (alpha_frame_locals_address): Remove.
6505 (alpha_frame_args_address): Remove.
6506 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6507 (alpha_push_dummy_frame): Remove.
6508 (alpha_pop_frame): Remove.
6509 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6510 (alpha_read_insn): New.
6511 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6512 for different insn encodings.
6513 (alpha_in_lenient_prologue): Remove.
6514 (struct alpha_sigtramp_unwind_cache): New.
6515 (alpha_sigtramp_frame_unwind_cache): New.
6516 (alpha_sigtramp_register_address): New.
6517 (alpha_sigtramp_frame_this_id): New.
6518 (alpha_sigtramp_frame_prev_register): New.
6519 (alpha_sigtramp_frame_unwind): New.
6520 (alpha_sigtramp_frame_p): New.
6521 (struct alpha_heuristic_unwind_cache): New.
6522 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6523 don't count nop insns that occur between functions.
6524 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6525 heuristic_proc_desc, but without the mdebug wrapping.
6526 (alpha_heuristic_frame_this_id): New.
6527 (alpha_heuristic_frame_prev_register): New.
6528 (alpha_heuristic_frame_unwind): New.
6529 (alpha_heuristic_frame_p): New.
6530 (alpha_heuristic_frame_base_address): New.
6531 (alpha_heuristic_frame_base): New.
6532 (alpha_unwind_dummy_id): New.
6533 (alpha_unwind_pc): New.
6534 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6535 frame related deprecated initializations; install replacements.
6536 (alpha_dump_tdep): Remove.
6537 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6538 (alpha_read_insn, alpha_after_prologue,
6539 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6540 alpha_heuristic_frame_prev_register,
6541 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6542 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6543 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6544 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6545
93ec1121
AC
65462003-05-29 Andrew Cagney <cagney@redhat.com>
6547
6548 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6549 dependant on the availability of ASSERT_FUNCTION.
6550 (ASSERT_FUNCTION): Do not define when there is no function name.
6551
98f08d3d
KB
65522003-05-29 Kevin Buettner <kevinb@redhat.com>
6553
6554 From Jimi X <jimix@watson.ibm.com>:
6555 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6556
0897f59b
JB
65572003-05-28 Jim Blandy <jimb@redhat.com>
6558
6559 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6560 argument to ptrace to int; the system headers should give it the
6561 right type, and pointers don't fit in ints on powerpc64-*-*.
6562
14898363
L
65632003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6564
6565 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6566 DW_TAG_catch_block.
6567
a7a48797
EZ
65682003-05-26 Elena Zannoni <ezannoni@redhat.com>
6569
6570 * stabsread.c (dbx_lookup_type): Make static.
6571 (read_type): Ditto.
6572 (add_undefined_type): Ditto.
6573 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6574 not export.
6575
f5479e9c
EZ
65762003-05-26 Elena Zannoni <ezannoni@redhat.com>
6577
6578 * hpread.c (hpread_has_name): Make static.
6579 (hpread_psymtab_to_symtab): Ditto.
6580 (file_exists): Ditto.
6581 (hpread_call_pxdb): Ditto.
6582 (hpread_pxdb_needed): Ditto.
6583 (hpread_quick_traverse): Ditto.
6584 (hpread_get_header): Ditto.
6585 (hpread_get_lntt): Ditto.
6586 (hpread_get_slt): Ditto.
6587 (class_of): Ditto.
6588
eb2e12d7
AS
65892003-05-25 Andreas Schwab <schwab@suse.de>
6590
78bf922a
AS
6591 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6592 stack_align and deprecated_extra_stack_alignment_needed.
6593 (m68k_stack_align): Delete.
6594
eb2e12d7
AS
6595 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6596 (m68k_register_virtual_size): Likewise.
6597 (altos_skip_prologue): Remove obsolete function.
6598 (isi_frame_num_args): Likewise.
6599 (news_frame_num_args): Likewise.
6600 (m68k_fix_call_dummy): Make static.
6601 (m68k_push_dummy_frame): Likewise.
6602 (m68k_pop_frame): Likewise.
6603 (m68k_skip_prologue): Likewise.
6604 (m68k_frame_init_saved_regs): Likewise.
6605 (m68k_saved_pc_after_call): Likewise.
6606 (m68k_get_longjmp_target): Make multi-arch.
6607 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6608 structure. Register m68k_get_longjmp_target if enabled.
6609 * m68k-tdep.h (struct gdbarch_tdep): Define.
6610 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6611
6612 * Makefile.in (config.status): Also depend on configure.tgt
6613 and configure.host.
6614 (m68klinux-tdep.o): Update dependencies.
6615 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6616 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6617 (M68K_LINUX_JB_PC): Define.
6618 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6619 and take additional parameter.
6620 (m68k_linux_sigtramp_saved_pc): Update.
6621 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6622 m68k_linux_pc_in_sigtramp, in_plt_section,
6623 find_solib_trampoline_target.
6624 * config/m68k/tm-linux.h: Don't include any tm headers.
6625 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6626 (JB_ELEMENT_SIZE): Likewise.
6627 (JB_PC): Likewise.
6628 (GET_LONGJMP_TARGET): Likewise.
6629 (IN_SIGTRAMP): Likewise.
6630 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6631
eb2c22dc
MK
66322003-05-25 Mark Kettenis <kettenis@gnu.org>
6633
6634 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6635 (sparc32_push_arguments): Re-implement by calling
6636 sparc32_do_push_arguments.
6637
44b7b84e
MK
66382003-05-25 Mark Kettenis <kettenis@gnu.org>
6639
6640 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6641 SPARC_O1_REGNUM): New defines.
6642 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6643 (sparc32_store_return_value): New function.
6644 (sparc_extract_struct_value_address): Rewrite to operate on a
6645 regcache.
6646 (sparc_gdbarch_init): Don't set
6647 deprecated_extract_struct_value_address. Set
6648 extract_struct_value_address instead. Don't set
6649 deprecated_extract_return_value and deprecated_store_return_value
6650 for 32-bit targets. Set extract_return_value and
6651 store_return_value instead.
6652 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6653 DEPRECTAED_EXTRACT_RETURN_VALUE,
6654 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6655 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6656 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6657 (sparc_store_return_value): Remove prototype.
6658 (sparc32_store_return_value): New prototype.
6659 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6660 Adjust prototypes.
6661
f6ad61e3
MK
66622003-05-24 Mark Kettenis <kettenis@gnu.org>
6663
6664 * sparcnbsd-tdep.c: Include "gdb_string.h".
6665
b276f1bb
AC
66662003-05-23 Andrew Cagney <cagney@redhat.com>
6667
6668 * p-valprint.c (pascal_val_print): Replace extract_address with
6669 the inline equivalent extract_unsigned_integer.
6670 * jv-valprint.c (java_value_print): Ditto.
6671 * ada-valprint.c (ada_val_print_1): Ditto.
6672 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6673
e76c5fcc
TR
66742003-05-23 Theodore A. Roth <troth@openavr.org>
6675
6676 * blockframe.c (frameless_look_for_prologue): Remove unused
6677 after_prologue variable.
6678
2cdd89cb
MK
66792003-05-23 Mark Kettenis <kettenis@gnu.org>
6680
6681 * blockframe.c (get_pc_function_start): Rewrite to avoid
6682 asignments in if-statements.
6683
182d43bc
EZ
66842003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6685
6686 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6687 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6688 files, don't relocate absolute symbols (and do use mst_abs).
6689
e8f3fcdd
AC
66902003-05-23 Andrew Cagney <cagney@redhat.com>
6691
6692 * objc-lang.c: Include "gdb_assert.h".
6693 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6694 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6695 (gdb_check, gdb_check_fatal): Delete functions.
6696 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6697 gdb_assert.
6698 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6699 * Makefile.in (objc-lang.o): Update dependencies.
6700
3c23e6fb
ILT
67012003-05-22 Ian Lance Taylor <ian@airs.com>
6702
6703 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6704 with fprintf_filtered, not fprintf_unfiltered.
6705
af1342ab
AC
67062003-05-22 Andrew Cagney <cagney@redhat.com>
6707
6708 * stack.c (frame_info): Inline extract_address, replacing it with
6709 extract_unsigned_integer.
6710 * findvar.c (unsigned_pointer_to_address): Ditto.
6711 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6712 * dwarf2expr.c (dwarf2_read_address): Ditto.
6713 * frame.c (frame_pc_unwind): Update comment.
6714 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6715
47e242ec
JJ
67162003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6717
6718 * infptrace.c (detach): Call print_sys_errmsg rather than
6719 perror_with_name to issue warning message when errno is non-zero
6720 after calling ptrace detach.
6721
e2ac8128
JB
67222003-05-21 J. Brobecker <brobecker@gnat.com>
6723
6724 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6725 macro definitions from here...
6726 * hppa-tdep.c: ...to there.
6727
92b3541e
KB
67282003-05-20 Kevin Buettner <kevinb@redhat.com>
6729
6730 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6731 register_ptrace_addr(). Fix all callers.
6732
55809acb
AS
67332003-05-21 Andreas Schwab <schwab@suse.de>
6734
6735 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6736 dependencies.
6737 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6738 end.
6739 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6740 (_initialize_m68k_linux_tdep): New function.
6741 (m68k_linux_frame_saved_pc): Make static.
6742 (m68k_linux_extract_return_value): Likewise.
6743 (m68k_linux_store_return_value): Likewise.
6744 (m68k_linux_extract_struct_value_address): Likewise.
6745 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6746 Remove.
6747 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6748 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6749 (DEPRECATED_FRAME_SAVED_PC): Remove.
6750
0fbc10f7
KW
67512003-05-20 Kris Warkentin <kewarken@qnx.com>
6752
6753 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6754 regset numbering rather than our own.
6755
58da2eb2
DC
67562003-05-19 David Carlton <carlton@bactrian.org>
6757
6758 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6759
1fcb5155
DC
67602003-05-19 David Carlton <carlton@bactrian.org>
6761
6762 Partial fix for PR c++/827.
6763 * cp-support.h: Include symtab.h.
6764 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6765 * cp-namespace.c: Update contributors.
6766 (cp_lookup_symbol_nonlocal): New.
6767 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6768 (lookup_symbol_file): Ditto.
6769 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6770 * block.h: Declare block_scope, block_using, block_global_block.
6771 * block.c (block_scope): New.
6772 (block_using, block_global_block): Ditto.
6773 * Makefile.in (cp_support_h): Depend on symtab_h.
6774 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6775
5f9a71c3
DC
67762003-05-19 David Carlton <carlton@bactrian.org>
6777
6778 * language.h (struct language_defn): Add 'la_value_of_this'
6779 and 'la_lookup_symbol_nonlocal' members.
6780 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6781 lookup_symbol_static, lookup_symbol_global,
6782 lookup_symbol_aux_block.
6783 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6784 if we should search fields of this and how to do static/global
6785 lookup.
6786 (lookup_symbol_aux_block): Make extern.
6787 (basic_lookup_symbol_nonlocal): New.
6788 (lookup_symbol_static, lookup_symbol_global): Ditto.
6789 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6790 'la_lookup_symbol_nonlocal' members.
6791 * c-lang.c (c_language_defn, cplus_language_defn)
6792 (asm_language_defn, minimal_language_defn): Ditto.
6793 * jv-lang.c (java_language_defn): Ditto.
6794 * language.c (unknown_language_defn, auto_language_defn)
6795 (local_language_defn): Ditto.
6796 * m2-lang.c (m2_language_defn): Ditto.
6797 * objc-lang.c (objc_language_defn): Ditto.
6798 * scm-lang.c (scm_language_defn): Ditto.
6799 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6800 * p-lang.c (pascal_language_defn): Ditto for both.
6801 * Makefile.in (f-lang.o): Depend on value_h.
6802 (p-lang.o): Ditto.
6803
89a9d1b1
DC
68042003-05-19 David Carlton <carlton@bactrian.org>
6805
6806 * block.h: Declare block_static_block.
6807 * block.c (block_static_block): New.
6808 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6809 lookup_symbol_aux_local, calling block_static_block instead.
6810 (lookup_symbol_aux_local): Delete 'static_block' argument.
6811
eed3f8ab
DC
68122003-05-19 David Carlton <carlton@bactrian.org>
6813
6814 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6815
a09d8bda
ML
68162003-05-19 Michal Ludvig <mludvig@suse.cz>
6817
6818 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6819 register numbers mapping.
6820
69636828
AF
68212003-05-18 Adam Fedor <fedor@gnu.org>
6822
6823 * symtab.c (completion_list_objc_symbol): New function.
6824 (make_symbol_completion_list): Use it to add ObjC symbols
6825 when looking though the list.
6826 (language_search_unquoted_string): New function.
6827 (make_file_symbol_completion_list): Use it.
6828
55baeb84
AS
68292003-05-18 Andreas Schwab <schwab@suse.de>
6830
d0b45d99
AS
6831 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6832 dependencies.
6833 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6834 as m68k_linux_extract_return_value.
6835 (DEPRECATED_STORE_RETURN_VALUE): Define as
6836 m68k_linux_store_return_value.
6837 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6838 m68k_linux_extract_struct_value_address.
6839 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6840 get_next_frame, get_frame_base, get_frame_pc.
6841 (m68k_linux_frame_saved_pc): Use get_frame_base.
6842 (m68k_linux_extract_return_value): New function.
6843 (m68k_linux_store_return_value): New function.
6844 (m68k_linux_extract_struct_value_address): New function.
6845 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6846
55baeb84
AS
6847 * c-exp.y (typebase): Remove duplicate occurence of
6848 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6849 of lookup_signed_typename.
55baeb84 6850
b6b08ebf
MK
68512003-05-18 Mark Kettenis <kettenis@gnu.org>
6852
6853 * dwarf2loc.c (find_location_expression): Change type of second
6854 argument to `size_t *'.
6855 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6856 for size variable.
6857
5ad1c190
DC
68582003-05-18 David Carlton <carlton@bactrian.org>
6859
6860 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6861 'linkage_name'. Add comment.
6862 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6863 'linkage_name'.
6864 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6865 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6866 (lookup_block_symbol): Ditto.
6867
b8b527c5
AC
68682003-05-16 Andrew Cagney <cagney@redhat.com>
6869
6870 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6871 * gdbarch.h, gdbarch.c: Re-generate.
6872 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6873 * TODO (REGISTER_BYTES): Delete reference.
6874 * alpha-tdep.c (alpha_gdbarch_init): Update.
6875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6876 * x86-64-tdep.c (x86_64_init_abi): Update.
6877 * vax-tdep.c (vax_gdbarch_init): Update.
6878 * v850-tdep.c (v850_gdbarch_init): Update.
6879 * sparc-tdep.c (sparc_gdbarch_init): Update.
6880 * sh-tdep.c (sh_gdbarch_init): Update.
6881 * s390-tdep.c (s390_gdbarch_init): Update.
6882 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6883 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6884 (ns32k_gdbarch_init_32382): Update.
6885 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6886 * mcore-tdep.c (mcore_gdbarch_init): Update.
6887 * m68k-tdep.c (m68k_gdbarch_init): Update.
6888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6889 * ia64-tdep.c (ia64_gdbarch_init): Update.
6890 * i386-tdep.c (i386_gdbarch_init): Update.
6891 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6892 * hppa-tdep.c (hppa_gdbarch_init): Update.
6893 * h8300-tdep.c (h8300_gdbarch_init): Update.
6894 * frv-tdep.c (frv_gdbarch_init): Update.
6895 * cris-tdep.c (cris_gdbarch_init): Update.
6896 * avr-tdep.c (avr_gdbarch_init): Update.
6897 * arm-tdep.c (arm_gdbarch_init): Update.
6898 * sparc-tdep.c (sparc_pop_frame): Update.
6899 * rs6000-tdep.c (rs6000_pop_frame): Update.
6900 * remote.c (init_remote_state): Update.
6901 (remote_prepare_to_store): Update.
6902 * remote-vx.c (vx_prepare_to_store): Update.
6903 * remote-sds.c (sds_fetch_registers): Update.
6904 (sds_prepare_to_store): Update.
6905 * remote-array.c: Update.
6906 * regcache.c (init_legacy_regcache_descr): Update.
6907 (init_regcache_descr): Update.
6908 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6909 (mips_o64_extract_return_value): Update.
6910 * irix5-nat.c (fetch_core_registers): Update.
6911 * irix4-nat.c (fetch_core_registers): Update.
6912 * i386-tdep.h: Update.
6913 * hppa-tdep.c (pa_do_registers_info): Update.
6914 (pa_do_strcat_registers_info): Update.
6915 * cris-tdep.c (cris_register_bytes_ok): Update.
6916 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6917 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6918 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6919 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6920 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6921 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6922 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6923 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6924 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6925 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6926 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6927 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6928 (REGISTER_BYTES_OK): Update.
6929 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6930 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6931
ee2842e2
ILT
69322003-05-16 Ian Lance Taylor <ian@airs.com>
6933
6934 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6935 (vax_print_insn, print_insn_arg): Remove static functions.
6936 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6937 print_insn_vax from opcodes library.
6938 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6939
973177d3
AC
69402003-05-15 Andrew Cagney <cagney@redhat.com>
6941
aaab4dba
AC
6942 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6943 * target.h (memory_breakpoint_from_pc): Delete declaration.
6944 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6945 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6946 * monitor.c (monitor_insert_breakpoint): Use
6947 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6948 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6949 * gdbarch.h, gdbarch.c: Re-generate.
6950 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6951 (sparc_gdbarch_init): Set breakpoint_from_pc to
6952 sparc_breakpoint_from_pc.
6953 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6954 (BREAKPOINT_FROM_PC): Define.
6955 (sparc_breakpoint_from_pc): Declare.
6956 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6957 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6958 (BREAKPOINT_FROM_PC): Define.
6959 (BREAKPOINT): Delete macro.
6960 * target.h: Update comment.
6961 * s390-tdep.c (s390_gdbarch_init): Update comments.
6962 * remote.c: Update comments.
6963 * remote-mips.c: Update comments.
6964 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6965 * mem-break.c: Update comment.
6966 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6967 (ia64_memory_insert_breakpoint): Update.
6968 * config/sparc/tm-sparc.h: Update comment.
6969 * config/pa/tm-hppa64.h: Update comment.
6970 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6971 (rs6000_breakpoint_from_pc): Update.
6972 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6973 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6974 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6975 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6976 (mips_breakpoint_from_pc): Update.
6977 (mips_dump_tdep): Update.
6978
e06963ff
AC
6979 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6980 * minsyms.c (lookup_minimal_symbol): Inline
6981 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6982
973177d3
AC
6983 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6984 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6985 * p-lang.c (pascal_printstr): Ditto.
6986 * objc-lang.c (objc_printstr): Ditto.
6987 * m2-lang.c (m2_printstr): Ditto.
6988 * jv-valprint.c (java_print_value_fields): Ditto.
6989 * f-lang.c (f_printstr): Ditto.
6990 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6991 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6992 for repeat_count_threshold.
6993 * Makefile.in (cp-valprint.o): Update dependencies.
6994
5ea2bd7f 69952003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 6996
5ea2bd7f
JJ
6997 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6998 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
6999 they start with mov r2,r12. Support skipping over indirect stores
7000 of the input registers. Upon hitting a non-nop branch instruction
7001 or predicated instruction, bail out by setting lim_pc to the current
7002 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7003 beyond our calculated value and we have trust_limit set,
7004 use the lim_pc value.
7005
cc8c88f3
AC
70062003-05-15 Andrew Cagney <cagney@redhat.com>
7007
7008 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7009 generic_find_dummy_frame.
7010 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7011 (deprecated_generic_find_dummy_frame): Update.
7012 (deprecated_read_register_dummy): Update.
7013 * frame.c (deprecated_generic_get_saved_register): Update.
7014
909cd28e
TR
70152003-05-15 Theodore A. Roth <troth@openavr.org>
7016
7017 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7018 (avr_gdbarch_init): Set breakpoint_from_pc method.
7019
b923b08d
AC
70202003-05-15 Andrew Cagney <cagney@redhat.com>
7021
7022 * regcache.c (build_regcache): Set deprecated_register_valid
7023 directly.
7024 (deprecated_grub_regcache_for_register_valid): Delete function.
7025 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7026 declaration.
7027
ae2f03ac 70282003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7029
7030 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7031 * symtab.c (lookup_symbol_aux): Delete calls to
7032 lookup_symbol_aux_minsyms.
7033 (lookup_symbol_aux_minsyms): Comment out function and
7034 prototype. Delete lookup by mangled name.
ae2f03ac 7035
18ec9831
KB
70362003-05-14 Kevin Buettner <kevinb@redhat.com>
7037
7038 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7039 correctly indicate an empty stack and ``stack_allocated'' to the
7040 indicate the number of elements initially allocated.
7041 (dwarf_expr_grow_stack): Simplify method for computing new
7042 stack size. Don't loop infinitely if ``stack_len'' is zero.
7043 (execute_stack_op): Move ``ctx->in_reg'' initialization
7044 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7045 be used in conjuction with DW_OP_piece. Revise error message
7046 accordingly.
7047
de18ac1f
TR
70482003-05-14 Theodore A. Roth <troth@openavr.org>
7049
7050 * MAINTAINERS: Update my email address.
7051 * avr-tdep.c: Ditto.
7052
176620f1
EZ
70532003-05-14 Elena Zannoni <ezannoni@redhat.com>
7054
7055 * symtab.h (enum domain_enum): Rename from namespace_enum.
7056 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7057 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7058 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7059 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7060 TYPES_NAMESPACE, METHODS_NAMESPACE.
7061 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7062 (struct symbol, struct partial_symbol): Rename field
7063 'namespace_enum namespace' to 'domain_enum domain'.
7064 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7065 Delete old define kludge for namespace.
7066
7067 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7068 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7069 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7070 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7071 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7072 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7073 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7074 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7075 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7076 occurrences of the above.
7077
b7f31508
ILT
70782003-05-14 Ian Lance Taylor <ian@airs.com>
7079
7080 * Makefile.in (install-only): Use $(SHELL) when running
7081 mkinstalldirs.
7082
2fdbdd39
ILT
70832003-05-13 Ian Lance Taylor <ian@airs.com>
7084
a208d82c
ILT
7085 * MAINTAINERS (write after approval): Add myself.
7086
2fdbdd39
ILT
7087 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7088 second and third arguments.
7089 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7090 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7091
fbd9dcd3
AC
70922003-05-13 Andrew Cagney <cagney@redhat.com>
7093
7094 * defs.h (store_address): Delete declaration.
7095 findvar.c (store_address): Delete function.
7096 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7097 store_unsigned_integer.
7098 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7099 * v850-tdep.c (v850_push_arguments): Ditto.
7100 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7101 * sh-tdep.c (sh64_get_saved_register): Ditto.
7102 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7103 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7104 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7105 (mips_get_saved_register): Ditto.
7106 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7107 (find_func_descr, ia64_push_arguments): Ditto.
7108 * i386-tdep.c (i386_push_arguments): Ditto.
7109 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7110 * frv-tdep.c (frv_push_arguments): Ditto.
7111 * frame.c (legacy_saved_regs_prev_register): Ditto.
7112 (deprecated_generic_get_saved_register): Ditto.
7113 * findvar.c (unsigned_address_to_pointer): Ditto.
7114 * dwarf2read.c (dwarf2_const_value): Ditto.
7115 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7116 * alpha-tdep.c (alpha_push_arguments): Ditto.
7117
6760f9e6
JB
71182003-05-12 J. Brobecker <brobecker@gnat.com>
7119
7120 * NEWS: Mention that the hppa-hpux port has been partially
7121 multiarched (32bit ABIT only, so far).
7122
30e221b4
AC
71232003-05-11 Andrew Cagney <cagney@redhat.com>
7124
7125 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7126 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7127 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7128 sim/testsuite/sim/arm/misaligned2.ms, and
7129 sim/testsuite/sim/arm/misaligned3.ms.
7130 * disasm.h (struct ui_file): Add opaque struct declaration.
7131 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7132 * frame.h (struct ui_file): Ditto.
7133
dea7f9ba
MK
71342003-05-11 Mark Kettenis <kettenis@gnu.org>
7135
7136 * value.h: Pretty print.
7137
01986c48
MK
71382003-05-10 Mark Kettenis <kettenis@gnu.org>
7139
7140 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7141
123a958e
AC
71422003-05-08 Andrew Cagney <cagney@redhat.com>
7143
7144 * regcache.h (max_register_size): Delete declaration.
7145 * regcache.c (max_register_size): Delete function.
7146 (struct regcache_descr): Delete field "max_register_size".
7147 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7148 registers fit in MAX_REGISTER_SIZE.
7149 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7150 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7151 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7152 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7153 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7154 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7155 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7156 * dve3900-rom.c, hppa-tdep.c: Ditto.
7157
eb294659
DC
71582003-05-08 David Carlton <carlton@math.stanford.edu>
7159
7160 * valops.c (push_word): Fix typo.
7161
d9d9c31f
AC
71622003-05-08 Andrew Cagney <cagney@redhat.com>
7163
7164 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7165 * gdbarch.h: Re-generate.
7166 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7167 (legacy_max_register_raw_size): Delete declaration.
7168 * regcache.c (legacy_max_register_raw_size): Delete function.
7169 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7170 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7171 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7172 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7173 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7174 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7175 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7176 * findvar.c, dwarf2cfi.c: Ditto.
7177
22540ece
AC
71782003-05-08 Andrew Cagney <cagney@redhat.com>
7179
7180 * mips-tdep.c (read_signed_register): New function, moved to here
7181 from "regcache.c".
7182 (read_signed_register_pid): Ditto.
7183 * regcache.c (read_signed_register_pid): Delete function, moved to
7184 "mips-tdep.c".
7185 (read_signed_register): Ditto.
7186 * regcache.h (read_signed_register): Delete declaration.
7187 (read_signed_register_pid): Delete declaration.
7188
0c92afe8
AC
71892003-05-08 Andrew Cagney <cagney@redhat.com>
7190
7191 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7192 * gdbarch.h: Re-generate.
7193 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7194 (legacy_max_register_virtual_size): Delete declaration.
7195 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7196 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7197 * tracepoint.c (memrange_sortmerge): Ditto.
7198 * sparc-tdep.c (sparc_print_registers): Ditto.
7199 * regcache.c (legacy_max_register_virtual_size): Delete function.
7200
6037b830
JB
72012002-05-08 J. Brobecker <brobecker@gnat.com>
7202
7203 * fork-child.c (escape_bang_in_quoted_argument): New function.
7204 (fork_inferior): Escape '!' characters in quoted arguments
7205 only when needed.
7206
5d62c8b1
JB
72072003-05-08 J. Brobecker <brobecker@gnat.com>
7208
7209 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7210 the language of the CU is not currently supported by GDB.
7211
20a0e81d
JB
72122003-05-08 J. Brobecker <brobecker@gnat.com>
7213
7214 * defs.h (language): Add language_minimal enum value.
7215 * c-lang.c (minimal_language_defn): New language definition.
7216 (_initialize_c_language): Add the new minimal language to the list
7217 of languages known to GDB.
7218
710ee10a
KB
72192003-05-08 Kevin Buettner <kevinb@redhat.com>
7220
7221 * frame.c (get_frame_type): Don't attempt to lazily initialize
7222 frame's unwinder for legacy frames.
7223
1750fa04
AC
72242003-05-07 Andrew Cagney <cagney@redhat.com>
7225
7226 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7227 and "regcache" parameters.
7228 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7229
ddf9f258 72302003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7231
7232 * dwarf2read.c (dwarf_decode_lines): Only use output of
7233 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7234 the current address.
7235
87767c29
AC
72362003-05-07 Andrew Cagney <cagney@redhat.com>
7237
7238 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7239 code.
7240
5e7b2f39
JB
72412003-05-07 Jim Blandy <jimb@redhat.com>
7242
7243 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7244 'maint info symtabs' and 'maint info psymtabs'.
7245 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7246 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7247 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7248 Declarations updated.
7249 * maint.c (maintenance_list_command): Delete.
7250 (_initialize_maint_cmds): Update calls to add_cmd.
7251 * gdbcmd.h (maintenancelistlist): Delete declaration.
7252 * cli/cli-cmds.c (maintenancelistlist): Delete.
7253 (init_cmd_lists): Don't initialize it.
7254 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7255
f6684c31
AC
72562003-05-07 Andrew Cagney <cagney@redhat.com>
7257
7258 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7259 "regcache".
7260 (d10v_print_registers_info): Update.
7261 (d10v_dmap_register, d10v_imap_register): Delete functions.
7262 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7263 and "imap_register".
7264 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7265 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7266 * arch-utils.c (generic_remote_translate_xfer_address): Add
7267 "regcache" and "gdbarch" parameters.
7268 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7269 parameter. Change class to multi-arch.
7270 * gdbarch.h, gdbarch.c: Re-generate.
7271 * remote.c (remote_xfer_memory): Use
7272 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7273
e4846b08
JJ
72742003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7275
7276 * infrun.c (prev_pc): Move declaration ahead of proceed().
7277 (proceed): Refresh prev_pc value before resuming.
7278 (stop_stepping): Remove code to refresh prev_pc.
7279
6b71b8ac
KW
72802003-05-06 Kris Warkentin <kewarken@qnx.com>
7281
7282 * nto-tdep.c: Removed stray comment.
7283
47979a4b
KW
72842003-05-06 Kris Warkentin <kewarken@qnx.com>
7285
7286 * i386-nto-tdep.c: Fix old K&R function definitions.
7287 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7288 Also change add_show_from_set() call to add_setshow_cmd().
7289 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7290
00905d52
AC
72912003-05-05 Andrew Cagney <cagney@redhat.com>
7292
7293 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7294 (fprint_dummy_frames): New function.
7295 (maintenance_print_dummy_frames): New function.
7296 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7297 * frame.c (fprint_frame_id): Make global.
7298 * frame.h (fprint_frame_id): Declare.
7299 * Makefile.in (dummy-frame.o): Update dependencies.
7300
b1e29e33
AC
73012003-05-05 Andrew Cagney <cagney@redhat.com>
7302
7303 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7304 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7305 SIZEOF_CALL_DUMMY_WORDS.
7306 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7307 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7308 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7309 CALL_DUMMY_BREAKPOINT_OFFSET.
7310 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7311 CALL_DUMMY_START_OFFSET.
7312 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7313 * gdbarch.h, gdbarch.c: Re-generate.
7314 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7315 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7316 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7317 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7318 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7319 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7320 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7321 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7322 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7323 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7324 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7325 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7326 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7327 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7328 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7329
73302003-05-05 Kris Warkentin <kewarken@qnx.com>
7331
7332 * configure.tgt: Add i[3456]86-*-nto*.
7333 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7334 * nto-tdep.c: New file. Neutrino target support routines.
7335 * nto-tdep.h: New file. Neutrino target header.
7336 * config/tm-qnxnto.h: New file.
7337 * config/i386/i386nto.mt: New file.
7338 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7339
0ce3d317
AC
73402003-05-04 Andrew Cagney <cagney@redhat.com>
7341
7342 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7343 (load_infrun_state): Ditto.
7344 (struct thread_info): Drop "prev_func_name" field.
7345 * thread.c (load_infrun_state): Update.
7346 (save_infrun_state): Update.
7347 * infrun.c (prev_func_name): Delete variable.
7348 (init_wait_for_inferior): Do not clear prev_func_name.
7349 (stop_stepping, keep_going, context_switch): Do not swap
7350 prev_func_name.
7351 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7352 instead of PC_IN_SIGTRAMP.
7353
46654a5b
AC
73542003-05-04 Andrew Cagney <cagney@redhat.com>
7355
7356 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7357 REGISTER_BYTE with register_offset_hack.
7358 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7359 that REGISTER_BYTE is consistent with the regcache.
7360 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7361 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7362
14b08c1b
MK
73632003-05-04 Mark Kettenis <kettenis@gnu.org>
7364
04c8243f
MK
7365 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7366 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7367
14b08c1b
MK
7368 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7369
c7a11e01
JB
73702003-05-03 J. Brobecker <brobecker@gnat.com>
7371
7372 From Thierry Schneider <tpschneider1@yahoo.com>
7373 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7374 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7375 (mi-cmd-symbol.o): Add rule.
7376
7043d8dc
AC
73772003-05-03 Andrew Cagney <cagney@redhat.com>
7378
7379 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7380 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7381 * gdbarch.h, gdbarch.c: Re-generate.
7382 * d10v-tdep.c (d10v_push_dummy_code): New function.
7383 (d10v_gdbarch_init): Set push_dummy_code.
7384 * infcall.c (legacy_push_dummy_code): New function.
7385 (generic_push_dummy_code): New function.
7386 (push_dummy_code): New function.
7387 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7388 instead of dummy_addr, to push_dummy_call. Move call to
7389 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7390 switch.
7391 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7392
92bf2b80
AC
73932003-05-03 Andrew Cagney <cagney@redhat.com>
7394
7395 * disasm.h (print_insn): Declare.
7396 * disasm.c (init_gdb_disassemble_info): New function.
7397 (gdb_disassembly): Call init_gdb_disassemble_info.
7398 (gdb_print_insn): New function.
7399 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7400 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7401 * mcore-tdep.c: Include "disasm.h"
7402 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7403 * d10v-tdep.c: Include "disasm.h".
7404 (display_trace): Call gdb_print_insn, instead of print_insn.
7405 (print_insn): Delete function.
7406 * printcmd.c: Include "disasm.h".
7407 (print_insn): Delete function.
7408 (print_formatted): Call gdb_print_insn, instead of print_insn.
7409 * Makefile.in (printcmd.o): Update dependencies.
7410 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7411
27d94c49
AC
74122003-05-02 Andrew Cagney <cagney@redhat.com>
7413
82de1e5b
AC
7414 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7415 PC_REGNUM, re-indent.
7416 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7417 PC_REGNUM isn't set.
7418
27d94c49
AC
7419 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7420 * gdbarch.h, gdbarch.c: Re-generate.
7421 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7422 register_virtual_size, pc_regnum, or register_bytes.
7423 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7424 (d10v_register_type): Use D10V_PC_REGNUM.
7425 (d10v_print_registers_info, d10v_read_pc): Ditto.
7426 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7427 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7428
a9c0dc7f
DC
74292003-05-02 David Carlton <carlton@bactrian.org>
7430
7431 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7432 the name with mstrsave.
7433
e33d66ec
EZ
74342003-05-02 Elena Zannoni <ezannoni@redhat.com>
7435
7436 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7437 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7438 (host_charset_name, target_charset_name): New vars for use by
7439 set/show commands.
7440 (host_charset_enum, target_charset_enum): New enums for set/show
7441 commands.
7442 (set_charset_sfunc, set_host_charset_sfunc,
7443 set_target_charset_sfunc): New functions.
7444 (set_host_charset, set_target_charset): Make static.
7445 (list_charsets, set_host_charset_command,
7446 set_target_charset_command): Delete functions.
7447 (show_charset_command): Rewrite as....
7448 (show_charset): Hook this up with the set/show command mechanism.
7449 (_initialize_charset): Change names of charsets to match the
7450 set/show enums. Use host_charset_name and target_charset_name.
7451 Use set/show mechanism for charset, host-charset, target-charset
7452 commands. Do not make 'show host-charset' and 'show
7453 target-charset' be aliases of 'show charset'.
7454
7455 * charset.h (set_host_charset, set_target_charset): Don't export,
7456 they are not used outside the file.
7457
2b6fd0d8
AC
74582003-05-01 Andrew Cagney <cagney@redhat.com>
7459
7460 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7461 (gdb_disassembly): Make "di" non static, always initialize and
7462 cleanup. Always use dis_asm_read_memory.
7463 (gdb_dis_asm_read_memory): Delete function.
7464
6ae2f580
AC
74652003-05-01 Andrew Cagney <cagney@redhat.com>
7466
7467 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7468 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7469
810ecf9f
AC
74702003-04-30 Andrew Cagney <cagney@redhat.com>
7471
7472 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7473 "tm_print_insn_info".
7474 (TARGET_PRINT_INSN_INFO): Delete macro.
7475 (dis_asm_read_memory): Delete function declaration.
7476 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7477 (tm_print_insn_info): Delete variable definition.
7478 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7479 * gdbarch.h, gdbarch.c: Re-generate.
7480 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7481 "deprecated_tm_print_insn_info".
7482 * mcore-tdep.c (mcore_dump_insn): Ditto.
7483 * mips-tdep.c (mips_gdbarch_init): Ditto.
7484 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7485 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7486 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7487 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7488 instead of TARGET_PRINT_INSN_INFO, add comment.
7489 * s390-tdep.c (s390_get_frame_info): Instead of
7490 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7491 (s390_check_function_end, s390_is_sigreturn): Ditto.
7492 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7493 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7494 * disasm.c: Include "gdbcore.h".
7495 (_initialize_disasm): New function, initialize
7496 "deprecated_tm_print_insn_info".
7497 (deprecated_tm_print_insn_info): New variable.
7498 (dis_asm_read_memory): Moved from "corefile.c", made static.
7499 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7500 * Makefile.in (disasm.o): Update dependencies.
7501
07020390
AC
75022003-04-30 Andrew Cagney <cagney@redhat.com>
7503
7504 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7505
a9fa03de
AF
75062003-04-29 Adam Fedor <fedor@gnu.org>
7507
7508 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7509 * infcall.c (find_function_addr): Make non-static.
7510 * infcall.h (find_function_addr): Declare.
7511 * Makefile.in (eval.o): Update dependencies.
7512
1bae87b9
AF
75132003-04-28 Adam Fedor <fedor@gnu.org>
7514
7515 * symtab.c (symbol_find_demangled_name): Check for and demangle
7516 ObjC symbols.
7517 (symbol_init_demangled_name): Init for language_objc as well.
7518
0ba6dca9
AC
75192003-04-28 Andrew Cagney <cagney@redhat.com>
7520
7521 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7522 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7523 * gdbarch.h, gdbarch.c: Re-generate.
7524 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7525 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7526 * inferior.h (deprecated_read_fp): Rename read_fp.
7527 (generic_target_read_fp): Delete declaration.
7528 * regcache.c (generic_target_read_fp): Delete function.
7529 (deprecated_read_fp): Replace read_fp, use
7530 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7531 * d10v-tdep.c (d10v_read_fp): Delete function.
7532 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7533
7534 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7535 deprecated_target_read_fp to generic_target_read_fp.
7536 * sh-tdep.c (sh_gdbarch_init): Ditto.
7537 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7539 * frv-tdep.c (frv_gdbarch_init): Ditto.
7540
7541 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7542 deprecated_fp_regnum.
7543 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7544 * vax-tdep.c (vax_gdbarch_init): Ditto.
7545 * v850-tdep.c (v850_gdbarch_init): Ditto.
7546 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7547 * sh-tdep.c (sh_gdbarch_init): Ditto.
7548 * s390-tdep.c (s390_gdbarch_init): Ditto.
7549 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7550 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7551 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7552 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7554 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7555 * i386-tdep.c (i386_gdbarch_init): Ditto.
7556 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7557 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7558 * frv-tdep.c (frv_gdbarch_init): Ditto.
7559 * cris-tdep.c (cris_gdbarch_init): Ditto.
7560 * avr-tdep.c (avr_gdbarch_init): Ditto.
7561 * arm-tdep.c (arm_gdbarch_init): Ditto.
7562 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7563
7564 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7565 * v850-tdep.c (v850_gdbarch_init): Ditto.
7566 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7567 * sh-tdep.c (sh_gdbarch_init): Ditto.
7568 * s390-tdep.c (s390_gdbarch_init): Ditto.
7569 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7570 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7571 * mips-tdep.c (mips_gdbarch_init): Ditto.
7572 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7574 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7575 * frv-tdep.c (frv_gdbarch_init): Ditto.
7576 * avr-tdep.c (avr_gdbarch_init): Ditto.
7577 * arm-tdep.c (arm_gdbarch_init): Ditto.
7578
7579 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7580 DEPRECATED_FP_REGNUM.
7581 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7582 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7583 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7584 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7585 (sparc32_register_virtual_type): Ditto.
7586 * sh-tdep.c (sh64_frame_chain): Ditto.
7587 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7588 (sh_nofp_frame_init_saved_regs): Ditto.
7589 (sh64_nofp_frame_init_saved_regs): Ditto.
7590 (sh_fp_frame_init_saved_regs): Ditto.
7591 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7592 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7593 * procfs.c (procfs_fetch_registers): Ditto.
7594 (procfs_store_registers): Ditto.
7595 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7596 (store_inferior_registers, fetch_core_registers): Ditto.
7597 (fetch_kcore_registers, clear_regs): Ditto.
7598 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7599 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7600 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7601 * nlm/i386.c (do_status): Ditto.
7602 * mipsv4-nat.c (supply_gregset): Ditto.
7603 * mips-tdep.c: Ditto for comments.
7604 * mips-nat.c (fetch_inferior_registers): Ditto.
7605 (store_inferior_registers, fetch_core_registers): Ditto.
7606 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7607 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7608 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7609 (i386_do_pop_frame, i386_register_type): Ditto.
7610 * hppa-tdep.c (hppa_frame_chain): Ditto.
7611 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7612 (hppa_pop_frame, hppa_read_fp): Ditto.
7613 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7614 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7615 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7616 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7617 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7618 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7619 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7620 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7621 * blockframe.c: Ditto for comments.
7622 * arch-utils.h: Ditto for comments.
7623 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7624 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7625 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7626 * alpha-tdep.h: Ditto for comments.
7627 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7628 (alpha_cannot_store_register): Ditto.
7629 (alpha_push_dummy_frame): Ditto.
7630 * alpha-nat.c (supply_gregset): Ditto.
7631
7632 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7633 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7634 * config/sparc/tm-sparc.h: Update comment.
7635
7636 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7637 deprecated_read_fp instead of TARGET_READ_FP.
7638 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7639 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7640 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7641 deprecated_read_fp instead of read_fp.
7642 * s390-tdep.c (s390_push_arguments): Ditto.
7643 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7644 * frame.h: Ditto in comments.
7645 * frame.c (legacy_get_prev_frame): Ditto.
7646 * dummy-frame.c (dummy_frame_this_id): Ditto.
7647 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7648
d7a27068
AC
76492003-04-28 Andrew Cagney <cagney@redhat.com>
7650
7651 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7652 * gdbarch.h, gdbarch.c: Re-generate.
7653 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7654 * vax-tdep.c (_initialize_vax_tdep): Update.
7655 * v850-tdep.c (_initialize_v850_tdep): Update.
7656 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7657 * s390-tdep.c (_initialize_s390_tdep): Update.
7658 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7659 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7660 * mips-tdep.c (_initialize_mips_tdep): Update.
7661 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7662 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7663 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7664 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7665 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7666 * frv-tdep.c (_initialize_frv_tdep): Update.
7667 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7668 (_initialize_cris_tdep): Update.
7669 * arch-utils.c (legacy_print_insn): Update.
7670 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7671
d2630e69
AF
76722003-04-26 Adam Fedor <fedor@gnu.org>
7673
7674 * linespec.c (decode_objc): New function to decode ObjC calls
7675 (decode_line_1): Check for ObjC calls (using decode_objc)
7676 * Makefile (linespec.o): Update dependencies.
7677
3086aeae
DJ
76782003-04-26 Daniel Jacobowitz <drow@mvista.com>
7679
7680 * breakpoint.h (struct breakpoint_ops): New.
7681 (struct breakpoint): Add ops member.
7682
7683 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7684 (mention): Use new breakpoint ops member.
7685 (set_raw_breakpoint): Initialize ops field to NULL.
7686 (print_exception_catchpoint, print_one_exception_catchpoint)
7687 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7688 (gnu_v3_exception_catchpoint_ops): New.
7689 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7690
1fbec6c3
AF
76912003-04-25 Adam Fedor <fedor@gnu.org>
7692
7693 * Makefile.in (COMMON_OBS): Add objc-lang.o
7694
0ef21242
AC
76952003-04-25 Andrew Cagney <cagney@redhat.com>
7696
7697 * d10v-tdep.c (print_insn): Delete function.
7698 (display_trace): Use TARGET_PRINT_INSN.
7699 (_initialize_d10v_tdep): Do not set tm_print_insn.
7700 (d10v_gdbarch_init): Set print_insn.
7701
f75493ed
AC
77022003-04-25 Andrew Cagney <cagney@redhat.com>
7703
7704 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7705 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7706 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7707 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7708 (nr_dmap_regs, a0_regnum): ... new functions.
7709 (d10v_print_registers_info): Use a0_regnum, use register_size.
7710 (d10v_register_byte): Delete function.
7711 (d10v_register_raw_size): Delete function.
7712 (d10v_register_type): Use a0_regnum.
7713 (d10v_print_registers_info): Use a0_regnum.
7714 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7715 (d10v_gdbarch_init): Do not set register_byte or
7716 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7717 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7718 extract_address.
7719 (trace_command): Use XCALLOC.
7720 (print_insn): Delete reference to tm_print_insn.
7721 (saved_regs_unwinder): Use store_unsigned_integer instead of
7722 store_address.
7723 * frame.h (FRAME_OBSTACK_CALLOC): Define
7724
2202b100
DC
77252003-04-25 David Carlton <carlton@bactrian.org>
7726
7727 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7728
4e45ca2e
AF
77292003-04-24 Adam Fedor <fedor@gnu.org>
7730
7731 * objc-lang.c: Include "valprint.h"
7732 * Makefile.in (objc-lang.o): Update dependencies.
7733
93de3e7f
AF
77342003-04-24 Adam Fedor <fedor@gnu.org>
7735
8ffd9b1b 7736 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7737 architecture dependant compilation and mark as unimplemented
7738 (until they get put in the gdbarch vector).
7739
0f20eeea
DC
77402003-04-23 David Carlton <carlton@bactrian.org>
7741
7742 * cp-support.c (cp_find_first_component): Accept 'operator' in
7743 more locations.
7744
74cfe982
AC
77452003-04-23 Andrew Cagney <cagney@redhat.com>
7746
7747 * infcall.c (call_function_by_hand): Eliminate redundant
7748 indentation. Move "saved_async" and "old_cleanups" to where they
7749 are needed.
8ffd9b1b 7750
52557533
AC
77512003-04-23 Andrew Cagney <cagney@redhat.com>
7752
7753 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7754 and "buffer". Move the "name" code to where it is needed.
7755
158775de
AC
77562003-04-23 Andrew Cagney <cagney@redhat.com>
7757
7758 * infcall.c (call_function_by_hand): Move variables "start_sp",
7759 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7760 code to ON_STACK switch branch.
8ffd9b1b 7761
ebc7896c
AC
77622003-04-23 Andrew Cagney <cagney@redhat.com>
7763
7764 * infcall.c (call_function_by_hand): Make declaration of "i",
7765 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7766 lint.
7767
d727590f
AC
77682003-04-23 Andrew Cagney <cagney@redhat.com>
7769
7770 * infcall.c (call_function_by_hand): Delete variable
7771 "n_method_args". Localize "param_type"'s declaration to the loop
7772 that it is used. Reinstate code assigning to said variable -
7773 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7774 Rationalize code using "param_type".
7775
d585e13a
AC
77762003-04-22 Andrew Cagney <cagney@redhat.com>
7777
7778 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7779 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7780 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7781 to DEPRECATED_PUSH_RETURN_ADDRESS.
7782
051caad9
KB
77832003-04-22 Kevin Buettner <kevinb@redhat.com>
7784
7785 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7786 on the DWARF2 register number prior to fetching a register.
7787
77296879
JB
77882003-04-22 J. Brobecker <brobecker@gnat.com>
7789
7790 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7791 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7792 this macro was always set to 0.
77296879
JB
7793 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7794 considering the fact that this macro was always set to 0.
7795 * hppa-tdep.h (hppa_store_return_value): Likewise.
7796 (hppa_extract_return_value): Likewise.
7797
4252f1df
JB
77982003-04-22 J. Brobecker <brobecker@gnat.com>
7799
7800 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7801 the hppa-pro target only.
7802
14604c6b
JB
78032003-04-21 J. Brobecker <brobecker@gnat.com>
7804
7805 Ongoing multi-arch conversion effort for HP/UX:
7806 * config/pa/tm-hppa.h: Move all macro that are no longer
7807 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7808 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7809
77eb01d1
JB
78102003-04-21 J. Brobecker <brobecker@gnat.com>
7811
7812 * config/pa/tm-hppa.h: Obsolete a section that was only used
7813 for hppa-pro.
7814
61995b3b
JB
78152003-04-21 J. Brobecker <brobecker@gnat.com>
7816
7817 Ongoing multi-arch conversion for HP/UX.
7818 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7819 if already defined (allows hppa64 to stay non-multiarched for now).
7820 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7821
4aa79dcc
AC
78222003-04-21 Andrew Cagney <cagney@redhat.com>
7823
7824 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7825
0f751ff2
AC
78262003-04-21 Andrew Cagney <cagney@redhat.com>
7827
7828 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7829 "i386_num_mmx_regs".
7830
04714b91
AC
78312003-04-21 Andrew Cagney <cagney@redhat.com>
7832
7833 * infcall.c: New file.
7834 * infcall.h: New file.
7835 * valarith.c: Include "infcall.h".
7836 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7837 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7838 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7839 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7840 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7841 (SFILES): Add "infcall.c"
7842 (COMMON_OBS): Add "infcall.o".
7843 (infcall.o): Specify dependencies.
7844 * value.h (call_function_by_hand): Delete declaration.
7845 * inferior.h (run_stack_dummy): Delete declaration.
7846 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7847 (run_stack_dummy): Move to "infcall.c", merged into
7848 call_function_by_hand.
7849 * valops.c (call_function_by_hand): Moved to "infcall.c".
7850 (find_function_addr, value_arg_coerce): Ditto.
7851 (unwindonsignal_p, coerce_float_to_double): Ditto.
7852 (_initialize_valops): Move "set/show coerce-float-to-double", and
7853 "set/show unwindonsignal" commands to "infcall.c".
7854 * v850-tdep.c, target.h: Update comments.
7855 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7856 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7857 (sh64_init_extra_frame_info): Update comments.
7858 * mn10300-tdep.c: Update comments.
7859 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7860 * config/sparc/tm-sparc.h: Update comments.
7861 * breakpoint.h: Update comments.
7862 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7863 * arm-tdep.c: Update comment.
7864
f9d3c2a8
MK
78652003-04-19 Mark Kettenis <kettenis@gnu.org>
7866
c40e1eab
MK
7867 * i386-tdep.c (i386_num_register_names): New variable.
7868 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7869 (MM0_REGNUM): Remove redundant parentheses in define.
7870 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7871 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7872 i386_mxcsr_regnum_p): Remove redundant parentheses.
7873 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7874
94ea66b3
MK
7875 * i386-tdep.c (i386_extract_return_value,
7876 i386_store_return_value): Correct check for availability of
7877 floating-point registers.
7878
54299a1d
MK
7879 * i386-tdep.c (i386_frame_num_args): Remove function.
7880 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7881
c86c27af
MK
7882 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7883 mmx_regnum_to_fp_regnum. Adjust all callers.
7884
f9d3c2a8
MK
7885 * i386-tdep.c (i386_get_longjmp_target): Use
7886 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7887 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7888 extract_address.
7889
94ba74a9
MK
78902003-04-19 Mark Kettenis <kettenis@gnu.org>
7891
7892 * core-regset.c: Update comments to reflect reality. Re-order
7893 includes.
7894 (fetch_core_registers): Use switch instead of if. Remove
7895 redundant prototype.
7896
4074e13c
JB
78972003-04-18 Jim Blandy <jimb@redhat.com>
7898
7899 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7900 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7901
e3ab4aba
RH
79022003-04-17 Richard Henderson <rth@redhat.com>
7903
7904 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7905
627bf7c1
EZ
79062003-04-17 Michael Snyder <msnyder@redhat.com>
7907 Karen Bennet <bennet@redhat.com>
7908
7909 Committed by Elena Zannoni <ezannoni@redhat.com>
7910 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7911
514621a9
EZ
79122003-04-17 Elena Zannoni <ezannoni@redhat.com>
7913
7914 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7915 value if the return type is void.
514621a9 7916
b4acd559
JJ
79172003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7918
7919 * thread-db.c: Reindented.
8ffd9b1b 7920
530b167e 79212003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7922
7923 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7924 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7925 as types.
7926
0a48e7e8
MS
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
8ffd9b1b 7950
ab9fe00e
KB
79512003-04-16 Kevin Buettner <kevinb@redhat.com>
7952
610a3745 7953 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7954 the size of ``long double'' to 16, instead of 8.
7955
e64a344c
MK
79562003-04-16 Mark Kettenis <kettenis@gnu.org>
7957
7958 * i386-linux-nat.c: Add some whitespace to make things more
7959 readable.
7960 (fetch_register, store_register, fetch_inferior_registers,
7961 store_inferior_registers): Get rid of assignment in if-statement.
7962 (store_register): Fix typo in error message.
7963
25d41031
AC
79642003-04-16 Andrew Cagney <cagney@redhat.com>
7965
7966 * utils.c (xmmalloc): Always allocate something, matches
7967 libiberty/xmalloc's semantics.
7968 (xmrealloc, xmcalloc): Ditto.
7969
c50901fd
AC
79702003-04-16 Andrew Cagney <cagney@redhat.com>
7971
7972 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7973 update comments.
7974 (get_frame_type): Initialize unwind and type when needed.
7975 (get_frame_id, frame_register_unwind): Ditto.
7976
f81824a9
AC
79772003-04-16 Andrew Cagney <cagney@redhat.com>
7978
7979 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7980 obsolete.
7981 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7982 * sparcl-stub.c: Obsolete file.
7983 * config/sparc/tm-sparclet.h: Obsolete file.
7984 * sparclet-stub.c: Obsolete file.
7985 * sparclet-rom.c: Obsolete file.
7986 * sparcl-tdep.c: Obsolete file.
7987 * config/sparc/tm-sparclite.h: Obsolete file.
7988 * config/sparc/sparclite.mt: Obsolete file.
7989 * config/sparc/sparclet.mt: Obsolete file.
7990 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7991 sparc86x-*-* obsolete.
7992
9219021c
DC
79932003-04-15 David Carlton <carlton@math.stanford.edu>
7994
7995 * Makefile.in (SFILES): Add cp-namespace.c.
7996 (COMMON_OBS): Add cp-namespace.o.
7997 (block.o): Depend on gdb_obstack_h and cp_support_h.
7998 (buildsym.o): Depend on cp_support_h.
7999 (cp-namespace.o): New.
8000 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8001 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8002 (dwarf2read.o): Depend on cp_support_h.
8003 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8004 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8005 processing_current_namespace.
8006 (read_namespace): Update processing_current_namespace; check for
8007 anonymous namespaces.
8008 (dwarf2_name): New function.
8009 (dwarf2_extension): Ditto.
8010 * cp-support.h: Update copyright, contributors.
8011 Add inclusion guards.
8012 Add opaque declaration for structs obstack, block, symbol.
8013 (struct using_direct): New struct.
8014 Add declarations for cp_find_first_component,
8015 cp_entire_prefix_len, processing_has_namespace_info,
8016 processing_current_namespace, cp_is_anonymous,
8017 cp_add_using_directive, cp_initialize_namespace,
8018 cp_finalize_namespace, cp_set_block_scope,
8019 cp_scan_for_anonymous_namespaces.
8020 * cp-namespace.c: New file.
8021 * cp-support.c: Update copyright.
8022 Include ctype.h, gdb_assert.h, gdbcmd.h.
8023 New variable maint_cplus_cmd_list.
8024 (cp_find_first_component): New function.
8025 (cp_entire_prefix_len, maint_cplus_command)
8026 (first_component_command, _initialize_cp_support): Ditto.
8027 * buildsym.c: Include cp-support.h.
8028 New variable using_list.
8029 (add_symbol_to_list): Check for anonymous namespaces.
8030 (finish_block): Set block's scope.
8031 (start_symtab): Initialize C++ namespace support.
8032 (end_symtab): Finalize C++ namespace support.
8033 * block.h: Add opaque declarations for structs
8034 block_namespace_info, using_direct, and obstack.
8035 Add declarations for block_set_scope and block_set_using.
8036 (struct block): Add 'language_specific' member.
8037 (BLOCK_NAMESPACE): New macro.
8038 * block.c: Include gdb_obstack.h and cp-support.h.
8039 (struct block_namespace_info): New struct.
8040 (block_set_scope): New function.
8041 (block_set_using, block_initialize_namespace): Ditto.
8042
d5a921c9
KB
80432003-04-14 Kevin Buettner <kevinb@redhat.com>
8044
8045 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8046 (locate_base): Return early if there aren't any link map offsets.
8047 (svr4_solib_create_inferior_hook): Warn if shared library support
8048 is unavailable.
8049
d2a52b27
DC
80502003-04-14 David Carlton <carlton@math.stanford.edu>
8051
8052 * symtab.c (symbol_set_names): Add prefix when storing Java names
8053 in hash table. Fix for PR java/1039.
8054
980cae7a
DC
80552003-04-14 David Carlton <carlton@math.stanford.edu>
8056
8057 * symtab.c (symbol_set_names): Rename 'name' arg to
8058 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8059 * symtab.h: Change 'name' argument in declaration of
8060 symbol_set_names to 'linkage_name'.
8061 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8062
e227b13c
AC
80632003-04-14 Andrew Cagney <cagney@redhat.com>
8064
8065 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8066 return the fully sign-extended register value.
8067 (get_frame_pointer): Ditto.
8068 (mips_pop_frame): Initialize "proc_desc" after checking for a
8069 dummy frame.
8070
36712a20
AC
80712003-04-14 Andrew Cagney <cagney@redhat.com>
8072
8073 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8074 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8075 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8076 (mips_push_register): Delete function.
8077 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8078 PUSH_FP_REGNUM.
8079
44ea7b70
JB
80802003-04-14 Jim Blandy <jimb@redhat.com>
8081
8082 * symmisc.c: #include "gdb_regex.h".
8083 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8084 functions.
8085 * maint.c (maintenance_list_command): New function.
8086 (_initialize_maint_cmds): Register the above as commands.
8087 * symtab.h (maintenance_list_symtabs,
8088 maintenance_list_psymtabs): New declarations.
8089 * cli/cli-cmds.c (maintenancelistlist): New variable.
8090 (init_cmd_lists): Initialize it.
8091 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8092 * gdbcmd.h (maintenancelistlist): New declaration.
8093 * Makefile.in (symmisc.o): Update dependencies.
8094
2d0c7962
EZ
80952003-04-14 Elena Zannoni <ezannoni@redhat.com>
8096
8097 * s390-nat.c: Include asm/types.h for addr_t.
8098
1947a811
CV
80992003-04-14 Corinna Vinschen <vinschen@redhat.com>
8100
8101 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8102 actually incoming type.
8103
adb616d7
AC
81042003-04-13 Andrew Cagney <cagney@redhat.com>
8105
8106 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8107 get_next_frame and get_frame_saved_regs.
8108
9b5e151c
AC
81092003-04-13 Andrew Cagney <cagney@redhat.com>
8110
8111 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8112 of gdbarch_num_regs.
8113
ef6e7e13
AC
81142003-04-13 Andrew Cagney <cagney@redhat.com>
8115
8116 * frame.h: Mention what replaced what in "struct frame_info".
8117 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8118 deprecated_update_frame_base_hack and
8119 deprecated_update_frame_pc_hack.
8120 * hppa-tdep.c: Ditto.
8121
61fbb938
DJ
81222003-04-13 Daniel Jacobowitz <drow@mvista.com>
8123
8124 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8125 to read_reg and update its comment. Remove regnum member.
8126 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8127 Don't call read_reg when setting in_reg. Call read_reg to get
8128 the frame base if it's in a register. Return the register number
8129 on the stack instead of in the context. Remove extra arguments
8130 to read_reg.
8131 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8132 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8133 the register number on the expression stack.
8134 (needs_frame_read_reg): Remove extra arguments.
8135
0d53c4c4
DJ
81362003-04-13 Daniel Jacobowitz <drow@mvista.com>
8137
8138 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8139 made non-static.
8140 (execute_stack_op): All callers updated.
8141 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8142 * dwarf2loc.c (find_location_expression): New function.
8143 (dwarf_expr_frame_base): Call it.
8144 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8145 (dwarf2_tracepoint_var_ref): New function, broken out from
8146 locexpr_tracepoint_var_ref.
8147 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8148 Make static.
8149 (loclist_read_variable, loclist_read_needs_frame): New functions.
8150 (loclist_describe_location, loclist_tracepoint_var_ref): New
8151 functions.
8152 (dwarf2_loclist_funcs): New struct location_funcs.
8153 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8154 (struct dwarf2_locexpr_baton): Add comments.
8155 (dwarf2_loclist_funcs): New extern.
8156 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8157 base_address and base_known.
8158 (dwarf_loc_buffer): New variable.
8159 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8160 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8161 (dwarf2_has_info): Initialize dwarf_loc_offset.
8162 (dwarf2_build_psymtabs): Read in .debug_loc.
8163 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8164 DWARF_LOC_SIZE.
8165 (psymtab_to_symtab_1): Likewise. Move base address calculation
8166 here, from...
8167 (dwarf2_get_pc_bounds): ... here. Use the base address from
8168 cu_header.
8169 (dwarf2_symbol_mark_computed): Handle location lists.
8170
6aca59a3
DJ
81712003-04-13 Daniel Jacobowitz <drow@mvista.com>
8172
8173 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8174 if the linkage name demangled successfully.
8175
aca1fcd0
MK
81762003-04-13 Mark Kettenis <kettenis@gnu.org>
8177
97095916
MK
8178 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8179 disassmbly_flavour): Removed.
8180
aca1fcd0
MK
8181 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8182
562a961f
MK
81832003-04-13 Mark Kettenis <kettenis@gnu.org>
8184
8185 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8186
bd013d54
AC
81872003-04-12 Andrew Cagney <cagney@redhat.com>
8188
8189 * frame.h (struct frame_info): Move definition from here ...
8190 * frame.c (struct frame_info): ... to here.
8191
167ef8b1
AC
81922003-04-12 Andrew Cagney <cagney@redhat.com>
8193
8194 * gdbthread.h (save_infrun_state): Delete parameter
8195 "prev_func_start".
8196 (struct thread_info): Delete field "prev_func_start".
8197 (load_infrun_state): Ditto.
8198 * thread.c (load_infrun_state, save_infrun_state): Update.
8199 * infrun.c (prev_func_start): Delete variable.
8200 (context_switch, init_wait_for_inferior): Update.
8201 (stop_stepping, keep_going): Update.
8202
da3331ec
AC
82032003-04-12 Andrew Cagney <cagney@redhat.com>
8204
8205 * gdbarch.sh: Add missing opaque declarations.
8206 * gdbarch.h: Regnerate.
8207 * symtab.h: Add missing opaque declarations.
8208 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8209 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8210 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8211 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8212 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8213 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8214 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8215 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8216 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8217 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8218 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8219 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8220 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8221
18adea3f
AC
82222003-04-11 Andrew Cagney <cagney@redhat.com>
8223
8224 * frame.c (get_frame_id): Return this frame's "id".
8225 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8226 function start.
8227 (legacy_saved_regs_this_id): Replace function body with
8228 internal-error.
8229 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8230 FRAME_OBSTACK_ZALLOC.
8231 (create_new_frame): Mark the frame ID as valid.
8232
2252e863
AO
82332003-04-11 Alexandre Oliva <aoliva@redhat.com>
8234
8235 * Makefile.in (libbfd_h): Added missing setting.
8236 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8237 according to the selected ABI.
8238
a8245ab8
JJ
82392003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8240
8241 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8242
6913c89a
AC
82432003-04-11 Andrew Cagney <cagney@redhat.com>
8244
8245 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8246 SAVED_PC_AFTER_CALL.
8247 * gdbarch.h, gdbarch.c: Regenerate.
8248 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8249 * x86-64-tdep.c (x86_64_init_abi): Update.
8250 * vax-tdep.c (vax_gdbarch_init): Update.
8251 * v850-tdep.c (v850_gdbarch_init): Update.
8252 * sparc-tdep.c (sparc_gdbarch_init): Update.
8253 * sh-tdep.c (sh_gdbarch_init): Update.
8254 * s390-tdep.c (s390_gdbarch_init): Update.
8255 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8256 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8257 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8258 * mips-tdep.c (mips_gdbarch_init): Update.
8259 * mcore-tdep.c (mcore_gdbarch_init): Update.
8260 * m68k-tdep.c (m68k_gdbarch_init): Update.
8261 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8262 * ia64-tdep.c (ia64_gdbarch_init): Update.
8263 (ia64_saved_pc_after_call): Update declaration.
8264 * i386ly-tdep.c (i386lynx_init_abi): Update.
8265 * i386-tdep.c (i386_gdbarch_init): Update.
8266 * hppa-tdep.c (hppa_gdbarch_init): Update.
8267 * h8300-tdep.c (h8300_gdbarch_init): Update.
8268 * frv-tdep.c (frv_gdbarch_init): Update.
8269 * cris-tdep.c (cris_gdbarch_init): Update.
8270 * avr-tdep.c (avr_gdbarch_init): Update.
8271 * arm-tdep.c (arm_gdbarch_init): Update.
8272 * alpha-tdep.c (alpha_gdbarch_init): Update.
8273 * ns32knbsd-nat.c (frame_num_args): Update.
8274 * ns32k-tdep.c (umax_frame_num_args): Update.
8275 * mips-tdep.c (mips_init_frame_pc_first): Update.
8276 * infrun.c (step_over_function): Update.
8277 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8278 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8279 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8280 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8281 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8282 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8283 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8284 * arch-utils.c (init_frame_pc_default): Update.
8285 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8286 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8287 declaration.
8ffd9b1b 8288
38edeab8
AC
82892003-04-11 Andrew Cagney <cagney@redhat.com>
8290
8291 * i387-tdep.c: Update copyright.
8292 (i387_to_double): Delete function.
8293 (double_to_i387): Delete function.
8294
81f8a206
AC
82952003-04-10 Andrew Cagney <cagney@redhat.com>
8296
8297 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8298 frame's function's address. Simplify.
8299 (d10v_frame_unwind_cache): Check that the frame's function is
8300 non-zero.
8301
6e691f7a
JB
83022003-04-10 Jim Blandy <jimb@redhat.com>
8303
8304 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8305 call to set_gdbarch_deprecated_push_arguments.
8306
7f78e237
AC
83072003-04-10 Andrew Cagney <cagney@redhat.com>
8308
8309 * frame.c (fprint_frame_id): New function.
8310 (fprint_frame_type, fprint_frame): New function.
8311 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8312 (create_sentinel_frame, get_frame_id): Ditto.
8313 (frame_id_p, frame_id_eq): Ditto.
8314 (frame_id_inner, create_new_frame): Ditto.
8315 (legacy_get_prev_frame, get_prev_frame): Ditto.
8316 (deprecated_update_frame_pc_hack): Ditto.
8317 (frame_register_unwind): Ditto.
8318 (deprecated_update_frame_base_hack): Ditto.
8319
f870b49b
CV
83202003-04-10 Corinna Vinschen <vinschen@redhat.com>
8321
8322 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8323 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8324 frame_chain function.
8325 * Makefile.in: Add dependencies due to above change.
8326
7c86889b
CV
83272003-04-10 Corinna Vinschen <vinschen@redhat.com>
8328
8329 * blockframe.c (legacy_frame_chain_valid): Move call to
8330 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8331 inside_entry_file.
8332
d0a55772
AC
83332003-04-09 Andrew Cagney <cagney@redhat.com>
8334
8335 * frame.h (struct frame_id): Replace "pc" and "base" with
8336 "stack_addr" and "code_addr". Update comments.
8337 (frame_id_build): Update parameter names and comment.
8338 (struct frame_info): Replace "id_p" and "id" with "this_id".
8339 * dummy-frame.c (dummy_frame_this_id): Update.
8340 * breakpoint.c (print_one_breakpoint): Update.
8341 * frame.c (get_frame_id): Update.
8342 (get_frame_base, frame_id_build): Update.
8343 (create_sentinel_frame, legacy_get_prev_frame): Update.
8344 (deprecated_update_frame_base_hack): Update.
8345 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8346 (frame_id_inner): Ditto.
8347
ac16bf07
AC
83482003-04-09 Andrew Cagney <cagney@redhat.com>
8349
8350 * defs.h (gdb_print_host_address): Make "addr" parameter a
8351 pointer constant.
8352 * utils.c (gdb_print_host_address): Update.
8353
366cfc9e
KB
83542003-04-09 Kevin Buettner <kevinb@redhat.com>
8355
8356 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8357 register number for R0 is 0.
8358
cd983b5c
JB
83592003-04-09 J. Brobecker <brobecker@gnat.com>
8360
8361 * frame.h (struct gdbarch): Add opaque structure definition
8362 to avoid a compilation warning on LynxOS 4.0.
8363
d1340264
AC
83642003-04-09 Andrew Cagney <cagney@redhat.com>
8365
8366 * frame.h (struct frame_info): Delete field "pc". Replace
8367 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8368 structure.
8369 * frame.c (frame_pc_unwind): Update.
8370 (create_sentinel_frame): Do not set "pc".
8371 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8372 (get_frame_pc): Call frame_pc_unwind.
8373 (deprecated_update_frame_pc_hack): Update.
8374 (create_new_frame): Use "pc" not "->pc".
8375
90a6fffb
AC
83762003-04-09 Andrew Cagney <cagney@redhat.com>
8377
8378 * frame.c (get_frame_id): Eliminate code updating "frame".
8379 (legacy_get_prev_frame): Ditto.
8380 (get_frame_base): Return id.base directly.
8381 (deprecated_update_frame_base_hack): Update "id.base".
8382 * frame.h (struct frame_info): Delete field "frame".
8383
2fbce691
AC
83842003-04-09 Andrew Cagney <cagney@redhat.com>
8385
8386 * NEWS: Mention that the "Sequent family" is obsolete.
8387 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8388 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8389 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8390 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8391 * config/i386/tm-ptx4.h: Obsolete file.
8392 * config/i386/tm-ptx.h: Obsolete file.
8393 * symm-tdep.c: Obsolete file.
8394 * config/i386/symmetry.mt: Obsolete file.
8395 * config/i386/tm-symmetry.h: Obsolete file.
8396 * symm-nat.c: Obsolete file.
8397 * config/i386/nm-symmetry.h: Obsolete file.
8398 * config/i386/xm-symmetry.h: Obsolete file.
8399 * config/i386/symmetry.mh: Obsolete file.
8400 * config/i386/nm-ptx4.h: Obsolete file.
8401 * config/i386/ptx4.mh: Obsolete file.
8402 * config/i386/ptx.mt: Obsolete file.
8403 * config/i386/ptx.mh: Obsolete file.
8404 * config/i386/xm-ptx4.h: Obsolete file.
8405 * config/i386/xm-ptx.h: Obsolete file.
8406
78c43945
AC
84072003-04-09 Andrew Cagney <cagney@redhat.com>
8408
8409 Obsolete mips*-*-mach3*.
8410 * NEWS: Mention that mips*-*-mach3* is obsolete.
8411 * m3-nat.c: Obsolete file.
8412 * config/nm-m3.h: Obsolete file.
8413 * config/mips/tm-mipsm3.h: Obsolete file.
8414 * config/mips/mipsm3.mt: Obsolete file.
8415 * config/mips/mipsm3.mh: Obsolete file.
8416 * config/mips/xm-mipsm3.h: Obsolete file.
8417 * mipsm3-nat.c: Obsolete file.
8418 * configure.host: Obsolete mips-dec-mach3*.
8419 * configure.tgt: Obsolete mips*-*-mach3*.
8420
f1908289
AC
84212003-04-09 Andrew Cagney <cagney@redhat.com>
8422
8423 * doublest.h: Update copyright.
8424 (deprecated_store_floating, deprecated_extract_floating): Rename
8425 store_floating and extract_floating. Update comments.
8426 * doublest.c: Update copyright.
8427 (extract_floating_by_length): Replace extract_floating.
8428 (store_floating_by_length): Replace store_floating.
8429 (deprecated_extract_floating): New function.
8430 (deprecated_store_floating): New function.
8431 (extract_typed_floating): Call extract_floating_by_length.
8432 (store_typed_floating): Call store_floating_by_length.
8433 * x86-64-tdep.c (x86_64_store_return_value): Update.
8434 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8435 (sh64_extract_return_value): Update.
8436 (sh_sh4_register_convert_to_virtual): Update.
8437 (sh_sh64_register_convert_to_virtual): Update.
8438 (sh_sh4_register_convert_to_raw): Update.
8439 (sh_sh64_register_convert_to_raw): Update.
8440 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8441 (rs6000_register_convert_to_raw): Update.
8442 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8443 (ia64_register_convert_to_raw): Update.
8444 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8445 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8446 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8447 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8448 (alpha_register_convert_to_raw): Update.
8449
4443bd83
AC
84502003-04-08 Andrew Cagney <cagney@redhat.com>
8451
8452 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8453 * gdbarch.h, gdbarch.c: Re-generate.
8454 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8455 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8456 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8457 conditionally, use frame_pc_unwind as an alternative. Add
8458 comments.
8459 * arch-utils.c (init_frame_pc_default): Only call
8460 SAVED_PC_AFTER_CALL when available.
8461
c0236d92
EZ
84622003-04-08 Elena Zannoni <ezannoni@redhat.com>
8463
fbe586ae 8464 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8465 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8466 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8467 (start_remote): Ditto.
8468 (handle_inferior_event): Ditto.
8469 (save_inferior_status): Ditto.
8470 (restore_inferior_status): Ditto.
8471 * infcmd.c (attach_command): Ditto.
8472 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8473 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8474 * alpha-tdep.c (heuristic_proc_start): Ditto.
8475 * mips-tdep.c (heuristic_proc_start): Ditto.
8476 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8477 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8478 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8479 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8480 * remote-vx.c (vx_create_inferior): Ditto.
8481
84822003-04-08 Elena Zannoni <ezannoni@redhat.com>
8483
8484 * infrun.c (stop_soon_quietly): Make it an enum, to better
8485 override the default behavior of handle_inferior_event.
8486 (clear_proceed_status): Update uses of stop_soon_quietly to
8487 reflect that it is now an enum.
8488 (start_remote): Ditto.
8489 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8490 is set to handle the new GNU/Linux kernel behavior for
8491 attach/sigstop. Update uses of stop_soon_quietly.
8492 * inferior.h (enum stop_kind): New enum.
8493 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8494 Reset normal handle_inferior_event behavior, afterwards.
8495 * fork-child.c (startup_inferior): Update.
8496 * alpha-tdep.c (heuristic_proc_start): Update.
8497 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8498 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8499 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8500 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8501 * remote-vx.c (vx_create_inferior): Update.
8502 * mips-tdep.c (heuristic_proc_start): Update.
8503
1211bce3
EZ
85042003-04-07 Elena Zannoni <ezannoni@redhat.com>
8505
8506 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8507 be freed more than once, causing wild memory corruptions.
1211bce3 8508 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8509 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8510 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8511 with the "core" target.
1211bce3 8512
f0ef6b29
KB
85132003-04-07 Kevin Buettner <kevinb@redhat.com>
8514
8515 * mips-tdep.c (mips_print_fp_register): New function, created from
8516 do_fp_register_row(). Registers are now (also) printed as hex.
8517 Only one register is printed per row.
8518 (mips_print_register, do_fp_register_row): Print floating point
8519 registers with mips_print_fp_register().
8520
8cf71652
AC
85212003-04-06 Andrew Cagney <cagney@redhat.com>
8522
5e488a7b
AC
8523 * valprint.h (inspect_it): Add extern declaration.
8524 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8525 (selectors_info, classes_info): Ditto.
8526 (find_objc_msgcall): Fix indentation.
8527 (objc_printstr): Delete extern declarations.
8528
8cf71652
AC
8529 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8530
e6ba3bc9
AC
85312003-04-06 Andrew Cagney <cagney@redhat.com>
8532
8533 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8534 Update comment.
8535 * frame.c (legacy_saved_regs_this_id): Update.
8536 (legacy_get_prev_frame): Update.
8537 * xstormy16-tdep.c: Update comment.
8538 * sparc-tdep.c (sparc_frame_chain): Update comment.
8539 * blockframe.c (legacy_frame_chain_valid): Update.
8540
55e1d7e7
AC
85412003-04-06 Andrew Cagney <cagney@redhat.com>
8542
996179ee
AC
8543 * valprint.c (val_print_type_code_int): Delete #ifdef
8544 PRINT_TYPELESS_INTEGER code.
8545
55e1d7e7
AC
8546 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8547 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8548 multi-arch definition.
8549 * gdbarch.h: Re-generate.
8550
43bd9a9e
AC
85512003-04-05 Andrew Cagney <cagney@redhat.com>
8552
8553 Eliminate FRAME_FIND_SAVED_REGS.
8554 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8555 Change FSR parameter to a pointer.
8556 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8557 Assume FSR parameter is a pointer.
8558 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8559 Make fsr a pointer.
8560 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8561 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8562 saved_regs a pointer.
8563 (hppa_frame_saved_pc): Ditto.
8564 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8565 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8566 pointer.
8567 (restore_pc_queue): Make fsr a pointer.
8568 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8569 (hppa_frame_chain): Make saved_regs a pointer, call
8570 hppa_frame_init_saved_regs.
8571 * sparc-tdep.c: Include "gdb_assert.h".
8572 (sparc_frame_find_saved_regs): Replace internal_error with
8573 gdb_assert.
8574 * remote-vxsparc.c (vx_read_register): Delete reference to
8575 FRAME_FIND_SAVED_REGS.
8576 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8577 * gdbarch.h: Regenerate.
8578 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8579 (deprecated_get_frame_saved_regs): Delete declaration.
8580 (struct frame_saved_regs): Delete definition.
8581 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8582 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8583 (hppa_frame_find_saved_regs): Delete declaration.
8584 (FRAME_FIND_SAVED_REGS): Delete macro.
8585 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8586 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8587 FRAME_FIND_SAVED_REGS in comment.
8588
be41e9f4
AC
85892003-04-05 Andrew Cagney <cagney@redhat.com>
8590
8591 * frame.c (frame_func_unwind, get_frame_func): New functions.
8592 * frame.h (get_frame_func, frame_func_unwind): Declare.
8593 (struct frame_info): Add field "prev_func" for caching the
8594 previous frame's function address.
8595 * arm-tdep.c (arm_frameless_function_invocation): Combine
8596 get_pc_function_start and get_frame_pc into get_frame_func.
8597 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8598 (sh64_nofp_frame_init_saved_regs): Ditto.
8599 * s390-tdep.c (s390_function_start): Ditto.
8600 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8601 (rs6000_frameless_function_invocation): Ditto.
8602 (rs6000_frame_saved_pc): Ditto.
8603 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8604 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8605 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8606 (i386_frame_init_saved_regs): Ditto.
8607 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8608 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8609 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8610 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8611 * blockframe.c (frameless_look_for_prologue): Ditto.
8612
a01dd7cc
AC
86132003-04-05 Andrew Cagney <cagney@redhat.com>
8614
8615 * frame.c (legacy_get_prev_frame): Link prev to next at the
8616 function start. Update comments.
8617
5e5592e6
AC
86182003-04-05 Andrew Cagney <cagney@redhat.com>
8619
8620 * frame.c (get_frame_id): Update comment.
8621 (legacy_get_prev_frame): Update comment.
8622 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8623 * gdbarch.h: Regenerate.
8624 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8625 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8626
6fba5002
AC
86272003-04-05 Andrew Cagney <cagney@redhat.com>
8628
8629 * stack.c (print_frame_info): Use get_frame_pc.
8630
7df05f2b
AC
86312003-04-04 Andrew Cagney <cagney@redhat.com>
8632
8633 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8634 the frame's type from the unwinder.
8635 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8636 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8637 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8638 (get_frame_base_address): Use get_frame_type.
8639 (get_frame_locals_address, get_frame_args_address): Ditto.
8640 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8641 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8642 (struct frame_info): Add comment explaining why the frame contains
8643 a "type" field.
8644 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8645 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8646 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8647 NORMAL_FRAME.
8648 * frame-unwind.h: Include "frame.h".
8649 (struct frame_unwind): Add "type" field.
8650 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8651
11889732
AC
86522003-04-04 Andrew Cagney <cagney@redhat.com>
8653
8654 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8655 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8656 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8657 get_frame_base.
8658 (d10v_unwind_dummy_id): Use frame_id_build.
8659 * frame.c (find_frame_sal): Use get_frame_pc.
8660 (create_new_frame): Use deprecated_update_frame_pc_hack and
8661 deprecated_update_frame_base_hack.
8662 (create_sentinel_frame): Add comment about ->pc going away.
8663 (get_prev_frame): Add comment about ->pc going away.
8664 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8665 frame_id_build, deprecated_update_frame_pc_hack and
8666 deprecated_update_frame_base_hack.
8667 (select_frame): Use get_frame_pc.
8668 (legacy_saved_regs_this_id): Use frame_id_build.
8669
50c46a0d
EZ
86702003-04-04 Elena Zannoni <ezannoni@redhat.com>
8671
fbe586ae
RH
8672 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8673 signed integer case.
8674 (classify_argument): Handle enumerations and references.
50c46a0d 8675
50bbdbd9
AC
86762003-04-04 Andrew Cagney <cagney@redhat.com>
8677
8678 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8679 ID to NULL.
8680
36018d2e
AF
86812003-04-01 Adam Fedor <fedor@gnu.org>
8682
8683 * gdb/objc-lang.c (selectors_info): Replace calls to
8684 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8685 SYMBOL_NATURAL_NAME.
8686 (classes_info, find_methods): Likewise.
8687
35cec841
KB
86882003-04-03 Kevin Buettner <kevinb@redhat.com>
8689
8690 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8691 ``mach'' to the value determined by bfd_default_set_arch_mach().
8692
43136899
BR
86932003-04-02 Bob Rossi <bob_rossi@cox.net>
8694
8695 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8696 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8697 (mi-cmd-file.o): Update dependencies.
8698
040b99fd
KB
86992003-04-01 Kevin Buettner <kevinb@redhat.com>
8700
8701 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8702 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8703
9a3d7dfd
AF
87042003-04-01 Adam Fedor <fedor@gnu.org>
8705
8706 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8707 * language.h (struct language_defn): Add la_demangle.
8708 (language_demangle): Declare.
8709 * language.c (language_demangle): New function.
8710 (unk_lang_demangle): Likewise.
8711 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8712 Add ukn_lang_demangle.
9a3d7dfd 8713 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8714 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8715 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8716 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8717 * jv-lang.c (java_demangle): New function
8718 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8719 * objc-lang.c (objc_demangle): Add options argument
8720 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8721 * maint.c (maintenance_demangle): Replace switch with
8722 call to language_demangle.
8723 * utils.c (fprintf_symbol_filtered): Likewise.
8724
5e074003
AC
87252003-04-01 Andrew Cagney <cagney@redhat.com>
8726
8727 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8728 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8729 PRINT_TYPELESS_INTEGER.
8730 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8731 PUSH_RETURN_ADDRESS.
8732
270cb5d6
AC
87332003-04-01 Andrew Cagney <cagney@redhat.com>
8734
8735 * Makefile.in (d10v-tdep.o): Update dependencies.
8736 * d10v-tdep.c: Include "frame-base.h".
8737 (d10v_frame_unwind): Make constant.
8738 (d10v_frame_base_address): New function.
8739 (d10v_frame_base): New variable.
8740 (d10v_gdbarch_init): Set frame_base default.
8741 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8742 comment for base.
8743 (d10v_frame_unwind_cache): Set and use "prev_sp".
8744 (d10v_frame_this_id): Use the previous frame's inner most stack
8745 address and this frame's func address for the frame ID. Use
8746 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8747
6bfb3e36
AC
87482003-04-01 Andrew Cagney <cagney@redhat.com>
8749
8750 * frame.h (get_frame_locals_address, get_frame_args_address):
8751 Refer to the base address, instead of the address of the first
8752 local or parameter.
8ffd9b1b 8753
da62e633
AC
87542003-04-01 Andrew Cagney <cagney@redhat.com>
8755
8756 Add frame debug info addresses:
8757 * frame-base.c: New file.
8758 * frame-base.h: New file.
8759 * frame.h (struct frame_base): Add opaque declaration.
8760 (get_frame_base): Update comment.
8761 (get_frame_base_address): Declare.
8762 (get_frame_locals_address): Declare.
8763 (get_frame_args_address): Declare.
8764 (struct frame_info): Add "base" and "base_cache". Update
8765 comments on the unwinder.
8766 * frame.c: Include "frame-base.h".
8767 (get_frame_locals_address): New function.
8768 (get_frame_base_address): New function.
8769 (get_frame_args_address): New function.
8770 * findvar.c (read_var_value): Use get_frame_locals_address and
8771 get_frame_args_address.
8772 * stack.c (frame_info): Use get_frame_locals_address and
8773 get_frame_args_address.
8774 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8775 moved to "frame-base.c".
8776 * printcmd.c (print_frame_nameless_args): Ditto.
8777 * symtab.h (address_class): Update comments.
8778 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8779 get_frame_base_address.
8780 * dwarf2expr.c (execute_stack_op): Ditto.
8781 * Makefile.in (frame_base_h): Define.
8782 (frame.o): Update dependencies.
8783 (frame-base.o): Add dependencies.
8784 (SFILES): Add frame-base.c.
8785 (COMMON_OBS): Add frame-base.o.
8786
3d30e9c2
AC
87872003-04-01 Andrew Cagney <cagney@redhat.com>
8788
8789 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8790 CALL_DUMMY_LENGTH): Ditto.
8791 * gdbarch.c: Re-generate.
8792 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8793 (CALL_DUMMY_LENGTH): Delete macro.
8794 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8795 * arm-tdep.c (arm_gdbarch_init): Ditto.
8796 * avr-tdep.c (avr_gdbarch_init): Ditto.
8797 * cris-tdep.c (cris_gdbarch_init): Ditto.
8798 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8799 * frv-tdep.c (frv_gdbarch_init): Ditto.
8800 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8801 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8802 * i386-tdep.c (i386_gdbarch_init): Ditto.
8803 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8805 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8806 * mips-tdep.c (mips_gdbarch_init): Ditto.
8807 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8808 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8809 * s390-tdep.c (s390_gdbarch_init): Ditto.
8810 * sh-tdep.c (sh_gdbarch_init): Ditto.
8811 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8812 * v850-tdep.c (v850_gdbarch_init): Ditto.
8813 * vax-tdep.c (vax_gdbarch_init): Ditto.
8814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8815
ce0c7262
CV
88162003-04-01 Corinna Vinschen <vinschen@redhat.com>
8817
8818 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8819
73dd234f
AC
88202003-04-01 Andrew Cagney <cagney@redhat.com>
8821
8822 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8823 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8824 * gdbarch.h, gdbarch.c: Re-generate.
8825 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8826 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8827 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8828 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8829 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8830 * infcmd.c (run_stack_dummy): Simplify assuming
8831 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8832 * infrun.c (handle_inferior_event): Ditto.
8833 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8834 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8835 * arm-tdep.c (arm_gdbarch_init): Ditto.
8836 * avr-tdep.c (avr_gdbarch_init): Ditto.
8837 * cris-tdep.c (cris_gdbarch_init): Ditto.
8838 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8839 * frv-tdep.c (frv_gdbarch_init): Ditto.
8840 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8841 * i386-tdep.c (i386_gdbarch_init): Ditto.
8842 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8843 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8844 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8845 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8846 * mips-tdep.c (mips_gdbarch_init): Ditto.
8847 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8848 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8849 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8850 * s390-tdep.c (s390_gdbarch_init): Ditto.
8851 * sh-tdep.c (sh_gdbarch_init): Ditto.
8852 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8853 * v850-tdep.c (v850_gdbarch_init): Ditto.
8854 * vax-tdep.c (vax_gdbarch_init): Ditto.
8855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8856
97606a13
DJ
88572003-04-01 Daniel Jacobowitz <drow@mvista.com>
8858
8859 * symfile.c (symfile_relocate_debug_section): Update call to
8860 bfd_simple_get_relocated_section_contents.
8861
e8ab51f7
AC
88622003-03-31 Andrew Cagney <cagney@redhat.com>
8863
8864 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8865 * gdbarch.h, gdbarch.c: Regenerate.
8866 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8867 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8868 available.
8869 * frame.h (generic_fix_call_dummy): Delete declaration.
8870 * dummy-frame.h: Update comment.
8871 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8872 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8873 fix_call_dummy.
8874 * sh-tdep.c (sh_gdbarch_init): Ditto.
8875 * s390-tdep.c (s390_gdbarch_init): Ditto.
8876 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8877 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8879 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8880 * i386-tdep.c (i386_gdbarch_init): Ditto.
8881 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8882 * frv-tdep.c (frv_gdbarch_init): Ditto.
8883 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8884 * cris-tdep.c (cris_gdbarch_init): Ditto.
8885 * avr-tdep.c (avr_gdbarch_init): Ditto.
8886 * arm-tdep.c (arm_gdbarch_init): Ditto.
8887
018d1b48
JB
88882003-03-31 J. Brobecker <brobecker@gnat.com>
8889
8890 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8891 (INIT_FRAME_AP): Likewise.
8892 (EXTRA_FRAME_INFO): Likewise.
8893
e9a2674e
AC
88942003-03-31 Andrew Cagney <cagney@redhat.com>
8895
8896 * gdbarch.sh: Include "symfile.h".
8897 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8898 * gdbarch.h, gdbarch.c: Re-generate.
8899 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8900 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8901 call_dummy_address, the default is at entry_point_address.
8902 * v850-tdep.c (v850_gdbarch_init): Ditto.
8903 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8904 * sh-tdep.c (sh_gdbarch_init): Ditto.
8905 * s390-tdep.c (s390_gdbarch_init): Ditto.
8906 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8907 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8908 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8909 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8910 * i386-tdep.c (i386_gdbarch_init): Ditto.
8911 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8912 * frv-tdep.c (frv_gdbarch_init): Ditto.
8913 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8914 * cris-tdep.c (cris_gdbarch_init): Ditto.
8915 * arm-tdep.c (arm_gdbarch_init): Ditto.
8916
e8a8712a
AC
89172003-03-31 Andrew Cagney <cagney@redhat.com>
8918
8919 * gdbarch.sh (CALL_DUMMY_P): Delete.
8920 * gdbarch.h, gdbarch.c: Re-generate.
8921 * inferior.h (CALL_DUMMY_P): Delete macro.
8922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8923 * vax-tdep.c (vax_gdbarch_init): Update.
8924 * v850-tdep.c (v850_gdbarch_init): Update.
8925 * sparc-tdep.c (sparc_gdbarch_init): Update.
8926 * sh-tdep.c (sh_gdbarch_init): Update.
8927 * s390-tdep.c (s390_gdbarch_init): Update.
8928 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8929 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8930 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8931 * mips-tdep.c (mips_gdbarch_init): Update.
8932 * mcore-tdep.c (mcore_gdbarch_init): Update.
8933 * m68k-tdep.c (m68k_gdbarch_init): Update.
8934 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8935 * ia64-tdep.c (ia64_gdbarch_init): Update.
8936 * i386-tdep.c (i386_gdbarch_init): Update.
8937 * h8300-tdep.c (h8300_gdbarch_init): Update.
8938 * frv-tdep.c (frv_gdbarch_init): Update.
8939 * d10v-tdep.c (d10v_gdbarch_init): Update.
8940 * cris-tdep.c (cris_gdbarch_init): Update.
8941 * breakpoint.c (deprecated_frame_in_dummy): Update.
8942 * avr-tdep.c (avr_gdbarch_init): Update.
8943 * alpha-tdep.c (alpha_gdbarch_init): Update.
8944 * arm-tdep.c (arm_gdbarch_init): Update.
8945 * dummy-frame.c (dummy_frame_this_id): Update comments.
8946 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8947 * frame.c (legacy_get_prev_frame): Ditto.
8948 * valops.c (call_function_by_hand): Delete function.
8949 (hand_function_call): Rename to call_function_by_hand
8950
ed234cf8
AC
89512003-03-30 Andrew Cagney <cagney@redhat.com>
8952
8953 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8954 * value.h (struct value): Update comment.
ed234cf8 8955
06c77151
AC
89562003-03-30 Andrew Cagney <cagney@redhat.com>
8957
6c2b5168
AC
8958 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8959 D10V_FP_REGNUM.
8960 (d10v_gdbarch_init): Do not set fp_regnum.
8961
06c77151
AC
8962 * frame.c (get_frame_base): Force ID initialization.
8963 (get_prev_frame): Move computation of the frame ID from here ...
8964 (get_frame_id): ... to here.
8965 (legacy_get_prev_frame): Mark the frame ID as valid.
8966 * frame.h (struct frame_info): Add field "id_p".
8967
97a1a11c
MK
89682003-03-30 Mark Kettenis <kettenis@gnu.org>
8969
8970 * i386-tdep.c (i386_store_struct_return): Removed.
8971 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8972
6c0e89ed
AC
89732003-03-30 Andrew Cagney <cagney@redhat.com>
8974
8975 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8976 * gdbarch.h, gdbarch.c: Regenerate.
8977 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8978 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8979 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8980 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8981 * i386-tdep.c (i386_gdbarch_init): Ditto.
8982 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8983 * cris-tdep.c (cris_gdbarch_init): Ditto.
8984 * vax-tdep.c (vax_gdbarch_init): Ditto.
8985 * s390-tdep.c (s390_gdbarch_init): Ditto.
8986 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8987 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8988 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8989 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8990 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8991 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8992 * sparc-tdep.c (sparc_gdbarch_init): Update.
8993 * sh-tdep.c (sh_gdbarch_init): Update.
8994 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8995 * mips-tdep.c (mips_gdbarch_init): Update.
8996 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8997 * ia64-tdep.c (ia64_gdbarch_init): Update.
8998 * frv-tdep.c (frv_gdbarch_init): Update.
8999 * avr-tdep.c (avr_gdbarch_init): Update.
9000 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9001 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9002 instead of when push_dummy_call is not available.
8ffd9b1b 9003
f7dd6af2
AC
90042003-03-30 Andrew Cagney <cagney@redhat.com>
9005
9006 * infttrace.c: Include "gdbthread.h".
9007 (parent_attach_all): Fix function signature.
9008 (call_ptrace): Update call.
9009 * Makefile.in (infttrace.o): Update dependencies.
9010
28f617b3
AC
90112003-03-30 Andrew Cagney <cagney@redhat.com>
9012
9013 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9014 PUSH_RETURN_ADDRESS.
9015 * gdbarch.h, gdbarch.c: Regenerate.
9016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9017 * x86-64-tdep.c (x86_64_init_abi): Update.
9018 * v850-tdep.c (v850_gdbarch_init): Update.
9019 * sparc-tdep.c (sparc_gdbarch_init): Update.
9020 * sh-tdep.c (sh_gdbarch_init): Update.
9021 * s390-tdep.c (s390_gdbarch_init): Update.
9022 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9023 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9024 * mips-tdep.c (mips_gdbarch_init): Update.
9025 * mcore-tdep.c (mcore_gdbarch_init): Update.
9026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9027 * ia64-tdep.c (ia64_gdbarch_init): Update.
9028 * i386-tdep.c (i386_gdbarch_init): Update.
9029 * h8300-tdep.c (h8300_gdbarch_init): Update.
9030 * frv-tdep.c (frv_gdbarch_init): Update.
9031 * cris-tdep.c (cris_gdbarch_init): Update.
9032 * avr-tdep.c (avr_gdbarch_init): Update.
9033 * arm-tdep.c (arm_gdbarch_init): Update.
9034 * valops.c (hand_function_call): Update.
9035
4d628cd7
AC
90362003-03-29 Andrew Cagney <cagney@redhat.com>
9037
9038 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9039 sizeof_call_dummy_words.
9040 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9041 define.
9042 * gdbarch.h: Regenerate.
8ffd9b1b 9043
65e82032
AC
90442003-03-29 Andrew Cagney <cagney@redhat.com>
9045
9046 * infttrace.h: New file.
9047 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9048 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9049 (hpread_read_doc_function_type): Detect an initialized type1.
9050 (hpread_quick_traverse): Initialize mod_name_string.
9051 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9052 (som_solib_get_solib_by_pc): Declare.
9053 (so_lib_thread_start_addr): Declare.
9054 (no_shared_libraries): Declare.
9055 * somread.c (init_import_symbols): Make static. Add forward
9056 declaration.
9057 * config/pa/nm-hppah.h: Include "infttrace.h" for
9058 parent_attach_all.
9059 (hppa_insert_hw_watchpoint): Declare.
9060 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9061 * hppah-nat.c: Include "gdb_string.h".
9062 (parent_attach_all): Delete extern declaration, moved to
9063 "infttrace.h".
9064 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9065 int.
9066 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9067 * Makefile.in (infttrace_h): Define.
9068 (hpread.o): Update dependencies.
9069 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9070 * hppa-hpux-tdep.c: Include "gdb_string.h".
9071 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9072 * infrun.c (handle_inferior_event): Always initialize
9073 stepped_after_stopped_by_watchpoint. Add default and remove
9074 fallthrough in switch statement.
9075 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9076 parameter to int.
9077 (hppa_remove_hw_watchpoint): Ditto.
9078
2c3bbe77
AC
90792003-03-29 Andrew Cagney <cagney@redhat.com>
9080
9081 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9082 offset.
9083
2dd604e7
RE
90842003-03-29 Richard Earnshaw <rearnsha@arm.com>
9085
9086 * arm-tdep.c (arm_push_arguments): Delete.
9087 (struct stack_item): New type.
9088 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9089 (arm_store_struct_return): Delte.
9090 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9091 arm_push_arguments or arm_store_struct_return.
9092
e8933a55
AC
90932003-03-28 Andrew Cagney <cagney@redhat.com>
9094
9095 * Makefile.in (d10v-tdep.o): Update dependencies.
9096 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9097 * d10v-tdep.c: Include "remote.h".
9098 (target_resume_hook): Delete extern declaration.
9099 (target_wait_loop_hook): Ditto.
9100 (tdisassemble_command): Eliminate assignment in "if" conditional.
9101 (d10v_ts2_register_sim_regno): Eliminate call to
9102 legacy_register_sim_regno.
9103 (d10v_ts3_register_sim_regno): Ditto.
9104
6949171e
JJ
91052003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9106
9107 * thread.c: Reindented.
9108 * lin-lwp.c: Ditto.
9109 * linux-proc.c: Ditto.
9110
98c7071f
BR
91112003-03-28 Bob Rossi <bob_rossi@cox.net>
9112
fbe586ae 9113 * MAINTAINERS (write after approval): Add myself.
98c7071f 9114
5edc9ca6
TR
91152003-03-27 Theodore A. Roth <troth@openavr.org>
9116
9117 * objc-exp.y: Add missing semi-colons.
9118
378bfd1b
AC
91192003-03-27 Andrew Cagney <cagney@redhat.com>
9120
9121 * regcache.c (write_sp): Delete function and references.
9122 * inferior.h (write_sp): Delete declaration.
9123 * valops.c (hand_function_call): Replace write_sp with
9124 TARGET_WRITE_SP.
9125 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9126 (sparc_pop_frame): Ditto.
8ffd9b1b 9127
56056df7
AC
91282003-03-27 Andrew Cagney <cagney@redhat.com>
9129
9130 * NEWS: Mention removal of support for hppa*-*-bsd* and
9131 hppa*-*-osf* natives, and hppa*-*-pro* target.
9132 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9133 * config/pa/xm-pa.h: Obsolete file.
9134 * config/pa/xm-hppab.h: Obsolete file.
9135 * config/pa/nm-hppab.h: Obsolete file.
9136 * config/pa/tm-hppab.h: Obsolete file.
9137 * config/pa/tm-hppao.h: Obsolete file.
9138 * config/pa/nm-hppao.h: Obsolete file.
9139 * config/pa/tm-pro.h: Obsolete file.
9140 * config/pa/hppaosf.mt: Obsolete file.
9141 * config/pa/hppaosf.mh: Obsolete file.
9142 * config/pa/hppapro.mt: Obsolete file.
9143 * config/pa/hppabsd.mt: Obsolete file.
9144 * config/pa/hppabsd.mh: Obsolete file.
9145 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9146 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9147 hppa*-*-osf*.
9148
5873a88d
AC
91492003-03-27 Andrew Cagney <cagney@redhat.com>
9150
9151 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9152 push_arguments. Don't set push_return_address or write_sp.
9153 (d10v_push_dummy_call): Replace d10v_push_arguments.
9154 (d10v_push_return_address, d10v_write_sp): Delete function,
9155 handled by push_dummy_call.
9156
b81774d8
AC
91572003-03-26 Andrew Cagney <cagney@redhat.com>
9158
9159 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9160 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9161 regcache and dummy_addr parameters.
9162 * gdbarch.h, gdbarch.c: Re-generate.
9163 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9164 available; assume it will handle stack alignment and return
9165 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9166 legacy_push_arguments.
9167 (legacy_push_arguments): Rename default_push_arguments.
9168 * value.h (legacy_push_arguments): Rename default_push_arguments.
9169 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9170 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9171 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9172 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9173 * config/i386/tm-symmetry.h: Update.
9174 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9175 * x86-64-tdep.c (x86_64_init_abi): Update.
9176 * v850-tdep.c (v850_gdbarch_init): Update.
9177 * sparc-tdep.c (sparc_gdbarch_init): Update.
9178 * sh-tdep.c (sh_gdbarch_init): Update.
9179 * s390-tdep.c (s390_gdbarch_init): Update.
9180 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9181 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9182 * mips-tdep.c (mips_gdbarch_init): Update.
9183 * mcore-tdep.c (mcore_gdbarch_init): Update.
9184 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9185 * ia64-tdep.c (ia64_gdbarch_init): Update.
9186 * i386-tdep.c (i386_gdbarch_init): Update.
9187 * hppa-tdep.c (hppa_gdbarch_init): Update.
9188 * h8300-tdep.c (h8300_gdbarch_init): Update.
9189 * frv-tdep.c (frv_gdbarch_init): Update.
9190 * d10v-tdep.c (d10v_gdbarch_init): Update.
9191 * cris-tdep.c (cris_gdbarch_init): Update.
9192 * avr-tdep.c (avr_gdbarch_init): Update.
9193 * arm-tdep.c (arm_gdbarch_init): Update.
9194 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9195 * alpha-tdep.c (alpha_gdbarch_init): Update.
9196
f541410f
DJ
91972003-03-26 Daniel Jacobowitz <drow@mvista.com>
9198
9199 * signals/signals.c (do_target_signal_to_host): Correct realtime
9200 signal range test.
9201
69f567ae
DJ
92022003-03-26 Daniel Jacobowitz <drow@mvista.com>
9203
9204 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9205 (struct sal_chain, map_catch_names): Remove.
9206 (catch_exception_command_1): Don't call
9207 handle_gnu_4_16_catch_command.
9208
d5d14a5a
DJ
92092003-03-26 Daniel Jacobowitz <drow@mvista.com>
9210
9211 From Mark Dettinger <dettinge@de.ibm.com>:
9212 * dwarf2cfi.c (read_2u): Increment pointer by two.
9213
bdd73e22
DJ
92142003-03-26 Daniel Jacobowitz <drow@mvista.com>
9215
9216 * signals/signals.c: Fix typos in last change.
9217
960cb555
DJ
92182003-03-26 Daniel Jacobowitz <drow@mvista.com>
9219
9220 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9221 not already defined. Use __SIGRTMIN if available.
9222 (target_signal_from_host): Remove SIGRTMIN block.
9223 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9224 the signal is within the realtime range.
9225
f636b87d
AF
92262003-03-25 Adam Fedor <fedor@gnu.org>
9227
9228 * Makefile.in (infrun.o): Add $(language_h)
9229 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9230 for language specific trampolines.
9231 * language.h (struct language_defn): Add skip_trampoline.
9232 (skip_language_trampoline): Declare.
9233 * language.c (unk_lang_trampoline, skip_language_trampoline):
9234 New functions.
9235 (unknown_language_defn, auto_language_defn, local_language_defn):
9236 Add ukn_lang_trampoline.
9237 * ada-lang.c (ada_language_defn): Add NULL for language
9238 specific skip_trampoline.
9239 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9240 scm-lang.c: Likewise.
9241 * objc-lang.c (objc_skip_trampoline): New function.
9242 (objc_language_defn): Add objc_skip_trampoline.
9243
28f617b3 92442003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9245
9246 * frame.c (get_prev_frame): Delay validating a frame's ID -
9247 non-NULL, didn't go backwards - until an attempt to unwind it to
9248 the previous frame.
9249
f933a9c5
AC
92502003-03-25 Andrew Cagney <cagney@redhat.com>
9251
9252 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9253 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9254 * gdbarch.h, gdbarch.c: Re-generate.
9255 * config/sparc/tm-sparc.h
9256 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9257 * sparc-tdep.c (sparc_gdbarch_init): Set
9258 deprecated_extra_stack_alignment_needed.
9259 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9260 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9261 extra_stack_alignment_needed.
9262 * v850-tdep.c (v850_gdbarch_init): Ditto.
9263 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9264 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9265 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9266 * cris-tdep.c (cris_gdbarch_init): Ditto.
9267 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9268 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9269
4183d812
AC
92702003-03-25 Andrew Cagney <cagney@redhat.com>
9271
9272 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9273 STORE_STRUCT_RETURN.
9274 * gdbarch.h, gdbarch.c: Regenerate.
9275 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9276 (d10v_push_arguments): Set the struct return register.
9277 (d10v_gdbarch_init): Update.
9278 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9279 * x86-64-tdep.c (x86_64_init_abi): Update.
9280 * vax-tdep.c (vax_gdbarch_init): Update.
9281 * v850-tdep.c (v850_gdbarch_init): Update.
9282 * sparc-tdep.c (sparc_gdbarch_init): Update.
9283 * sh-tdep.c (sh_gdbarch_init): Update.
9284 * s390-tdep.c (s390_gdbarch_init): Update.
9285 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9286 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9287 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9288 * mips-tdep.c (mips_gdbarch_init): Update.
9289 * mcore-tdep.c (mcore_gdbarch_init): Update.
9290 * m68k-tdep.c (m68k_gdbarch_init): Update.
9291 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9292 * ia64-tdep.c (ia64_gdbarch_init): Update.
9293 * i386-tdep.c (i386_gdbarch_init): Update.
9294 * hppa-tdep.c (hppa_gdbarch_init): Update.
9295 * h8300-tdep.c (h8300_gdbarch_init): Update.
9296 * frv-tdep.c (frv_gdbarch_init): Update.
9297 * cris-tdep.c (cris_gdbarch_init): Update.
9298 * avr-tdep.c (avr_gdbarch_init): Update.
9299 * arm-tdep.c (arm_gdbarch_init): Update.
9300 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9301
1bf6d5cc
AC
93022003-03-25 Andrew Cagney <cagney@redhat.com>
9303
9304 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9305 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9306 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9307 * gdbarch.h, gdbarch.c: Regenerate.
9308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9309 call_dummy_stack_adjust_p.
9310 * vax-tdep.c (vax_gdbarch_init): Ditto.
9311 * v850-tdep.c (v850_gdbarch_init): Ditto.
9312 * sh-tdep.c (sh_gdbarch_init): Ditto.
9313 * s390-tdep.c (s390_gdbarch_init): Ditto.
9314 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9315 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9316 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9317 * mips-tdep.c (mips_gdbarch_init): Ditto.
9318 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9319 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9321 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9322 * i386-tdep.c (i386_gdbarch_init): Ditto.
9323 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9324 * frv-tdep.c (frv_gdbarch_init): Ditto.
9325 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9326 * cris-tdep.c (cris_gdbarch_init): Ditto.
9327 * avr-tdep.c (avr_gdbarch_init): Ditto.
9328 * arm-tdep.c (arm_gdbarch_init): Ditto.
9329 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9330 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9331 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9332 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9333 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9334 call_dummy_stack_adjust_p.
9335 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9336 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9337 * sparc-tdep.c (sparc32_push_arguments): Update.
9338 * valops.c (hand_function_call): Update.
9339
71c08af0
CV
93402003-03-25 Corinna Vinschen <vinschen@redhat.com>
9341
9342 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9343 set_gdbarch_char_signed.
9344
30757f90
RE
93452003-03-25 Richard Earnshaw <rearnsha@arm.com>
9346
9347 PR cli/548
9348 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9349
03d48a7d
RE
93502003-03-25 Richard Earnshaw <rearnsha@arm.com>
9351
9352 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9353 (_initialize_arm_tdep): Don't set tm_print_insn.
9354
2cf6873c
AF
93552003-03-24 Adam Fedor <fedor@gnu.org>
9356
9357 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9358 * objc-lang.h: Add multiple inclusion protection.
9359 (start_msglist, add_msglist, end_msglist): Additional declarations.
9360
17c0759e
RE
93612003-03-24 Richard Earnshaw <rearnsha@arm.com>
9362
9363 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9364 value was renamed to ARM_FLOAT_SOFT_FPA.
9365
618ce49f
AC
93662003-03-23 Andrew Cagney <cagney@redhat.com>
9367
9368 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9369 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9370 * gdbarch.h, gdbarch.c: Regenerate.
9371 * valops.c (hand_function_call): Update.
9372 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9373 * frame.c (legacy_saved_regs_this_id): Update.
9374 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9375 * dummy-frame.h: Update.
9376 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9377 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9378 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9379 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9380 * config/m68k/tm-sun3.h: Update.
9381 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9382 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9383 * x86-64-tdep.c (x86_64_init_abi): Update.
9384 * vax-tdep.c (vax_gdbarch_init): Update.
9385 * v850-tdep.c (v850_gdbarch_init): Update.
9386 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9387 * sh-tdep.c (sh_gdbarch_init): Update.
9388 * s390-tdep.c (s390_gdbarch_init): Update.
9389 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9390 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9391 (frame_get_saved_regs): Update.
9392 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9393 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9394 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9395 * mips-tdep.c (mips_gdbarch_init): Update.
9396 * mcore-tdep.c (mcore_gdbarch_init): Update.
9397 * m68k-tdep.c (m68k_gdbarch_init): Update.
9398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9399 * ia64-tdep.c (ia64_gdbarch_init): Update.
9400 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9401 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9402 (i386_interix_back_one_frame): Update.
9403 * hppa-tdep.c (hppa_gdbarch_init): Update.
9404 (hppa_init_extra_frame_info): Update.
9405 * h8300-tdep.c (h8300_gdbarch_init): Update.
9406 * frv-tdep.c (frv_gdbarch_init): Update.
9407 * cris-tdep.c (cris_gdbarch_init): Update.
9408 * avr-tdep.c (avr_gdbarch_init): Update.
9409 * arm-tdep.c (arm_gdbarch_init): Update.
9410 * alpha-tdep.c (alpha_gdbarch_init): Update.
9411
fd50bc42
RE
94122003-03-22 Richard Earnshaw <rearnsha@arm.com>
9413
9414 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9415 (arm_get_fp_model): Declare.
9416 * arm-tdep.c (fp_model_strings): New string array.
9417 (arm_fp_model, current_fp_model): New variables.
9418 (arm_get_fp_model): New function.
9419 (arm_set_fp): New function.
9420 (set_fp_model_sfunc): New function.
9421 (show_fp_model): New function.
9422 (_initialize_arm_tdep): Add new command to set/show the FPU.
9423 (arm_extract_return_value): Use arm_get_fp_model.
9424 (arm_store_return_value): Likewise.
9425 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9426 to initialize the floating-point data types.
9427 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9428 model is FPA.
9429
26304000
RE
94302003-03-22 Richard Earnshaw <rearnsha@arm.com>
9431
9432 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9433 the current setting of each value.
9434 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9435 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9436 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9437 commands and add new version as subcommands of "set/show arm".
9438
afd7eef0
RE
94392003-03-22 Richard Earnshaw <rearnsha@arm.com>
9440
9441 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9442 (set_arm_command, show_arm_command): New functions.
9443 (_initialize_arm_tdep): Add them.
9444 (num_disassembly_options): Renamed from num_flavor_options.
9445 (valid_disassembly_styles): Renamed from valid_flavors.
9446 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9447 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9448 set_disassembly_flavor_sfunc.
9449 (set_disassembly_style): Renamed from set_disassembly_flavor.
9450 (arm_othernames): Updated.
9451 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9452 command. Add "set/show arm disassembly" commands. Deprecate
9453 "othernames" command.
9454
299a7944
RE
94552003-03-22 Richard Earnshaw <rearnsha@arm.com>
9456
9457 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9458 (arm-tdep.o): Depend on elf_arm_h.
9459
c1dac9e6
RE
94602003-03-22 Richard Earnshaw <rearnsha@arm.com>
9461
9462 * Makefile.in (coff_internal_h): Define.
9463 (arm-tdep.o): Update dependencies.
9464
2702d96c
RE
94652003-03-22 Richard Earnshaw <rearnsha@arm.com>
9466
9467 * arm-tdep.c (prologue_cache): Delete.
9468 (check_prologue_cache, save_prologue_cache): Delete.
9469 (arm_scan_prologue): Don't check or update the prologue_cache.
9470 (arm_gdb_arch_init): Don't initialize it.
9471 (_initialize_arm_tdep): Likewise.
9472
27d5d74b
SC
94732003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9474
9475 * MAINTAINERS (tui): Maintainer of tui code.
9476
1762d96d
CV
94772003-03-21 Corinna Vinschen <vinschen@redhat.com>
9478
9479 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9480 (i386-cygwin-tdep.o): Add dependencies.
9481 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9482 * i386-cygwin-tdep.c: New file.
9483 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9484 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9485
4c2e2391
AC
94862003-03-20 Andrew Cagney <cagney@redhat.com>
9487
f20d38b7
AC
9488 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9489 (handle_inferior_event): Remove code calling
9490 DYNAMIC_TRAMPOLINE_NEXTPC.
9491
0022b738
AC
9492 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9493 already has a full path.
9494
864dbc90
AC
9495 * main.c (gdb_main): Return 1.
9496 (captured_main): Call error to report an invalid interpreter.
9497
4c2e2391
AC
9498 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9499 * alpha-osf1-tdep.c: Include "gdb_string.h".
9500
5ef7553b
JB
95012003-03-19 J. Brobecker <brobecker@gnat.com>
9502
9503 Continuing work to convert the hppa targets to multiarch partial.
9504
9505 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9506 method, now that hppa_push_dummy_frame has a conformant prototype.
9507 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9508 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9509 for the switch to multiarch partial.
9510
7bde8967
KB
95112003-03-19 Kevin Buettner <kevinb@redhat.com>
9512
9513 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9514 when iss is issNull.
9515
b006a9e9
KB
95162003-03-18 Kevin Buettner <kevinb@redhat.com>
9517
9518 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9519 NUM_REGS bounds check.
9520
5e2e9765
KB
95212003-03-18 Kevin Buettner <kevinb@redhat.com>
9522
9523 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9524 * mips-tdep.c (gdb_assert.h): Include.
9525 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9526 (mips_register_name): Handle integer registers explicitly. Add
9527 bounds checking.
9528 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9529 (mips_lsi33k_reg_names): Don't list integer registers; they're
9530 handled by mips_register_name() now.
9531 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9532 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9533 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9534 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9535 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9536
a2867626
AC
95372003-03-18 Andrew Cagney <cagney@redhat.com>
9538
9539 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9540 a void pointer.
9541 * gdbtypes.h (print_scalar_formatted): Update declaration.
9542 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9543
06600e06
JB
95442003-03-18 J. Brobecker <brobecker@gnat.com>
9545
9546 * infrun.c (observer.h): Add #include.
9547 (normal_stop): Add call to observer_notify_normal_stop.
9548 * Makefile.in (infrun.o): Add dependency on observer.h.
9549
7daf4f5b
JB
95502003-03-18 J. Brobecker <brobecker@gnat.com>
9551
9552 Continuing work to convert the hppa targets to multiarch partial.
9553 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9554 parameter. Reformat comment.
9555 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9556 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9557 to match new profile.
9558
3371ccc0
JB
95592003-03-18 J. Brobecker <brobecker@gnat.com>
9560
9561 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9562 appear to be working in any case.
9563
4fbe891e
JB
95642003-03-18 J. Brobecker <brobecker@gnat.com>
9565
9566 * observer.c (observer_test_first_observer): New static variable.
9567 (observer_test_second_observer): Likewise.
9568 (observer_test_third_observer): Likewise.
9569 (observer_test_first_notification_function): New static function.
9570 (observer_test_second_notification_function): Likewise.
9571 (observer_test_third_notification_function): Likewise.
9572
a7ff40e7
JB
95732003-03-17 J. Brobecker <brobecker@gnat.com>
9574
9575 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9576 * somsolib.c (gdb_assert.h): Likewise.
9577 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9578 (somsolib.o): Likewise.
9579
26ca4152
AC
95802003-03-17 Andrew Cagney <cagney@redhat.com>
9581
9582 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9583 BFD. Simplify setting of di.endian.
9584
0a613259
AC
95852003-03-17 Andrew Cagney <cagney@redhat.com>
9586
9587 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9588 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9589
9590 From Elena Zannoni <ezannoni@redhat.com>
9591 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9592 vector and floating-point parameters.
9593 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9594 convention.
9595 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9596
1132738f
FN
95972003-03-17 Fernando Nasser <fnasser@redhat.com>
9598
9599 * MAINTAINERS: Remove my name from several maintainership roles.
9600
6dc42492
AC
96012003-03-17 Andrew Cagney <cagney@redhat.com>
9602
9603 Fix frame off-by-one bug.
9604 * frame-unwind.h (frame_this_id_ftype): Replace
9605 frame_unwind_id_ftype.
9606 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9607 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9608 with "prev_register".
9609 * frame-unwind.c (frame_unwind_find_by_pc): Return
9610 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9611 comment.
9612 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9613 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9614 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9615 (dummy_frame_unwind): Update.
9616 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9617 sentinel_frame_register_unwind.
9618 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9619 (sentinel_frame_unwinder): Update.
9620 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9621 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9622 * frame.c (create_sentinel_frame): Update. Initialize
9623 "prologue_cache" instead of "unwind_cache".
9624 (frame_register_unwind): Call this frame's prev_register with the
9625 next frame and this frame's prologue cache.
9626 (get_prev_frame): Simplify. Always call prev frame's this_id with
9627 this frame and prev frame's prologue cache. Document that this
9628 call is shifted one to the left when compared to the
9629 frame_register_unwind call.
9630 (legacy_saved_regs_prev_register): Replace
9631 frame_saved_regs_register_unwind.
9632 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9633 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9634 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9635 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9636 (d10v_frame_unwind): Update.
9637 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9638 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9639 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9640 "saved_regs" with "this_saved_regs".
9641
efd710d6
AC
96422003-03-16 Andrew Cagney <cagney@redhat.com>
9643
9644 * frame.c (frame_pop): Don't call target_store_registers. Fix
9645 problem reported by Mark Kettenis.
9646
4e259f09
MK
96472003-03-16 Mark Kettenis <kettenis@gnu.org>
9648
9649 * i386-tdep.c (i386_register_type): Renamed from
9650 i386_register_virtual_type. Adjust function signature.
9651 (i386_gdbarch_init): Set register_type instead of
9652 deprecated_max_register_raw_size,
9653 deprecated_max_register_virtual_size and register_virtual_type.
9654
055bb976
AC
96552003-03-14 Andrew Cagney <cagney@redhat.com>
9656
9657 * frame.c (get_prev_frame): When a legacy frame, always call
9658 legacy_get_prev_frame. Simplify unwind code using assumption that
9659 the unwinder is new.
9660 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9661 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9662 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9663
ac2adee5
AC
96642003-03-14 Andrew Cagney <cagney@redhat.com>
9665
9666 * frame.c (get_saved_register): Delete function.
9667 * frame.h (get_saved_register): Delete declaration.
9668 * xstormy16-tdep.c: Update comment.
9669 * regcache.h: Update comments.
9670 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9671 get_saved_register and extract_address, use
9672 frame_read_unsigned_register.
9673 (sparc_frame_saved_pc): Ditto.
9674 (sparc_get_saved_register): Instead of get_saved_register, use
9675 frame_register.
9676 (sparc_pop_frame): Ditto.
9677 * findvar.c: Update comments.
9678 (value_of_register): Call frame_register instead of
9679 get_saved_register.
9680 (value_from_register): Ditto.
9681 * config/sparc/tm-sparc.h: Update comment.
9682 * breakpoint.c: Update comment.
9683
129c1cd6
AC
96842003-03-14 Andrew Cagney <cagney@redhat.com>
9685
9686 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9687 GET_SAVED_REGISTER.
9688 * gdbarch.h, gdbarch.c: Re-generate.
9689 * frame.h: Update comments.
9690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9691 * x86-64-tdep.c (x86_64_init_abi): Update.
9692 * sparc-tdep.c (sparc_gdbarch_init): Update.
9693 * sh-tdep.c (sh_gdbarch_init): Update.
9694 * mips-tdep.c (mips_gdbarch_init): Update.
9695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9696 * cris-tdep.c (cris_gdbarch_init): Update.
9697 * ia64-tdep.c (ia64_gdbarch_init): Update.
9698 * frame.c (frame_register): Update.
9699 (get_saved_register): Update.
9700 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9701
749b82f6
AC
97022003-03-13 Andrew Cagney <cagney@redhat.com>
9703
9704 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9705 * gdbarch.h, gdbarch.c: Regenerate.
9706 * valops.c (hand_function_call): Update comment.
9707 * stack.c (return_command): Update comment.
9708 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9709 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9710 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9711 * x86-64-tdep.c (x86_64_init_abi): Update.
9712 * vax-tdep.c (vax_gdbarch_init): Update.
9713 * v850-tdep.c (v850_gdbarch_init): Update.
9714 * sparc-tdep.c (sparc_gdbarch_init): Update.
9715 * sh-tdep.c (sh_gdbarch_init): Update.
9716 * s390-tdep.c (s390_gdbarch_init): Update.
9717 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9718 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9719 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9720 * mips-tdep.c (mips_gdbarch_init): Update.
9721 * mcore-tdep.c (mcore_gdbarch_init): Update.
9722 * m68k-tdep.c (m68k_gdbarch_init): Update.
9723 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9724 * ia64-tdep.c (ia64_gdbarch_init): Update.
9725 * i386-tdep.c (i386_gdbarch_init): Update.
9726 * hppa-tdep.c (hppa_gdbarch_init): Update.
9727 * h8300-tdep.c (h8300_gdbarch_init): Update.
9728 * frv-tdep.c (frv_gdbarch_init): Update.
9729 * cris-tdep.c (cris_gdbarch_init): Update.
9730 * avr-tdep.c (avr_gdbarch_init): Update.
9731 * arm-tdep.c (arm_gdbarch_init): Update.
9732 * alpha-tdep.c (alpha_gdbarch_init): Update.
9733
1594fa56
AC
97342003-03-13 Andrew Cagney <cagney@redhat.com>
9735
9736 * frame.c (legacy_frame_p): New function.
9737 (get_prev_frame): Use legacy_frame_p.
9738 * frame.h (legacy_frame_p): Declare.
9739
7717fda3
V
97402003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9741
fbe586ae 9742 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9743 listing corrected.
9744
0c67cbe9
V
97452003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9746
fbe586ae 9747 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9748
03febf99
AC
97492003-03-12 Andrew Cagney <cagney@redhat.com>
9750
9751 * frame.c (get_prev_frame): Rename the frame parameter to
9752 "this_frame".
9753 (get_next_frame, legacy_get_prev_frame): Ditto.
9754
0a1e1ca1
AC
97552003-03-12 Andrew Cagney <cagney@redhat.com>
9756
9757 * frame.c (get_current_frame): Check target_has_registers before
9758 checking target_has_stack.
9759 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9760 instead of deprecated_selected_frame.
9761 * findvar.c (value_of_register): Pass "frame", not
9762 deprecated_selected_frame, to value_of_builtin_reg.
9763
a66a9c23
AC
97642003-03-12 Andrew Cagney <cagney@redhat.com>
9765
9766 * regcache.c (regcache_cooked_write_signed): New function.
9767 (regcache_cooked_write_unsigned): New function.
9768 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9769 (regcache_cooked_read_signed): Fix regnum in range assertion.
9770 * regcache.h (regcache_cooked_write_signed): Declare.
9771 (regcache_cooked_write_unsigned): Declare.
9772
8bedc050
AC
97732003-03-12 Andrew Cagney <cagney@redhat.com>
9774
9775 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9776 * gdbarch.h, gdbarch.c: Re-generate.
9777 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9778 * x86-64-tdep.h: Update.
9779 * x86-64-tdep.c (x86_64_init_abi): Update.
9780 * v850-tdep.c (v850_gdbarch_init): Update.
9781 * sparc-tdep.c (sparc_gdbarch_init): Update.
9782 * sh-tdep.c (sh_gdbarch_init): Update.
9783 * s390-tdep.c (s390_gdbarch_init): Update.
9784 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9785 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9786 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9787 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9788 * mips-tdep.c (mips_gdbarch_init): Update.
9789 * mcore-tdep.c (mcore_gdbarch_init): Update.
9790 * m68k-tdep.c (m68k_gdbarch_init): Update.
9791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9792 * ia64-tdep.c (ia64_gdbarch_init): Update.
9793 * i386-tdep.c (i386_gdbarch_init): Update.
9794 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9795 * hppa-tdep.c (hppa_gdbarch_init): Update.
9796 * h8300-tdep.c (h8300_gdbarch_init): Update.
9797 * frv-tdep.c (frv_gdbarch_init): Update.
9798 * cris-tdep.c (cris_gdbarch_init): Update.
9799 * avr-tdep.c (avr_gdbarch_init): Update.
9800 * arm-tdep.c (arm_gdbarch_init): Update.
9801 * alpha-tdep.c (alpha_gdbarch_init): Update.
9802 * sh-tdep.c (sh_init_extra_frame_info): Update.
9803 (sh64_init_extra_frame_info): Update.
9804 * ns32knbsd-nat.c (frame_num_args): Update.
9805 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9806 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9807 (xstormy16_frame_chain_valid): Update.
9808 * vax-tdep.c (vax_saved_pc_after_call): Update.
9809 * v850-tdep.c (v850_frame_chain): Update.
9810 (v850_pop_frame): Update.
9811 (v850_init_extra_frame_info): Update.
9812 * sparc-tdep.c (setup_arbitrary_frame): Update.
9813 * ns32k-tdep.c (umax_frame_num_args): Update.
9814 * s390-tdep.c (s390_pop_frame_regular): Update.
9815 * mn10300-tdep.c (mn10300_frame_chain): Update.
9816 (mn10300_pop_frame_regular): Update.
9817 (mn10300_init_extra_frame_info): Update.
9818 * mips-tdep.c (mips_init_frame_pc_first): Update.
9819 (mips_frame_chain): Update.
9820 (mips_pop_frame): Update.
9821 * mcore-tdep.c (mcore_frame_chain): Update.
9822 (mcore_pop_frame): Update.
9823 (mcore_init_extra_frame_info): Update.
9824 * arch-utils.c (init_frame_pc_default): Update.
9825 * m68k-tdep.c (isi_frame_num_args): Update.
9826 (delta68_frame_num_args): Update.
9827 (news_frame_num_args): Update.
9828 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9829 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9830 (alpha_frame_chain): Update.
9831 (alpha_pop_frame): Update.
9832 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9833 (hppa_init_extra_frame_info): Update.
9834 (hppa_frame_chain): Update.
9835 (hppa_frame_chain_valid): Update.
9836 * cris-tdep.c (cris_init_extra_frame_info): Update.
9837 * avr-tdep.c (avr_init_extra_frame_info): Update.
9838 * arm-tdep.c (arm_frame_chain_valid): Update.
9839 (arm_init_extra_frame_info): Update.
9840 (arm_pop_frame): Update.
9841 * frame.c (frame_pc_unwind): Update.
9842 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9843 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9844 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9845 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9846 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9847 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9848
7a25a7c1
AC
98492003-03-12 Andrew Cagney <cagney@redhat.com>
9850
9851 Eliminate the need for POP_FRAME.
9852 * frame.c (do_frame_unwind_register): New function.
9853 (frame_pop): When no POP_FRAME, pop the frame using register
9854 unwind and a scratch regcache.
9855 (frame_saved_regs_pop): Delete function.
9856 (trad_frame_unwinder): Update.
9857 * d10v-tdep.c (d10v_frame_pop): Delete function.
9858 (d10v_frame_unwind): Update.
9859 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9860 (sentinel_frame_unwinder): Update.
9861 * dummy-frame.c (dummy_frame_pop): Delete function.
9862 (dummy_frame_unwind): Update.
9863 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9864 (struct frame_unwind): Update.
9865
2f38ef89
KB
98662003-03-11 Kevin Buettner <kevinb@redhat.com>
9867
9868 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9869 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9870 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9871 Do range checks on register number obtained from debugging info.
9872 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9873 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9874 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9875 mapping function.
9876 (do_fp_register_row): Fix typo which caused double type to be
9877 used when attempting to unpack a float.
9878
552f4abf
JB
98792003-03-11 J. Brobecker <brobecker@gnat.com>
9880
9881 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9882
e0d2ae16
AC
98832003-03-11 Andrew Cagney <cagney@redhat.com>
9884
9885 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9886 frame. Problem found by Corinna Vinschen.
9887
ddbfdd06
PM
98882003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9889
9890 * doublest.c (floatformat_from_length): Accept also
9891 the real size of 'long double' type.
9892
088b2ddc 98932003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9894
088b2ddc 9895 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9896 * breakpoint.c (bpstat_copy): Copy the command lines as well
9897 as the old value, to match what is freed in bpstat_clear.
9898
f56f77c1
DC
98992003-03-10 David Carlton <carlton@math.stanford.edu>
9900
9901 * minsyms.c (add_minsym_to_hash_table): Replace
9902 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9903 (compare_minimal_symbols, compact_minimal_symbols)
9904 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9905 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9906 of DEPRECATED_SYMBOL_MATCHES_NAME.
9907 (lookup_minimal_symbol_solib_trampoline): Ditto.
9908
5602984a
AC
99092003-03-10 Andrew Cagney <cagney@redhat.com>
9910
9911 * regcache.h (regcache_cooked_read_ftype): Define.
9912 (regcache_save, regcache_restore): Add a cooked_read parameter.
9913 * regcache.c (regcache_save, regcache_restore): Update.
9914 (do_cooked_read): New function.
9915 (regcache_cpy): Pass do_cooked_read to regcache_save and
9916 regcache_restore.
9917
8bedc050
AC
99182003-03-10 Andrew Cagney <cagney@redhat.com>
9919
9920 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9921 * gdbarch.h, gdbarch.c: Re-generate.
9922 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9923 * x86-64-tdep.h: Update.
9924 * x86-64-tdep.c (x86_64_init_abi): Update.
9925 * v850-tdep.c (v850_gdbarch_init): Update.
9926 * sparc-tdep.c (sparc_gdbarch_init): Update.
9927 * sh-tdep.c (sh_gdbarch_init): Update.
9928 * s390-tdep.c (s390_gdbarch_init): Update.
9929 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9930 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9931 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9932 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9933 * mips-tdep.c (mips_gdbarch_init): Update.
9934 * mcore-tdep.c (mcore_gdbarch_init): Update.
9935 * m68k-tdep.c (m68k_gdbarch_init): Update.
9936 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9937 * ia64-tdep.c (ia64_gdbarch_init): Update.
9938 * i386-tdep.c (i386_gdbarch_init): Update.
9939 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9940 * hppa-tdep.c (hppa_gdbarch_init): Update.
9941 * h8300-tdep.c (h8300_gdbarch_init): Update.
9942 * frv-tdep.c (frv_gdbarch_init): Update.
9943 * cris-tdep.c (cris_gdbarch_init): Update.
9944 * avr-tdep.c (avr_gdbarch_init): Update.
9945 * arm-tdep.c (arm_gdbarch_init): Update.
9946 * alpha-tdep.c (alpha_gdbarch_init): Update.
9947 * sh-tdep.c (sh_init_extra_frame_info): Update.
9948 (sh64_init_extra_frame_info): Update.
9949 * ns32knbsd-nat.c (frame_num_args): Update.
9950 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9951 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9952 (xstormy16_frame_chain_valid): Update.
9953 * vax-tdep.c (vax_saved_pc_after_call): Update.
9954 * v850-tdep.c (v850_frame_chain): Update.
9955 (v850_pop_frame): Update.
9956 (v850_init_extra_frame_info): Update.
9957 * sparc-tdep.c (setup_arbitrary_frame): Update.
9958 * ns32k-tdep.c (umax_frame_num_args): Update.
9959 * s390-tdep.c (s390_pop_frame_regular): Update.
9960 * mn10300-tdep.c (mn10300_frame_chain): Update.
9961 (mn10300_pop_frame_regular): Update.
9962 (mn10300_init_extra_frame_info): Update.
9963 * mips-tdep.c (mips_init_frame_pc_first): Update.
9964 (mips_frame_chain): Update.
9965 (mips_pop_frame): Update.
9966 * mcore-tdep.c (mcore_frame_chain): Update.
9967 (mcore_pop_frame): Update.
9968 (mcore_init_extra_frame_info): Update.
9969 * arch-utils.c (init_frame_pc_default): Update.
9970 * m68k-tdep.c (isi_frame_num_args): Update.
9971 (delta68_frame_num_args): Update.
9972 (news_frame_num_args): Update.
9973 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9974 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9975 (alpha_frame_chain): Update.
9976 (alpha_pop_frame): Update.
9977 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9978 (hppa_init_extra_frame_info): Update.
9979 (hppa_frame_chain): Update.
9980 (hppa_frame_chain_valid): Update.
9981 * cris-tdep.c (cris_init_extra_frame_info): Update.
9982 * avr-tdep.c (avr_init_extra_frame_info): Update.
9983 * arm-tdep.c (arm_frame_chain_valid): Update.
9984 (arm_init_extra_frame_info): Update.
9985 (arm_pop_frame): Update.
9986 * frame.c (frame_pc_unwind): Update.
9987 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9988 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9989 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9990 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9991 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9992 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9993
12cc2063
AC
99942003-03-10 Andrew Cagney <cagney@redhat.com>
9995
9996 * gdbarch.sh (gdbarch_unwind_pc): New method.
9997 * gdbarch.h, gdbarch.c: Regenerate.
9998 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9999 but use read_pc and FRAME_SAVED_PC as fall backs.
10000 (frame_saved_regs_pc_unwind): Delete function.
10001 (trad_frame_unwinder): Update.
10002 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10003 (struct frame_unwind): Update.
10004 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10005 (dummy_frame_unwind): Update.
10006 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10007 (sentinel_frame_unwinder): Update.
10008 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10009 (d10v_frame_unwind): Update.
10010 (d10v_unwind_pc): New function.
10011 (d10v_gdbarch_init): Set unwind_pc.
10012
ef840a37
AC
100132003-03-10 Andrew Cagney <cagney@redhat.com>
10014
a2ce2e56
AC
10015 * gdbarch.h: Re-generate.
10016
ef840a37
AC
10017 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10018 PC.
10019 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10020 the PC register.
10021
08f3424b
MK
100222003-03-08 Mark Kettenis <kettenis@gnu.org>
10023
10024 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10025
1248ede2
AC
100262003-03-08 Andrew Cagney <cagney@redhat.com>
10027
10028 * cli-out.c: Update copyright.
10029 (cli_out_data): Define typedef. Use instead of ui_out_data.
10030
f49bacc8
AC
100312003-03-08 Andrew Cagney <cagney@redhat.com>
10032
10033 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10034 the result.
10035
9b05f993
AC
100362003-03-07 Andrew Cagney <cagney@redhat.com>
10037
10038 * gdbarch.sh: Don't generate two macro definitions when an
10039 undefined macro taking no arguments.
10040 * gdbarch.h: Regenerate.
8ffd9b1b 10041
166f4c7b
ML
100422002-03-07 Michal Ludvig <mludvig@suse.cz>
10043
10044 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10045 (x86_64_unwind_dummy_id): New functions.
10046 (x86_64_init_abi): Register these two new functions.
10047
6d686a84
ML
100482003-03-07 Michal Ludvig <mludvig@suse.cz>
10049
10050 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10051 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10052 separate function.
10053 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10054
6314f104
AC
100552003-03-05 Andrew Cagney <cagney@redhat.com>
10056
10057 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10058 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10059 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10060 to use unwind_dummy_id when a dummy frame.
10061 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10062 predicate.
10063 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10064
ceea5145
AC
100652003-03-05 Andrew Cagney <cagney@redhat.com>
10066
10067 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10068 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10069 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10070 values.
10071
0d843116
AC
100722003-03-05 Andrew Cagney <cagney@redhat.com>
10073
10074 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10075 (struct d10v_unwind_cache): Delete field "frameless". Replace
10076 "next_addr" with "sp_offset". Add "r11_offset".
10077 (d10v_frame_unwind_cache): Update.
10078 (prologue_find_regs): Update. When "mv r11, sp", save the
10079 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10080 RN was saved in r11_offset.
10081
b2579786
AC
100822003-03-05 Andrew Cagney <cagney@redhat.com>
10083
10084 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10085 cached PC value in the next frame.
10086
218e5956
AC
100872003-03-05 Andrew Cagney <cagney@redhat.com>
10088
10089 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10090 "id_unwind_cache" with "id".
10091 (frame_id_unwind): Delete declaration.
10092 * frame.c (frame_id_unwind): Delete function.
10093 (get_prev_frame): Call the frame id unwind method directly. Store
10094 the returned next frame's ID value in NEXT_FRAME. Note that there
10095 is a problem with the wrong unwind ID being called with the wrong
10096 unwind cache.
10097
ed363b1b
DJ
100982003-03-05 Daniel Jacobowitz <drow@mvista.com>
10099
10100 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10101
fe1f4a5e
DJ
101022003-03-05 James Ingham <jingham@apple.com>
10103 Daniel Jacobowitz <drow@mvista.com>
10104
10105 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10106 (auto_cp_abi): New variable.
10107 (current_cp_abi, num_cp_abis): Make static.
10108 (CP_ABI_MAX): Define.
10109 (cp_abis): Turn into an array.
10110 (value_virtual_fn_field): Fix formatting.
10111 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10112 takes a pointer.
10113 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10114 (list_cp_abis, _initialize_cp_abi): New functions.
10115 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10116 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10117 switch_to_cp_abi. Update prototype for register_cp_abi.
10118 * Makefile.in (cp-abi.o): Update dependencies.
10119 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10120 instead of switch_to_cp_abi.
10121 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10122 register_cp_abi.
10123 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10124 register_cp_abi.
10125 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10126
e4adbba9
DJ
101272003-03-05 Daniel Jacobowitz <drow@mvista.com>
10128
10129 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10130 * dwarf2loc.c: Include "regcache.h".
10131 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10132 register_size.
10133 * Makefile.in (dwarf2loc.o): Update dependencies.
10134
91ccbfc1
TR
101352003-03-04 Theodore A. Roth <troth@openavr.org>
10136
10137 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10138 number of io registers reported by remote target is not a multiple of
10139 step.
10140
3d4e8fd2
DC
101412003-03-04 David Carlton <carlton@math.stanford.edu>
10142
10143 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10144 (lookup_symbol_aux_psymtabs): Update call to
10145 lookup_partial_symbol.
10146 (lookup_transparent_type, find_main_psymtab)
10147 (make_symbol_overload_list): Ditto.
10148
ed42d87b
KH
101492003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10150
10151 * MAINTAINERS (Write after approval): Update my email address.
10152
a0ed5532
AC
101532003-03-03 Andrew Cagney <cagney@redhat.com>
10154
10155 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10156 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10157 predicate. Replace MAX_REGISTER_RAW_SIZE.
10158 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10159 MAX_REGISTER_VIRTUAL_SIZE.
10160 * regcache.c (legacy_max_register_raw_size): New function.
10161 (legacy_max_register_virtual_size): New function.
10162 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10163 (MAX_REGISTER_RAW_SIZE): Define.
10164 (legacy_max_register_raw_size): Declare.
10165 (legacy_max_register_virtual_size): Declare.
10166 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10167 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10168 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10169 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10170 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10171 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10172 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10173 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10174 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10175 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10176 * vax-tdep.c (vax_gdbarch_init): Update.
10177 * v850-tdep.c (v850_gdbarch_init): Update.
10178 * sparc-tdep.c (sparc_gdbarch_init): Update.
10179 * sh-tdep.c (sh_gdbarch_init): Update.
10180 * s390-tdep.c (s390_gdbarch_init): Update.
10181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10182 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10183 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10184 * mips-tdep.c (mips_gdbarch_init): Update.
10185 * mcore-tdep.c (mcore_gdbarch_init): Update.
10186 * m68k-tdep.c (m68k_gdbarch_init): Update.
10187 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10188 * ia64-tdep.c (ia64_gdbarch_init): Update.
10189 * i386-tdep.c (i386_gdbarch_init): Update.
10190 * hppa-tdep.c (hppa_gdbarch_init): Update.
10191 * h8300-tdep.c (h8300_gdbarch_init): Update.
10192 * frv-tdep.c (frv_gdbarch_init): Update.
10193 * cris-tdep.c (cris_gdbarch_init): Update.
10194 * avr-tdep.c (avr_gdbarch_init): Update.
10195 * arm-tdep.c (arm_gdbarch_init): Update.
10196 * alpha-tdep.c (alpha_gdbarch_init): Update.
10197 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10198 max_register_raw_size or max_register_virtual_size.
10199
8e437497
DC
102002003-03-03 David Carlton <carlton@math.stanford.edu>
10201
10202 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10203 SYMBOL_MATCHES_NAME, add comment.
10204 (SYMBOL_MATCHES_NATURAL_NAME): New.
10205 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10206 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10207 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10208 * symtab.c (lookup_partial_symbol): Use
10209 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10210 unhelpful comment.
10211 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10212 SYMBOL_MATCHES_NAME.
10213 Fix for PR c++/33.
10214
25120b0d
DC
102152003-03-03 David Carlton <carlton@math.stanford.edu>
10216
10217 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10218 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10219 by regexp matching against SYMBOL_NATURAL_NAME.
10220
78a11fb4
DC
102212003-03-03 David Carlton <carlton@math.stanford.edu>
10222
10223 * linespec.c (find_method): Extract code into collect_methods.
10224 (collect_methods): New.
10225
645dd519
MK
102262003-03-02 Mark Kettenis <kettenis@gnu.org>
10227
b4700d91
MK
10228 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10229 get_frame_base.
10230
645dd519
MK
10231 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10232 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10233
0aa7e1aa
SC
102342003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10235
8ffd9b1b 10236 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10237 and not regnum when summing the size of all registers up to regnum.
10238
f30ee0bc
AC
102392003-03-01 Andrew Cagney <cagney@redhat.com>
10240
10241 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10242 FRAME_INIT_SAVED_REGS.
10243 * gdbarch.h, gdbarch.c: Regenerate.
10244 * stack.c (frame_info): Update.
10245 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10246 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10247 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10248 * ns32k-tdep.c (ns32k_pop_frame): Update.
10249 * mips-tdep.c (mips_pop_frame): Update.
10250 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10251 * ia64-tdep.c (ia64_frame_chain): Update.
10252 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10253 (ia64_frameless_function_invocation): Update.
10254 (ia64_init_extra_frame_info): Update.
10255 (ia64_pop_frame_regular): Update.
10256 * frame.h (struct frame_info): Update comment.
10257 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10258 * frame.c (frame_saved_regs_register_unwind): Update.
10259 (frame_saved_regs_register_unwind): Update.
10260 (deprecated_generic_get_saved_register): Update.
10261 * cris-tdep.c: Update comment.
10262 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10263 Rename macro.
10264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10265 * x86-64-tdep.c (x86_64_init_abi): Update.
10266 * vax-tdep.c (vax_gdbarch_init): Update.
10267 * v850-tdep.c (v850_gdbarch_init): Update.
10268 * sparc-tdep.c (sparc_gdbarch_init): Update.
10269 * sh-tdep.c (sh_gdbarch_init): Update.
10270 * s390-tdep.c (s390_gdbarch_init): Update.
10271 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10272 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10273 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10274 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10275 * mips-tdep.c (mips_gdbarch_init): Update.
10276 * mcore-tdep.c (mcore_gdbarch_init): Update.
10277 * m68k-tdep.c (m68k_gdbarch_init): Update.
10278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10279 * ia64-tdep.c (ia64_gdbarch_init): Update.
10280 * i386-tdep.c (i386_gdbarch_init): Update.
10281 * frv-tdep.c (frv_gdbarch_init): Update.
10282 * avr-tdep.c (avr_gdbarch_init): Update.
10283 * arm-tdep.c (arm_gdbarch_init): Update.
10284 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10285
42fa7c0f
AC
102862003-03-01 Andrew Cagney <cagney@redhat.com>
10287
10288 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10289 option enum and switch. When no windows, set the interpreter to
10290 INTERP_CONSOLE.
8ffd9b1b 10291
49c7e338
AC
102922003-03-01 Andrew Cagney <cagney@redhat.com>
10293
10294 * main.c (captured_main): Replace magic option characters with an
10295 enum.
10296
e9582e71
AC
102972003-03-01 Andrew Cagney <cagney@redhat.com>
10298
10299 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10300 INIT_EXTRA_FRAME_INFO.
10301 * gdbarch.h, gdbarch.c: Regenerate.
10302 * arm-tdep.c: Update comments.
10303 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10304 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10305 * frame.h, avr-tdep.c: Ditto.
10306 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10307 (create_new_frame, legacy_get_prev_frame): Ditto.
10308 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10309 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10311 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10312 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10313 * v850-tdep.c (v850_gdbarch_init): Ditto.
10314 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10315 * sh-tdep.c (sh_gdbarch_init): Ditto.
10316 * s390-tdep.c (s390_gdbarch_init): Ditto.
10317 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10318 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10319 * mips-tdep.c (mips_gdbarch_init): Ditto.
10320 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10322 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10323 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10324 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10325 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10326 * frv-tdep.c (frv_gdbarch_init): Ditto.
10327 * cris-tdep.c (cris_gdbarch_init): Ditto.
10328 * avr-tdep.c (avr_gdbarch_init): Ditto.
10329 * arm-tdep.c (arm_gdbarch_init): Ditto.
10330 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10331 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10332
35cac7cf
AC
103332003-03-01 Andrew Cagney <cagney@redhat.com>
10334
10335 * gdbarch.sh (register_type): New function with predicate.
10336 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10337 * gdbarch.h, gdbarch.c: Re-generate.
10338 * arch-utils.c (generic_register_byte): Use generic_register_size.
10339 (generic_register_size): When available, use
10340 gdbarch_register_type.
10341 * regcache.c (init_regcache_descr): When available, initialize the
10342 register type array using gdbarch_register_type. If the
10343 architecture supplies gdbarch_register_type, do not use the legacy
10344 regcache layout.
10345 * d10v-tdep.c (d10v_register_type): Replace
10346 d10v_register_virtual_type.
10347 (d10v_gdbarch_init): Set register_type instead of
10348 register_virtual_type.
10349
7b83296f
AC
103502003-03-01 Andrew Cagney <cagney@redhat.com>
10351
10352 * Makefile.in (ax-gdb.o): Update dependencies.
10353 * ax-gdb.c: Include "regcache.h".
10354 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10355 * findvar.c (value_of_register): Ditto.
10356 * infcmd.c (default_print_registers_info): Ditto.
10357
eadc1c87
MK
103582003-03-01 Mark Kettenis <kettenis@gnu.org>
10359
10360 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10361 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10362
14143612
MK
103632003-03-01 Mark Kettenis <kettenis@gnu.org>
10364
10365 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10366 of STREQ.
10367
a55cc764
DJ
103682003-02-28 Daniel Jacobowitz <drow@mvista.com>
10369
10370 * Makefile.in (dwarf2loc.o): Update dependencies.
10371 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10372 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10373 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10374 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10375 (locexpr_tracepoint_var_ref): New function.
10376 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10377
08a617da
AC
103782003-02-28 Andrew Cagney <cagney@redhat.com>
10379
10380 * regcache.c (register_size): New function.
10381 * regcache.h (register_size): Declare
10382 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10383 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10384
4224873a
DC
103852003-02-28 David Carlton <carlton@math.stanford.edu>
10386
10387 * linespec.c (decode_compound): Extract code into find_method.
10388 (find_method): New.
10389
ccdc5d7f
JB
103902003-02-28 J. Brobecker <brobecker@gnat.com>
10391
10392 * Makefile.in: Add rules to build and link in observer.o.
10393
974e8ced
JB
103942003-02-27 J. Brobecker <brobecker@gnat.com>
10395
10396 * observer.c: Minor comments edits.
10397
7a28f973
JB
103982003-02-27 J. Brobecker <brobecker@gnat.com>
10399
10400 * observer.h, observer.c: New file.
10401
27cddce2
AC
104022003-02-27 Andrew Cagney <cagney@redhat.com>
10403
10404 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10405
b94a41a1
SC
104062003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10407
10408 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10409 (M6812_OP_STS_EXT): Likewise.
10410 (m6811_prologue): Use the above to recognize prologue.
10411 (m6812_prologue): Likewise.
10412
c8be8951
DC
104132003-02-27 David Carlton <carlton@math.stanford.edu>
10414
10415 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10416 SYMBOL_PRINT_NAME.
10417 (compare_psymbols): Ditto.
10418 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10419
d05bb1fc
MS
104202003-02-27 Michael Snyder <msnyder@redhat.com>
10421
4e845cd3
MS
10422 * f-lang.c (build_fortran_types): New function.
10423 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10424 * doublest.c (extract_floating): Fix warning text.
10425
f3824013
AC
104262003-02-27 Andrew Cagney <cagney@redhat.com>
10427
10428 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10429 predicate. Replaces PUSH_DUMMY_FRAME.
10430 * gdbarch.h, gdbarch.c: Regnerate.
10431 * valops.c (hand_function_call): Update. Call
10432 generic_push_dummy_frame directly.
10433 * vax-tdep.c (vax_gdbarch_init): Update.
10434 * sparc-tdep.c (sparc_gdbarch_init): Update.
10435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10436 * m68k-tdep.c (m68k_gdbarch_init): Update.
10437 * hppa-tdep.c (hppa_gdbarch_init): Update.
10438 * alpha-tdep.c (alpha_gdbarch_init): Update.
10439 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10440 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10441 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10442 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10443 push_dummy_frame to generic_push_dummy_frame.
10444 * v850-tdep.c (v850_gdbarch_init): Ditto.
10445 * sh-tdep.c (sh_gdbarch_init): Ditto.
10446 * s390-tdep.c (s390_gdbarch_init): Ditto.
10447 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10448 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10449 * mips-tdep.c (mips_gdbarch_init): Ditto.
10450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10452 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10453 * i386-tdep.c (i386_gdbarch_init): Ditto.
10454 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10455 * frv-tdep.c (frv_gdbarch_init): Ditto.
10456 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10457 * cris-tdep.c (cris_gdbarch_init): Ditto.
10458 * avr-tdep.c (avr_gdbarch_init): Ditto.
10459 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10460
ad188201
KB
104612003-02-26 Kevin Buettner <kevinb@redhat.com>
10462
10463 * mips-tdep.c (show_mips_abi): New function.
10464 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10465 command ``show mips abi''.
10466
6b37567a 104672003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10468
6b37567a 10469 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10470 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10471 more sline entries have been seen for the function.
10472
d3e0a5bf
MC
104732003-02-26 Michael Chastain <mec@shout.net>
10474
10475 * configure: Regenerate with autoconf 000227.
10476
18972eea
MC
104772003-02-26 Michael Chastain <mec@shout.net>
10478
10479 Close PR build/660.
10480 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10481 for old libc5/glibc.
10482 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10483
0bbde931
KW
104842003-02-26 Kris Warkentin <kewarken@qnx.com>
10485
10486 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10487 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10488
27ca5dad
MC
104892003-02-26 Michael Chastain <mec@shout.net>
10490
10491 * configure.in: New variable HAVE_UINTPTR_T.
10492 * configure, config.in: Regenerated.
10493
6f88d630
DJ
104942003-02-26 Daniel Jacobowitz <drow@mvista.com>
10495
10496 Fix PR build/1097.
10497 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10498
b14185ce
AC
104992003-02-25 Andrew Cagney <cagney@redhat.com>
10500
10501 * frame.c (get_prev_frame): Add comment on check for
10502 inside_entry_func. Only check for inside_entry_file when not a
10503 dummy and not a sentinel. Check that the new frame is not inner
10504 to the old frame.
10505
ac2bd0a9
AC
105062003-02-25 Andrew Cagney <cagney@redhat.com>
10507
10508 * frame.c (frame_debug): New variable.
10509 (_initialize_frame): Add "set/show debug frame" command.
10510 (get_prev_frame): When frame_debug, print reason why unwind
10511 failed.
10512
b18a0fd2
MC
105132003-02-25 Michael Chastain <mec@shout.net>
10514
10515 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10516 to avoid uintptr_t definition problems.
10517
22abf04a
DC
105182003-02-25 David Carlton <carlton@math.stanford.edu>
10519
10520 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10521 (SYMBOL_LINKAGE_NAME): Ditto.
10522 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10523 SYMBOL_LINKAGE_NAME.
10524 (struct general_symbol_info): Expand comment.
10525 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10526 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10527 (SYMBOL_MATCHES_REGEXP): Ditto.
10528 * symtab.c (symbol_natural_name): New function.
10529 * objfiles.h: Replace all uses of SYMBOL_NAME by
10530 DEPRECATED_SYMBOL_NAME.
10531 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10532 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10533 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10534 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10535 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10536 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10537 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10538 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10539 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10540 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10541 * ada-exp.y: Ditto.
10542 * ada-exp.y: Update copyright.
10543 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10544 * cp-valprint.c: Ditto.
10545
1a5848f6
JJ
105462003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10547
10548 * infptrace.c (detach): Do not flag error if ptrace detach fails
10549 and errno is set to ESRCH.
10550
7343d46a
AC
105512003-02-24 Andrew Cagney <cagney@redhat.com>
10552
10553 * infptrace.c (udot_info): Change type of udot_off to long. Use
10554 paddr when printing udot_off's value.
10555
49fa1dc2
DC
105562003-02-24 David Carlton <carlton@math.stanford.edu>
10557
10558 * symtab.c (make_symbol_overload_list): Only read in partial
10559 symtabs containing a matching partial symbol.
10560
0fe19209
DC
105612003-02-24 David Carlton <carlton@math.stanford.edu>
10562
10563 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10564 do the comparison, not strcmp.
10565 * symfile.c (compare_psymbols): Ditto.
10566 * defs.h: Declare strcmp_iw_ordered.
10567 * utils.c (strcmp_iw_ordered): New function.
10568
8e3ee7b5
JB
105692003-02-24 Jim Blandy <jimb@redhat.com>
10570
10571 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10572 support, shared libs): Remove my name from here, to better reflect
10573 reality.
10574
7df1a324
KW
105752003-02-24 Kris Warkentin <kewarken@qnx.com>
10576
10577 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10578 (target_ops): Add to_have_continuable_watchpoint.
10579 * target.c (update_current_target): Add INHERIT line for
10580 to_have_continuable_watchpoint.
10581 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10582 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10583 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10584 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10585
d1c76907
EZ
105862003-02-24 Elena Zannoni <ezannoni@redhat.com>
10587
10588 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10589 maintainership.
10590
2610b0bf
KW
105912003-02-24 Kris Warkentin <kewarken@qnx.com>
10592
f46169db
KW
10593 * solib.c (solib_open): Call target defined search function after
10594 failing with solib-search-path.
10595 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10596 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10597
9a3c34fe
KW
105982003-02-24 Kris Warkentin <kewarken@qnx.com>
10599
f46169db 10600 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10601
2417dd25
SC
106022003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10603
10604 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10605
b631436b
SC
106062003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10607
10608 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10609 (m68hc11_add_reggroups): New function.
10610 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10611 (m68hc11_gdbarch_init): Install the reggroups.
10612 (_initialize_m68hc11_tdep): Initialize them.
10613
0aa8c1e4
JW
106142003-02-21 James E Wilson <wilson@tuliptree.org>
10615
10616 * MAINTAINERS: Update my email address.
10617
50ceaba5
DC
106182003-02-21 David Carlton <carlton@math.stanford.edu>
10619
10620 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10621
4c2df51b
DJ
106222003-02-21 Daniel Jacobowitz <drow@mvista.com>
10623
10624 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10625 * symtab.h: Add opaque declarations of struct axs_value and
10626 struct agent_expr.
10627 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10628 (struct location_funcs): New type.
10629 (struct symbol): Add "loc" to aux_value.
10630 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10631 * dwarf2read.c: Include "dwarf2expr.h".
10632 (dwarf2_symbol_mark_computed): New function.
10633 (read_func_scope): Use it.
10634 (var_decode_location): New function.
10635 (new_symbol): Use it.
10636 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10637
10638 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10639 (dwarf2expr_h, dwarf2loc_h): New variables.
10640 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10641 (dwarf2expr.o, dwarf2loc.o): New rules.
10642 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10643 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10644 LOC_COMPUTED_ARG.
10645 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10646 * m2-exp.y (yylex): Likewise.
10647 * printcmd.c (address_info, print_frame_args): Likewise.
10648 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10649 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10650 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10651 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10652 * symtab.c (lookup_block_symbol): Likewise.
10653
5784d15e
AF
106542003-02-20 Adam Fedor <fedor@gnu.org>
10655
10656 * symtab.h: Remove objc_specific struct
10657 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10658 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10659 Have language_objc use cplus_specific struct.
10660
d4cad8db
TT
106612003-02-20 Tom Tromey <tromey@redhat.com>
10662
10663 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10664 TYPE_NAME, when printing a String value. PR java/1075.
10665
2f9a90b4
AF
106662003-02-20 Adam Fedor <fedor@gnu.org>
10667
d38074a8 10668 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10669 * objc-lang.c (find_methods): Make static.
2f9a90b4 10670
6f17862b
CF
106712003-02-20 Christopher Faylor <cgf@redhat.com>
10672
10673 * win32-nat.c (get_image_name): Check return value from
10674 ReadProcessMemory.
10675 (child_xfer_memory): Ditto.
10676
715d1656
AO
106772003-02-20 Alexandre Oliva <aoliva@redhat.com>
10678
10679 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10680 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10681 '${exec_prefix}' (in addition to the expansion thereof) as
10682 relocatable.
10683 * configure: Rebuilt.
10684
b1262a02
DC
106852003-02-20 David Carlton <carlton@math.stanford.edu>
10686
10687 * symtab.c (search_symbols): Revert the search_symbols part of my
10688 2002-12-23 patch. Add comment.
10689
7134143f
DJ
106902002-02-20 Daniel Jacobowitz <drow@mvista.com>
10691
10692 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10693 * dbxread.c (elfstab_build_psymtabs): Don't call
10694 install_minimal_symbols.
10695 (stabsect_build_psymtabs): Likewise.
10696 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10697 earlier.
10698 * somread.c (som_symfile_read): Call install_minimal_symbols
10699 and do_cleanups earlier.
10700 * nlmread.c (nlm_symfile_read): Likewise.
10701 * mdebugread.c (elfmdebug_build_psymtabs): Call
10702 install_minimal_symbols and make appropriate cleanups.
10703
cf466558
KB
107042003-02-20 Kevin Buettner <kevinb@redhat.com>
10705
10706 * solib.c (reload_shared_libraries): New function.
10707 (_initialize_solib): Add callbacks for ``set solib-search-path''
10708 and ``set solib-absolute-prefix''.
10709
de5ad195
DC
107102003-02-20 David Carlton <carlton@math.stanford.edu>
10711
10712 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10713 expand comment.
10714 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10715 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10716 * ada-typeprint.c (ada_typedef_print): Ditto.
10717 * ax-gdb.c (gen_var_ref): Ditto.
10718 * breakpoint.c (print_one_breakpoint): Ditto.
10719 * buildsym.c (finish_block): Ditto.
10720 * c-valprint.c (c_val_print): Ditto.
10721 * expprint.c (print_subexp): Ditto.
10722 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10723 * infcmd.c (jump_command): Ditto.
10724 * linespec.c (decode_line_2, decode_compound): Ditto.
10725 * maint.c (maintenance_translate_address): Ditto.
10726 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10727 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10728 Ditto.
8ffd9b1b
AJ
10729 * p-valprint.c (pascal_val_print): Ditto.
10730 * stabsread.c (define_symbol): Ditto.
de5ad195 10731 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10732 (print_frame_arg_vars, return_command): Ditto.
10733 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10734 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10735 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10736 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10737 (rbreak_command): Ditto.
10738 * tracepoint.c (tracepoints_info): Ditto.
10739 * typeprint.c (typedef_print): Ditto.
10740 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10741 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10742 * ada-typeprint.c: Update Copyright.
10743 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10744 * tracepoint.c, cli/cli-cmds.c: Ditto.
10745
f796e4be
KB
107462003-02-20 Kevin Buettner <kevinb@redhat.com>
10747
10748 * frame.c (generic_unwind_get_saved_register): Make non-static.
10749 * frame.h (generic_unwind_get_saved_register): Declare.
10750 * mips-tdep.c (read_next_frame_reg): Fetch register from
10751 current regcache when frame is NULL.
10752 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10753 that must be NULL.
10754 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10755 instead of frame_register_unwind().
10756
836cc9f4
AC
107572003-02-20 Andrew Cagney <ac131313@redhat.com>
10758
10759 * remote-sim.c (gdbsim_insert_breakpoint)
10760 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10761 code.
10762
501eef12
AC
107632003-02-20 Andrew Cagney <ac131313@redhat.com>
10764
10765 * remote.c (_initialize_remote): Add commands "set/show remote
10766 hardware-watchpoint-limit" and "set/show remote
10767 hardware-breakpoint-limit".
10768 (remote_hw_watchpoint_limit): Initialize to -1.
10769 (remote_hw_breakpoint_limit): Ditto.
10770 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10771
1b6bc7e0
CF
107722003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10773
10774 * coff-pe-read.c: New file - support reading of minimal symbols from a
10775 portable executable using the export table.
10776 * coff-pe-read.h: New file.
10777 * coffread.c: Include coff-pe-read.h.
10778 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10779 debugging symbols found.
10780 * Makefile.in (SFILES): Add coff-pe-read.o.
10781 (coff_pe_read_h): Define.
10782 (COMMON_OBS): Add coff-pe-read.o.
10783 (coffread.o): Add coff_pe_read_h dependency.
10784 (coff-pe-read.o): New target.
10785
fe898f56
DC
107862003-02-19 David Carlton <carlton@math.stanford.edu>
10787
10788 * Makefile.in (SFILES): Add block.c.
10789 (block_h): New.
10790 (COMMON_OBS): Add block.o.
10791 (block.o): New.
10792 (x86-64-tdep.o): Add $(block_h).
10793 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10794 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10795 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10796 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10797 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10798 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10799 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10800 * value.h: Add opaque declaration for struct block.
10801 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10802 * ada-lang.h: Ditto.
10803 * x86-64-tdep.c: #include "block.h"
10804 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10805 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10806 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10807 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10808 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10809 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10810 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10811 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10812 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10813 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10814 * symtab.c (block_function): Ditto.
10815 (contained_in): Ditto.
10816 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10817 block.h. Add opaque declaration for struct block.
10818 * symtab.h: Move block_function and contained_in declarations to
10819 block.h. Add opaque declarations for struct block, struct
10820 blockvector.
10821 (struct block): Move to block.h.
10822 (struct blockvector): Ditto.
10823 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10824 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10825 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10826 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10827 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10828 Ditto.
10829 * block.c: New file.
10830 * block.h: New file.
10831
173345b5
TR
108322003-02-19 Theodore A. Roth <troth@openavr.org>
10833
10834 * avr-tdep.c (avr_extract_return_value): Remove function.
10835 (avr_store_return_value): Remove function.
10836 (avr_extract_struct_value_address): Remove function.
10837 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10838
338ef23d
AC
108392003-02-19 Andrew Cagney <ac131313@redhat.com>
10840
10841 * rs6000-tdep.c: Include "gdb_assert.h".
10842 (registers_e500): Add "acc" and "spefscr".
10843 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10844 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10845 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10846 really is "r0".
10847 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10848
5412f5f3
KS
108492003-02-18 Keith Seitz <keiths@redhat.com>
10850
10851 * Makefile.in: Add gdbtk-interps.c.
10852
881324eb
KB
108532003-02-18 Kevin Buettner <kevinb@redhat.com>
10854
10855 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10856 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10857
6a2f5abf
AC
108582003-02-18 Andrew Cagney <cagney@redhat.com>
10859
10860 * symtab.h (struct objfile): Add opaque declaration.
10861
54c7009d
EZ
108622003-02-18 Elena Zannoni <ezannoni@redhat.com>
10863
10864 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10865 * dbxread.c (process_one_symbol): Use last_function_start rather
10866 than function_start_offset to find the real beginning of the
10867 current function. The latter is just the text section offset on
10868 some systems, the former is always the real function start.
54c7009d 10869
7ee6d7eb
AC
108702003-02-17 Andrew Cagney <cagney@redhat.com>
10871
10872 * configure.in: Revert ${target} != ${host}.
10873
2846da9b
AC
108742003-02-17 Andrew Cagney <ac131313@redhat.com>
10875
10876 * configure.in (Makefile): Use the test ${target} != ${host},
10877 instead of the absence of the "nm.h" file, to determine of the
10878 configuration non-native.
10879 * configure: Regenerate.
8ffd9b1b 10880
3b27aeea
EZ
108812003-02-14 Elena Zannoni <ezannoni@redhat.com>
10882
fbe586ae 10883 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10884
10885 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10886 conditionalize tui_active test.
10887 (lookup_cmd_1): Ditto.
10888
b0b1c2c0
MK
108892003-02-14 Mark Kettenis <kettenis@gnu.org>
10890
10891 * configure.in: Add check for _etext.
10892 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10893 available.
10894 * config.in, configure: regenerated.
10895
8f05cde5
DJ
108962003-02-14 Daniel Jacobowitz <drow@mvista.com>
10897
10898 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10899
021e7609
AC
109002003-02-14 Andrew Cagney <ac131313@redhat.com>
10901
10902 * main.c (tui_version): Delete variable.
10903 (captured_main): When --tui, set interpreter_p to "tui" instead of
10904 enabling tui_version.
10905 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10906 tui_version.
10907 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10908 * cli/cli-cmds.c (disassemble_command): Ditto.
10909 * defs.h (tui_version): Delete declaration.
10910 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10911 (tui-interp.o): Add rules.
10912 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10913
e325dcec
CF
109142003-02-14 Christopher Faylor <cgf@redhat.com>
10915
36ffb041 10916 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10917 just-loaded dll.
10918
c4f90d87
JM
109192003-02-12 Jason Molenda (jmolenda@apple.com)
10920
fbe586ae
RH
10921 * symmisc.c (print_objfile_statistics): Include information about
10922 the number of psymtabs and symtabs in each object file.
c4f90d87 10923
e46e5ccd
KS
109242003-02-13 Keith R Seitz <keiths@redhat.com>
10925
10926 * main.h (struct captured_main_args): Add interpreter_p.
10927 * main.c (captured_main): Initialize interpreter_p from context.
10928 * gdb.c (main): Set interpreter_p argument.
10929 * Makefile.in (gdb.o): Add dependency for interps.h.
10930
fe97fe9c
AC
109312003-02-12 Andrew Cagney <ac131313@redhat.com>
10932
10933 * event-top.c (cli_command_loop): Delete declaration.
10934 (_initialize_event_loop): Delete function setting event_loop_hook.
10935 * event-top.h (cli_command_loop): Declare. Update copyright.
10936 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10937 * interps.c (current_interp_command_loop): When event_loop_p, call
10938 cli_command_loop.
10939
1cdac4ef
AC
109402003-02-12 Andrew Cagney <ac131313@redhat.com>
10941
10942 * interps.h (interp_command_loop_ftype): Change return type to
10943 void.
10944
48037ead
ML
109452003-02-12 Michal Ludvig <mludvig@suse.cz>
10946
10947 * x86-64-tdep.c (x86_64_extract_return_value)
10948 (x86_64_store_return_value): Use regcache instead of regbuf.
10949 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10950 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10951
033afc63
AC
109522003-02-11 Andrew Cagney <ac131313@redhat.com>
10953
10954 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10955 * aclocal.m4: Regenerate.
10956 * configure: Regenerate.
10957
10958 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10959 TCL_LD_SEARCH_FLAGS.
10960
40d02bca
ML
109612003-02-10 Michal Ludvig <mludvig@suse.cz>
10962
10963 * dwarf2cfi.c: Reindented.
10964
11308a41
AC
109652003-02-09 Andrew Cagney <ac131313@redhat.com>
10966
10967 * interps.c (clear_interpreter_hooks): Convert function definition
10968 to ISO C.
10969
e1c1c0f6
DC
109702003-02-07 David Carlton <carlton@math.stanford.edu>
10971
10972 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10973
ab5d3da6
KB
109742003-02-07 Kevin Buettner <kevinb@redhat.com>
10975
10976 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10977 (struct type): ...to here.
10978 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10979 field.
10980 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10981 (replace_type): Set length on all type variants for a given type.
10982
b8a92b82
AC
109832003-02-07 Andrew Cagney <ac131313@redhat.com>
10984
10985 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10986 <sys/stat.h>.
10987 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 10988
5cb316ef
AC
109892003-02-06 Andrew Cagney <ac131313@redhat.com>
10990
2555fe1a
AC
10991 * Makefile.in (symm-nat.o): Update dependencies.
10992 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10993 (lynx-nat.o, ia64-linux-nat.): Ditto.
10994 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10995 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10996 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10997
44270758
AC
10998 * Makefile.in (inflow_h): Define.
10999 (procfs.o, inflow.o, procfs.o): Update dependencies.
11000 * inftarg.c (child_stop): Delete extern declaration of
11001 inferior_process_group. Include "inflow.h".
11002 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11003 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11004 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11005 (our_process_group, inferior_process_group): Extern declarations.
11006
df8f7274
AC
11007 * procfs.c: Include "gdb_assert.h".
11008
5cb316ef
AC
11009 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11010 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11011 * jv-typeprint.c (java_type_print_base): Ditto.
11012 * typeprint.c (typedef_print): Eliminate STREQ.
11013 * cli/cli-script.c (define_command, define_command): Ditto.
11014 * main.c (captured_main): Ditto.
11015 * values.c (lookup_internalvar): Ditto.
11016 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11017 within `if' conditional.
11018 * linespec.c (decode_line_2): Ditto.
11019 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11020 (bfd_openw_with_cleanup): Ditto.
11021
2a28ccea
MK
110222003-02-07 Mark Kettenis <kettenis@gnu.org>
11023
11024 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11025 legacy_extract_return_value and store_return_value to
11026 legacy_return_value.
11027
786b8124
CF
110282003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11029
11030 * win32-nat.c (get_relocated_section_addrs): New function. Find
11031 section load addresses for symbol handling in relocated DLLs.
11032 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11033
b871e4ec
FF
110342003-02-05 Fred Fish <fnf@intrinsity.com>
11035
11036 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11037 '=' and '!='.
11038 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11039 with '&' and '=='.
11040 (angel_RDI_info): Ditto.
11041 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11042 with '&' and '!='.
11043 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11044
4389a95a 110452003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11046 Keith Seitz <keiths@redhat.com>
11047 Elena Zannoni <ezannoni@redhat.com>
11048 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11049
11050 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11051 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11052 (SUBDIR_MI_OBS): Add "mi-interp.o".
11053 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11054 (SFILES): Add "interps.c".
11055 (COMMON_OBS): Add "interps.o".
11056 (interps_h, mi_main_h): Define.
11057 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11058 (mi-main.o, main.o, event-top.o): Update dependencies.
11059 * cli/cli-interp.c: New file.
11060 * interps.h, interps.c: New files.
11061 * top.c: (gdb_init): Don't install the default interpreter, handed
11062 by captured_main.
11063 * main.c: Include "interps.h".
11064 (interpreter_p): Note that it should malloc'ed.
11065 (captured_command_loop): Call current_interp_command_loop.
11066 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11067 xfree and xstrdup when updating interpreter_p. Install the
11068 default interpreter. Add hack to stop mi1's copyright notice
11069 being encoded.
11070 * event-top.h (gdb_setup_readline): Declare.
11071 (gdb_disable_readline): Declare.
11072 * event-top.c: Include "interps.h".
11073 (display_gdb_prompt): Call current_interp_display_prompt_p.
11074 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11075 gdb_stdlog, and gdb_stdtarg.
11076 (_initialize_event_loop): Don't call gdb_setup_readline.
11077 * cli-out.c (cli_out_set_stream): New function.
11078 * cli-out.h (cli_out_set_stream): Declare.
11079
ff3b5810
MK
110802003-02-06 Mark Kettenis <kettenis@gnu.org>
11081
11082 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11083 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11084 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11085 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11086 config/i386/i386v42mp.mt: Removed.
11087
5b729aa5
MK
110882003-02-05 Mark Kettenis <kettenis@gnu.org>
11089
11090 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11091 GDB_OSABI_SOLARIS.
11092
8cc15142
MC
110932003-02-05 Michael Chastain <mec@shout.net>
11094
11095 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11096 2.12.1 and earlier versions.
11097
5aa5d4b9
AC
110982003-02-05 Andrew Cagney <ac131313@redhat.com>
11099
11100 Remove orphaned hosts, targets and files.
11101 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11102 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11103 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11104 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11105 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11106 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11107 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11108 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11109 * config/sparc/tm-sp64sim.h: Delete.
11110 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11111 hosts.
11112 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11113 mips*-dec-mach3* targets.
11114
b68767c1
MC
111152003-02-04 Michael Chastain <mec@shout.net>
11116
11117 * NEWS: Fix typo: sepcifying -> specifying.
11118
5ae7ca1d
MC
111192003-02-04 Michael Chastain <mec@shout.net>
11120
11121 * dwarfread.c: Add documentation on the state of dwarf-1,
11122 looking towards obsoletion.
11123
d08a4280
MC
111242003-02-03 Michael Chastain <mec@shout.net>
11125
11126 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11127 gdb/testsuite/gdb.c++/pr-1023.exp.
11128
e9be73e4
AC
111292003-02-04 Andrew Cagney <ac131313@redhat.com>
11130
11131 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11132 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11133
11134 * utils.c (init_page_info): Delete reference to MPW in comments.
11135 * main.c (captured_main): Delete #ifdef MPW.
11136
05d57f6f
AC
111372003-02-04 Andrew Cagney <ac131313@redhat.com>
11138
8ffd9b1b 11139 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11140 * monitor.c (monitor_expect): Obsolete reference to m32r.
11141 * configure.tgt: Mark m32r-*-elf* as obsolete.
11142 * MAINTAINERS: Mark m32k as obsolete.
11143 * m32r-rom.c: Obsolete file.
11144 * config/m32r/m32r.mt: Obsolete file.
11145 * config/m32r/tm-m32r.h: Obsolete file.
11146 * m32r-stub.c: Obsolete file.
11147 * m32r-tdep.c: Obsolete file.
11148
8b0e5691
AC
111492003-02-04 Andrew Cagney <ac131313@redhat.com>
11150
11151 * NEWS: Mention that the z8k-zilog-none is obsolete.
11152 * MAINTAINERS: Mark z8k as obsolete.
11153 * configure.tgt: Obsolete the z8k-*-coff* target.
11154 * config/z8k/z8k.mt: Obsolete file.
11155 * config/z8k/tm-z8k.h: Obsolete file.
11156 * z8k-tdep.c: Obsolete file.
11157
67f16606
AC
111582003-02-04 Andrew Cagney <ac131313@redhat.com>
11159
11160 * NEWS: Mention that the mn10200-elf is obsolete.
11161 * configure.tgt: Obsolete mn10200-*-* target.
11162 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11163 mention that the mn10200 is obsolete.
11164 * breakpoint.h: Ditto.
11165 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11166 * config/mn10200/mn10200.mt: Obsolete file.
11167 * config/mn10200/tm-mn10200.h: Obsolete file.
11168 * mn10200-tdep.c: Obsolete file.
11169
fd2299bd
AC
111702003-02-04 Andrew Cagney <ac131313@redhat.com>
11171
11172 * MAINTAINERS: Mark h8500 as obsolete.
11173 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11174 * findvar.c (value_from_register): Ditto.
11175 * h8500-tdep.c: Mark file as obsolete.
11176 * config/h8500/h8500.mt: Ditto.
11177 * config/h8500/tm-h8500.h: Ditto.
11178 * NEWS: Mention that h8500 is obsolete.
11179
eb9a305d
DC
111802003-02-04 David Carlton <carlton@math.stanford.edu>
11181
11182 * objfiles.c (allocate_objfile): Always set name. Add comment at
11183 start of function.
11184 * jv-lang.c (get_dynamics_objfile): Add comment.
11185
406fc7fb
DC
111862003-02-04 David Carlton <carlton@math.stanford.edu>
11187
11188 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11189 * printcmd.c (build_address_symbolic): Replace uses of
11190 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11191 SYMBOL_NAME, and asm_demangle.
11192 Update copyright.
11193
93d91629
DC
111942003-02-04 David Carlton <carlton@math.stanford.edu>
11195
11196 * linespec.c (decode_compound): Extract code into
11197 lookup_prefix_sym.
11198 (lookup_prefix_sym): New function.
11199
1c5cb38e
DC
112002003-02-04 David Carlton <carlton@math.stanford.edu>
11201
11202 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11203 FLOAT_COERCION_BADNESS.
11204 * gdbtypes.c (rank_one_type): Replace all uses of
11205 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11206
0cf824c9
JB
112072003-02-04 Jim Blandy <jimb@redhat.com>
11208
11209 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11210 section, let dwarf_macinfo_section point to it, not
11211 dwarf_loc_section.
11212
a2d356b0
DJ
112132003-02-04 Daniel Jacobowitz <drow@mvista.com>
11214
11215 Pointed out by Anton Blanchard <anton@samba.org>.
11216 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11217 (ppc_linux_at_sigtramp_return_path): Use it.
11218
2de7ced7
DJ
112192003-02-04 Daniel Jacobowitz <drow@mvista.com>
11220
11221 * defs.h (streq): Add prototype.
11222 * utils.c (streq): New function.
11223
11224 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11225 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11226 * mdebugread.c (new_symbol): Likewise.
11227 * stabsread.c (define_symbol): Likewise.
11228 * coffread.c (process_coff_symbol): Likewise.
11229 * dwarfread.c (new_symbol): Likewise.
11230
11231 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11232 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11233 here.
11234 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11235 SYMBOL_INIT_DEMANGLED_NAME.
11236 * objfiles.c: Include "hashtab.h".
11237 (allocate_objfile): Call htab_set_functions_ex for the
11238 demangled_names_hash.
11239 (free_objfile): Call htab_delete for the demangled_names_hash.
11240 * objfiles.h (struct htab): Add declaration.
11241 (struct objfile): Add demangled_names_hash.
11242 * symfile.c: Include "hashtab.h".
11243 (reread_symbols): Call htab_delete for the demangled_names_hash.
11244 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11245 SYMBOL_NAME in the bcache.
11246 * symtab.c: Include "hashtab.h". Update comments.
11247 (create_demangled_names_hash, symbol_set_names): New functions.
11248 (symbol_find_demangled_name): New function, broken out from
11249 symbol_init_demangled_names.
11250 (symbol_init_demangled_names): Use it.
11251 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11252 (SYMBOL_SET_NAMES): New macro.
11253 (symbol_set_names): Add prototype.
11254
15831452
JB
112552003-02-03 Jim Blandy <jimb@redhat.com>
11256
11257 Use a single, consistent representation for an empty minimal
11258 symbol table in an objfile.
11259 * objfiles.c (terminate_minimal_symbol_table): New function.
11260 (allocate_objfile): Call it.
11261 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11262 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11263 non-NULL.
15831452
JB
11264 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11265 objfile has minimal symbols, compare minimal_symbol_count to zero,
11266 instead of comparing msymbols with NULL.
11267 * objfiles.c (have_minimal_symbols): Same.
11268 * solib-sunos.c (solib_add_common_symbols): Call
11269 terminate_minimal_symbol_table.
11270 * symfile.c (reread_symbols): Same.
8ffd9b1b 11271
ffc65945
KB
112722003-02-03 Kevin Buettner <kevinb@redhat.com>
11273
11274 * s390-tdep.c (s390_address_class_type_flags)
11275 (s390_address_class_type_flags_to_name)
11276 (s390_address_class_name_to_type_flags): New functions.
11277 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11278 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11279
f211c6d4
MS
112802003-02-03 Michael Snyder <msnyder@redhat.com>
11281
11282 * arm-tdep.c: Fix spell-o in comment.
11283
659b0389
ML
112842003-02-03 Michal Ludvig <mludvig@suse.cz>
11285
11286 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11287 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11288 error messages to contain BFD filename.
659b0389 11289
3b31d625
EZ
112902003-02-02 Elena Zannoni <ezannoni@redhat.com>
11291
997b089a 11292 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11293 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11294 (do_mixed_source_and_assembly): Use
11295 make_cleanup_ui_out_tuple_begin_end and
11296 make_cleanup_ui_out_tuple_begin_end.
11297 (do_mixed_source_and_assembly): Ditto.
11298 * thread.c (do_captured_list_thread_ids): Ditto.
11299 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11300 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11301 ui_out_tuple_end): Delete prototypes.
11302 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11303 ui_out_list_end, ui_out_tuple_end): Delete.
11304
11305 From Kevin Buettner <kevinb@redhat.com>:
11306 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11307 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11308 (do_cleanup_table_end): New functions.
11309 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11310 Use cleanups to invoke_ui_out_tuple_end().
11311 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11312 * cli/cli-setshow.c (cmd_show_list): Use
11313 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11314
5b181d62
AC
113152003-02-02 Andrew Cagney <ac131313@redhat.com>
11316
11317 * frame.c (frame_unwind_register): New function.
11318 (frame_unwind_unsigned_register): Use.
11319 (frame_unwind_signed_register): Use.
11320 (frame_read_register): New function.
11321 * frame.h (frame_unwind_register): Declare.
11322 (frame_read_register): Declare.
11323
11324 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11325 and frame_unwind_register instead of read_memory, write_register
11326 and deprecated_write_register_bytes.
11327
5f601589
AC
113282003-02-02 Andrew Cagney <ac131313@redhat.com>
11329
11330 * frame.h: Note that namelen can be negative.
11331 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11332 NAME's length.
11333
11334 * NEWS: Mention that the d10v's `regs' command is deprecated.
11335 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11336 (d10v_print_registers_info): New function.
11337 (show_regs): Call d10v_print_registers_info.
11338 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11339
6a3fe0a4
MK
113402003-02-02 Mark Kettenis <kettenis@gnu.org>
11341
11342 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11343 lost in the previous patch.
11344
075559bc
AC
113452003-02-01 Andrew Cagney <ac131313@redhat.com>
11346
11347 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11348 * stack.c (print_frame_info_base): Output complete FRAME tuple
11349 for synthesized frames.
075559bc 11350
6789195b
AC
113512003-02-02 Andrew Cagney <ac131313@redhat.com>
11352
11353 * mips-nat.c (zerobuf): Delete.
11354 (fetch_inferior_registers): Alloc local zerobuf.
11355 (fetch_core_registers): Alloc local zerobuf.
11356 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11357 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11358 * thread-db.c (thread_db_store_registers): Ditto.
11359 * sh-tdep.c (sh_do_register): Ditto.
11360 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11361 * remote-sim.c (gdbsim_store_register): Ditto.
11362 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11363 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11364 * monitor.c (monitor_supply_register): Ditto.
11365 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11366 * mips-nat.c (fetch_inferior_registers): Ditto.
11367 * m68klinux-nat.c (fetch_register): Ditto.
11368 * lynx-nat.c (fetch_inferior_registers): Ditto.
11369 (fetch_inferior_registers): Ditto.
11370 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11371 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11372 (hpux_thread_store_registers): Ditto.
11373 * hppah-nat.c (fetch_register): Ditto.
11374 * hppab-nat.c (fetch_register): Ditto.
11375 * hppa-tdep.c (pa_register_look_aside): Ditto.
11376 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11377 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11378
e669114a
AC
113792003-02-01 Andrew Cagney <ac131313@redhat.com>
11380
11381 * gdbarch.sh: Explictly specify all method levels. When a
11382 variable with an empty level, provide a non-multi-arch default.
11383 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11384 * gdbarch.h: Re-generate.
11385 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11386 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11387
9a043c1d
AC
113882003-02-01 Andrew Cagney <ac131313@redhat.com>
11389
11390 * defs.h (host_pointer_to_address): Delete declaration.
11391 (address_to_host_pointer): Delete declaration.
11392 * utils.c (host_pointer_to_address): Delete function.
11393 (address_to_host_pointer): Delete function.
11394 * procfs.c (procfs_address_to_host_pointer): New function.
11395 * procfs.c (proc_set_watchpoint): Use.
11396 (procfs_can_use_hw_breakpoint): Update comments.
11397 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11398 (som_solib_add): Use.
11399 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11400 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11401
7ca9f392
AC
114022003-02-01 Andrew Cagney <ac131313@redhat.com>
11403
94bbfd30
AC
11404 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11405 strlen d_name.
11406
7ca9f392
AC
11407 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11408 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11409 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11410 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11411 (define_symbol): Update.
11412 * symfile.c (generic_load): Remove references to nindy.
11413 * symtab.c: Remove references to nindy.
11414
31a85ea2
AC
114152003-02-01 Andrew Cagney <ac131313@redhat.com>
11416
11417 * infcmd.c (print_float_info): Delete code conditional on
11418 FLOAT_INFO.
11419 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11420 * config/m68k/nm-apollo68b.h: Ditto.
11421 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11422 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11423 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11424
f6e85fc8
MK
114252003-02-01 Mark Kettenis <kettenis@gnu.org>
11426
6015b6a0
MK
11427 * config/i386/tm-i386os9k.h: Removed.
11428
f7a30bdf
MK
11429 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11430 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11431 they're identical to i[3456]86-*-sysv* now.
11432 * config/i386/i386v32.mh: Removed.
11433 * config/i386/xm-i386v32.h: Removed.
11434 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11435
28d52111
MK
11436 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11437
4d3f6bce
MK
11438 * config/i386/i386dgux.mh: Removed.
11439 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11440
f6e85fc8
MK
11441 * configure.in: Fix typo.
11442 * configure: Regenerated.
11443
53955967
DC
114442003-01-31 David Carlton <carlton@math.stanford.edu>
11445
11446 * dwarf2read.c (dwarf2_locate_sections): Set
11447 dwarf_ranges_section.
11448
b1364885
AC
114492003-01-31 Andrew Cagney <ac131313@redhat.com>
11450
8dbb1c65
AC
11451 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11452 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11453
8731e58e
AC
11454 * utils.c: Re-indent.
11455
b1364885
AC
11456 * config/djgpp/fnchange.lst: Delete nindy files.
11457 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11458 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11459 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11460 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11461 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11462 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11463 * Makefile.in (init.c): Remove nindy references.
11464 (saber_gdb): Delete rule.
11465 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11466 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11467 and a68v-nat.c.
11468 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11469 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11470 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11471 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11472 nindy-share/stop.h.
11473 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11474 * saber.suppress: Delete file.
11475
086df311
DJ
114762003-01-31 Daniel Jacobowitz <drow@mvista.com>
11477
11478 * dbxread.c (stabs_data): New static variable.
11479 (fill_symbuf): Support an in-memory buffer for stabs data.
11480 (stabs_seek): New function.
11481 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11482 (read_ofile_symtab): Use stabs_seek.
11483 (elfstab_build_psymtabs): Take an asection* instead of
11484 an offset and size. Relocate the stabs data if necessary.
11485 Save the section* for dbx_psymtab_to_symtab.
11486 * dwarf2read.c: Add section variables for each debug section.
11487 (dwarf2_locate_sections): Fill them in.
11488 (dwarf2_read_section): Take an asection* argument.
11489 Relocate the section contents if necessary.
11490 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11491 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11492 it to dwarf2_read_section.
11493 (dwarf2_build_frame_info): Update callers.
11494 * elfread.c (elf_symfile_read): Update call to
11495 elfstab_build_psymtabs.
11496 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11497 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11498 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11499 * symfile.c (symfile_dummy_outputs): New function.
11500 (symfile_relocate_debug_section): New function.
11501 * symfile.h (symfile_relocate_debug_section): Add prototype.
11502
87d1b352
RH
115032003-01-31 Richard Henderson <rth@redhat.com>
11504
11505 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11506 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11507 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11508 * alpha-tdep.c (alpha_register_name): Add "unique".
11509 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11510 (ALPHA_UNIQUE_REGNUM): New.
11511 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11512
c48861fb
AC
115132003-01-31 Andrew Cagney <ac131313@redhat.com>
11514
11515 * README: Remove reference to Ericsson 1800 monitor.
11516 * Makefile.in (remote-es.o): Delete rule.
11517 (ALLDEPFILES): Delete remote-es.c.
11518 * remote-es.c: Delete file.
11519 * config/m68k/es1800.mt: Delete file.
11520 * config/djgpp/fnchange.lst: Update.
11521 * configure.tgt: Delete m68*-ericsson-* target.
11522
d764a824
AF
115232003-01-31 Adam Fedor <fedor@gnu.org>
11524
11525 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11526 Remove duplicate/shadowing variable of same name.
11527
fe36c4f4
JB
115282003-01-30 Jim Blandy <jimb@redhat.com>
11529
11530 * symfile.c (find_separate_debug_file): Assert that the objfile's
11531 directory name we compute ends with a slash, and then assume that
11532 that's so everywhere we use it.
11533
cb741690
DJ
115342003-01-30 Daniel Jacobowitz <drow@mvista.com>
11535
11536 * valops.c (value_assign): Flush frame cache after stores to memory
11537 also.
11538
96ee5227
AC
115392003-01-30 Andrew Cagney <ac131313@redhat.com>
11540
11541 * Makefile.in (mon960-rom.o): Delete rule.
11542 * mon960-rom.c: Delete file.
11543
7f6104a9
AC
115442003-01-30 Andrew Cagney <ac131313@redhat.com>
11545
11546 * d10v-tdep.c: Include "frame-unwind.h".
11547 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11548 list.
11549 (next_addr, uses_frame): Delete.
11550 (struct d10v_unwind_cache): Define.
11551 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11552 Use info instead of next_addr and uses_frame globals.
11553 (d10v_frame_init_saved_regs): Delete function.
11554 (d10v_init_extra_frame_info): Delete function.
11555 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11556 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11557 init_frame_pc or frame_saved_pc.
11558 (d10v_pop_frame): Delete function.
11559 (do_d10v_pop_frame): Delete function.
11560 (d10v_frame_chain): Delete function.
11561 (d10v_frame_chain_valid): Delete function.
11562 (d10v_frame_pc_unwind): New function.
11563 (d10v_frame_id_unwind): New function.
11564 (saved_regs_unwinder): New function.
11565 (d10v_frame_register_unwind): New function.
11566 (d10v_frame_pop): New function.
11567 (d10v_frame_unwind): New variable.
11568 (d10v_frame_p): New function.
11569 (d10v_frame_saved_pc): Delete function.
11570 * Makefile.in (d10v-tdep.o): Update dependencies.
11571
cad2e848
JB
115722003-01-30 J. Brobecker <brobecker@gnat.com>
11573
11574 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11575 causing some regressions due to a change in the default value
11576 for this macro.
11577
af34e669
DJ
115782003-01-29 Richard Henderson <rth@redhat.com>
11579 Elena Zannoni <ezannoni@redhat.com>
11580 Daniel Jacobowitz <drow@mvista.com>
11581
11582 Fix PR gdb/961.
8ffd9b1b 11583 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11584 variables.
11585 (RANGES_SECTION): New.
11586 (dwarf_ranges_buffer): New variable.
11587 (struct comp_unit_head): Add member "die".
11588 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11589 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11590 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11591 (dwarf2_locate_sections): Likewise.
11592 (dwarf2_build_psymtabs): Read .debug_ranges.
11593 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11594 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11595 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11596 Look for DW_AT_ranges and return the bounding box.
11597
baa93fa6
CF
115982003-01-29 Brian Ford <ford@vss.fsi.com>
11599
11600 * win32-nat.c (cygwin_pid): Removed as unused.
11601 (child_attach): Try fall back to Cygwin pid.
11602
c63f977f
JB
116032003-01-29 Jim Blandy <jimb@redhat.com>
11604
11605 * objfiles.h (struct objfile): Doc fix.
11606
d62d1979
AC
116072003-01-29 Andrew Cagney <ac131313@redhat.com>
11608
11609 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11610 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11611 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11612 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11613 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11614 (FRAME_SAVED_PC): Change to a function with predicate.
11615 * gdbarch.h, gdbarch.c: Re-generate.
11616
1ae18a04
AC
116172003-01-28 Andrew Cagney <ac131313@redhat.com>
11618
52287340
AC
11619 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11620
1ae18a04
AC
11621 * complaints.c (complain): Delete function.
11622 * complaints.h (struct deprecated_complaint): Delete definition.
11623 (complain): Delete declaration.
11624
f2c16bd6
KB
116252003-01-28 Kevin Buettner <kevinb@redhat.com>
11626
11627 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11628 dummy frames.
11629
a94dd1fd
AC
116302003-01-27 Andrew Cagney <ac131313@redhat.com>
11631
11632 * sentinel-frame.h, sentinel-frame.c: New files.
11633 * Makefile.in (frame.o): Update dependencies.
11634 (SFILES): Add sentinel-frame.c.
11635 (sentinel_frame_h): Define.
11636 (COMMON_OBS): Add sentinel-frame.o.
11637 (sentinel-frame.o): Specify dependencies.
11638 * frame.c: Include "sentinel-frame.h".
11639 (frame_register_unwind): Rewrite assuming that there is always a a
11640 ->next frame.
11641 (frame_register, generic_unwind_get_saved_register): Ditto.
11642 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11643 (create_sentinel_frame, unwind_to_current_frame): New functions.
11644 (get_current_frame): Rewrite using create_sentinel_frame and
11645 unwind_to_current_frame. When possible, always create a frame.
11646 (create_new_frame): Set next to the sentinel frame.
11647 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11648 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11649 ID cache when necessary.
11650 (frame_saved_regs_id_unwind): Use frame_relative_level.
11651 (deprecated_generic_get_saved_register): Use frame_relative_level,
11652 get_frame_saved_regs, get_frame_pc, get_frame_base and
11653 get_next_frame.
11654 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11655 frame_register.
11656
5378adc4
DJ
116572003-01-27 Daniel Jacobowitz <drow@mvista.com>
11658
11659 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11660
51ee2ddc
DJ
116612003-01-27 Daniel Jacobowitz <drow@mvista.com>
11662
11663 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11664 (maintenance_set_profile_cmd): Use error () instead of warning ().
11665
d9feb4e7
DJ
116662003-01-27 Daniel Jacobowitz <drow@mvista.com>
11667
11668 * configure.in: Check that -pg works if using --enable-profiling.
11669 Check for monstartup and _mcleanup regardless of --enable-profiling.
11670 * maint.c: Check for monstartup and _mcleanup before using them.
11671 * config.in: Regenerated.
11672 * configure: Regenerated.
11673
2d188dd3
NC
116742003-01-24 Nick Clifton <nickc@redhat.com>
11675
11676 * Add sh2e support:
11677
11678 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11679
11680 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11681 (sh2e_show_regs): New.
11682 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11683 * config/sh/tm-sh.h: Added sh2e to comments.
11684
cb3c37b2
JB
116852003-01-23 Jim Blandy <jimb@redhat.com>
11686
11687 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11688 symbols found)" message here; we haven't checked for a separate
11689 debug info file yet, so we don't know yet.
11690 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11691 we've looked everywhere. Also, there's no need to print a special
11692 message when we're loading the separate debug info file: the one
11693 symbol_file_add prints is fine.
11694
5b5d99cf
JB
116952003-01-23 Alexander Larsson <alexl@redhat.com>
11696 Jim Blandy <jimb@redhat.com>
11697
11698 Add support for executables whose debug info has been separated
11699 out into a separate file, leaving only a link behind.
11700 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11701 and separate_debug_objfile_backlink.
11702 (put_objfile_before): New declaration.
11703 * symfile.c: #include "filenames.h".
11704 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11705 debug info in a separate file, read that, too. Save the addrs
11706 argument, so we can use it again to read the separated debug info;
11707 syms_from_objfile modifies the table we pass it.
11708 (reread_symbols): After re-reading an objfile, call
11709 reread_separate_symbols to refresh its separate debug info
11710 objfile, if it has one.
11711 (reread_separate_symbols, find_separate_debug_file,
11712 get_debug_link_info, separate_debug_file_exists): New functions.
11713 (debug_file_directory): New global var.
11714 (_initialize_symfile): Initialize debug_file_directory, and
11715 provide the new `set debug-file-directory' command to let the user
11716 change it.
11717 * objfiles.c (free_objfile): If this objfile has its debug info in
11718 a separate objfile, free that one too. If this is itself a
11719 separate debug info objfile, clear our parent's backlink.
11720 (put_objfile_before): New function.
11721 * utils.c (gnu_debuglink_crc32): New function.
11722 * defs.h (gnu_debuglink_crc32): New declaration.
11723 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11724 * configure.in: Handle --with-separate-debug-dir config option.
11725 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11726 * acconfig.h (DEBUGDIR): New macro.
11727 * configure, aclocal.m4, config.in: Regenerated.
11728
7e8580c1
JB
117292003-01-22 Jim Blandy <jimb@redhat.com>
11730
7904e09f
JB
11731 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11732 like the old symbol_file_add, but taking new arguments: you can
11733 now pass in either a `struct section_addr_info' list to say where
11734 each section is loaded, or a `struct section_offsets' table. Pass
11735 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11736 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11737 with the appropriate quiescent values for the new arguments.
11738
7e8580c1
JB
11739 * symfile.c: #include "gdb_assert.h".
11740 (syms_from_objfile): Add the ability to pass in a section offset
11741 table directly, as an alternative to the section_addr_info table.
11742 Document arguments better.
11743 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11744 * symfile.h (syms_from_objfile): Update declaration.
11745 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11746 syms_from_objfile.
11747 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11748
d28f9cdf
DJ
117492003-01-22 Daniel Jacobowitz <drow@mvista.com>
11750
11751 Original patch by Tom Tromey <tromey@cygnus.com> and
11752 Jason Molenda <jmolenda@apple.com>.
11753 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11754 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11755 * NEWS: Mention profiling.
11756 * configure.in (--enable-gdbtk): Fix typo.
11757 (--enable-profiling): New. Set PROFILE_CFLAGS.
11758 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11759 Fill in function.
11760 (profiling_state): New variable.
11761 (mcleanup_wrapper): New function.
11762 (_initialize_maint): Remove NOTYET, fix call to
11763 add_setshow_boolean_cmd for "maint set profile".
11764 * configure: Regenerated.
11765
df21e465
MH
117662003-01-21 Martin M. Hunt <hunt@redhat.com>
11767
11768 * Makefile.in (install-gdbtk): Install PNG images too.
11769
73c1f219
AC
117702003-01-21 Andrew Cagney <ac131313@redhat.com>
11771
11772 * exec.c (text_start): Delete global variable.
11773 (exec_file_attach): Make text_start local to the function.
11774 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11775 * valops.c (hand_function_call): Delete code that handles
11776 BEFORE_TEXT_END and AFTER_TEXT_END.
11777 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11778 of CALL_DUMMY_LOCATION.
11779 * gdbarch.c: Regenerate.
11780 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11781 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11782 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11783 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11784 (text_end): Delete extern declaration.
11785
eb4f72c5
AC
117862003-01-21 Andrew Cagney <ac131313@redhat.com>
11787
11788 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11789 * blockframe.c (backtrace_below_main): Move to "frame.c".
11790 (frame_chain_valid): Delete check for backtrace_below_main.
11791 (_initialize_blockframe): Delete initialization, move ``set
11792 backtrace-below-main'' command to "frame.c".
11793 (do_flush_frames_sfunc): Delete function.
11794 * frame.c: Include "command.h" and "gdbcmd.h".
11795 (frame_type_from_pc): New function.
11796 (create_new_frame): Use frame_type_from_pc.
11797 (legacy_get_prev_frame): New function.
11798 (get_prev_frame): Rewrite. When an old style frame, call
11799 legacy_get_prev_frame. Otherwize, unwind the PC first.
11800 (_initialize_frame): Add ``set backtrace-below-main'' command.
11801 * Makefile.in (frame.o): Update dependencies.
11802
778ce8cc
AC
118032003-01-19 Andrew Cagney <ac131313@redhat.com>
11804
11805 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11806 DEPRECATED_REGISTERS_INFO.
11807
01c193c8
AC
118082003-01-19 Andrew Cagney <ac131313@redhat.com>
11809
11810 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11811 Maintainers'. Update `Various Maintainers'.
11812
dedc2a2b
AC
118132003-01-19 Andrew Cagney <ac131313@redhat.com>
11814
11815 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11816 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11817 Suppress actual parameters when `-'.
11818 * gdbarch.h, gdbarch.c: Regenerate.
11819
b7261c70
AC
118202003-01-19 Andrew Cagney <ac131313@redhat.com>
11821
11822 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11823 code handling dummy frames.
11824
dbe9fe58
AC
118252003-01-19 Andrew Cagney <ac131313@redhat.com>
11826
11827 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11828 (struct frame_unwind): Add field pop.
11829 * frame.h (frame_pop): Declare.
11830 * frame.c (frame_saved_regs_pop): New function.
11831 (trad_frame_unwinder): Add frame_saved_regs_pop.
11832 (frame_pop): New function.
11833 * dummy-frame.c (dummy_frame_pop): New function.
11834 (discard_innermost_dummy): New function.
11835 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11836 (dummy_frame_unwind): Add dummy_frame_pop.
11837 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11838 * valops.c (hand_function_call): Ditto.
11839 * stack.c (return_command): Ditto.
11840
570b8f7c
AC
118412003-01-18 Andrew Cagney <ac131313@redhat.com>
11842
11843 * cris-tdep.c: Fix function declaration indentation.
11844 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11845 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11846 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11847 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11848 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11849 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11850
118512003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11852
11853 * README (Unpacking and Installation -- quick overview):
11854 Warn against ".../gdb-5.3/gdb/configure".
11855
494cca16
AC
118562003-01-18 Andrew Cagney <ac131313@redhat.com>
11857
11858 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11859 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11860 (struct frame_unwind): Declare opaque.
11861 (dummy_frame_p): Declare function.
11862 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11863 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11864 * dummy-frame.c: Include "frame-unwind.h".
11865 (dummy_frame_p): New function.
11866 (dummy_frame_unwind): New variable.
11867 * frame.c: Include "frame-unwind.h".
11868 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11869 to use the new unwind field.
11870 (set_unwind_by_pc): Delete function.
11871 (create_new_frame, get_prev_frame): Set unwind field using
11872 frame_unwind_find_by_pc.
11873 (trad_frame_unwind, trad_frame_unwinder): New variables.
11874 * frame.h (trad_frame_unwind): Declare variable.
11875 (frame_id_unwind_ftype): Delete declaration.
11876 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11877 (struct frame_unwind): Declare opaque.
11878 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11879 register_unwind with a single unwind pointer.
11880 * frame-unwind.h, frame-unwind.c: New files.
11881 * Makefile.in (SFILES): Add frame-unwind.c.
11882 (frame_unwind_h): Define.
11883 (COMMON_OBS): Add frame-unwind.o.
11884 (frame-unwind.o): Specify dependencies.
11885 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11886
4efb68b1
AC
118872003-01-18 Andrew Cagney <ac131313@redhat.com>
11888
11889 * ada-valprint.c: Eliminate PTR.
11890 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11891 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11892 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11893 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11894 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11895 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11896 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11897
a84d24ee
AC
118982003-01-17 Andrew Cagney <ac131313@redhat.com>
11899
762f08a3
AC
11900 * main.c (captured_main): Don't use PTR.
11901 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11902 * gdbtypes.c (lookup_primitive_typename): Ditto.
11903 (lookup_struct_elt_type): Ditto.
11904 * f-valprint.c (info_common_command): Ditto.
11905 (list_all_visible_commons): Ditto.
11906 * jv-typeprint.c (java_type_print_base): Ditto.
11907
a84d24ee
AC
11908 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11909 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11910 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11911 i386-interix-nat.c and i386-interix-tdep.c. Rename
11912 m68klinux-nat.c and m68klinux-tdep.c. Rename
11913 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11914 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11915 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11916 * main.c (captured_main): Use xfree, not free.
11917
c170fb60
AC
119182003-01-16 Andrew Cagney <ac131313@redhat.com>
11919
11920 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11921 ID back using a parameter.
11922 * frame.c (frame_id_unwind): Update call.
11923 (frame_saved_regs_id_unwind): Update.
11924 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11925 * dummy-frame.h (struct frame_id): Add opaque declaration.
11926 (dummy_frame_id_unwind): Update declaration.
11927
867f3898
AC
119282003-01-15 Andrew Cagney <ac131313@redhat.com>
11929
11930 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11931
40622be8 119322003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11933
40622be8 11934 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11935
ae66c1fc
EZ
119362003-01-14 Elena Zannoni <ezannoni@redhat.com>
11937
997b089a 11938 Fix PR gdb/898
ae66c1fc
EZ
11939 * breakpoint.c (until_break_command): Add new argument. Use it to
11940 decide whether to stop only at the current frame or not.
11941 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11942 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11943 call.
11944 (advance_command): New function.
11945 (_initialize_infcmd): Update help string for 'until' command.
11946 Add new 'advance' command.
11947
a04257e6
DC
119482003-01-14 David Carlton <carlton@math.stanford.edu>
11949
11950 * linespec.c (decode_line_1): Normalize comments.
11951 (set_flags): Ditto.
11952 (locate_first_half): Ditto.
11953 (decode_compound): Ditto.
11954 (symtab_from_filename): Ditto.
11955 (decode_all_digits): Ditto.
11956 (decode_dollar): Ditto.
11957 (find_methods): Ditto.
11958 (find_toplevel_char): Ditto.
11959
1bac305b
AC
119602003-01-13 Andrew Cagney <ac131313@redhat.com>
11961
11962 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11963 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11964 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11965 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11966 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11967 * language.c, language.h, m32r-tdep.c: Update copyright.
11968 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11969 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11970 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11971 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11972 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11973 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11974
25caa7a8
EZ
119752003-01-13 Elena Zannoni <ezannoni@redhat.com>
11976
11977 * stabsread.h (process_later, resolve_cfront_continuation):
11978 Obsolete.
11979 Update copyright years.
11980 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11981 Update copyright year.
11982 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11983 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11984 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11985 Update copyright year.
11986 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11987 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11988 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11989 (parse_partial_symbols): Obsolete cfront support.
11990 * stabsread.c
11991 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11992 macros.
11993 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11994 read_cfront_baseclasses, read_cfront_member_functions,
11995 resolve_cfront_continuation,read_cfront_static_fields,
11996 copy_cfront_struct_fields): Obsolete functions.
11997 (define_symbol, read_one_struct_field): Obsolete cfront support.
11998 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11999 Update Copyright year.
12000
7789c6f5
EZ
120012003-01-13 Elena Zannoni <ezannoni@redhat.com>
12002
12003 * stack.c (print_frame_info, print_stack_frame_base_stub,
12004 print_stack_frame_base, show_and_print_stack_frame_stub,
12005 show_and_print_stack_frame, print_only_stack_frame_stub,
12006 print_only_stack_frame): Delete functions.
12007 (print_stack_frame_stub): Call print_frame_info instead of
12008 print_frame_info_base.
12009 (print_frame_info_base): Rename to print_frame_info.
12010 (backtrace_command_1): Call print_frame_info, instead of
12011 print_frame_info_base.
12012 (current_frame_command): Call print_stack_frame, instead of
12013 print_only_stack_frame.
12014 (frame_command): Call print_stack_frame, instead of
12015 show_and_print_stack_frame.
12016 (up_command): Ditto.
12017 (down_command): Ditto.
12018 * frame.h (print_only_stack_frame): Delete prototype.
12019 * infrun.c (normal_stop): Call print_stack_frame, instead of
12020 show_and_print_stack_frame.
12021 * thread.c (info_threads_command): Call print_stack_frame, instead
12022 of print_only_stack_frame.
12023
3f5a3016
AC
120242003-01-13 Andrew Cagney <ac131313@redhat.com>
12025
d99ba314
AC
12026 * README (Graphical interface to GDB): Update URL. Point at
12027 gdb/links/.
12028
3f5a3016
AC
12029 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12030 version match.
12031
083ae935
DJ
120322003-01-13 Daniel Jacobowitz <drow@mvista.com>
12033
12034 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12035 lines.
12036
5365276c
DJ
120372003-01-13 Daniel Jacobowitz <drow@mvista.com>
12038
12039 * thread-db.c (attach_thread): Prototype.
12040 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12041 thread information (ti), and valid flags (th_valid, ti_valid).
12042 (attach_thread): Move target_pid_to_str call to after the thread
12043 is added to GDB's list. Initialize the cache.
12044 (thread_get_info_callback, thread_db_map_id2thr)
12045 (thread_db_get_info): New functions.
12046 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12047 (thread_db_store_registers, thread_db_thread_alive)
12048 (thread_db_get_thread_local_address): Use them.
12049 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12050 of calling error() for threads in unknown state.
12051
12052 (clear_lwpid_callback): New function.
12053 (thread_db_resume): Use it to clear the cache.
12054
9fc30b6b
DJ
120552003-01-13 Daniel Jacobowitz <drow@mvista.com>
12056
12057 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12058 (resume_callback): Remove dead code.
12059
8f871025
AC
120602003-01-13 Andrew Cagney <ac131313@redhat.com>
12061
12062 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12063 predicate.
12064 * gdbarch.h, gdbarch.c: Regenerate.
12065 * stack.c (frame_info): Only initialize the saved registers when
12066 FRAME_INIT_SAVED_REGS_P.
12067 * frame.c (frame_saved_regs_register_unwind): Assert
12068 FRAME_INIT_SAVED_REGS_P.
12069 (deprecated_generic_get_saved_register): Ditto.
12070
3f565f1e
DJ
120712003-01-13 Daniel Jacobowitz <drow@mvista.com>
12072
12073 * source.c (openp): Squelch warning about "filename".
12074
072b1022
DJ
120752003-01-13 Daniel Jacobowitz <drow@mvista.com>
12076
12077 * source.c (openp): If the file does not exist don't necessarily
12078 search the path.
12079
973ccf8b
DJ
120802003-01-13 Daniel Jacobowitz <drow@mvista.com>
12081
12082 Fix PR gdb/872.
12083 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12084 (integer_types_same_name_p): New function.
12085 (rank_one_type): Use it.
12086 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12087
030292b7
DJ
120882003-01-13 Daniel Jacobowitz <drow@mvista.com>
12089
12090 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12091 variables.
12092 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12093 * configure.in: Add --with-sysroot.
12094 * configure: Regenerated.
12095 * main.c (gdb_sysroot): New variable.
12096 (captured_main): Initialize gdb_sysroot.
12097 * defs.h (gdb_sysroot): New extern declaration.
12098 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12099
afb5d334
MC
121002003-01-12 Michael Chastain <mec@shout.net>
12101
12102 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12103
751ceeb4
MC
121042003-01-12 Michael Chastain <mec@shout.net>
12105
12106 * top.c (print_gdb_version): Bump copyright year to 2003.
12107
94cd26f8
DC
121082003-01-12 David Carlton <carlton@bactrian.org>
12109
12110 * linespec.c (symtab_from_filename): Rename variable 's' to
12111 'file_symtab'.
12112
1ce79225
AC
121132003-01-12 Andrew Cagney <ac131313@redhat.com>
12114
12115 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12116 dummy frame.
12117 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12118
fa1fd571
AC
121192003-01-12 Andrew Cagney <ac131313@redhat.com>
12120
12121 * d10v-tdep.c: Include "gdb_assert.h".
12122 (d10v_store_return_value): Rewrite to match current interface.
12123 (d10v_extract_struct_value_address): Ditto.
12124 (d10v_extract_return_value): Ditto.
12125 (d10v_gdbarch_init): Set store_restore_value,
12126 extract_struct_value_address and extract_return_value.
12127
68b8d23e
JB
121282003-01-12 J. Brobecker <brobecker@gnat.com>
12129
12130 * hpread.c (set_namestring): New procedure replacing the
12131 SET_NAMESTRING macro.
12132 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12133 by calls to set_namestring.
12134
121352003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12136
12137 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12138 a compilation warning.
12139 (hpread_process_one_debug_symbol): Likewise.
12140
88d262ca
DC
121412003-01-10 David Carlton <carlton@math.stanford.edu>
12142
12143 * linespec.c (decode_line_1): Rename variable 's' to
12144 'file_symtab'.
12145 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12146 (decode_dollar): Ditto.
12147 (decode_variable): Ditto.
12148 (symbol_found): Ditto.
12149
86669319
MC
121502003-01-09 Michael Chastain <mec@shout.net>
12151
12152 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12153
616a9dc4
CV
121542003-01-07 Corinna Vinschen <vinschen@redhat.com>
12155
12156 * win32-nat.c (set_process_privilege): New function.
12157 (child_attach): Call set_process_privilege() to enable the
12158 SE_DEBUG_NAME user privilege if available in process token.
12159
3269bcfa
JB
121602003-01-10 J. Brobecker <brobecker@gnat.com>
12161
12162 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12163 compilation error in the previous revision.
12164
2b0ee454
DC
121652003-01-09 David Carlton <carlton@math.stanford.edu>
12166
12167 * linespec.c: Update copyright.
12168
b3ba1b44
DJ
121692003-01-09 Daniel Jacobowitz <drow@mvista.com>
12170
12171 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12172 than inferior_ptid.
12173 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12174
4ef3f3be
AC
121752003-01-09 Andrew Cagney <ac131313@redhat.com>
12176
479ab5a0
AC
12177 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12178 Update comments.
12179 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12180 (frame_saved_regs_zalloc): Update.
12181 (frame_saved_regs_register_unwind): Update.
12182 (create_new_frame): Update.
12183 (get_prev_frame): Update.
12184 (frame_extra_info_zalloc): Update.
12185 (deprecated_get_frame_saved_regs): Update.
12186 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12187 * cris-tdep.c: Update comment.
12188
bde58177
AC
12189 * somsolib.h: Fix function indentation.
12190 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12191 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12192 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12193 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12194 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12195
4ef3f3be
AC
12196 * infrun.c (follow_fork): Use ISO C definition.
12197 * expprint.c (print_subexp): Use xfree instead of free.
12198 * charset.c: Include "gdb_string.h" instead of <string.h>.
12199 (register_iconv_charsets): Use ISO C definition.
12200 (host_charset, target_charset): Ditto.
12201 * Makefile.in (charset.o): Update dependencies.
12202 (mi-cmd-env.o): Update dependencies.
12203
1c615f7a
AC
122042003-01-08 Andrew Cagney <cagney@redhat.com>
12205
12206 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12207 get_frame_base.
12208
c9a1dc08
AC
122092003-01-08 Andrew Cagney <ac131313@redhat.com>
12210
12211 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12212 build directories. Save edited gdb output in Mbuild.log. If a
12213 build fails, remove any final GDB executable.
12214
dbad9d94
AC
122152003-01-08 Andrew Cagney <ac131313@redhat.com>
12216
12217 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12218 replacing hex constants with function names and stripping leading
12219 file name directory prefixes.
12220
8d357cca
AC
122212003-01-08 Andrew Cagney <cagney@redhat.com>
12222
12223 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12224 get_frame_base.
12225
bca02a8a
DC
122262003-01-08 David Carlton <carlton@math.stanford.edu>
12227
12228 * linespec.c (decode_line_1): Move code into decode_variable.
12229 (decode_variable): New function.
12230
7f8ab3a0
AC
122312003-01-08 Andrew Cagney <ac131313@redhat.com>
12232
12233 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12234
7b5849cc
AC
122352003-01-08 Andrew Cagney <cagney@redhat.com>
12236
12237 * cris-tdep.c (cris_frame_init_saved_regs): Use
12238 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12239 saved_regs buffer.
12240 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12241 (sh64_nofp_frame_init_saved_regs): Ditto.
12242 (sh_fp_frame_init_saved_regs): Ditto.
12243 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12244 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12245 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12246 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12247
72a5efb3
DJ
122482003-01-08 Daniel Jacobowitz <drow@mvista.com>
12249
12250 * minsyms.c (lookup_minimal_symbol): Update comment.
12251 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12252 (lookup_minimal_symbol_solib_trampoline): Likewise.
12253
11c02a10
AC
122542003-01-08 Andrew Cagney <cagney@redhat.com>
12255
aab3ea25
AC
12256 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12257 frame_relative_level.
12258
da50a4b7
AC
12259 * alpha-tdep.c: Use get_frame_extra_info.
12260 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12261 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12262 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12263 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12264
11c02a10
AC
12265 * alpha-tdep.c: Use get_next_frame.
12266 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12267 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12268 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12269 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12270 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12271 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12272 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12273
1e2330ba
AC
122742003-01-07 Andrew Cagney <cagney@redhat.com>
12275
12276 * alpha-tdep.c: Use get_frame_base.
12277 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12278 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12279 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12280 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12281 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12282 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12283 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12284 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12285
2d75187b
AC
122862003-01-07 Andrew Cagney <cagney@redhat.com>
12287
12288 * frame.c (deprecated_get_frame_context): New function.
12289 (deprecated_set_frame_context): New function.
12290 * frame.h (deprecated_get_frame_context): Declare.
12291 (deprecated_set_frame_context): Declare.
12292 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12293 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12294
483d36b2
AC
122952003-01-07 Andrew Cagney <cagney@redhat.com>
12296
12297 * frame.c (deprecated_set_frame_next_hack): New function.
12298 (deprecated_set_frame_prev_hack): New function.
12299 * frame.h (deprecated_set_frame_next_hack): Declare.
12300 (deprecated_set_frame_prev_hack): Declare.
12301 * mcore-tdep.c (analyze_dummy_frame): Use
12302 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12303 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12304
14e91ac5
DC
123052003-01-07 David Carlton <carlton@math.stanford.edu>
12306
12307 * linespec.c (decode_line_1): Move code into decode_dollar.
12308 (decode_dollar): New function.
12309
b0c6b05c
AC
123102003-01-07 Andrew Cagney <cagney@redhat.com>
12311
12312 * arm-tdep.c (arm_init_extra_frame_info): Use
12313 deprecated_update_frame_base_hack.
12314 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12315 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12316 (fix_frame_pointer): Ditto.
12317 (mn10300_analyze_prologue): Ditto.
12318
a00a19e9
AC
123192003-01-07 Andrew Cagney <cagney@redhat.com>
12320
12321 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12322 extra_info using frame_extra_info_zalloc.
12323 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12324 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12325 (sh64_init_extra_frame_info): Ditto.
12326 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12327 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12328 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12329 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12330 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12331 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12332 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12333 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12334 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12335 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12336 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12337 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12338
12339 * mn10300-tdep.c (analyze_dummy_frame): Use
12340 deprecated_set_frame_extra_info_hack.
12341 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12342
1fb4c65b
JB
123432003-01-07 J. Brobecker <brobecker@gnat.com>
12344
12345 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12346 class is not scText. These do not define "real" procedures.
12347 (parse_partial_symbols): Likewise.
12348
9fe7d6bf
MS
123492003-01-06 Michael Snyder <msnyder@redhat.com>
12350
12351 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12352
f6c609c4
AC
123532003-01-06 Andrew Cagney <ac131313@redhat.com>
12354
12355 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12356 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12357 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12358 deprecated_frame_xmalloc_with_cleanup.
12359 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12360 deprecated_frame_xmalloc.
12361 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12362 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12363
d995ff4b
AC
123642003-01-06 Andrew Cagney <cagney@redhat.com>
12365
84dc46cb
AC
12366 * x86-64-linux-tdep.c: Include "osabi.h".
12367 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12368
d995ff4b
AC
12369 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12370
66140c26
AC
123712003-01-06 Andrew Cagney <cagney@redhat.com>
12372
12373 * MAINTAINERS (Target Instruction Set Architectures): Update
12374 arm-elf. Can be built with -Werror, has been multiarched.
12375
12376 * value.h (unpack_long): Make buffer parameter constant.
12377 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12378 * scm-lang.h (scm_parse): Ditto.
12379 * defs.h (extract_typed_address, extract_address): Ditto.
12380 (extract_long_unsigned_integer): Ditto.
12381 * inferior.h (unsigned_pointer_to_address): Ditto.
12382 (signed_pointer_to_address): Ditto.
12383 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12384 * gdbarch.h, gdbarch.c: Regenerate.
12385 * findvar.c (extract_long_unsigned_integer): Update.
12386 (extract_address): Update.
12387 (extract_typed_address): Update.
12388 (unsigned_pointer_to_address): Update.
12389 * values.c (unpack_long): Update.
12390 (unpack_double): Update.
12391 (unpack_pointer): Update.
12392 (unpack_field_as_long): Update.
12393 * d10v-tdep.c (d10v_pointer_to_address): Update.
12394 * avr-tdep.c (avr_pointer_to_address): Update.
12395 * scm-lang.c (scm_unpack): Update.
12396 * findvar.c (signed_pointer_to_address): Update.
12397
b089b3da
ML
123982003-01-06 Michal Ludvig <mludvig@suse.cz>
12399
8ffd9b1b 12400 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12401 since it is in i386-tdep.c.
12402
aff87235
JB
124032003-01-06 J. Brobecker <brobecker@gnat.com>
12404
12405 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12406 failure introduced in the previous change.
12407
34f5e845
MC
124082003-01-05 Michael Chastain <mec@shout.net>
12409
12410 * README: Remove references to deleted remote-*.c files:
12411 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12412 remote-nrom.c, remote-os9k.c, remote-udi.c.
12413
28bcfd30
MK
124142003-01-05 Mark Kettenis <kettenis@gnu.org>
12415
12416 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12417 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12418 i386_get_longjmp_target.
12419
15a5b3ee
AC
124202003-01-05 Andrew Cagney <ac131313@redhat.com>
12421
12422 * arm-tdep.c (prologue_cache): Change to a pointer.
12423 (_initialize_arm_tdep): Allocate prologue_cache.
12424 (check_prologue_cache): Update.
12425 (save_prologue_cache): Update.
12426 (arm_gdbarch_init): Update.
12427
c263362b
DJ
124282003-01-04 Daniel Jacobowitz <drow@mvista.com>
12429
12430 * stabsread.c (update_method_name_from_physname): Call complaint()
12431 instead of error.
12432
51603483
DJ
124332003-01-04 Daniel Jacobowitz <drow@mvista.com>
12434
12435 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12436 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12437 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12438
12439 * blockframe.c: Include "gdbcmd.h" and "command.h".
12440 (backtrace_below_main): New variable.
12441 (file_frame_chain_valid, func_frame_chain_valid)
12442 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12443 (generic_func_frame_chain_valid): Remove functions.
12444 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12445 (_initialize_blockframe): New function.
12446 * Makefile.in (blockframe.o): Update dependencies.
12447 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12448 comment. Call frame_chain_valid ().
12449 * frame.h: Remove old prototypes. Add prototype for
12450 frame_chain_valid and update comments to match.
12451 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12452 Remove old comment.
12453 * gdbarch.h: Regenerated.
12454 * gdbarch.c: Regenerated.
12455
12456 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12457 set_gdbarch_frame_chain_valid.
12458 * avr-tdep.c (avr_gdbarch_init): Likewise.
12459 * cris-tdep.c (cris_gdbarch_init): Likewise.
12460 * frv-tdep.c (frv_gdbarch_init): Likewise.
12461 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12462 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12463 (i386_nw_init_abi): Likewise.
12464 (i386_gdbarch_init): Likewise.
12465 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12467 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12468 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12469 * mips-tdep.c (mips_gdbarch_init): Likewise.
12470 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12471 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12472 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12473 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12474 * s390-tdep.c (s390_gdbarch_init): Likewise.
12475 * sh-tdep.c (sh_gdbarch_init): Likewise.
12476 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12477 * v850-tdep.c (v850_gdbarch_init): Likewise.
12478 * vax-tdep.c (vax_gdbarch_init): Likewise.
12479 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12480
12481 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12482 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12483 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12484 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12485 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12486 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12487 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12488 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12489
b00a8037
DJ
124902002-01-04 Daniel Jacobowitz <drow@mvista.com>
12491
12492 * Makefile.in (acconfig_h): Remove incorrect macro.
12493 (config_h): Define.
12494 (osabi.o): Update dependencies.
12495 * configure.tgt: Set gdb_osabi based on target triplet.
12496 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12497 * configure: Regenerated.
12498 * config.in: Regenerated.
12499 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12500 (GDB_OSABI_DEFAULT): Define if not already defined.
12501 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12502 (set_osabi_string): New variables.
12503 (gdbarch_register_osabi): Add new OS ABI to
12504 gdb_osabi_available_names.
12505 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12506 (set_osabi, show_osabi): New functions.
12507 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12508
4be87837
DJ
125092003-01-04 Daniel Jacobowitz <drow@mvista.com>
12510
12511 * arch-utils.c (gdbarch_info_init): Set osabi to
12512 GDB_OSABI_UNINITIALIZED.
12513 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12514 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12515 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12516 * gdbarch.c: Regenerated.
12517 * gdbarch.h: Regenerated.
12518 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12519 there's no BFD.
12520 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12521 * osabi.h (enum gdb_osabi): Move to defs.h.
12522 (gdbarch_init_osabi): Update prototype.
12523 * defs.h (enum gdb_osabi): Moved here.
12524 * Makefile.in: Update dependencies.
12525
12526 * alpha-tdep.h: Don't include "osabi.h".
12527 (struct gdbarch_tdep): Remove osabi member.
12528 * alpha-tdep.c: Include "osabi.h".
12529 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12530 iterate over arches. Update call to gdbarch_init_osabi.
12531 (alpha_dump_tdep): Don't dump osabi.
12532 * alpha-linux-tdep.c: Include "osabi.h".
12533 * alpha-osf1-tdep.c: Include "osabi.h".
12534 * alphafbsd-tdep.c: Include "osabi.h".
12535 * alphanbsd-tdep.c: Include "osabi.h".
12536
12537 * arm-tdep.h: Don't include "osabi.h".
12538 (struct gdbarch_tdep): Remove osabi member.
12539 * arm-tdep.c: Include "osabi.h".
12540 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12541 iterate over arches. Update call to gdbarch_init_osabi.
12542 (arm_dump_tdep): Don't dump osabi.
12543 * arm-linux-tdep.c: Include "osabi.h".
12544 * armnbsd-tdep.c: Include "osabi.h".
12545
12546 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12547 Update call to gdbarch_init_osabi.
12548
12549 * i386-tdep.h: Don't include "osabi.h".
12550 (struct gdbarch_tdep): Remove osabi member.
12551 * i386-tdep.c: Include "osabi.h".
12552 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12553 iterate over arches. Update call to gdbarch_init_osabi.
12554 (i386_dump_tdep): Don't dump osabi.
12555 * i386-linux-tdep.c: Include "osabi.h".
12556 * i386-sol2-tdep.c: Include "osabi.h".
12557 * i386bsd-tdep.c: Include "osabi.h".
12558 * i386gnu-tdep.c: Include "osabi.h".
12559 * i386ly-tdep.c: Include "osabi.h".
12560 * i386nbsd-tdep.c: Include "osabi.h".
12561 * i386obsd-tdep.c: Include "osabi.h".
12562
12563 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12564 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12565 check osabi when iterating over arches. Update call to
12566 gdbarch_init_osabi.
12567 (mips_dump_tdep): Don't dump osabi.
12568
12569 * ns32k-tdep.h: Don't include "osabi.h".
12570 (struct gdbarch_tdep): Remove.
12571 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12572 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12573 allocate tdep. Update call to gdbarch_init_osabi.
12574 (ns32k_dump_tdep): Remove.
12575 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12576 * ns32knbsd-tdep.c: Include "osabi.h".
12577
12578 * ppc-tdep.h: Don't include "osabi.h".
12579 (struct gdbarch_tdep): Remove osabi member.
12580 * rs6000-tdep.c: Include "osabi.h".
12581 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12582 osabi when iterating over arches. Update call to
12583 gdbarch_init_osabi.
12584 (rs6000_dump_tdep): Don't dump osabi.
12585 * ppc-linux-tdep.c: Include "osabi.h".
12586 * ppcnbsd-tdep.c: Include "osabi.h".
12587
12588 * sh-tdep.h: Don't include "osabi.h".
12589 (struct gdbarch_tdep): Remove osabi member.
12590 * sh-tdep.c: Include "osabi.h".
12591 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12592 iterate over arches. Update call to gdbarch_init_osabi.
12593 (sh_dump_tdep): Don't dump osabi.
12594 * shnbsd-tdep.c: Include "osabi.h".
12595
12596 * sparc-tdep.c: Include "osabi.h".
12597 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12598 iterate over arches. Update call to gdbarch_init_osabi.
12599 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12600 tdep structure.
12601
12602 * vax-tdep.h: Don't include "osabi.h".
12603 (struct gdbarch_tdep): Remove.
12604 * vax-tdep.c: Include "osabi.h".
12605 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12606 iterate over arches. Don't allocate tdep. Update call
12607 to gdbarch_init_osabi.
12608 (vax_dump_tdep): Remove.
12609 (_initialize_vax_tdep): Update call to gdbarch_register.
12610
a881cf8e
DJ
126112003-01-04 Daniel Jacobowitz <drow@mvista.com>
12612
12613 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12614 entirely.
12615 (breakpoint_re_set_one): Don't fetch the value for a disabled
12616 watchpoint.
12617
1e698235
DJ
126182003-01-04 Daniel Jacobowitz <drow@mvista.com>
12619
12620 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12621 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12622 (COERCE_FLOAT_TO_DOUBLE): Remove.
12623 * gdbarch.c: Regenerate.
12624 * gdbarch.h: Regenerate.
12625 * Makefile.in: Remove value_h from gdbarch_h.
12626 * valops.c (coerce_float_to_double): New variable.
12627 (default_coerce_float_to_double): Remove.
12628 (standard_coerce_float_to_double): Remove.
12629 (value_arg_coerce): Use coerce_float_to_double.
12630 (_initialize_valops): Add "set coerce-float-to-double".
12631 * value.h (default_coerce_float_to_double): Remove prototype.
12632 (standard_coerce_float_to_double): Remove prototype.
12633
12634 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12635 prototyped.
12636 * mdebugread.c (parse_symbol): Likewise.
12637 * stabsread.c (define_symbol): Mark all functions as prototyped.
12638
12639 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12640 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12641 set_gdbarch_coerce_float_to_double.
12642 * arm-tdep.c (arm_gdbarch_init): Likewise.
12643 * frv-tdep.c (frv_gdbarch_init): Likewise.
12644 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12645 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12646 * mips-tdep.c (mips_gdbarch_init): Likewise.
12647 (mips_coerce_float_to_double): Remove.
12648 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12649 (rs6000_coerce_float_to_double): Remove.
12650 * s390-tdep.c (s390_gdbarch_init): Likewise.
12651 * sh-tdep.c (sh_gdbarch_init): Likewise.
12652 (sh_coerce_float_to_double): Remove.
12653 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12654 (sparc_coerce_float_to_double): Remove.
12655 * v850-tdep.c (v850_gdbarch_init): Likewise.
12656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12657 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12658 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12659 (hppa_coerce_float_to_double): Remove prototype.
12660 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12661
f436a26a
DJ
126622003-01-04 Daniel Jacobowitz <drow@mvista.com>
12663
12664 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12665
248f8055
DJ
126662003-01-04 Daniel Jacobowitz <drow@mvista.com>
12667
12668 Suggested by Stewart Brown <sb24@avaya.com>:
12669 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12670 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12671 (c_type_print_varspec_suffix): Likewise.
12672
72cfdc76
MK
126732003-01-04 Mark Kettenis <kettenis@gnu.org>
12674
bfd260bb
MK
12675 * configure.in: Don't set and AC_SUBST SUBDIRS.
12676 * configure: Regenerated.
12677
72cfdc76
MK
12678 * configure.in: Remove code dealing with shared libraries.
12679 * Makefile.in: Remove HLDFLAGS and HLDENV.
12680 * configure: Regenerated.
12681
c8b8a898
AC
126822003-01-04 Andrew Cagney <ac131313@redhat.com>
12683
12684 * frame.c (deprecated_frame_xmalloc): New function.
12685 (deprecated_set_frame_saved_regs_hack): New function.
12686 (deprecated_set_frame_extra_info_hack): New function.
12687 * frame.h (deprecated_frame_xmalloc): Declare.
12688 (deprecated_set_frame_saved_regs_hack): Declare.
12689 (deprecated_set_frame_extra_info_hack): Declare.
12690
14abd0fb
MK
126912003-01-04 Mark Kettenis <kettenis@gnu.org>
12692
8ee53726
MK
12693 * configure.in: Move code that provides the --enable-gdbtk option
12694 right after the code that handles the --enable-tui option, and
12695 polish it somewhat.
12696 * configure: Regenerated.
12697
14abd0fb
MK
12698 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12699 AC_CHECK_FUNCS and remove the old check for pread64.
12700 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12701 * acconfig.h (_GNU_SOURCE): Add.
12702 (HAVE_PREAD64): Remove.
12703 * configure, aclocal.m4, config.in: Regenerated.
12704
b2fb4676
AC
127052003-01-03 Andrew Cagney <ac131313@redhat.com>
12706
12707 * alpha-tdep.c: Use get_frame_saved_regs.
12708 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12709 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12710 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12711 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12712 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12713
8dcde887
MK
127142003-01-03 Mark Kettenis <kettenis@gnu.org>
12715
12716 * configure.in: Remove all use of the SUBDIRS variable; add
12717 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12718 code providing the --enable-multi-ice option, and move it right in
12719 front of the code that checks whether gdbserver is supported.
12720 Polish that too.
12721 * configure: Regenerated.
12722 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12723 @SUBDIRS@.
12724
8ccd593b
AC
127252003-01-03 Andrew Cagney <cagney@redhat.com>
12726
12727 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12728 * avr-tdep.c, cris-tdep.c: Ditto.
12729 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12730 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12731
91151a06
MK
127322003-01-03 Mark Kettenis <kettenis@gnu.org>
12733
12734 * configure.in: Remove --enable-netrom option.
12735 * configure: Regenerated.
12736
8fe84d01
MK
127372003-01-03 Mark Kettenis <kettenis@gnu.org>
12738
12739 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12740 declaration for `struct re_pattern_buffer' instead.
12741 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12742
f0394be6
JB
127432003-01-03 J. Brobecker <brobecker@gnat.com>
12744
12745 * mdebugread.c (parse_symbol): Count until the stEnd matching
12746 the structure name.
12747
27e9bf90
MK
127482003-01-02 Mark Kettenis <kettenis@gnu.org>
12749
93d331ba
MK
12750 * configure.in: Remove --with-cpu option.
12751 subscripts. Remove evil changequotes here.
12752 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12753 * config.in, configure: Regenerated.
8ffd9b1b 12754
27e9bf90
MK
12755 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12756 * configure.in: Cleanup section that sources GDB and BFD configure
12757 subscripts. Remove evil changequotes here.
12758 * config.in, configure: Regenerated.
12759
50abf9e5
AC
127602003-01-02 Andrew Cagney <ac131313@redhat.com>
12761
12762 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12763 frame accessor methods.
12764 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12765 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12766 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12767 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12768 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12769 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12770 * z8k-tdep.c: Ditto.
8ffd9b1b 12771
287c1a40
MK
127722003-01-02 Mark Kettenis <kettenis@gnu.org>
12773
f5dbc56d
MK
12774 * configure.in: Remove UI_OUT configuration code.
12775 * ada-lang.c: Update assuming UI_OUT is always true.
12776 * Makefile.in (UIOUT_CFLAGS): Remove.
12777 * configure: Regenerated.
12778 * TODO: Remove blurb about elimination of -DUI_OUT.
12779
627af7ea
MK
12780 * configure.in: Move code that provides the --enable-gdbcli,
12781 --enable-gdbmi options right before the code that handles the
12782 --enable-tui option. Polish a bit.
12783 * configure: Regenerated.
12784
06825bd1
MK
12785 * configure.in: Rewrite check for GNU regex and the
12786 --without-included regex option, and move it into the "Checks for
12787 library functions" section. This makes us use the system regex
12788 again by default on systems with version 2 of the GNU C library.
12789 This was apparently broken.
12790 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12791 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12792 * config.in, configure: Regenerated.
12793
287c1a40
MK
12794 * configure.in: Move code that provides the --enable-tui option
12795 before the "Checks for libraries" section. Polish the code
12796 somewhat and set need_curses to yes if we build the TUI. Rewrite
12797 code that looks for a library providing termcap functionality to
12798 match more closely what's done in the Readline library, and move
12799 it into to the "Checks for libraries" section.
12800 * configure: Regenerated.
12801 * Makefile.in (TERMCAP): Remove variable.
12802 * config/i386/go32.mh (TERMCAP): Remove variable.
12803
684e56bf
AC
128042003-01-02 Andrew Cagney <ac131313@redhat.com>
12805
12806 * MAINTAINERS: Mention gdb_mbuild.sh.
12807 * gdb_mbuild.sh: Rewrite.
12808
e1ea1d75
MK
128092003-01-02 Mark Kettenis <kettenis@gnu.org>
12810
12811 * configure.in: Fix typo in last change.
12812 * config.in, configure: Regenerated.
12813
1b831c93
AC
128142003-01-02 Andrew Cagney <ac131313@redhat.com>
12815
12816 * valarith.c (value_binop): Delete obsolete code and comments.
12817 * configure.host: Ditto.
12818 * buildsym.h (make_blockvector): Ditto.
12819 * buildsym.c (make_blockvector): Ditto.
12820 * defs.h (enum language): Ditto.
12821 (chill_demangle): Ditto.
12822 * elfread.c (elf_symtab_read): Ditto.
12823 * dwarfread.c (CHILL_PRODUCER): Ditto.
12824 (set_cu_language): Ditto.
12825 (handle_producer): Ditto.
12826 * expprint.c (print_subexp): Ditto.
12827 * gdbtypes.c (chill_varying_type): Ditto.
12828 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12829 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12830 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12831 (chill_varying_type): Ditto.
12832 * language.h (_LANG_chill): Ditto.
12833 * language.c (binop_result_type, integral_type): Ditto.
12834 (character_type, string_type, structured_type): Ditto.
12835 (lang_bool_type, binop_type_check): Ditto.
12836 * stabsread.h (os9k_stabs): Ditto.
12837 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12838 (define_symbol, read_type, read_struct_fields): Ditto.
12839 (read_array_type, read_enum_type, read_huge_number): Ditto.
12840 (read_range_type, start_stabs): Ditto.
12841 * symfile.c (init_filename_language_table): Ditto.
12842 (add_psymbol_with_dem_name_to_list): Ditto.
12843 * symtab.c (symbol_init_language_specific): Ditto.
12844 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12845 * symtab.h (struct general_symbol_info): Ditto.
12846 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12847 * typeprint.c (typedef_print): Ditto.
12848 * utils.c (fprintf_symbol_filtered): Ditto.
12849 * valops.c (value_cast, search_struct_field, value_slice): Delete
12850 obsolete code.
12851 (varying_to_slice): Delete function.
12852 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12853 (varying_to_slice): Delete declaration.
12854 * MAINTAINERS: Update.
12855
8bb2c122
MK
128562003-01-02 Mark Kettenis <kettenis@gnu.org>
12857
97bf5e38
MK
12858 * configure.in: Reorganize "Checks for library functions section"
12859 a bit. Remove check for `btowc' and `isascii' functions.
12860 * configure: Regenerated.
12861
5ee754fc
MK
12862 * acconfig.h (_MSE_INT_H): Remove.
12863 * configure.in: Create "Checks for header files" section, and move
12864 appropriate tests there. Don't check for objlist.h, wchar.h,
12865 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12866 misdetection fix. Also add "Checks for types", "Checks for
12867 compiler characteristics" and "Checks for library functions"
12868 sections.
12869 * config.in, configure: Regenerated.
12870
8bb2c122
MK
12871 * configure.in: Create "Checks for programs" section, and move
12872 appropriate tests there.
12873
9a156167
MK
128742003-01-01 Mark Kettenis <kettenis@gnu.org>
12875
12876 * configure.in: Create "Checks for libraries" section, and move
12877 appropriate tests there. Cleanup check for wctype in libw. Use
12878 AC_SEARCH_LIBS to see whether we need libsocket.
12879 * configure: Regenerated.
12880
a80e2bcb 12881For older changes see ChangeLog-2002
c906108c
SS
12882\f
12883Local Variables:
12884mode: change-log
12885left-margin: 8
12886fill-column: 74
12887version-control: never
12888End:
This page took 1.62368 seconds and 4 git commands to generate.