2003-10-09 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-09 Andrew Cagney <cagney@redhat.com>
2
3 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
4 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
5 (SOFTWARE_SINGLE_STEP_P): Ditto.
6 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
7 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
8 (SOFTWARE_SINGLE_STEP_P): Ditto.
9 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
10 software_single_step to rs6000_software_single_step.
11
12 2003-10-09 Andrew Cagney <cagney@redhat.com>
13
14 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
15
16 2003-10-09 Michael Snyder <msnyder@redhat.com>
17
18 * frame.h: Fix typo in comment.
19 * dummy-frame.c: Fix typo in comment.
20 * d10v-tdep.c: Random whitespace/comment tweaks.
21
22 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
23
24 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
25 (sh_push_dummy_code): Delete function, it's only used for dummy calls
26 on stack.
27
28 Based on input by Stephen Clarke (stephen.clarke@superh.com):
29 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
30 in detail.
31
32 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
33
34 * remote-mips.c (mips_initialize): Remove unneeded call to
35 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
36
37 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
38
39 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
40 a memory pointer.
41
42 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
43
44 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
45 for any lwp we resume.
46 (running_callback): Add lwps that have pending status events
47 against them to be considered running.
48
49 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
50
51 * m32r-tdep.c : Include "dis-asm.h".
52 * Makefile.in (m32r-tdep.o): Update dependencies.
53
54 2003-10-06 J. Brobecker <brobecker@gnat.com>
55
56 * completer.h (get_gdb_completer_word_break_characters): Delete.
57 * completer.c: include language.h.
58 (gdb_completer_word_break_characters): Delete.
59 (get_gdb_completer_word_break_characters): Delete.
60 (location_completer): Use the word break characters of the current
61 language.
62 (complete_line): Likewise.
63 (line_completion_function): Likewise.
64 (skip_quoted_chars): Likewise.
65 * Makefile.in (completer.o): Add dependency on language.h.
66 * top.c (init_main): Set the readline word break characters
67 to GDB's default word break characters.
68
69 2003-10-06 J. Brobecker <brobecker@gnat.com>
70
71 * language.h (language_defn): new field, la_word_break_characters.
72 * language.c (unknown_language_defn): Set new field to
73 default_word_break_characters.
74 (auto_language_defn): Likewise.
75 (local_language_defn): Likewise.
76 * ada-lang.c (ada_language_defn): Likewise.
77 * c-lang.c (c_language_defn): Likewise.
78 (cplus_language_defn): Likewise.
79 (asm_language_defn): Likewise.
80 (minimal_language_defn): Likewise.
81 * f-lang.c (f_language_defn): Likewise.
82 * jv-lang.c (java_language_defn): Likewise.
83 * m2-lang.c (m2_language_defn): Likewise.
84 * objc-lang.c (objc_language_defn): Likewise.
85 * p-lang.c (pascal_language_defn): Likewise.
86 * scm-lang.c (scm_language_defn): Likewise.
87
88 2003-10-06 Andrew Cagney <cagney@redhat.com>
89
90 * ppc-sysv-tdep.c: Re-indent.
91
92 2003-10-06 J. Brobecker <brobecker@gnat.com>
93
94 * language.h (default_word_break_characters): Add prototype.
95 * language.c (default_word_break_characters): New function.
96
97 2003-10-06 Andreas Schwab <schwab@suse.de>
98
99 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
100 with %eax.
101
102 2003-10-06 Andrew Cagney <cagney@redhat.com>
103
104 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
105 "h8500-tdep.c".
106 (z8k-tdep.o): Delete custom build rule.
107
108 2003-10-06 Andrew Cagney <cagney@redhat.com>
109
110 * Makefile.in: Update all dependencies.
111
112 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
113 No longer list PA as as obsolete candidate. List m32r as
114 broken instead of obsolete.
115
116 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
117 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
118 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
119 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
120 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
121 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
122 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
123 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
124 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
125 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
126 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
127 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
128 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
129 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
130 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
131 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
132 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
133 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
134 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
135 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
136 * config/z8k/z8k.mt: Ditto.
137
138 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
139 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
140 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
141 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
142 sparclite were removed.
143 * configure.host, configure.tgt: Remove corresponding tuples.
144
145 * breakpoint.c, breakpoint.h: Remove obsolete code.
146 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
147 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
148 * stabsread.h, xcoffread.c: Ditto.
149
150 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
151 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
152 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
153 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
154
155 2003-10-06 David Lecomber <dsl@sources.redhat.com>
156
157 * f-valprint.c: Reformatting
158
159 2003-10-06 Mark Kettenis <kettenis@gnu.org>
160
161 * x86-64-tdep.c: Remove duplicate comment.
162
163 * x86-64-tdep.c (x86_64_store_return_value): Don't use
164 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
165 names for return values. This fixes a bug since we looked at %rbx
166 instead of %rdx.
167
168 2003-10-05 Mark Kettenis <kettenis@gnu.org>
169
170 * x86-64-tdep.c: Include "regset.h".
171
172 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
173 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
174 sizeof_fpregset.
175 * i386-tdep.c: Include "regset.h".
176 (i386_supply_gregset): New function.
177 (i386_supply_fpregset): New function.
178 (i386_gdbarch_init): Initialze register set-related members of
179 TDEP.
180 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
181 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
182
183 2003-10-03 Andrew Cagney <cagney@redhat.com>
184
185 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
186 set extract_return_value, store_return_value and
187 use_struct_convention to ppc64_sysv_abi_extract_return_value,
188 ppc64_sysv_abi_store_return_value and
189 ppc64_sysv_abi_use_struct_convention.
190 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
191 (ppc64_sysv_abi_store_return_value): Declare.
192 (ppc64_sysv_abi_use_struct_convention): Declare.
193 * ppc-sysv-tdep.c (enum return_value_convention): Define.
194 (ppc64_sysv_abi_extract_return_value): New function.
195 (ppc64_sysv_abi_store_return_value): New function.
196 (ppc64_sysv_abi_use_struct_convention): New function.
197 (ppc64_sysv_abi_return_value): New function.
198
199 2003-10-03 Andrew Cagney <cagney@redhat.com>
200
201 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
202 convert a descriptor to a function when it's in the ".opd"
203 section.
204
205 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
206
207 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
208 reg_size to keep GCC silent.
209
210 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
211
212 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
213 base for DW_EH_PE_textrel encodings.
214 (read_encoded_value): Add a DW_EH_PE_textrel case.
215 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
216 section.
217
218 2003-10-03 Mark Kettenis <kettenis@gnu.org>
219
220 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
221
222 2003-10-02 Andrew Cagney <cagney@redhat.com>
223
224 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
225 REGISTER_RAW_SIZE.
226 * gdbarch.h, gdbarch.c: Re-generate.
227 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
228 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
229 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
230 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
231 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
232 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
233 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
234 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
235 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
236 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
237 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
238 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
239 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
240 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
241 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
242 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
243
244 2003-10-02 Jim Blandy <jimb@redhat.com>
245
246 * dwarf2read.c (struct die_info): Doc fix.
247
248 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
249
250 * sh-tdep.c: Running thru gdb_indent.sh.
251
252 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
253
254 * sh-tdep.c (sh_justify_value_in_reg): New function.
255 (sh_stack_allocsize): Ditto.
256 (flt_argreg_array): New array used for floating point argument
257 passing.
258 (sh_init_flt_argreg): New function.
259 (sh_next_flt_argreg): Ditto.
260 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
261 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
262 Fix argument passing strategy.
263 (sh_push_dummy_call_nofpu): Ditto.
264
265 2003-10-01 Andrew Cagney <cagney@redhat.com>
266
267 * value.h (register_value_being_returned): Declare. Replace
268 "value_being_returned".
269 * infcall.c (call_function_by_hand): Use
270 register_value_being_returned.
271 * infcmd.c (print_return_value): Call
272 "register_value_being_returned", handle struct return locally.
273 * values.c (register_value_being_returned): New function. Replace
274 "value_being_returned".
275
276 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
277
278 * linux-proc.c (linux_do_registers): New function.
279 (linux_make_note_section): Use linux_do_registers in case of
280 single threaded inferior programs.
281
282 2003-10-01 Andrew Cagney <cagney@redhat.com>
283
284 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
285 use STRUCT_ADDR. When not using "struct return convention", pass
286 "0" to "value_being_returned". Add FIXMEs.
287 * infcmd.c (print_return_value): Pass an explicit 0/1 to
288 value_being_returned. Add comments.
289 * values.c (value_being_returned): Add fixme.
290 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
291 (hppa_value_returned_from_stack): Add FIXME.
292
293 2003-09-30 David Carlton <carlton@kealia.com>
294
295 * dwarf2read.c (struct die_info): Add 'parent' field; replace
296 'has_children' and 'next' by 'child' and 'sibling'.
297 (read_comp_unit): Rework algorithm, breaking body into
298 read_die_and_children and read_die_and_siblings.
299 (read_die_and_children, read_die_and_siblings): New.
300 (read_full_die): Add 'has_children' argument; set it instead of
301 the die's 'has_children' field. Minor formatting cleanup.
302 (free_die_list): Use die->child and die->sibling instead of
303 die->next.
304 (dump_die_list): Ditto.
305 (sibling_die): Use die->sibling.
306 (psymtab_to_symtab_1): Use die's 'child' field in place of its
307 'has_children' and 'next' fields.
308 (process_die, read_file_scope, read_func_scope)
309 (read_lexical_block_scope, read_structure_scope)
310 (read_enumeration, read_array_type, read_common_block)
311 (read_namespace, read_subroutine_type, dump_die): Ditto.
312
313 2003-09-30 Andrew Cagney <cagney@redhat.com>
314
315 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
316 to 224, not 220.
317
318 2003-09-30 Andrew Cagney <cagney@redhat.com>
319
320 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
321 REGISTER_VIRTUAL_SIZE.
322 * gdbarch.h, gdbarch.c: Regenerate.
323 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
324 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
325 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
326
327 2003-09-29 Andrew Cagney <cagney@redhat.com>
328
329 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
330 DEPRECATED_REGISTER_VIRTUAL_TYPE.
331 * gdbarch.h, gdbarch.c: Regenerate.
332 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
333 * sh64-tdep.c, sparc-tdep.c: Update.
334
335 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
336 * remote-vxmips.c (vx_read_register): Ditto.
337 * remote-vx68.c (vx_read_register): Ditto.
338 * gnu-nat.c (inf_validate_procs): Ditto.
339
340 2003-09-29 J. Brobecker <brobecker@gnat.com>
341
342 * infcall.c (call_function_by_hand): Fix build failure
343 introduced in the previous change to this file.
344
345 2003-09-29 Andrew Cagney <cagney@redhat.com>
346
347 * NEWS: Mention Objective-C.
348
349 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
350
351 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
352 test if the register has been saved on the stack.
353 (arm_scan_prologue_cache): When analysing the instruction
354 "str lr, [sp, #-4]", save the address where lr has been stored.
355
356 2003-09-28 Andrew Cagney <cagney@redhat.com>
357
358 * frame.c (frame_read_unsigned_register): Delete function.
359 * frame.h (frame_read_unsigned_register): Delete declaration.
360 * sparc-tdep.c (sparc_init_extra_frame_info): Use
361 get_frame_register_unsigned.
362 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
363 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
364 * d10v-tdep.c (d10v_print_registers_info): Ditto.
365
366 * frame.h (frame_read_register): Delete declaration.
367 * frame.c (frame_read_register): Delete function.
368 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
369 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
370 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
371 * mips-tdep.c (mips_register_to_value): Ditto.
372 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
373 * d10v-tdep.c (d10v_print_registers_info): Ditto.
374
375 * frame.c (frame_read_signed_register): Delete function.
376 (frame_read_unsigned_register): Update comments.
377 * frame.h (frame_read_signed_register): Delete declaration.
378 * h8300-tdep.c (h8300_print_register): Use
379 get_frame_register_signed.
380 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
381
382 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
383 Rename VALUE_RETURNED_FROM_STACK.
384 * infcmd.c (print_return_value): Update.
385 * infcall.c (call_function_by_hand): Update.
386
387 2003-09-28 Mark Kettenis <kettenis@gnu.org>
388
389 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
390 regcache argument and reverse the order of the other two
391 arguments. Remove local regcache variable. Determine
392 architecture from REGCACHE. Update comments.
393 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
394 reverse the order of the other two arguments. Remove local
395 regcache variable. Determine architecture from REGCACHE. Update
396 comments.
397 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
398 prototypes. Update comments.
399 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
400 comment.
401 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
402 Update.
403 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
404 * i386-interix-nat.c (supply_fpregset): Update.
405 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
406 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
407 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
408 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
409 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
410 Update.
411 * i386obsd-tdep.c (fetch_core_registers): Update.
412 * i386v4-nat.c (supply_fpregset): Update.
413 * x86-64-linux-nat.c (supply_fpregset): Update.
414 * x86-64-linux-tdep.c (fetch_core_registers): Update.
415
416 2003-09-27 Mark Kettenis <kettenis@gnu.org>
417
418 * i386-tdep.h: Put opaque declarations in alphabetical
419 order. Remove spurious whitespace.
420 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
421 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
422 * i386-tdep.c (MM0_REGNUM): Remove define.
423 (i386_mmx_regnum_p): Add gdbarch argument.
424 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
425 Rewrite using new macro definitions for FPU/SSE registers.
426 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
427 definitions from i387-tdep.h.
428 (i386_register_name): Update.
429 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
430 new macro definitions for FPU/SSE registers.
431 (i386_extract_return_value): Determine whether floating-point
432 registers are present by examining REGCACHE's architecture.
433 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
434 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
435 FPU/SSE registers.
436 (i386_register_type): Update.
437 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
438 definitions for FPU registers. Use REGCACHE's architecture to
439 determine the appropriate register numbers.
440 (i386_pseudo_register_read, i386_pseudo_register_write,
441 i386_register_reggroup_p): Update.
442 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
443 TDEP->mm0_regnum.
444 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
445 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
446 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
447 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
448 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
449 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
450 *' to `void *'.
451 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
452 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
453 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
454 definitions for FPU/SSE registers.
455 (FXSAVE_MXCSR_ADDR): New define.
456 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
457 TDEP->mm0_regnum.
458 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
459 (I387_ST0_REGNUM): Define.
460
461 * regcache.h (get_regcache_arch): New prototype.
462 * regcache.c (get_regcache_arch): New function.
463
464 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
465 whitespace.
466
467 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
468 Initialize using ARRAY_SIZE.
469
470 2003-09-27 Andrew Cagney <cagney@redhat.com>
471
472 * arch-utils.c (deprecated_init_frame_pc_default): Rename
473 "init_frame_pc_default".
474 * arch-utils.h (deprecated_init_frame_pc_default): Update.
475 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
476 * vax-tdep.c (vax_gdbarch_init): Update.
477 * v850-tdep.c (v850_gdbarch_init): Update.
478 * sh64-tdep.c (sh64_gdbarch_init): Update.
479 * s390-tdep.c (s390_gdbarch_init): Update.
480 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
481 * mcore-tdep.c (mcore_gdbarch_init): Update.
482 * h8300-tdep.c (h8300_gdbarch_init): Update.
483 * cris-tdep.c (cris_gdbarch_init): Update.
484 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
485
486 2003-09-26 Mark Kettenis <kettenis@gnu.org>
487
488 * regset.h: New file.
489 * Makefile.in (regset_h): Add.
490
491 2003-09-25 Andrew Cagney <cagney@redhat.com>
492
493 * frame.h (deprecated_frame_saved_regs): Rename
494 get_frame_saved_regs.
495 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
496 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
497 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
498 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
499 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
500
501 2003-09-25 Andrew Cagney <cagney@redhat.com>
502
503 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
504 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
505 and Java.
506 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
507 arm*-*-* do not use the new frame code.
508
509 2003-09-25 David Carlton <carlton@kealia.com>
510
511 * c-exp.y: Remove 'register' declarations.
512 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
513
514 2003-09-25 David Carlton <carlton@kealia.com>
515
516 * c-exp.y: Include cp-support.h. Add qualified_type.
517 (yylex): Delete nested type hack; add comments.
518 * cp-namespace.c (cp_lookup_nested_type): New function.
519 * cp-support.h: Declare cp_lookup_nested_type.
520 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
521 instead of value_struct_elt_for_reference.
522 * valops.c: Include cp-support.h.
523 (value_aggregate_elt): New function.
524 (value_namespace_elt): Ditto.
525 (value_struct_elt_for_reference): Make static.
526 * value.h: Delete declaration of value_struct_elt_for_reference;
527 add declaration for value_aggregate_elt.
528 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
529 (valops.o): Ditto.
530
531 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
532
533 * stack.c: Include "reggroups.h".
534 (frame_info): Only display registers in all_reggroup.
535 * Makefile.in (stack.o): Update dependencies.
536
537 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
538
539 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
540 "add ip, sp #n" in the prologue.
541 (arm_scan_prologue): Ditto.
542
543 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
544
545 * MAINTAINERS (write after approval): Add myself.
546
547 2003-09-25 Andreas Schwab <schwab@suse.de>
548
549 * m68k-tdep.c: Include "dwarf2-frame.h".
550 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
551 * Makefile.in (m68k-tdep.o): Update dependencies.
552
553 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
554
555 * sh-tdep.c (struct frame_extra_info): Remove.
556 (struct sh_frame_cache): New structure.
557 (GET_SOURCE_REG): New macro extracting source register of an opcode.
558 (GET_TARGET_REG): Ditto but target register.
559 (GET_PUSHED_REG): Remove.
560 (IS_MOV_ARG_TO_REG): New macro.
561 (IS_MOV_ARG_TO_IND_R14): New macro.
562 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
563 (IS_MOVW_PCREL_TO_REG): New macro.
564 (IS_MOVL_PCREL_TO_REG): New macro.
565 (IS_SUB_REG_FROM_SP): New macro.
566 (IS_ARG_MOV): Remove.
567 (IS_MOV_TO_R14): Remove.
568 (IS_RESTORE_FP): New macro.
569 (IS_RTS): New macro.
570 (IS_LDS): New macro.
571 (IS_MOV_FP_SP): New macro.
572 (IS_ADD_REG_TO_FP): New macro.
573 (IS_ADD_IMM_FP): New macro.
574 (sh_skip_prologue_hard_way): Remove.
575 (sh_saved_pc_after_call): Remove.
576 (sh_frame_chain): Remove.
577 (sh_find_callers_reg): Remove.
578 (sh_nofp_frame_init_saved_regs): Remove.
579 (sh_fp_frame_init_saved_regs): Remove.
580 (sh_init_extra_frame_info): Remove.
581 (sh_analyze_prologue): New function.
582 (sh_skip_prologue): Remove deprecated code. Rely on new function
583 sh_analyze_prologue when after_prologue fails.
584 (sh_frame_saved_pc): Remove.
585 (sh_alloc_frame_cache): New function.
586 (sh_frame_cache): Ditto.
587 (sh_frame_prev_register): Ditto.
588 (sh_frame_this_id): Ditto.
589 (sh_frame_unwind): New structure defining the heuristic frame
590 sniffer interface.
591 (sh_frame_sniffer): New function.
592 (sh_unwind_sp): Ditto.
593 (sh_unwind_pc): Ditto.
594 (sh_unwind_dummy_id): Ditto.
595 (sh_frame_base_address): Ditto.
596 (sh_frame_base): New structure defining new frame base code.
597 (sh_in_function_epilogue_p): New function.
598 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
599 code and to call all new code instead. Initialize dwarf2 and
600 heuristic frame sniffer.
601
602 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
603
604 * parser-defs.h (struct exp_descriptor): New definition, containing
605 language-specific info for printing, prefixifying, dumping, and
606 evaluating expressions.
607 (exp_descriptor_standard): Declare new variable.
608 (print_subexp): Make global and declare here (from expprint.c).
609 (dump_subexp): Ditto.
610 (dump_subexp_body_standard): Declare.
611 (operator_length_standard): Declare.
612 (op_name_standard): Declare.
613 (print_subexp): Declare.
614 (print_subexp_standard): Declare.
615
616 * language.h (struct language_defn): Add la_exp_desc field to hold
617 pointer to table for language-specific operators.
618 Remove evaluate_exp field, which is now in struct exp_descriptor.
619
620 * parse.c (operator_length): Move most code to new
621 operator_length_standard function. Use language-specific information.
622 (operator_length_standard): New function taking most code from
623 operator_length.
624 (exp_descriptor_standard): New constant.
625
626 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
627 and OP_EXTENDED_LAST.
628
629 * expprint.c (print_subexp): Use language-specific print_subexp.
630 Make global; remove static declaration.
631 Move most code to print_subexp_standard.
632 (print_subexp_standard): New function, containing code formerly in
633 print_subexp.
634 (op_name): Add expression to argument signature.
635 Use langauge-specific op_name.
636 Move most code to op_name_standard.
637 (op_name_standard): New function, containing code formerly in op_name.
638 (dump_subexp): Use new version of op_name function.
639 Use language-specific dump_subexp_body, and move most existing code to
640 dump_subexp_body_standard.
641 (dump_raw_expression): Use new op_name interface.
642 (dump_subexp_body): Move most code to dump_subexp_body_standard.
643 (dump_subexp_body_standard): New function, containing code formerly
644 in dump_subexp_body.
645
646 * language.c (unknown_language): Add default la_exp_desc field and
647 remove evaluate_exp field.
648 (auto_language): Ditto.
649 (local_language): Ditto.
650 * f-lang.c (f_language_defn): Ditto.
651 * c-lang.c (c_language_defn): Ditto.
652 (cplus_language_defn): Ditto.
653 (asm_language_defn): Ditto.
654 (minimal_language_defn): Ditto.
655 * p-lang.c (pascal_language_defn): Ditto.
656 * m2-lang.c (m2_language_defn): Ditto.
657 * objc-lang.c (objc_language_defn): Ditto.
658
659 * jv-lang.c (exp_descriptor_java): New variable, containing
660 Java-specific expression evaluator.
661 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
662 field.
663 * scm-lang.c (exp_descriptor_scm): New variable, containing
664 Scheme-specific expression evaluator.
665 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
666 field.
667 * objc-lang.c (print_object_command): Take evaluate_exp from the
668 la_exp_desc field.
669
670 * Makefile.in (eval.o): Add dependency on parser-defs.h.
671
672 * eval.c: Include parser-defs.h for the full declaration of
673 la_exp_desc's type.
674 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
675
676 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
677
678 * parser-defs.h (operator_length): Declare.
679
680 * parse.c (length_of_subexp): Use operator_length to get operator
681 lengths and arities for operators.
682 Move most code to new operator_length function.
683 (operator_length): New function absorbing most code from
684 length_of_subexp.
685 (prefixify_subexp): Remove large case and use operator_length instead.
686 (parse_exp_1): Use renamings:
687 dump_prefix_expression => dump_raw_expression and
688 dump_postfix_expression => dump_prefix_expression.
689
690 * expression.h (dump_prefix_expression): Rename to ...
691 (dump_raw_expression): New name.
692 (dump_postfix_expression): Rename to ...
693 (dump_prefix_expression): New name.
694
695 * expprint.c (dump_subexp): Make global. Add comment.
696 Move most existing code to dump_subexp_body.
697 (dump_subexp_body): New function.
698 (dump_prefix_expression): Rename to dump_raw_expression.
699 Remove attempt to print the expression via print_expression: it can't
700 work before the expression is prefixified.
701 (dump_raw_expression): Renamed from dump_prefix_expression.
702 (dump_postfix_expression): Rename to dump_prefix_expression, since
703 that's what it does.
704 Remove 'note' parameter, since this routine must be used on
705 prefixified expression.
706 (dump_prefix_expression): Renamed from dump_postfix_expression.
707
708 2003-09-22 Jim Blandy <jimb@redhat.com>
709
710 * dwarf2read.c (read_array_type): When building the type for an
711 array of unspecified length, make sure to choose the upper bound
712 so that the array's total length comes out to be zero --- that's
713 how we represent such arrays.
714
715 2003-09-22 Michael Chastain <mec@shout.net>
716
717 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
718
719 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
720
721 * top.c (quit_force): Fix indirect call to quit_target so
722 a struct qt_args pointer is passed.
723
724 2003-09-22 Andrew Cagney <cagney@redhat.com>
725
726 * arch-utils.h (init_frame_pc_noop): Delete declaration.
727 * arch-utils.c (init_frame_pc_noop): Delete function.
728 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
729 "init_frame_pc".
730 * mips-tdep.c (mips_gdbarch_init): Ditto.
731 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
732 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
733 declaration.
734 (DEPRECATED_INIT_FRAME_PC): Delete macro.
735 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
736 declaration.
737 (DEPRECATED_INIT_FRAME_PC): Delete macro.
738
739 2003-09-22 Anthony Green <green@redhat.com>
740
741 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
742 declaration.
743
744 2003-09-20 Andrew Cagney <cagney@redhat.com>
745
746 * breakpoint.c: Eliminate ARGSUSED.
747 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
748 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
749 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
750 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
751 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
752 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
753 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
754 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
755 * wince.c, remote-vx.c: Ditto.
756
757 * cli/cli-script.c: Remove "register" attributes.
758 * config/pa/tm-hppa.h: Ditto.
759 * cli/cli-decode.c: Ditto.
760 * cli/cli-cmds.c: Ditto.
761
762 2003-09-19 Andrew Cagney <cagney@redhat.com>
763
764 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
765 DEPRECATED_NPC_REGNUM.
766 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
767
768 2003-09-19 Christopher Faylor <cgf@redhat.com>
769
770 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
771
772 2003-09-19 Jim Blandy <jimb@redhat.com>
773
774 * macrotab.c (macro_include): Use the correct comparison to find
775 the appropriate place for this inclusion in the list.
776
777 2003-09-19 Andrew Cagney <cagney@redhat.com>
778
779 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
780 (DEPRECATED_HPUX_TEXT_END): Define.
781 (deprecated_hpux_text_end): Declare.
782 (struct target_ops): Declare opaque.
783 * hppah-nat.c (text_end): Make static.
784 (deprecated_hpux_text_end): New function.
785 * exec.c (text_end): Delete global variable.
786 (NEED_TEXT_START_END): Do not define.
787 (exec_file_attach): Replace code computing "text_end" code with
788 call to DEPRECATED_HPUX_TEXT_END.
789
790 2003-09-19 Andrew Cagney <cagney@redhat.com>
791
792 * utils.c (align_up, align_down): New functions.
793 * defs.h (align_up, align_down): Declare.
794 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
795 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
796 and "align_down".
797 (round_up, round_down): Delete functions.
798 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
799 "align_down".
800 (ROUND_DOWN, ROUND_UP): Delete macros.
801 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
802 * h8300-tdep.c: Replace "round_up" and "round_down" with
803 "align_up" and "align_down".
804 (round_up, round_down): Delete macros.
805 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
806 "align_down".
807 (ROUND_UP, ROUND_DOWN): Delete macros.
808
809 2003-09-18 J. Brobecker <brobecker@gnat.com>
810
811 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
812 hard-coded constant. Use the proper machine name instead.
813
814 2003-09-17 Andrew Cagney <cagney@redhat.com>
815
816 * sparc-tdep.c (legacy_register_name): Delete function.
817 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
818 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
819 * infcmd.c (gdb_register_name): Delete variable.
820 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
821 REGISTER_NAME and "tm.h".
822 * gdbarch.h, gdbarch.c: Regenerate.
823 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
824 REGISTER_NAMES in comments.
825 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
826 * m68klinux-nat.c (regmap): Ditto.
827
828 2003-09-17 Jim Blandy <jimb@redhat.com>
829
830 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
831
832 2003-09-17 Andrew Cagney <cagney@redhat.com>
833
834 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
835 (ppcnbsd_init_abi): Set "use_struct_convention" to
836 "ppcnbsd_use_struct_convention".
837
838 2003-09-17 Mark Kettenis <kettenis@gnu.org>
839
840 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
841 * gdbarch.h, gdbarch.c: Regenerate.
842 (stabs_argument_has_addr): New architecture method.
843 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
844 * arch-utils.c: Include "buildsym.h".
845 (default_stabs_argument_has_addr): New function.
846 * stabsread.c (define_symbol): Use stabs_argument_has_addr
847 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
848
849 2003-09-17 Andrew Cagney <cagney@redhat.com>
850
851 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
852 * gdbarch.h, gdbarch.c: Regenerate.
853 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
854 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
855 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
856 * sparcnbsd-tdep.c: Update.
857
858 2003-09-17 Andrew Cagney <cagney@redhat.com>
859
860 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
861 * gdbarch.h, gdbarch.c: Regenerate.
862 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
863 * d10v-tdep.c, frame.c: Update.
864 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
865 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
866 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
867 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
868 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
869 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
870 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
871 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
872 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
873 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
874 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
875 * config/pa/nm-hppah.h: Update.
876
877 2003-09-16 Andrew Cagney <cagney@redhat.com>
878
879 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
880 "use_struct_convention" to "ppc_linux_use_struct_convention".
881 (ppc_linux_use_struct_convention): New function.
882 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
883 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
884 "rs6000_use_struct_convention".
885 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
886 declaration.
887 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
888 Delete function.
889
890 2003-09-16 Andrew Cagney <cagney@redhat.com>
891
892 * buildsym.c: Remove more occurances of "register".
893 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
894 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
895 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
896 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
897 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
898 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
899 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
900 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
901
902 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
903
904 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
905 numbers to enumeration values.
906 * sh-tdep.c: Accomodate above change.
907 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
908 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
909 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
910 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
911 (IS_FPUSH): Rename from IS_FMOV.
912 (sh_extract_struct_value_address): Remove useless comment.
913 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
914 instead of own local values.
915 (sh_dump_tdep): Remove.
916 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
917 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
918
919 2003-09-15 Andrew Cagney <cagney@redhat.com>
920
921 * doublest.c (convert_floatformat_to_doublest): No longer need to
922 cast "exp_bias" to an int. Reverts 2002-12-04 change.
923
924 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
925
926 * values.c (unpack_double): Call floatformat_is_valid.
927
928 2003-09-15 Mark Kettenis <kettenis@gnu.org>
929
930 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
931 ps_strings into a long.
932
933 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
934 _initialize_am64fbsd_nat.
935
936 2003-09-15 Kevin Buettner <kevinb@redhat.com>
937
938 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
939 associated with DW_AT_ranges attribute is out of bounds.
940
941 2003-09-15 David Lecomber <dsl@sources.redhat.com>
942
943 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
944
945 2003-09-14 Michael Chastain <mec@shout.net>
946
947 * config/m68k/nm-apollo68v.h: Delete.
948 * config/m68k/xm-apollo68v.h: Delete.
949
950 2003-09-14 Andrew Cagney <cagney@redhat.com>
951
952 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
953 * dcache.c: Update copyrights and descriptions.
954 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
955
956 2003-09-14 Andrew Cagney <cagney@redhat.com>
957
958 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
959 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
960
961 2003-09-14 Andrew Cagney <cagney@redhat.com>
962
963 * alpha-nat.c: Remove some occurances of "register".
964 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
965 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
966 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
967 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
968 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
969 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
970 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
971 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
972 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
973 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
974 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
975 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
976 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
977 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
978 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
979 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
980 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
981 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
982 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
983 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
984 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
985 * values.c, vax-tdep.c, xcoffread.c: Ditto.
986
987 2003-09-13 Andrew Cagney <cagney@redhat.com>
988
989 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
990 * ppc-tdep.h (struct regcache): Declare opaque.
991 * objfiles.h (struct objfile_data): Declare opaque.
992 * cp-support.h (struct objfile): Declare opaque.
993 * linux-nat.h (target_waitstatus): Declare opaque.
994
995 2003-09-14 Mark Kettenis <kettenis@gnu.org>
996
997 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
998 (stabs_argument_has_addr): New architecture method.
999 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1000 * arch-utils.c: Include "buildsym.h".
1001 (default_stabs_argument_has_addr): New function.
1002 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1003 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1004
1005 * cris-tdep.c (cris_gdbarch_init): Set
1006 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1007 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1008 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1009 * mips-tdep.c (mips_gdbarch_init): Likewise.
1010 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1011 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1012
1013 2003-09-13 Andrew Cagney <cagney@redhat.com>
1014
1015 * values.c (using_struct_return): Delete "function" and "funcaddr"
1016 parameters.
1017 * value.h (using_struct_return): Update declaration.
1018 * infcmd.c (finish_command_continuation): Update.
1019 (finish_command): Update.
1020 * infcall.c (call_function_by_hand): Update.
1021 * eval.c (evaluate_subexp_standard): Update.
1022
1023 2003-09-13 Christopher Faylor <cgf@redhat.com>
1024
1025 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1026 SSE registers since gdb will not operate correctly without this.
1027 Restore include file ordering munged in previous change.
1028 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1029
1030 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1031
1032 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1033 REG_STRUCT_HAS_ADDR.
1034 * gdbarch.c, gdbarch.h: Updated.
1035 * infcall.c (call_function_by_hand): Update.
1036 * stabsread.c (define_symbol): Updated.
1037
1038 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1039
1040 2003-09-12 Christopher Faylor <cgf@redhat.com>
1041
1042 * win32-nat.c: Reorganize so that defines used by target headers are
1043 actually defined by the system headers.
1044 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1045 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1046
1047 2003-09-12 Jim Blandy <jimb@redhat.com>
1048
1049 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1050 the file has no .data, .bss, or .rodata sections. Instead wait
1051 until we see a variable alleged to live in one of those sections.
1052
1053 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1054 .bss section, presume that any variables we find live in the
1055 .rodata section.
1056
1057 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1058 offsets for global and static variables.
1059
1060 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1061 symbol types are, by definition, in the .data section, so it is
1062 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1063 If there is no .data section, there should be no N_DATA or N_DATA
1064 | N_EXT symbols.
1065
1066 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1067
1068 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1069 (amd64fbsd_sigcontext_addr): Rewrite.
1070 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1071 with correct values.
1072 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1073 (amd64fbsd_init_abi): Fix typo.
1074
1075 2003-09-12 Andrew Cagney <cagney@redhat.com>
1076
1077 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1078 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1079
1080 2003-09-12 Andrew Cagney <cagney@redhat.com>
1081
1082 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1083 "entry_file_highpc". Update comments.
1084 * defs.h (deprecated_inside_entry_file): Rename
1085 "inside_entry_file".
1086 * blockframe.c (deprecated_inside_entry_file): Rename
1087 "inside_entry_file".
1088 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1089 * vax-tdep.c (vax_frame_chain): Update.
1090 * sh64-tdep.c (sh64_frame_chain): Update.
1091 * sh-tdep.c (sh_frame_chain): Update.
1092 * rs6000-tdep.c (rs6000_frame_chain): Update.
1093 * ns32k-tdep.c (ns32k_frame_chain): Update.
1094 * mips-tdep.c (mips_frame_chain): Update.
1095 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1096 * m32r-tdep.c (m32r_frame_this_id): Update.
1097 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1098 * frv-tdep.c (frv_frame_this_id): Update.
1099 * d10v-tdep.c (d10v_frame_this_id): Update.
1100 * cris-tdep.c (cris_frame_chain): Update.
1101 * blockframe.c (legacy_frame_chain_valid): Update.
1102 * avr-tdep.c (avr_frame_this_id): Update.
1103 * arm-tdep.c (arm_prologue_this_id): Update.
1104 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1105 * objfiles.c (objfile_relocate): Update.
1106 * mipsread.c (mipscoff_symfile_read): Update.
1107 (mipscoff_symfile_read): Update.
1108 * mdebugread.c (parse_partial_symbols): Update.
1109 * dwarfread.c (read_file_scope): Update.
1110 * dwarf2read.c (read_file_scope): Update.
1111 * dbxread.c (read_dbx_symtab): Update.
1112 (read_dbx_symtab): Update.
1113 * coffread.c (complete_symtab): Update.
1114
1115 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1116
1117 * top.c (quit_target): New static helper function.
1118 (quit_force): Moved code to quit_target(). Call quit_target()
1119 via catch_errors() to catch errors during quit.
1120
1121 2003-09-11 David Carlton <carlton@kealia.com>
1122
1123 * buildsym.c (finish_block): Use allocate_block to allocate the
1124 block.
1125 * mdebugread.c (new_block): Add FIXME.
1126
1127 2003-09-11 David Carlton <carlton@kealia.com>
1128
1129 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1130 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1131 (recursive_dump_type): Ditto.
1132 * printcmd.c (print_formatted): Ditto.
1133 * typeprint.c (print_type_scalar): Ditto.
1134 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1135 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1136 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1137 maint_cplus_cmd_list.
1138 * cp-support.c: Make maint_cplus_cmd_list extern.
1139 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1140 command.h.
1141 (lookup_symbol_file): Look in possible namespace blocks when
1142 appropriate.
1143 (initialize_namespace_symtab): New.
1144 (get_possible_namespace_block, free_namespace_block)
1145 (check_possible_namespace_symbols)
1146 (check_possible_namespace_symbols_loop)
1147 (check_one_possible_namespace_symbol)
1148 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1149 (_initialize_cp_namespace): Ditto.
1150 * block.h: Declare allocate_block.
1151 * block.c (allocate_block): New.
1152 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1153 allocate_block.
1154 * symfile.h: Update declaration of add_psymbol_to_list.
1155 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1156 question.
1157 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1158 scan_partial_symbols_call.
1159 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1160 helper functions.
1161 (add_partial_symbol): If necessary, scan mangled names for names
1162 of namespaces.
1163 (add_partial_namespace): Add NAMESPACE argument; generate partial
1164 symbols associated to namespaces.
1165 (add_partial_enumeration): Add NAMESPACE argument.
1166 (new_symbol): Allow namespace syms.
1167 (read_namespace): Generate namespace syms.
1168 * objfiles.h: Add opaque declaration of struct symtab.
1169 (struct objfile): Add cp_namespace_symtab member.
1170 * objfiles.c (allocate_objfile): Set
1171 objfile->cp_namespace_symtab.
1172 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1173 dictionary_h, command_h.
1174
1175 2003-09-11 Andrew Cagney <cagney@redhat.com>
1176
1177 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1178 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1179 near the function's end.
1180 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1181 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1182 regcache_raw_write_signed to set SP_REGNUM.
1183
1184 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1185
1186 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1187 orig_addrs is set up properly.
1188
1189 2003-09-11 Andrew Cagney <cagney@redhat.com>
1190
1191 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1192 * gdbarch.h, gdbarch.c: Re-generate.
1193 * infcall.c (call_function_by_hand): Update.
1194 * hppa-tdep.c (hppa_push_arguments): Update.
1195 * ada-lang.c (place_on_stack): Update.
1196 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1197 * sparc-tdep.c (sparc_gdbarch_init): Update.
1198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1199 * hppa-tdep.c (hppa_gdbarch_init): Update.
1200 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1201 stack_align.
1202
1203 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1204
1205 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1206 register do need a frame.
1207
1208 2003-09-11 Andrew Cagney <cagney@redhat.com>
1209
1210 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1211 buildable since GDB 5.0.
1212 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1213 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1214 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1215 * irix4-nat.c: Delete file.
1216 * config/mips/irix4.mh: Delete file.
1217 * config/mips/irix3.mh: Delete file.
1218 * config/mips/irix3.mt: Delete file.
1219 * config/mips/tm-irix3.h: Delete file.
1220 * config/mips/nm-irix3.h: Delete file.
1221 * config/mips/xm-irix3.h: Delete file.
1222 * config/mips/nm-irix4.h: Delete file.
1223 * config/mips/xm-irix4.h: Delete file.
1224 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1225
1226 2003-09-10 J. Brobecker <brobecker@gnat.com>
1227
1228 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1229 * Makefile.in (hppa-tdep.o): Update dependencies.
1230
1231 2003-09-10 James E Wilson <wilson@specifixinc.com>
1232
1233 * MAINTAINERS: Change my e-mail address. Move to paper trail
1234 section.
1235
1236 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1237
1238 * MAINTAINERS (frv): New ISA entry.
1239
1240 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1241
1242 * frv-tdep.c (dis-asm.h): Include.
1243 * Makefile.in (frv-tdep.o): Update dependencies.
1244
1245 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1246
1247 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1248 Fix typo for high range of floating registers.
1249
1250 2003-09-09 David Carlton <carlton@kealia.com>
1251
1252 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1253 highpc initialization here out of scan_partial_symbols.
1254 (scan_partial_symbols): Restructure into a recursive version,
1255 calling add_partial_namespace and add_partial_enumeration when
1256 appropriate.
1257 (add_partial_namespace): New.
1258 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1259
1260 2003-09-09 Andrew Cagney <cagney@redhat.com>
1261
1262 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1263 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1264 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1265 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1266
1267 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1268 (rs6000_push_dummy_call): Set the "TOC" register.
1269
1270 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1271 methods "max_register_raw_size", "max_register_virtual_size" or
1272 "register_virtual_size".
1273
1274 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1275
1276 * MAINTAINERS: Update my e-mail address.
1277
1278 2003-09-09 Andrew Cagney <cagney@redhat.com>
1279
1280 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1281 (rs6000_push_dummy_call): Store the struct return address.
1282 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1283
1284 2003-09-09 Andrew Cagney <cagney@redhat.com>
1285
1286 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1287 "ppc_sysv_abi_push_arguments".
1288 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1289 "ppc_sysv_abi_push_arguments".
1290 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1291 instead of "push_arguments".
1292 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1293
1294 2003-09-09 Andrew Cagney <cagney@redhat.com>
1295
1296 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1297 instead of CALL_DUMMY_ADDRESS.
1298
1299 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1300
1301 * p-lang.c: Eliminate "register".
1302 * c-lang.c: Ditto.
1303 * expprint.c: Ditto.
1304 * f-lang.c: Ditto.
1305 * jv-lang.c: Ditto.
1306 * language.c: Ditto.
1307 * m2-lang.c: Ditto.
1308 * parse.c: Ditto.
1309 * scm-lang.c: Ditto.
1310 * objc-lang.c: Ditto.
1311
1312 2003-09-09 Nick Clifton <nickc@redhat.com>
1313
1314 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1315
1316 2003-09-04 Andrew Cagney <cagney@redhat.com>
1317
1318 * avr-tdep.c: Include "dis-asm.h".
1319 * cris-tdep.c: Include "dis-asm.h".
1320 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1321 instead of corresponding typedef.
1322 * h8300-tdep.c: Include "dis-asm.h".
1323 * ia64-tdep.c: Include "dis-asm.h".
1324 * i386-tdep.c: Include "dis-asm.h".
1325 (i386_print_insn): Use "struct disassemble_info" instead of
1326 corresponding typedef.
1327 * m68k-tdep.c: Include "dis-asm.h".
1328 * mcore-tdep.c: Include "dis-asm.h".
1329 * mips-tdep.c: Include "dis-asm.h".
1330 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1331 instead of corresponding typedef.
1332 * ns32k-tdep.c: Include "dis-asm.h".
1333 * s390-tdep.c: Include "dis-asm.h".
1334 * sparc-tdep.c: Include "dis-asm.h".
1335 * vax-tdep.c: Include "dis-asm.h".
1336 * v850-tdep.c: Include "dis-asm.h".
1337 * mn10300-tdep.c: Include "dis-asm.h".
1338 * rs6000-tdep.c: Include "dis-asm.h".
1339 * xstormy16-tdep.c: Include "dis-asm.h".
1340 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1341 print_insn_xstormy16.
1342 * Makefile.in (v850-tdep.o): Update dependencies.
1343 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1344 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1345 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1346 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1347 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1348 (gdbarch_h): Remove $(dis_asm_h).
1349 * disasm.c: Include "dis-asm.h".
1350 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1351 corresponding typedef.
1352 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1353 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1354 * gdbarch.sh: Do not include "dis-asm.h".
1355 (struct disassemble_info): Declare opaque.
1356 (TARGET_PRINT_INSN): Update declaration.
1357 * gdbarch.h, gdbarch.c: Re-generate.
1358
1359 2003-09-08 Andrew Cagney <cagney@redhat.com>
1360
1361 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1362 CALL_DUMMY_ADDRESS, change to a predicate.
1363 * gdbarch.h, gdbarch.c: Re-generate.
1364 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1365 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1366 * infcall.c (call_function_by_hand): Ditto.
1367 * sparc-tdep.c (sparc_push_return_address): Ditto.
1368 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1369 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1370 CALL_DUMMY_ADDRESS with entry_point_address.
1371 * v850-tdep.c (v850_push_return_address): Ditto.
1372 * s390-tdep.c (s390_push_return_address): Ditto.
1373 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1374 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1375 * mcore-tdep.c (mcore_push_return_address): Ditto.
1376 * cris-tdep.c (cris_push_return_address): Ditto.
1377 * arm-tdep.c (arm_push_return_address): Ditto.
1378
1379 2003-09-08 Andrew Cagney <cagney@redhat.com>
1380
1381 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1382 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1383 and REG_UNMODIFIED to REG_SAME_VALUE.
1384 (execute_cfa_program): Update.
1385 (dwarf2_frame_cache): Update. Initialize table to
1386 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1387 location.
1388 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1389
1390 2003-09-08 Andrew Cagney <cagney@redhat.com>
1391
1392 * gnu-nat.c: Remove "inline" function attribute.
1393 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1394
1395 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1396
1397 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1398 target.
1399
1400 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1401
1402 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1403 (frame_extra_info): Rename this struct to frv_unwind_cache.
1404 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1405 Add fields ``prev_sp'' and ``base''.
1406 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1407 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1408 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1409 Delete.
1410 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1411 Revise all callers. Fill in the unwind cache argument and make
1412 other adjustments to account for new frame mechanisms.
1413 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1414 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1415 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1416 (frv_frame_unwind, frv_frame_base): New structs.
1417 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1418 additional arguments expected by this method and adjust function
1419 body accordingly.
1420 (frv_gdbarch_init): Remove calls to the following functions:
1421 set_gdbarch_deprecated_init_frame_pc(),
1422 set_gdbarch_deprecated_saved_pc_after_call(),
1423 set_gdbarch_deprecated_frame_chain(),
1424 set_gdbarch_deprecated_frame_saved_pc(),
1425 set_gdbarch_deprecated_frame_init_saved_regs(),
1426 set_gdbarch_deprecated_push_arguments(),
1427 set_gdbarch_deprecated_push_return_address(),
1428 set_gdbarch_deprecated_pop_frame(),
1429 set_gdbarch_deprecated_call_dummy_words(),
1430 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1431 set_gdbarch_deprecated_init_extra_frame_info(),
1432 set_gdbarch_deprecated_dummy_write_sp(), and
1433 set_gdbarch_deprecated_pc_in_call_dummy().
1434 Add calls to the following functions:
1435 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1436 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1437 frame_base_set_default().
1438 * Makefile.in (frv-tdep.o): Update dependencies.
1439
1440 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1441
1442 * dwarf2-frame.c (read_encoded_value): Add support for
1443 DW_EH_PE_aligned encoding.
1444
1445 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1446
1447 * infrun.c (normal_stop): Don't print a message if the inferior
1448 has exited.
1449
1450 2003-09-08 Jim Blandy <jimb@redhat.com>
1451
1452 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1453 * dbxread.c: #include "gdb_assert.h".
1454 (read_dbx_symtab): If the objfile has no .data section, use the
1455 section index for the .bss section instead.
1456
1457 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1458
1459 * frame.c (deprecated_safe_get_selected_frame): New function.
1460 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1461 * findvar.c (read_var_value): Call it.
1462
1463 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1464
1465 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1466 (sh64-tdep.o): Add dependencies.
1467 * configure.tgt: Add FIXME to sh-*-linux*.
1468 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1469 (sh_gdbarch_init): Always set correct sh_show_regs function
1470 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1471 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1472 * sh64-tdep.c: New file, containing all sh64 related code from
1473 sh-tdep.c.
1474 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1475 * config/sh/linux.mt (TDEPFILES): Ditto.
1476 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1477 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1478 * config/sh/wince.mt (TDEPFILES): Ditto.
1479
1480 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1481
1482 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1483 (stop_wait_callback): Handle !lp->signalled also.
1484 (lin_lwp_has_pending, flush_callback): New functions.
1485 (lin_lwp_wait): Call flush_callback.
1486 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1487 (linux_proc_pending_signals): New function.
1488 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1489
1490 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1491
1492 From Nick Kelsey <nickk@ubicom.com>:
1493 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1494 when the stop PC is at the beginning of a function also.
1495
1496 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1497
1498 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1499 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1500
1501 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1502
1503 * sol-thread.c: Include "gdb_string.h".
1504
1505 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1506
1507 * gcore.c: Reorder include files in alphabetical order. Include
1508 "gdb_assert.h". Various coding style fixes.
1509 (derive_stack_segment, derive_heap_segment): Replace check for
1510 non-null BOTTOM and TOP with gdb_assert.
1511 (derive_heap_segment): Replace check for successful creation of
1512 ZERO with gdb_assert.
1513 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1514
1515 2003-09-04 Andrew Cagney <cagney@redhat.com>
1516
1517 * thread-db.c (verbose_dlsym): New function.
1518 (thread_db_load): Use verbose_dlsym
1519 (thread_db_new_objfile): Print that libthread_db was loaded, and
1520 that thread debugging was enabled.
1521
1522 2003-09-04 Andrew Cagney <cagney@redhat.com>
1523
1524 * configure.tgt: Add "mips64*-*-*" target. Delete
1525 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1526 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1527 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1528 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1529 mips*-sony-*, and mips64*-*-elf* targets.
1530 * config/mips/embedl.mt: Delete file.
1531 * config/mips/embedl64.mt: Delete file.
1532 * config/mips/mips.mt: Delete file.
1533 * config/mips/mips64.mt: Delete file.
1534 * config/mips/tm-embed.h: Delete file.
1535 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1536 * config/mips/embed64.mt: Delete out-of-date comment.
1537
1538 2003-09-04 Andrew Cagney <cagney@redhat.com>
1539
1540 * hppa-tdep.c (hppa_gdbarch_init): Set
1541 "have_nonsteppable_watchpoint".
1542 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1543 * mips-tdep.c (mips_dump_tdep): Do not print
1544 HAVE_NONSTEPPABLE_WATCHPOINT.
1545 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1546 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1547 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1548 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1549
1550 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1551
1552 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1553 unused code. Add comment.
1554
1555 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1556
1557 * breakpoint.c (watchpoint_check): Check for pc being in an
1558 epilogue if watchpoint frame couldn't be found.
1559
1560 2003-09-04 Andrew Cagney <cagney@redhat.com>
1561
1562 * Makefile.in: Re-generate all dependencies.
1563
1564 2003-09-03 Andrew Cagney <cagney@redhat.com>
1565
1566 * arch-utils.h (legacy_print_insn): Delete declaration.
1567 * arch-utils.c (legacy_print_insn): Delete function.
1568 * disasm.c (deprecated_tm_print_insn_info): Delete.
1569 (_initialize_disasm): Delete function, contained code initializing
1570 deprecated_tm_print_insn_info.
1571 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1572 (deprecated_tm_print_insn_info): Delete.
1573 (TARGET_PRINT_INSN): Do not provide a default.
1574 * gdbarch.h, gdbarch.c: Re-generate.
1575
1576 2003-09-03 Andrew Cagney <cagney@redhat.com>
1577
1578 * disasm.c (fprintf_disasm): New function.
1579 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1580 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1581 reverts 2003-08-14 change.
1582 (_initialize_disasm): Call "init_disassemble_info", instead of
1583 INIT_DISASSEMBLE_INFO_NO_ARCH.
1584
1585 2003-09-03 Michael Snyder <msnyder@redhat.com>
1586
1587 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1588
1589 2003-09-03 Andrew Cagney <cagney@redhat.com>
1590
1591 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1592 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1593 * symfile.c (syms_from_objfile): Update.
1594 (reread_symbols): `Update
1595 * exec.c (exec_file_attach): Update.
1596 (exec_file_attach): Update.
1597 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1598 2003-08-29 change.
1599 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1600
1601 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1602
1603 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1604 trad-frame.h.
1605 (arm_get_cache): Delete macro.
1606 (struct arm_prologue_cache): Update comments. Make saved_regs into
1607 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1608 to prev_sp.
1609 (thumb_scan_prologue): Update for cache changes. Don't call
1610 DEPRECATED_PC_IN_CALL_DUMMY.
1611 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1612 argument and use it in desperation search for our prologue. Do not
1613 search past the specified PC.
1614 (arm_make_prologue_cache): Simplify.
1615
1616 (arm_prologue_this_id, arm_prologue_prev_register)
1617 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1618 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1619 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1620 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1621 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1622
1623 (arm_frame_chain_valid, arm_find_callers_reg)
1624 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1625 (arm_pop_frame): Delete obsolete methods.
1626 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1627
1628 (arm_gdbarch_init): Update for new frame methods. Register prologue
1629 and sigtramp unwinders. Set the default frame base method.
1630
1631 * Makefile.in (arm-tdep.o): Update dependencies.
1632 * varobj.c (find_frame_addr_in_frame_chain): Call
1633 get_frame_base_address.
1634 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1635
1636 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1637
1638 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1639 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1640 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1641 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1642 Take NEXT_FRAME and CACHE arguments. Call
1643 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1644 Set unwound_pc in CACHE instead of modifying the frame argument.
1645 Don't bother checking the frame type when looking for sigtramp
1646 frames.
1647 (arm_make_prologue_cache, arm_frame_chain)
1648 (arm_init_extra_frame_info): New functions.
1649
1650 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1651
1652 * arm-tdep.c (arm_get_cache): Define.
1653 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1654 unwound_sp, unwound_pc, and saved_regs.
1655 (thumb_scan_prologue): Take a cache instead of the frame.
1656 (arm_scan_prologue): Likewise.
1657 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1658 instead of a temporary frame.
1659 (arm_init_extra_frame_info): Allocate and use a cache.
1660 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1661
1662 2003-09-03 Andrew Cagney <cagney@redhat.com>
1663
1664 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1665 * config/mips/wince.mt (TM_CLIBS): Ditto.
1666 * config/sh/wince.mt (TM_CLIBS): Ditto.
1667 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1668 * config/sparc/sp64.mt (CC): Delete.
1669
1670 2003-09-03 Andrew Cagney <cagney@redhat.com>
1671
1672 * defs.h: Do not include "arch-utils.h".
1673 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1674 GDB_MULTI_ARCH_PURE.
1675 * configure.in (GDB_MULTI_ARCH): Do not define.
1676 * configure, config.in: Regenerate.
1677 * configure.tgt: Do not set variable "gdb_multi_arch".
1678 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1679 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1680 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1681 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1682 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1683 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1684 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1685 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1686 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1687 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1688 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1689 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1690 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1691 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1692 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1693 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1694 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1695 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1696
1697 2003-08-30 Michael Chastain <mec@shout.net>
1698
1699 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1700 * config/m68k/nm-hp300hpux.h: Delete.
1701 * config/m68k/tm-hp300hpux.h: Delete.
1702 * config/m68k/xm-hp300hpux.h: Delete.
1703 * config/m68k/xm-hp300bsd.h: Delete.
1704 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1705 tm-hp300hpux.h, xm-hp300hpux.h.
1706 * somsolib.c: Remove comment about hp300 shared libraries.
1707
1708 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1709
1710 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1711 Only define PTRACE_GET_THREAD_AREA is not already defined.
1712 Various style fixes in code and comments and some additional
1713 spelling fixes in comments. Move after functions dealing with
1714 debug registers.
1715 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1716 Fix coding-style.
1717
1718 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1719 frame_unwind_register_unsigned instead of
1720 frame_unwind_unsigned_register.
1721
1722 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1723
1724 * configure.in: Search for gethostbyname in libnsl.
1725 * configure: Regenerated.
1726
1727 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1728
1729 * configure.in: Remove redundant AC_MSG_RESULT in check for
1730 uintptr_t in stdint.h.
1731 * configure: Regenerated.
1732
1733 * amd64-nat.h (struct regcache): Add opaque declaration.
1734
1735 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1736 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1737 Change "register array" to "register cache" in comments.
1738 (x86_64_linux_gregset64_reg_offset): New variable.
1739 (GETREGS_SUPPLIES): Remove macro.
1740 (supply_gregset): Call amd64_supply_native_gregset instead of
1741 x86_64_linux_supply_gregset.
1742 (fill_gregset): Rename `regno' to `regnum'. Call
1743 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1744 (store_regs): Rename `regno' to `regnum'.
1745 (store_fpregs): Rename `regno' to `regnum'.
1746 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1747 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1748 Reorganize function a bit.
1749 (store_inferior_registers): Rename `regno' to `regnum'. Use
1750 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1751 Reorganize function a bit.
1752 (_initialize_x86_64_linux_nat): New function.
1753 * config/i386/x86-64linux.mh.
1754
1755 2003-08-29 Andrew Cagney <cagney@redhat.com>
1756
1757 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1758 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1759 (target_remove_watchpoint): Delete macro.
1760 (target_insert_watchpoint): Delete macro.
1761 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1762 (remote_mips_stopped_by_watchpoint): Delete declaration.
1763 (remote_mips_remove_watchpoint): Delete declaration.
1764 (remote_mips_set_watchpoint): Delete declaration.
1765 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1766 * remote-mips.c (_initialize_remote_mips): Set
1767 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1768 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1769 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1770 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1771 (mips_stopped_by_watchpoint): Rename
1772 remote_mips_stopped_by_watchpoint.
1773 (mips_can_hardware_watchpoint): Rename
1774 remote_mips_can_use_hardware_watchpoint, update function
1775 signature.
1776
1777 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1778
1779 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1780 USER_DS. We haven't given them a register number yet.
1781
1782 * amd64-nat.h: New file.
1783 * amd64-nat.c: New file.
1784 * amd64fbsd-nat.c: Include "amd64-nat.h".
1785 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1786 (amd64fbsd32_r_reg_offset): New variable.
1787 (supply_gregset): Simply call amd64_supply_native_gregset.
1788 (fill_gregset): Rename `regno' to `regnum'. Simply call
1789 amd64_collect_native_gregset.
1790 (fill_fpregset): Rename `regno' to `regnum'.
1791 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1792 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1793 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1794 `fpregset_t'. Call amd64_supply_native_gregset instead of
1795 supply_gregset. Call x86_64_supply_fxsave instead of
1796 supply_fpregset.
1797 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1798 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1799 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1800 `fpregset_t'. Call amd64_collect_native_gregset instead of
1801 fill_gregset. Call x86_64_collect_fxsave instead of
1802 fill_fpregset.
1803 (_initialize_am64fbsd_nat): Initialize
1804 amd64_native_gregset32_reg_offset and
1805 amd64_native_gregset64_reg_offset.
1806 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1807
1808 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1809 null pointer. Fix typo in comment.
1810
1811 * regcache.c (supply_register): Reimplement to call
1812 regcache_raw_supply.
1813 (regcache_collect): Reimplement by calling regcache_raw_collect.
1814
1815 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1816
1817 * regcache.c (register_buffer): Consitify first argument.
1818 (regcache_raw_supply, regcache_raw_collect): New
1819 functions.
1820
1821 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1822
1823 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1824 by Nathan J. Williams.
1825
1826 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1827
1828 * lin-lwp.c (wait_lwp): New function, copied from
1829 stop_wait_callback. Clean up.
1830 (stop_wait_callback): Use wait_lwp.
1831
1832 2003-08-28 Andrew Cagney <cagney@redhat.com>
1833
1834 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1835 flavour and disassembler options.
1836 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1837 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1838 deprecated_tm_print_insn_info.
1839
1840 2003-08-27 Andrew Cagney <cagney@redhat.com>
1841
1842 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1843 Use target_read_memory.
1844 (s390_get_frame_info): Update. Do not reference
1845 deprecated_tm_print_insn_info.
1846 (s390_check_function_end, s390_is_sigreturn): Ditto.
1847
1848 2003-08-27 Andrew Cagney <cagney@redhat.com>
1849
1850 * Makefile.in (cris-tdep.o): Update dependencies.
1851 * cris-tdep.c: Include "gdb_assert.h".
1852 (cris_gdbarch_init): Set print_insn.
1853 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1854 (cris_delayed_get_disassembler): Simplify, directly call the
1855 disassembler returned by cris_get_disassembler.
1856 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1857 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1858 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1859 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1860 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1861 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1862 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1863 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1864 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1865 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1866 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1867 (gdb_print_insn_sparc): Delete function.
1868 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1869 deprecated_tm_print_insn_info.
1870 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1871 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1872 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1874 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1875 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1876 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1877 (s390_gdbarch_init): Set print_insn.
1878
1879 2003-08-27 Andrew Cagney <cagney@redhat.com>
1880
1881 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1882 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1883 * infcall.c (call_function_by_hand): Convert the entry point
1884 address into a code address.
1885
1886 2003-08-27 Andrew Cagney <cagney@redhat.com>
1887
1888 * dsrec.c: Include "gdb_string.h".
1889 * Makefile.in (dsrec.o): Update dependencies.
1890
1891 2003-08-27 Michael Chastain <mec@shout.net>
1892
1893 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1894
1895 2003-08-27 Andrew Cagney <cagney@redhat.com>
1896
1897 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1898 (alpha_osf1_init_abi): Do not set call_dummy_address.
1899
1900 2003-08-27 David Carlton <carlton@kealia.com>
1901
1902 From Randolph Chung <tausq@debian.org>:
1903 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1904 compiles with -Wformat-nonliteral -Werror.
1905
1906 2003-08-26 Jim Blandy <jimb@redhat.com>
1907
1908 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1909 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1910 bfd_lookup_symbol, since we only want symbols in code sections.
1911 (look_for_base): Pass zero as the SECT_FLAGS argument to
1912 bfd_lookup_symbol, since we're not concerned about which section
1913 the symbol is in.
1914
1915 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1916
1917 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1918 we are frameless or the return address register is already known.
1919
1920 2003-08-26 Andrew Cagney <cagney@redhat.com>
1921
1922 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1923 in size. Add comments.
1924
1925 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1926
1927 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1928 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1929
1930 2003-08-26 Jason Merrill <jason@redhat.com>
1931
1932 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1933 case out of #ifdef MIPS block.
1934
1935 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1936
1937 PR java/1322
1938 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1939 available before calling SECT_OFF_TEXT.
1940 * PROBLEMS: Remove description of java/1322.
1941
1942 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1943
1944 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1945 bof, and nat0-nat127 as pseudo-registers.
1946 (ia64_frame_cache): New struct used to cache frame info.
1947 (ia64_register_reggroup_p): New routine used to override default
1948 register grouping so registers without names are still saved and
1949 restored.
1950 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1951 pseudo values.
1952 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1953 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1954 (ia64_alloc_frame_cache): New routine to create a new
1955 ia64_frame_cache.
1956 (examine_prologue): Change prototype to add next_frame pointer.
1957 Assume frameless until otherwise proven. Verify that the cfm for
1958 current frame matches the cfm that should occur for the prologues
1959 alloc insn and if equal, mark as not frameless. At end of routine,
1960 if not frameless, calculate registers for the previous frame and store
1961 in the cache, if a cache is provided.
1962 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1963 and pass 0 for next_frame.
1964 (ia64_store_return_value): Change to use convert_typed_floating()
1965 instead of calling ia64_convert_to_raw().
1966 (ia64_extract_return_value): Change to use convert_typed_floating()
1967 instead of calling ia64_convert_to_virtual().
1968 (ia64_frame_cache): New routine to support new frame model.
1969 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1970 (ia64_frame_sniffer): Ditto.
1971 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1972 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1973 (ia64_sigtramp_frame_prev_register): Ditto.
1974 (ia64_sigtramp_frame_sniffer): Ditto.
1975 (ia64_frame_base_address): Ditto.
1976 (ia64_extract_struct_value_address): Change to issue error message.
1977 (ia64_frame_align): New routine to align sp.
1978 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1979 (ia64_push_arguments): Removed. Logic moved to
1980 ia64_push_dummy_call().
1981 (ia64_push_return_address): Ditto.
1982 (ia64_unwind_dummy_id): New function.
1983 (ia64_unwind_pc): Ditto.
1984 (ia64_convert_register_p): Ditto.
1985 (ia64_register_to_value): Ditto.
1986 (ia64_value_to_register): Ditto.
1987 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1988 (ia64_register_byte, ia64_register_raw_size): Ditto.
1989 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1990 (ia64_saved_pc_after_call): Ditto.
1991 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1992 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1993 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1994 (ia64_register_convert_to_raw): Ditto.
1995 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1996 (ia64_init_extra_frame_info): Ditto.
1997 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1998 (ia64_gdbarch_init): Remove registering of deprecated functions that
1999 are no longer used. Add registration of new gdbarch functions.
2000 Remove registering deprecated_write_sp. Replace
2001 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2002 Delete set_gdbarch_deprecated_register_convertible(),
2003 set_gdbarch_deprecated_register_convert_to_virtual(), and
2004 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2005 set_gdbarch_deprecated_register_size(),
2006 set_gdbarch_deprecated_register_bytes(),
2007 set_gdbarch_pcregnum(),
2008 set_gdbarch_deprecated_register_byte(),
2009 set_gdbarch_deprecated_register_raw_size(),
2010 set_gdbarch_deprecated_max_register_raw_size(),
2011 set_gdbarch_deprecated_register_virtual_size(),
2012 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2013 Replace set_gdbarch_deprecated_extract_return_value() with
2014 set_gdbarch_extract_return_value(). Remove calls to:
2015 set_gdbarch_deprecated_saved_pc_after_call();
2016 set_gdbarch_deprecated_frame_chain(),
2017 set_gdbarch_deprecated_frame_saved_pc(),
2018 set_gdbarch_deprecated_frame_init_saved_regs(),
2019 set_gdbarch_deprecated_get_saved_register(),
2020 set_gdbarch_deprecated_call_dummy_words(),
2021 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2022 set_gdbarch_deprecated_init_extra_frame_info(),
2023 set_gdbarch_deprecated_frame_args_address(),
2024 set_gdbarch_deprecated_frame_locals_address(),
2025 and set_gdbarch_deprecated_dummy_write_sp().
2026 Add set_gdbarch_convert_register_p(),
2027 set_gdbarch_register_to_value(),
2028 set_gdbarch_value_to_register(),
2029 set_gdbarch_push_dummy_call(),
2030 set_gdbarch_frame_align(),
2031 set_gdbarch_unwind_dummy_id(),
2032 set_gdbarch_unwind_pc(),
2033 frame_unwind_append_sniffer(),
2034 frame_unwind_append_sniffer(),
2035 and frame_base_set_default().
2036
2037 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2038
2039 * configure.tgt: Document need for special "mipsisa64" handling.
2040 (mipsisa64*-*-linux64): Handle as target linux64.
2041 (mipsisa64*-*-*): Handle as target embed64.
2042
2043 2003-08-18 Michael Chastain <mec@shout.net>
2044
2045 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2046 objfile bug.
2047
2048 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2049
2050 * i387-tdep.h: Update copyright date.
2051 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2052
2053 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2054 CFLAGS games to reflect reality.
2055
2056 2003-08-24 Andrew Cagney <cagney@redhat.com>
2057
2058 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2059 GDB_MULTI_ARCH is always non-zero.
2060 * osabi.c (_initialize_gdb_osabi): Ditto.
2061 (gdbarch_init_osabi): Ditto.
2062 * sparc-tdep.c: Ditto for #if code.
2063
2064 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2065
2066 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2067 Update comments.
2068 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2069 comments.
2070 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2071 x86_64_supply_fxsave.
2072 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2073 x86_64_supply_fxsave.
2074 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2075 x86_64_supply_fxsave.
2076
2077 2003-08-23 Andreas Jaeger <aj@suse.de>
2078
2079 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2080 i387_supply_fxsave.
2081
2082 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2083
2084 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2085 i387_supply_register.
2086 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2087 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2088 i387_supply_fsave.
2089 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2090 i387_supply_fxsave.
2091 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2092 i387_supply_fsave.
2093 * i386bsd-nat.c (supply_fpregset): Adjust call to
2094 i387_supply_fsave.
2095 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2096 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2097 supply_fpregset.
2098 (store_inferior_registers): Remove extraneous whitespace. Call
2099 i387_fill_fsave instead of fill_fpregset.
2100 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2101 (supply_fpregset): Likewise.
2102 * i386v4-nat.c (supply_fpregset): Adjust call to
2103 i387_supply_fsave.
2104 * i386-interix-nat.c (supply_fpregset): Adjust call to
2105 i387_supply_fsave.
2106 * i386-linux-nat.c (supply_fpregset): Adjust call to
2107 i387_supply_fsave.
2108 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2109 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2110 i387supply_fsave and i387_supply_fxsave.
2111 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2112 Incorporate code from `i387_supply_register.
2113 (i387_supply_register): Remove.
2114 (i387_supply_fxsave): Add `regnum' argument.
2115 Update comments.
2116 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2117 prototype.
2118 (i387_supply_register): remove prototype.
2119 Update comments.
2120
2121 2003-08-22 Michael Chastain <mec@shout.net>
2122
2123 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2124 Add lines for files in gdb/testsuite/gdb.cp/* that are
2125 still not 8.3 unique.
2126
2127 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2128
2129 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2130 TYPE_VPTR_FIELDNO is valid.
2131
2132 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2133
2134 * utils.c (set_width_command): Remove prototypes.
2135 (set_screen_size): New prototype.
2136 (init_page_info): Simplify by fetching the screen size from
2137 Readline. Call set_screen_size.
2138 (set_screen_size): New function.
2139 (set_width): Add missing whitespace in comment.
2140 (set_width_command): Call set_screen_size.
2141 (set_height_command): New function.
2142 (initialize_utils): Fix formatting. Make "set height" command
2143 call set_height_command. Remove redundant code that turns off
2144 pagination if output isn't a terminal. Remove redundant call to
2145 set_width_command.
2146
2147 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2148
2149 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2150 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2151 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2152 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2153 `case' keyword.
2154 (sparc64_register_info): Give the reister with number
2155 SPARC64_STATE_REGNUM a name.
2156 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2157 %asi and %ccr.
2158 (sparc64_push_dummy_call): Take BIAS into account when checking
2159 stcak alignment.
2160 (sparc_software_single_step): Remove assertions that check whether
2161 NPC and NNPC were zero.
2162 (sparc_supply_rwindow): Make public. Merge functionality with
2163 sparc64_supply_rwindow.
2164 (sparc_fill_rwindow): Make public. Merge functionality with
2165 sparc64_fill_rwindow.
2166 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2167 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2168 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2169 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2170 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2171
2172 * reggroups.c: Add whitespace after declarations of local
2173 variables in functions.
2174
2175 2003-08-21 Michael Chastain <mec@shout.net>
2176
2177 * gdbtypes.h: Change array bound type from an int to enum.
2178
2179 2003-08-21 Andrew Cagney <cagney@redhat.com>
2180
2181 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2182 * config/sparc/tm-sparc.h: Ditto.
2183 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2184 unconditionally.
2185 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2186
2187 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2188
2189 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2190 (register_objfile_data, set_objfile_data, objfile_data): New
2191 prototypes.
2192 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2193 prototypes.
2194 (allocate_objfile): Call objfile_alloc_data.
2195 (free_objfile): Call objfile_free_data.
2196 (struct objfile_data): New.
2197 (struct objfile_data_registration): New.
2198 (struct objfile_data_registry): New.
2199 (objfile_data_registry): New variable.
2200 (register_objfile_data): New function.
2201 (objfile_alloc_data, objfile_free_data): New functions.
2202 (set_objfile_data, objfile_data): New functions.
2203 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2204 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2205 (_initialize_dwarf2_frame): New function and prototype.
2206
2207 2003-08-21 Andrew Cagney <cagney@redhat.com>
2208
2209 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2210 a specific architecture.
2211 * arch-utils.h (set_architecture_from_arch_mach): Delete
2212 declaration.
2213 (target_architecture_hook): Delete declaration.
2214 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2215 (default_float_format): Assume GDB_MULTI_ARCH.
2216 (default_double_format): Assume GDB_MULTI_ARCH.
2217 (set_endian_from_file): Delete function.
2218 (arch_ok): Delete function.
2219 (set_arch): Delete function.
2220 (set_architecture_from_arch_mach): Delete function.
2221 (set_architecture_from_file): Delete function.
2222 (set_architecture): Assume GDB_MULTI_ARCH.
2223 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2224
2225 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2226
2227 Rewrite FreeBSD/sparc64 native configuration.
2228 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2229 * sparc64fbsd-nat.c: New file.
2230 * sparc64fbsd-tdep.c: New file.
2231 * sparc64-tdep.c sparc64-tdep.h: New files.
2232 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2233 sparc64fbsd-tdep.o): New dependencies.
2234 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2235 and sparc64fbsd-tdep.c.
2236 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2237 * config/sparc/fbsd.mh: Remove copyright notice.
2238 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2239 sparcbsd-nat.o.
2240 * config/sparc/fbsd.mt: Remove copyright notice.
2241 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2242 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2243 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2244 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2245 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2246 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2247 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2248 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2249 "sparc/tm-sp64.h".
2250 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2251 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2252
2253 2003-08-21 Michael Chastain <mec@shout.net>
2254
2255 * symtab.h: Add doco on the space critical structures and
2256 some measurements of space usage.
2257
2258 2003-08-21 Michael Snyder <msnyder@redhat.com>
2259
2260 * tracepoint.c (trace_dump_command): Trace break address
2261 is subject to DECR_PC_AFTER_BREAK.
2262 (set_traceframe_context): Make "trace_line" an int.
2263 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2264
2265 2003-08-20 Michael Snyder <msnyder@redhat.com>
2266
2267 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2268 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2269 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2270 argument passing.
2271 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2272 functions, replace sh_push_dummy_call.
2273 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2274
2275 2003-08-20 Michael Chastain <mec@shout.net>
2276
2277 * gdbtypes.h (struct main_type): Rearrange to save space.
2278
2279 2003-08-20 Michael Snyder <msnyder@redhat.com>
2280
2281 * trad-frame.c: Comment typo fix.
2282
2283 2003-08-20 Michael Snyder <msnyder@redhat.com>
2284 Kevin Buettner <kevinb@redhat.com>
2285
2286 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2287 (frv_frame_init_saved_regs): Add declaration.
2288 (frame_extra_info): Add new field ``saved_regs''.
2289 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2290 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2291 Update frame related code.
2292 (frv_extract_struct_value_address): Adjust formatting.
2293 * Makefile.in (frv-tdep.o): Update dependencies.
2294 * config/frv/tm-frv.h (target_insert_watchpoint)
2295 (target_remove_watchpoint, target_insert_hw_breakpoint)
2296 (target_remove_hw_breakpoint): Delete these macros.
2297 (remote_insert_watchpoint, remote_remove_watchpoint)
2298 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2299 these declarations.
2300
2301 2003-08-20 Michael Chastain <mec@shout.net>
2302
2303 * defs.h (ENUM_BITFIELD): New macro.
2304 * symtab.h (ENUM_BITFIELD): Use it.
2305 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2306
2307 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2308
2309 * MAINTAINERS (write after approval): Add myself.
2310
2311 2003-08-18 Andrew Cagney <cagney@redhat.com>
2312
2313 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2314 * gdbarch.h, gdbarch.c: Re-generate.
2315 * infcall.c (call_function_by_hand): Adjust the SP by
2316 frame_red_zone_size before allocating any stack space.
2317 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2318 * x86-64-tdep.c (x86_64_frame_align): New function.
2319 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2320
2321 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2322 Remove code adjusting SP so that it skips over the Red Zone.
2323
2324 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2325
2326 * NEWS (New native configurations): Mention FreeBSD/amd64.
2327
2328 2003-08-18 Andrew Cagney <cagney@redhat.com>
2329
2330 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2331 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2332 "m68k_frame_p".
2333 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2334
2335 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2336
2337 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2338
2339 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2340
2341 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2342 Define.
2343 * i386-linux-nat.c: Include "linux-nat.h".
2344 (child_post_startup_inferior): New function.
2345
2346 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2347
2348 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2349 at the start of a frameless function. This probably fixes PR
2350 backtrace/1338.
2351
2352 2003-08-17 Michael Chastain <mec@shout.net>
2353
2354 * symfile.c (find_sym_fns): Remove special case for apollo target.
2355
2356 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2357
2358 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2359 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2360 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2361 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2362 (linux_supports_tracevforkdone): New function.
2363 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2364 TRACEVFORKDONE.
2365 (child_follow_fork): Handle vfork.
2366 (linux_handle_extended_wait): Likewise. Also handle exec.
2367 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2368 * NEWS: Mention fork tracing.
2369
2370 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2371
2372 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2373
2374 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2375
2376 * Makefile.in (i386-linux-nat.o): Update dependencies.
2377 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2378 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2379 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2380 * i386-linux-nat.c: Include "linux-nat.h".
2381 (child_post_startup_inferior): New function.
2382 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2383 * infptrace.c (kill_inferior): Wrap in #ifdef.
2384 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2385 attaching to each LWP.
2386 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2387 (init_lin_lwp_ops): Fill in some more operations.
2388 * linux-nat.h (linux_enable_event_reporting)
2389 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2390 prototypes.
2391 * linux-nat.c (linux_enable_event_reporting): New function.
2392 (child_post_attach, linux_child_post_startup_inferior)
2393 (child_post_startup_inferior, child_follow_fork)
2394 (linux_handle_extended_wait, kill_inferior): New functions.
2395
2396 2003-08-16 Andrew Cagney <cagney@redhat.com>
2397
2398 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2399 * gdbarch.h, gdbarch.c: Re-generate.
2400
2401 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2402
2403 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2404
2405 2003-08-16 Andrew Cagney <cagney@redhat.com>
2406
2407 * NEWS: Mention that "set prompt-escape-char" was deleted.
2408 * top.c (get_prompt_1): Delete function.
2409 (gdb_prompt_escape):
2410 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2411 prompt-escape-char" command.
2412 (MAX_PROMPT_SIZE): Delete macro.
2413 (get_prompt): Simplify, do not call get_prompt_1.
2414
2415 2003-08-16 Andrew Cagney <cagney@redhat.com>
2416
2417 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2418 -Werror. -Wformat-nonliteral problems.
2419
2420 2003-08-15 J. Brobecker <brobecker@gnat.com>
2421
2422 Further multiarching work mostly for hppa64-*-hpux11:
2423 * hppa-tdep.h: New file.
2424 * hppa-tdep.c: #include hppa-tdep.c.
2425 (hppa32_num_regs): Renamed from hppa_num_regs.
2426 (hppa64_num_regs): New constant.
2427 (hppa64_call_dummy_breakpoint_offset): New constant.
2428 (hppa32_call_dummy_length): New constant.
2429 (hppa64_call_dummy_length): New constant.
2430 (hppa32_stack_align): Make name 32bit explicit.
2431 (hppa32_register_virtual_type): Likewise.
2432 (hppa32_extract_return_value): Likewise.
2433 (hppa32_use_struct_convention): Likewise.
2434 (hppa32_store_return_value): Likewise.
2435 (hppa64_register_virtual_type): New function.
2436 (hppa64_extract_return_value): New function.
2437 (hppa64_use_struct_convention): New function.
2438 (hppa64_store_return_value): New function.
2439 (hppa_frame_locals_address): Remove declaration, function does
2440 not exist anymore.
2441 (hppa_register_byte): Add support for PA64 ABI.
2442 (hppa_gdbarch_init): Add support for PA64 ABI.
2443 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2444 Make name 32bit explicit.
2445 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2446 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2447 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2448 (hppa64_hpux_frame_base_before_sigtramp): New function.
2449 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2450 * config/pa/tm-hppa64.h: Remove macros that are no longer
2451 necessary now that the gdbarch vector is properly setup.
2452 Transform some macros into function calls. Some minor cleanup.
2453 * config/pa/tm-hppah.h: Update function calls in macros
2454 following the function renaming in hppa-hpux-tdep.c.
2455 * Makefile.in (hppa_tdep_h): New variable.
2456 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2457
2458 2003-08-14 Michael Snyder <msnyder@redhat.com>
2459
2460 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2461
2462 2003-08-13 J. Brobecker <brobecker@gnat.com>
2463
2464 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2465 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2466 routine.
2467
2468 2003-08-13 Michael Snyder <msnyder@redhat.com>
2469
2470 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2471 (frv_saved_pc_after_call): Use deprecated ftype.
2472 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2473 (frv_remote_translate_xfer_address): Remove.
2474 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2475
2476 2003-08-13 J. Brobecker <brobecker@gnat.com>
2477
2478 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2479 initialization after the common gdbarch initialization, not before.
2480
2481 2003-08-13 J. Brobecker <brobecker@gnat.com>
2482
2483 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2484 (ADDR_BITS_REMOVE): Remove, redundant.
2485
2486 2003-08-13 J. Brobecker <brobecker@gnat.com>
2487
2488 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2489 gdbarch method to clear the 2 low bits of text addresses.
2490
2491 2003-08-12 Andrew Cagney <cagney@redhat.com>
2492
2493 * Makefile.in (dsrec.o): Update dependencies.
2494 * dsrec.c: Include "gdb_assert.h".
2495 (make_srec): Use snprintf instead of sprintf, use a literal format
2496 string.
2497
2498 2003-08-12 Andrew Cagney <cagney@redhat.com>
2499
2500 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2501 FRAME_OBSTACK_ZALLOC.
2502
2503 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2504
2505 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2506 SSE registers.
2507
2508 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2509
2510 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2511 amd64fbsd_sc_reg_offset): Add extern declarations.
2512 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2513 declarations.
2514
2515 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2516
2517 * MAINTAINERS (write after approval): Update my mail address.
2518
2519 2003-08-10 Andrew Cagney <cagney@redhat.com>
2520
2521 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2522
2523 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2524
2525 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2526 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2527 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2528 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2529 i386bsd_sc_reg_offset): Add extern declarations.
2530 * i386obsd-nat.c: Include "i386-tdep.h"
2531 (_initialize_i386obsd_nat): Remove extern declarations.
2532 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2533 declarations.
2534 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2535 declarations.
2536
2537 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2538 instead of frame_read_register.
2539 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2540 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2541 SP_REGNUM.
2542 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2543 instead of frame_unwind_unsigned_register. Use
2544 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2545 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2546 instead of read_register. Use builtin_type_void_data_ptr instead
2547 of builtin_type_void_func_ptr when extracting the address of the
2548 jmp_buf.
2549 (i386_extract_return_value, i386_store_return_value,
2550 i386_pseudo_register_read, i386_pseudo_register_write): Use
2551 register_size instead REGISTER_RAW_SIZE.
2552
2553 2003-08-10 Andrew Cagney <cagney@redhat.com>
2554
2555 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2556 sprintf. Make "name" constant.
2557
2558 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2559
2560 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2561 instead of frame_read_register.
2562 (i387_print_float_info): Use get_frame_register and
2563 get_frame_register_unsigned instead of frame_register_read.
2564
2565 * i386fbsd-nat.c: Include "i386-tdep.h".
2566 (child_resume): Make `eflags' an ULONGEST. Use
2567 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2568 instead of register_read and register_write.
2569
2570 * i386bsd-nat.c (fetch_inferior_registers,
2571 store_inferior_registers): Don't use && at the end of a line.
2572 (_initialize_i386bsd_nat): Fix typo.
2573
2574 * frame.c (_initialize_frame): Add missing backslash.
2575
2576 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2577 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2578 and supply_register instead of manipulating the register buffer
2579 directly.
2580
2581 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2582 * config/i386/nm-i386sol2.h
2583 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2584
2585 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2586 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2587 instructions that GCC likes to mingle into the prologue. Fixes
2588 gdb/1253 and gdb/1255.
2589
2590 2003-08-09 Andrew Cagney <cagney@redhat.com>
2591
2592 Fix GDB PR cli/926.
2593 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2594 * command.h (add_setshow_uinteger_cmd): Declare.
2595 * frame.c (set_backtrace_cmd): New function.
2596 (show_backtrace_cmd): New function.
2597 * frame.c (_initialize_frame): Replace "set/show
2598 backtrace-below-main" with "set/show backtrace past-main". Add
2599 command "set/show backtrace limit".
2600 (backtrace_past_main): Rename "backtrace_below_main".
2601 (backtrace_limit): New variable.
2602 (get_prev_frame): Update. Check the backtrace_limit.
2603
2604 2003-08-09 Andrew Cagney <cagney@redhat.com>
2605
2606 * defs.h (xstrprintf): Declare.
2607 * utils.c (xstrprintf): New function.
2608 * breakpoint.c (insert_breakpoints): Replace sprintf and
2609 non-literal format strings, with xstrprintf and cleanups.
2610 (delete_breakpoint,breakpoint_re_set): Ditto.
2611 (commands_command, insert_breakpoints): Ditto.
2612 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2613 (break_at_finish_command_1): Ditto.
2614
2615 2003-08-09 Andrew Cagney <cagney@redhat.com>
2616
2617 * MAINTAINERS (language support): List Adam Fedor as Objective C
2618 maintainer.
2619
2620 2003-08-08 J. Brobecker <brobecker@gnat.com>
2621
2622 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2623 are now multiarched.
2624
2625 2003-08-08 J. Brobecker <brobecker@gnat.com>
2626
2627 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2628 longer necessary now that hppa64 is partially multiarch'ed.
2629
2630 2003-08-08 Andrew Cagney <cagney@redhat.com>
2631
2632 * interps.c (interp_set): Check for a NULL "old_interp".
2633
2634 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2635
2636 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2637 (install-only): Support DESTDIR.
2638 (uninstall): Likewise.
2639 (install-gdbtk): Likewise.
2640
2641 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2642
2643 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2644 contains something meaningful at all times.
2645
2646 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2647
2648 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2649
2650 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2651
2652 * MAINTAINERS (write after approval): Added self.
2653
2654 2003-08-07 Andrew Cagney <cagney@redhat.com>
2655
2656 * inferior.h (AT_SYMBOL): Define.
2657 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2658 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2659 * mips-tdep.c (mips_call_dummy_address): Delete function.
2660 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2661 set call_dummy_address.
2662
2663 2003-08-07 Andrew Cagney <cagney@redhat.com>
2664
2665 * language.c (op_error): Delete function.
2666 (binop_type_check): Delete function.
2667 * language.h (type_op_error, range_op_error): Delete macros.
2668 (op_error): Delete declaration.
2669
2670 2003-08-07 Andrew Cagney <cagney@redhat.com>
2671
2672 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2673
2674 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2675
2676 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2677 (x86_64_push_arguments): Skip the red zone.
2678
2679 2003-08-05 Andrew Cagney <cagney@redhat.com>
2680
2681 * reggroups.c (reggroup_next): Check for the final entry.
2682
2683 2003-08-04 Andrew Cagney <cagney@redhat.com>
2684
2685 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2686 * cli/cli-script.c (define_command): Call query directly, instead
2687 of passing it a buffer.
2688 * ocd.c (ocd_error): Pass error a constant format string.
2689 * remote-mips.c (mips_error): Use fputs_filtered.
2690
2691 * solib-svr4.c (_initialize_svr4_solib): Update
2692 register_gdbarch_data call.
2693 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2694
2695 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2696 (register_gdbarch_data): Delete "free" parameter. Update
2697 comments.
2698 * gdbarch.h, gdbarch.c: Re-generate.
2699 * reggroups.c (_initialize_reggroup): Update.
2700 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2701 * frame-base.c (_initialize_frame_base): Update.
2702 * frame-unwind.c (_initialize_frame_unwind): Update.
2703 * user-regs.c (_initialize_user_regs): Update.
2704 * remote.c (_initialize_remote): Update.
2705 * regcache.c (_initialize_regcache): Update.
2706
2707 * regcache.c (xfree_regcache_descr): Delete function.
2708 (_initialize_regcache): Update call to register_gdbarch_data.
2709 (init_regcache_descr, init_legacy_regcache_descr): Use
2710 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2711
2712 * remote.c (free_remote_state): Delete function.
2713 (_initialize_remote): Update register_gdbarch_data.
2714 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2715 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2716
2717 2003-08-04 Andrew Cagney <cagney@redhat.com>
2718
2719 * reggroups.c (struct reggroup_el): Define.
2720 (struct reggroups): Delete field "nr_group". Replace array
2721 "group" with a "first" to "last" linked list.
2722 (reggroups_init): Update. Allocate using gdbarch's obstack.
2723 (reggroups_free): Delete function.
2724 (add_group): Update. Add "el" parameter.
2725 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2726 (default_groups): Update.
2727 (reggroup_next): Replace reggroups.
2728 (reggroups_dump): Update.
2729 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2730 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2731 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2732
2733 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2734
2735 * Makefile.in (tui-interp.o): Update dependencies.
2736
2737 2003-08-04 David Carlton <carlton@kealia.com>
2738
2739 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2740 to internal_error call.
2741 * source.c (forward_search_command): Add "%s" format argument.
2742 (reverse_search_command): Ditto.
2743 * top.c (quit_confirm): Ditto.
2744 * cli/cli-setshow.c (do_setshow_command): Ditto.
2745 * cp-valprint.c (cp_print_class_method): Replace
2746 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2747 (cp_print_class_member): Ditto.
2748 * event-top.c (command_line_handler): Ditto.
2749 * linux-proc.c (linux_info_proc_cmd): Ditto.
2750 * p-typeprint.c (pascal_type_print_base): Ditto.
2751 * p-valprint.c (pascal_object_print_class_method): Ditto.
2752 (pascal_object_print_class_member): Ditto.
2753 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2754 * remote.c (remote_cisco_section_offsets): Ditto.
2755 * top.c (command_line_input): Ditto.
2756 * utils.c (vwarning,error_stream,quit): Ditto.
2757 * valprint.c (print_floating,print_binary_chars)
2758 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2759
2760 2003-08-04 Andrew Cagney <cagney@redhat.com>
2761
2762 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2763
2764 2003-08-02 Andrew Cagney <cagney@redhat.com>
2765
2766 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2767 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2768 amd64fbsd-nat.c.
2769
2770 2003-08-02 Andrew Cagney <cagney@redhat.com>
2771
2772 * Makefile.in: Update all dependencies and definitions.
2773
2774 2003-08-02 Adam Fedor <fedor@gnu.org>
2775
2776 * linespec.c (is_objc_method_format): New function
2777 (decode_line_1, locate_first_half): Use it.
2778 Fixes PR objc/1298
2779
2780 2003-08-01 Andrew Cagney <cagney@redhat.com>
2781
2782 * NEWS: Mention that m32r is multi-arch.
2783 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2784 * configure.tgt: Recognize m32r-*-*.
2785 * config/m32r/tm-m32r.h: Delete file.
2786 * config/m32r/m32r.mt: New file.
2787 * m32r-rom.c (m32r_upload_command): Use hostent only when
2788 gethostname succeeds, in order to avoid a compilation
2789 warning.
2790 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2791 compiler warning.
2792
2793 2003-08-01 Michael Snyder <msnyder@redhat.com>
2794
2795 * sh-tdep.c (sh_frame_align): New gdbarch method.
2796 (sh_gdbarch_init): Set up frame_align method.
2797
2798 2003-07-31 Michael Snyder <msnyder@redhat.com>
2799
2800 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2801 which is already covered by the new frames infrastructure.
2802
2803 2003-07-31 Andrew Cagney <cagney@redhat.com>
2804
2805 * user-regs.c (struct user_reg): Add "next" link.
2806 (struct user_regs): Replace "user" with "first" and "last" links.
2807 (append_user_reg): Add pre-allocated "reg" parameter.
2808 (builtin_user_regs): Provide initial value for "last".
2809 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2810 (user_regs_init): Allocate memory from the gdbarch obstack.
2811 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2812 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2813 linked list.
2814 (usernum_to_user_reg): New function.
2815 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2816 (value_of_user_reg): Use usernum_to_user_reg.
2817 (user_regs_free): Delete function.
2818 (_initialize_user_regs): Update register_gdbarch_data call.
2819
2820 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2821
2822 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2823
2824 2003-07-30 Michael Snyder <msnyder@redhat.com>
2825
2826 * value.h (value_being_returned): Add a struct_addr argument.
2827 * infcall.c (call_function_by_hand): Pass struct_addr to
2828 value_being_returned.
2829 * infcmd.c (print_return_value): Pass zero as struct_addr.
2830 * values.c (value_being_returned): If struct_addr is passed,
2831 use it instead of trying to recover it from the inferior.
2832
2833 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2834
2835 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2836 the prologue analyzer won't need to attempt to extract the pc
2837 value from the woefully incomplete dummy frame.
2838 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2839 possible. Disable code which modifies the frame.
2840
2841 2003-07-28 Andrew Cagney <cagney@redhat.com>
2842
2843 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2844 to level 2.
2845 (annotate_breakpoints_table, annotate_record): Ditto.
2846 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2847 (annotate_field_name_end, annotate_field_value): Ditto.
2848 (annotate_field_end, annotate_frame_source_begin): Ditto.
2849 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2850 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2851 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2852 (annotate_frame_address_end, annotate_frame_address): Ditto.
2853 (annotate_frame_args, annotate_frame_end): Ditto.
2854 (annotate_frame_where, annotate_arg_begin): Ditto.
2855 (annotate_arg_name_end, annotate_arg_value): Ditto.
2856 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2857 (annotate_function_call, annotate_signal_name): Ditto.
2858 (annotate_signal_string, annotate_signal_name_end): Ditto.
2859 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2860 (annotate_value_begin, annotate_value_history_value): Ditto.
2861 (annotate_value_history_end, annotate_value_end): Ditto.
2862 (annotate_display_begin, annotate_display_number_end): Ditto.
2863 (annotate_display_format, annotate_display_expression): Ditto.
2864 (annotate_display_expression_end, annotate_display_value): Ditto.
2865 (annotate_display_end, annotate_array_section_begin): Ditto.
2866 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2867 (annotate_elt, annotate_array_section_end): Ditto.
2868
2869 2003-07-28 Andrew Cagney <cagney@redhat.com>
2870
2871 * regcache.c (struct regcache_descr): Update comments on
2872 nr_raw_registers.
2873 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2874 sizeof_raw_register_valid_p.
2875 (init_regcache_descr): Set nr_raw_registers and
2876 sizeof_raw_register_valid_p before calling
2877 init_legacy_regcache_descr.
2878
2879 2003-07-28 Andrew Cagney <cagney@redhat.com>
2880
2881 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2882 MOD NUM_REGS.
2883
2884 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2885
2886 * thread.c (info_threads_command): Use get_selected_frame ().
2887 Check that there is at least one non-sentinel frame.
2888
2889 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2890
2891 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2892 (m68hc11_pop_frame): Remove.
2893 (m68hc11_frame_saved_pc): Remove.
2894 (m68hc11_frame_chain): Remove.
2895 (m68hc11_frame_init_saved_regs): Remove.
2896 (m68hc11_init_extra_frame_info): Remove.
2897 (m68hc11_store_struct_return): Remove.
2898 (m68hc11_saved_pc_after_call): Remove.
2899
2900 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2901
2902 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2903 frame unwind information.
2904 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2905 and adapted for frame unwinding.
2906 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2907 (m68hc11_unwind_pc): New function.
2908 (m68hc11_frame_unwind_cache): New function to analyze frames.
2909 (m68hc11_frame_this_id): New function to create new frame struct.
2910 (m68hc11_frame_prev_register): New function to unwind a register from
2911 the frame.
2912 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2913 (m68hc11_frame_p): New function for the above.
2914 (m68hc11_frame_base_address): New function to return fp of frame.
2915 (m68hc11_frame_args_address): Update for frame.
2916 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2917 (m68hc11_unwind_sp): New function.
2918 (m68hc11_unwind_dummy_id): New function.
2919 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2920 calls.
2921
2922 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2923
2924 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2925 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2926 when we are beyond the current pc.
2927
2928 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2929
2930 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2931 from m68hc11_push_arguments.
2932 (m68hc11_push_arguments): Remove.
2933 (m68hc11_push_return_address): Remove.
2934 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2935 handlers; remove deprecated_extra_stack_alignment_needed.
2936
2937 2003-07-27 Andrew Cagney <cagney@redhat.com>
2938
2939 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2940 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2941 REAL_PC and not the pointer.
2942 * hppa-hpux-tdep.c: Include frame.h
2943
2944 2003-07-27 Andrew Cagney <cagney@redhat.com>
2945
2946 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2947 GDB_MULTI_ACH_PARTIAL.
2948
2949 2003-07-27 Andrew Cagney <cagney@redhat.com>
2950
2951 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2952 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2953 operator at start and not end of line.
2954 (decode_prologue): Ditto.
2955 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2956 frame_unwind_register_unsigned instead of
2957 frame_unwind_unsigned_register.
2958 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2959 read_register.
2960 (m32r_push_dummy_call): Use register_size instead of
2961 REGISTER_RAW_SIZE.
2962 (m32r_frame_sniffer): Replace m32r_frame_p.
2963 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2964 * m32r-rom.c (report_transfer_performance): Delete extern
2965 declaration.
2966 (m32r_load, m32r_upload_command): Use print_transfer_performance
2967 instead of report_transfer_performance.
2968 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2969 / add_show_from_set.
2970
2971 2003-07-26 Andrew Cagney <cagney@redhat.com>
2972
2973 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2974 store_return_value and extract_struct_value_address.
2975
2976 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2977
2978 PR c++/1267
2979 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2980 NULL, default to the section containing PC.
2981
2982 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2983
2984 * NEWS: Mention "regs" deprecated for m68hc11 too.
2985
2986 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2987 (m68hc11_print_register): New function to print out one register.
2988 (m68hc11_print_registers_info): New function to print registers.
2989 (show_regs): Deprecate and use the above.
2990 (m68hc11_gdbarch_init): Install the print_registers_info.
2991
2992 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2993
2994 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2995 that we have a SIGTRAP before returning non-zero.
2996
2997 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2998 Elena Zannoni <ezannoni@redhat.com>
2999
3000 * linespec.c (decode_line_2): Avoid crash if
3001 find_function_start_sal() returns empty record.
3002
3003 2003-07-23 Andreas Schwab <schwab@suse.de>
3004
3005 * ia64-tdep.c (ia64_print_insn): New function.
3006 (ia64_gdbarch_init): Set print_insn to it.
3007 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3008 deprecated_tm_print_insn_info.
3009
3010 2003-07-22 Michael Snyder <msnyder@redhat.com>
3011
3012 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3013 handle 8-bit returns (long long).
3014 (h8300h_extract_return_value): Ditto.
3015 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3016
3017 2003-07-22 Andrew Cagney <cagney@redhat.com>
3018
3019 * gdbarch.c Include "gdb_obstack.h".
3020 (struct gdbarch): Add an "obstack".
3021 (alloc_gdbarch_data): Allocate the gdbarch data using
3022 GDBARCH_OBSTACK_CALLOC.
3023 (free_gdbarch_data): Delete function.
3024 (gdbarch_obstack_zalloc): New function.
3025 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3026 Assert that the architecture is not initialized.
3027 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3028 vector from the obstack.
3029 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3030 architecture obstack.
3031 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3032 (set_gdbarch_data): Assert that the data is not initialized.
3033 (struct gdbarch_data): Delete member "free".
3034 (register_gdbarch_data): Do not initialize "free".
3035 * gdbarch.h, gdbarch.c: Re-generate.
3036
3037 2003-07-22 Andrew Cagney <cagney@redhat.com>
3038
3039 * configure.in (build_warnings): Add -Wformat-nonliteral.
3040 * configure: Re-generate.
3041
3042 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3043
3044 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3045
3046 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3047
3048 * findvar.c (read_var_value): Remove case for thread local storage
3049 variables. It is now entirely handled by the dwarf2 location
3050 expression code.
3051 * printcmd.c (address_info): Ditto.
3052 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3053 enumeration value.
3054 (struct symbol): Remove objfile field, which was used by
3055 LOC_THREAD_LOCAL_STATIC only.
3056 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3057 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3058 usage of objfile pointer.
3059 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3060 thread local variables.
3061 Add include of objfiles.h.
3062 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3063 storage variables.
3064 * Makefile.in (dwarf2loc.o): Update dependencies.
3065
3066 2003-07-22 Andrew Cagney <cagney@redhat.com>
3067
3068 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3069 get_frame_base.
3070 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3071 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3072 (struct value): Add opaque declaration.
3073 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3074
3075 2003-07-21 Andrew Cagney <cagney@redhat.com>
3076
3077 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3078 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3079
3080 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3081
3082 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3083 regcache_cooked_read_unsigned instead of read_register.
3084 (m68hc11_saved_pc_after_call): Likewise.
3085 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3086 instead of write_register.
3087 (m68hc11_register_type): New function.
3088 (m68hc11_register_virtual_type): Remove.
3089 (m68hc11_store_return_value): Convert to use the regcache.
3090 (m68hc11_extract_struct_value_address): Likewise.
3091 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3092 m68hc11_register_type; undeprecate store_return_value and
3093 extract_struct_value_address.
3094
3095 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3096
3097 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3098 and translate to use regcache.
3099 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3100
3101 2003-07-18 Andrew Cagney <cagney@redhat.com>
3102
3103 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3104 * gdbarch.h, gdbarch.c: Re-generate.
3105 * i386-tdep.c (i386_gdbarch_init): Do not set
3106 DWARF2_BUILD_FRAME_INFO.
3107 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3108 unconditionally.
3109 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3110 DWARF2_BUILD_FRAME_INFO.
3111
3112 2003-07-18 Andrew Cagney <cagney@redhat.com>
3113
3114 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3115 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3116
3117 2003-07-18 Andrew Cagney <cagney@redhat.com>
3118
3119 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3120 frame_unwind_address_in_block, instead of frame_pc_unwind.
3121 (dwarf2_frame_cache): Ditto.
3122
3123 2003-07-18 Andrew Cagney <cagney@redhat.com>
3124
3125 * user-regs.h (struct gdbarch): Declare opaque.
3126 * ui-out.h (struct ui_file): Declare opaque.
3127 * dwarf2-frame.h (struct frame_info): Declare opaque.
3128
3129 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3130
3131 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3132 #include "...".
3133 (procfs_meminfo): Change strerror to safe_strerror.
3134 (procfs_can_run): Remove K&R badness.
3135
3136 2003-07-17 Michael Snyder <msnyder@redhat.com>
3137
3138 * remote-sim.c: Comment typo fix.
3139
3140 2003-07-17 Andrew Cagney <cagney@redhat.com>
3141
3142 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3143 configure.
3144 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3145 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3146 GDB_MULTI_ARCH_PARTIAL.
3147
3148 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3149
3150 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3151 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3152 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3153
3154 2003-07-16 Theodore A. Roth <troth@openavr.org>
3155
3156 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3157 found.
3158 (avr_frame_unwind_cache): Don't unwind FP for main.
3159 Update a comment.
3160 Save the computed prev_sp.
3161 (avr_saved_regs_unwinder): Remove function.
3162 (avr_frame_prev_register): Use PC unwind logic from
3163 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3164
3165 2003-07-16 Andrew Cagney <cagney@redhat.com>
3166
3167 * frame-base.h (frame_base_p_ftype): Delete definition.
3168 (frame_base_append_predicate): Delete declaration.
3169 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3170 (frame_unwind_append_predicate): Delete declaration.
3171 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3172 (append_predicate): Delete parameter "p".
3173 (frame_unwind_append_predicate): Delete function.
3174 (frame_unwind_append_sniffer): Update call to append_predicate.
3175 (frame_unwind_free): Delete function.
3176 (_initialize_frame_unwind): Pass NULL as "free" to
3177 register_gdbarch_data.
3178 (frame_unwind_init): Append the dummy_frame_sniffer.
3179 (frame_unwind_find_by_frame): Simplify.
3180 * frame-base.c (struct frame_base_table): Delete field "p".
3181 (append_predicate): Delete parameter "p".
3182 (frame_base_append_predicate): Delete function.
3183 (frame_base_append_sniffer): Update call to append_predicate.
3184 (frame_base_free): Delete function.
3185 (frame_base_find_by_frame): Simplify.
3186 (_initialize_frame_base): Pass NULL as "free" to
3187 register_gdbarch_data.
3188 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3189 (x86_64_sigtramp_frame_sniffer): Replace
3190 "x86_64_sigtramp_frame_p".
3191 (x86_64_init_abi): Set the frame unwind sniffers.
3192 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3193 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3194 (m68k_gdbarch_init): Set the frame unwind sniffers.
3195 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3196 "i386_sigtramp_frame_p".
3197 (i386_frame_sniffer): Replace "i386_frame_p".
3198 (i386_gdbarch_init): Set the frame unwind sniffers.
3199 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3200 (avr_gdbarch_init): Set the frame unwind sniffers.
3201 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3202 "alpha_sigtramp_frame_p"
3203 (alpha_heuristic_frame_sniffer): Replace
3204 "alpha_heuristic_frame_p".
3205 (alpha_gdbarch_init): Set the frame unwind sniffers.
3206 (alpha_dwarf2_init_abi): Ditto.
3207 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3208 "alpha_debug_frame_p".
3209 (alpha_mdebug_frame_base_sniffer): Replace
3210 "alpha_mdebug_frame_base_p".
3211 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3212 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3213 (d10v_gdbarch_init): Set the frame unwind sniffer.
3214 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3215 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3216 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3217 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3218 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3219 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3220
3221 2003-07-16 Michael Snyder <msnyder@redhat.com>
3222
3223 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3224 should go thru sh_dsp_register_sim_regno, else the dsp regs
3225 will not get the right values.
3226
3227 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3228
3229 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3230 deprecated_store_floating by call to store_typed_floating.
3231 (sh_sh4_register_convert_to_raw): Substitute call to
3232 deprecated_extract_floating by call to extract_typed_floating.
3233
3234 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3235
3236 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3237
3238 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3239
3240 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3241 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3242 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3243 as possible.
3244 (do_pseudo_register): Remove.
3245 (sh_push_dummy_code): New function.
3246 (sh64_store_struct_return): Rename from sh_store_struct_return.
3247 Only called for sh64 now.
3248 (sh_extract_struct_value_address): Regcache'ify.
3249 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3250 and accomodate new tasks.
3251 (sh64_push_return_address): Rename from sh_push_return_address.
3252 Only called for sh64 now.
3253 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3254 Regcache'ify.
3255 (sh3e_sh4_extract_return_value): Regcache'ify.
3256 (sh_default_store_return_value): Ditto.
3257 (sh3e_sh4_store_return_value): Ditto.
3258 (sh_default_register_byte): Remove.
3259 (sh_sh4_register_byte): Remove.
3260 (sh_default_register_raw_size): Remove.
3261 (sh_sh4_register_raw_size): Remove.
3262 (sh_register_virtual_size): Remove.
3263 (sh_sh3e_register_virtual_type): Remove.
3264 (sh_sh3e_register_type): New function.
3265 (sh_sh4_register_virtual_type): Remove.
3266 (sh_sh4_register_type): New function.
3267 (sh_default_register_virtual_type): Remove.
3268 (sh_default_register_type): New function.
3269 (do_fv_register_info): Add parameters to accomodate call from
3270 sh_print_registers_info.
3271 (do_dr_register_info): Ditto.
3272 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3273 Add parameters to accomodate call from sh_print_registers_info.
3274 (sh_do_fp_register): Ditto.
3275 (sh64_do_pseudo_register): Call do_dr_register_info,
3276 do_fv_register_info and sh_do_fp_register with default parameters.
3277 (sh_do_register): Add parameters to accomodate call from
3278 sh_print_registers_info.
3279 (sh_print_register): Ditto.
3280 (sh_print_registers_info): Rename from sh_do_registers_info.
3281 Add parameters to be used as gdbarch_print_registers_info
3282 implementation. Accomodate removed do_pseudo_register function
3283 pointer.
3284 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3285 function pointer. Call sh_print_register with default parameters.
3286 (sh64_do_registers_info): Call sh_print_registers_info instead of
3287 sh_do_registers_info.
3288 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3289 detection of deprecated vs. non-deprecated functionality.
3290 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3291 function pointer assignments by direct function calls.
3292
3293 2003-07-15 Andrew Cagney <cagney@redhat.com>
3294
3295 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3296 (frame_register_unwind, create_new_frame): Ditto.
3297 (legacy_get_prev_frame, get_frame_type): Ditto.
3298 (get_frame_base_address): Use frame_base_find_by_frame.
3299 (get_frame_locals_address): Use frame_base_find_by_frame.
3300 (get_frame_args_address): Use frame_base_find_by_frame.
3301 * frame-base.h (frame_base_sniffer_ftype): Declare.
3302 (frame_base_append_sniffer): Declare.
3303 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3304 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3305 (frame_base_append_sniffer): New function.
3306 (frame_base_append_predicate): Add a NULL sniffer.
3307 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3308 (struct frame_base_table): Add "sniffer".
3309 (frame_base_free): Free the "sniffer" table.
3310 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3311 (frame_unwind_append_sniffer): Declare.
3312 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3313 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3314 (struct frame_unwind_table): Add "sniffer", delete "middle".
3315 (append_predicate): Add "sniffer" parameter, append the sniffer.
3316 (frame_unwind_init): Update append_predicate call.
3317 (frame_unwind_append_sniffer): New function.
3318 (frame_unwind_append_predicate): Update append_predicate call.
3319 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3320
3321 2003-07-15 Andrew Cagney <cagney@redhat.com>
3322
3323 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3324 before code inhibiting repeated unwind attempts. Add to
3325 commentary on that test's problems.
3326 * blockframe.c (inside_main_func): Look for "main" in the minimal
3327 symbol table.
3328 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3329 identical.
3330
3331 2003-07-15 Andrew Cagney <cagney@redhat.com>
3332
3333 * complaints.c (struct explanation): Define.
3334 (struct complaints): Change type of "explanation" to "struct
3335 explanation".
3336 (symfile_explanations): Convert to a "struct explanation" table.
3337 (vcomplaint): Update.
3338
3339 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3340
3341 * x86-64-linux-nat.c (regmap): Removed.
3342 (supply_gregset, fill_gregset): Call
3343 x86_64_linux_(fill,supply)_gregset functions.
3344 * x86-64-linux-tdep.c (USER_*): New defines.
3345 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3346 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3347 New functions.
3348 (fetch_core_registers): Ditto.
3349 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3350 * x86-64-linux-tdep.h: New file.
3351 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3352 and core-regset.o.
3353 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3354
3355 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3356
3357 * x86-64-tdep.c (x86_64_store_return_value): Use
3358 regcache_cooked_write_part instead of regcache_cooked_write.
3359
3360 * configure.host: Add x86_64-*-freebsd*.
3361 * configure.tgt: Add x86_64-*-freebsd*.
3362 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3363 * amd64fbsd-nat.c: New file.
3364 * amd64fbsd-tdep.c: New file.
3365 * config/i386/nm-fbsd64.h: New file.
3366 * config/i386/fbsd64.mh: New file.
3367 * config/i386/fbsd64.mt: New file.
3368
3369 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3370
3371 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3372 `sc_regs_offset' and `sc_fpregs_offset'.
3373 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3374 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3375 (alpha_sigtramp_register_address): Rewrite to use new members of
3376 `struct gdbarch_tdep'.
3377 (alpha_gdbarch_init): Initialize new members of struct
3378 gdbarch_tdep'.
3379 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3380 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3381 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3382 (alphafbsd_pc_in_sigtramp): Implement.
3383 (alphafbsd_sigtramp_offset): New function.
3384 (alphafbsd_sigcontext_addr): New function.
3385 (alphafbsd_init_abi): Initialize signal trampoline related members
3386 of `struct gdbarch_tdep'.
3387 (_initialize_alphafbsd_tdep): Add prototype.
3388
3389 2003-07-11 Theodore A. Roth <troth@openavr.org>
3390
3391 * Makefile.in (install-only): Quote sed expression when generating
3392 transformed_name.
3393
3394 2003-07-11 Richard Henderson <rth@redhat.com>
3395
3396 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3397 * dwarf2-frame.c: Include complaints.h.
3398 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3399 variable initialization; return NULL on error.
3400 (decode_frame_entry): New.
3401
3402 2003-07-11 Andrew Cagney <cagney@redhat.com>
3403
3404 * frame.h (frame_address_in_block): Delete declaration.
3405 * blockframe.c (frame_address_in_block): Delete function.
3406 (get_frame_block): Use get_frame_address_in_block.
3407 (block_innermost_frame): Ditto.
3408 * stack.c (print_frame, backtrace_command_1): Ditto.
3409
3410 * frame.h (get_frame_address_in_block): Declare.
3411 (frame_unwind_address_in_block): Declare.
3412 * frame.c (frame_unwind_address_in_block): New function.
3413 (get_frame_address_in_block): New function.
3414
3415 2003-07-10 Andrew Cagney <cagney@redhat.com>
3416
3417 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3418 pre-default. Note: re-generate has no effect.
3419
3420 2003-07-10 Andrew Cagney <cagney@redhat.com>
3421
3422 * gdbarch.sh: When a variable, but not a function, compare against
3423 0. Fix problem in previous patch.
3424 * gdbarch.c: Re-generate.
3425
3426 2003-07-10 Andrew Cagney <cagney@redhat.com>
3427
3428 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3429 functions against NULL, not 0.
3430 * gdbarch.c: Re-generate.
3431
3432 2003-07-10 Fred Fish <fnf@ninemoons.com>
3433
3434 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3435 null string instead of a null pointer.
3436 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3437
3438 2003-07-09 Michael Snyder <msnyder@redhat.com>
3439
3440 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3441
3442 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3443
3444 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3445 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3446 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3447 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3448 * x86-64-tdep.c: ... from here.
3449
3450 2003-07-09 Andreas Schwab <schwab@suse.de>
3451
3452 * m68k-tdep.h (enum struct_return): Define.
3453 (struct gdbarch_tdep): Add struct_return.
3454 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3455 bytes are padded to the right, not to the left. Pass struct value
3456 address in register %a1, not on stack.
3457 (m68k_use_struct_convention): New function.
3458 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3459 struct_return in tdep to pcc_struct_return.
3460 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3461 reg_struct_return.
3462
3463 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3464
3465 * somread.c (som_symfile_offsets): Fix compilation error.
3466
3467 2003-07-09 Andrew Cagney <cagney@redhat.com>
3468
3469 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3470 Add comments about the checks.
3471
3472 2003-07-08 Andrew Cagney <cagney@redhat.com>
3473
3474 * Makefile.in: Make dependency section headers consistent.
3475 (config_h): Move to $BUILD headers section.
3476 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3477 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3478 (ada-exp.tab.c): Move to YACC/LEX section.
3479 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3480 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3481
3482 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3483
3484 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3485 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3486 of strerror with safe_strerror, use ISO C function definitions,
3487 and replace instances of sprintf with snprintf.
3488
3489 2003-07-07 Andrew Cagney <cagney@redhat.com>
3490
3491 * frame.c (get_prev_frame): Enable check for identical frames.
3492 Update comments. Update error messages.
3493
3494 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3495
3496 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3497
3498 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3499
3500 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3501 sort_symtab_syms, no longer necessary.
3502
3503 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3504
3505 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3506
3507 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3508
3509 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3510 (mips_register_byte): Likewise.
3511
3512 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3513
3514 * Makefile.in (sparc_tdep_h): New.
3515 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3516 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3517 * sparc-linux-nat.c: Include "sparc-tdep.h".
3518 * sparc-nat.c: Likewise.
3519 * sparc-tdep.c: Likewise.
3520 * sparc64nbsd-nat.c: Likewise.
3521 * sparcnbsd-nat.c: Likewise.
3522 * sparcnbsd-tdep.c: Likewise.
3523 * sparc-tdep.h: New file.
3524 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3525 and sparc_npc_regnum.
3526
3527 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3528
3529 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3530 (mips_linux_cannot_store_register): List supported instead of
3531 unsupported registers.
3532
3533 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3534
3535 * disasm.c (dump_insns): Separate instructions from addresses.
3536
3537 2003-07-07 Andreas Schwab <schwab@suse.de>
3538
3539 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3540 dependencies.
3541 * m68k-tdep.c (NUM_FREGS): Delete.
3542 (SIG_PC_FP_OFFSET): Delete.
3543 (TARGET_M68K): Delete.
3544 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3545 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3546 P_MOVEL_SP, P_MOVEML_SP): Define.
3547 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3548 P_TRAP): Delete.
3549 (m68k_register_raw_size): Delete.
3550 (m68k_register_virtual_size): Delete.
3551 (m68k_register_type): Renamed from m68k_register_virtual_type and
3552 add gdbarch argument.
3553 (m68k_store_struct_return): Delete.
3554 (m68k_deprecated_extract_return_value): Delete.
3555 (m68k_deprecated_extract_struct_value_address): Delete.
3556 (m68k_frame_chain): Delete.
3557 (m68k_frame_saved_pc): Delete.
3558 (m68k_fix_call_dummy): Delete.
3559 (m68k_push_dummy_frame): Delete.
3560 (m68k_pop_frame): Delete.
3561 (m68k_extract_return_value): New function.
3562 (m68k_store_return_value): Rewrite using regcache.
3563 (m68k_extract_struct_value_address): Rewrite using regcache.
3564 (m68k_push_dummy_call): New function.
3565 (struct m68k_frame_cache): Define.
3566 (m68k_alloc_frame_cache): New function.
3567 (m68k_analyze_frame_setup): New function.
3568 (m68k_analyze_register_saves): New function.
3569 (m68k_analyze_prologue): New function.
3570 (m68k_skip_prologue): Rewrite using above functions.
3571 (m68k_unwind_pc): New function.
3572 (m68k_frame_cache): New function.
3573 (m68k_frame_this_id): New function.
3574 (m68k_frame_prev_register): New function.
3575 (m68k_frame_unwind): New variable.
3576 (m68k_frame_p): New function.
3577 (m68k_sigtramp_frame_cache): New function.
3578 (m68k_sigtramp_frame_this_id): New function.
3579 (m68k_sigtramp_frame_prev_register): New function.
3580 (m68k_sigtramp_frame_unwind): New variable.
3581 (m68k_sigtramp_frame_p): New function.
3582 (m68k_frame_base_address): New function.
3583 (m68k_frame_base): New function.
3584 (m68k_unwind_dummy_id): New function.
3585 (fill_gregset): Use regcache_collect.
3586 (fill_fpregset): Likewise.
3587 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3588 defined.
3589 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3590 deprecated_init_frame_pc, deprecated_store_struct_return,
3591 deprecated_extract_return_value, deprecated_store_return_value,
3592 deprecated_frame_chain, deprecated_frame_saved_pc,
3593 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3594 deprecated_register_virtual_size,
3595 deprecated_max_register_raw_size,
3596 deprecated_max_register_virtual_size,
3597 deprecated_register_virtual_type, deprecated_register_size,
3598 deprecated_register_byte, deprecated_register_bytes,
3599 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3600 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3601 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3602 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3603 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3604 deprecated_push_dummy_frame, deprecated_pop_frame,
3605 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3606 only if SYSCALL_TRAP is defined. Set extract_return_value,
3607 store_return_value, extract_struct_value_address, register_type,
3608 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3609 predicates.
3610 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3611 M68K_MAX_REGISTER_SIZE): Define.
3612 (struct m68k_sigtramp_info): Define.
3613 (struct gdbarch_tdep): Add get_sigtramp_info.
3614 * m68klinux-nat.c (fetch_register): Use register_size instead of
3615 REGISTER_RAW_SIZE. Don't put assignment in if.
3616 (store_register): Likewise.
3617 (fetch_inferior_registers): Likewise.
3618 (store_inferior_registers): Likewise.
3619 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3620 (m68k_linux_frame_saved_pc): Delete.
3621 (m68k_linux_sigcontext_reg_offset,
3622 m68k_linux_ucontext_reg_offset): Define.
3623 (m68k_linux_get_sigtramp_info): New function.
3624 (m68k_linux_extract_return_value): Rewrite using regcache.
3625 (m68k_linux_store_return_value): Likewise.
3626 (m68k_linux_extract_struct_value_address): Likewise.
3627 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3628 Don't set deprecated_frame_saved_pc,
3629 deprecated_extract_return_value, deprecated_store_return_value,
3630 deprecated_extract_struct_value_address. Set
3631 extract_return_value, store_return_value,
3632 extract_struct_value_address.
3633
3634 2003-07-07 Andrew Cagney <cagney@redhat.com>
3635
3636 * expprint.c: Include "user-regs.h" instead of "frame.h".
3637 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3638 frame_map_regnum_to_name.
3639 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3640 (frame_map_name_to_regnum): Simplify, call
3641 user_reg_map_name_to_regnum.
3642 (frame_map_regnum_to_name): Simplify, call
3643 user_reg_map_regnum_to_name.
3644 (frame_register_unwind): Update.
3645 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3646 (_initialize_frame_reg): Call user_reg_add_builtin.
3647 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3648 (value_of_register): Use value_of_user_reg.
3649 * eval.c (evaluate_subexp_standard): Update.
3650 * parse.c (write_dollar_variable): Update.
3651 * d10v-tdep.c (d10v_print_registers_info): Update.
3652 * infcmd.c (registers_info): Update.
3653 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3654 (builtin_regs_h): Delete macro.
3655 (user_regs_h): Define.
3656 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3657 (builtin-regs.o): Delete target.
3658 (user-regs.o): Specify dependencies.
3659 (expprint.o): Update dependencies.
3660 (findvar.o): Update dependencies.
3661 (frame.o): Update dependencies.
3662 (std-regs.o): Update dependencies.
3663
3664 2003-07-06 Christopher Faylor <cgf@redhat.com>
3665
3666 * win32-nat.c (solib_symbols_add): Use one variable for all section
3667 address stuff. Pass variable rather than address of variable to
3668 safe_symbol_file_add.
3669
3670 2003-07-06 Andreas Schwab <schwab@suse.de>
3671
3672 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3673
3674 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3675
3676 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3677
3678 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3679
3680 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3681
3682 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3683
3684 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3685 * config/i386/nto.mh: New file.
3686 * config/i386/nm-nto.h: New file.
3687 * configure.host: Add i[3456]86-*-nto*.
3688
3689 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3690
3691 * remote-vx.c (vx_add_symbols): Fix compilation error.
3692
3693 2003-07-03 Andrew Cagney <cagney@redhat.com>
3694
3695 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3696 * gdbarch.h, gdbarch.c: Re-generate.
3697 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3698 (legacy_register_name): Declare.
3699 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3700 (REGISTER_NAME): Define.
3701 * sparc-tdep.c (legacy_register_name): New function.
3702 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3703 (REGISTER_NAME): Define.
3704 (hppa64_register_name): Declare.
3705 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3706 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3707 (hppa64_register_name): New function.
3708 (hppa_register_name): New function.
3709 * arch-utils.c (legacy_register_name): Delete.
3710 * arch-utils.h (legacy_register_name): Delete.
3711
3712 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3713
3714 * cli/cli-interp.c (cli_interpreter_resume): Update the
3715 cli_uiout's stream to gdb_stdout.
3716
3717 2003-07-03 Andrew Cagney <cagney@redhat.com>
3718
3719 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3720 predicate.
3721 * gdbarch.h, gdbarch.c: Re-generate.
3722 * regcache.c (init_regcache_descr): Use legacy code when either
3723 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3724
3725 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3726
3727 * NEWS: Move "set logging" entry into GDB 6.0 section.
3728
3729 2003-07-02 Jim Blandy <jimb@redhat.com>
3730
3731 * s390-tdep.c (struct frame_extra_info): new member:
3732 'stack_bought_valid'.
3733 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3734 initialize fextra_info->stack_bought.
3735 (s390_frameless_function_invocation): Don't trust the value of
3736 fextra_info_ptr->stack_bought unless
3737 fextra_info->stack_bought_valid is set.
3738
3739 New S390 prologue analyzer.
3740 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3741 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3742 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3743 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3744 compute_x_addr, s390_on_stack, s390_store,
3745 s390_get_signal_frame_info): New functions.
3746 (S390_NUM_SPILL_SLOTS): New macro.
3747 (s390_get_frame_info): Rewritten.
3748 (is_arg_reg): Deleted.
3749
3750 Break out the decoding of S/390 instructions into separate
3751 functions, to make it more legible, and easier to check
3752 against the spec.
3753 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3754 is_rx, is_rxe): New functions.
3755 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3756 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3757 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3758 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3759 enums for opcode values. (Is this an improvement?)
3760
3761 2003-07-02 Andrew Cagney <cagney@redhat.com>
3762
3763 * i386-tdep.c: Revert change committed as part of trad-frame code
3764 below.
3765
3766 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3767
3768 * breakpoint.c (insert_catchpoint): Make static.
3769
3770 2003-07-02 Andreas Schwab <schwab@suse.de>
3771
3772 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3773 former ia64_push_arguments and ia64_push_return_address, and use
3774 regcache functions instead of read/write_register.
3775 (ia64_gdbarch_init): Set push_dummy_call instead of
3776 deprecated_push_arguments and deprecated_push_return_address.
3777
3778 2003-07-01 Andreas Jaeger <aj@suse.de>
3779
3780 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3781 before the call.
3782 Set %rax only to number of SSE registers used.
3783
3784 2003-07-01 Andrew Cagney <cagney@redhat.com>
3785
3786 * trad-frame.h: Update comments, a -1 .addr is reserved.
3787 (trad_frame_value_p, trad_frame_addr_p): Declare.
3788 (trad_frame_reg_p): Declare.
3789 (trad_frame_set_value): Rename trad_frame_register_value.
3790 (trad_frame_set_unknown): Declare.
3791 * trad-frame.c (trad_frame_realreg_p): New function.
3792 (trad_frame_addr_p, trad_frame_value_p): New function.
3793 (trad_frame_set_unknown): New function.
3794 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3795 (trad_frame_prev_register): Use trad_frame_realreg_p,
3796 trad_frame_addr_p and trad_frame_value_p.
3797 (trad_frame_set_value): Rename trad_frame_register_value.
3798 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3799 and trad_frame_set_value.
3800
3801 2003-06-30 Jim Blandy <jimb@redhat.com>
3802
3803 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3804 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3805 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3806 for 16 registers, and then 32 more bytes.
3807 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3808 New macros.
3809 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3810 Move up in the file, since it's now used by is_simple_arg.
3811 (is_simple_arg): Don't assume registers are four bytes long.
3812 Exclude all double arguments. Extended floats are not simple
3813 args.
3814 (is_power_of_two): New function.
3815 (pass_by_copy_ref): Call is_power_of_two, and check that the
3816 length fits in a register, rather than listing all the acceptable
3817 sizes. Extended floats are not passed by reference.
3818 (s390_push_arguments): Don't assume registers are four bytes long.
3819 Reserve an argument register to point to the buffer for structures
3820 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3821 S390_STACK_FRAME_OVERHEAD.
3822
3823 2003-06-30 Andreas Schwab <schwab@suse.de>
3824
3825 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3826 format error message.
3827
3828 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3829
3830 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3831
3832 2003-06-30 David Carlton <carlton@kealia.com>
3833
3834 Band-aid for PR c++/1245.
3835 * Makefile.in (cp-support.o): Depend on complaints_h.
3836 * cp-support.c: Include complaints.h. Add declaration for
3837 find_last_component.
3838 (cp_find_first_component): Separate code into
3839 cp_find_first_component_aux.
3840 (cp_find_first_component_aux): Call demangled_name_complaint.
3841 (demangled_name_complaint): New.
3842
3843 2003-06-30 Andrew Cagney <cagney@redhat.com>
3844
3845 * remote.c (remote_write_bytes): Explicitly compute and then use
3846 the payload size. Update comments to reflect. Fixes problem of
3847 GDB not sending small packets as found by Fred Fish.
3848
3849 2003-06-30 Andrew Cagney <cagney@redhat.com>
3850
3851 * remote.c (remote_async_wait): Fix -Wformat problem.
3852
3853 2003-06-29 Andrew Cagney <cagney@redhat.com>
3854
3855 * remote.c (remote_wait): Call error, and not warning, when the
3856 packet is corrupt.
3857 (remote_async_wait): Ditto.
3858
3859 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3860
3861 * sparc-tdep.c (sparc_y_regnum): Make external again.
3862
3863 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3864
3865 * cli/cli-logging.c (pop_output_files): Add void to function
3866 definition.
3867
3868 2003-06-29 Andrew Cagney <cagney@redhat.com>
3869
3870 * frame.c (frame_register_unwind): Use unsigned char when dumping
3871 the buffer contents.
3872
3873 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3874
3875 * cli/cli-logging.c: New file.
3876 * cli-out.c (struct ui_out_data): Add original_stream.
3877 (cli_redirect): New function.
3878 (cli_ui_out_impl): Add cli_redirect.
3879 (cli_out_new): Initialize original_stream.
3880 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3881 (uo_redirect, ui_out_redirect): New.
3882 * ui-out.h (struct ui_out_impl): Add redirect member.
3883 (redirect_ftype): New.
3884 (ui_out_redirect): Add prototype.
3885 * Makefile.in: Add rules for cli-logging.c.
3886 * NEWS: Mention "set logging".
3887
3888 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3889
3890 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3891
3892 2003-06-27 Andrew Cagney <cagney@redhat.com>
3893
3894 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3895 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3896 * avr-tdep.c (avr_call_dummy_address): Delete function.
3897 (avr_gdbarch_init): Do not set call_dummy_address.
3898
3899 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3900
3901 * symfile.c (syms_from_objfile): Move variables to inner block.
3902 Move the checks for the non-mainline case a bit earlier to avoid
3903 doing some useless computations.
3904
3905 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3906
3907 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3908
3909 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3910
3911 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3912 sections.
3913
3914 2003-06-26 Michael Chastain <mec@shout.net>
3915
3916 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3917 gdb/testsuite/gdb.c++/pr-1210.exp.
3918
3919 2003-06-26 Andrew Cagney <cagney@redhat.com>
3920
3921 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3922 altivec_expression.h and altivec_registers.h.
3923
3924 2003-06-26 Andrew Cagney <cagney@redhat.com>
3925
3926 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3927 info->mach when MIPS16. Patch suggested by Fred Fish.
3928
3929 2003-06-26 Andrew Cagney <cagney@redhat.com>
3930
3931 * utils.c (internal_vproblem): Print the problem to a reason
3932 buffer and then pass to query. Make the msg variable more local.
3933
3934 2003-06-26 Andrew Cagney <cagney@redhat.com>
3935
3936 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3937 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3938 * gdbarch.h, gdbarch.c: Re-generate.
3939 * frame-base.c (default_frame_args_address): Update. Use
3940 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3941 not available.
3942 (default_frame_locals_address): Ditto for
3943 DEPRECATED_FRAME_LOCALS_ADDRESS.
3944 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3945 (vax_frame_num_args): Update.
3946 (vax_gdbarch_init): Update.
3947 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3948 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3949 * mcore-tdep.c (mcore_gdbarch_init): Update.
3950 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3951 * ia64-tdep.c (ia64_gdbarch_init): Update.
3952 * symtab.h (address_class): Update comments.
3953 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3954 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3955 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3956 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3957 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3958 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3959 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3960 * alpha-mdebug-tdep.c: Update.
3961 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3962
3963 2003-06-26 Andreas Jaeger <aj@suse.de>
3964
3965 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3966 of SSE registers so that varargs functions work. Rework handling
3967 of passing arguments on the stack.
3968 (x86_64_store_return_value): Return double and float values in SSE
3969 register.
3970
3971 2003-06-24 Michael Chastain <mec@shout.net>
3972
3973 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3974 the "constructor breakpoints ignored" bug.
3975
3976 2003-06-25 David Carlton <carlton@kealia.com>
3977
3978 * MAINTAINERS: Update e-mail address.
3979
3980 2003-06-24 Jim Blandy <jimb@redhat.com>
3981
3982 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3983
3984 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3985 function.
3986 (ppc_linux_init_abi): Register it as the
3987 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3988
3989 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3990 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3991 method.
3992
3993 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3994 (ppc64_standard_linkage_target): Use it.
3995
3996 2003-06-23 Andrew Cagney <cagney@redhat.com>
3997
3998 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3999 for 0 "int0" and 4 "int32" sized registers.
4000 * gdbtypes.c (builtin_type_int0): Define.
4001 (build_gdbtypes): Initialize builtin_type_int0.
4002 * gdbtypes.h (builtin_type_int0): Declare.
4003
4004 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4005
4006 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4007 as characters are unsigned.
4008
4009 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4010
4011 PR gdb/1179
4012 * dwarfread.c (struct_type): Skip static fields without crashing.
4013
4014 2003-06-22 Andrew Cagney <cagney@redhat.com>
4015
4016 GDB 6.0 branch created.
4017 * README: Update.
4018 * PROBLEMS: Update. Empty.
4019 * NEWS: Update.
4020
4021 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4022
4023 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4024 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4025
4026 2003-06-22 Andrew Cagney <cagney@redhat.com>
4027
4028 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4029 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4030 Velikov.
4031
4032 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4033
4034 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4035 compilers.
4036
4037 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4038
4039 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4040 argument of val_print.
4041 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4042 to the address argument of baseclass_offset or target_read_memory.
4043 Do add it to the argument of cp_print_value_fields.
4044
4045 2003-06-21 Andrew Cagney <cagney@redhat.com>
4046
4047 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4048 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4049 instead of 0..NUM_REGS.
4050 (mips_register_reggroup_p): New function.
4051 (mips_pseudo_register_write): New function.
4052 (mips_pseudo_register_read): New function.
4053 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4054 based on the register's type.
4055 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4056 cooked.
4057 (mips_get_saved_register): Simplify. Assert that REGNO is a
4058 pseudo / cooked.
4059 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4060 (mips_register_type): Replace mips_register_virtual_type. Map
4061 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4062 when available.
4063 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4064 that the register is cooked / virtual.
4065 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4066 Only get the extra info when needed.
4067 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4068 (mips32_heuristic_proc_desc): Fetch the cooked register.
4069 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4070 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4071 (mips_print_register): Use gdbarch_register_type, instead of
4072 REGISTER_VIRTUAL_TYPE.
4073 (print_gp_register_row): Use gdbarch_register_type, instead of
4074 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4075 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4076 Print the pseudo / cooked registers.
4077 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4078 Print the pseudo / cooked registers.
4079 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4080 REG_NUM is pseudo / cooked.
4081 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4082 (mips_n32n64_xfer_return_value): Ditto.
4083 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4084 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4085 (mips_register_sim_regno): New function.
4086 (mips_gdbarch_init): Set deprecated_register_byte,
4087 register_group_p, pseudo_register_write, pseudo_register_read,
4088 register_sim_regno, and num_pseudo_regs. Set register_type,
4089 instead of register_virtual_type.
4090 * Makefile.in (mips-tdep.o): Update dependencies.
4091 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4092 REGISTER_VIRTUAL_TYPE.
4093 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4094 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4095 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4096 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4097 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4098
4099 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4100
4101 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4102 * cli/cli-cmds.c: Include "gdb_vfork.h".
4103 (shell_escape): Use vfork.
4104
4105 2003-06-21 Andrew Cagney <cagney@redhat.com>
4106
4107 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4108 32 bit floating-point register saves.
4109
4110 * frame.h (deprecated_unwind_get_saved_register): Delete.
4111 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4112 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4113 and deprecated_get_next_frame_hack instead of
4114 deprecated_unwind_get_saved_register.
4115
4116 * mips-tdep.c (mips_dump_tdep): Do not print
4117 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4118
4119 * frame.c (get_frame_register): New function.
4120 (frame_unwind_register_signed): New function.
4121 (get_frame_register_signed): New function.
4122 (frame_unwind_register_unsigned): New function.
4123 (get_frame_register_unsigned): New function.
4124 * frame.h: Add comments on naming schema.
4125 (get_frame_register, frame_unwind_register_signed): Declare.
4126 (get_frame_register_signed, get_frame_register_signed): Declare.
4127 (frame_unwind_register_unsigned): Declare.
4128 (get_frame_register_unsigned): Declare.
4129
4130 2003-06-20 Theodore A. Roth <troth@openavr.org>
4131
4132 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4133
4134 2003-06-20 Theodore A. Roth <troth@openavr.org>
4135
4136 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4137 (avr_read_sp): Ditto.
4138
4139 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4140
4141 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4142 * config/arm/nm-linux.h: Likewise.
4143 * config/arm/tm-linux.h: Likewise.
4144 * config/ia64/nm-linux.h: Likewise.
4145 * config/ia64/tm-ia64.h: Likewise.
4146 * config/s390/tm-linux.h: Likewise.
4147 * config/s390/tm-s390.h: Likewise.
4148 * s390-nat.c: Likewise.
4149 * s390-tdep.c: Likewise.
4150
4151 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4152 * config/ia64/linux.mt: Likewise.
4153 * config/m68k/linux.mh: Likewise.
4154 * config/mips/linux.mt: Likewise.
4155 * config/powerpc/linux.mh: Likewise.
4156 * config/sh/linux.mt: Likewise.
4157
4158 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4159
4160 * solib.c (solib_open): Change tests for whether to search
4161 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4162 comments.
4163
4164 2003-06-19 Theodore A. Roth <troth@openavr.org>
4165
4166 * avr-tdep.c (avr_frame_address): Delete function.
4167 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4168 set_gdbarch_frame_args_address.
4169
4170 2003-06-19 Andrew Cagney <cagney@redhat.com>
4171
4172 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4173 (REGISTER_CONVERT_FROM_TYPE): Delete.
4174 (mips_register_convert_to_type): Delete declaration.
4175 (mips_register_convert_from_type): Delete declaration.
4176 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4177 kernel/.
4178
4179 2003-06-19 Michael Snyder <msnyder@redhat.com>
4180
4181 * linux-nat.h: New file.
4182 * linux-nat.c: Include linux-nat.h.
4183 * lin-lwp.c: Include linux-nat.h.
4184 Move struct lwp_info def to linux-nat.h.
4185 * linux-proc.c: Include linux-nat.h.
4186 (linux_make_note_section): Iterate over lwps instead of threads.
4187 (linux_do_thread_registers): Use lwp instead of merged pid.
4188 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4189 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4190 Add dependency on linux_nat_h.
4191
4192 2003-06-19 Theodore A. Roth <troth@openavr.org>
4193
4194 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4195
4196 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4197
4198 * varobj.c (get_type, get_target_type): Use check_typedef.
4199
4200 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4201
4202 * breakpoint.c (insert_catchpoint): Call internal_error.
4203
4204 2003-06-19 Theodore A. Roth <troth@openavr.org>
4205
4206 * avr-tdep.c (avr_push_dummy_code): Delete function.
4207 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4208
4209 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4210
4211 * arch-utils.c (default_prepare_to_proceed): Remove.
4212 (generic_prepare_to_proceed): Remove.
4213 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4214 (generic_prepare_to_proceed): Remove prototype.
4215 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4216 * gdbarch.c: Regenerate.
4217 * gdbarch.h: Regenerate.
4218 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4219 * hppah-nat.c (hppa_switched_threads): Remove.
4220 * infrun.c (prepare_to_proceed): New static function, copied from
4221 generic_prepare_to_proceed. Remove select_it argument.
4222 (proceed): Call prepare_to_proceed.
4223 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4224 variables.
4225 (ptrace_wait): Don't set the removed variables.
4226 (hppa_switched_threads): Remove.
4227 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4228 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4229 (lin_lwp_prepare_to_proceed): Remove prototype.
4230 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4231 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4232
4233 2003-06-18 Theodore A. Roth <troth@openavr.org>
4234
4235 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4236 trad-frame.h.
4237 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4238 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4239 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4240 (AVR_PROLOGUE_*): Enumerate prologue types.
4241 (struct frame_extra_info): Remove.
4242 (struct avr_unwind_cache): Define.
4243 (avr_write_sp): Delete function.
4244 (avr_read_fp): Ditto.
4245 (avr_init_extra_frame_info): Ditto.
4246 (avr_pop_frame): Ditto.
4247 (avr_frame_saved_pc): Ditto.
4248 (avr_saved_pc_after_call): Ditto.
4249 (avr_push_return_address): Ditto.
4250 (avr_frame_chain): Ditto.
4251 (avr_store_struct_return): Ditto.
4252 (avr_push_arguments): Ditto.
4253 (avr_scan_prologue): Update comments. Changed to set up the info for
4254 cache unwinding. Now returns end of prologue PC.
4255 (avr_skip_prologue): Better handling of functions lacking a prologue
4256 by using avr_scan_prologue.
4257 (avr_scan_arg_moves): New function.
4258 (avr_saved_regs_unwinder): Ditto.
4259 (avr_frame_unwind_cache): Ditto.
4260 (avr_unwind_pc): Ditto.
4261 (avr_frame_this_id): Ditto.
4262 (avr_frame_prev_register): Ditto.
4263 (avr_frame_p): Ditto.
4264 (avr_frame_base_address ): Ditto.
4265 (avr_unwind_dummy_id): Ditto.
4266 (avr_push_dummy_code): Ditto.
4267 (push_stack_item): Ditto.
4268 (pop_stack_item): Ditto.
4269 (avr_push_dummy_call): Ditto.
4270 (struct stack_item): Define.
4271 (avr_frame_unwind): Declare structure.
4272 (avr_frame_base): Ditto.
4273 (avr_gdbarch_init): Remove calls to
4274 set_gdbarch_deprecated_init_frame_pc,
4275 set_gdbarch_deprecated_target_read_fp,
4276 set_gdbarch_deprecated_dummy_write_sp,
4277 set_gdbarch_deprecated_fp_regnum,
4278 set_gdbarch_deprecated_push_arguments,
4279 set_gdbarch_deprecated_push_return_address,
4280 set_gdbarch_deprecated_pop_frame,
4281 set_gdbarch_deprecated_store_struct_return,
4282 set_gdbarch_deprecated_frame_init_saved_regs,
4283 set_gdbarch_deprecated_init_extra_frame_info,
4284 set_gdbarch_deprecated_frame_chain,
4285 set_gdbarch_deprecated_frame_saved_pc,
4286 set_gdbarch_deprecated_saved_pc_after_call.
4287 Add calls to set_gdbarch_push_dummy_call,
4288 set_gdbarch_push_dummy_code,
4289 frame_unwind_append_predicate,
4290 frame_base_set_default,
4291 set_gdbarch_unwind_dummy_id,
4292 set_gdbarch_unwind_pc.
4293 Wrap a long line.
4294
4295 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4296
4297 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4298 registers for H8/300S.
4299 (h8300_print_registers_info): Ditto.
4300 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4301
4302 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4303
4304 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4305 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4306 (lin_lwp_wait): Likewise. Update comments.
4307 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4308 (pull_pid_from_list, linux_record_stopped_pid): New.
4309
4310 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4311
4312 * ada-lang.c (scan_discrim_bound): Name first argument.
4313 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4314 declared by ALL_BLOCK_SYMBOLS.
4315
4316 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4317
4318 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4319 ("regcache.h"): Include it.
4320 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4321
4322 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4323
4324 * NEWS: Mention gdbserver detach change and "disconnect" command.
4325 * infcmd.c (disconnect_command): New function.
4326 (_initialize_infcmd): Add ``disconnect'' command.
4327 * remote.c (remote_async_detach): Delete.
4328 (remote_detach): Merge remote_async_detach.
4329 (remote_disconnect): New.
4330 (init_remote_ops): Set to_disconnect.
4331 (init_remote_cisco_ops): Likewise.
4332 (init_remote_async_ops): Likewise. Use remote_detach.
4333 * target.c (cleanup_target): Default to_disconnect.
4334 (update_current_target): Inherit to_disconnect.
4335 (target_disconnect, debug_to_disconnect): New functions.
4336 (setup_target_debug): Set to_disconnect.
4337 * target.h (struct target_ops): Add to_disconnect.
4338 (target_disconnect): Add prototype.
4339
4340 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4341
4342 * breakpoint.c (insert_catchpoint): New function.
4343 (insert_breakpoints): Use catch_exceptions to call
4344 insert_catchpoint. Disable catchpoints if they fail to insert.
4345
4346 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4347
4348 * symfile.c (reread_symbols): Clear sym_private.
4349
4350 2003-06-17 Andrew Cagney <cagney@redhat.com>
4351
4352 * trad-frame.h (struct frame_info): Add opaque declaration.
4353 * remote-fileio.h (struct cmd_list_element): Add opaque
4354 declaration.
4355 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4356 comments.
4357
4358 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4359
4360 * remote.c (remote_prepare_to_store): Replace call to
4361 deprecated_read_register_bytes with multiple regcache_raw_read
4362 calls.
4363
4364 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4365
4366 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4367 (nto_find_and_open_solib): Likewise.
4368 (nto_init_solib_absolute_prefix): Likewise.
4369 (_initialize_nto_tdep): Fix indentation.
4370
4371 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4372
4373 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4374
4375 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4376
4377 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4378
4379 2003-06-17 Jim Blandy <jimb@redhat.com>
4380
4381 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4382
4383 2003-06-16 Theodore A. Roth <troth@openavr.org>
4384
4385 * avr-tdep.c (avr_extract_return_value): New function.
4386 (avr_gdbarch_init): Set extract_return_value method.
4387
4388 2003-06-16 Andrew Cagney <cagney@redhat.com>
4389
4390 * frame.h (deprecated_get_next_frame_hack): Declare.
4391 * frame.c (legacy_saved_regs_prev_register): Only require
4392 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4393 there are always saved regs.
4394 (deprecated_generic_get_saved_register): Do not require
4395 DEPRECATED_FRAME_INIT_SAVED_REGS.
4396 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4397 use frame ID unwind instead.
4398 (deprecated_get_next_frame_hack): New function.
4399
4400 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4401
4402 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4403 (h8300_push_dummy_call): ...this function. Some minor optimization.
4404 (h8300_push_return_address): Remove.
4405 (h8300_gdbarch_init): Remove calls to
4406 set_gdbarch_deprecated_dummy_write_sp,
4407 set_gdbarch_deprecated_push_arguments and
4408 set_gdbarch_deprecated_push_return_address.
4409 Add call to set_gdbarch_push_dummy_call.
4410
4411 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4412
4413 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4414 (E_PSEUDO_EXR_REGNUM): Ditto.
4415 (h8300_is_argument_spill): Check for instructions moving argument
4416 registers into safe registers.
4417 (h8300_skip_prologue): Check for stm instruction to push registers
4418 used for register variables onto stack.
4419 (gdb_print_insn_h8300): Remove.
4420 (h8300_examine_prologue): Add a comment.
4421 (h8300_register_name): Take pseudo registers into account.
4422 (h8300s_register_name): Ditto.
4423 (h8300sx_register_name): Ditto.
4424 (h8300_print_register): Ditto.
4425 (h8300_print_registers_info): Define "nice" printing order.
4426 (h8300_saved_pc_after_call): Take pseudo registers into account.
4427 (h8300_register_type): Ditto. Return type used for remote connection
4428 when requesting real CCR or EXR register, return actual type when
4429 requesting pseudo CCR or EXR.
4430 (h8300_pseudo_register_read): New function.
4431 (h8300_pseudo_register_write): Ditto.
4432 (h8300_dbg_reg_to_regnum): Ditto.
4433 (h8300s_dbg_reg_to_regnum): Ditto.
4434 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4435 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4436 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4437 set_gdbarch_print_insn architecture dependent.
4438 Call set_gdbarch_pseudo_register_read and
4439 set_gdbarch_pseudo_register_write.
4440 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4441
4442 2003-06-16 Andrew Cagney <cagney@redhat.com>
4443
4444 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4445 * gdbarch.h, gdbarch.c: Re-generate.
4446 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4447 * s390-tdep.c (s390_gdbarch_init): Update.
4448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4449 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4450 * mips-tdep.c (mips_gdbarch_init): Update.
4451 * mcore-tdep.c (mcore_gdbarch_init): Update.
4452 * cris-tdep.c (cris_gdbarch_init): Update.
4453 * infcall.c (call_function_by_hand): Update.
4454 * ia64-tdep.c (ia64_push_arguments): Update comment.
4455 * frame.c (legacy_get_prev_frame): Do not assume
4456 SAVE_DUMMY_FRAME_TOS_P.
4457 * dummy-frame.c (find_dummy_frame): Update comment.
4458
4459 2003-06-16 Andrew Cagney <cagney@redhat.com>
4460
4461 * regcache.c (do_cooked_read): Do not use register_valid_p.
4462
4463 2003-06-15 Theodore A. Roth <troth@openavr.org>
4464
4465 * avr-tdep.c (avr_register_type): Remove a blank line.
4466 (avr_scan_prologue): Correct some comments.
4467
4468 2003-06-15 Theodore A. Roth <troth@openavr.org>
4469
4470 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4471 prologue types.
4472 Properly scan prologues generated by gcc with the -mcall-prologues
4473 option.
4474 Add code to scan -mcall-prologues for mega devices.
4475
4476 2003-06-15 Theodore A. Roth <troth@openavr.org>
4477
4478 * avr-tdep.c (avr_register_byte): Delete function.
4479 (avr_register_raw_size): Delete function.
4480 (avr_register_virtual_size): Delete function.
4481 (avr_register_virtual_type): Delete function.
4482 (avr_register_type): New function.
4483 (avr_address_to_pointer): Remove unused code.
4484 (avr_read_fp): Need to read FP as two separate bytes due to change to
4485 avr_register_type() usage.
4486 (avr_gdbarch_init): Don't set deprecated_register_size.
4487 Don't set deprecated_register_bytes.
4488 Don't set deprecated_register_byte.
4489 Don't set deprecated_register_raw_size.
4490 Don't set deprecated_max_register_raw_size.
4491 Don't set deprecated_register_virtual_size.
4492 Don't set deprecated_max_register_virtual_size.
4493 Don't set deprecated_register_virtual_type.
4494 Set register_type method.
4495
4496 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4497
4498 * Makefile.in (linux-nat.o): Add rule.
4499 * linux-nat.c: New file.
4500 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4501 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4502 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4503 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4504 * config/arm/linux.mh (NATDEPFILES): Likewise.
4505 * config/i386/linux.mh (NATDEPFILES): Likewise.
4506 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4507 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4508 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4509 * config/mips/linux.mh (NATDEPFILES): Likewise.
4510 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4511 * config/s390/s390.mh (NATDEPFILES): Likewise.
4512 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4513
4514 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4515
4516 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4517 replace out-of-date comment.
4518
4519 2003-06-15 Andrew Cagney <cagney@redhat.com>
4520
4521 * rdi-share/host.h (Fail): Change to a varargs function.
4522 * remote-rdi.c (Fail): Update.
4523
4524 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4525
4526 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4527 (i386_convert_register_p, i386_register_to_value,
4528 i386_register_from_value): Handle types longer than 8 bytes.
4529
4530 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4531
4532 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4533 Move floating-point code to new function in i387-tdep.c.
4534 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4535 New functions containing code moved here from i386-tdep.c.
4536 * i387-tdep.h: Add opaque declaration for `struct type'.
4537 (i387_register_to_value, i387_value_to_register): New prototypes.
4538 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4539 (x86_64_init_abi): Set convert_register_p, register_to_value and
4540 value_to_register here.
4541
4542 2003-06-14 Andrew Cagney <cagney@redhat.com>
4543
4544 * mips-tdep.c (mips_register_to_value): Make static.
4545 (mips_value_to_register): Make static.
4546 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4547 * ia64-tdep.c (ia64_register_raw_size): Make static.
4548 (ia64_register_virtual_size): Make static.
4549 (ia64_register_byte): Make static.
4550 * i387-tdep.c: Include "i387-tdep.h".
4551 (print_387_control_word): Delete function.
4552 (print_387_status_word): Delete function.
4553 (print_387_status_bits): Delete function.
4554 (print_387_control_bits): Delete function.
4555 * Makefile.in (i387-tdep.o): Update dependencies.
4556 * rdi-share/host.h (Fail): Declare.
4557 * remote-rdi.c (Fail): Update to match declaration.
4558
4559 2003-06-14 Andrew Cagney <cagney@redhat.com>
4560
4561 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4562 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4563 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4564 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4565 * README: Delete reference to remote-array.
4566 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4567 (remote-array.o): Delete target.
4568 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4569 * remote-array.c: Delete file.
4570
4571 2003-06-14 Andrew Cagney <cagney@redhat.com>
4572 Mark Kettenis <kettenis@gnu.org>
4573
4574 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4575 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4576 parameter with "frame".
4577 * gdbarch.h, gdbarch.c: Re-generate.
4578 * frame.h (put_frame_register): Declare.
4579 * frame.c (put_frame_register): New function.
4580 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4581 (legacy_register_to_value): Rewrite, use "frame" to get the
4582 register value.
4583 (legacy_value_to_register): Rewrite, use "frame" to find the
4584 register's location before storing.
4585 * arch-utils.h (legacy_convert_register_p): Update.
4586 (legacy_register_to_value, legacy_value_to_register): Update.
4587 * findvar.c (value_from_register): Rewrite, eliminate use of
4588 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4589 "frame" to REGISTER_TO_VALUE.
4590 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4591 lval_reg_frame_relative + lval_register branch of the switch. Do
4592 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4593 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4594 I386_EDI_REGNUM): New defines.
4595 (i386_next_regnum, i386_convert_register_p,
4596 i386_register_to_value, i386_value_to_register): New functions.
4597 (i386_register_convertible, i386_register_convert_to_virtual,
4598 i386_convert_to_raw): Remove functions.
4599 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4600 value_to_register instead of register_convertible,
4601 register_convert_to_virtual and register_convert_to_raw.
4602 * mips-tdep.c (mips_convert_register_p): New function.
4603 (mips_value_to_register): Replace mips_register_convert_from_type.
4604 (mips_register_to_value): Replace mips_register_convert_to_type.
4605 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4606 register_to_value.
4607 * alpha-tdep.c (alpha_convert_register_p): Update.
4608 (alpha_value_to_register): Update, store the register.
4609 (alpha_register_to_value): Update, fetch the register.
4610
4611 2003-06-14 Theodore A. Roth <troth@openavr.org>
4612
4613 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4614 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4615 Don't set deprecated_call_dummy_words.
4616 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4617 Don't set remote_translate_xfer_address.
4618 (avr_io_reg_read_command): Remove commented out debug printf.
4619 Wrap a long line.
4620
4621 2003-06-14 Theodore A. Roth <troth@openavr.org>
4622
4623 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4624 causes gdb to seg fault.
4625
4626 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4627
4628 * sparc-nat.c (fetch_inferior_registers): Correct
4629 a reference to "registers".
4630
4631 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4632
4633 * Makefile.in (exc_request_U_h): Define
4634 (exc_request_S_h): Likewise.
4635 (msg_reply_S_h): Likewise.
4636 (msg_U_h): Likewise.
4637 (notify_S_h): Likewise.
4638 (process_reply_S_h): Likewise.
4639 (gnu-nat.o): Depend on gdb_obstack_h
4640 * gnu-nat.c: Include "gdb_obstack.h".
4641
4642 2003-06-13 Andrew Cagney <cagney@redhat.com>
4643
4644 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4645 * gdbarch.h, gdbarch.c: Re-generate.
4646
4647 2003-06-13 Andrew Cagney <cagney@redhat.com>
4648
4649 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4650 when deprecated REGISTER macros can be deleted.
4651 * gdbarch.h, gdbarch.c: Re-generate.
4652
4653 2003-06-13 Jim Blandy <jimb@redhat.com>
4654
4655 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4656 Linux entry point symbols for _dl_debug_state, too.
4657
4658 2003-06-13 Andrew Cagney <cagney@redhat.com>
4659
4660 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4661 available, do not use the FP register, and always save the TOS.
4662 * dummy-frame.c (dummy_frame_this_id): Do not assert
4663 SAVE_DUMMY_FRAME_TOS.
4664 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4665 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4666 (i386_push_dummy_call): Add 8 to the returned SP.
4667 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4668 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4669 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4670 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4671 (x86_64_push_dummy_call): Return "sp + 16".
4672 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4673 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4674 save_dummy_frame_tos.
4675
4676 2003-06-13 Jim Blandy <jimb@redhat.com>
4677
4678 * frv-tdep.c (frv_use_struct_convention): Delete static
4679 declaration for function deleted in my change of 2003-06-12.
4680
4681 2003-06-13 Theodore A. Roth <troth@openavr.org>
4682
4683 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4684 (avr_pointer_to_address): Shift code addrs left 1 bit.
4685 (avr_convert_from_func_ptr_addr): Delete function since operation is
4686 better handled by avr_address_to_pointer and avr_pointer_to_address.
4687 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4688
4689 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4690
4691 From Kelley Cook <kelleycook@wideopenwest.com>:
4692 * configure.host: Accept i[34567]86 variants.
4693 * configure.tgt: Likewise.
4694 * nlm/configure.in: Likewise.
4695 * nlm/configure: Regenerated.
4696
4697 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4698
4699 * arm-tdep.c (solib-svr4.h): Dont' include it.
4700 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4701 * arm-linux-tdep.c: ... here. Make static.
4702 (arm_linux_init_abi): Register it.
4703 (solib-svr4.h): Include it.
4704 * Makefile.in: Update dependencies.
4705 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4706 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4707
4708 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4709
4710 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4711 indicate registers used for return values.
4712 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4713 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4714 members.
4715 (h8300_init_extra_frame_info): Ditto.
4716 (h8300_frame_locals_address): Removed.
4717 (h8300_frame_args_address): Removed.
4718 (h8300_extract_return_value): Use new regcache structure. Only care
4719 for 16 bit CPUs.
4720 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4721 (h8300_store_return_value): Use new regcache structure. Only care
4722 for 16 bit CPUs.
4723 (h8300h_store_return_value): Same function for 32 bit CPUs.
4724 (h8300_store_struct_return): Removed.
4725 (h8300_extract_struct_value_address): Use new regcache structure.
4726 (h8300h_extract_struct_value_address): Removed.
4727 (h8300_push_dummy_code): New function.
4728 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4729 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4730 set_gdbarch_store_return_value architecture dependent.
4731 Call set_gdbarch_push_dummy_code and
4732 set_gdbarch_extract_struct_value_address.
4733 Remove calls to set_gdbarch_frame_args_address,
4734 set_gdbarch_frame_locals_address,
4735 set_gdbarch_deprecated_store_struct_return,
4736 set_gdbarch_deprecated_extract_return_value,
4737 set_gdbarch_deprecated_extract_struct_value_address,
4738 set_gdbarch_deprecated_call_dummy_words and
4739 set_gdbarch_deprecated_sizeof_call_dummy_words.
4740
4741 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4742
4743 * h8300-tdep.c (h8300_register_byte): Remove.
4744 (h8300h_register_byte): Remove.
4745 (h8300_register_virtual_type): Remove. Substitute by...
4746 (h8300_register_type): New function.
4747 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4748 (h8300h_extract_struct_value_address): Ditto.
4749 (h8300_gdbarch_init): Drop calls to
4750 set_gdbarch_deprecated_register_byte and
4751 set_gdbarch_deprecated_register_virtual_type.
4752 Add call to set_gdbarch_register_type.
4753
4754 2003-06-13 Andrew Cagney <cagney@redhat.com>
4755
4756 * gdbarch.sh: Update comments on registers.
4757 (deprecated_register_byte): Rename register_byte.
4758 (deprecated_register_raw_size): Rename register_raw_size.
4759 (deprecated_register_virtual_size): Rename register_virtual_size.
4760 (deprecated_register_virtual_type): Rename register_virtual_type.
4761 * gdbarch.h, gdbarch.c: Re-generate.
4762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4763 * vax-tdep.c (vax_gdbarch_init): Update.
4764 * v850-tdep.c (v850_gdbarch_init): Update.
4765 * sparc-tdep.c (sparc_gdbarch_init): Update.
4766 * sh-tdep.c (sh_gdbarch_init): Update.
4767 * s390-tdep.c (s390_gdbarch_init): Update.
4768 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4769 * ns32k-tdep.c: Update.
4770 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4771 * mips-tdep.c (mips_gdbarch_init): Update.
4772 * mcore-tdep.c (mcore_gdbarch_init): Update.
4773 * m68k-tdep.c (m68k_gdbarch_init): Update.
4774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4775 * ia64-tdep.c (ia64_gdbarch_init): Update.
4776 * hppa-tdep.c (hppa_gdbarch_init): Update.
4777 * h8300-tdep.c (h8300_gdbarch_init): Update.
4778 * frv-tdep.c (frv_gdbarch_init): Update.
4779 * cris-tdep.c (cris_gdbarch_init): Update.
4780 * avr-tdep.c (avr_gdbarch_init): Update.
4781 * alpha-tdep.c (alpha_gdbarch_init): Update.
4782 * arm-tdep.c (arm_gdbarch_init): Update.
4783
4784 2003-06-13 Andrew Cagney <cagney@redhat.com>
4785
4786 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4787 mips_o32_use_struct_convention with always_use_struct_convention.
4788
4789 2003-06-12 David Carlton <carlton@kealia.com>
4790
4791 * cp-namespace.c (cp_set_block_scope): Comment out
4792 processing_has_namespace_info branch.
4793
4794 2003-06-12 Jim Blandy <jimb@redhat.com>
4795
4796 Recognize and skip 64-bit PowerPC Linux linkage functions.
4797 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4798 insn_pattern, insns_match_pattern, d_field, ds_field): New
4799 functions, macros, and types for working with PPC instructions.
4800 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4801 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4802 ppc64_skip_trampoline_code): New functions, variables, and macros
4803 for recognizing and skipping linkage functions.
4804 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4805 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4806
4807 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4808 register offsets for both the 32- and 64-bit interfaces.
4809
4810 Actually finish the job started by my change of 2003-05-29.
4811 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4812 other #definition of this.
4813 (ppc_linux_skip_trampoline_code): Remove declaration.
4814 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4815 static.
4816 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4817 method for GDBARCH.
4818
4819 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4820 'long' on ppc64-*-linux*.
4821
4822 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4823 isn't #defined, assume the register doesn't exist: act as if
4824 tdep->ppc_mq_regnum were -1.
4825
4826 * configure.host, configure.tgt: Add entries for
4827 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4828 powerpc/linux.mt.
4829 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4830 New files.
4831
4832 * arch-utils.c (always_use_struct_convention): New function.
4833 * arch-utils.h (always_use_struct_convention): New prototype.
4834 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4835 (alpha_gdbarch_init): Register always_use_struct_convention,
4836 instead of alpha_use_struct_convention.
4837 * cris-tdep.c (cris_use_struct_convention): Delete.
4838 (cris_gdbarch_init): Register always_use_struct_convention,
4839 instead of cris_use_struct_convention.
4840 * frv-tdep.c (frv_use_struct_convention): Delete.
4841 (frv_gdbarch_init): Register always_use_struct_convention,
4842 instead of frv_use_struct_convention.
4843 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4844 (h8300_gdbarch_init): Register always_use_struct_convention,
4845 instead of h8300_use_struct_convention.
4846 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4847 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4848 instead of mips_o32_use_struct_convention.
4849
4850 2003-06-12 Andrew Cagney <cagney@redhat.com>
4851
4852 * wince.c: Include "mips-tdep.h".
4853 * mips-tdep.h (mips_next_pc): Declare.
4854 * mcore-tdep.c: Make more local functions static.
4855 * Makefile.in (wince.o): Update dependencies.
4856
4857 2003-06-12 David Carlton <carlton@kealia.com>
4858
4859 * symtab.c (lookup_symbol_aux_minsyms): Replace
4860 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4861 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4862 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4863 SYMBOL_NATURAL_NAME.
4864
4865 2003-06-12 Andreas Schwab <schwab@suse.de>
4866
4867 * Makefile.in (tuiDisassem.o): Update dependencies.
4868
4869 2003-06-12 David Carlton <carlton@bactrian.org>
4870
4871 * symtab.h: Delete declaration of make_symbol_overload_list.
4872 Add declaration of lookup_partial_symbol.
4873 * symtab.c (remove_params): Move to cp-support.c.
4874 (overload_list_add_symbol, make_symbol_overload_list)
4875 (sym_return_val_size, sym_return_val_index): Ditto.
4876 (lookup_partial_symbol): Make extern.
4877 * cp-support.h: Add declaration of make_symbol_overload_list.
4878 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4879 symtab.h, and block.h.
4880 (remove_params): Move here from symtab.c.
4881 (overload_list_add_symbol, make_symbol_overload_list)
4882 (sym_return_val_size, sym_return_val_index): Ditto.
4883 * valops.c: Include cp-support.h.
4884 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4885 frame_h, and block_h.
4886 (valops.o): Depend on cp_support_h.
4887
4888 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4889
4890 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4891 substitute by NUM_REGS throughout.
4892 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4893 (h8300s_register_name): New function for H8S registers.
4894 (h8300sx_register_name): Ditto for H8SX registers.
4895 (h8300_print_register): Revise register printing, avoid depending
4896 on 32 bit long.
4897 (h8300_register_byte): Only care for H8/300 registers.
4898 (h8300h_register_byte): New function for any other architecture.
4899 (h8300_register_raw_size): Remove.
4900 (h8300_register_virtual_type): Revise to return actually useful
4901 type.
4902 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4903 (h8300h_extract_struct_value_address): New function for any other
4904 architecture.
4905 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4906 set_gdbarch_register_name, set_gdbarch_register_byte,
4907 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4908 Remove calls to set_gdbarch_deprecated_register_size,
4909 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4910 set_gdbarch_deprecated_max_register_raw_size,
4911 set_gdbarch_register_virtual_size and
4912 set_gdbarch_deprecated_max_register_virtual_size entirely.
4913 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4914 set_gdbarch_long_double_bit.
4915
4916 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4917
4918 * doublest.c (convert_doublest_to_floatformat): When dealing
4919 with the implied integer bit, only alter mant_bits if we are
4920 processing a full 32 bits of mantissa.
4921
4922 2003-06-11 David Carlton <carlton@bactrian.org>
4923
4924 * dictionary.h: New.
4925 * dictionary.c: New.
4926 * block.h: Add opaque declaration for struct dictionary.
4927 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4928 'sym' members.
4929 (BLOCK_DICT): New macro.
4930 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4931 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4932 BLOCK_SHOULD_SORT.
4933 (ALL_BLOCK_SYMBOLS): Update definition.
4934 * Makefile.in (SFILES): Add dictionary.c.
4935 (dictionary_h): New.
4936 (COMMON_OBS): Add dictionary.o.
4937 (dictionary.o): New.
4938 (ada-lang.o): Depend on dictionary_h.
4939 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4940 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4941 (mi-cmd-stack.o): Ditto.
4942 (gdbtk-cmds.o): Update dependencies.
4943 (gdbtk-stack.o): Ditto.
4944 * ada-lang.c: Include dictionary.h.
4945 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4946 (fill_in_ada_prototype, debug_print_block): Ditto.
4947 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4948 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4949 'is_sorted'.
4950 * mdebugread.c: Include dictionary.h.
4951 (struct parse_stack): Delete 'maxsyms' member.
4952 (parse_symbol): Update calls to new_block. Delete calls to
4953 shrink_block. Use dictionary methods.
4954 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4955 Update calls to new_symtab. Don't maintain maxsyms data.
4956 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4957 (add_symbol): Just call dict_add_symbol.
4958 (new_symtab): Delete 'maxsyms' argument.
4959 (new_symtab): Update calls to new_block.
4960 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4961 (shrink_block): Delete function.
4962 (fixup_sigtramp): Update call to new_block. Add symbol via
4963 dict_add_symbol.
4964 * jv-lang.c: Include dictionary.h.
4965 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4966 appropriately. Set class_symtab->free_func. Make sure the
4967 blockvector is big enough to hold two blocks.
4968 (add_class_symtab_symbol): Use dictionary methods.
4969 (free_class_block): New function.
4970 (type_from_class): Replace explicit iteration by
4971 ALL_BLOCK_SYMBOLS.
4972 * symtab.h (struct symtab): Replace 'free_ptr' method by
4973 'free_func'.
4974 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4975 sort_symtab_syms.
4976 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4977 sort_symtab_syms.
4978 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4979 Include dictionary.h.
4980 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4981 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4982 sort_symtab_syms.
4983 * objfiles.c: Include dictionary.h.
4984 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4985 * buildsym.c: Include dictionary.h.
4986 (finish_block): Use dictionary methods.
4987 (end_symtab): Set free_func to NULL, not free_ptr.
4988 * tracepoint.c: Include dictionary.h.
4989 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4990 (scope_info): Ditto.
4991 * stack.c: Include dictionary.h.
4992 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4993 (print_block_frame_labels, print_frame_arg_vars)
4994 (print_frame_args): Ditto.
4995 * symmisc.c (free_symtab_block): Use dictionary methods.
4996 (dump_symtab): Ditto.
4997 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4998 Include dictionary.h.
4999 * symfile.h: Delete declarations of sort_block_syms,
5000 sort_symtab_syms.
5001 * symfile.c (sort_block_syms): Delete.
5002 (sort_symtab_syms): Delete.
5003 * symtab.c: Include dictionary.h.
5004 (lookup_block_symbol): Use dictionary iterators.
5005 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5006 (search_symbols, make_symbol_completion_list): Ditto.
5007 (make_symbol_overload_list): Ditto.
5008 * valops.c (value_of_local): Use dict_empty.
5009 Include dictionary.h.
5010
5011 2003-06-11 J. Brobecker <brobecker@gnat.com>
5012
5013 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5014
5015 2003-06-11 David Carlton <carlton@bactrian.org>
5016
5017 * block.h (BLOCK_SHOULD_SORT): Delete.
5018 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5019 blocks.
5020 * ada-lang.c (ada_add_block_symbols): Ditto.
5021 * symfile.c (sort_block_syms): Delete.
5022 (sort_symtab_syms): Ditto.
5023 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5024 declarations.
5025 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5026 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5027 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5028 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5029 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5030 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5031 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5032
5033 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5034
5035 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5036 bits to 128.
5037
5038 2003-06-11 Andrew Cagney <cagney@redhat.com>
5039
5040 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5041 REGISTER_CONVERTIBLE.
5042 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5043 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5044 * gdbarch.h, gdbarch.c: Re-generate.
5045 * arch-utils.h (deprecated_register_convertible_not): Rename
5046 generic_register_convertible_not.
5047 * arch-utils.c (deprecated_register_convertible_not): Rename
5048 generic_register_convertible.
5049 (legacy_convert_register_p, legacy_register_to_value): Update.
5050 * sh-tdep.c (sh64_push_arguments): Update.
5051 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5052 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5053 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5054 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5055 * arch-utils.c (legacy_value_to_register): Update.
5056 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5057 (rs6000_register_convert_to_raw): Make parameter "from" const.
5058 * mips-tdep.c (mips_gdbarch_init): Update.
5059 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5060 * infcmd.c (default_print_registers_info): Update.
5061 * ia64-tdep.c (ia64_gdbarch_init): Update.
5062 (ia64_register_convert_to_raw): Make parameter "from" const.
5063 * i386-tdep.c (i386_gdbarch_init): Update.
5064 (i386_register_convert_to_raw): Update.
5065
5066 2003-06-11 Andrew Cagney <cagney@redhat.com>
5067
5068 * remote-fileio.c: Include "remote-fileio.h".
5069 * Makefile.in (remote-fileio.o): Update dependencies.
5070 (remote_fileio_h): Fix typo.
5071
5072 2003-06-11 Andrew Cagney <cagney@redhat.com>
5073
5074 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5075 (xstormy16_save_dummy_frame_tos): Make static.
5076 (_initialize_xstormy16_tdep): Add declaration.
5077 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5078 * v850-tdep.c: Make local functions static.
5079 (_initialize_v850_tdep): Add declaration.
5080 * sparc-tdep.c: Make local functions static.
5081 (_initialize_sparc_tdep): Add declaration.
5082 * sh-tdep.c: Make local functions static.
5083 (_initialize_sh_tdep): Add declaration.
5084 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5085 * s390-tdep.c: Make local functions static.
5086 (_initialize_s390_tdep): Add declaration.
5087 * dbxread.c (find_stab_function_addr): Make static.
5088 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5089 * ocd.c (_initialize_remote_ocd): Add declaration.
5090 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5091 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5092 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5093 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5094 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5095 * remote-array.c (_initialize_array): Add declaration.
5096 (_initialize_remote_monitors): Add declaration.
5097 * remote-mips.c: Make local functions static.
5098 (_initialize_remote_mips): Add declaration.
5099 * mcore-tdep.c: Make all local functions static.
5100 (_initialize_mcore_tdep): Add declaration.
5101 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5102 * abug-rom.c (_initialize_abug_rom): Add declaration.
5103 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5104 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5105 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5106 * remote-est.c (_initialize_est): Add declaration.
5107 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5108 (m68hc11_call_dummy_address): Make static.
5109 * ia64-tdep.c: Make local functions static.
5110 (_initialize_ia64_tdep): Add declaration.
5111 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5112 * monitor.c (monitor_wait_filter): Make static.
5113 (_initialize_remote_monitors): Add declaration.
5114 * remote-hms.c (_initialize_remote_hms): Add declaration.
5115 * remote-e7000.c (fetch_regs_from_dump): Make static.
5116 (expect_n): Make static.
5117 (_initialize_remote_e7000): Add declaration.
5118 * ser-e7kpc.c: Always include "defs.h".
5119 (_initialize_ser_e7000pc): Add declaration.
5120 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5121 * cris-tdep.c: Make all but one function static.
5122 (_initialize_cris_tdep): Add declaration.
5123 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5124 * solib.c (update_solib_list): Make static.
5125 (_initialize_solib): Add declaration.
5126 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5127 (_initialize_avr_tdep): Add declaration.
5128 * remote-rdi.c (voiddummy): Make static.
5129 (_initialize_remote_rdi): Add declaration.
5130 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5131 * remote-rdp.c (send_rdp): Make static.
5132 (_initialize_remote_rdp): Add declaration.
5133 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5134
5135 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5136
5137 * remote-fileio.c: Make ari happy.
5138
5139 2003-06-10 J. Brobecker <brobecker@gnat.com>
5140
5141 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5142 fetching the trailing bytes of the buffer we are about to write.
5143
5144 2003-06-10 Andrew Cagney <cagney@redhat.com>
5145
5146 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5147 * Makefile.in (remote-fileio.o): Update dependencies.
5148 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5149 include <setjmp.h>, or <sys/types.h> conditional on USG.
5150 (remote_fio_jmp_buf): Delete global variable.
5151
5152 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5153 Martin M. Hunt <hunt@redhat.com>
5154
5155 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5156 (SFILES): Add remote-fileio.c.
5157 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5158 dependencies for building remote.o.
5159 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5160 * remote-fileio.h: New header file defining remote File-I/O interface.
5161 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5162 static storage class.
5163 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5164 'F' packet.
5165 (_initialize_remote): Call initialize_remote_fileio().
5166 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5167 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5168 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5169 (captured_main): Initialize new ui_files.
5170 * ui-file.c: Add read and fgets input functions.
5171 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5172 (null_file_read): New function.
5173 (ui_file_read): New function.
5174 (set_ui_file_read): New function.
5175 (stdio_file_read): New function.
5176 * ui-file.h: New type ui_file_read_ftype.
5177 (set_ui_file_read): Declare.
5178 (ui_file_read): Declare.
5179
5180 2003-06-09 Andrew Cagney <cagney@redhat.com>
5181
5182 * frame.h (deprecated_unwind_get_saved_register): Rename
5183 generic_unwind_get_saved_register, update comments.
5184 * mips-tdep.c (mips_get_saved_register): Update.
5185 * frame.c (deprecated_unwind_get_saved_register): Update.
5186
5187 2003-06-09 Andrew Cagney <cagney@redhat.com>
5188
5189 * vax-tdep.c (vax_frame_locals_address): Delete function.
5190 (vax_gdbarch_init): Do not set frame_locals_address.
5191 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5192 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5193 * s390-tdep.c (s390_frame_args_address): Delete function.
5194 (s390_gdbarch_init): Do not set frame_args_address or
5195 frame_locals_address.
5196 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5197 (ns32k_gdbarch_init): Do not set frame_locals_address.
5198 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5199 (hppa_frame_locals_address): Delete function.
5200 (hppa_gdbarch_init): Do not set frame_args_address, or
5201 frame_locals_address.
5202 * arm-tdep.c (arm_frame_args_address): Delete.
5203 (arm_frame_locals_address): Delete.
5204 (arm_gdbarch_init): Do not set frame_args_address, or
5205 frame_locals_address.
5206
5207 2003-06-09 Andrew Cagney <cagney@redhat.com>
5208
5209 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5210 * gdbarch.h, gdbarch.c: Re-generate.
5211 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5212 * arch-utils.c (frame_num_args_unknown): Delete function.
5213 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5214 (frame_info): Use FRAME_NUM_ARGS_P.
5215 * arm-tdep.c (arm_frame_num_args): Delete function.
5216 (arm_gdbarch_init): Do not set frame_num_args.
5217 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5218 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5219 (hppa_gdbarch_init): Do not set frame_num_args.
5220 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5221 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5222 frame_num_args to default frame_num_args_unknown.
5223 * v850-tdep.c (v850_gdbarch_init): Ditto.
5224 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5225 * sh-tdep.c (sh_gdbarch_init): Ditto.
5226 * s390-tdep.c (s390_gdbarch_init): Ditto.
5227 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5228 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5229 * mips-tdep.c (mips_gdbarch_init): Ditto.
5230 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5231 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5234 * i386-tdep.c (i386_gdbarch_init): Ditto.
5235 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5236 * frv-tdep.c (frv_gdbarch_init): Ditto.
5237 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5238 * cris-tdep.c (cris_gdbarch_init): Ditto.
5239 * avr-tdep.c (avr_gdbarch_init): Ditto.
5240 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5241
5242 2003-06-09 Andrew Cagney <cagney@redhat.com>
5243
5244 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5245 (print_frame_args): Moved to "stack.c".
5246 * stack.c: Include "gdb_assert.h".
5247 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5248 (print_frame_args): Moved from "printcmd.c".
5249 * frame.h (print_frame_args): Delete declaration.
5250 * Makefile.in (stack.o): Update dependencies.
5251
5252 2003-06-08 Andrew Cagney <cagney@redhat.com>
5253
5254 * frame.c (get_prev_frame): Remove reference to
5255 frame_args_address_correct in comments.
5256 * frame-base.c (default_frame_args_address): Delete code
5257 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5258 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5259 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5260 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5261 (vax_frame_args_address_correct): Delete declaration.
5262
5263 2003-06-08 Andrew Cagney <cagney@redhat.com>
5264
5265 * gdbarch.sh (UNWIND_SP): Add.
5266 * gdbarch.h, gdbarch.c: Re-generate.
5267 * frame.c (frame_sp_unwind): New function.
5268 (get_frame_sp): New function.
5269 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5270 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5271 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5272 value.
5273 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5274 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5275
5276 2003-06-08 Andrew Cagney <cagney@redhat.com>
5277
5278 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5279 REMOTE_BREAKPOINT.
5280 * remote.c: Update.
5281 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5282 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5283 * config/m68k/tm-sun3.h: Update.
5284 * config/m68k/tm-m68klynx.h: Update.
5285 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5286
5287 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5288 trad_frame". Update comments.
5289 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5290 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5291 (trad_frame_register_value, trad_frame_prev_register): Update.
5292
5293 2003-06-08 Andrew Cagney <cagney@redhat.com>
5294
5295 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5296 from GCC's acinclude.m4.
5297 * configure.in: Check for getopt's delcaration.
5298 * aclocal.m4, config.in, configure: Re-generate.
5299 * main.c (error_init): Delete declaration.
5300 * defs.h (error_init): Declare.
5301 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5302 (rs6000_convert_from_func_ptr_addr): Make static.
5303 (_initialize_rs6000_tdep): Add declaration.
5304 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5305 (show_commands, set_verbose, show_history): Delete declaration.
5306 * top.h (set_verbose): Add declaration.
5307 (show_history, set_history, show_commands): Add declaration.
5308 (do_restore_instream_cleanup): Add declaration.
5309 * objc-lang.c (specialcmp): Make static.
5310 (print_object_command): Make static.
5311 (find_objc_msgsend): Make static.
5312 (find_objc_msgcall_submethod_helper): Make static.
5313 (find_objc_msgcall_submethod): Make static.
5314 (_initialize_objc_language): Add declaration.
5315 (find_implementation_from_class): Make static.
5316 (find_implementation): Make static.
5317 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5318 * objc-lang.h (lookup_struct_typedef): Add declaration.
5319 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5320 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5321 (do_restore_user_call_depth): Make static.
5322 (do_restore_instream_cleanup): Delete declaration.
5323 (dont_repeat): Delete declaration.
5324 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5325 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5326 * reggroups.c (_initialize_reggroup): Add declaration.
5327 * cp-support.c (_initialize_cp_support): Add declaration.
5328 * cp-abi.c (_initialize_cp_abi): Add declaration.
5329 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5330 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5331 (_initialize_gnu_v3_abi): Add declaration.
5332 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5333 (_initialize_gnu_v2_abi): Add declaration.
5334 * frame-base.c (_initialize_frame_base): Add declaration.
5335 * doublest.c (floatformat_from_length): Make static.
5336 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5337 * frame.c (create_sentinel_frame): Make static.
5338 (_initialize_frame): Add declaration.
5339 * top.c (do_catch_errors): Make static.
5340 (gdb_rl_operate_and_get_next_completion): Make static.
5341 * typeprint.c: Include "typeprint.h".
5342 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5343 (sentinel_frame_this_id): Make static.
5344 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5345 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5346 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5347 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5348 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5349 * maint.c (maintenance_print_architecture): Make static.
5350 * signals/signals.c (_initialize_signals): Add declaration.
5351 * std-regs.c (_initialize_frame_reg): Add declaration.
5352 * jv-exp.y (push_variable): ISO C definition.
5353 (push_qualified_expression_name): Ditto.
5354 * memattr.c (_initialize_mem): Add declaration.
5355 * remote.c (remote_check_watch_resources): Make static.
5356 (remote_stopped_by_watchpoint): Make static.
5357 (remote_stopped_data_address): Make static.
5358 * d10v-tdep.c (nr_dmap_regs): Make static.
5359 (a0_regnum): Make static.
5360 (d10v_frame_unwind_cache): Make static.
5361 (d10v_frame_p): Make static.
5362 * osabi.c (show_osabi): Make static.
5363 (_initialize_gdb_osabi): Add extern declaration.
5364 * gdbtypes.c (make_qualified_type): Make static.
5365 (safe_parse_type): Make static.
5366 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5367 * macrotab.c (macro_bcache_free): Make static.
5368 * interps.c (interp_set_quiet): Make static.
5369 (interpreter_exec_cmd): Make static.
5370 * stack.h (select_frame_command): New file.
5371 * stack.c: Include "stack.h".
5372 (select_frame_command_wrapper): Delete function.
5373 (select_frame_command): Make global.
5374 * infcall.c: Include "infcall.h".
5375 * linespec.c: Include "linespec.h".
5376 * symfile.c (sections_overlap): Make static.
5377 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5378 * charset.c (_initialize_charset): Add missing prototype.
5379 * regcache.c (init_legacy_regcache_descr): Make static.
5380 (do_regcache_xfree): Make static.
5381 (regcache_xfer_part): Make static.
5382 (_initialize_regcache): Add missing prototype.
5383 * breakpoint.c (parse_breakpoint_sals): Make static.
5384 (breakpoint_sals_to_pc): Make static.
5385 * interps.h (clear_interpreter_hooks): ISO C declaration.
5386 * Makefile.in (stack_h): Define.
5387 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5388 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5389
5390 2003-06-08 Andrew Cagney <cagney@redhat.com>
5391
5392 * Makefile.in (d10v-tdep.o): Update dependencies.
5393 (SFILES): Add trad-frame.c.
5394 (trad_frame_h): Define.
5395 (COMMON_OBS): Add trad-frame.o.
5396 (trad-frame.o): Specify dependencies.
5397 * d10v-tdep.c: Include "trad-frame.h".
5398 (saved_regs_unwinder): Delete function.
5399 (d10v_frame_prev_register): Use trad_frame_prev_register.
5400 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5401 trad_frame", delete "regs" and "prev_sp".
5402 (prologue_find_regs): Use trad-frame.
5403 * trad-frame.h, trad-frame.c: New files.
5404
5405 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5406
5407 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5408
5409 2003-06-07 Adam Fedor <fedor@gnu.org>
5410
5411 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5412 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5413 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5414 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5415 resolve_msgsend_super, resolve_msgsend_super_stret):
5416 Use it.
5417
5418 2003-06-07 Andrew Cagney <cagney@redhat.com>
5419
5420 * symfile.h: Re-indent, clean up comments.
5421
5422 2003-06-07 Andrew Cagney <cagney@redhat.com>
5423
5424 * inferior.h (deprecated_write_sp): Replace
5425 generic_target_write_sp.
5426 * regcache.c (deprecated_write_sp): Replace
5427 generic_target_write_sp.
5428 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5429 * vax-tdep.c (vax_gdbarch_init): Update.
5430 * v850-tdep.c (v850_gdbarch_init): Update.
5431 * sparc-tdep.c (sparc_gdbarch_init): Update.
5432 * sh-tdep.c (sh_gdbarch_init): Update.
5433 * s390-tdep.c (s390_gdbarch_init): Update.
5434 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5435 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5436 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5437 * mcore-tdep.c (mcore_gdbarch_init): Update.
5438 * m68k-tdep.c (m68k_gdbarch_init): Update.
5439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5440 * ia64-tdep.c (ia64_gdbarch_init): Update.
5441 * h8300-tdep.c (h8300_gdbarch_init): Update.
5442 * frv-tdep.c (frv_gdbarch_init): Update.
5443 * cris-tdep.c (cris_gdbarch_init): Update.
5444 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5445
5446 2003-06-07 Andrew Cagney <cagney@redhat.com>
5447
5448 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5449 Assert that PC_REGNUM is valid.
5450 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5451
5452 2003-06-07 Andrew Cagney <cagney@redhat.com>
5453
5454 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5455 * gdbarch.h, gdbarch.c: Regenerate.
5456 * mn10300-tdep.c: Include "gdb_assert.h".
5457 (mn10300_read_fp): New function.
5458 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5459 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5460 * ia64-tdep.c: Include "gdb_assert.h".
5461 (ia64_read_fp): New function.
5462 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5463 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5464 * regcache.c (generic_target_read_sp): Delete function.
5465 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5466 * inferior.h (generic_target_read_sp): Delete declaration.
5467 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5468 generic_target_read_sp.
5469 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5470 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5471 * sh-tdep.c (sh_gdbarch_init): Ditto.
5472 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5473 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5474
5475 2003-06-07 Andrew Cagney <cagney@redhat.com>
5476
5477 * gdbarch.sh: Comment each field of startup_gdbarch.
5478 * gdbarch.h, gdbarch.c: Re-generate.
5479
5480 2003-06-07 Andrew Cagney <cagney@redhat.com>
5481
5482 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5483 * gdbarch.h, gdbarch.c: Re-generate.
5484 * regcache.c: Update comments on read_pc et.al.
5485 (generic_target_read_pc): Delete function.
5486 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5487 * inferior.h (generic_target_read_pc): Delete declaration.
5488 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5489 generic_target_read_pc.
5490 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5491 * sh-tdep.c (sh_gdbarch_init): Ditto.
5492 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5494
5495 2003-06-07 Andrew Cagney <cagney@redhat.com>
5496
5497 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5498 "index" with "special_local_sect". Use strcmp instead of STREQ.
5499 Append period to coments.
5500
5501 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5502
5503 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5504 (elfstab_offset_sections): Likewise.
5505 * gdb-stabs.h (stab_section_info): Likewise.
5506 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5507 * objfiles.c (objfile_relocate): Likewise.
5508 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5509 * remote.c (get_offsets): Likewise.
5510 (remote_cisco_objfile_relocate): Likewise.
5511 * somread.c (som_symfile_offsets): Likewise.
5512 * symfile.c (alloc_section_addr_info): New function.
5513 (build_section_addr_info_from_section_tab): Use it.
5514 (free_section_addr_info): Adjust.
5515 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5516 (syms_from_objfile): Allocate local_addr dynamically.
5517 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5518 dynamically.
5519 (add_symbol_file_command): Allocate sect_opts dynamically.
5520 (reread_symbols): Avoid use of SECT_OFF_MAX.
5521 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5522 (alloc_section_addr_info): Declare it.
5523 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5524 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5525 dynamically.
5526 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5527
5528 2003-06-06 Andrew Cagney <cagney@redhat.com>
5529
5530 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5531 (d10v_frame_unwind_cache): Do not set "return_pc".
5532
5533 2003-06-06 Michael Snyder <msnyder@redhat.com>
5534
5535 * h8300-tdep.c: Make tidy (long lines).
5536
5537 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5538
5539 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5540 to regcache_collect().
5541
5542 2003-06-05 J. Brobecker <brobecker@gnat.com>
5543
5544 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5545 pc_in_sigtramp multiarch method.
5546 (hppa_hpux_som_init_abi): Use it.
5547 (hppa_hpux_elf_init_abi): Likewise.
5548 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5549 macro has been multiarched.
5550 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5551 macro here, as hppa64 isn't multiarched yet.
5552
5553 2003-06-05 Andrew Cagney <cagney@redhat.com>
5554
5555 * Makefile.in (value_h): Add $(frame_h).
5556 * value.h: Include "frame.h".
5557 (struct value): Replace "frame_addr" with "frame_id".
5558 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5559 * values.c (allocate_value): Use VALUE_FRAME_ID.
5560 (value_copy): Use VALUE_FRAME_ID.
5561 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5562 * valops.c (value_assign): Update. Use frame_find_by_id.
5563
5564 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5565
5566 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5567 in each pass.
5568
5569 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5570
5571 * thread-db.c (check_event): For create/death event breakpoints,
5572 loop through all messages to ensure that we read the message
5573 corresponding to the breakpoint we are at.
5574
5575 2003-06-04 Michael Snyder <msnyder@redhat.com>
5576
5577 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5578
5579 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5580
5581 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5582 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5583 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5584 when handling .eh_frame sections.
5585
5586 2003-06-04 J. Brobecker <brobecker@gnat.com>
5587
5588 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5589 prepare_to_proceed procedure instead of the hppa-specific one.
5590 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5591
5592 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5593
5594 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5595 * config.in: Regenerated.
5596 * configure.in: Add test for syscall function and check for
5597 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5598 * configure: Regenerated.
5599 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5600 <sys/syscall.h>.
5601 (kill_lwp): New function that uses tkill syscall or
5602 uses kill, depending on whether threading model is nptl or not.
5603 All callers of kill() changed to use kill_lwp().
5604 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5605 see if all threads have already exited in the nptl model.
5606 (stop_and_resume_callback): New callback function used by the
5607 lin_lwp_wait thread exit handling code.
5608 (stop_wait_callback): Check for threads already having exited and
5609 delete such threads fromt the lwp list when discovered.
5610 (stop_callback): Don't assert retcode of kill call.
5611
5612 Roland McGrath <roland@redhat.com>
5613 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5614 nptl libthread_db.
5615
5616 2003-06-03 Richard Henderson <rth@redhat.com>
5617
5618 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5619 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5620 (alpha_sigtramp_frame_prev_register): Likewise.
5621 (alpha_heuristic_frame_prev_register): Likewise.
5622 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5623
5624 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5625 alpha-specific register id names.
5626 (alpha_mdebug_frame_unwind_cache): Likewise.
5627 (alpha_mdebug_frame_prev_register): Likewise.
5628
5629 2003-06-03 Richard Henderson <rth@redhat.com>
5630
5631 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5632 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5633 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5634 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5635 unwind routines.
5636 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5637 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5638 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5639
5640 * alpha-linux-tdep.c: Remove unnecessary includes.
5641 * Makefile.in (alpha-linux-tdep.o): Update.
5642
5643 2003-06-03 Richard Henderson <rth@redhat.com>
5644
5645 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5646 (alphabsd_fill_fpreg): Likewise.
5647
5648 2003-06-03 J. Brobecker <brobecker@gnat.com>
5649
5650 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5651 references to struct frame_info fields by calls to the equivalent
5652 accessors. Necessary now that frame_info is opaque.
5653
5654 2003-06-03 J. Brobecker <brobecker@gnat.com>
5655
5656 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5657 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5658 structure, field no longer exists.
5659
5660 2003-06-03 J. Brobecker <brobecker@gnat.com>
5661
5662 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5663 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5664
5665 2003-06-03 J. Brobecker <brobecker@gnat.com>
5666
5667 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5668 references to struct frame_info fields by calls to the equivalent
5669 accessors. Necessary now that frame_info is opaque.
5670
5671 2003-06-03 J. Brobecker <brobecker@gnat.com>
5672
5673 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5674 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5675 structure, field no longer exists.
5676
5677 2003-06-03 Theodore A. Roth <troth@openavr.org>
5678
5679 * remote.c (init_remote_state): Compute sizeof_g_packet by
5680 accumulation of the size of all registers instead of blindly using
5681 DEPRECATED_REGISTER_BYTES.
5682
5683 2003-06-03 Michael Snyder <msnyder@redhat.com>
5684
5685 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5686 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5687 for h8300sx.
5688
5689 2003-06-03 J. Brobecker <brobecker@gnat.com>
5690
5691 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5692 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5693
5694 2003-06-03 Andrew Cagney <cagney@redhat.com>
5695
5696 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5697 (sparc_convert_to_raw): Delete function.
5698 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5699 register_convert_to_virtual.
5700
5701 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5702
5703 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5704 layer if not dealing with a statically-linked threaded program.
5705
5706 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5707
5708 * solib.c (solib_open): Update comment to reflect actual search order.
5709
5710 2003-06-03 Andrew Cagney <cagney@redhat.com>
5711
5712 * frame.c (get_frame_memory_signed): New function.
5713 (get_frame_memory, get_frame_memory_unsigned): New function.
5714 (get_frame_arch): New function.
5715 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5716 (get_frame_memory, get_frame_unsigned_memory): Declare.
5717 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5718 get_frame_memory_unsigned and get_frame_arch.
5719 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5720
5721 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5722
5723 * MAINTAINERS (write after approval): Add myself.
5724
5725 2003-06-03 Jim Blandy <jimb@redhat.com>
5726
5727 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5728 elements of gregset_t are 64 bits each, but access registers
5729 are still 32 bits, so they're packed two per gregset_t
5730 element. Unpack/pack them properly.
5731
5732 2003-06-02 David Carlton <carlton@bactrian.org>
5733
5734 * linespec.c (find_methods): Break out code into
5735 add_matching_methods and add_constructors.
5736 (add_matching_methods): New.
5737 (add_constructors): Ditto.
5738
5739 2003-06-02 Andrew Cagney <cagney@redhat.com>
5740
5741 * sparc-tdep.c (sparc_print_registers): Delete call to
5742 REGISTER_CONVERTIBLE.
5743 (sparc_gdbarch_init): Do not set register_convertible.
5744 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5745 * frv-tdep.c (frv_gdbarch_init): Ditto.
5746 * cris-tdep.c (cris_gdbarch_init): Ditto.
5747
5748 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5749
5750 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5751 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5752 (syms_from_objfile): Ditto.
5753
5754 2003-06-03 Andreas Schwab <schwab@suse.de>
5755
5756 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5757 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5758
5759 2003-06-02 Richard Henderson <rth@redhat.com>
5760
5761 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5762 a member of all_reggroup.
5763
5764 2003-06-02 Richard Henderson <rth@redhat.com>
5765
5766 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5767 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5768 (alpha_lds, alpha_sts): New.
5769 (alpha_convert_register_p): Change from _register_convertible.
5770 (alpha_register_to_value): Change from _convert_to_virtual;
5771 restructure and fail for type sizes other than 4 or 8.
5772 (alpha_value_to_register): Similarly.
5773 (alpha_extract_return_value): Use alpha_sts.
5774 (alpha_store_return_value): Use alpha_lds.
5775 (alpha_gdbarch_init): Update hooks.
5776
5777 2003-06-02 Richard Henderson <rth@redhat.com>
5778
5779 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5780 regnum identifiers.
5781 (alpha_sigtramp_register_address): Likewise.
5782
5783 2003-06-02 Richard Henderson <rth@redhat.com>
5784
5785 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5786 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5787 * alpha-tdep.h: Declare them.
5788
5789 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5790 Remove zerobuf. Don't error on UNIQUE.
5791 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5792 (ALPHA_REGSET_UNIQUE): Provide default.
5793 (supply_gregset): Use alpha_supply_int_regs.
5794 (fill_gregset): Use alpha_fill_int_regs.
5795 (supply_fpregset): Use alpha_supply_fp_regs.
5796 (fill_fpregset): Use alpha_fill_fp_regs.
5797 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5798 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5799 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5800 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5801 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5802 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5803
5804 2003-06-02 Richard Henderson <rth@redhat.com>
5805
5806 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5807
5808 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5809 (alpha_store_return_value): Likewise.
5810
5811 2003-06-02 David Carlton <carlton@math.stanford.edu>
5812
5813 * block.c (contained_in): Add 'const' to arguments.
5814 (block_function): Ditto.
5815 * block.h: Update declarations for block_function and
5816 contained_in.
5817
5818 2003-06-02 David Carlton <carlton@math.stanford.edu>
5819
5820 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5821 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5822 * p-valprint.c (pascal_val_print): Ditto.
5823 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5824
5825 2003-06-02 Richard Henderson <rth@redhat.com>
5826
5827 * alpha-tdep.c (alpha_push_dummy_call): Use
5828 builtin_type_ieee_double_little instead of builtin_type_double.
5829
5830 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5831 sign-extension of 32-bit values.
5832 (alpha_store_return_value): Similarly.
5833
5834 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5835 (alpha_extract_return_value): Likewise.
5836 (alpha_store_return_value): Likewise.
5837
5838 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5839 (alpha_store_return_value): Error on IEEE Quad floats.
5840
5841 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5842 (alpha_extract_struct_value_address): Likewise.
5843 (alpha_store_return_value): Likewise.
5844 (alpha_store_struct_return): Remove.
5845 (alpha_gdbarch_init): Update hook registration to match.
5846
5847 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5848 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5849 macros where appropriate.
5850 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5851 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5852
5853 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5854 for SP, GP; void_func_ptr for PC; non-language-specific types
5855 for all others.
5856 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5857
5858 2003-06-02 Richard Henderson <rth@redhat.com>
5859
5860 * top.h (lim_at_start): Declare.
5861 * main.c (captured_main): Set it.
5862 * top.c (lim_at_start): Define.
5863 (command_loop): Use it instead of &environ.
5864 * event-top.c (command_handler): Likewise.
5865
5866 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5867
5868 * mipsnbsd-tdep.c: Update copyright years.
5869 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5870
5871 2003-06-01 Richard Henderson <rth@redhat.com>
5872
5873 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5874 (alpha-linux-tdep.o): Update dependencies.
5875 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5876 * alpha-mdebug-tdep.c: Remove unneeded includes.
5877
5878 2003-06-01 Richard Henderson <rth@redhat.com>
5879
5880 * alpha-tdep.c (alpha_register_reggroup_p): New.
5881 (alpha_gdbarch_init): Register it.
5882
5883 2003-06-02 Andrew Cagney <cagney@redhat.com>
5884
5885 * dwarfread.c: Eliminate "register"
5886 (decode_die_type): Eliminate assignment within "if".
5887 (struct_type, decode_array_element_type): Ditto.
5888 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5889 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5890 (decode_modified_type, completedieinfo): Ditto.
5891 * block.c: Eliminate "register".
5892 (blockvector_for_pc_sect): Eliminate assignment within "if".
5893 * cp-support.h (struct symbol): Opaque declaration.
5894 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5895
5896 2003-06-01 Richard Henderson <rth@redhat.com>
5897
5898 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5899 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5900
5901 2003-06-01 Adam Fedor <fedor@gnu.org>
5902
5903 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5904 * gdbarch.[ch]: Regenerate.
5905 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5906 (hppa_gdbarch_init): Set it in the gdbarch vector.
5907 * i386-tdep.c (i386_fetch_pointer_argument): New
5908 (i386_gdbarch_init): Set it into gdbarch.
5909 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5910 (rs6000_gdbarch_init): Set it in gdbarch.
5911 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5912 (sparc_gdbarch_init): Set it in gdbarch.
5913
5914 2003-06-01 Andrew Cagney <cagney@redhat.com>
5915
5916 * defs.h (extract_address): Delete declaration.
5917 * findvar.c (extract_address): Delete function.
5918 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5919 extract_address with the inline equivalent,
5920 extract_unsigned_integer.
5921 (xstormy16_extract_struct_value_address): Ditto.
5922 (xstormy16_pointer_to_address): Ditto.
5923 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5924 * v850-tdep.c (v850_push_arguments): Ditto.
5925 (v850_extract_return_value): Ditto.
5926 (v850_extract_struct_value_address): Ditto.
5927 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5928 (sparcnbsd_get_longjmp_target_64): Ditto.
5929 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5930 (get_longjmp_target): Ditto.
5931 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5932 (sh64_extract_struct_value_address): Ditto.
5933 (sh_push_arguments): Ditto.
5934 (sh64_push_arguments): Ditto.
5935 * remote-vxsparc.c (vx_read_register): Ditto.
5936 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5937 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5938 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5939 * mipsv4-nat.c (get_longjmp_target): Ditto.
5940 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5941 * mips-nat.c (get_longjmp_target): Ditto.
5942 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5943 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5944 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5945 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5946 * irix5-nat.c (get_longjmp_target): Ditto.
5947 * irix4-nat.c (get_longjmp_target): Ditto.
5948 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5949 (ia64_push_arguments): Ditto.
5950 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5951 * h8300-tdep.c (h8300_push_arguments): Ditto.
5952 (h8300_store_return_value): Ditto.
5953 (h8300_extract_struct_value_address): Ditto.
5954 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5955 (frv_push_arguments): Ditto.
5956 * avr-tdep.c (avr_pointer_to_address): Ditto.
5957 (avr_push_arguments): Ditto.
5958 * arm-tdep.c (arm_push_dummy_call): Ditto.
5959 (arm_get_longjmp_target): Ditto.
5960 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5961 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5962 (alpha_get_longjmp_target): Ditto.
5963
5964 * solib-irix.c (extract_mips_address): Inline extract_address,
5965 replacing it with extract_signed_integer.
5966 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5967 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5968 (first_link_map_member, open_symbol_file_object): Ditto.
5969 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5970 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5971 (LM_NEXT, LM_NAME): Ditto.
5972
5973 2003-06-01 Richard Henderson <rth@redhat.com>
5974
5975 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5976 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5977 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5978 (alpha_cannot_store_register): Likewise.
5979 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5980 * alpha-nat.c (supply_gregset): Likewise.
5981 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5982
5983 2003-06-01 Andrew Cagney <cagney@redhat.com>
5984
5985 * infcall.c (call_function_by_hand): Update comment on
5986 DEPRECATED_DUMMY_WRITE_SP.
5987
5988 * mips-tdep.c (mips_gdbarch_init): Do not set
5989 deprecated_dummy_write_sp.
5990 (mips_eabi_push_dummy_call): Set the SP register.
5991 (mips_o64_push_dummy_call): Set the SP register.
5992 (mips_o32_push_dummy_call): Set the SP register.
5993 (mips_n32n64_push_dummy_call): Set the SP register.
5994
5995 2003-06-01 Richard Henderson <rth@redhat.com>
5996
5997 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5998 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5999 (supply_gregset): Likewise.
6000 * alpha-tdep.c (alpha_store_return_value): Likewise.
6001 (alpha_get_longjmp_target): Likewise.
6002 (alpha_register_name): Constify array.
6003 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6004 deprecated_register_size, deprecated_register_bytes,
6005 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6006 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6007 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6008
6009 2003-06-01 Richard Henderson <rth@redhat.com>
6010
6011 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6012 from arg_reg_buffer to regcache to avoid double conversion.
6013
6014 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6015
6016 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6017 SP_REGNUM.
6018 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6019 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6020
6021 2003-06-01 Richard Henderson <rth@redhat.com>
6022
6023 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6024 (decode_frame_entry): Set it. Skip FDE augmentation.
6025
6026 2003-06-01 Richard Henderson <rth@redhat.com>
6027
6028 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6029 not overlapping PC_REGNUM.
6030
6031 2003-06-01 Richard Henderson <rth@redhat.com>
6032
6033 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6034 alpha_push_arguments. Don't dump argument register data to
6035 the target stack. Fix float and 128-bit long double semantics.
6036 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6037 (alpha_fix_call_dummy): Remove.
6038 (alpha_call_dummy_words): Remove.
6039 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6040
6041 2003-06-01 Richard Henderson <rth@redhat.com>
6042
6043 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6044
6045 2003-06-01 Andrew Cagney <cagney@redhat.com>
6046
6047 * mips-tdep.c (is_mips16_addr): New function.
6048 (make_mips16_addr, unmake_mips16_addr): New functions.
6049 (pc_is_mips16, mips_fetch_instruction): Use.
6050 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6051 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6052 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6053 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6054 TARGET_MIPS.
6055 * config/mips/tm-mips.h: Update copyright.
6056 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6057 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6058 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6059 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6060 (TM_PRINT_INSN_MACH): Delete.
6061 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6062
6063 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6064 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6065 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6066 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6067 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6068 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6069 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6070 mips*-*-riscos* and mips*-*-sysv* onto mips.
6071 * config/mips/mips64.mt: New file.
6072 * config/mips/mips.mt: New file.
6073 * config/mips/littlemips.mt: Delete file.
6074 * config/mips/decstation.mt: Delete file.
6075 * config/mips/vr4300el.mt: Delete file.
6076 * config/mips/vr5000el.mt: Delete file.
6077 * config/mips/vr5000.mt: Delete file.
6078 * config/mips/vr4100.mt: Delete file.
6079 * config/mips/vr4xxxel.mt: Delete file.
6080 * config/mips/vr4300.mt: Delete file.
6081 * config/mips/vr4xxx.mt: Delete file.
6082 * config/mips/bigmips.mt: Delete file.
6083 * config/mips/bigmips64.mt: Delete file.
6084 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6085 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6086 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6087 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6088 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6089 "tm-bigmips.h".
6090 * config/mips/tm-irix3.h: Ditto.
6091 * config/mips/tm-mipsv4.h: Ditto.
6092 * config/mips/tm-embed.h: Ditto.
6093 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6094 "tm-bigmips64.h".
6095 * config/mips/tm-vr5000el.h: Delete file.
6096 * config/mips/tm-tx39l.h: Delete file.
6097 * config/mips/tm-vr4300el.h: Delete file.
6098 * config/mips/tm-vr4xxxel.h: Delete file.
6099 * config/mips/tm-vr4300.h: Delete file.
6100 * config/mips/tm-vr4100.h: Delete file.
6101 * config/mips/tm-vr4xxx.h: Delete file.
6102 * config/mips/tm-vr5000.h: Delete file.
6103 * config/mips/tm-embedl64.h: Delete file.
6104 * config/mips/tm-embedl.h: Delete file.
6105 * config/mips/tm-embed64.h: Delete file.
6106 * config/mips/tm-bigmips64.h: Delete file.
6107 * config/mips/tm-bigmips.h: Delete file.
6108
6109 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6110
6111 Fix gdb/1216.
6112 * shnbsd-nat.c: Include "sh-tdep.h".
6113
6114 From Richard Henderson <rth@redhat.com>:
6115 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6116
6117 2003-05-31 Andrew Cagney <cagney@redhat.com>
6118
6119 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6120 forward declaration.
6121 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6122 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6123 (mips_find_saved_regs): Use set_reg_offset.
6124 (mips_frame_init_saved_regs): Delete function.
6125 (mips_pop_frame): Call mips_find_saved_regs instead of
6126 DEPRECATED_FRAME_INIT_SAVED_REGS.
6127
6128 2003-05-31 Andrew Cagney <cagney@redhat.com>
6129
6130 * mips-tdep.c (mips_gdbarch_init): Do not set
6131 deprecated_max_register_raw_size, register_virtual_size, and
6132 deprecated_max_register_virtual_size.
6133
6134 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6135
6136 * i386-tdep.c: Include "dwarf2-frame.h".
6137 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6138 * Makefile.in (i386-tdep.o): Update dependencies.
6139
6140 * dwarf2-frame.c, dwarf2-frame.h: New files.
6141 * Makefile.in (SFILES): Add dwarf2-frame.c.
6142 (dwarf2_frame_h): Define.
6143 (COMMON_OBS): Add dwarf2-frame.o.
6144 (dwarf2-frame.o): Add dependencies.
6145
6146 2003-05-31 Andreas Jaeger <aj@suse.de>
6147
6148 * x86-64-linux-nat.c: Fix comment.
6149
6150 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6151
6152 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6153 function signature.
6154
6155 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6156 have a sigcontext_addr handler.
6157 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6158 sigcontext_addr handler.
6159
6160 2003-05-31 Andrew Cagney <cagney@redhat.com>
6161
6162 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6163 (print_fp_register_row): Replace do_fp_register_row.
6164 (mips_print_fp_register): Add "file" and "frame" parameters.
6165 (mips_print_register): Add "file" and "frame" parameters.
6166 (mips_print_registers_info): Replace mips_do_registers_info.
6167 (mips_gdbarch_init): Set print_registers_info instead of
6168 deprecated_do_registers_info.
6169 (mips_read_fp_register_single): Add "frame" parameter.
6170 (mips_read_fp_register_double): Add "frame" parameter.
6171
6172 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6173
6174 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6175 Fixes a bug where GDB would print the wrong register names for
6176 targets without SSE.
6177
6178 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6179 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6180 registers.
6181
6182 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6183 (x86_64_linux_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
6187 From Michal Ludvig <mludvig@suse.cz>:
6188 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6189 and `sc_num_regs'.
6190 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6191 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6192 I386_ST0_REGNUM): Move here from...
6193 * i386-tdep.c: ... here.
6194 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6195 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6196 registers if possible.
6197 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6198 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6199 Remove variables.
6200 (i386bsd_sc_reg_offset): New variable.
6201 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6202 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6203 TDEP->sc_sp_offset.
6204 (i386fbsd_sc_reg_offset): New variable.
6205 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6206 TDEP->sc_num_regs.
6207 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6208 variables.
6209 (i386fbsd4_sc_reg_offset): New variable.
6210 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6211 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6212 TDEP->sc_sp_offset.
6213 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6214 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6215 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6216 Remove variables.
6217 (i386nbsd_sc_reg_offset): New variable.
6218 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6219 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6220 TDEP->sc_sp_offset.
6221 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6222 Remove variables.
6223 (i386obsd_sc_reg_offset): New variable.
6224 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6225 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6226 TDEP->sc_sp_offset.
6227 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6228 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6229 for frame pointer offset in `struct sigcontext'.
6230
6231 2003-05-31 Andrew Cagney <cagney@redhat.com>
6232
6233 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6234 architecture methods call_dummy_words, sizeof_call_dummy_words,
6235 push_return_address, store_struct_return, and fix_call_dummy. Set
6236 push_dummy_call instead of deprecated_push_arguments.
6237 (mips_store_struct_return): Delete function.
6238 (mips_fix_call_dummy): Delete function.
6239 (mips_push_return_address): Delete function.
6240 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6241 RA_REGNUM and T9_REGNUM.
6242 (mips_n32n64_push_dummy_call): Ditto for
6243 mips_n32n64_push_arguments.
6244 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6245 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6246
6247 2003-05-31 Andrew Cagney <cagney@redhat.com>
6248
6249 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6250 "dummy_addr" to "bp_addr".
6251 * infcall.c (call_function_by_hand): Pass "funaddr" to
6252 gdbarch_push_dummy_call.
6253 * gdbarch.h, gdbarch.c: Re-generate.
6254 * i386-tdep.c (i386_push_dummy_call): Update.
6255 * arm-tdep.c (arm_push_dummy_call): Update.
6256 * d10v-tdep.c (d10v_push_dummy_call): Update.
6257
6258 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6259
6260 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6261 variable declarations.
6262 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6263 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6264 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6265 x86_64_init_frame_pc, x86_64_init_frame_pc,
6266 x86_64_function_has_prologue): Remove prototypes.
6267 (X86_64_NUM_GREGS): New define.
6268 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6269 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6270 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6271 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6272 XMM1_REGNUM): Remove defines.
6273 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6274 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6275 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6276 X86_64_XMM1_REGNUM): New defines.
6277 (struct x86_64_register_info): Renamed from `struct
6278 register_info'. Remove `size' member.
6279 (x86_64_register_info_table): Remove variable.
6280 (x86_64_register_info): New variable.
6281 (X86_64_NUM_REGS): New define.
6282 (X86_64_NUM_GREGS): Remove define.
6283 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6284 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6285 Remove variables.
6286 (x86_54_dwarf2_reg_to_regnum): Remove function.
6287 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6288 (x86_64_dwarf_reg_to_regnum): New function.
6289 (x86_64_register_name): Rewrite.
6290 (x86_64_register_raw_size): Remove function.
6291 (x86_64_register_byte_table): Remove variable.
6292 (x86_64_register_byte): Remove function.
6293 (x86_64_register_virtual_type): Remove function.
6294 (x86_64_register_type): New function.
6295 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6296 x86_64_register_convert_to_raw): Remove functions.
6297 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6298 (x86_64_use_struct_convention): Make static. Adjust for renamed
6299 defines.
6300 (x86_64_frame_init_saved_regs): Remove function.
6301 (x86_64_push_arguments): Make static. Change to accept a regcache
6302 as argument.
6303 (x86_64_store_return_value, x86_64_extract_return_value): Make
6304 static. Rewrite based on i386 counterparts.
6305 (x86_64_push_dummy_call): New function.
6306 (X86_64_NUM_SAVED_REGS): New define.
6307 (x86_64_register_number): Remove function.
6308 (x86_64_store_struct_return): Remove function.
6309 (x86_64_frameless_function_invocation,
6310 x86_64_function_has_prologue): Remove functions.
6311 (PROLOG_BUFSIZE): Remove define.
6312 (struct x86_64_frame_cache): New structure.
6313 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6314 x86_64_frame_cache, x86_64_frame_this_id,
6315 x86_64_frame_prev_register, x86_64_frame_p,
6316 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6317 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6318 functions.
6319 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6320 variables.
6321 (x86_64_skip_prologue): Rewrite in terms of
6322 x86_64_analyze_prologue.
6323 (x86_64_frame_base_address): New function.
6324 (x86_64_frame_base): New variable.
6325 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6326 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6327 set deprecated_fp_regnum, deprecated_register_size,
6328 deprecated_register_bytes, register_raw_size, register_byte,
6329 register_virtual_type, register_convertiable,
6330 register_convert_to_virtual, convert_to_raw,
6331 deprecated_get_saved_register, deprecated_target_read_fp,
6332 deprecated_push_arguments, deprecated_push_return_address,
6333 deprecated_pop_frame, deprecated_store_struct_return,
6334 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6335 frameless_function_invocation, deprecated_frame_saved_pc,
6336 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6337 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6338 deprecated_init_frame_pc and virtual_frame_pointer. Call
6339 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6340 and x86_64_frame_p. Call frame_base_set_default to register
6341 x86_64_frame_base.
6342 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6343 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6344 (_initialize_x86_64_tdep): Remove function.
6345 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6346 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6347 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6348 define.
6349 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6350 (x86_64_linux_sigcontext_addr): Rewrite.
6351 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6352 x86_64_linux_frame_saved_pc): Remove functions.
6353 (x86_64_linux_pc_in_sigtramp): Renamed from
6354 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6355 trampoline.
6356 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6357 Remove_functions.
6358 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6359 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6360 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6361 (x86_64_regmap): Rename to regmap.
6362 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6363 x86_64_num_gregs.
6364 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6365 x86_64_regmap.
6366 (x86_64_fxsave_offset): Remove function.
6367 (supply_fpregset): Simply call x86_64_supply_fxsave.
6368 (fill_fpregset): Simply call x86_64_fill_fxsave.
6369 (fetch_inferior_registers, store_inferior_registers): Avoid
6370 asignment in if-statement.
6371 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6372 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6373 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6374 (fetch_core_registers): Remove function.
6375 (linux_elf_core_fns): Remove.
6376 (offsetoff): Don't define.
6377 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6378 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6379 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6380 add core-regset.o.
6381 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6382 protection against multiple includes instead of NM_X86_64_h. Add
6383 various comments. Include "config/nm-linux.h". Don't include
6384 <signal.h>.
6385 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6386 GET_THREAD_SIGNALS): Remove defines.
6387 (x86_64_register_u_addr, kernel_u_size,
6388 lin_thread_get_thread_signals): Remove prototypes.
6389 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6390 [HAVE_LINK_H]: Don't include "solib.h".
6391 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6392 * config/i386/tm-x86-64linux.h: Fix comments.
6393 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6394 x86-64-tdep.o): Update dependencies.
6395
6396 2003-05-30 Andrew Cagney <cagney@redhat.com>
6397
6398 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6399 Change parameter type to a "struct regcache *".
6400
6401 * gdbarch.sh: Regardless of the multi-arch level, always define
6402 the macro when not already defined.
6403 * gdbarch.h, gdbarch.c: Re-generate.
6404
6405 2003-05-30 Richard Henderson <rth@redhat.com>
6406
6407 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6408 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6409 (alpha_mdebug_frame_this_id): Likewise.
6410 (alpha_mdebug_frame_prev_register): Likewise.
6411 (alpha_mdebug_frame_base_address): Likewise.
6412 (alpha_mdebug_frame_locals_address): Likewise.
6413 (alpha_mdebug_frame_args_address): Likewise.
6414 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6415 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6416 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6417 loop increment.
6418 (alpha_heuristic_frame_this_id): Make static.
6419 (alpha_heuristic_frame_prev_register): Likewise.
6420 (alpha_heuristic_frame_base_address): Likewise.
6421 * alpha-tdep.h: Update.
6422
6423 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6424
6425 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6426 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6427 defenitions.
6428 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6429 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6430 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6431 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6432 I386_ST0_REGNUM): New defines.
6433 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6434 codestream_get): Remove define.
6435 (codestream_next_addr, condestream_addr, condestream_buf,
6436 codestream_off, codestream_cnt): Remove variables.
6437 (codestream_fill, codestream_seek, codestream_read): Remove
6438 functions.
6439 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6440 functionality.
6441 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6442 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6443 i386_frame_saved_pc, i386_saved_pc_after_call,
6444 i386_frame_num_args, i386_frame_init_saved_regs,
6445 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6446 i386_push_arguments): Remove functions.
6447 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6448 functionality. Use i386_analyze_prologue instead of
6449 i386_get_frame_setup.
6450 (I386_NUM_SAVED_REGS): New define.
6451 (struct i386_frame_cache): New structure.
6452 (i386_alloc_frame_cache, i386_analyze_struct_return,
6453 i386_skip_probe, i386_analyze_frame_setup,
6454 i386_analyze_register_saves, i386_analyze_prologue,
6455 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6456 i386_frame_prev_register, i386_sigtramp_frame_cache,
6457 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6458 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6459 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6460 New functions.
6461 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6462 New variables.
6463 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6464 I386_EAX_REGNUM and I386_EDX_REGNUM.
6465 (i386_extract_return_value, i386_store_return_value): Use
6466 I386_ST0_REGNUM where appropriate.
6467 (i386_extract_struct_value_address): Rewrite to use extract_address.
6468 (i386_svr4_pc_in_sigtramp): Add comment.
6469 (i386_svr4_sigcontext_addr): Rewrite.
6470 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6471 TDEP->sc_sp_offset.
6472 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6473 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6474 of new defines. Set push_dummy_call, don't set
6475 deprecated_push_arguments, deprecated_push_return_address,
6476 deprecated_pop_frame. Don't set parm_boundary. Don't set
6477 deprecated_frame_chain, deprecated_frame_saved_pc,
6478 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6479 save_dummy_frame_tos, unwind_pc. Call
6480 frame_unwind_append_predicate and frame_base_set_default. Don't
6481 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6482 Don't set frameless_function_invocation. Don't set
6483 deprecated_register_bytes, deprecated_register_size,
6484 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6485 * i386-linux-tdep.c: Fix formatting in some comments.
6486 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6487 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6488 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6489 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6490 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6491 redundant parentheses.
6492 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6493 (i386_linux_sigcontext_addr): Use it. Rewrite.
6494 (find_minsym_and_objfile): Change name of second argument.
6495 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6496 changed. Use frame_pc_unwind instead of
6497 DEPRECATED_SAVED_PC_AFTER_CALL.
6498 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6499 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6500 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6501 unwinder.
6502 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6503 "dummy-frame.h".
6504 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6505 (_initialize_i386_cygwin_tdep): New prototype.
6506 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6507 deprecated_frame_chain_valid.
6508 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6509 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6510 Rely on the SVR4 defaults.
6511 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6512 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6513
6514 2003-05-30 Andrew Cagney <cagney@redhat.com>
6515
6516 * infcall.c (call_function_by_hand): Always call
6517 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6518
6519 2003-05-30 Richard Henderson <rth@redhat.com>
6520
6521 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6522 increment.
6523
6524 2003-05-29 Jim Blandy <jimb@redhat.com>
6525
6526 Use gdbarch methods for solib stuff on PowerPC Linux.
6527 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6528 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6529 show through.
6530 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6531 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6532 giving the same effect as the #definitions above.
6533
6534 2003-05-29 Adam Fedor <fedor@gnu.org>
6535
6536 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6537 (find_implementation_from_class): Replace it with the standard
6538 case i.e. do nothing.
6539
6540 2003-05-29 Richard Henderson <rth@redhat.com>
6541
6542 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6543 (alpha_linux_sigtramp_offset): Use it. Make static.
6544 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6545 update for new frame model.
6546 * alpha-mdebug-tdep.c: New file.
6547 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6548 (alpha_osf1_init_abi): Install it.
6549 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6550 (linked_proc_desc_table): Remove.
6551 (alpha_frame_past_sigtramp_frame): Remove.
6552 (alpha_dynamic_sigtramp_offset): Remove.
6553 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6554 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6555 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6556 (push_sigtramp_desc): Remove.
6557 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6558 (alpha_cannot_store_register): Likewise.
6559 (alpha_sigcontext_addr): Remove.
6560 (alpha_find_saved_regs): Remove.
6561 (alpha_frame_init_saved_regs): Remove.
6562 (alpha_init_frame_pc_first): Remove.
6563 (read_next_frame_reg): Remove.
6564 (alpha_frame_saved_pc): Remove.
6565 (alpha_saved_pc_after_call): Remove.
6566 (temp_proc_desc, temp_saved_regs): Remove.
6567 (alpha_about_to_return): Remove.
6568 (cached_proc_desc): Remove.
6569 (alpha_frame_chain): Remove.
6570 (alpha_print_extra_frame_info): Remove.
6571 (alpha_init_extra_frame_info): Remove.
6572 (alpha_frame_locals_address): Remove.
6573 (alpha_frame_args_address): Remove.
6574 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6575 (alpha_push_dummy_frame): Remove.
6576 (alpha_pop_frame): Remove.
6577 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6578 (alpha_read_insn): New.
6579 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6580 for different insn encodings.
6581 (alpha_in_lenient_prologue): Remove.
6582 (struct alpha_sigtramp_unwind_cache): New.
6583 (alpha_sigtramp_frame_unwind_cache): New.
6584 (alpha_sigtramp_register_address): New.
6585 (alpha_sigtramp_frame_this_id): New.
6586 (alpha_sigtramp_frame_prev_register): New.
6587 (alpha_sigtramp_frame_unwind): New.
6588 (alpha_sigtramp_frame_p): New.
6589 (struct alpha_heuristic_unwind_cache): New.
6590 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6591 don't count nop insns that occur between functions.
6592 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6593 heuristic_proc_desc, but without the mdebug wrapping.
6594 (alpha_heuristic_frame_this_id): New.
6595 (alpha_heuristic_frame_prev_register): New.
6596 (alpha_heuristic_frame_unwind): New.
6597 (alpha_heuristic_frame_p): New.
6598 (alpha_heuristic_frame_base_address): New.
6599 (alpha_heuristic_frame_base): New.
6600 (alpha_unwind_dummy_id): New.
6601 (alpha_unwind_pc): New.
6602 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6603 frame related deprecated initializations; install replacements.
6604 (alpha_dump_tdep): Remove.
6605 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6606 (alpha_read_insn, alpha_after_prologue,
6607 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6608 alpha_heuristic_frame_prev_register,
6609 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6610 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6611 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6612 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6613
6614 2003-05-29 Andrew Cagney <cagney@redhat.com>
6615
6616 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6617 dependant on the availability of ASSERT_FUNCTION.
6618 (ASSERT_FUNCTION): Do not define when there is no function name.
6619
6620 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6621
6622 From Jimi X <jimix@watson.ibm.com>:
6623 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6624
6625 2003-05-28 Jim Blandy <jimb@redhat.com>
6626
6627 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6628 argument to ptrace to int; the system headers should give it the
6629 right type, and pointers don't fit in ints on powerpc64-*-*.
6630
6631 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6632
6633 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6634 DW_TAG_catch_block.
6635
6636 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6637
6638 * stabsread.c (dbx_lookup_type): Make static.
6639 (read_type): Ditto.
6640 (add_undefined_type): Ditto.
6641 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6642 not export.
6643
6644 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6645
6646 * hpread.c (hpread_has_name): Make static.
6647 (hpread_psymtab_to_symtab): Ditto.
6648 (file_exists): Ditto.
6649 (hpread_call_pxdb): Ditto.
6650 (hpread_pxdb_needed): Ditto.
6651 (hpread_quick_traverse): Ditto.
6652 (hpread_get_header): Ditto.
6653 (hpread_get_lntt): Ditto.
6654 (hpread_get_slt): Ditto.
6655 (class_of): Ditto.
6656
6657 2003-05-25 Andreas Schwab <schwab@suse.de>
6658
6659 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6660 stack_align and deprecated_extra_stack_alignment_needed.
6661 (m68k_stack_align): Delete.
6662
6663 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6664 (m68k_register_virtual_size): Likewise.
6665 (altos_skip_prologue): Remove obsolete function.
6666 (isi_frame_num_args): Likewise.
6667 (news_frame_num_args): Likewise.
6668 (m68k_fix_call_dummy): Make static.
6669 (m68k_push_dummy_frame): Likewise.
6670 (m68k_pop_frame): Likewise.
6671 (m68k_skip_prologue): Likewise.
6672 (m68k_frame_init_saved_regs): Likewise.
6673 (m68k_saved_pc_after_call): Likewise.
6674 (m68k_get_longjmp_target): Make multi-arch.
6675 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6676 structure. Register m68k_get_longjmp_target if enabled.
6677 * m68k-tdep.h (struct gdbarch_tdep): Define.
6678 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6679
6680 * Makefile.in (config.status): Also depend on configure.tgt
6681 and configure.host.
6682 (m68klinux-tdep.o): Update dependencies.
6683 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6684 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6685 (M68K_LINUX_JB_PC): Define.
6686 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6687 and take additional parameter.
6688 (m68k_linux_sigtramp_saved_pc): Update.
6689 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6690 m68k_linux_pc_in_sigtramp, in_plt_section,
6691 find_solib_trampoline_target.
6692 * config/m68k/tm-linux.h: Don't include any tm headers.
6693 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6694 (JB_ELEMENT_SIZE): Likewise.
6695 (JB_PC): Likewise.
6696 (GET_LONGJMP_TARGET): Likewise.
6697 (IN_SIGTRAMP): Likewise.
6698 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6699
6700 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6701
6702 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6703 (sparc32_push_arguments): Re-implement by calling
6704 sparc32_do_push_arguments.
6705
6706 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6707
6708 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6709 SPARC_O1_REGNUM): New defines.
6710 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6711 (sparc32_store_return_value): New function.
6712 (sparc_extract_struct_value_address): Rewrite to operate on a
6713 regcache.
6714 (sparc_gdbarch_init): Don't set
6715 deprecated_extract_struct_value_address. Set
6716 extract_struct_value_address instead. Don't set
6717 deprecated_extract_return_value and deprecated_store_return_value
6718 for 32-bit targets. Set extract_return_value and
6719 store_return_value instead.
6720 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6721 DEPRECTAED_EXTRACT_RETURN_VALUE,
6722 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6723 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6724 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6725 (sparc_store_return_value): Remove prototype.
6726 (sparc32_store_return_value): New prototype.
6727 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6728 Adjust prototypes.
6729
6730 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6731
6732 * sparcnbsd-tdep.c: Include "gdb_string.h".
6733
6734 2003-05-23 Andrew Cagney <cagney@redhat.com>
6735
6736 * p-valprint.c (pascal_val_print): Replace extract_address with
6737 the inline equivalent extract_unsigned_integer.
6738 * jv-valprint.c (java_value_print): Ditto.
6739 * ada-valprint.c (ada_val_print_1): Ditto.
6740 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6741
6742 2003-05-23 Theodore A. Roth <troth@openavr.org>
6743
6744 * blockframe.c (frameless_look_for_prologue): Remove unused
6745 after_prologue variable.
6746
6747 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6748
6749 * blockframe.c (get_pc_function_start): Rewrite to avoid
6750 asignments in if-statements.
6751
6752 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6753
6754 Committed by Elena Zannoni <ezannoni@redhat.com>.
6755 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6756 files, don't relocate absolute symbols (and do use mst_abs).
6757
6758 2003-05-23 Andrew Cagney <cagney@redhat.com>
6759
6760 * objc-lang.c: Include "gdb_assert.h".
6761 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6762 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6763 (gdb_check, gdb_check_fatal): Delete functions.
6764 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6765 gdb_assert.
6766 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6767 * Makefile.in (objc-lang.o): Update dependencies.
6768
6769 2003-05-22 Ian Lance Taylor <ian@airs.com>
6770
6771 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6772 with fprintf_filtered, not fprintf_unfiltered.
6773
6774 2003-05-22 Andrew Cagney <cagney@redhat.com>
6775
6776 * stack.c (frame_info): Inline extract_address, replacing it with
6777 extract_unsigned_integer.
6778 * findvar.c (unsigned_pointer_to_address): Ditto.
6779 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6780 * dwarf2expr.c (dwarf2_read_address): Ditto.
6781 * frame.c (frame_pc_unwind): Update comment.
6782 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6783
6784 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6785
6786 * infptrace.c (detach): Call print_sys_errmsg rather than
6787 perror_with_name to issue warning message when errno is non-zero
6788 after calling ptrace detach.
6789
6790 2003-05-21 J. Brobecker <brobecker@gnat.com>
6791
6792 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6793 macro definitions from here...
6794 * hppa-tdep.c: ...to there.
6795
6796 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6797
6798 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6799 register_ptrace_addr(). Fix all callers.
6800
6801 2003-05-21 Andreas Schwab <schwab@suse.de>
6802
6803 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6804 dependencies.
6805 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6806 end.
6807 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6808 (_initialize_m68k_linux_tdep): New function.
6809 (m68k_linux_frame_saved_pc): Make static.
6810 (m68k_linux_extract_return_value): Likewise.
6811 (m68k_linux_store_return_value): Likewise.
6812 (m68k_linux_extract_struct_value_address): Likewise.
6813 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6814 Remove.
6815 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6816 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6817 (DEPRECATED_FRAME_SAVED_PC): Remove.
6818
6819 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6820
6821 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6822 regset numbering rather than our own.
6823
6824 2003-05-19 David Carlton <carlton@bactrian.org>
6825
6826 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6827
6828 2003-05-19 David Carlton <carlton@bactrian.org>
6829
6830 Partial fix for PR c++/827.
6831 * cp-support.h: Include symtab.h.
6832 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6833 * cp-namespace.c: Update contributors.
6834 (cp_lookup_symbol_nonlocal): New.
6835 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6836 (lookup_symbol_file): Ditto.
6837 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6838 * block.h: Declare block_scope, block_using, block_global_block.
6839 * block.c (block_scope): New.
6840 (block_using, block_global_block): Ditto.
6841 * Makefile.in (cp_support_h): Depend on symtab_h.
6842 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6843
6844 2003-05-19 David Carlton <carlton@bactrian.org>
6845
6846 * language.h (struct language_defn): Add 'la_value_of_this'
6847 and 'la_lookup_symbol_nonlocal' members.
6848 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6849 lookup_symbol_static, lookup_symbol_global,
6850 lookup_symbol_aux_block.
6851 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6852 if we should search fields of this and how to do static/global
6853 lookup.
6854 (lookup_symbol_aux_block): Make extern.
6855 (basic_lookup_symbol_nonlocal): New.
6856 (lookup_symbol_static, lookup_symbol_global): Ditto.
6857 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6858 'la_lookup_symbol_nonlocal' members.
6859 * c-lang.c (c_language_defn, cplus_language_defn)
6860 (asm_language_defn, minimal_language_defn): Ditto.
6861 * jv-lang.c (java_language_defn): Ditto.
6862 * language.c (unknown_language_defn, auto_language_defn)
6863 (local_language_defn): Ditto.
6864 * m2-lang.c (m2_language_defn): Ditto.
6865 * objc-lang.c (objc_language_defn): Ditto.
6866 * scm-lang.c (scm_language_defn): Ditto.
6867 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6868 * p-lang.c (pascal_language_defn): Ditto for both.
6869 * Makefile.in (f-lang.o): Depend on value_h.
6870 (p-lang.o): Ditto.
6871
6872 2003-05-19 David Carlton <carlton@bactrian.org>
6873
6874 * block.h: Declare block_static_block.
6875 * block.c (block_static_block): New.
6876 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6877 lookup_symbol_aux_local, calling block_static_block instead.
6878 (lookup_symbol_aux_local): Delete 'static_block' argument.
6879
6880 2003-05-19 David Carlton <carlton@bactrian.org>
6881
6882 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6883
6884 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6885
6886 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6887 register numbers mapping.
6888
6889 2003-05-18 Adam Fedor <fedor@gnu.org>
6890
6891 * symtab.c (completion_list_objc_symbol): New function.
6892 (make_symbol_completion_list): Use it to add ObjC symbols
6893 when looking though the list.
6894 (language_search_unquoted_string): New function.
6895 (make_file_symbol_completion_list): Use it.
6896
6897 2003-05-18 Andreas Schwab <schwab@suse.de>
6898
6899 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6900 dependencies.
6901 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6902 as m68k_linux_extract_return_value.
6903 (DEPRECATED_STORE_RETURN_VALUE): Define as
6904 m68k_linux_store_return_value.
6905 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6906 m68k_linux_extract_struct_value_address.
6907 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6908 get_next_frame, get_frame_base, get_frame_pc.
6909 (m68k_linux_frame_saved_pc): Use get_frame_base.
6910 (m68k_linux_extract_return_value): New function.
6911 (m68k_linux_store_return_value): New function.
6912 (m68k_linux_extract_struct_value_address): New function.
6913 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6914
6915 * c-exp.y (typebase): Remove duplicate occurence of
6916 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6917 of lookup_signed_typename.
6918
6919 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6920
6921 * dwarf2loc.c (find_location_expression): Change type of second
6922 argument to `size_t *'.
6923 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6924 for size variable.
6925
6926 2003-05-18 David Carlton <carlton@bactrian.org>
6927
6928 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6929 'linkage_name'. Add comment.
6930 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6931 'linkage_name'.
6932 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6933 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6934 (lookup_block_symbol): Ditto.
6935
6936 2003-05-16 Andrew Cagney <cagney@redhat.com>
6937
6938 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6939 * gdbarch.h, gdbarch.c: Re-generate.
6940 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6941 * TODO (REGISTER_BYTES): Delete reference.
6942 * alpha-tdep.c (alpha_gdbarch_init): Update.
6943 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6944 * x86-64-tdep.c (x86_64_init_abi): Update.
6945 * vax-tdep.c (vax_gdbarch_init): Update.
6946 * v850-tdep.c (v850_gdbarch_init): Update.
6947 * sparc-tdep.c (sparc_gdbarch_init): Update.
6948 * sh-tdep.c (sh_gdbarch_init): Update.
6949 * s390-tdep.c (s390_gdbarch_init): Update.
6950 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6951 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6952 (ns32k_gdbarch_init_32382): Update.
6953 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6954 * mcore-tdep.c (mcore_gdbarch_init): Update.
6955 * m68k-tdep.c (m68k_gdbarch_init): Update.
6956 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6957 * ia64-tdep.c (ia64_gdbarch_init): Update.
6958 * i386-tdep.c (i386_gdbarch_init): Update.
6959 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6960 * hppa-tdep.c (hppa_gdbarch_init): Update.
6961 * h8300-tdep.c (h8300_gdbarch_init): Update.
6962 * frv-tdep.c (frv_gdbarch_init): Update.
6963 * cris-tdep.c (cris_gdbarch_init): Update.
6964 * avr-tdep.c (avr_gdbarch_init): Update.
6965 * arm-tdep.c (arm_gdbarch_init): Update.
6966 * sparc-tdep.c (sparc_pop_frame): Update.
6967 * rs6000-tdep.c (rs6000_pop_frame): Update.
6968 * remote.c (init_remote_state): Update.
6969 (remote_prepare_to_store): Update.
6970 * remote-vx.c (vx_prepare_to_store): Update.
6971 * remote-sds.c (sds_fetch_registers): Update.
6972 (sds_prepare_to_store): Update.
6973 * remote-array.c: Update.
6974 * regcache.c (init_legacy_regcache_descr): Update.
6975 (init_regcache_descr): Update.
6976 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6977 (mips_o64_extract_return_value): Update.
6978 * irix5-nat.c (fetch_core_registers): Update.
6979 * irix4-nat.c (fetch_core_registers): Update.
6980 * i386-tdep.h: Update.
6981 * hppa-tdep.c (pa_do_registers_info): Update.
6982 (pa_do_strcat_registers_info): Update.
6983 * cris-tdep.c (cris_register_bytes_ok): Update.
6984 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6985 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6986 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6987 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6988 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6989 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6990 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6991 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6992 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6993 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6994 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6995 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6996 (REGISTER_BYTES_OK): Update.
6997 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6998 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6999
7000 2003-05-16 Ian Lance Taylor <ian@airs.com>
7001
7002 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7003 (vax_print_insn, print_insn_arg): Remove static functions.
7004 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7005 print_insn_vax from opcodes library.
7006 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7007
7008 2003-05-15 Andrew Cagney <cagney@redhat.com>
7009
7010 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7011 * target.h (memory_breakpoint_from_pc): Delete declaration.
7012 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7013 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7014 * monitor.c (monitor_insert_breakpoint): Use
7015 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7016 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7017 * gdbarch.h, gdbarch.c: Re-generate.
7018 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7019 (sparc_gdbarch_init): Set breakpoint_from_pc to
7020 sparc_breakpoint_from_pc.
7021 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7022 (BREAKPOINT_FROM_PC): Define.
7023 (sparc_breakpoint_from_pc): Declare.
7024 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7025 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7026 (BREAKPOINT_FROM_PC): Define.
7027 (BREAKPOINT): Delete macro.
7028 * target.h: Update comment.
7029 * s390-tdep.c (s390_gdbarch_init): Update comments.
7030 * remote.c: Update comments.
7031 * remote-mips.c: Update comments.
7032 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7033 * mem-break.c: Update comment.
7034 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7035 (ia64_memory_insert_breakpoint): Update.
7036 * config/sparc/tm-sparc.h: Update comment.
7037 * config/pa/tm-hppa64.h: Update comment.
7038 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7039 (rs6000_breakpoint_from_pc): Update.
7040 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7041 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7042 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7043 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7044 (mips_breakpoint_from_pc): Update.
7045 (mips_dump_tdep): Update.
7046
7047 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7048 * minsyms.c (lookup_minimal_symbol): Inline
7049 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7050
7051 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7052 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7053 * p-lang.c (pascal_printstr): Ditto.
7054 * objc-lang.c (objc_printstr): Ditto.
7055 * m2-lang.c (m2_printstr): Ditto.
7056 * jv-valprint.c (java_print_value_fields): Ditto.
7057 * f-lang.c (f_printstr): Ditto.
7058 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7059 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7060 for repeat_count_threshold.
7061 * Makefile.in (cp-valprint.o): Update dependencies.
7062
7063 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7064
7065 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7066 (examine_prologue): Support looking through leaf functions, knowing
7067 they start with mov r2,r12. Support skipping over indirect stores
7068 of the input registers. Upon hitting a non-nop branch instruction
7069 or predicated instruction, bail out by setting lim_pc to the current
7070 pc value in the loop. At the end, if the lim_pc value is still
7071 beyond our calculated value and we have trust_limit set,
7072 use the lim_pc value.
7073
7074 2003-05-15 Andrew Cagney <cagney@redhat.com>
7075
7076 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7077 generic_find_dummy_frame.
7078 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7079 (deprecated_generic_find_dummy_frame): Update.
7080 (deprecated_read_register_dummy): Update.
7081 * frame.c (deprecated_generic_get_saved_register): Update.
7082
7083 2003-05-15 Theodore A. Roth <troth@openavr.org>
7084
7085 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7086 (avr_gdbarch_init): Set breakpoint_from_pc method.
7087
7088 2003-05-15 Andrew Cagney <cagney@redhat.com>
7089
7090 * regcache.c (build_regcache): Set deprecated_register_valid
7091 directly.
7092 (deprecated_grub_regcache_for_register_valid): Delete function.
7093 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7094 declaration.
7095
7096 2003-05-15 David Carlton <carlton@bactrian.org>
7097
7098 Committed by Elena Zannoni <ezannoni@redhat.com>
7099 * symtab.c (lookup_symbol_aux): Delete calls to
7100 lookup_symbol_aux_minsyms.
7101 (lookup_symbol_aux_minsyms): Comment out function and
7102 prototype. Delete lookup by mangled name.
7103
7104 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7105
7106 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7107 correctly indicate an empty stack and ``stack_allocated'' to the
7108 indicate the number of elements initially allocated.
7109 (dwarf_expr_grow_stack): Simplify method for computing new
7110 stack size. Don't loop infinitely if ``stack_len'' is zero.
7111 (execute_stack_op): Move ``ctx->in_reg'' initialization
7112 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7113 be used in conjuction with DW_OP_piece. Revise error message
7114 accordingly.
7115
7116 2003-05-14 Theodore A. Roth <troth@openavr.org>
7117
7118 * MAINTAINERS: Update my email address.
7119 * avr-tdep.c: Ditto.
7120
7121 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7122
7123 * symtab.h (enum domain_enum): Rename from namespace_enum.
7124 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7125 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7126 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7127 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7128 TYPES_NAMESPACE, METHODS_NAMESPACE.
7129 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7130 (struct symbol, struct partial_symbol): Rename field
7131 'namespace_enum namespace' to 'domain_enum domain'.
7132 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7133 Delete old define kludge for namespace.
7134
7135 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7136 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7137 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7138 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7139 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7140 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7141 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7142 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7143 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7144 occurrences of the above.
7145
7146 2003-05-14 Ian Lance Taylor <ian@airs.com>
7147
7148 * Makefile.in (install-only): Use $(SHELL) when running
7149 mkinstalldirs.
7150
7151 2003-05-13 Ian Lance Taylor <ian@airs.com>
7152
7153 * MAINTAINERS (write after approval): Add myself.
7154
7155 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7156 second and third arguments.
7157 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7158 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7159
7160 2003-05-13 Andrew Cagney <cagney@redhat.com>
7161
7162 * defs.h (store_address): Delete declaration.
7163 findvar.c (store_address): Delete function.
7164 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7165 store_unsigned_integer.
7166 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7167 * v850-tdep.c (v850_push_arguments): Ditto.
7168 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7169 * sh-tdep.c (sh64_get_saved_register): Ditto.
7170 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7171 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7172 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7173 (mips_get_saved_register): Ditto.
7174 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7175 (find_func_descr, ia64_push_arguments): Ditto.
7176 * i386-tdep.c (i386_push_arguments): Ditto.
7177 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7178 * frv-tdep.c (frv_push_arguments): Ditto.
7179 * frame.c (legacy_saved_regs_prev_register): Ditto.
7180 (deprecated_generic_get_saved_register): Ditto.
7181 * findvar.c (unsigned_address_to_pointer): Ditto.
7182 * dwarf2read.c (dwarf2_const_value): Ditto.
7183 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7184 * alpha-tdep.c (alpha_push_arguments): Ditto.
7185
7186 2003-05-12 J. Brobecker <brobecker@gnat.com>
7187
7188 * NEWS: Mention that the hppa-hpux port has been partially
7189 multiarched (32bit ABIT only, so far).
7190
7191 2003-05-11 Andrew Cagney <cagney@redhat.com>
7192
7193 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7194 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7195 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7196 sim/testsuite/sim/arm/misaligned2.ms, and
7197 sim/testsuite/sim/arm/misaligned3.ms.
7198 * disasm.h (struct ui_file): Add opaque struct declaration.
7199 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7200 * frame.h (struct ui_file): Ditto.
7201
7202 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7203
7204 * value.h: Pretty print.
7205
7206 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7207
7208 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7209
7210 2003-05-08 Andrew Cagney <cagney@redhat.com>
7211
7212 * regcache.h (max_register_size): Delete declaration.
7213 * regcache.c (max_register_size): Delete function.
7214 (struct regcache_descr): Delete field "max_register_size".
7215 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7216 registers fit in MAX_REGISTER_SIZE.
7217 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7218 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7219 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7220 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7221 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7222 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7223 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7224 * dve3900-rom.c, hppa-tdep.c: Ditto.
7225
7226 2003-05-08 David Carlton <carlton@math.stanford.edu>
7227
7228 * valops.c (push_word): Fix typo.
7229
7230 2003-05-08 Andrew Cagney <cagney@redhat.com>
7231
7232 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7233 * gdbarch.h: Re-generate.
7234 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7235 (legacy_max_register_raw_size): Delete declaration.
7236 * regcache.c (legacy_max_register_raw_size): Delete function.
7237 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7238 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7239 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7240 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7241 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7242 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7243 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7244 * findvar.c, dwarf2cfi.c: Ditto.
7245
7246 2003-05-08 Andrew Cagney <cagney@redhat.com>
7247
7248 * mips-tdep.c (read_signed_register): New function, moved to here
7249 from "regcache.c".
7250 (read_signed_register_pid): Ditto.
7251 * regcache.c (read_signed_register_pid): Delete function, moved to
7252 "mips-tdep.c".
7253 (read_signed_register): Ditto.
7254 * regcache.h (read_signed_register): Delete declaration.
7255 (read_signed_register_pid): Delete declaration.
7256
7257 2003-05-08 Andrew Cagney <cagney@redhat.com>
7258
7259 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7260 * gdbarch.h: Re-generate.
7261 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7262 (legacy_max_register_virtual_size): Delete declaration.
7263 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7264 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7265 * tracepoint.c (memrange_sortmerge): Ditto.
7266 * sparc-tdep.c (sparc_print_registers): Ditto.
7267 * regcache.c (legacy_max_register_virtual_size): Delete function.
7268
7269 2002-05-08 J. Brobecker <brobecker@gnat.com>
7270
7271 * fork-child.c (escape_bang_in_quoted_argument): New function.
7272 (fork_inferior): Escape '!' characters in quoted arguments
7273 only when needed.
7274
7275 2003-05-08 J. Brobecker <brobecker@gnat.com>
7276
7277 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7278 the language of the CU is not currently supported by GDB.
7279
7280 2003-05-08 J. Brobecker <brobecker@gnat.com>
7281
7282 * defs.h (language): Add language_minimal enum value.
7283 * c-lang.c (minimal_language_defn): New language definition.
7284 (_initialize_c_language): Add the new minimal language to the list
7285 of languages known to GDB.
7286
7287 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7288
7289 * frame.c (get_frame_type): Don't attempt to lazily initialize
7290 frame's unwinder for legacy frames.
7291
7292 2003-05-07 Andrew Cagney <cagney@redhat.com>
7293
7294 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7295 and "regcache" parameters.
7296 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7297
7298 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7299
7300 * dwarf2read.c (dwarf_decode_lines): Only use output of
7301 check_cu_functions() when calling record_line(). Do not update
7302 the current address.
7303
7304 2003-05-07 Andrew Cagney <cagney@redhat.com>
7305
7306 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7307 code.
7308
7309 2003-05-07 Jim Blandy <jimb@redhat.com>
7310
7311 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7312 'maint info symtabs' and 'maint info psymtabs'.
7313 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7314 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7315 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7316 Declarations updated.
7317 * maint.c (maintenance_list_command): Delete.
7318 (_initialize_maint_cmds): Update calls to add_cmd.
7319 * gdbcmd.h (maintenancelistlist): Delete declaration.
7320 * cli/cli-cmds.c (maintenancelistlist): Delete.
7321 (init_cmd_lists): Don't initialize it.
7322 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7323
7324 2003-05-07 Andrew Cagney <cagney@redhat.com>
7325
7326 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7327 "regcache".
7328 (d10v_print_registers_info): Update.
7329 (d10v_dmap_register, d10v_imap_register): Delete functions.
7330 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7331 and "imap_register".
7332 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7333 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7334 * arch-utils.c (generic_remote_translate_xfer_address): Add
7335 "regcache" and "gdbarch" parameters.
7336 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7337 parameter. Change class to multi-arch.
7338 * gdbarch.h, gdbarch.c: Re-generate.
7339 * remote.c (remote_xfer_memory): Use
7340 gdbarch_remote_translate_xfer_address.
7341
7342 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7343
7344 * infrun.c (prev_pc): Move declaration ahead of proceed().
7345 (proceed): Refresh prev_pc value before resuming.
7346 (stop_stepping): Remove code to refresh prev_pc.
7347
7348 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7349
7350 * nto-tdep.c: Removed stray comment.
7351
7352 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7353
7354 * i386-nto-tdep.c: Fix old K&R function definitions.
7355 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7356 Also change add_show_from_set() call to add_setshow_cmd().
7357 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7358
7359 2003-05-05 Andrew Cagney <cagney@redhat.com>
7360
7361 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7362 (fprint_dummy_frames): New function.
7363 (maintenance_print_dummy_frames): New function.
7364 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7365 * frame.c (fprint_frame_id): Make global.
7366 * frame.h (fprint_frame_id): Declare.
7367 * Makefile.in (dummy-frame.o): Update dependencies.
7368
7369 2003-05-05 Andrew Cagney <cagney@redhat.com>
7370
7371 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7372 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7373 SIZEOF_CALL_DUMMY_WORDS.
7374 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7375 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7376 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7377 CALL_DUMMY_BREAKPOINT_OFFSET.
7378 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7379 CALL_DUMMY_START_OFFSET.
7380 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7381 * gdbarch.h, gdbarch.c: Re-generate.
7382 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7383 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7384 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7385 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7386 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7387 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7388 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7389 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7390 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7391 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7392 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7393 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7394 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7395 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7396 * config/sparc/tm-sparc.h: Update.
7397
7398 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7399
7400 * configure.tgt: Add i[3456]86-*-nto*.
7401 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7402 * nto-tdep.c: New file. Neutrino target support routines.
7403 * nto-tdep.h: New file. Neutrino target header.
7404 * config/tm-qnxnto.h: New file.
7405 * config/i386/i386nto.mt: New file.
7406 * config/i386/tm-i386nto.h: New file.
7407
7408 2003-05-04 Andrew Cagney <cagney@redhat.com>
7409
7410 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7411 (load_infrun_state): Ditto.
7412 (struct thread_info): Drop "prev_func_name" field.
7413 * thread.c (load_infrun_state): Update.
7414 (save_infrun_state): Update.
7415 * infrun.c (prev_func_name): Delete variable.
7416 (init_wait_for_inferior): Do not clear prev_func_name.
7417 (stop_stepping, keep_going, context_switch): Do not swap
7418 prev_func_name.
7419 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7420 instead of PC_IN_SIGTRAMP.
7421
7422 2003-05-04 Andrew Cagney <cagney@redhat.com>
7423
7424 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7425 REGISTER_BYTE with register_offset_hack.
7426 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7427 that REGISTER_BYTE is consistent with the regcache.
7428 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7429 * gdbarch.h, gdbarch.c: Regenerate.
7430
7431 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7432
7433 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7434 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7435
7436 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7437
7438 2003-05-03 J. Brobecker <brobecker@gnat.com>
7439
7440 From Thierry Schneider <tpschneider1@yahoo.com>
7441 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7442 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7443 (mi-cmd-symbol.o): Add rule.
7444
7445 2003-05-03 Andrew Cagney <cagney@redhat.com>
7446
7447 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7448 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7449 * gdbarch.h, gdbarch.c: Re-generate.
7450 * d10v-tdep.c (d10v_push_dummy_code): New function.
7451 (d10v_gdbarch_init): Set push_dummy_code.
7452 * infcall.c (legacy_push_dummy_code): New function.
7453 (generic_push_dummy_code): New function.
7454 (push_dummy_code): New function.
7455 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7456 instead of dummy_addr, to push_dummy_call. Move call to
7457 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7458 switch.
7459 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7460
7461 2003-05-03 Andrew Cagney <cagney@redhat.com>
7462
7463 * disasm.h (print_insn): Declare.
7464 * disasm.c (init_gdb_disassemble_info): New function.
7465 (gdb_disassembly): Call init_gdb_disassemble_info.
7466 (gdb_print_insn): New function.
7467 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7468 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7469 * mcore-tdep.c: Include "disasm.h"
7470 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7471 * d10v-tdep.c: Include "disasm.h".
7472 (display_trace): Call gdb_print_insn, instead of print_insn.
7473 (print_insn): Delete function.
7474 * printcmd.c: Include "disasm.h".
7475 (print_insn): Delete function.
7476 (print_formatted): Call gdb_print_insn, instead of print_insn.
7477 * Makefile.in (printcmd.o): Update dependencies.
7478 (mcore-tdep.o, d10v-tdep.o): Ditto.
7479
7480 2003-05-02 Andrew Cagney <cagney@redhat.com>
7481
7482 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7483 PC_REGNUM, re-indent.
7484 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7485 PC_REGNUM isn't set.
7486
7487 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7488 * gdbarch.h, gdbarch.c: Re-generate.
7489 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7490 register_virtual_size, pc_regnum, or register_bytes.
7491 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7492 (d10v_register_type): Use D10V_PC_REGNUM.
7493 (d10v_print_registers_info, d10v_read_pc): Ditto.
7494 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7495 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7496
7497 2003-05-02 David Carlton <carlton@bactrian.org>
7498
7499 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7500 the name with mstrsave.
7501
7502 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7503
7504 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7505 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7506 (host_charset_name, target_charset_name): New vars for use by
7507 set/show commands.
7508 (host_charset_enum, target_charset_enum): New enums for set/show
7509 commands.
7510 (set_charset_sfunc, set_host_charset_sfunc,
7511 set_target_charset_sfunc): New functions.
7512 (set_host_charset, set_target_charset): Make static.
7513 (list_charsets, set_host_charset_command,
7514 set_target_charset_command): Delete functions.
7515 (show_charset_command): Rewrite as....
7516 (show_charset): Hook this up with the set/show command mechanism.
7517 (_initialize_charset): Change names of charsets to match the
7518 set/show enums. Use host_charset_name and target_charset_name.
7519 Use set/show mechanism for charset, host-charset, target-charset
7520 commands. Do not make 'show host-charset' and 'show
7521 target-charset' be aliases of 'show charset'.
7522
7523 * charset.h (set_host_charset, set_target_charset): Don't export,
7524 they are not used outside the file.
7525
7526 2003-05-01 Andrew Cagney <cagney@redhat.com>
7527
7528 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7529 (gdb_disassembly): Make "di" non static, always initialize and
7530 cleanup. Always use dis_asm_read_memory.
7531 (gdb_dis_asm_read_memory): Delete function.
7532
7533 2003-05-01 Andrew Cagney <cagney@redhat.com>
7534
7535 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7536 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7537
7538 2003-04-30 Andrew Cagney <cagney@redhat.com>
7539
7540 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7541 "tm_print_insn_info".
7542 (TARGET_PRINT_INSN_INFO): Delete macro.
7543 (dis_asm_read_memory): Delete function declaration.
7544 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7545 (tm_print_insn_info): Delete variable definition.
7546 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7547 * gdbarch.h, gdbarch.c: Re-generate.
7548 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7549 "deprecated_tm_print_insn_info".
7550 * mcore-tdep.c (mcore_dump_insn): Ditto.
7551 * mips-tdep.c (mips_gdbarch_init): Ditto.
7552 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7553 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7554 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7555 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7556 instead of TARGET_PRINT_INSN_INFO, add comment.
7557 * s390-tdep.c (s390_get_frame_info): Instead of
7558 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7559 (s390_check_function_end, s390_is_sigreturn): Ditto.
7560 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7561 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7562 * disasm.c: Include "gdbcore.h".
7563 (_initialize_disasm): New function, initialize
7564 "deprecated_tm_print_insn_info".
7565 (deprecated_tm_print_insn_info): New variable.
7566 (dis_asm_read_memory): Moved from "corefile.c", made static.
7567 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7568 * Makefile.in (disasm.o): Update dependencies.
7569
7570 2003-04-30 Andrew Cagney <cagney@redhat.com>
7571
7572 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7573
7574 2003-04-29 Adam Fedor <fedor@gnu.org>
7575
7576 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7577 * infcall.c (find_function_addr): Make non-static.
7578 * infcall.h (find_function_addr): Declare.
7579 * Makefile.in (eval.o): Update dependencies.
7580
7581 2003-04-28 Adam Fedor <fedor@gnu.org>
7582
7583 * symtab.c (symbol_find_demangled_name): Check for and demangle
7584 ObjC symbols.
7585 (symbol_init_demangled_name): Init for language_objc as well.
7586
7587 2003-04-28 Andrew Cagney <cagney@redhat.com>
7588
7589 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7590 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7591 * gdbarch.h, gdbarch.c: Re-generate.
7592 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7593 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7594 * inferior.h (deprecated_read_fp): Rename read_fp.
7595 (generic_target_read_fp): Delete declaration.
7596 * regcache.c (generic_target_read_fp): Delete function.
7597 (deprecated_read_fp): Replace read_fp, use
7598 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7599 * d10v-tdep.c (d10v_read_fp): Delete function.
7600 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7601
7602 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7603 deprecated_target_read_fp to generic_target_read_fp.
7604 * sh-tdep.c (sh_gdbarch_init): Ditto.
7605 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7607 * frv-tdep.c (frv_gdbarch_init): Ditto.
7608
7609 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7610 deprecated_fp_regnum.
7611 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7612 * vax-tdep.c (vax_gdbarch_init): Ditto.
7613 * v850-tdep.c (v850_gdbarch_init): Ditto.
7614 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7615 * sh-tdep.c (sh_gdbarch_init): Ditto.
7616 * s390-tdep.c (s390_gdbarch_init): Ditto.
7617 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7618 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7619 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7620 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7621 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7622 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7623 * i386-tdep.c (i386_gdbarch_init): Ditto.
7624 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7625 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7626 * frv-tdep.c (frv_gdbarch_init): Ditto.
7627 * cris-tdep.c (cris_gdbarch_init): Ditto.
7628 * avr-tdep.c (avr_gdbarch_init): Ditto.
7629 * arm-tdep.c (arm_gdbarch_init): Ditto.
7630 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7631
7632 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7633 * v850-tdep.c (v850_gdbarch_init): Ditto.
7634 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7635 * sh-tdep.c (sh_gdbarch_init): Ditto.
7636 * s390-tdep.c (s390_gdbarch_init): Ditto.
7637 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7638 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7639 * mips-tdep.c (mips_gdbarch_init): Ditto.
7640 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7641 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7642 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7643 * frv-tdep.c (frv_gdbarch_init): Ditto.
7644 * avr-tdep.c (avr_gdbarch_init): Ditto.
7645 * arm-tdep.c (arm_gdbarch_init): Ditto.
7646
7647 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7648 DEPRECATED_FP_REGNUM.
7649 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7650 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7651 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7652 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7653 (sparc32_register_virtual_type): Ditto.
7654 * sh-tdep.c (sh64_frame_chain): Ditto.
7655 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7656 (sh_nofp_frame_init_saved_regs): Ditto.
7657 (sh64_nofp_frame_init_saved_regs): Ditto.
7658 (sh_fp_frame_init_saved_regs): Ditto.
7659 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7660 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7661 * procfs.c (procfs_fetch_registers): Ditto.
7662 (procfs_store_registers): Ditto.
7663 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7664 (store_inferior_registers, fetch_core_registers): Ditto.
7665 (fetch_kcore_registers, clear_regs): Ditto.
7666 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7667 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7668 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7669 * nlm/i386.c (do_status): Ditto.
7670 * mipsv4-nat.c (supply_gregset): Ditto.
7671 * mips-tdep.c: Ditto for comments.
7672 * mips-nat.c (fetch_inferior_registers): Ditto.
7673 (store_inferior_registers, fetch_core_registers): Ditto.
7674 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7675 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7676 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7677 (i386_do_pop_frame, i386_register_type): Ditto.
7678 * hppa-tdep.c (hppa_frame_chain): Ditto.
7679 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7680 (hppa_pop_frame, hppa_read_fp): Ditto.
7681 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7682 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7683 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7684 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7685 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7686 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7687 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7688 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7689 * blockframe.c: Ditto for comments.
7690 * arch-utils.h: Ditto for comments.
7691 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7692 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7693 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7694 * alpha-tdep.h: Ditto for comments.
7695 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7696 (alpha_cannot_store_register): Ditto.
7697 (alpha_push_dummy_frame): Ditto.
7698 * alpha-nat.c (supply_gregset): Ditto.
7699
7700 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7701 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7702 * config/sparc/tm-sparc.h: Update comment.
7703
7704 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7705 deprecated_read_fp instead of TARGET_READ_FP.
7706 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7707 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7708 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7709 deprecated_read_fp instead of read_fp.
7710 * s390-tdep.c (s390_push_arguments): Ditto.
7711 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7712 * frame.h: Ditto in comments.
7713 * frame.c (legacy_get_prev_frame): Ditto.
7714 * dummy-frame.c (dummy_frame_this_id): Ditto.
7715 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7716
7717 2003-04-28 Andrew Cagney <cagney@redhat.com>
7718
7719 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7720 * gdbarch.h, gdbarch.c: Re-generate.
7721 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7722 * vax-tdep.c (_initialize_vax_tdep): Update.
7723 * v850-tdep.c (_initialize_v850_tdep): Update.
7724 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7725 * s390-tdep.c (_initialize_s390_tdep): Update.
7726 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7727 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7728 * mips-tdep.c (_initialize_mips_tdep): Update.
7729 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7730 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7731 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7732 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7733 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7734 * frv-tdep.c (_initialize_frv_tdep): Update.
7735 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7736 (_initialize_cris_tdep): Update.
7737 * arch-utils.c (legacy_print_insn): Update.
7738 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7739
7740 2003-04-26 Adam Fedor <fedor@gnu.org>
7741
7742 * linespec.c (decode_objc): New function to decode ObjC calls
7743 (decode_line_1): Check for ObjC calls (using decode_objc)
7744 * Makefile (linespec.o): Update dependencies.
7745
7746 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7747
7748 * breakpoint.h (struct breakpoint_ops): New.
7749 (struct breakpoint): Add ops member.
7750
7751 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7752 (mention): Use new breakpoint ops member.
7753 (set_raw_breakpoint): Initialize ops field to NULL.
7754 (print_exception_catchpoint, print_one_exception_catchpoint)
7755 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7756 (gnu_v3_exception_catchpoint_ops): New.
7757 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7758
7759 2003-04-25 Adam Fedor <fedor@gnu.org>
7760
7761 * Makefile.in (COMMON_OBS): Add objc-lang.o
7762
7763 2003-04-25 Andrew Cagney <cagney@redhat.com>
7764
7765 * d10v-tdep.c (print_insn): Delete function.
7766 (display_trace): Use TARGET_PRINT_INSN.
7767 (_initialize_d10v_tdep): Do not set tm_print_insn.
7768 (d10v_gdbarch_init): Set print_insn.
7769
7770 2003-04-25 Andrew Cagney <cagney@redhat.com>
7771
7772 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7773 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7774 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7775 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7776 (nr_dmap_regs, a0_regnum): ... new functions.
7777 (d10v_print_registers_info): Use a0_regnum, use register_size.
7778 (d10v_register_byte): Delete function.
7779 (d10v_register_raw_size): Delete function.
7780 (d10v_register_type): Use a0_regnum.
7781 (d10v_print_registers_info): Use a0_regnum.
7782 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7783 (d10v_gdbarch_init): Do not set register_byte or
7784 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7785 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7786 extract_address.
7787 (trace_command): Use XCALLOC.
7788 (print_insn): Delete reference to tm_print_insn.
7789 (saved_regs_unwinder): Use store_unsigned_integer instead of
7790 store_address.
7791 * frame.h (FRAME_OBSTACK_CALLOC): Define
7792
7793 2003-04-25 David Carlton <carlton@bactrian.org>
7794
7795 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7796
7797 2003-04-24 Adam Fedor <fedor@gnu.org>
7798
7799 * objc-lang.c: Include "valprint.h"
7800 * Makefile.in (objc-lang.o): Update dependencies.
7801
7802 2003-04-24 Adam Fedor <fedor@gnu.org>
7803
7804 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7805 architecture dependant compilation and mark as unimplemented
7806 (until they get put in the gdbarch vector).
7807
7808 2003-04-23 David Carlton <carlton@bactrian.org>
7809
7810 * cp-support.c (cp_find_first_component): Accept 'operator' in
7811 more locations.
7812
7813 2003-04-23 Andrew Cagney <cagney@redhat.com>
7814
7815 * infcall.c (call_function_by_hand): Eliminate redundant
7816 indentation. Move "saved_async" and "old_cleanups" to where they
7817 are needed.
7818
7819 2003-04-23 Andrew Cagney <cagney@redhat.com>
7820
7821 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7822 and "buffer". Move the "name" code to where it is needed.
7823
7824 2003-04-23 Andrew Cagney <cagney@redhat.com>
7825
7826 * infcall.c (call_function_by_hand): Move variables "start_sp",
7827 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7828 code to ON_STACK switch branch.
7829
7830 2003-04-23 Andrew Cagney <cagney@redhat.com>
7831
7832 * infcall.c (call_function_by_hand): Make declaration of "i",
7833 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7834 lint.
7835
7836 2003-04-23 Andrew Cagney <cagney@redhat.com>
7837
7838 * infcall.c (call_function_by_hand): Delete variable
7839 "n_method_args". Localize "param_type"'s declaration to the loop
7840 that it is used. Reinstate code assigning to said variable -
7841 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7842 Rationalize code using "param_type".
7843
7844 2003-04-22 Andrew Cagney <cagney@redhat.com>
7845
7846 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7847 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7848 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7849 to DEPRECATED_PUSH_RETURN_ADDRESS.
7850
7851 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7852
7853 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7854 on the DWARF2 register number prior to fetching a register.
7855
7856 2003-04-22 J. Brobecker <brobecker@gnat.com>
7857
7858 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7859 Update all the tests using SOFT_FLOAT considering the fact that
7860 this macro was always set to 0.
7861 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7862 considering the fact that this macro was always set to 0.
7863 * hppa-tdep.h (hppa_store_return_value): Likewise.
7864 (hppa_extract_return_value): Likewise.
7865
7866 2003-04-22 J. Brobecker <brobecker@gnat.com>
7867
7868 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7869 the hppa-pro target only.
7870
7871 2003-04-21 J. Brobecker <brobecker@gnat.com>
7872
7873 Ongoing multi-arch conversion effort for HP/UX:
7874 * config/pa/tm-hppa.h: Move all macro that are no longer
7875 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7876 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7877
7878 2003-04-21 J. Brobecker <brobecker@gnat.com>
7879
7880 * config/pa/tm-hppa.h: Obsolete a section that was only used
7881 for hppa-pro.
7882
7883 2003-04-21 J. Brobecker <brobecker@gnat.com>
7884
7885 Ongoing multi-arch conversion for HP/UX.
7886 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7887 if already defined (allows hppa64 to stay non-multiarched for now).
7888 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7889
7890 2003-04-21 Andrew Cagney <cagney@redhat.com>
7891
7892 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7893
7894 2003-04-21 Andrew Cagney <cagney@redhat.com>
7895
7896 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7897 "i386_num_mmx_regs".
7898
7899 2003-04-21 Andrew Cagney <cagney@redhat.com>
7900
7901 * infcall.c: New file.
7902 * infcall.h: New file.
7903 * valarith.c: Include "infcall.h".
7904 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7905 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7906 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7907 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7908 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7909 (SFILES): Add "infcall.c"
7910 (COMMON_OBS): Add "infcall.o".
7911 (infcall.o): Specify dependencies.
7912 * value.h (call_function_by_hand): Delete declaration.
7913 * inferior.h (run_stack_dummy): Delete declaration.
7914 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7915 (run_stack_dummy): Move to "infcall.c", merged into
7916 call_function_by_hand.
7917 * valops.c (call_function_by_hand): Moved to "infcall.c".
7918 (find_function_addr, value_arg_coerce): Ditto.
7919 (unwindonsignal_p, coerce_float_to_double): Ditto.
7920 (_initialize_valops): Move "set/show coerce-float-to-double", and
7921 "set/show unwindonsignal" commands to "infcall.c".
7922 * v850-tdep.c, target.h: Update comments.
7923 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7924 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7925 (sh64_init_extra_frame_info): Update comments.
7926 * mn10300-tdep.c: Update comments.
7927 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7928 * config/sparc/tm-sparc.h: Update comments.
7929 * breakpoint.h: Update comments.
7930 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7931 * arm-tdep.c: Update comment.
7932
7933 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7934
7935 * i386-tdep.c (i386_num_register_names): New variable.
7936 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7937 (MM0_REGNUM): Remove redundant parentheses in define.
7938 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7939 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7940 i386_mxcsr_regnum_p): Remove redundant parentheses.
7941 (i386_register_name): Use i386_num_register_names.
7942
7943 * i386-tdep.c (i386_extract_return_value,
7944 i386_store_return_value): Correct check for availability of
7945 floating-point registers.
7946
7947 * i386-tdep.c (i386_frame_num_args): Remove function.
7948 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7949
7950 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7951 mmx_regnum_to_fp_regnum. Adjust all callers.
7952
7953 * i386-tdep.c (i386_get_longjmp_target): Use
7954 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7955 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7956 extract_address.
7957
7958 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7959
7960 * core-regset.c: Update comments to reflect reality. Re-order
7961 includes.
7962 (fetch_core_registers): Use switch instead of if. Remove
7963 redundant prototype.
7964
7965 2003-04-18 Jim Blandy <jimb@redhat.com>
7966
7967 * s390-tdep.c (s390_frame_align): New function.
7968 (s390_gdbarch_init): Register it with the gdbarch object.
7969
7970 2003-04-17 Richard Henderson <rth@redhat.com>
7971
7972 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7973
7974 2003-04-17 Michael Snyder <msnyder@redhat.com>
7975 Karen Bennet <bennet@redhat.com>
7976
7977 Committed by Elena Zannoni <ezannoni@redhat.com>
7978 * gdb_gcore.sh: New script to create a core dump of a process.
7979
7980 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7981
7982 * values.c (value_being_returned): Don't fetch the return
7983 value if the return type is void.
7984
7985 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7986
7987 * thread-db.c: Reindented.
7988
7989 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7990
7991 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7992 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7993 as types.
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8020
8021 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8022 the size of ``long double'' to 16, instead of 8.
8023
8024 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8025
8026 * i386-linux-nat.c: Add some whitespace to make things more
8027 readable.
8028 (fetch_register, store_register, fetch_inferior_registers,
8029 store_inferior_registers): Get rid of assignment in if-statement.
8030 (store_register): Fix typo in error message.
8031
8032 2003-04-16 Andrew Cagney <cagney@redhat.com>
8033
8034 * utils.c (xmmalloc): Always allocate something, matches
8035 libiberty/xmalloc's semantics.
8036 (xmrealloc, xmcalloc): Ditto.
8037
8038 2003-04-16 Andrew Cagney <cagney@redhat.com>
8039
8040 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8041 update comments.
8042 (get_frame_type): Initialize unwind and type when needed.
8043 (get_frame_id, frame_register_unwind): Ditto.
8044
8045 2003-04-16 Andrew Cagney <cagney@redhat.com>
8046
8047 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8048 obsolete.
8049 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8050 * sparcl-stub.c: Obsolete file.
8051 * config/sparc/tm-sparclet.h: Obsolete file.
8052 * sparclet-stub.c: Obsolete file.
8053 * sparclet-rom.c: Obsolete file.
8054 * sparcl-tdep.c: Obsolete file.
8055 * config/sparc/tm-sparclite.h: Obsolete file.
8056 * config/sparc/sparclite.mt: Obsolete file.
8057 * config/sparc/sparclet.mt: Obsolete file.
8058 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8059 sparc86x-*-* obsolete.
8060
8061 2003-04-15 David Carlton <carlton@math.stanford.edu>
8062
8063 * Makefile.in (SFILES): Add cp-namespace.c.
8064 (COMMON_OBS): Add cp-namespace.o.
8065 (block.o): Depend on gdb_obstack_h and cp_support_h.
8066 (buildsym.o): Depend on cp_support_h.
8067 (cp-namespace.o): New.
8068 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8069 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8070 (dwarf2read.o): Depend on cp_support_h.
8071 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8072 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8073 processing_current_namespace.
8074 (read_namespace): Update processing_current_namespace; check for
8075 anonymous namespaces.
8076 (dwarf2_name): New function.
8077 (dwarf2_extension): Ditto.
8078 * cp-support.h: Update copyright, contributors.
8079 Add inclusion guards.
8080 Add opaque declaration for structs obstack, block, symbol.
8081 (struct using_direct): New struct.
8082 Add declarations for cp_find_first_component,
8083 cp_entire_prefix_len, processing_has_namespace_info,
8084 processing_current_namespace, cp_is_anonymous,
8085 cp_add_using_directive, cp_initialize_namespace,
8086 cp_finalize_namespace, cp_set_block_scope,
8087 cp_scan_for_anonymous_namespaces.
8088 * cp-namespace.c: New file.
8089 * cp-support.c: Update copyright.
8090 Include ctype.h, gdb_assert.h, gdbcmd.h.
8091 New variable maint_cplus_cmd_list.
8092 (cp_find_first_component): New function.
8093 (cp_entire_prefix_len, maint_cplus_command)
8094 (first_component_command, _initialize_cp_support): Ditto.
8095 * buildsym.c: Include cp-support.h.
8096 New variable using_list.
8097 (add_symbol_to_list): Check for anonymous namespaces.
8098 (finish_block): Set block's scope.
8099 (start_symtab): Initialize C++ namespace support.
8100 (end_symtab): Finalize C++ namespace support.
8101 * block.h: Add opaque declarations for structs
8102 block_namespace_info, using_direct, and obstack.
8103 Add declarations for block_set_scope and block_set_using.
8104 (struct block): Add 'language_specific' member.
8105 (BLOCK_NAMESPACE): New macro.
8106 * block.c: Include gdb_obstack.h and cp-support.h.
8107 (struct block_namespace_info): New struct.
8108 (block_set_scope): New function.
8109 (block_set_using, block_initialize_namespace): Ditto.
8110
8111 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8112
8113 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8114 (locate_base): Return early if there aren't any link map offsets.
8115 (svr4_solib_create_inferior_hook): Warn if shared library support
8116 is unavailable.
8117
8118 2003-04-14 David Carlton <carlton@math.stanford.edu>
8119
8120 * symtab.c (symbol_set_names): Add prefix when storing Java names
8121 in hash table. Fix for PR java/1039.
8122
8123 2003-04-14 David Carlton <carlton@math.stanford.edu>
8124
8125 * symtab.c (symbol_set_names): Rename 'name' arg to
8126 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8127 * symtab.h: Change 'name' argument in declaration of
8128 symbol_set_names to 'linkage_name'.
8129 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8130
8131 2003-04-14 Andrew Cagney <cagney@redhat.com>
8132
8133 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8134 return the fully sign-extended register value.
8135 (get_frame_pointer): Ditto.
8136 (mips_pop_frame): Initialize "proc_desc" after checking for a
8137 dummy frame.
8138
8139 2003-04-14 Andrew Cagney <cagney@redhat.com>
8140
8141 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8142 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8143 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8144 (mips_push_register): Delete function.
8145 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8146 PUSH_FP_REGNUM.
8147
8148 2003-04-14 Jim Blandy <jimb@redhat.com>
8149
8150 * symmisc.c: #include "gdb_regex.h".
8151 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8152 functions.
8153 * maint.c (maintenance_list_command): New function.
8154 (_initialize_maint_cmds): Register the above as commands.
8155 * symtab.h (maintenance_list_symtabs,
8156 maintenance_list_psymtabs): New declarations.
8157 * cli/cli-cmds.c (maintenancelistlist): New variable.
8158 (init_cmd_lists): Initialize it.
8159 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8160 * gdbcmd.h (maintenancelistlist): New declaration.
8161 * Makefile.in (symmisc.o): Update dependencies.
8162
8163 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8164
8165 * s390-nat.c: Include asm/types.h for addr_t.
8166
8167 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8168
8169 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8170 actually incoming type.
8171
8172 2003-04-13 Andrew Cagney <cagney@redhat.com>
8173
8174 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8175 get_next_frame and get_frame_saved_regs.
8176
8177 2003-04-13 Andrew Cagney <cagney@redhat.com>
8178
8179 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8180 of gdbarch_num_regs.
8181
8182 2003-04-13 Andrew Cagney <cagney@redhat.com>
8183
8184 * frame.h: Mention what replaced what in "struct frame_info".
8185 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8186 deprecated_update_frame_base_hack and
8187 deprecated_update_frame_pc_hack.
8188 * hppa-tdep.c: Ditto.
8189
8190 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8191
8192 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8193 to read_reg and update its comment. Remove regnum member.
8194 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8195 Don't call read_reg when setting in_reg. Call read_reg to get
8196 the frame base if it's in a register. Return the register number
8197 on the stack instead of in the context. Remove extra arguments
8198 to read_reg.
8199 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8200 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8201 the register number on the expression stack.
8202 (needs_frame_read_reg): Remove extra arguments.
8203
8204 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8205
8206 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8207 made non-static.
8208 (execute_stack_op): All callers updated.
8209 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8210 * dwarf2loc.c (find_location_expression): New function.
8211 (dwarf_expr_frame_base): Call it.
8212 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8213 (dwarf2_tracepoint_var_ref): New function, broken out from
8214 locexpr_tracepoint_var_ref.
8215 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8216 Make static.
8217 (loclist_read_variable, loclist_read_needs_frame): New functions.
8218 (loclist_describe_location, loclist_tracepoint_var_ref): New
8219 functions.
8220 (dwarf2_loclist_funcs): New struct location_funcs.
8221 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8222 (struct dwarf2_locexpr_baton): Add comments.
8223 (dwarf2_loclist_funcs): New extern.
8224 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8225 base_address and base_known.
8226 (dwarf_loc_buffer): New variable.
8227 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8228 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8229 (dwarf2_has_info): Initialize dwarf_loc_offset.
8230 (dwarf2_build_psymtabs): Read in .debug_loc.
8231 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8232 DWARF_LOC_SIZE.
8233 (psymtab_to_symtab_1): Likewise. Move base address calculation
8234 here, from...
8235 (dwarf2_get_pc_bounds): ... here. Use the base address from
8236 cu_header.
8237 (dwarf2_symbol_mark_computed): Handle location lists.
8238
8239 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8240
8241 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8242 if the linkage name demangled successfully.
8243
8244 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8245
8246 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8247 disassmbly_flavour): Removed.
8248
8249 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8250
8251 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8252
8253 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8254
8255 2003-04-12 Andrew Cagney <cagney@redhat.com>
8256
8257 * frame.h (struct frame_info): Move definition from here ...
8258 * frame.c (struct frame_info): ... to here.
8259
8260 2003-04-12 Andrew Cagney <cagney@redhat.com>
8261
8262 * gdbthread.h (save_infrun_state): Delete parameter
8263 "prev_func_start".
8264 (struct thread_info): Delete field "prev_func_start".
8265 (load_infrun_state): Ditto.
8266 * thread.c (load_infrun_state, save_infrun_state): Update.
8267 * infrun.c (prev_func_start): Delete variable.
8268 (context_switch, init_wait_for_inferior): Update.
8269 (stop_stepping, keep_going): Update.
8270
8271 2003-04-12 Andrew Cagney <cagney@redhat.com>
8272
8273 * gdbarch.sh: Add missing opaque declarations.
8274 * gdbarch.h: Regnerate.
8275 * symtab.h: Add missing opaque declarations.
8276 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8277 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8278 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8279 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8280 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8281 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8282 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8283 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8284 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8285 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8286 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8287 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8288 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8289
8290 2003-04-11 Andrew Cagney <cagney@redhat.com>
8291
8292 * frame.c (get_frame_id): Return this frame's "id".
8293 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8294 function start.
8295 (legacy_saved_regs_this_id): Replace function body with
8296 internal-error.
8297 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8298 FRAME_OBSTACK_ZALLOC.
8299 (create_new_frame): Mark the frame ID as valid.
8300
8301 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8302
8303 * Makefile.in (libbfd_h): Added missing setting.
8304 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8305 according to the selected ABI.
8306
8307 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8308
8309 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8310
8311 2003-04-11 Andrew Cagney <cagney@redhat.com>
8312
8313 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8314 SAVED_PC_AFTER_CALL.
8315 * gdbarch.h, gdbarch.c: Regenerate.
8316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8317 * x86-64-tdep.c (x86_64_init_abi): Update.
8318 * vax-tdep.c (vax_gdbarch_init): Update.
8319 * v850-tdep.c (v850_gdbarch_init): Update.
8320 * sparc-tdep.c (sparc_gdbarch_init): Update.
8321 * sh-tdep.c (sh_gdbarch_init): Update.
8322 * s390-tdep.c (s390_gdbarch_init): Update.
8323 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8324 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8325 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8326 * mips-tdep.c (mips_gdbarch_init): Update.
8327 * mcore-tdep.c (mcore_gdbarch_init): Update.
8328 * m68k-tdep.c (m68k_gdbarch_init): Update.
8329 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8330 * ia64-tdep.c (ia64_gdbarch_init): Update.
8331 (ia64_saved_pc_after_call): Update declaration.
8332 * i386ly-tdep.c (i386lynx_init_abi): Update.
8333 * i386-tdep.c (i386_gdbarch_init): Update.
8334 * hppa-tdep.c (hppa_gdbarch_init): Update.
8335 * h8300-tdep.c (h8300_gdbarch_init): Update.
8336 * frv-tdep.c (frv_gdbarch_init): Update.
8337 * cris-tdep.c (cris_gdbarch_init): Update.
8338 * avr-tdep.c (avr_gdbarch_init): Update.
8339 * arm-tdep.c (arm_gdbarch_init): Update.
8340 * alpha-tdep.c (alpha_gdbarch_init): Update.
8341 * ns32knbsd-nat.c (frame_num_args): Update.
8342 * ns32k-tdep.c (umax_frame_num_args): Update.
8343 * mips-tdep.c (mips_init_frame_pc_first): Update.
8344 * infrun.c (step_over_function): Update.
8345 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8346 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8347 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8348 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8349 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8350 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8351 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8352 * arch-utils.c (init_frame_pc_default): Update.
8353 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8354 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8355 declaration.
8356
8357 2003-04-11 Andrew Cagney <cagney@redhat.com>
8358
8359 * i387-tdep.c: Update copyright.
8360 (i387_to_double): Delete function.
8361 (double_to_i387): Delete function.
8362
8363 2003-04-10 Andrew Cagney <cagney@redhat.com>
8364
8365 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8366 frame's function's address. Simplify.
8367 (d10v_frame_unwind_cache): Check that the frame's function is
8368 non-zero.
8369
8370 2003-04-10 Jim Blandy <jimb@redhat.com>
8371
8372 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8373 call to set_gdbarch_deprecated_push_arguments.
8374
8375 2003-04-10 Andrew Cagney <cagney@redhat.com>
8376
8377 * frame.c (fprint_frame_id): New function.
8378 (fprint_frame_type, fprint_frame): New function.
8379 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8380 (create_sentinel_frame, get_frame_id): Ditto.
8381 (frame_id_p, frame_id_eq): Ditto.
8382 (frame_id_inner, create_new_frame): Ditto.
8383 (legacy_get_prev_frame, get_prev_frame): Ditto.
8384 (deprecated_update_frame_pc_hack): Ditto.
8385 (frame_register_unwind): Ditto.
8386 (deprecated_update_frame_base_hack): Ditto.
8387
8388 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8389
8390 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8391 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8392 frame_chain function.
8393 * Makefile.in: Add dependencies due to above change.
8394
8395 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8396
8397 * blockframe.c (legacy_frame_chain_valid): Move call to
8398 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8399 inside_entry_file.
8400
8401 2003-04-09 Andrew Cagney <cagney@redhat.com>
8402
8403 * frame.h (struct frame_id): Replace "pc" and "base" with
8404 "stack_addr" and "code_addr". Update comments.
8405 (frame_id_build): Update parameter names and comment.
8406 (struct frame_info): Replace "id_p" and "id" with "this_id".
8407 * dummy-frame.c (dummy_frame_this_id): Update.
8408 * breakpoint.c (print_one_breakpoint): Update.
8409 * frame.c (get_frame_id): Update.
8410 (get_frame_base, frame_id_build): Update.
8411 (create_sentinel_frame, legacy_get_prev_frame): Update.
8412 (deprecated_update_frame_base_hack): Update.
8413 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8414 (frame_id_inner): Ditto.
8415
8416 2003-04-09 Andrew Cagney <cagney@redhat.com>
8417
8418 * defs.h (gdb_print_host_address): Make "addr" parameter a
8419 pointer constant.
8420 * utils.c (gdb_print_host_address): Update.
8421
8422 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8423
8424 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8425 register number for R0 is 0.
8426
8427 2003-04-09 J. Brobecker <brobecker@gnat.com>
8428
8429 * frame.h (struct gdbarch): Add opaque structure definition
8430 to avoid a compilation warning on LynxOS 4.0.
8431
8432 2003-04-09 Andrew Cagney <cagney@redhat.com>
8433
8434 * frame.h (struct frame_info): Delete field "pc". Replace
8435 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8436 structure.
8437 * frame.c (frame_pc_unwind): Update.
8438 (create_sentinel_frame): Do not set "pc".
8439 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8440 (get_frame_pc): Call frame_pc_unwind.
8441 (deprecated_update_frame_pc_hack): Update.
8442 (create_new_frame): Use "pc" not "->pc".
8443
8444 2003-04-09 Andrew Cagney <cagney@redhat.com>
8445
8446 * frame.c (get_frame_id): Eliminate code updating "frame".
8447 (legacy_get_prev_frame): Ditto.
8448 (get_frame_base): Return id.base directly.
8449 (deprecated_update_frame_base_hack): Update "id.base".
8450 * frame.h (struct frame_info): Delete field "frame".
8451
8452 2003-04-09 Andrew Cagney <cagney@redhat.com>
8453
8454 * NEWS: Mention that the "Sequent family" is obsolete.
8455 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8456 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8457 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8458 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8459 * config/i386/tm-ptx4.h: Obsolete file.
8460 * config/i386/tm-ptx.h: Obsolete file.
8461 * symm-tdep.c: Obsolete file.
8462 * config/i386/symmetry.mt: Obsolete file.
8463 * config/i386/tm-symmetry.h: Obsolete file.
8464 * symm-nat.c: Obsolete file.
8465 * config/i386/nm-symmetry.h: Obsolete file.
8466 * config/i386/xm-symmetry.h: Obsolete file.
8467 * config/i386/symmetry.mh: Obsolete file.
8468 * config/i386/nm-ptx4.h: Obsolete file.
8469 * config/i386/ptx4.mh: Obsolete file.
8470 * config/i386/ptx.mt: Obsolete file.
8471 * config/i386/ptx.mh: Obsolete file.
8472 * config/i386/xm-ptx4.h: Obsolete file.
8473 * config/i386/xm-ptx.h: Obsolete file.
8474
8475 2003-04-09 Andrew Cagney <cagney@redhat.com>
8476
8477 Obsolete mips*-*-mach3*.
8478 * NEWS: Mention that mips*-*-mach3* is obsolete.
8479 * m3-nat.c: Obsolete file.
8480 * config/nm-m3.h: Obsolete file.
8481 * config/mips/tm-mipsm3.h: Obsolete file.
8482 * config/mips/mipsm3.mt: Obsolete file.
8483 * config/mips/mipsm3.mh: Obsolete file.
8484 * config/mips/xm-mipsm3.h: Obsolete file.
8485 * mipsm3-nat.c: Obsolete file.
8486 * configure.host: Obsolete mips-dec-mach3*.
8487 * configure.tgt: Obsolete mips*-*-mach3*.
8488
8489 2003-04-09 Andrew Cagney <cagney@redhat.com>
8490
8491 * doublest.h: Update copyright.
8492 (deprecated_store_floating, deprecated_extract_floating): Rename
8493 store_floating and extract_floating. Update comments.
8494 * doublest.c: Update copyright.
8495 (extract_floating_by_length): Replace extract_floating.
8496 (store_floating_by_length): Replace store_floating.
8497 (deprecated_extract_floating): New function.
8498 (deprecated_store_floating): New function.
8499 (extract_typed_floating): Call extract_floating_by_length.
8500 (store_typed_floating): Call store_floating_by_length.
8501 * x86-64-tdep.c (x86_64_store_return_value): Update.
8502 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8503 (sh64_extract_return_value): Update.
8504 (sh_sh4_register_convert_to_virtual): Update.
8505 (sh_sh64_register_convert_to_virtual): Update.
8506 (sh_sh4_register_convert_to_raw): Update.
8507 (sh_sh64_register_convert_to_raw): Update.
8508 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8509 (rs6000_register_convert_to_raw): Update.
8510 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8511 (ia64_register_convert_to_raw): Update.
8512 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8513 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8514 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8515 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8516 (alpha_register_convert_to_raw): Update.
8517
8518 2003-04-08 Andrew Cagney <cagney@redhat.com>
8519
8520 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8521 * gdbarch.h, gdbarch.c: Re-generate.
8522 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8523 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8524 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8525 conditionally, use frame_pc_unwind as an alternative. Add
8526 comments.
8527 * arch-utils.c (init_frame_pc_default): Only call
8528 SAVED_PC_AFTER_CALL when available.
8529
8530 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8531
8532 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8533 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8534 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8535 (start_remote): Ditto.
8536 (handle_inferior_event): Ditto.
8537 (save_inferior_status): Ditto.
8538 (restore_inferior_status): Ditto.
8539 * infcmd.c (attach_command): Ditto.
8540 * fork-child.c (startup_inferior): Ditto.
8541 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8542 * alpha-tdep.c (heuristic_proc_start): Ditto.
8543 * mips-tdep.c (heuristic_proc_start): Ditto.
8544 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8545 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8546 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8547 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8548 * remote-vx.c (vx_create_inferior): Ditto.
8549
8550 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8551
8552 * infrun.c (stop_soon_quietly): Make it an enum, to better
8553 override the default behavior of handle_inferior_event.
8554 (clear_proceed_status): Update uses of stop_soon_quietly to
8555 reflect that it is now an enum.
8556 (start_remote): Ditto.
8557 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8558 is set to handle the new GNU/Linux kernel behavior for
8559 attach/sigstop. Update uses of stop_soon_quietly.
8560 * inferior.h (enum stop_kind): New enum.
8561 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8562 Reset normal handle_inferior_event behavior, afterwards.
8563 * fork-child.c (startup_inferior): Update.
8564 * alpha-tdep.c (heuristic_proc_start): Update.
8565 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8566 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8567 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8568 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8569 * remote-vx.c (vx_create_inferior): Update.
8570 * mips-tdep.c (heuristic_proc_start): Update.
8571
8572 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8573
8574 * disasm.c (dump_insns): Move variables inside loop, or they will
8575 be freed more than once, causing wild memory corruptions.
8576 (gdb_disassembly): Look for the substring "-thread",
8577 instead of "-threads" in the target name, to make sure to find
8578 the 'multi-thread' target. Also, make sure we do the right thing
8579 with the "core" target.
8580
8581 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8582
8583 * mips-tdep.c (mips_print_fp_register): New function, created from
8584 do_fp_register_row(). Registers are now (also) printed as hex.
8585 Only one register is printed per row.
8586 (mips_print_register, do_fp_register_row): Print floating point
8587 registers with mips_print_fp_register().
8588
8589 2003-04-06 Andrew Cagney <cagney@redhat.com>
8590
8591 * valprint.h (inspect_it): Add extern declaration.
8592 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8593 (selectors_info, classes_info): Ditto.
8594 (find_objc_msgcall): Fix indentation.
8595 (objc_printstr): Delete extern declarations.
8596
8597 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8598
8599 2003-04-06 Andrew Cagney <cagney@redhat.com>
8600
8601 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8602 Update comment.
8603 * frame.c (legacy_saved_regs_this_id): Update.
8604 (legacy_get_prev_frame): Update.
8605 * xstormy16-tdep.c: Update comment.
8606 * sparc-tdep.c (sparc_frame_chain): Update comment.
8607 * blockframe.c (legacy_frame_chain_valid): Update.
8608
8609 2003-04-06 Andrew Cagney <cagney@redhat.com>
8610
8611 * valprint.c (val_print_type_code_int): Delete #ifdef
8612 PRINT_TYPELESS_INTEGER code.
8613
8614 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8615 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8616 multi-arch definition.
8617 * gdbarch.h: Re-generate.
8618
8619 2003-04-05 Andrew Cagney <cagney@redhat.com>
8620
8621 Eliminate FRAME_FIND_SAVED_REGS.
8622 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8623 Change FSR parameter to a pointer.
8624 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8625 Assume FSR parameter is a pointer.
8626 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8627 Make fsr a pointer.
8628 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8629 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8630 saved_regs a pointer.
8631 (hppa_frame_saved_pc): Ditto.
8632 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8633 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8634 pointer.
8635 (restore_pc_queue): Make fsr a pointer.
8636 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8637 (hppa_frame_chain): Make saved_regs a pointer, call
8638 hppa_frame_init_saved_regs.
8639 * sparc-tdep.c: Include "gdb_assert.h".
8640 (sparc_frame_find_saved_regs): Replace internal_error with
8641 gdb_assert.
8642 * remote-vxsparc.c (vx_read_register): Delete reference to
8643 FRAME_FIND_SAVED_REGS.
8644 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8645 * gdbarch.h: Regenerate.
8646 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8647 (deprecated_get_frame_saved_regs): Delete declaration.
8648 (struct frame_saved_regs): Delete definition.
8649 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8650 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8651 (hppa_frame_find_saved_regs): Delete declaration.
8652 (FRAME_FIND_SAVED_REGS): Delete macro.
8653 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8654 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8655 FRAME_FIND_SAVED_REGS in comment.
8656
8657 2003-04-05 Andrew Cagney <cagney@redhat.com>
8658
8659 * frame.c (frame_func_unwind, get_frame_func): New functions.
8660 * frame.h (get_frame_func, frame_func_unwind): Declare.
8661 (struct frame_info): Add field "prev_func" for caching the
8662 previous frame's function address.
8663 * arm-tdep.c (arm_frameless_function_invocation): Combine
8664 get_pc_function_start and get_frame_pc into get_frame_func.
8665 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8666 (sh64_nofp_frame_init_saved_regs): Ditto.
8667 * s390-tdep.c (s390_function_start): Ditto.
8668 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8669 (rs6000_frameless_function_invocation): Ditto.
8670 (rs6000_frame_saved_pc): Ditto.
8671 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8672 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8673 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8674 (i386_frame_init_saved_regs): Ditto.
8675 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8676 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8677 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8678 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8679 * blockframe.c (frameless_look_for_prologue): Ditto.
8680
8681 2003-04-05 Andrew Cagney <cagney@redhat.com>
8682
8683 * frame.c (legacy_get_prev_frame): Link prev to next at the
8684 function start. Update comments.
8685
8686 2003-04-05 Andrew Cagney <cagney@redhat.com>
8687
8688 * frame.c (get_frame_id): Update comment.
8689 (legacy_get_prev_frame): Update comment.
8690 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8691 * gdbarch.h: Regenerate.
8692 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8693 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8694
8695 2003-04-05 Andrew Cagney <cagney@redhat.com>
8696
8697 * stack.c (print_frame_info): Use get_frame_pc.
8698
8699 2003-04-04 Andrew Cagney <cagney@redhat.com>
8700
8701 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8702 the frame's type from the unwinder.
8703 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8704 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8705 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8706 (get_frame_base_address): Use get_frame_type.
8707 (get_frame_locals_address, get_frame_args_address): Ditto.
8708 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8709 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8710 (struct frame_info): Add comment explaining why the frame contains
8711 a "type" field.
8712 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8713 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8714 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8715 NORMAL_FRAME.
8716 * frame-unwind.h: Include "frame.h".
8717 (struct frame_unwind): Add "type" field.
8718 * Makefile.in (frame_unwind_h): Add $(frame_h).
8719
8720 2003-04-04 Andrew Cagney <cagney@redhat.com>
8721
8722 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8723 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8724 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8725 get_frame_base.
8726 (d10v_unwind_dummy_id): Use frame_id_build.
8727 * frame.c (find_frame_sal): Use get_frame_pc.
8728 (create_new_frame): Use deprecated_update_frame_pc_hack and
8729 deprecated_update_frame_base_hack.
8730 (create_sentinel_frame): Add comment about ->pc going away.
8731 (get_prev_frame): Add comment about ->pc going away.
8732 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8733 frame_id_build, deprecated_update_frame_pc_hack and
8734 deprecated_update_frame_base_hack.
8735 (select_frame): Use get_frame_pc.
8736 (legacy_saved_regs_this_id): Use frame_id_build.
8737
8738 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8739
8740 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8741 signed integer case.
8742 (classify_argument): Handle enumerations and references.
8743
8744 2003-04-04 Andrew Cagney <cagney@redhat.com>
8745
8746 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8747 ID to NULL.
8748
8749 2003-04-01 Adam Fedor <fedor@gnu.org>
8750
8751 * gdb/objc-lang.c (selectors_info): Replace calls to
8752 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8753 SYMBOL_NATURAL_NAME.
8754 (classes_info, find_methods): Likewise.
8755
8756 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8757
8758 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8759 ``mach'' to the value determined by bfd_default_set_arch_mach().
8760
8761 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8762
8763 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8764 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8765 (mi-cmd-file.o): Update dependencies.
8766
8767 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8768
8769 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8770 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8771
8772 2003-04-01 Adam Fedor <fedor@gnu.org>
8773
8774 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8775 * language.h (struct language_defn): Add la_demangle.
8776 (language_demangle): Declare.
8777 * language.c (language_demangle): New function.
8778 (unk_lang_demangle): Likewise.
8779 (unknown_language_defn, auto_language_defn, local_language_defn):
8780 Add ukn_lang_demangle.
8781 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8782 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8783 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8784 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8785 * jv-lang.c (java_demangle): New function
8786 (java_language_defn): Use it for la_demangle element.
8787 * objc-lang.c (objc_demangle): Add options argument
8788 (objc_language_defn): Use objc_demangle for la_demangle element.
8789 * maint.c (maintenance_demangle): Replace switch with
8790 call to language_demangle.
8791 * utils.c (fprintf_symbol_filtered): Likewise.
8792
8793 2003-04-01 Andrew Cagney <cagney@redhat.com>
8794
8795 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8796 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8797 PRINT_TYPELESS_INTEGER.
8798 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8799 PUSH_RETURN_ADDRESS.
8800
8801 2003-04-01 Andrew Cagney <cagney@redhat.com>
8802
8803 * Makefile.in (d10v-tdep.o): Update dependencies.
8804 * d10v-tdep.c: Include "frame-base.h".
8805 (d10v_frame_unwind): Make constant.
8806 (d10v_frame_base_address): New function.
8807 (d10v_frame_base): New variable.
8808 (d10v_gdbarch_init): Set frame_base default.
8809 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8810 comment for base.
8811 (d10v_frame_unwind_cache): Set and use "prev_sp".
8812 (d10v_frame_this_id): Use the previous frame's inner most stack
8813 address and this frame's func address for the frame ID. Use
8814 frame_id_build. Don't analyze beyond the current instruction.
8815
8816 2003-04-01 Andrew Cagney <cagney@redhat.com>
8817
8818 * frame.h (get_frame_locals_address, get_frame_args_address):
8819 Refer to the base address, instead of the address of the first
8820 local or parameter.
8821
8822 2003-04-01 Andrew Cagney <cagney@redhat.com>
8823
8824 Add frame debug info addresses:
8825 * frame-base.c: New file.
8826 * frame-base.h: New file.
8827 * frame.h (struct frame_base): Add opaque declaration.
8828 (get_frame_base): Update comment.
8829 (get_frame_base_address): Declare.
8830 (get_frame_locals_address): Declare.
8831 (get_frame_args_address): Declare.
8832 (struct frame_info): Add "base" and "base_cache". Update
8833 comments on the unwinder.
8834 * frame.c: Include "frame-base.h".
8835 (get_frame_locals_address): New function.
8836 (get_frame_base_address): New function.
8837 (get_frame_args_address): New function.
8838 * findvar.c (read_var_value): Use get_frame_locals_address and
8839 get_frame_args_address.
8840 * stack.c (frame_info): Use get_frame_locals_address and
8841 get_frame_args_address.
8842 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8843 moved to "frame-base.c".
8844 * printcmd.c (print_frame_nameless_args): Ditto.
8845 * symtab.h (address_class): Update comments.
8846 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8847 get_frame_base_address.
8848 * dwarf2expr.c (execute_stack_op): Ditto.
8849 * Makefile.in (frame_base_h): Define.
8850 (frame.o): Update dependencies.
8851 (frame-base.o): Add dependencies.
8852 (SFILES): Add frame-base.c.
8853 (COMMON_OBS): Add frame-base.o.
8854
8855 2003-04-01 Andrew Cagney <cagney@redhat.com>
8856
8857 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8858 CALL_DUMMY_LENGTH): Ditto.
8859 * gdbarch.c: Re-generate.
8860 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8861 (CALL_DUMMY_LENGTH): Delete macro.
8862 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8863 * arm-tdep.c (arm_gdbarch_init): Ditto.
8864 * avr-tdep.c (avr_gdbarch_init): Ditto.
8865 * cris-tdep.c (cris_gdbarch_init): Ditto.
8866 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8867 * frv-tdep.c (frv_gdbarch_init): Ditto.
8868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8869 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8870 * i386-tdep.c (i386_gdbarch_init): Ditto.
8871 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8872 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8873 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8874 * mips-tdep.c (mips_gdbarch_init): Ditto.
8875 * mn10300-tdep.c (mn10300_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 Corinna Vinschen <vinschen@redhat.com>
8885
8886 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8887
8888 2003-04-01 Andrew Cagney <cagney@redhat.com>
8889
8890 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8891 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8892 * gdbarch.h, gdbarch.c: Re-generate.
8893 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8894 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8895 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8896 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8897 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8898 * infcmd.c (run_stack_dummy): Simplify assuming
8899 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8900 * infrun.c (handle_inferior_event): Ditto.
8901 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8902 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8903 * arm-tdep.c (arm_gdbarch_init): Ditto.
8904 * avr-tdep.c (avr_gdbarch_init): Ditto.
8905 * cris-tdep.c (cris_gdbarch_init): Ditto.
8906 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8907 * frv-tdep.c (frv_gdbarch_init): Ditto.
8908 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8909 * i386-tdep.c (i386_gdbarch_init): Ditto.
8910 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8911 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8912 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8913 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8914 * mips-tdep.c (mips_gdbarch_init): Ditto.
8915 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8916 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8917 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8918 * s390-tdep.c (s390_gdbarch_init): Ditto.
8919 * sh-tdep.c (sh_gdbarch_init): Ditto.
8920 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8921 * v850-tdep.c (v850_gdbarch_init): Ditto.
8922 * vax-tdep.c (vax_gdbarch_init): Ditto.
8923 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8924
8925 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8926
8927 * symfile.c (symfile_relocate_debug_section): Update call to
8928 bfd_simple_get_relocated_section_contents.
8929
8930 2003-03-31 Andrew Cagney <cagney@redhat.com>
8931
8932 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8933 * gdbarch.h, gdbarch.c: Regenerate.
8934 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8935 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8936 available.
8937 * frame.h (generic_fix_call_dummy): Delete declaration.
8938 * dummy-frame.h: Update comment.
8939 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8941 fix_call_dummy.
8942 * sh-tdep.c (sh_gdbarch_init): Ditto.
8943 * s390-tdep.c (s390_gdbarch_init): Ditto.
8944 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8945 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8947 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8948 * i386-tdep.c (i386_gdbarch_init): Ditto.
8949 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8950 * frv-tdep.c (frv_gdbarch_init): Ditto.
8951 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8952 * cris-tdep.c (cris_gdbarch_init): Ditto.
8953 * avr-tdep.c (avr_gdbarch_init): Ditto.
8954 * arm-tdep.c (arm_gdbarch_init): Ditto.
8955
8956 2003-03-31 J. Brobecker <brobecker@gnat.com>
8957
8958 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8959 (INIT_FRAME_AP): Likewise.
8960 (EXTRA_FRAME_INFO): Likewise.
8961
8962 2003-03-31 Andrew Cagney <cagney@redhat.com>
8963
8964 * gdbarch.sh: Include "symfile.h".
8965 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8966 * gdbarch.h, gdbarch.c: Re-generate.
8967 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8969 call_dummy_address, the default is at entry_point_address.
8970 * v850-tdep.c (v850_gdbarch_init): Ditto.
8971 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8972 * sh-tdep.c (sh_gdbarch_init): Ditto.
8973 * s390-tdep.c (s390_gdbarch_init): Ditto.
8974 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8975 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8976 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8977 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8978 * i386-tdep.c (i386_gdbarch_init): Ditto.
8979 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8980 * frv-tdep.c (frv_gdbarch_init): Ditto.
8981 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8982 * cris-tdep.c (cris_gdbarch_init): Ditto.
8983 * arm-tdep.c (arm_gdbarch_init): Ditto.
8984
8985 2003-03-31 Andrew Cagney <cagney@redhat.com>
8986
8987 * gdbarch.sh (CALL_DUMMY_P): Delete.
8988 * gdbarch.h, gdbarch.c: Re-generate.
8989 * inferior.h (CALL_DUMMY_P): Delete macro.
8990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8991 * vax-tdep.c (vax_gdbarch_init): Update.
8992 * v850-tdep.c (v850_gdbarch_init): Update.
8993 * sparc-tdep.c (sparc_gdbarch_init): Update.
8994 * sh-tdep.c (sh_gdbarch_init): Update.
8995 * s390-tdep.c (s390_gdbarch_init): Update.
8996 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8997 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8998 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8999 * mips-tdep.c (mips_gdbarch_init): Update.
9000 * mcore-tdep.c (mcore_gdbarch_init): Update.
9001 * m68k-tdep.c (m68k_gdbarch_init): Update.
9002 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9003 * ia64-tdep.c (ia64_gdbarch_init): Update.
9004 * i386-tdep.c (i386_gdbarch_init): Update.
9005 * h8300-tdep.c (h8300_gdbarch_init): Update.
9006 * frv-tdep.c (frv_gdbarch_init): Update.
9007 * d10v-tdep.c (d10v_gdbarch_init): Update.
9008 * cris-tdep.c (cris_gdbarch_init): Update.
9009 * breakpoint.c (deprecated_frame_in_dummy): Update.
9010 * avr-tdep.c (avr_gdbarch_init): Update.
9011 * alpha-tdep.c (alpha_gdbarch_init): Update.
9012 * arm-tdep.c (arm_gdbarch_init): Update.
9013 * dummy-frame.c (dummy_frame_this_id): Update comments.
9014 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9015 * frame.c (legacy_get_prev_frame): Ditto.
9016 * valops.c (call_function_by_hand): Delete function.
9017 (hand_function_call): Rename to call_function_by_hand
9018
9019 2003-03-30 Andrew Cagney <cagney@redhat.com>
9020
9021 2002-11-10 Klee Dienes <kdienes@apple.com>
9022 * value.h (struct value): Update comment.
9023
9024 2003-03-30 Andrew Cagney <cagney@redhat.com>
9025
9026 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9027 D10V_FP_REGNUM.
9028 (d10v_gdbarch_init): Do not set fp_regnum.
9029
9030 * frame.c (get_frame_base): Force ID initialization.
9031 (get_prev_frame): Move computation of the frame ID from here ...
9032 (get_frame_id): ... to here.
9033 (legacy_get_prev_frame): Mark the frame ID as valid.
9034 * frame.h (struct frame_info): Add field "id_p".
9035
9036 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9037
9038 * i386-tdep.c (i386_store_struct_return): Removed.
9039 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9040
9041 2003-03-30 Andrew Cagney <cagney@redhat.com>
9042
9043 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9044 * gdbarch.h, gdbarch.c: Regenerate.
9045 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9047 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9048 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9049 * i386-tdep.c (i386_gdbarch_init): Ditto.
9050 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9051 * cris-tdep.c (cris_gdbarch_init): Ditto.
9052 * vax-tdep.c (vax_gdbarch_init): Ditto.
9053 * s390-tdep.c (s390_gdbarch_init): Ditto.
9054 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9055 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9056 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9057 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9058 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9059 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9060 * sparc-tdep.c (sparc_gdbarch_init): Update.
9061 * sh-tdep.c (sh_gdbarch_init): Update.
9062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9063 * mips-tdep.c (mips_gdbarch_init): Update.
9064 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9065 * ia64-tdep.c (ia64_gdbarch_init): Update.
9066 * frv-tdep.c (frv_gdbarch_init): Update.
9067 * avr-tdep.c (avr_gdbarch_init): Update.
9068 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9069 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9070 instead of when push_dummy_call is not available.
9071
9072 2003-03-30 Andrew Cagney <cagney@redhat.com>
9073
9074 * infttrace.c: Include "gdbthread.h".
9075 (parent_attach_all): Fix function signature.
9076 (call_ptrace): Update call.
9077 * Makefile.in (infttrace.o): Update dependencies.
9078
9079 2003-03-30 Andrew Cagney <cagney@redhat.com>
9080
9081 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9082 PUSH_RETURN_ADDRESS.
9083 * gdbarch.h, gdbarch.c: Regenerate.
9084 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9085 * x86-64-tdep.c (x86_64_init_abi): Update.
9086 * v850-tdep.c (v850_gdbarch_init): Update.
9087 * sparc-tdep.c (sparc_gdbarch_init): Update.
9088 * sh-tdep.c (sh_gdbarch_init): Update.
9089 * s390-tdep.c (s390_gdbarch_init): Update.
9090 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9091 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9092 * mips-tdep.c (mips_gdbarch_init): Update.
9093 * mcore-tdep.c (mcore_gdbarch_init): Update.
9094 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9095 * ia64-tdep.c (ia64_gdbarch_init): Update.
9096 * i386-tdep.c (i386_gdbarch_init): Update.
9097 * h8300-tdep.c (h8300_gdbarch_init): Update.
9098 * frv-tdep.c (frv_gdbarch_init): Update.
9099 * cris-tdep.c (cris_gdbarch_init): Update.
9100 * avr-tdep.c (avr_gdbarch_init): Update.
9101 * arm-tdep.c (arm_gdbarch_init): Update.
9102 * valops.c (hand_function_call): Update.
9103
9104 2003-03-29 Andrew Cagney <cagney@redhat.com>
9105
9106 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9107 sizeof_call_dummy_words.
9108 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9109 define.
9110 * gdbarch.h: Regenerate.
9111
9112 2003-03-29 Andrew Cagney <cagney@redhat.com>
9113
9114 * infttrace.h: New file.
9115 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9116 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9117 (hpread_read_doc_function_type): Detect an initialized type1.
9118 (hpread_quick_traverse): Initialize mod_name_string.
9119 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9120 (som_solib_get_solib_by_pc): Declare.
9121 (so_lib_thread_start_addr): Declare.
9122 (no_shared_libraries): Declare.
9123 * somread.c (init_import_symbols): Make static. Add forward
9124 declaration.
9125 * config/pa/nm-hppah.h: Include "infttrace.h" for
9126 parent_attach_all.
9127 (hppa_insert_hw_watchpoint): Declare.
9128 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9129 * hppah-nat.c: Include "gdb_string.h".
9130 (parent_attach_all): Delete extern declaration, moved to
9131 "infttrace.h".
9132 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9133 int.
9134 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9135 * Makefile.in (infttrace_h): Define.
9136 (hpread.o): Update dependencies.
9137 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9138 * hppa-hpux-tdep.c: Include "gdb_string.h".
9139 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9140 * infrun.c (handle_inferior_event): Always initialize
9141 stepped_after_stopped_by_watchpoint. Add default and remove
9142 fallthrough in switch statement.
9143 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9144 parameter to int.
9145 (hppa_remove_hw_watchpoint): Ditto.
9146
9147 2003-03-29 Andrew Cagney <cagney@redhat.com>
9148
9149 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9150 offset.
9151
9152 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9153
9154 * arm-tdep.c (arm_push_arguments): Delete.
9155 (struct stack_item): New type.
9156 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9157 (arm_store_struct_return): Delte.
9158 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9159 arm_push_arguments or arm_store_struct_return.
9160
9161 2003-03-28 Andrew Cagney <cagney@redhat.com>
9162
9163 * Makefile.in (d10v-tdep.o): Update dependencies.
9164 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9165 * d10v-tdep.c: Include "remote.h".
9166 (target_resume_hook): Delete extern declaration.
9167 (target_wait_loop_hook): Ditto.
9168 (tdisassemble_command): Eliminate assignment in "if" conditional.
9169 (d10v_ts2_register_sim_regno): Eliminate call to
9170 legacy_register_sim_regno.
9171 (d10v_ts3_register_sim_regno): Ditto.
9172
9173 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9174
9175 * thread.c: Reindented.
9176 * lin-lwp.c: Ditto.
9177 * linux-proc.c: Ditto.
9178
9179 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9180
9181 * MAINTAINERS (write after approval): Add myself.
9182
9183 2003-03-27 Theodore A. Roth <troth@openavr.org>
9184
9185 * objc-exp.y: Add missing semi-colons.
9186
9187 2003-03-27 Andrew Cagney <cagney@redhat.com>
9188
9189 * regcache.c (write_sp): Delete function and references.
9190 * inferior.h (write_sp): Delete declaration.
9191 * valops.c (hand_function_call): Replace write_sp with
9192 TARGET_WRITE_SP.
9193 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9194 (sparc_pop_frame): Ditto.
9195
9196 2003-03-27 Andrew Cagney <cagney@redhat.com>
9197
9198 * NEWS: Mention removal of support for hppa*-*-bsd* and
9199 hppa*-*-osf* natives, and hppa*-*-pro* target.
9200 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9201 * config/pa/xm-pa.h: Obsolete file.
9202 * config/pa/xm-hppab.h: Obsolete file.
9203 * config/pa/nm-hppab.h: Obsolete file.
9204 * config/pa/tm-hppab.h: Obsolete file.
9205 * config/pa/tm-hppao.h: Obsolete file.
9206 * config/pa/nm-hppao.h: Obsolete file.
9207 * config/pa/tm-pro.h: Obsolete file.
9208 * config/pa/hppaosf.mt: Obsolete file.
9209 * config/pa/hppaosf.mh: Obsolete file.
9210 * config/pa/hppapro.mt: Obsolete file.
9211 * config/pa/hppabsd.mt: Obsolete file.
9212 * config/pa/hppabsd.mh: Obsolete file.
9213 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9214 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9215 hppa*-*-osf*.
9216
9217 2003-03-27 Andrew Cagney <cagney@redhat.com>
9218
9219 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9220 push_arguments. Don't set push_return_address or write_sp.
9221 (d10v_push_dummy_call): Replace d10v_push_arguments.
9222 (d10v_push_return_address, d10v_write_sp): Delete function,
9223 handled by push_dummy_call.
9224
9225 2003-03-26 Andrew Cagney <cagney@redhat.com>
9226
9227 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9228 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9229 regcache and dummy_addr parameters.
9230 * gdbarch.h, gdbarch.c: Re-generate.
9231 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9232 available; assume it will handle stack alignment and return
9233 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9234 legacy_push_arguments.
9235 (legacy_push_arguments): Rename default_push_arguments.
9236 * value.h (legacy_push_arguments): Rename default_push_arguments.
9237 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9238 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9239 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9240 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9241 * config/i386/tm-symmetry.h: Update.
9242 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9243 * x86-64-tdep.c (x86_64_init_abi): Update.
9244 * v850-tdep.c (v850_gdbarch_init): Update.
9245 * sparc-tdep.c (sparc_gdbarch_init): Update.
9246 * sh-tdep.c (sh_gdbarch_init): Update.
9247 * s390-tdep.c (s390_gdbarch_init): Update.
9248 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9249 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9250 * mips-tdep.c (mips_gdbarch_init): Update.
9251 * mcore-tdep.c (mcore_gdbarch_init): Update.
9252 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9253 * ia64-tdep.c (ia64_gdbarch_init): Update.
9254 * i386-tdep.c (i386_gdbarch_init): Update.
9255 * hppa-tdep.c (hppa_gdbarch_init): Update.
9256 * h8300-tdep.c (h8300_gdbarch_init): Update.
9257 * frv-tdep.c (frv_gdbarch_init): Update.
9258 * d10v-tdep.c (d10v_gdbarch_init): Update.
9259 * cris-tdep.c (cris_gdbarch_init): Update.
9260 * avr-tdep.c (avr_gdbarch_init): Update.
9261 * arm-tdep.c (arm_gdbarch_init): Update.
9262 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9263 * alpha-tdep.c (alpha_gdbarch_init): Update.
9264
9265 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9266
9267 * signals/signals.c (do_target_signal_to_host): Correct realtime
9268 signal range test.
9269
9270 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9271
9272 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9273 (struct sal_chain, map_catch_names): Remove.
9274 (catch_exception_command_1): Don't call
9275 handle_gnu_4_16_catch_command.
9276
9277 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9278
9279 From Mark Dettinger <dettinge@de.ibm.com>:
9280 * dwarf2cfi.c (read_2u): Increment pointer by two.
9281
9282 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9283
9284 * signals/signals.c: Fix typos in last change.
9285
9286 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9287
9288 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9289 not already defined. Use __SIGRTMIN if available.
9290 (target_signal_from_host): Remove SIGRTMIN block.
9291 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9292 the signal is within the realtime range.
9293
9294 2003-03-25 Adam Fedor <fedor@gnu.org>
9295
9296 * Makefile.in (infrun.o): Add $(language_h)
9297 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9298 for language specific trampolines.
9299 * language.h (struct language_defn): Add skip_trampoline.
9300 (skip_language_trampoline): Declare.
9301 * language.c (unk_lang_trampoline, skip_language_trampoline):
9302 New functions.
9303 (unknown_language_defn, auto_language_defn, local_language_defn):
9304 Add ukn_lang_trampoline.
9305 * ada-lang.c (ada_language_defn): Add NULL for language
9306 specific skip_trampoline.
9307 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9308 scm-lang.c: Likewise.
9309 * objc-lang.c (objc_skip_trampoline): New function.
9310 (objc_language_defn): Add objc_skip_trampoline.
9311
9312 2003-03-25 Andrew Cagney <cagney@redhat.com>
9313
9314 * frame.c (get_prev_frame): Delay validating a frame's ID -
9315 non-NULL, didn't go backwards - until an attempt to unwind it to
9316 the previous frame.
9317
9318 2003-03-25 Andrew Cagney <cagney@redhat.com>
9319
9320 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9321 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9322 * gdbarch.h, gdbarch.c: Re-generate.
9323 * config/sparc/tm-sparc.h
9324 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9325 * sparc-tdep.c (sparc_gdbarch_init): Set
9326 deprecated_extra_stack_alignment_needed.
9327 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9329 extra_stack_alignment_needed.
9330 * v850-tdep.c (v850_gdbarch_init): Ditto.
9331 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9332 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9333 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9334 * cris-tdep.c (cris_gdbarch_init): Ditto.
9335 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9337
9338 2003-03-25 Andrew Cagney <cagney@redhat.com>
9339
9340 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9341 STORE_STRUCT_RETURN.
9342 * gdbarch.h, gdbarch.c: Regenerate.
9343 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9344 (d10v_push_arguments): Set the struct return register.
9345 (d10v_gdbarch_init): Update.
9346 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9347 * x86-64-tdep.c (x86_64_init_abi): Update.
9348 * vax-tdep.c (vax_gdbarch_init): Update.
9349 * v850-tdep.c (v850_gdbarch_init): Update.
9350 * sparc-tdep.c (sparc_gdbarch_init): Update.
9351 * sh-tdep.c (sh_gdbarch_init): Update.
9352 * s390-tdep.c (s390_gdbarch_init): Update.
9353 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9354 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9355 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9356 * mips-tdep.c (mips_gdbarch_init): Update.
9357 * mcore-tdep.c (mcore_gdbarch_init): Update.
9358 * m68k-tdep.c (m68k_gdbarch_init): Update.
9359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9360 * ia64-tdep.c (ia64_gdbarch_init): Update.
9361 * i386-tdep.c (i386_gdbarch_init): Update.
9362 * hppa-tdep.c (hppa_gdbarch_init): Update.
9363 * h8300-tdep.c (h8300_gdbarch_init): Update.
9364 * frv-tdep.c (frv_gdbarch_init): Update.
9365 * cris-tdep.c (cris_gdbarch_init): Update.
9366 * avr-tdep.c (avr_gdbarch_init): Update.
9367 * arm-tdep.c (arm_gdbarch_init): Update.
9368 * alpha-tdep.c (alpha_gdbarch_init): Update.
9369
9370 2003-03-25 Andrew Cagney <cagney@redhat.com>
9371
9372 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9373 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9374 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9375 * gdbarch.h, gdbarch.c: Regenerate.
9376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9377 call_dummy_stack_adjust_p.
9378 * vax-tdep.c (vax_gdbarch_init): Ditto.
9379 * v850-tdep.c (v850_gdbarch_init): Ditto.
9380 * sh-tdep.c (sh_gdbarch_init): Ditto.
9381 * s390-tdep.c (s390_gdbarch_init): Ditto.
9382 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9383 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9384 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9385 * mips-tdep.c (mips_gdbarch_init): Ditto.
9386 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9387 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9389 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9390 * i386-tdep.c (i386_gdbarch_init): Ditto.
9391 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9392 * frv-tdep.c (frv_gdbarch_init): Ditto.
9393 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9394 * cris-tdep.c (cris_gdbarch_init): Ditto.
9395 * avr-tdep.c (avr_gdbarch_init): Ditto.
9396 * arm-tdep.c (arm_gdbarch_init): Ditto.
9397 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9398 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9399 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9400 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9401 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9402 call_dummy_stack_adjust_p.
9403 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9404 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9405 * sparc-tdep.c (sparc32_push_arguments): Update.
9406 * valops.c (hand_function_call): Update.
9407
9408 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9409
9410 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9411 set_gdbarch_char_signed.
9412
9413 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9414
9415 PR cli/548
9416 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9417
9418 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9419
9420 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9421 (_initialize_arm_tdep): Don't set tm_print_insn.
9422
9423 2003-03-24 Adam Fedor <fedor@gnu.org>
9424
9425 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9426 * objc-lang.h: Add multiple inclusion protection.
9427 (start_msglist, add_msglist, end_msglist): Additional declarations.
9428
9429 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9430
9431 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9432 value was renamed to ARM_FLOAT_SOFT_FPA.
9433
9434 2003-03-23 Andrew Cagney <cagney@redhat.com>
9435
9436 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9437 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9438 * gdbarch.h, gdbarch.c: Regenerate.
9439 * valops.c (hand_function_call): Update.
9440 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9441 * frame.c (legacy_saved_regs_this_id): Update.
9442 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9443 * dummy-frame.h: Update.
9444 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9445 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9446 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9447 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9448 * config/m68k/tm-sun3.h: Update.
9449 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9450 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9451 * x86-64-tdep.c (x86_64_init_abi): Update.
9452 * vax-tdep.c (vax_gdbarch_init): Update.
9453 * v850-tdep.c (v850_gdbarch_init): Update.
9454 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9455 * sh-tdep.c (sh_gdbarch_init): Update.
9456 * s390-tdep.c (s390_gdbarch_init): Update.
9457 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9458 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9459 (frame_get_saved_regs): Update.
9460 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9461 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9462 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9463 * mips-tdep.c (mips_gdbarch_init): Update.
9464 * mcore-tdep.c (mcore_gdbarch_init): Update.
9465 * m68k-tdep.c (m68k_gdbarch_init): Update.
9466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9467 * ia64-tdep.c (ia64_gdbarch_init): Update.
9468 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9469 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9470 (i386_interix_back_one_frame): Update.
9471 * hppa-tdep.c (hppa_gdbarch_init): Update.
9472 (hppa_init_extra_frame_info): Update.
9473 * h8300-tdep.c (h8300_gdbarch_init): Update.
9474 * frv-tdep.c (frv_gdbarch_init): Update.
9475 * cris-tdep.c (cris_gdbarch_init): Update.
9476 * avr-tdep.c (avr_gdbarch_init): Update.
9477 * arm-tdep.c (arm_gdbarch_init): Update.
9478 * alpha-tdep.c (alpha_gdbarch_init): Update.
9479
9480 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9481
9482 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9483 (arm_get_fp_model): Declare.
9484 * arm-tdep.c (fp_model_strings): New string array.
9485 (arm_fp_model, current_fp_model): New variables.
9486 (arm_get_fp_model): New function.
9487 (arm_set_fp): New function.
9488 (set_fp_model_sfunc): New function.
9489 (show_fp_model): New function.
9490 (_initialize_arm_tdep): Add new command to set/show the FPU.
9491 (arm_extract_return_value): Use arm_get_fp_model.
9492 (arm_store_return_value): Likewise.
9493 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9494 to initialize the floating-point data types.
9495 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9496 model is FPA.
9497
9498 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9499
9500 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9501 the current setting of each value.
9502 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9503 new_set and new_show. Use add_setshow_cmd_full and
9504 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9505 commands and add new version as subcommands of "set/show arm".
9506
9507 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9508
9509 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9510 (set_arm_command, show_arm_command): New functions.
9511 (_initialize_arm_tdep): Add them.
9512 (num_disassembly_options): Renamed from num_flavor_options.
9513 (valid_disassembly_styles): Renamed from valid_flavors.
9514 (disassembly_style): Renamed from disassembly_flavor.
9515 (set_disassembly_style_sfunc): Renamed from
9516 set_disassembly_flavor_sfunc.
9517 (set_disassembly_style): Renamed from set_disassembly_flavor.
9518 (arm_othernames): Updated.
9519 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9520 command. Add "set/show arm disassembly" commands. Deprecate
9521 "othernames" command.
9522
9523 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9524
9525 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9526 (arm-tdep.o): Depend on elf_arm_h.
9527
9528 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9529
9530 * Makefile.in (coff_internal_h): Define.
9531 (arm-tdep.o): Update dependencies.
9532
9533 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9534
9535 * arm-tdep.c (prologue_cache): Delete.
9536 (check_prologue_cache, save_prologue_cache): Delete.
9537 (arm_scan_prologue): Don't check or update the prologue_cache.
9538 (arm_gdb_arch_init): Don't initialize it.
9539 (_initialize_arm_tdep): Likewise.
9540
9541 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9542
9543 * MAINTAINERS (tui): Maintainer of tui code.
9544
9545 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9546
9547 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9548 (i386-cygwin-tdep.o): Add dependencies.
9549 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9550 * i386-cygwin-tdep.c: New file.
9551 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9552 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9553
9554 2003-03-20 Andrew Cagney <cagney@redhat.com>
9555
9556 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9557 (handle_inferior_event): Remove code calling
9558 DYNAMIC_TRAMPOLINE_NEXTPC.
9559
9560 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9561 already has a full path.
9562
9563 * main.c (gdb_main): Return 1.
9564 (captured_main): Call error to report an invalid interpreter.
9565
9566 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9567 * alpha-osf1-tdep.c: Include "gdb_string.h".
9568
9569 2003-03-19 J. Brobecker <brobecker@gnat.com>
9570
9571 Continuing work to convert the hppa targets to multiarch partial.
9572
9573 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9574 method, now that hppa_push_dummy_frame has a conformant prototype.
9575 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9576 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9577 for the switch to multiarch partial.
9578
9579 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9580
9581 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9582 when iss is issNull.
9583
9584 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9585
9586 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9587 NUM_REGS bounds check.
9588
9589 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9590
9591 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9592 * mips-tdep.c (gdb_assert.h): Include.
9593 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9594 (mips_register_name): Handle integer registers explicitly. Add
9595 bounds checking.
9596 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9597 (mips_lsi33k_reg_names): Don't list integer registers; they're
9598 handled by mips_register_name() now.
9599 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9600 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9601 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9602 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9603 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9604
9605 2003-03-18 Andrew Cagney <cagney@redhat.com>
9606
9607 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9608 a void pointer.
9609 * gdbtypes.h (print_scalar_formatted): Update declaration.
9610 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9611
9612 2003-03-18 J. Brobecker <brobecker@gnat.com>
9613
9614 * infrun.c (observer.h): Add #include.
9615 (normal_stop): Add call to observer_notify_normal_stop.
9616 * Makefile.in (infrun.o): Add dependency on observer.h.
9617
9618 2003-03-18 J. Brobecker <brobecker@gnat.com>
9619
9620 Continuing work to convert the hppa targets to multiarch partial.
9621 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9622 parameter. Reformat comment.
9623 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9624 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9625 to match new profile.
9626
9627 2003-03-18 J. Brobecker <brobecker@gnat.com>
9628
9629 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9630 appear to be working in any case.
9631
9632 2003-03-18 J. Brobecker <brobecker@gnat.com>
9633
9634 * observer.c (observer_test_first_observer): New static variable.
9635 (observer_test_second_observer): Likewise.
9636 (observer_test_third_observer): Likewise.
9637 (observer_test_first_notification_function): New static function.
9638 (observer_test_second_notification_function): Likewise.
9639 (observer_test_third_notification_function): Likewise.
9640
9641 2003-03-17 J. Brobecker <brobecker@gnat.com>
9642
9643 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9644 * somsolib.c (gdb_assert.h): Likewise.
9645 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9646 (somsolib.o): Likewise.
9647
9648 2003-03-17 Andrew Cagney <cagney@redhat.com>
9649
9650 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9651 BFD. Simplify setting of di.endian.
9652
9653 2003-03-17 Andrew Cagney <cagney@redhat.com>
9654
9655 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9656 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9657
9658 From Elena Zannoni <ezannoni@redhat.com>
9659 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9660 vector and floating-point parameters.
9661 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9662 convention.
9663 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9664
9665 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9666
9667 * MAINTAINERS: Remove my name from several maintainership roles.
9668
9669 2003-03-17 Andrew Cagney <cagney@redhat.com>
9670
9671 Fix frame off-by-one bug.
9672 * frame-unwind.h (frame_this_id_ftype): Replace
9673 frame_unwind_id_ftype.
9674 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9675 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9676 with "prev_register".
9677 * frame-unwind.c (frame_unwind_find_by_pc): Return
9678 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9679 comment.
9680 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9681 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9682 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9683 (dummy_frame_unwind): Update.
9684 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9685 sentinel_frame_register_unwind.
9686 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9687 (sentinel_frame_unwinder): Update.
9688 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9689 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9690 * frame.c (create_sentinel_frame): Update. Initialize
9691 "prologue_cache" instead of "unwind_cache".
9692 (frame_register_unwind): Call this frame's prev_register with the
9693 next frame and this frame's prologue cache.
9694 (get_prev_frame): Simplify. Always call prev frame's this_id with
9695 this frame and prev frame's prologue cache. Document that this
9696 call is shifted one to the left when compared to the
9697 frame_register_unwind call.
9698 (legacy_saved_regs_prev_register): Replace
9699 frame_saved_regs_register_unwind.
9700 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9701 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9702 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9703 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9704 (d10v_frame_unwind): Update.
9705 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9706 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9707 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9708 "saved_regs" with "this_saved_regs".
9709
9710 2003-03-16 Andrew Cagney <cagney@redhat.com>
9711
9712 * frame.c (frame_pop): Don't call target_store_registers. Fix
9713 problem reported by Mark Kettenis.
9714
9715 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9716
9717 * i386-tdep.c (i386_register_type): Renamed from
9718 i386_register_virtual_type. Adjust function signature.
9719 (i386_gdbarch_init): Set register_type instead of
9720 deprecated_max_register_raw_size,
9721 deprecated_max_register_virtual_size and register_virtual_type.
9722
9723 2003-03-14 Andrew Cagney <cagney@redhat.com>
9724
9725 * frame.c (get_prev_frame): When a legacy frame, always call
9726 legacy_get_prev_frame. Simplify unwind code using assumption that
9727 the unwinder is new.
9728 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9729 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9730 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9731
9732 2003-03-14 Andrew Cagney <cagney@redhat.com>
9733
9734 * frame.c (get_saved_register): Delete function.
9735 * frame.h (get_saved_register): Delete declaration.
9736 * xstormy16-tdep.c: Update comment.
9737 * regcache.h: Update comments.
9738 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9739 get_saved_register and extract_address, use
9740 frame_read_unsigned_register.
9741 (sparc_frame_saved_pc): Ditto.
9742 (sparc_get_saved_register): Instead of get_saved_register, use
9743 frame_register.
9744 (sparc_pop_frame): Ditto.
9745 * findvar.c: Update comments.
9746 (value_of_register): Call frame_register instead of
9747 get_saved_register.
9748 (value_from_register): Ditto.
9749 * config/sparc/tm-sparc.h: Update comment.
9750 * breakpoint.c: Update comment.
9751
9752 2003-03-14 Andrew Cagney <cagney@redhat.com>
9753
9754 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9755 GET_SAVED_REGISTER.
9756 * gdbarch.h, gdbarch.c: Re-generate.
9757 * frame.h: Update comments.
9758 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9759 * x86-64-tdep.c (x86_64_init_abi): Update.
9760 * sparc-tdep.c (sparc_gdbarch_init): Update.
9761 * sh-tdep.c (sh_gdbarch_init): Update.
9762 * mips-tdep.c (mips_gdbarch_init): Update.
9763 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9764 * cris-tdep.c (cris_gdbarch_init): Update.
9765 * ia64-tdep.c (ia64_gdbarch_init): Update.
9766 * frame.c (frame_register): Update.
9767 (get_saved_register): Update.
9768 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9769
9770 2003-03-13 Andrew Cagney <cagney@redhat.com>
9771
9772 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9773 * gdbarch.h, gdbarch.c: Regenerate.
9774 * valops.c (hand_function_call): Update comment.
9775 * stack.c (return_command): Update comment.
9776 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9777 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9778 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9779 * x86-64-tdep.c (x86_64_init_abi): Update.
9780 * vax-tdep.c (vax_gdbarch_init): Update.
9781 * v850-tdep.c (v850_gdbarch_init): Update.
9782 * sparc-tdep.c (sparc_gdbarch_init): Update.
9783 * sh-tdep.c (sh_gdbarch_init): Update.
9784 * s390-tdep.c (s390_gdbarch_init): Update.
9785 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9786 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9787 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9788 * mips-tdep.c (mips_gdbarch_init): Update.
9789 * mcore-tdep.c (mcore_gdbarch_init): Update.
9790 * m68k-tdep.c (m68k_gdbarch_init): Update.
9791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9792 * ia64-tdep.c (ia64_gdbarch_init): Update.
9793 * i386-tdep.c (i386_gdbarch_init): Update.
9794 * hppa-tdep.c (hppa_gdbarch_init): Update.
9795 * h8300-tdep.c (h8300_gdbarch_init): Update.
9796 * frv-tdep.c (frv_gdbarch_init): Update.
9797 * cris-tdep.c (cris_gdbarch_init): Update.
9798 * avr-tdep.c (avr_gdbarch_init): Update.
9799 * arm-tdep.c (arm_gdbarch_init): Update.
9800 * alpha-tdep.c (alpha_gdbarch_init): Update.
9801
9802 2003-03-13 Andrew Cagney <cagney@redhat.com>
9803
9804 * frame.c (legacy_frame_p): New function.
9805 (get_prev_frame): Use legacy_frame_p.
9806 * frame.h (legacy_frame_p): Declare.
9807
9808 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9809
9810 * MAINTAINERS (write after approval): Alphabetically
9811 listing corrected.
9812
9813 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9814
9815 * MAINTAINERS (write after approval): Add myself.
9816
9817 2003-03-12 Andrew Cagney <cagney@redhat.com>
9818
9819 * frame.c (get_prev_frame): Rename the frame parameter to
9820 "this_frame".
9821 (get_next_frame, legacy_get_prev_frame): Ditto.
9822
9823 2003-03-12 Andrew Cagney <cagney@redhat.com>
9824
9825 * frame.c (get_current_frame): Check target_has_registers before
9826 checking target_has_stack.
9827 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9828 instead of deprecated_selected_frame.
9829 * findvar.c (value_of_register): Pass "frame", not
9830 deprecated_selected_frame, to value_of_builtin_reg.
9831
9832 2003-03-12 Andrew Cagney <cagney@redhat.com>
9833
9834 * regcache.c (regcache_cooked_write_signed): New function.
9835 (regcache_cooked_write_unsigned): New function.
9836 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9837 (regcache_cooked_read_signed): Fix regnum in range assertion.
9838 * regcache.h (regcache_cooked_write_signed): Declare.
9839 (regcache_cooked_write_unsigned): Declare.
9840
9841 2003-03-12 Andrew Cagney <cagney@redhat.com>
9842
9843 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9844 * gdbarch.h, gdbarch.c: Re-generate.
9845 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9846 * x86-64-tdep.h: Update.
9847 * x86-64-tdep.c (x86_64_init_abi): Update.
9848 * v850-tdep.c (v850_gdbarch_init): Update.
9849 * sparc-tdep.c (sparc_gdbarch_init): Update.
9850 * sh-tdep.c (sh_gdbarch_init): Update.
9851 * s390-tdep.c (s390_gdbarch_init): Update.
9852 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9853 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9854 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9855 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9856 * mips-tdep.c (mips_gdbarch_init): Update.
9857 * mcore-tdep.c (mcore_gdbarch_init): Update.
9858 * m68k-tdep.c (m68k_gdbarch_init): Update.
9859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9860 * ia64-tdep.c (ia64_gdbarch_init): Update.
9861 * i386-tdep.c (i386_gdbarch_init): Update.
9862 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9863 * hppa-tdep.c (hppa_gdbarch_init): Update.
9864 * h8300-tdep.c (h8300_gdbarch_init): Update.
9865 * frv-tdep.c (frv_gdbarch_init): Update.
9866 * cris-tdep.c (cris_gdbarch_init): Update.
9867 * avr-tdep.c (avr_gdbarch_init): Update.
9868 * arm-tdep.c (arm_gdbarch_init): Update.
9869 * alpha-tdep.c (alpha_gdbarch_init): Update.
9870 * sh-tdep.c (sh_init_extra_frame_info): Update.
9871 (sh64_init_extra_frame_info): Update.
9872 * ns32knbsd-nat.c (frame_num_args): Update.
9873 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9874 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9875 (xstormy16_frame_chain_valid): Update.
9876 * vax-tdep.c (vax_saved_pc_after_call): Update.
9877 * v850-tdep.c (v850_frame_chain): Update.
9878 (v850_pop_frame): Update.
9879 (v850_init_extra_frame_info): Update.
9880 * sparc-tdep.c (setup_arbitrary_frame): Update.
9881 * ns32k-tdep.c (umax_frame_num_args): Update.
9882 * s390-tdep.c (s390_pop_frame_regular): Update.
9883 * mn10300-tdep.c (mn10300_frame_chain): Update.
9884 (mn10300_pop_frame_regular): Update.
9885 (mn10300_init_extra_frame_info): Update.
9886 * mips-tdep.c (mips_init_frame_pc_first): Update.
9887 (mips_frame_chain): Update.
9888 (mips_pop_frame): Update.
9889 * mcore-tdep.c (mcore_frame_chain): Update.
9890 (mcore_pop_frame): Update.
9891 (mcore_init_extra_frame_info): Update.
9892 * arch-utils.c (init_frame_pc_default): Update.
9893 * m68k-tdep.c (isi_frame_num_args): Update.
9894 (delta68_frame_num_args): Update.
9895 (news_frame_num_args): Update.
9896 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9897 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9898 (alpha_frame_chain): Update.
9899 (alpha_pop_frame): Update.
9900 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9901 (hppa_init_extra_frame_info): Update.
9902 (hppa_frame_chain): Update.
9903 (hppa_frame_chain_valid): Update.
9904 * cris-tdep.c (cris_init_extra_frame_info): Update.
9905 * avr-tdep.c (avr_init_extra_frame_info): Update.
9906 * arm-tdep.c (arm_frame_chain_valid): Update.
9907 (arm_init_extra_frame_info): Update.
9908 (arm_pop_frame): Update.
9909 * frame.c (frame_pc_unwind): Update.
9910 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9911 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9912 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9913 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9914 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9915 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9916
9917 2003-03-12 Andrew Cagney <cagney@redhat.com>
9918
9919 Eliminate the need for POP_FRAME.
9920 * frame.c (do_frame_unwind_register): New function.
9921 (frame_pop): When no POP_FRAME, pop the frame using register
9922 unwind and a scratch regcache.
9923 (frame_saved_regs_pop): Delete function.
9924 (trad_frame_unwinder): Update.
9925 * d10v-tdep.c (d10v_frame_pop): Delete function.
9926 (d10v_frame_unwind): Update.
9927 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9928 (sentinel_frame_unwinder): Update.
9929 * dummy-frame.c (dummy_frame_pop): Delete function.
9930 (dummy_frame_unwind): Update.
9931 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9932 (struct frame_unwind): Update.
9933
9934 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9935
9936 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9937 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9938 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9939 Do range checks on register number obtained from debugging info.
9940 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9941 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9942 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9943 mapping function.
9944 (do_fp_register_row): Fix typo which caused double type to be
9945 used when attempting to unpack a float.
9946
9947 2003-03-11 J. Brobecker <brobecker@gnat.com>
9948
9949 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9950
9951 2003-03-11 Andrew Cagney <cagney@redhat.com>
9952
9953 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9954 frame. Problem found by Corinna Vinschen.
9955
9956 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9957
9958 * doublest.c (floatformat_from_length): Accept also
9959 the real size of 'long double' type.
9960
9961 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9962
9963 From Klee Dienes <kdienes@apple.com>:
9964 * breakpoint.c (bpstat_copy): Copy the command lines as well
9965 as the old value, to match what is freed in bpstat_clear.
9966
9967 2003-03-10 David Carlton <carlton@math.stanford.edu>
9968
9969 * minsyms.c (add_minsym_to_hash_table): Replace
9970 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9971 (compare_minimal_symbols, compact_minimal_symbols)
9972 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9973 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9974 of DEPRECATED_SYMBOL_MATCHES_NAME.
9975 (lookup_minimal_symbol_solib_trampoline): Ditto.
9976
9977 2003-03-10 Andrew Cagney <cagney@redhat.com>
9978
9979 * regcache.h (regcache_cooked_read_ftype): Define.
9980 (regcache_save, regcache_restore): Add a cooked_read parameter.
9981 * regcache.c (regcache_save, regcache_restore): Update.
9982 (do_cooked_read): New function.
9983 (regcache_cpy): Pass do_cooked_read to regcache_save and
9984 regcache_restore.
9985
9986 2003-03-10 Andrew Cagney <cagney@redhat.com>
9987
9988 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9989 * gdbarch.h, gdbarch.c: Re-generate.
9990 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9991 * x86-64-tdep.h: Update.
9992 * x86-64-tdep.c (x86_64_init_abi): Update.
9993 * v850-tdep.c (v850_gdbarch_init): Update.
9994 * sparc-tdep.c (sparc_gdbarch_init): Update.
9995 * sh-tdep.c (sh_gdbarch_init): Update.
9996 * s390-tdep.c (s390_gdbarch_init): Update.
9997 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9998 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9999 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10000 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10001 * mips-tdep.c (mips_gdbarch_init): Update.
10002 * mcore-tdep.c (mcore_gdbarch_init): Update.
10003 * m68k-tdep.c (m68k_gdbarch_init): Update.
10004 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10005 * ia64-tdep.c (ia64_gdbarch_init): Update.
10006 * i386-tdep.c (i386_gdbarch_init): Update.
10007 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10008 * hppa-tdep.c (hppa_gdbarch_init): Update.
10009 * h8300-tdep.c (h8300_gdbarch_init): Update.
10010 * frv-tdep.c (frv_gdbarch_init): Update.
10011 * cris-tdep.c (cris_gdbarch_init): Update.
10012 * avr-tdep.c (avr_gdbarch_init): Update.
10013 * arm-tdep.c (arm_gdbarch_init): Update.
10014 * alpha-tdep.c (alpha_gdbarch_init): Update.
10015 * sh-tdep.c (sh_init_extra_frame_info): Update.
10016 (sh64_init_extra_frame_info): Update.
10017 * ns32knbsd-nat.c (frame_num_args): Update.
10018 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10019 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10020 (xstormy16_frame_chain_valid): Update.
10021 * vax-tdep.c (vax_saved_pc_after_call): Update.
10022 * v850-tdep.c (v850_frame_chain): Update.
10023 (v850_pop_frame): Update.
10024 (v850_init_extra_frame_info): Update.
10025 * sparc-tdep.c (setup_arbitrary_frame): Update.
10026 * ns32k-tdep.c (umax_frame_num_args): Update.
10027 * s390-tdep.c (s390_pop_frame_regular): Update.
10028 * mn10300-tdep.c (mn10300_frame_chain): Update.
10029 (mn10300_pop_frame_regular): Update.
10030 (mn10300_init_extra_frame_info): Update.
10031 * mips-tdep.c (mips_init_frame_pc_first): Update.
10032 (mips_frame_chain): Update.
10033 (mips_pop_frame): Update.
10034 * mcore-tdep.c (mcore_frame_chain): Update.
10035 (mcore_pop_frame): Update.
10036 (mcore_init_extra_frame_info): Update.
10037 * arch-utils.c (init_frame_pc_default): Update.
10038 * m68k-tdep.c (isi_frame_num_args): Update.
10039 (delta68_frame_num_args): Update.
10040 (news_frame_num_args): Update.
10041 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10042 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10043 (alpha_frame_chain): Update.
10044 (alpha_pop_frame): Update.
10045 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10046 (hppa_init_extra_frame_info): Update.
10047 (hppa_frame_chain): Update.
10048 (hppa_frame_chain_valid): Update.
10049 * cris-tdep.c (cris_init_extra_frame_info): Update.
10050 * avr-tdep.c (avr_init_extra_frame_info): Update.
10051 * arm-tdep.c (arm_frame_chain_valid): Update.
10052 (arm_init_extra_frame_info): Update.
10053 (arm_pop_frame): Update.
10054 * frame.c (frame_pc_unwind): Update.
10055 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10056 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10057 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10058 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10059 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10060 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10061
10062 2003-03-10 Andrew Cagney <cagney@redhat.com>
10063
10064 * gdbarch.sh (gdbarch_unwind_pc): New method.
10065 * gdbarch.h, gdbarch.c: Regenerate.
10066 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10067 but use read_pc and FRAME_SAVED_PC as fall backs.
10068 (frame_saved_regs_pc_unwind): Delete function.
10069 (trad_frame_unwinder): Update.
10070 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10071 (struct frame_unwind): Update.
10072 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10073 (dummy_frame_unwind): Update.
10074 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10075 (sentinel_frame_unwinder): Update.
10076 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10077 (d10v_frame_unwind): Update.
10078 (d10v_unwind_pc): New function.
10079 (d10v_gdbarch_init): Set unwind_pc.
10080
10081 2003-03-10 Andrew Cagney <cagney@redhat.com>
10082
10083 * gdbarch.h: Re-generate.
10084
10085 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10086 PC.
10087 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10088 the PC register.
10089
10090 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10091
10092 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10093
10094 2003-03-08 Andrew Cagney <cagney@redhat.com>
10095
10096 * cli-out.c: Update copyright.
10097 (cli_out_data): Define typedef. Use instead of ui_out_data.
10098
10099 2003-03-08 Andrew Cagney <cagney@redhat.com>
10100
10101 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10102 the result.
10103
10104 2003-03-07 Andrew Cagney <cagney@redhat.com>
10105
10106 * gdbarch.sh: Don't generate two macro definitions when an
10107 undefined macro taking no arguments.
10108 * gdbarch.h: Regenerate.
10109
10110 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10111
10112 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10113 (x86_64_unwind_dummy_id): New functions.
10114 (x86_64_init_abi): Register these two new functions.
10115
10116 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10117
10118 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10119 (x86_64_skip_prologue): Move prologue detection to
10120 separate function.
10121 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10122
10123 2003-03-05 Andrew Cagney <cagney@redhat.com>
10124
10125 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10126 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10127 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10128 to use unwind_dummy_id when a dummy frame.
10129 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10130 predicate.
10131 * gdbarch.h, gdbarch.c: Regneerate.
10132
10133 2003-03-05 Andrew Cagney <cagney@redhat.com>
10134
10135 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10136 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10137 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10138 values.
10139
10140 2003-03-05 Andrew Cagney <cagney@redhat.com>
10141
10142 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10143 (struct d10v_unwind_cache): Delete field "frameless". Replace
10144 "next_addr" with "sp_offset". Add "r11_offset".
10145 (d10v_frame_unwind_cache): Update.
10146 (prologue_find_regs): Update. When "mv r11, sp", save the
10147 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10148 RN was saved in r11_offset.
10149
10150 2003-03-05 Andrew Cagney <cagney@redhat.com>
10151
10152 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10153 cached PC value in the next frame.
10154
10155 2003-03-05 Andrew Cagney <cagney@redhat.com>
10156
10157 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10158 "id_unwind_cache" with "id".
10159 (frame_id_unwind): Delete declaration.
10160 * frame.c (frame_id_unwind): Delete function.
10161 (get_prev_frame): Call the frame id unwind method directly. Store
10162 the returned next frame's ID value in NEXT_FRAME. Note that there
10163 is a problem with the wrong unwind ID being called with the wrong
10164 unwind cache.
10165
10166 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10167
10168 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10169
10170 2003-03-05 James Ingham <jingham@apple.com>
10171 Daniel Jacobowitz <drow@mvista.com>
10172
10173 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10174 (auto_cp_abi): New variable.
10175 (current_cp_abi, num_cp_abis): Make static.
10176 (CP_ABI_MAX): Define.
10177 (cp_abis): Turn into an array.
10178 (value_virtual_fn_field): Fix formatting.
10179 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10180 takes a pointer.
10181 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10182 (list_cp_abis, _initialize_cp_abi): New functions.
10183 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10184 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10185 switch_to_cp_abi. Update prototype for register_cp_abi.
10186 * Makefile.in (cp-abi.o): Update dependencies.
10187 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10188 instead of switch_to_cp_abi.
10189 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10190 register_cp_abi.
10191 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10192 register_cp_abi.
10193 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10194
10195 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10196
10197 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10198 * dwarf2loc.c: Include "regcache.h".
10199 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10200 register_size.
10201 * Makefile.in (dwarf2loc.o): Update dependencies.
10202
10203 2003-03-04 Theodore A. Roth <troth@openavr.org>
10204
10205 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10206 number of io registers reported by remote target is not a multiple of
10207 step.
10208
10209 2003-03-04 David Carlton <carlton@math.stanford.edu>
10210
10211 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10212 (lookup_symbol_aux_psymtabs): Update call to
10213 lookup_partial_symbol.
10214 (lookup_transparent_type, find_main_psymtab)
10215 (make_symbol_overload_list): Ditto.
10216
10217 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10218
10219 * MAINTAINERS (Write after approval): Update my email address.
10220
10221 2003-03-03 Andrew Cagney <cagney@redhat.com>
10222
10223 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10224 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10225 predicate. Replace MAX_REGISTER_RAW_SIZE.
10226 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10227 MAX_REGISTER_VIRTUAL_SIZE.
10228 * regcache.c (legacy_max_register_raw_size): New function.
10229 (legacy_max_register_virtual_size): New function.
10230 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10231 (MAX_REGISTER_RAW_SIZE): Define.
10232 (legacy_max_register_raw_size): Declare.
10233 (legacy_max_register_virtual_size): Declare.
10234 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10235 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10236 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10237 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10238 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10239 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10240 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10241 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10242 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10243 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10244 * vax-tdep.c (vax_gdbarch_init): Update.
10245 * v850-tdep.c (v850_gdbarch_init): Update.
10246 * sparc-tdep.c (sparc_gdbarch_init): Update.
10247 * sh-tdep.c (sh_gdbarch_init): Update.
10248 * s390-tdep.c (s390_gdbarch_init): Update.
10249 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10250 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10251 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10252 * mips-tdep.c (mips_gdbarch_init): Update.
10253 * mcore-tdep.c (mcore_gdbarch_init): Update.
10254 * m68k-tdep.c (m68k_gdbarch_init): Update.
10255 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10256 * ia64-tdep.c (ia64_gdbarch_init): Update.
10257 * i386-tdep.c (i386_gdbarch_init): Update.
10258 * hppa-tdep.c (hppa_gdbarch_init): Update.
10259 * h8300-tdep.c (h8300_gdbarch_init): Update.
10260 * frv-tdep.c (frv_gdbarch_init): Update.
10261 * cris-tdep.c (cris_gdbarch_init): Update.
10262 * avr-tdep.c (avr_gdbarch_init): Update.
10263 * arm-tdep.c (arm_gdbarch_init): Update.
10264 * alpha-tdep.c (alpha_gdbarch_init): Update.
10265 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10266 max_register_raw_size or max_register_virtual_size.
10267
10268 2003-03-03 David Carlton <carlton@math.stanford.edu>
10269
10270 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10271 SYMBOL_MATCHES_NAME, add comment.
10272 (SYMBOL_MATCHES_NATURAL_NAME): New.
10273 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10274 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10275 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10276 * symtab.c (lookup_partial_symbol): Use
10277 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10278 unhelpful comment.
10279 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10280 SYMBOL_MATCHES_NAME.
10281 Fix for PR c++/33.
10282
10283 2003-03-03 David Carlton <carlton@math.stanford.edu>
10284
10285 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10286 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10287 by regexp matching against SYMBOL_NATURAL_NAME.
10288
10289 2003-03-03 David Carlton <carlton@math.stanford.edu>
10290
10291 * linespec.c (find_method): Extract code into collect_methods.
10292 (collect_methods): New.
10293
10294 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10295
10296 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10297 get_frame_base.
10298
10299 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10300 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10301
10302 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10303
10304 * arch-utils.c (generic_register_byte): Fix to use the loop index
10305 and not regnum when summing the size of all registers up to regnum.
10306
10307 2003-03-01 Andrew Cagney <cagney@redhat.com>
10308
10309 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10310 FRAME_INIT_SAVED_REGS.
10311 * gdbarch.h, gdbarch.c: Regenerate.
10312 * stack.c (frame_info): Update.
10313 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10314 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10315 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10316 * ns32k-tdep.c (ns32k_pop_frame): Update.
10317 * mips-tdep.c (mips_pop_frame): Update.
10318 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10319 * ia64-tdep.c (ia64_frame_chain): Update.
10320 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10321 (ia64_frameless_function_invocation): Update.
10322 (ia64_init_extra_frame_info): Update.
10323 (ia64_pop_frame_regular): Update.
10324 * frame.h (struct frame_info): Update comment.
10325 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10326 * frame.c (frame_saved_regs_register_unwind): Update.
10327 (frame_saved_regs_register_unwind): Update.
10328 (deprecated_generic_get_saved_register): Update.
10329 * cris-tdep.c: Update comment.
10330 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10331 Rename macro.
10332 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10333 * x86-64-tdep.c (x86_64_init_abi): Update.
10334 * vax-tdep.c (vax_gdbarch_init): Update.
10335 * v850-tdep.c (v850_gdbarch_init): Update.
10336 * sparc-tdep.c (sparc_gdbarch_init): Update.
10337 * sh-tdep.c (sh_gdbarch_init): Update.
10338 * s390-tdep.c (s390_gdbarch_init): Update.
10339 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10340 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10341 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10342 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10343 * mips-tdep.c (mips_gdbarch_init): Update.
10344 * mcore-tdep.c (mcore_gdbarch_init): Update.
10345 * m68k-tdep.c (m68k_gdbarch_init): Update.
10346 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10347 * ia64-tdep.c (ia64_gdbarch_init): Update.
10348 * i386-tdep.c (i386_gdbarch_init): Update.
10349 * frv-tdep.c (frv_gdbarch_init): Update.
10350 * avr-tdep.c (avr_gdbarch_init): Update.
10351 * arm-tdep.c (arm_gdbarch_init): Update.
10352 * alpha-tdep.c (alpha_gdbarch_init): Update.
10353
10354 2003-03-01 Andrew Cagney <cagney@redhat.com>
10355
10356 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10357 option enum and switch. When no windows, set the interpreter to
10358 INTERP_CONSOLE.
10359
10360 2003-03-01 Andrew Cagney <cagney@redhat.com>
10361
10362 * main.c (captured_main): Replace magic option characters with an
10363 enum.
10364
10365 2003-03-01 Andrew Cagney <cagney@redhat.com>
10366
10367 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10368 INIT_EXTRA_FRAME_INFO.
10369 * gdbarch.h, gdbarch.c: Regenerate.
10370 * arm-tdep.c: Update comments.
10371 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10372 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10373 * frame.h, avr-tdep.c: Ditto.
10374 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10375 (create_new_frame, legacy_get_prev_frame): Ditto.
10376 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10377 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10378 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10379 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10380 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10381 * v850-tdep.c (v850_gdbarch_init): Ditto.
10382 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10383 * sh-tdep.c (sh_gdbarch_init): Ditto.
10384 * s390-tdep.c (s390_gdbarch_init): Ditto.
10385 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10386 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10387 * mips-tdep.c (mips_gdbarch_init): Ditto.
10388 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10389 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10390 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10391 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10392 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10393 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10394 * frv-tdep.c (frv_gdbarch_init): Ditto.
10395 * cris-tdep.c (cris_gdbarch_init): Ditto.
10396 * avr-tdep.c (avr_gdbarch_init): Ditto.
10397 * arm-tdep.c (arm_gdbarch_init): Ditto.
10398 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10399 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10400
10401 2003-03-01 Andrew Cagney <cagney@redhat.com>
10402
10403 * gdbarch.sh (register_type): New function with predicate.
10404 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10405 * gdbarch.h, gdbarch.c: Re-generate.
10406 * arch-utils.c (generic_register_byte): Use generic_register_size.
10407 (generic_register_size): When available, use
10408 gdbarch_register_type.
10409 * regcache.c (init_regcache_descr): When available, initialize the
10410 register type array using gdbarch_register_type. If the
10411 architecture supplies gdbarch_register_type, do not use the legacy
10412 regcache layout.
10413 * d10v-tdep.c (d10v_register_type): Replace
10414 d10v_register_virtual_type.
10415 (d10v_gdbarch_init): Set register_type instead of
10416 register_virtual_type.
10417
10418 2003-03-01 Andrew Cagney <cagney@redhat.com>
10419
10420 * Makefile.in (ax-gdb.o): Update dependencies.
10421 * ax-gdb.c: Include "regcache.h".
10422 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10423 * findvar.c (value_of_register): Ditto.
10424 * infcmd.c (default_print_registers_info): Ditto.
10425
10426 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10427
10428 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10429 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10430
10431 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10432
10433 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10434 of STREQ.
10435
10436 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10437
10438 * Makefile.in (dwarf2loc.o): Update dependencies.
10439 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10440 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10441 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10442 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10443 (locexpr_tracepoint_var_ref): New function.
10444 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10445
10446 2003-02-28 Andrew Cagney <cagney@redhat.com>
10447
10448 * regcache.c (register_size): New function.
10449 * regcache.h (register_size): Declare
10450 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10451 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10452
10453 2003-02-28 David Carlton <carlton@math.stanford.edu>
10454
10455 * linespec.c (decode_compound): Extract code into find_method.
10456 (find_method): New.
10457
10458 2003-02-28 J. Brobecker <brobecker@gnat.com>
10459
10460 * Makefile.in: Add rules to build and link in observer.o.
10461
10462 2003-02-27 J. Brobecker <brobecker@gnat.com>
10463
10464 * observer.c: Minor comments edits.
10465
10466 2003-02-27 J. Brobecker <brobecker@gnat.com>
10467
10468 * observer.h, observer.c: New file.
10469
10470 2003-02-27 Andrew Cagney <cagney@redhat.com>
10471
10472 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10473
10474 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10475
10476 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10477 (M6812_OP_STS_EXT): Likewise.
10478 (m6811_prologue): Use the above to recognize prologue.
10479 (m6812_prologue): Likewise.
10480
10481 2003-02-27 David Carlton <carlton@math.stanford.edu>
10482
10483 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10484 SYMBOL_PRINT_NAME.
10485 (compare_psymbols): Ditto.
10486 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10487
10488 2003-02-27 Michael Snyder <msnyder@redhat.com>
10489
10490 * f-lang.c (build_fortran_types): New function.
10491 (_initialize_f_language): Gdbarch-register built-in fortran types.
10492 * doublest.c (extract_floating): Fix warning text.
10493
10494 2003-02-27 Andrew Cagney <cagney@redhat.com>
10495
10496 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10497 predicate. Replaces PUSH_DUMMY_FRAME.
10498 * gdbarch.h, gdbarch.c: Regnerate.
10499 * valops.c (hand_function_call): Update. Call
10500 generic_push_dummy_frame directly.
10501 * vax-tdep.c (vax_gdbarch_init): Update.
10502 * sparc-tdep.c (sparc_gdbarch_init): Update.
10503 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10504 * m68k-tdep.c (m68k_gdbarch_init): Update.
10505 * hppa-tdep.c (hppa_gdbarch_init): Update.
10506 * alpha-tdep.c (alpha_gdbarch_init): Update.
10507 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10508 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10509 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10510 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10511 push_dummy_frame to generic_push_dummy_frame.
10512 * v850-tdep.c (v850_gdbarch_init): Ditto.
10513 * sh-tdep.c (sh_gdbarch_init): Ditto.
10514 * s390-tdep.c (s390_gdbarch_init): Ditto.
10515 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10516 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10517 * mips-tdep.c (mips_gdbarch_init): Ditto.
10518 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10519 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10520 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10521 * i386-tdep.c (i386_gdbarch_init): Ditto.
10522 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10523 * frv-tdep.c (frv_gdbarch_init): Ditto.
10524 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10525 * cris-tdep.c (cris_gdbarch_init): Ditto.
10526 * avr-tdep.c (avr_gdbarch_init): Ditto.
10527 * arm-tdep.c (arm_gdbarch_init): Ditto.
10528
10529 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10530
10531 * mips-tdep.c (show_mips_abi): New function.
10532 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10533 command ``show mips abi''.
10534
10535 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10536
10537 From Elena Zannoni <ezannoni@redhat.com>
10538 * dbxread.c (process_one_symbol): Only record line 0 if one or
10539 more sline entries have been seen for the function.
10540
10541 2003-02-26 Michael Chastain <mec@shout.net>
10542
10543 * configure: Regenerate with autoconf 000227.
10544
10545 2003-02-26 Michael Chastain <mec@shout.net>
10546
10547 Close PR build/660.
10548 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10549 for old libc5/glibc.
10550 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10551
10552 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10553
10554 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10555 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10556
10557 2003-02-26 Michael Chastain <mec@shout.net>
10558
10559 * configure.in: New variable HAVE_UINTPTR_T.
10560 * configure, config.in: Regenerated.
10561
10562 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10563
10564 Fix PR build/1097.
10565 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10566
10567 2003-02-25 Andrew Cagney <cagney@redhat.com>
10568
10569 * frame.c (get_prev_frame): Add comment on check for
10570 inside_entry_func. Only check for inside_entry_file when not a
10571 dummy and not a sentinel. Check that the new frame is not inner
10572 to the old frame.
10573
10574 2003-02-25 Andrew Cagney <cagney@redhat.com>
10575
10576 * frame.c (frame_debug): New variable.
10577 (_initialize_frame): Add "set/show debug frame" command.
10578 (get_prev_frame): When frame_debug, print reason why unwind
10579 failed.
10580
10581 2003-02-25 Michael Chastain <mec@shout.net>
10582
10583 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10584 to avoid uintptr_t definition problems.
10585
10586 2003-02-25 David Carlton <carlton@math.stanford.edu>
10587
10588 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10589 (SYMBOL_LINKAGE_NAME): Ditto.
10590 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10591 SYMBOL_LINKAGE_NAME.
10592 (struct general_symbol_info): Expand comment.
10593 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10594 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10595 (SYMBOL_MATCHES_REGEXP): Ditto.
10596 * symtab.c (symbol_natural_name): New function.
10597 * objfiles.h: Replace all uses of SYMBOL_NAME by
10598 DEPRECATED_SYMBOL_NAME.
10599 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10600 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10601 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10602 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10603 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10604 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10605 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10606 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10607 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10608 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10609 * ada-exp.y: Ditto.
10610 * ada-exp.y: Update copyright.
10611 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10612 * cp-valprint.c: Ditto.
10613
10614 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10615
10616 * infptrace.c (detach): Do not flag error if ptrace detach fails
10617 and errno is set to ESRCH.
10618
10619 2003-02-24 Andrew Cagney <cagney@redhat.com>
10620
10621 * infptrace.c (udot_info): Change type of udot_off to long. Use
10622 paddr when printing udot_off's value.
10623
10624 2003-02-24 David Carlton <carlton@math.stanford.edu>
10625
10626 * symtab.c (make_symbol_overload_list): Only read in partial
10627 symtabs containing a matching partial symbol.
10628
10629 2003-02-24 David Carlton <carlton@math.stanford.edu>
10630
10631 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10632 do the comparison, not strcmp.
10633 * symfile.c (compare_psymbols): Ditto.
10634 * defs.h: Declare strcmp_iw_ordered.
10635 * utils.c (strcmp_iw_ordered): New function.
10636
10637 2003-02-24 Jim Blandy <jimb@redhat.com>
10638
10639 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10640 support, shared libs): Remove my name from here, to better reflect
10641 reality.
10642
10643 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10644
10645 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10646 (target_ops): Add to_have_continuable_watchpoint.
10647 * target.c (update_current_target): Add INHERIT line for
10648 to_have_continuable_watchpoint.
10649 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10650 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10651 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10652 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10653
10654 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10655
10656 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10657 maintainership.
10658
10659 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10660
10661 * solib.c (solib_open): Call target defined search function after
10662 failing with solib-search-path.
10663 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10664 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10665
10666 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10667
10668 * MAINTAINERS: Add myself to Write After section.
10669
10670 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10671
10672 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10673
10674 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10675
10676 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10677 (m68hc11_add_reggroups): New function.
10678 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10679 (m68hc11_gdbarch_init): Install the reggroups.
10680 (_initialize_m68hc11_tdep): Initialize them.
10681
10682 2003-02-21 James E Wilson <wilson@tuliptree.org>
10683
10684 * MAINTAINERS: Update my email address.
10685
10686 2003-02-21 David Carlton <carlton@math.stanford.edu>
10687
10688 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10689
10690 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10691
10692 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10693 * symtab.h: Add opaque declarations of struct axs_value and
10694 struct agent_expr.
10695 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10696 (struct location_funcs): New type.
10697 (struct symbol): Add "loc" to aux_value.
10698 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10699 * dwarf2read.c: Include "dwarf2expr.h".
10700 (dwarf2_symbol_mark_computed): New function.
10701 (read_func_scope): Use it.
10702 (var_decode_location): New function.
10703 (new_symbol): Use it.
10704 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10705
10706 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10707 (dwarf2expr_h, dwarf2loc_h): New variables.
10708 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10709 (dwarf2expr.o, dwarf2loc.o): New rules.
10710 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10711 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10712 LOC_COMPUTED_ARG.
10713 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10714 * m2-exp.y (yylex): Likewise.
10715 * printcmd.c (address_info, print_frame_args): Likewise.
10716 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10717 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10718 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10719 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10720 * symtab.c (lookup_block_symbol): Likewise.
10721
10722 2003-02-20 Adam Fedor <fedor@gnu.org>
10723
10724 * symtab.h: Remove objc_specific struct
10725 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10726 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10727 Have language_objc use cplus_specific struct.
10728
10729 2003-02-20 Tom Tromey <tromey@redhat.com>
10730
10731 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10732 TYPE_NAME, when printing a String value. PR java/1075.
10733
10734 2003-02-20 Adam Fedor <fedor@gnu.org>
10735
10736 * objc-lang.h (find_methods): Remove declaration.
10737 * objc-lang.c (find_methods): Make static.
10738
10739 2003-02-20 Christopher Faylor <cgf@redhat.com>
10740
10741 * win32-nat.c (get_image_name): Check return value from
10742 ReadProcessMemory.
10743 (child_xfer_memory): Ditto.
10744
10745 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10746
10747 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10748 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10749 '${exec_prefix}' (in addition to the expansion thereof) as
10750 relocatable.
10751 * configure: Rebuilt.
10752
10753 2003-02-20 David Carlton <carlton@math.stanford.edu>
10754
10755 * symtab.c (search_symbols): Revert the search_symbols part of my
10756 2002-12-23 patch. Add comment.
10757
10758 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10759
10760 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10761 * dbxread.c (elfstab_build_psymtabs): Don't call
10762 install_minimal_symbols.
10763 (stabsect_build_psymtabs): Likewise.
10764 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10765 earlier.
10766 * somread.c (som_symfile_read): Call install_minimal_symbols
10767 and do_cleanups earlier.
10768 * nlmread.c (nlm_symfile_read): Likewise.
10769 * mdebugread.c (elfmdebug_build_psymtabs): Call
10770 install_minimal_symbols and make appropriate cleanups.
10771
10772 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10773
10774 * solib.c (reload_shared_libraries): New function.
10775 (_initialize_solib): Add callbacks for ``set solib-search-path''
10776 and ``set solib-absolute-prefix''.
10777
10778 2003-02-20 David Carlton <carlton@math.stanford.edu>
10779
10780 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10781 expand comment.
10782 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10783 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10784 * ada-typeprint.c (ada_typedef_print): Ditto.
10785 * ax-gdb.c (gen_var_ref): Ditto.
10786 * breakpoint.c (print_one_breakpoint): Ditto.
10787 * buildsym.c (finish_block): Ditto.
10788 * c-valprint.c (c_val_print): Ditto.
10789 * expprint.c (print_subexp): Ditto.
10790 * findvar.c (locate_var_value): Ditto.
10791 * infcmd.c (jump_command): Ditto.
10792 * linespec.c (decode_line_2, decode_compound): Ditto.
10793 * maint.c (maintenance_translate_address): Ditto.
10794 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10795 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10796 Ditto.
10797 * p-valprint.c (pascal_val_print): Ditto.
10798 * stabsread.c (define_symbol): Ditto.
10799 * stack.c (print_frame, frame_info, print_block_frame_locals)
10800 (print_frame_arg_vars, return_command): Ditto.
10801 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10802 * symmisc.c (print_symbol): Ditto.
10803 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10804 (compare_search_syms, print_symbol_info, print_msymbol_info)
10805 (rbreak_command): Ditto.
10806 * tracepoint.c (tracepoints_info): Ditto.
10807 * typeprint.c (typedef_print): Ditto.
10808 * valops.c (value_of_variable, hand_function_call): Ditto.
10809 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10810 * ada-typeprint.c: Update Copyright.
10811 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10812 * tracepoint.c, cli/cli-cmds.c: Ditto.
10813
10814 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10815
10816 * frame.c (generic_unwind_get_saved_register): Make non-static.
10817 * frame.h (generic_unwind_get_saved_register): Declare.
10818 * mips-tdep.c (read_next_frame_reg): Fetch register from
10819 current regcache when frame is NULL.
10820 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10821 that must be NULL.
10822 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10823 instead of frame_register_unwind().
10824
10825 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10826
10827 * remote-sim.c (gdbsim_insert_breakpoint)
10828 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10829 code.
10830
10831 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10832
10833 * remote.c (_initialize_remote): Add commands "set/show remote
10834 hardware-watchpoint-limit" and "set/show remote
10835 hardware-breakpoint-limit".
10836 (remote_hw_watchpoint_limit): Initialize to -1.
10837 (remote_hw_breakpoint_limit): Ditto.
10838 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10839
10840 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10841
10842 * coff-pe-read.c: New file - support reading of minimal symbols from a
10843 portable executable using the export table.
10844 * coff-pe-read.h: New file.
10845 * coffread.c: Include coff-pe-read.h.
10846 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10847 debugging symbols found.
10848 * Makefile.in (SFILES): Add coff-pe-read.o.
10849 (coff_pe_read_h): Define.
10850 (COMMON_OBS): Add coff-pe-read.o.
10851 (coffread.o): Add coff_pe_read_h dependency.
10852 (coff-pe-read.o): New target.
10853
10854 2003-02-19 David Carlton <carlton@math.stanford.edu>
10855
10856 * Makefile.in (SFILES): Add block.c.
10857 (block_h): New.
10858 (COMMON_OBS): Add block.o.
10859 (block.o): New.
10860 (x86-64-tdep.o): Add $(block_h).
10861 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10862 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10863 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10864 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10865 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10866 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10867 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10868 * value.h: Add opaque declaration for struct block.
10869 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10870 * ada-lang.h: Ditto.
10871 * x86-64-tdep.c: #include "block.h"
10872 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10873 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10874 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10875 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10876 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10877 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10878 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10879 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10880 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10881 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10882 * symtab.c (block_function): Ditto.
10883 (contained_in): Ditto.
10884 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10885 block.h. Add opaque declaration for struct block.
10886 * symtab.h: Move block_function and contained_in declarations to
10887 block.h. Add opaque declarations for struct block, struct
10888 blockvector.
10889 (struct block): Move to block.h.
10890 (struct blockvector): Ditto.
10891 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10892 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10893 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10894 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10895 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10896 Ditto.
10897 * block.c: New file.
10898 * block.h: New file.
10899
10900 2003-02-19 Theodore A. Roth <troth@openavr.org>
10901
10902 * avr-tdep.c (avr_extract_return_value): Remove function.
10903 (avr_store_return_value): Remove function.
10904 (avr_extract_struct_value_address): Remove function.
10905 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10906
10907 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10908
10909 * rs6000-tdep.c: Include "gdb_assert.h".
10910 (registers_e500): Add "acc" and "spefscr".
10911 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10912 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10913 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10914 really is "r0".
10915 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10916
10917 2003-02-18 Keith Seitz <keiths@redhat.com>
10918
10919 * Makefile.in: Add gdbtk-interps.c.
10920
10921 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10922
10923 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10924 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10925
10926 2003-02-18 Andrew Cagney <cagney@redhat.com>
10927
10928 * symtab.h (struct objfile): Add opaque declaration.
10929
10930 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10931
10932 From Jim Ingham <jingham@apple.com>:
10933 * dbxread.c (process_one_symbol): Use last_function_start rather
10934 than function_start_offset to find the real beginning of the
10935 current function. The latter is just the text section offset on
10936 some systems, the former is always the real function start.
10937
10938 2003-02-17 Andrew Cagney <cagney@redhat.com>
10939
10940 * configure.in: Revert ${target} != ${host}.
10941
10942 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10943
10944 * configure.in (Makefile): Use the test ${target} != ${host},
10945 instead of the absence of the "nm.h" file, to determine of the
10946 configuration non-native.
10947 * configure: Regenerate.
10948
10949 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10950
10951 From Brian Ford <ford@vss.fsi.com>
10952
10953 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10954 conditionalize tui_active test.
10955 (lookup_cmd_1): Ditto.
10956
10957 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10958
10959 * configure.in: Add check for _etext.
10960 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10961 available.
10962 * config.in, configure: regenerated.
10963
10964 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10965
10966 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10967
10968 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10969
10970 * main.c (tui_version): Delete variable.
10971 (captured_main): When --tui, set interpreter_p to "tui" instead of
10972 enabling tui_version.
10973 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10974 tui_version.
10975 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10976 * cli/cli-cmds.c (disassemble_command): Ditto.
10977 * defs.h (tui_version): Delete declaration.
10978 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10979 (tui-interp.o): Add rules.
10980 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10981
10982 2003-02-14 Christopher Faylor <cgf@redhat.com>
10983
10984 * win32-nat.c (register_loaded_dll): Correctly set address range for
10985 just-loaded dll.
10986
10987 2003-02-12 Jason Molenda (jmolenda@apple.com)
10988
10989 * symmisc.c (print_objfile_statistics): Include information about
10990 the number of psymtabs and symtabs in each object file.
10991
10992 2003-02-13 Keith R Seitz <keiths@redhat.com>
10993
10994 * main.h (struct captured_main_args): Add interpreter_p.
10995 * main.c (captured_main): Initialize interpreter_p from context.
10996 * gdb.c (main): Set interpreter_p argument.
10997 * Makefile.in (gdb.o): Add dependency for interps.h.
10998
10999 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11000
11001 * event-top.c (cli_command_loop): Delete declaration.
11002 (_initialize_event_loop): Delete function setting event_loop_hook.
11003 * event-top.h (cli_command_loop): Declare. Update copyright.
11004 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11005 * interps.c (current_interp_command_loop): When event_loop_p, call
11006 cli_command_loop.
11007
11008 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11009
11010 * interps.h (interp_command_loop_ftype): Change return type to
11011 void.
11012
11013 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11014
11015 * x86-64-tdep.c (x86_64_extract_return_value)
11016 (x86_64_store_return_value): Use regcache instead of regbuf.
11017 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11018 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11019
11020 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11021
11022 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11023 * aclocal.m4: Regenerate.
11024 * configure: Regenerate.
11025
11026 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11027 TCL_LD_SEARCH_FLAGS.
11028
11029 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11030
11031 * dwarf2cfi.c: Reindented.
11032
11033 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11034
11035 * interps.c (clear_interpreter_hooks): Convert function definition
11036 to ISO C.
11037
11038 2003-02-07 David Carlton <carlton@math.stanford.edu>
11039
11040 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11041
11042 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11043
11044 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11045 (struct type): ...to here.
11046 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11047 field.
11048 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11049 (replace_type): Set length on all type variants for a given type.
11050
11051 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11052
11053 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11054 <sys/stat.h>.
11055 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11056
11057 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11058
11059 * Makefile.in (symm-nat.o): Update dependencies.
11060 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11061 (lynx-nat.o, ia64-linux-nat.): Ditto.
11062 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11063 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11064 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11065
11066 * Makefile.in (inflow_h): Define.
11067 (procfs.o, inflow.o, procfs.o): Update dependencies.
11068 * inftarg.c (child_stop): Delete extern declaration of
11069 inferior_process_group. Include "inflow.h".
11070 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11071 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11072 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11073 (our_process_group, inferior_process_group): Extern declarations.
11074
11075 * procfs.c: Include "gdb_assert.h".
11076
11077 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11078 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11079 * jv-typeprint.c (java_type_print_base): Ditto.
11080 * typeprint.c (typedef_print): Eliminate STREQ.
11081 * cli/cli-script.c (define_command, define_command): Ditto.
11082 * main.c (captured_main): Ditto.
11083 * values.c (lookup_internalvar): Ditto.
11084 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11085 within `if' conditional.
11086 * linespec.c (decode_line_2): Ditto.
11087 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11088 (bfd_openw_with_cleanup): Ditto.
11089
11090 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11091
11092 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11093 legacy_extract_return_value and store_return_value to
11094 legacy_return_value.
11095
11096 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11097
11098 * win32-nat.c (get_relocated_section_addrs): New function. Find
11099 section load addresses for symbol handling in relocated DLLs.
11100 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11101
11102 2003-02-05 Fred Fish <fnf@intrinsity.com>
11103
11104 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11105 '=' and '!='.
11106 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11107 with '&' and '=='.
11108 (angel_RDI_info): Ditto.
11109 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11110 with '&' and '!='.
11111 (threads_continue_all_with_signals): Ditto.
11112
11113 2003-02-05 Jim Ingham <jingham@apple.com>
11114 Keith Seitz <keiths@redhat.com>
11115 Elena Zannoni <ezannoni@redhat.com>
11116 Andrew Cagney <ac131313@redhat.com>
11117
11118 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11119 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11120 (SUBDIR_MI_OBS): Add "mi-interp.o".
11121 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11122 (SFILES): Add "interps.c".
11123 (COMMON_OBS): Add "interps.o".
11124 (interps_h, mi_main_h): Define.
11125 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11126 (mi-main.o, main.o, event-top.o): Update dependencies.
11127 * cli/cli-interp.c: New file.
11128 * interps.h, interps.c: New files.
11129 * top.c: (gdb_init): Don't install the default interpreter, handed
11130 by captured_main.
11131 * main.c: Include "interps.h".
11132 (interpreter_p): Note that it should malloc'ed.
11133 (captured_command_loop): Call current_interp_command_loop.
11134 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11135 xfree and xstrdup when updating interpreter_p. Install the
11136 default interpreter. Add hack to stop mi1's copyright notice
11137 being encoded.
11138 * event-top.h (gdb_setup_readline): Declare.
11139 (gdb_disable_readline): Declare.
11140 * event-top.c: Include "interps.h".
11141 (display_gdb_prompt): Call current_interp_display_prompt_p.
11142 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11143 gdb_stdlog, and gdb_stdtarg.
11144 (_initialize_event_loop): Don't call gdb_setup_readline.
11145 * cli-out.c (cli_out_set_stream): New function.
11146 * cli-out.h (cli_out_set_stream): Declare.
11147
11148 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11149
11150 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11151 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11152 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11153 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11154 config/i386/i386v42mp.mt: Removed.
11155
11156 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11157
11158 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11159 GDB_OSABI_SOLARIS.
11160
11161 2003-02-05 Michael Chastain <mec@shout.net>
11162
11163 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11164 2.12.1 and earlier versions.
11165
11166 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11167
11168 Remove orphaned hosts, targets and files.
11169 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11170 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11171 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11172 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11173 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11174 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11175 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11176 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11177 * config/sparc/tm-sp64sim.h: Delete.
11178 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11179 hosts.
11180 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11181 mips*-dec-mach3* targets.
11182
11183 2003-02-04 Michael Chastain <mec@shout.net>
11184
11185 * NEWS: Fix typo: sepcifying -> specifying.
11186
11187 2003-02-04 Michael Chastain <mec@shout.net>
11188
11189 * dwarfread.c: Add documentation on the state of dwarf-1,
11190 looking towards obsoletion.
11191
11192 2003-02-03 Michael Chastain <mec@shout.net>
11193
11194 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11195 gdb/testsuite/gdb.c++/pr-1023.exp.
11196
11197 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11198
11199 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11200 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11201
11202 * utils.c (init_page_info): Delete reference to MPW in comments.
11203 * main.c (captured_main): Delete #ifdef MPW.
11204
11205 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11206
11207 * NEWS: Note that the m32r-*-elf* is obsolete.
11208 * monitor.c (monitor_expect): Obsolete reference to m32r.
11209 * configure.tgt: Mark m32r-*-elf* as obsolete.
11210 * MAINTAINERS: Mark m32k as obsolete.
11211 * m32r-rom.c: Obsolete file.
11212 * config/m32r/m32r.mt: Obsolete file.
11213 * config/m32r/tm-m32r.h: Obsolete file.
11214 * m32r-stub.c: Obsolete file.
11215 * m32r-tdep.c: Obsolete file.
11216
11217 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11218
11219 * NEWS: Mention that the z8k-zilog-none is obsolete.
11220 * MAINTAINERS: Mark z8k as obsolete.
11221 * configure.tgt: Obsolete the z8k-*-coff* target.
11222 * config/z8k/z8k.mt: Obsolete file.
11223 * config/z8k/tm-z8k.h: Obsolete file.
11224 * z8k-tdep.c: Obsolete file.
11225
11226 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11227
11228 * NEWS: Mention that the mn10200-elf is obsolete.
11229 * configure.tgt: Obsolete mn10200-*-* target.
11230 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11231 mention that the mn10200 is obsolete.
11232 * breakpoint.h: Ditto.
11233 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11234 * config/mn10200/mn10200.mt: Obsolete file.
11235 * config/mn10200/tm-mn10200.h: Obsolete file.
11236 * mn10200-tdep.c: Obsolete file.
11237
11238 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11239
11240 * MAINTAINERS: Mark h8500 as obsolete.
11241 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11242 * findvar.c (value_from_register): Ditto.
11243 * h8500-tdep.c: Mark file as obsolete.
11244 * config/h8500/h8500.mt: Ditto.
11245 * config/h8500/tm-h8500.h: Ditto.
11246 * NEWS: Mention that h8500 is obsolete.
11247
11248 2003-02-04 David Carlton <carlton@math.stanford.edu>
11249
11250 * objfiles.c (allocate_objfile): Always set name. Add comment at
11251 start of function.
11252 * jv-lang.c (get_dynamics_objfile): Add comment.
11253
11254 2003-02-04 David Carlton <carlton@math.stanford.edu>
11255
11256 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11257 * printcmd.c (build_address_symbolic): Replace uses of
11258 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11259 SYMBOL_NAME, and asm_demangle.
11260 Update copyright.
11261
11262 2003-02-04 David Carlton <carlton@math.stanford.edu>
11263
11264 * linespec.c (decode_compound): Extract code into
11265 lookup_prefix_sym.
11266 (lookup_prefix_sym): New function.
11267
11268 2003-02-04 David Carlton <carlton@math.stanford.edu>
11269
11270 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11271 FLOAT_COERCION_BADNESS.
11272 * gdbtypes.c (rank_one_type): Replace all uses of
11273 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11274
11275 2003-02-04 Jim Blandy <jimb@redhat.com>
11276
11277 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11278 section, let dwarf_macinfo_section point to it, not
11279 dwarf_loc_section.
11280
11281 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11282
11283 Pointed out by Anton Blanchard <anton@samba.org>.
11284 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11285 (ppc_linux_at_sigtramp_return_path): Use it.
11286
11287 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11288
11289 * defs.h (streq): Add prototype.
11290 * utils.c (streq): New function.
11291
11292 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11293 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11294 * mdebugread.c (new_symbol): Likewise.
11295 * stabsread.c (define_symbol): Likewise.
11296 * coffread.c (process_coff_symbol): Likewise.
11297 * dwarfread.c (new_symbol): Likewise.
11298
11299 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11300 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11301 here.
11302 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11303 SYMBOL_INIT_DEMANGLED_NAME.
11304 * objfiles.c: Include "hashtab.h".
11305 (allocate_objfile): Call htab_set_functions_ex for the
11306 demangled_names_hash.
11307 (free_objfile): Call htab_delete for the demangled_names_hash.
11308 * objfiles.h (struct htab): Add declaration.
11309 (struct objfile): Add demangled_names_hash.
11310 * symfile.c: Include "hashtab.h".
11311 (reread_symbols): Call htab_delete for the demangled_names_hash.
11312 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11313 SYMBOL_NAME in the bcache.
11314 * symtab.c: Include "hashtab.h". Update comments.
11315 (create_demangled_names_hash, symbol_set_names): New functions.
11316 (symbol_find_demangled_name): New function, broken out from
11317 symbol_init_demangled_names.
11318 (symbol_init_demangled_names): Use it.
11319 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11320 (SYMBOL_SET_NAMES): New macro.
11321 (symbol_set_names): Add prototype.
11322
11323 2003-02-03 Jim Blandy <jimb@redhat.com>
11324
11325 Use a single, consistent representation for an empty minimal
11326 symbol table in an objfile.
11327 * objfiles.c (terminate_minimal_symbol_table): New function.
11328 (allocate_objfile): Call it.
11329 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11330 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11331 non-NULL.
11332 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11333 objfile has minimal symbols, compare minimal_symbol_count to zero,
11334 instead of comparing msymbols with NULL.
11335 * objfiles.c (have_minimal_symbols): Same.
11336 * solib-sunos.c (solib_add_common_symbols): Call
11337 terminate_minimal_symbol_table.
11338 * symfile.c (reread_symbols): Same.
11339
11340 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11341
11342 * s390-tdep.c (s390_address_class_type_flags)
11343 (s390_address_class_type_flags_to_name)
11344 (s390_address_class_name_to_type_flags): New functions.
11345 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11346 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11347
11348 2003-02-03 Michael Snyder <msnyder@redhat.com>
11349
11350 * arm-tdep.c: Fix spell-o in comment.
11351
11352 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11353
11354 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11355 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11356 error messages to contain BFD filename.
11357
11358 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11359
11360 Fix PR gdb/742 gdb/743 gdb/877
11361 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11362 (do_mixed_source_and_assembly): Use
11363 make_cleanup_ui_out_tuple_begin_end and
11364 make_cleanup_ui_out_tuple_begin_end.
11365 (do_mixed_source_and_assembly): Ditto.
11366 * thread.c (do_captured_list_thread_ids): Ditto.
11367 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11368 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11369 ui_out_tuple_end): Delete prototypes.
11370 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11371 ui_out_list_end, ui_out_tuple_end): Delete.
11372
11373 From Kevin Buettner <kevinb@redhat.com>:
11374 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11375 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11376 (do_cleanup_table_end): New functions.
11377 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11378 Use cleanups to invoke_ui_out_tuple_end().
11379 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11380 * cli/cli-setshow.c (cmd_show_list): Use
11381 make_cleanup_ui_out_tuple_begin_end.
11382
11383 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11384
11385 * frame.c (frame_unwind_register): New function.
11386 (frame_unwind_unsigned_register): Use.
11387 (frame_unwind_signed_register): Use.
11388 (frame_read_register): New function.
11389 * frame.h (frame_unwind_register): Declare.
11390 (frame_read_register): Declare.
11391
11392 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11393 and frame_unwind_register instead of read_memory, write_register
11394 and deprecated_write_register_bytes.
11395
11396 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11397
11398 * frame.h: Note that namelen can be negative.
11399 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11400 NAME's length.
11401
11402 * NEWS: Mention that the d10v's `regs' command is deprecated.
11403 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11404 (d10v_print_registers_info): New function.
11405 (show_regs): Call d10v_print_registers_info.
11406 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11407
11408 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11409
11410 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11411 lost in the previous patch.
11412
11413 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11414
11415 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11416 * stack.c (print_frame_info_base): Output complete FRAME tuple
11417 for synthesized frames.
11418
11419 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11420
11421 * mips-nat.c (zerobuf): Delete.
11422 (fetch_inferior_registers): Alloc local zerobuf.
11423 (fetch_core_registers): Alloc local zerobuf.
11424 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11425 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11426 * thread-db.c (thread_db_store_registers): Ditto.
11427 * sh-tdep.c (sh_do_register): Ditto.
11428 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11429 * remote-sim.c (gdbsim_store_register): Ditto.
11430 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11431 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11432 * monitor.c (monitor_supply_register): Ditto.
11433 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11434 * mips-nat.c (fetch_inferior_registers): Ditto.
11435 * m68klinux-nat.c (fetch_register): Ditto.
11436 * lynx-nat.c (fetch_inferior_registers): Ditto.
11437 (fetch_inferior_registers): Ditto.
11438 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11439 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11440 (hpux_thread_store_registers): Ditto.
11441 * hppah-nat.c (fetch_register): Ditto.
11442 * hppab-nat.c (fetch_register): Ditto.
11443 * hppa-tdep.c (pa_register_look_aside): Ditto.
11444 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11445 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11446
11447 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11448
11449 * gdbarch.sh: Explictly specify all method levels. When a
11450 variable with an empty level, provide a non-multi-arch default.
11451 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11452 * gdbarch.h: Re-generate.
11453 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11454 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11455
11456 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11457
11458 * defs.h (host_pointer_to_address): Delete declaration.
11459 (address_to_host_pointer): Delete declaration.
11460 * utils.c (host_pointer_to_address): Delete function.
11461 (address_to_host_pointer): Delete function.
11462 * procfs.c (procfs_address_to_host_pointer): New function.
11463 * procfs.c (proc_set_watchpoint): Use.
11464 (procfs_can_use_hw_breakpoint): Update comments.
11465 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11466 (som_solib_add): Use.
11467 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11468 * hppa-tdep.c (unwind_command): Use.
11469
11470 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11471
11472 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11473 strlen d_name.
11474
11475 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11476 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11477 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11478 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11479 (define_symbol): Update.
11480 * symfile.c (generic_load): Remove references to nindy.
11481 * symtab.c: Remove references to nindy.
11482
11483 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11484
11485 * infcmd.c (print_float_info): Delete code conditional on
11486 FLOAT_INFO.
11487 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11488 * config/m68k/nm-apollo68b.h: Ditto.
11489 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11490 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11491 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11492
11493 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11494
11495 * config/i386/tm-i386os9k.h: Removed.
11496
11497 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11498 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11499 they're identical to i[3456]86-*-sysv* now.
11500 * config/i386/i386v32.mh: Removed.
11501 * config/i386/xm-i386v32.h: Removed.
11502 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11503
11504 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11505
11506 * config/i386/i386dgux.mh: Removed.
11507 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11508
11509 * configure.in: Fix typo.
11510 * configure: Regenerated.
11511
11512 2003-01-31 David Carlton <carlton@math.stanford.edu>
11513
11514 * dwarf2read.c (dwarf2_locate_sections): Set
11515 dwarf_ranges_section.
11516
11517 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11518
11519 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11520 * utils.c: Update comments documenting legitimate uses of PTR.
11521
11522 * utils.c: Re-indent.
11523
11524 * config/djgpp/fnchange.lst: Delete nindy files.
11525 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11526 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11527 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11528 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11529 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11530 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11531 * Makefile.in (init.c): Remove nindy references.
11532 (saber_gdb): Delete rule.
11533 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11534 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11535 and a68v-nat.c.
11536 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11537 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11538 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11539 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11540 nindy-share/stop.h.
11541 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11542 * saber.suppress: Delete file.
11543
11544 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11545
11546 * dbxread.c (stabs_data): New static variable.
11547 (fill_symbuf): Support an in-memory buffer for stabs data.
11548 (stabs_seek): New function.
11549 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11550 (read_ofile_symtab): Use stabs_seek.
11551 (elfstab_build_psymtabs): Take an asection* instead of
11552 an offset and size. Relocate the stabs data if necessary.
11553 Save the section* for dbx_psymtab_to_symtab.
11554 * dwarf2read.c: Add section variables for each debug section.
11555 (dwarf2_locate_sections): Fill them in.
11556 (dwarf2_read_section): Take an asection* argument.
11557 Relocate the section contents if necessary.
11558 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11559 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11560 it to dwarf2_read_section.
11561 (dwarf2_build_frame_info): Update callers.
11562 * elfread.c (elf_symfile_read): Update call to
11563 elfstab_build_psymtabs.
11564 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11565 (DBX_STAB_SECTION): New macro.
11566 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11567 * symfile.c (symfile_dummy_outputs): New function.
11568 (symfile_relocate_debug_section): New function.
11569 * symfile.h (symfile_relocate_debug_section): Add prototype.
11570
11571 2003-01-31 Richard Henderson <rth@redhat.com>
11572
11573 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11574 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11575 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11576 * alpha-tdep.c (alpha_register_name): Add "unique".
11577 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11578 (ALPHA_UNIQUE_REGNUM): New.
11579 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11580
11581 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11582
11583 * README: Remove reference to Ericsson 1800 monitor.
11584 * Makefile.in (remote-es.o): Delete rule.
11585 (ALLDEPFILES): Delete remote-es.c.
11586 * remote-es.c: Delete file.
11587 * config/m68k/es1800.mt: Delete file.
11588 * config/djgpp/fnchange.lst: Update.
11589 * configure.tgt: Delete m68*-ericsson-* target.
11590
11591 2003-01-31 Adam Fedor <fedor@gnu.org>
11592
11593 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11594 Remove duplicate/shadowing variable of same name.
11595
11596 2003-01-30 Jim Blandy <jimb@redhat.com>
11597
11598 * symfile.c (find_separate_debug_file): Assert that the objfile's
11599 directory name we compute ends with a slash, and then assume that
11600 that's so everywhere we use it.
11601
11602 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11603
11604 * valops.c (value_assign): Flush frame cache after stores to memory
11605 also.
11606
11607 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11608
11609 * Makefile.in (mon960-rom.o): Delete rule.
11610 * mon960-rom.c: Delete file.
11611
11612 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11613
11614 * d10v-tdep.c: Include "frame-unwind.h".
11615 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11616 list.
11617 (next_addr, uses_frame): Delete.
11618 (struct d10v_unwind_cache): Define.
11619 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11620 Use info instead of next_addr and uses_frame globals.
11621 (d10v_frame_init_saved_regs): Delete function.
11622 (d10v_init_extra_frame_info): Delete function.
11623 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11624 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11625 init_frame_pc or frame_saved_pc.
11626 (d10v_pop_frame): Delete function.
11627 (do_d10v_pop_frame): Delete function.
11628 (d10v_frame_chain): Delete function.
11629 (d10v_frame_chain_valid): Delete function.
11630 (d10v_frame_pc_unwind): New function.
11631 (d10v_frame_id_unwind): New function.
11632 (saved_regs_unwinder): New function.
11633 (d10v_frame_register_unwind): New function.
11634 (d10v_frame_pop): New function.
11635 (d10v_frame_unwind): New variable.
11636 (d10v_frame_p): New function.
11637 (d10v_frame_saved_pc): Delete function.
11638 * Makefile.in (d10v-tdep.o): Update dependencies.
11639
11640 2003-01-30 J. Brobecker <brobecker@gnat.com>
11641
11642 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11643 causing some regressions due to a change in the default value
11644 for this macro.
11645
11646 2003-01-29 Richard Henderson <rth@redhat.com>
11647 Elena Zannoni <ezannoni@redhat.com>
11648 Daniel Jacobowitz <drow@mvista.com>
11649
11650 Fix PR gdb/961.
11651 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11652 variables.
11653 (RANGES_SECTION): New.
11654 (dwarf_ranges_buffer): New variable.
11655 (struct comp_unit_head): Add member "die".
11656 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11657 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11658 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11659 (dwarf2_locate_sections): Likewise.
11660 (dwarf2_build_psymtabs): Read .debug_ranges.
11661 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11662 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11663 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11664 Look for DW_AT_ranges and return the bounding box.
11665
11666 2003-01-29 Brian Ford <ford@vss.fsi.com>
11667
11668 * win32-nat.c (cygwin_pid): Removed as unused.
11669 (child_attach): Try fall back to Cygwin pid.
11670
11671 2003-01-29 Jim Blandy <jimb@redhat.com>
11672
11673 * objfiles.h (struct objfile): Doc fix.
11674
11675 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11676
11677 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11678 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11679 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11680 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11681 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11682 (FRAME_SAVED_PC): Change to a function with predicate.
11683 * gdbarch.h, gdbarch.c: Re-generate.
11684
11685 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11686
11687 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11688
11689 * complaints.c (complain): Delete function.
11690 * complaints.h (struct deprecated_complaint): Delete definition.
11691 (complain): Delete declaration.
11692
11693 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11694
11695 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11696 dummy frames.
11697
11698 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11699
11700 * sentinel-frame.h, sentinel-frame.c: New files.
11701 * Makefile.in (frame.o): Update dependencies.
11702 (SFILES): Add sentinel-frame.c.
11703 (sentinel_frame_h): Define.
11704 (COMMON_OBS): Add sentinel-frame.o.
11705 (sentinel-frame.o): Specify dependencies.
11706 * frame.c: Include "sentinel-frame.h".
11707 (frame_register_unwind): Rewrite assuming that there is always a a
11708 ->next frame.
11709 (frame_register, generic_unwind_get_saved_register): Ditto.
11710 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11711 (create_sentinel_frame, unwind_to_current_frame): New functions.
11712 (get_current_frame): Rewrite using create_sentinel_frame and
11713 unwind_to_current_frame. When possible, always create a frame.
11714 (create_new_frame): Set next to the sentinel frame.
11715 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11716 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11717 ID cache when necessary.
11718 (frame_saved_regs_id_unwind): Use frame_relative_level.
11719 (deprecated_generic_get_saved_register): Use frame_relative_level,
11720 get_frame_saved_regs, get_frame_pc, get_frame_base and
11721 get_next_frame.
11722 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11723 frame_register.
11724
11725 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11726
11727 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11728
11729 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11730
11731 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11732 (maintenance_set_profile_cmd): Use error () instead of warning ().
11733
11734 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11735
11736 * configure.in: Check that -pg works if using --enable-profiling.
11737 Check for monstartup and _mcleanup regardless of --enable-profiling.
11738 * maint.c: Check for monstartup and _mcleanup before using them.
11739 * config.in: Regenerated.
11740 * configure: Regenerated.
11741
11742 2003-01-24 Nick Clifton <nickc@redhat.com>
11743
11744 * Add sh2e support:
11745
11746 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11747
11748 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11749 (sh2e_show_regs): New.
11750 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11751 * config/sh/tm-sh.h: Added sh2e to comments.
11752
11753 2003-01-23 Jim Blandy <jimb@redhat.com>
11754
11755 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11756 symbols found)" message here; we haven't checked for a separate
11757 debug info file yet, so we don't know yet.
11758 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11759 we've looked everywhere. Also, there's no need to print a special
11760 message when we're loading the separate debug info file: the one
11761 symbol_file_add prints is fine.
11762
11763 2003-01-23 Alexander Larsson <alexl@redhat.com>
11764 Jim Blandy <jimb@redhat.com>
11765
11766 Add support for executables whose debug info has been separated
11767 out into a separate file, leaving only a link behind.
11768 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11769 and separate_debug_objfile_backlink.
11770 (put_objfile_before): New declaration.
11771 * symfile.c: #include "filenames.h".
11772 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11773 debug info in a separate file, read that, too. Save the addrs
11774 argument, so we can use it again to read the separated debug info;
11775 syms_from_objfile modifies the table we pass it.
11776 (reread_symbols): After re-reading an objfile, call
11777 reread_separate_symbols to refresh its separate debug info
11778 objfile, if it has one.
11779 (reread_separate_symbols, find_separate_debug_file,
11780 get_debug_link_info, separate_debug_file_exists): New functions.
11781 (debug_file_directory): New global var.
11782 (_initialize_symfile): Initialize debug_file_directory, and
11783 provide the new `set debug-file-directory' command to let the user
11784 change it.
11785 * objfiles.c (free_objfile): If this objfile has its debug info in
11786 a separate objfile, free that one too. If this is itself a
11787 separate debug info objfile, clear our parent's backlink.
11788 (put_objfile_before): New function.
11789 * utils.c (gnu_debuglink_crc32): New function.
11790 * defs.h (gnu_debuglink_crc32): New declaration.
11791 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11792 * configure.in: Handle --with-separate-debug-dir config option.
11793 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11794 * acconfig.h (DEBUGDIR): New macro.
11795 * configure, aclocal.m4, config.in: Regenerated.
11796
11797 2003-01-22 Jim Blandy <jimb@redhat.com>
11798
11799 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11800 like the old symbol_file_add, but taking new arguments: you can
11801 now pass in either a `struct section_addr_info' list to say where
11802 each section is loaded, or a `struct section_offsets' table. Pass
11803 these new arguments through to syms_from_objfile as appropriate.
11804 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11805 with the appropriate quiescent values for the new arguments.
11806
11807 * symfile.c: #include "gdb_assert.h".
11808 (syms_from_objfile): Add the ability to pass in a section offset
11809 table directly, as an alternative to the section_addr_info table.
11810 Document arguments better.
11811 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11812 * symfile.h (syms_from_objfile): Update declaration.
11813 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11814 syms_from_objfile.
11815 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11816
11817 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11818
11819 Original patch by Tom Tromey <tromey@cygnus.com> and
11820 Jason Molenda <jmolenda@apple.com>.
11821 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11822 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11823 * NEWS: Mention profiling.
11824 * configure.in (--enable-gdbtk): Fix typo.
11825 (--enable-profiling): New. Set PROFILE_CFLAGS.
11826 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11827 Fill in function.
11828 (profiling_state): New variable.
11829 (mcleanup_wrapper): New function.
11830 (_initialize_maint): Remove NOTYET, fix call to
11831 add_setshow_boolean_cmd for "maint set profile".
11832 * configure: Regenerated.
11833
11834 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11835
11836 * Makefile.in (install-gdbtk): Install PNG images too.
11837
11838 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11839
11840 * exec.c (text_start): Delete global variable.
11841 (exec_file_attach): Make text_start local to the function.
11842 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11843 * valops.c (hand_function_call): Delete code that handles
11844 BEFORE_TEXT_END and AFTER_TEXT_END.
11845 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11846 of CALL_DUMMY_LOCATION.
11847 * gdbarch.c: Regenerate.
11848 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11849 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11850 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11851 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11852 (text_end): Delete extern declaration.
11853
11854 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11855
11856 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11857 * blockframe.c (backtrace_below_main): Move to "frame.c".
11858 (frame_chain_valid): Delete check for backtrace_below_main.
11859 (_initialize_blockframe): Delete initialization, move ``set
11860 backtrace-below-main'' command to "frame.c".
11861 (do_flush_frames_sfunc): Delete function.
11862 * frame.c: Include "command.h" and "gdbcmd.h".
11863 (frame_type_from_pc): New function.
11864 (create_new_frame): Use frame_type_from_pc.
11865 (legacy_get_prev_frame): New function.
11866 (get_prev_frame): Rewrite. When an old style frame, call
11867 legacy_get_prev_frame. Otherwize, unwind the PC first.
11868 (_initialize_frame): Add ``set backtrace-below-main'' command.
11869 * Makefile.in (frame.o): Update dependencies.
11870
11871 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11872
11873 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11874 DEPRECATED_REGISTERS_INFO.
11875
11876 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11877
11878 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11879 Maintainers'. Update `Various Maintainers'.
11880
11881 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11882
11883 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11884 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11885 Suppress actual parameters when `-'.
11886 * gdbarch.h, gdbarch.c: Regenerate.
11887
11888 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11889
11890 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11891 code handling dummy frames.
11892
11893 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11894
11895 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11896 (struct frame_unwind): Add field pop.
11897 * frame.h (frame_pop): Declare.
11898 * frame.c (frame_saved_regs_pop): New function.
11899 (trad_frame_unwinder): Add frame_saved_regs_pop.
11900 (frame_pop): New function.
11901 * dummy-frame.c (dummy_frame_pop): New function.
11902 (discard_innermost_dummy): New function.
11903 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11904 (dummy_frame_unwind): Add dummy_frame_pop.
11905 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11906 * valops.c (hand_function_call): Ditto.
11907 * stack.c (return_command): Ditto.
11908
11909 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11910
11911 * cris-tdep.c: Fix function declaration indentation.
11912 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11913 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11914 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11915 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11916 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11917 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11918
11919 2003-01-18 Michael Chastain <mec@shout.net>
11920
11921 * README (Unpacking and Installation -- quick overview):
11922 Warn against ".../gdb-5.3/gdb/configure".
11923
11924 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11925
11926 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11927 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11928 (struct frame_unwind): Declare opaque.
11929 (dummy_frame_p): Declare function.
11930 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11931 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11932 * dummy-frame.c: Include "frame-unwind.h".
11933 (dummy_frame_p): New function.
11934 (dummy_frame_unwind): New variable.
11935 * frame.c: Include "frame-unwind.h".
11936 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11937 to use the new unwind field.
11938 (set_unwind_by_pc): Delete function.
11939 (create_new_frame, get_prev_frame): Set unwind field using
11940 frame_unwind_find_by_pc.
11941 (trad_frame_unwind, trad_frame_unwinder): New variables.
11942 * frame.h (trad_frame_unwind): Declare variable.
11943 (frame_id_unwind_ftype): Delete declaration.
11944 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11945 (struct frame_unwind): Declare opaque.
11946 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11947 register_unwind with a single unwind pointer.
11948 * frame-unwind.h, frame-unwind.c: New files.
11949 * Makefile.in (SFILES): Add frame-unwind.c.
11950 (frame_unwind_h): Define.
11951 (COMMON_OBS): Add frame-unwind.o.
11952 (frame-unwind.o): Specify dependencies.
11953 (frame.o, dummy-frame.o): Update dependencies.
11954
11955 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11956
11957 * ada-valprint.c: Eliminate PTR.
11958 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11959 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11960 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11961 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11962 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11963 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11964 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11965
11966 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11967
11968 * main.c (captured_main): Don't use PTR.
11969 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11970 * gdbtypes.c (lookup_primitive_typename): Ditto.
11971 (lookup_struct_elt_type): Ditto.
11972 * f-valprint.c (info_common_command): Ditto.
11973 (list_all_visible_commons): Ditto.
11974 * jv-typeprint.c (java_type_print_base): Ditto.
11975
11976 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11977 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11978 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11979 i386-interix-nat.c and i386-interix-tdep.c. Rename
11980 m68klinux-nat.c and m68klinux-tdep.c. Rename
11981 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11982 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11983 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11984 * main.c (captured_main): Use xfree, not free.
11985
11986 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11987
11988 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11989 ID back using a parameter.
11990 * frame.c (frame_id_unwind): Update call.
11991 (frame_saved_regs_id_unwind): Update.
11992 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11993 * dummy-frame.h (struct frame_id): Add opaque declaration.
11994 (dummy_frame_id_unwind): Update declaration.
11995
11996 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11997
11998 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11999
12000 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12001
12002 * MAINTAINERS (Stephen P. Smith): Updated email address.
12003
12004 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12005
12006 Fix PR gdb/898
12007 * breakpoint.c (until_break_command): Add new argument. Use it to
12008 decide whether to stop only at the current frame or not.
12009 * breakpoint.h (until_break_command): Update prototype.
12010 * infcmd.c (until_command): Add new argument to until_break_command
12011 call.
12012 (advance_command): New function.
12013 (_initialize_infcmd): Update help string for 'until' command.
12014 Add new 'advance' command.
12015
12016 2003-01-14 David Carlton <carlton@math.stanford.edu>
12017
12018 * linespec.c (decode_line_1): Normalize comments.
12019 (set_flags): Ditto.
12020 (locate_first_half): Ditto.
12021 (decode_compound): Ditto.
12022 (symtab_from_filename): Ditto.
12023 (decode_all_digits): Ditto.
12024 (decode_dollar): Ditto.
12025 (find_methods): Ditto.
12026 (find_toplevel_char): Ditto.
12027
12028 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12029
12030 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12031 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12032 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12033 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12034 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12035 * language.c, language.h, m32r-tdep.c: Update copyright.
12036 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12037 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12038 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12039 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12040 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12041 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12042
12043 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12044
12045 * stabsread.h (process_later, resolve_cfront_continuation):
12046 Obsolete.
12047 Update copyright years.
12048 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12049 Update copyright year.
12050 * dbxread.c(struct cont_elem): Obsolete.
12051 (process_later, process_now): Obsolete functions.
12052 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12053 Update copyright year.
12054 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12055 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12056 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12057 (parse_partial_symbols): Obsolete cfront support.
12058 * stabsread.c
12059 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12060 macros.
12061 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12062 read_cfront_baseclasses, read_cfront_member_functions,
12063 resolve_cfront_continuation,read_cfront_static_fields,
12064 copy_cfront_struct_fields): Obsolete functions.
12065 (define_symbol, read_one_struct_field): Obsolete cfront support.
12066 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12067 Update Copyright year.
12068
12069 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12070
12071 * stack.c (print_frame_info, print_stack_frame_base_stub,
12072 print_stack_frame_base, show_and_print_stack_frame_stub,
12073 show_and_print_stack_frame, print_only_stack_frame_stub,
12074 print_only_stack_frame): Delete functions.
12075 (print_stack_frame_stub): Call print_frame_info instead of
12076 print_frame_info_base.
12077 (print_frame_info_base): Rename to print_frame_info.
12078 (backtrace_command_1): Call print_frame_info, instead of
12079 print_frame_info_base.
12080 (current_frame_command): Call print_stack_frame, instead of
12081 print_only_stack_frame.
12082 (frame_command): Call print_stack_frame, instead of
12083 show_and_print_stack_frame.
12084 (up_command): Ditto.
12085 (down_command): Ditto.
12086 * frame.h (print_only_stack_frame): Delete prototype.
12087 * infrun.c (normal_stop): Call print_stack_frame, instead of
12088 show_and_print_stack_frame.
12089 * thread.c (info_threads_command): Call print_stack_frame, instead
12090 of print_only_stack_frame.
12091
12092 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12093
12094 * README (Graphical interface to GDB): Update URL. Point at
12095 gdb/links/.
12096
12097 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12098 version match.
12099
12100 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12101
12102 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12103 lines.
12104
12105 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12106
12107 * thread-db.c (attach_thread): Prototype.
12108 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12109 thread information (ti), and valid flags (th_valid, ti_valid).
12110 (attach_thread): Move target_pid_to_str call to after the thread
12111 is added to GDB's list. Initialize the cache.
12112 (thread_get_info_callback, thread_db_map_id2thr)
12113 (thread_db_get_info): New functions.
12114 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12115 (thread_db_store_registers, thread_db_thread_alive)
12116 (thread_db_get_thread_local_address): Use them.
12117 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12118 of calling error() for threads in unknown state.
12119
12120 (clear_lwpid_callback): New function.
12121 (thread_db_resume): Use it to clear the cache.
12122
12123 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12124
12125 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12126 (resume_callback): Remove dead code.
12127
12128 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12129
12130 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12131 predicate.
12132 * gdbarch.h, gdbarch.c: Regenerate.
12133 * stack.c (frame_info): Only initialize the saved registers when
12134 FRAME_INIT_SAVED_REGS_P.
12135 * frame.c (frame_saved_regs_register_unwind): Assert
12136 FRAME_INIT_SAVED_REGS_P.
12137 (deprecated_generic_get_saved_register): Ditto.
12138
12139 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12140
12141 * source.c (openp): Squelch warning about "filename".
12142
12143 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12144
12145 * source.c (openp): If the file does not exist don't necessarily
12146 search the path.
12147
12148 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12149
12150 Fix PR gdb/872.
12151 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12152 (integer_types_same_name_p): New function.
12153 (rank_one_type): Use it.
12154 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12155
12156 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12157
12158 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12159 variables.
12160 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12161 * configure.in: Add --with-sysroot.
12162 * configure: Regenerated.
12163 * main.c (gdb_sysroot): New variable.
12164 (captured_main): Initialize gdb_sysroot.
12165 * defs.h (gdb_sysroot): New extern declaration.
12166 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12167
12168 2003-01-12 Michael Chastain <mec@shout.net>
12169
12170 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12171
12172 2003-01-12 Michael Chastain <mec@shout.net>
12173
12174 * top.c (print_gdb_version): Bump copyright year to 2003.
12175
12176 2003-01-12 David Carlton <carlton@bactrian.org>
12177
12178 * linespec.c (symtab_from_filename): Rename variable 's' to
12179 'file_symtab'.
12180
12181 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12182
12183 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12184 dummy frame.
12185 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12186
12187 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12188
12189 * d10v-tdep.c: Include "gdb_assert.h".
12190 (d10v_store_return_value): Rewrite to match current interface.
12191 (d10v_extract_struct_value_address): Ditto.
12192 (d10v_extract_return_value): Ditto.
12193 (d10v_gdbarch_init): Set store_restore_value,
12194 extract_struct_value_address and extract_return_value.
12195
12196 2003-01-12 J. Brobecker <brobecker@gnat.com>
12197
12198 * hpread.c (set_namestring): New procedure replacing the
12199 SET_NAMESTRING macro.
12200 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12201 by calls to set_namestring.
12202
12203 2003-01-11 J. Brobecker <brobecker@gnat.com>
12204
12205 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12206 a compilation warning.
12207 (hpread_process_one_debug_symbol): Likewise.
12208
12209 2003-01-10 David Carlton <carlton@math.stanford.edu>
12210
12211 * linespec.c (decode_line_1): Rename variable 's' to
12212 'file_symtab'.
12213 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12214 (decode_dollar): Ditto.
12215 (decode_variable): Ditto.
12216 (symbol_found): Ditto.
12217
12218 2003-01-09 Michael Chastain <mec@shout.net>
12219
12220 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12221
12222 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12223
12224 * win32-nat.c (set_process_privilege): New function.
12225 (child_attach): Call set_process_privilege() to enable the
12226 SE_DEBUG_NAME user privilege if available in process token.
12227
12228 2003-01-10 J. Brobecker <brobecker@gnat.com>
12229
12230 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12231 compilation error in the previous revision.
12232
12233 2003-01-09 David Carlton <carlton@math.stanford.edu>
12234
12235 * linespec.c: Update copyright.
12236
12237 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12238
12239 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12240 than inferior_ptid.
12241 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12242
12243 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12244
12245 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12246 Update comments.
12247 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12248 (frame_saved_regs_zalloc): Update.
12249 (frame_saved_regs_register_unwind): Update.
12250 (create_new_frame): Update.
12251 (get_prev_frame): Update.
12252 (frame_extra_info_zalloc): Update.
12253 (deprecated_get_frame_saved_regs): Update.
12254 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12255 * cris-tdep.c: Update comment.
12256
12257 * somsolib.h: Fix function indentation.
12258 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12259 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12260 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12261 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12262 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12263
12264 * infrun.c (follow_fork): Use ISO C definition.
12265 * expprint.c (print_subexp): Use xfree instead of free.
12266 * charset.c: Include "gdb_string.h" instead of <string.h>.
12267 (register_iconv_charsets): Use ISO C definition.
12268 (host_charset, target_charset): Ditto.
12269 * Makefile.in (charset.o): Update dependencies.
12270 (mi-cmd-env.o): Update dependencies.
12271
12272 2003-01-08 Andrew Cagney <cagney@redhat.com>
12273
12274 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12275 get_frame_base.
12276
12277 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12278
12279 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12280 build directories. Save edited gdb output in Mbuild.log. If a
12281 build fails, remove any final GDB executable.
12282
12283 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12284
12285 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12286 replacing hex constants with function names and stripping leading
12287 file name directory prefixes.
12288
12289 2003-01-08 Andrew Cagney <cagney@redhat.com>
12290
12291 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12292 get_frame_base.
12293
12294 2003-01-08 David Carlton <carlton@math.stanford.edu>
12295
12296 * linespec.c (decode_line_1): Move code into decode_variable.
12297 (decode_variable): New function.
12298
12299 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12300
12301 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12302
12303 2003-01-08 Andrew Cagney <cagney@redhat.com>
12304
12305 * cris-tdep.c (cris_frame_init_saved_regs): Use
12306 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12307 saved_regs buffer.
12308 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12309 (sh64_nofp_frame_init_saved_regs): Ditto.
12310 (sh_fp_frame_init_saved_regs): Ditto.
12311 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12312 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12313 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12314 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12315
12316 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12317
12318 * minsyms.c (lookup_minimal_symbol): Update comment.
12319 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12320 (lookup_minimal_symbol_solib_trampoline): Likewise.
12321
12322 2003-01-08 Andrew Cagney <cagney@redhat.com>
12323
12324 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12325 frame_relative_level.
12326
12327 * alpha-tdep.c: Use get_frame_extra_info.
12328 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12329 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12330 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12331 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12332
12333 * alpha-tdep.c: Use get_next_frame.
12334 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12335 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12336 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12337 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12338 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12339 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12340 * xstormy16-tdep.c: Ditto.
12341
12342 2003-01-07 Andrew Cagney <cagney@redhat.com>
12343
12344 * alpha-tdep.c: Use get_frame_base.
12345 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12346 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12347 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12348 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12349 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12350 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12351 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12352 * config/sparc/tm-sparc.h: Ditto.
12353
12354 2003-01-07 Andrew Cagney <cagney@redhat.com>
12355
12356 * frame.c (deprecated_get_frame_context): New function.
12357 (deprecated_set_frame_context): New function.
12358 * frame.h (deprecated_get_frame_context): Declare.
12359 (deprecated_set_frame_context): Declare.
12360 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12361 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12362
12363 2003-01-07 Andrew Cagney <cagney@redhat.com>
12364
12365 * frame.c (deprecated_set_frame_next_hack): New function.
12366 (deprecated_set_frame_prev_hack): New function.
12367 * frame.h (deprecated_set_frame_next_hack): Declare.
12368 (deprecated_set_frame_prev_hack): Declare.
12369 * mcore-tdep.c (analyze_dummy_frame): Use
12370 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12371 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12372
12373 2003-01-07 David Carlton <carlton@math.stanford.edu>
12374
12375 * linespec.c (decode_line_1): Move code into decode_dollar.
12376 (decode_dollar): New function.
12377
12378 2003-01-07 Andrew Cagney <cagney@redhat.com>
12379
12380 * arm-tdep.c (arm_init_extra_frame_info): Use
12381 deprecated_update_frame_base_hack.
12382 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12383 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12384 (fix_frame_pointer): Ditto.
12385 (mn10300_analyze_prologue): Ditto.
12386
12387 2003-01-07 Andrew Cagney <cagney@redhat.com>
12388
12389 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12390 extra_info using frame_extra_info_zalloc.
12391 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12392 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12393 (sh64_init_extra_frame_info): Ditto.
12394 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12395 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12396 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12397 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12398 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12399 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12400 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12401 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12402 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12403 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12404 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12405 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12406
12407 * mn10300-tdep.c (analyze_dummy_frame): Use
12408 deprecated_set_frame_extra_info_hack.
12409 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12410
12411 2003-01-07 J. Brobecker <brobecker@gnat.com>
12412
12413 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12414 class is not scText. These do not define "real" procedures.
12415 (parse_partial_symbols): Likewise.
12416
12417 2003-01-06 Michael Snyder <msnyder@redhat.com>
12418
12419 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12420
12421 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12422
12423 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12424 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12425 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12426 deprecated_frame_xmalloc_with_cleanup.
12427 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12428 deprecated_frame_xmalloc.
12429 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12430 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12431
12432 2003-01-06 Andrew Cagney <cagney@redhat.com>
12433
12434 * x86-64-linux-tdep.c: Include "osabi.h".
12435 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12436
12437 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12438
12439 2003-01-06 Andrew Cagney <cagney@redhat.com>
12440
12441 * MAINTAINERS (Target Instruction Set Architectures): Update
12442 arm-elf. Can be built with -Werror, has been multiarched.
12443
12444 * value.h (unpack_long): Make buffer parameter constant.
12445 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12446 * scm-lang.h (scm_parse): Ditto.
12447 * defs.h (extract_typed_address, extract_address): Ditto.
12448 (extract_long_unsigned_integer): Ditto.
12449 * inferior.h (unsigned_pointer_to_address): Ditto.
12450 (signed_pointer_to_address): Ditto.
12451 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12452 * gdbarch.h, gdbarch.c: Regenerate.
12453 * findvar.c (extract_long_unsigned_integer): Update.
12454 (extract_address): Update.
12455 (extract_typed_address): Update.
12456 (unsigned_pointer_to_address): Update.
12457 * values.c (unpack_long): Update.
12458 (unpack_double): Update.
12459 (unpack_pointer): Update.
12460 (unpack_field_as_long): Update.
12461 * d10v-tdep.c (d10v_pointer_to_address): Update.
12462 * avr-tdep.c (avr_pointer_to_address): Update.
12463 * scm-lang.c (scm_unpack): Update.
12464 * findvar.c (signed_pointer_to_address): Update.
12465
12466 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12467
12468 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12469 since it is in i386-tdep.c.
12470
12471 2003-01-06 J. Brobecker <brobecker@gnat.com>
12472
12473 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12474 failure introduced in the previous change.
12475
12476 2003-01-05 Michael Chastain <mec@shout.net>
12477
12478 * README: Remove references to deleted remote-*.c files:
12479 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12480 remote-nrom.c, remote-os9k.c, remote-udi.c.
12481
12482 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12483
12484 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12485 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12486 i386_get_longjmp_target.
12487
12488 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12489
12490 * arm-tdep.c (prologue_cache): Change to a pointer.
12491 (_initialize_arm_tdep): Allocate prologue_cache.
12492 (check_prologue_cache): Update.
12493 (save_prologue_cache): Update.
12494 (arm_gdbarch_init): Update.
12495
12496 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12497
12498 * stabsread.c (update_method_name_from_physname): Call complaint()
12499 instead of error.
12500
12501 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12502
12503 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12504 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12505 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12506
12507 * blockframe.c: Include "gdbcmd.h" and "command.h".
12508 (backtrace_below_main): New variable.
12509 (file_frame_chain_valid, func_frame_chain_valid)
12510 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12511 (generic_func_frame_chain_valid): Remove functions.
12512 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12513 (_initialize_blockframe): New function.
12514 * Makefile.in (blockframe.o): Update dependencies.
12515 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12516 comment. Call frame_chain_valid ().
12517 * frame.h: Remove old prototypes. Add prototype for
12518 frame_chain_valid and update comments to match.
12519 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12520 Remove old comment.
12521 * gdbarch.h: Regenerated.
12522 * gdbarch.c: Regenerated.
12523
12524 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12525 set_gdbarch_frame_chain_valid.
12526 * avr-tdep.c (avr_gdbarch_init): Likewise.
12527 * cris-tdep.c (cris_gdbarch_init): Likewise.
12528 * frv-tdep.c (frv_gdbarch_init): Likewise.
12529 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12530 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12531 (i386_nw_init_abi): Likewise.
12532 (i386_gdbarch_init): Likewise.
12533 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12534 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12535 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12536 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12537 * mips-tdep.c (mips_gdbarch_init): Likewise.
12538 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12539 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12540 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12541 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12542 * s390-tdep.c (s390_gdbarch_init): Likewise.
12543 * sh-tdep.c (sh_gdbarch_init): Likewise.
12544 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12545 * v850-tdep.c (v850_gdbarch_init): Likewise.
12546 * vax-tdep.c (vax_gdbarch_init): Likewise.
12547 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12548
12549 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12550 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12551 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12552 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12553 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12554 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12555 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12556 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12557
12558 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12559
12560 * Makefile.in (acconfig_h): Remove incorrect macro.
12561 (config_h): Define.
12562 (osabi.o): Update dependencies.
12563 * configure.tgt: Set gdb_osabi based on target triplet.
12564 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12565 * configure: Regenerated.
12566 * config.in: Regenerated.
12567 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12568 (GDB_OSABI_DEFAULT): Define if not already defined.
12569 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12570 (set_osabi_string): New variables.
12571 (gdbarch_register_osabi): Add new OS ABI to
12572 gdb_osabi_available_names.
12573 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12574 (set_osabi, show_osabi): New functions.
12575 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12576
12577 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12578
12579 * arch-utils.c (gdbarch_info_init): Set osabi to
12580 GDB_OSABI_UNINITIALIZED.
12581 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12582 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12583 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12584 * gdbarch.c: Regenerated.
12585 * gdbarch.h: Regenerated.
12586 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12587 there's no BFD.
12588 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12589 * osabi.h (enum gdb_osabi): Move to defs.h.
12590 (gdbarch_init_osabi): Update prototype.
12591 * defs.h (enum gdb_osabi): Moved here.
12592 * Makefile.in: Update dependencies.
12593
12594 * alpha-tdep.h: Don't include "osabi.h".
12595 (struct gdbarch_tdep): Remove osabi member.
12596 * alpha-tdep.c: Include "osabi.h".
12597 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12598 iterate over arches. Update call to gdbarch_init_osabi.
12599 (alpha_dump_tdep): Don't dump osabi.
12600 * alpha-linux-tdep.c: Include "osabi.h".
12601 * alpha-osf1-tdep.c: Include "osabi.h".
12602 * alphafbsd-tdep.c: Include "osabi.h".
12603 * alphanbsd-tdep.c: Include "osabi.h".
12604
12605 * arm-tdep.h: Don't include "osabi.h".
12606 (struct gdbarch_tdep): Remove osabi member.
12607 * arm-tdep.c: Include "osabi.h".
12608 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12609 iterate over arches. Update call to gdbarch_init_osabi.
12610 (arm_dump_tdep): Don't dump osabi.
12611 * arm-linux-tdep.c: Include "osabi.h".
12612 * armnbsd-tdep.c: Include "osabi.h".
12613
12614 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12615 Update call to gdbarch_init_osabi.
12616
12617 * i386-tdep.h: Don't include "osabi.h".
12618 (struct gdbarch_tdep): Remove osabi member.
12619 * i386-tdep.c: Include "osabi.h".
12620 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12621 iterate over arches. Update call to gdbarch_init_osabi.
12622 (i386_dump_tdep): Don't dump osabi.
12623 * i386-linux-tdep.c: Include "osabi.h".
12624 * i386-sol2-tdep.c: Include "osabi.h".
12625 * i386bsd-tdep.c: Include "osabi.h".
12626 * i386gnu-tdep.c: Include "osabi.h".
12627 * i386ly-tdep.c: Include "osabi.h".
12628 * i386nbsd-tdep.c: Include "osabi.h".
12629 * i386obsd-tdep.c: Include "osabi.h".
12630
12631 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12632 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12633 check osabi when iterating over arches. Update call to
12634 gdbarch_init_osabi.
12635 (mips_dump_tdep): Don't dump osabi.
12636
12637 * ns32k-tdep.h: Don't include "osabi.h".
12638 (struct gdbarch_tdep): Remove.
12639 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12640 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12641 allocate tdep. Update call to gdbarch_init_osabi.
12642 (ns32k_dump_tdep): Remove.
12643 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12644 * ns32knbsd-tdep.c: Include "osabi.h".
12645
12646 * ppc-tdep.h: Don't include "osabi.h".
12647 (struct gdbarch_tdep): Remove osabi member.
12648 * rs6000-tdep.c: Include "osabi.h".
12649 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12650 osabi when iterating over arches. Update call to
12651 gdbarch_init_osabi.
12652 (rs6000_dump_tdep): Don't dump osabi.
12653 * ppc-linux-tdep.c: Include "osabi.h".
12654 * ppcnbsd-tdep.c: Include "osabi.h".
12655
12656 * sh-tdep.h: Don't include "osabi.h".
12657 (struct gdbarch_tdep): Remove osabi member.
12658 * sh-tdep.c: Include "osabi.h".
12659 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12660 iterate over arches. Update call to gdbarch_init_osabi.
12661 (sh_dump_tdep): Don't dump osabi.
12662 * shnbsd-tdep.c: Include "osabi.h".
12663
12664 * sparc-tdep.c: Include "osabi.h".
12665 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12666 iterate over arches. Update call to gdbarch_init_osabi.
12667 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12668 tdep structure.
12669
12670 * vax-tdep.h: Don't include "osabi.h".
12671 (struct gdbarch_tdep): Remove.
12672 * vax-tdep.c: Include "osabi.h".
12673 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12674 iterate over arches. Don't allocate tdep. Update call
12675 to gdbarch_init_osabi.
12676 (vax_dump_tdep): Remove.
12677 (_initialize_vax_tdep): Update call to gdbarch_register.
12678
12679 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12680
12681 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12682 entirely.
12683 (breakpoint_re_set_one): Don't fetch the value for a disabled
12684 watchpoint.
12685
12686 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12687
12688 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12689 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12690 (COERCE_FLOAT_TO_DOUBLE): Remove.
12691 * gdbarch.c: Regenerate.
12692 * gdbarch.h: Regenerate.
12693 * Makefile.in: Remove value_h from gdbarch_h.
12694 * valops.c (coerce_float_to_double): New variable.
12695 (default_coerce_float_to_double): Remove.
12696 (standard_coerce_float_to_double): Remove.
12697 (value_arg_coerce): Use coerce_float_to_double.
12698 (_initialize_valops): Add "set coerce-float-to-double".
12699 * value.h (default_coerce_float_to_double): Remove prototype.
12700 (standard_coerce_float_to_double): Remove prototype.
12701
12702 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12703 prototyped.
12704 * mdebugread.c (parse_symbol): Likewise.
12705 * stabsread.c (define_symbol): Mark all functions as prototyped.
12706
12707 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12708 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12709 set_gdbarch_coerce_float_to_double.
12710 * arm-tdep.c (arm_gdbarch_init): Likewise.
12711 * frv-tdep.c (frv_gdbarch_init): Likewise.
12712 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12713 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12714 * mips-tdep.c (mips_gdbarch_init): Likewise.
12715 (mips_coerce_float_to_double): Remove.
12716 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12717 (rs6000_coerce_float_to_double): Remove.
12718 * s390-tdep.c (s390_gdbarch_init): Likewise.
12719 * sh-tdep.c (sh_gdbarch_init): Likewise.
12720 (sh_coerce_float_to_double): Remove.
12721 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12722 (sparc_coerce_float_to_double): Remove.
12723 * v850-tdep.c (v850_gdbarch_init): Likewise.
12724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12725 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12726 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12727 (hppa_coerce_float_to_double): Remove prototype.
12728 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12729
12730 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12731
12732 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12733
12734 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12735
12736 Suggested by Stewart Brown <sb24@avaya.com>:
12737 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12738 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12739 (c_type_print_varspec_suffix): Likewise.
12740
12741 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12742
12743 * configure.in: Don't set and AC_SUBST SUBDIRS.
12744 * configure: Regenerated.
12745
12746 * configure.in: Remove code dealing with shared libraries.
12747 * Makefile.in: Remove HLDFLAGS and HLDENV.
12748 * configure: Regenerated.
12749
12750 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12751
12752 * frame.c (deprecated_frame_xmalloc): New function.
12753 (deprecated_set_frame_saved_regs_hack): New function.
12754 (deprecated_set_frame_extra_info_hack): New function.
12755 * frame.h (deprecated_frame_xmalloc): Declare.
12756 (deprecated_set_frame_saved_regs_hack): Declare.
12757 (deprecated_set_frame_extra_info_hack): Declare.
12758
12759 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12760
12761 * configure.in: Move code that provides the --enable-gdbtk option
12762 right after the code that handles the --enable-tui option, and
12763 polish it somewhat.
12764 * configure: Regenerated.
12765
12766 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12767 AC_CHECK_FUNCS and remove the old check for pread64.
12768 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12769 * acconfig.h (_GNU_SOURCE): Add.
12770 (HAVE_PREAD64): Remove.
12771 * configure, aclocal.m4, config.in: Regenerated.
12772
12773 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12774
12775 * alpha-tdep.c: Use get_frame_saved_regs.
12776 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12777 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12778 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12779 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12780 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12781
12782 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12783
12784 * configure.in: Remove all use of the SUBDIRS variable; add
12785 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12786 code providing the --enable-multi-ice option, and move it right in
12787 front of the code that checks whether gdbserver is supported.
12788 Polish that too.
12789 * configure: Regenerated.
12790 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12791 @SUBDIRS@.
12792
12793 2003-01-03 Andrew Cagney <cagney@redhat.com>
12794
12795 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12796 * avr-tdep.c, cris-tdep.c: Ditto.
12797 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12798 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12799
12800 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12801
12802 * configure.in: Remove --enable-netrom option.
12803 * configure: Regenerated.
12804
12805 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12806
12807 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12808 declaration for `struct re_pattern_buffer' instead.
12809 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12810
12811 2003-01-03 J. Brobecker <brobecker@gnat.com>
12812
12813 * mdebugread.c (parse_symbol): Count until the stEnd matching
12814 the structure name.
12815
12816 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12817
12818 * configure.in: Remove --with-cpu option.
12819 subscripts. Remove evil changequotes here.
12820 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12821 * config.in, configure: Regenerated.
12822
12823 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12824 * configure.in: Cleanup section that sources GDB and BFD configure
12825 subscripts. Remove evil changequotes here.
12826 * config.in, configure: Regenerated.
12827
12828 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12829
12830 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12831 frame accessor methods.
12832 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12833 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12834 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12835 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12836 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12837 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12838 * z8k-tdep.c: Ditto.
12839
12840 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12841
12842 * configure.in: Remove UI_OUT configuration code.
12843 * ada-lang.c: Update assuming UI_OUT is always true.
12844 * Makefile.in (UIOUT_CFLAGS): Remove.
12845 * configure: Regenerated.
12846 * TODO: Remove blurb about elimination of -DUI_OUT.
12847
12848 * configure.in: Move code that provides the --enable-gdbcli,
12849 --enable-gdbmi options right before the code that handles the
12850 --enable-tui option. Polish a bit.
12851 * configure: Regenerated.
12852
12853 * configure.in: Rewrite check for GNU regex and the
12854 --without-included regex option, and move it into the "Checks for
12855 library functions" section. This makes us use the system regex
12856 again by default on systems with version 2 of the GNU C library.
12857 This was apparently broken.
12858 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12859 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12860 * config.in, configure: Regenerated.
12861
12862 * configure.in: Move code that provides the --enable-tui option
12863 before the "Checks for libraries" section. Polish the code
12864 somewhat and set need_curses to yes if we build the TUI. Rewrite
12865 code that looks for a library providing termcap functionality to
12866 match more closely what's done in the Readline library, and move
12867 it into to the "Checks for libraries" section.
12868 * configure: Regenerated.
12869 * Makefile.in (TERMCAP): Remove variable.
12870 * config/i386/go32.mh (TERMCAP): Remove variable.
12871
12872 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12873
12874 * MAINTAINERS: Mention gdb_mbuild.sh.
12875 * gdb_mbuild.sh: Rewrite.
12876
12877 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12878
12879 * configure.in: Fix typo in last change.
12880 * config.in, configure: Regenerated.
12881
12882 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12883
12884 * valarith.c (value_binop): Delete obsolete code and comments.
12885 * configure.host: Ditto.
12886 * buildsym.h (make_blockvector): Ditto.
12887 * buildsym.c (make_blockvector): Ditto.
12888 * defs.h (enum language): Ditto.
12889 (chill_demangle): Ditto.
12890 * elfread.c (elf_symtab_read): Ditto.
12891 * dwarfread.c (CHILL_PRODUCER): Ditto.
12892 (set_cu_language): Ditto.
12893 (handle_producer): Ditto.
12894 * expprint.c (print_subexp): Ditto.
12895 * gdbtypes.c (chill_varying_type): Ditto.
12896 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12897 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12898 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12899 (chill_varying_type): Ditto.
12900 * language.h (_LANG_chill): Ditto.
12901 * language.c (binop_result_type, integral_type): Ditto.
12902 (character_type, string_type, structured_type): Ditto.
12903 (lang_bool_type, binop_type_check): Ditto.
12904 * stabsread.h (os9k_stabs): Ditto.
12905 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12906 (define_symbol, read_type, read_struct_fields): Ditto.
12907 (read_array_type, read_enum_type, read_huge_number): Ditto.
12908 (read_range_type, start_stabs): Ditto.
12909 * symfile.c (init_filename_language_table): Ditto.
12910 (add_psymbol_with_dem_name_to_list): Ditto.
12911 * symtab.c (symbol_init_language_specific): Ditto.
12912 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12913 * symtab.h (struct general_symbol_info): Ditto.
12914 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12915 * typeprint.c (typedef_print): Ditto.
12916 * utils.c (fprintf_symbol_filtered): Ditto.
12917 * valops.c (value_cast, search_struct_field, value_slice): Delete
12918 obsolete code.
12919 (varying_to_slice): Delete function.
12920 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12921 (varying_to_slice): Delete declaration.
12922 * MAINTAINERS: Update.
12923
12924 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12925
12926 * configure.in: Reorganize "Checks for library functions section"
12927 a bit. Remove check for `btowc' and `isascii' functions.
12928 * configure: Regenerated.
12929
12930 * acconfig.h (_MSE_INT_H): Remove.
12931 * configure.in: Create "Checks for header files" section, and move
12932 appropriate tests there. Don't check for objlist.h, wchar.h,
12933 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12934 misdetection fix. Also add "Checks for types", "Checks for
12935 compiler characteristics" and "Checks for library functions"
12936 sections.
12937 * config.in, configure: Regenerated.
12938
12939 * configure.in: Create "Checks for programs" section, and move
12940 appropriate tests there.
12941
12942 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12943
12944 * configure.in: Create "Checks for libraries" section, and move
12945 appropriate tests there. Cleanup check for wctype in libw. Use
12946 AC_SEARCH_LIBS to see whether we need libsocket.
12947 * configure: Regenerated.
12948
12949 For older changes see ChangeLog-2002
12950 \f
12951 Local Variables:
12952 mode: change-log
12953 left-margin: 8
12954 fill-column: 74
12955 version-control: never
12956 End:
This page took 0.323171 seconds and 4 git commands to generate.