112512be1b1dcaa331592295eb2bb0bca96568e4
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2
3 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
4 for any lwp we resume.
5 (running_callback): Add lwps that have pending status events
6 against them to be considered running.
7
8 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
9
10 * m32r-tdep.c : Include "dis-asm.h".
11 * Makefile.in (m32r-tdep.o): Update dependencies.
12
13 2003-10-06 J. Brobecker <brobecker@gnat.com>
14
15 * completer.h (get_gdb_completer_word_break_characters): Delete.
16 * completer.c: include language.h.
17 (gdb_completer_word_break_characters): Delete.
18 (get_gdb_completer_word_break_characters): Delete.
19 (location_completer): Use the word break characters of the current
20 language.
21 (complete_line): Likewise.
22 (line_completion_function): Likewise.
23 (skip_quoted_chars): Likewise.
24 * Makefile.in (completer.o): Add dependency on language.h.
25 * top.c (init_main): Set the readline word break characters
26 to GDB's default word break characters.
27
28 2003-10-06 J. Brobecker <brobecker@gnat.com>
29
30 * language.h (language_defn): new field, la_word_break_characters.
31 * language.c (unknown_language_defn): Set new field to
32 default_word_break_characters.
33 (auto_language_defn): Likewise.
34 (local_language_defn): Likewise.
35 * ada-lang.c (ada_language_defn): Likewise.
36 * c-lang.c (c_language_defn): Likewise.
37 (cplus_language_defn): Likewise.
38 (asm_language_defn): Likewise.
39 (minimal_language_defn): Likewise.
40 * f-lang.c (f_language_defn): Likewise.
41 * jv-lang.c (java_language_defn): Likewise.
42 * m2-lang.c (m2_language_defn): Likewise.
43 * objc-lang.c (objc_language_defn): Likewise.
44 * p-lang.c (pascal_language_defn): Likewise.
45 * scm-lang.c (scm_language_defn): Likewise.
46
47 2003-10-06 Andrew Cagney <cagney@redhat.com>
48
49 * ppc-sysv-tdep.c: Re-indent.
50
51 2003-10-06 J. Brobecker <brobecker@gnat.com>
52
53 * language.h (default_word_break_characters): Add prototype.
54 * language.c (default_word_break_characters): New function.
55
56 2003-10-06 Andreas Schwab <schwab@suse.de>
57
58 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
59 with %eax.
60
61 2003-10-06 Andrew Cagney <cagney@redhat.com>
62
63 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
64 "h8500-tdep.c".
65 (z8k-tdep.o): Delete custom build rule.
66
67 2003-10-06 Andrew Cagney <cagney@redhat.com>
68
69 * Makefile.in: Update all dependencies.
70
71 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
72 No longer list PA as as obsolete candidate. List m32r as
73 broken instead of obsolete.
74
75 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
76 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
77 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
78 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
79 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
80 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
81 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
82 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
83 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
84 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
85 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
86 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
87 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
88 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
89 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
90 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
91 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
92 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
93 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
94 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
95 * config/z8k/z8k.mt: Ditto.
96
97 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
98 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
99 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
100 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
101 sparclite were removed.
102 * configure.host, configure.tgt: Remove corresponding tuples.
103
104 * breakpoint.c, breakpoint.h: Remove obsolete code.
105 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
106 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
107 * stabsread.h, xcoffread.c: Ditto.
108
109 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
110 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
111 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
112 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
113
114 2003-10-06 David Lecomber <dsl@sources.redhat.com>
115
116 * f-valprint.c: Reformatting
117
118 2003-10-06 Mark Kettenis <kettenis@gnu.org>
119
120 * x86-64-tdep.c: Remove duplicate comment.
121
122 * x86-64-tdep.c (x86_64_store_return_value): Don't use
123 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
124 names for return values. This fixes a bug since we looked at %rbx
125 instead of %rdx.
126
127 2003-10-05 Mark Kettenis <kettenis@gnu.org>
128
129 * x86-64-tdep.c: Include "regset.h".
130
131 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
132 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
133 sizeof_fpregset.
134 * i386-tdep.c: Include "regset.h".
135 (i386_supply_gregset): New function.
136 (i386_supply_fpregset): New function.
137 (i386_gdbarch_init): Initialze register set-related members of
138 TDEP.
139 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
140 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
141
142 2003-10-03 Andrew Cagney <cagney@redhat.com>
143
144 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
145 set extract_return_value, store_return_value and
146 use_struct_convention to ppc64_sysv_abi_extract_return_value,
147 ppc64_sysv_abi_store_return_value and
148 ppc64_sysv_abi_use_struct_convention.
149 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
150 (ppc64_sysv_abi_store_return_value): Declare.
151 (ppc64_sysv_abi_use_struct_convention): Declare.
152 * ppc-sysv-tdep.c (enum return_value_convention): Define.
153 (ppc64_sysv_abi_extract_return_value): New function.
154 (ppc64_sysv_abi_store_return_value): New function.
155 (ppc64_sysv_abi_use_struct_convention): New function.
156 (ppc64_sysv_abi_return_value): New function.
157
158 2003-10-03 Andrew Cagney <cagney@redhat.com>
159
160 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
161 convert a descriptor to a function when it's in the ".opd"
162 section.
163
164 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
165
166 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
167 reg_size to keep GCC silent.
168
169 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
170
171 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
172 base for DW_EH_PE_textrel encodings.
173 (read_encoded_value): Add a DW_EH_PE_textrel case.
174 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
175 section.
176
177 2003-10-03 Mark Kettenis <kettenis@gnu.org>
178
179 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
180
181 2003-10-02 Andrew Cagney <cagney@redhat.com>
182
183 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
184 REGISTER_RAW_SIZE.
185 * gdbarch.h, gdbarch.c: Re-generate.
186 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
187 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
188 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
189 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
190 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
191 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
192 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
193 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
194 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
195 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
196 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
197 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
198 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
199 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
200 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
201 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
202
203 2003-10-02 Jim Blandy <jimb@redhat.com>
204
205 * dwarf2read.c (struct die_info): Doc fix.
206
207 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
208
209 * sh-tdep.c: Running thru gdb_indent.sh.
210
211 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
212
213 * sh-tdep.c (sh_justify_value_in_reg): New function.
214 (sh_stack_allocsize): Ditto.
215 (flt_argreg_array): New array used for floating point argument
216 passing.
217 (sh_init_flt_argreg): New function.
218 (sh_next_flt_argreg): Ditto.
219 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
220 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
221 Fix argument passing strategy.
222 (sh_push_dummy_call_nofpu): Ditto.
223
224 2003-10-01 Andrew Cagney <cagney@redhat.com>
225
226 * value.h (register_value_being_returned): Declare. Replace
227 "value_being_returned".
228 * infcall.c (call_function_by_hand): Use
229 register_value_being_returned.
230 * infcmd.c (print_return_value): Call
231 "register_value_being_returned", handle struct return locally.
232 * values.c (register_value_being_returned): New function. Replace
233 "value_being_returned".
234
235 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
236
237 * linux-proc.c (linux_do_registers): New function.
238 (linux_make_note_section): Use linux_do_registers in case of
239 single threaded inferior programs.
240
241 2003-10-01 Andrew Cagney <cagney@redhat.com>
242
243 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
244 use STRUCT_ADDR. When not using "struct return convention", pass
245 "0" to "value_being_returned". Add FIXMEs.
246 * infcmd.c (print_return_value): Pass an explicit 0/1 to
247 value_being_returned. Add comments.
248 * values.c (value_being_returned): Add fixme.
249 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
250 (hppa_value_returned_from_stack): Add FIXME.
251
252 2003-09-30 David Carlton <carlton@kealia.com>
253
254 * dwarf2read.c (struct die_info): Add 'parent' field; replace
255 'has_children' and 'next' by 'child' and 'sibling'.
256 (read_comp_unit): Rework algorithm, breaking body into
257 read_die_and_children and read_die_and_siblings.
258 (read_die_and_children, read_die_and_siblings): New.
259 (read_full_die): Add 'has_children' argument; set it instead of
260 the die's 'has_children' field. Minor formatting cleanup.
261 (free_die_list): Use die->child and die->sibling instead of
262 die->next.
263 (dump_die_list): Ditto.
264 (sibling_die): Use die->sibling.
265 (psymtab_to_symtab_1): Use die's 'child' field in place of its
266 'has_children' and 'next' fields.
267 (process_die, read_file_scope, read_func_scope)
268 (read_lexical_block_scope, read_structure_scope)
269 (read_enumeration, read_array_type, read_common_block)
270 (read_namespace, read_subroutine_type, dump_die): Ditto.
271
272 2003-09-30 Andrew Cagney <cagney@redhat.com>
273
274 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
275 to 224, not 220.
276
277 2003-09-30 Andrew Cagney <cagney@redhat.com>
278
279 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
280 REGISTER_VIRTUAL_SIZE.
281 * gdbarch.h, gdbarch.c: Regenerate.
282 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
283 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
284 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
285
286 2003-09-29 Andrew Cagney <cagney@redhat.com>
287
288 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
289 DEPRECATED_REGISTER_VIRTUAL_TYPE.
290 * gdbarch.h, gdbarch.c: Regenerate.
291 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
292 * sh64-tdep.c, sparc-tdep.c: Update.
293
294 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
295 * remote-vxmips.c (vx_read_register): Ditto.
296 * remote-vx68.c (vx_read_register): Ditto.
297 * gnu-nat.c (inf_validate_procs): Ditto.
298
299 2003-09-29 J. Brobecker <brobecker@gnat.com>
300
301 * infcall.c (call_function_by_hand): Fix build failure
302 introduced in the previous change to this file.
303
304 2003-09-29 Andrew Cagney <cagney@redhat.com>
305
306 * NEWS: Mention Objective-C.
307
308 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
309
310 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
311 test if the register has been saved on the stack.
312 (arm_scan_prologue_cache): When analysing the instruction
313 "str lr, [sp, #-4]", save the address where lr has been stored.
314
315 2003-09-28 Andrew Cagney <cagney@redhat.com>
316
317 * frame.c (frame_read_unsigned_register): Delete function.
318 * frame.h (frame_read_unsigned_register): Delete declaration.
319 * sparc-tdep.c (sparc_init_extra_frame_info): Use
320 get_frame_register_unsigned.
321 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
322 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
323 * d10v-tdep.c (d10v_print_registers_info): Ditto.
324
325 * frame.h (frame_read_register): Delete declaration.
326 * frame.c (frame_read_register): Delete function.
327 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
328 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
329 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
330 * mips-tdep.c (mips_register_to_value): Ditto.
331 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
332 * d10v-tdep.c (d10v_print_registers_info): Ditto.
333
334 * frame.c (frame_read_signed_register): Delete function.
335 (frame_read_unsigned_register): Update comments.
336 * frame.h (frame_read_signed_register): Delete declaration.
337 * h8300-tdep.c (h8300_print_register): Use
338 get_frame_register_signed.
339 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
340
341 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
342 Rename VALUE_RETURNED_FROM_STACK.
343 * infcmd.c (print_return_value): Update.
344 * infcall.c (call_function_by_hand): Update.
345
346 2003-09-28 Mark Kettenis <kettenis@gnu.org>
347
348 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
349 regcache argument and reverse the order of the other two
350 arguments. Remove local regcache variable. Determine
351 architecture from REGCACHE. Update comments.
352 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
353 reverse the order of the other two arguments. Remove local
354 regcache variable. Determine architecture from REGCACHE. Update
355 comments.
356 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
357 prototypes. Update comments.
358 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
359 comment.
360 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
361 Update.
362 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
363 * i386-interix-nat.c (supply_fpregset): Update.
364 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
365 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
366 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
367 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
368 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
369 Update.
370 * i386obsd-tdep.c (fetch_core_registers): Update.
371 * i386v4-nat.c (supply_fpregset): Update.
372 * x86-64-linux-nat.c (supply_fpregset): Update.
373 * x86-64-linux-tdep.c (fetch_core_registers): Update.
374
375 2003-09-27 Mark Kettenis <kettenis@gnu.org>
376
377 * i386-tdep.h: Put opaque declarations in alphabetical
378 order. Remove spurious whitespace.
379 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
380 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
381 * i386-tdep.c (MM0_REGNUM): Remove define.
382 (i386_mmx_regnum_p): Add gdbarch argument.
383 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
384 Rewrite using new macro definitions for FPU/SSE registers.
385 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
386 definitions from i387-tdep.h.
387 (i386_register_name): Update.
388 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
389 new macro definitions for FPU/SSE registers.
390 (i386_extract_return_value): Determine whether floating-point
391 registers are present by examining REGCACHE's architecture.
392 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
393 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
394 FPU/SSE registers.
395 (i386_register_type): Update.
396 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
397 definitions for FPU registers. Use REGCACHE's architecture to
398 determine the appropriate register numbers.
399 (i386_pseudo_register_read, i386_pseudo_register_write,
400 i386_register_reggroup_p): Update.
401 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
402 TDEP->mm0_regnum.
403 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
404 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
405 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
406 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
407 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
408 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
409 *' to `void *'.
410 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
411 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
412 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
413 definitions for FPU/SSE registers.
414 (FXSAVE_MXCSR_ADDR): New define.
415 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
416 TDEP->mm0_regnum.
417 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
418 (I387_ST0_REGNUM): Define.
419
420 * regcache.h (get_regcache_arch): New prototype.
421 * regcache.c (get_regcache_arch): New function.
422
423 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
424 whitespace.
425
426 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
427 Initialize using ARRAY_SIZE.
428
429 2003-09-27 Andrew Cagney <cagney@redhat.com>
430
431 * arch-utils.c (deprecated_init_frame_pc_default): Rename
432 "init_frame_pc_default".
433 * arch-utils.h (deprecated_init_frame_pc_default): Update.
434 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
435 * vax-tdep.c (vax_gdbarch_init): Update.
436 * v850-tdep.c (v850_gdbarch_init): Update.
437 * sh64-tdep.c (sh64_gdbarch_init): Update.
438 * s390-tdep.c (s390_gdbarch_init): Update.
439 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
440 * mcore-tdep.c (mcore_gdbarch_init): Update.
441 * h8300-tdep.c (h8300_gdbarch_init): Update.
442 * cris-tdep.c (cris_gdbarch_init): Update.
443 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
444
445 2003-09-26 Mark Kettenis <kettenis@gnu.org>
446
447 * regset.h: New file.
448 * Makefile.in (regset_h): Add.
449
450 2003-09-25 Andrew Cagney <cagney@redhat.com>
451
452 * frame.h (deprecated_frame_saved_regs): Rename
453 get_frame_saved_regs.
454 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
455 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
456 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
457 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
458 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
459
460 2003-09-25 Andrew Cagney <cagney@redhat.com>
461
462 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
463 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
464 and Java.
465 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
466 arm*-*-* do not use the new frame code.
467
468 2003-09-25 David Carlton <carlton@kealia.com>
469
470 * c-exp.y: Remove 'register' declarations.
471 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
472
473 2003-09-25 David Carlton <carlton@kealia.com>
474
475 * c-exp.y: Include cp-support.h. Add qualified_type.
476 (yylex): Delete nested type hack; add comments.
477 * cp-namespace.c (cp_lookup_nested_type): New function.
478 * cp-support.h: Declare cp_lookup_nested_type.
479 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
480 instead of value_struct_elt_for_reference.
481 * valops.c: Include cp-support.h.
482 (value_aggregate_elt): New function.
483 (value_namespace_elt): Ditto.
484 (value_struct_elt_for_reference): Make static.
485 * value.h: Delete declaration of value_struct_elt_for_reference;
486 add declaration for value_aggregate_elt.
487 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
488 (valops.o): Ditto.
489
490 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
491
492 * stack.c: Include "reggroups.h".
493 (frame_info): Only display registers in all_reggroup.
494 * Makefile.in (stack.o): Update dependencies.
495
496 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
497
498 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
499 "add ip, sp #n" in the prologue.
500 (arm_scan_prologue): Ditto.
501
502 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
503
504 * MAINTAINERS (write after approval): Add myself.
505
506 2003-09-25 Andreas Schwab <schwab@suse.de>
507
508 * m68k-tdep.c: Include "dwarf2-frame.h".
509 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
510 * Makefile.in (m68k-tdep.o): Update dependencies.
511
512 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
513
514 * sh-tdep.c (struct frame_extra_info): Remove.
515 (struct sh_frame_cache): New structure.
516 (GET_SOURCE_REG): New macro extracting source register of an opcode.
517 (GET_TARGET_REG): Ditto but target register.
518 (GET_PUSHED_REG): Remove.
519 (IS_MOV_ARG_TO_REG): New macro.
520 (IS_MOV_ARG_TO_IND_R14): New macro.
521 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
522 (IS_MOVW_PCREL_TO_REG): New macro.
523 (IS_MOVL_PCREL_TO_REG): New macro.
524 (IS_SUB_REG_FROM_SP): New macro.
525 (IS_ARG_MOV): Remove.
526 (IS_MOV_TO_R14): Remove.
527 (IS_RESTORE_FP): New macro.
528 (IS_RTS): New macro.
529 (IS_LDS): New macro.
530 (IS_MOV_FP_SP): New macro.
531 (IS_ADD_REG_TO_FP): New macro.
532 (IS_ADD_IMM_FP): New macro.
533 (sh_skip_prologue_hard_way): Remove.
534 (sh_saved_pc_after_call): Remove.
535 (sh_frame_chain): Remove.
536 (sh_find_callers_reg): Remove.
537 (sh_nofp_frame_init_saved_regs): Remove.
538 (sh_fp_frame_init_saved_regs): Remove.
539 (sh_init_extra_frame_info): Remove.
540 (sh_analyze_prologue): New function.
541 (sh_skip_prologue): Remove deprecated code. Rely on new function
542 sh_analyze_prologue when after_prologue fails.
543 (sh_frame_saved_pc): Remove.
544 (sh_alloc_frame_cache): New function.
545 (sh_frame_cache): Ditto.
546 (sh_frame_prev_register): Ditto.
547 (sh_frame_this_id): Ditto.
548 (sh_frame_unwind): New structure defining the heuristic frame
549 sniffer interface.
550 (sh_frame_sniffer): New function.
551 (sh_unwind_sp): Ditto.
552 (sh_unwind_pc): Ditto.
553 (sh_unwind_dummy_id): Ditto.
554 (sh_frame_base_address): Ditto.
555 (sh_frame_base): New structure defining new frame base code.
556 (sh_in_function_epilogue_p): New function.
557 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
558 code and to call all new code instead. Initialize dwarf2 and
559 heuristic frame sniffer.
560
561 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
562
563 * parser-defs.h (struct exp_descriptor): New definition, containing
564 language-specific info for printing, prefixifying, dumping, and
565 evaluating expressions.
566 (exp_descriptor_standard): Declare new variable.
567 (print_subexp): Make global and declare here (from expprint.c).
568 (dump_subexp): Ditto.
569 (dump_subexp_body_standard): Declare.
570 (operator_length_standard): Declare.
571 (op_name_standard): Declare.
572 (print_subexp): Declare.
573 (print_subexp_standard): Declare.
574
575 * language.h (struct language_defn): Add la_exp_desc field to hold
576 pointer to table for language-specific operators.
577 Remove evaluate_exp field, which is now in struct exp_descriptor.
578
579 * parse.c (operator_length): Move most code to new
580 operator_length_standard function. Use language-specific information.
581 (operator_length_standard): New function taking most code from
582 operator_length.
583 (exp_descriptor_standard): New constant.
584
585 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
586 and OP_EXTENDED_LAST.
587
588 * expprint.c (print_subexp): Use language-specific print_subexp.
589 Make global; remove static declaration.
590 Move most code to print_subexp_standard.
591 (print_subexp_standard): New function, containing code formerly in
592 print_subexp.
593 (op_name): Add expression to argument signature.
594 Use langauge-specific op_name.
595 Move most code to op_name_standard.
596 (op_name_standard): New function, containing code formerly in op_name.
597 (dump_subexp): Use new version of op_name function.
598 Use language-specific dump_subexp_body, and move most existing code to
599 dump_subexp_body_standard.
600 (dump_raw_expression): Use new op_name interface.
601 (dump_subexp_body): Move most code to dump_subexp_body_standard.
602 (dump_subexp_body_standard): New function, containing code formerly
603 in dump_subexp_body.
604
605 * language.c (unknown_language): Add default la_exp_desc field and
606 remove evaluate_exp field.
607 (auto_language): Ditto.
608 (local_language): Ditto.
609 * f-lang.c (f_language_defn): Ditto.
610 * c-lang.c (c_language_defn): Ditto.
611 (cplus_language_defn): Ditto.
612 (asm_language_defn): Ditto.
613 (minimal_language_defn): Ditto.
614 * p-lang.c (pascal_language_defn): Ditto.
615 * m2-lang.c (m2_language_defn): Ditto.
616 * objc-lang.c (objc_language_defn): Ditto.
617
618 * jv-lang.c (exp_descriptor_java): New variable, containing
619 Java-specific expression evaluator.
620 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
621 field.
622 * scm-lang.c (exp_descriptor_scm): New variable, containing
623 Scheme-specific expression evaluator.
624 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
625 field.
626 * objc-lang.c (print_object_command): Take evaluate_exp from the
627 la_exp_desc field.
628
629 * Makefile.in (eval.o): Add dependency on parser-defs.h.
630
631 * eval.c: Include parser-defs.h for the full declaration of
632 la_exp_desc's type.
633 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
634
635 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
636
637 * parser-defs.h (operator_length): Declare.
638
639 * parse.c (length_of_subexp): Use operator_length to get operator
640 lengths and arities for operators.
641 Move most code to new operator_length function.
642 (operator_length): New function absorbing most code from
643 length_of_subexp.
644 (prefixify_subexp): Remove large case and use operator_length instead.
645 (parse_exp_1): Use renamings:
646 dump_prefix_expression => dump_raw_expression and
647 dump_postfix_expression => dump_prefix_expression.
648
649 * expression.h (dump_prefix_expression): Rename to ...
650 (dump_raw_expression): New name.
651 (dump_postfix_expression): Rename to ...
652 (dump_prefix_expression): New name.
653
654 * expprint.c (dump_subexp): Make global. Add comment.
655 Move most existing code to dump_subexp_body.
656 (dump_subexp_body): New function.
657 (dump_prefix_expression): Rename to dump_raw_expression.
658 Remove attempt to print the expression via print_expression: it can't
659 work before the expression is prefixified.
660 (dump_raw_expression): Renamed from dump_prefix_expression.
661 (dump_postfix_expression): Rename to dump_prefix_expression, since
662 that's what it does.
663 Remove 'note' parameter, since this routine must be used on
664 prefixified expression.
665 (dump_prefix_expression): Renamed from dump_postfix_expression.
666
667 2003-09-22 Jim Blandy <jimb@redhat.com>
668
669 * dwarf2read.c (read_array_type): When building the type for an
670 array of unspecified length, make sure to choose the upper bound
671 so that the array's total length comes out to be zero --- that's
672 how we represent such arrays.
673
674 2003-09-22 Michael Chastain <mec@shout.net>
675
676 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
677
678 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
679
680 * top.c (quit_force): Fix indirect call to quit_target so
681 a struct qt_args pointer is passed.
682
683 2003-09-22 Andrew Cagney <cagney@redhat.com>
684
685 * arch-utils.h (init_frame_pc_noop): Delete declaration.
686 * arch-utils.c (init_frame_pc_noop): Delete function.
687 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
688 "init_frame_pc".
689 * mips-tdep.c (mips_gdbarch_init): Ditto.
690 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
691 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
692 declaration.
693 (DEPRECATED_INIT_FRAME_PC): Delete macro.
694 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
695 declaration.
696 (DEPRECATED_INIT_FRAME_PC): Delete macro.
697
698 2003-09-22 Anthony Green <green@redhat.com>
699
700 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
701 declaration.
702
703 2003-09-20 Andrew Cagney <cagney@redhat.com>
704
705 * breakpoint.c: Eliminate ARGSUSED.
706 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
707 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
708 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
709 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
710 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
711 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
712 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
713 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
714 * wince.c, remote-vx.c: Ditto.
715
716 * cli/cli-script.c: Remove "register" attributes.
717 * config/pa/tm-hppa.h: Ditto.
718 * cli/cli-decode.c: Ditto.
719 * cli/cli-cmds.c: Ditto.
720
721 2003-09-19 Andrew Cagney <cagney@redhat.com>
722
723 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
724 DEPRECATED_NPC_REGNUM.
725 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
726
727 2003-09-19 Christopher Faylor <cgf@redhat.com>
728
729 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
730
731 2003-09-19 Jim Blandy <jimb@redhat.com>
732
733 * macrotab.c (macro_include): Use the correct comparison to find
734 the appropriate place for this inclusion in the list.
735
736 2003-09-19 Andrew Cagney <cagney@redhat.com>
737
738 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
739 (DEPRECATED_HPUX_TEXT_END): Define.
740 (deprecated_hpux_text_end): Declare.
741 (struct target_ops): Declare opaque.
742 * hppah-nat.c (text_end): Make static.
743 (deprecated_hpux_text_end): New function.
744 * exec.c (text_end): Delete global variable.
745 (NEED_TEXT_START_END): Do not define.
746 (exec_file_attach): Replace code computing "text_end" code with
747 call to DEPRECATED_HPUX_TEXT_END.
748
749 2003-09-19 Andrew Cagney <cagney@redhat.com>
750
751 * utils.c (align_up, align_down): New functions.
752 * defs.h (align_up, align_down): Declare.
753 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
754 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
755 and "align_down".
756 (round_up, round_down): Delete functions.
757 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
758 "align_down".
759 (ROUND_DOWN, ROUND_UP): Delete macros.
760 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
761 * h8300-tdep.c: Replace "round_up" and "round_down" with
762 "align_up" and "align_down".
763 (round_up, round_down): Delete macros.
764 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
765 "align_down".
766 (ROUND_UP, ROUND_DOWN): Delete macros.
767
768 2003-09-18 J. Brobecker <brobecker@gnat.com>
769
770 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
771 hard-coded constant. Use the proper machine name instead.
772
773 2003-09-17 Andrew Cagney <cagney@redhat.com>
774
775 * sparc-tdep.c (legacy_register_name): Delete function.
776 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
777 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
778 * infcmd.c (gdb_register_name): Delete variable.
779 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
780 REGISTER_NAME and "tm.h".
781 * gdbarch.h, gdbarch.c: Regenerate.
782 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
783 REGISTER_NAMES in comments.
784 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
785 * m68klinux-nat.c (regmap): Ditto.
786
787 2003-09-17 Jim Blandy <jimb@redhat.com>
788
789 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
790
791 2003-09-17 Andrew Cagney <cagney@redhat.com>
792
793 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
794 (ppcnbsd_init_abi): Set "use_struct_convention" to
795 "ppcnbsd_use_struct_convention".
796
797 2003-09-17 Mark Kettenis <kettenis@gnu.org>
798
799 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
800 * gdbarch.h, gdbarch.c: Regenerate.
801 (stabs_argument_has_addr): New architecture method.
802 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
803 * arch-utils.c: Include "buildsym.h".
804 (default_stabs_argument_has_addr): New function.
805 * stabsread.c (define_symbol): Use stabs_argument_has_addr
806 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
807
808 2003-09-17 Andrew Cagney <cagney@redhat.com>
809
810 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
811 * gdbarch.h, gdbarch.c: Regenerate.
812 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
813 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
814 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
815 * sparcnbsd-tdep.c: Update.
816
817 2003-09-17 Andrew Cagney <cagney@redhat.com>
818
819 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
820 * gdbarch.h, gdbarch.c: Regenerate.
821 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
822 * d10v-tdep.c, frame.c: Update.
823 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
824 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
825 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
826 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
827 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
828 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
829 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
830 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
831 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
832 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
833 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
834 * config/pa/nm-hppah.h: Update.
835
836 2003-09-16 Andrew Cagney <cagney@redhat.com>
837
838 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
839 "use_struct_convention" to "ppc_linux_use_struct_convention".
840 (ppc_linux_use_struct_convention): New function.
841 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
842 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
843 "rs6000_use_struct_convention".
844 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
845 declaration.
846 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
847 Delete function.
848
849 2003-09-16 Andrew Cagney <cagney@redhat.com>
850
851 * buildsym.c: Remove more occurances of "register".
852 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
853 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
854 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
855 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
856 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
857 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
858 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
859 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
860
861 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
862
863 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
864 numbers to enumeration values.
865 * sh-tdep.c: Accomodate above change.
866 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
867 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
868 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
869 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
870 (IS_FPUSH): Rename from IS_FMOV.
871 (sh_extract_struct_value_address): Remove useless comment.
872 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
873 instead of own local values.
874 (sh_dump_tdep): Remove.
875 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
876 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
877
878 2003-09-15 Andrew Cagney <cagney@redhat.com>
879
880 * doublest.c (convert_floatformat_to_doublest): No longer need to
881 cast "exp_bias" to an int. Reverts 2002-12-04 change.
882
883 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
884
885 * values.c (unpack_double): Call floatformat_is_valid.
886
887 2003-09-15 Mark Kettenis <kettenis@gnu.org>
888
889 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
890 ps_strings into a long.
891
892 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
893 _initialize_am64fbsd_nat.
894
895 2003-09-15 Kevin Buettner <kevinb@redhat.com>
896
897 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
898 associated with DW_AT_ranges attribute is out of bounds.
899
900 2003-09-15 David Lecomber <dsl@sources.redhat.com>
901
902 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
903
904 2003-09-14 Michael Chastain <mec@shout.net>
905
906 * config/m68k/nm-apollo68v.h: Delete.
907 * config/m68k/xm-apollo68v.h: Delete.
908
909 2003-09-14 Andrew Cagney <cagney@redhat.com>
910
911 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
912 * dcache.c: Update copyrights and descriptions.
913 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
914
915 2003-09-14 Andrew Cagney <cagney@redhat.com>
916
917 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
918 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
919
920 2003-09-14 Andrew Cagney <cagney@redhat.com>
921
922 * alpha-nat.c: Remove some occurances of "register".
923 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
924 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
925 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
926 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
927 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
928 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
929 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
930 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
931 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
932 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
933 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
934 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
935 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
936 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
937 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
938 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
939 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
940 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
941 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
942 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
943 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
944 * values.c, vax-tdep.c, xcoffread.c: Ditto.
945
946 2003-09-13 Andrew Cagney <cagney@redhat.com>
947
948 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
949 * ppc-tdep.h (struct regcache): Declare opaque.
950 * objfiles.h (struct objfile_data): Declare opaque.
951 * cp-support.h (struct objfile): Declare opaque.
952 * linux-nat.h (target_waitstatus): Declare opaque.
953
954 2003-09-14 Mark Kettenis <kettenis@gnu.org>
955
956 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
957 (stabs_argument_has_addr): New architecture method.
958 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
959 * arch-utils.c: Include "buildsym.h".
960 (default_stabs_argument_has_addr): New function.
961 * stabsread.c (define_symbol): Use stabs_argument_has_addr
962 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
963
964 * cris-tdep.c (cris_gdbarch_init): Set
965 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
966 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
967 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
968 * mips-tdep.c (mips_gdbarch_init): Likewise.
969 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
970 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
971
972 2003-09-13 Andrew Cagney <cagney@redhat.com>
973
974 * values.c (using_struct_return): Delete "function" and "funcaddr"
975 parameters.
976 * value.h (using_struct_return): Update declaration.
977 * infcmd.c (finish_command_continuation): Update.
978 (finish_command): Update.
979 * infcall.c (call_function_by_hand): Update.
980 * eval.c (evaluate_subexp_standard): Update.
981
982 2003-09-13 Christopher Faylor <cgf@redhat.com>
983
984 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
985 SSE registers since gdb will not operate correctly without this.
986 Restore include file ordering munged in previous change.
987 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
988
989 2003-09-13 Mark Kettenis <kettenis@gnu.org>
990
991 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
992 REG_STRUCT_HAS_ADDR.
993 * gdbarch.c, gdbarch.h: Updated.
994 * infcall.c (call_function_by_hand): Update.
995 * stabsread.c (define_symbol): Updated.
996
997 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
998
999 2003-09-12 Christopher Faylor <cgf@redhat.com>
1000
1001 * win32-nat.c: Reorganize so that defines used by target headers are
1002 actually defined by the system headers.
1003 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1004 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1005
1006 2003-09-12 Jim Blandy <jimb@redhat.com>
1007
1008 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1009 the file has no .data, .bss, or .rodata sections. Instead wait
1010 until we see a variable alleged to live in one of those sections.
1011
1012 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1013 .bss section, presume that any variables we find live in the
1014 .rodata section.
1015
1016 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1017 offsets for global and static variables.
1018
1019 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1020 symbol types are, by definition, in the .data section, so it is
1021 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1022 If there is no .data section, there should be no N_DATA or N_DATA
1023 | N_EXT symbols.
1024
1025 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1026
1027 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1028 (amd64fbsd_sigcontext_addr): Rewrite.
1029 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1030 with correct values.
1031 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1032 (amd64fbsd_init_abi): Fix typo.
1033
1034 2003-09-12 Andrew Cagney <cagney@redhat.com>
1035
1036 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1037 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1038
1039 2003-09-12 Andrew Cagney <cagney@redhat.com>
1040
1041 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1042 "entry_file_highpc". Update comments.
1043 * defs.h (deprecated_inside_entry_file): Rename
1044 "inside_entry_file".
1045 * blockframe.c (deprecated_inside_entry_file): Rename
1046 "inside_entry_file".
1047 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1048 * vax-tdep.c (vax_frame_chain): Update.
1049 * sh64-tdep.c (sh64_frame_chain): Update.
1050 * sh-tdep.c (sh_frame_chain): Update.
1051 * rs6000-tdep.c (rs6000_frame_chain): Update.
1052 * ns32k-tdep.c (ns32k_frame_chain): Update.
1053 * mips-tdep.c (mips_frame_chain): Update.
1054 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1055 * m32r-tdep.c (m32r_frame_this_id): Update.
1056 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1057 * frv-tdep.c (frv_frame_this_id): Update.
1058 * d10v-tdep.c (d10v_frame_this_id): Update.
1059 * cris-tdep.c (cris_frame_chain): Update.
1060 * blockframe.c (legacy_frame_chain_valid): Update.
1061 * avr-tdep.c (avr_frame_this_id): Update.
1062 * arm-tdep.c (arm_prologue_this_id): Update.
1063 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1064 * objfiles.c (objfile_relocate): Update.
1065 * mipsread.c (mipscoff_symfile_read): Update.
1066 (mipscoff_symfile_read): Update.
1067 * mdebugread.c (parse_partial_symbols): Update.
1068 * dwarfread.c (read_file_scope): Update.
1069 * dwarf2read.c (read_file_scope): Update.
1070 * dbxread.c (read_dbx_symtab): Update.
1071 (read_dbx_symtab): Update.
1072 * coffread.c (complete_symtab): Update.
1073
1074 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1075
1076 * top.c (quit_target): New static helper function.
1077 (quit_force): Moved code to quit_target(). Call quit_target()
1078 via catch_errors() to catch errors during quit.
1079
1080 2003-09-11 David Carlton <carlton@kealia.com>
1081
1082 * buildsym.c (finish_block): Use allocate_block to allocate the
1083 block.
1084 * mdebugread.c (new_block): Add FIXME.
1085
1086 2003-09-11 David Carlton <carlton@kealia.com>
1087
1088 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1089 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1090 (recursive_dump_type): Ditto.
1091 * printcmd.c (print_formatted): Ditto.
1092 * typeprint.c (print_type_scalar): Ditto.
1093 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1094 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1095 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1096 maint_cplus_cmd_list.
1097 * cp-support.c: Make maint_cplus_cmd_list extern.
1098 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1099 command.h.
1100 (lookup_symbol_file): Look in possible namespace blocks when
1101 appropriate.
1102 (initialize_namespace_symtab): New.
1103 (get_possible_namespace_block, free_namespace_block)
1104 (check_possible_namespace_symbols)
1105 (check_possible_namespace_symbols_loop)
1106 (check_one_possible_namespace_symbol)
1107 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1108 (_initialize_cp_namespace): Ditto.
1109 * block.h: Declare allocate_block.
1110 * block.c (allocate_block): New.
1111 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1112 allocate_block.
1113 * symfile.h: Update declaration of add_psymbol_to_list.
1114 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1115 question.
1116 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1117 scan_partial_symbols_call.
1118 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1119 helper functions.
1120 (add_partial_symbol): If necessary, scan mangled names for names
1121 of namespaces.
1122 (add_partial_namespace): Add NAMESPACE argument; generate partial
1123 symbols associated to namespaces.
1124 (add_partial_enumeration): Add NAMESPACE argument.
1125 (new_symbol): Allow namespace syms.
1126 (read_namespace): Generate namespace syms.
1127 * objfiles.h: Add opaque declaration of struct symtab.
1128 (struct objfile): Add cp_namespace_symtab member.
1129 * objfiles.c (allocate_objfile): Set
1130 objfile->cp_namespace_symtab.
1131 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1132 dictionary_h, command_h.
1133
1134 2003-09-11 Andrew Cagney <cagney@redhat.com>
1135
1136 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1137 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1138 near the function's end.
1139 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1140 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1141 regcache_raw_write_signed to set SP_REGNUM.
1142
1143 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1144
1145 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1146 orig_addrs is set up properly.
1147
1148 2003-09-11 Andrew Cagney <cagney@redhat.com>
1149
1150 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1151 * gdbarch.h, gdbarch.c: Re-generate.
1152 * infcall.c (call_function_by_hand): Update.
1153 * hppa-tdep.c (hppa_push_arguments): Update.
1154 * ada-lang.c (place_on_stack): Update.
1155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1156 * sparc-tdep.c (sparc_gdbarch_init): Update.
1157 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1158 * hppa-tdep.c (hppa_gdbarch_init): Update.
1159 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1160 stack_align.
1161
1162 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1163
1164 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1165 register do need a frame.
1166
1167 2003-09-11 Andrew Cagney <cagney@redhat.com>
1168
1169 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1170 buildable since GDB 5.0.
1171 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1172 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1173 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1174 * irix4-nat.c: Delete file.
1175 * config/mips/irix4.mh: Delete file.
1176 * config/mips/irix3.mh: Delete file.
1177 * config/mips/irix3.mt: Delete file.
1178 * config/mips/tm-irix3.h: Delete file.
1179 * config/mips/nm-irix3.h: Delete file.
1180 * config/mips/xm-irix3.h: Delete file.
1181 * config/mips/nm-irix4.h: Delete file.
1182 * config/mips/xm-irix4.h: Delete file.
1183 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1184
1185 2003-09-10 J. Brobecker <brobecker@gnat.com>
1186
1187 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1188 * Makefile.in (hppa-tdep.o): Update dependencies.
1189
1190 2003-09-10 James E Wilson <wilson@specifixinc.com>
1191
1192 * MAINTAINERS: Change my e-mail address. Move to paper trail
1193 section.
1194
1195 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1196
1197 * MAINTAINERS (frv): New ISA entry.
1198
1199 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1200
1201 * frv-tdep.c (dis-asm.h): Include.
1202 * Makefile.in (frv-tdep.o): Update dependencies.
1203
1204 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1205
1206 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1207 Fix typo for high range of floating registers.
1208
1209 2003-09-09 David Carlton <carlton@kealia.com>
1210
1211 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1212 highpc initialization here out of scan_partial_symbols.
1213 (scan_partial_symbols): Restructure into a recursive version,
1214 calling add_partial_namespace and add_partial_enumeration when
1215 appropriate.
1216 (add_partial_namespace): New.
1217 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1218
1219 2003-09-09 Andrew Cagney <cagney@redhat.com>
1220
1221 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1222 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1223 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1224 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1225
1226 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1227 (rs6000_push_dummy_call): Set the "TOC" register.
1228
1229 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1230 methods "max_register_raw_size", "max_register_virtual_size" or
1231 "register_virtual_size".
1232
1233 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1234
1235 * MAINTAINERS: Update my e-mail address.
1236
1237 2003-09-09 Andrew Cagney <cagney@redhat.com>
1238
1239 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1240 (rs6000_push_dummy_call): Store the struct return address.
1241 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1242
1243 2003-09-09 Andrew Cagney <cagney@redhat.com>
1244
1245 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1246 "ppc_sysv_abi_push_arguments".
1247 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1248 "ppc_sysv_abi_push_arguments".
1249 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1250 instead of "push_arguments".
1251 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1252
1253 2003-09-09 Andrew Cagney <cagney@redhat.com>
1254
1255 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1256 instead of CALL_DUMMY_ADDRESS.
1257
1258 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1259
1260 * p-lang.c: Eliminate "register".
1261 * c-lang.c: Ditto.
1262 * expprint.c: Ditto.
1263 * f-lang.c: Ditto.
1264 * jv-lang.c: Ditto.
1265 * language.c: Ditto.
1266 * m2-lang.c: Ditto.
1267 * parse.c: Ditto.
1268 * scm-lang.c: Ditto.
1269 * objc-lang.c: Ditto.
1270
1271 2003-09-09 Nick Clifton <nickc@redhat.com>
1272
1273 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1274
1275 2003-09-04 Andrew Cagney <cagney@redhat.com>
1276
1277 * avr-tdep.c: Include "dis-asm.h".
1278 * cris-tdep.c: Include "dis-asm.h".
1279 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1280 instead of corresponding typedef.
1281 * h8300-tdep.c: Include "dis-asm.h".
1282 * ia64-tdep.c: Include "dis-asm.h".
1283 * i386-tdep.c: Include "dis-asm.h".
1284 (i386_print_insn): Use "struct disassemble_info" instead of
1285 corresponding typedef.
1286 * m68k-tdep.c: Include "dis-asm.h".
1287 * mcore-tdep.c: Include "dis-asm.h".
1288 * mips-tdep.c: Include "dis-asm.h".
1289 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1290 instead of corresponding typedef.
1291 * ns32k-tdep.c: Include "dis-asm.h".
1292 * s390-tdep.c: Include "dis-asm.h".
1293 * sparc-tdep.c: Include "dis-asm.h".
1294 * vax-tdep.c: Include "dis-asm.h".
1295 * v850-tdep.c: Include "dis-asm.h".
1296 * mn10300-tdep.c: Include "dis-asm.h".
1297 * rs6000-tdep.c: Include "dis-asm.h".
1298 * xstormy16-tdep.c: Include "dis-asm.h".
1299 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1300 print_insn_xstormy16.
1301 * Makefile.in (v850-tdep.o): Update dependencies.
1302 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1303 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1304 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1305 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1306 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1307 (gdbarch_h): Remove $(dis_asm_h).
1308 * disasm.c: Include "dis-asm.h".
1309 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1310 corresponding typedef.
1311 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1312 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1313 * gdbarch.sh: Do not include "dis-asm.h".
1314 (struct disassemble_info): Declare opaque.
1315 (TARGET_PRINT_INSN): Update declaration.
1316 * gdbarch.h, gdbarch.c: Re-generate.
1317
1318 2003-09-08 Andrew Cagney <cagney@redhat.com>
1319
1320 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1321 CALL_DUMMY_ADDRESS, change to a predicate.
1322 * gdbarch.h, gdbarch.c: Re-generate.
1323 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1324 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1325 * infcall.c (call_function_by_hand): Ditto.
1326 * sparc-tdep.c (sparc_push_return_address): Ditto.
1327 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1328 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1329 CALL_DUMMY_ADDRESS with entry_point_address.
1330 * v850-tdep.c (v850_push_return_address): Ditto.
1331 * s390-tdep.c (s390_push_return_address): Ditto.
1332 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1333 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1334 * mcore-tdep.c (mcore_push_return_address): Ditto.
1335 * cris-tdep.c (cris_push_return_address): Ditto.
1336 * arm-tdep.c (arm_push_return_address): Ditto.
1337
1338 2003-09-08 Andrew Cagney <cagney@redhat.com>
1339
1340 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1341 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1342 and REG_UNMODIFIED to REG_SAME_VALUE.
1343 (execute_cfa_program): Update.
1344 (dwarf2_frame_cache): Update. Initialize table to
1345 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1346 location.
1347 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1348
1349 2003-09-08 Andrew Cagney <cagney@redhat.com>
1350
1351 * gnu-nat.c: Remove "inline" function attribute.
1352 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1353
1354 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1355
1356 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1357 target.
1358
1359 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1360
1361 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1362 (frame_extra_info): Rename this struct to frv_unwind_cache.
1363 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1364 Add fields ``prev_sp'' and ``base''.
1365 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1366 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1367 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1368 Delete.
1369 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1370 Revise all callers. Fill in the unwind cache argument and make
1371 other adjustments to account for new frame mechanisms.
1372 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1373 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1374 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1375 (frv_frame_unwind, frv_frame_base): New structs.
1376 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1377 additional arguments expected by this method and adjust function
1378 body accordingly.
1379 (frv_gdbarch_init): Remove calls to the following functions:
1380 set_gdbarch_deprecated_init_frame_pc(),
1381 set_gdbarch_deprecated_saved_pc_after_call(),
1382 set_gdbarch_deprecated_frame_chain(),
1383 set_gdbarch_deprecated_frame_saved_pc(),
1384 set_gdbarch_deprecated_frame_init_saved_regs(),
1385 set_gdbarch_deprecated_push_arguments(),
1386 set_gdbarch_deprecated_push_return_address(),
1387 set_gdbarch_deprecated_pop_frame(),
1388 set_gdbarch_deprecated_call_dummy_words(),
1389 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1390 set_gdbarch_deprecated_init_extra_frame_info(),
1391 set_gdbarch_deprecated_dummy_write_sp(), and
1392 set_gdbarch_deprecated_pc_in_call_dummy().
1393 Add calls to the following functions:
1394 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1395 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1396 frame_base_set_default().
1397 * Makefile.in (frv-tdep.o): Update dependencies.
1398
1399 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1400
1401 * dwarf2-frame.c (read_encoded_value): Add support for
1402 DW_EH_PE_aligned encoding.
1403
1404 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1405
1406 * infrun.c (normal_stop): Don't print a message if the inferior
1407 has exited.
1408
1409 2003-09-08 Jim Blandy <jimb@redhat.com>
1410
1411 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1412 * dbxread.c: #include "gdb_assert.h".
1413 (read_dbx_symtab): If the objfile has no .data section, use the
1414 section index for the .bss section instead.
1415
1416 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1417
1418 * frame.c (deprecated_safe_get_selected_frame): New function.
1419 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1420 * findvar.c (read_var_value): Call it.
1421
1422 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1423
1424 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1425 (sh64-tdep.o): Add dependencies.
1426 * configure.tgt: Add FIXME to sh-*-linux*.
1427 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1428 (sh_gdbarch_init): Always set correct sh_show_regs function
1429 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1430 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1431 * sh64-tdep.c: New file, containing all sh64 related code from
1432 sh-tdep.c.
1433 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1434 * config/sh/linux.mt (TDEPFILES): Ditto.
1435 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1436 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1437 * config/sh/wince.mt (TDEPFILES): Ditto.
1438
1439 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1440
1441 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1442 (stop_wait_callback): Handle !lp->signalled also.
1443 (lin_lwp_has_pending, flush_callback): New functions.
1444 (lin_lwp_wait): Call flush_callback.
1445 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1446 (linux_proc_pending_signals): New function.
1447 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1448
1449 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1450
1451 From Nick Kelsey <nickk@ubicom.com>:
1452 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1453 when the stop PC is at the beginning of a function also.
1454
1455 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1456
1457 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1458 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1459
1460 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1461
1462 * sol-thread.c: Include "gdb_string.h".
1463
1464 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1465
1466 * gcore.c: Reorder include files in alphabetical order. Include
1467 "gdb_assert.h". Various coding style fixes.
1468 (derive_stack_segment, derive_heap_segment): Replace check for
1469 non-null BOTTOM and TOP with gdb_assert.
1470 (derive_heap_segment): Replace check for successful creation of
1471 ZERO with gdb_assert.
1472 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1473
1474 2003-09-04 Andrew Cagney <cagney@redhat.com>
1475
1476 * thread-db.c (verbose_dlsym): New function.
1477 (thread_db_load): Use verbose_dlsym
1478 (thread_db_new_objfile): Print that libthread_db was loaded, and
1479 that thread debugging was enabled.
1480
1481 2003-09-04 Andrew Cagney <cagney@redhat.com>
1482
1483 * configure.tgt: Add "mips64*-*-*" target. Delete
1484 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1485 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1486 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1487 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1488 mips*-sony-*, and mips64*-*-elf* targets.
1489 * config/mips/embedl.mt: Delete file.
1490 * config/mips/embedl64.mt: Delete file.
1491 * config/mips/mips.mt: Delete file.
1492 * config/mips/mips64.mt: Delete file.
1493 * config/mips/tm-embed.h: Delete file.
1494 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1495 * config/mips/embed64.mt: Delete out-of-date comment.
1496
1497 2003-09-04 Andrew Cagney <cagney@redhat.com>
1498
1499 * hppa-tdep.c (hppa_gdbarch_init): Set
1500 "have_nonsteppable_watchpoint".
1501 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1502 * mips-tdep.c (mips_dump_tdep): Do not print
1503 HAVE_NONSTEPPABLE_WATCHPOINT.
1504 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1505 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1506 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1507 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1508
1509 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1510
1511 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1512 unused code. Add comment.
1513
1514 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1515
1516 * breakpoint.c (watchpoint_check): Check for pc being in an
1517 epilogue if watchpoint frame couldn't be found.
1518
1519 2003-09-04 Andrew Cagney <cagney@redhat.com>
1520
1521 * Makefile.in: Re-generate all dependencies.
1522
1523 2003-09-03 Andrew Cagney <cagney@redhat.com>
1524
1525 * arch-utils.h (legacy_print_insn): Delete declaration.
1526 * arch-utils.c (legacy_print_insn): Delete function.
1527 * disasm.c (deprecated_tm_print_insn_info): Delete.
1528 (_initialize_disasm): Delete function, contained code initializing
1529 deprecated_tm_print_insn_info.
1530 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1531 (deprecated_tm_print_insn_info): Delete.
1532 (TARGET_PRINT_INSN): Do not provide a default.
1533 * gdbarch.h, gdbarch.c: Re-generate.
1534
1535 2003-09-03 Andrew Cagney <cagney@redhat.com>
1536
1537 * disasm.c (fprintf_disasm): New function.
1538 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1539 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1540 reverts 2003-08-14 change.
1541 (_initialize_disasm): Call "init_disassemble_info", instead of
1542 INIT_DISASSEMBLE_INFO_NO_ARCH.
1543
1544 2003-09-03 Michael Snyder <msnyder@redhat.com>
1545
1546 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1547
1548 2003-09-03 Andrew Cagney <cagney@redhat.com>
1549
1550 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1551 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1552 * symfile.c (syms_from_objfile): Update.
1553 (reread_symbols): `Update
1554 * exec.c (exec_file_attach): Update.
1555 (exec_file_attach): Update.
1556 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1557 2003-08-29 change.
1558 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1559
1560 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1561
1562 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1563 trad-frame.h.
1564 (arm_get_cache): Delete macro.
1565 (struct arm_prologue_cache): Update comments. Make saved_regs into
1566 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1567 to prev_sp.
1568 (thumb_scan_prologue): Update for cache changes. Don't call
1569 DEPRECATED_PC_IN_CALL_DUMMY.
1570 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1571 argument and use it in desperation search for our prologue. Do not
1572 search past the specified PC.
1573 (arm_make_prologue_cache): Simplify.
1574
1575 (arm_prologue_this_id, arm_prologue_prev_register)
1576 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1577 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1578 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1579 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1580 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1581
1582 (arm_frame_chain_valid, arm_find_callers_reg)
1583 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1584 (arm_pop_frame): Delete obsolete methods.
1585 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1586
1587 (arm_gdbarch_init): Update for new frame methods. Register prologue
1588 and sigtramp unwinders. Set the default frame base method.
1589
1590 * Makefile.in (arm-tdep.o): Update dependencies.
1591 * varobj.c (find_frame_addr_in_frame_chain): Call
1592 get_frame_base_address.
1593 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1594
1595 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1596
1597 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1598 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1599 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1600 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1601 Take NEXT_FRAME and CACHE arguments. Call
1602 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1603 Set unwound_pc in CACHE instead of modifying the frame argument.
1604 Don't bother checking the frame type when looking for sigtramp
1605 frames.
1606 (arm_make_prologue_cache, arm_frame_chain)
1607 (arm_init_extra_frame_info): New functions.
1608
1609 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1610
1611 * arm-tdep.c (arm_get_cache): Define.
1612 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1613 unwound_sp, unwound_pc, and saved_regs.
1614 (thumb_scan_prologue): Take a cache instead of the frame.
1615 (arm_scan_prologue): Likewise.
1616 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1617 instead of a temporary frame.
1618 (arm_init_extra_frame_info): Allocate and use a cache.
1619 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1620
1621 2003-09-03 Andrew Cagney <cagney@redhat.com>
1622
1623 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1624 * config/mips/wince.mt (TM_CLIBS): Ditto.
1625 * config/sh/wince.mt (TM_CLIBS): Ditto.
1626 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1627 * config/sparc/sp64.mt (CC): Delete.
1628
1629 2003-09-03 Andrew Cagney <cagney@redhat.com>
1630
1631 * defs.h: Do not include "arch-utils.h".
1632 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1633 GDB_MULTI_ARCH_PURE.
1634 * configure.in (GDB_MULTI_ARCH): Do not define.
1635 * configure, config.in: Regenerate.
1636 * configure.tgt: Do not set variable "gdb_multi_arch".
1637 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1638 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1639 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1640 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1641 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1642 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1643 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1644 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1645 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1646 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1647 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1648 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1649 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1650 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1651 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1652 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1653 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1654 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1655
1656 2003-08-30 Michael Chastain <mec@shout.net>
1657
1658 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1659 * config/m68k/nm-hp300hpux.h: Delete.
1660 * config/m68k/tm-hp300hpux.h: Delete.
1661 * config/m68k/xm-hp300hpux.h: Delete.
1662 * config/m68k/xm-hp300bsd.h: Delete.
1663 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1664 tm-hp300hpux.h, xm-hp300hpux.h.
1665 * somsolib.c: Remove comment about hp300 shared libraries.
1666
1667 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1668
1669 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1670 Only define PTRACE_GET_THREAD_AREA is not already defined.
1671 Various style fixes in code and comments and some additional
1672 spelling fixes in comments. Move after functions dealing with
1673 debug registers.
1674 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1675 Fix coding-style.
1676
1677 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1678 frame_unwind_register_unsigned instead of
1679 frame_unwind_unsigned_register.
1680
1681 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1682
1683 * configure.in: Search for gethostbyname in libnsl.
1684 * configure: Regenerated.
1685
1686 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1687
1688 * configure.in: Remove redundant AC_MSG_RESULT in check for
1689 uintptr_t in stdint.h.
1690 * configure: Regenerated.
1691
1692 * amd64-nat.h (struct regcache): Add opaque declaration.
1693
1694 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1695 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1696 Change "register array" to "register cache" in comments.
1697 (x86_64_linux_gregset64_reg_offset): New variable.
1698 (GETREGS_SUPPLIES): Remove macro.
1699 (supply_gregset): Call amd64_supply_native_gregset instead of
1700 x86_64_linux_supply_gregset.
1701 (fill_gregset): Rename `regno' to `regnum'. Call
1702 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1703 (store_regs): Rename `regno' to `regnum'.
1704 (store_fpregs): Rename `regno' to `regnum'.
1705 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1706 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1707 Reorganize function a bit.
1708 (store_inferior_registers): Rename `regno' to `regnum'. Use
1709 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1710 Reorganize function a bit.
1711 (_initialize_x86_64_linux_nat): New function.
1712 * config/i386/x86-64linux.mh.
1713
1714 2003-08-29 Andrew Cagney <cagney@redhat.com>
1715
1716 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1717 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1718 (target_remove_watchpoint): Delete macro.
1719 (target_insert_watchpoint): Delete macro.
1720 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1721 (remote_mips_stopped_by_watchpoint): Delete declaration.
1722 (remote_mips_remove_watchpoint): Delete declaration.
1723 (remote_mips_set_watchpoint): Delete declaration.
1724 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1725 * remote-mips.c (_initialize_remote_mips): Set
1726 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1727 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1728 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1729 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1730 (mips_stopped_by_watchpoint): Rename
1731 remote_mips_stopped_by_watchpoint.
1732 (mips_can_hardware_watchpoint): Rename
1733 remote_mips_can_use_hardware_watchpoint, update function
1734 signature.
1735
1736 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1737
1738 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1739 USER_DS. We haven't given them a register number yet.
1740
1741 * amd64-nat.h: New file.
1742 * amd64-nat.c: New file.
1743 * amd64fbsd-nat.c: Include "amd64-nat.h".
1744 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1745 (amd64fbsd32_r_reg_offset): New variable.
1746 (supply_gregset): Simply call amd64_supply_native_gregset.
1747 (fill_gregset): Rename `regno' to `regnum'. Simply call
1748 amd64_collect_native_gregset.
1749 (fill_fpregset): Rename `regno' to `regnum'.
1750 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1751 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1752 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1753 `fpregset_t'. Call amd64_supply_native_gregset instead of
1754 supply_gregset. Call x86_64_supply_fxsave instead of
1755 supply_fpregset.
1756 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1757 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1758 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1759 `fpregset_t'. Call amd64_collect_native_gregset instead of
1760 fill_gregset. Call x86_64_collect_fxsave instead of
1761 fill_fpregset.
1762 (_initialize_am64fbsd_nat): Initialize
1763 amd64_native_gregset32_reg_offset and
1764 amd64_native_gregset64_reg_offset.
1765 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1766
1767 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1768 null pointer. Fix typo in comment.
1769
1770 * regcache.c (supply_register): Reimplement to call
1771 regcache_raw_supply.
1772 (regcache_collect): Reimplement by calling regcache_raw_collect.
1773
1774 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1775
1776 * regcache.c (register_buffer): Consitify first argument.
1777 (regcache_raw_supply, regcache_raw_collect): New
1778 functions.
1779
1780 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1781
1782 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1783 by Nathan J. Williams.
1784
1785 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1786
1787 * lin-lwp.c (wait_lwp): New function, copied from
1788 stop_wait_callback. Clean up.
1789 (stop_wait_callback): Use wait_lwp.
1790
1791 2003-08-28 Andrew Cagney <cagney@redhat.com>
1792
1793 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1794 flavour and disassembler options.
1795 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1796 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1797 deprecated_tm_print_insn_info.
1798
1799 2003-08-27 Andrew Cagney <cagney@redhat.com>
1800
1801 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1802 Use target_read_memory.
1803 (s390_get_frame_info): Update. Do not reference
1804 deprecated_tm_print_insn_info.
1805 (s390_check_function_end, s390_is_sigreturn): Ditto.
1806
1807 2003-08-27 Andrew Cagney <cagney@redhat.com>
1808
1809 * Makefile.in (cris-tdep.o): Update dependencies.
1810 * cris-tdep.c: Include "gdb_assert.h".
1811 (cris_gdbarch_init): Set print_insn.
1812 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1813 (cris_delayed_get_disassembler): Simplify, directly call the
1814 disassembler returned by cris_get_disassembler.
1815 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1816 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1817 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1818 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1819 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1820 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1821 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1822 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1823 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1824 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1825 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1826 (gdb_print_insn_sparc): Delete function.
1827 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1828 deprecated_tm_print_insn_info.
1829 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1830 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1831 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1833 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1834 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1835 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1836 (s390_gdbarch_init): Set print_insn.
1837
1838 2003-08-27 Andrew Cagney <cagney@redhat.com>
1839
1840 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1841 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1842 * infcall.c (call_function_by_hand): Convert the entry point
1843 address into a code address.
1844
1845 2003-08-27 Andrew Cagney <cagney@redhat.com>
1846
1847 * dsrec.c: Include "gdb_string.h".
1848 * Makefile.in (dsrec.o): Update dependencies.
1849
1850 2003-08-27 Michael Chastain <mec@shout.net>
1851
1852 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1853
1854 2003-08-27 Andrew Cagney <cagney@redhat.com>
1855
1856 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1857 (alpha_osf1_init_abi): Do not set call_dummy_address.
1858
1859 2003-08-27 David Carlton <carlton@kealia.com>
1860
1861 From Randolph Chung <tausq@debian.org>:
1862 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1863 compiles with -Wformat-nonliteral -Werror.
1864
1865 2003-08-26 Jim Blandy <jimb@redhat.com>
1866
1867 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1868 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1869 bfd_lookup_symbol, since we only want symbols in code sections.
1870 (look_for_base): Pass zero as the SECT_FLAGS argument to
1871 bfd_lookup_symbol, since we're not concerned about which section
1872 the symbol is in.
1873
1874 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1875
1876 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1877 we are frameless or the return address register is already known.
1878
1879 2003-08-26 Andrew Cagney <cagney@redhat.com>
1880
1881 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1882 in size. Add comments.
1883
1884 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1885
1886 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1887 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1888
1889 2003-08-26 Jason Merrill <jason@redhat.com>
1890
1891 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1892 case out of #ifdef MIPS block.
1893
1894 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1895
1896 PR java/1322
1897 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1898 available before calling SECT_OFF_TEXT.
1899 * PROBLEMS: Remove description of java/1322.
1900
1901 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1902
1903 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1904 bof, and nat0-nat127 as pseudo-registers.
1905 (ia64_frame_cache): New struct used to cache frame info.
1906 (ia64_register_reggroup_p): New routine used to override default
1907 register grouping so registers without names are still saved and
1908 restored.
1909 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1910 pseudo values.
1911 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1912 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1913 (ia64_alloc_frame_cache): New routine to create a new
1914 ia64_frame_cache.
1915 (examine_prologue): Change prototype to add next_frame pointer.
1916 Assume frameless until otherwise proven. Verify that the cfm for
1917 current frame matches the cfm that should occur for the prologues
1918 alloc insn and if equal, mark as not frameless. At end of routine,
1919 if not frameless, calculate registers for the previous frame and store
1920 in the cache, if a cache is provided.
1921 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1922 and pass 0 for next_frame.
1923 (ia64_store_return_value): Change to use convert_typed_floating()
1924 instead of calling ia64_convert_to_raw().
1925 (ia64_extract_return_value): Change to use convert_typed_floating()
1926 instead of calling ia64_convert_to_virtual().
1927 (ia64_frame_cache): New routine to support new frame model.
1928 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1929 (ia64_frame_sniffer): Ditto.
1930 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1931 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1932 (ia64_sigtramp_frame_prev_register): Ditto.
1933 (ia64_sigtramp_frame_sniffer): Ditto.
1934 (ia64_frame_base_address): Ditto.
1935 (ia64_extract_struct_value_address): Change to issue error message.
1936 (ia64_frame_align): New routine to align sp.
1937 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1938 (ia64_push_arguments): Removed. Logic moved to
1939 ia64_push_dummy_call().
1940 (ia64_push_return_address): Ditto.
1941 (ia64_unwind_dummy_id): New function.
1942 (ia64_unwind_pc): Ditto.
1943 (ia64_convert_register_p): Ditto.
1944 (ia64_register_to_value): Ditto.
1945 (ia64_value_to_register): Ditto.
1946 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1947 (ia64_register_byte, ia64_register_raw_size): Ditto.
1948 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1949 (ia64_saved_pc_after_call): Ditto.
1950 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1951 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1952 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1953 (ia64_register_convert_to_raw): Ditto.
1954 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1955 (ia64_init_extra_frame_info): Ditto.
1956 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1957 (ia64_gdbarch_init): Remove registering of deprecated functions that
1958 are no longer used. Add registration of new gdbarch functions.
1959 Remove registering deprecated_write_sp. Replace
1960 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1961 Delete set_gdbarch_deprecated_register_convertible(),
1962 set_gdbarch_deprecated_register_convert_to_virtual(), and
1963 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1964 set_gdbarch_deprecated_register_size(),
1965 set_gdbarch_deprecated_register_bytes(),
1966 set_gdbarch_pcregnum(),
1967 set_gdbarch_deprecated_register_byte(),
1968 set_gdbarch_deprecated_register_raw_size(),
1969 set_gdbarch_deprecated_max_register_raw_size(),
1970 set_gdbarch_deprecated_register_virtual_size(),
1971 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1972 Replace set_gdbarch_deprecated_extract_return_value() with
1973 set_gdbarch_extract_return_value(). Remove calls to:
1974 set_gdbarch_deprecated_saved_pc_after_call();
1975 set_gdbarch_deprecated_frame_chain(),
1976 set_gdbarch_deprecated_frame_saved_pc(),
1977 set_gdbarch_deprecated_frame_init_saved_regs(),
1978 set_gdbarch_deprecated_get_saved_register(),
1979 set_gdbarch_deprecated_call_dummy_words(),
1980 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1981 set_gdbarch_deprecated_init_extra_frame_info(),
1982 set_gdbarch_deprecated_frame_args_address(),
1983 set_gdbarch_deprecated_frame_locals_address(),
1984 and set_gdbarch_deprecated_dummy_write_sp().
1985 Add set_gdbarch_convert_register_p(),
1986 set_gdbarch_register_to_value(),
1987 set_gdbarch_value_to_register(),
1988 set_gdbarch_push_dummy_call(),
1989 set_gdbarch_frame_align(),
1990 set_gdbarch_unwind_dummy_id(),
1991 set_gdbarch_unwind_pc(),
1992 frame_unwind_append_sniffer(),
1993 frame_unwind_append_sniffer(),
1994 and frame_base_set_default().
1995
1996 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1997
1998 * configure.tgt: Document need for special "mipsisa64" handling.
1999 (mipsisa64*-*-linux64): Handle as target linux64.
2000 (mipsisa64*-*-*): Handle as target embed64.
2001
2002 2003-08-18 Michael Chastain <mec@shout.net>
2003
2004 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2005 objfile bug.
2006
2007 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2008
2009 * i387-tdep.h: Update copyright date.
2010 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2011
2012 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2013 CFLAGS games to reflect reality.
2014
2015 2003-08-24 Andrew Cagney <cagney@redhat.com>
2016
2017 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2018 GDB_MULTI_ARCH is always non-zero.
2019 * osabi.c (_initialize_gdb_osabi): Ditto.
2020 (gdbarch_init_osabi): Ditto.
2021 * sparc-tdep.c: Ditto for #if code.
2022
2023 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2024
2025 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2026 Update comments.
2027 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2028 comments.
2029 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2030 x86_64_supply_fxsave.
2031 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2032 x86_64_supply_fxsave.
2033 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2034 x86_64_supply_fxsave.
2035
2036 2003-08-23 Andreas Jaeger <aj@suse.de>
2037
2038 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2039 i387_supply_fxsave.
2040
2041 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2042
2043 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2044 i387_supply_register.
2045 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2046 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2047 i387_supply_fsave.
2048 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2049 i387_supply_fxsave.
2050 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2051 i387_supply_fsave.
2052 * i386bsd-nat.c (supply_fpregset): Adjust call to
2053 i387_supply_fsave.
2054 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2055 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2056 supply_fpregset.
2057 (store_inferior_registers): Remove extraneous whitespace. Call
2058 i387_fill_fsave instead of fill_fpregset.
2059 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2060 (supply_fpregset): Likewise.
2061 * i386v4-nat.c (supply_fpregset): Adjust call to
2062 i387_supply_fsave.
2063 * i386-interix-nat.c (supply_fpregset): Adjust call to
2064 i387_supply_fsave.
2065 * i386-linux-nat.c (supply_fpregset): Adjust call to
2066 i387_supply_fsave.
2067 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2068 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2069 i387supply_fsave and i387_supply_fxsave.
2070 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2071 Incorporate code from `i387_supply_register.
2072 (i387_supply_register): Remove.
2073 (i387_supply_fxsave): Add `regnum' argument.
2074 Update comments.
2075 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2076 prototype.
2077 (i387_supply_register): remove prototype.
2078 Update comments.
2079
2080 2003-08-22 Michael Chastain <mec@shout.net>
2081
2082 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2083 Add lines for files in gdb/testsuite/gdb.cp/* that are
2084 still not 8.3 unique.
2085
2086 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2087
2088 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2089 TYPE_VPTR_FIELDNO is valid.
2090
2091 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2092
2093 * utils.c (set_width_command): Remove prototypes.
2094 (set_screen_size): New prototype.
2095 (init_page_info): Simplify by fetching the screen size from
2096 Readline. Call set_screen_size.
2097 (set_screen_size): New function.
2098 (set_width): Add missing whitespace in comment.
2099 (set_width_command): Call set_screen_size.
2100 (set_height_command): New function.
2101 (initialize_utils): Fix formatting. Make "set height" command
2102 call set_height_command. Remove redundant code that turns off
2103 pagination if output isn't a terminal. Remove redundant call to
2104 set_width_command.
2105
2106 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2107
2108 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2109 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2110 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2111 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2112 `case' keyword.
2113 (sparc64_register_info): Give the reister with number
2114 SPARC64_STATE_REGNUM a name.
2115 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2116 %asi and %ccr.
2117 (sparc64_push_dummy_call): Take BIAS into account when checking
2118 stcak alignment.
2119 (sparc_software_single_step): Remove assertions that check whether
2120 NPC and NNPC were zero.
2121 (sparc_supply_rwindow): Make public. Merge functionality with
2122 sparc64_supply_rwindow.
2123 (sparc_fill_rwindow): Make public. Merge functionality with
2124 sparc64_fill_rwindow.
2125 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2126 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2127 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2128 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2129 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2130
2131 * reggroups.c: Add whitespace after declarations of local
2132 variables in functions.
2133
2134 2003-08-21 Michael Chastain <mec@shout.net>
2135
2136 * gdbtypes.h: Change array bound type from an int to enum.
2137
2138 2003-08-21 Andrew Cagney <cagney@redhat.com>
2139
2140 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2141 * config/sparc/tm-sparc.h: Ditto.
2142 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2143 unconditionally.
2144 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2145
2146 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2147
2148 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2149 (register_objfile_data, set_objfile_data, objfile_data): New
2150 prototypes.
2151 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2152 prototypes.
2153 (allocate_objfile): Call objfile_alloc_data.
2154 (free_objfile): Call objfile_free_data.
2155 (struct objfile_data): New.
2156 (struct objfile_data_registration): New.
2157 (struct objfile_data_registry): New.
2158 (objfile_data_registry): New variable.
2159 (register_objfile_data): New function.
2160 (objfile_alloc_data, objfile_free_data): New functions.
2161 (set_objfile_data, objfile_data): New functions.
2162 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2163 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2164 (_initialize_dwarf2_frame): New function and prototype.
2165
2166 2003-08-21 Andrew Cagney <cagney@redhat.com>
2167
2168 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2169 a specific architecture.
2170 * arch-utils.h (set_architecture_from_arch_mach): Delete
2171 declaration.
2172 (target_architecture_hook): Delete declaration.
2173 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2174 (default_float_format): Assume GDB_MULTI_ARCH.
2175 (default_double_format): Assume GDB_MULTI_ARCH.
2176 (set_endian_from_file): Delete function.
2177 (arch_ok): Delete function.
2178 (set_arch): Delete function.
2179 (set_architecture_from_arch_mach): Delete function.
2180 (set_architecture_from_file): Delete function.
2181 (set_architecture): Assume GDB_MULTI_ARCH.
2182 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2183
2184 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2185
2186 Rewrite FreeBSD/sparc64 native configuration.
2187 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2188 * sparc64fbsd-nat.c: New file.
2189 * sparc64fbsd-tdep.c: New file.
2190 * sparc64-tdep.c sparc64-tdep.h: New files.
2191 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2192 sparc64fbsd-tdep.o): New dependencies.
2193 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2194 and sparc64fbsd-tdep.c.
2195 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2196 * config/sparc/fbsd.mh: Remove copyright notice.
2197 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2198 sparcbsd-nat.o.
2199 * config/sparc/fbsd.mt: Remove copyright notice.
2200 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2201 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2202 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2203 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2204 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2205 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2206 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2207 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2208 "sparc/tm-sp64.h".
2209 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2210 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2211
2212 2003-08-21 Michael Chastain <mec@shout.net>
2213
2214 * symtab.h: Add doco on the space critical structures and
2215 some measurements of space usage.
2216
2217 2003-08-21 Michael Snyder <msnyder@redhat.com>
2218
2219 * tracepoint.c (trace_dump_command): Trace break address
2220 is subject to DECR_PC_AFTER_BREAK.
2221 (set_traceframe_context): Make "trace_line" an int.
2222 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2223
2224 2003-08-20 Michael Snyder <msnyder@redhat.com>
2225
2226 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2227 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2228 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2229 argument passing.
2230 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2231 functions, replace sh_push_dummy_call.
2232 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2233
2234 2003-08-20 Michael Chastain <mec@shout.net>
2235
2236 * gdbtypes.h (struct main_type): Rearrange to save space.
2237
2238 2003-08-20 Michael Snyder <msnyder@redhat.com>
2239
2240 * trad-frame.c: Comment typo fix.
2241
2242 2003-08-20 Michael Snyder <msnyder@redhat.com>
2243 Kevin Buettner <kevinb@redhat.com>
2244
2245 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2246 (frv_frame_init_saved_regs): Add declaration.
2247 (frame_extra_info): Add new field ``saved_regs''.
2248 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2249 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2250 Update frame related code.
2251 (frv_extract_struct_value_address): Adjust formatting.
2252 * Makefile.in (frv-tdep.o): Update dependencies.
2253 * config/frv/tm-frv.h (target_insert_watchpoint)
2254 (target_remove_watchpoint, target_insert_hw_breakpoint)
2255 (target_remove_hw_breakpoint): Delete these macros.
2256 (remote_insert_watchpoint, remote_remove_watchpoint)
2257 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2258 these declarations.
2259
2260 2003-08-20 Michael Chastain <mec@shout.net>
2261
2262 * defs.h (ENUM_BITFIELD): New macro.
2263 * symtab.h (ENUM_BITFIELD): Use it.
2264 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2265
2266 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2267
2268 * MAINTAINERS (write after approval): Add myself.
2269
2270 2003-08-18 Andrew Cagney <cagney@redhat.com>
2271
2272 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2273 * gdbarch.h, gdbarch.c: Re-generate.
2274 * infcall.c (call_function_by_hand): Adjust the SP by
2275 frame_red_zone_size before allocating any stack space.
2276 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2277 * x86-64-tdep.c (x86_64_frame_align): New function.
2278 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2279
2280 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2281 Remove code adjusting SP so that it skips over the Red Zone.
2282
2283 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2284
2285 * NEWS (New native configurations): Mention FreeBSD/amd64.
2286
2287 2003-08-18 Andrew Cagney <cagney@redhat.com>
2288
2289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2290 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2291 "m68k_frame_p".
2292 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2293
2294 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2295
2296 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2297
2298 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2299
2300 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2301 Define.
2302 * i386-linux-nat.c: Include "linux-nat.h".
2303 (child_post_startup_inferior): New function.
2304
2305 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2306
2307 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2308 at the start of a frameless function. This probably fixes PR
2309 backtrace/1338.
2310
2311 2003-08-17 Michael Chastain <mec@shout.net>
2312
2313 * symfile.c (find_sym_fns): Remove special case for apollo target.
2314
2315 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2316
2317 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2318 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2319 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2320 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2321 (linux_supports_tracevforkdone): New function.
2322 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2323 TRACEVFORKDONE.
2324 (child_follow_fork): Handle vfork.
2325 (linux_handle_extended_wait): Likewise. Also handle exec.
2326 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2327 * NEWS: Mention fork tracing.
2328
2329 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2330
2331 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2332
2333 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2334
2335 * Makefile.in (i386-linux-nat.o): Update dependencies.
2336 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2337 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2338 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2339 * i386-linux-nat.c: Include "linux-nat.h".
2340 (child_post_startup_inferior): New function.
2341 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2342 * infptrace.c (kill_inferior): Wrap in #ifdef.
2343 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2344 attaching to each LWP.
2345 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2346 (init_lin_lwp_ops): Fill in some more operations.
2347 * linux-nat.h (linux_enable_event_reporting)
2348 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2349 prototypes.
2350 * linux-nat.c (linux_enable_event_reporting): New function.
2351 (child_post_attach, linux_child_post_startup_inferior)
2352 (child_post_startup_inferior, child_follow_fork)
2353 (linux_handle_extended_wait, kill_inferior): New functions.
2354
2355 2003-08-16 Andrew Cagney <cagney@redhat.com>
2356
2357 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2358 * gdbarch.h, gdbarch.c: Re-generate.
2359
2360 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2361
2362 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2363
2364 2003-08-16 Andrew Cagney <cagney@redhat.com>
2365
2366 * NEWS: Mention that "set prompt-escape-char" was deleted.
2367 * top.c (get_prompt_1): Delete function.
2368 (gdb_prompt_escape):
2369 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2370 prompt-escape-char" command.
2371 (MAX_PROMPT_SIZE): Delete macro.
2372 (get_prompt): Simplify, do not call get_prompt_1.
2373
2374 2003-08-16 Andrew Cagney <cagney@redhat.com>
2375
2376 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2377 -Werror. -Wformat-nonliteral problems.
2378
2379 2003-08-15 J. Brobecker <brobecker@gnat.com>
2380
2381 Further multiarching work mostly for hppa64-*-hpux11:
2382 * hppa-tdep.h: New file.
2383 * hppa-tdep.c: #include hppa-tdep.c.
2384 (hppa32_num_regs): Renamed from hppa_num_regs.
2385 (hppa64_num_regs): New constant.
2386 (hppa64_call_dummy_breakpoint_offset): New constant.
2387 (hppa32_call_dummy_length): New constant.
2388 (hppa64_call_dummy_length): New constant.
2389 (hppa32_stack_align): Make name 32bit explicit.
2390 (hppa32_register_virtual_type): Likewise.
2391 (hppa32_extract_return_value): Likewise.
2392 (hppa32_use_struct_convention): Likewise.
2393 (hppa32_store_return_value): Likewise.
2394 (hppa64_register_virtual_type): New function.
2395 (hppa64_extract_return_value): New function.
2396 (hppa64_use_struct_convention): New function.
2397 (hppa64_store_return_value): New function.
2398 (hppa_frame_locals_address): Remove declaration, function does
2399 not exist anymore.
2400 (hppa_register_byte): Add support for PA64 ABI.
2401 (hppa_gdbarch_init): Add support for PA64 ABI.
2402 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2403 Make name 32bit explicit.
2404 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2405 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2406 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2407 (hppa64_hpux_frame_base_before_sigtramp): New function.
2408 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2409 * config/pa/tm-hppa64.h: Remove macros that are no longer
2410 necessary now that the gdbarch vector is properly setup.
2411 Transform some macros into function calls. Some minor cleanup.
2412 * config/pa/tm-hppah.h: Update function calls in macros
2413 following the function renaming in hppa-hpux-tdep.c.
2414 * Makefile.in (hppa_tdep_h): New variable.
2415 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2416
2417 2003-08-14 Michael Snyder <msnyder@redhat.com>
2418
2419 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2420
2421 2003-08-13 J. Brobecker <brobecker@gnat.com>
2422
2423 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2424 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2425 routine.
2426
2427 2003-08-13 Michael Snyder <msnyder@redhat.com>
2428
2429 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2430 (frv_saved_pc_after_call): Use deprecated ftype.
2431 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2432 (frv_remote_translate_xfer_address): Remove.
2433 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2434
2435 2003-08-13 J. Brobecker <brobecker@gnat.com>
2436
2437 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2438 initialization after the common gdbarch initialization, not before.
2439
2440 2003-08-13 J. Brobecker <brobecker@gnat.com>
2441
2442 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2443 (ADDR_BITS_REMOVE): Remove, redundant.
2444
2445 2003-08-13 J. Brobecker <brobecker@gnat.com>
2446
2447 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2448 gdbarch method to clear the 2 low bits of text addresses.
2449
2450 2003-08-12 Andrew Cagney <cagney@redhat.com>
2451
2452 * Makefile.in (dsrec.o): Update dependencies.
2453 * dsrec.c: Include "gdb_assert.h".
2454 (make_srec): Use snprintf instead of sprintf, use a literal format
2455 string.
2456
2457 2003-08-12 Andrew Cagney <cagney@redhat.com>
2458
2459 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2460 FRAME_OBSTACK_ZALLOC.
2461
2462 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2463
2464 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2465 SSE registers.
2466
2467 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2468
2469 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2470 amd64fbsd_sc_reg_offset): Add extern declarations.
2471 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2472 declarations.
2473
2474 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2475
2476 * MAINTAINERS (write after approval): Update my mail address.
2477
2478 2003-08-10 Andrew Cagney <cagney@redhat.com>
2479
2480 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2481
2482 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2483
2484 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2485 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2486 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2487 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2488 i386bsd_sc_reg_offset): Add extern declarations.
2489 * i386obsd-nat.c: Include "i386-tdep.h"
2490 (_initialize_i386obsd_nat): Remove extern declarations.
2491 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2492 declarations.
2493 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2494 declarations.
2495
2496 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2497 instead of frame_read_register.
2498 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2499 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2500 SP_REGNUM.
2501 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2502 instead of frame_unwind_unsigned_register. Use
2503 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2504 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2505 instead of read_register. Use builtin_type_void_data_ptr instead
2506 of builtin_type_void_func_ptr when extracting the address of the
2507 jmp_buf.
2508 (i386_extract_return_value, i386_store_return_value,
2509 i386_pseudo_register_read, i386_pseudo_register_write): Use
2510 register_size instead REGISTER_RAW_SIZE.
2511
2512 2003-08-10 Andrew Cagney <cagney@redhat.com>
2513
2514 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2515 sprintf. Make "name" constant.
2516
2517 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2518
2519 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2520 instead of frame_read_register.
2521 (i387_print_float_info): Use get_frame_register and
2522 get_frame_register_unsigned instead of frame_register_read.
2523
2524 * i386fbsd-nat.c: Include "i386-tdep.h".
2525 (child_resume): Make `eflags' an ULONGEST. Use
2526 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2527 instead of register_read and register_write.
2528
2529 * i386bsd-nat.c (fetch_inferior_registers,
2530 store_inferior_registers): Don't use && at the end of a line.
2531 (_initialize_i386bsd_nat): Fix typo.
2532
2533 * frame.c (_initialize_frame): Add missing backslash.
2534
2535 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2536 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2537 and supply_register instead of manipulating the register buffer
2538 directly.
2539
2540 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2541 * config/i386/nm-i386sol2.h
2542 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2543
2544 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2545 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2546 instructions that GCC likes to mingle into the prologue. Fixes
2547 gdb/1253 and gdb/1255.
2548
2549 2003-08-09 Andrew Cagney <cagney@redhat.com>
2550
2551 Fix GDB PR cli/926.
2552 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2553 * command.h (add_setshow_uinteger_cmd): Declare.
2554 * frame.c (set_backtrace_cmd): New function.
2555 (show_backtrace_cmd): New function.
2556 * frame.c (_initialize_frame): Replace "set/show
2557 backtrace-below-main" with "set/show backtrace past-main". Add
2558 command "set/show backtrace limit".
2559 (backtrace_past_main): Rename "backtrace_below_main".
2560 (backtrace_limit): New variable.
2561 (get_prev_frame): Update. Check the backtrace_limit.
2562
2563 2003-08-09 Andrew Cagney <cagney@redhat.com>
2564
2565 * defs.h (xstrprintf): Declare.
2566 * utils.c (xstrprintf): New function.
2567 * breakpoint.c (insert_breakpoints): Replace sprintf and
2568 non-literal format strings, with xstrprintf and cleanups.
2569 (delete_breakpoint,breakpoint_re_set): Ditto.
2570 (commands_command, insert_breakpoints): Ditto.
2571 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2572 (break_at_finish_command_1): Ditto.
2573
2574 2003-08-09 Andrew Cagney <cagney@redhat.com>
2575
2576 * MAINTAINERS (language support): List Adam Fedor as Objective C
2577 maintainer.
2578
2579 2003-08-08 J. Brobecker <brobecker@gnat.com>
2580
2581 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2582 are now multiarched.
2583
2584 2003-08-08 J. Brobecker <brobecker@gnat.com>
2585
2586 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2587 longer necessary now that hppa64 is partially multiarch'ed.
2588
2589 2003-08-08 Andrew Cagney <cagney@redhat.com>
2590
2591 * interps.c (interp_set): Check for a NULL "old_interp".
2592
2593 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2594
2595 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2596 (install-only): Support DESTDIR.
2597 (uninstall): Likewise.
2598 (install-gdbtk): Likewise.
2599
2600 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2601
2602 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2603 contains something meaningful at all times.
2604
2605 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2606
2607 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2608
2609 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2610
2611 * MAINTAINERS (write after approval): Added self.
2612
2613 2003-08-07 Andrew Cagney <cagney@redhat.com>
2614
2615 * inferior.h (AT_SYMBOL): Define.
2616 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2617 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2618 * mips-tdep.c (mips_call_dummy_address): Delete function.
2619 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2620 set call_dummy_address.
2621
2622 2003-08-07 Andrew Cagney <cagney@redhat.com>
2623
2624 * language.c (op_error): Delete function.
2625 (binop_type_check): Delete function.
2626 * language.h (type_op_error, range_op_error): Delete macros.
2627 (op_error): Delete declaration.
2628
2629 2003-08-07 Andrew Cagney <cagney@redhat.com>
2630
2631 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2632
2633 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2634
2635 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2636 (x86_64_push_arguments): Skip the red zone.
2637
2638 2003-08-05 Andrew Cagney <cagney@redhat.com>
2639
2640 * reggroups.c (reggroup_next): Check for the final entry.
2641
2642 2003-08-04 Andrew Cagney <cagney@redhat.com>
2643
2644 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2645 * cli/cli-script.c (define_command): Call query directly, instead
2646 of passing it a buffer.
2647 * ocd.c (ocd_error): Pass error a constant format string.
2648 * remote-mips.c (mips_error): Use fputs_filtered.
2649
2650 * solib-svr4.c (_initialize_svr4_solib): Update
2651 register_gdbarch_data call.
2652 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2653
2654 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2655 (register_gdbarch_data): Delete "free" parameter. Update
2656 comments.
2657 * gdbarch.h, gdbarch.c: Re-generate.
2658 * reggroups.c (_initialize_reggroup): Update.
2659 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2660 * frame-base.c (_initialize_frame_base): Update.
2661 * frame-unwind.c (_initialize_frame_unwind): Update.
2662 * user-regs.c (_initialize_user_regs): Update.
2663 * remote.c (_initialize_remote): Update.
2664 * regcache.c (_initialize_regcache): Update.
2665
2666 * regcache.c (xfree_regcache_descr): Delete function.
2667 (_initialize_regcache): Update call to register_gdbarch_data.
2668 (init_regcache_descr, init_legacy_regcache_descr): Use
2669 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2670
2671 * remote.c (free_remote_state): Delete function.
2672 (_initialize_remote): Update register_gdbarch_data.
2673 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2674 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2675
2676 2003-08-04 Andrew Cagney <cagney@redhat.com>
2677
2678 * reggroups.c (struct reggroup_el): Define.
2679 (struct reggroups): Delete field "nr_group". Replace array
2680 "group" with a "first" to "last" linked list.
2681 (reggroups_init): Update. Allocate using gdbarch's obstack.
2682 (reggroups_free): Delete function.
2683 (add_group): Update. Add "el" parameter.
2684 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2685 (default_groups): Update.
2686 (reggroup_next): Replace reggroups.
2687 (reggroups_dump): Update.
2688 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2689 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2690 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2691
2692 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2693
2694 * Makefile.in (tui-interp.o): Update dependencies.
2695
2696 2003-08-04 David Carlton <carlton@kealia.com>
2697
2698 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2699 to internal_error call.
2700 * source.c (forward_search_command): Add "%s" format argument.
2701 (reverse_search_command): Ditto.
2702 * top.c (quit_confirm): Ditto.
2703 * cli/cli-setshow.c (do_setshow_command): Ditto.
2704 * cp-valprint.c (cp_print_class_method): Replace
2705 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2706 (cp_print_class_member): Ditto.
2707 * event-top.c (command_line_handler): Ditto.
2708 * linux-proc.c (linux_info_proc_cmd): Ditto.
2709 * p-typeprint.c (pascal_type_print_base): Ditto.
2710 * p-valprint.c (pascal_object_print_class_method): Ditto.
2711 (pascal_object_print_class_member): Ditto.
2712 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2713 * remote.c (remote_cisco_section_offsets): Ditto.
2714 * top.c (command_line_input): Ditto.
2715 * utils.c (vwarning,error_stream,quit): Ditto.
2716 * valprint.c (print_floating,print_binary_chars)
2717 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2718
2719 2003-08-04 Andrew Cagney <cagney@redhat.com>
2720
2721 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2722
2723 2003-08-02 Andrew Cagney <cagney@redhat.com>
2724
2725 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2726 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2727 amd64fbsd-nat.c.
2728
2729 2003-08-02 Andrew Cagney <cagney@redhat.com>
2730
2731 * Makefile.in: Update all dependencies and definitions.
2732
2733 2003-08-02 Adam Fedor <fedor@gnu.org>
2734
2735 * linespec.c (is_objc_method_format): New function
2736 (decode_line_1, locate_first_half): Use it.
2737 Fixes PR objc/1298
2738
2739 2003-08-01 Andrew Cagney <cagney@redhat.com>
2740
2741 * NEWS: Mention that m32r is multi-arch.
2742 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2743 * configure.tgt: Recognize m32r-*-*.
2744 * config/m32r/tm-m32r.h: Delete file.
2745 * config/m32r/m32r.mt: New file.
2746 * m32r-rom.c (m32r_upload_command): Use hostent only when
2747 gethostname succeeds, in order to avoid a compilation
2748 warning.
2749 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2750 compiler warning.
2751
2752 2003-08-01 Michael Snyder <msnyder@redhat.com>
2753
2754 * sh-tdep.c (sh_frame_align): New gdbarch method.
2755 (sh_gdbarch_init): Set up frame_align method.
2756
2757 2003-07-31 Michael Snyder <msnyder@redhat.com>
2758
2759 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2760 which is already covered by the new frames infrastructure.
2761
2762 2003-07-31 Andrew Cagney <cagney@redhat.com>
2763
2764 * user-regs.c (struct user_reg): Add "next" link.
2765 (struct user_regs): Replace "user" with "first" and "last" links.
2766 (append_user_reg): Add pre-allocated "reg" parameter.
2767 (builtin_user_regs): Provide initial value for "last".
2768 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2769 (user_regs_init): Allocate memory from the gdbarch obstack.
2770 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2771 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2772 linked list.
2773 (usernum_to_user_reg): New function.
2774 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2775 (value_of_user_reg): Use usernum_to_user_reg.
2776 (user_regs_free): Delete function.
2777 (_initialize_user_regs): Update register_gdbarch_data call.
2778
2779 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2780
2781 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2782
2783 2003-07-30 Michael Snyder <msnyder@redhat.com>
2784
2785 * value.h (value_being_returned): Add a struct_addr argument.
2786 * infcall.c (call_function_by_hand): Pass struct_addr to
2787 value_being_returned.
2788 * infcmd.c (print_return_value): Pass zero as struct_addr.
2789 * values.c (value_being_returned): If struct_addr is passed,
2790 use it instead of trying to recover it from the inferior.
2791
2792 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2793
2794 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2795 the prologue analyzer won't need to attempt to extract the pc
2796 value from the woefully incomplete dummy frame.
2797 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2798 possible. Disable code which modifies the frame.
2799
2800 2003-07-28 Andrew Cagney <cagney@redhat.com>
2801
2802 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2803 to level 2.
2804 (annotate_breakpoints_table, annotate_record): Ditto.
2805 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2806 (annotate_field_name_end, annotate_field_value): Ditto.
2807 (annotate_field_end, annotate_frame_source_begin): Ditto.
2808 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2809 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2810 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2811 (annotate_frame_address_end, annotate_frame_address): Ditto.
2812 (annotate_frame_args, annotate_frame_end): Ditto.
2813 (annotate_frame_where, annotate_arg_begin): Ditto.
2814 (annotate_arg_name_end, annotate_arg_value): Ditto.
2815 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2816 (annotate_function_call, annotate_signal_name): Ditto.
2817 (annotate_signal_string, annotate_signal_name_end): Ditto.
2818 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2819 (annotate_value_begin, annotate_value_history_value): Ditto.
2820 (annotate_value_history_end, annotate_value_end): Ditto.
2821 (annotate_display_begin, annotate_display_number_end): Ditto.
2822 (annotate_display_format, annotate_display_expression): Ditto.
2823 (annotate_display_expression_end, annotate_display_value): Ditto.
2824 (annotate_display_end, annotate_array_section_begin): Ditto.
2825 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2826 (annotate_elt, annotate_array_section_end): Ditto.
2827
2828 2003-07-28 Andrew Cagney <cagney@redhat.com>
2829
2830 * regcache.c (struct regcache_descr): Update comments on
2831 nr_raw_registers.
2832 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2833 sizeof_raw_register_valid_p.
2834 (init_regcache_descr): Set nr_raw_registers and
2835 sizeof_raw_register_valid_p before calling
2836 init_legacy_regcache_descr.
2837
2838 2003-07-28 Andrew Cagney <cagney@redhat.com>
2839
2840 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2841 MOD NUM_REGS.
2842
2843 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2844
2845 * thread.c (info_threads_command): Use get_selected_frame ().
2846 Check that there is at least one non-sentinel frame.
2847
2848 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2849
2850 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2851 (m68hc11_pop_frame): Remove.
2852 (m68hc11_frame_saved_pc): Remove.
2853 (m68hc11_frame_chain): Remove.
2854 (m68hc11_frame_init_saved_regs): Remove.
2855 (m68hc11_init_extra_frame_info): Remove.
2856 (m68hc11_store_struct_return): Remove.
2857 (m68hc11_saved_pc_after_call): Remove.
2858
2859 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2860
2861 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2862 frame unwind information.
2863 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2864 and adapted for frame unwinding.
2865 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2866 (m68hc11_unwind_pc): New function.
2867 (m68hc11_frame_unwind_cache): New function to analyze frames.
2868 (m68hc11_frame_this_id): New function to create new frame struct.
2869 (m68hc11_frame_prev_register): New function to unwind a register from
2870 the frame.
2871 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2872 (m68hc11_frame_p): New function for the above.
2873 (m68hc11_frame_base_address): New function to return fp of frame.
2874 (m68hc11_frame_args_address): Update for frame.
2875 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2876 (m68hc11_unwind_sp): New function.
2877 (m68hc11_unwind_dummy_id): New function.
2878 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2879 calls.
2880
2881 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2882
2883 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2884 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2885 when we are beyond the current pc.
2886
2887 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2888
2889 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2890 from m68hc11_push_arguments.
2891 (m68hc11_push_arguments): Remove.
2892 (m68hc11_push_return_address): Remove.
2893 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2894 handlers; remove deprecated_extra_stack_alignment_needed.
2895
2896 2003-07-27 Andrew Cagney <cagney@redhat.com>
2897
2898 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2899 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2900 REAL_PC and not the pointer.
2901 * hppa-hpux-tdep.c: Include frame.h
2902
2903 2003-07-27 Andrew Cagney <cagney@redhat.com>
2904
2905 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2906 GDB_MULTI_ACH_PARTIAL.
2907
2908 2003-07-27 Andrew Cagney <cagney@redhat.com>
2909
2910 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2911 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2912 operator at start and not end of line.
2913 (decode_prologue): Ditto.
2914 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2915 frame_unwind_register_unsigned instead of
2916 frame_unwind_unsigned_register.
2917 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2918 read_register.
2919 (m32r_push_dummy_call): Use register_size instead of
2920 REGISTER_RAW_SIZE.
2921 (m32r_frame_sniffer): Replace m32r_frame_p.
2922 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2923 * m32r-rom.c (report_transfer_performance): Delete extern
2924 declaration.
2925 (m32r_load, m32r_upload_command): Use print_transfer_performance
2926 instead of report_transfer_performance.
2927 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2928 / add_show_from_set.
2929
2930 2003-07-26 Andrew Cagney <cagney@redhat.com>
2931
2932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2933 store_return_value and extract_struct_value_address.
2934
2935 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2936
2937 PR c++/1267
2938 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2939 NULL, default to the section containing PC.
2940
2941 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2942
2943 * NEWS: Mention "regs" deprecated for m68hc11 too.
2944
2945 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2946 (m68hc11_print_register): New function to print out one register.
2947 (m68hc11_print_registers_info): New function to print registers.
2948 (show_regs): Deprecate and use the above.
2949 (m68hc11_gdbarch_init): Install the print_registers_info.
2950
2951 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2952
2953 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2954 that we have a SIGTRAP before returning non-zero.
2955
2956 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2957 Elena Zannoni <ezannoni@redhat.com>
2958
2959 * linespec.c (decode_line_2): Avoid crash if
2960 find_function_start_sal() returns empty record.
2961
2962 2003-07-23 Andreas Schwab <schwab@suse.de>
2963
2964 * ia64-tdep.c (ia64_print_insn): New function.
2965 (ia64_gdbarch_init): Set print_insn to it.
2966 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2967 deprecated_tm_print_insn_info.
2968
2969 2003-07-22 Michael Snyder <msnyder@redhat.com>
2970
2971 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2972 handle 8-bit returns (long long).
2973 (h8300h_extract_return_value): Ditto.
2974 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2975
2976 2003-07-22 Andrew Cagney <cagney@redhat.com>
2977
2978 * gdbarch.c Include "gdb_obstack.h".
2979 (struct gdbarch): Add an "obstack".
2980 (alloc_gdbarch_data): Allocate the gdbarch data using
2981 GDBARCH_OBSTACK_CALLOC.
2982 (free_gdbarch_data): Delete function.
2983 (gdbarch_obstack_zalloc): New function.
2984 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2985 Assert that the architecture is not initialized.
2986 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2987 vector from the obstack.
2988 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2989 architecture obstack.
2990 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2991 (set_gdbarch_data): Assert that the data is not initialized.
2992 (struct gdbarch_data): Delete member "free".
2993 (register_gdbarch_data): Do not initialize "free".
2994 * gdbarch.h, gdbarch.c: Re-generate.
2995
2996 2003-07-22 Andrew Cagney <cagney@redhat.com>
2997
2998 * configure.in (build_warnings): Add -Wformat-nonliteral.
2999 * configure: Re-generate.
3000
3001 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3002
3003 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3004
3005 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3006
3007 * findvar.c (read_var_value): Remove case for thread local storage
3008 variables. It is now entirely handled by the dwarf2 location
3009 expression code.
3010 * printcmd.c (address_info): Ditto.
3011 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3012 enumeration value.
3013 (struct symbol): Remove objfile field, which was used by
3014 LOC_THREAD_LOCAL_STATIC only.
3015 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3016 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3017 usage of objfile pointer.
3018 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3019 thread local variables.
3020 Add include of objfiles.h.
3021 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3022 storage variables.
3023 * Makefile.in (dwarf2loc.o): Update dependencies.
3024
3025 2003-07-22 Andrew Cagney <cagney@redhat.com>
3026
3027 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3028 get_frame_base.
3029 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3030 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3031 (struct value): Add opaque declaration.
3032 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3033
3034 2003-07-21 Andrew Cagney <cagney@redhat.com>
3035
3036 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3037 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3038
3039 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3040
3041 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3042 regcache_cooked_read_unsigned instead of read_register.
3043 (m68hc11_saved_pc_after_call): Likewise.
3044 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3045 instead of write_register.
3046 (m68hc11_register_type): New function.
3047 (m68hc11_register_virtual_type): Remove.
3048 (m68hc11_store_return_value): Convert to use the regcache.
3049 (m68hc11_extract_struct_value_address): Likewise.
3050 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3051 m68hc11_register_type; undeprecate store_return_value and
3052 extract_struct_value_address.
3053
3054 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3055
3056 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3057 and translate to use regcache.
3058 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3059
3060 2003-07-18 Andrew Cagney <cagney@redhat.com>
3061
3062 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3063 * gdbarch.h, gdbarch.c: Re-generate.
3064 * i386-tdep.c (i386_gdbarch_init): Do not set
3065 DWARF2_BUILD_FRAME_INFO.
3066 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3067 unconditionally.
3068 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3069 DWARF2_BUILD_FRAME_INFO.
3070
3071 2003-07-18 Andrew Cagney <cagney@redhat.com>
3072
3073 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3074 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3075
3076 2003-07-18 Andrew Cagney <cagney@redhat.com>
3077
3078 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3079 frame_unwind_address_in_block, instead of frame_pc_unwind.
3080 (dwarf2_frame_cache): Ditto.
3081
3082 2003-07-18 Andrew Cagney <cagney@redhat.com>
3083
3084 * user-regs.h (struct gdbarch): Declare opaque.
3085 * ui-out.h (struct ui_file): Declare opaque.
3086 * dwarf2-frame.h (struct frame_info): Declare opaque.
3087
3088 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3089
3090 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3091 #include "...".
3092 (procfs_meminfo): Change strerror to safe_strerror.
3093 (procfs_can_run): Remove K&R badness.
3094
3095 2003-07-17 Michael Snyder <msnyder@redhat.com>
3096
3097 * remote-sim.c: Comment typo fix.
3098
3099 2003-07-17 Andrew Cagney <cagney@redhat.com>
3100
3101 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3102 configure.
3103 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3104 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3105 GDB_MULTI_ARCH_PARTIAL.
3106
3107 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3108
3109 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3110 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3111 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3112
3113 2003-07-16 Theodore A. Roth <troth@openavr.org>
3114
3115 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3116 found.
3117 (avr_frame_unwind_cache): Don't unwind FP for main.
3118 Update a comment.
3119 Save the computed prev_sp.
3120 (avr_saved_regs_unwinder): Remove function.
3121 (avr_frame_prev_register): Use PC unwind logic from
3122 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3123
3124 2003-07-16 Andrew Cagney <cagney@redhat.com>
3125
3126 * frame-base.h (frame_base_p_ftype): Delete definition.
3127 (frame_base_append_predicate): Delete declaration.
3128 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3129 (frame_unwind_append_predicate): Delete declaration.
3130 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3131 (append_predicate): Delete parameter "p".
3132 (frame_unwind_append_predicate): Delete function.
3133 (frame_unwind_append_sniffer): Update call to append_predicate.
3134 (frame_unwind_free): Delete function.
3135 (_initialize_frame_unwind): Pass NULL as "free" to
3136 register_gdbarch_data.
3137 (frame_unwind_init): Append the dummy_frame_sniffer.
3138 (frame_unwind_find_by_frame): Simplify.
3139 * frame-base.c (struct frame_base_table): Delete field "p".
3140 (append_predicate): Delete parameter "p".
3141 (frame_base_append_predicate): Delete function.
3142 (frame_base_append_sniffer): Update call to append_predicate.
3143 (frame_base_free): Delete function.
3144 (frame_base_find_by_frame): Simplify.
3145 (_initialize_frame_base): Pass NULL as "free" to
3146 register_gdbarch_data.
3147 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3148 (x86_64_sigtramp_frame_sniffer): Replace
3149 "x86_64_sigtramp_frame_p".
3150 (x86_64_init_abi): Set the frame unwind sniffers.
3151 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3152 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3153 (m68k_gdbarch_init): Set the frame unwind sniffers.
3154 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3155 "i386_sigtramp_frame_p".
3156 (i386_frame_sniffer): Replace "i386_frame_p".
3157 (i386_gdbarch_init): Set the frame unwind sniffers.
3158 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3159 (avr_gdbarch_init): Set the frame unwind sniffers.
3160 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3161 "alpha_sigtramp_frame_p"
3162 (alpha_heuristic_frame_sniffer): Replace
3163 "alpha_heuristic_frame_p".
3164 (alpha_gdbarch_init): Set the frame unwind sniffers.
3165 (alpha_dwarf2_init_abi): Ditto.
3166 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3167 "alpha_debug_frame_p".
3168 (alpha_mdebug_frame_base_sniffer): Replace
3169 "alpha_mdebug_frame_base_p".
3170 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3171 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3172 (d10v_gdbarch_init): Set the frame unwind sniffer.
3173 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3174 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3175 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3176 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3177 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3178 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3179
3180 2003-07-16 Michael Snyder <msnyder@redhat.com>
3181
3182 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3183 should go thru sh_dsp_register_sim_regno, else the dsp regs
3184 will not get the right values.
3185
3186 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3187
3188 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3189 deprecated_store_floating by call to store_typed_floating.
3190 (sh_sh4_register_convert_to_raw): Substitute call to
3191 deprecated_extract_floating by call to extract_typed_floating.
3192
3193 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3194
3195 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3196
3197 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3198
3199 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3200 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3201 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3202 as possible.
3203 (do_pseudo_register): Remove.
3204 (sh_push_dummy_code): New function.
3205 (sh64_store_struct_return): Rename from sh_store_struct_return.
3206 Only called for sh64 now.
3207 (sh_extract_struct_value_address): Regcache'ify.
3208 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3209 and accomodate new tasks.
3210 (sh64_push_return_address): Rename from sh_push_return_address.
3211 Only called for sh64 now.
3212 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3213 Regcache'ify.
3214 (sh3e_sh4_extract_return_value): Regcache'ify.
3215 (sh_default_store_return_value): Ditto.
3216 (sh3e_sh4_store_return_value): Ditto.
3217 (sh_default_register_byte): Remove.
3218 (sh_sh4_register_byte): Remove.
3219 (sh_default_register_raw_size): Remove.
3220 (sh_sh4_register_raw_size): Remove.
3221 (sh_register_virtual_size): Remove.
3222 (sh_sh3e_register_virtual_type): Remove.
3223 (sh_sh3e_register_type): New function.
3224 (sh_sh4_register_virtual_type): Remove.
3225 (sh_sh4_register_type): New function.
3226 (sh_default_register_virtual_type): Remove.
3227 (sh_default_register_type): New function.
3228 (do_fv_register_info): Add parameters to accomodate call from
3229 sh_print_registers_info.
3230 (do_dr_register_info): Ditto.
3231 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3232 Add parameters to accomodate call from sh_print_registers_info.
3233 (sh_do_fp_register): Ditto.
3234 (sh64_do_pseudo_register): Call do_dr_register_info,
3235 do_fv_register_info and sh_do_fp_register with default parameters.
3236 (sh_do_register): Add parameters to accomodate call from
3237 sh_print_registers_info.
3238 (sh_print_register): Ditto.
3239 (sh_print_registers_info): Rename from sh_do_registers_info.
3240 Add parameters to be used as gdbarch_print_registers_info
3241 implementation. Accomodate removed do_pseudo_register function
3242 pointer.
3243 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3244 function pointer. Call sh_print_register with default parameters.
3245 (sh64_do_registers_info): Call sh_print_registers_info instead of
3246 sh_do_registers_info.
3247 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3248 detection of deprecated vs. non-deprecated functionality.
3249 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3250 function pointer assignments by direct function calls.
3251
3252 2003-07-15 Andrew Cagney <cagney@redhat.com>
3253
3254 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3255 (frame_register_unwind, create_new_frame): Ditto.
3256 (legacy_get_prev_frame, get_frame_type): Ditto.
3257 (get_frame_base_address): Use frame_base_find_by_frame.
3258 (get_frame_locals_address): Use frame_base_find_by_frame.
3259 (get_frame_args_address): Use frame_base_find_by_frame.
3260 * frame-base.h (frame_base_sniffer_ftype): Declare.
3261 (frame_base_append_sniffer): Declare.
3262 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3263 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3264 (frame_base_append_sniffer): New function.
3265 (frame_base_append_predicate): Add a NULL sniffer.
3266 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3267 (struct frame_base_table): Add "sniffer".
3268 (frame_base_free): Free the "sniffer" table.
3269 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3270 (frame_unwind_append_sniffer): Declare.
3271 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3272 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3273 (struct frame_unwind_table): Add "sniffer", delete "middle".
3274 (append_predicate): Add "sniffer" parameter, append the sniffer.
3275 (frame_unwind_init): Update append_predicate call.
3276 (frame_unwind_append_sniffer): New function.
3277 (frame_unwind_append_predicate): Update append_predicate call.
3278 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3279
3280 2003-07-15 Andrew Cagney <cagney@redhat.com>
3281
3282 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3283 before code inhibiting repeated unwind attempts. Add to
3284 commentary on that test's problems.
3285 * blockframe.c (inside_main_func): Look for "main" in the minimal
3286 symbol table.
3287 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3288 identical.
3289
3290 2003-07-15 Andrew Cagney <cagney@redhat.com>
3291
3292 * complaints.c (struct explanation): Define.
3293 (struct complaints): Change type of "explanation" to "struct
3294 explanation".
3295 (symfile_explanations): Convert to a "struct explanation" table.
3296 (vcomplaint): Update.
3297
3298 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3299
3300 * x86-64-linux-nat.c (regmap): Removed.
3301 (supply_gregset, fill_gregset): Call
3302 x86_64_linux_(fill,supply)_gregset functions.
3303 * x86-64-linux-tdep.c (USER_*): New defines.
3304 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3305 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3306 New functions.
3307 (fetch_core_registers): Ditto.
3308 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3309 * x86-64-linux-tdep.h: New file.
3310 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3311 and core-regset.o.
3312 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3313
3314 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3315
3316 * x86-64-tdep.c (x86_64_store_return_value): Use
3317 regcache_cooked_write_part instead of regcache_cooked_write.
3318
3319 * configure.host: Add x86_64-*-freebsd*.
3320 * configure.tgt: Add x86_64-*-freebsd*.
3321 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3322 * amd64fbsd-nat.c: New file.
3323 * amd64fbsd-tdep.c: New file.
3324 * config/i386/nm-fbsd64.h: New file.
3325 * config/i386/fbsd64.mh: New file.
3326 * config/i386/fbsd64.mt: New file.
3327
3328 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3329
3330 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3331 `sc_regs_offset' and `sc_fpregs_offset'.
3332 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3333 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3334 (alpha_sigtramp_register_address): Rewrite to use new members of
3335 `struct gdbarch_tdep'.
3336 (alpha_gdbarch_init): Initialize new members of struct
3337 gdbarch_tdep'.
3338 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3339 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3340 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3341 (alphafbsd_pc_in_sigtramp): Implement.
3342 (alphafbsd_sigtramp_offset): New function.
3343 (alphafbsd_sigcontext_addr): New function.
3344 (alphafbsd_init_abi): Initialize signal trampoline related members
3345 of `struct gdbarch_tdep'.
3346 (_initialize_alphafbsd_tdep): Add prototype.
3347
3348 2003-07-11 Theodore A. Roth <troth@openavr.org>
3349
3350 * Makefile.in (install-only): Quote sed expression when generating
3351 transformed_name.
3352
3353 2003-07-11 Richard Henderson <rth@redhat.com>
3354
3355 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3356 * dwarf2-frame.c: Include complaints.h.
3357 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3358 variable initialization; return NULL on error.
3359 (decode_frame_entry): New.
3360
3361 2003-07-11 Andrew Cagney <cagney@redhat.com>
3362
3363 * frame.h (frame_address_in_block): Delete declaration.
3364 * blockframe.c (frame_address_in_block): Delete function.
3365 (get_frame_block): Use get_frame_address_in_block.
3366 (block_innermost_frame): Ditto.
3367 * stack.c (print_frame, backtrace_command_1): Ditto.
3368
3369 * frame.h (get_frame_address_in_block): Declare.
3370 (frame_unwind_address_in_block): Declare.
3371 * frame.c (frame_unwind_address_in_block): New function.
3372 (get_frame_address_in_block): New function.
3373
3374 2003-07-10 Andrew Cagney <cagney@redhat.com>
3375
3376 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3377 pre-default. Note: re-generate has no effect.
3378
3379 2003-07-10 Andrew Cagney <cagney@redhat.com>
3380
3381 * gdbarch.sh: When a variable, but not a function, compare against
3382 0. Fix problem in previous patch.
3383 * gdbarch.c: Re-generate.
3384
3385 2003-07-10 Andrew Cagney <cagney@redhat.com>
3386
3387 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3388 functions against NULL, not 0.
3389 * gdbarch.c: Re-generate.
3390
3391 2003-07-10 Fred Fish <fnf@ninemoons.com>
3392
3393 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3394 null string instead of a null pointer.
3395 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3396
3397 2003-07-09 Michael Snyder <msnyder@redhat.com>
3398
3399 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3400
3401 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3402
3403 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3404 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3405 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3406 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3407 * x86-64-tdep.c: ... from here.
3408
3409 2003-07-09 Andreas Schwab <schwab@suse.de>
3410
3411 * m68k-tdep.h (enum struct_return): Define.
3412 (struct gdbarch_tdep): Add struct_return.
3413 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3414 bytes are padded to the right, not to the left. Pass struct value
3415 address in register %a1, not on stack.
3416 (m68k_use_struct_convention): New function.
3417 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3418 struct_return in tdep to pcc_struct_return.
3419 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3420 reg_struct_return.
3421
3422 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3423
3424 * somread.c (som_symfile_offsets): Fix compilation error.
3425
3426 2003-07-09 Andrew Cagney <cagney@redhat.com>
3427
3428 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3429 Add comments about the checks.
3430
3431 2003-07-08 Andrew Cagney <cagney@redhat.com>
3432
3433 * Makefile.in: Make dependency section headers consistent.
3434 (config_h): Move to $BUILD headers section.
3435 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3436 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3437 (ada-exp.tab.c): Move to YACC/LEX section.
3438 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3439 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3440
3441 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3442
3443 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3444 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3445 of strerror with safe_strerror, use ISO C function definitions,
3446 and replace instances of sprintf with snprintf.
3447
3448 2003-07-07 Andrew Cagney <cagney@redhat.com>
3449
3450 * frame.c (get_prev_frame): Enable check for identical frames.
3451 Update comments. Update error messages.
3452
3453 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3454
3455 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3456
3457 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3458
3459 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3460 sort_symtab_syms, no longer necessary.
3461
3462 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3463
3464 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3465
3466 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3467
3468 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3469 (mips_register_byte): Likewise.
3470
3471 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3472
3473 * Makefile.in (sparc_tdep_h): New.
3474 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3475 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3476 * sparc-linux-nat.c: Include "sparc-tdep.h".
3477 * sparc-nat.c: Likewise.
3478 * sparc-tdep.c: Likewise.
3479 * sparc64nbsd-nat.c: Likewise.
3480 * sparcnbsd-nat.c: Likewise.
3481 * sparcnbsd-tdep.c: Likewise.
3482 * sparc-tdep.h: New file.
3483 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3484 and sparc_npc_regnum.
3485
3486 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3487
3488 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3489 (mips_linux_cannot_store_register): List supported instead of
3490 unsupported registers.
3491
3492 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3493
3494 * disasm.c (dump_insns): Separate instructions from addresses.
3495
3496 2003-07-07 Andreas Schwab <schwab@suse.de>
3497
3498 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3499 dependencies.
3500 * m68k-tdep.c (NUM_FREGS): Delete.
3501 (SIG_PC_FP_OFFSET): Delete.
3502 (TARGET_M68K): Delete.
3503 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3504 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3505 P_MOVEL_SP, P_MOVEML_SP): Define.
3506 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3507 P_TRAP): Delete.
3508 (m68k_register_raw_size): Delete.
3509 (m68k_register_virtual_size): Delete.
3510 (m68k_register_type): Renamed from m68k_register_virtual_type and
3511 add gdbarch argument.
3512 (m68k_store_struct_return): Delete.
3513 (m68k_deprecated_extract_return_value): Delete.
3514 (m68k_deprecated_extract_struct_value_address): Delete.
3515 (m68k_frame_chain): Delete.
3516 (m68k_frame_saved_pc): Delete.
3517 (m68k_fix_call_dummy): Delete.
3518 (m68k_push_dummy_frame): Delete.
3519 (m68k_pop_frame): Delete.
3520 (m68k_extract_return_value): New function.
3521 (m68k_store_return_value): Rewrite using regcache.
3522 (m68k_extract_struct_value_address): Rewrite using regcache.
3523 (m68k_push_dummy_call): New function.
3524 (struct m68k_frame_cache): Define.
3525 (m68k_alloc_frame_cache): New function.
3526 (m68k_analyze_frame_setup): New function.
3527 (m68k_analyze_register_saves): New function.
3528 (m68k_analyze_prologue): New function.
3529 (m68k_skip_prologue): Rewrite using above functions.
3530 (m68k_unwind_pc): New function.
3531 (m68k_frame_cache): New function.
3532 (m68k_frame_this_id): New function.
3533 (m68k_frame_prev_register): New function.
3534 (m68k_frame_unwind): New variable.
3535 (m68k_frame_p): New function.
3536 (m68k_sigtramp_frame_cache): New function.
3537 (m68k_sigtramp_frame_this_id): New function.
3538 (m68k_sigtramp_frame_prev_register): New function.
3539 (m68k_sigtramp_frame_unwind): New variable.
3540 (m68k_sigtramp_frame_p): New function.
3541 (m68k_frame_base_address): New function.
3542 (m68k_frame_base): New function.
3543 (m68k_unwind_dummy_id): New function.
3544 (fill_gregset): Use regcache_collect.
3545 (fill_fpregset): Likewise.
3546 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3547 defined.
3548 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3549 deprecated_init_frame_pc, deprecated_store_struct_return,
3550 deprecated_extract_return_value, deprecated_store_return_value,
3551 deprecated_frame_chain, deprecated_frame_saved_pc,
3552 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3553 deprecated_register_virtual_size,
3554 deprecated_max_register_raw_size,
3555 deprecated_max_register_virtual_size,
3556 deprecated_register_virtual_type, deprecated_register_size,
3557 deprecated_register_byte, deprecated_register_bytes,
3558 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3559 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3560 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3561 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3562 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3563 deprecated_push_dummy_frame, deprecated_pop_frame,
3564 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3565 only if SYSCALL_TRAP is defined. Set extract_return_value,
3566 store_return_value, extract_struct_value_address, register_type,
3567 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3568 predicates.
3569 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3570 M68K_MAX_REGISTER_SIZE): Define.
3571 (struct m68k_sigtramp_info): Define.
3572 (struct gdbarch_tdep): Add get_sigtramp_info.
3573 * m68klinux-nat.c (fetch_register): Use register_size instead of
3574 REGISTER_RAW_SIZE. Don't put assignment in if.
3575 (store_register): Likewise.
3576 (fetch_inferior_registers): Likewise.
3577 (store_inferior_registers): Likewise.
3578 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3579 (m68k_linux_frame_saved_pc): Delete.
3580 (m68k_linux_sigcontext_reg_offset,
3581 m68k_linux_ucontext_reg_offset): Define.
3582 (m68k_linux_get_sigtramp_info): New function.
3583 (m68k_linux_extract_return_value): Rewrite using regcache.
3584 (m68k_linux_store_return_value): Likewise.
3585 (m68k_linux_extract_struct_value_address): Likewise.
3586 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3587 Don't set deprecated_frame_saved_pc,
3588 deprecated_extract_return_value, deprecated_store_return_value,
3589 deprecated_extract_struct_value_address. Set
3590 extract_return_value, store_return_value,
3591 extract_struct_value_address.
3592
3593 2003-07-07 Andrew Cagney <cagney@redhat.com>
3594
3595 * expprint.c: Include "user-regs.h" instead of "frame.h".
3596 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3597 frame_map_regnum_to_name.
3598 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3599 (frame_map_name_to_regnum): Simplify, call
3600 user_reg_map_name_to_regnum.
3601 (frame_map_regnum_to_name): Simplify, call
3602 user_reg_map_regnum_to_name.
3603 (frame_register_unwind): Update.
3604 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3605 (_initialize_frame_reg): Call user_reg_add_builtin.
3606 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3607 (value_of_register): Use value_of_user_reg.
3608 * eval.c (evaluate_subexp_standard): Update.
3609 * parse.c (write_dollar_variable): Update.
3610 * d10v-tdep.c (d10v_print_registers_info): Update.
3611 * infcmd.c (registers_info): Update.
3612 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3613 (builtin_regs_h): Delete macro.
3614 (user_regs_h): Define.
3615 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3616 (builtin-regs.o): Delete target.
3617 (user-regs.o): Specify dependencies.
3618 (expprint.o): Update dependencies.
3619 (findvar.o): Update dependencies.
3620 (frame.o): Update dependencies.
3621 (std-regs.o): Update dependencies.
3622
3623 2003-07-06 Christopher Faylor <cgf@redhat.com>
3624
3625 * win32-nat.c (solib_symbols_add): Use one variable for all section
3626 address stuff. Pass variable rather than address of variable to
3627 safe_symbol_file_add.
3628
3629 2003-07-06 Andreas Schwab <schwab@suse.de>
3630
3631 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3632
3633 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3634
3635 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3636
3637 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3638
3639 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3640
3641 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3642
3643 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3644 * config/i386/nto.mh: New file.
3645 * config/i386/nm-nto.h: New file.
3646 * configure.host: Add i[3456]86-*-nto*.
3647
3648 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3649
3650 * remote-vx.c (vx_add_symbols): Fix compilation error.
3651
3652 2003-07-03 Andrew Cagney <cagney@redhat.com>
3653
3654 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3655 * gdbarch.h, gdbarch.c: Re-generate.
3656 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3657 (legacy_register_name): Declare.
3658 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3659 (REGISTER_NAME): Define.
3660 * sparc-tdep.c (legacy_register_name): New function.
3661 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3662 (REGISTER_NAME): Define.
3663 (hppa64_register_name): Declare.
3664 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3665 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3666 (hppa64_register_name): New function.
3667 (hppa_register_name): New function.
3668 * arch-utils.c (legacy_register_name): Delete.
3669 * arch-utils.h (legacy_register_name): Delete.
3670
3671 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3672
3673 * cli/cli-interp.c (cli_interpreter_resume): Update the
3674 cli_uiout's stream to gdb_stdout.
3675
3676 2003-07-03 Andrew Cagney <cagney@redhat.com>
3677
3678 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3679 predicate.
3680 * gdbarch.h, gdbarch.c: Re-generate.
3681 * regcache.c (init_regcache_descr): Use legacy code when either
3682 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3683
3684 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3685
3686 * NEWS: Move "set logging" entry into GDB 6.0 section.
3687
3688 2003-07-02 Jim Blandy <jimb@redhat.com>
3689
3690 * s390-tdep.c (struct frame_extra_info): new member:
3691 'stack_bought_valid'.
3692 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3693 initialize fextra_info->stack_bought.
3694 (s390_frameless_function_invocation): Don't trust the value of
3695 fextra_info_ptr->stack_bought unless
3696 fextra_info->stack_bought_valid is set.
3697
3698 New S390 prologue analyzer.
3699 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3700 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3701 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3702 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3703 compute_x_addr, s390_on_stack, s390_store,
3704 s390_get_signal_frame_info): New functions.
3705 (S390_NUM_SPILL_SLOTS): New macro.
3706 (s390_get_frame_info): Rewritten.
3707 (is_arg_reg): Deleted.
3708
3709 Break out the decoding of S/390 instructions into separate
3710 functions, to make it more legible, and easier to check
3711 against the spec.
3712 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3713 is_rx, is_rxe): New functions.
3714 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3715 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3716 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3717 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3718 enums for opcode values. (Is this an improvement?)
3719
3720 2003-07-02 Andrew Cagney <cagney@redhat.com>
3721
3722 * i386-tdep.c: Revert change committed as part of trad-frame code
3723 below.
3724
3725 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3726
3727 * breakpoint.c (insert_catchpoint): Make static.
3728
3729 2003-07-02 Andreas Schwab <schwab@suse.de>
3730
3731 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3732 former ia64_push_arguments and ia64_push_return_address, and use
3733 regcache functions instead of read/write_register.
3734 (ia64_gdbarch_init): Set push_dummy_call instead of
3735 deprecated_push_arguments and deprecated_push_return_address.
3736
3737 2003-07-01 Andreas Jaeger <aj@suse.de>
3738
3739 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3740 before the call.
3741 Set %rax only to number of SSE registers used.
3742
3743 2003-07-01 Andrew Cagney <cagney@redhat.com>
3744
3745 * trad-frame.h: Update comments, a -1 .addr is reserved.
3746 (trad_frame_value_p, trad_frame_addr_p): Declare.
3747 (trad_frame_reg_p): Declare.
3748 (trad_frame_set_value): Rename trad_frame_register_value.
3749 (trad_frame_set_unknown): Declare.
3750 * trad-frame.c (trad_frame_realreg_p): New function.
3751 (trad_frame_addr_p, trad_frame_value_p): New function.
3752 (trad_frame_set_unknown): New function.
3753 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3754 (trad_frame_prev_register): Use trad_frame_realreg_p,
3755 trad_frame_addr_p and trad_frame_value_p.
3756 (trad_frame_set_value): Rename trad_frame_register_value.
3757 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3758 and trad_frame_set_value.
3759
3760 2003-06-30 Jim Blandy <jimb@redhat.com>
3761
3762 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3763 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3764 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3765 for 16 registers, and then 32 more bytes.
3766 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3767 New macros.
3768 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3769 Move up in the file, since it's now used by is_simple_arg.
3770 (is_simple_arg): Don't assume registers are four bytes long.
3771 Exclude all double arguments. Extended floats are not simple
3772 args.
3773 (is_power_of_two): New function.
3774 (pass_by_copy_ref): Call is_power_of_two, and check that the
3775 length fits in a register, rather than listing all the acceptable
3776 sizes. Extended floats are not passed by reference.
3777 (s390_push_arguments): Don't assume registers are four bytes long.
3778 Reserve an argument register to point to the buffer for structures
3779 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3780 S390_STACK_FRAME_OVERHEAD.
3781
3782 2003-06-30 Andreas Schwab <schwab@suse.de>
3783
3784 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3785 format error message.
3786
3787 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3788
3789 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3790
3791 2003-06-30 David Carlton <carlton@kealia.com>
3792
3793 Band-aid for PR c++/1245.
3794 * Makefile.in (cp-support.o): Depend on complaints_h.
3795 * cp-support.c: Include complaints.h. Add declaration for
3796 find_last_component.
3797 (cp_find_first_component): Separate code into
3798 cp_find_first_component_aux.
3799 (cp_find_first_component_aux): Call demangled_name_complaint.
3800 (demangled_name_complaint): New.
3801
3802 2003-06-30 Andrew Cagney <cagney@redhat.com>
3803
3804 * remote.c (remote_write_bytes): Explicitly compute and then use
3805 the payload size. Update comments to reflect. Fixes problem of
3806 GDB not sending small packets as found by Fred Fish.
3807
3808 2003-06-30 Andrew Cagney <cagney@redhat.com>
3809
3810 * remote.c (remote_async_wait): Fix -Wformat problem.
3811
3812 2003-06-29 Andrew Cagney <cagney@redhat.com>
3813
3814 * remote.c (remote_wait): Call error, and not warning, when the
3815 packet is corrupt.
3816 (remote_async_wait): Ditto.
3817
3818 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3819
3820 * sparc-tdep.c (sparc_y_regnum): Make external again.
3821
3822 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3823
3824 * cli/cli-logging.c (pop_output_files): Add void to function
3825 definition.
3826
3827 2003-06-29 Andrew Cagney <cagney@redhat.com>
3828
3829 * frame.c (frame_register_unwind): Use unsigned char when dumping
3830 the buffer contents.
3831
3832 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3833
3834 * cli/cli-logging.c: New file.
3835 * cli-out.c (struct ui_out_data): Add original_stream.
3836 (cli_redirect): New function.
3837 (cli_ui_out_impl): Add cli_redirect.
3838 (cli_out_new): Initialize original_stream.
3839 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3840 (uo_redirect, ui_out_redirect): New.
3841 * ui-out.h (struct ui_out_impl): Add redirect member.
3842 (redirect_ftype): New.
3843 (ui_out_redirect): Add prototype.
3844 * Makefile.in: Add rules for cli-logging.c.
3845 * NEWS: Mention "set logging".
3846
3847 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3848
3849 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3850
3851 2003-06-27 Andrew Cagney <cagney@redhat.com>
3852
3853 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3854 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3855 * avr-tdep.c (avr_call_dummy_address): Delete function.
3856 (avr_gdbarch_init): Do not set call_dummy_address.
3857
3858 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3859
3860 * symfile.c (syms_from_objfile): Move variables to inner block.
3861 Move the checks for the non-mainline case a bit earlier to avoid
3862 doing some useless computations.
3863
3864 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3865
3866 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3867
3868 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3869
3870 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3871 sections.
3872
3873 2003-06-26 Michael Chastain <mec@shout.net>
3874
3875 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3876 gdb/testsuite/gdb.c++/pr-1210.exp.
3877
3878 2003-06-26 Andrew Cagney <cagney@redhat.com>
3879
3880 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3881 altivec_expression.h and altivec_registers.h.
3882
3883 2003-06-26 Andrew Cagney <cagney@redhat.com>
3884
3885 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3886 info->mach when MIPS16. Patch suggested by Fred Fish.
3887
3888 2003-06-26 Andrew Cagney <cagney@redhat.com>
3889
3890 * utils.c (internal_vproblem): Print the problem to a reason
3891 buffer and then pass to query. Make the msg variable more local.
3892
3893 2003-06-26 Andrew Cagney <cagney@redhat.com>
3894
3895 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3896 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3897 * gdbarch.h, gdbarch.c: Re-generate.
3898 * frame-base.c (default_frame_args_address): Update. Use
3899 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3900 not available.
3901 (default_frame_locals_address): Ditto for
3902 DEPRECATED_FRAME_LOCALS_ADDRESS.
3903 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3904 (vax_frame_num_args): Update.
3905 (vax_gdbarch_init): Update.
3906 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3907 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3908 * mcore-tdep.c (mcore_gdbarch_init): Update.
3909 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3910 * ia64-tdep.c (ia64_gdbarch_init): Update.
3911 * symtab.h (address_class): Update comments.
3912 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3913 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3914 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3915 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3916 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3917 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3918 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3919 * alpha-mdebug-tdep.c: Update.
3920 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3921
3922 2003-06-26 Andreas Jaeger <aj@suse.de>
3923
3924 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3925 of SSE registers so that varargs functions work. Rework handling
3926 of passing arguments on the stack.
3927 (x86_64_store_return_value): Return double and float values in SSE
3928 register.
3929
3930 2003-06-24 Michael Chastain <mec@shout.net>
3931
3932 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3933 the "constructor breakpoints ignored" bug.
3934
3935 2003-06-25 David Carlton <carlton@kealia.com>
3936
3937 * MAINTAINERS: Update e-mail address.
3938
3939 2003-06-24 Jim Blandy <jimb@redhat.com>
3940
3941 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3942
3943 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3944 function.
3945 (ppc_linux_init_abi): Register it as the
3946 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3947
3948 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3949 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3950 method.
3951
3952 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3953 (ppc64_standard_linkage_target): Use it.
3954
3955 2003-06-23 Andrew Cagney <cagney@redhat.com>
3956
3957 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3958 for 0 "int0" and 4 "int32" sized registers.
3959 * gdbtypes.c (builtin_type_int0): Define.
3960 (build_gdbtypes): Initialize builtin_type_int0.
3961 * gdbtypes.h (builtin_type_int0): Declare.
3962
3963 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3964
3965 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3966 as characters are unsigned.
3967
3968 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3969
3970 PR gdb/1179
3971 * dwarfread.c (struct_type): Skip static fields without crashing.
3972
3973 2003-06-22 Andrew Cagney <cagney@redhat.com>
3974
3975 GDB 6.0 branch created.
3976 * README: Update.
3977 * PROBLEMS: Update. Empty.
3978 * NEWS: Update.
3979
3980 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3981
3982 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3983 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3984
3985 2003-06-22 Andrew Cagney <cagney@redhat.com>
3986
3987 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3988 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3989 Velikov.
3990
3991 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3992
3993 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3994 compilers.
3995
3996 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3997
3998 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3999 argument of val_print.
4000 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4001 to the address argument of baseclass_offset or target_read_memory.
4002 Do add it to the argument of cp_print_value_fields.
4003
4004 2003-06-21 Andrew Cagney <cagney@redhat.com>
4005
4006 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4007 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4008 instead of 0..NUM_REGS.
4009 (mips_register_reggroup_p): New function.
4010 (mips_pseudo_register_write): New function.
4011 (mips_pseudo_register_read): New function.
4012 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4013 based on the register's type.
4014 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4015 cooked.
4016 (mips_get_saved_register): Simplify. Assert that REGNO is a
4017 pseudo / cooked.
4018 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4019 (mips_register_type): Replace mips_register_virtual_type. Map
4020 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4021 when available.
4022 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4023 that the register is cooked / virtual.
4024 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4025 Only get the extra info when needed.
4026 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4027 (mips32_heuristic_proc_desc): Fetch the cooked register.
4028 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4029 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4030 (mips_print_register): Use gdbarch_register_type, instead of
4031 REGISTER_VIRTUAL_TYPE.
4032 (print_gp_register_row): Use gdbarch_register_type, instead of
4033 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4034 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4035 Print the pseudo / cooked registers.
4036 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4037 Print the pseudo / cooked registers.
4038 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4039 REG_NUM is pseudo / cooked.
4040 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4041 (mips_n32n64_xfer_return_value): Ditto.
4042 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4043 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4044 (mips_register_sim_regno): New function.
4045 (mips_gdbarch_init): Set deprecated_register_byte,
4046 register_group_p, pseudo_register_write, pseudo_register_read,
4047 register_sim_regno, and num_pseudo_regs. Set register_type,
4048 instead of register_virtual_type.
4049 * Makefile.in (mips-tdep.o): Update dependencies.
4050 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4051 REGISTER_VIRTUAL_TYPE.
4052 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4053 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4054 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4055 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4056 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4057
4058 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4059
4060 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4061 * cli/cli-cmds.c: Include "gdb_vfork.h".
4062 (shell_escape): Use vfork.
4063
4064 2003-06-21 Andrew Cagney <cagney@redhat.com>
4065
4066 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4067 32 bit floating-point register saves.
4068
4069 * frame.h (deprecated_unwind_get_saved_register): Delete.
4070 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4071 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4072 and deprecated_get_next_frame_hack instead of
4073 deprecated_unwind_get_saved_register.
4074
4075 * mips-tdep.c (mips_dump_tdep): Do not print
4076 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4077
4078 * frame.c (get_frame_register): New function.
4079 (frame_unwind_register_signed): New function.
4080 (get_frame_register_signed): New function.
4081 (frame_unwind_register_unsigned): New function.
4082 (get_frame_register_unsigned): New function.
4083 * frame.h: Add comments on naming schema.
4084 (get_frame_register, frame_unwind_register_signed): Declare.
4085 (get_frame_register_signed, get_frame_register_signed): Declare.
4086 (frame_unwind_register_unsigned): Declare.
4087 (get_frame_register_unsigned): Declare.
4088
4089 2003-06-20 Theodore A. Roth <troth@openavr.org>
4090
4091 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4092
4093 2003-06-20 Theodore A. Roth <troth@openavr.org>
4094
4095 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4096 (avr_read_sp): Ditto.
4097
4098 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4099
4100 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4101 * config/arm/nm-linux.h: Likewise.
4102 * config/arm/tm-linux.h: Likewise.
4103 * config/ia64/nm-linux.h: Likewise.
4104 * config/ia64/tm-ia64.h: Likewise.
4105 * config/s390/tm-linux.h: Likewise.
4106 * config/s390/tm-s390.h: Likewise.
4107 * s390-nat.c: Likewise.
4108 * s390-tdep.c: Likewise.
4109
4110 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4111 * config/ia64/linux.mt: Likewise.
4112 * config/m68k/linux.mh: Likewise.
4113 * config/mips/linux.mt: Likewise.
4114 * config/powerpc/linux.mh: Likewise.
4115 * config/sh/linux.mt: Likewise.
4116
4117 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4118
4119 * solib.c (solib_open): Change tests for whether to search
4120 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4121 comments.
4122
4123 2003-06-19 Theodore A. Roth <troth@openavr.org>
4124
4125 * avr-tdep.c (avr_frame_address): Delete function.
4126 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4127 set_gdbarch_frame_args_address.
4128
4129 2003-06-19 Andrew Cagney <cagney@redhat.com>
4130
4131 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4132 (REGISTER_CONVERT_FROM_TYPE): Delete.
4133 (mips_register_convert_to_type): Delete declaration.
4134 (mips_register_convert_from_type): Delete declaration.
4135 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4136 kernel/.
4137
4138 2003-06-19 Michael Snyder <msnyder@redhat.com>
4139
4140 * linux-nat.h: New file.
4141 * linux-nat.c: Include linux-nat.h.
4142 * lin-lwp.c: Include linux-nat.h.
4143 Move struct lwp_info def to linux-nat.h.
4144 * linux-proc.c: Include linux-nat.h.
4145 (linux_make_note_section): Iterate over lwps instead of threads.
4146 (linux_do_thread_registers): Use lwp instead of merged pid.
4147 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4148 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4149 Add dependency on linux_nat_h.
4150
4151 2003-06-19 Theodore A. Roth <troth@openavr.org>
4152
4153 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4154
4155 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4156
4157 * varobj.c (get_type, get_target_type): Use check_typedef.
4158
4159 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4160
4161 * breakpoint.c (insert_catchpoint): Call internal_error.
4162
4163 2003-06-19 Theodore A. Roth <troth@openavr.org>
4164
4165 * avr-tdep.c (avr_push_dummy_code): Delete function.
4166 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4167
4168 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4169
4170 * arch-utils.c (default_prepare_to_proceed): Remove.
4171 (generic_prepare_to_proceed): Remove.
4172 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4173 (generic_prepare_to_proceed): Remove prototype.
4174 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4175 * gdbarch.c: Regenerate.
4176 * gdbarch.h: Regenerate.
4177 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4178 * hppah-nat.c (hppa_switched_threads): Remove.
4179 * infrun.c (prepare_to_proceed): New static function, copied from
4180 generic_prepare_to_proceed. Remove select_it argument.
4181 (proceed): Call prepare_to_proceed.
4182 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4183 variables.
4184 (ptrace_wait): Don't set the removed variables.
4185 (hppa_switched_threads): Remove.
4186 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4187 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4188 (lin_lwp_prepare_to_proceed): Remove prototype.
4189 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4190 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4191
4192 2003-06-18 Theodore A. Roth <troth@openavr.org>
4193
4194 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4195 trad-frame.h.
4196 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4197 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4198 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4199 (AVR_PROLOGUE_*): Enumerate prologue types.
4200 (struct frame_extra_info): Remove.
4201 (struct avr_unwind_cache): Define.
4202 (avr_write_sp): Delete function.
4203 (avr_read_fp): Ditto.
4204 (avr_init_extra_frame_info): Ditto.
4205 (avr_pop_frame): Ditto.
4206 (avr_frame_saved_pc): Ditto.
4207 (avr_saved_pc_after_call): Ditto.
4208 (avr_push_return_address): Ditto.
4209 (avr_frame_chain): Ditto.
4210 (avr_store_struct_return): Ditto.
4211 (avr_push_arguments): Ditto.
4212 (avr_scan_prologue): Update comments. Changed to set up the info for
4213 cache unwinding. Now returns end of prologue PC.
4214 (avr_skip_prologue): Better handling of functions lacking a prologue
4215 by using avr_scan_prologue.
4216 (avr_scan_arg_moves): New function.
4217 (avr_saved_regs_unwinder): Ditto.
4218 (avr_frame_unwind_cache): Ditto.
4219 (avr_unwind_pc): Ditto.
4220 (avr_frame_this_id): Ditto.
4221 (avr_frame_prev_register): Ditto.
4222 (avr_frame_p): Ditto.
4223 (avr_frame_base_address ): Ditto.
4224 (avr_unwind_dummy_id): Ditto.
4225 (avr_push_dummy_code): Ditto.
4226 (push_stack_item): Ditto.
4227 (pop_stack_item): Ditto.
4228 (avr_push_dummy_call): Ditto.
4229 (struct stack_item): Define.
4230 (avr_frame_unwind): Declare structure.
4231 (avr_frame_base): Ditto.
4232 (avr_gdbarch_init): Remove calls to
4233 set_gdbarch_deprecated_init_frame_pc,
4234 set_gdbarch_deprecated_target_read_fp,
4235 set_gdbarch_deprecated_dummy_write_sp,
4236 set_gdbarch_deprecated_fp_regnum,
4237 set_gdbarch_deprecated_push_arguments,
4238 set_gdbarch_deprecated_push_return_address,
4239 set_gdbarch_deprecated_pop_frame,
4240 set_gdbarch_deprecated_store_struct_return,
4241 set_gdbarch_deprecated_frame_init_saved_regs,
4242 set_gdbarch_deprecated_init_extra_frame_info,
4243 set_gdbarch_deprecated_frame_chain,
4244 set_gdbarch_deprecated_frame_saved_pc,
4245 set_gdbarch_deprecated_saved_pc_after_call.
4246 Add calls to set_gdbarch_push_dummy_call,
4247 set_gdbarch_push_dummy_code,
4248 frame_unwind_append_predicate,
4249 frame_base_set_default,
4250 set_gdbarch_unwind_dummy_id,
4251 set_gdbarch_unwind_pc.
4252 Wrap a long line.
4253
4254 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4255
4256 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4257 registers for H8/300S.
4258 (h8300_print_registers_info): Ditto.
4259 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4260
4261 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4262
4263 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4264 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4265 (lin_lwp_wait): Likewise. Update comments.
4266 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4267 (pull_pid_from_list, linux_record_stopped_pid): New.
4268
4269 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4270
4271 * ada-lang.c (scan_discrim_bound): Name first argument.
4272 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4273 declared by ALL_BLOCK_SYMBOLS.
4274
4275 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4276
4277 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4278 ("regcache.h"): Include it.
4279 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4280
4281 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4282
4283 * NEWS: Mention gdbserver detach change and "disconnect" command.
4284 * infcmd.c (disconnect_command): New function.
4285 (_initialize_infcmd): Add ``disconnect'' command.
4286 * remote.c (remote_async_detach): Delete.
4287 (remote_detach): Merge remote_async_detach.
4288 (remote_disconnect): New.
4289 (init_remote_ops): Set to_disconnect.
4290 (init_remote_cisco_ops): Likewise.
4291 (init_remote_async_ops): Likewise. Use remote_detach.
4292 * target.c (cleanup_target): Default to_disconnect.
4293 (update_current_target): Inherit to_disconnect.
4294 (target_disconnect, debug_to_disconnect): New functions.
4295 (setup_target_debug): Set to_disconnect.
4296 * target.h (struct target_ops): Add to_disconnect.
4297 (target_disconnect): Add prototype.
4298
4299 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4300
4301 * breakpoint.c (insert_catchpoint): New function.
4302 (insert_breakpoints): Use catch_exceptions to call
4303 insert_catchpoint. Disable catchpoints if they fail to insert.
4304
4305 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4306
4307 * symfile.c (reread_symbols): Clear sym_private.
4308
4309 2003-06-17 Andrew Cagney <cagney@redhat.com>
4310
4311 * trad-frame.h (struct frame_info): Add opaque declaration.
4312 * remote-fileio.h (struct cmd_list_element): Add opaque
4313 declaration.
4314 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4315 comments.
4316
4317 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4318
4319 * remote.c (remote_prepare_to_store): Replace call to
4320 deprecated_read_register_bytes with multiple regcache_raw_read
4321 calls.
4322
4323 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4324
4325 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4326 (nto_find_and_open_solib): Likewise.
4327 (nto_init_solib_absolute_prefix): Likewise.
4328 (_initialize_nto_tdep): Fix indentation.
4329
4330 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4331
4332 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4333
4334 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4335
4336 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4337
4338 2003-06-17 Jim Blandy <jimb@redhat.com>
4339
4340 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4341
4342 2003-06-16 Theodore A. Roth <troth@openavr.org>
4343
4344 * avr-tdep.c (avr_extract_return_value): New function.
4345 (avr_gdbarch_init): Set extract_return_value method.
4346
4347 2003-06-16 Andrew Cagney <cagney@redhat.com>
4348
4349 * frame.h (deprecated_get_next_frame_hack): Declare.
4350 * frame.c (legacy_saved_regs_prev_register): Only require
4351 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4352 there are always saved regs.
4353 (deprecated_generic_get_saved_register): Do not require
4354 DEPRECATED_FRAME_INIT_SAVED_REGS.
4355 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4356 use frame ID unwind instead.
4357 (deprecated_get_next_frame_hack): New function.
4358
4359 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4360
4361 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4362 (h8300_push_dummy_call): ...this function. Some minor optimization.
4363 (h8300_push_return_address): Remove.
4364 (h8300_gdbarch_init): Remove calls to
4365 set_gdbarch_deprecated_dummy_write_sp,
4366 set_gdbarch_deprecated_push_arguments and
4367 set_gdbarch_deprecated_push_return_address.
4368 Add call to set_gdbarch_push_dummy_call.
4369
4370 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4371
4372 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4373 (E_PSEUDO_EXR_REGNUM): Ditto.
4374 (h8300_is_argument_spill): Check for instructions moving argument
4375 registers into safe registers.
4376 (h8300_skip_prologue): Check for stm instruction to push registers
4377 used for register variables onto stack.
4378 (gdb_print_insn_h8300): Remove.
4379 (h8300_examine_prologue): Add a comment.
4380 (h8300_register_name): Take pseudo registers into account.
4381 (h8300s_register_name): Ditto.
4382 (h8300sx_register_name): Ditto.
4383 (h8300_print_register): Ditto.
4384 (h8300_print_registers_info): Define "nice" printing order.
4385 (h8300_saved_pc_after_call): Take pseudo registers into account.
4386 (h8300_register_type): Ditto. Return type used for remote connection
4387 when requesting real CCR or EXR register, return actual type when
4388 requesting pseudo CCR or EXR.
4389 (h8300_pseudo_register_read): New function.
4390 (h8300_pseudo_register_write): Ditto.
4391 (h8300_dbg_reg_to_regnum): Ditto.
4392 (h8300s_dbg_reg_to_regnum): Ditto.
4393 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4394 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4395 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4396 set_gdbarch_print_insn architecture dependent.
4397 Call set_gdbarch_pseudo_register_read and
4398 set_gdbarch_pseudo_register_write.
4399 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4400
4401 2003-06-16 Andrew Cagney <cagney@redhat.com>
4402
4403 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4404 * gdbarch.h, gdbarch.c: Re-generate.
4405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4406 * s390-tdep.c (s390_gdbarch_init): Update.
4407 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4408 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4409 * mips-tdep.c (mips_gdbarch_init): Update.
4410 * mcore-tdep.c (mcore_gdbarch_init): Update.
4411 * cris-tdep.c (cris_gdbarch_init): Update.
4412 * infcall.c (call_function_by_hand): Update.
4413 * ia64-tdep.c (ia64_push_arguments): Update comment.
4414 * frame.c (legacy_get_prev_frame): Do not assume
4415 SAVE_DUMMY_FRAME_TOS_P.
4416 * dummy-frame.c (find_dummy_frame): Update comment.
4417
4418 2003-06-16 Andrew Cagney <cagney@redhat.com>
4419
4420 * regcache.c (do_cooked_read): Do not use register_valid_p.
4421
4422 2003-06-15 Theodore A. Roth <troth@openavr.org>
4423
4424 * avr-tdep.c (avr_register_type): Remove a blank line.
4425 (avr_scan_prologue): Correct some comments.
4426
4427 2003-06-15 Theodore A. Roth <troth@openavr.org>
4428
4429 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4430 prologue types.
4431 Properly scan prologues generated by gcc with the -mcall-prologues
4432 option.
4433 Add code to scan -mcall-prologues for mega devices.
4434
4435 2003-06-15 Theodore A. Roth <troth@openavr.org>
4436
4437 * avr-tdep.c (avr_register_byte): Delete function.
4438 (avr_register_raw_size): Delete function.
4439 (avr_register_virtual_size): Delete function.
4440 (avr_register_virtual_type): Delete function.
4441 (avr_register_type): New function.
4442 (avr_address_to_pointer): Remove unused code.
4443 (avr_read_fp): Need to read FP as two separate bytes due to change to
4444 avr_register_type() usage.
4445 (avr_gdbarch_init): Don't set deprecated_register_size.
4446 Don't set deprecated_register_bytes.
4447 Don't set deprecated_register_byte.
4448 Don't set deprecated_register_raw_size.
4449 Don't set deprecated_max_register_raw_size.
4450 Don't set deprecated_register_virtual_size.
4451 Don't set deprecated_max_register_virtual_size.
4452 Don't set deprecated_register_virtual_type.
4453 Set register_type method.
4454
4455 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4456
4457 * Makefile.in (linux-nat.o): Add rule.
4458 * linux-nat.c: New file.
4459 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4460 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4461 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4462 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4463 * config/arm/linux.mh (NATDEPFILES): Likewise.
4464 * config/i386/linux.mh (NATDEPFILES): Likewise.
4465 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4466 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4467 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4468 * config/mips/linux.mh (NATDEPFILES): Likewise.
4469 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4470 * config/s390/s390.mh (NATDEPFILES): Likewise.
4471 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4472
4473 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4474
4475 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4476 replace out-of-date comment.
4477
4478 2003-06-15 Andrew Cagney <cagney@redhat.com>
4479
4480 * rdi-share/host.h (Fail): Change to a varargs function.
4481 * remote-rdi.c (Fail): Update.
4482
4483 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4484
4485 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4486 (i386_convert_register_p, i386_register_to_value,
4487 i386_register_from_value): Handle types longer than 8 bytes.
4488
4489 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4490
4491 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4492 Move floating-point code to new function in i387-tdep.c.
4493 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4494 New functions containing code moved here from i386-tdep.c.
4495 * i387-tdep.h: Add opaque declaration for `struct type'.
4496 (i387_register_to_value, i387_value_to_register): New prototypes.
4497 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4498 (x86_64_init_abi): Set convert_register_p, register_to_value and
4499 value_to_register here.
4500
4501 2003-06-14 Andrew Cagney <cagney@redhat.com>
4502
4503 * mips-tdep.c (mips_register_to_value): Make static.
4504 (mips_value_to_register): Make static.
4505 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4506 * ia64-tdep.c (ia64_register_raw_size): Make static.
4507 (ia64_register_virtual_size): Make static.
4508 (ia64_register_byte): Make static.
4509 * i387-tdep.c: Include "i387-tdep.h".
4510 (print_387_control_word): Delete function.
4511 (print_387_status_word): Delete function.
4512 (print_387_status_bits): Delete function.
4513 (print_387_control_bits): Delete function.
4514 * Makefile.in (i387-tdep.o): Update dependencies.
4515 * rdi-share/host.h (Fail): Declare.
4516 * remote-rdi.c (Fail): Update to match declaration.
4517
4518 2003-06-14 Andrew Cagney <cagney@redhat.com>
4519
4520 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4521 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4522 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4523 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4524 * README: Delete reference to remote-array.
4525 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4526 (remote-array.o): Delete target.
4527 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4528 * remote-array.c: Delete file.
4529
4530 2003-06-14 Andrew Cagney <cagney@redhat.com>
4531 Mark Kettenis <kettenis@gnu.org>
4532
4533 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4534 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4535 parameter with "frame".
4536 * gdbarch.h, gdbarch.c: Re-generate.
4537 * frame.h (put_frame_register): Declare.
4538 * frame.c (put_frame_register): New function.
4539 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4540 (legacy_register_to_value): Rewrite, use "frame" to get the
4541 register value.
4542 (legacy_value_to_register): Rewrite, use "frame" to find the
4543 register's location before storing.
4544 * arch-utils.h (legacy_convert_register_p): Update.
4545 (legacy_register_to_value, legacy_value_to_register): Update.
4546 * findvar.c (value_from_register): Rewrite, eliminate use of
4547 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4548 "frame" to REGISTER_TO_VALUE.
4549 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4550 lval_reg_frame_relative + lval_register branch of the switch. Do
4551 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4552 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4553 I386_EDI_REGNUM): New defines.
4554 (i386_next_regnum, i386_convert_register_p,
4555 i386_register_to_value, i386_value_to_register): New functions.
4556 (i386_register_convertible, i386_register_convert_to_virtual,
4557 i386_convert_to_raw): Remove functions.
4558 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4559 value_to_register instead of register_convertible,
4560 register_convert_to_virtual and register_convert_to_raw.
4561 * mips-tdep.c (mips_convert_register_p): New function.
4562 (mips_value_to_register): Replace mips_register_convert_from_type.
4563 (mips_register_to_value): Replace mips_register_convert_to_type.
4564 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4565 register_to_value.
4566 * alpha-tdep.c (alpha_convert_register_p): Update.
4567 (alpha_value_to_register): Update, store the register.
4568 (alpha_register_to_value): Update, fetch the register.
4569
4570 2003-06-14 Theodore A. Roth <troth@openavr.org>
4571
4572 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4573 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4574 Don't set deprecated_call_dummy_words.
4575 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4576 Don't set remote_translate_xfer_address.
4577 (avr_io_reg_read_command): Remove commented out debug printf.
4578 Wrap a long line.
4579
4580 2003-06-14 Theodore A. Roth <troth@openavr.org>
4581
4582 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4583 causes gdb to seg fault.
4584
4585 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4586
4587 * sparc-nat.c (fetch_inferior_registers): Correct
4588 a reference to "registers".
4589
4590 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4591
4592 * Makefile.in (exc_request_U_h): Define
4593 (exc_request_S_h): Likewise.
4594 (msg_reply_S_h): Likewise.
4595 (msg_U_h): Likewise.
4596 (notify_S_h): Likewise.
4597 (process_reply_S_h): Likewise.
4598 (gnu-nat.o): Depend on gdb_obstack_h
4599 * gnu-nat.c: Include "gdb_obstack.h".
4600
4601 2003-06-13 Andrew Cagney <cagney@redhat.com>
4602
4603 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4604 * gdbarch.h, gdbarch.c: Re-generate.
4605
4606 2003-06-13 Andrew Cagney <cagney@redhat.com>
4607
4608 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4609 when deprecated REGISTER macros can be deleted.
4610 * gdbarch.h, gdbarch.c: Re-generate.
4611
4612 2003-06-13 Jim Blandy <jimb@redhat.com>
4613
4614 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4615 Linux entry point symbols for _dl_debug_state, too.
4616
4617 2003-06-13 Andrew Cagney <cagney@redhat.com>
4618
4619 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4620 available, do not use the FP register, and always save the TOS.
4621 * dummy-frame.c (dummy_frame_this_id): Do not assert
4622 SAVE_DUMMY_FRAME_TOS.
4623 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4624 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4625 (i386_push_dummy_call): Add 8 to the returned SP.
4626 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4627 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4628 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4629 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4630 (x86_64_push_dummy_call): Return "sp + 16".
4631 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4632 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4633 save_dummy_frame_tos.
4634
4635 2003-06-13 Jim Blandy <jimb@redhat.com>
4636
4637 * frv-tdep.c (frv_use_struct_convention): Delete static
4638 declaration for function deleted in my change of 2003-06-12.
4639
4640 2003-06-13 Theodore A. Roth <troth@openavr.org>
4641
4642 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4643 (avr_pointer_to_address): Shift code addrs left 1 bit.
4644 (avr_convert_from_func_ptr_addr): Delete function since operation is
4645 better handled by avr_address_to_pointer and avr_pointer_to_address.
4646 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4647
4648 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4649
4650 From Kelley Cook <kelleycook@wideopenwest.com>:
4651 * configure.host: Accept i[34567]86 variants.
4652 * configure.tgt: Likewise.
4653 * nlm/configure.in: Likewise.
4654 * nlm/configure: Regenerated.
4655
4656 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4657
4658 * arm-tdep.c (solib-svr4.h): Dont' include it.
4659 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4660 * arm-linux-tdep.c: ... here. Make static.
4661 (arm_linux_init_abi): Register it.
4662 (solib-svr4.h): Include it.
4663 * Makefile.in: Update dependencies.
4664 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4665 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4666
4667 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4668
4669 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4670 indicate registers used for return values.
4671 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4672 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4673 members.
4674 (h8300_init_extra_frame_info): Ditto.
4675 (h8300_frame_locals_address): Removed.
4676 (h8300_frame_args_address): Removed.
4677 (h8300_extract_return_value): Use new regcache structure. Only care
4678 for 16 bit CPUs.
4679 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4680 (h8300_store_return_value): Use new regcache structure. Only care
4681 for 16 bit CPUs.
4682 (h8300h_store_return_value): Same function for 32 bit CPUs.
4683 (h8300_store_struct_return): Removed.
4684 (h8300_extract_struct_value_address): Use new regcache structure.
4685 (h8300h_extract_struct_value_address): Removed.
4686 (h8300_push_dummy_code): New function.
4687 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4688 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4689 set_gdbarch_store_return_value architecture dependent.
4690 Call set_gdbarch_push_dummy_code and
4691 set_gdbarch_extract_struct_value_address.
4692 Remove calls to set_gdbarch_frame_args_address,
4693 set_gdbarch_frame_locals_address,
4694 set_gdbarch_deprecated_store_struct_return,
4695 set_gdbarch_deprecated_extract_return_value,
4696 set_gdbarch_deprecated_extract_struct_value_address,
4697 set_gdbarch_deprecated_call_dummy_words and
4698 set_gdbarch_deprecated_sizeof_call_dummy_words.
4699
4700 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4701
4702 * h8300-tdep.c (h8300_register_byte): Remove.
4703 (h8300h_register_byte): Remove.
4704 (h8300_register_virtual_type): Remove. Substitute by...
4705 (h8300_register_type): New function.
4706 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4707 (h8300h_extract_struct_value_address): Ditto.
4708 (h8300_gdbarch_init): Drop calls to
4709 set_gdbarch_deprecated_register_byte and
4710 set_gdbarch_deprecated_register_virtual_type.
4711 Add call to set_gdbarch_register_type.
4712
4713 2003-06-13 Andrew Cagney <cagney@redhat.com>
4714
4715 * gdbarch.sh: Update comments on registers.
4716 (deprecated_register_byte): Rename register_byte.
4717 (deprecated_register_raw_size): Rename register_raw_size.
4718 (deprecated_register_virtual_size): Rename register_virtual_size.
4719 (deprecated_register_virtual_type): Rename register_virtual_type.
4720 * gdbarch.h, gdbarch.c: Re-generate.
4721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4722 * vax-tdep.c (vax_gdbarch_init): Update.
4723 * v850-tdep.c (v850_gdbarch_init): Update.
4724 * sparc-tdep.c (sparc_gdbarch_init): Update.
4725 * sh-tdep.c (sh_gdbarch_init): Update.
4726 * s390-tdep.c (s390_gdbarch_init): Update.
4727 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4728 * ns32k-tdep.c: Update.
4729 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4730 * mips-tdep.c (mips_gdbarch_init): Update.
4731 * mcore-tdep.c (mcore_gdbarch_init): Update.
4732 * m68k-tdep.c (m68k_gdbarch_init): Update.
4733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4734 * ia64-tdep.c (ia64_gdbarch_init): Update.
4735 * hppa-tdep.c (hppa_gdbarch_init): Update.
4736 * h8300-tdep.c (h8300_gdbarch_init): Update.
4737 * frv-tdep.c (frv_gdbarch_init): Update.
4738 * cris-tdep.c (cris_gdbarch_init): Update.
4739 * avr-tdep.c (avr_gdbarch_init): Update.
4740 * alpha-tdep.c (alpha_gdbarch_init): Update.
4741 * arm-tdep.c (arm_gdbarch_init): Update.
4742
4743 2003-06-13 Andrew Cagney <cagney@redhat.com>
4744
4745 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4746 mips_o32_use_struct_convention with always_use_struct_convention.
4747
4748 2003-06-12 David Carlton <carlton@kealia.com>
4749
4750 * cp-namespace.c (cp_set_block_scope): Comment out
4751 processing_has_namespace_info branch.
4752
4753 2003-06-12 Jim Blandy <jimb@redhat.com>
4754
4755 Recognize and skip 64-bit PowerPC Linux linkage functions.
4756 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4757 insn_pattern, insns_match_pattern, d_field, ds_field): New
4758 functions, macros, and types for working with PPC instructions.
4759 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4760 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4761 ppc64_skip_trampoline_code): New functions, variables, and macros
4762 for recognizing and skipping linkage functions.
4763 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4764 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4765
4766 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4767 register offsets for both the 32- and 64-bit interfaces.
4768
4769 Actually finish the job started by my change of 2003-05-29.
4770 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4771 other #definition of this.
4772 (ppc_linux_skip_trampoline_code): Remove declaration.
4773 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4774 static.
4775 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4776 method for GDBARCH.
4777
4778 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4779 'long' on ppc64-*-linux*.
4780
4781 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4782 isn't #defined, assume the register doesn't exist: act as if
4783 tdep->ppc_mq_regnum were -1.
4784
4785 * configure.host, configure.tgt: Add entries for
4786 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4787 powerpc/linux.mt.
4788 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4789 New files.
4790
4791 * arch-utils.c (always_use_struct_convention): New function.
4792 * arch-utils.h (always_use_struct_convention): New prototype.
4793 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4794 (alpha_gdbarch_init): Register always_use_struct_convention,
4795 instead of alpha_use_struct_convention.
4796 * cris-tdep.c (cris_use_struct_convention): Delete.
4797 (cris_gdbarch_init): Register always_use_struct_convention,
4798 instead of cris_use_struct_convention.
4799 * frv-tdep.c (frv_use_struct_convention): Delete.
4800 (frv_gdbarch_init): Register always_use_struct_convention,
4801 instead of frv_use_struct_convention.
4802 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4803 (h8300_gdbarch_init): Register always_use_struct_convention,
4804 instead of h8300_use_struct_convention.
4805 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4806 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4807 instead of mips_o32_use_struct_convention.
4808
4809 2003-06-12 Andrew Cagney <cagney@redhat.com>
4810
4811 * wince.c: Include "mips-tdep.h".
4812 * mips-tdep.h (mips_next_pc): Declare.
4813 * mcore-tdep.c: Make more local functions static.
4814 * Makefile.in (wince.o): Update dependencies.
4815
4816 2003-06-12 David Carlton <carlton@kealia.com>
4817
4818 * symtab.c (lookup_symbol_aux_minsyms): Replace
4819 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4820 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4821 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4822 SYMBOL_NATURAL_NAME.
4823
4824 2003-06-12 Andreas Schwab <schwab@suse.de>
4825
4826 * Makefile.in (tuiDisassem.o): Update dependencies.
4827
4828 2003-06-12 David Carlton <carlton@bactrian.org>
4829
4830 * symtab.h: Delete declaration of make_symbol_overload_list.
4831 Add declaration of lookup_partial_symbol.
4832 * symtab.c (remove_params): Move to cp-support.c.
4833 (overload_list_add_symbol, make_symbol_overload_list)
4834 (sym_return_val_size, sym_return_val_index): Ditto.
4835 (lookup_partial_symbol): Make extern.
4836 * cp-support.h: Add declaration of make_symbol_overload_list.
4837 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4838 symtab.h, and block.h.
4839 (remove_params): Move here from symtab.c.
4840 (overload_list_add_symbol, make_symbol_overload_list)
4841 (sym_return_val_size, sym_return_val_index): Ditto.
4842 * valops.c: Include cp-support.h.
4843 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4844 frame_h, and block_h.
4845 (valops.o): Depend on cp_support_h.
4846
4847 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4848
4849 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4850 substitute by NUM_REGS throughout.
4851 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4852 (h8300s_register_name): New function for H8S registers.
4853 (h8300sx_register_name): Ditto for H8SX registers.
4854 (h8300_print_register): Revise register printing, avoid depending
4855 on 32 bit long.
4856 (h8300_register_byte): Only care for H8/300 registers.
4857 (h8300h_register_byte): New function for any other architecture.
4858 (h8300_register_raw_size): Remove.
4859 (h8300_register_virtual_type): Revise to return actually useful
4860 type.
4861 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4862 (h8300h_extract_struct_value_address): New function for any other
4863 architecture.
4864 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4865 set_gdbarch_register_name, set_gdbarch_register_byte,
4866 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4867 Remove calls to set_gdbarch_deprecated_register_size,
4868 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4869 set_gdbarch_deprecated_max_register_raw_size,
4870 set_gdbarch_register_virtual_size and
4871 set_gdbarch_deprecated_max_register_virtual_size entirely.
4872 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4873 set_gdbarch_long_double_bit.
4874
4875 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4876
4877 * doublest.c (convert_doublest_to_floatformat): When dealing
4878 with the implied integer bit, only alter mant_bits if we are
4879 processing a full 32 bits of mantissa.
4880
4881 2003-06-11 David Carlton <carlton@bactrian.org>
4882
4883 * dictionary.h: New.
4884 * dictionary.c: New.
4885 * block.h: Add opaque declaration for struct dictionary.
4886 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4887 'sym' members.
4888 (BLOCK_DICT): New macro.
4889 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4890 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4891 BLOCK_SHOULD_SORT.
4892 (ALL_BLOCK_SYMBOLS): Update definition.
4893 * Makefile.in (SFILES): Add dictionary.c.
4894 (dictionary_h): New.
4895 (COMMON_OBS): Add dictionary.o.
4896 (dictionary.o): New.
4897 (ada-lang.o): Depend on dictionary_h.
4898 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4899 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4900 (mi-cmd-stack.o): Ditto.
4901 (gdbtk-cmds.o): Update dependencies.
4902 (gdbtk-stack.o): Ditto.
4903 * ada-lang.c: Include dictionary.h.
4904 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4905 (fill_in_ada_prototype, debug_print_block): Ditto.
4906 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4907 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4908 'is_sorted'.
4909 * mdebugread.c: Include dictionary.h.
4910 (struct parse_stack): Delete 'maxsyms' member.
4911 (parse_symbol): Update calls to new_block. Delete calls to
4912 shrink_block. Use dictionary methods.
4913 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4914 Update calls to new_symtab. Don't maintain maxsyms data.
4915 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4916 (add_symbol): Just call dict_add_symbol.
4917 (new_symtab): Delete 'maxsyms' argument.
4918 (new_symtab): Update calls to new_block.
4919 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4920 (shrink_block): Delete function.
4921 (fixup_sigtramp): Update call to new_block. Add symbol via
4922 dict_add_symbol.
4923 * jv-lang.c: Include dictionary.h.
4924 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4925 appropriately. Set class_symtab->free_func. Make sure the
4926 blockvector is big enough to hold two blocks.
4927 (add_class_symtab_symbol): Use dictionary methods.
4928 (free_class_block): New function.
4929 (type_from_class): Replace explicit iteration by
4930 ALL_BLOCK_SYMBOLS.
4931 * symtab.h (struct symtab): Replace 'free_ptr' method by
4932 'free_func'.
4933 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4934 sort_symtab_syms.
4935 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4936 sort_symtab_syms.
4937 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4938 Include dictionary.h.
4939 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4940 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4941 sort_symtab_syms.
4942 * objfiles.c: Include dictionary.h.
4943 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4944 * buildsym.c: Include dictionary.h.
4945 (finish_block): Use dictionary methods.
4946 (end_symtab): Set free_func to NULL, not free_ptr.
4947 * tracepoint.c: Include dictionary.h.
4948 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4949 (scope_info): Ditto.
4950 * stack.c: Include dictionary.h.
4951 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4952 (print_block_frame_labels, print_frame_arg_vars)
4953 (print_frame_args): Ditto.
4954 * symmisc.c (free_symtab_block): Use dictionary methods.
4955 (dump_symtab): Ditto.
4956 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4957 Include dictionary.h.
4958 * symfile.h: Delete declarations of sort_block_syms,
4959 sort_symtab_syms.
4960 * symfile.c (sort_block_syms): Delete.
4961 (sort_symtab_syms): Delete.
4962 * symtab.c: Include dictionary.h.
4963 (lookup_block_symbol): Use dictionary iterators.
4964 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4965 (search_symbols, make_symbol_completion_list): Ditto.
4966 (make_symbol_overload_list): Ditto.
4967 * valops.c (value_of_local): Use dict_empty.
4968 Include dictionary.h.
4969
4970 2003-06-11 J. Brobecker <brobecker@gnat.com>
4971
4972 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4973
4974 2003-06-11 David Carlton <carlton@bactrian.org>
4975
4976 * block.h (BLOCK_SHOULD_SORT): Delete.
4977 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4978 blocks.
4979 * ada-lang.c (ada_add_block_symbols): Ditto.
4980 * symfile.c (sort_block_syms): Delete.
4981 (sort_symtab_syms): Ditto.
4982 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4983 declarations.
4984 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4985 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4986 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4987 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4988 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4989 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4990 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4991
4992 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4993
4994 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4995 bits to 128.
4996
4997 2003-06-11 Andrew Cagney <cagney@redhat.com>
4998
4999 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5000 REGISTER_CONVERTIBLE.
5001 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5002 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5003 * gdbarch.h, gdbarch.c: Re-generate.
5004 * arch-utils.h (deprecated_register_convertible_not): Rename
5005 generic_register_convertible_not.
5006 * arch-utils.c (deprecated_register_convertible_not): Rename
5007 generic_register_convertible.
5008 (legacy_convert_register_p, legacy_register_to_value): Update.
5009 * sh-tdep.c (sh64_push_arguments): Update.
5010 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5011 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5012 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5013 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5014 * arch-utils.c (legacy_value_to_register): Update.
5015 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5016 (rs6000_register_convert_to_raw): Make parameter "from" const.
5017 * mips-tdep.c (mips_gdbarch_init): Update.
5018 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5019 * infcmd.c (default_print_registers_info): Update.
5020 * ia64-tdep.c (ia64_gdbarch_init): Update.
5021 (ia64_register_convert_to_raw): Make parameter "from" const.
5022 * i386-tdep.c (i386_gdbarch_init): Update.
5023 (i386_register_convert_to_raw): Update.
5024
5025 2003-06-11 Andrew Cagney <cagney@redhat.com>
5026
5027 * remote-fileio.c: Include "remote-fileio.h".
5028 * Makefile.in (remote-fileio.o): Update dependencies.
5029 (remote_fileio_h): Fix typo.
5030
5031 2003-06-11 Andrew Cagney <cagney@redhat.com>
5032
5033 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5034 (xstormy16_save_dummy_frame_tos): Make static.
5035 (_initialize_xstormy16_tdep): Add declaration.
5036 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5037 * v850-tdep.c: Make local functions static.
5038 (_initialize_v850_tdep): Add declaration.
5039 * sparc-tdep.c: Make local functions static.
5040 (_initialize_sparc_tdep): Add declaration.
5041 * sh-tdep.c: Make local functions static.
5042 (_initialize_sh_tdep): Add declaration.
5043 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5044 * s390-tdep.c: Make local functions static.
5045 (_initialize_s390_tdep): Add declaration.
5046 * dbxread.c (find_stab_function_addr): Make static.
5047 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5048 * ocd.c (_initialize_remote_ocd): Add declaration.
5049 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5050 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5051 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5052 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5053 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5054 * remote-array.c (_initialize_array): Add declaration.
5055 (_initialize_remote_monitors): Add declaration.
5056 * remote-mips.c: Make local functions static.
5057 (_initialize_remote_mips): Add declaration.
5058 * mcore-tdep.c: Make all local functions static.
5059 (_initialize_mcore_tdep): Add declaration.
5060 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5061 * abug-rom.c (_initialize_abug_rom): Add declaration.
5062 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5063 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5064 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5065 * remote-est.c (_initialize_est): Add declaration.
5066 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5067 (m68hc11_call_dummy_address): Make static.
5068 * ia64-tdep.c: Make local functions static.
5069 (_initialize_ia64_tdep): Add declaration.
5070 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5071 * monitor.c (monitor_wait_filter): Make static.
5072 (_initialize_remote_monitors): Add declaration.
5073 * remote-hms.c (_initialize_remote_hms): Add declaration.
5074 * remote-e7000.c (fetch_regs_from_dump): Make static.
5075 (expect_n): Make static.
5076 (_initialize_remote_e7000): Add declaration.
5077 * ser-e7kpc.c: Always include "defs.h".
5078 (_initialize_ser_e7000pc): Add declaration.
5079 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5080 * cris-tdep.c: Make all but one function static.
5081 (_initialize_cris_tdep): Add declaration.
5082 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5083 * solib.c (update_solib_list): Make static.
5084 (_initialize_solib): Add declaration.
5085 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5086 (_initialize_avr_tdep): Add declaration.
5087 * remote-rdi.c (voiddummy): Make static.
5088 (_initialize_remote_rdi): Add declaration.
5089 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5090 * remote-rdp.c (send_rdp): Make static.
5091 (_initialize_remote_rdp): Add declaration.
5092 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5093
5094 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5095
5096 * remote-fileio.c: Make ari happy.
5097
5098 2003-06-10 J. Brobecker <brobecker@gnat.com>
5099
5100 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5101 fetching the trailing bytes of the buffer we are about to write.
5102
5103 2003-06-10 Andrew Cagney <cagney@redhat.com>
5104
5105 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5106 * Makefile.in (remote-fileio.o): Update dependencies.
5107 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5108 include <setjmp.h>, or <sys/types.h> conditional on USG.
5109 (remote_fio_jmp_buf): Delete global variable.
5110
5111 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5112 Martin M. Hunt <hunt@redhat.com>
5113
5114 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5115 (SFILES): Add remote-fileio.c.
5116 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5117 dependencies for building remote.o.
5118 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5119 * remote-fileio.h: New header file defining remote File-I/O interface.
5120 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5121 static storage class.
5122 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5123 'F' packet.
5124 (_initialize_remote): Call initialize_remote_fileio().
5125 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5126 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5127 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5128 (captured_main): Initialize new ui_files.
5129 * ui-file.c: Add read and fgets input functions.
5130 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5131 (null_file_read): New function.
5132 (ui_file_read): New function.
5133 (set_ui_file_read): New function.
5134 (stdio_file_read): New function.
5135 * ui-file.h: New type ui_file_read_ftype.
5136 (set_ui_file_read): Declare.
5137 (ui_file_read): Declare.
5138
5139 2003-06-09 Andrew Cagney <cagney@redhat.com>
5140
5141 * frame.h (deprecated_unwind_get_saved_register): Rename
5142 generic_unwind_get_saved_register, update comments.
5143 * mips-tdep.c (mips_get_saved_register): Update.
5144 * frame.c (deprecated_unwind_get_saved_register): Update.
5145
5146 2003-06-09 Andrew Cagney <cagney@redhat.com>
5147
5148 * vax-tdep.c (vax_frame_locals_address): Delete function.
5149 (vax_gdbarch_init): Do not set frame_locals_address.
5150 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5151 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5152 * s390-tdep.c (s390_frame_args_address): Delete function.
5153 (s390_gdbarch_init): Do not set frame_args_address or
5154 frame_locals_address.
5155 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5156 (ns32k_gdbarch_init): Do not set frame_locals_address.
5157 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5158 (hppa_frame_locals_address): Delete function.
5159 (hppa_gdbarch_init): Do not set frame_args_address, or
5160 frame_locals_address.
5161 * arm-tdep.c (arm_frame_args_address): Delete.
5162 (arm_frame_locals_address): Delete.
5163 (arm_gdbarch_init): Do not set frame_args_address, or
5164 frame_locals_address.
5165
5166 2003-06-09 Andrew Cagney <cagney@redhat.com>
5167
5168 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5169 * gdbarch.h, gdbarch.c: Re-generate.
5170 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5171 * arch-utils.c (frame_num_args_unknown): Delete function.
5172 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5173 (frame_info): Use FRAME_NUM_ARGS_P.
5174 * arm-tdep.c (arm_frame_num_args): Delete function.
5175 (arm_gdbarch_init): Do not set frame_num_args.
5176 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5177 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5178 (hppa_gdbarch_init): Do not set frame_num_args.
5179 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5181 frame_num_args to default frame_num_args_unknown.
5182 * v850-tdep.c (v850_gdbarch_init): Ditto.
5183 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5184 * sh-tdep.c (sh_gdbarch_init): Ditto.
5185 * s390-tdep.c (s390_gdbarch_init): Ditto.
5186 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5187 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5188 * mips-tdep.c (mips_gdbarch_init): Ditto.
5189 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5190 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5191 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5192 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5193 * i386-tdep.c (i386_gdbarch_init): Ditto.
5194 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5195 * frv-tdep.c (frv_gdbarch_init): Ditto.
5196 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5197 * cris-tdep.c (cris_gdbarch_init): Ditto.
5198 * avr-tdep.c (avr_gdbarch_init): Ditto.
5199 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5200
5201 2003-06-09 Andrew Cagney <cagney@redhat.com>
5202
5203 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5204 (print_frame_args): Moved to "stack.c".
5205 * stack.c: Include "gdb_assert.h".
5206 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5207 (print_frame_args): Moved from "printcmd.c".
5208 * frame.h (print_frame_args): Delete declaration.
5209 * Makefile.in (stack.o): Update dependencies.
5210
5211 2003-06-08 Andrew Cagney <cagney@redhat.com>
5212
5213 * frame.c (get_prev_frame): Remove reference to
5214 frame_args_address_correct in comments.
5215 * frame-base.c (default_frame_args_address): Delete code
5216 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5217 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5218 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5219 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5220 (vax_frame_args_address_correct): Delete declaration.
5221
5222 2003-06-08 Andrew Cagney <cagney@redhat.com>
5223
5224 * gdbarch.sh (UNWIND_SP): Add.
5225 * gdbarch.h, gdbarch.c: Re-generate.
5226 * frame.c (frame_sp_unwind): New function.
5227 (get_frame_sp): New function.
5228 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5229 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5230 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5231 value.
5232 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5233 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5234
5235 2003-06-08 Andrew Cagney <cagney@redhat.com>
5236
5237 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5238 REMOTE_BREAKPOINT.
5239 * remote.c: Update.
5240 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5241 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5242 * config/m68k/tm-sun3.h: Update.
5243 * config/m68k/tm-m68klynx.h: Update.
5244 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5245
5246 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5247 trad_frame". Update comments.
5248 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5249 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5250 (trad_frame_register_value, trad_frame_prev_register): Update.
5251
5252 2003-06-08 Andrew Cagney <cagney@redhat.com>
5253
5254 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5255 from GCC's acinclude.m4.
5256 * configure.in: Check for getopt's delcaration.
5257 * aclocal.m4, config.in, configure: Re-generate.
5258 * main.c (error_init): Delete declaration.
5259 * defs.h (error_init): Declare.
5260 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5261 (rs6000_convert_from_func_ptr_addr): Make static.
5262 (_initialize_rs6000_tdep): Add declaration.
5263 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5264 (show_commands, set_verbose, show_history): Delete declaration.
5265 * top.h (set_verbose): Add declaration.
5266 (show_history, set_history, show_commands): Add declaration.
5267 (do_restore_instream_cleanup): Add declaration.
5268 * objc-lang.c (specialcmp): Make static.
5269 (print_object_command): Make static.
5270 (find_objc_msgsend): Make static.
5271 (find_objc_msgcall_submethod_helper): Make static.
5272 (find_objc_msgcall_submethod): Make static.
5273 (_initialize_objc_language): Add declaration.
5274 (find_implementation_from_class): Make static.
5275 (find_implementation): Make static.
5276 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5277 * objc-lang.h (lookup_struct_typedef): Add declaration.
5278 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5279 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5280 (do_restore_user_call_depth): Make static.
5281 (do_restore_instream_cleanup): Delete declaration.
5282 (dont_repeat): Delete declaration.
5283 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5284 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5285 * reggroups.c (_initialize_reggroup): Add declaration.
5286 * cp-support.c (_initialize_cp_support): Add declaration.
5287 * cp-abi.c (_initialize_cp_abi): Add declaration.
5288 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5289 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5290 (_initialize_gnu_v3_abi): Add declaration.
5291 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5292 (_initialize_gnu_v2_abi): Add declaration.
5293 * frame-base.c (_initialize_frame_base): Add declaration.
5294 * doublest.c (floatformat_from_length): Make static.
5295 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5296 * frame.c (create_sentinel_frame): Make static.
5297 (_initialize_frame): Add declaration.
5298 * top.c (do_catch_errors): Make static.
5299 (gdb_rl_operate_and_get_next_completion): Make static.
5300 * typeprint.c: Include "typeprint.h".
5301 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5302 (sentinel_frame_this_id): Make static.
5303 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5304 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5305 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5306 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5307 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5308 * maint.c (maintenance_print_architecture): Make static.
5309 * signals/signals.c (_initialize_signals): Add declaration.
5310 * std-regs.c (_initialize_frame_reg): Add declaration.
5311 * jv-exp.y (push_variable): ISO C definition.
5312 (push_qualified_expression_name): Ditto.
5313 * memattr.c (_initialize_mem): Add declaration.
5314 * remote.c (remote_check_watch_resources): Make static.
5315 (remote_stopped_by_watchpoint): Make static.
5316 (remote_stopped_data_address): Make static.
5317 * d10v-tdep.c (nr_dmap_regs): Make static.
5318 (a0_regnum): Make static.
5319 (d10v_frame_unwind_cache): Make static.
5320 (d10v_frame_p): Make static.
5321 * osabi.c (show_osabi): Make static.
5322 (_initialize_gdb_osabi): Add extern declaration.
5323 * gdbtypes.c (make_qualified_type): Make static.
5324 (safe_parse_type): Make static.
5325 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5326 * macrotab.c (macro_bcache_free): Make static.
5327 * interps.c (interp_set_quiet): Make static.
5328 (interpreter_exec_cmd): Make static.
5329 * stack.h (select_frame_command): New file.
5330 * stack.c: Include "stack.h".
5331 (select_frame_command_wrapper): Delete function.
5332 (select_frame_command): Make global.
5333 * infcall.c: Include "infcall.h".
5334 * linespec.c: Include "linespec.h".
5335 * symfile.c (sections_overlap): Make static.
5336 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5337 * charset.c (_initialize_charset): Add missing prototype.
5338 * regcache.c (init_legacy_regcache_descr): Make static.
5339 (do_regcache_xfree): Make static.
5340 (regcache_xfer_part): Make static.
5341 (_initialize_regcache): Add missing prototype.
5342 * breakpoint.c (parse_breakpoint_sals): Make static.
5343 (breakpoint_sals_to_pc): Make static.
5344 * interps.h (clear_interpreter_hooks): ISO C declaration.
5345 * Makefile.in (stack_h): Define.
5346 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5347 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5348
5349 2003-06-08 Andrew Cagney <cagney@redhat.com>
5350
5351 * Makefile.in (d10v-tdep.o): Update dependencies.
5352 (SFILES): Add trad-frame.c.
5353 (trad_frame_h): Define.
5354 (COMMON_OBS): Add trad-frame.o.
5355 (trad-frame.o): Specify dependencies.
5356 * d10v-tdep.c: Include "trad-frame.h".
5357 (saved_regs_unwinder): Delete function.
5358 (d10v_frame_prev_register): Use trad_frame_prev_register.
5359 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5360 trad_frame", delete "regs" and "prev_sp".
5361 (prologue_find_regs): Use trad-frame.
5362 * trad-frame.h, trad-frame.c: New files.
5363
5364 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5365
5366 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5367
5368 2003-06-07 Adam Fedor <fedor@gnu.org>
5369
5370 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5371 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5372 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5373 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5374 resolve_msgsend_super, resolve_msgsend_super_stret):
5375 Use it.
5376
5377 2003-06-07 Andrew Cagney <cagney@redhat.com>
5378
5379 * symfile.h: Re-indent, clean up comments.
5380
5381 2003-06-07 Andrew Cagney <cagney@redhat.com>
5382
5383 * inferior.h (deprecated_write_sp): Replace
5384 generic_target_write_sp.
5385 * regcache.c (deprecated_write_sp): Replace
5386 generic_target_write_sp.
5387 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5388 * vax-tdep.c (vax_gdbarch_init): Update.
5389 * v850-tdep.c (v850_gdbarch_init): Update.
5390 * sparc-tdep.c (sparc_gdbarch_init): Update.
5391 * sh-tdep.c (sh_gdbarch_init): Update.
5392 * s390-tdep.c (s390_gdbarch_init): Update.
5393 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5394 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5395 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5396 * mcore-tdep.c (mcore_gdbarch_init): Update.
5397 * m68k-tdep.c (m68k_gdbarch_init): Update.
5398 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5399 * ia64-tdep.c (ia64_gdbarch_init): Update.
5400 * h8300-tdep.c (h8300_gdbarch_init): Update.
5401 * frv-tdep.c (frv_gdbarch_init): Update.
5402 * cris-tdep.c (cris_gdbarch_init): Update.
5403 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5404
5405 2003-06-07 Andrew Cagney <cagney@redhat.com>
5406
5407 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5408 Assert that PC_REGNUM is valid.
5409 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5410
5411 2003-06-07 Andrew Cagney <cagney@redhat.com>
5412
5413 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5414 * gdbarch.h, gdbarch.c: Regenerate.
5415 * mn10300-tdep.c: Include "gdb_assert.h".
5416 (mn10300_read_fp): New function.
5417 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5418 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5419 * ia64-tdep.c: Include "gdb_assert.h".
5420 (ia64_read_fp): New function.
5421 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5422 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5423 * regcache.c (generic_target_read_sp): Delete function.
5424 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5425 * inferior.h (generic_target_read_sp): Delete declaration.
5426 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5427 generic_target_read_sp.
5428 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5429 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5430 * sh-tdep.c (sh_gdbarch_init): Ditto.
5431 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5432 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5433
5434 2003-06-07 Andrew Cagney <cagney@redhat.com>
5435
5436 * gdbarch.sh: Comment each field of startup_gdbarch.
5437 * gdbarch.h, gdbarch.c: Re-generate.
5438
5439 2003-06-07 Andrew Cagney <cagney@redhat.com>
5440
5441 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5442 * gdbarch.h, gdbarch.c: Re-generate.
5443 * regcache.c: Update comments on read_pc et.al.
5444 (generic_target_read_pc): Delete function.
5445 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5446 * inferior.h (generic_target_read_pc): Delete declaration.
5447 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5448 generic_target_read_pc.
5449 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5450 * sh-tdep.c (sh_gdbarch_init): Ditto.
5451 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5452 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5453
5454 2003-06-07 Andrew Cagney <cagney@redhat.com>
5455
5456 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5457 "index" with "special_local_sect". Use strcmp instead of STREQ.
5458 Append period to coments.
5459
5460 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5461
5462 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5463 (elfstab_offset_sections): Likewise.
5464 * gdb-stabs.h (stab_section_info): Likewise.
5465 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5466 * objfiles.c (objfile_relocate): Likewise.
5467 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5468 * remote.c (get_offsets): Likewise.
5469 (remote_cisco_objfile_relocate): Likewise.
5470 * somread.c (som_symfile_offsets): Likewise.
5471 * symfile.c (alloc_section_addr_info): New function.
5472 (build_section_addr_info_from_section_tab): Use it.
5473 (free_section_addr_info): Adjust.
5474 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5475 (syms_from_objfile): Allocate local_addr dynamically.
5476 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5477 dynamically.
5478 (add_symbol_file_command): Allocate sect_opts dynamically.
5479 (reread_symbols): Avoid use of SECT_OFF_MAX.
5480 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5481 (alloc_section_addr_info): Declare it.
5482 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5483 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5484 dynamically.
5485 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5486
5487 2003-06-06 Andrew Cagney <cagney@redhat.com>
5488
5489 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5490 (d10v_frame_unwind_cache): Do not set "return_pc".
5491
5492 2003-06-06 Michael Snyder <msnyder@redhat.com>
5493
5494 * h8300-tdep.c: Make tidy (long lines).
5495
5496 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5497
5498 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5499 to regcache_collect().
5500
5501 2003-06-05 J. Brobecker <brobecker@gnat.com>
5502
5503 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5504 pc_in_sigtramp multiarch method.
5505 (hppa_hpux_som_init_abi): Use it.
5506 (hppa_hpux_elf_init_abi): Likewise.
5507 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5508 macro has been multiarched.
5509 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5510 macro here, as hppa64 isn't multiarched yet.
5511
5512 2003-06-05 Andrew Cagney <cagney@redhat.com>
5513
5514 * Makefile.in (value_h): Add $(frame_h).
5515 * value.h: Include "frame.h".
5516 (struct value): Replace "frame_addr" with "frame_id".
5517 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5518 * values.c (allocate_value): Use VALUE_FRAME_ID.
5519 (value_copy): Use VALUE_FRAME_ID.
5520 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5521 * valops.c (value_assign): Update. Use frame_find_by_id.
5522
5523 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5524
5525 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5526 in each pass.
5527
5528 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5529
5530 * thread-db.c (check_event): For create/death event breakpoints,
5531 loop through all messages to ensure that we read the message
5532 corresponding to the breakpoint we are at.
5533
5534 2003-06-04 Michael Snyder <msnyder@redhat.com>
5535
5536 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5537
5538 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5539
5540 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5541 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5542 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5543 when handling .eh_frame sections.
5544
5545 2003-06-04 J. Brobecker <brobecker@gnat.com>
5546
5547 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5548 prepare_to_proceed procedure instead of the hppa-specific one.
5549 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5550
5551 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5552
5553 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5554 * config.in: Regenerated.
5555 * configure.in: Add test for syscall function and check for
5556 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5557 * configure: Regenerated.
5558 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5559 <sys/syscall.h>.
5560 (kill_lwp): New function that uses tkill syscall or
5561 uses kill, depending on whether threading model is nptl or not.
5562 All callers of kill() changed to use kill_lwp().
5563 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5564 see if all threads have already exited in the nptl model.
5565 (stop_and_resume_callback): New callback function used by the
5566 lin_lwp_wait thread exit handling code.
5567 (stop_wait_callback): Check for threads already having exited and
5568 delete such threads fromt the lwp list when discovered.
5569 (stop_callback): Don't assert retcode of kill call.
5570
5571 Roland McGrath <roland@redhat.com>
5572 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5573 nptl libthread_db.
5574
5575 2003-06-03 Richard Henderson <rth@redhat.com>
5576
5577 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5578 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5579 (alpha_sigtramp_frame_prev_register): Likewise.
5580 (alpha_heuristic_frame_prev_register): Likewise.
5581 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5582
5583 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5584 alpha-specific register id names.
5585 (alpha_mdebug_frame_unwind_cache): Likewise.
5586 (alpha_mdebug_frame_prev_register): Likewise.
5587
5588 2003-06-03 Richard Henderson <rth@redhat.com>
5589
5590 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5591 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5592 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5593 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5594 unwind routines.
5595 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5596 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5597 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5598
5599 * alpha-linux-tdep.c: Remove unnecessary includes.
5600 * Makefile.in (alpha-linux-tdep.o): Update.
5601
5602 2003-06-03 Richard Henderson <rth@redhat.com>
5603
5604 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5605 (alphabsd_fill_fpreg): Likewise.
5606
5607 2003-06-03 J. Brobecker <brobecker@gnat.com>
5608
5609 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5610 references to struct frame_info fields by calls to the equivalent
5611 accessors. Necessary now that frame_info is opaque.
5612
5613 2003-06-03 J. Brobecker <brobecker@gnat.com>
5614
5615 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5616 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5617 structure, field no longer exists.
5618
5619 2003-06-03 J. Brobecker <brobecker@gnat.com>
5620
5621 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5622 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5623
5624 2003-06-03 J. Brobecker <brobecker@gnat.com>
5625
5626 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5627 references to struct frame_info fields by calls to the equivalent
5628 accessors. Necessary now that frame_info is opaque.
5629
5630 2003-06-03 J. Brobecker <brobecker@gnat.com>
5631
5632 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5633 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5634 structure, field no longer exists.
5635
5636 2003-06-03 Theodore A. Roth <troth@openavr.org>
5637
5638 * remote.c (init_remote_state): Compute sizeof_g_packet by
5639 accumulation of the size of all registers instead of blindly using
5640 DEPRECATED_REGISTER_BYTES.
5641
5642 2003-06-03 Michael Snyder <msnyder@redhat.com>
5643
5644 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5645 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5646 for h8300sx.
5647
5648 2003-06-03 J. Brobecker <brobecker@gnat.com>
5649
5650 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5651 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5652
5653 2003-06-03 Andrew Cagney <cagney@redhat.com>
5654
5655 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5656 (sparc_convert_to_raw): Delete function.
5657 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5658 register_convert_to_virtual.
5659
5660 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5661
5662 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5663 layer if not dealing with a statically-linked threaded program.
5664
5665 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5666
5667 * solib.c (solib_open): Update comment to reflect actual search order.
5668
5669 2003-06-03 Andrew Cagney <cagney@redhat.com>
5670
5671 * frame.c (get_frame_memory_signed): New function.
5672 (get_frame_memory, get_frame_memory_unsigned): New function.
5673 (get_frame_arch): New function.
5674 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5675 (get_frame_memory, get_frame_unsigned_memory): Declare.
5676 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5677 get_frame_memory_unsigned and get_frame_arch.
5678 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5679
5680 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5681
5682 * MAINTAINERS (write after approval): Add myself.
5683
5684 2003-06-03 Jim Blandy <jimb@redhat.com>
5685
5686 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5687 elements of gregset_t are 64 bits each, but access registers
5688 are still 32 bits, so they're packed two per gregset_t
5689 element. Unpack/pack them properly.
5690
5691 2003-06-02 David Carlton <carlton@bactrian.org>
5692
5693 * linespec.c (find_methods): Break out code into
5694 add_matching_methods and add_constructors.
5695 (add_matching_methods): New.
5696 (add_constructors): Ditto.
5697
5698 2003-06-02 Andrew Cagney <cagney@redhat.com>
5699
5700 * sparc-tdep.c (sparc_print_registers): Delete call to
5701 REGISTER_CONVERTIBLE.
5702 (sparc_gdbarch_init): Do not set register_convertible.
5703 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5704 * frv-tdep.c (frv_gdbarch_init): Ditto.
5705 * cris-tdep.c (cris_gdbarch_init): Ditto.
5706
5707 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5708
5709 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5710 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5711 (syms_from_objfile): Ditto.
5712
5713 2003-06-03 Andreas Schwab <schwab@suse.de>
5714
5715 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5716 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5717
5718 2003-06-02 Richard Henderson <rth@redhat.com>
5719
5720 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5721 a member of all_reggroup.
5722
5723 2003-06-02 Richard Henderson <rth@redhat.com>
5724
5725 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5726 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5727 (alpha_lds, alpha_sts): New.
5728 (alpha_convert_register_p): Change from _register_convertible.
5729 (alpha_register_to_value): Change from _convert_to_virtual;
5730 restructure and fail for type sizes other than 4 or 8.
5731 (alpha_value_to_register): Similarly.
5732 (alpha_extract_return_value): Use alpha_sts.
5733 (alpha_store_return_value): Use alpha_lds.
5734 (alpha_gdbarch_init): Update hooks.
5735
5736 2003-06-02 Richard Henderson <rth@redhat.com>
5737
5738 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5739 regnum identifiers.
5740 (alpha_sigtramp_register_address): Likewise.
5741
5742 2003-06-02 Richard Henderson <rth@redhat.com>
5743
5744 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5745 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5746 * alpha-tdep.h: Declare them.
5747
5748 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5749 Remove zerobuf. Don't error on UNIQUE.
5750 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5751 (ALPHA_REGSET_UNIQUE): Provide default.
5752 (supply_gregset): Use alpha_supply_int_regs.
5753 (fill_gregset): Use alpha_fill_int_regs.
5754 (supply_fpregset): Use alpha_supply_fp_regs.
5755 (fill_fpregset): Use alpha_fill_fp_regs.
5756 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5757 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5758 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5759 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5760 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5761 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5762
5763 2003-06-02 Richard Henderson <rth@redhat.com>
5764
5765 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5766
5767 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5768 (alpha_store_return_value): Likewise.
5769
5770 2003-06-02 David Carlton <carlton@math.stanford.edu>
5771
5772 * block.c (contained_in): Add 'const' to arguments.
5773 (block_function): Ditto.
5774 * block.h: Update declarations for block_function and
5775 contained_in.
5776
5777 2003-06-02 David Carlton <carlton@math.stanford.edu>
5778
5779 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5780 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5781 * p-valprint.c (pascal_val_print): Ditto.
5782 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5783
5784 2003-06-02 Richard Henderson <rth@redhat.com>
5785
5786 * alpha-tdep.c (alpha_push_dummy_call): Use
5787 builtin_type_ieee_double_little instead of builtin_type_double.
5788
5789 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5790 sign-extension of 32-bit values.
5791 (alpha_store_return_value): Similarly.
5792
5793 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5794 (alpha_extract_return_value): Likewise.
5795 (alpha_store_return_value): Likewise.
5796
5797 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5798 (alpha_store_return_value): Error on IEEE Quad floats.
5799
5800 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5801 (alpha_extract_struct_value_address): Likewise.
5802 (alpha_store_return_value): Likewise.
5803 (alpha_store_struct_return): Remove.
5804 (alpha_gdbarch_init): Update hook registration to match.
5805
5806 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5807 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5808 macros where appropriate.
5809 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5810 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5811
5812 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5813 for SP, GP; void_func_ptr for PC; non-language-specific types
5814 for all others.
5815 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5816
5817 2003-06-02 Richard Henderson <rth@redhat.com>
5818
5819 * top.h (lim_at_start): Declare.
5820 * main.c (captured_main): Set it.
5821 * top.c (lim_at_start): Define.
5822 (command_loop): Use it instead of &environ.
5823 * event-top.c (command_handler): Likewise.
5824
5825 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5826
5827 * mipsnbsd-tdep.c: Update copyright years.
5828 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5829
5830 2003-06-01 Richard Henderson <rth@redhat.com>
5831
5832 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5833 (alpha-linux-tdep.o): Update dependencies.
5834 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5835 * alpha-mdebug-tdep.c: Remove unneeded includes.
5836
5837 2003-06-01 Richard Henderson <rth@redhat.com>
5838
5839 * alpha-tdep.c (alpha_register_reggroup_p): New.
5840 (alpha_gdbarch_init): Register it.
5841
5842 2003-06-02 Andrew Cagney <cagney@redhat.com>
5843
5844 * dwarfread.c: Eliminate "register"
5845 (decode_die_type): Eliminate assignment within "if".
5846 (struct_type, decode_array_element_type): Ditto.
5847 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5848 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5849 (decode_modified_type, completedieinfo): Ditto.
5850 * block.c: Eliminate "register".
5851 (blockvector_for_pc_sect): Eliminate assignment within "if".
5852 * cp-support.h (struct symbol): Opaque declaration.
5853 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5854
5855 2003-06-01 Richard Henderson <rth@redhat.com>
5856
5857 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5858 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5859
5860 2003-06-01 Adam Fedor <fedor@gnu.org>
5861
5862 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5863 * gdbarch.[ch]: Regenerate.
5864 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5865 (hppa_gdbarch_init): Set it in the gdbarch vector.
5866 * i386-tdep.c (i386_fetch_pointer_argument): New
5867 (i386_gdbarch_init): Set it into gdbarch.
5868 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5869 (rs6000_gdbarch_init): Set it in gdbarch.
5870 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5871 (sparc_gdbarch_init): Set it in gdbarch.
5872
5873 2003-06-01 Andrew Cagney <cagney@redhat.com>
5874
5875 * defs.h (extract_address): Delete declaration.
5876 * findvar.c (extract_address): Delete function.
5877 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5878 extract_address with the inline equivalent,
5879 extract_unsigned_integer.
5880 (xstormy16_extract_struct_value_address): Ditto.
5881 (xstormy16_pointer_to_address): Ditto.
5882 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5883 * v850-tdep.c (v850_push_arguments): Ditto.
5884 (v850_extract_return_value): Ditto.
5885 (v850_extract_struct_value_address): Ditto.
5886 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5887 (sparcnbsd_get_longjmp_target_64): Ditto.
5888 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5889 (get_longjmp_target): Ditto.
5890 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5891 (sh64_extract_struct_value_address): Ditto.
5892 (sh_push_arguments): Ditto.
5893 (sh64_push_arguments): Ditto.
5894 * remote-vxsparc.c (vx_read_register): Ditto.
5895 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5896 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5897 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5898 * mipsv4-nat.c (get_longjmp_target): Ditto.
5899 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5900 * mips-nat.c (get_longjmp_target): Ditto.
5901 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5902 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5903 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5904 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5905 * irix5-nat.c (get_longjmp_target): Ditto.
5906 * irix4-nat.c (get_longjmp_target): Ditto.
5907 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5908 (ia64_push_arguments): Ditto.
5909 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5910 * h8300-tdep.c (h8300_push_arguments): Ditto.
5911 (h8300_store_return_value): Ditto.
5912 (h8300_extract_struct_value_address): Ditto.
5913 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5914 (frv_push_arguments): Ditto.
5915 * avr-tdep.c (avr_pointer_to_address): Ditto.
5916 (avr_push_arguments): Ditto.
5917 * arm-tdep.c (arm_push_dummy_call): Ditto.
5918 (arm_get_longjmp_target): Ditto.
5919 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5920 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5921 (alpha_get_longjmp_target): Ditto.
5922
5923 * solib-irix.c (extract_mips_address): Inline extract_address,
5924 replacing it with extract_signed_integer.
5925 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5926 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5927 (first_link_map_member, open_symbol_file_object): Ditto.
5928 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5929 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5930 (LM_NEXT, LM_NAME): Ditto.
5931
5932 2003-06-01 Richard Henderson <rth@redhat.com>
5933
5934 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5935 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5936 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5937 (alpha_cannot_store_register): Likewise.
5938 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5939 * alpha-nat.c (supply_gregset): Likewise.
5940 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5941
5942 2003-06-01 Andrew Cagney <cagney@redhat.com>
5943
5944 * infcall.c (call_function_by_hand): Update comment on
5945 DEPRECATED_DUMMY_WRITE_SP.
5946
5947 * mips-tdep.c (mips_gdbarch_init): Do not set
5948 deprecated_dummy_write_sp.
5949 (mips_eabi_push_dummy_call): Set the SP register.
5950 (mips_o64_push_dummy_call): Set the SP register.
5951 (mips_o32_push_dummy_call): Set the SP register.
5952 (mips_n32n64_push_dummy_call): Set the SP register.
5953
5954 2003-06-01 Richard Henderson <rth@redhat.com>
5955
5956 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5957 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5958 (supply_gregset): Likewise.
5959 * alpha-tdep.c (alpha_store_return_value): Likewise.
5960 (alpha_get_longjmp_target): Likewise.
5961 (alpha_register_name): Constify array.
5962 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5963 deprecated_register_size, deprecated_register_bytes,
5964 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5965 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5966 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5967
5968 2003-06-01 Richard Henderson <rth@redhat.com>
5969
5970 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5971 from arg_reg_buffer to regcache to avoid double conversion.
5972
5973 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5974
5975 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5976 SP_REGNUM.
5977 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5978 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5979
5980 2003-06-01 Richard Henderson <rth@redhat.com>
5981
5982 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5983 (decode_frame_entry): Set it. Skip FDE augmentation.
5984
5985 2003-06-01 Richard Henderson <rth@redhat.com>
5986
5987 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5988 not overlapping PC_REGNUM.
5989
5990 2003-06-01 Richard Henderson <rth@redhat.com>
5991
5992 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5993 alpha_push_arguments. Don't dump argument register data to
5994 the target stack. Fix float and 128-bit long double semantics.
5995 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5996 (alpha_fix_call_dummy): Remove.
5997 (alpha_call_dummy_words): Remove.
5998 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5999
6000 2003-06-01 Richard Henderson <rth@redhat.com>
6001
6002 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6003
6004 2003-06-01 Andrew Cagney <cagney@redhat.com>
6005
6006 * mips-tdep.c (is_mips16_addr): New function.
6007 (make_mips16_addr, unmake_mips16_addr): New functions.
6008 (pc_is_mips16, mips_fetch_instruction): Use.
6009 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6010 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6011 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6012 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6013 TARGET_MIPS.
6014 * config/mips/tm-mips.h: Update copyright.
6015 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6016 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6017 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6018 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6019 (TM_PRINT_INSN_MACH): Delete.
6020 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6021
6022 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6023 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6024 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6025 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6026 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6027 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6028 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6029 mips*-*-riscos* and mips*-*-sysv* onto mips.
6030 * config/mips/mips64.mt: New file.
6031 * config/mips/mips.mt: New file.
6032 * config/mips/littlemips.mt: Delete file.
6033 * config/mips/decstation.mt: Delete file.
6034 * config/mips/vr4300el.mt: Delete file.
6035 * config/mips/vr5000el.mt: Delete file.
6036 * config/mips/vr5000.mt: Delete file.
6037 * config/mips/vr4100.mt: Delete file.
6038 * config/mips/vr4xxxel.mt: Delete file.
6039 * config/mips/vr4300.mt: Delete file.
6040 * config/mips/vr4xxx.mt: Delete file.
6041 * config/mips/bigmips.mt: Delete file.
6042 * config/mips/bigmips64.mt: Delete file.
6043 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6044 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6045 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6046 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6047 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6048 "tm-bigmips.h".
6049 * config/mips/tm-irix3.h: Ditto.
6050 * config/mips/tm-mipsv4.h: Ditto.
6051 * config/mips/tm-embed.h: Ditto.
6052 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6053 "tm-bigmips64.h".
6054 * config/mips/tm-vr5000el.h: Delete file.
6055 * config/mips/tm-tx39l.h: Delete file.
6056 * config/mips/tm-vr4300el.h: Delete file.
6057 * config/mips/tm-vr4xxxel.h: Delete file.
6058 * config/mips/tm-vr4300.h: Delete file.
6059 * config/mips/tm-vr4100.h: Delete file.
6060 * config/mips/tm-vr4xxx.h: Delete file.
6061 * config/mips/tm-vr5000.h: Delete file.
6062 * config/mips/tm-embedl64.h: Delete file.
6063 * config/mips/tm-embedl.h: Delete file.
6064 * config/mips/tm-embed64.h: Delete file.
6065 * config/mips/tm-bigmips64.h: Delete file.
6066 * config/mips/tm-bigmips.h: Delete file.
6067
6068 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6069
6070 Fix gdb/1216.
6071 * shnbsd-nat.c: Include "sh-tdep.h".
6072
6073 From Richard Henderson <rth@redhat.com>:
6074 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6075
6076 2003-05-31 Andrew Cagney <cagney@redhat.com>
6077
6078 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6079 forward declaration.
6080 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6081 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6082 (mips_find_saved_regs): Use set_reg_offset.
6083 (mips_frame_init_saved_regs): Delete function.
6084 (mips_pop_frame): Call mips_find_saved_regs instead of
6085 DEPRECATED_FRAME_INIT_SAVED_REGS.
6086
6087 2003-05-31 Andrew Cagney <cagney@redhat.com>
6088
6089 * mips-tdep.c (mips_gdbarch_init): Do not set
6090 deprecated_max_register_raw_size, register_virtual_size, and
6091 deprecated_max_register_virtual_size.
6092
6093 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6094
6095 * i386-tdep.c: Include "dwarf2-frame.h".
6096 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6097 * Makefile.in (i386-tdep.o): Update dependencies.
6098
6099 * dwarf2-frame.c, dwarf2-frame.h: New files.
6100 * Makefile.in (SFILES): Add dwarf2-frame.c.
6101 (dwarf2_frame_h): Define.
6102 (COMMON_OBS): Add dwarf2-frame.o.
6103 (dwarf2-frame.o): Add dependencies.
6104
6105 2003-05-31 Andreas Jaeger <aj@suse.de>
6106
6107 * x86-64-linux-nat.c: Fix comment.
6108
6109 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6110
6111 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6112 function signature.
6113
6114 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6115 have a sigcontext_addr handler.
6116 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6117 sigcontext_addr handler.
6118
6119 2003-05-31 Andrew Cagney <cagney@redhat.com>
6120
6121 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6122 (print_fp_register_row): Replace do_fp_register_row.
6123 (mips_print_fp_register): Add "file" and "frame" parameters.
6124 (mips_print_register): Add "file" and "frame" parameters.
6125 (mips_print_registers_info): Replace mips_do_registers_info.
6126 (mips_gdbarch_init): Set print_registers_info instead of
6127 deprecated_do_registers_info.
6128 (mips_read_fp_register_single): Add "frame" parameter.
6129 (mips_read_fp_register_double): Add "frame" parameter.
6130
6131 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6132
6133 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6134 Fixes a bug where GDB would print the wrong register names for
6135 targets without SSE.
6136
6137 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6138 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6139 registers.
6140
6141 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6142 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6143 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6144 TDEP->sc_sp_offset.
6145
6146 From Michal Ludvig <mludvig@suse.cz>:
6147 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6148 and `sc_num_regs'.
6149 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6150 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6151 I386_ST0_REGNUM): Move here from...
6152 * i386-tdep.c: ... here.
6153 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6154 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6155 registers if possible.
6156 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6157 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6158 Remove variables.
6159 (i386bsd_sc_reg_offset): New variable.
6160 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6161 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6162 TDEP->sc_sp_offset.
6163 (i386fbsd_sc_reg_offset): New variable.
6164 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6165 TDEP->sc_num_regs.
6166 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6167 variables.
6168 (i386fbsd4_sc_reg_offset): New variable.
6169 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6170 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6171 TDEP->sc_sp_offset.
6172 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6173 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6174 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6175 Remove variables.
6176 (i386nbsd_sc_reg_offset): New variable.
6177 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6178 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6179 TDEP->sc_sp_offset.
6180 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6181 Remove variables.
6182 (i386obsd_sc_reg_offset): New variable.
6183 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6184 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6185 TDEP->sc_sp_offset.
6186 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6187 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6188 for frame pointer offset in `struct sigcontext'.
6189
6190 2003-05-31 Andrew Cagney <cagney@redhat.com>
6191
6192 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6193 architecture methods call_dummy_words, sizeof_call_dummy_words,
6194 push_return_address, store_struct_return, and fix_call_dummy. Set
6195 push_dummy_call instead of deprecated_push_arguments.
6196 (mips_store_struct_return): Delete function.
6197 (mips_fix_call_dummy): Delete function.
6198 (mips_push_return_address): Delete function.
6199 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6200 RA_REGNUM and T9_REGNUM.
6201 (mips_n32n64_push_dummy_call): Ditto for
6202 mips_n32n64_push_arguments.
6203 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6204 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6205
6206 2003-05-31 Andrew Cagney <cagney@redhat.com>
6207
6208 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6209 "dummy_addr" to "bp_addr".
6210 * infcall.c (call_function_by_hand): Pass "funaddr" to
6211 gdbarch_push_dummy_call.
6212 * gdbarch.h, gdbarch.c: Re-generate.
6213 * i386-tdep.c (i386_push_dummy_call): Update.
6214 * arm-tdep.c (arm_push_dummy_call): Update.
6215 * d10v-tdep.c (d10v_push_dummy_call): Update.
6216
6217 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6218
6219 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6220 variable declarations.
6221 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6222 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6223 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6224 x86_64_init_frame_pc, x86_64_init_frame_pc,
6225 x86_64_function_has_prologue): Remove prototypes.
6226 (X86_64_NUM_GREGS): New define.
6227 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6228 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6229 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6230 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6231 XMM1_REGNUM): Remove defines.
6232 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6233 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6234 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6235 X86_64_XMM1_REGNUM): New defines.
6236 (struct x86_64_register_info): Renamed from `struct
6237 register_info'. Remove `size' member.
6238 (x86_64_register_info_table): Remove variable.
6239 (x86_64_register_info): New variable.
6240 (X86_64_NUM_REGS): New define.
6241 (X86_64_NUM_GREGS): Remove define.
6242 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6243 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6244 Remove variables.
6245 (x86_54_dwarf2_reg_to_regnum): Remove function.
6246 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6247 (x86_64_dwarf_reg_to_regnum): New function.
6248 (x86_64_register_name): Rewrite.
6249 (x86_64_register_raw_size): Remove function.
6250 (x86_64_register_byte_table): Remove variable.
6251 (x86_64_register_byte): Remove function.
6252 (x86_64_register_virtual_type): Remove function.
6253 (x86_64_register_type): New function.
6254 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6255 x86_64_register_convert_to_raw): Remove functions.
6256 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6257 (x86_64_use_struct_convention): Make static. Adjust for renamed
6258 defines.
6259 (x86_64_frame_init_saved_regs): Remove function.
6260 (x86_64_push_arguments): Make static. Change to accept a regcache
6261 as argument.
6262 (x86_64_store_return_value, x86_64_extract_return_value): Make
6263 static. Rewrite based on i386 counterparts.
6264 (x86_64_push_dummy_call): New function.
6265 (X86_64_NUM_SAVED_REGS): New define.
6266 (x86_64_register_number): Remove function.
6267 (x86_64_store_struct_return): Remove function.
6268 (x86_64_frameless_function_invocation,
6269 x86_64_function_has_prologue): Remove functions.
6270 (PROLOG_BUFSIZE): Remove define.
6271 (struct x86_64_frame_cache): New structure.
6272 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6273 x86_64_frame_cache, x86_64_frame_this_id,
6274 x86_64_frame_prev_register, x86_64_frame_p,
6275 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6276 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6277 functions.
6278 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6279 variables.
6280 (x86_64_skip_prologue): Rewrite in terms of
6281 x86_64_analyze_prologue.
6282 (x86_64_frame_base_address): New function.
6283 (x86_64_frame_base): New variable.
6284 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6285 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6286 set deprecated_fp_regnum, deprecated_register_size,
6287 deprecated_register_bytes, register_raw_size, register_byte,
6288 register_virtual_type, register_convertiable,
6289 register_convert_to_virtual, convert_to_raw,
6290 deprecated_get_saved_register, deprecated_target_read_fp,
6291 deprecated_push_arguments, deprecated_push_return_address,
6292 deprecated_pop_frame, deprecated_store_struct_return,
6293 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6294 frameless_function_invocation, deprecated_frame_saved_pc,
6295 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6296 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6297 deprecated_init_frame_pc and virtual_frame_pointer. Call
6298 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6299 and x86_64_frame_p. Call frame_base_set_default to register
6300 x86_64_frame_base.
6301 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6302 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6303 (_initialize_x86_64_tdep): Remove function.
6304 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6305 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6306 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6307 define.
6308 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6309 (x86_64_linux_sigcontext_addr): Rewrite.
6310 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6311 x86_64_linux_frame_saved_pc): Remove functions.
6312 (x86_64_linux_pc_in_sigtramp): Renamed from
6313 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6314 trampoline.
6315 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6316 Remove_functions.
6317 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6318 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6319 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6320 (x86_64_regmap): Rename to regmap.
6321 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6322 x86_64_num_gregs.
6323 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6324 x86_64_regmap.
6325 (x86_64_fxsave_offset): Remove function.
6326 (supply_fpregset): Simply call x86_64_supply_fxsave.
6327 (fill_fpregset): Simply call x86_64_fill_fxsave.
6328 (fetch_inferior_registers, store_inferior_registers): Avoid
6329 asignment in if-statement.
6330 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6331 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6332 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6333 (fetch_core_registers): Remove function.
6334 (linux_elf_core_fns): Remove.
6335 (offsetoff): Don't define.
6336 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6337 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6338 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6339 add core-regset.o.
6340 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6341 protection against multiple includes instead of NM_X86_64_h. Add
6342 various comments. Include "config/nm-linux.h". Don't include
6343 <signal.h>.
6344 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6345 GET_THREAD_SIGNALS): Remove defines.
6346 (x86_64_register_u_addr, kernel_u_size,
6347 lin_thread_get_thread_signals): Remove prototypes.
6348 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6349 [HAVE_LINK_H]: Don't include "solib.h".
6350 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6351 * config/i386/tm-x86-64linux.h: Fix comments.
6352 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6353 x86-64-tdep.o): Update dependencies.
6354
6355 2003-05-30 Andrew Cagney <cagney@redhat.com>
6356
6357 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6358 Change parameter type to a "struct regcache *".
6359
6360 * gdbarch.sh: Regardless of the multi-arch level, always define
6361 the macro when not already defined.
6362 * gdbarch.h, gdbarch.c: Re-generate.
6363
6364 2003-05-30 Richard Henderson <rth@redhat.com>
6365
6366 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6367 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6368 (alpha_mdebug_frame_this_id): Likewise.
6369 (alpha_mdebug_frame_prev_register): Likewise.
6370 (alpha_mdebug_frame_base_address): Likewise.
6371 (alpha_mdebug_frame_locals_address): Likewise.
6372 (alpha_mdebug_frame_args_address): Likewise.
6373 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6374 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6375 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6376 loop increment.
6377 (alpha_heuristic_frame_this_id): Make static.
6378 (alpha_heuristic_frame_prev_register): Likewise.
6379 (alpha_heuristic_frame_base_address): Likewise.
6380 * alpha-tdep.h: Update.
6381
6382 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6383
6384 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6385 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6386 defenitions.
6387 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6388 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6389 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6390 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6391 I386_ST0_REGNUM): New defines.
6392 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6393 codestream_get): Remove define.
6394 (codestream_next_addr, condestream_addr, condestream_buf,
6395 codestream_off, codestream_cnt): Remove variables.
6396 (codestream_fill, codestream_seek, codestream_read): Remove
6397 functions.
6398 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6399 functionality.
6400 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6401 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6402 i386_frame_saved_pc, i386_saved_pc_after_call,
6403 i386_frame_num_args, i386_frame_init_saved_regs,
6404 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6405 i386_push_arguments): Remove functions.
6406 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6407 functionality. Use i386_analyze_prologue instead of
6408 i386_get_frame_setup.
6409 (I386_NUM_SAVED_REGS): New define.
6410 (struct i386_frame_cache): New structure.
6411 (i386_alloc_frame_cache, i386_analyze_struct_return,
6412 i386_skip_probe, i386_analyze_frame_setup,
6413 i386_analyze_register_saves, i386_analyze_prologue,
6414 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6415 i386_frame_prev_register, i386_sigtramp_frame_cache,
6416 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6417 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6418 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6419 New functions.
6420 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6421 New variables.
6422 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6423 I386_EAX_REGNUM and I386_EDX_REGNUM.
6424 (i386_extract_return_value, i386_store_return_value): Use
6425 I386_ST0_REGNUM where appropriate.
6426 (i386_extract_struct_value_address): Rewrite to use extract_address.
6427 (i386_svr4_pc_in_sigtramp): Add comment.
6428 (i386_svr4_sigcontext_addr): Rewrite.
6429 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6430 TDEP->sc_sp_offset.
6431 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6432 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6433 of new defines. Set push_dummy_call, don't set
6434 deprecated_push_arguments, deprecated_push_return_address,
6435 deprecated_pop_frame. Don't set parm_boundary. Don't set
6436 deprecated_frame_chain, deprecated_frame_saved_pc,
6437 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6438 save_dummy_frame_tos, unwind_pc. Call
6439 frame_unwind_append_predicate and frame_base_set_default. Don't
6440 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6441 Don't set frameless_function_invocation. Don't set
6442 deprecated_register_bytes, deprecated_register_size,
6443 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6444 * i386-linux-tdep.c: Fix formatting in some comments.
6445 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6446 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6447 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6448 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6449 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6450 redundant parentheses.
6451 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6452 (i386_linux_sigcontext_addr): Use it. Rewrite.
6453 (find_minsym_and_objfile): Change name of second argument.
6454 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6455 changed. Use frame_pc_unwind instead of
6456 DEPRECATED_SAVED_PC_AFTER_CALL.
6457 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6458 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6459 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6460 unwinder.
6461 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6462 "dummy-frame.h".
6463 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6464 (_initialize_i386_cygwin_tdep): New prototype.
6465 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6466 deprecated_frame_chain_valid.
6467 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6468 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6469 Rely on the SVR4 defaults.
6470 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6471 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6472
6473 2003-05-30 Andrew Cagney <cagney@redhat.com>
6474
6475 * infcall.c (call_function_by_hand): Always call
6476 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6477
6478 2003-05-30 Richard Henderson <rth@redhat.com>
6479
6480 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6481 increment.
6482
6483 2003-05-29 Jim Blandy <jimb@redhat.com>
6484
6485 Use gdbarch methods for solib stuff on PowerPC Linux.
6486 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6487 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6488 show through.
6489 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6490 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6491 giving the same effect as the #definitions above.
6492
6493 2003-05-29 Adam Fedor <fedor@gnu.org>
6494
6495 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6496 (find_implementation_from_class): Replace it with the standard
6497 case i.e. do nothing.
6498
6499 2003-05-29 Richard Henderson <rth@redhat.com>
6500
6501 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6502 (alpha_linux_sigtramp_offset): Use it. Make static.
6503 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6504 update for new frame model.
6505 * alpha-mdebug-tdep.c: New file.
6506 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6507 (alpha_osf1_init_abi): Install it.
6508 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6509 (linked_proc_desc_table): Remove.
6510 (alpha_frame_past_sigtramp_frame): Remove.
6511 (alpha_dynamic_sigtramp_offset): Remove.
6512 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6513 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6514 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6515 (push_sigtramp_desc): Remove.
6516 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6517 (alpha_cannot_store_register): Likewise.
6518 (alpha_sigcontext_addr): Remove.
6519 (alpha_find_saved_regs): Remove.
6520 (alpha_frame_init_saved_regs): Remove.
6521 (alpha_init_frame_pc_first): Remove.
6522 (read_next_frame_reg): Remove.
6523 (alpha_frame_saved_pc): Remove.
6524 (alpha_saved_pc_after_call): Remove.
6525 (temp_proc_desc, temp_saved_regs): Remove.
6526 (alpha_about_to_return): Remove.
6527 (cached_proc_desc): Remove.
6528 (alpha_frame_chain): Remove.
6529 (alpha_print_extra_frame_info): Remove.
6530 (alpha_init_extra_frame_info): Remove.
6531 (alpha_frame_locals_address): Remove.
6532 (alpha_frame_args_address): Remove.
6533 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6534 (alpha_push_dummy_frame): Remove.
6535 (alpha_pop_frame): Remove.
6536 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6537 (alpha_read_insn): New.
6538 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6539 for different insn encodings.
6540 (alpha_in_lenient_prologue): Remove.
6541 (struct alpha_sigtramp_unwind_cache): New.
6542 (alpha_sigtramp_frame_unwind_cache): New.
6543 (alpha_sigtramp_register_address): New.
6544 (alpha_sigtramp_frame_this_id): New.
6545 (alpha_sigtramp_frame_prev_register): New.
6546 (alpha_sigtramp_frame_unwind): New.
6547 (alpha_sigtramp_frame_p): New.
6548 (struct alpha_heuristic_unwind_cache): New.
6549 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6550 don't count nop insns that occur between functions.
6551 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6552 heuristic_proc_desc, but without the mdebug wrapping.
6553 (alpha_heuristic_frame_this_id): New.
6554 (alpha_heuristic_frame_prev_register): New.
6555 (alpha_heuristic_frame_unwind): New.
6556 (alpha_heuristic_frame_p): New.
6557 (alpha_heuristic_frame_base_address): New.
6558 (alpha_heuristic_frame_base): New.
6559 (alpha_unwind_dummy_id): New.
6560 (alpha_unwind_pc): New.
6561 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6562 frame related deprecated initializations; install replacements.
6563 (alpha_dump_tdep): Remove.
6564 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6565 (alpha_read_insn, alpha_after_prologue,
6566 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6567 alpha_heuristic_frame_prev_register,
6568 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6569 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6570 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6571 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6572
6573 2003-05-29 Andrew Cagney <cagney@redhat.com>
6574
6575 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6576 dependant on the availability of ASSERT_FUNCTION.
6577 (ASSERT_FUNCTION): Do not define when there is no function name.
6578
6579 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6580
6581 From Jimi X <jimix@watson.ibm.com>:
6582 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6583
6584 2003-05-28 Jim Blandy <jimb@redhat.com>
6585
6586 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6587 argument to ptrace to int; the system headers should give it the
6588 right type, and pointers don't fit in ints on powerpc64-*-*.
6589
6590 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6591
6592 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6593 DW_TAG_catch_block.
6594
6595 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6596
6597 * stabsread.c (dbx_lookup_type): Make static.
6598 (read_type): Ditto.
6599 (add_undefined_type): Ditto.
6600 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6601 not export.
6602
6603 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6604
6605 * hpread.c (hpread_has_name): Make static.
6606 (hpread_psymtab_to_symtab): Ditto.
6607 (file_exists): Ditto.
6608 (hpread_call_pxdb): Ditto.
6609 (hpread_pxdb_needed): Ditto.
6610 (hpread_quick_traverse): Ditto.
6611 (hpread_get_header): Ditto.
6612 (hpread_get_lntt): Ditto.
6613 (hpread_get_slt): Ditto.
6614 (class_of): Ditto.
6615
6616 2003-05-25 Andreas Schwab <schwab@suse.de>
6617
6618 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6619 stack_align and deprecated_extra_stack_alignment_needed.
6620 (m68k_stack_align): Delete.
6621
6622 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6623 (m68k_register_virtual_size): Likewise.
6624 (altos_skip_prologue): Remove obsolete function.
6625 (isi_frame_num_args): Likewise.
6626 (news_frame_num_args): Likewise.
6627 (m68k_fix_call_dummy): Make static.
6628 (m68k_push_dummy_frame): Likewise.
6629 (m68k_pop_frame): Likewise.
6630 (m68k_skip_prologue): Likewise.
6631 (m68k_frame_init_saved_regs): Likewise.
6632 (m68k_saved_pc_after_call): Likewise.
6633 (m68k_get_longjmp_target): Make multi-arch.
6634 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6635 structure. Register m68k_get_longjmp_target if enabled.
6636 * m68k-tdep.h (struct gdbarch_tdep): Define.
6637 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6638
6639 * Makefile.in (config.status): Also depend on configure.tgt
6640 and configure.host.
6641 (m68klinux-tdep.o): Update dependencies.
6642 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6643 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6644 (M68K_LINUX_JB_PC): Define.
6645 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6646 and take additional parameter.
6647 (m68k_linux_sigtramp_saved_pc): Update.
6648 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6649 m68k_linux_pc_in_sigtramp, in_plt_section,
6650 find_solib_trampoline_target.
6651 * config/m68k/tm-linux.h: Don't include any tm headers.
6652 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6653 (JB_ELEMENT_SIZE): Likewise.
6654 (JB_PC): Likewise.
6655 (GET_LONGJMP_TARGET): Likewise.
6656 (IN_SIGTRAMP): Likewise.
6657 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6658
6659 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6660
6661 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6662 (sparc32_push_arguments): Re-implement by calling
6663 sparc32_do_push_arguments.
6664
6665 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6666
6667 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6668 SPARC_O1_REGNUM): New defines.
6669 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6670 (sparc32_store_return_value): New function.
6671 (sparc_extract_struct_value_address): Rewrite to operate on a
6672 regcache.
6673 (sparc_gdbarch_init): Don't set
6674 deprecated_extract_struct_value_address. Set
6675 extract_struct_value_address instead. Don't set
6676 deprecated_extract_return_value and deprecated_store_return_value
6677 for 32-bit targets. Set extract_return_value and
6678 store_return_value instead.
6679 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6680 DEPRECTAED_EXTRACT_RETURN_VALUE,
6681 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6682 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6683 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6684 (sparc_store_return_value): Remove prototype.
6685 (sparc32_store_return_value): New prototype.
6686 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6687 Adjust prototypes.
6688
6689 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6690
6691 * sparcnbsd-tdep.c: Include "gdb_string.h".
6692
6693 2003-05-23 Andrew Cagney <cagney@redhat.com>
6694
6695 * p-valprint.c (pascal_val_print): Replace extract_address with
6696 the inline equivalent extract_unsigned_integer.
6697 * jv-valprint.c (java_value_print): Ditto.
6698 * ada-valprint.c (ada_val_print_1): Ditto.
6699 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6700
6701 2003-05-23 Theodore A. Roth <troth@openavr.org>
6702
6703 * blockframe.c (frameless_look_for_prologue): Remove unused
6704 after_prologue variable.
6705
6706 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6707
6708 * blockframe.c (get_pc_function_start): Rewrite to avoid
6709 asignments in if-statements.
6710
6711 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6712
6713 Committed by Elena Zannoni <ezannoni@redhat.com>.
6714 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6715 files, don't relocate absolute symbols (and do use mst_abs).
6716
6717 2003-05-23 Andrew Cagney <cagney@redhat.com>
6718
6719 * objc-lang.c: Include "gdb_assert.h".
6720 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6721 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6722 (gdb_check, gdb_check_fatal): Delete functions.
6723 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6724 gdb_assert.
6725 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6726 * Makefile.in (objc-lang.o): Update dependencies.
6727
6728 2003-05-22 Ian Lance Taylor <ian@airs.com>
6729
6730 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6731 with fprintf_filtered, not fprintf_unfiltered.
6732
6733 2003-05-22 Andrew Cagney <cagney@redhat.com>
6734
6735 * stack.c (frame_info): Inline extract_address, replacing it with
6736 extract_unsigned_integer.
6737 * findvar.c (unsigned_pointer_to_address): Ditto.
6738 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6739 * dwarf2expr.c (dwarf2_read_address): Ditto.
6740 * frame.c (frame_pc_unwind): Update comment.
6741 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6742
6743 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6744
6745 * infptrace.c (detach): Call print_sys_errmsg rather than
6746 perror_with_name to issue warning message when errno is non-zero
6747 after calling ptrace detach.
6748
6749 2003-05-21 J. Brobecker <brobecker@gnat.com>
6750
6751 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6752 macro definitions from here...
6753 * hppa-tdep.c: ...to there.
6754
6755 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6756
6757 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6758 register_ptrace_addr(). Fix all callers.
6759
6760 2003-05-21 Andreas Schwab <schwab@suse.de>
6761
6762 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6763 dependencies.
6764 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6765 end.
6766 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6767 (_initialize_m68k_linux_tdep): New function.
6768 (m68k_linux_frame_saved_pc): Make static.
6769 (m68k_linux_extract_return_value): Likewise.
6770 (m68k_linux_store_return_value): Likewise.
6771 (m68k_linux_extract_struct_value_address): Likewise.
6772 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6773 Remove.
6774 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6775 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6776 (DEPRECATED_FRAME_SAVED_PC): Remove.
6777
6778 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6779
6780 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6781 regset numbering rather than our own.
6782
6783 2003-05-19 David Carlton <carlton@bactrian.org>
6784
6785 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6786
6787 2003-05-19 David Carlton <carlton@bactrian.org>
6788
6789 Partial fix for PR c++/827.
6790 * cp-support.h: Include symtab.h.
6791 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6792 * cp-namespace.c: Update contributors.
6793 (cp_lookup_symbol_nonlocal): New.
6794 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6795 (lookup_symbol_file): Ditto.
6796 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6797 * block.h: Declare block_scope, block_using, block_global_block.
6798 * block.c (block_scope): New.
6799 (block_using, block_global_block): Ditto.
6800 * Makefile.in (cp_support_h): Depend on symtab_h.
6801 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6802
6803 2003-05-19 David Carlton <carlton@bactrian.org>
6804
6805 * language.h (struct language_defn): Add 'la_value_of_this'
6806 and 'la_lookup_symbol_nonlocal' members.
6807 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6808 lookup_symbol_static, lookup_symbol_global,
6809 lookup_symbol_aux_block.
6810 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6811 if we should search fields of this and how to do static/global
6812 lookup.
6813 (lookup_symbol_aux_block): Make extern.
6814 (basic_lookup_symbol_nonlocal): New.
6815 (lookup_symbol_static, lookup_symbol_global): Ditto.
6816 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6817 'la_lookup_symbol_nonlocal' members.
6818 * c-lang.c (c_language_defn, cplus_language_defn)
6819 (asm_language_defn, minimal_language_defn): Ditto.
6820 * jv-lang.c (java_language_defn): Ditto.
6821 * language.c (unknown_language_defn, auto_language_defn)
6822 (local_language_defn): Ditto.
6823 * m2-lang.c (m2_language_defn): Ditto.
6824 * objc-lang.c (objc_language_defn): Ditto.
6825 * scm-lang.c (scm_language_defn): Ditto.
6826 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6827 * p-lang.c (pascal_language_defn): Ditto for both.
6828 * Makefile.in (f-lang.o): Depend on value_h.
6829 (p-lang.o): Ditto.
6830
6831 2003-05-19 David Carlton <carlton@bactrian.org>
6832
6833 * block.h: Declare block_static_block.
6834 * block.c (block_static_block): New.
6835 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6836 lookup_symbol_aux_local, calling block_static_block instead.
6837 (lookup_symbol_aux_local): Delete 'static_block' argument.
6838
6839 2003-05-19 David Carlton <carlton@bactrian.org>
6840
6841 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6842
6843 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6844
6845 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6846 register numbers mapping.
6847
6848 2003-05-18 Adam Fedor <fedor@gnu.org>
6849
6850 * symtab.c (completion_list_objc_symbol): New function.
6851 (make_symbol_completion_list): Use it to add ObjC symbols
6852 when looking though the list.
6853 (language_search_unquoted_string): New function.
6854 (make_file_symbol_completion_list): Use it.
6855
6856 2003-05-18 Andreas Schwab <schwab@suse.de>
6857
6858 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6859 dependencies.
6860 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6861 as m68k_linux_extract_return_value.
6862 (DEPRECATED_STORE_RETURN_VALUE): Define as
6863 m68k_linux_store_return_value.
6864 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6865 m68k_linux_extract_struct_value_address.
6866 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6867 get_next_frame, get_frame_base, get_frame_pc.
6868 (m68k_linux_frame_saved_pc): Use get_frame_base.
6869 (m68k_linux_extract_return_value): New function.
6870 (m68k_linux_store_return_value): New function.
6871 (m68k_linux_extract_struct_value_address): New function.
6872 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6873
6874 * c-exp.y (typebase): Remove duplicate occurence of
6875 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6876 of lookup_signed_typename.
6877
6878 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6879
6880 * dwarf2loc.c (find_location_expression): Change type of second
6881 argument to `size_t *'.
6882 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6883 for size variable.
6884
6885 2003-05-18 David Carlton <carlton@bactrian.org>
6886
6887 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6888 'linkage_name'. Add comment.
6889 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6890 'linkage_name'.
6891 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6892 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6893 (lookup_block_symbol): Ditto.
6894
6895 2003-05-16 Andrew Cagney <cagney@redhat.com>
6896
6897 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6898 * gdbarch.h, gdbarch.c: Re-generate.
6899 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6900 * TODO (REGISTER_BYTES): Delete reference.
6901 * alpha-tdep.c (alpha_gdbarch_init): Update.
6902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6903 * x86-64-tdep.c (x86_64_init_abi): Update.
6904 * vax-tdep.c (vax_gdbarch_init): Update.
6905 * v850-tdep.c (v850_gdbarch_init): Update.
6906 * sparc-tdep.c (sparc_gdbarch_init): Update.
6907 * sh-tdep.c (sh_gdbarch_init): Update.
6908 * s390-tdep.c (s390_gdbarch_init): Update.
6909 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6910 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6911 (ns32k_gdbarch_init_32382): Update.
6912 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6913 * mcore-tdep.c (mcore_gdbarch_init): Update.
6914 * m68k-tdep.c (m68k_gdbarch_init): Update.
6915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6916 * ia64-tdep.c (ia64_gdbarch_init): Update.
6917 * i386-tdep.c (i386_gdbarch_init): Update.
6918 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6919 * hppa-tdep.c (hppa_gdbarch_init): Update.
6920 * h8300-tdep.c (h8300_gdbarch_init): Update.
6921 * frv-tdep.c (frv_gdbarch_init): Update.
6922 * cris-tdep.c (cris_gdbarch_init): Update.
6923 * avr-tdep.c (avr_gdbarch_init): Update.
6924 * arm-tdep.c (arm_gdbarch_init): Update.
6925 * sparc-tdep.c (sparc_pop_frame): Update.
6926 * rs6000-tdep.c (rs6000_pop_frame): Update.
6927 * remote.c (init_remote_state): Update.
6928 (remote_prepare_to_store): Update.
6929 * remote-vx.c (vx_prepare_to_store): Update.
6930 * remote-sds.c (sds_fetch_registers): Update.
6931 (sds_prepare_to_store): Update.
6932 * remote-array.c: Update.
6933 * regcache.c (init_legacy_regcache_descr): Update.
6934 (init_regcache_descr): Update.
6935 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6936 (mips_o64_extract_return_value): Update.
6937 * irix5-nat.c (fetch_core_registers): Update.
6938 * irix4-nat.c (fetch_core_registers): Update.
6939 * i386-tdep.h: Update.
6940 * hppa-tdep.c (pa_do_registers_info): Update.
6941 (pa_do_strcat_registers_info): Update.
6942 * cris-tdep.c (cris_register_bytes_ok): Update.
6943 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6944 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6945 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6946 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6947 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6948 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6949 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6950 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6951 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6952 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6953 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6954 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6955 (REGISTER_BYTES_OK): Update.
6956 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6957 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6958
6959 2003-05-16 Ian Lance Taylor <ian@airs.com>
6960
6961 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6962 (vax_print_insn, print_insn_arg): Remove static functions.
6963 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6964 print_insn_vax from opcodes library.
6965 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6966
6967 2003-05-15 Andrew Cagney <cagney@redhat.com>
6968
6969 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6970 * target.h (memory_breakpoint_from_pc): Delete declaration.
6971 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6972 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6973 * monitor.c (monitor_insert_breakpoint): Use
6974 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6975 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6976 * gdbarch.h, gdbarch.c: Re-generate.
6977 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6978 (sparc_gdbarch_init): Set breakpoint_from_pc to
6979 sparc_breakpoint_from_pc.
6980 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6981 (BREAKPOINT_FROM_PC): Define.
6982 (sparc_breakpoint_from_pc): Declare.
6983 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6984 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6985 (BREAKPOINT_FROM_PC): Define.
6986 (BREAKPOINT): Delete macro.
6987 * target.h: Update comment.
6988 * s390-tdep.c (s390_gdbarch_init): Update comments.
6989 * remote.c: Update comments.
6990 * remote-mips.c: Update comments.
6991 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6992 * mem-break.c: Update comment.
6993 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6994 (ia64_memory_insert_breakpoint): Update.
6995 * config/sparc/tm-sparc.h: Update comment.
6996 * config/pa/tm-hppa64.h: Update comment.
6997 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6998 (rs6000_breakpoint_from_pc): Update.
6999 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7000 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7001 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7002 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7003 (mips_breakpoint_from_pc): Update.
7004 (mips_dump_tdep): Update.
7005
7006 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7007 * minsyms.c (lookup_minimal_symbol): Inline
7008 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7009
7010 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7011 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7012 * p-lang.c (pascal_printstr): Ditto.
7013 * objc-lang.c (objc_printstr): Ditto.
7014 * m2-lang.c (m2_printstr): Ditto.
7015 * jv-valprint.c (java_print_value_fields): Ditto.
7016 * f-lang.c (f_printstr): Ditto.
7017 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7018 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7019 for repeat_count_threshold.
7020 * Makefile.in (cp-valprint.o): Update dependencies.
7021
7022 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7023
7024 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7025 (examine_prologue): Support looking through leaf functions, knowing
7026 they start with mov r2,r12. Support skipping over indirect stores
7027 of the input registers. Upon hitting a non-nop branch instruction
7028 or predicated instruction, bail out by setting lim_pc to the current
7029 pc value in the loop. At the end, if the lim_pc value is still
7030 beyond our calculated value and we have trust_limit set,
7031 use the lim_pc value.
7032
7033 2003-05-15 Andrew Cagney <cagney@redhat.com>
7034
7035 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7036 generic_find_dummy_frame.
7037 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7038 (deprecated_generic_find_dummy_frame): Update.
7039 (deprecated_read_register_dummy): Update.
7040 * frame.c (deprecated_generic_get_saved_register): Update.
7041
7042 2003-05-15 Theodore A. Roth <troth@openavr.org>
7043
7044 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7045 (avr_gdbarch_init): Set breakpoint_from_pc method.
7046
7047 2003-05-15 Andrew Cagney <cagney@redhat.com>
7048
7049 * regcache.c (build_regcache): Set deprecated_register_valid
7050 directly.
7051 (deprecated_grub_regcache_for_register_valid): Delete function.
7052 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7053 declaration.
7054
7055 2003-05-15 David Carlton <carlton@bactrian.org>
7056
7057 Committed by Elena Zannoni <ezannoni@redhat.com>
7058 * symtab.c (lookup_symbol_aux): Delete calls to
7059 lookup_symbol_aux_minsyms.
7060 (lookup_symbol_aux_minsyms): Comment out function and
7061 prototype. Delete lookup by mangled name.
7062
7063 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7064
7065 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7066 correctly indicate an empty stack and ``stack_allocated'' to the
7067 indicate the number of elements initially allocated.
7068 (dwarf_expr_grow_stack): Simplify method for computing new
7069 stack size. Don't loop infinitely if ``stack_len'' is zero.
7070 (execute_stack_op): Move ``ctx->in_reg'' initialization
7071 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7072 be used in conjuction with DW_OP_piece. Revise error message
7073 accordingly.
7074
7075 2003-05-14 Theodore A. Roth <troth@openavr.org>
7076
7077 * MAINTAINERS: Update my email address.
7078 * avr-tdep.c: Ditto.
7079
7080 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7081
7082 * symtab.h (enum domain_enum): Rename from namespace_enum.
7083 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7084 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7085 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7086 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7087 TYPES_NAMESPACE, METHODS_NAMESPACE.
7088 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7089 (struct symbol, struct partial_symbol): Rename field
7090 'namespace_enum namespace' to 'domain_enum domain'.
7091 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7092 Delete old define kludge for namespace.
7093
7094 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7095 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7096 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7097 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7098 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7099 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7100 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7101 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7102 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7103 occurrences of the above.
7104
7105 2003-05-14 Ian Lance Taylor <ian@airs.com>
7106
7107 * Makefile.in (install-only): Use $(SHELL) when running
7108 mkinstalldirs.
7109
7110 2003-05-13 Ian Lance Taylor <ian@airs.com>
7111
7112 * MAINTAINERS (write after approval): Add myself.
7113
7114 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7115 second and third arguments.
7116 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7117 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7118
7119 2003-05-13 Andrew Cagney <cagney@redhat.com>
7120
7121 * defs.h (store_address): Delete declaration.
7122 findvar.c (store_address): Delete function.
7123 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7124 store_unsigned_integer.
7125 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7126 * v850-tdep.c (v850_push_arguments): Ditto.
7127 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7128 * sh-tdep.c (sh64_get_saved_register): Ditto.
7129 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7130 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7131 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7132 (mips_get_saved_register): Ditto.
7133 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7134 (find_func_descr, ia64_push_arguments): Ditto.
7135 * i386-tdep.c (i386_push_arguments): Ditto.
7136 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7137 * frv-tdep.c (frv_push_arguments): Ditto.
7138 * frame.c (legacy_saved_regs_prev_register): Ditto.
7139 (deprecated_generic_get_saved_register): Ditto.
7140 * findvar.c (unsigned_address_to_pointer): Ditto.
7141 * dwarf2read.c (dwarf2_const_value): Ditto.
7142 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7143 * alpha-tdep.c (alpha_push_arguments): Ditto.
7144
7145 2003-05-12 J. Brobecker <brobecker@gnat.com>
7146
7147 * NEWS: Mention that the hppa-hpux port has been partially
7148 multiarched (32bit ABIT only, so far).
7149
7150 2003-05-11 Andrew Cagney <cagney@redhat.com>
7151
7152 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7153 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7154 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7155 sim/testsuite/sim/arm/misaligned2.ms, and
7156 sim/testsuite/sim/arm/misaligned3.ms.
7157 * disasm.h (struct ui_file): Add opaque struct declaration.
7158 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7159 * frame.h (struct ui_file): Ditto.
7160
7161 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7162
7163 * value.h: Pretty print.
7164
7165 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7166
7167 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7168
7169 2003-05-08 Andrew Cagney <cagney@redhat.com>
7170
7171 * regcache.h (max_register_size): Delete declaration.
7172 * regcache.c (max_register_size): Delete function.
7173 (struct regcache_descr): Delete field "max_register_size".
7174 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7175 registers fit in MAX_REGISTER_SIZE.
7176 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7177 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7178 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7179 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7180 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7181 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7182 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7183 * dve3900-rom.c, hppa-tdep.c: Ditto.
7184
7185 2003-05-08 David Carlton <carlton@math.stanford.edu>
7186
7187 * valops.c (push_word): Fix typo.
7188
7189 2003-05-08 Andrew Cagney <cagney@redhat.com>
7190
7191 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7192 * gdbarch.h: Re-generate.
7193 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7194 (legacy_max_register_raw_size): Delete declaration.
7195 * regcache.c (legacy_max_register_raw_size): Delete function.
7196 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7197 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7198 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7199 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7200 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7201 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7202 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7203 * findvar.c, dwarf2cfi.c: Ditto.
7204
7205 2003-05-08 Andrew Cagney <cagney@redhat.com>
7206
7207 * mips-tdep.c (read_signed_register): New function, moved to here
7208 from "regcache.c".
7209 (read_signed_register_pid): Ditto.
7210 * regcache.c (read_signed_register_pid): Delete function, moved to
7211 "mips-tdep.c".
7212 (read_signed_register): Ditto.
7213 * regcache.h (read_signed_register): Delete declaration.
7214 (read_signed_register_pid): Delete declaration.
7215
7216 2003-05-08 Andrew Cagney <cagney@redhat.com>
7217
7218 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7219 * gdbarch.h: Re-generate.
7220 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7221 (legacy_max_register_virtual_size): Delete declaration.
7222 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7223 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7224 * tracepoint.c (memrange_sortmerge): Ditto.
7225 * sparc-tdep.c (sparc_print_registers): Ditto.
7226 * regcache.c (legacy_max_register_virtual_size): Delete function.
7227
7228 2002-05-08 J. Brobecker <brobecker@gnat.com>
7229
7230 * fork-child.c (escape_bang_in_quoted_argument): New function.
7231 (fork_inferior): Escape '!' characters in quoted arguments
7232 only when needed.
7233
7234 2003-05-08 J. Brobecker <brobecker@gnat.com>
7235
7236 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7237 the language of the CU is not currently supported by GDB.
7238
7239 2003-05-08 J. Brobecker <brobecker@gnat.com>
7240
7241 * defs.h (language): Add language_minimal enum value.
7242 * c-lang.c (minimal_language_defn): New language definition.
7243 (_initialize_c_language): Add the new minimal language to the list
7244 of languages known to GDB.
7245
7246 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7247
7248 * frame.c (get_frame_type): Don't attempt to lazily initialize
7249 frame's unwinder for legacy frames.
7250
7251 2003-05-07 Andrew Cagney <cagney@redhat.com>
7252
7253 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7254 and "regcache" parameters.
7255 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7256
7257 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7258
7259 * dwarf2read.c (dwarf_decode_lines): Only use output of
7260 check_cu_functions() when calling record_line(). Do not update
7261 the current address.
7262
7263 2003-05-07 Andrew Cagney <cagney@redhat.com>
7264
7265 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7266 code.
7267
7268 2003-05-07 Jim Blandy <jimb@redhat.com>
7269
7270 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7271 'maint info symtabs' and 'maint info psymtabs'.
7272 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7273 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7274 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7275 Declarations updated.
7276 * maint.c (maintenance_list_command): Delete.
7277 (_initialize_maint_cmds): Update calls to add_cmd.
7278 * gdbcmd.h (maintenancelistlist): Delete declaration.
7279 * cli/cli-cmds.c (maintenancelistlist): Delete.
7280 (init_cmd_lists): Don't initialize it.
7281 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7282
7283 2003-05-07 Andrew Cagney <cagney@redhat.com>
7284
7285 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7286 "regcache".
7287 (d10v_print_registers_info): Update.
7288 (d10v_dmap_register, d10v_imap_register): Delete functions.
7289 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7290 and "imap_register".
7291 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7292 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7293 * arch-utils.c (generic_remote_translate_xfer_address): Add
7294 "regcache" and "gdbarch" parameters.
7295 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7296 parameter. Change class to multi-arch.
7297 * gdbarch.h, gdbarch.c: Re-generate.
7298 * remote.c (remote_xfer_memory): Use
7299 gdbarch_remote_translate_xfer_address.
7300
7301 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7302
7303 * infrun.c (prev_pc): Move declaration ahead of proceed().
7304 (proceed): Refresh prev_pc value before resuming.
7305 (stop_stepping): Remove code to refresh prev_pc.
7306
7307 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7308
7309 * nto-tdep.c: Removed stray comment.
7310
7311 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7312
7313 * i386-nto-tdep.c: Fix old K&R function definitions.
7314 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7315 Also change add_show_from_set() call to add_setshow_cmd().
7316 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7317
7318 2003-05-05 Andrew Cagney <cagney@redhat.com>
7319
7320 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7321 (fprint_dummy_frames): New function.
7322 (maintenance_print_dummy_frames): New function.
7323 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7324 * frame.c (fprint_frame_id): Make global.
7325 * frame.h (fprint_frame_id): Declare.
7326 * Makefile.in (dummy-frame.o): Update dependencies.
7327
7328 2003-05-05 Andrew Cagney <cagney@redhat.com>
7329
7330 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7331 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7332 SIZEOF_CALL_DUMMY_WORDS.
7333 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7334 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7335 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7336 CALL_DUMMY_BREAKPOINT_OFFSET.
7337 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7338 CALL_DUMMY_START_OFFSET.
7339 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7340 * gdbarch.h, gdbarch.c: Re-generate.
7341 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7342 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7343 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7344 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7345 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7346 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7347 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7348 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7349 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7350 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7351 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7352 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7353 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7354 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7355 * config/sparc/tm-sparc.h: Update.
7356
7357 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7358
7359 * configure.tgt: Add i[3456]86-*-nto*.
7360 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7361 * nto-tdep.c: New file. Neutrino target support routines.
7362 * nto-tdep.h: New file. Neutrino target header.
7363 * config/tm-qnxnto.h: New file.
7364 * config/i386/i386nto.mt: New file.
7365 * config/i386/tm-i386nto.h: New file.
7366
7367 2003-05-04 Andrew Cagney <cagney@redhat.com>
7368
7369 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7370 (load_infrun_state): Ditto.
7371 (struct thread_info): Drop "prev_func_name" field.
7372 * thread.c (load_infrun_state): Update.
7373 (save_infrun_state): Update.
7374 * infrun.c (prev_func_name): Delete variable.
7375 (init_wait_for_inferior): Do not clear prev_func_name.
7376 (stop_stepping, keep_going, context_switch): Do not swap
7377 prev_func_name.
7378 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7379 instead of PC_IN_SIGTRAMP.
7380
7381 2003-05-04 Andrew Cagney <cagney@redhat.com>
7382
7383 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7384 REGISTER_BYTE with register_offset_hack.
7385 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7386 that REGISTER_BYTE is consistent with the regcache.
7387 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7388 * gdbarch.h, gdbarch.c: Regenerate.
7389
7390 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7391
7392 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7393 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7394
7395 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7396
7397 2003-05-03 J. Brobecker <brobecker@gnat.com>
7398
7399 From Thierry Schneider <tpschneider1@yahoo.com>
7400 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7401 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7402 (mi-cmd-symbol.o): Add rule.
7403
7404 2003-05-03 Andrew Cagney <cagney@redhat.com>
7405
7406 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7407 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7408 * gdbarch.h, gdbarch.c: Re-generate.
7409 * d10v-tdep.c (d10v_push_dummy_code): New function.
7410 (d10v_gdbarch_init): Set push_dummy_code.
7411 * infcall.c (legacy_push_dummy_code): New function.
7412 (generic_push_dummy_code): New function.
7413 (push_dummy_code): New function.
7414 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7415 instead of dummy_addr, to push_dummy_call. Move call to
7416 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7417 switch.
7418 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7419
7420 2003-05-03 Andrew Cagney <cagney@redhat.com>
7421
7422 * disasm.h (print_insn): Declare.
7423 * disasm.c (init_gdb_disassemble_info): New function.
7424 (gdb_disassembly): Call init_gdb_disassemble_info.
7425 (gdb_print_insn): New function.
7426 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7427 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7428 * mcore-tdep.c: Include "disasm.h"
7429 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7430 * d10v-tdep.c: Include "disasm.h".
7431 (display_trace): Call gdb_print_insn, instead of print_insn.
7432 (print_insn): Delete function.
7433 * printcmd.c: Include "disasm.h".
7434 (print_insn): Delete function.
7435 (print_formatted): Call gdb_print_insn, instead of print_insn.
7436 * Makefile.in (printcmd.o): Update dependencies.
7437 (mcore-tdep.o, d10v-tdep.o): Ditto.
7438
7439 2003-05-02 Andrew Cagney <cagney@redhat.com>
7440
7441 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7442 PC_REGNUM, re-indent.
7443 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7444 PC_REGNUM isn't set.
7445
7446 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7447 * gdbarch.h, gdbarch.c: Re-generate.
7448 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7449 register_virtual_size, pc_regnum, or register_bytes.
7450 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7451 (d10v_register_type): Use D10V_PC_REGNUM.
7452 (d10v_print_registers_info, d10v_read_pc): Ditto.
7453 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7454 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7455
7456 2003-05-02 David Carlton <carlton@bactrian.org>
7457
7458 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7459 the name with mstrsave.
7460
7461 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7462
7463 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7464 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7465 (host_charset_name, target_charset_name): New vars for use by
7466 set/show commands.
7467 (host_charset_enum, target_charset_enum): New enums for set/show
7468 commands.
7469 (set_charset_sfunc, set_host_charset_sfunc,
7470 set_target_charset_sfunc): New functions.
7471 (set_host_charset, set_target_charset): Make static.
7472 (list_charsets, set_host_charset_command,
7473 set_target_charset_command): Delete functions.
7474 (show_charset_command): Rewrite as....
7475 (show_charset): Hook this up with the set/show command mechanism.
7476 (_initialize_charset): Change names of charsets to match the
7477 set/show enums. Use host_charset_name and target_charset_name.
7478 Use set/show mechanism for charset, host-charset, target-charset
7479 commands. Do not make 'show host-charset' and 'show
7480 target-charset' be aliases of 'show charset'.
7481
7482 * charset.h (set_host_charset, set_target_charset): Don't export,
7483 they are not used outside the file.
7484
7485 2003-05-01 Andrew Cagney <cagney@redhat.com>
7486
7487 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7488 (gdb_disassembly): Make "di" non static, always initialize and
7489 cleanup. Always use dis_asm_read_memory.
7490 (gdb_dis_asm_read_memory): Delete function.
7491
7492 2003-05-01 Andrew Cagney <cagney@redhat.com>
7493
7494 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7495 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7496
7497 2003-04-30 Andrew Cagney <cagney@redhat.com>
7498
7499 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7500 "tm_print_insn_info".
7501 (TARGET_PRINT_INSN_INFO): Delete macro.
7502 (dis_asm_read_memory): Delete function declaration.
7503 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7504 (tm_print_insn_info): Delete variable definition.
7505 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7506 * gdbarch.h, gdbarch.c: Re-generate.
7507 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7508 "deprecated_tm_print_insn_info".
7509 * mcore-tdep.c (mcore_dump_insn): Ditto.
7510 * mips-tdep.c (mips_gdbarch_init): Ditto.
7511 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7512 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7513 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7514 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7515 instead of TARGET_PRINT_INSN_INFO, add comment.
7516 * s390-tdep.c (s390_get_frame_info): Instead of
7517 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7518 (s390_check_function_end, s390_is_sigreturn): Ditto.
7519 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7520 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7521 * disasm.c: Include "gdbcore.h".
7522 (_initialize_disasm): New function, initialize
7523 "deprecated_tm_print_insn_info".
7524 (deprecated_tm_print_insn_info): New variable.
7525 (dis_asm_read_memory): Moved from "corefile.c", made static.
7526 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7527 * Makefile.in (disasm.o): Update dependencies.
7528
7529 2003-04-30 Andrew Cagney <cagney@redhat.com>
7530
7531 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7532
7533 2003-04-29 Adam Fedor <fedor@gnu.org>
7534
7535 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7536 * infcall.c (find_function_addr): Make non-static.
7537 * infcall.h (find_function_addr): Declare.
7538 * Makefile.in (eval.o): Update dependencies.
7539
7540 2003-04-28 Adam Fedor <fedor@gnu.org>
7541
7542 * symtab.c (symbol_find_demangled_name): Check for and demangle
7543 ObjC symbols.
7544 (symbol_init_demangled_name): Init for language_objc as well.
7545
7546 2003-04-28 Andrew Cagney <cagney@redhat.com>
7547
7548 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7549 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7550 * gdbarch.h, gdbarch.c: Re-generate.
7551 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7552 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7553 * inferior.h (deprecated_read_fp): Rename read_fp.
7554 (generic_target_read_fp): Delete declaration.
7555 * regcache.c (generic_target_read_fp): Delete function.
7556 (deprecated_read_fp): Replace read_fp, use
7557 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7558 * d10v-tdep.c (d10v_read_fp): Delete function.
7559 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7560
7561 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7562 deprecated_target_read_fp to generic_target_read_fp.
7563 * sh-tdep.c (sh_gdbarch_init): Ditto.
7564 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7566 * frv-tdep.c (frv_gdbarch_init): Ditto.
7567
7568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7569 deprecated_fp_regnum.
7570 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7571 * vax-tdep.c (vax_gdbarch_init): Ditto.
7572 * v850-tdep.c (v850_gdbarch_init): Ditto.
7573 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7574 * sh-tdep.c (sh_gdbarch_init): Ditto.
7575 * s390-tdep.c (s390_gdbarch_init): Ditto.
7576 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7577 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7578 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7579 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7580 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7581 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7582 * i386-tdep.c (i386_gdbarch_init): Ditto.
7583 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7584 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7585 * frv-tdep.c (frv_gdbarch_init): Ditto.
7586 * cris-tdep.c (cris_gdbarch_init): Ditto.
7587 * avr-tdep.c (avr_gdbarch_init): Ditto.
7588 * arm-tdep.c (arm_gdbarch_init): Ditto.
7589 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7590
7591 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7592 * v850-tdep.c (v850_gdbarch_init): Ditto.
7593 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7594 * sh-tdep.c (sh_gdbarch_init): Ditto.
7595 * s390-tdep.c (s390_gdbarch_init): Ditto.
7596 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7597 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7598 * mips-tdep.c (mips_gdbarch_init): Ditto.
7599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7600 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7601 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7602 * frv-tdep.c (frv_gdbarch_init): Ditto.
7603 * avr-tdep.c (avr_gdbarch_init): Ditto.
7604 * arm-tdep.c (arm_gdbarch_init): Ditto.
7605
7606 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7607 DEPRECATED_FP_REGNUM.
7608 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7609 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7610 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7611 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7612 (sparc32_register_virtual_type): Ditto.
7613 * sh-tdep.c (sh64_frame_chain): Ditto.
7614 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7615 (sh_nofp_frame_init_saved_regs): Ditto.
7616 (sh64_nofp_frame_init_saved_regs): Ditto.
7617 (sh_fp_frame_init_saved_regs): Ditto.
7618 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7619 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7620 * procfs.c (procfs_fetch_registers): Ditto.
7621 (procfs_store_registers): Ditto.
7622 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7623 (store_inferior_registers, fetch_core_registers): Ditto.
7624 (fetch_kcore_registers, clear_regs): Ditto.
7625 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7626 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7627 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7628 * nlm/i386.c (do_status): Ditto.
7629 * mipsv4-nat.c (supply_gregset): Ditto.
7630 * mips-tdep.c: Ditto for comments.
7631 * mips-nat.c (fetch_inferior_registers): Ditto.
7632 (store_inferior_registers, fetch_core_registers): Ditto.
7633 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7634 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7635 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7636 (i386_do_pop_frame, i386_register_type): Ditto.
7637 * hppa-tdep.c (hppa_frame_chain): Ditto.
7638 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7639 (hppa_pop_frame, hppa_read_fp): Ditto.
7640 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7641 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7642 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7643 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7644 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7645 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7646 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7647 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7648 * blockframe.c: Ditto for comments.
7649 * arch-utils.h: Ditto for comments.
7650 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7651 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7652 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7653 * alpha-tdep.h: Ditto for comments.
7654 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7655 (alpha_cannot_store_register): Ditto.
7656 (alpha_push_dummy_frame): Ditto.
7657 * alpha-nat.c (supply_gregset): Ditto.
7658
7659 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7660 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7661 * config/sparc/tm-sparc.h: Update comment.
7662
7663 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7664 deprecated_read_fp instead of TARGET_READ_FP.
7665 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7666 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7667 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7668 deprecated_read_fp instead of read_fp.
7669 * s390-tdep.c (s390_push_arguments): Ditto.
7670 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7671 * frame.h: Ditto in comments.
7672 * frame.c (legacy_get_prev_frame): Ditto.
7673 * dummy-frame.c (dummy_frame_this_id): Ditto.
7674 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7675
7676 2003-04-28 Andrew Cagney <cagney@redhat.com>
7677
7678 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7679 * gdbarch.h, gdbarch.c: Re-generate.
7680 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7681 * vax-tdep.c (_initialize_vax_tdep): Update.
7682 * v850-tdep.c (_initialize_v850_tdep): Update.
7683 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7684 * s390-tdep.c (_initialize_s390_tdep): Update.
7685 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7686 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7687 * mips-tdep.c (_initialize_mips_tdep): Update.
7688 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7689 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7690 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7691 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7692 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7693 * frv-tdep.c (_initialize_frv_tdep): Update.
7694 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7695 (_initialize_cris_tdep): Update.
7696 * arch-utils.c (legacy_print_insn): Update.
7697 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7698
7699 2003-04-26 Adam Fedor <fedor@gnu.org>
7700
7701 * linespec.c (decode_objc): New function to decode ObjC calls
7702 (decode_line_1): Check for ObjC calls (using decode_objc)
7703 * Makefile (linespec.o): Update dependencies.
7704
7705 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7706
7707 * breakpoint.h (struct breakpoint_ops): New.
7708 (struct breakpoint): Add ops member.
7709
7710 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7711 (mention): Use new breakpoint ops member.
7712 (set_raw_breakpoint): Initialize ops field to NULL.
7713 (print_exception_catchpoint, print_one_exception_catchpoint)
7714 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7715 (gnu_v3_exception_catchpoint_ops): New.
7716 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7717
7718 2003-04-25 Adam Fedor <fedor@gnu.org>
7719
7720 * Makefile.in (COMMON_OBS): Add objc-lang.o
7721
7722 2003-04-25 Andrew Cagney <cagney@redhat.com>
7723
7724 * d10v-tdep.c (print_insn): Delete function.
7725 (display_trace): Use TARGET_PRINT_INSN.
7726 (_initialize_d10v_tdep): Do not set tm_print_insn.
7727 (d10v_gdbarch_init): Set print_insn.
7728
7729 2003-04-25 Andrew Cagney <cagney@redhat.com>
7730
7731 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7732 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7733 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7734 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7735 (nr_dmap_regs, a0_regnum): ... new functions.
7736 (d10v_print_registers_info): Use a0_regnum, use register_size.
7737 (d10v_register_byte): Delete function.
7738 (d10v_register_raw_size): Delete function.
7739 (d10v_register_type): Use a0_regnum.
7740 (d10v_print_registers_info): Use a0_regnum.
7741 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7742 (d10v_gdbarch_init): Do not set register_byte or
7743 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7744 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7745 extract_address.
7746 (trace_command): Use XCALLOC.
7747 (print_insn): Delete reference to tm_print_insn.
7748 (saved_regs_unwinder): Use store_unsigned_integer instead of
7749 store_address.
7750 * frame.h (FRAME_OBSTACK_CALLOC): Define
7751
7752 2003-04-25 David Carlton <carlton@bactrian.org>
7753
7754 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7755
7756 2003-04-24 Adam Fedor <fedor@gnu.org>
7757
7758 * objc-lang.c: Include "valprint.h"
7759 * Makefile.in (objc-lang.o): Update dependencies.
7760
7761 2003-04-24 Adam Fedor <fedor@gnu.org>
7762
7763 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7764 architecture dependant compilation and mark as unimplemented
7765 (until they get put in the gdbarch vector).
7766
7767 2003-04-23 David Carlton <carlton@bactrian.org>
7768
7769 * cp-support.c (cp_find_first_component): Accept 'operator' in
7770 more locations.
7771
7772 2003-04-23 Andrew Cagney <cagney@redhat.com>
7773
7774 * infcall.c (call_function_by_hand): Eliminate redundant
7775 indentation. Move "saved_async" and "old_cleanups" to where they
7776 are needed.
7777
7778 2003-04-23 Andrew Cagney <cagney@redhat.com>
7779
7780 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7781 and "buffer". Move the "name" code to where it is needed.
7782
7783 2003-04-23 Andrew Cagney <cagney@redhat.com>
7784
7785 * infcall.c (call_function_by_hand): Move variables "start_sp",
7786 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7787 code to ON_STACK switch branch.
7788
7789 2003-04-23 Andrew Cagney <cagney@redhat.com>
7790
7791 * infcall.c (call_function_by_hand): Make declaration of "i",
7792 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7793 lint.
7794
7795 2003-04-23 Andrew Cagney <cagney@redhat.com>
7796
7797 * infcall.c (call_function_by_hand): Delete variable
7798 "n_method_args". Localize "param_type"'s declaration to the loop
7799 that it is used. Reinstate code assigning to said variable -
7800 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7801 Rationalize code using "param_type".
7802
7803 2003-04-22 Andrew Cagney <cagney@redhat.com>
7804
7805 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7806 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7807 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7808 to DEPRECATED_PUSH_RETURN_ADDRESS.
7809
7810 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7811
7812 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7813 on the DWARF2 register number prior to fetching a register.
7814
7815 2003-04-22 J. Brobecker <brobecker@gnat.com>
7816
7817 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7818 Update all the tests using SOFT_FLOAT considering the fact that
7819 this macro was always set to 0.
7820 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7821 considering the fact that this macro was always set to 0.
7822 * hppa-tdep.h (hppa_store_return_value): Likewise.
7823 (hppa_extract_return_value): Likewise.
7824
7825 2003-04-22 J. Brobecker <brobecker@gnat.com>
7826
7827 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7828 the hppa-pro target only.
7829
7830 2003-04-21 J. Brobecker <brobecker@gnat.com>
7831
7832 Ongoing multi-arch conversion effort for HP/UX:
7833 * config/pa/tm-hppa.h: Move all macro that are no longer
7834 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7835 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7836
7837 2003-04-21 J. Brobecker <brobecker@gnat.com>
7838
7839 * config/pa/tm-hppa.h: Obsolete a section that was only used
7840 for hppa-pro.
7841
7842 2003-04-21 J. Brobecker <brobecker@gnat.com>
7843
7844 Ongoing multi-arch conversion for HP/UX.
7845 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7846 if already defined (allows hppa64 to stay non-multiarched for now).
7847 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7848
7849 2003-04-21 Andrew Cagney <cagney@redhat.com>
7850
7851 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7852
7853 2003-04-21 Andrew Cagney <cagney@redhat.com>
7854
7855 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7856 "i386_num_mmx_regs".
7857
7858 2003-04-21 Andrew Cagney <cagney@redhat.com>
7859
7860 * infcall.c: New file.
7861 * infcall.h: New file.
7862 * valarith.c: Include "infcall.h".
7863 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7864 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7865 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7866 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7867 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7868 (SFILES): Add "infcall.c"
7869 (COMMON_OBS): Add "infcall.o".
7870 (infcall.o): Specify dependencies.
7871 * value.h (call_function_by_hand): Delete declaration.
7872 * inferior.h (run_stack_dummy): Delete declaration.
7873 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7874 (run_stack_dummy): Move to "infcall.c", merged into
7875 call_function_by_hand.
7876 * valops.c (call_function_by_hand): Moved to "infcall.c".
7877 (find_function_addr, value_arg_coerce): Ditto.
7878 (unwindonsignal_p, coerce_float_to_double): Ditto.
7879 (_initialize_valops): Move "set/show coerce-float-to-double", and
7880 "set/show unwindonsignal" commands to "infcall.c".
7881 * v850-tdep.c, target.h: Update comments.
7882 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7883 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7884 (sh64_init_extra_frame_info): Update comments.
7885 * mn10300-tdep.c: Update comments.
7886 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7887 * config/sparc/tm-sparc.h: Update comments.
7888 * breakpoint.h: Update comments.
7889 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7890 * arm-tdep.c: Update comment.
7891
7892 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7893
7894 * i386-tdep.c (i386_num_register_names): New variable.
7895 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7896 (MM0_REGNUM): Remove redundant parentheses in define.
7897 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7898 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7899 i386_mxcsr_regnum_p): Remove redundant parentheses.
7900 (i386_register_name): Use i386_num_register_names.
7901
7902 * i386-tdep.c (i386_extract_return_value,
7903 i386_store_return_value): Correct check for availability of
7904 floating-point registers.
7905
7906 * i386-tdep.c (i386_frame_num_args): Remove function.
7907 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7908
7909 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7910 mmx_regnum_to_fp_regnum. Adjust all callers.
7911
7912 * i386-tdep.c (i386_get_longjmp_target): Use
7913 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7914 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7915 extract_address.
7916
7917 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7918
7919 * core-regset.c: Update comments to reflect reality. Re-order
7920 includes.
7921 (fetch_core_registers): Use switch instead of if. Remove
7922 redundant prototype.
7923
7924 2003-04-18 Jim Blandy <jimb@redhat.com>
7925
7926 * s390-tdep.c (s390_frame_align): New function.
7927 (s390_gdbarch_init): Register it with the gdbarch object.
7928
7929 2003-04-17 Richard Henderson <rth@redhat.com>
7930
7931 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7932
7933 2003-04-17 Michael Snyder <msnyder@redhat.com>
7934 Karen Bennet <bennet@redhat.com>
7935
7936 Committed by Elena Zannoni <ezannoni@redhat.com>
7937 * gdb_gcore.sh: New script to create a core dump of a process.
7938
7939 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7940
7941 * values.c (value_being_returned): Don't fetch the return
7942 value if the return type is void.
7943
7944 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7945
7946 * thread-db.c: Reindented.
7947
7948 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7949
7950 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7951 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7952 as types.
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7979
7980 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7981 the size of ``long double'' to 16, instead of 8.
7982
7983 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7984
7985 * i386-linux-nat.c: Add some whitespace to make things more
7986 readable.
7987 (fetch_register, store_register, fetch_inferior_registers,
7988 store_inferior_registers): Get rid of assignment in if-statement.
7989 (store_register): Fix typo in error message.
7990
7991 2003-04-16 Andrew Cagney <cagney@redhat.com>
7992
7993 * utils.c (xmmalloc): Always allocate something, matches
7994 libiberty/xmalloc's semantics.
7995 (xmrealloc, xmcalloc): Ditto.
7996
7997 2003-04-16 Andrew Cagney <cagney@redhat.com>
7998
7999 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8000 update comments.
8001 (get_frame_type): Initialize unwind and type when needed.
8002 (get_frame_id, frame_register_unwind): Ditto.
8003
8004 2003-04-16 Andrew Cagney <cagney@redhat.com>
8005
8006 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8007 obsolete.
8008 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8009 * sparcl-stub.c: Obsolete file.
8010 * config/sparc/tm-sparclet.h: Obsolete file.
8011 * sparclet-stub.c: Obsolete file.
8012 * sparclet-rom.c: Obsolete file.
8013 * sparcl-tdep.c: Obsolete file.
8014 * config/sparc/tm-sparclite.h: Obsolete file.
8015 * config/sparc/sparclite.mt: Obsolete file.
8016 * config/sparc/sparclet.mt: Obsolete file.
8017 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8018 sparc86x-*-* obsolete.
8019
8020 2003-04-15 David Carlton <carlton@math.stanford.edu>
8021
8022 * Makefile.in (SFILES): Add cp-namespace.c.
8023 (COMMON_OBS): Add cp-namespace.o.
8024 (block.o): Depend on gdb_obstack_h and cp_support_h.
8025 (buildsym.o): Depend on cp_support_h.
8026 (cp-namespace.o): New.
8027 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8028 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8029 (dwarf2read.o): Depend on cp_support_h.
8030 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8031 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8032 processing_current_namespace.
8033 (read_namespace): Update processing_current_namespace; check for
8034 anonymous namespaces.
8035 (dwarf2_name): New function.
8036 (dwarf2_extension): Ditto.
8037 * cp-support.h: Update copyright, contributors.
8038 Add inclusion guards.
8039 Add opaque declaration for structs obstack, block, symbol.
8040 (struct using_direct): New struct.
8041 Add declarations for cp_find_first_component,
8042 cp_entire_prefix_len, processing_has_namespace_info,
8043 processing_current_namespace, cp_is_anonymous,
8044 cp_add_using_directive, cp_initialize_namespace,
8045 cp_finalize_namespace, cp_set_block_scope,
8046 cp_scan_for_anonymous_namespaces.
8047 * cp-namespace.c: New file.
8048 * cp-support.c: Update copyright.
8049 Include ctype.h, gdb_assert.h, gdbcmd.h.
8050 New variable maint_cplus_cmd_list.
8051 (cp_find_first_component): New function.
8052 (cp_entire_prefix_len, maint_cplus_command)
8053 (first_component_command, _initialize_cp_support): Ditto.
8054 * buildsym.c: Include cp-support.h.
8055 New variable using_list.
8056 (add_symbol_to_list): Check for anonymous namespaces.
8057 (finish_block): Set block's scope.
8058 (start_symtab): Initialize C++ namespace support.
8059 (end_symtab): Finalize C++ namespace support.
8060 * block.h: Add opaque declarations for structs
8061 block_namespace_info, using_direct, and obstack.
8062 Add declarations for block_set_scope and block_set_using.
8063 (struct block): Add 'language_specific' member.
8064 (BLOCK_NAMESPACE): New macro.
8065 * block.c: Include gdb_obstack.h and cp-support.h.
8066 (struct block_namespace_info): New struct.
8067 (block_set_scope): New function.
8068 (block_set_using, block_initialize_namespace): Ditto.
8069
8070 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8071
8072 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8073 (locate_base): Return early if there aren't any link map offsets.
8074 (svr4_solib_create_inferior_hook): Warn if shared library support
8075 is unavailable.
8076
8077 2003-04-14 David Carlton <carlton@math.stanford.edu>
8078
8079 * symtab.c (symbol_set_names): Add prefix when storing Java names
8080 in hash table. Fix for PR java/1039.
8081
8082 2003-04-14 David Carlton <carlton@math.stanford.edu>
8083
8084 * symtab.c (symbol_set_names): Rename 'name' arg to
8085 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8086 * symtab.h: Change 'name' argument in declaration of
8087 symbol_set_names to 'linkage_name'.
8088 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8089
8090 2003-04-14 Andrew Cagney <cagney@redhat.com>
8091
8092 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8093 return the fully sign-extended register value.
8094 (get_frame_pointer): Ditto.
8095 (mips_pop_frame): Initialize "proc_desc" after checking for a
8096 dummy frame.
8097
8098 2003-04-14 Andrew Cagney <cagney@redhat.com>
8099
8100 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8101 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8102 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8103 (mips_push_register): Delete function.
8104 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8105 PUSH_FP_REGNUM.
8106
8107 2003-04-14 Jim Blandy <jimb@redhat.com>
8108
8109 * symmisc.c: #include "gdb_regex.h".
8110 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8111 functions.
8112 * maint.c (maintenance_list_command): New function.
8113 (_initialize_maint_cmds): Register the above as commands.
8114 * symtab.h (maintenance_list_symtabs,
8115 maintenance_list_psymtabs): New declarations.
8116 * cli/cli-cmds.c (maintenancelistlist): New variable.
8117 (init_cmd_lists): Initialize it.
8118 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8119 * gdbcmd.h (maintenancelistlist): New declaration.
8120 * Makefile.in (symmisc.o): Update dependencies.
8121
8122 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8123
8124 * s390-nat.c: Include asm/types.h for addr_t.
8125
8126 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8127
8128 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8129 actually incoming type.
8130
8131 2003-04-13 Andrew Cagney <cagney@redhat.com>
8132
8133 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8134 get_next_frame and get_frame_saved_regs.
8135
8136 2003-04-13 Andrew Cagney <cagney@redhat.com>
8137
8138 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8139 of gdbarch_num_regs.
8140
8141 2003-04-13 Andrew Cagney <cagney@redhat.com>
8142
8143 * frame.h: Mention what replaced what in "struct frame_info".
8144 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8145 deprecated_update_frame_base_hack and
8146 deprecated_update_frame_pc_hack.
8147 * hppa-tdep.c: Ditto.
8148
8149 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8150
8151 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8152 to read_reg and update its comment. Remove regnum member.
8153 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8154 Don't call read_reg when setting in_reg. Call read_reg to get
8155 the frame base if it's in a register. Return the register number
8156 on the stack instead of in the context. Remove extra arguments
8157 to read_reg.
8158 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8159 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8160 the register number on the expression stack.
8161 (needs_frame_read_reg): Remove extra arguments.
8162
8163 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8164
8165 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8166 made non-static.
8167 (execute_stack_op): All callers updated.
8168 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8169 * dwarf2loc.c (find_location_expression): New function.
8170 (dwarf_expr_frame_base): Call it.
8171 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8172 (dwarf2_tracepoint_var_ref): New function, broken out from
8173 locexpr_tracepoint_var_ref.
8174 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8175 Make static.
8176 (loclist_read_variable, loclist_read_needs_frame): New functions.
8177 (loclist_describe_location, loclist_tracepoint_var_ref): New
8178 functions.
8179 (dwarf2_loclist_funcs): New struct location_funcs.
8180 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8181 (struct dwarf2_locexpr_baton): Add comments.
8182 (dwarf2_loclist_funcs): New extern.
8183 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8184 base_address and base_known.
8185 (dwarf_loc_buffer): New variable.
8186 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8187 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8188 (dwarf2_has_info): Initialize dwarf_loc_offset.
8189 (dwarf2_build_psymtabs): Read in .debug_loc.
8190 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8191 DWARF_LOC_SIZE.
8192 (psymtab_to_symtab_1): Likewise. Move base address calculation
8193 here, from...
8194 (dwarf2_get_pc_bounds): ... here. Use the base address from
8195 cu_header.
8196 (dwarf2_symbol_mark_computed): Handle location lists.
8197
8198 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8199
8200 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8201 if the linkage name demangled successfully.
8202
8203 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8204
8205 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8206 disassmbly_flavour): Removed.
8207
8208 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8209
8210 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8211
8212 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8213
8214 2003-04-12 Andrew Cagney <cagney@redhat.com>
8215
8216 * frame.h (struct frame_info): Move definition from here ...
8217 * frame.c (struct frame_info): ... to here.
8218
8219 2003-04-12 Andrew Cagney <cagney@redhat.com>
8220
8221 * gdbthread.h (save_infrun_state): Delete parameter
8222 "prev_func_start".
8223 (struct thread_info): Delete field "prev_func_start".
8224 (load_infrun_state): Ditto.
8225 * thread.c (load_infrun_state, save_infrun_state): Update.
8226 * infrun.c (prev_func_start): Delete variable.
8227 (context_switch, init_wait_for_inferior): Update.
8228 (stop_stepping, keep_going): Update.
8229
8230 2003-04-12 Andrew Cagney <cagney@redhat.com>
8231
8232 * gdbarch.sh: Add missing opaque declarations.
8233 * gdbarch.h: Regnerate.
8234 * symtab.h: Add missing opaque declarations.
8235 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8236 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8237 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8238 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8239 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8240 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8241 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8242 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8243 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8244 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8245 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8246 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8247 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8248
8249 2003-04-11 Andrew Cagney <cagney@redhat.com>
8250
8251 * frame.c (get_frame_id): Return this frame's "id".
8252 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8253 function start.
8254 (legacy_saved_regs_this_id): Replace function body with
8255 internal-error.
8256 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8257 FRAME_OBSTACK_ZALLOC.
8258 (create_new_frame): Mark the frame ID as valid.
8259
8260 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8261
8262 * Makefile.in (libbfd_h): Added missing setting.
8263 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8264 according to the selected ABI.
8265
8266 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8267
8268 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8269
8270 2003-04-11 Andrew Cagney <cagney@redhat.com>
8271
8272 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8273 SAVED_PC_AFTER_CALL.
8274 * gdbarch.h, gdbarch.c: Regenerate.
8275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8276 * x86-64-tdep.c (x86_64_init_abi): Update.
8277 * vax-tdep.c (vax_gdbarch_init): Update.
8278 * v850-tdep.c (v850_gdbarch_init): Update.
8279 * sparc-tdep.c (sparc_gdbarch_init): Update.
8280 * sh-tdep.c (sh_gdbarch_init): Update.
8281 * s390-tdep.c (s390_gdbarch_init): Update.
8282 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8283 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8284 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8285 * mips-tdep.c (mips_gdbarch_init): Update.
8286 * mcore-tdep.c (mcore_gdbarch_init): Update.
8287 * m68k-tdep.c (m68k_gdbarch_init): Update.
8288 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8289 * ia64-tdep.c (ia64_gdbarch_init): Update.
8290 (ia64_saved_pc_after_call): Update declaration.
8291 * i386ly-tdep.c (i386lynx_init_abi): Update.
8292 * i386-tdep.c (i386_gdbarch_init): Update.
8293 * hppa-tdep.c (hppa_gdbarch_init): Update.
8294 * h8300-tdep.c (h8300_gdbarch_init): Update.
8295 * frv-tdep.c (frv_gdbarch_init): Update.
8296 * cris-tdep.c (cris_gdbarch_init): Update.
8297 * avr-tdep.c (avr_gdbarch_init): Update.
8298 * arm-tdep.c (arm_gdbarch_init): Update.
8299 * alpha-tdep.c (alpha_gdbarch_init): Update.
8300 * ns32knbsd-nat.c (frame_num_args): Update.
8301 * ns32k-tdep.c (umax_frame_num_args): Update.
8302 * mips-tdep.c (mips_init_frame_pc_first): Update.
8303 * infrun.c (step_over_function): Update.
8304 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8305 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8306 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8307 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8308 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8309 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8310 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8311 * arch-utils.c (init_frame_pc_default): Update.
8312 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8313 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8314 declaration.
8315
8316 2003-04-11 Andrew Cagney <cagney@redhat.com>
8317
8318 * i387-tdep.c: Update copyright.
8319 (i387_to_double): Delete function.
8320 (double_to_i387): Delete function.
8321
8322 2003-04-10 Andrew Cagney <cagney@redhat.com>
8323
8324 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8325 frame's function's address. Simplify.
8326 (d10v_frame_unwind_cache): Check that the frame's function is
8327 non-zero.
8328
8329 2003-04-10 Jim Blandy <jimb@redhat.com>
8330
8331 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8332 call to set_gdbarch_deprecated_push_arguments.
8333
8334 2003-04-10 Andrew Cagney <cagney@redhat.com>
8335
8336 * frame.c (fprint_frame_id): New function.
8337 (fprint_frame_type, fprint_frame): New function.
8338 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8339 (create_sentinel_frame, get_frame_id): Ditto.
8340 (frame_id_p, frame_id_eq): Ditto.
8341 (frame_id_inner, create_new_frame): Ditto.
8342 (legacy_get_prev_frame, get_prev_frame): Ditto.
8343 (deprecated_update_frame_pc_hack): Ditto.
8344 (frame_register_unwind): Ditto.
8345 (deprecated_update_frame_base_hack): Ditto.
8346
8347 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8348
8349 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8350 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8351 frame_chain function.
8352 * Makefile.in: Add dependencies due to above change.
8353
8354 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8355
8356 * blockframe.c (legacy_frame_chain_valid): Move call to
8357 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8358 inside_entry_file.
8359
8360 2003-04-09 Andrew Cagney <cagney@redhat.com>
8361
8362 * frame.h (struct frame_id): Replace "pc" and "base" with
8363 "stack_addr" and "code_addr". Update comments.
8364 (frame_id_build): Update parameter names and comment.
8365 (struct frame_info): Replace "id_p" and "id" with "this_id".
8366 * dummy-frame.c (dummy_frame_this_id): Update.
8367 * breakpoint.c (print_one_breakpoint): Update.
8368 * frame.c (get_frame_id): Update.
8369 (get_frame_base, frame_id_build): Update.
8370 (create_sentinel_frame, legacy_get_prev_frame): Update.
8371 (deprecated_update_frame_base_hack): Update.
8372 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8373 (frame_id_inner): Ditto.
8374
8375 2003-04-09 Andrew Cagney <cagney@redhat.com>
8376
8377 * defs.h (gdb_print_host_address): Make "addr" parameter a
8378 pointer constant.
8379 * utils.c (gdb_print_host_address): Update.
8380
8381 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8382
8383 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8384 register number for R0 is 0.
8385
8386 2003-04-09 J. Brobecker <brobecker@gnat.com>
8387
8388 * frame.h (struct gdbarch): Add opaque structure definition
8389 to avoid a compilation warning on LynxOS 4.0.
8390
8391 2003-04-09 Andrew Cagney <cagney@redhat.com>
8392
8393 * frame.h (struct frame_info): Delete field "pc". Replace
8394 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8395 structure.
8396 * frame.c (frame_pc_unwind): Update.
8397 (create_sentinel_frame): Do not set "pc".
8398 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8399 (get_frame_pc): Call frame_pc_unwind.
8400 (deprecated_update_frame_pc_hack): Update.
8401 (create_new_frame): Use "pc" not "->pc".
8402
8403 2003-04-09 Andrew Cagney <cagney@redhat.com>
8404
8405 * frame.c (get_frame_id): Eliminate code updating "frame".
8406 (legacy_get_prev_frame): Ditto.
8407 (get_frame_base): Return id.base directly.
8408 (deprecated_update_frame_base_hack): Update "id.base".
8409 * frame.h (struct frame_info): Delete field "frame".
8410
8411 2003-04-09 Andrew Cagney <cagney@redhat.com>
8412
8413 * NEWS: Mention that the "Sequent family" is obsolete.
8414 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8415 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8416 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8417 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8418 * config/i386/tm-ptx4.h: Obsolete file.
8419 * config/i386/tm-ptx.h: Obsolete file.
8420 * symm-tdep.c: Obsolete file.
8421 * config/i386/symmetry.mt: Obsolete file.
8422 * config/i386/tm-symmetry.h: Obsolete file.
8423 * symm-nat.c: Obsolete file.
8424 * config/i386/nm-symmetry.h: Obsolete file.
8425 * config/i386/xm-symmetry.h: Obsolete file.
8426 * config/i386/symmetry.mh: Obsolete file.
8427 * config/i386/nm-ptx4.h: Obsolete file.
8428 * config/i386/ptx4.mh: Obsolete file.
8429 * config/i386/ptx.mt: Obsolete file.
8430 * config/i386/ptx.mh: Obsolete file.
8431 * config/i386/xm-ptx4.h: Obsolete file.
8432 * config/i386/xm-ptx.h: Obsolete file.
8433
8434 2003-04-09 Andrew Cagney <cagney@redhat.com>
8435
8436 Obsolete mips*-*-mach3*.
8437 * NEWS: Mention that mips*-*-mach3* is obsolete.
8438 * m3-nat.c: Obsolete file.
8439 * config/nm-m3.h: Obsolete file.
8440 * config/mips/tm-mipsm3.h: Obsolete file.
8441 * config/mips/mipsm3.mt: Obsolete file.
8442 * config/mips/mipsm3.mh: Obsolete file.
8443 * config/mips/xm-mipsm3.h: Obsolete file.
8444 * mipsm3-nat.c: Obsolete file.
8445 * configure.host: Obsolete mips-dec-mach3*.
8446 * configure.tgt: Obsolete mips*-*-mach3*.
8447
8448 2003-04-09 Andrew Cagney <cagney@redhat.com>
8449
8450 * doublest.h: Update copyright.
8451 (deprecated_store_floating, deprecated_extract_floating): Rename
8452 store_floating and extract_floating. Update comments.
8453 * doublest.c: Update copyright.
8454 (extract_floating_by_length): Replace extract_floating.
8455 (store_floating_by_length): Replace store_floating.
8456 (deprecated_extract_floating): New function.
8457 (deprecated_store_floating): New function.
8458 (extract_typed_floating): Call extract_floating_by_length.
8459 (store_typed_floating): Call store_floating_by_length.
8460 * x86-64-tdep.c (x86_64_store_return_value): Update.
8461 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8462 (sh64_extract_return_value): Update.
8463 (sh_sh4_register_convert_to_virtual): Update.
8464 (sh_sh64_register_convert_to_virtual): Update.
8465 (sh_sh4_register_convert_to_raw): Update.
8466 (sh_sh64_register_convert_to_raw): Update.
8467 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8468 (rs6000_register_convert_to_raw): Update.
8469 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8470 (ia64_register_convert_to_raw): Update.
8471 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8472 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8473 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8474 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8475 (alpha_register_convert_to_raw): Update.
8476
8477 2003-04-08 Andrew Cagney <cagney@redhat.com>
8478
8479 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8480 * gdbarch.h, gdbarch.c: Re-generate.
8481 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8482 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8483 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8484 conditionally, use frame_pc_unwind as an alternative. Add
8485 comments.
8486 * arch-utils.c (init_frame_pc_default): Only call
8487 SAVED_PC_AFTER_CALL when available.
8488
8489 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8490
8491 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8492 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8493 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8494 (start_remote): Ditto.
8495 (handle_inferior_event): Ditto.
8496 (save_inferior_status): Ditto.
8497 (restore_inferior_status): Ditto.
8498 * infcmd.c (attach_command): Ditto.
8499 * fork-child.c (startup_inferior): Ditto.
8500 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8501 * alpha-tdep.c (heuristic_proc_start): Ditto.
8502 * mips-tdep.c (heuristic_proc_start): Ditto.
8503 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8504 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8505 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8506 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8507 * remote-vx.c (vx_create_inferior): Ditto.
8508
8509 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8510
8511 * infrun.c (stop_soon_quietly): Make it an enum, to better
8512 override the default behavior of handle_inferior_event.
8513 (clear_proceed_status): Update uses of stop_soon_quietly to
8514 reflect that it is now an enum.
8515 (start_remote): Ditto.
8516 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8517 is set to handle the new GNU/Linux kernel behavior for
8518 attach/sigstop. Update uses of stop_soon_quietly.
8519 * inferior.h (enum stop_kind): New enum.
8520 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8521 Reset normal handle_inferior_event behavior, afterwards.
8522 * fork-child.c (startup_inferior): Update.
8523 * alpha-tdep.c (heuristic_proc_start): Update.
8524 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8525 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8526 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8527 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8528 * remote-vx.c (vx_create_inferior): Update.
8529 * mips-tdep.c (heuristic_proc_start): Update.
8530
8531 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8532
8533 * disasm.c (dump_insns): Move variables inside loop, or they will
8534 be freed more than once, causing wild memory corruptions.
8535 (gdb_disassembly): Look for the substring "-thread",
8536 instead of "-threads" in the target name, to make sure to find
8537 the 'multi-thread' target. Also, make sure we do the right thing
8538 with the "core" target.
8539
8540 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8541
8542 * mips-tdep.c (mips_print_fp_register): New function, created from
8543 do_fp_register_row(). Registers are now (also) printed as hex.
8544 Only one register is printed per row.
8545 (mips_print_register, do_fp_register_row): Print floating point
8546 registers with mips_print_fp_register().
8547
8548 2003-04-06 Andrew Cagney <cagney@redhat.com>
8549
8550 * valprint.h (inspect_it): Add extern declaration.
8551 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8552 (selectors_info, classes_info): Ditto.
8553 (find_objc_msgcall): Fix indentation.
8554 (objc_printstr): Delete extern declarations.
8555
8556 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8557
8558 2003-04-06 Andrew Cagney <cagney@redhat.com>
8559
8560 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8561 Update comment.
8562 * frame.c (legacy_saved_regs_this_id): Update.
8563 (legacy_get_prev_frame): Update.
8564 * xstormy16-tdep.c: Update comment.
8565 * sparc-tdep.c (sparc_frame_chain): Update comment.
8566 * blockframe.c (legacy_frame_chain_valid): Update.
8567
8568 2003-04-06 Andrew Cagney <cagney@redhat.com>
8569
8570 * valprint.c (val_print_type_code_int): Delete #ifdef
8571 PRINT_TYPELESS_INTEGER code.
8572
8573 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8574 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8575 multi-arch definition.
8576 * gdbarch.h: Re-generate.
8577
8578 2003-04-05 Andrew Cagney <cagney@redhat.com>
8579
8580 Eliminate FRAME_FIND_SAVED_REGS.
8581 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8582 Change FSR parameter to a pointer.
8583 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8584 Assume FSR parameter is a pointer.
8585 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8586 Make fsr a pointer.
8587 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8588 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8589 saved_regs a pointer.
8590 (hppa_frame_saved_pc): Ditto.
8591 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8592 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8593 pointer.
8594 (restore_pc_queue): Make fsr a pointer.
8595 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8596 (hppa_frame_chain): Make saved_regs a pointer, call
8597 hppa_frame_init_saved_regs.
8598 * sparc-tdep.c: Include "gdb_assert.h".
8599 (sparc_frame_find_saved_regs): Replace internal_error with
8600 gdb_assert.
8601 * remote-vxsparc.c (vx_read_register): Delete reference to
8602 FRAME_FIND_SAVED_REGS.
8603 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8604 * gdbarch.h: Regenerate.
8605 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8606 (deprecated_get_frame_saved_regs): Delete declaration.
8607 (struct frame_saved_regs): Delete definition.
8608 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8609 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8610 (hppa_frame_find_saved_regs): Delete declaration.
8611 (FRAME_FIND_SAVED_REGS): Delete macro.
8612 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8613 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8614 FRAME_FIND_SAVED_REGS in comment.
8615
8616 2003-04-05 Andrew Cagney <cagney@redhat.com>
8617
8618 * frame.c (frame_func_unwind, get_frame_func): New functions.
8619 * frame.h (get_frame_func, frame_func_unwind): Declare.
8620 (struct frame_info): Add field "prev_func" for caching the
8621 previous frame's function address.
8622 * arm-tdep.c (arm_frameless_function_invocation): Combine
8623 get_pc_function_start and get_frame_pc into get_frame_func.
8624 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8625 (sh64_nofp_frame_init_saved_regs): Ditto.
8626 * s390-tdep.c (s390_function_start): Ditto.
8627 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8628 (rs6000_frameless_function_invocation): Ditto.
8629 (rs6000_frame_saved_pc): Ditto.
8630 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8631 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8632 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8633 (i386_frame_init_saved_regs): Ditto.
8634 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8635 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8636 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8637 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8638 * blockframe.c (frameless_look_for_prologue): Ditto.
8639
8640 2003-04-05 Andrew Cagney <cagney@redhat.com>
8641
8642 * frame.c (legacy_get_prev_frame): Link prev to next at the
8643 function start. Update comments.
8644
8645 2003-04-05 Andrew Cagney <cagney@redhat.com>
8646
8647 * frame.c (get_frame_id): Update comment.
8648 (legacy_get_prev_frame): Update comment.
8649 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8650 * gdbarch.h: Regenerate.
8651 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8652 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8653
8654 2003-04-05 Andrew Cagney <cagney@redhat.com>
8655
8656 * stack.c (print_frame_info): Use get_frame_pc.
8657
8658 2003-04-04 Andrew Cagney <cagney@redhat.com>
8659
8660 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8661 the frame's type from the unwinder.
8662 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8663 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8664 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8665 (get_frame_base_address): Use get_frame_type.
8666 (get_frame_locals_address, get_frame_args_address): Ditto.
8667 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8668 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8669 (struct frame_info): Add comment explaining why the frame contains
8670 a "type" field.
8671 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8672 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8673 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8674 NORMAL_FRAME.
8675 * frame-unwind.h: Include "frame.h".
8676 (struct frame_unwind): Add "type" field.
8677 * Makefile.in (frame_unwind_h): Add $(frame_h).
8678
8679 2003-04-04 Andrew Cagney <cagney@redhat.com>
8680
8681 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8682 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8683 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8684 get_frame_base.
8685 (d10v_unwind_dummy_id): Use frame_id_build.
8686 * frame.c (find_frame_sal): Use get_frame_pc.
8687 (create_new_frame): Use deprecated_update_frame_pc_hack and
8688 deprecated_update_frame_base_hack.
8689 (create_sentinel_frame): Add comment about ->pc going away.
8690 (get_prev_frame): Add comment about ->pc going away.
8691 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8692 frame_id_build, deprecated_update_frame_pc_hack and
8693 deprecated_update_frame_base_hack.
8694 (select_frame): Use get_frame_pc.
8695 (legacy_saved_regs_this_id): Use frame_id_build.
8696
8697 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8698
8699 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8700 signed integer case.
8701 (classify_argument): Handle enumerations and references.
8702
8703 2003-04-04 Andrew Cagney <cagney@redhat.com>
8704
8705 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8706 ID to NULL.
8707
8708 2003-04-01 Adam Fedor <fedor@gnu.org>
8709
8710 * gdb/objc-lang.c (selectors_info): Replace calls to
8711 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8712 SYMBOL_NATURAL_NAME.
8713 (classes_info, find_methods): Likewise.
8714
8715 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8716
8717 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8718 ``mach'' to the value determined by bfd_default_set_arch_mach().
8719
8720 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8721
8722 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8723 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8724 (mi-cmd-file.o): Update dependencies.
8725
8726 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8727
8728 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8729 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8730
8731 2003-04-01 Adam Fedor <fedor@gnu.org>
8732
8733 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8734 * language.h (struct language_defn): Add la_demangle.
8735 (language_demangle): Declare.
8736 * language.c (language_demangle): New function.
8737 (unk_lang_demangle): Likewise.
8738 (unknown_language_defn, auto_language_defn, local_language_defn):
8739 Add ukn_lang_demangle.
8740 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8741 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8742 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8743 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8744 * jv-lang.c (java_demangle): New function
8745 (java_language_defn): Use it for la_demangle element.
8746 * objc-lang.c (objc_demangle): Add options argument
8747 (objc_language_defn): Use objc_demangle for la_demangle element.
8748 * maint.c (maintenance_demangle): Replace switch with
8749 call to language_demangle.
8750 * utils.c (fprintf_symbol_filtered): Likewise.
8751
8752 2003-04-01 Andrew Cagney <cagney@redhat.com>
8753
8754 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8755 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8756 PRINT_TYPELESS_INTEGER.
8757 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8758 PUSH_RETURN_ADDRESS.
8759
8760 2003-04-01 Andrew Cagney <cagney@redhat.com>
8761
8762 * Makefile.in (d10v-tdep.o): Update dependencies.
8763 * d10v-tdep.c: Include "frame-base.h".
8764 (d10v_frame_unwind): Make constant.
8765 (d10v_frame_base_address): New function.
8766 (d10v_frame_base): New variable.
8767 (d10v_gdbarch_init): Set frame_base default.
8768 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8769 comment for base.
8770 (d10v_frame_unwind_cache): Set and use "prev_sp".
8771 (d10v_frame_this_id): Use the previous frame's inner most stack
8772 address and this frame's func address for the frame ID. Use
8773 frame_id_build. Don't analyze beyond the current instruction.
8774
8775 2003-04-01 Andrew Cagney <cagney@redhat.com>
8776
8777 * frame.h (get_frame_locals_address, get_frame_args_address):
8778 Refer to the base address, instead of the address of the first
8779 local or parameter.
8780
8781 2003-04-01 Andrew Cagney <cagney@redhat.com>
8782
8783 Add frame debug info addresses:
8784 * frame-base.c: New file.
8785 * frame-base.h: New file.
8786 * frame.h (struct frame_base): Add opaque declaration.
8787 (get_frame_base): Update comment.
8788 (get_frame_base_address): Declare.
8789 (get_frame_locals_address): Declare.
8790 (get_frame_args_address): Declare.
8791 (struct frame_info): Add "base" and "base_cache". Update
8792 comments on the unwinder.
8793 * frame.c: Include "frame-base.h".
8794 (get_frame_locals_address): New function.
8795 (get_frame_base_address): New function.
8796 (get_frame_args_address): New function.
8797 * findvar.c (read_var_value): Use get_frame_locals_address and
8798 get_frame_args_address.
8799 * stack.c (frame_info): Use get_frame_locals_address and
8800 get_frame_args_address.
8801 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8802 moved to "frame-base.c".
8803 * printcmd.c (print_frame_nameless_args): Ditto.
8804 * symtab.h (address_class): Update comments.
8805 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8806 get_frame_base_address.
8807 * dwarf2expr.c (execute_stack_op): Ditto.
8808 * Makefile.in (frame_base_h): Define.
8809 (frame.o): Update dependencies.
8810 (frame-base.o): Add dependencies.
8811 (SFILES): Add frame-base.c.
8812 (COMMON_OBS): Add frame-base.o.
8813
8814 2003-04-01 Andrew Cagney <cagney@redhat.com>
8815
8816 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8817 CALL_DUMMY_LENGTH): Ditto.
8818 * gdbarch.c: Re-generate.
8819 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8820 (CALL_DUMMY_LENGTH): Delete macro.
8821 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8822 * arm-tdep.c (arm_gdbarch_init): Ditto.
8823 * avr-tdep.c (avr_gdbarch_init): Ditto.
8824 * cris-tdep.c (cris_gdbarch_init): Ditto.
8825 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8826 * frv-tdep.c (frv_gdbarch_init): Ditto.
8827 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8828 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8829 * i386-tdep.c (i386_gdbarch_init): Ditto.
8830 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8831 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8832 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8833 * mips-tdep.c (mips_gdbarch_init): Ditto.
8834 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8835 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8836 * s390-tdep.c (s390_gdbarch_init): Ditto.
8837 * sh-tdep.c (sh_gdbarch_init): Ditto.
8838 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8839 * v850-tdep.c (v850_gdbarch_init): Ditto.
8840 * vax-tdep.c (vax_gdbarch_init): Ditto.
8841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8842
8843 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8844
8845 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8846
8847 2003-04-01 Andrew Cagney <cagney@redhat.com>
8848
8849 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8850 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8851 * gdbarch.h, gdbarch.c: Re-generate.
8852 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8853 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8854 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8855 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8856 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8857 * infcmd.c (run_stack_dummy): Simplify assuming
8858 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8859 * infrun.c (handle_inferior_event): Ditto.
8860 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8861 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8862 * arm-tdep.c (arm_gdbarch_init): Ditto.
8863 * avr-tdep.c (avr_gdbarch_init): Ditto.
8864 * cris-tdep.c (cris_gdbarch_init): Ditto.
8865 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8866 * frv-tdep.c (frv_gdbarch_init): Ditto.
8867 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8868 * i386-tdep.c (i386_gdbarch_init): Ditto.
8869 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8870 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8871 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8872 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8873 * mips-tdep.c (mips_gdbarch_init): Ditto.
8874 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8875 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8876 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8877 * s390-tdep.c (s390_gdbarch_init): Ditto.
8878 * sh-tdep.c (sh_gdbarch_init): Ditto.
8879 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8880 * v850-tdep.c (v850_gdbarch_init): Ditto.
8881 * vax-tdep.c (vax_gdbarch_init): Ditto.
8882 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8883
8884 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8885
8886 * symfile.c (symfile_relocate_debug_section): Update call to
8887 bfd_simple_get_relocated_section_contents.
8888
8889 2003-03-31 Andrew Cagney <cagney@redhat.com>
8890
8891 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8892 * gdbarch.h, gdbarch.c: Regenerate.
8893 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8894 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8895 available.
8896 * frame.h (generic_fix_call_dummy): Delete declaration.
8897 * dummy-frame.h: Update comment.
8898 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8899 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8900 fix_call_dummy.
8901 * sh-tdep.c (sh_gdbarch_init): Ditto.
8902 * s390-tdep.c (s390_gdbarch_init): Ditto.
8903 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8904 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8906 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8907 * i386-tdep.c (i386_gdbarch_init): Ditto.
8908 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8909 * frv-tdep.c (frv_gdbarch_init): Ditto.
8910 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8911 * cris-tdep.c (cris_gdbarch_init): Ditto.
8912 * avr-tdep.c (avr_gdbarch_init): Ditto.
8913 * arm-tdep.c (arm_gdbarch_init): Ditto.
8914
8915 2003-03-31 J. Brobecker <brobecker@gnat.com>
8916
8917 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8918 (INIT_FRAME_AP): Likewise.
8919 (EXTRA_FRAME_INFO): Likewise.
8920
8921 2003-03-31 Andrew Cagney <cagney@redhat.com>
8922
8923 * gdbarch.sh: Include "symfile.h".
8924 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8925 * gdbarch.h, gdbarch.c: Re-generate.
8926 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8927 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8928 call_dummy_address, the default is at entry_point_address.
8929 * v850-tdep.c (v850_gdbarch_init): Ditto.
8930 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8931 * sh-tdep.c (sh_gdbarch_init): Ditto.
8932 * s390-tdep.c (s390_gdbarch_init): Ditto.
8933 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8934 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8935 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8936 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8937 * i386-tdep.c (i386_gdbarch_init): Ditto.
8938 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8939 * frv-tdep.c (frv_gdbarch_init): Ditto.
8940 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8941 * cris-tdep.c (cris_gdbarch_init): Ditto.
8942 * arm-tdep.c (arm_gdbarch_init): Ditto.
8943
8944 2003-03-31 Andrew Cagney <cagney@redhat.com>
8945
8946 * gdbarch.sh (CALL_DUMMY_P): Delete.
8947 * gdbarch.h, gdbarch.c: Re-generate.
8948 * inferior.h (CALL_DUMMY_P): Delete macro.
8949 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8950 * vax-tdep.c (vax_gdbarch_init): Update.
8951 * v850-tdep.c (v850_gdbarch_init): Update.
8952 * sparc-tdep.c (sparc_gdbarch_init): Update.
8953 * sh-tdep.c (sh_gdbarch_init): Update.
8954 * s390-tdep.c (s390_gdbarch_init): Update.
8955 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8956 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8957 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8958 * mips-tdep.c (mips_gdbarch_init): Update.
8959 * mcore-tdep.c (mcore_gdbarch_init): Update.
8960 * m68k-tdep.c (m68k_gdbarch_init): Update.
8961 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8962 * ia64-tdep.c (ia64_gdbarch_init): Update.
8963 * i386-tdep.c (i386_gdbarch_init): Update.
8964 * h8300-tdep.c (h8300_gdbarch_init): Update.
8965 * frv-tdep.c (frv_gdbarch_init): Update.
8966 * d10v-tdep.c (d10v_gdbarch_init): Update.
8967 * cris-tdep.c (cris_gdbarch_init): Update.
8968 * breakpoint.c (deprecated_frame_in_dummy): Update.
8969 * avr-tdep.c (avr_gdbarch_init): Update.
8970 * alpha-tdep.c (alpha_gdbarch_init): Update.
8971 * arm-tdep.c (arm_gdbarch_init): Update.
8972 * dummy-frame.c (dummy_frame_this_id): Update comments.
8973 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8974 * frame.c (legacy_get_prev_frame): Ditto.
8975 * valops.c (call_function_by_hand): Delete function.
8976 (hand_function_call): Rename to call_function_by_hand
8977
8978 2003-03-30 Andrew Cagney <cagney@redhat.com>
8979
8980 2002-11-10 Klee Dienes <kdienes@apple.com>
8981 * value.h (struct value): Update comment.
8982
8983 2003-03-30 Andrew Cagney <cagney@redhat.com>
8984
8985 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8986 D10V_FP_REGNUM.
8987 (d10v_gdbarch_init): Do not set fp_regnum.
8988
8989 * frame.c (get_frame_base): Force ID initialization.
8990 (get_prev_frame): Move computation of the frame ID from here ...
8991 (get_frame_id): ... to here.
8992 (legacy_get_prev_frame): Mark the frame ID as valid.
8993 * frame.h (struct frame_info): Add field "id_p".
8994
8995 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8996
8997 * i386-tdep.c (i386_store_struct_return): Removed.
8998 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8999
9000 2003-03-30 Andrew Cagney <cagney@redhat.com>
9001
9002 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9003 * gdbarch.h, gdbarch.c: Regenerate.
9004 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9005 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9006 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9007 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9008 * i386-tdep.c (i386_gdbarch_init): Ditto.
9009 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9010 * cris-tdep.c (cris_gdbarch_init): Ditto.
9011 * vax-tdep.c (vax_gdbarch_init): Ditto.
9012 * s390-tdep.c (s390_gdbarch_init): Ditto.
9013 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9014 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9015 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9016 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9017 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9018 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9019 * sparc-tdep.c (sparc_gdbarch_init): Update.
9020 * sh-tdep.c (sh_gdbarch_init): Update.
9021 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9022 * mips-tdep.c (mips_gdbarch_init): Update.
9023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9024 * ia64-tdep.c (ia64_gdbarch_init): Update.
9025 * frv-tdep.c (frv_gdbarch_init): Update.
9026 * avr-tdep.c (avr_gdbarch_init): Update.
9027 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9028 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9029 instead of when push_dummy_call is not available.
9030
9031 2003-03-30 Andrew Cagney <cagney@redhat.com>
9032
9033 * infttrace.c: Include "gdbthread.h".
9034 (parent_attach_all): Fix function signature.
9035 (call_ptrace): Update call.
9036 * Makefile.in (infttrace.o): Update dependencies.
9037
9038 2003-03-30 Andrew Cagney <cagney@redhat.com>
9039
9040 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9041 PUSH_RETURN_ADDRESS.
9042 * gdbarch.h, gdbarch.c: Regenerate.
9043 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9044 * x86-64-tdep.c (x86_64_init_abi): Update.
9045 * v850-tdep.c (v850_gdbarch_init): Update.
9046 * sparc-tdep.c (sparc_gdbarch_init): Update.
9047 * sh-tdep.c (sh_gdbarch_init): Update.
9048 * s390-tdep.c (s390_gdbarch_init): Update.
9049 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9050 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9051 * mips-tdep.c (mips_gdbarch_init): Update.
9052 * mcore-tdep.c (mcore_gdbarch_init): Update.
9053 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9054 * ia64-tdep.c (ia64_gdbarch_init): Update.
9055 * i386-tdep.c (i386_gdbarch_init): Update.
9056 * h8300-tdep.c (h8300_gdbarch_init): Update.
9057 * frv-tdep.c (frv_gdbarch_init): Update.
9058 * cris-tdep.c (cris_gdbarch_init): Update.
9059 * avr-tdep.c (avr_gdbarch_init): Update.
9060 * arm-tdep.c (arm_gdbarch_init): Update.
9061 * valops.c (hand_function_call): Update.
9062
9063 2003-03-29 Andrew Cagney <cagney@redhat.com>
9064
9065 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9066 sizeof_call_dummy_words.
9067 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9068 define.
9069 * gdbarch.h: Regenerate.
9070
9071 2003-03-29 Andrew Cagney <cagney@redhat.com>
9072
9073 * infttrace.h: New file.
9074 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9075 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9076 (hpread_read_doc_function_type): Detect an initialized type1.
9077 (hpread_quick_traverse): Initialize mod_name_string.
9078 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9079 (som_solib_get_solib_by_pc): Declare.
9080 (so_lib_thread_start_addr): Declare.
9081 (no_shared_libraries): Declare.
9082 * somread.c (init_import_symbols): Make static. Add forward
9083 declaration.
9084 * config/pa/nm-hppah.h: Include "infttrace.h" for
9085 parent_attach_all.
9086 (hppa_insert_hw_watchpoint): Declare.
9087 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9088 * hppah-nat.c: Include "gdb_string.h".
9089 (parent_attach_all): Delete extern declaration, moved to
9090 "infttrace.h".
9091 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9092 int.
9093 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9094 * Makefile.in (infttrace_h): Define.
9095 (hpread.o): Update dependencies.
9096 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9097 * hppa-hpux-tdep.c: Include "gdb_string.h".
9098 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9099 * infrun.c (handle_inferior_event): Always initialize
9100 stepped_after_stopped_by_watchpoint. Add default and remove
9101 fallthrough in switch statement.
9102 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9103 parameter to int.
9104 (hppa_remove_hw_watchpoint): Ditto.
9105
9106 2003-03-29 Andrew Cagney <cagney@redhat.com>
9107
9108 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9109 offset.
9110
9111 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9112
9113 * arm-tdep.c (arm_push_arguments): Delete.
9114 (struct stack_item): New type.
9115 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9116 (arm_store_struct_return): Delte.
9117 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9118 arm_push_arguments or arm_store_struct_return.
9119
9120 2003-03-28 Andrew Cagney <cagney@redhat.com>
9121
9122 * Makefile.in (d10v-tdep.o): Update dependencies.
9123 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9124 * d10v-tdep.c: Include "remote.h".
9125 (target_resume_hook): Delete extern declaration.
9126 (target_wait_loop_hook): Ditto.
9127 (tdisassemble_command): Eliminate assignment in "if" conditional.
9128 (d10v_ts2_register_sim_regno): Eliminate call to
9129 legacy_register_sim_regno.
9130 (d10v_ts3_register_sim_regno): Ditto.
9131
9132 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9133
9134 * thread.c: Reindented.
9135 * lin-lwp.c: Ditto.
9136 * linux-proc.c: Ditto.
9137
9138 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9139
9140 * MAINTAINERS (write after approval): Add myself.
9141
9142 2003-03-27 Theodore A. Roth <troth@openavr.org>
9143
9144 * objc-exp.y: Add missing semi-colons.
9145
9146 2003-03-27 Andrew Cagney <cagney@redhat.com>
9147
9148 * regcache.c (write_sp): Delete function and references.
9149 * inferior.h (write_sp): Delete declaration.
9150 * valops.c (hand_function_call): Replace write_sp with
9151 TARGET_WRITE_SP.
9152 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9153 (sparc_pop_frame): Ditto.
9154
9155 2003-03-27 Andrew Cagney <cagney@redhat.com>
9156
9157 * NEWS: Mention removal of support for hppa*-*-bsd* and
9158 hppa*-*-osf* natives, and hppa*-*-pro* target.
9159 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9160 * config/pa/xm-pa.h: Obsolete file.
9161 * config/pa/xm-hppab.h: Obsolete file.
9162 * config/pa/nm-hppab.h: Obsolete file.
9163 * config/pa/tm-hppab.h: Obsolete file.
9164 * config/pa/tm-hppao.h: Obsolete file.
9165 * config/pa/nm-hppao.h: Obsolete file.
9166 * config/pa/tm-pro.h: Obsolete file.
9167 * config/pa/hppaosf.mt: Obsolete file.
9168 * config/pa/hppaosf.mh: Obsolete file.
9169 * config/pa/hppapro.mt: Obsolete file.
9170 * config/pa/hppabsd.mt: Obsolete file.
9171 * config/pa/hppabsd.mh: Obsolete file.
9172 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9173 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9174 hppa*-*-osf*.
9175
9176 2003-03-27 Andrew Cagney <cagney@redhat.com>
9177
9178 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9179 push_arguments. Don't set push_return_address or write_sp.
9180 (d10v_push_dummy_call): Replace d10v_push_arguments.
9181 (d10v_push_return_address, d10v_write_sp): Delete function,
9182 handled by push_dummy_call.
9183
9184 2003-03-26 Andrew Cagney <cagney@redhat.com>
9185
9186 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9187 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9188 regcache and dummy_addr parameters.
9189 * gdbarch.h, gdbarch.c: Re-generate.
9190 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9191 available; assume it will handle stack alignment and return
9192 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9193 legacy_push_arguments.
9194 (legacy_push_arguments): Rename default_push_arguments.
9195 * value.h (legacy_push_arguments): Rename default_push_arguments.
9196 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9197 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9198 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9199 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9200 * config/i386/tm-symmetry.h: Update.
9201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9202 * x86-64-tdep.c (x86_64_init_abi): Update.
9203 * v850-tdep.c (v850_gdbarch_init): Update.
9204 * sparc-tdep.c (sparc_gdbarch_init): Update.
9205 * sh-tdep.c (sh_gdbarch_init): Update.
9206 * s390-tdep.c (s390_gdbarch_init): Update.
9207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9208 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9209 * mips-tdep.c (mips_gdbarch_init): Update.
9210 * mcore-tdep.c (mcore_gdbarch_init): Update.
9211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9212 * ia64-tdep.c (ia64_gdbarch_init): Update.
9213 * i386-tdep.c (i386_gdbarch_init): Update.
9214 * hppa-tdep.c (hppa_gdbarch_init): Update.
9215 * h8300-tdep.c (h8300_gdbarch_init): Update.
9216 * frv-tdep.c (frv_gdbarch_init): Update.
9217 * d10v-tdep.c (d10v_gdbarch_init): Update.
9218 * cris-tdep.c (cris_gdbarch_init): Update.
9219 * avr-tdep.c (avr_gdbarch_init): Update.
9220 * arm-tdep.c (arm_gdbarch_init): Update.
9221 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9222 * alpha-tdep.c (alpha_gdbarch_init): Update.
9223
9224 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9225
9226 * signals/signals.c (do_target_signal_to_host): Correct realtime
9227 signal range test.
9228
9229 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9230
9231 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9232 (struct sal_chain, map_catch_names): Remove.
9233 (catch_exception_command_1): Don't call
9234 handle_gnu_4_16_catch_command.
9235
9236 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9237
9238 From Mark Dettinger <dettinge@de.ibm.com>:
9239 * dwarf2cfi.c (read_2u): Increment pointer by two.
9240
9241 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9242
9243 * signals/signals.c: Fix typos in last change.
9244
9245 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9246
9247 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9248 not already defined. Use __SIGRTMIN if available.
9249 (target_signal_from_host): Remove SIGRTMIN block.
9250 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9251 the signal is within the realtime range.
9252
9253 2003-03-25 Adam Fedor <fedor@gnu.org>
9254
9255 * Makefile.in (infrun.o): Add $(language_h)
9256 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9257 for language specific trampolines.
9258 * language.h (struct language_defn): Add skip_trampoline.
9259 (skip_language_trampoline): Declare.
9260 * language.c (unk_lang_trampoline, skip_language_trampoline):
9261 New functions.
9262 (unknown_language_defn, auto_language_defn, local_language_defn):
9263 Add ukn_lang_trampoline.
9264 * ada-lang.c (ada_language_defn): Add NULL for language
9265 specific skip_trampoline.
9266 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9267 scm-lang.c: Likewise.
9268 * objc-lang.c (objc_skip_trampoline): New function.
9269 (objc_language_defn): Add objc_skip_trampoline.
9270
9271 2003-03-25 Andrew Cagney <cagney@redhat.com>
9272
9273 * frame.c (get_prev_frame): Delay validating a frame's ID -
9274 non-NULL, didn't go backwards - until an attempt to unwind it to
9275 the previous frame.
9276
9277 2003-03-25 Andrew Cagney <cagney@redhat.com>
9278
9279 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9280 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9281 * gdbarch.h, gdbarch.c: Re-generate.
9282 * config/sparc/tm-sparc.h
9283 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9284 * sparc-tdep.c (sparc_gdbarch_init): Set
9285 deprecated_extra_stack_alignment_needed.
9286 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9287 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9288 extra_stack_alignment_needed.
9289 * v850-tdep.c (v850_gdbarch_init): Ditto.
9290 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9291 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9292 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9293 * cris-tdep.c (cris_gdbarch_init): Ditto.
9294 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9296
9297 2003-03-25 Andrew Cagney <cagney@redhat.com>
9298
9299 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9300 STORE_STRUCT_RETURN.
9301 * gdbarch.h, gdbarch.c: Regenerate.
9302 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9303 (d10v_push_arguments): Set the struct return register.
9304 (d10v_gdbarch_init): Update.
9305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9306 * x86-64-tdep.c (x86_64_init_abi): Update.
9307 * vax-tdep.c (vax_gdbarch_init): Update.
9308 * v850-tdep.c (v850_gdbarch_init): Update.
9309 * sparc-tdep.c (sparc_gdbarch_init): Update.
9310 * sh-tdep.c (sh_gdbarch_init): Update.
9311 * s390-tdep.c (s390_gdbarch_init): Update.
9312 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9313 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9314 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9315 * mips-tdep.c (mips_gdbarch_init): Update.
9316 * mcore-tdep.c (mcore_gdbarch_init): Update.
9317 * m68k-tdep.c (m68k_gdbarch_init): Update.
9318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9319 * ia64-tdep.c (ia64_gdbarch_init): Update.
9320 * i386-tdep.c (i386_gdbarch_init): Update.
9321 * hppa-tdep.c (hppa_gdbarch_init): Update.
9322 * h8300-tdep.c (h8300_gdbarch_init): Update.
9323 * frv-tdep.c (frv_gdbarch_init): Update.
9324 * cris-tdep.c (cris_gdbarch_init): Update.
9325 * avr-tdep.c (avr_gdbarch_init): Update.
9326 * arm-tdep.c (arm_gdbarch_init): Update.
9327 * alpha-tdep.c (alpha_gdbarch_init): Update.
9328
9329 2003-03-25 Andrew Cagney <cagney@redhat.com>
9330
9331 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9332 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9333 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9334 * gdbarch.h, gdbarch.c: Regenerate.
9335 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9336 call_dummy_stack_adjust_p.
9337 * vax-tdep.c (vax_gdbarch_init): Ditto.
9338 * v850-tdep.c (v850_gdbarch_init): Ditto.
9339 * sh-tdep.c (sh_gdbarch_init): Ditto.
9340 * s390-tdep.c (s390_gdbarch_init): Ditto.
9341 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9342 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9343 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9344 * mips-tdep.c (mips_gdbarch_init): Ditto.
9345 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9346 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9348 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9349 * i386-tdep.c (i386_gdbarch_init): Ditto.
9350 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9351 * frv-tdep.c (frv_gdbarch_init): Ditto.
9352 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9353 * cris-tdep.c (cris_gdbarch_init): Ditto.
9354 * avr-tdep.c (avr_gdbarch_init): Ditto.
9355 * arm-tdep.c (arm_gdbarch_init): Ditto.
9356 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9357 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9358 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9359 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9360 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9361 call_dummy_stack_adjust_p.
9362 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9363 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9364 * sparc-tdep.c (sparc32_push_arguments): Update.
9365 * valops.c (hand_function_call): Update.
9366
9367 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9368
9369 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9370 set_gdbarch_char_signed.
9371
9372 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9373
9374 PR cli/548
9375 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9376
9377 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9378
9379 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9380 (_initialize_arm_tdep): Don't set tm_print_insn.
9381
9382 2003-03-24 Adam Fedor <fedor@gnu.org>
9383
9384 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9385 * objc-lang.h: Add multiple inclusion protection.
9386 (start_msglist, add_msglist, end_msglist): Additional declarations.
9387
9388 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9389
9390 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9391 value was renamed to ARM_FLOAT_SOFT_FPA.
9392
9393 2003-03-23 Andrew Cagney <cagney@redhat.com>
9394
9395 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9396 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9397 * gdbarch.h, gdbarch.c: Regenerate.
9398 * valops.c (hand_function_call): Update.
9399 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9400 * frame.c (legacy_saved_regs_this_id): Update.
9401 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9402 * dummy-frame.h: Update.
9403 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9404 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9405 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9406 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9407 * config/m68k/tm-sun3.h: Update.
9408 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9409 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9410 * x86-64-tdep.c (x86_64_init_abi): Update.
9411 * vax-tdep.c (vax_gdbarch_init): Update.
9412 * v850-tdep.c (v850_gdbarch_init): Update.
9413 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9414 * sh-tdep.c (sh_gdbarch_init): Update.
9415 * s390-tdep.c (s390_gdbarch_init): Update.
9416 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9417 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9418 (frame_get_saved_regs): Update.
9419 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9420 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9421 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9422 * mips-tdep.c (mips_gdbarch_init): Update.
9423 * mcore-tdep.c (mcore_gdbarch_init): Update.
9424 * m68k-tdep.c (m68k_gdbarch_init): Update.
9425 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9426 * ia64-tdep.c (ia64_gdbarch_init): Update.
9427 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9428 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9429 (i386_interix_back_one_frame): Update.
9430 * hppa-tdep.c (hppa_gdbarch_init): Update.
9431 (hppa_init_extra_frame_info): Update.
9432 * h8300-tdep.c (h8300_gdbarch_init): Update.
9433 * frv-tdep.c (frv_gdbarch_init): Update.
9434 * cris-tdep.c (cris_gdbarch_init): Update.
9435 * avr-tdep.c (avr_gdbarch_init): Update.
9436 * arm-tdep.c (arm_gdbarch_init): Update.
9437 * alpha-tdep.c (alpha_gdbarch_init): Update.
9438
9439 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9440
9441 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9442 (arm_get_fp_model): Declare.
9443 * arm-tdep.c (fp_model_strings): New string array.
9444 (arm_fp_model, current_fp_model): New variables.
9445 (arm_get_fp_model): New function.
9446 (arm_set_fp): New function.
9447 (set_fp_model_sfunc): New function.
9448 (show_fp_model): New function.
9449 (_initialize_arm_tdep): Add new command to set/show the FPU.
9450 (arm_extract_return_value): Use arm_get_fp_model.
9451 (arm_store_return_value): Likewise.
9452 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9453 to initialize the floating-point data types.
9454 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9455 model is FPA.
9456
9457 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9458
9459 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9460 the current setting of each value.
9461 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9462 new_set and new_show. Use add_setshow_cmd_full and
9463 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9464 commands and add new version as subcommands of "set/show arm".
9465
9466 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9467
9468 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9469 (set_arm_command, show_arm_command): New functions.
9470 (_initialize_arm_tdep): Add them.
9471 (num_disassembly_options): Renamed from num_flavor_options.
9472 (valid_disassembly_styles): Renamed from valid_flavors.
9473 (disassembly_style): Renamed from disassembly_flavor.
9474 (set_disassembly_style_sfunc): Renamed from
9475 set_disassembly_flavor_sfunc.
9476 (set_disassembly_style): Renamed from set_disassembly_flavor.
9477 (arm_othernames): Updated.
9478 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9479 command. Add "set/show arm disassembly" commands. Deprecate
9480 "othernames" command.
9481
9482 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9483
9484 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9485 (arm-tdep.o): Depend on elf_arm_h.
9486
9487 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9488
9489 * Makefile.in (coff_internal_h): Define.
9490 (arm-tdep.o): Update dependencies.
9491
9492 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9493
9494 * arm-tdep.c (prologue_cache): Delete.
9495 (check_prologue_cache, save_prologue_cache): Delete.
9496 (arm_scan_prologue): Don't check or update the prologue_cache.
9497 (arm_gdb_arch_init): Don't initialize it.
9498 (_initialize_arm_tdep): Likewise.
9499
9500 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9501
9502 * MAINTAINERS (tui): Maintainer of tui code.
9503
9504 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9505
9506 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9507 (i386-cygwin-tdep.o): Add dependencies.
9508 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9509 * i386-cygwin-tdep.c: New file.
9510 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9511 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9512
9513 2003-03-20 Andrew Cagney <cagney@redhat.com>
9514
9515 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9516 (handle_inferior_event): Remove code calling
9517 DYNAMIC_TRAMPOLINE_NEXTPC.
9518
9519 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9520 already has a full path.
9521
9522 * main.c (gdb_main): Return 1.
9523 (captured_main): Call error to report an invalid interpreter.
9524
9525 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9526 * alpha-osf1-tdep.c: Include "gdb_string.h".
9527
9528 2003-03-19 J. Brobecker <brobecker@gnat.com>
9529
9530 Continuing work to convert the hppa targets to multiarch partial.
9531
9532 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9533 method, now that hppa_push_dummy_frame has a conformant prototype.
9534 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9535 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9536 for the switch to multiarch partial.
9537
9538 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9539
9540 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9541 when iss is issNull.
9542
9543 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9544
9545 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9546 NUM_REGS bounds check.
9547
9548 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9549
9550 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9551 * mips-tdep.c (gdb_assert.h): Include.
9552 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9553 (mips_register_name): Handle integer registers explicitly. Add
9554 bounds checking.
9555 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9556 (mips_lsi33k_reg_names): Don't list integer registers; they're
9557 handled by mips_register_name() now.
9558 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9559 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9560 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9561 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9562 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9563
9564 2003-03-18 Andrew Cagney <cagney@redhat.com>
9565
9566 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9567 a void pointer.
9568 * gdbtypes.h (print_scalar_formatted): Update declaration.
9569 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9570
9571 2003-03-18 J. Brobecker <brobecker@gnat.com>
9572
9573 * infrun.c (observer.h): Add #include.
9574 (normal_stop): Add call to observer_notify_normal_stop.
9575 * Makefile.in (infrun.o): Add dependency on observer.h.
9576
9577 2003-03-18 J. Brobecker <brobecker@gnat.com>
9578
9579 Continuing work to convert the hppa targets to multiarch partial.
9580 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9581 parameter. Reformat comment.
9582 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9583 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9584 to match new profile.
9585
9586 2003-03-18 J. Brobecker <brobecker@gnat.com>
9587
9588 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9589 appear to be working in any case.
9590
9591 2003-03-18 J. Brobecker <brobecker@gnat.com>
9592
9593 * observer.c (observer_test_first_observer): New static variable.
9594 (observer_test_second_observer): Likewise.
9595 (observer_test_third_observer): Likewise.
9596 (observer_test_first_notification_function): New static function.
9597 (observer_test_second_notification_function): Likewise.
9598 (observer_test_third_notification_function): Likewise.
9599
9600 2003-03-17 J. Brobecker <brobecker@gnat.com>
9601
9602 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9603 * somsolib.c (gdb_assert.h): Likewise.
9604 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9605 (somsolib.o): Likewise.
9606
9607 2003-03-17 Andrew Cagney <cagney@redhat.com>
9608
9609 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9610 BFD. Simplify setting of di.endian.
9611
9612 2003-03-17 Andrew Cagney <cagney@redhat.com>
9613
9614 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9615 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9616
9617 From Elena Zannoni <ezannoni@redhat.com>
9618 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9619 vector and floating-point parameters.
9620 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9621 convention.
9622 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9623
9624 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9625
9626 * MAINTAINERS: Remove my name from several maintainership roles.
9627
9628 2003-03-17 Andrew Cagney <cagney@redhat.com>
9629
9630 Fix frame off-by-one bug.
9631 * frame-unwind.h (frame_this_id_ftype): Replace
9632 frame_unwind_id_ftype.
9633 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9634 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9635 with "prev_register".
9636 * frame-unwind.c (frame_unwind_find_by_pc): Return
9637 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9638 comment.
9639 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9640 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9641 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9642 (dummy_frame_unwind): Update.
9643 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9644 sentinel_frame_register_unwind.
9645 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9646 (sentinel_frame_unwinder): Update.
9647 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9648 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9649 * frame.c (create_sentinel_frame): Update. Initialize
9650 "prologue_cache" instead of "unwind_cache".
9651 (frame_register_unwind): Call this frame's prev_register with the
9652 next frame and this frame's prologue cache.
9653 (get_prev_frame): Simplify. Always call prev frame's this_id with
9654 this frame and prev frame's prologue cache. Document that this
9655 call is shifted one to the left when compared to the
9656 frame_register_unwind call.
9657 (legacy_saved_regs_prev_register): Replace
9658 frame_saved_regs_register_unwind.
9659 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9660 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9661 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9662 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9663 (d10v_frame_unwind): Update.
9664 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9665 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9666 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9667 "saved_regs" with "this_saved_regs".
9668
9669 2003-03-16 Andrew Cagney <cagney@redhat.com>
9670
9671 * frame.c (frame_pop): Don't call target_store_registers. Fix
9672 problem reported by Mark Kettenis.
9673
9674 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9675
9676 * i386-tdep.c (i386_register_type): Renamed from
9677 i386_register_virtual_type. Adjust function signature.
9678 (i386_gdbarch_init): Set register_type instead of
9679 deprecated_max_register_raw_size,
9680 deprecated_max_register_virtual_size and register_virtual_type.
9681
9682 2003-03-14 Andrew Cagney <cagney@redhat.com>
9683
9684 * frame.c (get_prev_frame): When a legacy frame, always call
9685 legacy_get_prev_frame. Simplify unwind code using assumption that
9686 the unwinder is new.
9687 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9688 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9689 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9690
9691 2003-03-14 Andrew Cagney <cagney@redhat.com>
9692
9693 * frame.c (get_saved_register): Delete function.
9694 * frame.h (get_saved_register): Delete declaration.
9695 * xstormy16-tdep.c: Update comment.
9696 * regcache.h: Update comments.
9697 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9698 get_saved_register and extract_address, use
9699 frame_read_unsigned_register.
9700 (sparc_frame_saved_pc): Ditto.
9701 (sparc_get_saved_register): Instead of get_saved_register, use
9702 frame_register.
9703 (sparc_pop_frame): Ditto.
9704 * findvar.c: Update comments.
9705 (value_of_register): Call frame_register instead of
9706 get_saved_register.
9707 (value_from_register): Ditto.
9708 * config/sparc/tm-sparc.h: Update comment.
9709 * breakpoint.c: Update comment.
9710
9711 2003-03-14 Andrew Cagney <cagney@redhat.com>
9712
9713 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9714 GET_SAVED_REGISTER.
9715 * gdbarch.h, gdbarch.c: Re-generate.
9716 * frame.h: Update comments.
9717 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9718 * x86-64-tdep.c (x86_64_init_abi): Update.
9719 * sparc-tdep.c (sparc_gdbarch_init): Update.
9720 * sh-tdep.c (sh_gdbarch_init): Update.
9721 * mips-tdep.c (mips_gdbarch_init): Update.
9722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9723 * cris-tdep.c (cris_gdbarch_init): Update.
9724 * ia64-tdep.c (ia64_gdbarch_init): Update.
9725 * frame.c (frame_register): Update.
9726 (get_saved_register): Update.
9727 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9728
9729 2003-03-13 Andrew Cagney <cagney@redhat.com>
9730
9731 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9732 * gdbarch.h, gdbarch.c: Regenerate.
9733 * valops.c (hand_function_call): Update comment.
9734 * stack.c (return_command): Update comment.
9735 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9736 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9737 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9738 * x86-64-tdep.c (x86_64_init_abi): Update.
9739 * vax-tdep.c (vax_gdbarch_init): Update.
9740 * v850-tdep.c (v850_gdbarch_init): Update.
9741 * sparc-tdep.c (sparc_gdbarch_init): Update.
9742 * sh-tdep.c (sh_gdbarch_init): Update.
9743 * s390-tdep.c (s390_gdbarch_init): Update.
9744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9745 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9746 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9747 * mips-tdep.c (mips_gdbarch_init): Update.
9748 * mcore-tdep.c (mcore_gdbarch_init): Update.
9749 * m68k-tdep.c (m68k_gdbarch_init): Update.
9750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9751 * ia64-tdep.c (ia64_gdbarch_init): Update.
9752 * i386-tdep.c (i386_gdbarch_init): Update.
9753 * hppa-tdep.c (hppa_gdbarch_init): Update.
9754 * h8300-tdep.c (h8300_gdbarch_init): Update.
9755 * frv-tdep.c (frv_gdbarch_init): Update.
9756 * cris-tdep.c (cris_gdbarch_init): Update.
9757 * avr-tdep.c (avr_gdbarch_init): Update.
9758 * arm-tdep.c (arm_gdbarch_init): Update.
9759 * alpha-tdep.c (alpha_gdbarch_init): Update.
9760
9761 2003-03-13 Andrew Cagney <cagney@redhat.com>
9762
9763 * frame.c (legacy_frame_p): New function.
9764 (get_prev_frame): Use legacy_frame_p.
9765 * frame.h (legacy_frame_p): Declare.
9766
9767 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9768
9769 * MAINTAINERS (write after approval): Alphabetically
9770 listing corrected.
9771
9772 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9773
9774 * MAINTAINERS (write after approval): Add myself.
9775
9776 2003-03-12 Andrew Cagney <cagney@redhat.com>
9777
9778 * frame.c (get_prev_frame): Rename the frame parameter to
9779 "this_frame".
9780 (get_next_frame, legacy_get_prev_frame): Ditto.
9781
9782 2003-03-12 Andrew Cagney <cagney@redhat.com>
9783
9784 * frame.c (get_current_frame): Check target_has_registers before
9785 checking target_has_stack.
9786 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9787 instead of deprecated_selected_frame.
9788 * findvar.c (value_of_register): Pass "frame", not
9789 deprecated_selected_frame, to value_of_builtin_reg.
9790
9791 2003-03-12 Andrew Cagney <cagney@redhat.com>
9792
9793 * regcache.c (regcache_cooked_write_signed): New function.
9794 (regcache_cooked_write_unsigned): New function.
9795 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9796 (regcache_cooked_read_signed): Fix regnum in range assertion.
9797 * regcache.h (regcache_cooked_write_signed): Declare.
9798 (regcache_cooked_write_unsigned): Declare.
9799
9800 2003-03-12 Andrew Cagney <cagney@redhat.com>
9801
9802 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9803 * gdbarch.h, gdbarch.c: Re-generate.
9804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9805 * x86-64-tdep.h: Update.
9806 * x86-64-tdep.c (x86_64_init_abi): Update.
9807 * v850-tdep.c (v850_gdbarch_init): Update.
9808 * sparc-tdep.c (sparc_gdbarch_init): Update.
9809 * sh-tdep.c (sh_gdbarch_init): Update.
9810 * s390-tdep.c (s390_gdbarch_init): Update.
9811 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9812 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9813 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9814 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9815 * mips-tdep.c (mips_gdbarch_init): Update.
9816 * mcore-tdep.c (mcore_gdbarch_init): Update.
9817 * m68k-tdep.c (m68k_gdbarch_init): Update.
9818 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9819 * ia64-tdep.c (ia64_gdbarch_init): Update.
9820 * i386-tdep.c (i386_gdbarch_init): Update.
9821 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9822 * hppa-tdep.c (hppa_gdbarch_init): Update.
9823 * h8300-tdep.c (h8300_gdbarch_init): Update.
9824 * frv-tdep.c (frv_gdbarch_init): Update.
9825 * cris-tdep.c (cris_gdbarch_init): Update.
9826 * avr-tdep.c (avr_gdbarch_init): Update.
9827 * arm-tdep.c (arm_gdbarch_init): Update.
9828 * alpha-tdep.c (alpha_gdbarch_init): Update.
9829 * sh-tdep.c (sh_init_extra_frame_info): Update.
9830 (sh64_init_extra_frame_info): Update.
9831 * ns32knbsd-nat.c (frame_num_args): Update.
9832 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9833 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9834 (xstormy16_frame_chain_valid): Update.
9835 * vax-tdep.c (vax_saved_pc_after_call): Update.
9836 * v850-tdep.c (v850_frame_chain): Update.
9837 (v850_pop_frame): Update.
9838 (v850_init_extra_frame_info): Update.
9839 * sparc-tdep.c (setup_arbitrary_frame): Update.
9840 * ns32k-tdep.c (umax_frame_num_args): Update.
9841 * s390-tdep.c (s390_pop_frame_regular): Update.
9842 * mn10300-tdep.c (mn10300_frame_chain): Update.
9843 (mn10300_pop_frame_regular): Update.
9844 (mn10300_init_extra_frame_info): Update.
9845 * mips-tdep.c (mips_init_frame_pc_first): Update.
9846 (mips_frame_chain): Update.
9847 (mips_pop_frame): Update.
9848 * mcore-tdep.c (mcore_frame_chain): Update.
9849 (mcore_pop_frame): Update.
9850 (mcore_init_extra_frame_info): Update.
9851 * arch-utils.c (init_frame_pc_default): Update.
9852 * m68k-tdep.c (isi_frame_num_args): Update.
9853 (delta68_frame_num_args): Update.
9854 (news_frame_num_args): Update.
9855 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9856 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9857 (alpha_frame_chain): Update.
9858 (alpha_pop_frame): Update.
9859 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9860 (hppa_init_extra_frame_info): Update.
9861 (hppa_frame_chain): Update.
9862 (hppa_frame_chain_valid): Update.
9863 * cris-tdep.c (cris_init_extra_frame_info): Update.
9864 * avr-tdep.c (avr_init_extra_frame_info): Update.
9865 * arm-tdep.c (arm_frame_chain_valid): Update.
9866 (arm_init_extra_frame_info): Update.
9867 (arm_pop_frame): Update.
9868 * frame.c (frame_pc_unwind): Update.
9869 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9870 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9871 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9872 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9873 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9874 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9875
9876 2003-03-12 Andrew Cagney <cagney@redhat.com>
9877
9878 Eliminate the need for POP_FRAME.
9879 * frame.c (do_frame_unwind_register): New function.
9880 (frame_pop): When no POP_FRAME, pop the frame using register
9881 unwind and a scratch regcache.
9882 (frame_saved_regs_pop): Delete function.
9883 (trad_frame_unwinder): Update.
9884 * d10v-tdep.c (d10v_frame_pop): Delete function.
9885 (d10v_frame_unwind): Update.
9886 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9887 (sentinel_frame_unwinder): Update.
9888 * dummy-frame.c (dummy_frame_pop): Delete function.
9889 (dummy_frame_unwind): Update.
9890 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9891 (struct frame_unwind): Update.
9892
9893 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9894
9895 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9896 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9897 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9898 Do range checks on register number obtained from debugging info.
9899 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9900 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9901 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9902 mapping function.
9903 (do_fp_register_row): Fix typo which caused double type to be
9904 used when attempting to unpack a float.
9905
9906 2003-03-11 J. Brobecker <brobecker@gnat.com>
9907
9908 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9909
9910 2003-03-11 Andrew Cagney <cagney@redhat.com>
9911
9912 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9913 frame. Problem found by Corinna Vinschen.
9914
9915 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9916
9917 * doublest.c (floatformat_from_length): Accept also
9918 the real size of 'long double' type.
9919
9920 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9921
9922 From Klee Dienes <kdienes@apple.com>:
9923 * breakpoint.c (bpstat_copy): Copy the command lines as well
9924 as the old value, to match what is freed in bpstat_clear.
9925
9926 2003-03-10 David Carlton <carlton@math.stanford.edu>
9927
9928 * minsyms.c (add_minsym_to_hash_table): Replace
9929 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9930 (compare_minimal_symbols, compact_minimal_symbols)
9931 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9932 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9933 of DEPRECATED_SYMBOL_MATCHES_NAME.
9934 (lookup_minimal_symbol_solib_trampoline): Ditto.
9935
9936 2003-03-10 Andrew Cagney <cagney@redhat.com>
9937
9938 * regcache.h (regcache_cooked_read_ftype): Define.
9939 (regcache_save, regcache_restore): Add a cooked_read parameter.
9940 * regcache.c (regcache_save, regcache_restore): Update.
9941 (do_cooked_read): New function.
9942 (regcache_cpy): Pass do_cooked_read to regcache_save and
9943 regcache_restore.
9944
9945 2003-03-10 Andrew Cagney <cagney@redhat.com>
9946
9947 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9948 * gdbarch.h, gdbarch.c: Re-generate.
9949 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9950 * x86-64-tdep.h: Update.
9951 * x86-64-tdep.c (x86_64_init_abi): Update.
9952 * v850-tdep.c (v850_gdbarch_init): Update.
9953 * sparc-tdep.c (sparc_gdbarch_init): Update.
9954 * sh-tdep.c (sh_gdbarch_init): Update.
9955 * s390-tdep.c (s390_gdbarch_init): Update.
9956 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9957 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9958 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9959 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9960 * mips-tdep.c (mips_gdbarch_init): Update.
9961 * mcore-tdep.c (mcore_gdbarch_init): Update.
9962 * m68k-tdep.c (m68k_gdbarch_init): Update.
9963 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9964 * ia64-tdep.c (ia64_gdbarch_init): Update.
9965 * i386-tdep.c (i386_gdbarch_init): Update.
9966 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9967 * hppa-tdep.c (hppa_gdbarch_init): Update.
9968 * h8300-tdep.c (h8300_gdbarch_init): Update.
9969 * frv-tdep.c (frv_gdbarch_init): Update.
9970 * cris-tdep.c (cris_gdbarch_init): Update.
9971 * avr-tdep.c (avr_gdbarch_init): Update.
9972 * arm-tdep.c (arm_gdbarch_init): Update.
9973 * alpha-tdep.c (alpha_gdbarch_init): Update.
9974 * sh-tdep.c (sh_init_extra_frame_info): Update.
9975 (sh64_init_extra_frame_info): Update.
9976 * ns32knbsd-nat.c (frame_num_args): Update.
9977 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9978 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9979 (xstormy16_frame_chain_valid): Update.
9980 * vax-tdep.c (vax_saved_pc_after_call): Update.
9981 * v850-tdep.c (v850_frame_chain): Update.
9982 (v850_pop_frame): Update.
9983 (v850_init_extra_frame_info): Update.
9984 * sparc-tdep.c (setup_arbitrary_frame): Update.
9985 * ns32k-tdep.c (umax_frame_num_args): Update.
9986 * s390-tdep.c (s390_pop_frame_regular): Update.
9987 * mn10300-tdep.c (mn10300_frame_chain): Update.
9988 (mn10300_pop_frame_regular): Update.
9989 (mn10300_init_extra_frame_info): Update.
9990 * mips-tdep.c (mips_init_frame_pc_first): Update.
9991 (mips_frame_chain): Update.
9992 (mips_pop_frame): Update.
9993 * mcore-tdep.c (mcore_frame_chain): Update.
9994 (mcore_pop_frame): Update.
9995 (mcore_init_extra_frame_info): Update.
9996 * arch-utils.c (init_frame_pc_default): Update.
9997 * m68k-tdep.c (isi_frame_num_args): Update.
9998 (delta68_frame_num_args): Update.
9999 (news_frame_num_args): Update.
10000 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10001 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10002 (alpha_frame_chain): Update.
10003 (alpha_pop_frame): Update.
10004 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10005 (hppa_init_extra_frame_info): Update.
10006 (hppa_frame_chain): Update.
10007 (hppa_frame_chain_valid): Update.
10008 * cris-tdep.c (cris_init_extra_frame_info): Update.
10009 * avr-tdep.c (avr_init_extra_frame_info): Update.
10010 * arm-tdep.c (arm_frame_chain_valid): Update.
10011 (arm_init_extra_frame_info): Update.
10012 (arm_pop_frame): Update.
10013 * frame.c (frame_pc_unwind): Update.
10014 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10015 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10016 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10017 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10018 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10019 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10020
10021 2003-03-10 Andrew Cagney <cagney@redhat.com>
10022
10023 * gdbarch.sh (gdbarch_unwind_pc): New method.
10024 * gdbarch.h, gdbarch.c: Regenerate.
10025 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10026 but use read_pc and FRAME_SAVED_PC as fall backs.
10027 (frame_saved_regs_pc_unwind): Delete function.
10028 (trad_frame_unwinder): Update.
10029 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10030 (struct frame_unwind): Update.
10031 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10032 (dummy_frame_unwind): Update.
10033 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10034 (sentinel_frame_unwinder): Update.
10035 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10036 (d10v_frame_unwind): Update.
10037 (d10v_unwind_pc): New function.
10038 (d10v_gdbarch_init): Set unwind_pc.
10039
10040 2003-03-10 Andrew Cagney <cagney@redhat.com>
10041
10042 * gdbarch.h: Re-generate.
10043
10044 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10045 PC.
10046 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10047 the PC register.
10048
10049 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10050
10051 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10052
10053 2003-03-08 Andrew Cagney <cagney@redhat.com>
10054
10055 * cli-out.c: Update copyright.
10056 (cli_out_data): Define typedef. Use instead of ui_out_data.
10057
10058 2003-03-08 Andrew Cagney <cagney@redhat.com>
10059
10060 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10061 the result.
10062
10063 2003-03-07 Andrew Cagney <cagney@redhat.com>
10064
10065 * gdbarch.sh: Don't generate two macro definitions when an
10066 undefined macro taking no arguments.
10067 * gdbarch.h: Regenerate.
10068
10069 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10070
10071 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10072 (x86_64_unwind_dummy_id): New functions.
10073 (x86_64_init_abi): Register these two new functions.
10074
10075 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10076
10077 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10078 (x86_64_skip_prologue): Move prologue detection to
10079 separate function.
10080 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10081
10082 2003-03-05 Andrew Cagney <cagney@redhat.com>
10083
10084 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10085 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10086 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10087 to use unwind_dummy_id when a dummy frame.
10088 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10089 predicate.
10090 * gdbarch.h, gdbarch.c: Regneerate.
10091
10092 2003-03-05 Andrew Cagney <cagney@redhat.com>
10093
10094 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10095 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10096 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10097 values.
10098
10099 2003-03-05 Andrew Cagney <cagney@redhat.com>
10100
10101 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10102 (struct d10v_unwind_cache): Delete field "frameless". Replace
10103 "next_addr" with "sp_offset". Add "r11_offset".
10104 (d10v_frame_unwind_cache): Update.
10105 (prologue_find_regs): Update. When "mv r11, sp", save the
10106 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10107 RN was saved in r11_offset.
10108
10109 2003-03-05 Andrew Cagney <cagney@redhat.com>
10110
10111 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10112 cached PC value in the next frame.
10113
10114 2003-03-05 Andrew Cagney <cagney@redhat.com>
10115
10116 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10117 "id_unwind_cache" with "id".
10118 (frame_id_unwind): Delete declaration.
10119 * frame.c (frame_id_unwind): Delete function.
10120 (get_prev_frame): Call the frame id unwind method directly. Store
10121 the returned next frame's ID value in NEXT_FRAME. Note that there
10122 is a problem with the wrong unwind ID being called with the wrong
10123 unwind cache.
10124
10125 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10126
10127 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10128
10129 2003-03-05 James Ingham <jingham@apple.com>
10130 Daniel Jacobowitz <drow@mvista.com>
10131
10132 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10133 (auto_cp_abi): New variable.
10134 (current_cp_abi, num_cp_abis): Make static.
10135 (CP_ABI_MAX): Define.
10136 (cp_abis): Turn into an array.
10137 (value_virtual_fn_field): Fix formatting.
10138 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10139 takes a pointer.
10140 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10141 (list_cp_abis, _initialize_cp_abi): New functions.
10142 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10143 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10144 switch_to_cp_abi. Update prototype for register_cp_abi.
10145 * Makefile.in (cp-abi.o): Update dependencies.
10146 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10147 instead of switch_to_cp_abi.
10148 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10149 register_cp_abi.
10150 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10151 register_cp_abi.
10152 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10153
10154 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10155
10156 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10157 * dwarf2loc.c: Include "regcache.h".
10158 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10159 register_size.
10160 * Makefile.in (dwarf2loc.o): Update dependencies.
10161
10162 2003-03-04 Theodore A. Roth <troth@openavr.org>
10163
10164 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10165 number of io registers reported by remote target is not a multiple of
10166 step.
10167
10168 2003-03-04 David Carlton <carlton@math.stanford.edu>
10169
10170 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10171 (lookup_symbol_aux_psymtabs): Update call to
10172 lookup_partial_symbol.
10173 (lookup_transparent_type, find_main_psymtab)
10174 (make_symbol_overload_list): Ditto.
10175
10176 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10177
10178 * MAINTAINERS (Write after approval): Update my email address.
10179
10180 2003-03-03 Andrew Cagney <cagney@redhat.com>
10181
10182 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10183 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10184 predicate. Replace MAX_REGISTER_RAW_SIZE.
10185 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10186 MAX_REGISTER_VIRTUAL_SIZE.
10187 * regcache.c (legacy_max_register_raw_size): New function.
10188 (legacy_max_register_virtual_size): New function.
10189 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10190 (MAX_REGISTER_RAW_SIZE): Define.
10191 (legacy_max_register_raw_size): Declare.
10192 (legacy_max_register_virtual_size): Declare.
10193 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10194 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10195 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10196 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10197 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10198 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10199 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10200 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10201 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10202 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10203 * vax-tdep.c (vax_gdbarch_init): Update.
10204 * v850-tdep.c (v850_gdbarch_init): Update.
10205 * sparc-tdep.c (sparc_gdbarch_init): Update.
10206 * sh-tdep.c (sh_gdbarch_init): Update.
10207 * s390-tdep.c (s390_gdbarch_init): Update.
10208 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10209 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10210 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10211 * mips-tdep.c (mips_gdbarch_init): Update.
10212 * mcore-tdep.c (mcore_gdbarch_init): Update.
10213 * m68k-tdep.c (m68k_gdbarch_init): Update.
10214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10215 * ia64-tdep.c (ia64_gdbarch_init): Update.
10216 * i386-tdep.c (i386_gdbarch_init): Update.
10217 * hppa-tdep.c (hppa_gdbarch_init): Update.
10218 * h8300-tdep.c (h8300_gdbarch_init): Update.
10219 * frv-tdep.c (frv_gdbarch_init): Update.
10220 * cris-tdep.c (cris_gdbarch_init): Update.
10221 * avr-tdep.c (avr_gdbarch_init): Update.
10222 * arm-tdep.c (arm_gdbarch_init): Update.
10223 * alpha-tdep.c (alpha_gdbarch_init): Update.
10224 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10225 max_register_raw_size or max_register_virtual_size.
10226
10227 2003-03-03 David Carlton <carlton@math.stanford.edu>
10228
10229 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10230 SYMBOL_MATCHES_NAME, add comment.
10231 (SYMBOL_MATCHES_NATURAL_NAME): New.
10232 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10233 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10234 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10235 * symtab.c (lookup_partial_symbol): Use
10236 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10237 unhelpful comment.
10238 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10239 SYMBOL_MATCHES_NAME.
10240 Fix for PR c++/33.
10241
10242 2003-03-03 David Carlton <carlton@math.stanford.edu>
10243
10244 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10245 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10246 by regexp matching against SYMBOL_NATURAL_NAME.
10247
10248 2003-03-03 David Carlton <carlton@math.stanford.edu>
10249
10250 * linespec.c (find_method): Extract code into collect_methods.
10251 (collect_methods): New.
10252
10253 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10254
10255 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10256 get_frame_base.
10257
10258 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10259 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10260
10261 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10262
10263 * arch-utils.c (generic_register_byte): Fix to use the loop index
10264 and not regnum when summing the size of all registers up to regnum.
10265
10266 2003-03-01 Andrew Cagney <cagney@redhat.com>
10267
10268 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10269 FRAME_INIT_SAVED_REGS.
10270 * gdbarch.h, gdbarch.c: Regenerate.
10271 * stack.c (frame_info): Update.
10272 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10273 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10274 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10275 * ns32k-tdep.c (ns32k_pop_frame): Update.
10276 * mips-tdep.c (mips_pop_frame): Update.
10277 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10278 * ia64-tdep.c (ia64_frame_chain): Update.
10279 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10280 (ia64_frameless_function_invocation): Update.
10281 (ia64_init_extra_frame_info): Update.
10282 (ia64_pop_frame_regular): Update.
10283 * frame.h (struct frame_info): Update comment.
10284 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10285 * frame.c (frame_saved_regs_register_unwind): Update.
10286 (frame_saved_regs_register_unwind): Update.
10287 (deprecated_generic_get_saved_register): Update.
10288 * cris-tdep.c: Update comment.
10289 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10290 Rename macro.
10291 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10292 * x86-64-tdep.c (x86_64_init_abi): Update.
10293 * vax-tdep.c (vax_gdbarch_init): Update.
10294 * v850-tdep.c (v850_gdbarch_init): Update.
10295 * sparc-tdep.c (sparc_gdbarch_init): Update.
10296 * sh-tdep.c (sh_gdbarch_init): Update.
10297 * s390-tdep.c (s390_gdbarch_init): Update.
10298 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10299 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10300 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10301 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10302 * mips-tdep.c (mips_gdbarch_init): Update.
10303 * mcore-tdep.c (mcore_gdbarch_init): Update.
10304 * m68k-tdep.c (m68k_gdbarch_init): Update.
10305 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10306 * ia64-tdep.c (ia64_gdbarch_init): Update.
10307 * i386-tdep.c (i386_gdbarch_init): Update.
10308 * frv-tdep.c (frv_gdbarch_init): Update.
10309 * avr-tdep.c (avr_gdbarch_init): Update.
10310 * arm-tdep.c (arm_gdbarch_init): Update.
10311 * alpha-tdep.c (alpha_gdbarch_init): Update.
10312
10313 2003-03-01 Andrew Cagney <cagney@redhat.com>
10314
10315 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10316 option enum and switch. When no windows, set the interpreter to
10317 INTERP_CONSOLE.
10318
10319 2003-03-01 Andrew Cagney <cagney@redhat.com>
10320
10321 * main.c (captured_main): Replace magic option characters with an
10322 enum.
10323
10324 2003-03-01 Andrew Cagney <cagney@redhat.com>
10325
10326 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10327 INIT_EXTRA_FRAME_INFO.
10328 * gdbarch.h, gdbarch.c: Regenerate.
10329 * arm-tdep.c: Update comments.
10330 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10331 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10332 * frame.h, avr-tdep.c: Ditto.
10333 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10334 (create_new_frame, legacy_get_prev_frame): Ditto.
10335 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10336 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10337 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10338 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10339 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10340 * v850-tdep.c (v850_gdbarch_init): Ditto.
10341 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10342 * sh-tdep.c (sh_gdbarch_init): Ditto.
10343 * s390-tdep.c (s390_gdbarch_init): Ditto.
10344 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10345 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10346 * mips-tdep.c (mips_gdbarch_init): Ditto.
10347 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10349 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10350 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10351 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10352 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10353 * frv-tdep.c (frv_gdbarch_init): Ditto.
10354 * cris-tdep.c (cris_gdbarch_init): Ditto.
10355 * avr-tdep.c (avr_gdbarch_init): Ditto.
10356 * arm-tdep.c (arm_gdbarch_init): Ditto.
10357 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10358 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10359
10360 2003-03-01 Andrew Cagney <cagney@redhat.com>
10361
10362 * gdbarch.sh (register_type): New function with predicate.
10363 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10364 * gdbarch.h, gdbarch.c: Re-generate.
10365 * arch-utils.c (generic_register_byte): Use generic_register_size.
10366 (generic_register_size): When available, use
10367 gdbarch_register_type.
10368 * regcache.c (init_regcache_descr): When available, initialize the
10369 register type array using gdbarch_register_type. If the
10370 architecture supplies gdbarch_register_type, do not use the legacy
10371 regcache layout.
10372 * d10v-tdep.c (d10v_register_type): Replace
10373 d10v_register_virtual_type.
10374 (d10v_gdbarch_init): Set register_type instead of
10375 register_virtual_type.
10376
10377 2003-03-01 Andrew Cagney <cagney@redhat.com>
10378
10379 * Makefile.in (ax-gdb.o): Update dependencies.
10380 * ax-gdb.c: Include "regcache.h".
10381 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10382 * findvar.c (value_of_register): Ditto.
10383 * infcmd.c (default_print_registers_info): Ditto.
10384
10385 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10386
10387 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10388 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10389
10390 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10391
10392 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10393 of STREQ.
10394
10395 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10396
10397 * Makefile.in (dwarf2loc.o): Update dependencies.
10398 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10399 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10400 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10401 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10402 (locexpr_tracepoint_var_ref): New function.
10403 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10404
10405 2003-02-28 Andrew Cagney <cagney@redhat.com>
10406
10407 * regcache.c (register_size): New function.
10408 * regcache.h (register_size): Declare
10409 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10410 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10411
10412 2003-02-28 David Carlton <carlton@math.stanford.edu>
10413
10414 * linespec.c (decode_compound): Extract code into find_method.
10415 (find_method): New.
10416
10417 2003-02-28 J. Brobecker <brobecker@gnat.com>
10418
10419 * Makefile.in: Add rules to build and link in observer.o.
10420
10421 2003-02-27 J. Brobecker <brobecker@gnat.com>
10422
10423 * observer.c: Minor comments edits.
10424
10425 2003-02-27 J. Brobecker <brobecker@gnat.com>
10426
10427 * observer.h, observer.c: New file.
10428
10429 2003-02-27 Andrew Cagney <cagney@redhat.com>
10430
10431 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10432
10433 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10434
10435 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10436 (M6812_OP_STS_EXT): Likewise.
10437 (m6811_prologue): Use the above to recognize prologue.
10438 (m6812_prologue): Likewise.
10439
10440 2003-02-27 David Carlton <carlton@math.stanford.edu>
10441
10442 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10443 SYMBOL_PRINT_NAME.
10444 (compare_psymbols): Ditto.
10445 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10446
10447 2003-02-27 Michael Snyder <msnyder@redhat.com>
10448
10449 * f-lang.c (build_fortran_types): New function.
10450 (_initialize_f_language): Gdbarch-register built-in fortran types.
10451 * doublest.c (extract_floating): Fix warning text.
10452
10453 2003-02-27 Andrew Cagney <cagney@redhat.com>
10454
10455 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10456 predicate. Replaces PUSH_DUMMY_FRAME.
10457 * gdbarch.h, gdbarch.c: Regnerate.
10458 * valops.c (hand_function_call): Update. Call
10459 generic_push_dummy_frame directly.
10460 * vax-tdep.c (vax_gdbarch_init): Update.
10461 * sparc-tdep.c (sparc_gdbarch_init): Update.
10462 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10463 * m68k-tdep.c (m68k_gdbarch_init): Update.
10464 * hppa-tdep.c (hppa_gdbarch_init): Update.
10465 * alpha-tdep.c (alpha_gdbarch_init): Update.
10466 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10467 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10468 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10469 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10470 push_dummy_frame to generic_push_dummy_frame.
10471 * v850-tdep.c (v850_gdbarch_init): Ditto.
10472 * sh-tdep.c (sh_gdbarch_init): Ditto.
10473 * s390-tdep.c (s390_gdbarch_init): Ditto.
10474 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10475 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10476 * mips-tdep.c (mips_gdbarch_init): Ditto.
10477 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10479 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10480 * i386-tdep.c (i386_gdbarch_init): Ditto.
10481 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10482 * frv-tdep.c (frv_gdbarch_init): Ditto.
10483 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10484 * cris-tdep.c (cris_gdbarch_init): Ditto.
10485 * avr-tdep.c (avr_gdbarch_init): Ditto.
10486 * arm-tdep.c (arm_gdbarch_init): Ditto.
10487
10488 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10489
10490 * mips-tdep.c (show_mips_abi): New function.
10491 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10492 command ``show mips abi''.
10493
10494 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10495
10496 From Elena Zannoni <ezannoni@redhat.com>
10497 * dbxread.c (process_one_symbol): Only record line 0 if one or
10498 more sline entries have been seen for the function.
10499
10500 2003-02-26 Michael Chastain <mec@shout.net>
10501
10502 * configure: Regenerate with autoconf 000227.
10503
10504 2003-02-26 Michael Chastain <mec@shout.net>
10505
10506 Close PR build/660.
10507 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10508 for old libc5/glibc.
10509 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10510
10511 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10512
10513 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10514 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10515
10516 2003-02-26 Michael Chastain <mec@shout.net>
10517
10518 * configure.in: New variable HAVE_UINTPTR_T.
10519 * configure, config.in: Regenerated.
10520
10521 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10522
10523 Fix PR build/1097.
10524 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10525
10526 2003-02-25 Andrew Cagney <cagney@redhat.com>
10527
10528 * frame.c (get_prev_frame): Add comment on check for
10529 inside_entry_func. Only check for inside_entry_file when not a
10530 dummy and not a sentinel. Check that the new frame is not inner
10531 to the old frame.
10532
10533 2003-02-25 Andrew Cagney <cagney@redhat.com>
10534
10535 * frame.c (frame_debug): New variable.
10536 (_initialize_frame): Add "set/show debug frame" command.
10537 (get_prev_frame): When frame_debug, print reason why unwind
10538 failed.
10539
10540 2003-02-25 Michael Chastain <mec@shout.net>
10541
10542 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10543 to avoid uintptr_t definition problems.
10544
10545 2003-02-25 David Carlton <carlton@math.stanford.edu>
10546
10547 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10548 (SYMBOL_LINKAGE_NAME): Ditto.
10549 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10550 SYMBOL_LINKAGE_NAME.
10551 (struct general_symbol_info): Expand comment.
10552 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10553 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10554 (SYMBOL_MATCHES_REGEXP): Ditto.
10555 * symtab.c (symbol_natural_name): New function.
10556 * objfiles.h: Replace all uses of SYMBOL_NAME by
10557 DEPRECATED_SYMBOL_NAME.
10558 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10559 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10560 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10561 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10562 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10563 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10564 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10565 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10566 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10567 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10568 * ada-exp.y: Ditto.
10569 * ada-exp.y: Update copyright.
10570 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10571 * cp-valprint.c: Ditto.
10572
10573 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10574
10575 * infptrace.c (detach): Do not flag error if ptrace detach fails
10576 and errno is set to ESRCH.
10577
10578 2003-02-24 Andrew Cagney <cagney@redhat.com>
10579
10580 * infptrace.c (udot_info): Change type of udot_off to long. Use
10581 paddr when printing udot_off's value.
10582
10583 2003-02-24 David Carlton <carlton@math.stanford.edu>
10584
10585 * symtab.c (make_symbol_overload_list): Only read in partial
10586 symtabs containing a matching partial symbol.
10587
10588 2003-02-24 David Carlton <carlton@math.stanford.edu>
10589
10590 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10591 do the comparison, not strcmp.
10592 * symfile.c (compare_psymbols): Ditto.
10593 * defs.h: Declare strcmp_iw_ordered.
10594 * utils.c (strcmp_iw_ordered): New function.
10595
10596 2003-02-24 Jim Blandy <jimb@redhat.com>
10597
10598 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10599 support, shared libs): Remove my name from here, to better reflect
10600 reality.
10601
10602 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10603
10604 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10605 (target_ops): Add to_have_continuable_watchpoint.
10606 * target.c (update_current_target): Add INHERIT line for
10607 to_have_continuable_watchpoint.
10608 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10609 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10610 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10611 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10612
10613 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10614
10615 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10616 maintainership.
10617
10618 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10619
10620 * solib.c (solib_open): Call target defined search function after
10621 failing with solib-search-path.
10622 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10623 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10624
10625 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10626
10627 * MAINTAINERS: Add myself to Write After section.
10628
10629 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10630
10631 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10632
10633 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10634
10635 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10636 (m68hc11_add_reggroups): New function.
10637 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10638 (m68hc11_gdbarch_init): Install the reggroups.
10639 (_initialize_m68hc11_tdep): Initialize them.
10640
10641 2003-02-21 James E Wilson <wilson@tuliptree.org>
10642
10643 * MAINTAINERS: Update my email address.
10644
10645 2003-02-21 David Carlton <carlton@math.stanford.edu>
10646
10647 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10648
10649 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10650
10651 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10652 * symtab.h: Add opaque declarations of struct axs_value and
10653 struct agent_expr.
10654 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10655 (struct location_funcs): New type.
10656 (struct symbol): Add "loc" to aux_value.
10657 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10658 * dwarf2read.c: Include "dwarf2expr.h".
10659 (dwarf2_symbol_mark_computed): New function.
10660 (read_func_scope): Use it.
10661 (var_decode_location): New function.
10662 (new_symbol): Use it.
10663 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10664
10665 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10666 (dwarf2expr_h, dwarf2loc_h): New variables.
10667 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10668 (dwarf2expr.o, dwarf2loc.o): New rules.
10669 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10670 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10671 LOC_COMPUTED_ARG.
10672 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10673 * m2-exp.y (yylex): Likewise.
10674 * printcmd.c (address_info, print_frame_args): Likewise.
10675 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10676 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10677 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10678 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10679 * symtab.c (lookup_block_symbol): Likewise.
10680
10681 2003-02-20 Adam Fedor <fedor@gnu.org>
10682
10683 * symtab.h: Remove objc_specific struct
10684 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10685 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10686 Have language_objc use cplus_specific struct.
10687
10688 2003-02-20 Tom Tromey <tromey@redhat.com>
10689
10690 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10691 TYPE_NAME, when printing a String value. PR java/1075.
10692
10693 2003-02-20 Adam Fedor <fedor@gnu.org>
10694
10695 * objc-lang.h (find_methods): Remove declaration.
10696 * objc-lang.c (find_methods): Make static.
10697
10698 2003-02-20 Christopher Faylor <cgf@redhat.com>
10699
10700 * win32-nat.c (get_image_name): Check return value from
10701 ReadProcessMemory.
10702 (child_xfer_memory): Ditto.
10703
10704 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10705
10706 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10707 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10708 '${exec_prefix}' (in addition to the expansion thereof) as
10709 relocatable.
10710 * configure: Rebuilt.
10711
10712 2003-02-20 David Carlton <carlton@math.stanford.edu>
10713
10714 * symtab.c (search_symbols): Revert the search_symbols part of my
10715 2002-12-23 patch. Add comment.
10716
10717 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10718
10719 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10720 * dbxread.c (elfstab_build_psymtabs): Don't call
10721 install_minimal_symbols.
10722 (stabsect_build_psymtabs): Likewise.
10723 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10724 earlier.
10725 * somread.c (som_symfile_read): Call install_minimal_symbols
10726 and do_cleanups earlier.
10727 * nlmread.c (nlm_symfile_read): Likewise.
10728 * mdebugread.c (elfmdebug_build_psymtabs): Call
10729 install_minimal_symbols and make appropriate cleanups.
10730
10731 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10732
10733 * solib.c (reload_shared_libraries): New function.
10734 (_initialize_solib): Add callbacks for ``set solib-search-path''
10735 and ``set solib-absolute-prefix''.
10736
10737 2003-02-20 David Carlton <carlton@math.stanford.edu>
10738
10739 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10740 expand comment.
10741 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10742 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10743 * ada-typeprint.c (ada_typedef_print): Ditto.
10744 * ax-gdb.c (gen_var_ref): Ditto.
10745 * breakpoint.c (print_one_breakpoint): Ditto.
10746 * buildsym.c (finish_block): Ditto.
10747 * c-valprint.c (c_val_print): Ditto.
10748 * expprint.c (print_subexp): Ditto.
10749 * findvar.c (locate_var_value): Ditto.
10750 * infcmd.c (jump_command): Ditto.
10751 * linespec.c (decode_line_2, decode_compound): Ditto.
10752 * maint.c (maintenance_translate_address): Ditto.
10753 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10754 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10755 Ditto.
10756 * p-valprint.c (pascal_val_print): Ditto.
10757 * stabsread.c (define_symbol): Ditto.
10758 * stack.c (print_frame, frame_info, print_block_frame_locals)
10759 (print_frame_arg_vars, return_command): Ditto.
10760 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10761 * symmisc.c (print_symbol): Ditto.
10762 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10763 (compare_search_syms, print_symbol_info, print_msymbol_info)
10764 (rbreak_command): Ditto.
10765 * tracepoint.c (tracepoints_info): Ditto.
10766 * typeprint.c (typedef_print): Ditto.
10767 * valops.c (value_of_variable, hand_function_call): Ditto.
10768 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10769 * ada-typeprint.c: Update Copyright.
10770 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10771 * tracepoint.c, cli/cli-cmds.c: Ditto.
10772
10773 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10774
10775 * frame.c (generic_unwind_get_saved_register): Make non-static.
10776 * frame.h (generic_unwind_get_saved_register): Declare.
10777 * mips-tdep.c (read_next_frame_reg): Fetch register from
10778 current regcache when frame is NULL.
10779 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10780 that must be NULL.
10781 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10782 instead of frame_register_unwind().
10783
10784 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10785
10786 * remote-sim.c (gdbsim_insert_breakpoint)
10787 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10788 code.
10789
10790 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10791
10792 * remote.c (_initialize_remote): Add commands "set/show remote
10793 hardware-watchpoint-limit" and "set/show remote
10794 hardware-breakpoint-limit".
10795 (remote_hw_watchpoint_limit): Initialize to -1.
10796 (remote_hw_breakpoint_limit): Ditto.
10797 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10798
10799 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10800
10801 * coff-pe-read.c: New file - support reading of minimal symbols from a
10802 portable executable using the export table.
10803 * coff-pe-read.h: New file.
10804 * coffread.c: Include coff-pe-read.h.
10805 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10806 debugging symbols found.
10807 * Makefile.in (SFILES): Add coff-pe-read.o.
10808 (coff_pe_read_h): Define.
10809 (COMMON_OBS): Add coff-pe-read.o.
10810 (coffread.o): Add coff_pe_read_h dependency.
10811 (coff-pe-read.o): New target.
10812
10813 2003-02-19 David Carlton <carlton@math.stanford.edu>
10814
10815 * Makefile.in (SFILES): Add block.c.
10816 (block_h): New.
10817 (COMMON_OBS): Add block.o.
10818 (block.o): New.
10819 (x86-64-tdep.o): Add $(block_h).
10820 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10821 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10822 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10823 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10824 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10825 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10826 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10827 * value.h: Add opaque declaration for struct block.
10828 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10829 * ada-lang.h: Ditto.
10830 * x86-64-tdep.c: #include "block.h"
10831 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10832 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10833 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10834 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10835 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10836 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10837 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10838 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10839 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10840 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10841 * symtab.c (block_function): Ditto.
10842 (contained_in): Ditto.
10843 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10844 block.h. Add opaque declaration for struct block.
10845 * symtab.h: Move block_function and contained_in declarations to
10846 block.h. Add opaque declarations for struct block, struct
10847 blockvector.
10848 (struct block): Move to block.h.
10849 (struct blockvector): Ditto.
10850 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10851 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10852 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10853 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10854 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10855 Ditto.
10856 * block.c: New file.
10857 * block.h: New file.
10858
10859 2003-02-19 Theodore A. Roth <troth@openavr.org>
10860
10861 * avr-tdep.c (avr_extract_return_value): Remove function.
10862 (avr_store_return_value): Remove function.
10863 (avr_extract_struct_value_address): Remove function.
10864 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10865
10866 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10867
10868 * rs6000-tdep.c: Include "gdb_assert.h".
10869 (registers_e500): Add "acc" and "spefscr".
10870 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10871 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10872 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10873 really is "r0".
10874 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10875
10876 2003-02-18 Keith Seitz <keiths@redhat.com>
10877
10878 * Makefile.in: Add gdbtk-interps.c.
10879
10880 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10881
10882 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10883 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10884
10885 2003-02-18 Andrew Cagney <cagney@redhat.com>
10886
10887 * symtab.h (struct objfile): Add opaque declaration.
10888
10889 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10890
10891 From Jim Ingham <jingham@apple.com>:
10892 * dbxread.c (process_one_symbol): Use last_function_start rather
10893 than function_start_offset to find the real beginning of the
10894 current function. The latter is just the text section offset on
10895 some systems, the former is always the real function start.
10896
10897 2003-02-17 Andrew Cagney <cagney@redhat.com>
10898
10899 * configure.in: Revert ${target} != ${host}.
10900
10901 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10902
10903 * configure.in (Makefile): Use the test ${target} != ${host},
10904 instead of the absence of the "nm.h" file, to determine of the
10905 configuration non-native.
10906 * configure: Regenerate.
10907
10908 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10909
10910 From Brian Ford <ford@vss.fsi.com>
10911
10912 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10913 conditionalize tui_active test.
10914 (lookup_cmd_1): Ditto.
10915
10916 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10917
10918 * configure.in: Add check for _etext.
10919 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10920 available.
10921 * config.in, configure: regenerated.
10922
10923 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10924
10925 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10926
10927 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10928
10929 * main.c (tui_version): Delete variable.
10930 (captured_main): When --tui, set interpreter_p to "tui" instead of
10931 enabling tui_version.
10932 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10933 tui_version.
10934 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10935 * cli/cli-cmds.c (disassemble_command): Ditto.
10936 * defs.h (tui_version): Delete declaration.
10937 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10938 (tui-interp.o): Add rules.
10939 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10940
10941 2003-02-14 Christopher Faylor <cgf@redhat.com>
10942
10943 * win32-nat.c (register_loaded_dll): Correctly set address range for
10944 just-loaded dll.
10945
10946 2003-02-12 Jason Molenda (jmolenda@apple.com)
10947
10948 * symmisc.c (print_objfile_statistics): Include information about
10949 the number of psymtabs and symtabs in each object file.
10950
10951 2003-02-13 Keith R Seitz <keiths@redhat.com>
10952
10953 * main.h (struct captured_main_args): Add interpreter_p.
10954 * main.c (captured_main): Initialize interpreter_p from context.
10955 * gdb.c (main): Set interpreter_p argument.
10956 * Makefile.in (gdb.o): Add dependency for interps.h.
10957
10958 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10959
10960 * event-top.c (cli_command_loop): Delete declaration.
10961 (_initialize_event_loop): Delete function setting event_loop_hook.
10962 * event-top.h (cli_command_loop): Declare. Update copyright.
10963 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10964 * interps.c (current_interp_command_loop): When event_loop_p, call
10965 cli_command_loop.
10966
10967 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10968
10969 * interps.h (interp_command_loop_ftype): Change return type to
10970 void.
10971
10972 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10973
10974 * x86-64-tdep.c (x86_64_extract_return_value)
10975 (x86_64_store_return_value): Use regcache instead of regbuf.
10976 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10977 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10978
10979 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10980
10981 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10982 * aclocal.m4: Regenerate.
10983 * configure: Regenerate.
10984
10985 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10986 TCL_LD_SEARCH_FLAGS.
10987
10988 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10989
10990 * dwarf2cfi.c: Reindented.
10991
10992 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10993
10994 * interps.c (clear_interpreter_hooks): Convert function definition
10995 to ISO C.
10996
10997 2003-02-07 David Carlton <carlton@math.stanford.edu>
10998
10999 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11000
11001 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11002
11003 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11004 (struct type): ...to here.
11005 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11006 field.
11007 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11008 (replace_type): Set length on all type variants for a given type.
11009
11010 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11011
11012 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11013 <sys/stat.h>.
11014 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11015
11016 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11017
11018 * Makefile.in (symm-nat.o): Update dependencies.
11019 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11020 (lynx-nat.o, ia64-linux-nat.): Ditto.
11021 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11022 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11023 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11024
11025 * Makefile.in (inflow_h): Define.
11026 (procfs.o, inflow.o, procfs.o): Update dependencies.
11027 * inftarg.c (child_stop): Delete extern declaration of
11028 inferior_process_group. Include "inflow.h".
11029 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11030 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11031 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11032 (our_process_group, inferior_process_group): Extern declarations.
11033
11034 * procfs.c: Include "gdb_assert.h".
11035
11036 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11037 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11038 * jv-typeprint.c (java_type_print_base): Ditto.
11039 * typeprint.c (typedef_print): Eliminate STREQ.
11040 * cli/cli-script.c (define_command, define_command): Ditto.
11041 * main.c (captured_main): Ditto.
11042 * values.c (lookup_internalvar): Ditto.
11043 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11044 within `if' conditional.
11045 * linespec.c (decode_line_2): Ditto.
11046 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11047 (bfd_openw_with_cleanup): Ditto.
11048
11049 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11050
11051 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11052 legacy_extract_return_value and store_return_value to
11053 legacy_return_value.
11054
11055 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11056
11057 * win32-nat.c (get_relocated_section_addrs): New function. Find
11058 section load addresses for symbol handling in relocated DLLs.
11059 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11060
11061 2003-02-05 Fred Fish <fnf@intrinsity.com>
11062
11063 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11064 '=' and '!='.
11065 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11066 with '&' and '=='.
11067 (angel_RDI_info): Ditto.
11068 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11069 with '&' and '!='.
11070 (threads_continue_all_with_signals): Ditto.
11071
11072 2003-02-05 Jim Ingham <jingham@apple.com>
11073 Keith Seitz <keiths@redhat.com>
11074 Elena Zannoni <ezannoni@redhat.com>
11075 Andrew Cagney <ac131313@redhat.com>
11076
11077 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11078 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11079 (SUBDIR_MI_OBS): Add "mi-interp.o".
11080 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11081 (SFILES): Add "interps.c".
11082 (COMMON_OBS): Add "interps.o".
11083 (interps_h, mi_main_h): Define.
11084 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11085 (mi-main.o, main.o, event-top.o): Update dependencies.
11086 * cli/cli-interp.c: New file.
11087 * interps.h, interps.c: New files.
11088 * top.c: (gdb_init): Don't install the default interpreter, handed
11089 by captured_main.
11090 * main.c: Include "interps.h".
11091 (interpreter_p): Note that it should malloc'ed.
11092 (captured_command_loop): Call current_interp_command_loop.
11093 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11094 xfree and xstrdup when updating interpreter_p. Install the
11095 default interpreter. Add hack to stop mi1's copyright notice
11096 being encoded.
11097 * event-top.h (gdb_setup_readline): Declare.
11098 (gdb_disable_readline): Declare.
11099 * event-top.c: Include "interps.h".
11100 (display_gdb_prompt): Call current_interp_display_prompt_p.
11101 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11102 gdb_stdlog, and gdb_stdtarg.
11103 (_initialize_event_loop): Don't call gdb_setup_readline.
11104 * cli-out.c (cli_out_set_stream): New function.
11105 * cli-out.h (cli_out_set_stream): Declare.
11106
11107 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11108
11109 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11110 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11111 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11112 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11113 config/i386/i386v42mp.mt: Removed.
11114
11115 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11116
11117 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11118 GDB_OSABI_SOLARIS.
11119
11120 2003-02-05 Michael Chastain <mec@shout.net>
11121
11122 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11123 2.12.1 and earlier versions.
11124
11125 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11126
11127 Remove orphaned hosts, targets and files.
11128 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11129 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11130 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11131 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11132 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11133 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11134 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11135 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11136 * config/sparc/tm-sp64sim.h: Delete.
11137 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11138 hosts.
11139 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11140 mips*-dec-mach3* targets.
11141
11142 2003-02-04 Michael Chastain <mec@shout.net>
11143
11144 * NEWS: Fix typo: sepcifying -> specifying.
11145
11146 2003-02-04 Michael Chastain <mec@shout.net>
11147
11148 * dwarfread.c: Add documentation on the state of dwarf-1,
11149 looking towards obsoletion.
11150
11151 2003-02-03 Michael Chastain <mec@shout.net>
11152
11153 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11154 gdb/testsuite/gdb.c++/pr-1023.exp.
11155
11156 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11157
11158 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11159 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11160
11161 * utils.c (init_page_info): Delete reference to MPW in comments.
11162 * main.c (captured_main): Delete #ifdef MPW.
11163
11164 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11165
11166 * NEWS: Note that the m32r-*-elf* is obsolete.
11167 * monitor.c (monitor_expect): Obsolete reference to m32r.
11168 * configure.tgt: Mark m32r-*-elf* as obsolete.
11169 * MAINTAINERS: Mark m32k as obsolete.
11170 * m32r-rom.c: Obsolete file.
11171 * config/m32r/m32r.mt: Obsolete file.
11172 * config/m32r/tm-m32r.h: Obsolete file.
11173 * m32r-stub.c: Obsolete file.
11174 * m32r-tdep.c: Obsolete file.
11175
11176 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11177
11178 * NEWS: Mention that the z8k-zilog-none is obsolete.
11179 * MAINTAINERS: Mark z8k as obsolete.
11180 * configure.tgt: Obsolete the z8k-*-coff* target.
11181 * config/z8k/z8k.mt: Obsolete file.
11182 * config/z8k/tm-z8k.h: Obsolete file.
11183 * z8k-tdep.c: Obsolete file.
11184
11185 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11186
11187 * NEWS: Mention that the mn10200-elf is obsolete.
11188 * configure.tgt: Obsolete mn10200-*-* target.
11189 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11190 mention that the mn10200 is obsolete.
11191 * breakpoint.h: Ditto.
11192 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11193 * config/mn10200/mn10200.mt: Obsolete file.
11194 * config/mn10200/tm-mn10200.h: Obsolete file.
11195 * mn10200-tdep.c: Obsolete file.
11196
11197 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11198
11199 * MAINTAINERS: Mark h8500 as obsolete.
11200 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11201 * findvar.c (value_from_register): Ditto.
11202 * h8500-tdep.c: Mark file as obsolete.
11203 * config/h8500/h8500.mt: Ditto.
11204 * config/h8500/tm-h8500.h: Ditto.
11205 * NEWS: Mention that h8500 is obsolete.
11206
11207 2003-02-04 David Carlton <carlton@math.stanford.edu>
11208
11209 * objfiles.c (allocate_objfile): Always set name. Add comment at
11210 start of function.
11211 * jv-lang.c (get_dynamics_objfile): Add comment.
11212
11213 2003-02-04 David Carlton <carlton@math.stanford.edu>
11214
11215 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11216 * printcmd.c (build_address_symbolic): Replace uses of
11217 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11218 SYMBOL_NAME, and asm_demangle.
11219 Update copyright.
11220
11221 2003-02-04 David Carlton <carlton@math.stanford.edu>
11222
11223 * linespec.c (decode_compound): Extract code into
11224 lookup_prefix_sym.
11225 (lookup_prefix_sym): New function.
11226
11227 2003-02-04 David Carlton <carlton@math.stanford.edu>
11228
11229 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11230 FLOAT_COERCION_BADNESS.
11231 * gdbtypes.c (rank_one_type): Replace all uses of
11232 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11233
11234 2003-02-04 Jim Blandy <jimb@redhat.com>
11235
11236 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11237 section, let dwarf_macinfo_section point to it, not
11238 dwarf_loc_section.
11239
11240 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11241
11242 Pointed out by Anton Blanchard <anton@samba.org>.
11243 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11244 (ppc_linux_at_sigtramp_return_path): Use it.
11245
11246 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11247
11248 * defs.h (streq): Add prototype.
11249 * utils.c (streq): New function.
11250
11251 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11252 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11253 * mdebugread.c (new_symbol): Likewise.
11254 * stabsread.c (define_symbol): Likewise.
11255 * coffread.c (process_coff_symbol): Likewise.
11256 * dwarfread.c (new_symbol): Likewise.
11257
11258 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11259 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11260 here.
11261 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11262 SYMBOL_INIT_DEMANGLED_NAME.
11263 * objfiles.c: Include "hashtab.h".
11264 (allocate_objfile): Call htab_set_functions_ex for the
11265 demangled_names_hash.
11266 (free_objfile): Call htab_delete for the demangled_names_hash.
11267 * objfiles.h (struct htab): Add declaration.
11268 (struct objfile): Add demangled_names_hash.
11269 * symfile.c: Include "hashtab.h".
11270 (reread_symbols): Call htab_delete for the demangled_names_hash.
11271 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11272 SYMBOL_NAME in the bcache.
11273 * symtab.c: Include "hashtab.h". Update comments.
11274 (create_demangled_names_hash, symbol_set_names): New functions.
11275 (symbol_find_demangled_name): New function, broken out from
11276 symbol_init_demangled_names.
11277 (symbol_init_demangled_names): Use it.
11278 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11279 (SYMBOL_SET_NAMES): New macro.
11280 (symbol_set_names): Add prototype.
11281
11282 2003-02-03 Jim Blandy <jimb@redhat.com>
11283
11284 Use a single, consistent representation for an empty minimal
11285 symbol table in an objfile.
11286 * objfiles.c (terminate_minimal_symbol_table): New function.
11287 (allocate_objfile): Call it.
11288 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11289 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11290 non-NULL.
11291 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11292 objfile has minimal symbols, compare minimal_symbol_count to zero,
11293 instead of comparing msymbols with NULL.
11294 * objfiles.c (have_minimal_symbols): Same.
11295 * solib-sunos.c (solib_add_common_symbols): Call
11296 terminate_minimal_symbol_table.
11297 * symfile.c (reread_symbols): Same.
11298
11299 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11300
11301 * s390-tdep.c (s390_address_class_type_flags)
11302 (s390_address_class_type_flags_to_name)
11303 (s390_address_class_name_to_type_flags): New functions.
11304 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11305 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11306
11307 2003-02-03 Michael Snyder <msnyder@redhat.com>
11308
11309 * arm-tdep.c: Fix spell-o in comment.
11310
11311 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11312
11313 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11314 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11315 error messages to contain BFD filename.
11316
11317 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11318
11319 Fix PR gdb/742 gdb/743 gdb/877
11320 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11321 (do_mixed_source_and_assembly): Use
11322 make_cleanup_ui_out_tuple_begin_end and
11323 make_cleanup_ui_out_tuple_begin_end.
11324 (do_mixed_source_and_assembly): Ditto.
11325 * thread.c (do_captured_list_thread_ids): Ditto.
11326 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11327 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11328 ui_out_tuple_end): Delete prototypes.
11329 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11330 ui_out_list_end, ui_out_tuple_end): Delete.
11331
11332 From Kevin Buettner <kevinb@redhat.com>:
11333 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11334 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11335 (do_cleanup_table_end): New functions.
11336 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11337 Use cleanups to invoke_ui_out_tuple_end().
11338 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11339 * cli/cli-setshow.c (cmd_show_list): Use
11340 make_cleanup_ui_out_tuple_begin_end.
11341
11342 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11343
11344 * frame.c (frame_unwind_register): New function.
11345 (frame_unwind_unsigned_register): Use.
11346 (frame_unwind_signed_register): Use.
11347 (frame_read_register): New function.
11348 * frame.h (frame_unwind_register): Declare.
11349 (frame_read_register): Declare.
11350
11351 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11352 and frame_unwind_register instead of read_memory, write_register
11353 and deprecated_write_register_bytes.
11354
11355 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11356
11357 * frame.h: Note that namelen can be negative.
11358 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11359 NAME's length.
11360
11361 * NEWS: Mention that the d10v's `regs' command is deprecated.
11362 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11363 (d10v_print_registers_info): New function.
11364 (show_regs): Call d10v_print_registers_info.
11365 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11366
11367 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11368
11369 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11370 lost in the previous patch.
11371
11372 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11373
11374 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11375 * stack.c (print_frame_info_base): Output complete FRAME tuple
11376 for synthesized frames.
11377
11378 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11379
11380 * mips-nat.c (zerobuf): Delete.
11381 (fetch_inferior_registers): Alloc local zerobuf.
11382 (fetch_core_registers): Alloc local zerobuf.
11383 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11384 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11385 * thread-db.c (thread_db_store_registers): Ditto.
11386 * sh-tdep.c (sh_do_register): Ditto.
11387 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11388 * remote-sim.c (gdbsim_store_register): Ditto.
11389 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11390 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11391 * monitor.c (monitor_supply_register): Ditto.
11392 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11393 * mips-nat.c (fetch_inferior_registers): Ditto.
11394 * m68klinux-nat.c (fetch_register): Ditto.
11395 * lynx-nat.c (fetch_inferior_registers): Ditto.
11396 (fetch_inferior_registers): Ditto.
11397 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11398 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11399 (hpux_thread_store_registers): Ditto.
11400 * hppah-nat.c (fetch_register): Ditto.
11401 * hppab-nat.c (fetch_register): Ditto.
11402 * hppa-tdep.c (pa_register_look_aside): Ditto.
11403 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11404 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11405
11406 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11407
11408 * gdbarch.sh: Explictly specify all method levels. When a
11409 variable with an empty level, provide a non-multi-arch default.
11410 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11411 * gdbarch.h: Re-generate.
11412 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11413 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11414
11415 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11416
11417 * defs.h (host_pointer_to_address): Delete declaration.
11418 (address_to_host_pointer): Delete declaration.
11419 * utils.c (host_pointer_to_address): Delete function.
11420 (address_to_host_pointer): Delete function.
11421 * procfs.c (procfs_address_to_host_pointer): New function.
11422 * procfs.c (proc_set_watchpoint): Use.
11423 (procfs_can_use_hw_breakpoint): Update comments.
11424 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11425 (som_solib_add): Use.
11426 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11427 * hppa-tdep.c (unwind_command): Use.
11428
11429 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11430
11431 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11432 strlen d_name.
11433
11434 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11435 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11436 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11437 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11438 (define_symbol): Update.
11439 * symfile.c (generic_load): Remove references to nindy.
11440 * symtab.c: Remove references to nindy.
11441
11442 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11443
11444 * infcmd.c (print_float_info): Delete code conditional on
11445 FLOAT_INFO.
11446 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11447 * config/m68k/nm-apollo68b.h: Ditto.
11448 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11449 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11450 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11451
11452 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11453
11454 * config/i386/tm-i386os9k.h: Removed.
11455
11456 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11457 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11458 they're identical to i[3456]86-*-sysv* now.
11459 * config/i386/i386v32.mh: Removed.
11460 * config/i386/xm-i386v32.h: Removed.
11461 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11462
11463 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11464
11465 * config/i386/i386dgux.mh: Removed.
11466 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11467
11468 * configure.in: Fix typo.
11469 * configure: Regenerated.
11470
11471 2003-01-31 David Carlton <carlton@math.stanford.edu>
11472
11473 * dwarf2read.c (dwarf2_locate_sections): Set
11474 dwarf_ranges_section.
11475
11476 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11477
11478 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11479 * utils.c: Update comments documenting legitimate uses of PTR.
11480
11481 * utils.c: Re-indent.
11482
11483 * config/djgpp/fnchange.lst: Delete nindy files.
11484 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11485 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11486 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11487 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11488 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11489 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11490 * Makefile.in (init.c): Remove nindy references.
11491 (saber_gdb): Delete rule.
11492 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11493 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11494 and a68v-nat.c.
11495 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11496 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11497 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11498 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11499 nindy-share/stop.h.
11500 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11501 * saber.suppress: Delete file.
11502
11503 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11504
11505 * dbxread.c (stabs_data): New static variable.
11506 (fill_symbuf): Support an in-memory buffer for stabs data.
11507 (stabs_seek): New function.
11508 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11509 (read_ofile_symtab): Use stabs_seek.
11510 (elfstab_build_psymtabs): Take an asection* instead of
11511 an offset and size. Relocate the stabs data if necessary.
11512 Save the section* for dbx_psymtab_to_symtab.
11513 * dwarf2read.c: Add section variables for each debug section.
11514 (dwarf2_locate_sections): Fill them in.
11515 (dwarf2_read_section): Take an asection* argument.
11516 Relocate the section contents if necessary.
11517 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11518 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11519 it to dwarf2_read_section.
11520 (dwarf2_build_frame_info): Update callers.
11521 * elfread.c (elf_symfile_read): Update call to
11522 elfstab_build_psymtabs.
11523 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11524 (DBX_STAB_SECTION): New macro.
11525 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11526 * symfile.c (symfile_dummy_outputs): New function.
11527 (symfile_relocate_debug_section): New function.
11528 * symfile.h (symfile_relocate_debug_section): Add prototype.
11529
11530 2003-01-31 Richard Henderson <rth@redhat.com>
11531
11532 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11533 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11534 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11535 * alpha-tdep.c (alpha_register_name): Add "unique".
11536 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11537 (ALPHA_UNIQUE_REGNUM): New.
11538 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11539
11540 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11541
11542 * README: Remove reference to Ericsson 1800 monitor.
11543 * Makefile.in (remote-es.o): Delete rule.
11544 (ALLDEPFILES): Delete remote-es.c.
11545 * remote-es.c: Delete file.
11546 * config/m68k/es1800.mt: Delete file.
11547 * config/djgpp/fnchange.lst: Update.
11548 * configure.tgt: Delete m68*-ericsson-* target.
11549
11550 2003-01-31 Adam Fedor <fedor@gnu.org>
11551
11552 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11553 Remove duplicate/shadowing variable of same name.
11554
11555 2003-01-30 Jim Blandy <jimb@redhat.com>
11556
11557 * symfile.c (find_separate_debug_file): Assert that the objfile's
11558 directory name we compute ends with a slash, and then assume that
11559 that's so everywhere we use it.
11560
11561 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11562
11563 * valops.c (value_assign): Flush frame cache after stores to memory
11564 also.
11565
11566 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11567
11568 * Makefile.in (mon960-rom.o): Delete rule.
11569 * mon960-rom.c: Delete file.
11570
11571 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11572
11573 * d10v-tdep.c: Include "frame-unwind.h".
11574 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11575 list.
11576 (next_addr, uses_frame): Delete.
11577 (struct d10v_unwind_cache): Define.
11578 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11579 Use info instead of next_addr and uses_frame globals.
11580 (d10v_frame_init_saved_regs): Delete function.
11581 (d10v_init_extra_frame_info): Delete function.
11582 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11583 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11584 init_frame_pc or frame_saved_pc.
11585 (d10v_pop_frame): Delete function.
11586 (do_d10v_pop_frame): Delete function.
11587 (d10v_frame_chain): Delete function.
11588 (d10v_frame_chain_valid): Delete function.
11589 (d10v_frame_pc_unwind): New function.
11590 (d10v_frame_id_unwind): New function.
11591 (saved_regs_unwinder): New function.
11592 (d10v_frame_register_unwind): New function.
11593 (d10v_frame_pop): New function.
11594 (d10v_frame_unwind): New variable.
11595 (d10v_frame_p): New function.
11596 (d10v_frame_saved_pc): Delete function.
11597 * Makefile.in (d10v-tdep.o): Update dependencies.
11598
11599 2003-01-30 J. Brobecker <brobecker@gnat.com>
11600
11601 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11602 causing some regressions due to a change in the default value
11603 for this macro.
11604
11605 2003-01-29 Richard Henderson <rth@redhat.com>
11606 Elena Zannoni <ezannoni@redhat.com>
11607 Daniel Jacobowitz <drow@mvista.com>
11608
11609 Fix PR gdb/961.
11610 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11611 variables.
11612 (RANGES_SECTION): New.
11613 (dwarf_ranges_buffer): New variable.
11614 (struct comp_unit_head): Add member "die".
11615 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11616 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11617 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11618 (dwarf2_locate_sections): Likewise.
11619 (dwarf2_build_psymtabs): Read .debug_ranges.
11620 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11621 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11622 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11623 Look for DW_AT_ranges and return the bounding box.
11624
11625 2003-01-29 Brian Ford <ford@vss.fsi.com>
11626
11627 * win32-nat.c (cygwin_pid): Removed as unused.
11628 (child_attach): Try fall back to Cygwin pid.
11629
11630 2003-01-29 Jim Blandy <jimb@redhat.com>
11631
11632 * objfiles.h (struct objfile): Doc fix.
11633
11634 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11635
11636 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11637 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11638 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11639 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11640 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11641 (FRAME_SAVED_PC): Change to a function with predicate.
11642 * gdbarch.h, gdbarch.c: Re-generate.
11643
11644 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11645
11646 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11647
11648 * complaints.c (complain): Delete function.
11649 * complaints.h (struct deprecated_complaint): Delete definition.
11650 (complain): Delete declaration.
11651
11652 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11653
11654 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11655 dummy frames.
11656
11657 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11658
11659 * sentinel-frame.h, sentinel-frame.c: New files.
11660 * Makefile.in (frame.o): Update dependencies.
11661 (SFILES): Add sentinel-frame.c.
11662 (sentinel_frame_h): Define.
11663 (COMMON_OBS): Add sentinel-frame.o.
11664 (sentinel-frame.o): Specify dependencies.
11665 * frame.c: Include "sentinel-frame.h".
11666 (frame_register_unwind): Rewrite assuming that there is always a a
11667 ->next frame.
11668 (frame_register, generic_unwind_get_saved_register): Ditto.
11669 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11670 (create_sentinel_frame, unwind_to_current_frame): New functions.
11671 (get_current_frame): Rewrite using create_sentinel_frame and
11672 unwind_to_current_frame. When possible, always create a frame.
11673 (create_new_frame): Set next to the sentinel frame.
11674 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11675 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11676 ID cache when necessary.
11677 (frame_saved_regs_id_unwind): Use frame_relative_level.
11678 (deprecated_generic_get_saved_register): Use frame_relative_level,
11679 get_frame_saved_regs, get_frame_pc, get_frame_base and
11680 get_next_frame.
11681 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11682 frame_register.
11683
11684 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11685
11686 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11687
11688 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11689
11690 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11691 (maintenance_set_profile_cmd): Use error () instead of warning ().
11692
11693 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11694
11695 * configure.in: Check that -pg works if using --enable-profiling.
11696 Check for monstartup and _mcleanup regardless of --enable-profiling.
11697 * maint.c: Check for monstartup and _mcleanup before using them.
11698 * config.in: Regenerated.
11699 * configure: Regenerated.
11700
11701 2003-01-24 Nick Clifton <nickc@redhat.com>
11702
11703 * Add sh2e support:
11704
11705 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11706
11707 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11708 (sh2e_show_regs): New.
11709 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11710 * config/sh/tm-sh.h: Added sh2e to comments.
11711
11712 2003-01-23 Jim Blandy <jimb@redhat.com>
11713
11714 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11715 symbols found)" message here; we haven't checked for a separate
11716 debug info file yet, so we don't know yet.
11717 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11718 we've looked everywhere. Also, there's no need to print a special
11719 message when we're loading the separate debug info file: the one
11720 symbol_file_add prints is fine.
11721
11722 2003-01-23 Alexander Larsson <alexl@redhat.com>
11723 Jim Blandy <jimb@redhat.com>
11724
11725 Add support for executables whose debug info has been separated
11726 out into a separate file, leaving only a link behind.
11727 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11728 and separate_debug_objfile_backlink.
11729 (put_objfile_before): New declaration.
11730 * symfile.c: #include "filenames.h".
11731 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11732 debug info in a separate file, read that, too. Save the addrs
11733 argument, so we can use it again to read the separated debug info;
11734 syms_from_objfile modifies the table we pass it.
11735 (reread_symbols): After re-reading an objfile, call
11736 reread_separate_symbols to refresh its separate debug info
11737 objfile, if it has one.
11738 (reread_separate_symbols, find_separate_debug_file,
11739 get_debug_link_info, separate_debug_file_exists): New functions.
11740 (debug_file_directory): New global var.
11741 (_initialize_symfile): Initialize debug_file_directory, and
11742 provide the new `set debug-file-directory' command to let the user
11743 change it.
11744 * objfiles.c (free_objfile): If this objfile has its debug info in
11745 a separate objfile, free that one too. If this is itself a
11746 separate debug info objfile, clear our parent's backlink.
11747 (put_objfile_before): New function.
11748 * utils.c (gnu_debuglink_crc32): New function.
11749 * defs.h (gnu_debuglink_crc32): New declaration.
11750 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11751 * configure.in: Handle --with-separate-debug-dir config option.
11752 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11753 * acconfig.h (DEBUGDIR): New macro.
11754 * configure, aclocal.m4, config.in: Regenerated.
11755
11756 2003-01-22 Jim Blandy <jimb@redhat.com>
11757
11758 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11759 like the old symbol_file_add, but taking new arguments: you can
11760 now pass in either a `struct section_addr_info' list to say where
11761 each section is loaded, or a `struct section_offsets' table. Pass
11762 these new arguments through to syms_from_objfile as appropriate.
11763 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11764 with the appropriate quiescent values for the new arguments.
11765
11766 * symfile.c: #include "gdb_assert.h".
11767 (syms_from_objfile): Add the ability to pass in a section offset
11768 table directly, as an alternative to the section_addr_info table.
11769 Document arguments better.
11770 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11771 * symfile.h (syms_from_objfile): Update declaration.
11772 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11773 syms_from_objfile.
11774 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11775
11776 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11777
11778 Original patch by Tom Tromey <tromey@cygnus.com> and
11779 Jason Molenda <jmolenda@apple.com>.
11780 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11781 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11782 * NEWS: Mention profiling.
11783 * configure.in (--enable-gdbtk): Fix typo.
11784 (--enable-profiling): New. Set PROFILE_CFLAGS.
11785 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11786 Fill in function.
11787 (profiling_state): New variable.
11788 (mcleanup_wrapper): New function.
11789 (_initialize_maint): Remove NOTYET, fix call to
11790 add_setshow_boolean_cmd for "maint set profile".
11791 * configure: Regenerated.
11792
11793 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11794
11795 * Makefile.in (install-gdbtk): Install PNG images too.
11796
11797 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11798
11799 * exec.c (text_start): Delete global variable.
11800 (exec_file_attach): Make text_start local to the function.
11801 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11802 * valops.c (hand_function_call): Delete code that handles
11803 BEFORE_TEXT_END and AFTER_TEXT_END.
11804 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11805 of CALL_DUMMY_LOCATION.
11806 * gdbarch.c: Regenerate.
11807 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11808 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11809 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11810 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11811 (text_end): Delete extern declaration.
11812
11813 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11814
11815 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11816 * blockframe.c (backtrace_below_main): Move to "frame.c".
11817 (frame_chain_valid): Delete check for backtrace_below_main.
11818 (_initialize_blockframe): Delete initialization, move ``set
11819 backtrace-below-main'' command to "frame.c".
11820 (do_flush_frames_sfunc): Delete function.
11821 * frame.c: Include "command.h" and "gdbcmd.h".
11822 (frame_type_from_pc): New function.
11823 (create_new_frame): Use frame_type_from_pc.
11824 (legacy_get_prev_frame): New function.
11825 (get_prev_frame): Rewrite. When an old style frame, call
11826 legacy_get_prev_frame. Otherwize, unwind the PC first.
11827 (_initialize_frame): Add ``set backtrace-below-main'' command.
11828 * Makefile.in (frame.o): Update dependencies.
11829
11830 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11831
11832 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11833 DEPRECATED_REGISTERS_INFO.
11834
11835 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11836
11837 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11838 Maintainers'. Update `Various Maintainers'.
11839
11840 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11841
11842 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11843 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11844 Suppress actual parameters when `-'.
11845 * gdbarch.h, gdbarch.c: Regenerate.
11846
11847 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11848
11849 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11850 code handling dummy frames.
11851
11852 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11853
11854 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11855 (struct frame_unwind): Add field pop.
11856 * frame.h (frame_pop): Declare.
11857 * frame.c (frame_saved_regs_pop): New function.
11858 (trad_frame_unwinder): Add frame_saved_regs_pop.
11859 (frame_pop): New function.
11860 * dummy-frame.c (dummy_frame_pop): New function.
11861 (discard_innermost_dummy): New function.
11862 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11863 (dummy_frame_unwind): Add dummy_frame_pop.
11864 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11865 * valops.c (hand_function_call): Ditto.
11866 * stack.c (return_command): Ditto.
11867
11868 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11869
11870 * cris-tdep.c: Fix function declaration indentation.
11871 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11872 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11873 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11874 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11875 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11876 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11877
11878 2003-01-18 Michael Chastain <mec@shout.net>
11879
11880 * README (Unpacking and Installation -- quick overview):
11881 Warn against ".../gdb-5.3/gdb/configure".
11882
11883 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11884
11885 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11886 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11887 (struct frame_unwind): Declare opaque.
11888 (dummy_frame_p): Declare function.
11889 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11890 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11891 * dummy-frame.c: Include "frame-unwind.h".
11892 (dummy_frame_p): New function.
11893 (dummy_frame_unwind): New variable.
11894 * frame.c: Include "frame-unwind.h".
11895 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11896 to use the new unwind field.
11897 (set_unwind_by_pc): Delete function.
11898 (create_new_frame, get_prev_frame): Set unwind field using
11899 frame_unwind_find_by_pc.
11900 (trad_frame_unwind, trad_frame_unwinder): New variables.
11901 * frame.h (trad_frame_unwind): Declare variable.
11902 (frame_id_unwind_ftype): Delete declaration.
11903 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11904 (struct frame_unwind): Declare opaque.
11905 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11906 register_unwind with a single unwind pointer.
11907 * frame-unwind.h, frame-unwind.c: New files.
11908 * Makefile.in (SFILES): Add frame-unwind.c.
11909 (frame_unwind_h): Define.
11910 (COMMON_OBS): Add frame-unwind.o.
11911 (frame-unwind.o): Specify dependencies.
11912 (frame.o, dummy-frame.o): Update dependencies.
11913
11914 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11915
11916 * ada-valprint.c: Eliminate PTR.
11917 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11918 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11919 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11920 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11921 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11922 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11923 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11924
11925 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11926
11927 * main.c (captured_main): Don't use PTR.
11928 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11929 * gdbtypes.c (lookup_primitive_typename): Ditto.
11930 (lookup_struct_elt_type): Ditto.
11931 * f-valprint.c (info_common_command): Ditto.
11932 (list_all_visible_commons): Ditto.
11933 * jv-typeprint.c (java_type_print_base): Ditto.
11934
11935 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11936 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11937 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11938 i386-interix-nat.c and i386-interix-tdep.c. Rename
11939 m68klinux-nat.c and m68klinux-tdep.c. Rename
11940 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11941 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11942 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11943 * main.c (captured_main): Use xfree, not free.
11944
11945 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11946
11947 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11948 ID back using a parameter.
11949 * frame.c (frame_id_unwind): Update call.
11950 (frame_saved_regs_id_unwind): Update.
11951 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11952 * dummy-frame.h (struct frame_id): Add opaque declaration.
11953 (dummy_frame_id_unwind): Update declaration.
11954
11955 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11956
11957 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11958
11959 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11960
11961 * MAINTAINERS (Stephen P. Smith): Updated email address.
11962
11963 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11964
11965 Fix PR gdb/898
11966 * breakpoint.c (until_break_command): Add new argument. Use it to
11967 decide whether to stop only at the current frame or not.
11968 * breakpoint.h (until_break_command): Update prototype.
11969 * infcmd.c (until_command): Add new argument to until_break_command
11970 call.
11971 (advance_command): New function.
11972 (_initialize_infcmd): Update help string for 'until' command.
11973 Add new 'advance' command.
11974
11975 2003-01-14 David Carlton <carlton@math.stanford.edu>
11976
11977 * linespec.c (decode_line_1): Normalize comments.
11978 (set_flags): Ditto.
11979 (locate_first_half): Ditto.
11980 (decode_compound): Ditto.
11981 (symtab_from_filename): Ditto.
11982 (decode_all_digits): Ditto.
11983 (decode_dollar): Ditto.
11984 (find_methods): Ditto.
11985 (find_toplevel_char): Ditto.
11986
11987 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11988
11989 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11990 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11991 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11992 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11993 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11994 * language.c, language.h, m32r-tdep.c: Update copyright.
11995 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11996 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11997 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11998 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11999 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12000 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12001
12002 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12003
12004 * stabsread.h (process_later, resolve_cfront_continuation):
12005 Obsolete.
12006 Update copyright years.
12007 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12008 Update copyright year.
12009 * dbxread.c(struct cont_elem): Obsolete.
12010 (process_later, process_now): Obsolete functions.
12011 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12012 Update copyright year.
12013 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12014 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12015 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12016 (parse_partial_symbols): Obsolete cfront support.
12017 * stabsread.c
12018 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12019 macros.
12020 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12021 read_cfront_baseclasses, read_cfront_member_functions,
12022 resolve_cfront_continuation,read_cfront_static_fields,
12023 copy_cfront_struct_fields): Obsolete functions.
12024 (define_symbol, read_one_struct_field): Obsolete cfront support.
12025 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12026 Update Copyright year.
12027
12028 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12029
12030 * stack.c (print_frame_info, print_stack_frame_base_stub,
12031 print_stack_frame_base, show_and_print_stack_frame_stub,
12032 show_and_print_stack_frame, print_only_stack_frame_stub,
12033 print_only_stack_frame): Delete functions.
12034 (print_stack_frame_stub): Call print_frame_info instead of
12035 print_frame_info_base.
12036 (print_frame_info_base): Rename to print_frame_info.
12037 (backtrace_command_1): Call print_frame_info, instead of
12038 print_frame_info_base.
12039 (current_frame_command): Call print_stack_frame, instead of
12040 print_only_stack_frame.
12041 (frame_command): Call print_stack_frame, instead of
12042 show_and_print_stack_frame.
12043 (up_command): Ditto.
12044 (down_command): Ditto.
12045 * frame.h (print_only_stack_frame): Delete prototype.
12046 * infrun.c (normal_stop): Call print_stack_frame, instead of
12047 show_and_print_stack_frame.
12048 * thread.c (info_threads_command): Call print_stack_frame, instead
12049 of print_only_stack_frame.
12050
12051 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12052
12053 * README (Graphical interface to GDB): Update URL. Point at
12054 gdb/links/.
12055
12056 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12057 version match.
12058
12059 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12060
12061 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12062 lines.
12063
12064 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12065
12066 * thread-db.c (attach_thread): Prototype.
12067 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12068 thread information (ti), and valid flags (th_valid, ti_valid).
12069 (attach_thread): Move target_pid_to_str call to after the thread
12070 is added to GDB's list. Initialize the cache.
12071 (thread_get_info_callback, thread_db_map_id2thr)
12072 (thread_db_get_info): New functions.
12073 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12074 (thread_db_store_registers, thread_db_thread_alive)
12075 (thread_db_get_thread_local_address): Use them.
12076 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12077 of calling error() for threads in unknown state.
12078
12079 (clear_lwpid_callback): New function.
12080 (thread_db_resume): Use it to clear the cache.
12081
12082 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12083
12084 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12085 (resume_callback): Remove dead code.
12086
12087 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12088
12089 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12090 predicate.
12091 * gdbarch.h, gdbarch.c: Regenerate.
12092 * stack.c (frame_info): Only initialize the saved registers when
12093 FRAME_INIT_SAVED_REGS_P.
12094 * frame.c (frame_saved_regs_register_unwind): Assert
12095 FRAME_INIT_SAVED_REGS_P.
12096 (deprecated_generic_get_saved_register): Ditto.
12097
12098 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12099
12100 * source.c (openp): Squelch warning about "filename".
12101
12102 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12103
12104 * source.c (openp): If the file does not exist don't necessarily
12105 search the path.
12106
12107 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12108
12109 Fix PR gdb/872.
12110 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12111 (integer_types_same_name_p): New function.
12112 (rank_one_type): Use it.
12113 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12114
12115 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12116
12117 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12118 variables.
12119 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12120 * configure.in: Add --with-sysroot.
12121 * configure: Regenerated.
12122 * main.c (gdb_sysroot): New variable.
12123 (captured_main): Initialize gdb_sysroot.
12124 * defs.h (gdb_sysroot): New extern declaration.
12125 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12126
12127 2003-01-12 Michael Chastain <mec@shout.net>
12128
12129 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12130
12131 2003-01-12 Michael Chastain <mec@shout.net>
12132
12133 * top.c (print_gdb_version): Bump copyright year to 2003.
12134
12135 2003-01-12 David Carlton <carlton@bactrian.org>
12136
12137 * linespec.c (symtab_from_filename): Rename variable 's' to
12138 'file_symtab'.
12139
12140 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12141
12142 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12143 dummy frame.
12144 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12145
12146 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12147
12148 * d10v-tdep.c: Include "gdb_assert.h".
12149 (d10v_store_return_value): Rewrite to match current interface.
12150 (d10v_extract_struct_value_address): Ditto.
12151 (d10v_extract_return_value): Ditto.
12152 (d10v_gdbarch_init): Set store_restore_value,
12153 extract_struct_value_address and extract_return_value.
12154
12155 2003-01-12 J. Brobecker <brobecker@gnat.com>
12156
12157 * hpread.c (set_namestring): New procedure replacing the
12158 SET_NAMESTRING macro.
12159 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12160 by calls to set_namestring.
12161
12162 2003-01-11 J. Brobecker <brobecker@gnat.com>
12163
12164 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12165 a compilation warning.
12166 (hpread_process_one_debug_symbol): Likewise.
12167
12168 2003-01-10 David Carlton <carlton@math.stanford.edu>
12169
12170 * linespec.c (decode_line_1): Rename variable 's' to
12171 'file_symtab'.
12172 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12173 (decode_dollar): Ditto.
12174 (decode_variable): Ditto.
12175 (symbol_found): Ditto.
12176
12177 2003-01-09 Michael Chastain <mec@shout.net>
12178
12179 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12180
12181 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12182
12183 * win32-nat.c (set_process_privilege): New function.
12184 (child_attach): Call set_process_privilege() to enable the
12185 SE_DEBUG_NAME user privilege if available in process token.
12186
12187 2003-01-10 J. Brobecker <brobecker@gnat.com>
12188
12189 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12190 compilation error in the previous revision.
12191
12192 2003-01-09 David Carlton <carlton@math.stanford.edu>
12193
12194 * linespec.c: Update copyright.
12195
12196 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12197
12198 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12199 than inferior_ptid.
12200 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12201
12202 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12203
12204 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12205 Update comments.
12206 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12207 (frame_saved_regs_zalloc): Update.
12208 (frame_saved_regs_register_unwind): Update.
12209 (create_new_frame): Update.
12210 (get_prev_frame): Update.
12211 (frame_extra_info_zalloc): Update.
12212 (deprecated_get_frame_saved_regs): Update.
12213 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12214 * cris-tdep.c: Update comment.
12215
12216 * somsolib.h: Fix function indentation.
12217 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12218 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12219 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12220 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12221 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12222
12223 * infrun.c (follow_fork): Use ISO C definition.
12224 * expprint.c (print_subexp): Use xfree instead of free.
12225 * charset.c: Include "gdb_string.h" instead of <string.h>.
12226 (register_iconv_charsets): Use ISO C definition.
12227 (host_charset, target_charset): Ditto.
12228 * Makefile.in (charset.o): Update dependencies.
12229 (mi-cmd-env.o): Update dependencies.
12230
12231 2003-01-08 Andrew Cagney <cagney@redhat.com>
12232
12233 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12234 get_frame_base.
12235
12236 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12237
12238 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12239 build directories. Save edited gdb output in Mbuild.log. If a
12240 build fails, remove any final GDB executable.
12241
12242 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12243
12244 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12245 replacing hex constants with function names and stripping leading
12246 file name directory prefixes.
12247
12248 2003-01-08 Andrew Cagney <cagney@redhat.com>
12249
12250 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12251 get_frame_base.
12252
12253 2003-01-08 David Carlton <carlton@math.stanford.edu>
12254
12255 * linespec.c (decode_line_1): Move code into decode_variable.
12256 (decode_variable): New function.
12257
12258 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12259
12260 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12261
12262 2003-01-08 Andrew Cagney <cagney@redhat.com>
12263
12264 * cris-tdep.c (cris_frame_init_saved_regs): Use
12265 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12266 saved_regs buffer.
12267 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12268 (sh64_nofp_frame_init_saved_regs): Ditto.
12269 (sh_fp_frame_init_saved_regs): Ditto.
12270 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12271 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12272 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12273 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12274
12275 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12276
12277 * minsyms.c (lookup_minimal_symbol): Update comment.
12278 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12279 (lookup_minimal_symbol_solib_trampoline): Likewise.
12280
12281 2003-01-08 Andrew Cagney <cagney@redhat.com>
12282
12283 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12284 frame_relative_level.
12285
12286 * alpha-tdep.c: Use get_frame_extra_info.
12287 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12288 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12289 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12290 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12291
12292 * alpha-tdep.c: Use get_next_frame.
12293 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12294 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12295 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12296 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12297 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12298 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12299 * xstormy16-tdep.c: Ditto.
12300
12301 2003-01-07 Andrew Cagney <cagney@redhat.com>
12302
12303 * alpha-tdep.c: Use get_frame_base.
12304 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12305 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12306 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12307 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12308 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12309 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12310 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12311 * config/sparc/tm-sparc.h: Ditto.
12312
12313 2003-01-07 Andrew Cagney <cagney@redhat.com>
12314
12315 * frame.c (deprecated_get_frame_context): New function.
12316 (deprecated_set_frame_context): New function.
12317 * frame.h (deprecated_get_frame_context): Declare.
12318 (deprecated_set_frame_context): Declare.
12319 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12320 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12321
12322 2003-01-07 Andrew Cagney <cagney@redhat.com>
12323
12324 * frame.c (deprecated_set_frame_next_hack): New function.
12325 (deprecated_set_frame_prev_hack): New function.
12326 * frame.h (deprecated_set_frame_next_hack): Declare.
12327 (deprecated_set_frame_prev_hack): Declare.
12328 * mcore-tdep.c (analyze_dummy_frame): Use
12329 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12330 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12331
12332 2003-01-07 David Carlton <carlton@math.stanford.edu>
12333
12334 * linespec.c (decode_line_1): Move code into decode_dollar.
12335 (decode_dollar): New function.
12336
12337 2003-01-07 Andrew Cagney <cagney@redhat.com>
12338
12339 * arm-tdep.c (arm_init_extra_frame_info): Use
12340 deprecated_update_frame_base_hack.
12341 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12342 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12343 (fix_frame_pointer): Ditto.
12344 (mn10300_analyze_prologue): Ditto.
12345
12346 2003-01-07 Andrew Cagney <cagney@redhat.com>
12347
12348 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12349 extra_info using frame_extra_info_zalloc.
12350 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12351 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12352 (sh64_init_extra_frame_info): Ditto.
12353 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12354 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12355 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12356 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12357 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12358 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12359 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12360 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12361 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12362 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12363 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12364 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12365
12366 * mn10300-tdep.c (analyze_dummy_frame): Use
12367 deprecated_set_frame_extra_info_hack.
12368 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12369
12370 2003-01-07 J. Brobecker <brobecker@gnat.com>
12371
12372 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12373 class is not scText. These do not define "real" procedures.
12374 (parse_partial_symbols): Likewise.
12375
12376 2003-01-06 Michael Snyder <msnyder@redhat.com>
12377
12378 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12379
12380 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12381
12382 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12383 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12384 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12385 deprecated_frame_xmalloc_with_cleanup.
12386 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12387 deprecated_frame_xmalloc.
12388 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12389 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12390
12391 2003-01-06 Andrew Cagney <cagney@redhat.com>
12392
12393 * x86-64-linux-tdep.c: Include "osabi.h".
12394 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12395
12396 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12397
12398 2003-01-06 Andrew Cagney <cagney@redhat.com>
12399
12400 * MAINTAINERS (Target Instruction Set Architectures): Update
12401 arm-elf. Can be built with -Werror, has been multiarched.
12402
12403 * value.h (unpack_long): Make buffer parameter constant.
12404 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12405 * scm-lang.h (scm_parse): Ditto.
12406 * defs.h (extract_typed_address, extract_address): Ditto.
12407 (extract_long_unsigned_integer): Ditto.
12408 * inferior.h (unsigned_pointer_to_address): Ditto.
12409 (signed_pointer_to_address): Ditto.
12410 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12411 * gdbarch.h, gdbarch.c: Regenerate.
12412 * findvar.c (extract_long_unsigned_integer): Update.
12413 (extract_address): Update.
12414 (extract_typed_address): Update.
12415 (unsigned_pointer_to_address): Update.
12416 * values.c (unpack_long): Update.
12417 (unpack_double): Update.
12418 (unpack_pointer): Update.
12419 (unpack_field_as_long): Update.
12420 * d10v-tdep.c (d10v_pointer_to_address): Update.
12421 * avr-tdep.c (avr_pointer_to_address): Update.
12422 * scm-lang.c (scm_unpack): Update.
12423 * findvar.c (signed_pointer_to_address): Update.
12424
12425 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12426
12427 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12428 since it is in i386-tdep.c.
12429
12430 2003-01-06 J. Brobecker <brobecker@gnat.com>
12431
12432 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12433 failure introduced in the previous change.
12434
12435 2003-01-05 Michael Chastain <mec@shout.net>
12436
12437 * README: Remove references to deleted remote-*.c files:
12438 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12439 remote-nrom.c, remote-os9k.c, remote-udi.c.
12440
12441 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12442
12443 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12444 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12445 i386_get_longjmp_target.
12446
12447 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12448
12449 * arm-tdep.c (prologue_cache): Change to a pointer.
12450 (_initialize_arm_tdep): Allocate prologue_cache.
12451 (check_prologue_cache): Update.
12452 (save_prologue_cache): Update.
12453 (arm_gdbarch_init): Update.
12454
12455 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12456
12457 * stabsread.c (update_method_name_from_physname): Call complaint()
12458 instead of error.
12459
12460 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12461
12462 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12463 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12464 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12465
12466 * blockframe.c: Include "gdbcmd.h" and "command.h".
12467 (backtrace_below_main): New variable.
12468 (file_frame_chain_valid, func_frame_chain_valid)
12469 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12470 (generic_func_frame_chain_valid): Remove functions.
12471 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12472 (_initialize_blockframe): New function.
12473 * Makefile.in (blockframe.o): Update dependencies.
12474 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12475 comment. Call frame_chain_valid ().
12476 * frame.h: Remove old prototypes. Add prototype for
12477 frame_chain_valid and update comments to match.
12478 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12479 Remove old comment.
12480 * gdbarch.h: Regenerated.
12481 * gdbarch.c: Regenerated.
12482
12483 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12484 set_gdbarch_frame_chain_valid.
12485 * avr-tdep.c (avr_gdbarch_init): Likewise.
12486 * cris-tdep.c (cris_gdbarch_init): Likewise.
12487 * frv-tdep.c (frv_gdbarch_init): Likewise.
12488 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12489 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12490 (i386_nw_init_abi): Likewise.
12491 (i386_gdbarch_init): Likewise.
12492 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12494 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12495 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12496 * mips-tdep.c (mips_gdbarch_init): Likewise.
12497 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12498 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12499 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12500 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12501 * s390-tdep.c (s390_gdbarch_init): Likewise.
12502 * sh-tdep.c (sh_gdbarch_init): Likewise.
12503 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12504 * v850-tdep.c (v850_gdbarch_init): Likewise.
12505 * vax-tdep.c (vax_gdbarch_init): Likewise.
12506 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12507
12508 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12509 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12510 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12511 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12512 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12513 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12514 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12515 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12516
12517 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12518
12519 * Makefile.in (acconfig_h): Remove incorrect macro.
12520 (config_h): Define.
12521 (osabi.o): Update dependencies.
12522 * configure.tgt: Set gdb_osabi based on target triplet.
12523 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12524 * configure: Regenerated.
12525 * config.in: Regenerated.
12526 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12527 (GDB_OSABI_DEFAULT): Define if not already defined.
12528 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12529 (set_osabi_string): New variables.
12530 (gdbarch_register_osabi): Add new OS ABI to
12531 gdb_osabi_available_names.
12532 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12533 (set_osabi, show_osabi): New functions.
12534 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12535
12536 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12537
12538 * arch-utils.c (gdbarch_info_init): Set osabi to
12539 GDB_OSABI_UNINITIALIZED.
12540 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12541 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12542 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12543 * gdbarch.c: Regenerated.
12544 * gdbarch.h: Regenerated.
12545 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12546 there's no BFD.
12547 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12548 * osabi.h (enum gdb_osabi): Move to defs.h.
12549 (gdbarch_init_osabi): Update prototype.
12550 * defs.h (enum gdb_osabi): Moved here.
12551 * Makefile.in: Update dependencies.
12552
12553 * alpha-tdep.h: Don't include "osabi.h".
12554 (struct gdbarch_tdep): Remove osabi member.
12555 * alpha-tdep.c: Include "osabi.h".
12556 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12557 iterate over arches. Update call to gdbarch_init_osabi.
12558 (alpha_dump_tdep): Don't dump osabi.
12559 * alpha-linux-tdep.c: Include "osabi.h".
12560 * alpha-osf1-tdep.c: Include "osabi.h".
12561 * alphafbsd-tdep.c: Include "osabi.h".
12562 * alphanbsd-tdep.c: Include "osabi.h".
12563
12564 * arm-tdep.h: Don't include "osabi.h".
12565 (struct gdbarch_tdep): Remove osabi member.
12566 * arm-tdep.c: Include "osabi.h".
12567 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12568 iterate over arches. Update call to gdbarch_init_osabi.
12569 (arm_dump_tdep): Don't dump osabi.
12570 * arm-linux-tdep.c: Include "osabi.h".
12571 * armnbsd-tdep.c: Include "osabi.h".
12572
12573 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12574 Update call to gdbarch_init_osabi.
12575
12576 * i386-tdep.h: Don't include "osabi.h".
12577 (struct gdbarch_tdep): Remove osabi member.
12578 * i386-tdep.c: Include "osabi.h".
12579 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12580 iterate over arches. Update call to gdbarch_init_osabi.
12581 (i386_dump_tdep): Don't dump osabi.
12582 * i386-linux-tdep.c: Include "osabi.h".
12583 * i386-sol2-tdep.c: Include "osabi.h".
12584 * i386bsd-tdep.c: Include "osabi.h".
12585 * i386gnu-tdep.c: Include "osabi.h".
12586 * i386ly-tdep.c: Include "osabi.h".
12587 * i386nbsd-tdep.c: Include "osabi.h".
12588 * i386obsd-tdep.c: Include "osabi.h".
12589
12590 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12591 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12592 check osabi when iterating over arches. Update call to
12593 gdbarch_init_osabi.
12594 (mips_dump_tdep): Don't dump osabi.
12595
12596 * ns32k-tdep.h: Don't include "osabi.h".
12597 (struct gdbarch_tdep): Remove.
12598 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12599 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12600 allocate tdep. Update call to gdbarch_init_osabi.
12601 (ns32k_dump_tdep): Remove.
12602 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12603 * ns32knbsd-tdep.c: Include "osabi.h".
12604
12605 * ppc-tdep.h: Don't include "osabi.h".
12606 (struct gdbarch_tdep): Remove osabi member.
12607 * rs6000-tdep.c: Include "osabi.h".
12608 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12609 osabi when iterating over arches. Update call to
12610 gdbarch_init_osabi.
12611 (rs6000_dump_tdep): Don't dump osabi.
12612 * ppc-linux-tdep.c: Include "osabi.h".
12613 * ppcnbsd-tdep.c: Include "osabi.h".
12614
12615 * sh-tdep.h: Don't include "osabi.h".
12616 (struct gdbarch_tdep): Remove osabi member.
12617 * sh-tdep.c: Include "osabi.h".
12618 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12619 iterate over arches. Update call to gdbarch_init_osabi.
12620 (sh_dump_tdep): Don't dump osabi.
12621 * shnbsd-tdep.c: Include "osabi.h".
12622
12623 * sparc-tdep.c: Include "osabi.h".
12624 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12625 iterate over arches. Update call to gdbarch_init_osabi.
12626 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12627 tdep structure.
12628
12629 * vax-tdep.h: Don't include "osabi.h".
12630 (struct gdbarch_tdep): Remove.
12631 * vax-tdep.c: Include "osabi.h".
12632 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12633 iterate over arches. Don't allocate tdep. Update call
12634 to gdbarch_init_osabi.
12635 (vax_dump_tdep): Remove.
12636 (_initialize_vax_tdep): Update call to gdbarch_register.
12637
12638 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12639
12640 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12641 entirely.
12642 (breakpoint_re_set_one): Don't fetch the value for a disabled
12643 watchpoint.
12644
12645 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12646
12647 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12648 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12649 (COERCE_FLOAT_TO_DOUBLE): Remove.
12650 * gdbarch.c: Regenerate.
12651 * gdbarch.h: Regenerate.
12652 * Makefile.in: Remove value_h from gdbarch_h.
12653 * valops.c (coerce_float_to_double): New variable.
12654 (default_coerce_float_to_double): Remove.
12655 (standard_coerce_float_to_double): Remove.
12656 (value_arg_coerce): Use coerce_float_to_double.
12657 (_initialize_valops): Add "set coerce-float-to-double".
12658 * value.h (default_coerce_float_to_double): Remove prototype.
12659 (standard_coerce_float_to_double): Remove prototype.
12660
12661 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12662 prototyped.
12663 * mdebugread.c (parse_symbol): Likewise.
12664 * stabsread.c (define_symbol): Mark all functions as prototyped.
12665
12666 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12667 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12668 set_gdbarch_coerce_float_to_double.
12669 * arm-tdep.c (arm_gdbarch_init): Likewise.
12670 * frv-tdep.c (frv_gdbarch_init): Likewise.
12671 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12672 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12673 * mips-tdep.c (mips_gdbarch_init): Likewise.
12674 (mips_coerce_float_to_double): Remove.
12675 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12676 (rs6000_coerce_float_to_double): Remove.
12677 * s390-tdep.c (s390_gdbarch_init): Likewise.
12678 * sh-tdep.c (sh_gdbarch_init): Likewise.
12679 (sh_coerce_float_to_double): Remove.
12680 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12681 (sparc_coerce_float_to_double): Remove.
12682 * v850-tdep.c (v850_gdbarch_init): Likewise.
12683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12684 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12685 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12686 (hppa_coerce_float_to_double): Remove prototype.
12687 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12688
12689 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12690
12691 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12692
12693 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12694
12695 Suggested by Stewart Brown <sb24@avaya.com>:
12696 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12697 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12698 (c_type_print_varspec_suffix): Likewise.
12699
12700 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12701
12702 * configure.in: Don't set and AC_SUBST SUBDIRS.
12703 * configure: Regenerated.
12704
12705 * configure.in: Remove code dealing with shared libraries.
12706 * Makefile.in: Remove HLDFLAGS and HLDENV.
12707 * configure: Regenerated.
12708
12709 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12710
12711 * frame.c (deprecated_frame_xmalloc): New function.
12712 (deprecated_set_frame_saved_regs_hack): New function.
12713 (deprecated_set_frame_extra_info_hack): New function.
12714 * frame.h (deprecated_frame_xmalloc): Declare.
12715 (deprecated_set_frame_saved_regs_hack): Declare.
12716 (deprecated_set_frame_extra_info_hack): Declare.
12717
12718 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12719
12720 * configure.in: Move code that provides the --enable-gdbtk option
12721 right after the code that handles the --enable-tui option, and
12722 polish it somewhat.
12723 * configure: Regenerated.
12724
12725 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12726 AC_CHECK_FUNCS and remove the old check for pread64.
12727 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12728 * acconfig.h (_GNU_SOURCE): Add.
12729 (HAVE_PREAD64): Remove.
12730 * configure, aclocal.m4, config.in: Regenerated.
12731
12732 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12733
12734 * alpha-tdep.c: Use get_frame_saved_regs.
12735 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12736 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12737 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12738 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12739 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12740
12741 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12742
12743 * configure.in: Remove all use of the SUBDIRS variable; add
12744 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12745 code providing the --enable-multi-ice option, and move it right in
12746 front of the code that checks whether gdbserver is supported.
12747 Polish that too.
12748 * configure: Regenerated.
12749 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12750 @SUBDIRS@.
12751
12752 2003-01-03 Andrew Cagney <cagney@redhat.com>
12753
12754 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12755 * avr-tdep.c, cris-tdep.c: Ditto.
12756 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12757 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12758
12759 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12760
12761 * configure.in: Remove --enable-netrom option.
12762 * configure: Regenerated.
12763
12764 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12765
12766 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12767 declaration for `struct re_pattern_buffer' instead.
12768 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12769
12770 2003-01-03 J. Brobecker <brobecker@gnat.com>
12771
12772 * mdebugread.c (parse_symbol): Count until the stEnd matching
12773 the structure name.
12774
12775 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12776
12777 * configure.in: Remove --with-cpu option.
12778 subscripts. Remove evil changequotes here.
12779 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12780 * config.in, configure: Regenerated.
12781
12782 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12783 * configure.in: Cleanup section that sources GDB and BFD configure
12784 subscripts. Remove evil changequotes here.
12785 * config.in, configure: Regenerated.
12786
12787 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12788
12789 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12790 frame accessor methods.
12791 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12792 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12793 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12794 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12795 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12796 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12797 * z8k-tdep.c: Ditto.
12798
12799 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12800
12801 * configure.in: Remove UI_OUT configuration code.
12802 * ada-lang.c: Update assuming UI_OUT is always true.
12803 * Makefile.in (UIOUT_CFLAGS): Remove.
12804 * configure: Regenerated.
12805 * TODO: Remove blurb about elimination of -DUI_OUT.
12806
12807 * configure.in: Move code that provides the --enable-gdbcli,
12808 --enable-gdbmi options right before the code that handles the
12809 --enable-tui option. Polish a bit.
12810 * configure: Regenerated.
12811
12812 * configure.in: Rewrite check for GNU regex and the
12813 --without-included regex option, and move it into the "Checks for
12814 library functions" section. This makes us use the system regex
12815 again by default on systems with version 2 of the GNU C library.
12816 This was apparently broken.
12817 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12818 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12819 * config.in, configure: Regenerated.
12820
12821 * configure.in: Move code that provides the --enable-tui option
12822 before the "Checks for libraries" section. Polish the code
12823 somewhat and set need_curses to yes if we build the TUI. Rewrite
12824 code that looks for a library providing termcap functionality to
12825 match more closely what's done in the Readline library, and move
12826 it into to the "Checks for libraries" section.
12827 * configure: Regenerated.
12828 * Makefile.in (TERMCAP): Remove variable.
12829 * config/i386/go32.mh (TERMCAP): Remove variable.
12830
12831 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12832
12833 * MAINTAINERS: Mention gdb_mbuild.sh.
12834 * gdb_mbuild.sh: Rewrite.
12835
12836 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12837
12838 * configure.in: Fix typo in last change.
12839 * config.in, configure: Regenerated.
12840
12841 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12842
12843 * valarith.c (value_binop): Delete obsolete code and comments.
12844 * configure.host: Ditto.
12845 * buildsym.h (make_blockvector): Ditto.
12846 * buildsym.c (make_blockvector): Ditto.
12847 * defs.h (enum language): Ditto.
12848 (chill_demangle): Ditto.
12849 * elfread.c (elf_symtab_read): Ditto.
12850 * dwarfread.c (CHILL_PRODUCER): Ditto.
12851 (set_cu_language): Ditto.
12852 (handle_producer): Ditto.
12853 * expprint.c (print_subexp): Ditto.
12854 * gdbtypes.c (chill_varying_type): Ditto.
12855 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12856 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12857 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12858 (chill_varying_type): Ditto.
12859 * language.h (_LANG_chill): Ditto.
12860 * language.c (binop_result_type, integral_type): Ditto.
12861 (character_type, string_type, structured_type): Ditto.
12862 (lang_bool_type, binop_type_check): Ditto.
12863 * stabsread.h (os9k_stabs): Ditto.
12864 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12865 (define_symbol, read_type, read_struct_fields): Ditto.
12866 (read_array_type, read_enum_type, read_huge_number): Ditto.
12867 (read_range_type, start_stabs): Ditto.
12868 * symfile.c (init_filename_language_table): Ditto.
12869 (add_psymbol_with_dem_name_to_list): Ditto.
12870 * symtab.c (symbol_init_language_specific): Ditto.
12871 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12872 * symtab.h (struct general_symbol_info): Ditto.
12873 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12874 * typeprint.c (typedef_print): Ditto.
12875 * utils.c (fprintf_symbol_filtered): Ditto.
12876 * valops.c (value_cast, search_struct_field, value_slice): Delete
12877 obsolete code.
12878 (varying_to_slice): Delete function.
12879 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12880 (varying_to_slice): Delete declaration.
12881 * MAINTAINERS: Update.
12882
12883 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12884
12885 * configure.in: Reorganize "Checks for library functions section"
12886 a bit. Remove check for `btowc' and `isascii' functions.
12887 * configure: Regenerated.
12888
12889 * acconfig.h (_MSE_INT_H): Remove.
12890 * configure.in: Create "Checks for header files" section, and move
12891 appropriate tests there. Don't check for objlist.h, wchar.h,
12892 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12893 misdetection fix. Also add "Checks for types", "Checks for
12894 compiler characteristics" and "Checks for library functions"
12895 sections.
12896 * config.in, configure: Regenerated.
12897
12898 * configure.in: Create "Checks for programs" section, and move
12899 appropriate tests there.
12900
12901 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12902
12903 * configure.in: Create "Checks for libraries" section, and move
12904 appropriate tests there. Cleanup check for wctype in libw. Use
12905 AC_SEARCH_LIBS to see whether we need libsocket.
12906 * configure: Regenerated.
12907
12908 For older changes see ChangeLog-2002
12909 \f
12910 Local Variables:
12911 mode: change-log
12912 left-margin: 8
12913 fill-column: 74
12914 version-control: never
12915 End:
This page took 0.304107 seconds and 4 git commands to generate.