* completer.h (get_gdb_completer_word_break_characters): Delete.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
51065942
JB
12003-10-06 J. Brobecker <brobecker@gnat.com>
2
3 * completer.h (get_gdb_completer_word_break_characters): Delete.
4 * completer.c: include language.h.
5 (gdb_completer_word_break_characters): Delete.
6 (get_gdb_completer_word_break_characters): Delete.
7 (location_completer): Use the word break characters of the current
8 language.
9 (complete_line): Likewise.
10 (line_completion_function): Likewise.
11 (skip_quoted_chars): Likewise.
12 * Makefile.in (completer.o): Add dependency on language.h.
13 * top.c (init_main): Set the readline word break characters
14 to GDB's default word break characters.
15
6084f43a
JB
162003-10-06 J. Brobecker <brobecker@gnat.com>
17
18 * language.h (language_defn): new field, la_word_break_characters.
19 * language.c (unknown_language_defn): Set new field to
20 default_word_break_characters.
21 (auto_language_defn): Likewise.
22 (local_language_defn): Likewise.
23 * ada-lang.c (ada_language_defn): Likewise.
24 * c-lang.c (c_language_defn): Likewise.
25 (cplus_language_defn): Likewise.
26 (asm_language_defn): Likewise.
27 (minimal_language_defn): Likewise.
28 * f-lang.c (f_language_defn): Likewise.
29 * jv-lang.c (java_language_defn): Likewise.
30 * m2-lang.c (m2_language_defn): Likewise.
31 * objc-lang.c (objc_language_defn): Likewise.
32 * p-lang.c (pascal_language_defn): Likewise.
33 * scm-lang.c (scm_language_defn): Likewise.
34
944fcfab
AC
352003-10-06 Andrew Cagney <cagney@redhat.com>
36
37 * ppc-sysv-tdep.c: Re-indent.
38
9f0a5303
JB
392003-10-06 J. Brobecker <brobecker@gnat.com>
40
41 * language.h (default_word_break_characters): Add prototype.
42 * language.c (default_word_break_characters): New function.
43
7270b6ed
AS
442003-10-06 Andreas Schwab <schwab@suse.de>
45
46 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
47 with %eax.
48
a5d61f66
AC
492003-10-06 Andrew Cagney <cagney@redhat.com>
50
51 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
52 "h8500-tdep.c".
53 (z8k-tdep.o): Delete custom build rule.
54
28a86f5c
AC
552003-10-06 Andrew Cagney <cagney@redhat.com>
56
1bfd8a83
AC
57 * Makefile.in: Update all dependencies.
58
17144ef8
AC
59 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
60 No longer list PA as as obsolete candidate. List m32r as
61 broken instead of obsolete.
62
a5679ae5
AC
63 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
64 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
65 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
66 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
67 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
68 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
69 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
70 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
71 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
72 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
73 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
74 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
75 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
76 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
77 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
78 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
79 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
80 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
81 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
82 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
83 * config/z8k/z8k.mt: Ditto.
84
4a8269c0
AC
85 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
86 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
87 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
88 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
89 sparclite were removed.
90 * configure.host, configure.tgt: Remove corresponding tuples.
91
41989fcd
AC
92 * breakpoint.c, breakpoint.h: Remove obsolete code.
93 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
94 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
95 * stabsread.h, xcoffread.c: Ditto.
96
28a86f5c
AC
97 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
98 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
99 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
100 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
101
4efdaa0d
DL
1022003-10-06 David Lecomber <dsl@sources.redhat.com>
103
104 * f-valprint.c: Reformatting
105
ae53de43
MK
1062003-10-06 Mark Kettenis <kettenis@gnu.org>
107
a8bb57e7
MK
108 * x86-64-tdep.c: Remove duplicate comment.
109
ae53de43
MK
110 * x86-64-tdep.c (x86_64_store_return_value): Don't use
111 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
112 names for return values. This fixes a bug since we looked at %rbx
113 instead of %rdx.
114
473f17b0
MK
1152003-10-05 Mark Kettenis <kettenis@gnu.org>
116
2c261fae
MK
117 * x86-64-tdep.c: Include "regset.h".
118
473f17b0
MK
119 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
120 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
121 sizeof_fpregset.
122 * i386-tdep.c: Include "regset.h".
123 (i386_supply_gregset): New function.
124 (i386_supply_fpregset): New function.
125 (i386_gdbarch_init): Initialze register set-related members of
126 TDEP.
127 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
128 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
129
afd48b75
AC
1302003-10-03 Andrew Cagney <cagney@redhat.com>
131
132 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
133 set extract_return_value, store_return_value and
134 use_struct_convention to ppc64_sysv_abi_extract_return_value,
135 ppc64_sysv_abi_store_return_value and
136 ppc64_sysv_abi_use_struct_convention.
137 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
138 (ppc64_sysv_abi_store_return_value): Declare.
139 (ppc64_sysv_abi_use_struct_convention): Declare.
140 * ppc-sysv-tdep.c (enum return_value_convention): Define.
141 (ppc64_sysv_abi_extract_return_value): New function.
142 (ppc64_sysv_abi_store_return_value): New function.
143 (ppc64_sysv_abi_use_struct_convention): New function.
144 (ppc64_sysv_abi_return_value): New function.
145
9b540880
AC
1462003-10-03 Andrew Cagney <cagney@redhat.com>
147
148 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
149 convert a descriptor to a function when it's in the ".opd"
150 section.
151
8748518b
CV
1522003-10-03 Corinna Vinschen <vinschen@redhat.com>
153
154 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
155 reg_size to keep GCC silent.
156
0fd85043
CV
1572003-10-03 Corinna Vinschen <vinschen@redhat.com>
158
159 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
160 base for DW_EH_PE_textrel encodings.
161 (read_encoded_value): Add a DW_EH_PE_textrel case.
162 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
163 section.
164
37b517aa
MK
1652003-10-03 Mark Kettenis <kettenis@gnu.org>
166
167 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
168
12c266ea
AC
1692003-10-02 Andrew Cagney <cagney@redhat.com>
170
171 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
172 REGISTER_RAW_SIZE.
173 * gdbarch.h, gdbarch.c: Re-generate.
174 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
175 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
176 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
177 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
178 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
179 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
180 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
181 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
182 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
183 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
184 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
185 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
186 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
187 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
188 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
189 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
190
78ba4af6
JB
1912003-10-02 Jim Blandy <jimb@redhat.com>
192
193 * dwarf2read.c (struct die_info): Doc fix.
194
617daa0e
CV
1952003-10-02 Corinna Vinschen <vinschen@redhat.com>
196
197 * sh-tdep.c: Running thru gdb_indent.sh.
198
e5e33cd9
CV
1992003-10-02 Corinna Vinschen <vinschen@redhat.com>
200
201 * sh-tdep.c (sh_justify_value_in_reg): New function.
202 (sh_stack_allocsize): Ditto.
203 (flt_argreg_array): New array used for floating point argument
204 passing.
205 (sh_init_flt_argreg): New function.
206 (sh_next_flt_argreg): Ditto.
207 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
208 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
209 Fix argument passing strategy.
210 (sh_push_dummy_call_nofpu): Ditto.
211
5fe830e4
AC
2122003-10-01 Andrew Cagney <cagney@redhat.com>
213
214 * value.h (register_value_being_returned): Declare. Replace
215 "value_being_returned".
216 * infcall.c (call_function_by_hand): Use
217 register_value_being_returned.
218 * infcmd.c (print_return_value): Call
219 "register_value_being_returned", handle struct return locally.
220 * values.c (register_value_being_returned): New function. Replace
221 "value_being_returned".
222
2232003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
224
225 * linux-proc.c (linux_do_registers): New function.
226 (linux_make_note_section): Use linux_do_registers in case of
227 single threaded inferior programs.
228
64f395bf
AC
2292003-10-01 Andrew Cagney <cagney@redhat.com>
230
231 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
232 use STRUCT_ADDR. When not using "struct return convention", pass
233 "0" to "value_being_returned". Add FIXMEs.
234 * infcmd.c (print_return_value): Pass an explicit 0/1 to
235 value_being_returned. Add comments.
236 * values.c (value_being_returned): Add fixme.
237 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
238 (hppa_value_returned_from_stack): Add FIXME.
239
639d11d3
DC
2402003-09-30 David Carlton <carlton@kealia.com>
241
242 * dwarf2read.c (struct die_info): Add 'parent' field; replace
243 'has_children' and 'next' by 'child' and 'sibling'.
244 (read_comp_unit): Rework algorithm, breaking body into
245 read_die_and_children and read_die_and_siblings.
246 (read_die_and_children, read_die_and_siblings): New.
247 (read_full_die): Add 'has_children' argument; set it instead of
248 the die's 'has_children' field. Minor formatting cleanup.
249 (free_die_list): Use die->child and die->sibling instead of
250 die->next.
251 (dump_die_list): Ditto.
252 (sibling_die): Use die->sibling.
253 (psymtab_to_symtab_1): Use die's 'child' field in place of its
254 'has_children' and 'next' fields.
255 (process_die, read_file_scope, read_func_scope)
256 (read_lexical_block_scope, read_structure_scope)
257 (read_enumeration, read_array_type, read_common_block)
258 (read_namespace, read_subroutine_type, dump_die): Ditto.
259
5bffac25
AC
2602003-09-30 Andrew Cagney <cagney@redhat.com>
261
262 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
263 to 224, not 220.
264
f30992d4
AC
2652003-09-30 Andrew Cagney <cagney@redhat.com>
266
267 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
268 REGISTER_VIRTUAL_SIZE.
269 * gdbarch.h, gdbarch.c: Regenerate.
270 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
271 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
272 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
273
2e092625
AC
2742003-09-29 Andrew Cagney <cagney@redhat.com>
275
276 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
277 DEPRECATED_REGISTER_VIRTUAL_TYPE.
278 * gdbarch.h, gdbarch.c: Regenerate.
279 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
280 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
281
282 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
283 * remote-vxmips.c (vx_read_register): Ditto.
284 * remote-vx68.c (vx_read_register): Ditto.
285 * gnu-nat.c (inf_validate_procs): Ditto.
286
7a5dd6ee
JB
2872003-09-29 J. Brobecker <brobecker@gnat.com>
288
289 * infcall.c (call_function_by_hand): Fix build failure
290 introduced in the previous change to this file.
291
1fe43d45
AC
2922003-09-29 Andrew Cagney <cagney@redhat.com>
293
294 * NEWS: Mention Objective-C.
295
e28a332c
JG
2962003-09-29 Jerome Guitton <guitton@act-europe.fr>
297
298 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
299 test if the register has been saved on the stack.
300 (arm_scan_prologue_cache): When analysing the instruction
301 "str lr, [sp, #-4]", save the address where lr has been stored.
302
9ff63c35
AC
3032003-09-28 Andrew Cagney <cagney@redhat.com>
304
7f5f525d
AC
305 * frame.c (frame_read_unsigned_register): Delete function.
306 * frame.h (frame_read_unsigned_register): Delete declaration.
307 * sparc-tdep.c (sparc_init_extra_frame_info): Use
308 get_frame_register_unsigned.
309 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
310 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
311 * d10v-tdep.c (d10v_print_registers_info): Ditto.
312
313 * frame.h (frame_read_register): Delete declaration.
314 * frame.c (frame_read_register): Delete function.
315 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
316 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
317 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
318 * mips-tdep.c (mips_register_to_value): Ditto.
319 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
320 * d10v-tdep.c (d10v_print_registers_info): Ditto.
321
322 * frame.c (frame_read_signed_register): Delete function.
323 (frame_read_unsigned_register): Update comments.
324 * frame.h (frame_read_signed_register): Delete declaration.
325 * h8300-tdep.c (h8300_print_register): Use
326 get_frame_register_signed.
327 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
328
9ff63c35
AC
329 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
330 Rename VALUE_RETURNED_FROM_STACK.
331 * infcmd.c (print_return_value): Update.
332 * infcall.c (call_function_by_hand): Update.
333
41d041d6
MK
3342003-09-28 Mark Kettenis <kettenis@gnu.org>
335
336 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
337 regcache argument and reverse the order of the other two
338 arguments. Remove local regcache variable. Determine
339 architecture from REGCACHE. Update comments.
340 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
341 reverse the order of the other two arguments. Remove local
342 regcache variable. Determine architecture from REGCACHE. Update
343 comments.
344 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
345 prototypes. Update comments.
346 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
347 comment.
348 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
349 Update.
350 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
351 * i386-interix-nat.c (supply_fpregset): Update.
352 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
353 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
354 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
355 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
356 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
357 Update.
358 * i386obsd-tdep.c (fetch_core_registers): Update.
359 * i386v4-nat.c (supply_fpregset): Update.
360 * x86-64-linux-nat.c (supply_fpregset): Update.
361 * x86-64-linux-tdep.c (fetch_core_registers): Update.
362
1cb97e17
MK
3632003-09-27 Mark Kettenis <kettenis@gnu.org>
364
5716833c
MK
365 * i386-tdep.h: Put opaque declarations in alphabetical
366 order. Remove spurious whitespace.
367 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
368 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
369 * i386-tdep.c (MM0_REGNUM): Remove define.
370 (i386_mmx_regnum_p): Add gdbarch argument.
371 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
372 Rewrite using new macro definitions for FPU/SSE registers.
373 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
374 definitions from i387-tdep.h.
375 (i386_register_name): Update.
376 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
377 new macro definitions for FPU/SSE registers.
378 (i386_extract_return_value): Determine whether floating-point
379 registers are present by examining REGCACHE's architecture.
380 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
381 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
382 FPU/SSE registers.
383 (i386_register_type): Update.
384 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
385 definitions for FPU registers. Use REGCACHE's architecture to
386 determine the appropriate register numbers.
387 (i386_pseudo_register_read, i386_pseudo_register_write,
388 i386_register_reggroup_p): Update.
389 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
390 TDEP->mm0_regnum.
391 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
392 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
393 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
394 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
395 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
396 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
397 *' to `void *'.
398 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
399 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
400 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
401 definitions for FPU/SSE registers.
402 (FXSAVE_MXCSR_ADDR): New define.
403 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
404 TDEP->mm0_regnum.
405 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
406 (I387_ST0_REGNUM): Define.
407
41d35cb0
MK
408 * regcache.h (get_regcache_arch): New prototype.
409 * regcache.c (get_regcache_arch): New function.
410
54e74f72
MK
411 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
412 whitespace.
413
1cb97e17
MK
414 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
415 Initialize using ARRAY_SIZE.
416
0968aa8c
AC
4172003-09-27 Andrew Cagney <cagney@redhat.com>
418
419 * arch-utils.c (deprecated_init_frame_pc_default): Rename
420 "init_frame_pc_default".
421 * arch-utils.h (deprecated_init_frame_pc_default): Update.
422 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
423 * vax-tdep.c (vax_gdbarch_init): Update.
424 * v850-tdep.c (v850_gdbarch_init): Update.
425 * sh64-tdep.c (sh64_gdbarch_init): Update.
426 * s390-tdep.c (s390_gdbarch_init): Update.
427 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
428 * mcore-tdep.c (mcore_gdbarch_init): Update.
429 * h8300-tdep.c (h8300_gdbarch_init): Update.
430 * cris-tdep.c (cris_gdbarch_init): Update.
431 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
432
54c84734
MK
4332003-09-26 Mark Kettenis <kettenis@gnu.org>
434
435 * regset.h: New file.
436 * Makefile.in (regset_h): Add.
437
1b1d3794
AC
4382003-09-25 Andrew Cagney <cagney@redhat.com>
439
440 * frame.h (deprecated_frame_saved_regs): Rename
441 get_frame_saved_regs.
442 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
443 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
444 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
445 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
446 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
447
e6beb428
AC
4482003-09-25 Andrew Cagney <cagney@redhat.com>
449
450 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
451 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
452 and Java.
453 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
454 arm*-*-* do not use the new frame code.
455
710122da
DC
4562003-09-25 David Carlton <carlton@kealia.com>
457
458 * c-exp.y: Remove 'register' declarations.
459 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
460
79c2c32d
DC
4612003-09-25 David Carlton <carlton@kealia.com>
462
463 * c-exp.y: Include cp-support.h. Add qualified_type.
464 (yylex): Delete nested type hack; add comments.
465 * cp-namespace.c (cp_lookup_nested_type): New function.
466 * cp-support.h: Declare cp_lookup_nested_type.
467 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
468 instead of value_struct_elt_for_reference.
469 * valops.c: Include cp-support.h.
470 (value_aggregate_elt): New function.
471 (value_namespace_elt): Ditto.
472 (value_struct_elt_for_reference): Make static.
473 * value.h: Delete declaration of value_struct_elt_for_reference;
474 add declaration for value_aggregate_elt.
475 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
476 (valops.o): Ditto.
477
898c62f5
DJ
4782003-09-25 Daniel Jacobowitz <drow@mvista.com>
479
480 * stack.c: Include "reggroups.h".
481 (frame_info): Only display registers in all_reggroup.
482 * Makefile.in (stack.o): Update dependencies.
483
28cd8767
JG
4842003-09-25 Jerome Guitton <guitton@act-europe.fr>
485
486 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
487 "add ip, sp #n" in the prologue.
488 (arm_scan_prologue): Ditto.
489
a4ab2b5d
JG
4902003-09-25 Jerome Guitton <guitton@act-europe.fr>
491
492 * MAINTAINERS (write after approval): Add myself.
493
3f244638
AS
4942003-09-25 Andreas Schwab <schwab@suse.de>
495
496 * m68k-tdep.c: Include "dwarf2-frame.h".
497 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
498 * Makefile.in (m68k-tdep.o): Update dependencies.
499
1c0159e0
CV
5002003-09-25 Corinna Vinschen <vinschen@redhat.com>
501
502 * sh-tdep.c (struct frame_extra_info): Remove.
503 (struct sh_frame_cache): New structure.
504 (GET_SOURCE_REG): New macro extracting source register of an opcode.
505 (GET_TARGET_REG): Ditto but target register.
506 (GET_PUSHED_REG): Remove.
507 (IS_MOV_ARG_TO_REG): New macro.
508 (IS_MOV_ARG_TO_IND_R14): New macro.
509 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
510 (IS_MOVW_PCREL_TO_REG): New macro.
511 (IS_MOVL_PCREL_TO_REG): New macro.
512 (IS_SUB_REG_FROM_SP): New macro.
513 (IS_ARG_MOV): Remove.
514 (IS_MOV_TO_R14): Remove.
515 (IS_RESTORE_FP): New macro.
516 (IS_RTS): New macro.
517 (IS_LDS): New macro.
518 (IS_MOV_FP_SP): New macro.
519 (IS_ADD_REG_TO_FP): New macro.
520 (IS_ADD_IMM_FP): New macro.
521 (sh_skip_prologue_hard_way): Remove.
522 (sh_saved_pc_after_call): Remove.
523 (sh_frame_chain): Remove.
524 (sh_find_callers_reg): Remove.
525 (sh_nofp_frame_init_saved_regs): Remove.
526 (sh_fp_frame_init_saved_regs): Remove.
527 (sh_init_extra_frame_info): Remove.
528 (sh_analyze_prologue): New function.
529 (sh_skip_prologue): Remove deprecated code. Rely on new function
530 sh_analyze_prologue when after_prologue fails.
531 (sh_frame_saved_pc): Remove.
532 (sh_alloc_frame_cache): New function.
533 (sh_frame_cache): Ditto.
534 (sh_frame_prev_register): Ditto.
535 (sh_frame_this_id): Ditto.
536 (sh_frame_unwind): New structure defining the heuristic frame
537 sniffer interface.
538 (sh_frame_sniffer): New function.
539 (sh_unwind_sp): Ditto.
540 (sh_unwind_pc): Ditto.
541 (sh_unwind_dummy_id): Ditto.
542 (sh_frame_base_address): Ditto.
543 (sh_frame_base): New structure defining new frame base code.
544 (sh_in_function_epilogue_p): New function.
545 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
546 code and to call all new code instead. Initialize dwarf2 and
547 heuristic frame sniffer.
548
5f9769d1
PH
5492003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
550
551 * parser-defs.h (struct exp_descriptor): New definition, containing
552 language-specific info for printing, prefixifying, dumping, and
553 evaluating expressions.
554 (exp_descriptor_standard): Declare new variable.
555 (print_subexp): Make global and declare here (from expprint.c).
556 (dump_subexp): Ditto.
557 (dump_subexp_body_standard): Declare.
558 (operator_length_standard): Declare.
559 (op_name_standard): Declare.
560 (print_subexp): Declare.
561 (print_subexp_standard): Declare.
562
563 * language.h (struct language_defn): Add la_exp_desc field to hold
564 pointer to table for language-specific operators.
565 Remove evaluate_exp field, which is now in struct exp_descriptor.
566
567 * parse.c (operator_length): Move most code to new
568 operator_length_standard function. Use language-specific information.
569 (operator_length_standard): New function taking most code from
570 operator_length.
571 (exp_descriptor_standard): New constant.
572
573 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
574 and OP_EXTENDED_LAST.
575
576 * expprint.c (print_subexp): Use language-specific print_subexp.
577 Make global; remove static declaration.
578 Move most code to print_subexp_standard.
579 (print_subexp_standard): New function, containing code formerly in
580 print_subexp.
581 (op_name): Add expression to argument signature.
582 Use langauge-specific op_name.
583 Move most code to op_name_standard.
584 (op_name_standard): New function, containing code formerly in op_name.
585 (dump_subexp): Use new version of op_name function.
586 Use language-specific dump_subexp_body, and move most existing code to
587 dump_subexp_body_standard.
588 (dump_raw_expression): Use new op_name interface.
589 (dump_subexp_body): Move most code to dump_subexp_body_standard.
590 (dump_subexp_body_standard): New function, containing code formerly
591 in dump_subexp_body.
592
593 * language.c (unknown_language): Add default la_exp_desc field and
594 remove evaluate_exp field.
595 (auto_language): Ditto.
596 (local_language): Ditto.
597 * f-lang.c (f_language_defn): Ditto.
598 * c-lang.c (c_language_defn): Ditto.
599 (cplus_language_defn): Ditto.
600 (asm_language_defn): Ditto.
601 (minimal_language_defn): Ditto.
602 * p-lang.c (pascal_language_defn): Ditto.
603 * m2-lang.c (m2_language_defn): Ditto.
604 * objc-lang.c (objc_language_defn): Ditto.
605
606 * jv-lang.c (exp_descriptor_java): New variable, containing
607 Java-specific expression evaluator.
608 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
609 field.
610 * scm-lang.c (exp_descriptor_scm): New variable, containing
611 Scheme-specific expression evaluator.
612 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
613 field.
614 * objc-lang.c (print_object_command): Take evaluate_exp from the
615 la_exp_desc field.
616
617 * Makefile.in (eval.o): Add dependency on parser-defs.h.
618
619 * eval.c: Include parser-defs.h for the full declaration of
620 la_exp_desc's type.
621 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
622
24daaebc
PH
6232003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
624
625 * parser-defs.h (operator_length): Declare.
626
627 * parse.c (length_of_subexp): Use operator_length to get operator
628 lengths and arities for operators.
629 Move most code to new operator_length function.
630 (operator_length): New function absorbing most code from
631 length_of_subexp.
632 (prefixify_subexp): Remove large case and use operator_length instead.
633 (parse_exp_1): Use renamings:
634 dump_prefix_expression => dump_raw_expression and
635 dump_postfix_expression => dump_prefix_expression.
636
637 * expression.h (dump_prefix_expression): Rename to ...
638 (dump_raw_expression): New name.
639 (dump_postfix_expression): Rename to ...
640 (dump_prefix_expression): New name.
641
642 * expprint.c (dump_subexp): Make global. Add comment.
643 Move most existing code to dump_subexp_body.
644 (dump_subexp_body): New function.
645 (dump_prefix_expression): Rename to dump_raw_expression.
646 Remove attempt to print the expression via print_expression: it can't
647 work before the expression is prefixified.
648 (dump_raw_expression): Renamed from dump_prefix_expression.
649 (dump_postfix_expression): Rename to dump_prefix_expression, since
650 that's what it does.
651 Remove 'note' parameter, since this routine must be used on
652 prefixified expression.
653 (dump_prefix_expression): Renamed from dump_postfix_expression.
654
8c2957c4
JB
6552003-09-22 Jim Blandy <jimb@redhat.com>
656
657 * dwarf2read.c (read_array_type): When building the type for an
658 array of unspecified length, make sure to choose the upper bound
659 so that the array's total length comes out to be zero --- that's
660 how we represent such arrays.
661
592e3010
MC
6622003-09-22 Michael Chastain <mec@shout.net>
663
664 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
665
365c70b1
JJ
6662003-09-22 Jeff Johnston <jjohnstn@redhat.com>
667
668 * top.c (quit_force): Fix indirect call to quit_target so
669 a struct qt_args pointer is passed.
670
5d6eb653
AC
6712003-09-22 Andrew Cagney <cagney@redhat.com>
672
673 * arch-utils.h (init_frame_pc_noop): Delete declaration.
674 * arch-utils.c (init_frame_pc_noop): Delete function.
675 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
676 "init_frame_pc".
677 * mips-tdep.c (mips_gdbarch_init): Ditto.
678 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
679 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
680 declaration.
681 (DEPRECATED_INIT_FRAME_PC): Delete macro.
682 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
683 declaration.
684 (DEPRECATED_INIT_FRAME_PC): Delete macro.
685
b222a67f
AG
6862003-09-22 Anthony Green <green@redhat.com>
687
688 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
689 declaration.
690
d5b5ac79
AC
6912003-09-20 Andrew Cagney <cagney@redhat.com>
692
deafb061
AC
693 * breakpoint.c: Eliminate ARGSUSED.
694 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
695 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
696 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
697 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
698 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
699 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
700 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
701 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
702 * wince.c, remote-vx.c: Ditto.
703
d5b5ac79
AC
704 * cli/cli-script.c: Remove "register" attributes.
705 * config/pa/tm-hppa.h: Ditto.
706 * cli/cli-decode.c: Ditto.
707 * cli/cli-cmds.c: Ditto.
708
c6316faa
AC
7092003-09-19 Andrew Cagney <cagney@redhat.com>
710
711 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
712 DEPRECATED_NPC_REGNUM.
713 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
714
f4f99b11
CF
7152003-09-19 Christopher Faylor <cgf@redhat.com>
716
717 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
718
1708f284
JB
7192003-09-19 Jim Blandy <jimb@redhat.com>
720
721 * macrotab.c (macro_include): Use the correct comparison to find
722 the appropriate place for this inclusion in the list.
723
b9fbf434
AC
7242003-09-19 Andrew Cagney <cagney@redhat.com>
725
726 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
727 (DEPRECATED_HPUX_TEXT_END): Define.
728 (deprecated_hpux_text_end): Declare.
729 (struct target_ops): Declare opaque.
730 * hppah-nat.c (text_end): Make static.
731 (deprecated_hpux_text_end): New function.
732 * exec.c (text_end): Delete global variable.
733 (NEED_TEXT_START_END): Do not define.
734 (exec_file_attach): Replace code computing "text_end" code with
735 call to DEPRECATED_HPUX_TEXT_END.
736
5b03f266
AC
7372003-09-19 Andrew Cagney <cagney@redhat.com>
738
739 * utils.c (align_up, align_down): New functions.
740 * defs.h (align_up, align_down): Declare.
741 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
742 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
743 and "align_down".
744 (round_up, round_down): Delete functions.
745 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
746 "align_down".
747 (ROUND_DOWN, ROUND_UP): Delete macros.
748 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
749 * h8300-tdep.c: Replace "round_up" and "round_down" with
750 "align_up" and "align_down".
751 (round_up, round_down): Delete macros.
752 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
753 "align_down".
754 (ROUND_UP, ROUND_DOWN): Delete macros.
755
51db5742
JB
7562003-09-18 J. Brobecker <brobecker@gnat.com>
757
758 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
759 hard-coded constant. Use the proper machine name instead.
760
77949794
AC
7612003-09-17 Andrew Cagney <cagney@redhat.com>
762
763 * sparc-tdep.c (legacy_register_name): Delete function.
764 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
765 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
766 * infcmd.c (gdb_register_name): Delete variable.
767 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
768 REGISTER_NAME and "tm.h".
769 * gdbarch.h, gdbarch.c: Regenerate.
770 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
771 REGISTER_NAMES in comments.
772 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
773 * m68klinux-nat.c (regmap): Ditto.
774
b55c33cc
JB
7752003-09-17 Jim Blandy <jimb@redhat.com>
776
777 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
778
957e27ac
AC
7792003-09-17 Andrew Cagney <cagney@redhat.com>
780
781 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
782 (ppcnbsd_init_abi): Set "use_struct_convention" to
783 "ppcnbsd_use_struct_convention".
784
192cb3d4
MK
7852003-09-17 Mark Kettenis <kettenis@gnu.org>
786
787 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
788 * gdbarch.h, gdbarch.c: Regenerate.
789 (stabs_argument_has_addr): New architecture method.
790 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
791 * arch-utils.c: Include "buildsym.h".
792 (default_stabs_argument_has_addr): New function.
793 * stabsread.c (define_symbol): Use stabs_argument_has_addr
794 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
795
efe59759
AC
7962003-09-17 Andrew Cagney <cagney@redhat.com>
797
798 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
799 * gdbarch.h, gdbarch.c: Regenerate.
800 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
801 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
802 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
803 * sparcnbsd-tdep.c: Update.
804
62700349
AC
8052003-09-17 Andrew Cagney <cagney@redhat.com>
806
807 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
808 * gdbarch.h, gdbarch.c: Regenerate.
809 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
810 * d10v-tdep.c, frame.c: Update.
811 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
812 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
813 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
814 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
815 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
816 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
817 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
818 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
819 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
820 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
821 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
822 * config/pa/nm-hppah.h: Update.
823
b9ff3018
AC
8242003-09-16 Andrew Cagney <cagney@redhat.com>
825
826 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
827 "use_struct_convention" to "ppc_linux_use_struct_convention".
828 (ppc_linux_use_struct_convention): New function.
829 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
830 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
831 "rs6000_use_struct_convention".
832 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
833 declaration.
834 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
835 Delete function.
836
aa1ee363
AC
8372003-09-16 Andrew Cagney <cagney@redhat.com>
838
839 * buildsym.c: Remove more occurances of "register".
840 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
841 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
842 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
843 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
844 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
845 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
846 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
847 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
848
f2ea0907
CV
8492003-09-16 Corinna Vinschen <vinschen@redhat.com>
850
851 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
852 numbers to enumeration values.
853 * sh-tdep.c: Accomodate above change.
854 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
855 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
856 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
857 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
858 (IS_FPUSH): Rename from IS_FMOV.
859 (sh_extract_struct_value_address): Remove useless comment.
860 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
861 instead of own local values.
862 (sh_dump_tdep): Remove.
863 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
864 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
865
1c704f11
AC
8662003-09-15 Andrew Cagney <cagney@redhat.com>
867
868 * doublest.c (convert_floatformat_to_doublest): No longer need to
869 cast "exp_bias" to an int. Reverts 2002-12-04 change.
870
ac79b88b
DJ
8712003-09-15 Daniel Jacobowitz <drow@mvista.com>
872
873 * values.c (unpack_double): Call floatformat_is_valid.
874
1c671366
MK
8752003-09-15 Mark Kettenis <kettenis@gnu.org>
876
de5227fb
MK
877 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
878 ps_strings into a long.
879
1c671366
MK
880 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
881 _initialize_am64fbsd_nat.
882
a604369a
KB
8832003-09-15 Kevin Buettner <kevinb@redhat.com>
884
885 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
886 associated with DW_AT_ranges attribute is out of bounds.
887
b3cacbee
DL
8882003-09-15 David Lecomber <dsl@sources.redhat.com>
889
890 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
891
d0f37bb2
MC
8922003-09-14 Michael Chastain <mec@shout.net>
893
894 * config/m68k/nm-apollo68v.h: Delete.
895 * config/m68k/xm-apollo68v.h: Delete.
896
69517000
AC
8972003-09-14 Andrew Cagney <cagney@redhat.com>
898
899 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
900 * dcache.c: Update copyrights and descriptions.
901 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
902
ef8b349d
AC
9032003-09-14 Andrew Cagney <cagney@redhat.com>
904
905 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
906 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
907
52f0bd74
AC
9082003-09-14 Andrew Cagney <cagney@redhat.com>
909
910 * alpha-nat.c: Remove some occurances of "register".
911 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
912 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
913 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
914 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
915 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
916 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
917 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
918 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
919 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
920 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
921 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
922 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
923 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
924 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
925 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
926 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
927 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
928 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
929 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
930 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
931 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
932 * values.c, vax-tdep.c, xcoffread.c: Ditto.
933
4a4b3fed
AC
9342003-09-13 Andrew Cagney <cagney@redhat.com>
935
936 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
937 * ppc-tdep.h (struct regcache): Declare opaque.
938 * objfiles.h (struct objfile_data): Declare opaque.
939 * cp-support.h (struct objfile): Declare opaque.
940 * linux-nat.h (target_waitstatus): Declare opaque.
941
2110b94f
MK
9422003-09-14 Mark Kettenis <kettenis@gnu.org>
943
1c671366
MK
944 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
945 (stabs_argument_has_addr): New architecture method.
946 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
947 * arch-utils.c: Include "buildsym.h".
948 (default_stabs_argument_has_addr): New function.
949 * stabsread.c (define_symbol): Use stabs_argument_has_addr
950 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
951
2110b94f
MK
952 * cris-tdep.c (cris_gdbarch_init): Set
953 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
954 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
955 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
956 * mips-tdep.c (mips_gdbarch_init): Likewise.
957 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
958 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
959
48436ce6
AC
9602003-09-13 Andrew Cagney <cagney@redhat.com>
961
962 * values.c (using_struct_return): Delete "function" and "funcaddr"
963 parameters.
964 * value.h (using_struct_return): Update declaration.
965 * infcmd.c (finish_command_continuation): Update.
966 (finish_command): Update.
967 * infcall.c (call_function_by_hand): Update.
968 * eval.c (evaluate_subexp_standard): Update.
969
403d9909
CF
9702003-09-13 Christopher Faylor <cgf@redhat.com>
971
972 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
973 SSE registers since gdb will not operate correctly without this.
974 Restore include file ordering munged in previous change.
975 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
976
ebf7d56b
MK
9772003-09-13 Mark Kettenis <kettenis@gnu.org>
978
8e823e25
MK
979 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
980 REG_STRUCT_HAS_ADDR.
981 * gdbarch.c, gdbarch.h: Updated.
982 * infcall.c (call_function_by_hand): Update.
983 * stabsread.c (define_symbol): Updated.
984
ebf7d56b
MK
985 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
986
d3f13f72
CF
9872003-09-12 Christopher Faylor <cgf@redhat.com>
988
989 * win32-nat.c: Reorganize so that defines used by target headers are
990 actually defined by the system headers.
991 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
992 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
993
14f75137
JB
9942003-09-12 Jim Blandy <jimb@redhat.com>
995
d646061f
JB
996 * dbxread.c (read_dbx_symtab): Don't report an internal error if
997 the file has no .data, .bss, or .rodata sections. Instead wait
998 until we see a variable alleged to live in one of those sections.
999
2a13f9bc
JB
1000 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1001 .bss section, presume that any variables we find live in the
1002 .rodata section.
1003
4f49b26b
JB
1004 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1005 offsets for global and static variables.
1006
14f75137
JB
1007 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1008 symbol types are, by definition, in the .data section, so it is
1009 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1010 If there is no .data section, there should be no N_DATA or N_DATA
1011 | N_EXT symbols.
1012
212c460c
MK
10132003-09-12 Mark Kettenis <kettenis@gnu.org>
1014
1015 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1016 (amd64fbsd_sigcontext_addr): Rewrite.
1017 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1018 with correct values.
1019 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1020 (amd64fbsd_init_abi): Fix typo.
1021
68856ea3
AC
10222003-09-12 Andrew Cagney <cagney@redhat.com>
1023
1024 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1025 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1026
627b3ba2
AC
10272003-09-12 Andrew Cagney <cagney@redhat.com>
1028
1029 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1030 "entry_file_highpc". Update comments.
1031 * defs.h (deprecated_inside_entry_file): Rename
1032 "inside_entry_file".
1033 * blockframe.c (deprecated_inside_entry_file): Rename
1034 "inside_entry_file".
1035 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1036 * vax-tdep.c (vax_frame_chain): Update.
1037 * sh64-tdep.c (sh64_frame_chain): Update.
1038 * sh-tdep.c (sh_frame_chain): Update.
1039 * rs6000-tdep.c (rs6000_frame_chain): Update.
1040 * ns32k-tdep.c (ns32k_frame_chain): Update.
1041 * mips-tdep.c (mips_frame_chain): Update.
1042 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1043 * m32r-tdep.c (m32r_frame_this_id): Update.
1044 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1045 * frv-tdep.c (frv_frame_this_id): Update.
1046 * d10v-tdep.c (d10v_frame_this_id): Update.
1047 * cris-tdep.c (cris_frame_chain): Update.
1048 * blockframe.c (legacy_frame_chain_valid): Update.
1049 * avr-tdep.c (avr_frame_this_id): Update.
1050 * arm-tdep.c (arm_prologue_this_id): Update.
1051 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1052 * objfiles.c (objfile_relocate): Update.
1053 * mipsread.c (mipscoff_symfile_read): Update.
1054 (mipscoff_symfile_read): Update.
1055 * mdebugread.c (parse_partial_symbols): Update.
1056 * dwarfread.c (read_file_scope): Update.
1057 * dwarf2read.c (read_file_scope): Update.
1058 * dbxread.c (read_dbx_symtab): Update.
1059 (read_dbx_symtab): Update.
1060 * coffread.c (complete_symtab): Update.
1061
b0abbc58
JJ
10622003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1063
1064 * top.c (quit_target): New static helper function.
1065 (quit_force): Moved code to quit_target(). Call quit_target()
1066 via catch_errors() to catch errors during quit.
1067
a1632d59
DC
10682003-09-11 David Carlton <carlton@kealia.com>
1069
1070 * buildsym.c (finish_block): Use allocate_block to allocate the
1071 block.
1072 * mdebugread.c (new_block): Add FIXME.
1073
5c4e30ca
DC
10742003-09-11 David Carlton <carlton@kealia.com>
1075
1076 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1077 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1078 (recursive_dump_type): Ditto.
1079 * printcmd.c (print_formatted): Ditto.
1080 * typeprint.c (print_type_scalar): Ditto.
1081 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1082 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1083 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1084 maint_cplus_cmd_list.
1085 * cp-support.c: Make maint_cplus_cmd_list extern.
1086 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1087 command.h.
1088 (lookup_symbol_file): Look in possible namespace blocks when
1089 appropriate.
1090 (initialize_namespace_symtab): New.
1091 (get_possible_namespace_block, free_namespace_block)
1092 (check_possible_namespace_symbols)
1093 (check_possible_namespace_symbols_loop)
1094 (check_one_possible_namespace_symbol)
1095 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1096 (_initialize_cp_namespace): Ditto.
1097 * block.h: Declare allocate_block.
1098 * block.c (allocate_block): New.
1099 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1100 allocate_block.
1101 * symfile.h: Update declaration of add_psymbol_to_list.
1102 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1103 question.
1104 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1105 scan_partial_symbols_call.
1106 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1107 helper functions.
1108 (add_partial_symbol): If necessary, scan mangled names for names
1109 of namespaces.
1110 (add_partial_namespace): Add NAMESPACE argument; generate partial
1111 symbols associated to namespaces.
1112 (add_partial_enumeration): Add NAMESPACE argument.
1113 (new_symbol): Allow namespace syms.
1114 (read_namespace): Generate namespace syms.
1115 * objfiles.h: Add opaque declaration of struct symtab.
1116 (struct objfile): Add cp_namespace_symtab member.
1117 * objfiles.c (allocate_objfile): Set
1118 objfile->cp_namespace_symtab.
1119 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1120 dictionary_h, command_h.
1121
33a7c2fc
AC
11222003-09-11 Andrew Cagney <cagney@redhat.com>
1123
1124 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1125 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1126 near the function's end.
1127 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1128 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1129 regcache_raw_write_signed to set SP_REGNUM.
1130
63cd24fe
EZ
11312003-09-11 Elena Zannoni <ezannoni@redhat.com>
1132
1133 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1134 orig_addrs is set up properly.
1135
f27dd7fd
AC
11362003-09-11 Andrew Cagney <cagney@redhat.com>
1137
1138 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1139 * gdbarch.h, gdbarch.c: Re-generate.
1140 * infcall.c (call_function_by_hand): Update.
1141 * hppa-tdep.c (hppa_push_arguments): Update.
1142 * ada-lang.c (place_on_stack): Update.
1143 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1144 * sparc-tdep.c (sparc_gdbarch_init): Update.
1145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1146 * hppa-tdep.c (hppa_gdbarch_init): Update.
1147 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1148 stack_align.
1149
f630a401
DJ
11502003-09-11 Daniel Jacobowitz <drow@mvista.com>
1151
1152 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1153 register do need a frame.
1154
0ddabb4c
AC
11552003-09-11 Andrew Cagney <cagney@redhat.com>
1156
1157 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1158 buildable since GDB 5.0.
1159 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1160 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1161 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1162 * irix4-nat.c: Delete file.
1163 * config/mips/irix4.mh: Delete file.
1164 * config/mips/irix3.mh: Delete file.
1165 * config/mips/irix3.mt: Delete file.
1166 * config/mips/tm-irix3.h: Delete file.
1167 * config/mips/nm-irix3.h: Delete file.
1168 * config/mips/xm-irix3.h: Delete file.
1169 * config/mips/nm-irix4.h: Delete file.
1170 * config/mips/xm-irix4.h: Delete file.
1171 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1172
fde2cceb
JB
11732003-09-10 J. Brobecker <brobecker@gnat.com>
1174
1175 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1176 * Makefile.in (hppa-tdep.o): Update dependencies.
1177
66f667f5
JW
11782003-09-10 James E Wilson <wilson@specifixinc.com>
1179
ef5fd69f
JW
1180 * MAINTAINERS: Change my e-mail address. Move to paper trail
1181 section.
66f667f5 1182
53e8aaea
KB
11832003-09-10 Kevin Buettner <kevinb@redhat.com>
1184
1185 * MAINTAINERS (frv): New ISA entry.
1186
dcc6aaff
KB
11872003-09-10 Kevin Buettner <kevinb@redhat.com>
1188
1189 * frv-tdep.c (dis-asm.h): Include.
1190 * Makefile.in (frv-tdep.o): Update dependencies.
1191
932644f0
JJ
11922003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1193
1194 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1195 Fix typo for high range of floating registers.
1196
91c24f0a
DC
11972003-09-09 David Carlton <carlton@kealia.com>
1198
1199 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1200 highpc initialization here out of scan_partial_symbols.
1201 (scan_partial_symbols): Restructure into a recursive version,
1202 calling add_partial_namespace and add_partial_enumeration when
1203 appropriate.
1204 (add_partial_namespace): New.
1205 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1206
c9263853
AC
12072003-09-09 Andrew Cagney <cagney@redhat.com>
1208
e56a0ecc
AC
1209 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1210 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1211 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1212 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1213
794a477a
AC
1214 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1215 (rs6000_push_dummy_call): Set the "TOC" register.
1216
c9263853
AC
1217 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1218 methods "max_register_raw_size", "max_register_virtual_size" or
1219 "register_virtual_size".
1220
afa7d0b2
ILT
12212003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1222
1223 * MAINTAINERS: Update my e-mail address.
1224
7a41266b
AC
12252003-09-09 Andrew Cagney <cagney@redhat.com>
1226
1227 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1228 (rs6000_push_dummy_call): Store the struct return address.
1229 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1230
77b2b6d4
AC
12312003-09-09 Andrew Cagney <cagney@redhat.com>
1232
1233 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1234 "ppc_sysv_abi_push_arguments".
1235 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1236 "ppc_sysv_abi_push_arguments".
1237 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1238 instead of "push_arguments".
1239 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1240
e8a7b686
AC
12412003-09-09 Andrew Cagney <cagney@redhat.com>
1242
1243 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1244 instead of CALL_DUMMY_ADDRESS.
1245
f86f5ca3
PH
12462003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1247
1248 * p-lang.c: Eliminate "register".
1249 * c-lang.c: Ditto.
1250 * expprint.c: Ditto.
1251 * f-lang.c: Ditto.
1252 * jv-lang.c: Ditto.
1253 * language.c: Ditto.
1254 * m2-lang.c: Ditto.
1255 * parse.c: Ditto.
1256 * scm-lang.c: Ditto.
1257 * objc-lang.c: Ditto.
1258
83ee270e
NC
12592003-09-09 Nick Clifton <nickc@redhat.com>
1260
1261 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1262
a89aa300
AC
12632003-09-04 Andrew Cagney <cagney@redhat.com>
1264
1265 * avr-tdep.c: Include "dis-asm.h".
1266 * cris-tdep.c: Include "dis-asm.h".
1267 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1268 instead of corresponding typedef.
1269 * h8300-tdep.c: Include "dis-asm.h".
1270 * ia64-tdep.c: Include "dis-asm.h".
1271 * i386-tdep.c: Include "dis-asm.h".
1272 (i386_print_insn): Use "struct disassemble_info" instead of
1273 corresponding typedef.
1274 * m68k-tdep.c: Include "dis-asm.h".
1275 * mcore-tdep.c: Include "dis-asm.h".
1276 * mips-tdep.c: Include "dis-asm.h".
1277 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1278 instead of corresponding typedef.
1279 * ns32k-tdep.c: Include "dis-asm.h".
1280 * s390-tdep.c: Include "dis-asm.h".
1281 * sparc-tdep.c: Include "dis-asm.h".
1282 * vax-tdep.c: Include "dis-asm.h".
1283 * v850-tdep.c: Include "dis-asm.h".
1284 * mn10300-tdep.c: Include "dis-asm.h".
1285 * rs6000-tdep.c: Include "dis-asm.h".
1286 * xstormy16-tdep.c: Include "dis-asm.h".
1287 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1288 print_insn_xstormy16.
1289 * Makefile.in (v850-tdep.o): Update dependencies.
1290 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1291 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1292 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1293 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1294 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1295 (gdbarch_h): Remove $(dis_asm_h).
1296 * disasm.c: Include "dis-asm.h".
1297 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1298 corresponding typedef.
1299 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1300 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1301 * gdbarch.sh: Do not include "dis-asm.h".
1302 (struct disassemble_info): Declare opaque.
1303 (TARGET_PRINT_INSN): Update declaration.
1304 * gdbarch.h, gdbarch.c: Re-generate.
1305
88a82a65
AC
13062003-09-08 Andrew Cagney <cagney@redhat.com>
1307
1308 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1309 CALL_DUMMY_ADDRESS, change to a predicate.
1310 * gdbarch.h, gdbarch.c: Re-generate.
1311 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1312 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1313 * infcall.c (call_function_by_hand): Ditto.
1314 * sparc-tdep.c (sparc_push_return_address): Ditto.
1315 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1316 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1317 CALL_DUMMY_ADDRESS with entry_point_address.
1318 * v850-tdep.c (v850_push_return_address): Ditto.
1319 * s390-tdep.c (s390_push_return_address): Ditto.
1320 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1321 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1322 * mcore-tdep.c (mcore_push_return_address): Ditto.
1323 * cris-tdep.c (cris_push_return_address): Ditto.
1324 * arm-tdep.c (arm_push_return_address): Ditto.
1325
3e2c4033
AC
13262003-09-08 Andrew Cagney <cagney@redhat.com>
1327
1328 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1329 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1330 and REG_UNMODIFIED to REG_SAME_VALUE.
1331 (execute_cfa_program): Update.
1332 (dwarf2_frame_cache): Update. Initialize table to
1333 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1334 location.
1335 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1336
39efb398
AC
13372003-09-08 Andrew Cagney <cagney@redhat.com>
1338
1339 * gnu-nat.c: Remove "inline" function attribute.
1340 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1341
f5cb5aca
KB
13422003-09-08 Kevin Buettner <kevinb@redhat.com>
1343
1344 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1345 target.
1346
1cb761c7
KB
13472003-09-08 Kevin Buettner <kevinb@redhat.com>
1348
1349 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1350 (frame_extra_info): Rename this struct to frv_unwind_cache.
1351 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1352 Add fields ``prev_sp'' and ``base''.
1353 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1354 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1355 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1356 Delete.
1357 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1358 Revise all callers. Fill in the unwind cache argument and make
1359 other adjustments to account for new frame mechanisms.
1360 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1361 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1362 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1363 (frv_frame_unwind, frv_frame_base): New structs.
1364 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1365 additional arguments expected by this method and adjust function
1366 body accordingly.
1367 (frv_gdbarch_init): Remove calls to the following functions:
1368 set_gdbarch_deprecated_init_frame_pc(),
1369 set_gdbarch_deprecated_saved_pc_after_call(),
1370 set_gdbarch_deprecated_frame_chain(),
1371 set_gdbarch_deprecated_frame_saved_pc(),
1372 set_gdbarch_deprecated_frame_init_saved_regs(),
1373 set_gdbarch_deprecated_push_arguments(),
1374 set_gdbarch_deprecated_push_return_address(),
1375 set_gdbarch_deprecated_pop_frame(),
1376 set_gdbarch_deprecated_call_dummy_words(),
1377 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1378 set_gdbarch_deprecated_init_extra_frame_info(),
1379 set_gdbarch_deprecated_dummy_write_sp(), and
1380 set_gdbarch_deprecated_pc_in_call_dummy().
1381 Add calls to the following functions:
1382 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1383 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1384 frame_base_set_default().
1385 * Makefile.in (frv-tdep.o): Update dependencies.
1386
68f6cf99
MK
13872003-09-09 Mark Kettenis <kettenis@gnu.org>
1388
1389 * dwarf2-frame.c (read_encoded_value): Add support for
1390 DW_EH_PE_aligned encoding.
1391
73b65bb0
DJ
13922003-09-08 Daniel Jacobowitz <drow@mvista.com>
1393
1394 * infrun.c (normal_stop): Don't print a message if the inferior
1395 has exited.
1396
7c8a5605
JB
13972003-09-08 Jim Blandy <jimb@redhat.com>
1398
1399 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1400 * dbxread.c: #include "gdb_assert.h".
1401 (read_dbx_symtab): If the objfile has no .data section, use the
1402 section index for the .bss section instead.
1403
7dd88986
DJ
14042003-09-08 Daniel Jacobowitz <drow@mvista.com>
1405
1406 * frame.c (deprecated_safe_get_selected_frame): New function.
1407 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1408 * findvar.c (read_var_value): Call it.
1409
55ff77ac
CV
14102003-09-08 Corinna Vinschen <vinschen@redhat.com>
1411
1412 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1413 (sh64-tdep.o): Add dependencies.
1414 * configure.tgt: Add FIXME to sh-*-linux*.
1415 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1416 (sh_gdbarch_init): Always set correct sh_show_regs function
1417 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1418 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1419 * sh64-tdep.c: New file, containing all sh64 related code from
1420 sh-tdep.c.
1421 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1422 * config/sh/linux.mt (TDEPFILES): Ditto.
1423 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1424 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1425 * config/sh/wince.mt (TDEPFILES): Ditto.
1426
bfb39158
DJ
14272003-09-07 Daniel Jacobowitz <drow@mvista.com>
1428
1429 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1430 (stop_wait_callback): Handle !lp->signalled also.
1431 (lin_lwp_has_pending, flush_callback): New functions.
1432 (lin_lwp_wait): Call flush_callback.
1433 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1434 (linux_proc_pending_signals): New function.
1435 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1436
9407de8e
DJ
14372003-09-07 Daniel Jacobowitz <drow@mvista.com>
1438
1439 From Nick Kelsey <nickk@ubicom.com>:
1440 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1441 when the stop PC is at the beginning of a function also.
1442
2ef47cd0
DJ
14432003-09-06 Daniel Jacobowitz <drow@mvista.com>
1444
1445 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1446 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1447
6f4492c8
MK
14482003-09-06 Mark Kettenis <kettenis@gnu.org>
1449
1450 * sol-thread.c: Include "gdb_string.h".
1451
d3420b2f
MK
14522003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1453
1454 * gcore.c: Reorder include files in alphabetical order. Include
1455 "gdb_assert.h". Various coding style fixes.
1456 (derive_stack_segment, derive_heap_segment): Replace check for
1457 non-null BOTTOM and TOP with gdb_assert.
1458 (derive_heap_segment): Replace check for successful creation of
1459 ZERO with gdb_assert.
1460 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1461
5220ea4c
AC
14622003-09-04 Andrew Cagney <cagney@redhat.com>
1463
1464 * thread-db.c (verbose_dlsym): New function.
1465 (thread_db_load): Use verbose_dlsym
1466 (thread_db_new_objfile): Print that libthread_db was loaded, and
1467 that thread debugging was enabled.
1468
6e8c2c06
AC
14692003-09-04 Andrew Cagney <cagney@redhat.com>
1470
1471 * configure.tgt: Add "mips64*-*-*" target. Delete
1472 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1473 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1474 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1475 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1476 mips*-sony-*, and mips64*-*-elf* targets.
1477 * config/mips/embedl.mt: Delete file.
1478 * config/mips/embedl64.mt: Delete file.
1479 * config/mips/mips.mt: Delete file.
1480 * config/mips/mips64.mt: Delete file.
1481 * config/mips/tm-embed.h: Delete file.
1482 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1483 * config/mips/embed64.mt: Delete out-of-date comment.
1484
3a3bc038
AC
14852003-09-04 Andrew Cagney <cagney@redhat.com>
1486
1487 * hppa-tdep.c (hppa_gdbarch_init): Set
1488 "have_nonsteppable_watchpoint".
1489 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1490 * mips-tdep.c (mips_dump_tdep): Do not print
1491 HAVE_NONSTEPPABLE_WATCHPOINT.
1492 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1493 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1494 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1495 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1496
a957e642
CV
14972003-09-04 Corinna Vinschen <vinschen@redhat.com>
1498
1499 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1500 unused code. Add comment.
1501
a6fbcf2f
CV
15022003-09-04 Corinna Vinschen <vinschen@redhat.com>
1503
1504 * breakpoint.c (watchpoint_check): Check for pc being in an
1505 epilogue if watchpoint frame couldn't be found.
1506
c14a44d5
AC
15072003-09-04 Andrew Cagney <cagney@redhat.com>
1508
1509 * Makefile.in: Re-generate all dependencies.
1510
f6c40618
AC
15112003-09-03 Andrew Cagney <cagney@redhat.com>
1512
1513 * arch-utils.h (legacy_print_insn): Delete declaration.
1514 * arch-utils.c (legacy_print_insn): Delete function.
1515 * disasm.c (deprecated_tm_print_insn_info): Delete.
1516 (_initialize_disasm): Delete function, contained code initializing
1517 deprecated_tm_print_insn_info.
1518 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1519 (deprecated_tm_print_insn_info): Delete.
1520 (TARGET_PRINT_INSN): Do not provide a default.
1521 * gdbarch.h, gdbarch.c: Re-generate.
1522
242e8be5
AC
15232003-09-03 Andrew Cagney <cagney@redhat.com>
1524
1525 * disasm.c (fprintf_disasm): New function.
1526 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1527 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1528 reverts 2003-08-14 change.
1529 (_initialize_disasm): Call "init_disassemble_info", instead of
1530 INIT_DISASSEMBLE_INFO_NO_ARCH.
1531
3ffc3dda
MS
15322003-09-03 Michael Snyder <msnyder@redhat.com>
1533
1534 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1535
52d16ba8
AC
15362003-09-03 Andrew Cagney <cagney@redhat.com>
1537
1538 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1539 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1540 * symfile.c (syms_from_objfile): Update.
1541 (reread_symbols): `Update
1542 * exec.c (exec_file_attach): Update.
1543 (exec_file_attach): Update.
1544 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1545 2003-08-29 change.
1546 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1547
eb5492fa
DJ
15482003-09-03 Daniel Jacobowitz <drow@mvista.com>
1549
1550 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1551 trad-frame.h.
1552 (arm_get_cache): Delete macro.
1553 (struct arm_prologue_cache): Update comments. Make saved_regs into
1554 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1555 to prev_sp.
1556 (thumb_scan_prologue): Update for cache changes. Don't call
1557 DEPRECATED_PC_IN_CALL_DUMMY.
1558 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1559 argument and use it in desperation search for our prologue. Do not
1560 search past the specified PC.
1561 (arm_make_prologue_cache): Simplify.
1562
1563 (arm_prologue_this_id, arm_prologue_prev_register)
1564 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1565 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1566 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1567 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1568 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1569
1570 (arm_frame_chain_valid, arm_find_callers_reg)
1571 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1572 (arm_pop_frame): Delete obsolete methods.
1573 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1574
1575 (arm_gdbarch_init): Update for new frame methods. Register prologue
1576 and sigtramp unwinders. Set the default frame base method.
1577
1578 * Makefile.in (arm-tdep.o): Update dependencies.
1579 * varobj.c (find_frame_addr_in_frame_chain): Call
1580 get_frame_base_address.
1581 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1582
24de872b
DJ
15832003-09-03 Daniel Jacobowitz <drow@mvista.com>
1584
1585 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1586 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1587 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1588 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1589 Take NEXT_FRAME and CACHE arguments. Call
1590 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1591 Set unwound_pc in CACHE instead of modifying the frame argument.
1592 Don't bother checking the frame type when looking for sigtramp
1593 frames.
1594 (arm_make_prologue_cache, arm_frame_chain)
1595 (arm_init_extra_frame_info): New functions.
1596
9b8d791a
DJ
15972003-09-03 Daniel Jacobowitz <drow@mvista.com>
1598
1599 * arm-tdep.c (arm_get_cache): Define.
1600 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1601 unwound_sp, unwound_pc, and saved_regs.
1602 (thumb_scan_prologue): Take a cache instead of the frame.
1603 (arm_scan_prologue): Likewise.
1604 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1605 instead of a temporary frame.
1606 (arm_init_extra_frame_info): Allocate and use a cache.
1607 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1608
7ee3275f
AC
16092003-09-03 Andrew Cagney <cagney@redhat.com>
1610
1611 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1612 * config/mips/wince.mt (TM_CLIBS): Ditto.
1613 * config/sh/wince.mt (TM_CLIBS): Ditto.
1614 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1615 * config/sparc/sp64.mt (CC): Delete.
1616
57b29be7
AC
16172003-09-03 Andrew Cagney <cagney@redhat.com>
1618
1619 * defs.h: Do not include "arch-utils.h".
1620 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1621 GDB_MULTI_ARCH_PURE.
1622 * configure.in (GDB_MULTI_ARCH): Do not define.
1623 * configure, config.in: Regenerate.
1624 * configure.tgt: Do not set variable "gdb_multi_arch".
1625 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1626 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1627 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1628 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1629 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1630 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1631 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1632 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1633 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1634 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1635 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1636 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1637 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1638 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1639 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1640 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1641 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1642 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1643
12e035e2
MC
16442003-08-30 Michael Chastain <mec@shout.net>
1645
1646 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1647 * config/m68k/nm-hp300hpux.h: Delete.
1648 * config/m68k/tm-hp300hpux.h: Delete.
1649 * config/m68k/xm-hp300hpux.h: Delete.
1650 * config/m68k/xm-hp300bsd.h: Delete.
1651 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1652 tm-hp300hpux.h, xm-hp300hpux.h.
1653 * somsolib.c: Remove comment about hp300 shared libraries.
1654
bda34dc2
MK
16552003-08-31 Mark Kettenis <kettenis@gnu.org>
1656
5bca7895
MK
1657 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1658 Only define PTRACE_GET_THREAD_AREA is not already defined.
1659 Various style fixes in code and comments and some additional
1660 spelling fixes in comments. Move after functions dealing with
1661 debug registers.
1662 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1663 Fix coding-style.
1664
bda34dc2
MK
1665 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1666 frame_unwind_register_unsigned instead of
1667 frame_unwind_unsigned_register.
1668
c890192f
MK
16692003-08-30 Mark Kettenis <kettenis@gnu.org>
1670
1671 * configure.in: Search for gethostbyname in libnsl.
1672 * configure: Regenerated.
1673
60fac5b8
MK
16742003-08-29 Mark Kettenis <kettenis@gnu.org>
1675
e294916c
MK
1676 * configure.in: Remove redundant AC_MSG_RESULT in check for
1677 uintptr_t in stdint.h.
1678 * configure: Regenerated.
1679
c40d267a
MK
1680 * amd64-nat.h (struct regcache): Add opaque declaration.
1681
60fac5b8
MK
1682 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1683 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1684 Change "register array" to "register cache" in comments.
1685 (x86_64_linux_gregset64_reg_offset): New variable.
1686 (GETREGS_SUPPLIES): Remove macro.
1687 (supply_gregset): Call amd64_supply_native_gregset instead of
1688 x86_64_linux_supply_gregset.
1689 (fill_gregset): Rename `regno' to `regnum'. Call
1690 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1691 (store_regs): Rename `regno' to `regnum'.
1692 (store_fpregs): Rename `regno' to `regnum'.
1693 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1694 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1695 Reorganize function a bit.
1696 (store_inferior_registers): Rename `regno' to `regnum'. Use
1697 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1698 Reorganize function a bit.
1699 (_initialize_x86_64_linux_nat): New function.
1700 * config/i386/x86-64linux.mh.
1701
546143b6
AC
17022003-08-29 Andrew Cagney <cagney@redhat.com>
1703
1704 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1705 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1706 (target_remove_watchpoint): Delete macro.
1707 (target_insert_watchpoint): Delete macro.
1708 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1709 (remote_mips_stopped_by_watchpoint): Delete declaration.
1710 (remote_mips_remove_watchpoint): Delete declaration.
1711 (remote_mips_set_watchpoint): Delete declaration.
1712 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1713 * remote-mips.c (_initialize_remote_mips): Set
1714 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1715 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1716 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1717 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1718 (mips_stopped_by_watchpoint): Rename
1719 remote_mips_stopped_by_watchpoint.
1720 (mips_can_hardware_watchpoint): Rename
1721 remote_mips_can_use_hardware_watchpoint, update function
1722 signature.
1723
7bace51b
MK
17242003-08-29 Mark Kettenis <kettenis@gnu.org>
1725
b0f5c6f2
MK
1726 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1727 USER_DS. We haven't given them a register number yet.
1728
2a6d284d
MK
1729 * amd64-nat.h: New file.
1730 * amd64-nat.c: New file.
1731 * amd64fbsd-nat.c: Include "amd64-nat.h".
1732 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1733 (amd64fbsd32_r_reg_offset): New variable.
1734 (supply_gregset): Simply call amd64_supply_native_gregset.
1735 (fill_gregset): Rename `regno' to `regnum'. Simply call
1736 amd64_collect_native_gregset.
1737 (fill_fpregset): Rename `regno' to `regnum'.
1738 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1739 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1740 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1741 `fpregset_t'. Call amd64_supply_native_gregset instead of
1742 supply_gregset. Call x86_64_supply_fxsave instead of
1743 supply_fpregset.
1744 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1745 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1746 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1747 `fpregset_t'. Call amd64_collect_native_gregset instead of
1748 fill_gregset. Call x86_64_collect_fxsave instead of
1749 fill_fpregset.
1750 (_initialize_am64fbsd_nat): Initialize
1751 amd64_native_gregset32_reg_offset and
1752 amd64_native_gregset64_reg_offset.
1753 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1754
a16d75cc
MK
1755 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1756 null pointer. Fix typo in comment.
1757
7bace51b
MK
1758 * regcache.c (supply_register): Reimplement to call
1759 regcache_raw_supply.
1760 (regcache_collect): Reimplement by calling regcache_raw_collect.
1761
9a661b68
MK
17622003-08-28 Mark Kettenis <kettenis@gnu.org>
1763
1764 * regcache.c (register_buffer): Consitify first argument.
1765 (regcache_raw_supply, regcache_raw_collect): New
1766 functions.
1767
e94cc8fa
DJ
17682003-08-28 Daniel Jacobowitz <drow@mvista.com>
1769
1770 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1771 by Nathan J. Williams.
1772
c64bd0ce
DJ
17732003-08-28 Daniel Jacobowitz <drow@mvista.com>
1774
1775 * lin-lwp.c (wait_lwp): New function, copied from
1776 stop_wait_callback. Clean up.
1777 (stop_wait_callback): Use wait_lwp.
1778
e5ab0dce
AC
17792003-08-28 Andrew Cagney <cagney@redhat.com>
1780
1781 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1782 flavour and disassembler options.
1783 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1784 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1785 deprecated_tm_print_insn_info.
1786
a788de9b
AC
17872003-08-27 Andrew Cagney <cagney@redhat.com>
1788
1789 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1790 Use target_read_memory.
1791 (s390_get_frame_info): Update. Do not reference
1792 deprecated_tm_print_insn_info.
1793 (s390_check_function_end, s390_is_sigreturn): Ditto.
1794
36482093
AC
17952003-08-27 Andrew Cagney <cagney@redhat.com>
1796
1797 * Makefile.in (cris-tdep.o): Update dependencies.
1798 * cris-tdep.c: Include "gdb_assert.h".
1799 (cris_gdbarch_init): Set print_insn.
1800 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1801 (cris_delayed_get_disassembler): Simplify, directly call the
1802 disassembler returned by cris_get_disassembler.
1803 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1804 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1805 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1806 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1807 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1808 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1809 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1810 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1811 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1812 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1813 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1814 (gdb_print_insn_sparc): Delete function.
1815 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1816 deprecated_tm_print_insn_info.
1817 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1818 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1819 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1820 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1821 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1822 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1823 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1824 (s390_gdbarch_init): Set print_insn.
1825
0285512f
AC
18262003-08-27 Andrew Cagney <cagney@redhat.com>
1827
1828 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1829 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1830 * infcall.c (call_function_by_hand): Convert the entry point
1831 address into a code address.
1832
cdcd5552
AC
18332003-08-27 Andrew Cagney <cagney@redhat.com>
1834
1835 * dsrec.c: Include "gdb_string.h".
1836 * Makefile.in (dsrec.o): Update dependencies.
1837
e85cddad
MC
18382003-08-27 Michael Chastain <mec@shout.net>
1839
1840 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1841
8bbfbb23
AC
18422003-08-27 Andrew Cagney <cagney@redhat.com>
1843
1844 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1845 (alpha_osf1_init_abi): Do not set call_dummy_address.
1846
ba058b66
DC
18472003-08-27 David Carlton <carlton@kealia.com>
1848
1849 From Randolph Chung <tausq@debian.org>:
1850 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1851 compiles with -Wformat-nonliteral -Werror.
1852
87f84c9d
JB
18532003-08-26 Jim Blandy <jimb@redhat.com>
1854
1855 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1856 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1857 bfd_lookup_symbol, since we only want symbols in code sections.
1858 (look_for_base): Pass zero as the SECT_FLAGS argument to
1859 bfd_lookup_symbol, since we're not concerned about which section
1860 the symbol is in.
1861
102d615a
JJ
18622003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1863
1864 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1865 we are frameless or the return address register is already known.
1866
cc7ad3ea
AC
18672003-08-26 Andrew Cagney <cagney@redhat.com>
1868
1869 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1870 in size. Add comments.
1871
af8b88dd
JJ
18722003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1873
1874 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1875 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1876
e0a4f5a1
JM
18772003-08-26 Jason Merrill <jason@redhat.com>
1878
1879 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1880 case out of #ifdef MIPS block.
1881
4ae9ee8e
DJ
18822003-08-25 Daniel Jacobowitz <drow@mvista.com>
1883
1884 PR java/1322
1885 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1886 available before calling SECT_OFF_TEXT.
3c164570 1887 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 1888
004d836a
JJ
18892003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1890
1891 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1892 bof, and nat0-nat127 as pseudo-registers.
1893 (ia64_frame_cache): New struct used to cache frame info.
1894 (ia64_register_reggroup_p): New routine used to override default
1895 register grouping so registers without names are still saved and
1896 restored.
1897 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1898 pseudo values.
1899 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1900 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1901 (ia64_alloc_frame_cache): New routine to create a new
1902 ia64_frame_cache.
1903 (examine_prologue): Change prototype to add next_frame pointer.
1904 Assume frameless until otherwise proven. Verify that the cfm for
1905 current frame matches the cfm that should occur for the prologues
1906 alloc insn and if equal, mark as not frameless. At end of routine,
1907 if not frameless, calculate registers for the previous frame and store
1908 in the cache, if a cache is provided.
1909 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1910 and pass 0 for next_frame.
1911 (ia64_store_return_value): Change to use convert_typed_floating()
1912 instead of calling ia64_convert_to_raw().
1913 (ia64_extract_return_value): Change to use convert_typed_floating()
1914 instead of calling ia64_convert_to_virtual().
1915 (ia64_frame_cache): New routine to support new frame model.
1916 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1917 (ia64_frame_sniffer): Ditto.
1918 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1919 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1920 (ia64_sigtramp_frame_prev_register): Ditto.
1921 (ia64_sigtramp_frame_sniffer): Ditto.
1922 (ia64_frame_base_address): Ditto.
1923 (ia64_extract_struct_value_address): Change to issue error message.
1924 (ia64_frame_align): New routine to align sp.
1925 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1926 (ia64_push_arguments): Removed. Logic moved to
1927 ia64_push_dummy_call().
1928 (ia64_push_return_address): Ditto.
1929 (ia64_unwind_dummy_id): New function.
1930 (ia64_unwind_pc): Ditto.
1931 (ia64_convert_register_p): Ditto.
1932 (ia64_register_to_value): Ditto.
1933 (ia64_value_to_register): Ditto.
1934 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1935 (ia64_register_byte, ia64_register_raw_size): Ditto.
1936 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1937 (ia64_saved_pc_after_call): Ditto.
1938 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1939 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1940 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1941 (ia64_register_convert_to_raw): Ditto.
1942 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1943 (ia64_init_extra_frame_info): Ditto.
1944 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1945 (ia64_gdbarch_init): Remove registering of deprecated functions that
1946 are no longer used. Add registration of new gdbarch functions.
1947 Remove registering deprecated_write_sp. Replace
1948 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1949 Delete set_gdbarch_deprecated_register_convertible(),
1950 set_gdbarch_deprecated_register_convert_to_virtual(), and
1951 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1952 set_gdbarch_deprecated_register_size(),
1953 set_gdbarch_deprecated_register_bytes(),
1954 set_gdbarch_pcregnum(),
1955 set_gdbarch_deprecated_register_byte(),
1956 set_gdbarch_deprecated_register_raw_size(),
1957 set_gdbarch_deprecated_max_register_raw_size(),
1958 set_gdbarch_deprecated_register_virtual_size(),
1959 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1960 Replace set_gdbarch_deprecated_extract_return_value() with
1961 set_gdbarch_extract_return_value(). Remove calls to:
1962 set_gdbarch_deprecated_saved_pc_after_call();
1963 set_gdbarch_deprecated_frame_chain(),
1964 set_gdbarch_deprecated_frame_saved_pc(),
1965 set_gdbarch_deprecated_frame_init_saved_regs(),
1966 set_gdbarch_deprecated_get_saved_register(),
1967 set_gdbarch_deprecated_call_dummy_words(),
1968 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1969 set_gdbarch_deprecated_init_extra_frame_info(),
1970 set_gdbarch_deprecated_frame_args_address(),
1971 set_gdbarch_deprecated_frame_locals_address(),
1972 and set_gdbarch_deprecated_dummy_write_sp().
1973 Add set_gdbarch_convert_register_p(),
1974 set_gdbarch_register_to_value(),
1975 set_gdbarch_value_to_register(),
1976 set_gdbarch_push_dummy_call(),
1977 set_gdbarch_frame_align(),
1978 set_gdbarch_unwind_dummy_id(),
1979 set_gdbarch_unwind_pc(),
1980 frame_unwind_append_sniffer(),
1981 frame_unwind_append_sniffer(),
1982 and frame_base_set_default().
1983
aede7613
CD
19842003-08-25 Chris Demetriou <cgd@broadcom.com>
1985
1986 * configure.tgt: Document need for special "mipsisa64" handling.
1987 (mipsisa64*-*-linux64): Handle as target linux64.
1988 (mipsisa64*-*-*): Handle as target embed64.
1989
43c3a82e
MC
19902003-08-18 Michael Chastain <mec@shout.net>
1991
1992 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1993 objfile bug.
1994
6564f77d
MK
19952003-08-24 Mark Kettenis <kettenis@gnu.org>
1996
2de139ba
MK
1997 * i387-tdep.h: Update copyright date.
1998 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1999
6564f77d
MK
2000 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2001 CFLAGS games to reflect reality.
2002
42cf1509
AC
20032003-08-24 Andrew Cagney <cagney@redhat.com>
2004
2005 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2006 GDB_MULTI_ARCH is always non-zero.
2007 * osabi.c (_initialize_gdb_osabi): Ditto.
2008 (gdbarch_init_osabi): Ditto.
2009 * sparc-tdep.c: Ditto for #if code.
2010
0485f6ad
MK
20112003-08-23 Mark Kettenis <kettenis@gnu.org>
2012
2013 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2014 Update comments.
2015 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2016 comments.
2017 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2018 x86_64_supply_fxsave.
2019 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2020 x86_64_supply_fxsave.
2021 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2022 x86_64_supply_fxsave.
2023
c7716133
AJ
20242003-08-23 Andreas Jaeger <aj@suse.de>
2025
2026 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2027 i387_supply_fxsave.
2028
ed504bdf
MK
20292003-08-23 Mark Kettenis <kettenis@gnu.org>
2030
2031 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2032 i387_supply_register.
2033 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2034 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2035 i387_supply_fsave.
2036 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2037 i387_supply_fxsave.
2038 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2039 i387_supply_fsave.
2040 * i386bsd-nat.c (supply_fpregset): Adjust call to
2041 i387_supply_fsave.
2042 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2043 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2044 supply_fpregset.
2045 (store_inferior_registers): Remove extraneous whitespace. Call
2046 i387_fill_fsave instead of fill_fpregset.
2047 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2048 (supply_fpregset): Likewise.
2049 * i386v4-nat.c (supply_fpregset): Adjust call to
2050 i387_supply_fsave.
2051 * i386-interix-nat.c (supply_fpregset): Adjust call to
2052 i387_supply_fsave.
2053 * i386-linux-nat.c (supply_fpregset): Adjust call to
2054 i387_supply_fsave.
2055 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2056 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2057 i387supply_fsave and i387_supply_fxsave.
2058 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2059 Incorporate code from `i387_supply_register.
2060 (i387_supply_register): Remove.
2061 (i387_supply_fxsave): Add `regnum' argument.
2062 Update comments.
2063 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2064 prototype.
2065 (i387_supply_register): remove prototype.
2066 Update comments.
2067
4be5d520
MC
20682003-08-22 Michael Chastain <mec@shout.net>
2069
2070 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2071 Add lines for files in gdb/testsuite/gdb.cp/* that are
2072 still not 8.3 unique.
2073
7ed85d26
DJ
20742003-08-22 Daniel Jacobowitz <drow@mvista.com>
2075
2076 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2077 TYPE_VPTR_FIELDNO is valid.
2078
eb0d3137
MK
20792003-08-19 Mark Kettenis <kettenis@gnu.org>
2080
2081 * utils.c (set_width_command): Remove prototypes.
2082 (set_screen_size): New prototype.
2083 (init_page_info): Simplify by fetching the screen size from
2084 Readline. Call set_screen_size.
2085 (set_screen_size): New function.
2086 (set_width): Add missing whitespace in comment.
2087 (set_width_command): Call set_screen_size.
2088 (set_height_command): New function.
2089 (initialize_utils): Fix formatting. Make "set height" command
2090 call set_height_command. Remove redundant code that turns off
2091 pagination if output isn't a terminal. Remove redundant call to
2092 set_width_command.
2093
7e6d0ac8
MK
20942003-08-22 Mark Kettenis <kettenis@gnu.org>
2095
3567a8ea
MK
2096 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2097 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2098 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2099 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2100 `case' keyword.
2101 (sparc64_register_info): Give the reister with number
2102 SPARC64_STATE_REGNUM a name.
2103 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2104 %asi and %ccr.
2105 (sparc64_push_dummy_call): Take BIAS into account when checking
2106 stcak alignment.
2107 (sparc_software_single_step): Remove assertions that check whether
2108 NPC and NNPC were zero.
2109 (sparc_supply_rwindow): Make public. Merge functionality with
2110 sparc64_supply_rwindow.
2111 (sparc_fill_rwindow): Make public. Merge functionality with
2112 sparc64_fill_rwindow.
2113 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2114 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2115 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2116 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2117 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2118
7e6d0ac8
MK
2119 * reggroups.c: Add whitespace after declarations of local
2120 variables in functions.
2121
72e5f484
MC
21222003-08-21 Michael Chastain <mec@shout.net>
2123
2124 * gdbtypes.h: Change array bound type from an int to enum.
2125
435ac228
AC
21262003-08-21 Andrew Cagney <cagney@redhat.com>
2127
2128 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2129 * config/sparc/tm-sparc.h: Ditto.
2130 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2131 unconditionally.
2132 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2133
0d0e1a63
MK
21342003-07-13 Mark Kettenis <kettenis@gnu.org>
2135
2136 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2137 (register_objfile_data, set_objfile_data, objfile_data): New
2138 prototypes.
2139 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2140 prototypes.
2141 (allocate_objfile): Call objfile_alloc_data.
2142 (free_objfile): Call objfile_free_data.
2143 (struct objfile_data): New.
2144 (struct objfile_data_registration): New.
2145 (struct objfile_data_registry): New.
2146 (objfile_data_registry): New variable.
2147 (register_objfile_data): New function.
2148 (objfile_alloc_data, objfile_free_data): New functions.
2149 (set_objfile_data, objfile_data): New functions.
2150 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2151 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2152 (_initialize_dwarf2_frame): New function and prototype.
2153
d90cf509
AC
21542003-08-21 Andrew Cagney <cagney@redhat.com>
2155
2156 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2157 a specific architecture.
2158 * arch-utils.h (set_architecture_from_arch_mach): Delete
2159 declaration.
2160 (target_architecture_hook): Delete declaration.
2161 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2162 (default_float_format): Assume GDB_MULTI_ARCH.
2163 (default_double_format): Assume GDB_MULTI_ARCH.
2164 (set_endian_from_file): Delete function.
2165 (arch_ok): Delete function.
2166 (set_arch): Delete function.
2167 (set_architecture_from_arch_mach): Delete function.
2168 (set_architecture_from_file): Delete function.
2169 (set_architecture): Assume GDB_MULTI_ARCH.
2170 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2171
8b39fe56
MK
21722003-08-21 Mark Kettenis <kettenis@gnu.org>
2173
2174 Rewrite FreeBSD/sparc64 native configuration.
2175 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2176 * sparc64fbsd-nat.c: New file.
2177 * sparc64fbsd-tdep.c: New file.
2178 * sparc64-tdep.c sparc64-tdep.h: New files.
2179 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2180 sparc64fbsd-tdep.o): New dependencies.
2181 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2182 and sparc64fbsd-tdep.c.
2183 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2184 * config/sparc/fbsd.mh: Remove copyright notice.
2185 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2186 sparcbsd-nat.o.
2187 * config/sparc/fbsd.mt: Remove copyright notice.
2188 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2189 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2190 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2191 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2192 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2193 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2194 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2195 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2196 "sparc/tm-sp64.h".
2197 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2198 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2199
a7f19c79
MC
22002003-08-21 Michael Chastain <mec@shout.net>
2201
2202 * symtab.h: Add doco on the space critical structures and
2203 some measurements of space usage.
2204
da08ea5b
MS
22052003-08-21 Michael Snyder <msnyder@redhat.com>
2206
2207 * tracepoint.c (trace_dump_command): Trace break address
2208 is subject to DECR_PC_AFTER_BREAK.
2209 (set_traceframe_context): Make "trace_line" an int.
2210 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2211
6df2bf50
MS
22122003-08-20 Michael Snyder <msnyder@redhat.com>
2213
2214 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2215 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2216 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2217 argument passing.
2218 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2219 functions, replace sh_push_dummy_call.
2220 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2221
0955bbf0
MC
22222003-08-20 Michael Chastain <mec@shout.net>
2223
2224 * gdbtypes.h (struct main_type): Rearrange to save space.
2225
260a4188
MS
22262003-08-20 Michael Snyder <msnyder@redhat.com>
2227
2228 * trad-frame.c: Comment typo fix.
2229
8baa6f92
KB
22302003-08-20 Michael Snyder <msnyder@redhat.com>
2231 Kevin Buettner <kevinb@redhat.com>
2232
2233 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2234 (frv_frame_init_saved_regs): Add declaration.
2235 (frame_extra_info): Add new field ``saved_regs''.
2236 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2237 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2238 Update frame related code.
2239 (frv_extract_struct_value_address): Adjust formatting.
2240 * Makefile.in (frv-tdep.o): Update dependencies.
2241 * config/frv/tm-frv.h (target_insert_watchpoint)
2242 (target_remove_watchpoint, target_insert_hw_breakpoint)
2243 (target_remove_hw_breakpoint): Delete these macros.
2244 (remote_insert_watchpoint, remote_remove_watchpoint)
2245 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2246 these declarations.
2247
87193939
MC
22482003-08-20 Michael Chastain <mec@shout.net>
2249
2250 * defs.h (ENUM_BITFIELD): New macro.
2251 * symtab.h (ENUM_BITFIELD): Use it.
2252 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2253
062103ba
SA
22542003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2255
2256 * MAINTAINERS (write after approval): Add myself.
2257
8b148df9
AC
22582003-08-18 Andrew Cagney <cagney@redhat.com>
2259
2260 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2261 * gdbarch.h, gdbarch.c: Re-generate.
2262 * infcall.c (call_function_by_hand): Adjust the SP by
2263 frame_red_zone_size before allocating any stack space.
2264 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2265 * x86-64-tdep.c (x86_64_frame_align): New function.
2266 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2267
2268 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2269 Remove code adjusting SP so that it skips over the Red Zone.
2270
954a4db8
MK
22712003-08-18 Mark Kettenis <kettenis@gnu.org>
2272
2273 * NEWS (New native configurations): Mention FreeBSD/amd64.
2274
1a241548
AC
22752003-08-18 Andrew Cagney <cagney@redhat.com>
2276
2277 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2278 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2279 "m68k_frame_p".
2280 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2281
f82b2acd
MK
22822003-08-18 Mark Kettenis <kettenis@gnu.org>
2283
2284 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2285
4056d258
ML
22862003-08-18 Michal Ludvig <mludvig@suse.cz>
2287
2288 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2289 Define.
2290 * i386-linux-nat.c: Include "linux-nat.h".
2291 (child_post_startup_inferior): New function.
2292
99ab4326
MK
22932003-08-18 Mark Kettenis <kettenis@gnu.org>
2294
2295 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2296 at the start of a frameless function. This probably fixes PR
2297 backtrace/1338.
2298
c8d5f0d6
MC
22992003-08-17 Michael Chastain <mec@shout.net>
2300
2301 * symfile.c (find_sym_fns): Remove special case for apollo target.
2302
9016a515
DJ
23032003-08-17 Daniel Jacobowitz <drow@mvista.com>
2304
2305 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2306 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2307 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2308 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2309 (linux_supports_tracevforkdone): New function.
2310 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2311 TRACEVFORKDONE.
2312 (child_follow_fork): Handle vfork.
2313 (linux_handle_extended_wait): Likewise. Also handle exec.
2314 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2315 * NEWS: Mention fork tracing.
2316
c538c11c
DJ
23172003-08-17 Daniel Jacobowitz <drow@mvista.com>
2318
2319 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2320
4de4c07c
DJ
23212003-08-17 Daniel Jacobowitz <drow@mvista.com>
2322
2323 * Makefile.in (i386-linux-nat.o): Update dependencies.
2324 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2325 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2326 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2327 * i386-linux-nat.c: Include "linux-nat.h".
2328 (child_post_startup_inferior): New function.
2329 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2330 * infptrace.c (kill_inferior): Wrap in #ifdef.
2331 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2332 attaching to each LWP.
2333 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2334 (init_lin_lwp_ops): Fill in some more operations.
2335 * linux-nat.h (linux_enable_event_reporting)
2336 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2337 prototypes.
2338 * linux-nat.c (linux_enable_event_reporting): New function.
2339 (child_post_attach, linux_child_post_startup_inferior)
2340 (child_post_startup_inferior, child_follow_fork)
2341 (linux_handle_extended_wait, kill_inferior): New functions.
2342
7996bcec
AC
23432003-08-16 Andrew Cagney <cagney@redhat.com>
2344
2345 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2346 * gdbarch.h, gdbarch.c: Re-generate.
2347
3d48a7a0
MK
23482003-08-16 Mark Kettenis <kettenis@gnu.org>
2349
2350 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2351
7989c619
AC
23522003-08-16 Andrew Cagney <cagney@redhat.com>
2353
2354 * NEWS: Mention that "set prompt-escape-char" was deleted.
2355 * top.c (get_prompt_1): Delete function.
2356 (gdb_prompt_escape):
2357 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2358 prompt-escape-char" command.
2359 (MAX_PROMPT_SIZE): Delete macro.
2360 (get_prompt): Simplify, do not call get_prompt_1.
2361
07978cd8
AC
23622003-08-16 Andrew Cagney <cagney@redhat.com>
2363
2364 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2365 -Werror. -Wformat-nonliteral problems.
2366
3ff7cf9e
JB
23672003-08-15 J. Brobecker <brobecker@gnat.com>
2368
2369 Further multiarching work mostly for hppa64-*-hpux11:
2370 * hppa-tdep.h: New file.
2371 * hppa-tdep.c: #include hppa-tdep.c.
2372 (hppa32_num_regs): Renamed from hppa_num_regs.
2373 (hppa64_num_regs): New constant.
2374 (hppa64_call_dummy_breakpoint_offset): New constant.
2375 (hppa32_call_dummy_length): New constant.
2376 (hppa64_call_dummy_length): New constant.
2377 (hppa32_stack_align): Make name 32bit explicit.
2378 (hppa32_register_virtual_type): Likewise.
2379 (hppa32_extract_return_value): Likewise.
2380 (hppa32_use_struct_convention): Likewise.
2381 (hppa32_store_return_value): Likewise.
2382 (hppa64_register_virtual_type): New function.
2383 (hppa64_extract_return_value): New function.
2384 (hppa64_use_struct_convention): New function.
2385 (hppa64_store_return_value): New function.
2386 (hppa_frame_locals_address): Remove declaration, function does
2387 not exist anymore.
2388 (hppa_register_byte): Add support for PA64 ABI.
2389 (hppa_gdbarch_init): Add support for PA64 ABI.
2390 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2391 Make name 32bit explicit.
2392 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2393 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2394 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2395 (hppa64_hpux_frame_base_before_sigtramp): New function.
2396 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2397 * config/pa/tm-hppa64.h: Remove macros that are no longer
2398 necessary now that the gdbarch vector is properly setup.
2399 Transform some macros into function calls. Some minor cleanup.
2400 * config/pa/tm-hppah.h: Update function calls in macros
2401 following the function renaming in hppa-hpux-tdep.c.
2402 * Makefile.in (hppa_tdep_h): New variable.
2403 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2404
5d05ca6d
MS
24052003-08-14 Michael Snyder <msnyder@redhat.com>
2406
2407 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2408
37ba2569
JB
24092003-08-13 J. Brobecker <brobecker@gnat.com>
2410
2411 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2412 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2413 routine.
2414
aed7f26a
MS
24152003-08-13 Michael Snyder <msnyder@redhat.com>
2416
2417 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2418 (frv_saved_pc_after_call): Use deprecated ftype.
2419 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2420 (frv_remote_translate_xfer_address): Remove.
2421 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2422
752d4ac1
JB
24232003-08-13 J. Brobecker <brobecker@gnat.com>
2424
2425 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2426 initialization after the common gdbarch initialization, not before.
2427
1426ac1d
JB
24282003-08-13 J. Brobecker <brobecker@gnat.com>
2429
2430 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2431 (ADDR_BITS_REMOVE): Remove, redundant.
2432
b6fbdd1d
JB
24332003-08-13 J. Brobecker <brobecker@gnat.com>
2434
2435 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2436 gdbarch method to clear the 2 low bits of text addresses.
2437
44160db3
AC
24382003-08-12 Andrew Cagney <cagney@redhat.com>
2439
2440 * Makefile.in (dsrec.o): Update dependencies.
2441 * dsrec.c: Include "gdb_assert.h".
2442 (make_srec): Use snprintf instead of sprintf, use a literal format
2443 string.
2444
bcf7d3ca
AC
24452003-08-12 Andrew Cagney <cagney@redhat.com>
2446
2447 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2448 FRAME_OBSTACK_ZALLOC.
2449
49ed40de
KB
24502003-08-12 Kevin Buettner <kevinb@redhat.com>
2451
2452 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2453 SSE registers.
2454
b246147c
MK
24552003-08-10 Mark Kettenis <kettenis@gnu.org>
2456
2457 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2458 amd64fbsd_sc_reg_offset): Add extern declarations.
2459 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2460 declarations.
2461
d95fdc0d
BE
24622003-08-11 Ben Elliston <bje@wasabisystems.com>
2463
2464 * MAINTAINERS (write after approval): Update my mail address.
2465
cf6a0e73
AC
24662003-08-10 Andrew Cagney <cagney@redhat.com>
2467
2468 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2469
f837910f
MK
24702003-08-10 Mark Kettenis <kettenis@gnu.org>
2471
e2dbbd2d
MK
2472 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2473 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2474 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2475 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2476 i386bsd_sc_reg_offset): Add extern declarations.
2477 * i386obsd-nat.c: Include "i386-tdep.h"
2478 (_initialize_i386obsd_nat): Remove extern declarations.
2479 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2480 declarations.
2481 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2482 declarations.
2483
f837910f
MK
2484 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2485 instead of frame_read_register.
2486 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2487 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2488 SP_REGNUM.
2489 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2490 instead of frame_unwind_unsigned_register. Use
2491 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2492 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2493 instead of read_register. Use builtin_type_void_data_ptr instead
2494 of builtin_type_void_func_ptr when extracting the address of the
2495 jmp_buf.
2496 (i386_extract_return_value, i386_store_return_value,
2497 i386_pseudo_register_read, i386_pseudo_register_write): Use
2498 register_size instead REGISTER_RAW_SIZE.
2499
edcf254d
AC
25002003-08-10 Andrew Cagney <cagney@redhat.com>
2501
2502 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2503 sprintf. Make "name" constant.
2504
26604a34
MK
25052003-08-10 Mark Kettenis <kettenis@gnu.org>
2506
192285c6
MK
2507 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2508 instead of frame_read_register.
f837910f
MK
2509 (i387_print_float_info): Use get_frame_register and
2510 get_frame_register_unsigned instead of frame_register_read.
192285c6 2511
f0925262
MK
2512 * i386fbsd-nat.c: Include "i386-tdep.h".
2513 (child_resume): Make `eflags' an ULONGEST. Use
2514 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2515 instead of register_read and register_write.
2516
a144416f
MK
2517 * i386bsd-nat.c (fetch_inferior_registers,
2518 store_inferior_registers): Don't use && at the end of a line.
2519 (_initialize_i386bsd_nat): Fix typo.
2520
fec74868
MK
2521 * frame.c (_initialize_frame): Add missing backslash.
2522
87232496
MK
2523 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2524 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2525 and supply_register instead of manipulating the register buffer
2526 directly.
2527
c9b9de0b
MK
2528 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2529 * config/i386/nm-i386sol2.h
2530 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2531
26604a34
MK
2532 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2533 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2534 instructions that GCC likes to mingle into the prologue. Fixes
2535 gdb/1253 and gdb/1255.
2536
25d29d70
AC
25372003-08-09 Andrew Cagney <cagney@redhat.com>
2538
2539 Fix GDB PR cli/926.
2540 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2541 * command.h (add_setshow_uinteger_cmd): Declare.
2542 * frame.c (set_backtrace_cmd): New function.
2543 (show_backtrace_cmd): New function.
2544 * frame.c (_initialize_frame): Replace "set/show
2545 backtrace-below-main" with "set/show backtrace past-main". Add
2546 command "set/show backtrace limit".
2547 (backtrace_past_main): Rename "backtrace_below_main".
2548 (backtrace_limit): New variable.
2549 (get_prev_frame): Update. Check the backtrace_limit.
2550
9ebf4acf
AC
25512003-08-09 Andrew Cagney <cagney@redhat.com>
2552
2553 * defs.h (xstrprintf): Declare.
2554 * utils.c (xstrprintf): New function.
2555 * breakpoint.c (insert_breakpoints): Replace sprintf and
2556 non-literal format strings, with xstrprintf and cleanups.
2557 (delete_breakpoint,breakpoint_re_set): Ditto.
2558 (commands_command, insert_breakpoints): Ditto.
2559 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2560 (break_at_finish_command_1): Ditto.
2561
3771659b
AC
25622003-08-09 Andrew Cagney <cagney@redhat.com>
2563
2564 * MAINTAINERS (language support): List Adam Fedor as Objective C
2565 maintainer.
2566
b4263afa
JB
25672003-08-08 J. Brobecker <brobecker@gnat.com>
2568
2569 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2570 are now multiarched.
2571
d84defb1
JB
25722003-08-08 J. Brobecker <brobecker@gnat.com>
2573
2574 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2575 longer necessary now that hppa64 is partially multiarch'ed.
2576
f786f615
AC
25772003-08-08 Andrew Cagney <cagney@redhat.com>
2578
2579 * interps.c (interp_set): Check for a NULL "old_interp".
2580
c938e9b0
L
25812003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2582
2583 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2584 (install-only): Support DESTDIR.
2585 (uninstall): Likewise.
2586 (install-gdbtk): Likewise.
2587
9a146a11
EZ
25882003-08-08 Elena Zannoni <ezannoni@redhat.com>
2589
2590 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2591 contains something meaningful at all times.
2592
2593Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 2594
62599e99 2595 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 2596
56296155
BC
2597Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2598
62599e99 2599 * MAINTAINERS (write after approval): Added self.
56296155 2600
9710e734
AC
26012003-08-07 Andrew Cagney <cagney@redhat.com>
2602
2603 * inferior.h (AT_SYMBOL): Define.
2604 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2605 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2606 * mips-tdep.c (mips_call_dummy_address): Delete function.
2607 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2608 set call_dummy_address.
2609
98b3ab73
AC
26102003-08-07 Andrew Cagney <cagney@redhat.com>
2611
2612 * language.c (op_error): Delete function.
2613 (binop_type_check): Delete function.
2614 * language.h (type_op_error, range_op_error): Delete macros.
2615 (op_error): Delete declaration.
2616
2fcf52f0
AC
26172003-08-07 Andrew Cagney <cagney@redhat.com>
2618
2619 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2620
abd4220e 26212003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 2622
abd4220e 2623 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 2624 (x86_64_push_arguments): Skip the red zone.
abd4220e 2625
9dd5f34f
AC
26262003-08-05 Andrew Cagney <cagney@redhat.com>
2627
2628 * reggroups.c (reggroup_next): Check for the final entry.
2629
e5e78edc
AC
26302003-08-04 Andrew Cagney <cagney@redhat.com>
2631
ab4e3d93
AC
2632 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2633 * cli/cli-script.c (define_command): Call query directly, instead
2634 of passing it a buffer.
2635 * ocd.c (ocd_error): Pass error a constant format string.
2636 * remote-mips.c (mips_error): Use fputs_filtered.
2637
1062ca82
AC
2638 * solib-svr4.c (_initialize_svr4_solib): Update
2639 register_gdbarch_data call.
2640 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2641
fcc1c85c
AC
2642 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2643 (register_gdbarch_data): Delete "free" parameter. Update
2644 comments.
2645 * gdbarch.h, gdbarch.c: Re-generate.
2646 * reggroups.c (_initialize_reggroup): Update.
2647 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2648 * frame-base.c (_initialize_frame_base): Update.
2649 * frame-unwind.c (_initialize_frame_unwind): Update.
2650 * user-regs.c (_initialize_user_regs): Update.
2651 * remote.c (_initialize_remote): Update.
2652 * regcache.c (_initialize_regcache): Update.
2653
116f06ea
AC
2654 * regcache.c (xfree_regcache_descr): Delete function.
2655 (_initialize_regcache): Update call to register_gdbarch_data.
2656 (init_regcache_descr, init_legacy_regcache_descr): Use
2657 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2658
e5e78edc
AC
2659 * remote.c (free_remote_state): Delete function.
2660 (_initialize_remote): Update register_gdbarch_data.
2661 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2662 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2663
6c7d17ba
AC
26642003-08-04 Andrew Cagney <cagney@redhat.com>
2665
2666 * reggroups.c (struct reggroup_el): Define.
2667 (struct reggroups): Delete field "nr_group". Replace array
2668 "group" with a "first" to "last" linked list.
2669 (reggroups_init): Update. Allocate using gdbarch's obstack.
2670 (reggroups_free): Delete function.
2671 (add_group): Update. Add "el" parameter.
2672 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2673 (default_groups): Update.
2674 (reggroup_next): Replace reggroups.
2675 (reggroups_dump): Update.
2676 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2677 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2678 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2679
89b7795b
DJ
26802003-08-04 Daniel Jacobowitz <drow@mvista.com>
2681
2682 * Makefile.in (tui-interp.o): Update dependencies.
2683
306d9ac5
DC
26842003-08-04 David Carlton <carlton@kealia.com>
2685
2686 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2687 to internal_error call.
2688 * source.c (forward_search_command): Add "%s" format argument.
2689 (reverse_search_command): Ditto.
2690 * top.c (quit_confirm): Ditto.
2691 * cli/cli-setshow.c (do_setshow_command): Ditto.
2692 * cp-valprint.c (cp_print_class_method): Replace
2693 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2694 (cp_print_class_member): Ditto.
2695 * event-top.c (command_line_handler): Ditto.
2696 * linux-proc.c (linux_info_proc_cmd): Ditto.
2697 * p-typeprint.c (pascal_type_print_base): Ditto.
2698 * p-valprint.c (pascal_object_print_class_method): Ditto.
2699 (pascal_object_print_class_member): Ditto.
2700 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2701 * remote.c (remote_cisco_section_offsets): Ditto.
2702 * top.c (command_line_input): Ditto.
2703 * utils.c (vwarning,error_stream,quit): Ditto.
2704 * valprint.c (print_floating,print_binary_chars)
2705 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2706
57bfe177
AC
27072003-08-04 Andrew Cagney <cagney@redhat.com>
2708
2709 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2710
e546b999
AC
27112003-08-02 Andrew Cagney <cagney@redhat.com>
2712
2713 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2714 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2715 amd64fbsd-nat.c.
2716
91092ee5
AC
27172003-08-02 Andrew Cagney <cagney@redhat.com>
2718
2719 * Makefile.in: Update all dependencies and definitions.
2720
889f28e2
AF
27212003-08-02 Adam Fedor <fedor@gnu.org>
2722
2723 * linespec.c (is_objc_method_format): New function
2724 (decode_line_1, locate_first_half): Use it.
2725 Fixes PR objc/1298
2726
880bc914
AC
27272003-08-01 Andrew Cagney <cagney@redhat.com>
2728
2729 * NEWS: Mention that m32r is multi-arch.
2730 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2731 * configure.tgt: Recognize m32r-*-*.
2732 * config/m32r/tm-m32r.h: Delete file.
2733 * config/m32r/m32r.mt: New file.
2734 * m32r-rom.c (m32r_upload_command): Use hostent only when
2735 gethostname succeeds, in order to avoid a compilation
2736 warning.
2737 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2738 compiler warning.
2739
19f59343
MS
27402003-08-01 Michael Snyder <msnyder@redhat.com>
2741
2742 * sh-tdep.c (sh_frame_align): New gdbarch method.
2743 (sh_gdbarch_init): Set up frame_align method.
2744
4e7d7511
MS
27452003-07-31 Michael Snyder <msnyder@redhat.com>
2746
2747 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2748 which is already covered by the new frames infrastructure.
2749
63022984
AC
27502003-07-31 Andrew Cagney <cagney@redhat.com>
2751
2752 * user-regs.c (struct user_reg): Add "next" link.
2753 (struct user_regs): Replace "user" with "first" and "last" links.
2754 (append_user_reg): Add pre-allocated "reg" parameter.
2755 (builtin_user_regs): Provide initial value for "last".
2756 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2757 (user_regs_init): Allocate memory from the gdbarch obstack.
2758 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2759 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2760 linked list.
2761 (usernum_to_user_reg): New function.
2762 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2763 (value_of_user_reg): Use usernum_to_user_reg.
2764 (user_regs_free): Delete function.
2765 (_initialize_user_regs): Update register_gdbarch_data call.
2766
7cf6e574
DJ
27672003-07-31 Daniel Jacobowitz <drow@mvista.com>
2768
2769 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2770
c48a845b
MS
27712003-07-30 Michael Snyder <msnyder@redhat.com>
2772
4e7d7511 2773 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
2774 * infcall.c (call_function_by_hand): Pass struct_addr to
2775 value_being_returned.
2776 * infcmd.c (print_return_value): Pass zero as struct_addr.
2777 * values.c (value_being_returned): If struct_addr is passed,
2778 use it instead of trying to recover it from the inferior.
2779
f0d8db19
KB
27802003-07-30 Kevin Buettner <kevinb@redhat.com>
2781
2782 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2783 the prologue analyzer won't need to attempt to extract the pc
2784 value from the woefully incomplete dummy frame.
2785 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2786 possible. Disable code which modifies the frame.
2787
e5c113a1
AC
27882003-07-28 Andrew Cagney <cagney@redhat.com>
2789
2790 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2791 to level 2.
2792 (annotate_breakpoints_table, annotate_record): Ditto.
2793 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2794 (annotate_field_name_end, annotate_field_value): Ditto.
2795 (annotate_field_end, annotate_frame_source_begin): Ditto.
2796 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2797 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2798 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2799 (annotate_frame_address_end, annotate_frame_address): Ditto.
2800 (annotate_frame_args, annotate_frame_end): Ditto.
2801 (annotate_frame_where, annotate_arg_begin): Ditto.
2802 (annotate_arg_name_end, annotate_arg_value): Ditto.
2803 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2804 (annotate_function_call, annotate_signal_name): Ditto.
2805 (annotate_signal_string, annotate_signal_name_end): Ditto.
2806 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2807 (annotate_value_begin, annotate_value_history_value): Ditto.
2808 (annotate_value_history_end, annotate_value_end): Ditto.
2809 (annotate_display_begin, annotate_display_number_end): Ditto.
2810 (annotate_display_format, annotate_display_expression): Ditto.
2811 (annotate_display_expression_end, annotate_display_value): Ditto.
2812 (annotate_display_end, annotate_array_section_begin): Ditto.
2813 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2814 (annotate_elt, annotate_array_section_end): Ditto.
2815
bb1db049
AC
28162003-07-28 Andrew Cagney <cagney@redhat.com>
2817
2818 * regcache.c (struct regcache_descr): Update comments on
2819 nr_raw_registers.
2820 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2821 sizeof_raw_register_valid_p.
2822 (init_regcache_descr): Set nr_raw_registers and
2823 sizeof_raw_register_valid_p before calling
2824 init_legacy_regcache_descr.
2825
20e6603c
AC
28262003-07-28 Andrew Cagney <cagney@redhat.com>
2827
2828 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2829 MOD NUM_REGS.
2830
db742940
DJ
28312003-07-28 Daniel Jacobowitz <drow@mvista.com>
2832
2833 * thread.c (info_threads_command): Use get_selected_frame ().
2834 Check that there is at least one non-sentinel frame.
2835
ce7f4371
SC
28362003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2837
2838 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2839 (m68hc11_pop_frame): Remove.
2840 (m68hc11_frame_saved_pc): Remove.
2841 (m68hc11_frame_chain): Remove.
2842 (m68hc11_frame_init_saved_regs): Remove.
2843 (m68hc11_init_extra_frame_info): Remove.
2844 (m68hc11_store_struct_return): Remove.
2845 (m68hc11_saved_pc_after_call): Remove.
2846
1ea653ae
SC
28472003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2848
2849 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2850 frame unwind information.
2851 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2852 and adapted for frame unwinding.
2853 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2854 (m68hc11_unwind_pc): New function.
2855 (m68hc11_frame_unwind_cache): New function to analyze frames.
2856 (m68hc11_frame_this_id): New function to create new frame struct.
2857 (m68hc11_frame_prev_register): New function to unwind a register from
2858 the frame.
2859 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2860 (m68hc11_frame_p): New function for the above.
2861 (m68hc11_frame_base_address): New function to return fp of frame.
2862 (m68hc11_frame_args_address): Update for frame.
2863 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2864 (m68hc11_unwind_sp): New function.
2865 (m68hc11_unwind_dummy_id): New function.
2866 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2867 calls.
2868
c8a7f6ac
SC
28692003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2870
2871 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2872 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2873 when we are beyond the current pc.
2874
3dc990bf
SC
28752003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2876
2877 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2878 from m68hc11_push_arguments.
2879 (m68hc11_push_arguments): Remove.
2880 (m68hc11_push_return_address): Remove.
2881 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2882 handlers; remove deprecated_extra_stack_alignment_needed.
2883
222e5d1d
AC
28842003-07-27 Andrew Cagney <cagney@redhat.com>
2885
2886 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2887 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2888 REAL_PC and not the pointer.
2889 * hppa-hpux-tdep.c: Include frame.h
2890
a7e9a47e
AC
28912003-07-27 Andrew Cagney <cagney@redhat.com>
2892
2893 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2894 GDB_MULTI_ACH_PARTIAL.
2895
7e3dd49e
AC
28962003-07-27 Andrew Cagney <cagney@redhat.com>
2897
2898 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2899 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2900 operator at start and not end of line.
2901 (decode_prologue): Ditto.
2902 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2903 frame_unwind_register_unsigned instead of
2904 frame_unwind_unsigned_register.
2905 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2906 read_register.
2907 (m32r_push_dummy_call): Use register_size instead of
2908 REGISTER_RAW_SIZE.
2909 (m32r_frame_sniffer): Replace m32r_frame_p.
2910 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2911 * m32r-rom.c (report_transfer_performance): Delete extern
2912 declaration.
2913 (m32r_load, m32r_upload_command): Use print_transfer_performance
2914 instead of report_transfer_performance.
2915 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2916 / add_show_from_set.
2917
0880807f
AC
29182003-07-26 Andrew Cagney <cagney@redhat.com>
2919
2920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2921 store_return_value and extract_struct_value_address.
2922
64ae9269
DJ
29232003-07-26 Daniel Jacobowitz <drow@mvista.com>
2924
2925 PR c++/1267
2926 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2927 NULL, default to the section containing PC.
2928
e286caf2
SC
29292003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2930
2931 * NEWS: Mention "regs" deprecated for m68hc11 too.
2932
2933 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2934 (m68hc11_print_register): New function to print out one register.
2935 (m68hc11_print_registers_info): New function to print registers.
2936 (show_regs): Deprecate and use the above.
2937 (m68hc11_gdbarch_init): Install the print_registers_info.
2938
705b278b
JJ
29392003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2940
2941 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2942 that we have a SIGTRAP before returning non-zero.
2943
63cd4198
EZ
29442003-07-23 Michal Ludvig <mludvig@suse.cz>
2945 Elena Zannoni <ezannoni@redhat.com>
2946
2947 * linespec.c (decode_line_2): Avoid crash if
2948 find_function_start_sal() returns empty record.
2949
6926787d
AS
29502003-07-23 Andreas Schwab <schwab@suse.de>
2951
2952 * ia64-tdep.c (ia64_print_insn): New function.
2953 (ia64_gdbarch_init): Set print_insn to it.
2954 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2955 deprecated_tm_print_insn_info.
2956
708cc1b6
MS
29572003-07-22 Michael Snyder <msnyder@redhat.com>
2958
2959 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2960 handle 8-bit returns (long long).
2961 (h8300h_extract_return_value): Ditto.
2962 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2963
aebd7893
AC
29642003-07-22 Andrew Cagney <cagney@redhat.com>
2965
2966 * gdbarch.c Include "gdb_obstack.h".
2967 (struct gdbarch): Add an "obstack".
2968 (alloc_gdbarch_data): Allocate the gdbarch data using
2969 GDBARCH_OBSTACK_CALLOC.
2970 (free_gdbarch_data): Delete function.
2971 (gdbarch_obstack_zalloc): New function.
2972 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2973 Assert that the architecture is not initialized.
2974 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2975 vector from the obstack.
2976 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2977 architecture obstack.
2978 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2979 (set_gdbarch_data): Assert that the data is not initialized.
2980 (struct gdbarch_data): Delete member "free".
2981 (register_gdbarch_data): Do not initialize "free".
2982 * gdbarch.h, gdbarch.c: Re-generate.
2983
153721e6
AC
29842003-07-22 Andrew Cagney <cagney@redhat.com>
2985
2986 * configure.in (build_warnings): Add -Wformat-nonliteral.
2987 * configure: Re-generate.
2988
c193f044 29892003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
2990
2991 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 2992
c3228f12
EZ
29932003-07-22 Elena Zannoni <ezannoni@redhat.com>
2994
2995 * findvar.c (read_var_value): Remove case for thread local storage
2996 variables. It is now entirely handled by the dwarf2 location
2997 expression code.
2998 * printcmd.c (address_info): Ditto.
2999 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3000 enumeration value.
3001 (struct symbol): Remove objfile field, which was used by
3002 LOC_THREAD_LOCAL_STATIC only.
3003 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3004 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3005 usage of objfile pointer.
3006 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3007 thread local variables.
3008 Add include of objfiles.h.
3009 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3010 storage variables.
3011 * Makefile.in (dwarf2loc.o): Update dependencies.
3012
aef9bcd2
AC
30132003-07-22 Andrew Cagney <cagney@redhat.com>
3014
3015 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3016 get_frame_base.
3017 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3018 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3019 (struct value): Add opaque declaration.
3020 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3021
d95a8903
AC
30222003-07-21 Andrew Cagney <cagney@redhat.com>
3023
3024 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3025 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3026
4db73d49
SC
30272003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3028
3029 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3030 regcache_cooked_read_unsigned instead of read_register.
3031 (m68hc11_saved_pc_after_call): Likewise.
3032 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3033 instead of write_register.
3034 (m68hc11_register_type): New function.
3035 (m68hc11_register_virtual_type): Remove.
3036 (m68hc11_store_return_value): Convert to use the regcache.
3037 (m68hc11_extract_struct_value_address): Likewise.
3038 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3039 m68hc11_register_type; undeprecate store_return_value and
3040 extract_struct_value_address.
3041
ef2b8fcd
SC
30422003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3043
3044 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3045 and translate to use regcache.
3046 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3047
625b0b97
AC
30482003-07-18 Andrew Cagney <cagney@redhat.com>
3049
3050 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3051 * gdbarch.h, gdbarch.c: Re-generate.
3052 * i386-tdep.c (i386_gdbarch_init): Do not set
3053 DWARF2_BUILD_FRAME_INFO.
3054 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3055 unconditionally.
3056 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3057 DWARF2_BUILD_FRAME_INFO.
3058
22b0d388
AC
30592003-07-18 Andrew Cagney <cagney@redhat.com>
3060
3061 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3062 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3063
1ce5d6dd
AC
30642003-07-18 Andrew Cagney <cagney@redhat.com>
3065
3066 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3067 frame_unwind_address_in_block, instead of frame_pc_unwind.
3068 (dwarf2_frame_cache): Ditto.
3069
e6e5e94c
AC
30702003-07-18 Andrew Cagney <cagney@redhat.com>
3071
3072 * user-regs.h (struct gdbarch): Declare opaque.
3073 * ui-out.h (struct ui_file): Declare opaque.
3074 * dwarf2-frame.h (struct frame_info): Declare opaque.
3075
5483d879
KW
30762003-07-18 Kris Warkentin <kewarken@qnx.com>
3077
3078 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3079 #include "...".
3080 (procfs_meminfo): Change strerror to safe_strerror.
3081 (procfs_can_run): Remove K&R badness.
3082
278a7cf7
MS
30832003-07-17 Michael Snyder <msnyder@redhat.com>
3084
3085 * remote-sim.c: Comment typo fix.
3086
606e3b82
AC
30872003-07-17 Andrew Cagney <cagney@redhat.com>
3088
3089 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3090 configure.
3091 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3092 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3093 GDB_MULTI_ARCH_PARTIAL.
3094
c43af07c
EZ
30952003-07-17 Elena Zannoni <ezannoni@redhat.com>
3096
3097 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3098 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3099 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3100
3b85b0f1
TR
31012003-07-16 Theodore A. Roth <troth@openavr.org>
3102
3103 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3104 found.
3105 (avr_frame_unwind_cache): Don't unwind FP for main.
3106 Update a comment.
3107 Save the computed prev_sp.
3108 (avr_saved_regs_unwinder): Remove function.
3109 (avr_frame_prev_register): Use PC unwind logic from
3110 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3111
336d1bba
AC
31122003-07-16 Andrew Cagney <cagney@redhat.com>
3113
3114 * frame-base.h (frame_base_p_ftype): Delete definition.
3115 (frame_base_append_predicate): Delete declaration.
3116 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3117 (frame_unwind_append_predicate): Delete declaration.
3118 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3119 (append_predicate): Delete parameter "p".
3120 (frame_unwind_append_predicate): Delete function.
3121 (frame_unwind_append_sniffer): Update call to append_predicate.
3122 (frame_unwind_free): Delete function.
3123 (_initialize_frame_unwind): Pass NULL as "free" to
3124 register_gdbarch_data.
3125 (frame_unwind_init): Append the dummy_frame_sniffer.
3126 (frame_unwind_find_by_frame): Simplify.
3127 * frame-base.c (struct frame_base_table): Delete field "p".
3128 (append_predicate): Delete parameter "p".
3129 (frame_base_append_predicate): Delete function.
3130 (frame_base_append_sniffer): Update call to append_predicate.
3131 (frame_base_free): Delete function.
3132 (frame_base_find_by_frame): Simplify.
3133 (_initialize_frame_base): Pass NULL as "free" to
3134 register_gdbarch_data.
3135 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3136 (x86_64_sigtramp_frame_sniffer): Replace
3137 "x86_64_sigtramp_frame_p".
3138 (x86_64_init_abi): Set the frame unwind sniffers.
3139 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3140 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3141 (m68k_gdbarch_init): Set the frame unwind sniffers.
3142 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3143 "i386_sigtramp_frame_p".
3144 (i386_frame_sniffer): Replace "i386_frame_p".
3145 (i386_gdbarch_init): Set the frame unwind sniffers.
3146 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3147 (avr_gdbarch_init): Set the frame unwind sniffers.
3148 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3149 "alpha_sigtramp_frame_p"
3150 (alpha_heuristic_frame_sniffer): Replace
3151 "alpha_heuristic_frame_p".
3152 (alpha_gdbarch_init): Set the frame unwind sniffers.
3153 (alpha_dwarf2_init_abi): Ditto.
3154 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3155 "alpha_debug_frame_p".
3156 (alpha_mdebug_frame_base_sniffer): Replace
3157 "alpha_mdebug_frame_base_p".
3158 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3159 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3160 (d10v_gdbarch_init): Set the frame unwind sniffer.
3161 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3162 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3163 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3164 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3165 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3166 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3167
48db5a3c
CV
31682003-07-16 Michael Snyder <msnyder@redhat.com>
3169
3170 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3171 should go thru sh_dsp_register_sim_regno, else the dsp regs
3172 will not get the right values.
3173
31742003-07-16 Corinna Vinschen <vinschen@redhat.com>
3175
3176 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3177 deprecated_store_floating by call to store_typed_floating.
3178 (sh_sh4_register_convert_to_raw): Substitute call to
3179 deprecated_extract_floating by call to extract_typed_floating.
3180
31812003-07-16 Corinna Vinschen <vinschen@redhat.com>
3182
3183 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3184
31852003-07-16 Corinna Vinschen <vinschen@redhat.com>
3186
3187 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3188 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3189 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3190 as possible.
3191 (do_pseudo_register): Remove.
3192 (sh_push_dummy_code): New function.
3193 (sh64_store_struct_return): Rename from sh_store_struct_return.
3194 Only called for sh64 now.
3195 (sh_extract_struct_value_address): Regcache'ify.
3196 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3197 and accomodate new tasks.
3198 (sh64_push_return_address): Rename from sh_push_return_address.
3199 Only called for sh64 now.
3200 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3201 Regcache'ify.
3202 (sh3e_sh4_extract_return_value): Regcache'ify.
3203 (sh_default_store_return_value): Ditto.
3204 (sh3e_sh4_store_return_value): Ditto.
3205 (sh_default_register_byte): Remove.
3206 (sh_sh4_register_byte): Remove.
3207 (sh_default_register_raw_size): Remove.
3208 (sh_sh4_register_raw_size): Remove.
3209 (sh_register_virtual_size): Remove.
3210 (sh_sh3e_register_virtual_type): Remove.
3211 (sh_sh3e_register_type): New function.
3212 (sh_sh4_register_virtual_type): Remove.
3213 (sh_sh4_register_type): New function.
3214 (sh_default_register_virtual_type): Remove.
3215 (sh_default_register_type): New function.
3216 (do_fv_register_info): Add parameters to accomodate call from
3217 sh_print_registers_info.
3218 (do_dr_register_info): Ditto.
3219 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3220 Add parameters to accomodate call from sh_print_registers_info.
3221 (sh_do_fp_register): Ditto.
3222 (sh64_do_pseudo_register): Call do_dr_register_info,
3223 do_fv_register_info and sh_do_fp_register with default parameters.
3224 (sh_do_register): Add parameters to accomodate call from
3225 sh_print_registers_info.
3226 (sh_print_register): Ditto.
3227 (sh_print_registers_info): Rename from sh_do_registers_info.
3228 Add parameters to be used as gdbarch_print_registers_info
3229 implementation. Accomodate removed do_pseudo_register function
3230 pointer.
3231 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3232 function pointer. Call sh_print_register with default parameters.
3233 (sh64_do_registers_info): Call sh_print_registers_info instead of
3234 sh_do_registers_info.
3235 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3236 detection of deprecated vs. non-deprecated functionality.
3237 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3238 function pointer assignments by direct function calls.
3239
e8a89fe2
AC
32402003-07-15 Andrew Cagney <cagney@redhat.com>
3241
3242 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3243 (frame_register_unwind, create_new_frame): Ditto.
3244 (legacy_get_prev_frame, get_frame_type): Ditto.
3245 (get_frame_base_address): Use frame_base_find_by_frame.
3246 (get_frame_locals_address): Use frame_base_find_by_frame.
3247 (get_frame_args_address): Use frame_base_find_by_frame.
3248 * frame-base.h (frame_base_sniffer_ftype): Declare.
3249 (frame_base_append_sniffer): Declare.
3250 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3251 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3252 (frame_base_append_sniffer): New function.
3253 (frame_base_append_predicate): Add a NULL sniffer.
3254 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3255 (struct frame_base_table): Add "sniffer".
3256 (frame_base_free): Free the "sniffer" table.
3257 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3258 (frame_unwind_append_sniffer): Declare.
3259 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3260 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3261 (struct frame_unwind_table): Add "sniffer", delete "middle".
3262 (append_predicate): Add "sniffer" parameter, append the sniffer.
3263 (frame_unwind_init): Update append_predicate call.
3264 (frame_unwind_append_sniffer): New function.
3265 (frame_unwind_append_predicate): Update append_predicate call.
3266 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3267
0714963c
AC
32682003-07-15 Andrew Cagney <cagney@redhat.com>
3269
3270 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3271 before code inhibiting repeated unwind attempts. Add to
3272 commentary on that test's problems.
3273 * blockframe.c (inside_main_func): Look for "main" in the minimal
3274 symbol table.
3275 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3276 identical.
3277
d9170e22
AC
32782003-07-15 Andrew Cagney <cagney@redhat.com>
3279
3280 * complaints.c (struct explanation): Define.
3281 (struct complaints): Change type of "explanation" to "struct
3282 explanation".
3283 (symfile_explanations): Convert to a "struct explanation" table.
3284 (vcomplaint): Update.
3285
eba29c8c
ML
32862003-07-15 Michal Ludvig <mludvig@suse.cz>
3287
3288 * x86-64-linux-nat.c (regmap): Removed.
3289 (supply_gregset, fill_gregset): Call
3290 x86_64_linux_(fill,supply)_gregset functions.
3291 * x86-64-linux-tdep.c (USER_*): New defines.
3292 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3293 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3294 New functions.
3295 (fetch_core_registers): Ditto.
3296 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3297 * x86-64-linux-tdep.h: New file.
3298 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3299 and core-regset.o.
3300 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3301
68cc0bfb
MK
33022003-07-13 Mark Kettenis <kettenis@gnu.org>
3303
88a115f7
MK
3304 * x86-64-tdep.c (x86_64_store_return_value): Use
3305 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 3306
68cc0bfb
MK
3307 * configure.host: Add x86_64-*-freebsd*.
3308 * configure.tgt: Add x86_64-*-freebsd*.
3309 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3310 * amd64fbsd-nat.c: New file.
3311 * amd64fbsd-tdep.c: New file.
3312 * config/i386/nm-fbsd64.h: New file.
3313 * config/i386/fbsd64.mh: New file.
3314 * config/i386/fbsd64.mt: New file.
3315
138e7be5
MK
33162003-07-11 Mark Kettenis <kettenis@gnu.org>
3317
3318 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3319 `sc_regs_offset' and `sc_fpregs_offset'.
3320 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3321 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3322 (alpha_sigtramp_register_address): Rewrite to use new members of
3323 `struct gdbarch_tdep'.
3324 (alpha_gdbarch_init): Initialize new members of struct
3325 gdbarch_tdep'.
3326 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3327 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3328 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3329 (alphafbsd_pc_in_sigtramp): Implement.
3330 (alphafbsd_sigtramp_offset): New function.
3331 (alphafbsd_sigcontext_addr): New function.
3332 (alphafbsd_init_abi): Initialize signal trampoline related members
3333 of `struct gdbarch_tdep'.
3334 (_initialize_alphafbsd_tdep): Add prototype.
3335
95303a68
TR
33362003-07-11 Theodore A. Roth <troth@openavr.org>
3337
ba292e4c
TR
3338 * Makefile.in (install-only): Quote sed expression when generating
3339 transformed_name.
95303a68 3340
6896c0c7
RH
33412003-07-11 Richard Henderson <rth@redhat.com>
3342
3343 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3344 * dwarf2-frame.c: Include complaints.h.
3345 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3346 variable initialization; return NULL on error.
3347 (decode_frame_entry): New.
3348
8edd5d01
AC
33492003-07-11 Andrew Cagney <cagney@redhat.com>
3350
c4a09524
AC
3351 * frame.h (frame_address_in_block): Delete declaration.
3352 * blockframe.c (frame_address_in_block): Delete function.
3353 (get_frame_block): Use get_frame_address_in_block.
3354 (block_innermost_frame): Ditto.
3355 * stack.c (print_frame, backtrace_command_1): Ditto.
3356
8edd5d01
AC
3357 * frame.h (get_frame_address_in_block): Declare.
3358 (frame_unwind_address_in_block): Declare.
3359 * frame.c (frame_unwind_address_in_block): New function.
3360 (get_frame_address_in_block): New function.
3361
f7968451
AC
33622003-07-10 Andrew Cagney <cagney@redhat.com>
3363
3364 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3365 pre-default. Note: re-generate has no effect.
3366
ae99b398
AC
33672003-07-10 Andrew Cagney <cagney@redhat.com>
3368
3369 * gdbarch.sh: When a variable, but not a function, compare against
3370 0. Fix problem in previous patch.
3371 * gdbarch.c: Re-generate.
3372
956ac328
AC
33732003-07-10 Andrew Cagney <cagney@redhat.com>
3374
3375 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3376 functions against NULL, not 0.
3377 * gdbarch.c: Re-generate.
3378
287c3240
FF
33792003-07-10 Fred Fish <fnf@ninemoons.com>
3380
3381 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3382 null string instead of a null pointer.
3383 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3384
32f63c4b
MS
33852003-07-09 Michael Snyder <msnyder@redhat.com>
3386
3387 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3388
402ecd56
MK
33892003-07-09 Mark Kettenis <kettenis@gnu.org>
3390
3391 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3392 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3393 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3394 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3395 * x86-64-tdep.c: ... from here.
3396
c481dac7
AS
33972003-07-09 Andreas Schwab <schwab@suse.de>
3398
3399 * m68k-tdep.h (enum struct_return): Define.
3400 (struct gdbarch_tdep): Add struct_return.
3401 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3402 bytes are padded to the right, not to the left. Pass struct value
3403 address in register %a1, not on stack.
3404 (m68k_use_struct_convention): New function.
3405 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3406 struct_return in tdep to pcc_struct_return.
3407 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3408 reg_struct_return.
3409
64176fa3
JB
34102003-07-09 Joel Brobecker <brobecker@gnat.com>
3411
3412 * somread.c (som_symfile_offsets): Fix compilation error.
3413
96a4ee76
AC
34142003-07-09 Andrew Cagney <cagney@redhat.com>
3415
3416 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3417 Add comments about the checks.
3418
1517c6d1
AC
34192003-07-08 Andrew Cagney <cagney@redhat.com>
3420
3421 * Makefile.in: Make dependency section headers consistent.
3422 (config_h): Move to $BUILD headers section.
3423 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3424 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3425 (ada-exp.tab.c): Move to YACC/LEX section.
3426 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3427 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3428
dc5dd1eb
KW
34292003-07-08 Kris Warkentin <kewarken@qnx.com>
3430
3431 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
3432 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3433 of strerror with safe_strerror, use ISO C function definitions,
3434 and replace instances of sprintf with snprintf.
dc5dd1eb 3435
612dde91
AC
34362003-07-07 Andrew Cagney <cagney@redhat.com>
3437
3438 * frame.c (get_prev_frame): Enable check for identical frames.
3439 Update comments. Update error messages.
3440
492c11d3
JB
34412003-07-07 Joel Brobecker <brobecker@gnat.com>
3442
3443 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3444
376a5a49
JB
34452003-07-07 Joel Brobecker <brobecker@gnat.com>
3446
3447 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3448 sort_symtab_syms, no longer necessary.
3449
22b4a9ad
JB
34502003-07-07 Joel Brobecker <brobecker@gnat.com>
3451
3452 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3453
5bbcb741
JB
34542003-07-07 Joel Brobecker <brobecker@gnat.com>
3455
3456 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3457 (mips_register_byte): Likewise.
3458
c139e7d9
DJ
34592003-07-07 Daniel Jacobowitz <drow@mvista.com>
3460
3461 * Makefile.in (sparc_tdep_h): New.
3462 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3463 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3464 * sparc-linux-nat.c: Include "sparc-tdep.h".
3465 * sparc-nat.c: Likewise.
3466 * sparc-tdep.c: Likewise.
3467 * sparc64nbsd-nat.c: Likewise.
3468 * sparcnbsd-nat.c: Likewise.
3469 * sparcnbsd-tdep.c: Likewise.
3470 * sparc-tdep.h: New file.
3471 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3472 and sparc_npc_regnum.
3473
fd8f87c5
DJ
34742003-07-07 Daniel Jacobowitz <drow@mvista.com>
3475
3476 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3477 (mips_linux_cannot_store_register): List supported instead of
3478 unsupported registers.
3479
13adf674
DJ
34802003-07-07 Daniel Jacobowitz <drow@mvista.com>
3481
3482 * disasm.c (dump_insns): Separate instructions from addresses.
3483
8de307e0
AS
34842003-07-07 Andreas Schwab <schwab@suse.de>
3485
3486 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3487 dependencies.
3488 * m68k-tdep.c (NUM_FREGS): Delete.
3489 (SIG_PC_FP_OFFSET): Delete.
3490 (TARGET_M68K): Delete.
3491 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3492 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3493 P_MOVEL_SP, P_MOVEML_SP): Define.
3494 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3495 P_TRAP): Delete.
3496 (m68k_register_raw_size): Delete.
3497 (m68k_register_virtual_size): Delete.
3498 (m68k_register_type): Renamed from m68k_register_virtual_type and
3499 add gdbarch argument.
3500 (m68k_store_struct_return): Delete.
3501 (m68k_deprecated_extract_return_value): Delete.
3502 (m68k_deprecated_extract_struct_value_address): Delete.
3503 (m68k_frame_chain): Delete.
3504 (m68k_frame_saved_pc): Delete.
3505 (m68k_fix_call_dummy): Delete.
3506 (m68k_push_dummy_frame): Delete.
3507 (m68k_pop_frame): Delete.
3508 (m68k_extract_return_value): New function.
3509 (m68k_store_return_value): Rewrite using regcache.
3510 (m68k_extract_struct_value_address): Rewrite using regcache.
3511 (m68k_push_dummy_call): New function.
3512 (struct m68k_frame_cache): Define.
3513 (m68k_alloc_frame_cache): New function.
3514 (m68k_analyze_frame_setup): New function.
3515 (m68k_analyze_register_saves): New function.
3516 (m68k_analyze_prologue): New function.
3517 (m68k_skip_prologue): Rewrite using above functions.
3518 (m68k_unwind_pc): New function.
3519 (m68k_frame_cache): New function.
3520 (m68k_frame_this_id): New function.
3521 (m68k_frame_prev_register): New function.
3522 (m68k_frame_unwind): New variable.
3523 (m68k_frame_p): New function.
3524 (m68k_sigtramp_frame_cache): New function.
3525 (m68k_sigtramp_frame_this_id): New function.
3526 (m68k_sigtramp_frame_prev_register): New function.
3527 (m68k_sigtramp_frame_unwind): New variable.
3528 (m68k_sigtramp_frame_p): New function.
3529 (m68k_frame_base_address): New function.
3530 (m68k_frame_base): New function.
3531 (m68k_unwind_dummy_id): New function.
3532 (fill_gregset): Use regcache_collect.
3533 (fill_fpregset): Likewise.
3534 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3535 defined.
3536 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3537 deprecated_init_frame_pc, deprecated_store_struct_return,
3538 deprecated_extract_return_value, deprecated_store_return_value,
3539 deprecated_frame_chain, deprecated_frame_saved_pc,
3540 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3541 deprecated_register_virtual_size,
3542 deprecated_max_register_raw_size,
3543 deprecated_max_register_virtual_size,
3544 deprecated_register_virtual_type, deprecated_register_size,
3545 deprecated_register_byte, deprecated_register_bytes,
3546 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3547 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3548 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3549 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3550 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3551 deprecated_push_dummy_frame, deprecated_pop_frame,
3552 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3553 only if SYSCALL_TRAP is defined. Set extract_return_value,
3554 store_return_value, extract_struct_value_address, register_type,
3555 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3556 predicates.
3557 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3558 M68K_MAX_REGISTER_SIZE): Define.
3559 (struct m68k_sigtramp_info): Define.
3560 (struct gdbarch_tdep): Add get_sigtramp_info.
3561 * m68klinux-nat.c (fetch_register): Use register_size instead of
3562 REGISTER_RAW_SIZE. Don't put assignment in if.
3563 (store_register): Likewise.
3564 (fetch_inferior_registers): Likewise.
3565 (store_inferior_registers): Likewise.
3566 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3567 (m68k_linux_frame_saved_pc): Delete.
3568 (m68k_linux_sigcontext_reg_offset,
3569 m68k_linux_ucontext_reg_offset): Define.
3570 (m68k_linux_get_sigtramp_info): New function.
3571 (m68k_linux_extract_return_value): Rewrite using regcache.
3572 (m68k_linux_store_return_value): Likewise.
3573 (m68k_linux_extract_struct_value_address): Likewise.
3574 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3575 Don't set deprecated_frame_saved_pc,
3576 deprecated_extract_return_value, deprecated_store_return_value,
3577 deprecated_extract_struct_value_address. Set
3578 extract_return_value, store_return_value,
3579 extract_struct_value_address.
3580
eb8bc282
AC
35812003-07-07 Andrew Cagney <cagney@redhat.com>
3582
3583 * expprint.c: Include "user-regs.h" instead of "frame.h".
3584 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3585 frame_map_regnum_to_name.
3586 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3587 (frame_map_name_to_regnum): Simplify, call
3588 user_reg_map_name_to_regnum.
3589 (frame_map_regnum_to_name): Simplify, call
3590 user_reg_map_regnum_to_name.
3591 (frame_register_unwind): Update.
3592 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3593 (_initialize_frame_reg): Call user_reg_add_builtin.
3594 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3595 (value_of_register): Use value_of_user_reg.
3596 * eval.c (evaluate_subexp_standard): Update.
3597 * parse.c (write_dollar_variable): Update.
3598 * d10v-tdep.c (d10v_print_registers_info): Update.
3599 * infcmd.c (registers_info): Update.
3600 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3601 (builtin_regs_h): Delete macro.
3602 (user_regs_h): Define.
3603 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3604 (builtin-regs.o): Delete target.
3605 (user-regs.o): Specify dependencies.
3606 (expprint.o): Update dependencies.
3607 (findvar.o): Update dependencies.
3608 (frame.o): Update dependencies.
3609 (std-regs.o): Update dependencies.
3610
9f476a01
CF
36112003-07-06 Christopher Faylor <cgf@redhat.com>
3612
3613 * win32-nat.c (solib_symbols_add): Use one variable for all section
3614 address stuff. Pass variable rather than address of variable to
3615 safe_symbol_file_add.
3616
a731b831
AS
36172003-07-06 Andreas Schwab <schwab@suse.de>
3618
3619 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3620
9f83329d
JB
36212003-07-04 Joel Brobecker <brobecker@gnat.com>
3622
3623 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3624
27e28cc5
KW
36252003-07-04 Kris Warkentin <kewarken@qnx.com>
3626
3627 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3628
36292003-07-04 Kris Warkentin <kewarken@qnx.com>
3630
3631 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3632 * config/i386/nto.mh: New file.
3633 * config/i386/nm-nto.h: New file.
3634 * configure.host: Add i[3456]86-*-nto*.
3635
100f2e98
JB
36362003-07-03 Joel Brobecker <brobecker@gnat.com>
3637
3638 * remote-vx.c (vx_add_symbols): Fix compilation error.
3639
e23457df
AC
36402003-07-03 Andrew Cagney <cagney@redhat.com>
3641
3642 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3643 * gdbarch.h, gdbarch.c: Re-generate.
3644 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3645 (legacy_register_name): Declare.
3646 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3647 (REGISTER_NAME): Define.
3648 * sparc-tdep.c (legacy_register_name): New function.
3649 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3650 (REGISTER_NAME): Define.
3651 (hppa64_register_name): Declare.
3652 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3653 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3654 (hppa64_register_name): New function.
3655 (hppa_register_name): New function.
3656 * arch-utils.c (legacy_register_name): Delete.
3657 * arch-utils.h (legacy_register_name): Delete.
3658
38caaeec
DJ
36592003-07-03 Daniel Jacobowitz <drow@mvista.com>
3660
3661 * cli/cli-interp.c (cli_interpreter_resume): Update the
3662 cli_uiout's stream to gdb_stdout.
3663
dadd712e
AC
36642003-07-03 Andrew Cagney <cagney@redhat.com>
3665
3666 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3667 predicate.
3668 * gdbarch.h, gdbarch.c: Re-generate.
3669 * regcache.c (init_regcache_descr): Use legacy code when either
3670 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3671
c7f1390e
DJ
36722003-07-02 Daniel Jacobowitz <drow@mvista.com>
3673
3674 * NEWS: Move "set logging" entry into GDB 6.0 section.
3675
4bc8c588
JB
36762003-07-02 Jim Blandy <jimb@redhat.com>
3677
a9dd42f1
JB
3678 * s390-tdep.c (struct frame_extra_info): new member:
3679 'stack_bought_valid'.
3680 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3681 initialize fextra_info->stack_bought.
3682 (s390_frameless_function_invocation): Don't trust the value of
3683 fextra_info_ptr->stack_bought unless
3684 fextra_info->stack_bought_valid is set.
3685
4bc8c588
JB
3686 New S390 prologue analyzer.
3687 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3688 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3689 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3690 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3691 compute_x_addr, s390_on_stack, s390_store,
3692 s390_get_signal_frame_info): New functions.
3693 (S390_NUM_SPILL_SLOTS): New macro.
3694 (s390_get_frame_info): Rewritten.
3695 (is_arg_reg): Deleted.
3696
3697 Break out the decoding of S/390 instructions into separate
3698 functions, to make it more legible, and easier to check
3699 against the spec.
3700 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3701 is_rx, is_rxe): New functions.
3702 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3703 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3704 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3705 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3706 enums for opcode values. (Is this an improvement?)
3707
fd13a04a
AC
37082003-07-02 Andrew Cagney <cagney@redhat.com>
3709
3710 * i386-tdep.c: Revert change committed as part of trad-frame code
3711 below.
3712
3f8091c1
DJ
37132003-07-02 Daniel Jacobowitz <drow@mvista.com>
3714
3715 * breakpoint.c (insert_catchpoint): Make static.
3716
8dd5115e
AS
37172003-07-02 Andreas Schwab <schwab@suse.de>
3718
3719 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3720 former ia64_push_arguments and ia64_push_return_address, and use
3721 regcache functions instead of read/write_register.
3722 (ia64_gdbarch_init): Set push_dummy_call instead of
3723 deprecated_push_arguments and deprecated_push_return_address.
3724
a2229c23
AJ
37252003-07-01 Andreas Jaeger <aj@suse.de>
3726
3727 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3728 before the call.
3729 Set %rax only to number of SSE registers used.
3730
3b3850e8
AC
37312003-07-01 Andrew Cagney <cagney@redhat.com>
3732
3733 * trad-frame.h: Update comments, a -1 .addr is reserved.
3734 (trad_frame_value_p, trad_frame_addr_p): Declare.
3735 (trad_frame_reg_p): Declare.
3736 (trad_frame_set_value): Rename trad_frame_register_value.
3737 (trad_frame_set_unknown): Declare.
3738 * trad-frame.c (trad_frame_realreg_p): New function.
3739 (trad_frame_addr_p, trad_frame_value_p): New function.
3740 (trad_frame_set_unknown): New function.
3741 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3742 (trad_frame_prev_register): Use trad_frame_realreg_p,
3743 trad_frame_addr_p and trad_frame_value_p.
3744 (trad_frame_set_value): Rename trad_frame_register_value.
3745 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3746 and trad_frame_set_value.
a2229c23 3747
4d819d0e
JB
37482003-06-30 Jim Blandy <jimb@redhat.com>
3749
3750 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3751 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3752 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3753 for 16 registers, and then 32 more bytes.
3754 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3755 New macros.
3756 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3757 Move up in the file, since it's now used by is_simple_arg.
3758 (is_simple_arg): Don't assume registers are four bytes long.
3759 Exclude all double arguments. Extended floats are not simple
3760 args.
3761 (is_power_of_two): New function.
3762 (pass_by_copy_ref): Call is_power_of_two, and check that the
3763 length fits in a register, rather than listing all the acceptable
3764 sizes. Extended floats are not passed by reference.
3765 (s390_push_arguments): Don't assume registers are four bytes long.
3766 Reserve an argument register to point to the buffer for structures
3767 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3768 S390_STACK_FRAME_OVERHEAD.
3769
1ad828f1
AS
37702003-06-30 Andreas Schwab <schwab@suse.de>
3771
3772 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3773 format error message.
3774
39b00981
JB
37752003-06-30 Joel Brobecker <brobecker@gnat.com>
3776
3777 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3778
b2a7f303
DC
37792003-06-30 David Carlton <carlton@kealia.com>
3780
3781 Band-aid for PR c++/1245.
3782 * Makefile.in (cp-support.o): Depend on complaints_h.
3783 * cp-support.c: Include complaints.h. Add declaration for
3784 find_last_component.
3785 (cp_find_first_component): Separate code into
3786 cp_find_first_component_aux.
3787 (cp_find_first_component_aux): Call demangled_name_complaint.
3788 (demangled_name_complaint): New.
3789
a257b5bb
AC
37902003-06-30 Andrew Cagney <cagney@redhat.com>
3791
3792 * remote.c (remote_write_bytes): Explicitly compute and then use
3793 the payload size. Update comments to reflect. Fixes problem of
3794 GDB not sending small packets as found by Fred Fish.
3795
0a2cfde4
AC
37962003-06-30 Andrew Cagney <cagney@redhat.com>
3797
3798 * remote.c (remote_async_wait): Fix -Wformat problem.
3799
3fcb8548
AC
38002003-06-29 Andrew Cagney <cagney@redhat.com>
3801
3802 * remote.c (remote_wait): Call error, and not warning, when the
3803 packet is corrupt.
3804 (remote_async_wait): Ditto.
3805
9f9970a3
DJ
38062003-06-29 Daniel Jacobowitz <drow@mvista.com>
3807
3808 * sparc-tdep.c (sparc_y_regnum): Make external again.
3809
83a8ccca
DJ
38102003-06-29 Daniel Jacobowitz <drow@mvista.com>
3811
3812 * cli/cli-logging.c (pop_output_files): Add void to function
3813 definition.
3814
d2cf594a
AC
38152003-06-29 Andrew Cagney <cagney@redhat.com>
3816
3817 * frame.c (frame_register_unwind): Use unsigned char when dumping
3818 the buffer contents.
3819
0fac0b41
DJ
38202003-06-28 Daniel Jacobowitz <drow@mvista.com>
3821
3822 * cli/cli-logging.c: New file.
3823 * cli-out.c (struct ui_out_data): Add original_stream.
3824 (cli_redirect): New function.
3825 (cli_ui_out_impl): Add cli_redirect.
3826 (cli_out_new): Initialize original_stream.
3827 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3828 (uo_redirect, ui_out_redirect): New.
3829 * ui-out.h (struct ui_out_impl): Add redirect member.
3830 (redirect_ftype): New.
3831 (ui_out_redirect): Add prototype.
3832 * Makefile.in: Add rules for cli-logging.c.
3833 * NEWS: Mention "set logging".
3834
88a07d7c
EZ
38352003-06-27 Elena Zannoni <ezannoni@redhat.com>
3836
3837 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3838
4eb58876
AC
38392003-06-27 Andrew Cagney <cagney@redhat.com>
3840
3841 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3842 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3843 * avr-tdep.c (avr_call_dummy_address): Delete function.
3844 (avr_gdbarch_init): Do not set call_dummy_address.
3845
1549f619
EZ
38462003-06-27 Elena Zannoni <ezannoni@redhat.com>
3847
3848 * symfile.c (syms_from_objfile): Move variables to inner block.
3849 Move the checks for the non-mainline case a bit earlier to avoid
3850 doing some useless computations.
3851
3cb3398d
EZ
38522003-06-27 Elena Zannoni <ezannoni@redhat.com>
3853
3854 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3855
3799ccc6
EZ
38562003-06-26 Elena Zannoni <ezannoni@redhat.com>
3857
3858 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3859 sections.
3860
ce1f6491
MC
38612003-06-26 Michael Chastain <mec@shout.net>
3862
3863 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3864 gdb/testsuite/gdb.c++/pr-1210.exp.
3865
d958dfd0
AC
38662003-06-26 Andrew Cagney <cagney@redhat.com>
3867
3868 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3869 altivec_expression.h and altivec_registers.h.
3870
d31431ed
AC
38712003-06-26 Andrew Cagney <cagney@redhat.com>
3872
3873 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3874 info->mach when MIPS16. Patch suggested by Fred Fish.
3875
714b1282
AC
38762003-06-26 Andrew Cagney <cagney@redhat.com>
3877
3878 * utils.c (internal_vproblem): Print the problem to a reason
3879 buffer and then pass to query. Make the msg variable more local.
3880
42efa47a
AC
38812003-06-26 Andrew Cagney <cagney@redhat.com>
3882
3883 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3884 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3885 * gdbarch.h, gdbarch.c: Re-generate.
3886 * frame-base.c (default_frame_args_address): Update. Use
3887 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3888 not available.
3889 (default_frame_locals_address): Ditto for
3890 DEPRECATED_FRAME_LOCALS_ADDRESS.
3891 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3892 (vax_frame_num_args): Update.
3893 (vax_gdbarch_init): Update.
3894 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3895 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3896 * mcore-tdep.c (mcore_gdbarch_init): Update.
3897 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3898 * ia64-tdep.c (ia64_gdbarch_init): Update.
3899 * symtab.h (address_class): Update comments.
3900 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3901 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3902 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3903 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3904 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3905 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3906 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3907 * alpha-mdebug-tdep.c: Update.
3908 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3909
8ffd9b1b
AJ
39102003-06-26 Andreas Jaeger <aj@suse.de>
3911
3912 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3913 of SSE registers so that varargs functions work. Rework handling
3914 of passing arguments on the stack.
3915 (x86_64_store_return_value): Return double and float values in SSE
3916 register.
3917
e8ac10a6
MC
39182003-06-24 Michael Chastain <mec@shout.net>
3919
3920 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3921 the "constructor breakpoints ignored" bug.
3922
986af8e6
DC
39232003-06-25 David Carlton <carlton@kealia.com>
3924
3925 * MAINTAINERS: Update e-mail address.
3926
d64558a5
JB
39272003-06-24 Jim Blandy <jimb@redhat.com>
3928
e538d2d7
JB
3929 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3930
02631ec0
JB
3931 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3932 function.
3933 (ppc_linux_init_abi): Register it as the
3934 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3935
e716d87a
JB
3936 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3937 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3938 method.
3939
d64558a5
JB
3940 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3941 (ppc64_standard_linkage_target): Use it.
3942
449a5da4
AC
39432003-06-23 Andrew Cagney <cagney@redhat.com>
3944
3945 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3946 for 0 "int0" and 4 "int32" sized registers.
3947 * gdbtypes.c (builtin_type_int0): Define.
3948 (build_gdbtypes): Initialize builtin_type_int0.
3949 * gdbtypes.h (builtin_type_int0): Declare.
3950
b2a02dda
SC
39512003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3952
3953 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3954 as characters are unsigned.
3955
fba3138e
DJ
39562003-06-22 Daniel Jacobowitz <drow@mvista.com>
3957
3958 PR gdb/1179
3959 * dwarfread.c (struct_type): Skip static fields without crashing.
3960
f6c8180b
AC
39612003-06-22 Andrew Cagney <cagney@redhat.com>
3962
3963 GDB 6.0 branch created.
f2c06f52
AC
3964 * README: Update.
3965 * PROBLEMS: Update. Empty.
3966 * NEWS: Update.
f6c8180b 3967
ae822768
DJ
39682003-06-22 Daniel Jacobowitz <drow@mvista.com>
3969
3970 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3971 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3972
261de166
AC
39732003-06-22 Andrew Cagney <cagney@redhat.com>
3974
3975 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3976 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3977 Velikov.
3978
30e94205
DJ
39792003-06-22 Daniel Jacobowitz <drow@mvista.com>
3980
3981 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3982 compilers.
3983
9e14d721
DJ
39842003-06-21 Daniel Jacobowitz <drow@mvista.com>
3985
3986 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3987 argument of val_print.
3988 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3989 to the address argument of baseclass_offset or target_read_memory.
3990 Do add it to the argument of cp_print_value_fields.
3991
a4b8ebc8
AC
39922003-06-21 Andrew Cagney <cagney@redhat.com>
3993
3994 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3995 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3996 instead of 0..NUM_REGS.
3997 (mips_register_reggroup_p): New function.
3998 (mips_pseudo_register_write): New function.
3999 (mips_pseudo_register_read): New function.
4000 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4001 based on the register's type.
4002 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4003 cooked.
4004 (mips_get_saved_register): Simplify. Assert that REGNO is a
4005 pseudo / cooked.
4006 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4007 (mips_register_type): Replace mips_register_virtual_type. Map
4008 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4009 when available.
4010 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4011 that the register is cooked / virtual.
4012 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4013 Only get the extra info when needed.
4014 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4015 (mips32_heuristic_proc_desc): Fetch the cooked register.
4016 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4017 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4018 (mips_print_register): Use gdbarch_register_type, instead of
4019 REGISTER_VIRTUAL_TYPE.
4020 (print_gp_register_row): Use gdbarch_register_type, instead of
4021 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4022 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4023 Print the pseudo / cooked registers.
4024 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4025 Print the pseudo / cooked registers.
4026 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4027 REG_NUM is pseudo / cooked.
4028 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4029 (mips_n32n64_xfer_return_value): Ditto.
4030 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4031 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4032 (mips_register_sim_regno): New function.
4033 (mips_gdbarch_init): Set deprecated_register_byte,
4034 register_group_p, pseudo_register_write, pseudo_register_read,
4035 register_sim_regno, and num_pseudo_regs. Set register_type,
4036 instead of register_virtual_type.
4037 * Makefile.in (mips-tdep.o): Update dependencies.
4038 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4039 REGISTER_VIRTUAL_TYPE.
4040 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4041 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4042 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4043 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4044 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4045
325ed089
DJ
40462003-06-21 Daniel Jacobowitz <drow@mvista.com>
4047
4048 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4049 * cli/cli-cmds.c: Include "gdb_vfork.h".
4050 (shell_escape): Use vfork.
4051
f0e7d0e8
AC
40522003-06-21 Andrew Cagney <cagney@redhat.com>
4053
c57bb9fa
AC
4054 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4055 32 bit floating-point register saves.
4056
6e51443a
AC
4057 * frame.h (deprecated_unwind_get_saved_register): Delete.
4058 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4059 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4060 and deprecated_get_next_frame_hack instead of
4061 deprecated_unwind_get_saved_register.
4062
ed183c7c
AC
4063 * mips-tdep.c (mips_dump_tdep): Do not print
4064 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4065
f0e7d0e8
AC
4066 * frame.c (get_frame_register): New function.
4067 (frame_unwind_register_signed): New function.
4068 (get_frame_register_signed): New function.
4069 (frame_unwind_register_unsigned): New function.
4070 (get_frame_register_unsigned): New function.
4071 * frame.h: Add comments on naming schema.
4072 (get_frame_register, frame_unwind_register_signed): Declare.
4073 (get_frame_register_signed, get_frame_register_signed): Declare.
4074 (frame_unwind_register_unsigned): Declare.
4075 (get_frame_register_unsigned): Declare.
4076
2224d941
TR
40772003-06-20 Theodore A. Roth <troth@openavr.org>
4078
4079 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4080
8619218d
TR
40812003-06-20 Theodore A. Roth <troth@openavr.org>
4082
4083 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4084 (avr_read_sp): Ditto.
4085
0b1b50c0
DJ
40862003-06-20 Daniel Jacobowitz <drow@mvista.com>
4087
4088 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4089 * config/arm/nm-linux.h: Likewise.
4090 * config/arm/tm-linux.h: Likewise.
4091 * config/ia64/nm-linux.h: Likewise.
4092 * config/ia64/tm-ia64.h: Likewise.
4093 * config/s390/tm-linux.h: Likewise.
4094 * config/s390/tm-s390.h: Likewise.
4095 * s390-nat.c: Likewise.
4096 * s390-tdep.c: Likewise.
4097
4098 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4099 * config/ia64/linux.mt: Likewise.
4100 * config/m68k/linux.mh: Likewise.
4101 * config/mips/linux.mt: Likewise.
4102 * config/powerpc/linux.mh: Likewise.
4103 * config/sh/linux.mt: Likewise.
4104
c8c18e65
KW
41052003-06-19 Kris Warkentin <kewarken@qnx.com>
4106
4107 * solib.c (solib_open): Change tests for whether to search
4108 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4109 comments.
4110
dcccef2e
TR
41112003-06-19 Theodore A. Roth <troth@openavr.org>
4112
4113 * avr-tdep.c (avr_frame_address): Delete function.
4114 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4115 set_gdbarch_frame_args_address.
4116
5861a190
AC
41172003-06-19 Andrew Cagney <cagney@redhat.com>
4118
4119 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4120 (REGISTER_CONVERT_FROM_TYPE): Delete.
4121 (mips_register_convert_to_type): Delete declaration.
4122 (mips_register_convert_from_type): Delete declaration.
4123 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4124 kernel/.
4125
0274a8ce
MS
41262003-06-19 Michael Snyder <msnyder@redhat.com>
4127
4128 * linux-nat.h: New file.
4129 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 4130 * lin-lwp.c: Include linux-nat.h.
0274a8ce 4131 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 4132 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
4133 (linux_make_note_section): Iterate over lwps instead of threads.
4134 (linux_do_thread_registers): Use lwp instead of merged pid.
4135 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 4136 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
4137 Add dependency on linux_nat_h.
4138
adf5f719
TR
41392003-06-19 Theodore A. Roth <troth@openavr.org>
4140
4141 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4142
6766a268
DJ
41432003-06-19 Daniel Jacobowitz <drow@mvista.com>
4144
4145 * varobj.c (get_type, get_target_type): Use check_typedef.
4146
1171114a
DJ
41472003-06-19 Daniel Jacobowitz <drow@mvista.com>
4148
4149 * breakpoint.c (insert_catchpoint): Call internal_error.
4150
adcf68a2
TR
41512003-06-19 Theodore A. Roth <troth@openavr.org>
4152
4153 * avr-tdep.c (avr_push_dummy_code): Delete function.
4154 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4155
ea67f13b
DJ
41562003-06-19 Daniel Jacobowitz <drow@mvista.com>
4157
4158 * arch-utils.c (default_prepare_to_proceed): Remove.
4159 (generic_prepare_to_proceed): Remove.
4160 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4161 (generic_prepare_to_proceed): Remove prototype.
4162 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4163 * gdbarch.c: Regenerate.
4164 * gdbarch.h: Regenerate.
4165 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4166 * hppah-nat.c (hppa_switched_threads): Remove.
4167 * infrun.c (prepare_to_proceed): New static function, copied from
4168 generic_prepare_to_proceed. Remove select_it argument.
4169 (proceed): Call prepare_to_proceed.
4170 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4171 variables.
4172 (ptrace_wait): Don't set the removed variables.
4173 (hppa_switched_threads): Remove.
4174 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4175 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4176 (lin_lwp_prepare_to_proceed): Remove prototype.
4177 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4178 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4179
4add8633
TR
41802003-06-18 Theodore A. Roth <troth@openavr.org>
4181
4182 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4183 trad-frame.h.
4184 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4185 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4186 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4187 (AVR_PROLOGUE_*): Enumerate prologue types.
4188 (struct frame_extra_info): Remove.
4189 (struct avr_unwind_cache): Define.
4190 (avr_write_sp): Delete function.
4191 (avr_read_fp): Ditto.
4192 (avr_init_extra_frame_info): Ditto.
4193 (avr_pop_frame): Ditto.
4194 (avr_frame_saved_pc): Ditto.
4195 (avr_saved_pc_after_call): Ditto.
4196 (avr_push_return_address): Ditto.
4197 (avr_frame_chain): Ditto.
4198 (avr_store_struct_return): Ditto.
4199 (avr_push_arguments): Ditto.
4200 (avr_scan_prologue): Update comments. Changed to set up the info for
4201 cache unwinding. Now returns end of prologue PC.
4202 (avr_skip_prologue): Better handling of functions lacking a prologue
4203 by using avr_scan_prologue.
4204 (avr_scan_arg_moves): New function.
4205 (avr_saved_regs_unwinder): Ditto.
4206 (avr_frame_unwind_cache): Ditto.
4207 (avr_unwind_pc): Ditto.
4208 (avr_frame_this_id): Ditto.
4209 (avr_frame_prev_register): Ditto.
4210 (avr_frame_p): Ditto.
4211 (avr_frame_base_address ): Ditto.
4212 (avr_unwind_dummy_id): Ditto.
4213 (avr_push_dummy_code): Ditto.
4214 (push_stack_item): Ditto.
4215 (pop_stack_item): Ditto.
4216 (avr_push_dummy_call): Ditto.
4217 (struct stack_item): Define.
4218 (avr_frame_unwind): Declare structure.
4219 (avr_frame_base): Ditto.
4220 (avr_gdbarch_init): Remove calls to
4221 set_gdbarch_deprecated_init_frame_pc,
4222 set_gdbarch_deprecated_target_read_fp,
4223 set_gdbarch_deprecated_dummy_write_sp,
4224 set_gdbarch_deprecated_fp_regnum,
4225 set_gdbarch_deprecated_push_arguments,
4226 set_gdbarch_deprecated_push_return_address,
4227 set_gdbarch_deprecated_pop_frame,
4228 set_gdbarch_deprecated_store_struct_return,
4229 set_gdbarch_deprecated_frame_init_saved_regs,
4230 set_gdbarch_deprecated_init_extra_frame_info,
4231 set_gdbarch_deprecated_frame_chain,
4232 set_gdbarch_deprecated_frame_saved_pc,
4233 set_gdbarch_deprecated_saved_pc_after_call.
4234 Add calls to set_gdbarch_push_dummy_call,
4235 set_gdbarch_push_dummy_code,
4236 frame_unwind_append_predicate,
4237 frame_base_set_default,
4238 set_gdbarch_unwind_dummy_id,
4239 set_gdbarch_unwind_pc.
4240 Wrap a long line.
4241
7be04a68
MS
42422003-06-18 Corinna Vinschen <vinschen@redhat.com>
4243
4244 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4245 registers for H8/300S.
4246 (h8300_print_registers_info): Ditto.
8ffd9b1b 4247 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 4248
ae087d01
DJ
42492003-06-18 Daniel Jacobowitz <drow@mvista.com>
4250
4251 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4252 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4253 (lin_lwp_wait): Likewise. Update comments.
4254 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4255 (pull_pid_from_list, linux_record_stopped_pid): New.
4256
07d8f827
SC
42572003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4258
4259 * ada-lang.c (scan_discrim_bound): Name first argument.
4260 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4261 declared by ALL_BLOCK_SYMBOLS.
4262
7cb47b14
SC
42632003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4264
4265 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4266 ("regcache.h"): Include it.
4267 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4268
6ad8ae5c
DJ
42692003-06-17 Daniel Jacobowitz <drow@mvista.com>
4270
4271 * NEWS: Mention gdbserver detach change and "disconnect" command.
4272 * infcmd.c (disconnect_command): New function.
4273 (_initialize_infcmd): Add ``disconnect'' command.
4274 * remote.c (remote_async_detach): Delete.
4275 (remote_detach): Merge remote_async_detach.
4276 (remote_disconnect): New.
4277 (init_remote_ops): Set to_disconnect.
4278 (init_remote_cisco_ops): Likewise.
4279 (init_remote_async_ops): Likewise. Use remote_detach.
4280 * target.c (cleanup_target): Default to_disconnect.
4281 (update_current_target): Inherit to_disconnect.
4282 (target_disconnect, debug_to_disconnect): New functions.
4283 (setup_target_debug): Set to_disconnect.
4284 * target.h (struct target_ops): Add to_disconnect.
4285 (target_disconnect): Add prototype.
4286
687595f9
DJ
42872003-06-17 Daniel Jacobowitz <drow@mvista.com>
4288
4289 * breakpoint.c (insert_catchpoint): New function.
4290 (insert_breakpoints): Use catch_exceptions to call
4291 insert_catchpoint. Disable catchpoints if they fail to insert.
4292
29239a8f
DJ
42932003-06-17 Daniel Jacobowitz <drow@mvista.com>
4294
4295 * symfile.c (reread_symbols): Clear sym_private.
4296
2cdf3c63
AC
42972003-06-17 Andrew Cagney <cagney@redhat.com>
4298
4299 * trad-frame.h (struct frame_info): Add opaque declaration.
4300 * remote-fileio.h (struct cmd_list_element): Add opaque
4301 declaration.
4302 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4303 comments.
4304
cf0e1e0d
DJ
43052003-06-17 Daniel Jacobowitz <drow@mvista.com>
4306
4307 * remote.c (remote_prepare_to_store): Replace call to
4308 deprecated_read_register_bytes with multiple regcache_raw_read
4309 calls.
4310
192cdb19
KW
43112003-06-17 Kris Warkentin <kewarken@qnx.com>
4312
4313 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4314 (nto_find_and_open_solib): Likewise.
4315 (nto_init_solib_absolute_prefix): Likewise.
4316 (_initialize_nto_tdep): Fix indentation.
4317
89929b45
KW
43182003-06-17 Kris Warkentin <kewarken@qnx.com>
4319
4320 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4321
46019f27
KW
43222003-06-17 Kris Warkentin <kewarken@qnx.com>
4323
4324 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4325
1a38736e
JB
43262003-06-17 Jim Blandy <jimb@redhat.com>
4327
4328 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4329
3605c34a
TR
43302003-06-16 Theodore A. Roth <troth@openavr.org>
4331
4332 * avr-tdep.c (avr_extract_return_value): New function.
4333 (avr_gdbarch_init): Set extract_return_value method.
4334
870b3035
AC
43352003-06-16 Andrew Cagney <cagney@redhat.com>
4336
4337 * frame.h (deprecated_get_next_frame_hack): Declare.
4338 * frame.c (legacy_saved_regs_prev_register): Only require
4339 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4340 there are always saved regs.
4341 (deprecated_generic_get_saved_register): Do not require
4342 DEPRECATED_FRAME_INIT_SAVED_REGS.
4343 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4344 use frame ID unwind instead.
4345 (deprecated_get_next_frame_hack): New function.
4346
63d47a7d
CV
43472003-06-16 Corinna Vinschen <vinschen@redhat.com>
4348
4349 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4350 (h8300_push_dummy_call): ...this function. Some minor optimization.
4351 (h8300_push_return_address): Remove.
4352 (h8300_gdbarch_init): Remove calls to
4353 set_gdbarch_deprecated_dummy_write_sp,
4354 set_gdbarch_deprecated_push_arguments and
4355 set_gdbarch_deprecated_push_return_address.
4356 Add call to set_gdbarch_push_dummy_call.
4357
4bb1dc5e
CV
43582003-06-16 Corinna Vinschen <vinschen@redhat.com>
4359
4360 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4361 (E_PSEUDO_EXR_REGNUM): Ditto.
4362 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 4363 registers into safe registers.
4bb1dc5e
CV
4364 (h8300_skip_prologue): Check for stm instruction to push registers
4365 used for register variables onto stack.
4366 (gdb_print_insn_h8300): Remove.
4367 (h8300_examine_prologue): Add a comment.
4368 (h8300_register_name): Take pseudo registers into account.
4369 (h8300s_register_name): Ditto.
4370 (h8300sx_register_name): Ditto.
4371 (h8300_print_register): Ditto.
4372 (h8300_print_registers_info): Define "nice" printing order.
4373 (h8300_saved_pc_after_call): Take pseudo registers into account.
4374 (h8300_register_type): Ditto. Return type used for remote connection
4375 when requesting real CCR or EXR register, return actual type when
4376 requesting pseudo CCR or EXR.
4377 (h8300_pseudo_register_read): New function.
4378 (h8300_pseudo_register_write): Ditto.
4379 (h8300_dbg_reg_to_regnum): Ditto.
4380 (h8300s_dbg_reg_to_regnum): Ditto.
4381 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4382 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4383 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4384 set_gdbarch_print_insn architecture dependent.
4385 Call set_gdbarch_pseudo_register_read and
4386 set_gdbarch_pseudo_register_write.
4387 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4388
a59fe496
AC
43892003-06-16 Andrew Cagney <cagney@redhat.com>
4390
4391 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4392 * gdbarch.h, gdbarch.c: Re-generate.
4393 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4394 * s390-tdep.c (s390_gdbarch_init): Update.
4395 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4396 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4397 * mips-tdep.c (mips_gdbarch_init): Update.
4398 * mcore-tdep.c (mcore_gdbarch_init): Update.
4399 * cris-tdep.c (cris_gdbarch_init): Update.
4400 * infcall.c (call_function_by_hand): Update.
4401 * ia64-tdep.c (ia64_push_arguments): Update comment.
4402 * frame.c (legacy_get_prev_frame): Do not assume
4403 SAVE_DUMMY_FRAME_TOS_P.
4404 * dummy-frame.c (find_dummy_frame): Update comment.
4405
6f4e5a41
AC
44062003-06-16 Andrew Cagney <cagney@redhat.com>
4407
4408 * regcache.c (do_cooked_read): Do not use register_valid_p.
4409
72fab697
TR
44102003-06-15 Theodore A. Roth <troth@openavr.org>
4411
4412 * avr-tdep.c (avr_register_type): Remove a blank line.
4413 (avr_scan_prologue): Correct some comments.
4414
e3d8b004
TR
44152003-06-15 Theodore A. Roth <troth@openavr.org>
4416
4417 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4418 prologue types.
8ffd9b1b 4419 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
4420 option.
4421 Add code to scan -mcall-prologues for mega devices.
4422
866b76ea
TR
44232003-06-15 Theodore A. Roth <troth@openavr.org>
4424
4425 * avr-tdep.c (avr_register_byte): Delete function.
4426 (avr_register_raw_size): Delete function.
4427 (avr_register_virtual_size): Delete function.
4428 (avr_register_virtual_type): Delete function.
4429 (avr_register_type): New function.
4430 (avr_address_to_pointer): Remove unused code.
4431 (avr_read_fp): Need to read FP as two separate bytes due to change to
4432 avr_register_type() usage.
4433 (avr_gdbarch_init): Don't set deprecated_register_size.
4434 Don't set deprecated_register_bytes.
4435 Don't set deprecated_register_byte.
4436 Don't set deprecated_register_raw_size.
4437 Don't set deprecated_max_register_raw_size.
4438 Don't set deprecated_register_virtual_size.
4439 Don't set deprecated_max_register_virtual_size.
4440 Don't set deprecated_register_virtual_type.
4441 Set register_type method.
4442
3993f6b1
DJ
44432003-06-15 Daniel Jacobowitz <drow@mvista.com>
4444
4445 * Makefile.in (linux-nat.o): Add rule.
4446 * linux-nat.c: New file.
4447 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4448 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4449 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4450 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4451 * config/arm/linux.mh (NATDEPFILES): Likewise.
4452 * config/i386/linux.mh (NATDEPFILES): Likewise.
4453 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4454 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4455 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4456 * config/mips/linux.mh (NATDEPFILES): Likewise.
4457 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4458 * config/s390/s390.mh (NATDEPFILES): Likewise.
4459 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4460
786a90bb
MK
44612003-06-15 Mark Kettenis <kettenis@gnu.org>
4462
4463 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4464 replace out-of-date comment.
4465
3bd3f01e
AC
44662003-06-15 Andrew Cagney <cagney@redhat.com>
4467
4468 * rdi-share/host.h (Fail): Change to a varargs function.
4469 * remote-rdi.c (Fail): Update.
8ffd9b1b 4470
de5b9bb9
MK
44712003-06-15 Mark Kettenis <kettenis@gnu.org>
4472
4473 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4474 (i386_convert_register_p, i386_register_to_value,
4475 i386_register_from_value): Handle types longer than 8 bytes.
4476
d532c08f
MK
44772003-06-15 Mark Kettenis <kettenis@gnu.org>
4478
4479 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4480 Move floating-point code to new function in i387-tdep.c.
4481 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4482 New functions containing code moved here from i386-tdep.c.
4483 * i387-tdep.h: Add opaque declaration for `struct type'.
4484 (i387_register_to_value, i387_value_to_register): New prototypes.
4485 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4486 (x86_64_init_abi): Set convert_register_p, register_to_value and
4487 value_to_register here.
8ffd9b1b 4488
42c466d7
AC
44892003-06-14 Andrew Cagney <cagney@redhat.com>
4490
4491 * mips-tdep.c (mips_register_to_value): Make static.
4492 (mips_value_to_register): Make static.
4493 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4494 * ia64-tdep.c (ia64_register_raw_size): Make static.
4495 (ia64_register_virtual_size): Make static.
4496 (ia64_register_byte): Make static.
4497 * i387-tdep.c: Include "i387-tdep.h".
4498 (print_387_control_word): Delete function.
4499 (print_387_status_word): Delete function.
4500 (print_387_status_bits): Delete function.
4501 (print_387_control_bits): Delete function.
4502 * Makefile.in (i387-tdep.o): Update dependencies.
4503 * rdi-share/host.h (Fail): Declare.
4504 * remote-rdi.c (Fail): Update to match declaration.
4505
2a9cda49
AC
45062003-06-14 Andrew Cagney <cagney@redhat.com>
4507
4508 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4509 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4510 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4511 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4512 * README: Delete reference to remote-array.
4513 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4514 (remote-array.o): Delete target.
4515 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4516 * remote-array.c: Delete file.
4517
ff2e87ac
AC
45182003-06-14 Andrew Cagney <cagney@redhat.com>
4519 Mark Kettenis <kettenis@gnu.org>
4520
4521 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4522 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4523 parameter with "frame".
4524 * gdbarch.h, gdbarch.c: Re-generate.
4525 * frame.h (put_frame_register): Declare.
4526 * frame.c (put_frame_register): New function.
4527 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4528 (legacy_register_to_value): Rewrite, use "frame" to get the
4529 register value.
4530 (legacy_value_to_register): Rewrite, use "frame" to find the
4531 register's location before storing.
4532 * arch-utils.h (legacy_convert_register_p): Update.
4533 (legacy_register_to_value, legacy_value_to_register): Update.
4534 * findvar.c (value_from_register): Rewrite, eliminate use of
4535 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4536 "frame" to REGISTER_TO_VALUE.
4537 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4538 lval_reg_frame_relative + lval_register branch of the switch. Do
4539 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4540 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4541 I386_EDI_REGNUM): New defines.
4542 (i386_next_regnum, i386_convert_register_p,
4543 i386_register_to_value, i386_value_to_register): New functions.
4544 (i386_register_convertible, i386_register_convert_to_virtual,
4545 i386_convert_to_raw): Remove functions.
4546 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4547 value_to_register instead of register_convertible,
4548 register_convert_to_virtual and register_convert_to_raw.
4549 * mips-tdep.c (mips_convert_register_p): New function.
4550 (mips_value_to_register): Replace mips_register_convert_from_type.
4551 (mips_register_to_value): Replace mips_register_convert_to_type.
4552 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4553 register_to_value.
4554 * alpha-tdep.c (alpha_convert_register_p): Update.
4555 (alpha_value_to_register): Update, store the register.
4556 (alpha_register_to_value): Update, fetch the register.
4557
98be1e77
TR
45582003-06-14 Theodore A. Roth <troth@openavr.org>
4559
4560 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4561 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4562 Don't set deprecated_call_dummy_words.
4563 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4564 Don't set remote_translate_xfer_address.
4565 (avr_io_reg_read_command): Remove commented out debug printf.
4566 Wrap a long line.
4567
57bc6122
TR
45682003-06-14 Theodore A. Roth <troth@openavr.org>
4569
4570 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4571 causes gdb to seg fault.
4572
eb01fc62
DJ
45732003-06-14 Daniel Jacobowitz <drow@mvista.com>
4574
4575 * sparc-nat.c (fetch_inferior_registers): Correct
4576 a reference to "registers".
4577
3b3e6bee
DJ
45782003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4579
4580 * Makefile.in (exc_request_U_h): Define
4581 (exc_request_S_h): Likewise.
4582 (msg_reply_S_h): Likewise.
4583 (msg_U_h): Likewise.
4584 (notify_S_h): Likewise.
4585 (process_reply_S_h): Likewise.
4586 (gnu-nat.o): Depend on gdb_obstack_h
4587 * gnu-nat.c: Include "gdb_obstack.h".
4588
b8de8283
AC
45892003-06-13 Andrew Cagney <cagney@redhat.com>
4590
4591 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4592 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 4593
f3be58bc
AC
45942003-06-13 Andrew Cagney <cagney@redhat.com>
4595
4596 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4597 when deprecated REGISTER macros can be deleted.
4598 * gdbarch.h, gdbarch.c: Re-generate.
4599
4c0122c8
JB
46002003-06-13 Jim Blandy <jimb@redhat.com>
4601
4602 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4603 Linux entry point symbols for _dl_debug_state, too.
4604
3e210248
AC
46052003-06-13 Andrew Cagney <cagney@redhat.com>
4606
4607 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4608 available, do not use the FP register, and always save the TOS.
4609 * dummy-frame.c (dummy_frame_this_id): Do not assert
4610 SAVE_DUMMY_FRAME_TOS.
4611 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4612 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4613 (i386_push_dummy_call): Add 8 to the returned SP.
4614 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4615 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4616 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4617 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4618 (x86_64_push_dummy_call): Return "sp + 16".
4619 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4620 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4621 save_dummy_frame_tos.
4622
0b65af49
JB
46232003-06-13 Jim Blandy <jimb@redhat.com>
4624
4625 * frv-tdep.c (frv_use_struct_convention): Delete static
4626 declaration for function deleted in my change of 2003-06-12.
4627
4ea2465e
TR
46282003-06-13 Theodore A. Roth <troth@openavr.org>
4629
4630 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4631 (avr_pointer_to_address): Shift code addrs left 1 bit.
4632 (avr_convert_from_func_ptr_addr): Delete function since operation is
4633 better handled by avr_address_to_pointer and avr_pointer_to_address.
4634 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4635
1581182a
MK
46362003-06-13 Mark Kettenis <kettenis@gnu.org>
4637
4638 From Kelley Cook <kelleycook@wideopenwest.com>:
4639 * configure.host: Accept i[34567]86 variants.
4640 * configure.tgt: Likewise.
4641 * nlm/configure.in: Likewise.
4642 * nlm/configure: Regenerated.
4643
7aa1783e
RE
46442003-06-13 Richard Earnshaw <rearnsha@arm.com>
4645
4646 * arm-tdep.c (solib-svr4.h): Dont' include it.
4647 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4648 * arm-linux-tdep.c: ... here. Make static.
4649 (arm_linux_init_abi): Register it.
4650 (solib-svr4.h): Include it.
4651 * Makefile.in: Update dependencies.
4652 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4653 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4654
0261a0d0
CV
46552003-06-13 Corinna Vinschen <vinschen@redhat.com>
4656
4657 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4658 indicate registers used for return values.
4659 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4660 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4661 members.
4662 (h8300_init_extra_frame_info): Ditto.
4663 (h8300_frame_locals_address): Removed.
4664 (h8300_frame_args_address): Removed.
4665 (h8300_extract_return_value): Use new regcache structure. Only care
4666 for 16 bit CPUs.
4667 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4668 (h8300_store_return_value): Use new regcache structure. Only care
4669 for 16 bit CPUs.
4670 (h8300h_store_return_value): Same function for 32 bit CPUs.
4671 (h8300_store_struct_return): Removed.
4672 (h8300_extract_struct_value_address): Use new regcache structure.
4673 (h8300h_extract_struct_value_address): Removed.
4674 (h8300_push_dummy_code): New function.
4675 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4676 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4677 set_gdbarch_store_return_value architecture dependent.
4678 Call set_gdbarch_push_dummy_code and
4679 set_gdbarch_extract_struct_value_address.
4680 Remove calls to set_gdbarch_frame_args_address,
4681 set_gdbarch_frame_locals_address,
4682 set_gdbarch_deprecated_store_struct_return,
4683 set_gdbarch_deprecated_extract_return_value,
4684 set_gdbarch_deprecated_extract_struct_value_address,
4685 set_gdbarch_deprecated_call_dummy_words and
4686 set_gdbarch_deprecated_sizeof_call_dummy_words.
4687
055c394a
CV
46882003-06-13 Corinna Vinschen <vinschen@redhat.com>
4689
4690 * h8300-tdep.c (h8300_register_byte): Remove.
4691 (h8300h_register_byte): Remove.
4692 (h8300_register_virtual_type): Remove. Substitute by...
4693 (h8300_register_type): New function.
4694 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4695 (h8300h_extract_struct_value_address): Ditto.
4696 (h8300_gdbarch_init): Drop calls to
4697 set_gdbarch_deprecated_register_byte and
4698 set_gdbarch_deprecated_register_virtual_type.
4699 Add call to set_gdbarch_register_type.
4700
9c04cab7
AC
47012003-06-13 Andrew Cagney <cagney@redhat.com>
4702
4703 * gdbarch.sh: Update comments on registers.
4704 (deprecated_register_byte): Rename register_byte.
4705 (deprecated_register_raw_size): Rename register_raw_size.
4706 (deprecated_register_virtual_size): Rename register_virtual_size.
4707 (deprecated_register_virtual_type): Rename register_virtual_type.
4708 * gdbarch.h, gdbarch.c: Re-generate.
4709 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4710 * vax-tdep.c (vax_gdbarch_init): Update.
4711 * v850-tdep.c (v850_gdbarch_init): Update.
4712 * sparc-tdep.c (sparc_gdbarch_init): Update.
4713 * sh-tdep.c (sh_gdbarch_init): Update.
4714 * s390-tdep.c (s390_gdbarch_init): Update.
4715 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4716 * ns32k-tdep.c: Update.
4717 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4718 * mips-tdep.c (mips_gdbarch_init): Update.
4719 * mcore-tdep.c (mcore_gdbarch_init): Update.
4720 * m68k-tdep.c (m68k_gdbarch_init): Update.
4721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4722 * ia64-tdep.c (ia64_gdbarch_init): Update.
4723 * hppa-tdep.c (hppa_gdbarch_init): Update.
4724 * h8300-tdep.c (h8300_gdbarch_init): Update.
4725 * frv-tdep.c (frv_gdbarch_init): Update.
4726 * cris-tdep.c (cris_gdbarch_init): Update.
4727 * avr-tdep.c (avr_gdbarch_init): Update.
4728 * alpha-tdep.c (alpha_gdbarch_init): Update.
4729 * arm-tdep.c (arm_gdbarch_init): Update.
4730
b060cbea
AC
47312003-06-13 Andrew Cagney <cagney@redhat.com>
4732
4733 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4734 mips_o32_use_struct_convention with always_use_struct_convention.
4735
0fc9922a
DC
47362003-06-12 David Carlton <carlton@kealia.com>
4737
4738 * cp-namespace.c (cp_set_block_scope): Comment out
4739 processing_has_namespace_info branch.
4740
1fd35568
JB
47412003-06-12 Jim Blandy <jimb@redhat.com>
4742
f470a70a
JB
4743 Recognize and skip 64-bit PowerPC Linux linkage functions.
4744 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4745 insn_pattern, insns_match_pattern, d_field, ds_field): New
4746 functions, macros, and types for working with PPC instructions.
4747 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4748 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4749 ppc64_skip_trampoline_code): New functions, variables, and macros
4750 for recognizing and skipping linkage functions.
4751 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4752 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4753
49ff75ad
JB
4754 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4755 register offsets for both the 32- and 64-bit interfaces.
4756
bd918c83
JB
4757 Actually finish the job started by my change of 2003-05-29.
4758 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4759 other #definition of this.
4760 (ppc_linux_skip_trampoline_code): Remove declaration.
4761 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4762 static.
4763 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4764 method for GDBARCH.
4765
4766 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4767 'long' on ppc64-*-linux*.
4768
f8c59253
JB
4769 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4770 isn't #defined, assume the register doesn't exist: act as if
4771 tdep->ppc_mq_regnum were -1.
4772
8fbb30b1
JB
4773 * configure.host, configure.tgt: Add entries for
4774 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4775 powerpc/linux.mt.
4776 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4777 New files.
4778
1fd35568
JB
4779 * arch-utils.c (always_use_struct_convention): New function.
4780 * arch-utils.h (always_use_struct_convention): New prototype.
4781 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4782 (alpha_gdbarch_init): Register always_use_struct_convention,
4783 instead of alpha_use_struct_convention.
4784 * cris-tdep.c (cris_use_struct_convention): Delete.
4785 (cris_gdbarch_init): Register always_use_struct_convention,
4786 instead of cris_use_struct_convention.
4787 * frv-tdep.c (frv_use_struct_convention): Delete.
4788 (frv_gdbarch_init): Register always_use_struct_convention,
4789 instead of frv_use_struct_convention.
4790 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4791 (h8300_gdbarch_init): Register always_use_struct_convention,
4792 instead of h8300_use_struct_convention.
e3305dd9 4793 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
4794 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4795 instead of mips_o32_use_struct_convention.
4796
e14e6e9c
AC
47972003-06-12 Andrew Cagney <cagney@redhat.com>
4798
4799 * wince.c: Include "mips-tdep.h".
4800 * mips-tdep.h (mips_next_pc): Declare.
4801 * mcore-tdep.c: Make more local functions static.
4802 * Makefile.in (wince.o): Update dependencies.
4803
2335f48e
DC
48042003-06-12 David Carlton <carlton@kealia.com>
4805
4806 * symtab.c (lookup_symbol_aux_minsyms): Replace
4807 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4808 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4809 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4810 SYMBOL_NATURAL_NAME.
4811
f70a7d61
AS
48122003-06-12 Andreas Schwab <schwab@suse.de>
4813
4814 * Makefile.in (tuiDisassem.o): Update dependencies.
4815
b6429628
DC
48162003-06-12 David Carlton <carlton@bactrian.org>
4817
4818 * symtab.h: Delete declaration of make_symbol_overload_list.
4819 Add declaration of lookup_partial_symbol.
4820 * symtab.c (remove_params): Move to cp-support.c.
4821 (overload_list_add_symbol, make_symbol_overload_list)
4822 (sym_return_val_size, sym_return_val_index): Ditto.
4823 (lookup_partial_symbol): Make extern.
4824 * cp-support.h: Add declaration of make_symbol_overload_list.
4825 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4826 symtab.h, and block.h.
4827 (remove_params): Move here from symtab.c.
4828 (overload_list_add_symbol, make_symbol_overload_list)
4829 (sym_return_val_size, sym_return_val_index): Ditto.
4830 * valops.c: Include cp-support.h.
4831 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4832 frame_h, and block_h.
4833 (valops.o): Depend on cp_support_h.
4834
084edea5
CV
48352003-06-12 Corinna Vinschen <vinschen@redhat.com>
4836
4837 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4838 substitute by NUM_REGS throughout.
4839 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4840 (h8300s_register_name): New function for H8S registers.
4841 (h8300sx_register_name): Ditto for H8SX registers.
4842 (h8300_print_register): Revise register printing, avoid depending
4843 on 32 bit long.
0261a0d0 4844 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
4845 (h8300h_register_byte): New function for any other architecture.
4846 (h8300_register_raw_size): Remove.
4847 (h8300_register_virtual_type): Revise to return actually useful
4848 type.
4849 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4850 (h8300h_extract_struct_value_address): New function for any other
4851 architecture.
4852 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4853 set_gdbarch_register_name, set_gdbarch_register_byte,
4854 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4855 Remove calls to set_gdbarch_deprecated_register_size,
4856 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4857 set_gdbarch_deprecated_max_register_raw_size,
4858 set_gdbarch_register_virtual_size and
4859 set_gdbarch_deprecated_max_register_virtual_size entirely.
4860 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4861 set_gdbarch_long_double_bit.
4862
06194148
JJ
48632003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4864
8ffd9b1b
AJ
4865 * doublest.c (convert_doublest_to_floatformat): When dealing
4866 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
4867 processing a full 32 bits of mantissa.
4868
de4f826b
DC
48692003-06-11 David Carlton <carlton@bactrian.org>
4870
4871 * dictionary.h: New.
4872 * dictionary.c: New.
4873 * block.h: Add opaque declaration for struct dictionary.
4874 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4875 'sym' members.
4876 (BLOCK_DICT): New macro.
4877 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4878 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4879 BLOCK_SHOULD_SORT.
4880 (ALL_BLOCK_SYMBOLS): Update definition.
4881 * Makefile.in (SFILES): Add dictionary.c.
4882 (dictionary_h): New.
4883 (COMMON_OBS): Add dictionary.o.
4884 (dictionary.o): New.
4885 (ada-lang.o): Depend on dictionary_h.
4886 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4887 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4888 (mi-cmd-stack.o): Ditto.
4889 (gdbtk-cmds.o): Update dependencies.
4890 (gdbtk-stack.o): Ditto.
4891 * ada-lang.c: Include dictionary.h.
4892 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4893 (fill_in_ada_prototype, debug_print_block): Ditto.
4894 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4895 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4896 'is_sorted'.
4897 * mdebugread.c: Include dictionary.h.
4898 (struct parse_stack): Delete 'maxsyms' member.
4899 (parse_symbol): Update calls to new_block. Delete calls to
4900 shrink_block. Use dictionary methods.
4901 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4902 Update calls to new_symtab. Don't maintain maxsyms data.
4903 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4904 (add_symbol): Just call dict_add_symbol.
4905 (new_symtab): Delete 'maxsyms' argument.
4906 (new_symtab): Update calls to new_block.
4907 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4908 (shrink_block): Delete function.
4909 (fixup_sigtramp): Update call to new_block. Add symbol via
4910 dict_add_symbol.
4911 * jv-lang.c: Include dictionary.h.
4912 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4913 appropriately. Set class_symtab->free_func. Make sure the
4914 blockvector is big enough to hold two blocks.
4915 (add_class_symtab_symbol): Use dictionary methods.
4916 (free_class_block): New function.
4917 (type_from_class): Replace explicit iteration by
4918 ALL_BLOCK_SYMBOLS.
4919 * symtab.h (struct symtab): Replace 'free_ptr' method by
4920 'free_func'.
4921 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4922 sort_symtab_syms.
4923 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4924 sort_symtab_syms.
4925 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4926 Include dictionary.h.
4927 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4928 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4929 sort_symtab_syms.
4930 * objfiles.c: Include dictionary.h.
4931 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4932 * buildsym.c: Include dictionary.h.
4933 (finish_block): Use dictionary methods.
4934 (end_symtab): Set free_func to NULL, not free_ptr.
4935 * tracepoint.c: Include dictionary.h.
4936 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4937 (scope_info): Ditto.
4938 * stack.c: Include dictionary.h.
4939 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4940 (print_block_frame_labels, print_frame_arg_vars)
4941 (print_frame_args): Ditto.
4942 * symmisc.c (free_symtab_block): Use dictionary methods.
4943 (dump_symtab): Ditto.
4944 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4945 Include dictionary.h.
4946 * symfile.h: Delete declarations of sort_block_syms,
4947 sort_symtab_syms.
4948 * symfile.c (sort_block_syms): Delete.
4949 (sort_symtab_syms): Delete.
4950 * symtab.c: Include dictionary.h.
4951 (lookup_block_symbol): Use dictionary iterators.
4952 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4953 (search_symbols, make_symbol_completion_list): Ditto.
4954 (make_symbol_overload_list): Ditto.
4955 * valops.c (value_of_local): Use dict_empty.
4956 Include dictionary.h.
4957
a31f978c
JB
49582003-06-11 J. Brobecker <brobecker@gnat.com>
4959
4960 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4961
526e70c0
DC
49622003-06-11 David Carlton <carlton@bactrian.org>
4963
4964 * block.h (BLOCK_SHOULD_SORT): Delete.
4965 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4966 blocks.
4967 * ada-lang.c (ada_add_block_symbols): Ditto.
4968 * symfile.c (sort_block_syms): Delete.
4969 (sort_symtab_syms): Ditto.
4970 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4971 declarations.
4972 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4973 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4974 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4975 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4976 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4977 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4978 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4979
33c08150
JJ
49802003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4981
8ffd9b1b 4982 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
4983 bits to 128.
4984
781a750d
AC
49852003-06-11 Andrew Cagney <cagney@redhat.com>
4986
4987 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4988 REGISTER_CONVERTIBLE.
4989 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4990 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4991 * gdbarch.h, gdbarch.c: Re-generate.
4992 * arch-utils.h (deprecated_register_convertible_not): Rename
4993 generic_register_convertible_not.
4994 * arch-utils.c (deprecated_register_convertible_not): Rename
4995 generic_register_convertible.
4996 (legacy_convert_register_p, legacy_register_to_value): Update.
4997 * sh-tdep.c (sh64_push_arguments): Update.
4998 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4999 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5000 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5001 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5002 * arch-utils.c (legacy_value_to_register): Update.
5003 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5004 (rs6000_register_convert_to_raw): Make parameter "from" const.
5005 * mips-tdep.c (mips_gdbarch_init): Update.
5006 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5007 * infcmd.c (default_print_registers_info): Update.
5008 * ia64-tdep.c (ia64_gdbarch_init): Update.
5009 (ia64_register_convert_to_raw): Make parameter "from" const.
5010 * i386-tdep.c (i386_gdbarch_init): Update.
5011 (i386_register_convert_to_raw): Update.
5012
cd90e54f
AC
50132003-06-11 Andrew Cagney <cagney@redhat.com>
5014
5015 * remote-fileio.c: Include "remote-fileio.h".
5016 * Makefile.in (remote-fileio.o): Update dependencies.
5017 (remote_fileio_h): Fix typo.
5018
a78f21af
AC
50192003-06-11 Andrew Cagney <cagney@redhat.com>
5020
5021 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5022 (xstormy16_save_dummy_frame_tos): Make static.
5023 (_initialize_xstormy16_tdep): Add declaration.
5024 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5025 * v850-tdep.c: Make local functions static.
5026 (_initialize_v850_tdep): Add declaration.
5027 * sparc-tdep.c: Make local functions static.
5028 (_initialize_sparc_tdep): Add declaration.
5029 * sh-tdep.c: Make local functions static.
5030 (_initialize_sh_tdep): Add declaration.
5031 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5032 * s390-tdep.c: Make local functions static.
5033 (_initialize_s390_tdep): Add declaration.
5034 * dbxread.c (find_stab_function_addr): Make static.
5035 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5036 * ocd.c (_initialize_remote_ocd): Add declaration.
5037 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5038 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5039 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5040 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5041 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5042 * remote-array.c (_initialize_array): Add declaration.
5043 (_initialize_remote_monitors): Add declaration.
5044 * remote-mips.c: Make local functions static.
5045 (_initialize_remote_mips): Add declaration.
5046 * mcore-tdep.c: Make all local functions static.
5047 (_initialize_mcore_tdep): Add declaration.
5048 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5049 * abug-rom.c (_initialize_abug_rom): Add declaration.
5050 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5051 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5052 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5053 * remote-est.c (_initialize_est): Add declaration.
5054 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5055 (m68hc11_call_dummy_address): Make static.
5056 * ia64-tdep.c: Make local functions static.
5057 (_initialize_ia64_tdep): Add declaration.
5058 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5059 * monitor.c (monitor_wait_filter): Make static.
5060 (_initialize_remote_monitors): Add declaration.
5061 * remote-hms.c (_initialize_remote_hms): Add declaration.
5062 * remote-e7000.c (fetch_regs_from_dump): Make static.
5063 (expect_n): Make static.
5064 (_initialize_remote_e7000): Add declaration.
5065 * ser-e7kpc.c: Always include "defs.h".
5066 (_initialize_ser_e7000pc): Add declaration.
5067 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5068 * cris-tdep.c: Make all but one function static.
5069 (_initialize_cris_tdep): Add declaration.
5070 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5071 * solib.c (update_solib_list): Make static.
5072 (_initialize_solib): Add declaration.
5073 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5074 (_initialize_avr_tdep): Add declaration.
5075 * remote-rdi.c (voiddummy): Make static.
5076 (_initialize_remote_rdi): Add declaration.
5077 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5078 * remote-rdp.c (send_rdp): Make static.
5079 (_initialize_remote_rdp): Add declaration.
5080 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5081
cbcdb1f5
CV
50822003-06-11 Corinna Vinschen <vinschen@redhat.com>
5083
5084 * remote-fileio.c: Make ari happy.
5085
a191ea8d
JB
50862003-06-10 J. Brobecker <brobecker@gnat.com>
5087
5088 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5089 fetching the trailing bytes of the buffer we are about to write.
5090
0ef75e11
AC
50912003-06-10 Andrew Cagney <cagney@redhat.com>
5092
5093 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5094 * Makefile.in (remote-fileio.o): Update dependencies.
5095 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5096 include <setjmp.h>, or <sys/types.h> conditional on USG.
5097 (remote_fio_jmp_buf): Delete global variable.
5098
449092f6 50992003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 5100 Martin M. Hunt <hunt@redhat.com>
449092f6 5101
559fa028
AC
5102 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5103 (SFILES): Add remote-fileio.c.
5104 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5105 dependencies for building remote.o.
449092f6
CV
5106 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5107 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 5108 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
5109 static storage class.
5110 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5111 'F' packet.
5112 (_initialize_remote): Call initialize_remote_fileio().
5113 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
5114 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5115 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5116 (captured_main): Initialize new ui_files.
5117 * ui-file.c: Add read and fgets input functions.
5118 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5119 (null_file_read): New function.
5120 (ui_file_read): New function.
5121 (set_ui_file_read): New function.
5122 (stdio_file_read): New function.
5123 * ui-file.h: New type ui_file_read_ftype.
5124 (set_ui_file_read): Declare.
5125 (ui_file_read): Declare.
5126
248de703
AC
51272003-06-09 Andrew Cagney <cagney@redhat.com>
5128
5129 * frame.h (deprecated_unwind_get_saved_register): Rename
5130 generic_unwind_get_saved_register, update comments.
5131 * mips-tdep.c (mips_get_saved_register): Update.
5132 * frame.c (deprecated_unwind_get_saved_register): Update.
5133
0ed8aa57
AC
51342003-06-09 Andrew Cagney <cagney@redhat.com>
5135
5136 * vax-tdep.c (vax_frame_locals_address): Delete function.
5137 (vax_gdbarch_init): Do not set frame_locals_address.
5138 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5139 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5140 * s390-tdep.c (s390_frame_args_address): Delete function.
5141 (s390_gdbarch_init): Do not set frame_args_address or
5142 frame_locals_address.
5143 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5144 (ns32k_gdbarch_init): Do not set frame_locals_address.
5145 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5146 (hppa_frame_locals_address): Delete function.
5147 (hppa_gdbarch_init): Do not set frame_args_address, or
5148 frame_locals_address.
5149 * arm-tdep.c (arm_frame_args_address): Delete.
5150 (arm_frame_locals_address): Delete.
5151 (arm_gdbarch_init): Do not set frame_args_address, or
5152 frame_locals_address.
5153
983a287a
AC
51542003-06-09 Andrew Cagney <cagney@redhat.com>
5155
5156 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5157 * gdbarch.h, gdbarch.c: Re-generate.
5158 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5159 * arch-utils.c (frame_num_args_unknown): Delete function.
5160 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5161 (frame_info): Use FRAME_NUM_ARGS_P.
5162 * arm-tdep.c (arm_frame_num_args): Delete function.
5163 (arm_gdbarch_init): Do not set frame_num_args.
5164 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5165 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5166 (hppa_gdbarch_init): Do not set frame_num_args.
5167 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5168 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5169 frame_num_args to default frame_num_args_unknown.
5170 * v850-tdep.c (v850_gdbarch_init): Ditto.
5171 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5172 * sh-tdep.c (sh_gdbarch_init): Ditto.
5173 * s390-tdep.c (s390_gdbarch_init): Ditto.
5174 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5175 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5176 * mips-tdep.c (mips_gdbarch_init): Ditto.
5177 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5178 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5180 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5181 * i386-tdep.c (i386_gdbarch_init): Ditto.
5182 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5183 * frv-tdep.c (frv_gdbarch_init): Ditto.
5184 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5185 * cris-tdep.c (cris_gdbarch_init): Ditto.
5186 * avr-tdep.c (avr_gdbarch_init): Ditto.
5187 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5188
8d3b0994
AC
51892003-06-09 Andrew Cagney <cagney@redhat.com>
5190
5191 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5192 (print_frame_args): Moved to "stack.c".
5193 * stack.c: Include "gdb_assert.h".
5194 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5195 (print_frame_args): Moved from "printcmd.c".
5196 * frame.h (print_frame_args): Delete declaration.
5197 * Makefile.in (stack.o): Update dependencies.
5198
25e3a86b
AC
51992003-06-08 Andrew Cagney <cagney@redhat.com>
5200
5201 * frame.c (get_prev_frame): Remove reference to
5202 frame_args_address_correct in comments.
5203 * frame-base.c (default_frame_args_address): Delete code
5204 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5205 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5206 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5207 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5208 (vax_frame_args_address_correct): Delete declaration.
5209
a9e5fdc2
AC
52102003-06-08 Andrew Cagney <cagney@redhat.com>
5211
5212 * gdbarch.sh (UNWIND_SP): Add.
5213 * gdbarch.h, gdbarch.c: Re-generate.
5214 * frame.c (frame_sp_unwind): New function.
5215 (get_frame_sp): New function.
5216 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5217 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5218 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5219 value.
5220 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5221 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5222
8983bd83
AC
52232003-06-08 Andrew Cagney <cagney@redhat.com>
5224
7fec2c59
AC
5225 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5226 REMOTE_BREAKPOINT.
5227 * remote.c: Update.
5228 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5229 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5230 * config/m68k/tm-sun3.h: Update.
5231 * config/m68k/tm-m68klynx.h: Update.
5232 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5233
8983bd83
AC
5234 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5235 trad_frame". Update comments.
5236 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5237 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5238 (trad_frame_register_value, trad_frame_prev_register): Update.
5239
b9362cc7
AC
52402003-06-08 Andrew Cagney <cagney@redhat.com>
5241
5242 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5243 from GCC's acinclude.m4.
5244 * configure.in: Check for getopt's delcaration.
8ffd9b1b 5245 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
5246 * main.c (error_init): Delete declaration.
5247 * defs.h (error_init): Declare.
5248 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5249 (rs6000_convert_from_func_ptr_addr): Make static.
5250 (_initialize_rs6000_tdep): Add declaration.
5251 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5252 (show_commands, set_verbose, show_history): Delete declaration.
5253 * top.h (set_verbose): Add declaration.
5254 (show_history, set_history, show_commands): Add declaration.
5255 (do_restore_instream_cleanup): Add declaration.
5256 * objc-lang.c (specialcmp): Make static.
5257 (print_object_command): Make static.
5258 (find_objc_msgsend): Make static.
5259 (find_objc_msgcall_submethod_helper): Make static.
5260 (find_objc_msgcall_submethod): Make static.
5261 (_initialize_objc_language): Add declaration.
5262 (find_implementation_from_class): Make static.
5263 (find_implementation): Make static.
5264 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5265 * objc-lang.h (lookup_struct_typedef): Add declaration.
5266 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5267 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5268 (do_restore_user_call_depth): Make static.
5269 (do_restore_instream_cleanup): Delete declaration.
5270 (dont_repeat): Delete declaration.
5271 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5272 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5273 * reggroups.c (_initialize_reggroup): Add declaration.
5274 * cp-support.c (_initialize_cp_support): Add declaration.
5275 * cp-abi.c (_initialize_cp_abi): Add declaration.
5276 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5277 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5278 (_initialize_gnu_v3_abi): Add declaration.
5279 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5280 (_initialize_gnu_v2_abi): Add declaration.
5281 * frame-base.c (_initialize_frame_base): Add declaration.
5282 * doublest.c (floatformat_from_length): Make static.
5283 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5284 * frame.c (create_sentinel_frame): Make static.
5285 (_initialize_frame): Add declaration.
5286 * top.c (do_catch_errors): Make static.
5287 (gdb_rl_operate_and_get_next_completion): Make static.
5288 * typeprint.c: Include "typeprint.h".
5289 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5290 (sentinel_frame_this_id): Make static.
5291 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5292 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5293 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5294 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5295 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5296 * maint.c (maintenance_print_architecture): Make static.
5297 * signals/signals.c (_initialize_signals): Add declaration.
5298 * std-regs.c (_initialize_frame_reg): Add declaration.
5299 * jv-exp.y (push_variable): ISO C definition.
5300 (push_qualified_expression_name): Ditto.
5301 * memattr.c (_initialize_mem): Add declaration.
5302 * remote.c (remote_check_watch_resources): Make static.
5303 (remote_stopped_by_watchpoint): Make static.
5304 (remote_stopped_data_address): Make static.
5305 * d10v-tdep.c (nr_dmap_regs): Make static.
5306 (a0_regnum): Make static.
5307 (d10v_frame_unwind_cache): Make static.
5308 (d10v_frame_p): Make static.
5309 * osabi.c (show_osabi): Make static.
5310 (_initialize_gdb_osabi): Add extern declaration.
5311 * gdbtypes.c (make_qualified_type): Make static.
5312 (safe_parse_type): Make static.
5313 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5314 * macrotab.c (macro_bcache_free): Make static.
5315 * interps.c (interp_set_quiet): Make static.
5316 (interpreter_exec_cmd): Make static.
5317 * stack.h (select_frame_command): New file.
5318 * stack.c: Include "stack.h".
5319 (select_frame_command_wrapper): Delete function.
5320 (select_frame_command): Make global.
5321 * infcall.c: Include "infcall.h".
5322 * linespec.c: Include "linespec.h".
5323 * symfile.c (sections_overlap): Make static.
5324 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5325 * charset.c (_initialize_charset): Add missing prototype.
5326 * regcache.c (init_legacy_regcache_descr): Make static.
5327 (do_regcache_xfree): Make static.
5328 (regcache_xfer_part): Make static.
5329 (_initialize_regcache): Add missing prototype.
5330 * breakpoint.c (parse_breakpoint_sals): Make static.
5331 (breakpoint_sals_to_pc): Make static.
5332 * interps.h (clear_interpreter_hooks): ISO C declaration.
5333 * Makefile.in (stack_h): Define.
5334 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5335 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5336
a0f267c7
AC
53372003-06-08 Andrew Cagney <cagney@redhat.com>
5338
5339 * Makefile.in (d10v-tdep.o): Update dependencies.
5340 (SFILES): Add trad-frame.c.
5341 (trad_frame_h): Define.
5342 (COMMON_OBS): Add trad-frame.o.
5343 (trad-frame.o): Specify dependencies.
5344 * d10v-tdep.c: Include "trad-frame.h".
5345 (saved_regs_unwinder): Delete function.
5346 (d10v_frame_prev_register): Use trad_frame_prev_register.
5347 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5348 trad_frame", delete "regs" and "prev_sp".
5349 (prologue_find_regs): Use trad-frame.
5350 * trad-frame.h, trad-frame.c: New files.
5351
4538b4f4
MK
53522003-06-08 Mark Kettenis <kettenis@gnu.org>
5353
5354 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5355
a0273b2f
AF
53562003-06-07 Adam Fedor <fedor@gnu.org>
5357
5358 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5359 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5360 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5361 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 5362 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
5363 Use it.
5364
3a6c3343
AC
53652003-06-07 Andrew Cagney <cagney@redhat.com>
5366
5367 * symfile.h: Re-indent, clean up comments.
5368
b46e02f6
AC
53692003-06-07 Andrew Cagney <cagney@redhat.com>
5370
5371 * inferior.h (deprecated_write_sp): Replace
5372 generic_target_write_sp.
5373 * regcache.c (deprecated_write_sp): Replace
5374 generic_target_write_sp.
5375 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5376 * vax-tdep.c (vax_gdbarch_init): Update.
5377 * v850-tdep.c (v850_gdbarch_init): Update.
5378 * sparc-tdep.c (sparc_gdbarch_init): Update.
5379 * sh-tdep.c (sh_gdbarch_init): Update.
5380 * s390-tdep.c (s390_gdbarch_init): Update.
5381 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5382 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5383 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5384 * mcore-tdep.c (mcore_gdbarch_init): Update.
5385 * m68k-tdep.c (m68k_gdbarch_init): Update.
5386 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5387 * ia64-tdep.c (ia64_gdbarch_init): Update.
5388 * h8300-tdep.c (h8300_gdbarch_init): Update.
5389 * frv-tdep.c (frv_gdbarch_init): Update.
5390 * cris-tdep.c (cris_gdbarch_init): Update.
5391 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5392
a42e117c
AC
53932003-06-07 Andrew Cagney <cagney@redhat.com>
5394
5395 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5396 Assert that PC_REGNUM is valid.
5397 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5398
bd1ce8ba
AC
53992003-06-07 Andrew Cagney <cagney@redhat.com>
5400
5401 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5402 * gdbarch.h, gdbarch.c: Regenerate.
5403 * mn10300-tdep.c: Include "gdb_assert.h".
5404 (mn10300_read_fp): New function.
5405 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5406 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5407 * ia64-tdep.c: Include "gdb_assert.h".
5408 (ia64_read_fp): New function.
5409 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5410 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5411 * regcache.c (generic_target_read_sp): Delete function.
5412 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5413 * inferior.h (generic_target_read_sp): Delete declaration.
5414 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5415 generic_target_read_sp.
5416 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5417 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5418 * sh-tdep.c (sh_gdbarch_init): Ditto.
5419 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5420 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5421
ec5cbaec
AC
54222003-06-07 Andrew Cagney <cagney@redhat.com>
5423
5424 * gdbarch.sh: Comment each field of startup_gdbarch.
5425 * gdbarch.h, gdbarch.c: Re-generate.
5426
cde9ea48
AC
54272003-06-07 Andrew Cagney <cagney@redhat.com>
5428
5429 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5430 * gdbarch.h, gdbarch.c: Re-generate.
5431 * regcache.c: Update comments on read_pc et.al.
5432 (generic_target_read_pc): Delete function.
5433 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5434 * inferior.h (generic_target_read_pc): Delete declaration.
5435 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5436 generic_target_read_pc.
5437 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5438 * sh-tdep.c (sh_gdbarch_init): Ditto.
5439 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 5441
9a90a780
AC
54422003-06-07 Andrew Cagney <cagney@redhat.com>
5443
5444 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5445 "index" with "special_local_sect". Use strcmp instead of STREQ.
5446 Append period to coments.
5447
a39a16c4
MM
54482003-06-06 Mark Mitchell <mark@codesourcery.com>
5449
5450 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5451 (elfstab_offset_sections): Likewise.
5452 * gdb-stabs.h (stab_section_info): Likewise.
5453 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5454 * objfiles.c (objfile_relocate): Likewise.
5455 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5456 * remote.c (get_offsets): Likewise.
5457 (remote_cisco_objfile_relocate): Likewise.
5458 * somread.c (som_symfile_offsets): Likewise.
5459 * symfile.c (alloc_section_addr_info): New function.
5460 (build_section_addr_info_from_section_tab): Use it.
5461 (free_section_addr_info): Adjust.
5462 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5463 (syms_from_objfile): Allocate local_addr dynamically.
5464 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5465 dynamically.
5466 (add_symbol_file_command): Allocate sect_opts dynamically.
5467 (reread_symbols): Avoid use of SECT_OFF_MAX.
5468 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5469 (alloc_section_addr_info): Declare it.
5470 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5471 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5472 dynamically.
5473 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 5474
20c6c2f8
AC
54752003-06-06 Andrew Cagney <cagney@redhat.com>
5476
5477 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5478 (d10v_frame_unwind_cache): Do not set "return_pc".
5479
884a26c8
MS
54802003-06-06 Michael Snyder <msnyder@redhat.com>
5481
5482 * h8300-tdep.c: Make tidy (long lines).
5483
088ce440
ML
54842003-06-06 Michal Ludvig <mludvig@suse.cz>
5485
8ffd9b1b 5486 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
5487 to regcache_collect().
5488
7d773d96
JB
54892003-06-05 J. Brobecker <brobecker@gnat.com>
5490
5491 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5492 pc_in_sigtramp multiarch method.
5493 (hppa_hpux_som_init_abi): Use it.
5494 (hppa_hpux_elf_init_abi): Likewise.
5495 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5496 macro has been multiarched.
5497 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5498 macro here, as hppa64 isn't multiarched yet.
5499
1df6926e
AC
55002003-06-05 Andrew Cagney <cagney@redhat.com>
5501
5502 * Makefile.in (value_h): Add $(frame_h).
5503 * value.h: Include "frame.h".
5504 (struct value): Replace "frame_addr" with "frame_id".
5505 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5506 * values.c (allocate_value): Use VALUE_FRAME_ID.
5507 (value_copy): Use VALUE_FRAME_ID.
5508 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5509 * valops.c (value_assign): Update. Use frame_find_by_id.
5510
6b53acc6
ML
55112003-06-05 Michal Ludvig <mludvig@suse.cz>
5512
5513 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5514 in each pass.
5515
4d9850d3
JJ
55162003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5517
5518 * thread-db.c (check_event): For create/death event breakpoints,
5519 loop through all messages to ensure that we read the message
5520 corresponding to the breakpoint we are at.
5521
8efca6ba
MS
55222003-06-04 Michael Snyder <msnyder@redhat.com>
5523
5524 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5525
0912c7f2
MK
55262003-06-04 Mark Kettenis <kettenis@gnu.org>
5527
5528 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5529 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5530 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5531 when handling .eh_frame sections.
5532
4e370325
JB
55332003-06-04 J. Brobecker <brobecker@gnat.com>
5534
5535 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5536 prepare_to_proceed procedure instead of the hppa-specific one.
5537 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5538
b757528f 55392003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 5540
b757528f
JJ
5541 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5542 * config.in: Regenerated.
5543 * configure.in: Add test for syscall function and check for
5544 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5545 * configure: Regenerated.
5546 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5547 <sys/syscall.h>.
5548 (kill_lwp): New function that uses tkill syscall or
5549 uses kill, depending on whether threading model is nptl or not.
5550 All callers of kill() changed to use kill_lwp().
5551 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5552 see if all threads have already exited in the nptl model.
5553 (stop_and_resume_callback): New callback function used by the
5554 lin_lwp_wait thread exit handling code.
5555 (stop_wait_callback): Check for threads already having exited and
5556 delete such threads fromt the lwp list when discovered.
5557 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 5558
b757528f
JJ
5559 Roland McGrath <roland@redhat.com>
5560 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5561 nptl libthread_db.
5562
087779b1
RH
55632003-06-03 Richard Henderson <rth@redhat.com>
5564
b21fd293
RH
5565 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5566 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5567 (alpha_sigtramp_frame_prev_register): Likewise.
5568 (alpha_heuristic_frame_prev_register): Likewise.
5569 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5570
8ffd9b1b 5571 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
5572 alpha-specific register id names.
5573 (alpha_mdebug_frame_unwind_cache): Likewise.
5574 (alpha_mdebug_frame_prev_register): Likewise.
5575
baa490c4
RH
55762003-06-03 Richard Henderson <rth@redhat.com>
5577
5578 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5579 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5580 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5581 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5582 unwind routines.
5583 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5584 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5585 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5586
5587 * alpha-linux-tdep.c: Remove unnecessary includes.
5588 * Makefile.in (alpha-linux-tdep.o): Update.
5589
55902003-06-03 Richard Henderson <rth@redhat.com>
5591
5592 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5593 (alphabsd_fill_fpreg): Likewise.
5594
f534e522
JB
55952003-06-03 J. Brobecker <brobecker@gnat.com>
5596
5597 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5598 references to struct frame_info fields by calls to the equivalent
5599 accessors. Necessary now that frame_info is opaque.
5600
4035536b
JB
56012003-06-03 J. Brobecker <brobecker@gnat.com>
5602
5603 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5604 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5605 structure, field no longer exists.
5606
0bd79c5c
JB
56072003-06-03 J. Brobecker <brobecker@gnat.com>
5608
5609 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5610 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5611
37bb6d9f
JB
56122003-06-03 J. Brobecker <brobecker@gnat.com>
5613
5614 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5615 references to struct frame_info fields by calls to the equivalent
5616 accessors. Necessary now that frame_info is opaque.
5617
852ee05c
JB
56182003-06-03 J. Brobecker <brobecker@gnat.com>
5619
5620 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5621 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5622 structure, field no longer exists.
5623
7d58c67d
TR
56242003-06-03 Theodore A. Roth <troth@openavr.org>
5625
8ffd9b1b 5626 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
5627 accumulation of the size of all registers instead of blindly using
5628 DEPRECATED_REGISTER_BYTES.
5629
0a48e7e8
MS
56302003-06-03 Michael Snyder <msnyder@redhat.com>
5631
5632 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5633 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5634 for h8300sx.
5635
9798ab0d
JB
56362003-06-03 J. Brobecker <brobecker@gnat.com>
5637
5638 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5639 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5640
00b037e2
AC
56412003-06-03 Andrew Cagney <cagney@redhat.com>
5642
5643 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5644 (sparc_convert_to_raw): Delete function.
5645 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5646 register_convert_to_virtual.
5647
043b2f77
JJ
56482003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5649
5650 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5651 layer if not dealing with a statically-linked threaded program.
5652
f43caff8
KW
56532003-06-03 Kris Warkentin <kewarken@qnx.com>
5654
5655 * solib.c (solib_open): Update comment to reflect actual search order.
5656
ae1e7417
AC
56572003-06-03 Andrew Cagney <cagney@redhat.com>
5658
5659 * frame.c (get_frame_memory_signed): New function.
5660 (get_frame_memory, get_frame_memory_unsigned): New function.
5661 (get_frame_arch): New function.
5662 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5663 (get_frame_memory, get_frame_unsigned_memory): Declare.
5664 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5665 get_frame_memory_unsigned and get_frame_arch.
5666 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5667
cb123844
RG
56682003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5669
5670 * MAINTAINERS (write after approval): Add myself.
5671
1bb792e9
JB
56722003-06-03 Jim Blandy <jimb@redhat.com>
5673
5674 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5675 elements of gregset_t are 64 bits each, but access registers
5676 are still 32 bits, so they're packed two per gregset_t
5677 element. Unpack/pack them properly.
5678
aee8d8ba
DC
56792003-06-02 David Carlton <carlton@bactrian.org>
5680
5681 * linespec.c (find_methods): Break out code into
5682 add_matching_methods and add_constructors.
5683 (add_matching_methods): New.
5684 (add_constructors): Ditto.
5685
bf7488d2
AC
56862003-06-02 Andrew Cagney <cagney@redhat.com>
5687
bf7488d2
AC
5688 * sparc-tdep.c (sparc_print_registers): Delete call to
5689 REGISTER_CONVERTIBLE.
5690 (sparc_gdbarch_init): Do not set register_convertible.
5691 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5692 * frv-tdep.c (frv_gdbarch_init): Ditto.
5693 * cris-tdep.c (cris_gdbarch_init): Ditto.
5694
adedef68
EZ
56952003-06-02 Elena Zannoni <ezannoni@redhat.com>
5696
8ffd9b1b 5697 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
5698 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5699 (syms_from_objfile): Ditto.
5700
650fcc91
AS
57012003-06-03 Andreas Schwab <schwab@suse.de>
5702
5703 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5704 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5705
df4a182b
RH
57062003-06-02 Richard Henderson <rth@redhat.com>
5707
5708 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5709 a member of all_reggroup.
5710
c483c494
RH
57112003-06-02 Richard Henderson <rth@redhat.com>
5712
5713 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5714 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5715 (alpha_lds, alpha_sts): New.
5716 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 5717 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
5718 restructure and fail for type sizes other than 4 or 8.
5719 (alpha_value_to_register): Similarly.
5720 (alpha_extract_return_value): Use alpha_sts.
5721 (alpha_store_return_value): Use alpha_lds.
5722 (alpha_gdbarch_init): Update hooks.
5723
b38b6be2
RH
57242003-06-02 Richard Henderson <rth@redhat.com>
5725
5726 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5727 regnum identifiers.
5728 (alpha_sigtramp_register_address): Likewise.
5729
98a8e1e5
RH
57302003-06-02 Richard Henderson <rth@redhat.com>
5731
5732 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5733 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5734 * alpha-tdep.h: Declare them.
5735
5736 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5737 Remove zerobuf. Don't error on UNIQUE.
5738 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5739 (ALPHA_REGSET_UNIQUE): Provide default.
5740 (supply_gregset): Use alpha_supply_int_regs.
5741 (fill_gregset): Use alpha_fill_int_regs.
5742 (supply_fpregset): Use alpha_supply_fp_regs.
5743 (fill_fpregset): Use alpha_fill_fp_regs.
5744 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5745 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5746 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5747 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5748 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5749 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5750
67dfac52
RH
57512003-06-02 Richard Henderson <rth@redhat.com>
5752
f75d70cc
RH
5753 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5754
67dfac52
RH
5755 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5756 (alpha_store_return_value): Likewise.
5757
0cf566ec
DC
57582003-06-02 David Carlton <carlton@math.stanford.edu>
5759
5760 * block.c (contained_in): Add 'const' to arguments.
5761 (block_function): Ditto.
5762 * block.h: Update declarations for block_function and
5763 contained_in.
5764
cdef89d0
DC
57652003-06-02 David Carlton <carlton@math.stanford.edu>
5766
5767 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5768 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5769 * p-valprint.c (pascal_val_print): Ditto.
5770 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5771
72667056
RH
57722003-06-02 Richard Henderson <rth@redhat.com>
5773
98a8e1e5
RH
5774 * alpha-tdep.c (alpha_push_dummy_call): Use
5775 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 5776
8ffd9b1b 5777 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
5778 sign-extension of 32-bit values.
5779 (alpha_store_return_value): Similarly.
0ede8eca 5780
98a8e1e5
RH
5781 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5782 (alpha_extract_return_value): Likewise.
5783 (alpha_store_return_value): Likewise.
7b5e1cb3 5784
98a8e1e5
RH
5785 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5786 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 5787
98a8e1e5
RH
5788 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5789 (alpha_extract_struct_value_address): Likewise.
5790 (alpha_store_return_value): Likewise.
5791 (alpha_store_struct_return): Remove.
5792 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 5793
98a8e1e5
RH
5794 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5795 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5796 macros where appropriate.
5797 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5798 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 5799
98a8e1e5
RH
5800 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5801 for SP, GP; void_func_ptr for PC; non-language-specific types
5802 for all others.
5803 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 5804
6dd77b81
RH
58052003-06-02 Richard Henderson <rth@redhat.com>
5806
5807 * top.h (lim_at_start): Declare.
5808 * main.c (captured_main): Set it.
5809 * top.c (lim_at_start): Define.
5810 (command_loop): Use it instead of &environ.
5811 * event-top.c (command_handler): Likewise.
5812
f4dbdb54
JT
58132003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5814
5815 * mipsnbsd-tdep.c: Update copyright years.
5816 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5817
8f285956
RH
58182003-06-01 Richard Henderson <rth@redhat.com>
5819
98a8e1e5
RH
5820 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5821 (alpha-linux-tdep.o): Update dependencies.
5822 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5823 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 5824
615967cb
RH
58252003-06-01 Richard Henderson <rth@redhat.com>
5826
98a8e1e5
RH
5827 * alpha-tdep.c (alpha_register_reggroup_p): New.
5828 (alpha_gdbarch_init): Register it.
615967cb 5829
b59661bd
AC
58302003-06-02 Andrew Cagney <cagney@redhat.com>
5831
5832 * dwarfread.c: Eliminate "register"
5833 (decode_die_type): Eliminate assignment within "if".
5834 (struct_type, decode_array_element_type): Ditto.
5835 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5836 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5837 (decode_modified_type, completedieinfo): Ditto.
5838 * block.c: Eliminate "register".
5839 (blockvector_for_pc_sect): Eliminate assignment within "if".
5840 * cp-support.h (struct symbol): Opaque declaration.
5841 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5842
5ef165c2
RH
58432003-06-01 Richard Henderson <rth@redhat.com>
5844
98a8e1e5
RH
5845 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5846 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 5847
143985b7
AF
58482003-06-01 Adam Fedor <fedor@gnu.org>
5849
5850 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5851 * gdbarch.[ch]: Regenerate.
5852 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5853 (hppa_gdbarch_init): Set it in the gdbarch vector.
5854 * i386-tdep.c (i386_fetch_pointer_argument): New
5855 (i386_gdbarch_init): Set it into gdbarch.
5856 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5857 (rs6000_gdbarch_init): Set it in gdbarch.
5858 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5859 (sparc_gdbarch_init): Set it in gdbarch.
5860
ae0167b9
AC
58612003-06-01 Andrew Cagney <cagney@redhat.com>
5862
7c0b4a20
AC
5863 * defs.h (extract_address): Delete declaration.
5864 * findvar.c (extract_address): Delete function.
5865 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5866 extract_address with the inline equivalent,
5867 extract_unsigned_integer.
5868 (xstormy16_extract_struct_value_address): Ditto.
5869 (xstormy16_pointer_to_address): Ditto.
5870 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5871 * v850-tdep.c (v850_push_arguments): Ditto.
5872 (v850_extract_return_value): Ditto.
5873 (v850_extract_struct_value_address): Ditto.
5874 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5875 (sparcnbsd_get_longjmp_target_64): Ditto.
5876 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5877 (get_longjmp_target): Ditto.
5878 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5879 (sh64_extract_struct_value_address): Ditto.
5880 (sh_push_arguments): Ditto.
5881 (sh64_push_arguments): Ditto.
5882 * remote-vxsparc.c (vx_read_register): Ditto.
5883 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5884 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5885 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5886 * mipsv4-nat.c (get_longjmp_target): Ditto.
5887 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5888 * mips-nat.c (get_longjmp_target): Ditto.
5889 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5890 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5891 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5892 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5893 * irix5-nat.c (get_longjmp_target): Ditto.
5894 * irix4-nat.c (get_longjmp_target): Ditto.
5895 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5896 (ia64_push_arguments): Ditto.
5897 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5898 * h8300-tdep.c (h8300_push_arguments): Ditto.
5899 (h8300_store_return_value): Ditto.
5900 (h8300_extract_struct_value_address): Ditto.
5901 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5902 (frv_push_arguments): Ditto.
5903 * avr-tdep.c (avr_pointer_to_address): Ditto.
5904 (avr_push_arguments): Ditto.
5905 * arm-tdep.c (arm_push_dummy_call): Ditto.
5906 (arm_get_longjmp_target): Ditto.
5907 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5908 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5909 (alpha_get_longjmp_target): Ditto.
5910
ae0167b9
AC
5911 * solib-irix.c (extract_mips_address): Inline extract_address,
5912 replacing it with extract_signed_integer.
5913 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5914 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5915 (first_link_map_member, open_symbol_file_object): Ditto.
5916 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5917 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5918 (LM_NEXT, LM_NAME): Ditto.
5919
44d88583
RH
59202003-06-01 Richard Henderson <rth@redhat.com>
5921
98a8e1e5
RH
5922 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5923 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5924 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5925 (alpha_cannot_store_register): Likewise.
5926 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5927 * alpha-nat.c (supply_gregset): Likewise.
5928 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 5929
310e9b6a
AC
59302003-06-01 Andrew Cagney <cagney@redhat.com>
5931
5932 * infcall.c (call_function_by_hand): Update comment on
5933 DEPRECATED_DUMMY_WRITE_SP.
5934
5935 * mips-tdep.c (mips_gdbarch_init): Do not set
5936 deprecated_dummy_write_sp.
5937 (mips_eabi_push_dummy_call): Set the SP register.
5938 (mips_o64_push_dummy_call): Set the SP register.
5939 (mips_o32_push_dummy_call): Set the SP register.
5940 (mips_n32n64_push_dummy_call): Set the SP register.
5941
5ab84872
RH
59422003-06-01 Richard Henderson <rth@redhat.com>
5943
98a8e1e5
RH
5944 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5945 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5946 (supply_gregset): Likewise.
5947 * alpha-tdep.c (alpha_store_return_value): Likewise.
5948 (alpha_get_longjmp_target): Likewise.
5949 (alpha_register_name): Constify array.
5950 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5951 deprecated_register_size, deprecated_register_bytes,
5952 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5953 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5954 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 5955
09cc52fd
RH
59562003-06-01 Richard Henderson <rth@redhat.com>
5957
5958 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5959 from arg_reg_buffer to regcache to avoid double conversion.
5960
c7f16359
MK
59612003-06-01 Mark Kettenis <kettenis@gnu.org>
5962
5963 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5964 SP_REGNUM.
5965 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5966 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5967
7131cb6e
RH
59682003-06-01 Richard Henderson <rth@redhat.com>
5969
98a8e1e5
RH
5970 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5971 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 5972
f3e0f90b
RH
59732003-06-01 Richard Henderson <rth@redhat.com>
5974
98a8e1e5
RH
5975 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5976 not overlapping PC_REGNUM.
f3e0f90b 5977
c88e30c0
RH
59782003-06-01 Richard Henderson <rth@redhat.com>
5979
98a8e1e5
RH
5980 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5981 alpha_push_arguments. Don't dump argument register data to
5982 the target stack. Fix float and 128-bit long double semantics.
5983 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5984 (alpha_fix_call_dummy): Remove.
5985 (alpha_call_dummy_words): Remove.
5986 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 5987
f1a559ae
RH
59882003-06-01 Richard Henderson <rth@redhat.com>
5989
5990 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5991
5e045346
AC
59922003-06-01 Andrew Cagney <cagney@redhat.com>
5993
95404a3e
AC
5994 * mips-tdep.c (is_mips16_addr): New function.
5995 (make_mips16_addr, unmake_mips16_addr): New functions.
5996 (pc_is_mips16, mips_fetch_instruction): Use.
5997 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5998 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5999 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6000 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6001 TARGET_MIPS.
6002 * config/mips/tm-mips.h: Update copyright.
6003 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6004 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6005 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6006 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6007 (TM_PRINT_INSN_MACH): Delete.
6008 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6009
5e045346
AC
6010 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6011 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6012 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6013 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6014 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6015 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6016 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6017 mips*-*-riscos* and mips*-*-sysv* onto mips.
6018 * config/mips/mips64.mt: New file.
6019 * config/mips/mips.mt: New file.
6020 * config/mips/littlemips.mt: Delete file.
6021 * config/mips/decstation.mt: Delete file.
6022 * config/mips/vr4300el.mt: Delete file.
6023 * config/mips/vr5000el.mt: Delete file.
6024 * config/mips/vr5000.mt: Delete file.
6025 * config/mips/vr4100.mt: Delete file.
6026 * config/mips/vr4xxxel.mt: Delete file.
6027 * config/mips/vr4300.mt: Delete file.
6028 * config/mips/vr4xxx.mt: Delete file.
6029 * config/mips/bigmips.mt: Delete file.
6030 * config/mips/bigmips64.mt: Delete file.
6031 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6032 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6033 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6034 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6035 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6036 "tm-bigmips.h".
6037 * config/mips/tm-irix3.h: Ditto.
6038 * config/mips/tm-mipsv4.h: Ditto.
6039 * config/mips/tm-embed.h: Ditto.
6040 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6041 "tm-bigmips64.h".
6042 * config/mips/tm-vr5000el.h: Delete file.
6043 * config/mips/tm-tx39l.h: Delete file.
6044 * config/mips/tm-vr4300el.h: Delete file.
6045 * config/mips/tm-vr4xxxel.h: Delete file.
6046 * config/mips/tm-vr4300.h: Delete file.
6047 * config/mips/tm-vr4100.h: Delete file.
6048 * config/mips/tm-vr4xxx.h: Delete file.
6049 * config/mips/tm-vr5000.h: Delete file.
6050 * config/mips/tm-embedl64.h: Delete file.
6051 * config/mips/tm-embedl.h: Delete file.
6052 * config/mips/tm-embed64.h: Delete file.
6053 * config/mips/tm-bigmips64.h: Delete file.
6054 * config/mips/tm-bigmips.h: Delete file.
6055
2473a4a9
MK
60562003-06-01 Mark Kettenis <kettenis@gnu.org>
6057
97a5b208
MK
6058 Fix gdb/1216.
6059 * shnbsd-nat.c: Include "sh-tdep.h".
6060
2473a4a9
MK
6061 From Richard Henderson <rth@redhat.com>:
6062 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6063
e0f7ec59
AC
60642003-05-31 Andrew Cagney <cagney@redhat.com>
6065
6066 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6067 forward declaration.
6068 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6069 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6070 (mips_find_saved_regs): Use set_reg_offset.
6071 (mips_frame_init_saved_regs): Delete function.
6072 (mips_pop_frame): Call mips_find_saved_regs instead of
6073 DEPRECATED_FRAME_INIT_SAVED_REGS.
6074
68dcc709
AC
60752003-05-31 Andrew Cagney <cagney@redhat.com>
6076
6077 * mips-tdep.c (mips_gdbarch_init): Do not set
6078 deprecated_max_register_raw_size, register_virtual_size, and
6079 deprecated_max_register_virtual_size.
6080
cfc14b3a
MK
60812003-05-31 Mark Kettenis <kettenis@gnu.org>
6082
6405b0a6
MK
6083 * i386-tdep.c: Include "dwarf2-frame.h".
6084 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6085 * Makefile.in (i386-tdep.o): Update dependencies.
6086
cfc14b3a
MK
6087 * dwarf2-frame.c, dwarf2-frame.h: New files.
6088 * Makefile.in (SFILES): Add dwarf2-frame.c.
6089 (dwarf2_frame_h): Define.
6090 (COMMON_OBS): Add dwarf2-frame.o.
6091 (dwarf2-frame.o): Add dependencies.
6092
6a2751d2
AJ
60932003-05-31 Andreas Jaeger <aj@suse.de>
6094
6095 * x86-64-linux-nat.c: Fix comment.
6096
1c3545ae
MK
60972003-05-31 Mark Kettenis <kettenis@gnu.org>
6098
10f93086
MK
6099 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6100 function signature.
6101
1c3545ae
MK
6102 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6103 have a sigcontext_addr handler.
6104 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6105 sigcontext_addr handler.
6106
e11c53d2
AC
61072003-05-31 Andrew Cagney <cagney@redhat.com>
6108
6109 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6110 (print_fp_register_row): Replace do_fp_register_row.
6111 (mips_print_fp_register): Add "file" and "frame" parameters.
6112 (mips_print_register): Add "file" and "frame" parameters.
6113 (mips_print_registers_info): Replace mips_do_registers_info.
6114 (mips_gdbarch_init): Set print_registers_info instead of
6115 deprecated_do_registers_info.
6116 (mips_read_fp_register_single): Add "frame" parameter.
6117 (mips_read_fp_register_double): Add "frame" parameter.
6118
a3386186
MK
61192003-05-31 Mark Kettenis <kettenis@gnu.org>
6120
70913449
MK
6121 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6122 Fixes a bug where GDB would print the wrong register names for
6123 targets without SSE.
6124
2b5e0749
MK
6125 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6126 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6127 registers.
6128
6129 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6130 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6131 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6132 TDEP->sc_sp_offset.
6133
a3386186
MK
6134 From Michal Ludvig <mludvig@suse.cz>:
6135 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6136 and `sc_num_regs'.
6137 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6138 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6139 I386_ST0_REGNUM): Move here from...
6140 * i386-tdep.c: ... here.
6141 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6142 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6143 registers if possible.
6144 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6145 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6146 Remove variables.
6147 (i386bsd_sc_reg_offset): New variable.
6148 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6149 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6150 TDEP->sc_sp_offset.
6151 (i386fbsd_sc_reg_offset): New variable.
6152 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6153 TDEP->sc_num_regs.
6154 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6155 variables.
6156 (i386fbsd4_sc_reg_offset): New variable.
6157 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6158 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6159 TDEP->sc_sp_offset.
6160 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6161 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6162 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6163 Remove variables.
6164 (i386nbsd_sc_reg_offset): New variable.
6165 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6166 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6167 TDEP->sc_sp_offset.
6168 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6169 Remove variables.
6170 (i386obsd_sc_reg_offset): New variable.
6171 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6172 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6173 TDEP->sc_sp_offset.
6174 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6175 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6176 for frame pointer offset in `struct sigcontext'.
6177
25ab4790
AC
61782003-05-31 Andrew Cagney <cagney@redhat.com>
6179
6180 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6181 architecture methods call_dummy_words, sizeof_call_dummy_words,
6182 push_return_address, store_struct_return, and fix_call_dummy. Set
6183 push_dummy_call instead of deprecated_push_arguments.
6184 (mips_store_struct_return): Delete function.
6185 (mips_fix_call_dummy): Delete function.
6186 (mips_push_return_address): Delete function.
6187 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6188 RA_REGNUM and T9_REGNUM.
6189 (mips_n32n64_push_dummy_call): Ditto for
6190 mips_n32n64_push_arguments.
6191 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6192 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6193
6a65450a
AC
61942003-05-31 Andrew Cagney <cagney@redhat.com>
6195
6196 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6197 "dummy_addr" to "bp_addr".
6198 * infcall.c (call_function_by_hand): Pass "funaddr" to
6199 gdbarch_push_dummy_call.
6200 * gdbarch.h, gdbarch.c: Re-generate.
6201 * i386-tdep.c (i386_push_dummy_call): Update.
6202 * arm-tdep.c (arm_push_dummy_call): Update.
6203 * d10v-tdep.c (d10v_push_dummy_call): Update.
6204
c4f35dd8
MK
62052003-05-31 Mark Kettenis <kettenis@gnu.org>
6206
6207 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6208 variable declarations.
6209 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6210 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6211 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6212 x86_64_init_frame_pc, x86_64_init_frame_pc,
6213 x86_64_function_has_prologue): Remove prototypes.
6214 (X86_64_NUM_GREGS): New define.
6215 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6216 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6217 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6218 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6219 XMM1_REGNUM): Remove defines.
6220 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6221 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6222 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6223 X86_64_XMM1_REGNUM): New defines.
6224 (struct x86_64_register_info): Renamed from `struct
6225 register_info'. Remove `size' member.
6226 (x86_64_register_info_table): Remove variable.
6227 (x86_64_register_info): New variable.
6228 (X86_64_NUM_REGS): New define.
6229 (X86_64_NUM_GREGS): Remove define.
6230 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6231 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6232 Remove variables.
6233 (x86_54_dwarf2_reg_to_regnum): Remove function.
6234 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6235 (x86_64_dwarf_reg_to_regnum): New function.
6236 (x86_64_register_name): Rewrite.
6237 (x86_64_register_raw_size): Remove function.
6238 (x86_64_register_byte_table): Remove variable.
6239 (x86_64_register_byte): Remove function.
6240 (x86_64_register_virtual_type): Remove function.
6241 (x86_64_register_type): New function.
6242 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6243 x86_64_register_convert_to_raw): Remove functions.
6244 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6245 (x86_64_use_struct_convention): Make static. Adjust for renamed
6246 defines.
6247 (x86_64_frame_init_saved_regs): Remove function.
6248 (x86_64_push_arguments): Make static. Change to accept a regcache
6249 as argument.
6250 (x86_64_store_return_value, x86_64_extract_return_value): Make
6251 static. Rewrite based on i386 counterparts.
6252 (x86_64_push_dummy_call): New function.
6253 (X86_64_NUM_SAVED_REGS): New define.
6254 (x86_64_register_number): Remove function.
6255 (x86_64_store_struct_return): Remove function.
6256 (x86_64_frameless_function_invocation,
6257 x86_64_function_has_prologue): Remove functions.
6258 (PROLOG_BUFSIZE): Remove define.
6259 (struct x86_64_frame_cache): New structure.
6260 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6261 x86_64_frame_cache, x86_64_frame_this_id,
6262 x86_64_frame_prev_register, x86_64_frame_p,
6263 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6264 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6265 functions.
6266 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6267 variables.
6268 (x86_64_skip_prologue): Rewrite in terms of
6269 x86_64_analyze_prologue.
6270 (x86_64_frame_base_address): New function.
6271 (x86_64_frame_base): New variable.
6272 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6273 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6274 set deprecated_fp_regnum, deprecated_register_size,
6275 deprecated_register_bytes, register_raw_size, register_byte,
6276 register_virtual_type, register_convertiable,
6277 register_convert_to_virtual, convert_to_raw,
6278 deprecated_get_saved_register, deprecated_target_read_fp,
6279 deprecated_push_arguments, deprecated_push_return_address,
6280 deprecated_pop_frame, deprecated_store_struct_return,
6281 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6282 frameless_function_invocation, deprecated_frame_saved_pc,
6283 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6284 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6285 deprecated_init_frame_pc and virtual_frame_pointer. Call
6286 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6287 and x86_64_frame_p. Call frame_base_set_default to register
6288 x86_64_frame_base.
6289 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6290 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6291 (_initialize_x86_64_tdep): Remove function.
6292 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6293 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6294 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6295 define.
6296 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6297 (x86_64_linux_sigcontext_addr): Rewrite.
6298 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6299 x86_64_linux_frame_saved_pc): Remove functions.
6300 (x86_64_linux_pc_in_sigtramp): Renamed from
6301 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6302 trampoline.
6303 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6304 Remove_functions.
6305 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6306 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6307 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6308 (x86_64_regmap): Rename to regmap.
6309 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6310 x86_64_num_gregs.
6311 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6312 x86_64_regmap.
6313 (x86_64_fxsave_offset): Remove function.
6314 (supply_fpregset): Simply call x86_64_supply_fxsave.
6315 (fill_fpregset): Simply call x86_64_fill_fxsave.
6316 (fetch_inferior_registers, store_inferior_registers): Avoid
6317 asignment in if-statement.
6318 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6319 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6320 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6321 (fetch_core_registers): Remove function.
6322 (linux_elf_core_fns): Remove.
6323 (offsetoff): Don't define.
6324 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6325 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6326 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6327 add core-regset.o.
6328 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6329 protection against multiple includes instead of NM_X86_64_h. Add
6330 various comments. Include "config/nm-linux.h". Don't include
6331 <signal.h>.
6332 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6333 GET_THREAD_SIGNALS): Remove defines.
6334 (x86_64_register_u_addr, kernel_u_size,
6335 lin_thread_get_thread_signals): Remove prototypes.
6336 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6337 [HAVE_LINK_H]: Don't include "solib.h".
6338 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6339 * config/i386/tm-x86-64linux.h: Fix comments.
6340 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6341 x86-64-tdep.o): Update dependencies.
6342
c25083af
AC
63432003-05-30 Andrew Cagney <cagney@redhat.com>
6344
c8f55a7b
AC
6345 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6346 Change parameter type to a "struct regcache *".
6347
c25083af
AC
6348 * gdbarch.sh: Regardless of the multi-arch level, always define
6349 the macro when not already defined.
6350 * gdbarch.h, gdbarch.c: Re-generate.
6351
fbe586ae
RH
63522003-05-30 Richard Henderson <rth@redhat.com>
6353
6354 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6355 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6356 (alpha_mdebug_frame_this_id): Likewise.
6357 (alpha_mdebug_frame_prev_register): Likewise.
6358 (alpha_mdebug_frame_base_address): Likewise.
6359 (alpha_mdebug_frame_locals_address): Likewise.
6360 (alpha_mdebug_frame_args_address): Likewise.
6361 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6362 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6363 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6364 loop increment.
6365 (alpha_heuristic_frame_this_id): Make static.
6366 (alpha_heuristic_frame_prev_register): Likewise.
6367 (alpha_heuristic_frame_base_address): Likewise.
6368 * alpha-tdep.h: Update.
6369
acd5c798
MK
63702003-05-30 Mark Kettenis <kettenis@gnu.org>
6371
6372 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6373 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6374 defenitions.
6375 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6376 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6377 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6378 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6379 I386_ST0_REGNUM): New defines.
6380 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6381 codestream_get): Remove define.
6382 (codestream_next_addr, condestream_addr, condestream_buf,
6383 codestream_off, codestream_cnt): Remove variables.
6384 (codestream_fill, codestream_seek, codestream_read): Remove
6385 functions.
6386 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6387 functionality.
6388 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6389 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6390 i386_frame_saved_pc, i386_saved_pc_after_call,
6391 i386_frame_num_args, i386_frame_init_saved_regs,
6392 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6393 i386_push_arguments): Remove functions.
6394 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6395 functionality. Use i386_analyze_prologue instead of
6396 i386_get_frame_setup.
6397 (I386_NUM_SAVED_REGS): New define.
6398 (struct i386_frame_cache): New structure.
6399 (i386_alloc_frame_cache, i386_analyze_struct_return,
6400 i386_skip_probe, i386_analyze_frame_setup,
6401 i386_analyze_register_saves, i386_analyze_prologue,
6402 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6403 i386_frame_prev_register, i386_sigtramp_frame_cache,
6404 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6405 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6406 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6407 New functions.
6408 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6409 New variables.
6410 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6411 I386_EAX_REGNUM and I386_EDX_REGNUM.
6412 (i386_extract_return_value, i386_store_return_value): Use
6413 I386_ST0_REGNUM where appropriate.
6414 (i386_extract_struct_value_address): Rewrite to use extract_address.
6415 (i386_svr4_pc_in_sigtramp): Add comment.
6416 (i386_svr4_sigcontext_addr): Rewrite.
6417 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6418 TDEP->sc_sp_offset.
6419 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6420 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6421 of new defines. Set push_dummy_call, don't set
6422 deprecated_push_arguments, deprecated_push_return_address,
6423 deprecated_pop_frame. Don't set parm_boundary. Don't set
6424 deprecated_frame_chain, deprecated_frame_saved_pc,
6425 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6426 save_dummy_frame_tos, unwind_pc. Call
6427 frame_unwind_append_predicate and frame_base_set_default. Don't
6428 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6429 Don't set frameless_function_invocation. Don't set
6430 deprecated_register_bytes, deprecated_register_size,
6431 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6432 * i386-linux-tdep.c: Fix formatting in some comments.
6433 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6434 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6435 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6436 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6437 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6438 redundant parentheses.
6439 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6440 (i386_linux_sigcontext_addr): Use it. Rewrite.
6441 (find_minsym_and_objfile): Change name of second argument.
6442 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6443 changed. Use frame_pc_unwind instead of
6444 DEPRECATED_SAVED_PC_AFTER_CALL.
6445 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6446 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6447 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6448 unwinder.
6449 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6450 "dummy-frame.h".
6451 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6452 (_initialize_i386_cygwin_tdep): New prototype.
6453 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6454 deprecated_frame_chain_valid.
6455 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6456 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6457 Rely on the SVR4 defaults.
6458 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6459 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6460
c89b70f1
AC
64612003-05-30 Andrew Cagney <cagney@redhat.com>
6462
6463 * infcall.c (call_function_by_hand): Always call
6464 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6465
85b32d22
RH
64662003-05-30 Richard Henderson <rth@redhat.com>
6467
c89b70f1
AC
6468 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6469 increment.
85b32d22 6470
bfe51b1e
JB
64712003-05-29 Jim Blandy <jimb@redhat.com>
6472
6473 Use gdbarch methods for solib stuff on PowerPC Linux.
6474 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6475 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6476 show through.
6477 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6478 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6479 giving the same effect as the #definitions above.
6480
1abf022c
AF
64812003-05-29 Adam Fedor <fedor@gnu.org>
6482
6483 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6484 (find_implementation_from_class): Replace it with the standard
6485 case i.e. do nothing.
6486
d2427a71
RH
64872003-05-29 Richard Henderson <rth@redhat.com>
6488
6489 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6490 (alpha_linux_sigtramp_offset): Use it. Make static.
6491 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6492 update for new frame model.
6493 * alpha-mdebug-tdep.c: New file.
6494 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6495 (alpha_osf1_init_abi): Install it.
6496 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6497 (linked_proc_desc_table): Remove.
6498 (alpha_frame_past_sigtramp_frame): Remove.
6499 (alpha_dynamic_sigtramp_offset): Remove.
6500 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6501 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6502 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6503 (push_sigtramp_desc): Remove.
6504 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6505 (alpha_cannot_store_register): Likewise.
6506 (alpha_sigcontext_addr): Remove.
6507 (alpha_find_saved_regs): Remove.
6508 (alpha_frame_init_saved_regs): Remove.
6509 (alpha_init_frame_pc_first): Remove.
6510 (read_next_frame_reg): Remove.
6511 (alpha_frame_saved_pc): Remove.
6512 (alpha_saved_pc_after_call): Remove.
6513 (temp_proc_desc, temp_saved_regs): Remove.
6514 (alpha_about_to_return): Remove.
6515 (cached_proc_desc): Remove.
6516 (alpha_frame_chain): Remove.
6517 (alpha_print_extra_frame_info): Remove.
6518 (alpha_init_extra_frame_info): Remove.
6519 (alpha_frame_locals_address): Remove.
6520 (alpha_frame_args_address): Remove.
6521 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6522 (alpha_push_dummy_frame): Remove.
6523 (alpha_pop_frame): Remove.
6524 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6525 (alpha_read_insn): New.
6526 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6527 for different insn encodings.
6528 (alpha_in_lenient_prologue): Remove.
6529 (struct alpha_sigtramp_unwind_cache): New.
6530 (alpha_sigtramp_frame_unwind_cache): New.
6531 (alpha_sigtramp_register_address): New.
6532 (alpha_sigtramp_frame_this_id): New.
6533 (alpha_sigtramp_frame_prev_register): New.
6534 (alpha_sigtramp_frame_unwind): New.
6535 (alpha_sigtramp_frame_p): New.
6536 (struct alpha_heuristic_unwind_cache): New.
6537 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6538 don't count nop insns that occur between functions.
6539 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6540 heuristic_proc_desc, but without the mdebug wrapping.
6541 (alpha_heuristic_frame_this_id): New.
6542 (alpha_heuristic_frame_prev_register): New.
6543 (alpha_heuristic_frame_unwind): New.
6544 (alpha_heuristic_frame_p): New.
6545 (alpha_heuristic_frame_base_address): New.
6546 (alpha_heuristic_frame_base): New.
6547 (alpha_unwind_dummy_id): New.
6548 (alpha_unwind_pc): New.
6549 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6550 frame related deprecated initializations; install replacements.
6551 (alpha_dump_tdep): Remove.
6552 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6553 (alpha_read_insn, alpha_after_prologue,
6554 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6555 alpha_heuristic_frame_prev_register,
6556 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6557 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6558 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6559 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6560
93ec1121
AC
65612003-05-29 Andrew Cagney <cagney@redhat.com>
6562
6563 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6564 dependant on the availability of ASSERT_FUNCTION.
6565 (ASSERT_FUNCTION): Do not define when there is no function name.
6566
98f08d3d
KB
65672003-05-29 Kevin Buettner <kevinb@redhat.com>
6568
6569 From Jimi X <jimix@watson.ibm.com>:
6570 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6571
0897f59b
JB
65722003-05-28 Jim Blandy <jimb@redhat.com>
6573
6574 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6575 argument to ptrace to int; the system headers should give it the
6576 right type, and pointers don't fit in ints on powerpc64-*-*.
6577
14898363
L
65782003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6579
6580 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6581 DW_TAG_catch_block.
6582
a7a48797
EZ
65832003-05-26 Elena Zannoni <ezannoni@redhat.com>
6584
6585 * stabsread.c (dbx_lookup_type): Make static.
6586 (read_type): Ditto.
6587 (add_undefined_type): Ditto.
6588 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6589 not export.
6590
f5479e9c
EZ
65912003-05-26 Elena Zannoni <ezannoni@redhat.com>
6592
6593 * hpread.c (hpread_has_name): Make static.
6594 (hpread_psymtab_to_symtab): Ditto.
6595 (file_exists): Ditto.
6596 (hpread_call_pxdb): Ditto.
6597 (hpread_pxdb_needed): Ditto.
6598 (hpread_quick_traverse): Ditto.
6599 (hpread_get_header): Ditto.
6600 (hpread_get_lntt): Ditto.
6601 (hpread_get_slt): Ditto.
6602 (class_of): Ditto.
6603
eb2e12d7
AS
66042003-05-25 Andreas Schwab <schwab@suse.de>
6605
78bf922a
AS
6606 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6607 stack_align and deprecated_extra_stack_alignment_needed.
6608 (m68k_stack_align): Delete.
6609
eb2e12d7
AS
6610 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6611 (m68k_register_virtual_size): Likewise.
6612 (altos_skip_prologue): Remove obsolete function.
6613 (isi_frame_num_args): Likewise.
6614 (news_frame_num_args): Likewise.
6615 (m68k_fix_call_dummy): Make static.
6616 (m68k_push_dummy_frame): Likewise.
6617 (m68k_pop_frame): Likewise.
6618 (m68k_skip_prologue): Likewise.
6619 (m68k_frame_init_saved_regs): Likewise.
6620 (m68k_saved_pc_after_call): Likewise.
6621 (m68k_get_longjmp_target): Make multi-arch.
6622 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6623 structure. Register m68k_get_longjmp_target if enabled.
6624 * m68k-tdep.h (struct gdbarch_tdep): Define.
6625 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6626
6627 * Makefile.in (config.status): Also depend on configure.tgt
6628 and configure.host.
6629 (m68klinux-tdep.o): Update dependencies.
6630 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6631 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6632 (M68K_LINUX_JB_PC): Define.
6633 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6634 and take additional parameter.
6635 (m68k_linux_sigtramp_saved_pc): Update.
6636 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6637 m68k_linux_pc_in_sigtramp, in_plt_section,
6638 find_solib_trampoline_target.
6639 * config/m68k/tm-linux.h: Don't include any tm headers.
6640 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6641 (JB_ELEMENT_SIZE): Likewise.
6642 (JB_PC): Likewise.
6643 (GET_LONGJMP_TARGET): Likewise.
6644 (IN_SIGTRAMP): Likewise.
6645 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6646
eb2c22dc
MK
66472003-05-25 Mark Kettenis <kettenis@gnu.org>
6648
6649 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6650 (sparc32_push_arguments): Re-implement by calling
6651 sparc32_do_push_arguments.
6652
44b7b84e
MK
66532003-05-25 Mark Kettenis <kettenis@gnu.org>
6654
6655 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6656 SPARC_O1_REGNUM): New defines.
6657 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6658 (sparc32_store_return_value): New function.
6659 (sparc_extract_struct_value_address): Rewrite to operate on a
6660 regcache.
6661 (sparc_gdbarch_init): Don't set
6662 deprecated_extract_struct_value_address. Set
6663 extract_struct_value_address instead. Don't set
6664 deprecated_extract_return_value and deprecated_store_return_value
6665 for 32-bit targets. Set extract_return_value and
6666 store_return_value instead.
6667 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6668 DEPRECTAED_EXTRACT_RETURN_VALUE,
6669 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6670 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6671 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6672 (sparc_store_return_value): Remove prototype.
6673 (sparc32_store_return_value): New prototype.
6674 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6675 Adjust prototypes.
6676
f6ad61e3
MK
66772003-05-24 Mark Kettenis <kettenis@gnu.org>
6678
6679 * sparcnbsd-tdep.c: Include "gdb_string.h".
6680
b276f1bb
AC
66812003-05-23 Andrew Cagney <cagney@redhat.com>
6682
6683 * p-valprint.c (pascal_val_print): Replace extract_address with
6684 the inline equivalent extract_unsigned_integer.
6685 * jv-valprint.c (java_value_print): Ditto.
6686 * ada-valprint.c (ada_val_print_1): Ditto.
6687 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6688
e76c5fcc
TR
66892003-05-23 Theodore A. Roth <troth@openavr.org>
6690
6691 * blockframe.c (frameless_look_for_prologue): Remove unused
6692 after_prologue variable.
6693
2cdd89cb
MK
66942003-05-23 Mark Kettenis <kettenis@gnu.org>
6695
6696 * blockframe.c (get_pc_function_start): Rewrite to avoid
6697 asignments in if-statements.
6698
182d43bc
EZ
66992003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6700
6701 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 6702 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
6703 files, don't relocate absolute symbols (and do use mst_abs).
6704
e8f3fcdd
AC
67052003-05-23 Andrew Cagney <cagney@redhat.com>
6706
6707 * objc-lang.c: Include "gdb_assert.h".
6708 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6709 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6710 (gdb_check, gdb_check_fatal): Delete functions.
6711 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6712 gdb_assert.
6713 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6714 * Makefile.in (objc-lang.o): Update dependencies.
6715
3c23e6fb
ILT
67162003-05-22 Ian Lance Taylor <ian@airs.com>
6717
6718 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6719 with fprintf_filtered, not fprintf_unfiltered.
6720
af1342ab
AC
67212003-05-22 Andrew Cagney <cagney@redhat.com>
6722
6723 * stack.c (frame_info): Inline extract_address, replacing it with
6724 extract_unsigned_integer.
6725 * findvar.c (unsigned_pointer_to_address): Ditto.
6726 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6727 * dwarf2expr.c (dwarf2_read_address): Ditto.
6728 * frame.c (frame_pc_unwind): Update comment.
6729 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6730
47e242ec
JJ
67312003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6732
6733 * infptrace.c (detach): Call print_sys_errmsg rather than
6734 perror_with_name to issue warning message when errno is non-zero
6735 after calling ptrace detach.
6736
e2ac8128
JB
67372003-05-21 J. Brobecker <brobecker@gnat.com>
6738
6739 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6740 macro definitions from here...
6741 * hppa-tdep.c: ...to there.
6742
92b3541e
KB
67432003-05-20 Kevin Buettner <kevinb@redhat.com>
6744
6745 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6746 register_ptrace_addr(). Fix all callers.
6747
55809acb
AS
67482003-05-21 Andreas Schwab <schwab@suse.de>
6749
6750 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6751 dependencies.
6752 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6753 end.
6754 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6755 (_initialize_m68k_linux_tdep): New function.
6756 (m68k_linux_frame_saved_pc): Make static.
6757 (m68k_linux_extract_return_value): Likewise.
6758 (m68k_linux_store_return_value): Likewise.
6759 (m68k_linux_extract_struct_value_address): Likewise.
6760 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6761 Remove.
6762 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6763 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6764 (DEPRECATED_FRAME_SAVED_PC): Remove.
6765
0fbc10f7
KW
67662003-05-20 Kris Warkentin <kewarken@qnx.com>
6767
6768 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6769 regset numbering rather than our own.
6770
58da2eb2
DC
67712003-05-19 David Carlton <carlton@bactrian.org>
6772
6773 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6774
1fcb5155
DC
67752003-05-19 David Carlton <carlton@bactrian.org>
6776
6777 Partial fix for PR c++/827.
6778 * cp-support.h: Include symtab.h.
6779 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6780 * cp-namespace.c: Update contributors.
6781 (cp_lookup_symbol_nonlocal): New.
6782 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6783 (lookup_symbol_file): Ditto.
6784 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6785 * block.h: Declare block_scope, block_using, block_global_block.
6786 * block.c (block_scope): New.
6787 (block_using, block_global_block): Ditto.
6788 * Makefile.in (cp_support_h): Depend on symtab_h.
6789 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6790
5f9a71c3
DC
67912003-05-19 David Carlton <carlton@bactrian.org>
6792
6793 * language.h (struct language_defn): Add 'la_value_of_this'
6794 and 'la_lookup_symbol_nonlocal' members.
6795 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6796 lookup_symbol_static, lookup_symbol_global,
6797 lookup_symbol_aux_block.
6798 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6799 if we should search fields of this and how to do static/global
6800 lookup.
6801 (lookup_symbol_aux_block): Make extern.
6802 (basic_lookup_symbol_nonlocal): New.
6803 (lookup_symbol_static, lookup_symbol_global): Ditto.
6804 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6805 'la_lookup_symbol_nonlocal' members.
6806 * c-lang.c (c_language_defn, cplus_language_defn)
6807 (asm_language_defn, minimal_language_defn): Ditto.
6808 * jv-lang.c (java_language_defn): Ditto.
6809 * language.c (unknown_language_defn, auto_language_defn)
6810 (local_language_defn): Ditto.
6811 * m2-lang.c (m2_language_defn): Ditto.
6812 * objc-lang.c (objc_language_defn): Ditto.
6813 * scm-lang.c (scm_language_defn): Ditto.
6814 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6815 * p-lang.c (pascal_language_defn): Ditto for both.
6816 * Makefile.in (f-lang.o): Depend on value_h.
6817 (p-lang.o): Ditto.
6818
89a9d1b1
DC
68192003-05-19 David Carlton <carlton@bactrian.org>
6820
6821 * block.h: Declare block_static_block.
6822 * block.c (block_static_block): New.
6823 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6824 lookup_symbol_aux_local, calling block_static_block instead.
6825 (lookup_symbol_aux_local): Delete 'static_block' argument.
6826
eed3f8ab
DC
68272003-05-19 David Carlton <carlton@bactrian.org>
6828
6829 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6830
a09d8bda
ML
68312003-05-19 Michal Ludvig <mludvig@suse.cz>
6832
6833 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6834 register numbers mapping.
6835
69636828
AF
68362003-05-18 Adam Fedor <fedor@gnu.org>
6837
6838 * symtab.c (completion_list_objc_symbol): New function.
6839 (make_symbol_completion_list): Use it to add ObjC symbols
6840 when looking though the list.
6841 (language_search_unquoted_string): New function.
6842 (make_file_symbol_completion_list): Use it.
6843
55baeb84
AS
68442003-05-18 Andreas Schwab <schwab@suse.de>
6845
d0b45d99
AS
6846 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6847 dependencies.
6848 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6849 as m68k_linux_extract_return_value.
6850 (DEPRECATED_STORE_RETURN_VALUE): Define as
6851 m68k_linux_store_return_value.
6852 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6853 m68k_linux_extract_struct_value_address.
6854 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6855 get_next_frame, get_frame_base, get_frame_pc.
6856 (m68k_linux_frame_saved_pc): Use get_frame_base.
6857 (m68k_linux_extract_return_value): New function.
6858 (m68k_linux_store_return_value): New function.
6859 (m68k_linux_extract_struct_value_address): New function.
6860 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6861
55baeb84
AS
6862 * c-exp.y (typebase): Remove duplicate occurence of
6863 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 6864 of lookup_signed_typename.
55baeb84 6865
b6b08ebf
MK
68662003-05-18 Mark Kettenis <kettenis@gnu.org>
6867
6868 * dwarf2loc.c (find_location_expression): Change type of second
6869 argument to `size_t *'.
6870 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6871 for size variable.
6872
5ad1c190
DC
68732003-05-18 David Carlton <carlton@bactrian.org>
6874
6875 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6876 'linkage_name'. Add comment.
6877 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6878 'linkage_name'.
6879 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6880 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6881 (lookup_block_symbol): Ditto.
6882
b8b527c5
AC
68832003-05-16 Andrew Cagney <cagney@redhat.com>
6884
6885 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6886 * gdbarch.h, gdbarch.c: Re-generate.
6887 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6888 * TODO (REGISTER_BYTES): Delete reference.
6889 * alpha-tdep.c (alpha_gdbarch_init): Update.
6890 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6891 * x86-64-tdep.c (x86_64_init_abi): Update.
6892 * vax-tdep.c (vax_gdbarch_init): Update.
6893 * v850-tdep.c (v850_gdbarch_init): Update.
6894 * sparc-tdep.c (sparc_gdbarch_init): Update.
6895 * sh-tdep.c (sh_gdbarch_init): Update.
6896 * s390-tdep.c (s390_gdbarch_init): Update.
6897 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6898 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6899 (ns32k_gdbarch_init_32382): Update.
6900 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6901 * mcore-tdep.c (mcore_gdbarch_init): Update.
6902 * m68k-tdep.c (m68k_gdbarch_init): Update.
6903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6904 * ia64-tdep.c (ia64_gdbarch_init): Update.
6905 * i386-tdep.c (i386_gdbarch_init): Update.
6906 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6907 * hppa-tdep.c (hppa_gdbarch_init): Update.
6908 * h8300-tdep.c (h8300_gdbarch_init): Update.
6909 * frv-tdep.c (frv_gdbarch_init): Update.
6910 * cris-tdep.c (cris_gdbarch_init): Update.
6911 * avr-tdep.c (avr_gdbarch_init): Update.
6912 * arm-tdep.c (arm_gdbarch_init): Update.
6913 * sparc-tdep.c (sparc_pop_frame): Update.
6914 * rs6000-tdep.c (rs6000_pop_frame): Update.
6915 * remote.c (init_remote_state): Update.
6916 (remote_prepare_to_store): Update.
6917 * remote-vx.c (vx_prepare_to_store): Update.
6918 * remote-sds.c (sds_fetch_registers): Update.
6919 (sds_prepare_to_store): Update.
6920 * remote-array.c: Update.
6921 * regcache.c (init_legacy_regcache_descr): Update.
6922 (init_regcache_descr): Update.
6923 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6924 (mips_o64_extract_return_value): Update.
6925 * irix5-nat.c (fetch_core_registers): Update.
6926 * irix4-nat.c (fetch_core_registers): Update.
6927 * i386-tdep.h: Update.
6928 * hppa-tdep.c (pa_do_registers_info): Update.
6929 (pa_do_strcat_registers_info): Update.
6930 * cris-tdep.c (cris_register_bytes_ok): Update.
6931 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6932 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6933 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6934 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6935 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6936 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6937 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6938 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6939 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6940 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6941 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6942 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6943 (REGISTER_BYTES_OK): Update.
6944 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6945 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6946
ee2842e2
ILT
69472003-05-16 Ian Lance Taylor <ian@airs.com>
6948
6949 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6950 (vax_print_insn, print_insn_arg): Remove static functions.
6951 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6952 print_insn_vax from opcodes library.
6953 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6954
973177d3
AC
69552003-05-15 Andrew Cagney <cagney@redhat.com>
6956
aaab4dba
AC
6957 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6958 * target.h (memory_breakpoint_from_pc): Delete declaration.
6959 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6960 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6961 * monitor.c (monitor_insert_breakpoint): Use
6962 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6963 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6964 * gdbarch.h, gdbarch.c: Re-generate.
6965 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6966 (sparc_gdbarch_init): Set breakpoint_from_pc to
6967 sparc_breakpoint_from_pc.
6968 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6969 (BREAKPOINT_FROM_PC): Define.
6970 (sparc_breakpoint_from_pc): Declare.
6971 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6972 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6973 (BREAKPOINT_FROM_PC): Define.
6974 (BREAKPOINT): Delete macro.
6975 * target.h: Update comment.
6976 * s390-tdep.c (s390_gdbarch_init): Update comments.
6977 * remote.c: Update comments.
6978 * remote-mips.c: Update comments.
6979 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6980 * mem-break.c: Update comment.
6981 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6982 (ia64_memory_insert_breakpoint): Update.
6983 * config/sparc/tm-sparc.h: Update comment.
6984 * config/pa/tm-hppa64.h: Update comment.
6985 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6986 (rs6000_breakpoint_from_pc): Update.
6987 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6988 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6989 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6990 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6991 (mips_breakpoint_from_pc): Update.
6992 (mips_dump_tdep): Update.
6993
e06963ff
AC
6994 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6995 * minsyms.c (lookup_minimal_symbol): Inline
6996 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6997
973177d3
AC
6998 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6999 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7000 * p-lang.c (pascal_printstr): Ditto.
7001 * objc-lang.c (objc_printstr): Ditto.
7002 * m2-lang.c (m2_printstr): Ditto.
7003 * jv-valprint.c (java_print_value_fields): Ditto.
7004 * f-lang.c (f_printstr): Ditto.
7005 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7006 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7007 for repeat_count_threshold.
7008 * Makefile.in (cp-valprint.o): Update dependencies.
7009
5ea2bd7f 70102003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7011
5ea2bd7f
JJ
7012 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7013 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
7014 they start with mov r2,r12. Support skipping over indirect stores
7015 of the input registers. Upon hitting a non-nop branch instruction
7016 or predicated instruction, bail out by setting lim_pc to the current
7017 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
7018 beyond our calculated value and we have trust_limit set,
7019 use the lim_pc value.
7020
cc8c88f3
AC
70212003-05-15 Andrew Cagney <cagney@redhat.com>
7022
7023 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7024 generic_find_dummy_frame.
7025 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7026 (deprecated_generic_find_dummy_frame): Update.
7027 (deprecated_read_register_dummy): Update.
7028 * frame.c (deprecated_generic_get_saved_register): Update.
7029
909cd28e
TR
70302003-05-15 Theodore A. Roth <troth@openavr.org>
7031
7032 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7033 (avr_gdbarch_init): Set breakpoint_from_pc method.
7034
b923b08d
AC
70352003-05-15 Andrew Cagney <cagney@redhat.com>
7036
7037 * regcache.c (build_regcache): Set deprecated_register_valid
7038 directly.
7039 (deprecated_grub_regcache_for_register_valid): Delete function.
7040 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7041 declaration.
7042
ae2f03ac 70432003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
7044
7045 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
7046 * symtab.c (lookup_symbol_aux): Delete calls to
7047 lookup_symbol_aux_minsyms.
7048 (lookup_symbol_aux_minsyms): Comment out function and
7049 prototype. Delete lookup by mangled name.
ae2f03ac 7050
18ec9831
KB
70512003-05-14 Kevin Buettner <kevinb@redhat.com>
7052
7053 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7054 correctly indicate an empty stack and ``stack_allocated'' to the
7055 indicate the number of elements initially allocated.
7056 (dwarf_expr_grow_stack): Simplify method for computing new
7057 stack size. Don't loop infinitely if ``stack_len'' is zero.
7058 (execute_stack_op): Move ``ctx->in_reg'' initialization
7059 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7060 be used in conjuction with DW_OP_piece. Revise error message
7061 accordingly.
7062
de18ac1f
TR
70632003-05-14 Theodore A. Roth <troth@openavr.org>
7064
7065 * MAINTAINERS: Update my email address.
7066 * avr-tdep.c: Ditto.
7067
176620f1
EZ
70682003-05-14 Elena Zannoni <ezannoni@redhat.com>
7069
7070 * symtab.h (enum domain_enum): Rename from namespace_enum.
7071 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7072 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7073 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7074 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7075 TYPES_NAMESPACE, METHODS_NAMESPACE.
7076 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7077 (struct symbol, struct partial_symbol): Rename field
7078 'namespace_enum namespace' to 'domain_enum domain'.
7079 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7080 Delete old define kludge for namespace.
7081
7082 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7083 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7084 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7085 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7086 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7087 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7088 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7089 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7090 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7091 occurrences of the above.
7092
b7f31508
ILT
70932003-05-14 Ian Lance Taylor <ian@airs.com>
7094
7095 * Makefile.in (install-only): Use $(SHELL) when running
7096 mkinstalldirs.
7097
2fdbdd39
ILT
70982003-05-13 Ian Lance Taylor <ian@airs.com>
7099
a208d82c
ILT
7100 * MAINTAINERS (write after approval): Add myself.
7101
2fdbdd39
ILT
7102 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7103 second and third arguments.
7104 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7105 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7106
fbd9dcd3
AC
71072003-05-13 Andrew Cagney <cagney@redhat.com>
7108
7109 * defs.h (store_address): Delete declaration.
7110 findvar.c (store_address): Delete function.
7111 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7112 store_unsigned_integer.
7113 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7114 * v850-tdep.c (v850_push_arguments): Ditto.
7115 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7116 * sh-tdep.c (sh64_get_saved_register): Ditto.
7117 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7118 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7119 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7120 (mips_get_saved_register): Ditto.
7121 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7122 (find_func_descr, ia64_push_arguments): Ditto.
7123 * i386-tdep.c (i386_push_arguments): Ditto.
7124 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7125 * frv-tdep.c (frv_push_arguments): Ditto.
7126 * frame.c (legacy_saved_regs_prev_register): Ditto.
7127 (deprecated_generic_get_saved_register): Ditto.
7128 * findvar.c (unsigned_address_to_pointer): Ditto.
7129 * dwarf2read.c (dwarf2_const_value): Ditto.
7130 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7131 * alpha-tdep.c (alpha_push_arguments): Ditto.
7132
6760f9e6
JB
71332003-05-12 J. Brobecker <brobecker@gnat.com>
7134
7135 * NEWS: Mention that the hppa-hpux port has been partially
7136 multiarched (32bit ABIT only, so far).
7137
30e221b4
AC
71382003-05-11 Andrew Cagney <cagney@redhat.com>
7139
7140 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7141 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7142 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7143 sim/testsuite/sim/arm/misaligned2.ms, and
7144 sim/testsuite/sim/arm/misaligned3.ms.
7145 * disasm.h (struct ui_file): Add opaque struct declaration.
7146 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7147 * frame.h (struct ui_file): Ditto.
7148
dea7f9ba
MK
71492003-05-11 Mark Kettenis <kettenis@gnu.org>
7150
7151 * value.h: Pretty print.
7152
01986c48
MK
71532003-05-10 Mark Kettenis <kettenis@gnu.org>
7154
7155 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7156
123a958e
AC
71572003-05-08 Andrew Cagney <cagney@redhat.com>
7158
7159 * regcache.h (max_register_size): Delete declaration.
7160 * regcache.c (max_register_size): Delete function.
7161 (struct regcache_descr): Delete field "max_register_size".
7162 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7163 registers fit in MAX_REGISTER_SIZE.
7164 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7165 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7166 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7167 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7168 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7169 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7170 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7171 * dve3900-rom.c, hppa-tdep.c: Ditto.
7172
eb294659
DC
71732003-05-08 David Carlton <carlton@math.stanford.edu>
7174
7175 * valops.c (push_word): Fix typo.
7176
d9d9c31f
AC
71772003-05-08 Andrew Cagney <cagney@redhat.com>
7178
7179 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7180 * gdbarch.h: Re-generate.
7181 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7182 (legacy_max_register_raw_size): Delete declaration.
7183 * regcache.c (legacy_max_register_raw_size): Delete function.
7184 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7185 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7186 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7187 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7188 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7189 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7190 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7191 * findvar.c, dwarf2cfi.c: Ditto.
7192
22540ece
AC
71932003-05-08 Andrew Cagney <cagney@redhat.com>
7194
7195 * mips-tdep.c (read_signed_register): New function, moved to here
7196 from "regcache.c".
7197 (read_signed_register_pid): Ditto.
7198 * regcache.c (read_signed_register_pid): Delete function, moved to
7199 "mips-tdep.c".
7200 (read_signed_register): Ditto.
7201 * regcache.h (read_signed_register): Delete declaration.
7202 (read_signed_register_pid): Delete declaration.
7203
0c92afe8
AC
72042003-05-08 Andrew Cagney <cagney@redhat.com>
7205
7206 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7207 * gdbarch.h: Re-generate.
7208 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7209 (legacy_max_register_virtual_size): Delete declaration.
7210 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7211 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7212 * tracepoint.c (memrange_sortmerge): Ditto.
7213 * sparc-tdep.c (sparc_print_registers): Ditto.
7214 * regcache.c (legacy_max_register_virtual_size): Delete function.
7215
6037b830
JB
72162002-05-08 J. Brobecker <brobecker@gnat.com>
7217
7218 * fork-child.c (escape_bang_in_quoted_argument): New function.
7219 (fork_inferior): Escape '!' characters in quoted arguments
7220 only when needed.
7221
5d62c8b1
JB
72222003-05-08 J. Brobecker <brobecker@gnat.com>
7223
7224 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7225 the language of the CU is not currently supported by GDB.
7226
20a0e81d
JB
72272003-05-08 J. Brobecker <brobecker@gnat.com>
7228
7229 * defs.h (language): Add language_minimal enum value.
7230 * c-lang.c (minimal_language_defn): New language definition.
7231 (_initialize_c_language): Add the new minimal language to the list
7232 of languages known to GDB.
7233
710ee10a
KB
72342003-05-08 Kevin Buettner <kevinb@redhat.com>
7235
7236 * frame.c (get_frame_type): Don't attempt to lazily initialize
7237 frame's unwinder for legacy frames.
7238
1750fa04
AC
72392003-05-07 Andrew Cagney <cagney@redhat.com>
7240
7241 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7242 and "regcache" parameters.
7243 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7244
ddf9f258 72452003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7246
7247 * dwarf2read.c (dwarf_decode_lines): Only use output of
7248 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
7249 the current address.
7250
87767c29
AC
72512003-05-07 Andrew Cagney <cagney@redhat.com>
7252
7253 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7254 code.
7255
5e7b2f39
JB
72562003-05-07 Jim Blandy <jimb@redhat.com>
7257
7258 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7259 'maint info symtabs' and 'maint info psymtabs'.
7260 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7261 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7262 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7263 Declarations updated.
7264 * maint.c (maintenance_list_command): Delete.
7265 (_initialize_maint_cmds): Update calls to add_cmd.
7266 * gdbcmd.h (maintenancelistlist): Delete declaration.
7267 * cli/cli-cmds.c (maintenancelistlist): Delete.
7268 (init_cmd_lists): Don't initialize it.
7269 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7270
f6684c31
AC
72712003-05-07 Andrew Cagney <cagney@redhat.com>
7272
7273 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7274 "regcache".
7275 (d10v_print_registers_info): Update.
7276 (d10v_dmap_register, d10v_imap_register): Delete functions.
7277 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7278 and "imap_register".
7279 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7280 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7281 * arch-utils.c (generic_remote_translate_xfer_address): Add
7282 "regcache" and "gdbarch" parameters.
7283 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7284 parameter. Change class to multi-arch.
7285 * gdbarch.h, gdbarch.c: Re-generate.
7286 * remote.c (remote_xfer_memory): Use
7287 gdbarch_remote_translate_xfer_address.
8ffd9b1b 7288
e4846b08
JJ
72892003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7290
7291 * infrun.c (prev_pc): Move declaration ahead of proceed().
7292 (proceed): Refresh prev_pc value before resuming.
7293 (stop_stepping): Remove code to refresh prev_pc.
7294
6b71b8ac
KW
72952003-05-06 Kris Warkentin <kewarken@qnx.com>
7296
7297 * nto-tdep.c: Removed stray comment.
7298
47979a4b
KW
72992003-05-06 Kris Warkentin <kewarken@qnx.com>
7300
7301 * i386-nto-tdep.c: Fix old K&R function definitions.
7302 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7303 Also change add_show_from_set() call to add_setshow_cmd().
7304 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7305
00905d52
AC
73062003-05-05 Andrew Cagney <cagney@redhat.com>
7307
7308 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7309 (fprint_dummy_frames): New function.
7310 (maintenance_print_dummy_frames): New function.
7311 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7312 * frame.c (fprint_frame_id): Make global.
7313 * frame.h (fprint_frame_id): Declare.
7314 * Makefile.in (dummy-frame.o): Update dependencies.
7315
b1e29e33
AC
73162003-05-05 Andrew Cagney <cagney@redhat.com>
7317
7318 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7319 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7320 SIZEOF_CALL_DUMMY_WORDS.
7321 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7322 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7323 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7324 CALL_DUMMY_BREAKPOINT_OFFSET.
7325 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7326 CALL_DUMMY_START_OFFSET.
7327 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7328 * gdbarch.h, gdbarch.c: Re-generate.
7329 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7330 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7331 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7332 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7333 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7334 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7335 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7336 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7337 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7338 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7339 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7340 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7341 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7342 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7343 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
7344
73452003-05-05 Kris Warkentin <kewarken@qnx.com>
7346
7347 * configure.tgt: Add i[3456]86-*-nto*.
7348 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7349 * nto-tdep.c: New file. Neutrino target support routines.
7350 * nto-tdep.h: New file. Neutrino target header.
7351 * config/tm-qnxnto.h: New file.
7352 * config/i386/i386nto.mt: New file.
7353 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 7354
0ce3d317
AC
73552003-05-04 Andrew Cagney <cagney@redhat.com>
7356
7357 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7358 (load_infrun_state): Ditto.
7359 (struct thread_info): Drop "prev_func_name" field.
7360 * thread.c (load_infrun_state): Update.
7361 (save_infrun_state): Update.
7362 * infrun.c (prev_func_name): Delete variable.
7363 (init_wait_for_inferior): Do not clear prev_func_name.
7364 (stop_stepping, keep_going, context_switch): Do not swap
7365 prev_func_name.
7366 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7367 instead of PC_IN_SIGTRAMP.
7368
46654a5b
AC
73692003-05-04 Andrew Cagney <cagney@redhat.com>
7370
7371 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7372 REGISTER_BYTE with register_offset_hack.
7373 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7374 that REGISTER_BYTE is consistent with the regcache.
7375 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7376 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 7377
14b08c1b
MK
73782003-05-04 Mark Kettenis <kettenis@gnu.org>
7379
04c8243f
MK
7380 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7381 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7382
14b08c1b
MK
7383 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7384
c7a11e01
JB
73852003-05-03 J. Brobecker <brobecker@gnat.com>
7386
7387 From Thierry Schneider <tpschneider1@yahoo.com>
7388 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7389 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7390 (mi-cmd-symbol.o): Add rule.
7391
7043d8dc
AC
73922003-05-03 Andrew Cagney <cagney@redhat.com>
7393
7394 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7395 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7396 * gdbarch.h, gdbarch.c: Re-generate.
7397 * d10v-tdep.c (d10v_push_dummy_code): New function.
7398 (d10v_gdbarch_init): Set push_dummy_code.
7399 * infcall.c (legacy_push_dummy_code): New function.
7400 (generic_push_dummy_code): New function.
7401 (push_dummy_code): New function.
7402 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7403 instead of dummy_addr, to push_dummy_call. Move call to
7404 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7405 switch.
7406 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7407
92bf2b80
AC
74082003-05-03 Andrew Cagney <cagney@redhat.com>
7409
7410 * disasm.h (print_insn): Declare.
7411 * disasm.c (init_gdb_disassemble_info): New function.
7412 (gdb_disassembly): Call init_gdb_disassemble_info.
7413 (gdb_print_insn): New function.
7414 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7415 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7416 * mcore-tdep.c: Include "disasm.h"
7417 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7418 * d10v-tdep.c: Include "disasm.h".
7419 (display_trace): Call gdb_print_insn, instead of print_insn.
7420 (print_insn): Delete function.
7421 * printcmd.c: Include "disasm.h".
7422 (print_insn): Delete function.
7423 (print_formatted): Call gdb_print_insn, instead of print_insn.
7424 * Makefile.in (printcmd.o): Update dependencies.
7425 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 7426
27d94c49
AC
74272003-05-02 Andrew Cagney <cagney@redhat.com>
7428
82de1e5b
AC
7429 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7430 PC_REGNUM, re-indent.
7431 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7432 PC_REGNUM isn't set.
7433
27d94c49
AC
7434 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7435 * gdbarch.h, gdbarch.c: Re-generate.
7436 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7437 register_virtual_size, pc_regnum, or register_bytes.
7438 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7439 (d10v_register_type): Use D10V_PC_REGNUM.
7440 (d10v_print_registers_info, d10v_read_pc): Ditto.
7441 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7442 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7443
a9c0dc7f
DC
74442003-05-02 David Carlton <carlton@bactrian.org>
7445
7446 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7447 the name with mstrsave.
7448
e33d66ec
EZ
74492003-05-02 Elena Zannoni <ezannoni@redhat.com>
7450
7451 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7452 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7453 (host_charset_name, target_charset_name): New vars for use by
7454 set/show commands.
7455 (host_charset_enum, target_charset_enum): New enums for set/show
7456 commands.
7457 (set_charset_sfunc, set_host_charset_sfunc,
7458 set_target_charset_sfunc): New functions.
7459 (set_host_charset, set_target_charset): Make static.
7460 (list_charsets, set_host_charset_command,
7461 set_target_charset_command): Delete functions.
7462 (show_charset_command): Rewrite as....
7463 (show_charset): Hook this up with the set/show command mechanism.
7464 (_initialize_charset): Change names of charsets to match the
7465 set/show enums. Use host_charset_name and target_charset_name.
7466 Use set/show mechanism for charset, host-charset, target-charset
7467 commands. Do not make 'show host-charset' and 'show
7468 target-charset' be aliases of 'show charset'.
7469
7470 * charset.h (set_host_charset, set_target_charset): Don't export,
7471 they are not used outside the file.
7472
2b6fd0d8
AC
74732003-05-01 Andrew Cagney <cagney@redhat.com>
7474
7475 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7476 (gdb_disassembly): Make "di" non static, always initialize and
7477 cleanup. Always use dis_asm_read_memory.
7478 (gdb_dis_asm_read_memory): Delete function.
7479
6ae2f580
AC
74802003-05-01 Andrew Cagney <cagney@redhat.com>
7481
7482 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7483 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7484
810ecf9f
AC
74852003-04-30 Andrew Cagney <cagney@redhat.com>
7486
7487 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7488 "tm_print_insn_info".
7489 (TARGET_PRINT_INSN_INFO): Delete macro.
7490 (dis_asm_read_memory): Delete function declaration.
7491 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7492 (tm_print_insn_info): Delete variable definition.
7493 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7494 * gdbarch.h, gdbarch.c: Re-generate.
7495 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7496 "deprecated_tm_print_insn_info".
7497 * mcore-tdep.c (mcore_dump_insn): Ditto.
7498 * mips-tdep.c (mips_gdbarch_init): Ditto.
7499 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7500 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7501 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7502 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7503 instead of TARGET_PRINT_INSN_INFO, add comment.
7504 * s390-tdep.c (s390_get_frame_info): Instead of
7505 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7506 (s390_check_function_end, s390_is_sigreturn): Ditto.
7507 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7508 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7509 * disasm.c: Include "gdbcore.h".
7510 (_initialize_disasm): New function, initialize
7511 "deprecated_tm_print_insn_info".
7512 (deprecated_tm_print_insn_info): New variable.
7513 (dis_asm_read_memory): Moved from "corefile.c", made static.
7514 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7515 * Makefile.in (disasm.o): Update dependencies.
7516
07020390
AC
75172003-04-30 Andrew Cagney <cagney@redhat.com>
7518
7519 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7520
a9fa03de
AF
75212003-04-29 Adam Fedor <fedor@gnu.org>
7522
7523 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7524 * infcall.c (find_function_addr): Make non-static.
7525 * infcall.h (find_function_addr): Declare.
7526 * Makefile.in (eval.o): Update dependencies.
7527
1bae87b9
AF
75282003-04-28 Adam Fedor <fedor@gnu.org>
7529
7530 * symtab.c (symbol_find_demangled_name): Check for and demangle
7531 ObjC symbols.
7532 (symbol_init_demangled_name): Init for language_objc as well.
7533
0ba6dca9
AC
75342003-04-28 Andrew Cagney <cagney@redhat.com>
7535
7536 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7537 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7538 * gdbarch.h, gdbarch.c: Re-generate.
7539 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7540 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7541 * inferior.h (deprecated_read_fp): Rename read_fp.
7542 (generic_target_read_fp): Delete declaration.
7543 * regcache.c (generic_target_read_fp): Delete function.
7544 (deprecated_read_fp): Replace read_fp, use
7545 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7546 * d10v-tdep.c (d10v_read_fp): Delete function.
7547 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7548
7549 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7550 deprecated_target_read_fp to generic_target_read_fp.
7551 * sh-tdep.c (sh_gdbarch_init): Ditto.
7552 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7554 * frv-tdep.c (frv_gdbarch_init): Ditto.
7555
7556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7557 deprecated_fp_regnum.
7558 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7559 * vax-tdep.c (vax_gdbarch_init): Ditto.
7560 * v850-tdep.c (v850_gdbarch_init): Ditto.
7561 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7562 * sh-tdep.c (sh_gdbarch_init): Ditto.
7563 * s390-tdep.c (s390_gdbarch_init): Ditto.
7564 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7565 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7566 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7567 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7569 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7570 * i386-tdep.c (i386_gdbarch_init): Ditto.
7571 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7572 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7573 * frv-tdep.c (frv_gdbarch_init): Ditto.
7574 * cris-tdep.c (cris_gdbarch_init): Ditto.
7575 * avr-tdep.c (avr_gdbarch_init): Ditto.
7576 * arm-tdep.c (arm_gdbarch_init): Ditto.
7577 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7578
7579 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7580 * v850-tdep.c (v850_gdbarch_init): Ditto.
7581 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7582 * sh-tdep.c (sh_gdbarch_init): Ditto.
7583 * s390-tdep.c (s390_gdbarch_init): Ditto.
7584 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7585 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7586 * mips-tdep.c (mips_gdbarch_init): Ditto.
7587 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7588 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7589 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7590 * frv-tdep.c (frv_gdbarch_init): Ditto.
7591 * avr-tdep.c (avr_gdbarch_init): Ditto.
7592 * arm-tdep.c (arm_gdbarch_init): Ditto.
7593
7594 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7595 DEPRECATED_FP_REGNUM.
7596 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7597 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7598 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7599 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7600 (sparc32_register_virtual_type): Ditto.
7601 * sh-tdep.c (sh64_frame_chain): Ditto.
7602 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7603 (sh_nofp_frame_init_saved_regs): Ditto.
7604 (sh64_nofp_frame_init_saved_regs): Ditto.
7605 (sh_fp_frame_init_saved_regs): Ditto.
7606 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7607 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7608 * procfs.c (procfs_fetch_registers): Ditto.
7609 (procfs_store_registers): Ditto.
7610 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7611 (store_inferior_registers, fetch_core_registers): Ditto.
7612 (fetch_kcore_registers, clear_regs): Ditto.
7613 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7614 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7615 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7616 * nlm/i386.c (do_status): Ditto.
7617 * mipsv4-nat.c (supply_gregset): Ditto.
7618 * mips-tdep.c: Ditto for comments.
7619 * mips-nat.c (fetch_inferior_registers): Ditto.
7620 (store_inferior_registers, fetch_core_registers): Ditto.
7621 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7622 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7623 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7624 (i386_do_pop_frame, i386_register_type): Ditto.
7625 * hppa-tdep.c (hppa_frame_chain): Ditto.
7626 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7627 (hppa_pop_frame, hppa_read_fp): Ditto.
7628 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7629 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7630 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7631 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7632 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7633 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7634 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7635 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7636 * blockframe.c: Ditto for comments.
7637 * arch-utils.h: Ditto for comments.
7638 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7639 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7640 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7641 * alpha-tdep.h: Ditto for comments.
7642 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7643 (alpha_cannot_store_register): Ditto.
7644 (alpha_push_dummy_frame): Ditto.
7645 * alpha-nat.c (supply_gregset): Ditto.
7646
7647 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7648 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7649 * config/sparc/tm-sparc.h: Update comment.
7650
7651 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7652 deprecated_read_fp instead of TARGET_READ_FP.
7653 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7654 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7655 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7656 deprecated_read_fp instead of read_fp.
7657 * s390-tdep.c (s390_push_arguments): Ditto.
7658 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7659 * frame.h: Ditto in comments.
7660 * frame.c (legacy_get_prev_frame): Ditto.
7661 * dummy-frame.c (dummy_frame_this_id): Ditto.
7662 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7663
d7a27068
AC
76642003-04-28 Andrew Cagney <cagney@redhat.com>
7665
7666 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7667 * gdbarch.h, gdbarch.c: Re-generate.
7668 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7669 * vax-tdep.c (_initialize_vax_tdep): Update.
7670 * v850-tdep.c (_initialize_v850_tdep): Update.
7671 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7672 * s390-tdep.c (_initialize_s390_tdep): Update.
7673 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7674 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7675 * mips-tdep.c (_initialize_mips_tdep): Update.
7676 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7677 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7678 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7679 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7680 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7681 * frv-tdep.c (_initialize_frv_tdep): Update.
7682 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7683 (_initialize_cris_tdep): Update.
7684 * arch-utils.c (legacy_print_insn): Update.
7685 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7686
d2630e69
AF
76872003-04-26 Adam Fedor <fedor@gnu.org>
7688
7689 * linespec.c (decode_objc): New function to decode ObjC calls
7690 (decode_line_1): Check for ObjC calls (using decode_objc)
7691 * Makefile (linespec.o): Update dependencies.
7692
3086aeae
DJ
76932003-04-26 Daniel Jacobowitz <drow@mvista.com>
7694
7695 * breakpoint.h (struct breakpoint_ops): New.
7696 (struct breakpoint): Add ops member.
7697
7698 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7699 (mention): Use new breakpoint ops member.
7700 (set_raw_breakpoint): Initialize ops field to NULL.
7701 (print_exception_catchpoint, print_one_exception_catchpoint)
7702 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7703 (gnu_v3_exception_catchpoint_ops): New.
7704 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7705
1fbec6c3
AF
77062003-04-25 Adam Fedor <fedor@gnu.org>
7707
7708 * Makefile.in (COMMON_OBS): Add objc-lang.o
7709
0ef21242
AC
77102003-04-25 Andrew Cagney <cagney@redhat.com>
7711
7712 * d10v-tdep.c (print_insn): Delete function.
7713 (display_trace): Use TARGET_PRINT_INSN.
7714 (_initialize_d10v_tdep): Do not set tm_print_insn.
7715 (d10v_gdbarch_init): Set print_insn.
7716
f75493ed
AC
77172003-04-25 Andrew Cagney <cagney@redhat.com>
7718
7719 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7720 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7721 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7722 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7723 (nr_dmap_regs, a0_regnum): ... new functions.
7724 (d10v_print_registers_info): Use a0_regnum, use register_size.
7725 (d10v_register_byte): Delete function.
7726 (d10v_register_raw_size): Delete function.
7727 (d10v_register_type): Use a0_regnum.
7728 (d10v_print_registers_info): Use a0_regnum.
7729 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7730 (d10v_gdbarch_init): Do not set register_byte or
7731 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7732 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7733 extract_address.
7734 (trace_command): Use XCALLOC.
7735 (print_insn): Delete reference to tm_print_insn.
7736 (saved_regs_unwinder): Use store_unsigned_integer instead of
7737 store_address.
7738 * frame.h (FRAME_OBSTACK_CALLOC): Define
7739
2202b100
DC
77402003-04-25 David Carlton <carlton@bactrian.org>
7741
7742 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7743
4e45ca2e
AF
77442003-04-24 Adam Fedor <fedor@gnu.org>
7745
7746 * objc-lang.c: Include "valprint.h"
7747 * Makefile.in (objc-lang.o): Update dependencies.
7748
93de3e7f
AF
77492003-04-24 Adam Fedor <fedor@gnu.org>
7750
8ffd9b1b 7751 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
7752 architecture dependant compilation and mark as unimplemented
7753 (until they get put in the gdbarch vector).
7754
0f20eeea
DC
77552003-04-23 David Carlton <carlton@bactrian.org>
7756
7757 * cp-support.c (cp_find_first_component): Accept 'operator' in
7758 more locations.
7759
74cfe982
AC
77602003-04-23 Andrew Cagney <cagney@redhat.com>
7761
7762 * infcall.c (call_function_by_hand): Eliminate redundant
7763 indentation. Move "saved_async" and "old_cleanups" to where they
7764 are needed.
8ffd9b1b 7765
52557533
AC
77662003-04-23 Andrew Cagney <cagney@redhat.com>
7767
7768 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7769 and "buffer". Move the "name" code to where it is needed.
7770
158775de
AC
77712003-04-23 Andrew Cagney <cagney@redhat.com>
7772
7773 * infcall.c (call_function_by_hand): Move variables "start_sp",
7774 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7775 code to ON_STACK switch branch.
8ffd9b1b 7776
ebc7896c
AC
77772003-04-23 Andrew Cagney <cagney@redhat.com>
7778
7779 * infcall.c (call_function_by_hand): Make declaration of "i",
7780 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7781 lint.
7782
d727590f
AC
77832003-04-23 Andrew Cagney <cagney@redhat.com>
7784
7785 * infcall.c (call_function_by_hand): Delete variable
7786 "n_method_args". Localize "param_type"'s declaration to the loop
7787 that it is used. Reinstate code assigning to said variable -
7788 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7789 Rationalize code using "param_type".
7790
d585e13a
AC
77912003-04-22 Andrew Cagney <cagney@redhat.com>
7792
7793 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7794 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7795 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7796 to DEPRECATED_PUSH_RETURN_ADDRESS.
7797
051caad9
KB
77982003-04-22 Kevin Buettner <kevinb@redhat.com>
7799
7800 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7801 on the DWARF2 register number prior to fetching a register.
7802
77296879
JB
78032003-04-22 J. Brobecker <brobecker@gnat.com>
7804
7805 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7806 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 7807 this macro was always set to 0.
77296879
JB
7808 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7809 considering the fact that this macro was always set to 0.
7810 * hppa-tdep.h (hppa_store_return_value): Likewise.
7811 (hppa_extract_return_value): Likewise.
7812
4252f1df
JB
78132003-04-22 J. Brobecker <brobecker@gnat.com>
7814
7815 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7816 the hppa-pro target only.
7817
14604c6b
JB
78182003-04-21 J. Brobecker <brobecker@gnat.com>
7819
7820 Ongoing multi-arch conversion effort for HP/UX:
7821 * config/pa/tm-hppa.h: Move all macro that are no longer
7822 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7823 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7824
77eb01d1
JB
78252003-04-21 J. Brobecker <brobecker@gnat.com>
7826
7827 * config/pa/tm-hppa.h: Obsolete a section that was only used
7828 for hppa-pro.
7829
61995b3b
JB
78302003-04-21 J. Brobecker <brobecker@gnat.com>
7831
7832 Ongoing multi-arch conversion for HP/UX.
7833 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7834 if already defined (allows hppa64 to stay non-multiarched for now).
7835 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7836
4aa79dcc
AC
78372003-04-21 Andrew Cagney <cagney@redhat.com>
7838
7839 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7840
0f751ff2
AC
78412003-04-21 Andrew Cagney <cagney@redhat.com>
7842
7843 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7844 "i386_num_mmx_regs".
7845
04714b91
AC
78462003-04-21 Andrew Cagney <cagney@redhat.com>
7847
7848 * infcall.c: New file.
7849 * infcall.h: New file.
7850 * valarith.c: Include "infcall.h".
7851 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7852 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7853 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7854 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7855 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7856 (SFILES): Add "infcall.c"
7857 (COMMON_OBS): Add "infcall.o".
7858 (infcall.o): Specify dependencies.
7859 * value.h (call_function_by_hand): Delete declaration.
7860 * inferior.h (run_stack_dummy): Delete declaration.
7861 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7862 (run_stack_dummy): Move to "infcall.c", merged into
7863 call_function_by_hand.
7864 * valops.c (call_function_by_hand): Moved to "infcall.c".
7865 (find_function_addr, value_arg_coerce): Ditto.
7866 (unwindonsignal_p, coerce_float_to_double): Ditto.
7867 (_initialize_valops): Move "set/show coerce-float-to-double", and
7868 "set/show unwindonsignal" commands to "infcall.c".
7869 * v850-tdep.c, target.h: Update comments.
7870 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7871 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7872 (sh64_init_extra_frame_info): Update comments.
7873 * mn10300-tdep.c: Update comments.
7874 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7875 * config/sparc/tm-sparc.h: Update comments.
7876 * breakpoint.h: Update comments.
7877 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7878 * arm-tdep.c: Update comment.
7879
f9d3c2a8
MK
78802003-04-19 Mark Kettenis <kettenis@gnu.org>
7881
c40e1eab
MK
7882 * i386-tdep.c (i386_num_register_names): New variable.
7883 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7884 (MM0_REGNUM): Remove redundant parentheses in define.
7885 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7886 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7887 i386_mxcsr_regnum_p): Remove redundant parentheses.
7888 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 7889
94ea66b3
MK
7890 * i386-tdep.c (i386_extract_return_value,
7891 i386_store_return_value): Correct check for availability of
7892 floating-point registers.
7893
54299a1d
MK
7894 * i386-tdep.c (i386_frame_num_args): Remove function.
7895 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7896
c86c27af
MK
7897 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7898 mmx_regnum_to_fp_regnum. Adjust all callers.
7899
f9d3c2a8
MK
7900 * i386-tdep.c (i386_get_longjmp_target): Use
7901 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7902 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7903 extract_address.
7904
94ba74a9
MK
79052003-04-19 Mark Kettenis <kettenis@gnu.org>
7906
7907 * core-regset.c: Update comments to reflect reality. Re-order
7908 includes.
7909 (fetch_core_registers): Use switch instead of if. Remove
7910 redundant prototype.
7911
4074e13c
JB
79122003-04-18 Jim Blandy <jimb@redhat.com>
7913
7914 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 7915 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 7916
e3ab4aba
RH
79172003-04-17 Richard Henderson <rth@redhat.com>
7918
7919 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7920
627bf7c1
EZ
79212003-04-17 Michael Snyder <msnyder@redhat.com>
7922 Karen Bennet <bennet@redhat.com>
7923
7924 Committed by Elena Zannoni <ezannoni@redhat.com>
7925 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 7926
514621a9
EZ
79272003-04-17 Elena Zannoni <ezannoni@redhat.com>
7928
7929 * values.c (value_being_returned): Don't fetch the return
fbe586ae 7930 value if the return type is void.
514621a9 7931
b4acd559
JJ
79322003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7933
7934 * thread-db.c: Reindented.
8ffd9b1b 7935
530b167e 79362003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
7937
7938 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7939 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
7940 as types.
7941
0a48e7e8
MS
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
8ffd9b1b 7965
ab9fe00e
KB
79662003-04-16 Kevin Buettner <kevinb@redhat.com>
7967
610a3745 7968 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
7969 the size of ``long double'' to 16, instead of 8.
7970
e64a344c
MK
79712003-04-16 Mark Kettenis <kettenis@gnu.org>
7972
7973 * i386-linux-nat.c: Add some whitespace to make things more
7974 readable.
7975 (fetch_register, store_register, fetch_inferior_registers,
7976 store_inferior_registers): Get rid of assignment in if-statement.
7977 (store_register): Fix typo in error message.
7978
25d41031
AC
79792003-04-16 Andrew Cagney <cagney@redhat.com>
7980
7981 * utils.c (xmmalloc): Always allocate something, matches
7982 libiberty/xmalloc's semantics.
7983 (xmrealloc, xmcalloc): Ditto.
7984
c50901fd
AC
79852003-04-16 Andrew Cagney <cagney@redhat.com>
7986
7987 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7988 update comments.
7989 (get_frame_type): Initialize unwind and type when needed.
7990 (get_frame_id, frame_register_unwind): Ditto.
7991
f81824a9
AC
79922003-04-16 Andrew Cagney <cagney@redhat.com>
7993
7994 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7995 obsolete.
7996 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7997 * sparcl-stub.c: Obsolete file.
7998 * config/sparc/tm-sparclet.h: Obsolete file.
7999 * sparclet-stub.c: Obsolete file.
8000 * sparclet-rom.c: Obsolete file.
8001 * sparcl-tdep.c: Obsolete file.
8002 * config/sparc/tm-sparclite.h: Obsolete file.
8003 * config/sparc/sparclite.mt: Obsolete file.
8004 * config/sparc/sparclet.mt: Obsolete file.
8005 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8006 sparc86x-*-* obsolete.
8007
9219021c
DC
80082003-04-15 David Carlton <carlton@math.stanford.edu>
8009
8010 * Makefile.in (SFILES): Add cp-namespace.c.
8011 (COMMON_OBS): Add cp-namespace.o.
8012 (block.o): Depend on gdb_obstack_h and cp_support_h.
8013 (buildsym.o): Depend on cp_support_h.
8014 (cp-namespace.o): New.
8015 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8016 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8017 (dwarf2read.o): Depend on cp_support_h.
8018 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8019 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8020 processing_current_namespace.
8021 (read_namespace): Update processing_current_namespace; check for
8022 anonymous namespaces.
8023 (dwarf2_name): New function.
8024 (dwarf2_extension): Ditto.
8025 * cp-support.h: Update copyright, contributors.
8026 Add inclusion guards.
8027 Add opaque declaration for structs obstack, block, symbol.
8028 (struct using_direct): New struct.
8029 Add declarations for cp_find_first_component,
8030 cp_entire_prefix_len, processing_has_namespace_info,
8031 processing_current_namespace, cp_is_anonymous,
8032 cp_add_using_directive, cp_initialize_namespace,
8033 cp_finalize_namespace, cp_set_block_scope,
8034 cp_scan_for_anonymous_namespaces.
8035 * cp-namespace.c: New file.
8036 * cp-support.c: Update copyright.
8037 Include ctype.h, gdb_assert.h, gdbcmd.h.
8038 New variable maint_cplus_cmd_list.
8039 (cp_find_first_component): New function.
8040 (cp_entire_prefix_len, maint_cplus_command)
8041 (first_component_command, _initialize_cp_support): Ditto.
8042 * buildsym.c: Include cp-support.h.
8043 New variable using_list.
8044 (add_symbol_to_list): Check for anonymous namespaces.
8045 (finish_block): Set block's scope.
8046 (start_symtab): Initialize C++ namespace support.
8047 (end_symtab): Finalize C++ namespace support.
8048 * block.h: Add opaque declarations for structs
8049 block_namespace_info, using_direct, and obstack.
8050 Add declarations for block_set_scope and block_set_using.
8051 (struct block): Add 'language_specific' member.
8052 (BLOCK_NAMESPACE): New macro.
8053 * block.c: Include gdb_obstack.h and cp-support.h.
8054 (struct block_namespace_info): New struct.
8055 (block_set_scope): New function.
8056 (block_set_using, block_initialize_namespace): Ditto.
8057
d5a921c9
KB
80582003-04-14 Kevin Buettner <kevinb@redhat.com>
8059
8060 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8061 (locate_base): Return early if there aren't any link map offsets.
8062 (svr4_solib_create_inferior_hook): Warn if shared library support
8063 is unavailable.
8064
d2a52b27
DC
80652003-04-14 David Carlton <carlton@math.stanford.edu>
8066
8067 * symtab.c (symbol_set_names): Add prefix when storing Java names
8068 in hash table. Fix for PR java/1039.
8069
980cae7a
DC
80702003-04-14 David Carlton <carlton@math.stanford.edu>
8071
8072 * symtab.c (symbol_set_names): Rename 'name' arg to
8073 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8074 * symtab.h: Change 'name' argument in declaration of
8075 symbol_set_names to 'linkage_name'.
8076 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8077
e227b13c
AC
80782003-04-14 Andrew Cagney <cagney@redhat.com>
8079
8080 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8081 return the fully sign-extended register value.
8082 (get_frame_pointer): Ditto.
8083 (mips_pop_frame): Initialize "proc_desc" after checking for a
8084 dummy frame.
8085
36712a20
AC
80862003-04-14 Andrew Cagney <cagney@redhat.com>
8087
8088 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8089 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8090 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8091 (mips_push_register): Delete function.
8092 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8093 PUSH_FP_REGNUM.
8094
44ea7b70
JB
80952003-04-14 Jim Blandy <jimb@redhat.com>
8096
8097 * symmisc.c: #include "gdb_regex.h".
8098 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8099 functions.
8100 * maint.c (maintenance_list_command): New function.
8101 (_initialize_maint_cmds): Register the above as commands.
8102 * symtab.h (maintenance_list_symtabs,
8103 maintenance_list_psymtabs): New declarations.
8104 * cli/cli-cmds.c (maintenancelistlist): New variable.
8105 (init_cmd_lists): Initialize it.
8106 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8107 * gdbcmd.h (maintenancelistlist): New declaration.
8108 * Makefile.in (symmisc.o): Update dependencies.
8109
2d0c7962
EZ
81102003-04-14 Elena Zannoni <ezannoni@redhat.com>
8111
8112 * s390-nat.c: Include asm/types.h for addr_t.
8113
1947a811
CV
81142003-04-14 Corinna Vinschen <vinschen@redhat.com>
8115
8116 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8117 actually incoming type.
8118
adb616d7
AC
81192003-04-13 Andrew Cagney <cagney@redhat.com>
8120
8121 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8122 get_next_frame and get_frame_saved_regs.
8123
9b5e151c
AC
81242003-04-13 Andrew Cagney <cagney@redhat.com>
8125
8126 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8127 of gdbarch_num_regs.
8128
ef6e7e13
AC
81292003-04-13 Andrew Cagney <cagney@redhat.com>
8130
8131 * frame.h: Mention what replaced what in "struct frame_info".
8132 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8133 deprecated_update_frame_base_hack and
8134 deprecated_update_frame_pc_hack.
8135 * hppa-tdep.c: Ditto.
8136
61fbb938
DJ
81372003-04-13 Daniel Jacobowitz <drow@mvista.com>
8138
8139 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8140 to read_reg and update its comment. Remove regnum member.
8141 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8142 Don't call read_reg when setting in_reg. Call read_reg to get
8143 the frame base if it's in a register. Return the register number
8144 on the stack instead of in the context. Remove extra arguments
8145 to read_reg.
8146 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8147 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8148 the register number on the expression stack.
8149 (needs_frame_read_reg): Remove extra arguments.
8150
0d53c4c4
DJ
81512003-04-13 Daniel Jacobowitz <drow@mvista.com>
8152
8153 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8154 made non-static.
8155 (execute_stack_op): All callers updated.
8156 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8157 * dwarf2loc.c (find_location_expression): New function.
8158 (dwarf_expr_frame_base): Call it.
8159 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8160 (dwarf2_tracepoint_var_ref): New function, broken out from
8161 locexpr_tracepoint_var_ref.
8162 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8163 Make static.
8164 (loclist_read_variable, loclist_read_needs_frame): New functions.
8165 (loclist_describe_location, loclist_tracepoint_var_ref): New
8166 functions.
8167 (dwarf2_loclist_funcs): New struct location_funcs.
8168 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8169 (struct dwarf2_locexpr_baton): Add comments.
8170 (dwarf2_loclist_funcs): New extern.
8171 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8172 base_address and base_known.
8173 (dwarf_loc_buffer): New variable.
8174 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8175 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8176 (dwarf2_has_info): Initialize dwarf_loc_offset.
8177 (dwarf2_build_psymtabs): Read in .debug_loc.
8178 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8179 DWARF_LOC_SIZE.
8180 (psymtab_to_symtab_1): Likewise. Move base address calculation
8181 here, from...
8182 (dwarf2_get_pc_bounds): ... here. Use the base address from
8183 cu_header.
8184 (dwarf2_symbol_mark_computed): Handle location lists.
8185
6aca59a3
DJ
81862003-04-13 Daniel Jacobowitz <drow@mvista.com>
8187
8188 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8189 if the linkage name demangled successfully.
8190
aca1fcd0
MK
81912003-04-13 Mark Kettenis <kettenis@gnu.org>
8192
97095916
MK
8193 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8194 disassmbly_flavour): Removed.
8195
aca1fcd0
MK
8196 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8197
562a961f
MK
81982003-04-13 Mark Kettenis <kettenis@gnu.org>
8199
8200 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8201
bd013d54
AC
82022003-04-12 Andrew Cagney <cagney@redhat.com>
8203
8204 * frame.h (struct frame_info): Move definition from here ...
8205 * frame.c (struct frame_info): ... to here.
8206
167ef8b1
AC
82072003-04-12 Andrew Cagney <cagney@redhat.com>
8208
8209 * gdbthread.h (save_infrun_state): Delete parameter
8210 "prev_func_start".
8211 (struct thread_info): Delete field "prev_func_start".
8212 (load_infrun_state): Ditto.
8213 * thread.c (load_infrun_state, save_infrun_state): Update.
8214 * infrun.c (prev_func_start): Delete variable.
8215 (context_switch, init_wait_for_inferior): Update.
8216 (stop_stepping, keep_going): Update.
8217
da3331ec
AC
82182003-04-12 Andrew Cagney <cagney@redhat.com>
8219
8220 * gdbarch.sh: Add missing opaque declarations.
8221 * gdbarch.h: Regnerate.
8222 * symtab.h: Add missing opaque declarations.
8223 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8224 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8225 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8226 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8227 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8228 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8229 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8230 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8231 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8232 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8233 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8234 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8235 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8236
18adea3f
AC
82372003-04-11 Andrew Cagney <cagney@redhat.com>
8238
8239 * frame.c (get_frame_id): Return this frame's "id".
8240 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8241 function start.
8242 (legacy_saved_regs_this_id): Replace function body with
8243 internal-error.
8244 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8245 FRAME_OBSTACK_ZALLOC.
8246 (create_new_frame): Mark the frame ID as valid.
8247
2252e863
AO
82482003-04-11 Alexandre Oliva <aoliva@redhat.com>
8249
8250 * Makefile.in (libbfd_h): Added missing setting.
8251 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8252 according to the selected ABI.
8253
a8245ab8
JJ
82542003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8255
8256 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8257
6913c89a
AC
82582003-04-11 Andrew Cagney <cagney@redhat.com>
8259
8260 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8261 SAVED_PC_AFTER_CALL.
8262 * gdbarch.h, gdbarch.c: Regenerate.
8263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8264 * x86-64-tdep.c (x86_64_init_abi): Update.
8265 * vax-tdep.c (vax_gdbarch_init): Update.
8266 * v850-tdep.c (v850_gdbarch_init): Update.
8267 * sparc-tdep.c (sparc_gdbarch_init): Update.
8268 * sh-tdep.c (sh_gdbarch_init): Update.
8269 * s390-tdep.c (s390_gdbarch_init): Update.
8270 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8271 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8272 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8273 * mips-tdep.c (mips_gdbarch_init): Update.
8274 * mcore-tdep.c (mcore_gdbarch_init): Update.
8275 * m68k-tdep.c (m68k_gdbarch_init): Update.
8276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8277 * ia64-tdep.c (ia64_gdbarch_init): Update.
8278 (ia64_saved_pc_after_call): Update declaration.
8279 * i386ly-tdep.c (i386lynx_init_abi): Update.
8280 * i386-tdep.c (i386_gdbarch_init): Update.
8281 * hppa-tdep.c (hppa_gdbarch_init): Update.
8282 * h8300-tdep.c (h8300_gdbarch_init): Update.
8283 * frv-tdep.c (frv_gdbarch_init): Update.
8284 * cris-tdep.c (cris_gdbarch_init): Update.
8285 * avr-tdep.c (avr_gdbarch_init): Update.
8286 * arm-tdep.c (arm_gdbarch_init): Update.
8287 * alpha-tdep.c (alpha_gdbarch_init): Update.
8288 * ns32knbsd-nat.c (frame_num_args): Update.
8289 * ns32k-tdep.c (umax_frame_num_args): Update.
8290 * mips-tdep.c (mips_init_frame_pc_first): Update.
8291 * infrun.c (step_over_function): Update.
8292 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8293 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8294 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8295 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8296 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8297 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8298 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8299 * arch-utils.c (init_frame_pc_default): Update.
8300 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8301 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8302 declaration.
8ffd9b1b 8303
38edeab8
AC
83042003-04-11 Andrew Cagney <cagney@redhat.com>
8305
8306 * i387-tdep.c: Update copyright.
8307 (i387_to_double): Delete function.
8308 (double_to_i387): Delete function.
8309
81f8a206
AC
83102003-04-10 Andrew Cagney <cagney@redhat.com>
8311
8312 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8313 frame's function's address. Simplify.
8314 (d10v_frame_unwind_cache): Check that the frame's function is
8315 non-zero.
8316
6e691f7a
JB
83172003-04-10 Jim Blandy <jimb@redhat.com>
8318
8319 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8320 call to set_gdbarch_deprecated_push_arguments.
8321
7f78e237
AC
83222003-04-10 Andrew Cagney <cagney@redhat.com>
8323
8324 * frame.c (fprint_frame_id): New function.
8325 (fprint_frame_type, fprint_frame): New function.
8326 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8327 (create_sentinel_frame, get_frame_id): Ditto.
8328 (frame_id_p, frame_id_eq): Ditto.
8329 (frame_id_inner, create_new_frame): Ditto.
8330 (legacy_get_prev_frame, get_prev_frame): Ditto.
8331 (deprecated_update_frame_pc_hack): Ditto.
8332 (frame_register_unwind): Ditto.
8333 (deprecated_update_frame_base_hack): Ditto.
8334
f870b49b
CV
83352003-04-10 Corinna Vinschen <vinschen@redhat.com>
8336
8337 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8338 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8339 frame_chain function.
8340 * Makefile.in: Add dependencies due to above change.
8341
7c86889b
CV
83422003-04-10 Corinna Vinschen <vinschen@redhat.com>
8343
8344 * blockframe.c (legacy_frame_chain_valid): Move call to
8345 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8346 inside_entry_file.
8347
d0a55772
AC
83482003-04-09 Andrew Cagney <cagney@redhat.com>
8349
8350 * frame.h (struct frame_id): Replace "pc" and "base" with
8351 "stack_addr" and "code_addr". Update comments.
8352 (frame_id_build): Update parameter names and comment.
8353 (struct frame_info): Replace "id_p" and "id" with "this_id".
8354 * dummy-frame.c (dummy_frame_this_id): Update.
8355 * breakpoint.c (print_one_breakpoint): Update.
8356 * frame.c (get_frame_id): Update.
8357 (get_frame_base, frame_id_build): Update.
8358 (create_sentinel_frame, legacy_get_prev_frame): Update.
8359 (deprecated_update_frame_base_hack): Update.
8360 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8361 (frame_id_inner): Ditto.
8362
ac16bf07
AC
83632003-04-09 Andrew Cagney <cagney@redhat.com>
8364
8365 * defs.h (gdb_print_host_address): Make "addr" parameter a
8366 pointer constant.
8367 * utils.c (gdb_print_host_address): Update.
8368
366cfc9e
KB
83692003-04-09 Kevin Buettner <kevinb@redhat.com>
8370
8371 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8372 register number for R0 is 0.
8373
cd983b5c
JB
83742003-04-09 J. Brobecker <brobecker@gnat.com>
8375
8376 * frame.h (struct gdbarch): Add opaque structure definition
8377 to avoid a compilation warning on LynxOS 4.0.
8378
d1340264
AC
83792003-04-09 Andrew Cagney <cagney@redhat.com>
8380
8381 * frame.h (struct frame_info): Delete field "pc". Replace
8382 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8383 structure.
8384 * frame.c (frame_pc_unwind): Update.
8385 (create_sentinel_frame): Do not set "pc".
8386 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8387 (get_frame_pc): Call frame_pc_unwind.
8388 (deprecated_update_frame_pc_hack): Update.
8389 (create_new_frame): Use "pc" not "->pc".
8390
90a6fffb
AC
83912003-04-09 Andrew Cagney <cagney@redhat.com>
8392
8393 * frame.c (get_frame_id): Eliminate code updating "frame".
8394 (legacy_get_prev_frame): Ditto.
8395 (get_frame_base): Return id.base directly.
8396 (deprecated_update_frame_base_hack): Update "id.base".
8397 * frame.h (struct frame_info): Delete field "frame".
8398
2fbce691
AC
83992003-04-09 Andrew Cagney <cagney@redhat.com>
8400
8401 * NEWS: Mention that the "Sequent family" is obsolete.
8402 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8403 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8404 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8405 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8406 * config/i386/tm-ptx4.h: Obsolete file.
8407 * config/i386/tm-ptx.h: Obsolete file.
8408 * symm-tdep.c: Obsolete file.
8409 * config/i386/symmetry.mt: Obsolete file.
8410 * config/i386/tm-symmetry.h: Obsolete file.
8411 * symm-nat.c: Obsolete file.
8412 * config/i386/nm-symmetry.h: Obsolete file.
8413 * config/i386/xm-symmetry.h: Obsolete file.
8414 * config/i386/symmetry.mh: Obsolete file.
8415 * config/i386/nm-ptx4.h: Obsolete file.
8416 * config/i386/ptx4.mh: Obsolete file.
8417 * config/i386/ptx.mt: Obsolete file.
8418 * config/i386/ptx.mh: Obsolete file.
8419 * config/i386/xm-ptx4.h: Obsolete file.
8420 * config/i386/xm-ptx.h: Obsolete file.
8421
78c43945
AC
84222003-04-09 Andrew Cagney <cagney@redhat.com>
8423
8424 Obsolete mips*-*-mach3*.
8425 * NEWS: Mention that mips*-*-mach3* is obsolete.
8426 * m3-nat.c: Obsolete file.
8427 * config/nm-m3.h: Obsolete file.
8428 * config/mips/tm-mipsm3.h: Obsolete file.
8429 * config/mips/mipsm3.mt: Obsolete file.
8430 * config/mips/mipsm3.mh: Obsolete file.
8431 * config/mips/xm-mipsm3.h: Obsolete file.
8432 * mipsm3-nat.c: Obsolete file.
8433 * configure.host: Obsolete mips-dec-mach3*.
8434 * configure.tgt: Obsolete mips*-*-mach3*.
8435
f1908289
AC
84362003-04-09 Andrew Cagney <cagney@redhat.com>
8437
8438 * doublest.h: Update copyright.
8439 (deprecated_store_floating, deprecated_extract_floating): Rename
8440 store_floating and extract_floating. Update comments.
8441 * doublest.c: Update copyright.
8442 (extract_floating_by_length): Replace extract_floating.
8443 (store_floating_by_length): Replace store_floating.
8444 (deprecated_extract_floating): New function.
8445 (deprecated_store_floating): New function.
8446 (extract_typed_floating): Call extract_floating_by_length.
8447 (store_typed_floating): Call store_floating_by_length.
8448 * x86-64-tdep.c (x86_64_store_return_value): Update.
8449 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8450 (sh64_extract_return_value): Update.
8451 (sh_sh4_register_convert_to_virtual): Update.
8452 (sh_sh64_register_convert_to_virtual): Update.
8453 (sh_sh4_register_convert_to_raw): Update.
8454 (sh_sh64_register_convert_to_raw): Update.
8455 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8456 (rs6000_register_convert_to_raw): Update.
8457 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8458 (ia64_register_convert_to_raw): Update.
8459 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8460 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8461 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8462 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8463 (alpha_register_convert_to_raw): Update.
8464
4443bd83
AC
84652003-04-08 Andrew Cagney <cagney@redhat.com>
8466
8467 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8468 * gdbarch.h, gdbarch.c: Re-generate.
8469 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8470 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8471 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8472 conditionally, use frame_pc_unwind as an alternative. Add
8473 comments.
8474 * arch-utils.c (init_frame_pc_default): Only call
8475 SAVED_PC_AFTER_CALL when available.
8476
c0236d92
EZ
84772003-04-08 Elena Zannoni <ezannoni@redhat.com>
8478
fbe586ae 8479 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8480 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8481 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8482 (start_remote): Ditto.
8483 (handle_inferior_event): Ditto.
8484 (save_inferior_status): Ditto.
8485 (restore_inferior_status): Ditto.
8486 * infcmd.c (attach_command): Ditto.
8487 * fork-child.c (startup_inferior): Ditto.
fbe586ae 8488 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
8489 * alpha-tdep.c (heuristic_proc_start): Ditto.
8490 * mips-tdep.c (heuristic_proc_start): Ditto.
8491 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8492 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8493 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8494 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8495 * remote-vx.c (vx_create_inferior): Ditto.
8496
84972003-04-08 Elena Zannoni <ezannoni@redhat.com>
8498
8499 * infrun.c (stop_soon_quietly): Make it an enum, to better
8500 override the default behavior of handle_inferior_event.
8501 (clear_proceed_status): Update uses of stop_soon_quietly to
8502 reflect that it is now an enum.
8503 (start_remote): Ditto.
8504 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8505 is set to handle the new GNU/Linux kernel behavior for
8506 attach/sigstop. Update uses of stop_soon_quietly.
8507 * inferior.h (enum stop_kind): New enum.
8508 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8509 Reset normal handle_inferior_event behavior, afterwards.
8510 * fork-child.c (startup_inferior): Update.
8511 * alpha-tdep.c (heuristic_proc_start): Update.
8512 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8513 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8514 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8515 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8516 * remote-vx.c (vx_create_inferior): Update.
8517 * mips-tdep.c (heuristic_proc_start): Update.
8518
1211bce3
EZ
85192003-04-07 Elena Zannoni <ezannoni@redhat.com>
8520
8521 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 8522 be freed more than once, causing wild memory corruptions.
1211bce3 8523 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 8524 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 8525 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 8526 with the "core" target.
1211bce3 8527
f0ef6b29
KB
85282003-04-07 Kevin Buettner <kevinb@redhat.com>
8529
8530 * mips-tdep.c (mips_print_fp_register): New function, created from
8531 do_fp_register_row(). Registers are now (also) printed as hex.
8532 Only one register is printed per row.
8533 (mips_print_register, do_fp_register_row): Print floating point
8534 registers with mips_print_fp_register().
8535
8cf71652
AC
85362003-04-06 Andrew Cagney <cagney@redhat.com>
8537
5e488a7b
AC
8538 * valprint.h (inspect_it): Add extern declaration.
8539 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8540 (selectors_info, classes_info): Ditto.
8541 (find_objc_msgcall): Fix indentation.
8542 (objc_printstr): Delete extern declarations.
8543
8cf71652
AC
8544 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8545
e6ba3bc9
AC
85462003-04-06 Andrew Cagney <cagney@redhat.com>
8547
8548 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8549 Update comment.
8550 * frame.c (legacy_saved_regs_this_id): Update.
8551 (legacy_get_prev_frame): Update.
8552 * xstormy16-tdep.c: Update comment.
8553 * sparc-tdep.c (sparc_frame_chain): Update comment.
8554 * blockframe.c (legacy_frame_chain_valid): Update.
8555
55e1d7e7
AC
85562003-04-06 Andrew Cagney <cagney@redhat.com>
8557
996179ee
AC
8558 * valprint.c (val_print_type_code_int): Delete #ifdef
8559 PRINT_TYPELESS_INTEGER code.
8560
55e1d7e7
AC
8561 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8562 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8563 multi-arch definition.
8564 * gdbarch.h: Re-generate.
8565
43bd9a9e
AC
85662003-04-05 Andrew Cagney <cagney@redhat.com>
8567
8568 Eliminate FRAME_FIND_SAVED_REGS.
8569 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8570 Change FSR parameter to a pointer.
8571 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8572 Assume FSR parameter is a pointer.
8573 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8574 Make fsr a pointer.
8575 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8576 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8577 saved_regs a pointer.
8578 (hppa_frame_saved_pc): Ditto.
8579 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8580 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8581 pointer.
8582 (restore_pc_queue): Make fsr a pointer.
8583 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8584 (hppa_frame_chain): Make saved_regs a pointer, call
8585 hppa_frame_init_saved_regs.
8586 * sparc-tdep.c: Include "gdb_assert.h".
8587 (sparc_frame_find_saved_regs): Replace internal_error with
8588 gdb_assert.
8589 * remote-vxsparc.c (vx_read_register): Delete reference to
8590 FRAME_FIND_SAVED_REGS.
8591 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8592 * gdbarch.h: Regenerate.
8593 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8594 (deprecated_get_frame_saved_regs): Delete declaration.
8595 (struct frame_saved_regs): Delete definition.
8596 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8597 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8598 (hppa_frame_find_saved_regs): Delete declaration.
8599 (FRAME_FIND_SAVED_REGS): Delete macro.
8600 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8601 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8602 FRAME_FIND_SAVED_REGS in comment.
8603
be41e9f4
AC
86042003-04-05 Andrew Cagney <cagney@redhat.com>
8605
8606 * frame.c (frame_func_unwind, get_frame_func): New functions.
8607 * frame.h (get_frame_func, frame_func_unwind): Declare.
8608 (struct frame_info): Add field "prev_func" for caching the
8609 previous frame's function address.
8610 * arm-tdep.c (arm_frameless_function_invocation): Combine
8611 get_pc_function_start and get_frame_pc into get_frame_func.
8612 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8613 (sh64_nofp_frame_init_saved_regs): Ditto.
8614 * s390-tdep.c (s390_function_start): Ditto.
8615 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8616 (rs6000_frameless_function_invocation): Ditto.
8617 (rs6000_frame_saved_pc): Ditto.
8618 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8619 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8620 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8621 (i386_frame_init_saved_regs): Ditto.
8622 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8623 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8624 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8625 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8626 * blockframe.c (frameless_look_for_prologue): Ditto.
8627
a01dd7cc
AC
86282003-04-05 Andrew Cagney <cagney@redhat.com>
8629
8630 * frame.c (legacy_get_prev_frame): Link prev to next at the
8631 function start. Update comments.
8632
5e5592e6
AC
86332003-04-05 Andrew Cagney <cagney@redhat.com>
8634
8635 * frame.c (get_frame_id): Update comment.
8636 (legacy_get_prev_frame): Update comment.
8637 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8638 * gdbarch.h: Regenerate.
8639 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8640 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8641
6fba5002
AC
86422003-04-05 Andrew Cagney <cagney@redhat.com>
8643
8644 * stack.c (print_frame_info): Use get_frame_pc.
8645
7df05f2b
AC
86462003-04-04 Andrew Cagney <cagney@redhat.com>
8647
8648 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8649 the frame's type from the unwinder.
8650 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8651 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8652 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8653 (get_frame_base_address): Use get_frame_type.
8654 (get_frame_locals_address, get_frame_args_address): Ditto.
8655 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8656 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8657 (struct frame_info): Add comment explaining why the frame contains
8658 a "type" field.
8659 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8660 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8661 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8662 NORMAL_FRAME.
8663 * frame-unwind.h: Include "frame.h".
8664 (struct frame_unwind): Add "type" field.
8665 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 8666
11889732
AC
86672003-04-04 Andrew Cagney <cagney@redhat.com>
8668
8669 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8670 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8671 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8672 get_frame_base.
8673 (d10v_unwind_dummy_id): Use frame_id_build.
8674 * frame.c (find_frame_sal): Use get_frame_pc.
8675 (create_new_frame): Use deprecated_update_frame_pc_hack and
8676 deprecated_update_frame_base_hack.
8677 (create_sentinel_frame): Add comment about ->pc going away.
8678 (get_prev_frame): Add comment about ->pc going away.
8679 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8680 frame_id_build, deprecated_update_frame_pc_hack and
8681 deprecated_update_frame_base_hack.
8682 (select_frame): Use get_frame_pc.
8683 (legacy_saved_regs_this_id): Use frame_id_build.
8684
50c46a0d
EZ
86852003-04-04 Elena Zannoni <ezannoni@redhat.com>
8686
fbe586ae
RH
8687 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8688 signed integer case.
8689 (classify_argument): Handle enumerations and references.
50c46a0d 8690
50bbdbd9
AC
86912003-04-04 Andrew Cagney <cagney@redhat.com>
8692
8693 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8694 ID to NULL.
8695
36018d2e
AF
86962003-04-01 Adam Fedor <fedor@gnu.org>
8697
8698 * gdb/objc-lang.c (selectors_info): Replace calls to
8699 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8700 SYMBOL_NATURAL_NAME.
8701 (classes_info, find_methods): Likewise.
8702
35cec841
KB
87032003-04-03 Kevin Buettner <kevinb@redhat.com>
8704
8705 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8706 ``mach'' to the value determined by bfd_default_set_arch_mach().
8707
43136899
BR
87082003-04-02 Bob Rossi <bob_rossi@cox.net>
8709
8710 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8711 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8712 (mi-cmd-file.o): Update dependencies.
8713
040b99fd
KB
87142003-04-01 Kevin Buettner <kevinb@redhat.com>
8715
8716 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8717 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8718
9a3d7dfd
AF
87192003-04-01 Adam Fedor <fedor@gnu.org>
8720
8721 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8722 * language.h (struct language_defn): Add la_demangle.
8723 (language_demangle): Declare.
8724 * language.c (language_demangle): New function.
8725 (unk_lang_demangle): Likewise.
8726 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 8727 Add ukn_lang_demangle.
9a3d7dfd 8728 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 8729 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
8730 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8731 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8732 * jv-lang.c (java_demangle): New function
8733 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
8734 * objc-lang.c (objc_demangle): Add options argument
8735 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
8736 * maint.c (maintenance_demangle): Replace switch with
8737 call to language_demangle.
8738 * utils.c (fprintf_symbol_filtered): Likewise.
8739
5e074003
AC
87402003-04-01 Andrew Cagney <cagney@redhat.com>
8741
8742 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8743 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8744 PRINT_TYPELESS_INTEGER.
8745 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8746 PUSH_RETURN_ADDRESS.
8747
270cb5d6
AC
87482003-04-01 Andrew Cagney <cagney@redhat.com>
8749
8750 * Makefile.in (d10v-tdep.o): Update dependencies.
8751 * d10v-tdep.c: Include "frame-base.h".
8752 (d10v_frame_unwind): Make constant.
8753 (d10v_frame_base_address): New function.
8754 (d10v_frame_base): New variable.
8755 (d10v_gdbarch_init): Set frame_base default.
8756 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8757 comment for base.
8758 (d10v_frame_unwind_cache): Set and use "prev_sp".
8759 (d10v_frame_this_id): Use the previous frame's inner most stack
8760 address and this frame's func address for the frame ID. Use
8761 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 8762
6bfb3e36
AC
87632003-04-01 Andrew Cagney <cagney@redhat.com>
8764
8765 * frame.h (get_frame_locals_address, get_frame_args_address):
8766 Refer to the base address, instead of the address of the first
8767 local or parameter.
8ffd9b1b 8768
da62e633
AC
87692003-04-01 Andrew Cagney <cagney@redhat.com>
8770
8771 Add frame debug info addresses:
8772 * frame-base.c: New file.
8773 * frame-base.h: New file.
8774 * frame.h (struct frame_base): Add opaque declaration.
8775 (get_frame_base): Update comment.
8776 (get_frame_base_address): Declare.
8777 (get_frame_locals_address): Declare.
8778 (get_frame_args_address): Declare.
8779 (struct frame_info): Add "base" and "base_cache". Update
8780 comments on the unwinder.
8781 * frame.c: Include "frame-base.h".
8782 (get_frame_locals_address): New function.
8783 (get_frame_base_address): New function.
8784 (get_frame_args_address): New function.
8785 * findvar.c (read_var_value): Use get_frame_locals_address and
8786 get_frame_args_address.
8787 * stack.c (frame_info): Use get_frame_locals_address and
8788 get_frame_args_address.
8789 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8790 moved to "frame-base.c".
8791 * printcmd.c (print_frame_nameless_args): Ditto.
8792 * symtab.h (address_class): Update comments.
8793 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8794 get_frame_base_address.
8795 * dwarf2expr.c (execute_stack_op): Ditto.
8796 * Makefile.in (frame_base_h): Define.
8797 (frame.o): Update dependencies.
8798 (frame-base.o): Add dependencies.
8799 (SFILES): Add frame-base.c.
8800 (COMMON_OBS): Add frame-base.o.
8801
3d30e9c2
AC
88022003-04-01 Andrew Cagney <cagney@redhat.com>
8803
8804 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8805 CALL_DUMMY_LENGTH): Ditto.
8806 * gdbarch.c: Re-generate.
8807 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8808 (CALL_DUMMY_LENGTH): Delete macro.
8809 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8810 * arm-tdep.c (arm_gdbarch_init): Ditto.
8811 * avr-tdep.c (avr_gdbarch_init): Ditto.
8812 * cris-tdep.c (cris_gdbarch_init): Ditto.
8813 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8814 * frv-tdep.c (frv_gdbarch_init): Ditto.
8815 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8816 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8817 * i386-tdep.c (i386_gdbarch_init): Ditto.
8818 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8819 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8820 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8821 * mips-tdep.c (mips_gdbarch_init): Ditto.
8822 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8823 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8824 * s390-tdep.c (s390_gdbarch_init): Ditto.
8825 * sh-tdep.c (sh_gdbarch_init): Ditto.
8826 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8827 * v850-tdep.c (v850_gdbarch_init): Ditto.
8828 * vax-tdep.c (vax_gdbarch_init): Ditto.
8829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8830
ce0c7262
CV
88312003-04-01 Corinna Vinschen <vinschen@redhat.com>
8832
8833 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8834
73dd234f
AC
88352003-04-01 Andrew Cagney <cagney@redhat.com>
8836
8837 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8838 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8839 * gdbarch.h, gdbarch.c: Re-generate.
8840 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8841 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8842 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8843 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8844 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8845 * infcmd.c (run_stack_dummy): Simplify assuming
8846 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8847 * infrun.c (handle_inferior_event): Ditto.
8848 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8849 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8850 * arm-tdep.c (arm_gdbarch_init): Ditto.
8851 * avr-tdep.c (avr_gdbarch_init): Ditto.
8852 * cris-tdep.c (cris_gdbarch_init): Ditto.
8853 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8854 * frv-tdep.c (frv_gdbarch_init): Ditto.
8855 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8856 * i386-tdep.c (i386_gdbarch_init): Ditto.
8857 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8858 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8859 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8860 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8861 * mips-tdep.c (mips_gdbarch_init): Ditto.
8862 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8863 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8864 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8865 * s390-tdep.c (s390_gdbarch_init): Ditto.
8866 * sh-tdep.c (sh_gdbarch_init): Ditto.
8867 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8868 * v850-tdep.c (v850_gdbarch_init): Ditto.
8869 * vax-tdep.c (vax_gdbarch_init): Ditto.
8870 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8871
97606a13
DJ
88722003-04-01 Daniel Jacobowitz <drow@mvista.com>
8873
8874 * symfile.c (symfile_relocate_debug_section): Update call to
8875 bfd_simple_get_relocated_section_contents.
8876
e8ab51f7
AC
88772003-03-31 Andrew Cagney <cagney@redhat.com>
8878
8879 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8880 * gdbarch.h, gdbarch.c: Regenerate.
8881 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8882 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8883 available.
8884 * frame.h (generic_fix_call_dummy): Delete declaration.
8885 * dummy-frame.h: Update comment.
8886 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8887 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8888 fix_call_dummy.
8889 * sh-tdep.c (sh_gdbarch_init): Ditto.
8890 * s390-tdep.c (s390_gdbarch_init): Ditto.
8891 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8892 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8894 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8895 * i386-tdep.c (i386_gdbarch_init): Ditto.
8896 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8897 * frv-tdep.c (frv_gdbarch_init): Ditto.
8898 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8899 * cris-tdep.c (cris_gdbarch_init): Ditto.
8900 * avr-tdep.c (avr_gdbarch_init): Ditto.
8901 * arm-tdep.c (arm_gdbarch_init): Ditto.
8902
018d1b48
JB
89032003-03-31 J. Brobecker <brobecker@gnat.com>
8904
8905 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8906 (INIT_FRAME_AP): Likewise.
8907 (EXTRA_FRAME_INFO): Likewise.
8908
e9a2674e
AC
89092003-03-31 Andrew Cagney <cagney@redhat.com>
8910
8911 * gdbarch.sh: Include "symfile.h".
8912 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8913 * gdbarch.h, gdbarch.c: Re-generate.
8914 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8915 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8916 call_dummy_address, the default is at entry_point_address.
8917 * v850-tdep.c (v850_gdbarch_init): Ditto.
8918 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8919 * sh-tdep.c (sh_gdbarch_init): Ditto.
8920 * s390-tdep.c (s390_gdbarch_init): Ditto.
8921 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8923 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8924 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8925 * i386-tdep.c (i386_gdbarch_init): Ditto.
8926 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8927 * frv-tdep.c (frv_gdbarch_init): Ditto.
8928 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8929 * cris-tdep.c (cris_gdbarch_init): Ditto.
8930 * arm-tdep.c (arm_gdbarch_init): Ditto.
8931
e8a8712a
AC
89322003-03-31 Andrew Cagney <cagney@redhat.com>
8933
8934 * gdbarch.sh (CALL_DUMMY_P): Delete.
8935 * gdbarch.h, gdbarch.c: Re-generate.
8936 * inferior.h (CALL_DUMMY_P): Delete macro.
8937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8938 * vax-tdep.c (vax_gdbarch_init): Update.
8939 * v850-tdep.c (v850_gdbarch_init): Update.
8940 * sparc-tdep.c (sparc_gdbarch_init): Update.
8941 * sh-tdep.c (sh_gdbarch_init): Update.
8942 * s390-tdep.c (s390_gdbarch_init): Update.
8943 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8944 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8945 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8946 * mips-tdep.c (mips_gdbarch_init): Update.
8947 * mcore-tdep.c (mcore_gdbarch_init): Update.
8948 * m68k-tdep.c (m68k_gdbarch_init): Update.
8949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8950 * ia64-tdep.c (ia64_gdbarch_init): Update.
8951 * i386-tdep.c (i386_gdbarch_init): Update.
8952 * h8300-tdep.c (h8300_gdbarch_init): Update.
8953 * frv-tdep.c (frv_gdbarch_init): Update.
8954 * d10v-tdep.c (d10v_gdbarch_init): Update.
8955 * cris-tdep.c (cris_gdbarch_init): Update.
8956 * breakpoint.c (deprecated_frame_in_dummy): Update.
8957 * avr-tdep.c (avr_gdbarch_init): Update.
8958 * alpha-tdep.c (alpha_gdbarch_init): Update.
8959 * arm-tdep.c (arm_gdbarch_init): Update.
8960 * dummy-frame.c (dummy_frame_this_id): Update comments.
8961 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8962 * frame.c (legacy_get_prev_frame): Ditto.
8963 * valops.c (call_function_by_hand): Delete function.
8964 (hand_function_call): Rename to call_function_by_hand
8965
ed234cf8
AC
89662003-03-30 Andrew Cagney <cagney@redhat.com>
8967
8968 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 8969 * value.h (struct value): Update comment.
ed234cf8 8970
06c77151
AC
89712003-03-30 Andrew Cagney <cagney@redhat.com>
8972
6c2b5168
AC
8973 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8974 D10V_FP_REGNUM.
8975 (d10v_gdbarch_init): Do not set fp_regnum.
8976
06c77151
AC
8977 * frame.c (get_frame_base): Force ID initialization.
8978 (get_prev_frame): Move computation of the frame ID from here ...
8979 (get_frame_id): ... to here.
8980 (legacy_get_prev_frame): Mark the frame ID as valid.
8981 * frame.h (struct frame_info): Add field "id_p".
8982
97a1a11c
MK
89832003-03-30 Mark Kettenis <kettenis@gnu.org>
8984
8985 * i386-tdep.c (i386_store_struct_return): Removed.
8986 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8987
6c0e89ed
AC
89882003-03-30 Andrew Cagney <cagney@redhat.com>
8989
8990 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8991 * gdbarch.h, gdbarch.c: Regenerate.
8992 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8993 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8994 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8995 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8996 * i386-tdep.c (i386_gdbarch_init): Ditto.
8997 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8998 * cris-tdep.c (cris_gdbarch_init): Ditto.
8999 * vax-tdep.c (vax_gdbarch_init): Ditto.
9000 * s390-tdep.c (s390_gdbarch_init): Ditto.
9001 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9002 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9003 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9004 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9005 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9006 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9007 * sparc-tdep.c (sparc_gdbarch_init): Update.
9008 * sh-tdep.c (sh_gdbarch_init): Update.
9009 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9010 * mips-tdep.c (mips_gdbarch_init): Update.
9011 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9012 * ia64-tdep.c (ia64_gdbarch_init): Update.
9013 * frv-tdep.c (frv_gdbarch_init): Update.
9014 * avr-tdep.c (avr_gdbarch_init): Update.
9015 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9016 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9017 instead of when push_dummy_call is not available.
8ffd9b1b 9018
f7dd6af2
AC
90192003-03-30 Andrew Cagney <cagney@redhat.com>
9020
9021 * infttrace.c: Include "gdbthread.h".
9022 (parent_attach_all): Fix function signature.
9023 (call_ptrace): Update call.
9024 * Makefile.in (infttrace.o): Update dependencies.
9025
28f617b3
AC
90262003-03-30 Andrew Cagney <cagney@redhat.com>
9027
9028 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9029 PUSH_RETURN_ADDRESS.
9030 * gdbarch.h, gdbarch.c: Regenerate.
9031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9032 * x86-64-tdep.c (x86_64_init_abi): Update.
9033 * v850-tdep.c (v850_gdbarch_init): Update.
9034 * sparc-tdep.c (sparc_gdbarch_init): Update.
9035 * sh-tdep.c (sh_gdbarch_init): Update.
9036 * s390-tdep.c (s390_gdbarch_init): Update.
9037 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9038 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9039 * mips-tdep.c (mips_gdbarch_init): Update.
9040 * mcore-tdep.c (mcore_gdbarch_init): Update.
9041 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9042 * ia64-tdep.c (ia64_gdbarch_init): Update.
9043 * i386-tdep.c (i386_gdbarch_init): Update.
9044 * h8300-tdep.c (h8300_gdbarch_init): Update.
9045 * frv-tdep.c (frv_gdbarch_init): Update.
9046 * cris-tdep.c (cris_gdbarch_init): Update.
9047 * avr-tdep.c (avr_gdbarch_init): Update.
9048 * arm-tdep.c (arm_gdbarch_init): Update.
9049 * valops.c (hand_function_call): Update.
9050
4d628cd7
AC
90512003-03-29 Andrew Cagney <cagney@redhat.com>
9052
9053 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9054 sizeof_call_dummy_words.
9055 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9056 define.
9057 * gdbarch.h: Regenerate.
8ffd9b1b 9058
65e82032
AC
90592003-03-29 Andrew Cagney <cagney@redhat.com>
9060
9061 * infttrace.h: New file.
9062 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9063 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9064 (hpread_read_doc_function_type): Detect an initialized type1.
9065 (hpread_quick_traverse): Initialize mod_name_string.
9066 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9067 (som_solib_get_solib_by_pc): Declare.
9068 (so_lib_thread_start_addr): Declare.
9069 (no_shared_libraries): Declare.
9070 * somread.c (init_import_symbols): Make static. Add forward
9071 declaration.
9072 * config/pa/nm-hppah.h: Include "infttrace.h" for
9073 parent_attach_all.
9074 (hppa_insert_hw_watchpoint): Declare.
9075 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9076 * hppah-nat.c: Include "gdb_string.h".
9077 (parent_attach_all): Delete extern declaration, moved to
9078 "infttrace.h".
9079 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9080 int.
9081 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9082 * Makefile.in (infttrace_h): Define.
9083 (hpread.o): Update dependencies.
9084 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9085 * hppa-hpux-tdep.c: Include "gdb_string.h".
9086 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9087 * infrun.c (handle_inferior_event): Always initialize
9088 stepped_after_stopped_by_watchpoint. Add default and remove
9089 fallthrough in switch statement.
9090 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9091 parameter to int.
9092 (hppa_remove_hw_watchpoint): Ditto.
9093
2c3bbe77
AC
90942003-03-29 Andrew Cagney <cagney@redhat.com>
9095
9096 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9097 offset.
9098
2dd604e7
RE
90992003-03-29 Richard Earnshaw <rearnsha@arm.com>
9100
9101 * arm-tdep.c (arm_push_arguments): Delete.
9102 (struct stack_item): New type.
9103 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9104 (arm_store_struct_return): Delte.
9105 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9106 arm_push_arguments or arm_store_struct_return.
9107
e8933a55
AC
91082003-03-28 Andrew Cagney <cagney@redhat.com>
9109
9110 * Makefile.in (d10v-tdep.o): Update dependencies.
9111 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9112 * d10v-tdep.c: Include "remote.h".
9113 (target_resume_hook): Delete extern declaration.
9114 (target_wait_loop_hook): Ditto.
9115 (tdisassemble_command): Eliminate assignment in "if" conditional.
9116 (d10v_ts2_register_sim_regno): Eliminate call to
9117 legacy_register_sim_regno.
9118 (d10v_ts3_register_sim_regno): Ditto.
9119
6949171e
JJ
91202003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9121
9122 * thread.c: Reindented.
9123 * lin-lwp.c: Ditto.
9124 * linux-proc.c: Ditto.
9125
98c7071f
BR
91262003-03-28 Bob Rossi <bob_rossi@cox.net>
9127
fbe586ae 9128 * MAINTAINERS (write after approval): Add myself.
98c7071f 9129
5edc9ca6
TR
91302003-03-27 Theodore A. Roth <troth@openavr.org>
9131
9132 * objc-exp.y: Add missing semi-colons.
9133
378bfd1b
AC
91342003-03-27 Andrew Cagney <cagney@redhat.com>
9135
9136 * regcache.c (write_sp): Delete function and references.
9137 * inferior.h (write_sp): Delete declaration.
9138 * valops.c (hand_function_call): Replace write_sp with
9139 TARGET_WRITE_SP.
9140 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9141 (sparc_pop_frame): Ditto.
8ffd9b1b 9142
56056df7
AC
91432003-03-27 Andrew Cagney <cagney@redhat.com>
9144
9145 * NEWS: Mention removal of support for hppa*-*-bsd* and
9146 hppa*-*-osf* natives, and hppa*-*-pro* target.
9147 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9148 * config/pa/xm-pa.h: Obsolete file.
9149 * config/pa/xm-hppab.h: Obsolete file.
9150 * config/pa/nm-hppab.h: Obsolete file.
9151 * config/pa/tm-hppab.h: Obsolete file.
9152 * config/pa/tm-hppao.h: Obsolete file.
9153 * config/pa/nm-hppao.h: Obsolete file.
9154 * config/pa/tm-pro.h: Obsolete file.
9155 * config/pa/hppaosf.mt: Obsolete file.
9156 * config/pa/hppaosf.mh: Obsolete file.
9157 * config/pa/hppapro.mt: Obsolete file.
9158 * config/pa/hppabsd.mt: Obsolete file.
9159 * config/pa/hppabsd.mh: Obsolete file.
9160 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9161 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9162 hppa*-*-osf*.
9163
5873a88d
AC
91642003-03-27 Andrew Cagney <cagney@redhat.com>
9165
9166 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9167 push_arguments. Don't set push_return_address or write_sp.
9168 (d10v_push_dummy_call): Replace d10v_push_arguments.
9169 (d10v_push_return_address, d10v_write_sp): Delete function,
9170 handled by push_dummy_call.
9171
b81774d8
AC
91722003-03-26 Andrew Cagney <cagney@redhat.com>
9173
9174 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9175 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9176 regcache and dummy_addr parameters.
9177 * gdbarch.h, gdbarch.c: Re-generate.
9178 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9179 available; assume it will handle stack alignment and return
9180 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9181 legacy_push_arguments.
9182 (legacy_push_arguments): Rename default_push_arguments.
9183 * value.h (legacy_push_arguments): Rename default_push_arguments.
9184 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9185 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9186 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9187 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9188 * config/i386/tm-symmetry.h: Update.
9189 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9190 * x86-64-tdep.c (x86_64_init_abi): Update.
9191 * v850-tdep.c (v850_gdbarch_init): Update.
9192 * sparc-tdep.c (sparc_gdbarch_init): Update.
9193 * sh-tdep.c (sh_gdbarch_init): Update.
9194 * s390-tdep.c (s390_gdbarch_init): Update.
9195 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9196 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9197 * mips-tdep.c (mips_gdbarch_init): Update.
9198 * mcore-tdep.c (mcore_gdbarch_init): Update.
9199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9200 * ia64-tdep.c (ia64_gdbarch_init): Update.
9201 * i386-tdep.c (i386_gdbarch_init): Update.
9202 * hppa-tdep.c (hppa_gdbarch_init): Update.
9203 * h8300-tdep.c (h8300_gdbarch_init): Update.
9204 * frv-tdep.c (frv_gdbarch_init): Update.
9205 * d10v-tdep.c (d10v_gdbarch_init): Update.
9206 * cris-tdep.c (cris_gdbarch_init): Update.
9207 * avr-tdep.c (avr_gdbarch_init): Update.
9208 * arm-tdep.c (arm_gdbarch_init): Update.
9209 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9210 * alpha-tdep.c (alpha_gdbarch_init): Update.
9211
f541410f
DJ
92122003-03-26 Daniel Jacobowitz <drow@mvista.com>
9213
9214 * signals/signals.c (do_target_signal_to_host): Correct realtime
9215 signal range test.
9216
69f567ae
DJ
92172003-03-26 Daniel Jacobowitz <drow@mvista.com>
9218
9219 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9220 (struct sal_chain, map_catch_names): Remove.
9221 (catch_exception_command_1): Don't call
9222 handle_gnu_4_16_catch_command.
9223
d5d14a5a
DJ
92242003-03-26 Daniel Jacobowitz <drow@mvista.com>
9225
9226 From Mark Dettinger <dettinge@de.ibm.com>:
9227 * dwarf2cfi.c (read_2u): Increment pointer by two.
9228
bdd73e22
DJ
92292003-03-26 Daniel Jacobowitz <drow@mvista.com>
9230
9231 * signals/signals.c: Fix typos in last change.
9232
960cb555
DJ
92332003-03-26 Daniel Jacobowitz <drow@mvista.com>
9234
9235 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9236 not already defined. Use __SIGRTMIN if available.
9237 (target_signal_from_host): Remove SIGRTMIN block.
9238 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9239 the signal is within the realtime range.
9240
f636b87d
AF
92412003-03-25 Adam Fedor <fedor@gnu.org>
9242
9243 * Makefile.in (infrun.o): Add $(language_h)
9244 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9245 for language specific trampolines.
9246 * language.h (struct language_defn): Add skip_trampoline.
9247 (skip_language_trampoline): Declare.
9248 * language.c (unk_lang_trampoline, skip_language_trampoline):
9249 New functions.
9250 (unknown_language_defn, auto_language_defn, local_language_defn):
9251 Add ukn_lang_trampoline.
9252 * ada-lang.c (ada_language_defn): Add NULL for language
9253 specific skip_trampoline.
9254 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9255 scm-lang.c: Likewise.
9256 * objc-lang.c (objc_skip_trampoline): New function.
9257 (objc_language_defn): Add objc_skip_trampoline.
9258
28f617b3 92592003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
9260
9261 * frame.c (get_prev_frame): Delay validating a frame's ID -
9262 non-NULL, didn't go backwards - until an attempt to unwind it to
9263 the previous frame.
9264
f933a9c5
AC
92652003-03-25 Andrew Cagney <cagney@redhat.com>
9266
9267 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9268 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9269 * gdbarch.h, gdbarch.c: Re-generate.
9270 * config/sparc/tm-sparc.h
9271 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9272 * sparc-tdep.c (sparc_gdbarch_init): Set
9273 deprecated_extra_stack_alignment_needed.
9274 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9276 extra_stack_alignment_needed.
9277 * v850-tdep.c (v850_gdbarch_init): Ditto.
9278 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9279 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9280 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9281 * cris-tdep.c (cris_gdbarch_init): Ditto.
9282 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9283 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 9284
4183d812
AC
92852003-03-25 Andrew Cagney <cagney@redhat.com>
9286
9287 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9288 STORE_STRUCT_RETURN.
9289 * gdbarch.h, gdbarch.c: Regenerate.
9290 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9291 (d10v_push_arguments): Set the struct return register.
9292 (d10v_gdbarch_init): Update.
9293 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9294 * x86-64-tdep.c (x86_64_init_abi): Update.
9295 * vax-tdep.c (vax_gdbarch_init): Update.
9296 * v850-tdep.c (v850_gdbarch_init): Update.
9297 * sparc-tdep.c (sparc_gdbarch_init): Update.
9298 * sh-tdep.c (sh_gdbarch_init): Update.
9299 * s390-tdep.c (s390_gdbarch_init): Update.
9300 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9301 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9302 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9303 * mips-tdep.c (mips_gdbarch_init): Update.
9304 * mcore-tdep.c (mcore_gdbarch_init): Update.
9305 * m68k-tdep.c (m68k_gdbarch_init): Update.
9306 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9307 * ia64-tdep.c (ia64_gdbarch_init): Update.
9308 * i386-tdep.c (i386_gdbarch_init): Update.
9309 * hppa-tdep.c (hppa_gdbarch_init): Update.
9310 * h8300-tdep.c (h8300_gdbarch_init): Update.
9311 * frv-tdep.c (frv_gdbarch_init): Update.
9312 * cris-tdep.c (cris_gdbarch_init): Update.
9313 * avr-tdep.c (avr_gdbarch_init): Update.
9314 * arm-tdep.c (arm_gdbarch_init): Update.
9315 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 9316
1bf6d5cc
AC
93172003-03-25 Andrew Cagney <cagney@redhat.com>
9318
9319 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9320 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9321 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9322 * gdbarch.h, gdbarch.c: Regenerate.
9323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9324 call_dummy_stack_adjust_p.
9325 * vax-tdep.c (vax_gdbarch_init): Ditto.
9326 * v850-tdep.c (v850_gdbarch_init): Ditto.
9327 * sh-tdep.c (sh_gdbarch_init): Ditto.
9328 * s390-tdep.c (s390_gdbarch_init): Ditto.
9329 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9330 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9331 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9332 * mips-tdep.c (mips_gdbarch_init): Ditto.
9333 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9334 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9335 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9336 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9337 * i386-tdep.c (i386_gdbarch_init): Ditto.
9338 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9339 * frv-tdep.c (frv_gdbarch_init): Ditto.
9340 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9341 * cris-tdep.c (cris_gdbarch_init): Ditto.
9342 * avr-tdep.c (avr_gdbarch_init): Ditto.
9343 * arm-tdep.c (arm_gdbarch_init): Ditto.
9344 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9345 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9346 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9347 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9348 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9349 call_dummy_stack_adjust_p.
9350 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9351 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9352 * sparc-tdep.c (sparc32_push_arguments): Update.
9353 * valops.c (hand_function_call): Update.
9354
71c08af0
CV
93552003-03-25 Corinna Vinschen <vinschen@redhat.com>
9356
9357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9358 set_gdbarch_char_signed.
9359
30757f90
RE
93602003-03-25 Richard Earnshaw <rearnsha@arm.com>
9361
9362 PR cli/548
9363 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9364
03d48a7d
RE
93652003-03-25 Richard Earnshaw <rearnsha@arm.com>
9366
9367 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9368 (_initialize_arm_tdep): Don't set tm_print_insn.
9369
2cf6873c
AF
93702003-03-24 Adam Fedor <fedor@gnu.org>
9371
9372 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9373 * objc-lang.h: Add multiple inclusion protection.
9374 (start_msglist, add_msglist, end_msglist): Additional declarations.
9375
17c0759e
RE
93762003-03-24 Richard Earnshaw <rearnsha@arm.com>
9377
9378 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9379 value was renamed to ARM_FLOAT_SOFT_FPA.
9380
618ce49f
AC
93812003-03-23 Andrew Cagney <cagney@redhat.com>
9382
9383 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9384 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9385 * gdbarch.h, gdbarch.c: Regenerate.
9386 * valops.c (hand_function_call): Update.
9387 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9388 * frame.c (legacy_saved_regs_this_id): Update.
9389 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9390 * dummy-frame.h: Update.
9391 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9392 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9393 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9394 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9395 * config/m68k/tm-sun3.h: Update.
9396 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9398 * x86-64-tdep.c (x86_64_init_abi): Update.
9399 * vax-tdep.c (vax_gdbarch_init): Update.
9400 * v850-tdep.c (v850_gdbarch_init): Update.
9401 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9402 * sh-tdep.c (sh_gdbarch_init): Update.
9403 * s390-tdep.c (s390_gdbarch_init): Update.
9404 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9405 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9406 (frame_get_saved_regs): Update.
9407 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9408 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9409 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9410 * mips-tdep.c (mips_gdbarch_init): Update.
9411 * mcore-tdep.c (mcore_gdbarch_init): Update.
9412 * m68k-tdep.c (m68k_gdbarch_init): Update.
9413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9414 * ia64-tdep.c (ia64_gdbarch_init): Update.
9415 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9416 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9417 (i386_interix_back_one_frame): Update.
9418 * hppa-tdep.c (hppa_gdbarch_init): Update.
9419 (hppa_init_extra_frame_info): Update.
9420 * h8300-tdep.c (h8300_gdbarch_init): Update.
9421 * frv-tdep.c (frv_gdbarch_init): Update.
9422 * cris-tdep.c (cris_gdbarch_init): Update.
9423 * avr-tdep.c (avr_gdbarch_init): Update.
9424 * arm-tdep.c (arm_gdbarch_init): Update.
9425 * alpha-tdep.c (alpha_gdbarch_init): Update.
9426
fd50bc42
RE
94272003-03-22 Richard Earnshaw <rearnsha@arm.com>
9428
9429 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9430 (arm_get_fp_model): Declare.
9431 * arm-tdep.c (fp_model_strings): New string array.
9432 (arm_fp_model, current_fp_model): New variables.
9433 (arm_get_fp_model): New function.
9434 (arm_set_fp): New function.
9435 (set_fp_model_sfunc): New function.
9436 (show_fp_model): New function.
9437 (_initialize_arm_tdep): Add new command to set/show the FPU.
9438 (arm_extract_return_value): Use arm_get_fp_model.
9439 (arm_store_return_value): Likewise.
9440 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9441 to initialize the floating-point data types.
9442 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9443 model is FPA.
9444
26304000
RE
94452003-03-22 Richard Earnshaw <rearnsha@arm.com>
9446
9447 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9448 the current setting of each value.
9449 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 9450 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
9451 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9452 commands and add new version as subcommands of "set/show arm".
9453
afd7eef0
RE
94542003-03-22 Richard Earnshaw <rearnsha@arm.com>
9455
9456 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9457 (set_arm_command, show_arm_command): New functions.
9458 (_initialize_arm_tdep): Add them.
9459 (num_disassembly_options): Renamed from num_flavor_options.
9460 (valid_disassembly_styles): Renamed from valid_flavors.
9461 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 9462 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
9463 set_disassembly_flavor_sfunc.
9464 (set_disassembly_style): Renamed from set_disassembly_flavor.
9465 (arm_othernames): Updated.
9466 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9467 command. Add "set/show arm disassembly" commands. Deprecate
9468 "othernames" command.
9469
299a7944
RE
94702003-03-22 Richard Earnshaw <rearnsha@arm.com>
9471
9472 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9473 (arm-tdep.o): Depend on elf_arm_h.
9474
c1dac9e6
RE
94752003-03-22 Richard Earnshaw <rearnsha@arm.com>
9476
9477 * Makefile.in (coff_internal_h): Define.
9478 (arm-tdep.o): Update dependencies.
9479
2702d96c
RE
94802003-03-22 Richard Earnshaw <rearnsha@arm.com>
9481
9482 * arm-tdep.c (prologue_cache): Delete.
9483 (check_prologue_cache, save_prologue_cache): Delete.
9484 (arm_scan_prologue): Don't check or update the prologue_cache.
9485 (arm_gdb_arch_init): Don't initialize it.
9486 (_initialize_arm_tdep): Likewise.
9487
27d5d74b
SC
94882003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9489
9490 * MAINTAINERS (tui): Maintainer of tui code.
9491
1762d96d
CV
94922003-03-21 Corinna Vinschen <vinschen@redhat.com>
9493
9494 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9495 (i386-cygwin-tdep.o): Add dependencies.
9496 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9497 * i386-cygwin-tdep.c: New file.
9498 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9499 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9500
4c2e2391
AC
95012003-03-20 Andrew Cagney <cagney@redhat.com>
9502
f20d38b7
AC
9503 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9504 (handle_inferior_event): Remove code calling
9505 DYNAMIC_TRAMPOLINE_NEXTPC.
9506
0022b738
AC
9507 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9508 already has a full path.
9509
864dbc90
AC
9510 * main.c (gdb_main): Return 1.
9511 (captured_main): Call error to report an invalid interpreter.
9512
4c2e2391
AC
9513 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9514 * alpha-osf1-tdep.c: Include "gdb_string.h".
9515
5ef7553b
JB
95162003-03-19 J. Brobecker <brobecker@gnat.com>
9517
9518 Continuing work to convert the hppa targets to multiarch partial.
9519
9520 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9521 method, now that hppa_push_dummy_frame has a conformant prototype.
9522 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9523 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9524 for the switch to multiarch partial.
9525
7bde8967
KB
95262003-03-19 Kevin Buettner <kevinb@redhat.com>
9527
9528 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9529 when iss is issNull.
9530
b006a9e9
KB
95312003-03-18 Kevin Buettner <kevinb@redhat.com>
9532
9533 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9534 NUM_REGS bounds check.
9535
5e2e9765
KB
95362003-03-18 Kevin Buettner <kevinb@redhat.com>
9537
9538 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9539 * mips-tdep.c (gdb_assert.h): Include.
9540 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9541 (mips_register_name): Handle integer registers explicitly. Add
9542 bounds checking.
9543 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9544 (mips_lsi33k_reg_names): Don't list integer registers; they're
9545 handled by mips_register_name() now.
9546 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9547 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9548 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9549 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9550 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9551
a2867626
AC
95522003-03-18 Andrew Cagney <cagney@redhat.com>
9553
9554 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9555 a void pointer.
9556 * gdbtypes.h (print_scalar_formatted): Update declaration.
9557 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9558
06600e06
JB
95592003-03-18 J. Brobecker <brobecker@gnat.com>
9560
9561 * infrun.c (observer.h): Add #include.
9562 (normal_stop): Add call to observer_notify_normal_stop.
9563 * Makefile.in (infrun.o): Add dependency on observer.h.
9564
7daf4f5b
JB
95652003-03-18 J. Brobecker <brobecker@gnat.com>
9566
9567 Continuing work to convert the hppa targets to multiarch partial.
9568 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9569 parameter. Reformat comment.
9570 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9571 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9572 to match new profile.
9573
3371ccc0
JB
95742003-03-18 J. Brobecker <brobecker@gnat.com>
9575
9576 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9577 appear to be working in any case.
9578
4fbe891e
JB
95792003-03-18 J. Brobecker <brobecker@gnat.com>
9580
9581 * observer.c (observer_test_first_observer): New static variable.
9582 (observer_test_second_observer): Likewise.
9583 (observer_test_third_observer): Likewise.
9584 (observer_test_first_notification_function): New static function.
9585 (observer_test_second_notification_function): Likewise.
9586 (observer_test_third_notification_function): Likewise.
9587
a7ff40e7
JB
95882003-03-17 J. Brobecker <brobecker@gnat.com>
9589
9590 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9591 * somsolib.c (gdb_assert.h): Likewise.
9592 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9593 (somsolib.o): Likewise.
9594
26ca4152
AC
95952003-03-17 Andrew Cagney <cagney@redhat.com>
9596
9597 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9598 BFD. Simplify setting of di.endian.
9599
0a613259
AC
96002003-03-17 Andrew Cagney <cagney@redhat.com>
9601
9602 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9603 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9604
9605 From Elena Zannoni <ezannoni@redhat.com>
9606 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9607 vector and floating-point parameters.
9608 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9609 convention.
9610 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9611
1132738f
FN
96122003-03-17 Fernando Nasser <fnasser@redhat.com>
9613
9614 * MAINTAINERS: Remove my name from several maintainership roles.
9615
6dc42492
AC
96162003-03-17 Andrew Cagney <cagney@redhat.com>
9617
9618 Fix frame off-by-one bug.
9619 * frame-unwind.h (frame_this_id_ftype): Replace
9620 frame_unwind_id_ftype.
9621 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9622 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9623 with "prev_register".
9624 * frame-unwind.c (frame_unwind_find_by_pc): Return
9625 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9626 comment.
9627 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9628 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9629 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9630 (dummy_frame_unwind): Update.
9631 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9632 sentinel_frame_register_unwind.
9633 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9634 (sentinel_frame_unwinder): Update.
9635 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9636 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9637 * frame.c (create_sentinel_frame): Update. Initialize
9638 "prologue_cache" instead of "unwind_cache".
9639 (frame_register_unwind): Call this frame's prev_register with the
9640 next frame and this frame's prologue cache.
9641 (get_prev_frame): Simplify. Always call prev frame's this_id with
9642 this frame and prev frame's prologue cache. Document that this
9643 call is shifted one to the left when compared to the
9644 frame_register_unwind call.
9645 (legacy_saved_regs_prev_register): Replace
9646 frame_saved_regs_register_unwind.
9647 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9648 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9649 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9650 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9651 (d10v_frame_unwind): Update.
9652 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9653 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9654 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9655 "saved_regs" with "this_saved_regs".
9656
efd710d6
AC
96572003-03-16 Andrew Cagney <cagney@redhat.com>
9658
9659 * frame.c (frame_pop): Don't call target_store_registers. Fix
9660 problem reported by Mark Kettenis.
9661
4e259f09
MK
96622003-03-16 Mark Kettenis <kettenis@gnu.org>
9663
9664 * i386-tdep.c (i386_register_type): Renamed from
9665 i386_register_virtual_type. Adjust function signature.
9666 (i386_gdbarch_init): Set register_type instead of
9667 deprecated_max_register_raw_size,
9668 deprecated_max_register_virtual_size and register_virtual_type.
9669
055bb976
AC
96702003-03-14 Andrew Cagney <cagney@redhat.com>
9671
9672 * frame.c (get_prev_frame): When a legacy frame, always call
9673 legacy_get_prev_frame. Simplify unwind code using assumption that
9674 the unwinder is new.
9675 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9676 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9677 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9678
ac2adee5
AC
96792003-03-14 Andrew Cagney <cagney@redhat.com>
9680
9681 * frame.c (get_saved_register): Delete function.
9682 * frame.h (get_saved_register): Delete declaration.
9683 * xstormy16-tdep.c: Update comment.
9684 * regcache.h: Update comments.
9685 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9686 get_saved_register and extract_address, use
9687 frame_read_unsigned_register.
9688 (sparc_frame_saved_pc): Ditto.
9689 (sparc_get_saved_register): Instead of get_saved_register, use
9690 frame_register.
9691 (sparc_pop_frame): Ditto.
9692 * findvar.c: Update comments.
9693 (value_of_register): Call frame_register instead of
9694 get_saved_register.
9695 (value_from_register): Ditto.
9696 * config/sparc/tm-sparc.h: Update comment.
9697 * breakpoint.c: Update comment.
9698
129c1cd6
AC
96992003-03-14 Andrew Cagney <cagney@redhat.com>
9700
9701 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9702 GET_SAVED_REGISTER.
9703 * gdbarch.h, gdbarch.c: Re-generate.
9704 * frame.h: Update comments.
9705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9706 * x86-64-tdep.c (x86_64_init_abi): Update.
9707 * sparc-tdep.c (sparc_gdbarch_init): Update.
9708 * sh-tdep.c (sh_gdbarch_init): Update.
9709 * mips-tdep.c (mips_gdbarch_init): Update.
9710 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9711 * cris-tdep.c (cris_gdbarch_init): Update.
9712 * ia64-tdep.c (ia64_gdbarch_init): Update.
9713 * frame.c (frame_register): Update.
9714 (get_saved_register): Update.
9715 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 9716
749b82f6
AC
97172003-03-13 Andrew Cagney <cagney@redhat.com>
9718
9719 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9720 * gdbarch.h, gdbarch.c: Regenerate.
9721 * valops.c (hand_function_call): Update comment.
9722 * stack.c (return_command): Update comment.
9723 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9724 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9725 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9726 * x86-64-tdep.c (x86_64_init_abi): Update.
9727 * vax-tdep.c (vax_gdbarch_init): Update.
9728 * v850-tdep.c (v850_gdbarch_init): Update.
9729 * sparc-tdep.c (sparc_gdbarch_init): Update.
9730 * sh-tdep.c (sh_gdbarch_init): Update.
9731 * s390-tdep.c (s390_gdbarch_init): Update.
9732 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9733 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9734 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9735 * mips-tdep.c (mips_gdbarch_init): Update.
9736 * mcore-tdep.c (mcore_gdbarch_init): Update.
9737 * m68k-tdep.c (m68k_gdbarch_init): Update.
9738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9739 * ia64-tdep.c (ia64_gdbarch_init): Update.
9740 * i386-tdep.c (i386_gdbarch_init): Update.
9741 * hppa-tdep.c (hppa_gdbarch_init): Update.
9742 * h8300-tdep.c (h8300_gdbarch_init): Update.
9743 * frv-tdep.c (frv_gdbarch_init): Update.
9744 * cris-tdep.c (cris_gdbarch_init): Update.
9745 * avr-tdep.c (avr_gdbarch_init): Update.
9746 * arm-tdep.c (arm_gdbarch_init): Update.
9747 * alpha-tdep.c (alpha_gdbarch_init): Update.
9748
1594fa56
AC
97492003-03-13 Andrew Cagney <cagney@redhat.com>
9750
9751 * frame.c (legacy_frame_p): New function.
9752 (get_prev_frame): Use legacy_frame_p.
9753 * frame.h (legacy_frame_p): Declare.
9754
7717fda3
V
97552003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9756
fbe586ae 9757 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
9758 listing corrected.
9759
0c67cbe9
V
97602003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9761
fbe586ae 9762 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 9763
03febf99
AC
97642003-03-12 Andrew Cagney <cagney@redhat.com>
9765
9766 * frame.c (get_prev_frame): Rename the frame parameter to
9767 "this_frame".
9768 (get_next_frame, legacy_get_prev_frame): Ditto.
9769
0a1e1ca1
AC
97702003-03-12 Andrew Cagney <cagney@redhat.com>
9771
9772 * frame.c (get_current_frame): Check target_has_registers before
9773 checking target_has_stack.
9774 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9775 instead of deprecated_selected_frame.
9776 * findvar.c (value_of_register): Pass "frame", not
9777 deprecated_selected_frame, to value_of_builtin_reg.
9778
a66a9c23
AC
97792003-03-12 Andrew Cagney <cagney@redhat.com>
9780
9781 * regcache.c (regcache_cooked_write_signed): New function.
9782 (regcache_cooked_write_unsigned): New function.
9783 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9784 (regcache_cooked_read_signed): Fix regnum in range assertion.
9785 * regcache.h (regcache_cooked_write_signed): Declare.
9786 (regcache_cooked_write_unsigned): Declare.
9787
8bedc050
AC
97882003-03-12 Andrew Cagney <cagney@redhat.com>
9789
9790 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9791 * gdbarch.h, gdbarch.c: Re-generate.
9792 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9793 * x86-64-tdep.h: Update.
9794 * x86-64-tdep.c (x86_64_init_abi): Update.
9795 * v850-tdep.c (v850_gdbarch_init): Update.
9796 * sparc-tdep.c (sparc_gdbarch_init): Update.
9797 * sh-tdep.c (sh_gdbarch_init): Update.
9798 * s390-tdep.c (s390_gdbarch_init): Update.
9799 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9800 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9801 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9802 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9803 * mips-tdep.c (mips_gdbarch_init): Update.
9804 * mcore-tdep.c (mcore_gdbarch_init): Update.
9805 * m68k-tdep.c (m68k_gdbarch_init): Update.
9806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9807 * ia64-tdep.c (ia64_gdbarch_init): Update.
9808 * i386-tdep.c (i386_gdbarch_init): Update.
9809 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9810 * hppa-tdep.c (hppa_gdbarch_init): Update.
9811 * h8300-tdep.c (h8300_gdbarch_init): Update.
9812 * frv-tdep.c (frv_gdbarch_init): Update.
9813 * cris-tdep.c (cris_gdbarch_init): Update.
9814 * avr-tdep.c (avr_gdbarch_init): Update.
9815 * arm-tdep.c (arm_gdbarch_init): Update.
9816 * alpha-tdep.c (alpha_gdbarch_init): Update.
9817 * sh-tdep.c (sh_init_extra_frame_info): Update.
9818 (sh64_init_extra_frame_info): Update.
9819 * ns32knbsd-nat.c (frame_num_args): Update.
9820 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9821 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9822 (xstormy16_frame_chain_valid): Update.
9823 * vax-tdep.c (vax_saved_pc_after_call): Update.
9824 * v850-tdep.c (v850_frame_chain): Update.
9825 (v850_pop_frame): Update.
9826 (v850_init_extra_frame_info): Update.
9827 * sparc-tdep.c (setup_arbitrary_frame): Update.
9828 * ns32k-tdep.c (umax_frame_num_args): Update.
9829 * s390-tdep.c (s390_pop_frame_regular): Update.
9830 * mn10300-tdep.c (mn10300_frame_chain): Update.
9831 (mn10300_pop_frame_regular): Update.
9832 (mn10300_init_extra_frame_info): Update.
9833 * mips-tdep.c (mips_init_frame_pc_first): Update.
9834 (mips_frame_chain): Update.
9835 (mips_pop_frame): Update.
9836 * mcore-tdep.c (mcore_frame_chain): Update.
9837 (mcore_pop_frame): Update.
9838 (mcore_init_extra_frame_info): Update.
9839 * arch-utils.c (init_frame_pc_default): Update.
9840 * m68k-tdep.c (isi_frame_num_args): Update.
9841 (delta68_frame_num_args): Update.
9842 (news_frame_num_args): Update.
9843 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9844 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9845 (alpha_frame_chain): Update.
9846 (alpha_pop_frame): Update.
9847 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9848 (hppa_init_extra_frame_info): Update.
9849 (hppa_frame_chain): Update.
9850 (hppa_frame_chain_valid): Update.
9851 * cris-tdep.c (cris_init_extra_frame_info): Update.
9852 * avr-tdep.c (avr_init_extra_frame_info): Update.
9853 * arm-tdep.c (arm_frame_chain_valid): Update.
9854 (arm_init_extra_frame_info): Update.
9855 (arm_pop_frame): Update.
9856 * frame.c (frame_pc_unwind): Update.
9857 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9858 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9859 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9860 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9861 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9862 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 9863
7a25a7c1
AC
98642003-03-12 Andrew Cagney <cagney@redhat.com>
9865
9866 Eliminate the need for POP_FRAME.
9867 * frame.c (do_frame_unwind_register): New function.
9868 (frame_pop): When no POP_FRAME, pop the frame using register
9869 unwind and a scratch regcache.
9870 (frame_saved_regs_pop): Delete function.
9871 (trad_frame_unwinder): Update.
9872 * d10v-tdep.c (d10v_frame_pop): Delete function.
9873 (d10v_frame_unwind): Update.
9874 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9875 (sentinel_frame_unwinder): Update.
9876 * dummy-frame.c (dummy_frame_pop): Delete function.
9877 (dummy_frame_unwind): Update.
9878 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9879 (struct frame_unwind): Update.
9880
2f38ef89
KB
98812003-03-11 Kevin Buettner <kevinb@redhat.com>
9882
9883 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9884 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9885 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9886 Do range checks on register number obtained from debugging info.
9887 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9888 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9889 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9890 mapping function.
9891 (do_fp_register_row): Fix typo which caused double type to be
9892 used when attempting to unpack a float.
9893
552f4abf
JB
98942003-03-11 J. Brobecker <brobecker@gnat.com>
9895
9896 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9897
e0d2ae16
AC
98982003-03-11 Andrew Cagney <cagney@redhat.com>
9899
9900 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9901 frame. Problem found by Corinna Vinschen.
9902
ddbfdd06
PM
99032003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9904
9905 * doublest.c (floatformat_from_length): Accept also
9906 the real size of 'long double' type.
9907
088b2ddc 99082003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 9909
088b2ddc 9910 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
9911 * breakpoint.c (bpstat_copy): Copy the command lines as well
9912 as the old value, to match what is freed in bpstat_clear.
9913
f56f77c1
DC
99142003-03-10 David Carlton <carlton@math.stanford.edu>
9915
9916 * minsyms.c (add_minsym_to_hash_table): Replace
9917 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9918 (compare_minimal_symbols, compact_minimal_symbols)
9919 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9920 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9921 of DEPRECATED_SYMBOL_MATCHES_NAME.
9922 (lookup_minimal_symbol_solib_trampoline): Ditto.
9923
5602984a
AC
99242003-03-10 Andrew Cagney <cagney@redhat.com>
9925
9926 * regcache.h (regcache_cooked_read_ftype): Define.
9927 (regcache_save, regcache_restore): Add a cooked_read parameter.
9928 * regcache.c (regcache_save, regcache_restore): Update.
9929 (do_cooked_read): New function.
9930 (regcache_cpy): Pass do_cooked_read to regcache_save and
9931 regcache_restore.
9932
8bedc050
AC
99332003-03-10 Andrew Cagney <cagney@redhat.com>
9934
9935 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9936 * gdbarch.h, gdbarch.c: Re-generate.
9937 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9938 * x86-64-tdep.h: Update.
9939 * x86-64-tdep.c (x86_64_init_abi): Update.
9940 * v850-tdep.c (v850_gdbarch_init): Update.
9941 * sparc-tdep.c (sparc_gdbarch_init): Update.
9942 * sh-tdep.c (sh_gdbarch_init): Update.
9943 * s390-tdep.c (s390_gdbarch_init): Update.
9944 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9945 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9946 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9947 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9948 * mips-tdep.c (mips_gdbarch_init): Update.
9949 * mcore-tdep.c (mcore_gdbarch_init): Update.
9950 * m68k-tdep.c (m68k_gdbarch_init): Update.
9951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9952 * ia64-tdep.c (ia64_gdbarch_init): Update.
9953 * i386-tdep.c (i386_gdbarch_init): Update.
9954 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9955 * hppa-tdep.c (hppa_gdbarch_init): Update.
9956 * h8300-tdep.c (h8300_gdbarch_init): Update.
9957 * frv-tdep.c (frv_gdbarch_init): Update.
9958 * cris-tdep.c (cris_gdbarch_init): Update.
9959 * avr-tdep.c (avr_gdbarch_init): Update.
9960 * arm-tdep.c (arm_gdbarch_init): Update.
9961 * alpha-tdep.c (alpha_gdbarch_init): Update.
9962 * sh-tdep.c (sh_init_extra_frame_info): Update.
9963 (sh64_init_extra_frame_info): Update.
9964 * ns32knbsd-nat.c (frame_num_args): Update.
9965 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9966 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9967 (xstormy16_frame_chain_valid): Update.
9968 * vax-tdep.c (vax_saved_pc_after_call): Update.
9969 * v850-tdep.c (v850_frame_chain): Update.
9970 (v850_pop_frame): Update.
9971 (v850_init_extra_frame_info): Update.
9972 * sparc-tdep.c (setup_arbitrary_frame): Update.
9973 * ns32k-tdep.c (umax_frame_num_args): Update.
9974 * s390-tdep.c (s390_pop_frame_regular): Update.
9975 * mn10300-tdep.c (mn10300_frame_chain): Update.
9976 (mn10300_pop_frame_regular): Update.
9977 (mn10300_init_extra_frame_info): Update.
9978 * mips-tdep.c (mips_init_frame_pc_first): Update.
9979 (mips_frame_chain): Update.
9980 (mips_pop_frame): Update.
9981 * mcore-tdep.c (mcore_frame_chain): Update.
9982 (mcore_pop_frame): Update.
9983 (mcore_init_extra_frame_info): Update.
9984 * arch-utils.c (init_frame_pc_default): Update.
9985 * m68k-tdep.c (isi_frame_num_args): Update.
9986 (delta68_frame_num_args): Update.
9987 (news_frame_num_args): Update.
9988 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9989 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9990 (alpha_frame_chain): Update.
9991 (alpha_pop_frame): Update.
9992 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9993 (hppa_init_extra_frame_info): Update.
9994 (hppa_frame_chain): Update.
9995 (hppa_frame_chain_valid): Update.
9996 * cris-tdep.c (cris_init_extra_frame_info): Update.
9997 * avr-tdep.c (avr_init_extra_frame_info): Update.
9998 * arm-tdep.c (arm_frame_chain_valid): Update.
9999 (arm_init_extra_frame_info): Update.
10000 (arm_pop_frame): Update.
10001 * frame.c (frame_pc_unwind): Update.
10002 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10003 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10004 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10005 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10006 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10007 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 10008
12cc2063
AC
100092003-03-10 Andrew Cagney <cagney@redhat.com>
10010
10011 * gdbarch.sh (gdbarch_unwind_pc): New method.
10012 * gdbarch.h, gdbarch.c: Regenerate.
10013 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10014 but use read_pc and FRAME_SAVED_PC as fall backs.
10015 (frame_saved_regs_pc_unwind): Delete function.
10016 (trad_frame_unwinder): Update.
10017 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10018 (struct frame_unwind): Update.
10019 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10020 (dummy_frame_unwind): Update.
10021 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10022 (sentinel_frame_unwinder): Update.
10023 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10024 (d10v_frame_unwind): Update.
10025 (d10v_unwind_pc): New function.
10026 (d10v_gdbarch_init): Set unwind_pc.
10027
ef840a37
AC
100282003-03-10 Andrew Cagney <cagney@redhat.com>
10029
a2ce2e56
AC
10030 * gdbarch.h: Re-generate.
10031
ef840a37
AC
10032 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10033 PC.
10034 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10035 the PC register.
10036
08f3424b
MK
100372003-03-08 Mark Kettenis <kettenis@gnu.org>
10038
10039 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10040
1248ede2
AC
100412003-03-08 Andrew Cagney <cagney@redhat.com>
10042
10043 * cli-out.c: Update copyright.
10044 (cli_out_data): Define typedef. Use instead of ui_out_data.
10045
f49bacc8
AC
100462003-03-08 Andrew Cagney <cagney@redhat.com>
10047
10048 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10049 the result.
10050
9b05f993
AC
100512003-03-07 Andrew Cagney <cagney@redhat.com>
10052
10053 * gdbarch.sh: Don't generate two macro definitions when an
10054 undefined macro taking no arguments.
10055 * gdbarch.h: Regenerate.
8ffd9b1b 10056
166f4c7b
ML
100572002-03-07 Michal Ludvig <mludvig@suse.cz>
10058
10059 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10060 (x86_64_unwind_dummy_id): New functions.
10061 (x86_64_init_abi): Register these two new functions.
10062
6d686a84
ML
100632003-03-07 Michal Ludvig <mludvig@suse.cz>
10064
10065 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 10066 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
10067 separate function.
10068 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10069
6314f104
AC
100702003-03-05 Andrew Cagney <cagney@redhat.com>
10071
10072 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10073 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10074 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10075 to use unwind_dummy_id when a dummy frame.
10076 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10077 predicate.
10078 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 10079
ceea5145
AC
100802003-03-05 Andrew Cagney <cagney@redhat.com>
10081
10082 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10083 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10084 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10085 values.
10086
0d843116
AC
100872003-03-05 Andrew Cagney <cagney@redhat.com>
10088
10089 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10090 (struct d10v_unwind_cache): Delete field "frameless". Replace
10091 "next_addr" with "sp_offset". Add "r11_offset".
10092 (d10v_frame_unwind_cache): Update.
10093 (prologue_find_regs): Update. When "mv r11, sp", save the
10094 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10095 RN was saved in r11_offset.
10096
b2579786
AC
100972003-03-05 Andrew Cagney <cagney@redhat.com>
10098
10099 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10100 cached PC value in the next frame.
10101
218e5956
AC
101022003-03-05 Andrew Cagney <cagney@redhat.com>
10103
10104 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10105 "id_unwind_cache" with "id".
10106 (frame_id_unwind): Delete declaration.
10107 * frame.c (frame_id_unwind): Delete function.
10108 (get_prev_frame): Call the frame id unwind method directly. Store
10109 the returned next frame's ID value in NEXT_FRAME. Note that there
10110 is a problem with the wrong unwind ID being called with the wrong
10111 unwind cache.
10112
ed363b1b
DJ
101132003-03-05 Daniel Jacobowitz <drow@mvista.com>
10114
10115 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10116
fe1f4a5e
DJ
101172003-03-05 James Ingham <jingham@apple.com>
10118 Daniel Jacobowitz <drow@mvista.com>
10119
10120 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10121 (auto_cp_abi): New variable.
10122 (current_cp_abi, num_cp_abis): Make static.
10123 (CP_ABI_MAX): Define.
10124 (cp_abis): Turn into an array.
10125 (value_virtual_fn_field): Fix formatting.
10126 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10127 takes a pointer.
10128 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10129 (list_cp_abis, _initialize_cp_abi): New functions.
10130 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10131 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10132 switch_to_cp_abi. Update prototype for register_cp_abi.
10133 * Makefile.in (cp-abi.o): Update dependencies.
10134 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10135 instead of switch_to_cp_abi.
10136 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10137 register_cp_abi.
10138 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10139 register_cp_abi.
10140 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10141
e4adbba9
DJ
101422003-03-05 Daniel Jacobowitz <drow@mvista.com>
10143
10144 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10145 * dwarf2loc.c: Include "regcache.h".
10146 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10147 register_size.
10148 * Makefile.in (dwarf2loc.o): Update dependencies.
10149
91ccbfc1
TR
101502003-03-04 Theodore A. Roth <troth@openavr.org>
10151
10152 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10153 number of io registers reported by remote target is not a multiple of
10154 step.
10155
3d4e8fd2
DC
101562003-03-04 David Carlton <carlton@math.stanford.edu>
10157
10158 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10159 (lookup_symbol_aux_psymtabs): Update call to
10160 lookup_partial_symbol.
10161 (lookup_transparent_type, find_main_psymtab)
10162 (make_symbol_overload_list): Ditto.
10163
ed42d87b
KH
101642003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10165
10166 * MAINTAINERS (Write after approval): Update my email address.
10167
a0ed5532
AC
101682003-03-03 Andrew Cagney <cagney@redhat.com>
10169
10170 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10171 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10172 predicate. Replace MAX_REGISTER_RAW_SIZE.
10173 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10174 MAX_REGISTER_VIRTUAL_SIZE.
10175 * regcache.c (legacy_max_register_raw_size): New function.
10176 (legacy_max_register_virtual_size): New function.
10177 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10178 (MAX_REGISTER_RAW_SIZE): Define.
10179 (legacy_max_register_raw_size): Declare.
10180 (legacy_max_register_virtual_size): Declare.
10181 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10182 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10183 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10184 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10185 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10186 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10187 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10188 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10189 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10191 * vax-tdep.c (vax_gdbarch_init): Update.
10192 * v850-tdep.c (v850_gdbarch_init): Update.
10193 * sparc-tdep.c (sparc_gdbarch_init): Update.
10194 * sh-tdep.c (sh_gdbarch_init): Update.
10195 * s390-tdep.c (s390_gdbarch_init): Update.
10196 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10197 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10198 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10199 * mips-tdep.c (mips_gdbarch_init): Update.
10200 * mcore-tdep.c (mcore_gdbarch_init): Update.
10201 * m68k-tdep.c (m68k_gdbarch_init): Update.
10202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10203 * ia64-tdep.c (ia64_gdbarch_init): Update.
10204 * i386-tdep.c (i386_gdbarch_init): Update.
10205 * hppa-tdep.c (hppa_gdbarch_init): Update.
10206 * h8300-tdep.c (h8300_gdbarch_init): Update.
10207 * frv-tdep.c (frv_gdbarch_init): Update.
10208 * cris-tdep.c (cris_gdbarch_init): Update.
10209 * avr-tdep.c (avr_gdbarch_init): Update.
10210 * arm-tdep.c (arm_gdbarch_init): Update.
10211 * alpha-tdep.c (alpha_gdbarch_init): Update.
10212 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10213 max_register_raw_size or max_register_virtual_size.
10214
8e437497
DC
102152003-03-03 David Carlton <carlton@math.stanford.edu>
10216
10217 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10218 SYMBOL_MATCHES_NAME, add comment.
10219 (SYMBOL_MATCHES_NATURAL_NAME): New.
10220 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10221 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10222 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10223 * symtab.c (lookup_partial_symbol): Use
10224 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10225 unhelpful comment.
10226 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10227 SYMBOL_MATCHES_NAME.
10228 Fix for PR c++/33.
10229
25120b0d
DC
102302003-03-03 David Carlton <carlton@math.stanford.edu>
10231
10232 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10233 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10234 by regexp matching against SYMBOL_NATURAL_NAME.
10235
78a11fb4
DC
102362003-03-03 David Carlton <carlton@math.stanford.edu>
10237
10238 * linespec.c (find_method): Extract code into collect_methods.
10239 (collect_methods): New.
10240
645dd519
MK
102412003-03-02 Mark Kettenis <kettenis@gnu.org>
10242
b4700d91
MK
10243 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10244 get_frame_base.
10245
645dd519
MK
10246 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10247 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10248
0aa7e1aa
SC
102492003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10250
8ffd9b1b 10251 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
10252 and not regnum when summing the size of all registers up to regnum.
10253
f30ee0bc
AC
102542003-03-01 Andrew Cagney <cagney@redhat.com>
10255
10256 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10257 FRAME_INIT_SAVED_REGS.
10258 * gdbarch.h, gdbarch.c: Regenerate.
10259 * stack.c (frame_info): Update.
10260 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10261 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10262 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10263 * ns32k-tdep.c (ns32k_pop_frame): Update.
10264 * mips-tdep.c (mips_pop_frame): Update.
10265 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10266 * ia64-tdep.c (ia64_frame_chain): Update.
10267 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10268 (ia64_frameless_function_invocation): Update.
10269 (ia64_init_extra_frame_info): Update.
10270 (ia64_pop_frame_regular): Update.
10271 * frame.h (struct frame_info): Update comment.
10272 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10273 * frame.c (frame_saved_regs_register_unwind): Update.
10274 (frame_saved_regs_register_unwind): Update.
10275 (deprecated_generic_get_saved_register): Update.
10276 * cris-tdep.c: Update comment.
10277 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10278 Rename macro.
10279 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10280 * x86-64-tdep.c (x86_64_init_abi): Update.
10281 * vax-tdep.c (vax_gdbarch_init): Update.
10282 * v850-tdep.c (v850_gdbarch_init): Update.
10283 * sparc-tdep.c (sparc_gdbarch_init): Update.
10284 * sh-tdep.c (sh_gdbarch_init): Update.
10285 * s390-tdep.c (s390_gdbarch_init): Update.
10286 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10287 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10288 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10289 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10290 * mips-tdep.c (mips_gdbarch_init): Update.
10291 * mcore-tdep.c (mcore_gdbarch_init): Update.
10292 * m68k-tdep.c (m68k_gdbarch_init): Update.
10293 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10294 * ia64-tdep.c (ia64_gdbarch_init): Update.
10295 * i386-tdep.c (i386_gdbarch_init): Update.
10296 * frv-tdep.c (frv_gdbarch_init): Update.
10297 * avr-tdep.c (avr_gdbarch_init): Update.
10298 * arm-tdep.c (arm_gdbarch_init): Update.
10299 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 10300
42fa7c0f
AC
103012003-03-01 Andrew Cagney <cagney@redhat.com>
10302
10303 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10304 option enum and switch. When no windows, set the interpreter to
10305 INTERP_CONSOLE.
8ffd9b1b 10306
49c7e338
AC
103072003-03-01 Andrew Cagney <cagney@redhat.com>
10308
10309 * main.c (captured_main): Replace magic option characters with an
10310 enum.
10311
e9582e71
AC
103122003-03-01 Andrew Cagney <cagney@redhat.com>
10313
10314 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10315 INIT_EXTRA_FRAME_INFO.
10316 * gdbarch.h, gdbarch.c: Regenerate.
10317 * arm-tdep.c: Update comments.
10318 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10319 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10320 * frame.h, avr-tdep.c: Ditto.
10321 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10322 (create_new_frame, legacy_get_prev_frame): Ditto.
10323 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10324 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10325 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10326 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10327 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10328 * v850-tdep.c (v850_gdbarch_init): Ditto.
10329 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10330 * sh-tdep.c (sh_gdbarch_init): Ditto.
10331 * s390-tdep.c (s390_gdbarch_init): Ditto.
10332 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10333 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10334 * mips-tdep.c (mips_gdbarch_init): Ditto.
10335 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10337 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10338 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10339 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10340 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10341 * frv-tdep.c (frv_gdbarch_init): Ditto.
10342 * cris-tdep.c (cris_gdbarch_init): Ditto.
10343 * avr-tdep.c (avr_gdbarch_init): Ditto.
10344 * arm-tdep.c (arm_gdbarch_init): Ditto.
10345 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10346 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10347
35cac7cf
AC
103482003-03-01 Andrew Cagney <cagney@redhat.com>
10349
10350 * gdbarch.sh (register_type): New function with predicate.
10351 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10352 * gdbarch.h, gdbarch.c: Re-generate.
10353 * arch-utils.c (generic_register_byte): Use generic_register_size.
10354 (generic_register_size): When available, use
10355 gdbarch_register_type.
10356 * regcache.c (init_regcache_descr): When available, initialize the
10357 register type array using gdbarch_register_type. If the
10358 architecture supplies gdbarch_register_type, do not use the legacy
10359 regcache layout.
10360 * d10v-tdep.c (d10v_register_type): Replace
10361 d10v_register_virtual_type.
10362 (d10v_gdbarch_init): Set register_type instead of
10363 register_virtual_type.
10364
7b83296f
AC
103652003-03-01 Andrew Cagney <cagney@redhat.com>
10366
10367 * Makefile.in (ax-gdb.o): Update dependencies.
10368 * ax-gdb.c: Include "regcache.h".
10369 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10370 * findvar.c (value_of_register): Ditto.
10371 * infcmd.c (default_print_registers_info): Ditto.
10372
eadc1c87
MK
103732003-03-01 Mark Kettenis <kettenis@gnu.org>
10374
10375 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10376 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10377
14143612
MK
103782003-03-01 Mark Kettenis <kettenis@gnu.org>
10379
10380 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10381 of STREQ.
10382
a55cc764
DJ
103832003-02-28 Daniel Jacobowitz <drow@mvista.com>
10384
10385 * Makefile.in (dwarf2loc.o): Update dependencies.
10386 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10387 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10388 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10389 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10390 (locexpr_tracepoint_var_ref): New function.
10391 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10392
08a617da
AC
103932003-02-28 Andrew Cagney <cagney@redhat.com>
10394
10395 * regcache.c (register_size): New function.
10396 * regcache.h (register_size): Declare
10397 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10398 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10399
4224873a
DC
104002003-02-28 David Carlton <carlton@math.stanford.edu>
10401
10402 * linespec.c (decode_compound): Extract code into find_method.
10403 (find_method): New.
10404
ccdc5d7f
JB
104052003-02-28 J. Brobecker <brobecker@gnat.com>
10406
10407 * Makefile.in: Add rules to build and link in observer.o.
10408
974e8ced
JB
104092003-02-27 J. Brobecker <brobecker@gnat.com>
10410
10411 * observer.c: Minor comments edits.
10412
7a28f973
JB
104132003-02-27 J. Brobecker <brobecker@gnat.com>
10414
10415 * observer.h, observer.c: New file.
10416
27cddce2
AC
104172003-02-27 Andrew Cagney <cagney@redhat.com>
10418
10419 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10420
b94a41a1
SC
104212003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10422
10423 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10424 (M6812_OP_STS_EXT): Likewise.
10425 (m6811_prologue): Use the above to recognize prologue.
10426 (m6812_prologue): Likewise.
10427
c8be8951
DC
104282003-02-27 David Carlton <carlton@math.stanford.edu>
10429
10430 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10431 SYMBOL_PRINT_NAME.
10432 (compare_psymbols): Ditto.
10433 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10434
d05bb1fc
MS
104352003-02-27 Michael Snyder <msnyder@redhat.com>
10436
4e845cd3
MS
10437 * f-lang.c (build_fortran_types): New function.
10438 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
10439 * doublest.c (extract_floating): Fix warning text.
10440
f3824013
AC
104412003-02-27 Andrew Cagney <cagney@redhat.com>
10442
10443 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10444 predicate. Replaces PUSH_DUMMY_FRAME.
10445 * gdbarch.h, gdbarch.c: Regnerate.
10446 * valops.c (hand_function_call): Update. Call
10447 generic_push_dummy_frame directly.
10448 * vax-tdep.c (vax_gdbarch_init): Update.
10449 * sparc-tdep.c (sparc_gdbarch_init): Update.
10450 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10451 * m68k-tdep.c (m68k_gdbarch_init): Update.
10452 * hppa-tdep.c (hppa_gdbarch_init): Update.
10453 * alpha-tdep.c (alpha_gdbarch_init): Update.
10454 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10455 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10456 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10457 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10458 push_dummy_frame to generic_push_dummy_frame.
10459 * v850-tdep.c (v850_gdbarch_init): Ditto.
10460 * sh-tdep.c (sh_gdbarch_init): Ditto.
10461 * s390-tdep.c (s390_gdbarch_init): Ditto.
10462 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10463 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10464 * mips-tdep.c (mips_gdbarch_init): Ditto.
10465 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10467 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10468 * i386-tdep.c (i386_gdbarch_init): Ditto.
10469 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10470 * frv-tdep.c (frv_gdbarch_init): Ditto.
10471 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10472 * cris-tdep.c (cris_gdbarch_init): Ditto.
10473 * avr-tdep.c (avr_gdbarch_init): Ditto.
10474 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 10475
ad188201
KB
104762003-02-26 Kevin Buettner <kevinb@redhat.com>
10477
10478 * mips-tdep.c (show_mips_abi): New function.
10479 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10480 command ``show mips abi''.
10481
6b37567a 104822003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 10483
6b37567a 10484 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 10485 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
10486 more sline entries have been seen for the function.
10487
d3e0a5bf
MC
104882003-02-26 Michael Chastain <mec@shout.net>
10489
10490 * configure: Regenerate with autoconf 000227.
10491
18972eea
MC
104922003-02-26 Michael Chastain <mec@shout.net>
10493
10494 Close PR build/660.
10495 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10496 for old libc5/glibc.
10497 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10498
0bbde931
KW
104992003-02-26 Kris Warkentin <kewarken@qnx.com>
10500
10501 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10502 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10503
27ca5dad
MC
105042003-02-26 Michael Chastain <mec@shout.net>
10505
10506 * configure.in: New variable HAVE_UINTPTR_T.
10507 * configure, config.in: Regenerated.
10508
6f88d630
DJ
105092003-02-26 Daniel Jacobowitz <drow@mvista.com>
10510
10511 Fix PR build/1097.
10512 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10513
b14185ce
AC
105142003-02-25 Andrew Cagney <cagney@redhat.com>
10515
10516 * frame.c (get_prev_frame): Add comment on check for
10517 inside_entry_func. Only check for inside_entry_file when not a
10518 dummy and not a sentinel. Check that the new frame is not inner
10519 to the old frame.
10520
ac2bd0a9
AC
105212003-02-25 Andrew Cagney <cagney@redhat.com>
10522
10523 * frame.c (frame_debug): New variable.
10524 (_initialize_frame): Add "set/show debug frame" command.
10525 (get_prev_frame): When frame_debug, print reason why unwind
10526 failed.
10527
b18a0fd2
MC
105282003-02-25 Michael Chastain <mec@shout.net>
10529
10530 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10531 to avoid uintptr_t definition problems.
10532
22abf04a
DC
105332003-02-25 David Carlton <carlton@math.stanford.edu>
10534
10535 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10536 (SYMBOL_LINKAGE_NAME): Ditto.
10537 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10538 SYMBOL_LINKAGE_NAME.
10539 (struct general_symbol_info): Expand comment.
10540 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10541 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10542 (SYMBOL_MATCHES_REGEXP): Ditto.
10543 * symtab.c (symbol_natural_name): New function.
10544 * objfiles.h: Replace all uses of SYMBOL_NAME by
10545 DEPRECATED_SYMBOL_NAME.
10546 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10547 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10548 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10549 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10550 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10551 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10552 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10553 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10554 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10555 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10556 * ada-exp.y: Ditto.
10557 * ada-exp.y: Update copyright.
10558 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10559 * cp-valprint.c: Ditto.
10560
1a5848f6
JJ
105612003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10562
10563 * infptrace.c (detach): Do not flag error if ptrace detach fails
10564 and errno is set to ESRCH.
10565
7343d46a
AC
105662003-02-24 Andrew Cagney <cagney@redhat.com>
10567
10568 * infptrace.c (udot_info): Change type of udot_off to long. Use
10569 paddr when printing udot_off's value.
10570
49fa1dc2
DC
105712003-02-24 David Carlton <carlton@math.stanford.edu>
10572
10573 * symtab.c (make_symbol_overload_list): Only read in partial
10574 symtabs containing a matching partial symbol.
10575
0fe19209
DC
105762003-02-24 David Carlton <carlton@math.stanford.edu>
10577
10578 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10579 do the comparison, not strcmp.
10580 * symfile.c (compare_psymbols): Ditto.
10581 * defs.h: Declare strcmp_iw_ordered.
10582 * utils.c (strcmp_iw_ordered): New function.
10583
8e3ee7b5
JB
105842003-02-24 Jim Blandy <jimb@redhat.com>
10585
10586 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10587 support, shared libs): Remove my name from here, to better reflect
10588 reality.
10589
7df1a324
KW
105902003-02-24 Kris Warkentin <kewarken@qnx.com>
10591
10592 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10593 (target_ops): Add to_have_continuable_watchpoint.
10594 * target.c (update_current_target): Add INHERIT line for
10595 to_have_continuable_watchpoint.
10596 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10597 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10598 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10599 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10600
d1c76907
EZ
106012003-02-24 Elena Zannoni <ezannoni@redhat.com>
10602
10603 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10604 maintainership.
10605
2610b0bf
KW
106062003-02-24 Kris Warkentin <kewarken@qnx.com>
10607
f46169db
KW
10608 * solib.c (solib_open): Call target defined search function after
10609 failing with solib-search-path.
10610 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10611 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 10612
9a3c34fe
KW
106132003-02-24 Kris Warkentin <kewarken@qnx.com>
10614
f46169db 10615 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 10616
2417dd25
SC
106172003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10618
10619 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10620
b631436b
SC
106212003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10622
10623 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10624 (m68hc11_add_reggroups): New function.
10625 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10626 (m68hc11_gdbarch_init): Install the reggroups.
10627 (_initialize_m68hc11_tdep): Initialize them.
10628
0aa8c1e4
JW
106292003-02-21 James E Wilson <wilson@tuliptree.org>
10630
10631 * MAINTAINERS: Update my email address.
10632
50ceaba5
DC
106332003-02-21 David Carlton <carlton@math.stanford.edu>
10634
10635 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10636
4c2df51b
DJ
106372003-02-21 Daniel Jacobowitz <drow@mvista.com>
10638
10639 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10640 * symtab.h: Add opaque declarations of struct axs_value and
10641 struct agent_expr.
10642 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10643 (struct location_funcs): New type.
10644 (struct symbol): Add "loc" to aux_value.
10645 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10646 * dwarf2read.c: Include "dwarf2expr.h".
10647 (dwarf2_symbol_mark_computed): New function.
10648 (read_func_scope): Use it.
10649 (var_decode_location): New function.
10650 (new_symbol): Use it.
10651 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10652
10653 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10654 (dwarf2expr_h, dwarf2loc_h): New variables.
10655 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10656 (dwarf2expr.o, dwarf2loc.o): New rules.
10657 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10658 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10659 LOC_COMPUTED_ARG.
10660 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10661 * m2-exp.y (yylex): Likewise.
10662 * printcmd.c (address_info, print_frame_args): Likewise.
10663 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10664 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10665 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10666 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10667 * symtab.c (lookup_block_symbol): Likewise.
10668
5784d15e
AF
106692003-02-20 Adam Fedor <fedor@gnu.org>
10670
10671 * symtab.h: Remove objc_specific struct
10672 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10673 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10674 Have language_objc use cplus_specific struct.
10675
d4cad8db
TT
106762003-02-20 Tom Tromey <tromey@redhat.com>
10677
10678 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10679 TYPE_NAME, when printing a String value. PR java/1075.
10680
2f9a90b4
AF
106812003-02-20 Adam Fedor <fedor@gnu.org>
10682
d38074a8 10683 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 10684 * objc-lang.c (find_methods): Make static.
2f9a90b4 10685
6f17862b
CF
106862003-02-20 Christopher Faylor <cgf@redhat.com>
10687
10688 * win32-nat.c (get_image_name): Check return value from
10689 ReadProcessMemory.
10690 (child_xfer_memory): Ditto.
10691
715d1656
AO
106922003-02-20 Alexandre Oliva <aoliva@redhat.com>
10693
10694 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10695 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10696 '${exec_prefix}' (in addition to the expansion thereof) as
10697 relocatable.
10698 * configure: Rebuilt.
10699
b1262a02
DC
107002003-02-20 David Carlton <carlton@math.stanford.edu>
10701
10702 * symtab.c (search_symbols): Revert the search_symbols part of my
10703 2002-12-23 patch. Add comment.
10704
7134143f
DJ
107052002-02-20 Daniel Jacobowitz <drow@mvista.com>
10706
10707 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10708 * dbxread.c (elfstab_build_psymtabs): Don't call
10709 install_minimal_symbols.
10710 (stabsect_build_psymtabs): Likewise.
10711 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10712 earlier.
10713 * somread.c (som_symfile_read): Call install_minimal_symbols
10714 and do_cleanups earlier.
10715 * nlmread.c (nlm_symfile_read): Likewise.
10716 * mdebugread.c (elfmdebug_build_psymtabs): Call
10717 install_minimal_symbols and make appropriate cleanups.
10718
cf466558
KB
107192003-02-20 Kevin Buettner <kevinb@redhat.com>
10720
10721 * solib.c (reload_shared_libraries): New function.
10722 (_initialize_solib): Add callbacks for ``set solib-search-path''
10723 and ``set solib-absolute-prefix''.
10724
de5ad195
DC
107252003-02-20 David Carlton <carlton@math.stanford.edu>
10726
10727 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10728 expand comment.
10729 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10730 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10731 * ada-typeprint.c (ada_typedef_print): Ditto.
10732 * ax-gdb.c (gen_var_ref): Ditto.
10733 * breakpoint.c (print_one_breakpoint): Ditto.
10734 * buildsym.c (finish_block): Ditto.
10735 * c-valprint.c (c_val_print): Ditto.
10736 * expprint.c (print_subexp): Ditto.
10737 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
10738 * infcmd.c (jump_command): Ditto.
10739 * linespec.c (decode_line_2, decode_compound): Ditto.
10740 * maint.c (maintenance_translate_address): Ditto.
10741 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
10742 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10743 Ditto.
8ffd9b1b
AJ
10744 * p-valprint.c (pascal_val_print): Ditto.
10745 * stabsread.c (define_symbol): Ditto.
de5ad195 10746 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
10747 (print_frame_arg_vars, return_command): Ditto.
10748 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10749 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
10750 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10751 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
10752 (rbreak_command): Ditto.
10753 * tracepoint.c (tracepoints_info): Ditto.
10754 * typeprint.c (typedef_print): Ditto.
10755 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
10756 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10757 * ada-typeprint.c: Update Copyright.
10758 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10759 * tracepoint.c, cli/cli-cmds.c: Ditto.
10760
f796e4be
KB
107612003-02-20 Kevin Buettner <kevinb@redhat.com>
10762
10763 * frame.c (generic_unwind_get_saved_register): Make non-static.
10764 * frame.h (generic_unwind_get_saved_register): Declare.
10765 * mips-tdep.c (read_next_frame_reg): Fetch register from
10766 current regcache when frame is NULL.
10767 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10768 that must be NULL.
10769 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10770 instead of frame_register_unwind().
10771
836cc9f4
AC
107722003-02-20 Andrew Cagney <ac131313@redhat.com>
10773
10774 * remote-sim.c (gdbsim_insert_breakpoint)
10775 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10776 code.
10777
501eef12
AC
107782003-02-20 Andrew Cagney <ac131313@redhat.com>
10779
10780 * remote.c (_initialize_remote): Add commands "set/show remote
10781 hardware-watchpoint-limit" and "set/show remote
10782 hardware-breakpoint-limit".
10783 (remote_hw_watchpoint_limit): Initialize to -1.
10784 (remote_hw_breakpoint_limit): Ditto.
10785 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10786
1b6bc7e0
CF
107872003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10788
10789 * coff-pe-read.c: New file - support reading of minimal symbols from a
10790 portable executable using the export table.
10791 * coff-pe-read.h: New file.
10792 * coffread.c: Include coff-pe-read.h.
10793 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10794 debugging symbols found.
10795 * Makefile.in (SFILES): Add coff-pe-read.o.
10796 (coff_pe_read_h): Define.
10797 (COMMON_OBS): Add coff-pe-read.o.
10798 (coffread.o): Add coff_pe_read_h dependency.
10799 (coff-pe-read.o): New target.
10800
fe898f56
DC
108012003-02-19 David Carlton <carlton@math.stanford.edu>
10802
10803 * Makefile.in (SFILES): Add block.c.
10804 (block_h): New.
10805 (COMMON_OBS): Add block.o.
10806 (block.o): New.
10807 (x86-64-tdep.o): Add $(block_h).
10808 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10809 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10810 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10811 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10812 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10813 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10814 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10815 * value.h: Add opaque declaration for struct block.
10816 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10817 * ada-lang.h: Ditto.
10818 * x86-64-tdep.c: #include "block.h"
10819 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10820 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10821 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10822 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10823 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10824 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10825 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10826 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10827 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10828 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10829 * symtab.c (block_function): Ditto.
10830 (contained_in): Ditto.
10831 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10832 block.h. Add opaque declaration for struct block.
10833 * symtab.h: Move block_function and contained_in declarations to
10834 block.h. Add opaque declarations for struct block, struct
10835 blockvector.
10836 (struct block): Move to block.h.
10837 (struct blockvector): Ditto.
10838 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10839 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10840 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10841 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10842 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10843 Ditto.
10844 * block.c: New file.
10845 * block.h: New file.
10846
173345b5
TR
108472003-02-19 Theodore A. Roth <troth@openavr.org>
10848
10849 * avr-tdep.c (avr_extract_return_value): Remove function.
10850 (avr_store_return_value): Remove function.
10851 (avr_extract_struct_value_address): Remove function.
10852 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10853
338ef23d
AC
108542003-02-19 Andrew Cagney <ac131313@redhat.com>
10855
10856 * rs6000-tdep.c: Include "gdb_assert.h".
10857 (registers_e500): Add "acc" and "spefscr".
10858 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10859 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10860 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10861 really is "r0".
10862 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10863
5412f5f3
KS
108642003-02-18 Keith Seitz <keiths@redhat.com>
10865
10866 * Makefile.in: Add gdbtk-interps.c.
10867
881324eb
KB
108682003-02-18 Kevin Buettner <kevinb@redhat.com>
10869
10870 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10871 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10872
6a2f5abf
AC
108732003-02-18 Andrew Cagney <cagney@redhat.com>
10874
10875 * symtab.h (struct objfile): Add opaque declaration.
10876
54c7009d
EZ
108772003-02-18 Elena Zannoni <ezannoni@redhat.com>
10878
10879 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
10880 * dbxread.c (process_one_symbol): Use last_function_start rather
10881 than function_start_offset to find the real beginning of the
10882 current function. The latter is just the text section offset on
10883 some systems, the former is always the real function start.
54c7009d 10884
7ee6d7eb
AC
108852003-02-17 Andrew Cagney <cagney@redhat.com>
10886
10887 * configure.in: Revert ${target} != ${host}.
10888
2846da9b
AC
108892003-02-17 Andrew Cagney <ac131313@redhat.com>
10890
10891 * configure.in (Makefile): Use the test ${target} != ${host},
10892 instead of the absence of the "nm.h" file, to determine of the
10893 configuration non-native.
10894 * configure: Regenerate.
8ffd9b1b 10895
3b27aeea
EZ
108962003-02-14 Elena Zannoni <ezannoni@redhat.com>
10897
fbe586ae 10898 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
10899
10900 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10901 conditionalize tui_active test.
10902 (lookup_cmd_1): Ditto.
10903
b0b1c2c0
MK
109042003-02-14 Mark Kettenis <kettenis@gnu.org>
10905
10906 * configure.in: Add check for _etext.
10907 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10908 available.
10909 * config.in, configure: regenerated.
10910
8f05cde5
DJ
109112003-02-14 Daniel Jacobowitz <drow@mvista.com>
10912
10913 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10914
021e7609
AC
109152003-02-14 Andrew Cagney <ac131313@redhat.com>
10916
10917 * main.c (tui_version): Delete variable.
10918 (captured_main): When --tui, set interpreter_p to "tui" instead of
10919 enabling tui_version.
10920 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10921 tui_version.
10922 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10923 * cli/cli-cmds.c (disassemble_command): Ditto.
10924 * defs.h (tui_version): Delete declaration.
10925 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10926 (tui-interp.o): Add rules.
10927 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10928
e325dcec
CF
109292003-02-14 Christopher Faylor <cgf@redhat.com>
10930
36ffb041 10931 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
10932 just-loaded dll.
10933
c4f90d87
JM
109342003-02-12 Jason Molenda (jmolenda@apple.com)
10935
fbe586ae
RH
10936 * symmisc.c (print_objfile_statistics): Include information about
10937 the number of psymtabs and symtabs in each object file.
c4f90d87 10938
e46e5ccd
KS
109392003-02-13 Keith R Seitz <keiths@redhat.com>
10940
10941 * main.h (struct captured_main_args): Add interpreter_p.
10942 * main.c (captured_main): Initialize interpreter_p from context.
10943 * gdb.c (main): Set interpreter_p argument.
10944 * Makefile.in (gdb.o): Add dependency for interps.h.
10945
fe97fe9c
AC
109462003-02-12 Andrew Cagney <ac131313@redhat.com>
10947
10948 * event-top.c (cli_command_loop): Delete declaration.
10949 (_initialize_event_loop): Delete function setting event_loop_hook.
10950 * event-top.h (cli_command_loop): Declare. Update copyright.
10951 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10952 * interps.c (current_interp_command_loop): When event_loop_p, call
10953 cli_command_loop.
10954
1cdac4ef
AC
109552003-02-12 Andrew Cagney <ac131313@redhat.com>
10956
10957 * interps.h (interp_command_loop_ftype): Change return type to
10958 void.
10959
48037ead
ML
109602003-02-12 Michal Ludvig <mludvig@suse.cz>
10961
10962 * x86-64-tdep.c (x86_64_extract_return_value)
10963 (x86_64_store_return_value): Use regcache instead of regbuf.
10964 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10965 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10966
033afc63
AC
109672003-02-11 Andrew Cagney <ac131313@redhat.com>
10968
10969 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10970 * aclocal.m4: Regenerate.
10971 * configure: Regenerate.
10972
10973 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10974 TCL_LD_SEARCH_FLAGS.
10975
40d02bca
ML
109762003-02-10 Michal Ludvig <mludvig@suse.cz>
10977
10978 * dwarf2cfi.c: Reindented.
10979
11308a41
AC
109802003-02-09 Andrew Cagney <ac131313@redhat.com>
10981
10982 * interps.c (clear_interpreter_hooks): Convert function definition
10983 to ISO C.
10984
e1c1c0f6
DC
109852003-02-07 David Carlton <carlton@math.stanford.edu>
10986
10987 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10988
ab5d3da6
KB
109892003-02-07 Kevin Buettner <kevinb@redhat.com>
10990
10991 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10992 (struct type): ...to here.
10993 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10994 field.
10995 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10996 (replace_type): Set length on all type variants for a given type.
10997
b8a92b82
AC
109982003-02-07 Andrew Cagney <ac131313@redhat.com>
10999
11000 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11001 <sys/stat.h>.
11002 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 11003
5cb316ef
AC
110042003-02-06 Andrew Cagney <ac131313@redhat.com>
11005
2555fe1a
AC
11006 * Makefile.in (symm-nat.o): Update dependencies.
11007 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11008 (lynx-nat.o, ia64-linux-nat.): Ditto.
11009 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11010 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11011 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11012
44270758
AC
11013 * Makefile.in (inflow_h): Define.
11014 (procfs.o, inflow.o, procfs.o): Update dependencies.
11015 * inftarg.c (child_stop): Delete extern declaration of
11016 inferior_process_group. Include "inflow.h".
11017 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11018 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11019 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11020 (our_process_group, inferior_process_group): Extern declarations.
11021
df8f7274
AC
11022 * procfs.c: Include "gdb_assert.h".
11023
5cb316ef
AC
11024 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11025 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11026 * jv-typeprint.c (java_type_print_base): Ditto.
11027 * typeprint.c (typedef_print): Eliminate STREQ.
11028 * cli/cli-script.c (define_command, define_command): Ditto.
11029 * main.c (captured_main): Ditto.
11030 * values.c (lookup_internalvar): Ditto.
11031 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11032 within `if' conditional.
11033 * linespec.c (decode_line_2): Ditto.
11034 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11035 (bfd_openw_with_cleanup): Ditto.
11036
2a28ccea
MK
110372003-02-07 Mark Kettenis <kettenis@gnu.org>
11038
11039 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11040 legacy_extract_return_value and store_return_value to
11041 legacy_return_value.
11042
786b8124
CF
110432003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11044
11045 * win32-nat.c (get_relocated_section_addrs): New function. Find
11046 section load addresses for symbol handling in relocated DLLs.
11047 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11048
b871e4ec
FF
110492003-02-05 Fred Fish <fnf@intrinsity.com>
11050
11051 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11052 '=' and '!='.
11053 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11054 with '&' and '=='.
11055 (angel_RDI_info): Ditto.
11056 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11057 with '&' and '!='.
11058 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 11059
4389a95a 110602003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
11061 Keith Seitz <keiths@redhat.com>
11062 Elena Zannoni <ezannoni@redhat.com>
11063 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
11064
11065 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11066 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11067 (SUBDIR_MI_OBS): Add "mi-interp.o".
11068 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11069 (SFILES): Add "interps.c".
11070 (COMMON_OBS): Add "interps.o".
11071 (interps_h, mi_main_h): Define.
11072 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11073 (mi-main.o, main.o, event-top.o): Update dependencies.
11074 * cli/cli-interp.c: New file.
11075 * interps.h, interps.c: New files.
11076 * top.c: (gdb_init): Don't install the default interpreter, handed
11077 by captured_main.
11078 * main.c: Include "interps.h".
11079 (interpreter_p): Note that it should malloc'ed.
11080 (captured_command_loop): Call current_interp_command_loop.
11081 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11082 xfree and xstrdup when updating interpreter_p. Install the
11083 default interpreter. Add hack to stop mi1's copyright notice
11084 being encoded.
11085 * event-top.h (gdb_setup_readline): Declare.
11086 (gdb_disable_readline): Declare.
11087 * event-top.c: Include "interps.h".
11088 (display_gdb_prompt): Call current_interp_display_prompt_p.
11089 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11090 gdb_stdlog, and gdb_stdtarg.
11091 (_initialize_event_loop): Don't call gdb_setup_readline.
11092 * cli-out.c (cli_out_set_stream): New function.
11093 * cli-out.h (cli_out_set_stream): Declare.
11094
ff3b5810
MK
110952003-02-06 Mark Kettenis <kettenis@gnu.org>
11096
11097 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11098 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11099 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11100 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11101 config/i386/i386v42mp.mt: Removed.
11102
5b729aa5
MK
111032003-02-05 Mark Kettenis <kettenis@gnu.org>
11104
11105 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11106 GDB_OSABI_SOLARIS.
11107
8cc15142
MC
111082003-02-05 Michael Chastain <mec@shout.net>
11109
11110 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11111 2.12.1 and earlier versions.
11112
5aa5d4b9
AC
111132003-02-05 Andrew Cagney <ac131313@redhat.com>
11114
11115 Remove orphaned hosts, targets and files.
11116 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11117 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11118 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11119 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11120 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11121 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11122 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11123 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11124 * config/sparc/tm-sp64sim.h: Delete.
11125 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11126 hosts.
11127 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11128 mips*-dec-mach3* targets.
11129
b68767c1
MC
111302003-02-04 Michael Chastain <mec@shout.net>
11131
11132 * NEWS: Fix typo: sepcifying -> specifying.
11133
5ae7ca1d
MC
111342003-02-04 Michael Chastain <mec@shout.net>
11135
11136 * dwarfread.c: Add documentation on the state of dwarf-1,
11137 looking towards obsoletion.
11138
d08a4280
MC
111392003-02-03 Michael Chastain <mec@shout.net>
11140
11141 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11142 gdb/testsuite/gdb.c++/pr-1023.exp.
11143
e9be73e4
AC
111442003-02-04 Andrew Cagney <ac131313@redhat.com>
11145
11146 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11147 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11148
11149 * utils.c (init_page_info): Delete reference to MPW in comments.
11150 * main.c (captured_main): Delete #ifdef MPW.
11151
05d57f6f
AC
111522003-02-04 Andrew Cagney <ac131313@redhat.com>
11153
8ffd9b1b 11154 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
11155 * monitor.c (monitor_expect): Obsolete reference to m32r.
11156 * configure.tgt: Mark m32r-*-elf* as obsolete.
11157 * MAINTAINERS: Mark m32k as obsolete.
11158 * m32r-rom.c: Obsolete file.
11159 * config/m32r/m32r.mt: Obsolete file.
11160 * config/m32r/tm-m32r.h: Obsolete file.
11161 * m32r-stub.c: Obsolete file.
11162 * m32r-tdep.c: Obsolete file.
11163
8b0e5691
AC
111642003-02-04 Andrew Cagney <ac131313@redhat.com>
11165
11166 * NEWS: Mention that the z8k-zilog-none is obsolete.
11167 * MAINTAINERS: Mark z8k as obsolete.
11168 * configure.tgt: Obsolete the z8k-*-coff* target.
11169 * config/z8k/z8k.mt: Obsolete file.
11170 * config/z8k/tm-z8k.h: Obsolete file.
11171 * z8k-tdep.c: Obsolete file.
11172
67f16606
AC
111732003-02-04 Andrew Cagney <ac131313@redhat.com>
11174
11175 * NEWS: Mention that the mn10200-elf is obsolete.
11176 * configure.tgt: Obsolete mn10200-*-* target.
11177 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11178 mention that the mn10200 is obsolete.
11179 * breakpoint.h: Ditto.
11180 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11181 * config/mn10200/mn10200.mt: Obsolete file.
11182 * config/mn10200/tm-mn10200.h: Obsolete file.
11183 * mn10200-tdep.c: Obsolete file.
11184
fd2299bd
AC
111852003-02-04 Andrew Cagney <ac131313@redhat.com>
11186
11187 * MAINTAINERS: Mark h8500 as obsolete.
11188 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11189 * findvar.c (value_from_register): Ditto.
11190 * h8500-tdep.c: Mark file as obsolete.
11191 * config/h8500/h8500.mt: Ditto.
11192 * config/h8500/tm-h8500.h: Ditto.
11193 * NEWS: Mention that h8500 is obsolete.
11194
eb9a305d
DC
111952003-02-04 David Carlton <carlton@math.stanford.edu>
11196
11197 * objfiles.c (allocate_objfile): Always set name. Add comment at
11198 start of function.
11199 * jv-lang.c (get_dynamics_objfile): Add comment.
11200
406fc7fb
DC
112012003-02-04 David Carlton <carlton@math.stanford.edu>
11202
11203 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11204 * printcmd.c (build_address_symbolic): Replace uses of
11205 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11206 SYMBOL_NAME, and asm_demangle.
11207 Update copyright.
11208
93d91629
DC
112092003-02-04 David Carlton <carlton@math.stanford.edu>
11210
11211 * linespec.c (decode_compound): Extract code into
11212 lookup_prefix_sym.
11213 (lookup_prefix_sym): New function.
11214
1c5cb38e
DC
112152003-02-04 David Carlton <carlton@math.stanford.edu>
11216
11217 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11218 FLOAT_COERCION_BADNESS.
11219 * gdbtypes.c (rank_one_type): Replace all uses of
11220 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11221
0cf824c9
JB
112222003-02-04 Jim Blandy <jimb@redhat.com>
11223
11224 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11225 section, let dwarf_macinfo_section point to it, not
11226 dwarf_loc_section.
11227
a2d356b0
DJ
112282003-02-04 Daniel Jacobowitz <drow@mvista.com>
11229
11230 Pointed out by Anton Blanchard <anton@samba.org>.
11231 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11232 (ppc_linux_at_sigtramp_return_path): Use it.
11233
2de7ced7
DJ
112342003-02-04 Daniel Jacobowitz <drow@mvista.com>
11235
11236 * defs.h (streq): Add prototype.
11237 * utils.c (streq): New function.
11238
11239 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11240 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11241 * mdebugread.c (new_symbol): Likewise.
11242 * stabsread.c (define_symbol): Likewise.
11243 * coffread.c (process_coff_symbol): Likewise.
11244 * dwarfread.c (new_symbol): Likewise.
11245
11246 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11247 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11248 here.
11249 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11250 SYMBOL_INIT_DEMANGLED_NAME.
11251 * objfiles.c: Include "hashtab.h".
11252 (allocate_objfile): Call htab_set_functions_ex for the
11253 demangled_names_hash.
11254 (free_objfile): Call htab_delete for the demangled_names_hash.
11255 * objfiles.h (struct htab): Add declaration.
11256 (struct objfile): Add demangled_names_hash.
11257 * symfile.c: Include "hashtab.h".
11258 (reread_symbols): Call htab_delete for the demangled_names_hash.
11259 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11260 SYMBOL_NAME in the bcache.
11261 * symtab.c: Include "hashtab.h". Update comments.
11262 (create_demangled_names_hash, symbol_set_names): New functions.
11263 (symbol_find_demangled_name): New function, broken out from
11264 symbol_init_demangled_names.
11265 (symbol_init_demangled_names): Use it.
11266 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11267 (SYMBOL_SET_NAMES): New macro.
11268 (symbol_set_names): Add prototype.
11269
15831452
JB
112702003-02-03 Jim Blandy <jimb@redhat.com>
11271
11272 Use a single, consistent representation for an empty minimal
11273 symbol table in an objfile.
11274 * objfiles.c (terminate_minimal_symbol_table): New function.
11275 (allocate_objfile): Call it.
11276 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11277 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 11278 non-NULL.
15831452
JB
11279 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11280 objfile has minimal symbols, compare minimal_symbol_count to zero,
11281 instead of comparing msymbols with NULL.
11282 * objfiles.c (have_minimal_symbols): Same.
11283 * solib-sunos.c (solib_add_common_symbols): Call
11284 terminate_minimal_symbol_table.
11285 * symfile.c (reread_symbols): Same.
8ffd9b1b 11286
ffc65945
KB
112872003-02-03 Kevin Buettner <kevinb@redhat.com>
11288
11289 * s390-tdep.c (s390_address_class_type_flags)
11290 (s390_address_class_type_flags_to_name)
11291 (s390_address_class_name_to_type_flags): New functions.
11292 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11293 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11294
f211c6d4
MS
112952003-02-03 Michael Snyder <msnyder@redhat.com>
11296
11297 * arm-tdep.c: Fix spell-o in comment.
11298
659b0389
ML
112992003-02-03 Michal Ludvig <mludvig@suse.cz>
11300
11301 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11302 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 11303 error messages to contain BFD filename.
659b0389 11304
3b31d625
EZ
113052003-02-02 Elena Zannoni <ezannoni@redhat.com>
11306
997b089a 11307 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
11308 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11309 (do_mixed_source_and_assembly): Use
11310 make_cleanup_ui_out_tuple_begin_end and
11311 make_cleanup_ui_out_tuple_begin_end.
11312 (do_mixed_source_and_assembly): Ditto.
11313 * thread.c (do_captured_list_thread_ids): Ditto.
11314 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11315 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11316 ui_out_tuple_end): Delete prototypes.
11317 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11318 ui_out_list_end, ui_out_tuple_end): Delete.
11319
11320 From Kevin Buettner <kevinb@redhat.com>:
11321 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
11322 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11323 (do_cleanup_table_end): New functions.
11324 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11325 Use cleanups to invoke_ui_out_tuple_end().
11326 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
11327 * cli/cli-setshow.c (cmd_show_list): Use
11328 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 11329
5b181d62
AC
113302003-02-02 Andrew Cagney <ac131313@redhat.com>
11331
11332 * frame.c (frame_unwind_register): New function.
11333 (frame_unwind_unsigned_register): Use.
11334 (frame_unwind_signed_register): Use.
11335 (frame_read_register): New function.
11336 * frame.h (frame_unwind_register): Declare.
11337 (frame_read_register): Declare.
11338
11339 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11340 and frame_unwind_register instead of read_memory, write_register
11341 and deprecated_write_register_bytes.
11342
5f601589
AC
113432003-02-02 Andrew Cagney <ac131313@redhat.com>
11344
11345 * frame.h: Note that namelen can be negative.
11346 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11347 NAME's length.
11348
11349 * NEWS: Mention that the d10v's `regs' command is deprecated.
11350 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11351 (d10v_print_registers_info): New function.
11352 (show_regs): Call d10v_print_registers_info.
11353 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11354
6a3fe0a4
MK
113552003-02-02 Mark Kettenis <kettenis@gnu.org>
11356
11357 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11358 lost in the previous patch.
11359
075559bc
AC
113602003-02-01 Andrew Cagney <ac131313@redhat.com>
11361
11362 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
11363 * stack.c (print_frame_info_base): Output complete FRAME tuple
11364 for synthesized frames.
075559bc 11365
6789195b
AC
113662003-02-02 Andrew Cagney <ac131313@redhat.com>
11367
11368 * mips-nat.c (zerobuf): Delete.
11369 (fetch_inferior_registers): Alloc local zerobuf.
11370 (fetch_core_registers): Alloc local zerobuf.
11371 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11372 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11373 * thread-db.c (thread_db_store_registers): Ditto.
11374 * sh-tdep.c (sh_do_register): Ditto.
11375 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11376 * remote-sim.c (gdbsim_store_register): Ditto.
11377 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11378 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11379 * monitor.c (monitor_supply_register): Ditto.
11380 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11381 * mips-nat.c (fetch_inferior_registers): Ditto.
11382 * m68klinux-nat.c (fetch_register): Ditto.
11383 * lynx-nat.c (fetch_inferior_registers): Ditto.
11384 (fetch_inferior_registers): Ditto.
11385 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11386 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11387 (hpux_thread_store_registers): Ditto.
11388 * hppah-nat.c (fetch_register): Ditto.
11389 * hppab-nat.c (fetch_register): Ditto.
11390 * hppa-tdep.c (pa_register_look_aside): Ditto.
11391 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11392 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11393
e669114a
AC
113942003-02-01 Andrew Cagney <ac131313@redhat.com>
11395
11396 * gdbarch.sh: Explictly specify all method levels. When a
11397 variable with an empty level, provide a non-multi-arch default.
11398 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11399 * gdbarch.h: Re-generate.
11400 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11401 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11402
9a043c1d
AC
114032003-02-01 Andrew Cagney <ac131313@redhat.com>
11404
11405 * defs.h (host_pointer_to_address): Delete declaration.
11406 (address_to_host_pointer): Delete declaration.
11407 * utils.c (host_pointer_to_address): Delete function.
11408 (address_to_host_pointer): Delete function.
11409 * procfs.c (procfs_address_to_host_pointer): New function.
11410 * procfs.c (proc_set_watchpoint): Use.
11411 (procfs_can_use_hw_breakpoint): Update comments.
11412 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11413 (som_solib_add): Use.
11414 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11415 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 11416
7ca9f392
AC
114172003-02-01 Andrew Cagney <ac131313@redhat.com>
11418
94bbfd30
AC
11419 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11420 strlen d_name.
11421
7ca9f392
AC
11422 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11423 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11424 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11425 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11426 (define_symbol): Update.
11427 * symfile.c (generic_load): Remove references to nindy.
11428 * symtab.c: Remove references to nindy.
11429
31a85ea2
AC
114302003-02-01 Andrew Cagney <ac131313@redhat.com>
11431
11432 * infcmd.c (print_float_info): Delete code conditional on
11433 FLOAT_INFO.
11434 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11435 * config/m68k/nm-apollo68b.h: Ditto.
11436 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11437 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11438 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11439
f6e85fc8
MK
114402003-02-01 Mark Kettenis <kettenis@gnu.org>
11441
6015b6a0
MK
11442 * config/i386/tm-i386os9k.h: Removed.
11443
f7a30bdf
MK
11444 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11445 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11446 they're identical to i[3456]86-*-sysv* now.
11447 * config/i386/i386v32.mh: Removed.
11448 * config/i386/xm-i386v32.h: Removed.
11449 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11450
28d52111
MK
11451 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11452
4d3f6bce
MK
11453 * config/i386/i386dgux.mh: Removed.
11454 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11455
f6e85fc8
MK
11456 * configure.in: Fix typo.
11457 * configure: Regenerated.
11458
53955967
DC
114592003-01-31 David Carlton <carlton@math.stanford.edu>
11460
11461 * dwarf2read.c (dwarf2_locate_sections): Set
11462 dwarf_ranges_section.
11463
b1364885
AC
114642003-01-31 Andrew Cagney <ac131313@redhat.com>
11465
8dbb1c65
AC
11466 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11467 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 11468
8731e58e
AC
11469 * utils.c: Re-indent.
11470
b1364885
AC
11471 * config/djgpp/fnchange.lst: Delete nindy files.
11472 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11473 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11474 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11475 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11476 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11477 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11478 * Makefile.in (init.c): Remove nindy references.
11479 (saber_gdb): Delete rule.
11480 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11481 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11482 and a68v-nat.c.
11483 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11484 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11485 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11486 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11487 nindy-share/stop.h.
11488 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11489 * saber.suppress: Delete file.
11490
086df311
DJ
114912003-01-31 Daniel Jacobowitz <drow@mvista.com>
11492
11493 * dbxread.c (stabs_data): New static variable.
11494 (fill_symbuf): Support an in-memory buffer for stabs data.
11495 (stabs_seek): New function.
11496 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11497 (read_ofile_symtab): Use stabs_seek.
11498 (elfstab_build_psymtabs): Take an asection* instead of
11499 an offset and size. Relocate the stabs data if necessary.
11500 Save the section* for dbx_psymtab_to_symtab.
11501 * dwarf2read.c: Add section variables for each debug section.
11502 (dwarf2_locate_sections): Fill them in.
11503 (dwarf2_read_section): Take an asection* argument.
11504 Relocate the section contents if necessary.
11505 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11506 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11507 it to dwarf2_read_section.
11508 (dwarf2_build_frame_info): Update callers.
11509 * elfread.c (elf_symfile_read): Update call to
11510 elfstab_build_psymtabs.
11511 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11512 (DBX_STAB_SECTION): New macro.
8ffd9b1b 11513 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
11514 * symfile.c (symfile_dummy_outputs): New function.
11515 (symfile_relocate_debug_section): New function.
11516 * symfile.h (symfile_relocate_debug_section): Add prototype.
11517
87d1b352
RH
115182003-01-31 Richard Henderson <rth@redhat.com>
11519
11520 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11521 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11522 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11523 * alpha-tdep.c (alpha_register_name): Add "unique".
11524 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11525 (ALPHA_UNIQUE_REGNUM): New.
11526 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11527
c48861fb
AC
115282003-01-31 Andrew Cagney <ac131313@redhat.com>
11529
11530 * README: Remove reference to Ericsson 1800 monitor.
11531 * Makefile.in (remote-es.o): Delete rule.
11532 (ALLDEPFILES): Delete remote-es.c.
11533 * remote-es.c: Delete file.
11534 * config/m68k/es1800.mt: Delete file.
11535 * config/djgpp/fnchange.lst: Update.
11536 * configure.tgt: Delete m68*-ericsson-* target.
11537
d764a824
AF
115382003-01-31 Adam Fedor <fedor@gnu.org>
11539
11540 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11541 Remove duplicate/shadowing variable of same name.
11542
fe36c4f4
JB
115432003-01-30 Jim Blandy <jimb@redhat.com>
11544
11545 * symfile.c (find_separate_debug_file): Assert that the objfile's
11546 directory name we compute ends with a slash, and then assume that
11547 that's so everywhere we use it.
11548
cb741690
DJ
115492003-01-30 Daniel Jacobowitz <drow@mvista.com>
11550
11551 * valops.c (value_assign): Flush frame cache after stores to memory
11552 also.
11553
96ee5227
AC
115542003-01-30 Andrew Cagney <ac131313@redhat.com>
11555
11556 * Makefile.in (mon960-rom.o): Delete rule.
11557 * mon960-rom.c: Delete file.
11558
7f6104a9
AC
115592003-01-30 Andrew Cagney <ac131313@redhat.com>
11560
11561 * d10v-tdep.c: Include "frame-unwind.h".
11562 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11563 list.
11564 (next_addr, uses_frame): Delete.
11565 (struct d10v_unwind_cache): Define.
11566 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11567 Use info instead of next_addr and uses_frame globals.
11568 (d10v_frame_init_saved_regs): Delete function.
11569 (d10v_init_extra_frame_info): Delete function.
11570 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11571 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11572 init_frame_pc or frame_saved_pc.
11573 (d10v_pop_frame): Delete function.
11574 (do_d10v_pop_frame): Delete function.
11575 (d10v_frame_chain): Delete function.
11576 (d10v_frame_chain_valid): Delete function.
11577 (d10v_frame_pc_unwind): New function.
11578 (d10v_frame_id_unwind): New function.
11579 (saved_regs_unwinder): New function.
11580 (d10v_frame_register_unwind): New function.
11581 (d10v_frame_pop): New function.
11582 (d10v_frame_unwind): New variable.
11583 (d10v_frame_p): New function.
11584 (d10v_frame_saved_pc): Delete function.
11585 * Makefile.in (d10v-tdep.o): Update dependencies.
11586
cad2e848
JB
115872003-01-30 J. Brobecker <brobecker@gnat.com>
11588
11589 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11590 causing some regressions due to a change in the default value
11591 for this macro.
11592
af34e669
DJ
115932003-01-29 Richard Henderson <rth@redhat.com>
11594 Elena Zannoni <ezannoni@redhat.com>
11595 Daniel Jacobowitz <drow@mvista.com>
11596
11597 Fix PR gdb/961.
8ffd9b1b 11598 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
11599 variables.
11600 (RANGES_SECTION): New.
11601 (dwarf_ranges_buffer): New variable.
11602 (struct comp_unit_head): Add member "die".
11603 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11604 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11605 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11606 (dwarf2_locate_sections): Likewise.
11607 (dwarf2_build_psymtabs): Read .debug_ranges.
11608 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11609 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11610 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11611 Look for DW_AT_ranges and return the bounding box.
11612
baa93fa6
CF
116132003-01-29 Brian Ford <ford@vss.fsi.com>
11614
11615 * win32-nat.c (cygwin_pid): Removed as unused.
11616 (child_attach): Try fall back to Cygwin pid.
11617
c63f977f
JB
116182003-01-29 Jim Blandy <jimb@redhat.com>
11619
11620 * objfiles.h (struct objfile): Doc fix.
11621
d62d1979
AC
116222003-01-29 Andrew Cagney <ac131313@redhat.com>
11623
11624 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11625 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11626 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11627 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11628 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11629 (FRAME_SAVED_PC): Change to a function with predicate.
11630 * gdbarch.h, gdbarch.c: Re-generate.
11631
1ae18a04
AC
116322003-01-28 Andrew Cagney <ac131313@redhat.com>
11633
52287340
AC
11634 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11635
1ae18a04
AC
11636 * complaints.c (complain): Delete function.
11637 * complaints.h (struct deprecated_complaint): Delete definition.
11638 (complain): Delete declaration.
11639
f2c16bd6
KB
116402003-01-28 Kevin Buettner <kevinb@redhat.com>
11641
11642 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11643 dummy frames.
11644
a94dd1fd
AC
116452003-01-27 Andrew Cagney <ac131313@redhat.com>
11646
11647 * sentinel-frame.h, sentinel-frame.c: New files.
11648 * Makefile.in (frame.o): Update dependencies.
11649 (SFILES): Add sentinel-frame.c.
11650 (sentinel_frame_h): Define.
11651 (COMMON_OBS): Add sentinel-frame.o.
11652 (sentinel-frame.o): Specify dependencies.
11653 * frame.c: Include "sentinel-frame.h".
11654 (frame_register_unwind): Rewrite assuming that there is always a a
11655 ->next frame.
11656 (frame_register, generic_unwind_get_saved_register): Ditto.
11657 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11658 (create_sentinel_frame, unwind_to_current_frame): New functions.
11659 (get_current_frame): Rewrite using create_sentinel_frame and
11660 unwind_to_current_frame. When possible, always create a frame.
11661 (create_new_frame): Set next to the sentinel frame.
11662 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11663 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11664 ID cache when necessary.
11665 (frame_saved_regs_id_unwind): Use frame_relative_level.
11666 (deprecated_generic_get_saved_register): Use frame_relative_level,
11667 get_frame_saved_regs, get_frame_pc, get_frame_base and
11668 get_next_frame.
11669 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11670 frame_register.
11671
5378adc4
DJ
116722003-01-27 Daniel Jacobowitz <drow@mvista.com>
11673
11674 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11675
51ee2ddc
DJ
116762003-01-27 Daniel Jacobowitz <drow@mvista.com>
11677
11678 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11679 (maintenance_set_profile_cmd): Use error () instead of warning ().
11680
d9feb4e7
DJ
116812003-01-27 Daniel Jacobowitz <drow@mvista.com>
11682
11683 * configure.in: Check that -pg works if using --enable-profiling.
11684 Check for monstartup and _mcleanup regardless of --enable-profiling.
11685 * maint.c: Check for monstartup and _mcleanup before using them.
11686 * config.in: Regenerated.
11687 * configure: Regenerated.
11688
2d188dd3
NC
116892003-01-24 Nick Clifton <nickc@redhat.com>
11690
11691 * Add sh2e support:
11692
11693 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11694
11695 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11696 (sh2e_show_regs): New.
11697 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11698 * config/sh/tm-sh.h: Added sh2e to comments.
11699
cb3c37b2
JB
117002003-01-23 Jim Blandy <jimb@redhat.com>
11701
11702 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11703 symbols found)" message here; we haven't checked for a separate
11704 debug info file yet, so we don't know yet.
11705 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11706 we've looked everywhere. Also, there's no need to print a special
11707 message when we're loading the separate debug info file: the one
11708 symbol_file_add prints is fine.
11709
5b5d99cf
JB
117102003-01-23 Alexander Larsson <alexl@redhat.com>
11711 Jim Blandy <jimb@redhat.com>
11712
11713 Add support for executables whose debug info has been separated
11714 out into a separate file, leaving only a link behind.
11715 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11716 and separate_debug_objfile_backlink.
11717 (put_objfile_before): New declaration.
11718 * symfile.c: #include "filenames.h".
11719 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11720 debug info in a separate file, read that, too. Save the addrs
11721 argument, so we can use it again to read the separated debug info;
11722 syms_from_objfile modifies the table we pass it.
11723 (reread_symbols): After re-reading an objfile, call
11724 reread_separate_symbols to refresh its separate debug info
11725 objfile, if it has one.
11726 (reread_separate_symbols, find_separate_debug_file,
11727 get_debug_link_info, separate_debug_file_exists): New functions.
11728 (debug_file_directory): New global var.
11729 (_initialize_symfile): Initialize debug_file_directory, and
11730 provide the new `set debug-file-directory' command to let the user
11731 change it.
11732 * objfiles.c (free_objfile): If this objfile has its debug info in
11733 a separate objfile, free that one too. If this is itself a
11734 separate debug info objfile, clear our parent's backlink.
11735 (put_objfile_before): New function.
11736 * utils.c (gnu_debuglink_crc32): New function.
11737 * defs.h (gnu_debuglink_crc32): New declaration.
11738 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11739 * configure.in: Handle --with-separate-debug-dir config option.
11740 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11741 * acconfig.h (DEBUGDIR): New macro.
11742 * configure, aclocal.m4, config.in: Regenerated.
11743
7e8580c1
JB
117442003-01-22 Jim Blandy <jimb@redhat.com>
11745
7904e09f
JB
11746 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11747 like the old symbol_file_add, but taking new arguments: you can
11748 now pass in either a `struct section_addr_info' list to say where
11749 each section is loaded, or a `struct section_offsets' table. Pass
11750 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 11751 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
11752 with the appropriate quiescent values for the new arguments.
11753
7e8580c1
JB
11754 * symfile.c: #include "gdb_assert.h".
11755 (syms_from_objfile): Add the ability to pass in a section offset
11756 table directly, as an alternative to the section_addr_info table.
11757 Document arguments better.
11758 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11759 * symfile.h (syms_from_objfile): Update declaration.
11760 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11761 syms_from_objfile.
11762 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11763
d28f9cdf
DJ
117642003-01-22 Daniel Jacobowitz <drow@mvista.com>
11765
11766 Original patch by Tom Tromey <tromey@cygnus.com> and
11767 Jason Molenda <jmolenda@apple.com>.
11768 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11769 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11770 * NEWS: Mention profiling.
11771 * configure.in (--enable-gdbtk): Fix typo.
11772 (--enable-profiling): New. Set PROFILE_CFLAGS.
11773 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11774 Fill in function.
11775 (profiling_state): New variable.
11776 (mcleanup_wrapper): New function.
11777 (_initialize_maint): Remove NOTYET, fix call to
11778 add_setshow_boolean_cmd for "maint set profile".
11779 * configure: Regenerated.
11780
df21e465
MH
117812003-01-21 Martin M. Hunt <hunt@redhat.com>
11782
11783 * Makefile.in (install-gdbtk): Install PNG images too.
11784
73c1f219
AC
117852003-01-21 Andrew Cagney <ac131313@redhat.com>
11786
11787 * exec.c (text_start): Delete global variable.
11788 (exec_file_attach): Make text_start local to the function.
11789 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11790 * valops.c (hand_function_call): Delete code that handles
11791 BEFORE_TEXT_END and AFTER_TEXT_END.
11792 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11793 of CALL_DUMMY_LOCATION.
11794 * gdbarch.c: Regenerate.
11795 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11796 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11797 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11798 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11799 (text_end): Delete extern declaration.
11800
eb4f72c5
AC
118012003-01-21 Andrew Cagney <ac131313@redhat.com>
11802
11803 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11804 * blockframe.c (backtrace_below_main): Move to "frame.c".
11805 (frame_chain_valid): Delete check for backtrace_below_main.
11806 (_initialize_blockframe): Delete initialization, move ``set
11807 backtrace-below-main'' command to "frame.c".
11808 (do_flush_frames_sfunc): Delete function.
11809 * frame.c: Include "command.h" and "gdbcmd.h".
11810 (frame_type_from_pc): New function.
11811 (create_new_frame): Use frame_type_from_pc.
11812 (legacy_get_prev_frame): New function.
11813 (get_prev_frame): Rewrite. When an old style frame, call
11814 legacy_get_prev_frame. Otherwize, unwind the PC first.
11815 (_initialize_frame): Add ``set backtrace-below-main'' command.
11816 * Makefile.in (frame.o): Update dependencies.
11817
778ce8cc
AC
118182003-01-19 Andrew Cagney <ac131313@redhat.com>
11819
11820 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11821 DEPRECATED_REGISTERS_INFO.
11822
01c193c8
AC
118232003-01-19 Andrew Cagney <ac131313@redhat.com>
11824
11825 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11826 Maintainers'. Update `Various Maintainers'.
11827
dedc2a2b
AC
118282003-01-19 Andrew Cagney <ac131313@redhat.com>
11829
11830 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11831 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11832 Suppress actual parameters when `-'.
11833 * gdbarch.h, gdbarch.c: Regenerate.
11834
b7261c70
AC
118352003-01-19 Andrew Cagney <ac131313@redhat.com>
11836
11837 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11838 code handling dummy frames.
11839
dbe9fe58
AC
118402003-01-19 Andrew Cagney <ac131313@redhat.com>
11841
11842 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11843 (struct frame_unwind): Add field pop.
11844 * frame.h (frame_pop): Declare.
11845 * frame.c (frame_saved_regs_pop): New function.
11846 (trad_frame_unwinder): Add frame_saved_regs_pop.
11847 (frame_pop): New function.
11848 * dummy-frame.c (dummy_frame_pop): New function.
11849 (discard_innermost_dummy): New function.
11850 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11851 (dummy_frame_unwind): Add dummy_frame_pop.
11852 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11853 * valops.c (hand_function_call): Ditto.
11854 * stack.c (return_command): Ditto.
11855
570b8f7c
AC
118562003-01-18 Andrew Cagney <ac131313@redhat.com>
11857
11858 * cris-tdep.c: Fix function declaration indentation.
11859 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11860 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11861 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11862 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11863 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11864 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11865
118662003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
11867
11868 * README (Unpacking and Installation -- quick overview):
11869 Warn against ".../gdb-5.3/gdb/configure".
11870
494cca16
AC
118712003-01-18 Andrew Cagney <ac131313@redhat.com>
11872
11873 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11874 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11875 (struct frame_unwind): Declare opaque.
11876 (dummy_frame_p): Declare function.
11877 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11878 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11879 * dummy-frame.c: Include "frame-unwind.h".
11880 (dummy_frame_p): New function.
11881 (dummy_frame_unwind): New variable.
11882 * frame.c: Include "frame-unwind.h".
11883 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11884 to use the new unwind field.
11885 (set_unwind_by_pc): Delete function.
11886 (create_new_frame, get_prev_frame): Set unwind field using
11887 frame_unwind_find_by_pc.
11888 (trad_frame_unwind, trad_frame_unwinder): New variables.
11889 * frame.h (trad_frame_unwind): Declare variable.
11890 (frame_id_unwind_ftype): Delete declaration.
11891 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11892 (struct frame_unwind): Declare opaque.
11893 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11894 register_unwind with a single unwind pointer.
11895 * frame-unwind.h, frame-unwind.c: New files.
11896 * Makefile.in (SFILES): Add frame-unwind.c.
11897 (frame_unwind_h): Define.
11898 (COMMON_OBS): Add frame-unwind.o.
11899 (frame-unwind.o): Specify dependencies.
11900 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 11901
4efb68b1
AC
119022003-01-18 Andrew Cagney <ac131313@redhat.com>
11903
11904 * ada-valprint.c: Eliminate PTR.
11905 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11906 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11907 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11908 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11909 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11910 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11911 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 11912
a84d24ee
AC
119132003-01-17 Andrew Cagney <ac131313@redhat.com>
11914
762f08a3
AC
11915 * main.c (captured_main): Don't use PTR.
11916 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11917 * gdbtypes.c (lookup_primitive_typename): Ditto.
11918 (lookup_struct_elt_type): Ditto.
11919 * f-valprint.c (info_common_command): Ditto.
11920 (list_all_visible_commons): Ditto.
11921 * jv-typeprint.c (java_type_print_base): Ditto.
11922
a84d24ee
AC
11923 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11924 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11925 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11926 i386-interix-nat.c and i386-interix-tdep.c. Rename
11927 m68klinux-nat.c and m68klinux-tdep.c. Rename
11928 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11929 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11930 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11931 * main.c (captured_main): Use xfree, not free.
11932
c170fb60
AC
119332003-01-16 Andrew Cagney <ac131313@redhat.com>
11934
11935 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11936 ID back using a parameter.
11937 * frame.c (frame_id_unwind): Update call.
11938 (frame_saved_regs_id_unwind): Update.
11939 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11940 * dummy-frame.h (struct frame_id): Add opaque declaration.
11941 (dummy_frame_id_unwind): Update declaration.
11942
867f3898
AC
119432003-01-15 Andrew Cagney <ac131313@redhat.com>
11944
11945 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11946
40622be8 119472003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 11948
40622be8 11949 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 11950
ae66c1fc
EZ
119512003-01-14 Elena Zannoni <ezannoni@redhat.com>
11952
997b089a 11953 Fix PR gdb/898
ae66c1fc
EZ
11954 * breakpoint.c (until_break_command): Add new argument. Use it to
11955 decide whether to stop only at the current frame or not.
11956 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 11957 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
11958 call.
11959 (advance_command): New function.
11960 (_initialize_infcmd): Update help string for 'until' command.
11961 Add new 'advance' command.
11962
a04257e6
DC
119632003-01-14 David Carlton <carlton@math.stanford.edu>
11964
11965 * linespec.c (decode_line_1): Normalize comments.
11966 (set_flags): Ditto.
11967 (locate_first_half): Ditto.
11968 (decode_compound): Ditto.
11969 (symtab_from_filename): Ditto.
11970 (decode_all_digits): Ditto.
11971 (decode_dollar): Ditto.
11972 (find_methods): Ditto.
11973 (find_toplevel_char): Ditto.
11974
1bac305b
AC
119752003-01-13 Andrew Cagney <ac131313@redhat.com>
11976
11977 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11978 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11979 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11980 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11981 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11982 * language.c, language.h, m32r-tdep.c: Update copyright.
11983 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11984 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11985 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11986 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11987 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11988 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11989
25caa7a8
EZ
119902003-01-13 Elena Zannoni <ezannoni@redhat.com>
11991
11992 * stabsread.h (process_later, resolve_cfront_continuation):
11993 Obsolete.
11994 Update copyright years.
11995 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11996 Update copyright year.
11997 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 11998 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
11999 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12000 Update copyright year.
12001 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12002 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12003 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12004 (parse_partial_symbols): Obsolete cfront support.
12005 * stabsread.c
12006 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12007 macros.
12008 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12009 read_cfront_baseclasses, read_cfront_member_functions,
12010 resolve_cfront_continuation,read_cfront_static_fields,
12011 copy_cfront_struct_fields): Obsolete functions.
12012 (define_symbol, read_one_struct_field): Obsolete cfront support.
12013 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12014 Update Copyright year.
12015
7789c6f5
EZ
120162003-01-13 Elena Zannoni <ezannoni@redhat.com>
12017
12018 * stack.c (print_frame_info, print_stack_frame_base_stub,
12019 print_stack_frame_base, show_and_print_stack_frame_stub,
12020 show_and_print_stack_frame, print_only_stack_frame_stub,
12021 print_only_stack_frame): Delete functions.
12022 (print_stack_frame_stub): Call print_frame_info instead of
12023 print_frame_info_base.
12024 (print_frame_info_base): Rename to print_frame_info.
12025 (backtrace_command_1): Call print_frame_info, instead of
12026 print_frame_info_base.
12027 (current_frame_command): Call print_stack_frame, instead of
12028 print_only_stack_frame.
12029 (frame_command): Call print_stack_frame, instead of
12030 show_and_print_stack_frame.
12031 (up_command): Ditto.
12032 (down_command): Ditto.
12033 * frame.h (print_only_stack_frame): Delete prototype.
12034 * infrun.c (normal_stop): Call print_stack_frame, instead of
12035 show_and_print_stack_frame.
12036 * thread.c (info_threads_command): Call print_stack_frame, instead
12037 of print_only_stack_frame.
12038
3f5a3016
AC
120392003-01-13 Andrew Cagney <ac131313@redhat.com>
12040
d99ba314
AC
12041 * README (Graphical interface to GDB): Update URL. Point at
12042 gdb/links/.
12043
3f5a3016
AC
12044 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12045 version match.
12046
083ae935
DJ
120472003-01-13 Daniel Jacobowitz <drow@mvista.com>
12048
12049 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12050 lines.
12051
5365276c
DJ
120522003-01-13 Daniel Jacobowitz <drow@mvista.com>
12053
12054 * thread-db.c (attach_thread): Prototype.
12055 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12056 thread information (ti), and valid flags (th_valid, ti_valid).
12057 (attach_thread): Move target_pid_to_str call to after the thread
12058 is added to GDB's list. Initialize the cache.
12059 (thread_get_info_callback, thread_db_map_id2thr)
12060 (thread_db_get_info): New functions.
12061 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12062 (thread_db_store_registers, thread_db_thread_alive)
12063 (thread_db_get_thread_local_address): Use them.
12064 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12065 of calling error() for threads in unknown state.
12066
12067 (clear_lwpid_callback): New function.
12068 (thread_db_resume): Use it to clear the cache.
12069
9fc30b6b
DJ
120702003-01-13 Daniel Jacobowitz <drow@mvista.com>
12071
12072 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12073 (resume_callback): Remove dead code.
12074
8f871025
AC
120752003-01-13 Andrew Cagney <ac131313@redhat.com>
12076
12077 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12078 predicate.
12079 * gdbarch.h, gdbarch.c: Regenerate.
12080 * stack.c (frame_info): Only initialize the saved registers when
12081 FRAME_INIT_SAVED_REGS_P.
12082 * frame.c (frame_saved_regs_register_unwind): Assert
12083 FRAME_INIT_SAVED_REGS_P.
12084 (deprecated_generic_get_saved_register): Ditto.
12085
3f565f1e
DJ
120862003-01-13 Daniel Jacobowitz <drow@mvista.com>
12087
12088 * source.c (openp): Squelch warning about "filename".
12089
072b1022
DJ
120902003-01-13 Daniel Jacobowitz <drow@mvista.com>
12091
12092 * source.c (openp): If the file does not exist don't necessarily
12093 search the path.
12094
973ccf8b
DJ
120952003-01-13 Daniel Jacobowitz <drow@mvista.com>
12096
12097 Fix PR gdb/872.
12098 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12099 (integer_types_same_name_p): New function.
12100 (rank_one_type): Use it.
12101 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12102
030292b7
DJ
121032003-01-13 Daniel Jacobowitz <drow@mvista.com>
12104
12105 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12106 variables.
12107 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12108 * configure.in: Add --with-sysroot.
12109 * configure: Regenerated.
12110 * main.c (gdb_sysroot): New variable.
12111 (captured_main): Initialize gdb_sysroot.
12112 * defs.h (gdb_sysroot): New extern declaration.
12113 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12114
afb5d334
MC
121152003-01-12 Michael Chastain <mec@shout.net>
12116
12117 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12118
751ceeb4
MC
121192003-01-12 Michael Chastain <mec@shout.net>
12120
12121 * top.c (print_gdb_version): Bump copyright year to 2003.
12122
94cd26f8
DC
121232003-01-12 David Carlton <carlton@bactrian.org>
12124
12125 * linespec.c (symtab_from_filename): Rename variable 's' to
12126 'file_symtab'.
12127
1ce79225
AC
121282003-01-12 Andrew Cagney <ac131313@redhat.com>
12129
12130 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12131 dummy frame.
12132 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12133
fa1fd571
AC
121342003-01-12 Andrew Cagney <ac131313@redhat.com>
12135
12136 * d10v-tdep.c: Include "gdb_assert.h".
12137 (d10v_store_return_value): Rewrite to match current interface.
12138 (d10v_extract_struct_value_address): Ditto.
12139 (d10v_extract_return_value): Ditto.
12140 (d10v_gdbarch_init): Set store_restore_value,
12141 extract_struct_value_address and extract_return_value.
12142
68b8d23e
JB
121432003-01-12 J. Brobecker <brobecker@gnat.com>
12144
12145 * hpread.c (set_namestring): New procedure replacing the
12146 SET_NAMESTRING macro.
12147 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12148 by calls to set_namestring.
12149
121502003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
12151
12152 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12153 a compilation warning.
12154 (hpread_process_one_debug_symbol): Likewise.
12155
88d262ca
DC
121562003-01-10 David Carlton <carlton@math.stanford.edu>
12157
12158 * linespec.c (decode_line_1): Rename variable 's' to
12159 'file_symtab'.
12160 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12161 (decode_dollar): Ditto.
12162 (decode_variable): Ditto.
12163 (symbol_found): Ditto.
12164
86669319
MC
121652003-01-09 Michael Chastain <mec@shout.net>
12166
12167 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12168
616a9dc4
CV
121692003-01-07 Corinna Vinschen <vinschen@redhat.com>
12170
12171 * win32-nat.c (set_process_privilege): New function.
12172 (child_attach): Call set_process_privilege() to enable the
12173 SE_DEBUG_NAME user privilege if available in process token.
12174
3269bcfa
JB
121752003-01-10 J. Brobecker <brobecker@gnat.com>
12176
12177 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12178 compilation error in the previous revision.
12179
2b0ee454
DC
121802003-01-09 David Carlton <carlton@math.stanford.edu>
12181
12182 * linespec.c: Update copyright.
12183
b3ba1b44
DJ
121842003-01-09 Daniel Jacobowitz <drow@mvista.com>
12185
12186 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12187 than inferior_ptid.
12188 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12189
4ef3f3be
AC
121902003-01-09 Andrew Cagney <ac131313@redhat.com>
12191
479ab5a0
AC
12192 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12193 Update comments.
12194 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12195 (frame_saved_regs_zalloc): Update.
12196 (frame_saved_regs_register_unwind): Update.
12197 (create_new_frame): Update.
12198 (get_prev_frame): Update.
12199 (frame_extra_info_zalloc): Update.
12200 (deprecated_get_frame_saved_regs): Update.
12201 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12202 * cris-tdep.c: Update comment.
12203
bde58177
AC
12204 * somsolib.h: Fix function indentation.
12205 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12206 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12207 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12208 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12209 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12210
4ef3f3be
AC
12211 * infrun.c (follow_fork): Use ISO C definition.
12212 * expprint.c (print_subexp): Use xfree instead of free.
12213 * charset.c: Include "gdb_string.h" instead of <string.h>.
12214 (register_iconv_charsets): Use ISO C definition.
12215 (host_charset, target_charset): Ditto.
12216 * Makefile.in (charset.o): Update dependencies.
12217 (mi-cmd-env.o): Update dependencies.
12218
1c615f7a
AC
122192003-01-08 Andrew Cagney <cagney@redhat.com>
12220
12221 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12222 get_frame_base.
12223
c9a1dc08
AC
122242003-01-08 Andrew Cagney <ac131313@redhat.com>
12225
12226 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12227 build directories. Save edited gdb output in Mbuild.log. If a
12228 build fails, remove any final GDB executable.
12229
dbad9d94
AC
122302003-01-08 Andrew Cagney <ac131313@redhat.com>
12231
12232 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12233 replacing hex constants with function names and stripping leading
12234 file name directory prefixes.
12235
8d357cca
AC
122362003-01-08 Andrew Cagney <cagney@redhat.com>
12237
12238 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12239 get_frame_base.
12240
bca02a8a
DC
122412003-01-08 David Carlton <carlton@math.stanford.edu>
12242
12243 * linespec.c (decode_line_1): Move code into decode_variable.
12244 (decode_variable): New function.
12245
7f8ab3a0
AC
122462003-01-08 Andrew Cagney <ac131313@redhat.com>
12247
12248 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12249
7b5849cc
AC
122502003-01-08 Andrew Cagney <cagney@redhat.com>
12251
12252 * cris-tdep.c (cris_frame_init_saved_regs): Use
12253 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12254 saved_regs buffer.
12255 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12256 (sh64_nofp_frame_init_saved_regs): Ditto.
12257 (sh_fp_frame_init_saved_regs): Ditto.
12258 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12259 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12260 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12261 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12262
72a5efb3
DJ
122632003-01-08 Daniel Jacobowitz <drow@mvista.com>
12264
12265 * minsyms.c (lookup_minimal_symbol): Update comment.
12266 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12267 (lookup_minimal_symbol_solib_trampoline): Likewise.
12268
11c02a10
AC
122692003-01-08 Andrew Cagney <cagney@redhat.com>
12270
aab3ea25
AC
12271 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12272 frame_relative_level.
12273
da50a4b7
AC
12274 * alpha-tdep.c: Use get_frame_extra_info.
12275 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12276 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12277 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12278 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12279
11c02a10
AC
12280 * alpha-tdep.c: Use get_next_frame.
12281 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12282 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12283 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12284 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12285 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12286 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12287 * xstormy16-tdep.c: Ditto.
8ffd9b1b 12288
1e2330ba
AC
122892003-01-07 Andrew Cagney <cagney@redhat.com>
12290
12291 * alpha-tdep.c: Use get_frame_base.
12292 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12293 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12294 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12295 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12296 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12297 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12298 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12299 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 12300
2d75187b
AC
123012003-01-07 Andrew Cagney <cagney@redhat.com>
12302
12303 * frame.c (deprecated_get_frame_context): New function.
12304 (deprecated_set_frame_context): New function.
12305 * frame.h (deprecated_get_frame_context): Declare.
12306 (deprecated_set_frame_context): Declare.
12307 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12308 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 12309
483d36b2
AC
123102003-01-07 Andrew Cagney <cagney@redhat.com>
12311
12312 * frame.c (deprecated_set_frame_next_hack): New function.
12313 (deprecated_set_frame_prev_hack): New function.
12314 * frame.h (deprecated_set_frame_next_hack): Declare.
12315 (deprecated_set_frame_prev_hack): Declare.
12316 * mcore-tdep.c (analyze_dummy_frame): Use
12317 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12318 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12319
14e91ac5
DC
123202003-01-07 David Carlton <carlton@math.stanford.edu>
12321
12322 * linespec.c (decode_line_1): Move code into decode_dollar.
12323 (decode_dollar): New function.
12324
b0c6b05c
AC
123252003-01-07 Andrew Cagney <cagney@redhat.com>
12326
12327 * arm-tdep.c (arm_init_extra_frame_info): Use
12328 deprecated_update_frame_base_hack.
12329 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12330 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12331 (fix_frame_pointer): Ditto.
12332 (mn10300_analyze_prologue): Ditto.
12333
a00a19e9
AC
123342003-01-07 Andrew Cagney <cagney@redhat.com>
12335
12336 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12337 extra_info using frame_extra_info_zalloc.
12338 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12339 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12340 (sh64_init_extra_frame_info): Ditto.
12341 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12342 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12343 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12344 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12345 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12346 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12347 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12348 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12349 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12350 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12351 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12352 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12353
12354 * mn10300-tdep.c (analyze_dummy_frame): Use
12355 deprecated_set_frame_extra_info_hack.
12356 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12357
1fb4c65b
JB
123582003-01-07 J. Brobecker <brobecker@gnat.com>
12359
12360 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12361 class is not scText. These do not define "real" procedures.
12362 (parse_partial_symbols): Likewise.
12363
9fe7d6bf
MS
123642003-01-06 Michael Snyder <msnyder@redhat.com>
12365
12366 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12367
f6c609c4
AC
123682003-01-06 Andrew Cagney <ac131313@redhat.com>
12369
12370 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12371 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12372 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12373 deprecated_frame_xmalloc_with_cleanup.
12374 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12375 deprecated_frame_xmalloc.
12376 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12377 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12378
d995ff4b
AC
123792003-01-06 Andrew Cagney <cagney@redhat.com>
12380
84dc46cb
AC
12381 * x86-64-linux-tdep.c: Include "osabi.h".
12382 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12383
d995ff4b
AC
12384 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12385
66140c26
AC
123862003-01-06 Andrew Cagney <cagney@redhat.com>
12387
12388 * MAINTAINERS (Target Instruction Set Architectures): Update
12389 arm-elf. Can be built with -Werror, has been multiarched.
12390
12391 * value.h (unpack_long): Make buffer parameter constant.
12392 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12393 * scm-lang.h (scm_parse): Ditto.
12394 * defs.h (extract_typed_address, extract_address): Ditto.
12395 (extract_long_unsigned_integer): Ditto.
12396 * inferior.h (unsigned_pointer_to_address): Ditto.
12397 (signed_pointer_to_address): Ditto.
12398 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12399 * gdbarch.h, gdbarch.c: Regenerate.
12400 * findvar.c (extract_long_unsigned_integer): Update.
12401 (extract_address): Update.
12402 (extract_typed_address): Update.
12403 (unsigned_pointer_to_address): Update.
12404 * values.c (unpack_long): Update.
12405 (unpack_double): Update.
12406 (unpack_pointer): Update.
12407 (unpack_field_as_long): Update.
12408 * d10v-tdep.c (d10v_pointer_to_address): Update.
12409 * avr-tdep.c (avr_pointer_to_address): Update.
12410 * scm-lang.c (scm_unpack): Update.
12411 * findvar.c (signed_pointer_to_address): Update.
12412
b089b3da
ML
124132003-01-06 Michal Ludvig <mludvig@suse.cz>
12414
8ffd9b1b 12415 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
12416 since it is in i386-tdep.c.
12417
aff87235
JB
124182003-01-06 J. Brobecker <brobecker@gnat.com>
12419
12420 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12421 failure introduced in the previous change.
12422
34f5e845
MC
124232003-01-05 Michael Chastain <mec@shout.net>
12424
12425 * README: Remove references to deleted remote-*.c files:
12426 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12427 remote-nrom.c, remote-os9k.c, remote-udi.c.
12428
28bcfd30
MK
124292003-01-05 Mark Kettenis <kettenis@gnu.org>
12430
12431 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12432 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12433 i386_get_longjmp_target.
12434
15a5b3ee
AC
124352003-01-05 Andrew Cagney <ac131313@redhat.com>
12436
12437 * arm-tdep.c (prologue_cache): Change to a pointer.
12438 (_initialize_arm_tdep): Allocate prologue_cache.
12439 (check_prologue_cache): Update.
12440 (save_prologue_cache): Update.
12441 (arm_gdbarch_init): Update.
12442
c263362b
DJ
124432003-01-04 Daniel Jacobowitz <drow@mvista.com>
12444
12445 * stabsread.c (update_method_name_from_physname): Call complaint()
12446 instead of error.
12447
51603483
DJ
124482003-01-04 Daniel Jacobowitz <drow@mvista.com>
12449
12450 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12451 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12452 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12453
12454 * blockframe.c: Include "gdbcmd.h" and "command.h".
12455 (backtrace_below_main): New variable.
12456 (file_frame_chain_valid, func_frame_chain_valid)
12457 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12458 (generic_func_frame_chain_valid): Remove functions.
12459 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12460 (_initialize_blockframe): New function.
12461 * Makefile.in (blockframe.o): Update dependencies.
12462 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12463 comment. Call frame_chain_valid ().
12464 * frame.h: Remove old prototypes. Add prototype for
12465 frame_chain_valid and update comments to match.
12466 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12467 Remove old comment.
12468 * gdbarch.h: Regenerated.
12469 * gdbarch.c: Regenerated.
12470
12471 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12472 set_gdbarch_frame_chain_valid.
12473 * avr-tdep.c (avr_gdbarch_init): Likewise.
12474 * cris-tdep.c (cris_gdbarch_init): Likewise.
12475 * frv-tdep.c (frv_gdbarch_init): Likewise.
12476 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12477 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12478 (i386_nw_init_abi): Likewise.
12479 (i386_gdbarch_init): Likewise.
12480 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12481 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12482 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12483 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12484 * mips-tdep.c (mips_gdbarch_init): Likewise.
12485 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12486 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12487 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12488 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12489 * s390-tdep.c (s390_gdbarch_init): Likewise.
12490 * sh-tdep.c (sh_gdbarch_init): Likewise.
12491 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12492 * v850-tdep.c (v850_gdbarch_init): Likewise.
12493 * vax-tdep.c (vax_gdbarch_init): Likewise.
12494 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12495
12496 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12497 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12498 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12499 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12500 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12501 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12502 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12503 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12504
b00a8037
DJ
125052002-01-04 Daniel Jacobowitz <drow@mvista.com>
12506
12507 * Makefile.in (acconfig_h): Remove incorrect macro.
12508 (config_h): Define.
12509 (osabi.o): Update dependencies.
12510 * configure.tgt: Set gdb_osabi based on target triplet.
12511 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12512 * configure: Regenerated.
12513 * config.in: Regenerated.
12514 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12515 (GDB_OSABI_DEFAULT): Define if not already defined.
12516 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12517 (set_osabi_string): New variables.
12518 (gdbarch_register_osabi): Add new OS ABI to
12519 gdb_osabi_available_names.
12520 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12521 (set_osabi, show_osabi): New functions.
12522 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12523
4be87837
DJ
125242003-01-04 Daniel Jacobowitz <drow@mvista.com>
12525
12526 * arch-utils.c (gdbarch_info_init): Set osabi to
12527 GDB_OSABI_UNINITIALIZED.
12528 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12529 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12530 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12531 * gdbarch.c: Regenerated.
12532 * gdbarch.h: Regenerated.
12533 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12534 there's no BFD.
12535 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12536 * osabi.h (enum gdb_osabi): Move to defs.h.
12537 (gdbarch_init_osabi): Update prototype.
12538 * defs.h (enum gdb_osabi): Moved here.
12539 * Makefile.in: Update dependencies.
12540
12541 * alpha-tdep.h: Don't include "osabi.h".
12542 (struct gdbarch_tdep): Remove osabi member.
12543 * alpha-tdep.c: Include "osabi.h".
12544 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12545 iterate over arches. Update call to gdbarch_init_osabi.
12546 (alpha_dump_tdep): Don't dump osabi.
12547 * alpha-linux-tdep.c: Include "osabi.h".
12548 * alpha-osf1-tdep.c: Include "osabi.h".
12549 * alphafbsd-tdep.c: Include "osabi.h".
12550 * alphanbsd-tdep.c: Include "osabi.h".
12551
12552 * arm-tdep.h: Don't include "osabi.h".
12553 (struct gdbarch_tdep): Remove osabi member.
12554 * arm-tdep.c: Include "osabi.h".
12555 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12556 iterate over arches. Update call to gdbarch_init_osabi.
12557 (arm_dump_tdep): Don't dump osabi.
12558 * arm-linux-tdep.c: Include "osabi.h".
12559 * armnbsd-tdep.c: Include "osabi.h".
12560
12561 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12562 Update call to gdbarch_init_osabi.
12563
12564 * i386-tdep.h: Don't include "osabi.h".
12565 (struct gdbarch_tdep): Remove osabi member.
12566 * i386-tdep.c: Include "osabi.h".
12567 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12568 iterate over arches. Update call to gdbarch_init_osabi.
12569 (i386_dump_tdep): Don't dump osabi.
12570 * i386-linux-tdep.c: Include "osabi.h".
12571 * i386-sol2-tdep.c: Include "osabi.h".
12572 * i386bsd-tdep.c: Include "osabi.h".
12573 * i386gnu-tdep.c: Include "osabi.h".
12574 * i386ly-tdep.c: Include "osabi.h".
12575 * i386nbsd-tdep.c: Include "osabi.h".
12576 * i386obsd-tdep.c: Include "osabi.h".
12577
12578 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12579 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12580 check osabi when iterating over arches. Update call to
12581 gdbarch_init_osabi.
12582 (mips_dump_tdep): Don't dump osabi.
12583
12584 * ns32k-tdep.h: Don't include "osabi.h".
12585 (struct gdbarch_tdep): Remove.
12586 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12587 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12588 allocate tdep. Update call to gdbarch_init_osabi.
12589 (ns32k_dump_tdep): Remove.
12590 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12591 * ns32knbsd-tdep.c: Include "osabi.h".
12592
12593 * ppc-tdep.h: Don't include "osabi.h".
12594 (struct gdbarch_tdep): Remove osabi member.
12595 * rs6000-tdep.c: Include "osabi.h".
12596 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12597 osabi when iterating over arches. Update call to
12598 gdbarch_init_osabi.
12599 (rs6000_dump_tdep): Don't dump osabi.
12600 * ppc-linux-tdep.c: Include "osabi.h".
12601 * ppcnbsd-tdep.c: Include "osabi.h".
12602
12603 * sh-tdep.h: Don't include "osabi.h".
12604 (struct gdbarch_tdep): Remove osabi member.
12605 * sh-tdep.c: Include "osabi.h".
12606 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12607 iterate over arches. Update call to gdbarch_init_osabi.
12608 (sh_dump_tdep): Don't dump osabi.
12609 * shnbsd-tdep.c: Include "osabi.h".
12610
12611 * sparc-tdep.c: Include "osabi.h".
12612 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12613 iterate over arches. Update call to gdbarch_init_osabi.
12614 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12615 tdep structure.
12616
12617 * vax-tdep.h: Don't include "osabi.h".
12618 (struct gdbarch_tdep): Remove.
12619 * vax-tdep.c: Include "osabi.h".
12620 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12621 iterate over arches. Don't allocate tdep. Update call
12622 to gdbarch_init_osabi.
12623 (vax_dump_tdep): Remove.
12624 (_initialize_vax_tdep): Update call to gdbarch_register.
12625
a881cf8e
DJ
126262003-01-04 Daniel Jacobowitz <drow@mvista.com>
12627
12628 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12629 entirely.
12630 (breakpoint_re_set_one): Don't fetch the value for a disabled
12631 watchpoint.
12632
1e698235
DJ
126332003-01-04 Daniel Jacobowitz <drow@mvista.com>
12634
12635 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12636 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12637 (COERCE_FLOAT_TO_DOUBLE): Remove.
12638 * gdbarch.c: Regenerate.
12639 * gdbarch.h: Regenerate.
12640 * Makefile.in: Remove value_h from gdbarch_h.
12641 * valops.c (coerce_float_to_double): New variable.
12642 (default_coerce_float_to_double): Remove.
12643 (standard_coerce_float_to_double): Remove.
12644 (value_arg_coerce): Use coerce_float_to_double.
12645 (_initialize_valops): Add "set coerce-float-to-double".
12646 * value.h (default_coerce_float_to_double): Remove prototype.
12647 (standard_coerce_float_to_double): Remove prototype.
12648
12649 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12650 prototyped.
12651 * mdebugread.c (parse_symbol): Likewise.
12652 * stabsread.c (define_symbol): Mark all functions as prototyped.
12653
12654 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12655 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12656 set_gdbarch_coerce_float_to_double.
12657 * arm-tdep.c (arm_gdbarch_init): Likewise.
12658 * frv-tdep.c (frv_gdbarch_init): Likewise.
12659 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12660 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12661 * mips-tdep.c (mips_gdbarch_init): Likewise.
12662 (mips_coerce_float_to_double): Remove.
12663 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12664 (rs6000_coerce_float_to_double): Remove.
12665 * s390-tdep.c (s390_gdbarch_init): Likewise.
12666 * sh-tdep.c (sh_gdbarch_init): Likewise.
12667 (sh_coerce_float_to_double): Remove.
12668 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12669 (sparc_coerce_float_to_double): Remove.
12670 * v850-tdep.c (v850_gdbarch_init): Likewise.
12671 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12672 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12673 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12674 (hppa_coerce_float_to_double): Remove prototype.
12675 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12676
f436a26a
DJ
126772003-01-04 Daniel Jacobowitz <drow@mvista.com>
12678
12679 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12680
248f8055
DJ
126812003-01-04 Daniel Jacobowitz <drow@mvista.com>
12682
12683 Suggested by Stewart Brown <sb24@avaya.com>:
12684 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12685 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12686 (c_type_print_varspec_suffix): Likewise.
12687
72cfdc76
MK
126882003-01-04 Mark Kettenis <kettenis@gnu.org>
12689
bfd260bb
MK
12690 * configure.in: Don't set and AC_SUBST SUBDIRS.
12691 * configure: Regenerated.
12692
72cfdc76
MK
12693 * configure.in: Remove code dealing with shared libraries.
12694 * Makefile.in: Remove HLDFLAGS and HLDENV.
12695 * configure: Regenerated.
12696
c8b8a898
AC
126972003-01-04 Andrew Cagney <ac131313@redhat.com>
12698
12699 * frame.c (deprecated_frame_xmalloc): New function.
12700 (deprecated_set_frame_saved_regs_hack): New function.
12701 (deprecated_set_frame_extra_info_hack): New function.
12702 * frame.h (deprecated_frame_xmalloc): Declare.
12703 (deprecated_set_frame_saved_regs_hack): Declare.
12704 (deprecated_set_frame_extra_info_hack): Declare.
12705
14abd0fb
MK
127062003-01-04 Mark Kettenis <kettenis@gnu.org>
12707
8ee53726
MK
12708 * configure.in: Move code that provides the --enable-gdbtk option
12709 right after the code that handles the --enable-tui option, and
12710 polish it somewhat.
12711 * configure: Regenerated.
12712
14abd0fb
MK
12713 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12714 AC_CHECK_FUNCS and remove the old check for pread64.
12715 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12716 * acconfig.h (_GNU_SOURCE): Add.
12717 (HAVE_PREAD64): Remove.
12718 * configure, aclocal.m4, config.in: Regenerated.
12719
b2fb4676
AC
127202003-01-03 Andrew Cagney <ac131313@redhat.com>
12721
12722 * alpha-tdep.c: Use get_frame_saved_regs.
12723 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12724 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12725 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12726 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12727 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12728
8dcde887
MK
127292003-01-03 Mark Kettenis <kettenis@gnu.org>
12730
12731 * configure.in: Remove all use of the SUBDIRS variable; add
12732 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12733 code providing the --enable-multi-ice option, and move it right in
12734 front of the code that checks whether gdbserver is supported.
12735 Polish that too.
12736 * configure: Regenerated.
12737 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12738 @SUBDIRS@.
12739
8ccd593b
AC
127402003-01-03 Andrew Cagney <cagney@redhat.com>
12741
12742 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12743 * avr-tdep.c, cris-tdep.c: Ditto.
12744 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12745 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 12746
91151a06
MK
127472003-01-03 Mark Kettenis <kettenis@gnu.org>
12748
12749 * configure.in: Remove --enable-netrom option.
12750 * configure: Regenerated.
12751
8fe84d01
MK
127522003-01-03 Mark Kettenis <kettenis@gnu.org>
12753
12754 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12755 declaration for `struct re_pattern_buffer' instead.
12756 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12757
f0394be6
JB
127582003-01-03 J. Brobecker <brobecker@gnat.com>
12759
12760 * mdebugread.c (parse_symbol): Count until the stEnd matching
12761 the structure name.
12762
27e9bf90
MK
127632003-01-02 Mark Kettenis <kettenis@gnu.org>
12764
93d331ba
MK
12765 * configure.in: Remove --with-cpu option.
12766 subscripts. Remove evil changequotes here.
12767 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12768 * config.in, configure: Regenerated.
8ffd9b1b 12769
27e9bf90
MK
12770 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12771 * configure.in: Cleanup section that sources GDB and BFD configure
12772 subscripts. Remove evil changequotes here.
12773 * config.in, configure: Regenerated.
12774
50abf9e5
AC
127752003-01-02 Andrew Cagney <ac131313@redhat.com>
12776
12777 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12778 frame accessor methods.
12779 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12780 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12781 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12782 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12783 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12784 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12785 * z8k-tdep.c: Ditto.
8ffd9b1b 12786
287c1a40
MK
127872003-01-02 Mark Kettenis <kettenis@gnu.org>
12788
f5dbc56d
MK
12789 * configure.in: Remove UI_OUT configuration code.
12790 * ada-lang.c: Update assuming UI_OUT is always true.
12791 * Makefile.in (UIOUT_CFLAGS): Remove.
12792 * configure: Regenerated.
12793 * TODO: Remove blurb about elimination of -DUI_OUT.
12794
627af7ea
MK
12795 * configure.in: Move code that provides the --enable-gdbcli,
12796 --enable-gdbmi options right before the code that handles the
12797 --enable-tui option. Polish a bit.
12798 * configure: Regenerated.
12799
06825bd1
MK
12800 * configure.in: Rewrite check for GNU regex and the
12801 --without-included regex option, and move it into the "Checks for
12802 library functions" section. This makes us use the system regex
12803 again by default on systems with version 2 of the GNU C library.
12804 This was apparently broken.
12805 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12806 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12807 * config.in, configure: Regenerated.
12808
287c1a40
MK
12809 * configure.in: Move code that provides the --enable-tui option
12810 before the "Checks for libraries" section. Polish the code
12811 somewhat and set need_curses to yes if we build the TUI. Rewrite
12812 code that looks for a library providing termcap functionality to
12813 match more closely what's done in the Readline library, and move
12814 it into to the "Checks for libraries" section.
12815 * configure: Regenerated.
12816 * Makefile.in (TERMCAP): Remove variable.
12817 * config/i386/go32.mh (TERMCAP): Remove variable.
12818
684e56bf
AC
128192003-01-02 Andrew Cagney <ac131313@redhat.com>
12820
12821 * MAINTAINERS: Mention gdb_mbuild.sh.
12822 * gdb_mbuild.sh: Rewrite.
12823
e1ea1d75
MK
128242003-01-02 Mark Kettenis <kettenis@gnu.org>
12825
12826 * configure.in: Fix typo in last change.
12827 * config.in, configure: Regenerated.
12828
1b831c93
AC
128292003-01-02 Andrew Cagney <ac131313@redhat.com>
12830
12831 * valarith.c (value_binop): Delete obsolete code and comments.
12832 * configure.host: Ditto.
12833 * buildsym.h (make_blockvector): Ditto.
12834 * buildsym.c (make_blockvector): Ditto.
12835 * defs.h (enum language): Ditto.
12836 (chill_demangle): Ditto.
12837 * elfread.c (elf_symtab_read): Ditto.
12838 * dwarfread.c (CHILL_PRODUCER): Ditto.
12839 (set_cu_language): Ditto.
12840 (handle_producer): Ditto.
12841 * expprint.c (print_subexp): Ditto.
12842 * gdbtypes.c (chill_varying_type): Ditto.
12843 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12844 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12845 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12846 (chill_varying_type): Ditto.
12847 * language.h (_LANG_chill): Ditto.
12848 * language.c (binop_result_type, integral_type): Ditto.
12849 (character_type, string_type, structured_type): Ditto.
12850 (lang_bool_type, binop_type_check): Ditto.
12851 * stabsread.h (os9k_stabs): Ditto.
12852 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12853 (define_symbol, read_type, read_struct_fields): Ditto.
12854 (read_array_type, read_enum_type, read_huge_number): Ditto.
12855 (read_range_type, start_stabs): Ditto.
12856 * symfile.c (init_filename_language_table): Ditto.
12857 (add_psymbol_with_dem_name_to_list): Ditto.
12858 * symtab.c (symbol_init_language_specific): Ditto.
12859 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12860 * symtab.h (struct general_symbol_info): Ditto.
12861 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12862 * typeprint.c (typedef_print): Ditto.
12863 * utils.c (fprintf_symbol_filtered): Ditto.
12864 * valops.c (value_cast, search_struct_field, value_slice): Delete
12865 obsolete code.
12866 (varying_to_slice): Delete function.
12867 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12868 (varying_to_slice): Delete declaration.
12869 * MAINTAINERS: Update.
12870
8bb2c122
MK
128712003-01-02 Mark Kettenis <kettenis@gnu.org>
12872
97bf5e38
MK
12873 * configure.in: Reorganize "Checks for library functions section"
12874 a bit. Remove check for `btowc' and `isascii' functions.
12875 * configure: Regenerated.
12876
5ee754fc
MK
12877 * acconfig.h (_MSE_INT_H): Remove.
12878 * configure.in: Create "Checks for header files" section, and move
12879 appropriate tests there. Don't check for objlist.h, wchar.h,
12880 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12881 misdetection fix. Also add "Checks for types", "Checks for
12882 compiler characteristics" and "Checks for library functions"
12883 sections.
12884 * config.in, configure: Regenerated.
12885
8bb2c122
MK
12886 * configure.in: Create "Checks for programs" section, and move
12887 appropriate tests there.
12888
9a156167
MK
128892003-01-01 Mark Kettenis <kettenis@gnu.org>
12890
12891 * configure.in: Create "Checks for libraries" section, and move
12892 appropriate tests there. Cleanup check for wctype in libw. Use
12893 AC_SEARCH_LIBS to see whether we need libsocket.
12894 * configure: Regenerated.
12895
a80e2bcb 12896For older changes see ChangeLog-2002
c906108c
SS
12897\f
12898Local Variables:
12899mode: change-log
12900left-margin: 8
12901fill-column: 74
12902version-control: never
12903End:
This page took 1.074809 seconds and 4 git commands to generate.