Fix typo in previous CL entry.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-10-09 Michael Snyder <msnyder@redhat.com>
2
3 * frame.h: Fix typo in comment.
4 * dummy-frame.c: Fix typo in comment.
5 * d10v-tdep.c: Random whitespace/comment tweaks.
6
7 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
8
9 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
10 (sh_push_dummy_code): Delete function, it's only used for dummy calls
11 on stack.
12
13 Based on input by Stephen Clarke (stephen.clarke@superh.com):
14 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
15 in detail.
16
17 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
18
19 * remote-mips.c (mips_initialize): Remove unneeded call to
20 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21
22 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
23
24 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
25 a memory pointer.
26
27 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
28
29 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
30 for any lwp we resume.
31 (running_callback): Add lwps that have pending status events
32 against them to be considered running.
33
34 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
35
36 * m32r-tdep.c : Include "dis-asm.h".
37 * Makefile.in (m32r-tdep.o): Update dependencies.
38
39 2003-10-06 J. Brobecker <brobecker@gnat.com>
40
41 * completer.h (get_gdb_completer_word_break_characters): Delete.
42 * completer.c: include language.h.
43 (gdb_completer_word_break_characters): Delete.
44 (get_gdb_completer_word_break_characters): Delete.
45 (location_completer): Use the word break characters of the current
46 language.
47 (complete_line): Likewise.
48 (line_completion_function): Likewise.
49 (skip_quoted_chars): Likewise.
50 * Makefile.in (completer.o): Add dependency on language.h.
51 * top.c (init_main): Set the readline word break characters
52 to GDB's default word break characters.
53
54 2003-10-06 J. Brobecker <brobecker@gnat.com>
55
56 * language.h (language_defn): new field, la_word_break_characters.
57 * language.c (unknown_language_defn): Set new field to
58 default_word_break_characters.
59 (auto_language_defn): Likewise.
60 (local_language_defn): Likewise.
61 * ada-lang.c (ada_language_defn): Likewise.
62 * c-lang.c (c_language_defn): Likewise.
63 (cplus_language_defn): Likewise.
64 (asm_language_defn): Likewise.
65 (minimal_language_defn): Likewise.
66 * f-lang.c (f_language_defn): Likewise.
67 * jv-lang.c (java_language_defn): Likewise.
68 * m2-lang.c (m2_language_defn): Likewise.
69 * objc-lang.c (objc_language_defn): Likewise.
70 * p-lang.c (pascal_language_defn): Likewise.
71 * scm-lang.c (scm_language_defn): Likewise.
72
73 2003-10-06 Andrew Cagney <cagney@redhat.com>
74
75 * ppc-sysv-tdep.c: Re-indent.
76
77 2003-10-06 J. Brobecker <brobecker@gnat.com>
78
79 * language.h (default_word_break_characters): Add prototype.
80 * language.c (default_word_break_characters): New function.
81
82 2003-10-06 Andreas Schwab <schwab@suse.de>
83
84 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
85 with %eax.
86
87 2003-10-06 Andrew Cagney <cagney@redhat.com>
88
89 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
90 "h8500-tdep.c".
91 (z8k-tdep.o): Delete custom build rule.
92
93 2003-10-06 Andrew Cagney <cagney@redhat.com>
94
95 * Makefile.in: Update all dependencies.
96
97 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
98 No longer list PA as as obsolete candidate. List m32r as
99 broken instead of obsolete.
100
101 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
102 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
103 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
104 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
105 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
106 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
107 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
108 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
109 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
110 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
111 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
112 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
113 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
114 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
115 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
116 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
117 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
118 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
119 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
120 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
121 * config/z8k/z8k.mt: Ditto.
122
123 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
124 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
125 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
126 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
127 sparclite were removed.
128 * configure.host, configure.tgt: Remove corresponding tuples.
129
130 * breakpoint.c, breakpoint.h: Remove obsolete code.
131 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
132 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
133 * stabsread.h, xcoffread.c: Ditto.
134
135 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
136 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
137 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
138 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
139
140 2003-10-06 David Lecomber <dsl@sources.redhat.com>
141
142 * f-valprint.c: Reformatting
143
144 2003-10-06 Mark Kettenis <kettenis@gnu.org>
145
146 * x86-64-tdep.c: Remove duplicate comment.
147
148 * x86-64-tdep.c (x86_64_store_return_value): Don't use
149 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
150 names for return values. This fixes a bug since we looked at %rbx
151 instead of %rdx.
152
153 2003-10-05 Mark Kettenis <kettenis@gnu.org>
154
155 * x86-64-tdep.c: Include "regset.h".
156
157 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
158 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
159 sizeof_fpregset.
160 * i386-tdep.c: Include "regset.h".
161 (i386_supply_gregset): New function.
162 (i386_supply_fpregset): New function.
163 (i386_gdbarch_init): Initialze register set-related members of
164 TDEP.
165 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
166 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
167
168 2003-10-03 Andrew Cagney <cagney@redhat.com>
169
170 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
171 set extract_return_value, store_return_value and
172 use_struct_convention to ppc64_sysv_abi_extract_return_value,
173 ppc64_sysv_abi_store_return_value and
174 ppc64_sysv_abi_use_struct_convention.
175 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
176 (ppc64_sysv_abi_store_return_value): Declare.
177 (ppc64_sysv_abi_use_struct_convention): Declare.
178 * ppc-sysv-tdep.c (enum return_value_convention): Define.
179 (ppc64_sysv_abi_extract_return_value): New function.
180 (ppc64_sysv_abi_store_return_value): New function.
181 (ppc64_sysv_abi_use_struct_convention): New function.
182 (ppc64_sysv_abi_return_value): New function.
183
184 2003-10-03 Andrew Cagney <cagney@redhat.com>
185
186 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
187 convert a descriptor to a function when it's in the ".opd"
188 section.
189
190 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
191
192 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
193 reg_size to keep GCC silent.
194
195 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
196
197 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
198 base for DW_EH_PE_textrel encodings.
199 (read_encoded_value): Add a DW_EH_PE_textrel case.
200 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
201 section.
202
203 2003-10-03 Mark Kettenis <kettenis@gnu.org>
204
205 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
206
207 2003-10-02 Andrew Cagney <cagney@redhat.com>
208
209 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
210 REGISTER_RAW_SIZE.
211 * gdbarch.h, gdbarch.c: Re-generate.
212 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
213 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
214 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
215 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
216 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
217 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
218 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
219 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
220 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
221 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
222 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
223 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
224 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
225 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
226 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
227 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
228
229 2003-10-02 Jim Blandy <jimb@redhat.com>
230
231 * dwarf2read.c (struct die_info): Doc fix.
232
233 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
234
235 * sh-tdep.c: Running thru gdb_indent.sh.
236
237 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
238
239 * sh-tdep.c (sh_justify_value_in_reg): New function.
240 (sh_stack_allocsize): Ditto.
241 (flt_argreg_array): New array used for floating point argument
242 passing.
243 (sh_init_flt_argreg): New function.
244 (sh_next_flt_argreg): Ditto.
245 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
246 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
247 Fix argument passing strategy.
248 (sh_push_dummy_call_nofpu): Ditto.
249
250 2003-10-01 Andrew Cagney <cagney@redhat.com>
251
252 * value.h (register_value_being_returned): Declare. Replace
253 "value_being_returned".
254 * infcall.c (call_function_by_hand): Use
255 register_value_being_returned.
256 * infcmd.c (print_return_value): Call
257 "register_value_being_returned", handle struct return locally.
258 * values.c (register_value_being_returned): New function. Replace
259 "value_being_returned".
260
261 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
262
263 * linux-proc.c (linux_do_registers): New function.
264 (linux_make_note_section): Use linux_do_registers in case of
265 single threaded inferior programs.
266
267 2003-10-01 Andrew Cagney <cagney@redhat.com>
268
269 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
270 use STRUCT_ADDR. When not using "struct return convention", pass
271 "0" to "value_being_returned". Add FIXMEs.
272 * infcmd.c (print_return_value): Pass an explicit 0/1 to
273 value_being_returned. Add comments.
274 * values.c (value_being_returned): Add fixme.
275 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
276 (hppa_value_returned_from_stack): Add FIXME.
277
278 2003-09-30 David Carlton <carlton@kealia.com>
279
280 * dwarf2read.c (struct die_info): Add 'parent' field; replace
281 'has_children' and 'next' by 'child' and 'sibling'.
282 (read_comp_unit): Rework algorithm, breaking body into
283 read_die_and_children and read_die_and_siblings.
284 (read_die_and_children, read_die_and_siblings): New.
285 (read_full_die): Add 'has_children' argument; set it instead of
286 the die's 'has_children' field. Minor formatting cleanup.
287 (free_die_list): Use die->child and die->sibling instead of
288 die->next.
289 (dump_die_list): Ditto.
290 (sibling_die): Use die->sibling.
291 (psymtab_to_symtab_1): Use die's 'child' field in place of its
292 'has_children' and 'next' fields.
293 (process_die, read_file_scope, read_func_scope)
294 (read_lexical_block_scope, read_structure_scope)
295 (read_enumeration, read_array_type, read_common_block)
296 (read_namespace, read_subroutine_type, dump_die): Ditto.
297
298 2003-09-30 Andrew Cagney <cagney@redhat.com>
299
300 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
301 to 224, not 220.
302
303 2003-09-30 Andrew Cagney <cagney@redhat.com>
304
305 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
306 REGISTER_VIRTUAL_SIZE.
307 * gdbarch.h, gdbarch.c: Regenerate.
308 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
309 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
310 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
311
312 2003-09-29 Andrew Cagney <cagney@redhat.com>
313
314 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
315 DEPRECATED_REGISTER_VIRTUAL_TYPE.
316 * gdbarch.h, gdbarch.c: Regenerate.
317 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
318 * sh64-tdep.c, sparc-tdep.c: Update.
319
320 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
321 * remote-vxmips.c (vx_read_register): Ditto.
322 * remote-vx68.c (vx_read_register): Ditto.
323 * gnu-nat.c (inf_validate_procs): Ditto.
324
325 2003-09-29 J. Brobecker <brobecker@gnat.com>
326
327 * infcall.c (call_function_by_hand): Fix build failure
328 introduced in the previous change to this file.
329
330 2003-09-29 Andrew Cagney <cagney@redhat.com>
331
332 * NEWS: Mention Objective-C.
333
334 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
335
336 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
337 test if the register has been saved on the stack.
338 (arm_scan_prologue_cache): When analysing the instruction
339 "str lr, [sp, #-4]", save the address where lr has been stored.
340
341 2003-09-28 Andrew Cagney <cagney@redhat.com>
342
343 * frame.c (frame_read_unsigned_register): Delete function.
344 * frame.h (frame_read_unsigned_register): Delete declaration.
345 * sparc-tdep.c (sparc_init_extra_frame_info): Use
346 get_frame_register_unsigned.
347 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
348 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
349 * d10v-tdep.c (d10v_print_registers_info): Ditto.
350
351 * frame.h (frame_read_register): Delete declaration.
352 * frame.c (frame_read_register): Delete function.
353 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
354 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
355 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
356 * mips-tdep.c (mips_register_to_value): Ditto.
357 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
358 * d10v-tdep.c (d10v_print_registers_info): Ditto.
359
360 * frame.c (frame_read_signed_register): Delete function.
361 (frame_read_unsigned_register): Update comments.
362 * frame.h (frame_read_signed_register): Delete declaration.
363 * h8300-tdep.c (h8300_print_register): Use
364 get_frame_register_signed.
365 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
366
367 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
368 Rename VALUE_RETURNED_FROM_STACK.
369 * infcmd.c (print_return_value): Update.
370 * infcall.c (call_function_by_hand): Update.
371
372 2003-09-28 Mark Kettenis <kettenis@gnu.org>
373
374 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
375 regcache argument and reverse the order of the other two
376 arguments. Remove local regcache variable. Determine
377 architecture from REGCACHE. Update comments.
378 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
379 reverse the order of the other two arguments. Remove local
380 regcache variable. Determine architecture from REGCACHE. Update
381 comments.
382 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
383 prototypes. Update comments.
384 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
385 comment.
386 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
387 Update.
388 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
389 * i386-interix-nat.c (supply_fpregset): Update.
390 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
391 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
392 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
393 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
394 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
395 Update.
396 * i386obsd-tdep.c (fetch_core_registers): Update.
397 * i386v4-nat.c (supply_fpregset): Update.
398 * x86-64-linux-nat.c (supply_fpregset): Update.
399 * x86-64-linux-tdep.c (fetch_core_registers): Update.
400
401 2003-09-27 Mark Kettenis <kettenis@gnu.org>
402
403 * i386-tdep.h: Put opaque declarations in alphabetical
404 order. Remove spurious whitespace.
405 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
406 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
407 * i386-tdep.c (MM0_REGNUM): Remove define.
408 (i386_mmx_regnum_p): Add gdbarch argument.
409 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
410 Rewrite using new macro definitions for FPU/SSE registers.
411 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
412 definitions from i387-tdep.h.
413 (i386_register_name): Update.
414 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
415 new macro definitions for FPU/SSE registers.
416 (i386_extract_return_value): Determine whether floating-point
417 registers are present by examining REGCACHE's architecture.
418 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
419 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
420 FPU/SSE registers.
421 (i386_register_type): Update.
422 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
423 definitions for FPU registers. Use REGCACHE's architecture to
424 determine the appropriate register numbers.
425 (i386_pseudo_register_read, i386_pseudo_register_write,
426 i386_register_reggroup_p): Update.
427 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
428 TDEP->mm0_regnum.
429 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
430 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
431 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
432 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
433 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
434 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
435 *' to `void *'.
436 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
437 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
438 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
439 definitions for FPU/SSE registers.
440 (FXSAVE_MXCSR_ADDR): New define.
441 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
442 TDEP->mm0_regnum.
443 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
444 (I387_ST0_REGNUM): Define.
445
446 * regcache.h (get_regcache_arch): New prototype.
447 * regcache.c (get_regcache_arch): New function.
448
449 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
450 whitespace.
451
452 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
453 Initialize using ARRAY_SIZE.
454
455 2003-09-27 Andrew Cagney <cagney@redhat.com>
456
457 * arch-utils.c (deprecated_init_frame_pc_default): Rename
458 "init_frame_pc_default".
459 * arch-utils.h (deprecated_init_frame_pc_default): Update.
460 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
461 * vax-tdep.c (vax_gdbarch_init): Update.
462 * v850-tdep.c (v850_gdbarch_init): Update.
463 * sh64-tdep.c (sh64_gdbarch_init): Update.
464 * s390-tdep.c (s390_gdbarch_init): Update.
465 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
466 * mcore-tdep.c (mcore_gdbarch_init): Update.
467 * h8300-tdep.c (h8300_gdbarch_init): Update.
468 * cris-tdep.c (cris_gdbarch_init): Update.
469 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
470
471 2003-09-26 Mark Kettenis <kettenis@gnu.org>
472
473 * regset.h: New file.
474 * Makefile.in (regset_h): Add.
475
476 2003-09-25 Andrew Cagney <cagney@redhat.com>
477
478 * frame.h (deprecated_frame_saved_regs): Rename
479 get_frame_saved_regs.
480 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
481 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
482 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
483 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
484 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
485
486 2003-09-25 Andrew Cagney <cagney@redhat.com>
487
488 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
489 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
490 and Java.
491 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
492 arm*-*-* do not use the new frame code.
493
494 2003-09-25 David Carlton <carlton@kealia.com>
495
496 * c-exp.y: Remove 'register' declarations.
497 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
498
499 2003-09-25 David Carlton <carlton@kealia.com>
500
501 * c-exp.y: Include cp-support.h. Add qualified_type.
502 (yylex): Delete nested type hack; add comments.
503 * cp-namespace.c (cp_lookup_nested_type): New function.
504 * cp-support.h: Declare cp_lookup_nested_type.
505 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
506 instead of value_struct_elt_for_reference.
507 * valops.c: Include cp-support.h.
508 (value_aggregate_elt): New function.
509 (value_namespace_elt): Ditto.
510 (value_struct_elt_for_reference): Make static.
511 * value.h: Delete declaration of value_struct_elt_for_reference;
512 add declaration for value_aggregate_elt.
513 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
514 (valops.o): Ditto.
515
516 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
517
518 * stack.c: Include "reggroups.h".
519 (frame_info): Only display registers in all_reggroup.
520 * Makefile.in (stack.o): Update dependencies.
521
522 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
523
524 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
525 "add ip, sp #n" in the prologue.
526 (arm_scan_prologue): Ditto.
527
528 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
529
530 * MAINTAINERS (write after approval): Add myself.
531
532 2003-09-25 Andreas Schwab <schwab@suse.de>
533
534 * m68k-tdep.c: Include "dwarf2-frame.h".
535 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
536 * Makefile.in (m68k-tdep.o): Update dependencies.
537
538 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
539
540 * sh-tdep.c (struct frame_extra_info): Remove.
541 (struct sh_frame_cache): New structure.
542 (GET_SOURCE_REG): New macro extracting source register of an opcode.
543 (GET_TARGET_REG): Ditto but target register.
544 (GET_PUSHED_REG): Remove.
545 (IS_MOV_ARG_TO_REG): New macro.
546 (IS_MOV_ARG_TO_IND_R14): New macro.
547 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
548 (IS_MOVW_PCREL_TO_REG): New macro.
549 (IS_MOVL_PCREL_TO_REG): New macro.
550 (IS_SUB_REG_FROM_SP): New macro.
551 (IS_ARG_MOV): Remove.
552 (IS_MOV_TO_R14): Remove.
553 (IS_RESTORE_FP): New macro.
554 (IS_RTS): New macro.
555 (IS_LDS): New macro.
556 (IS_MOV_FP_SP): New macro.
557 (IS_ADD_REG_TO_FP): New macro.
558 (IS_ADD_IMM_FP): New macro.
559 (sh_skip_prologue_hard_way): Remove.
560 (sh_saved_pc_after_call): Remove.
561 (sh_frame_chain): Remove.
562 (sh_find_callers_reg): Remove.
563 (sh_nofp_frame_init_saved_regs): Remove.
564 (sh_fp_frame_init_saved_regs): Remove.
565 (sh_init_extra_frame_info): Remove.
566 (sh_analyze_prologue): New function.
567 (sh_skip_prologue): Remove deprecated code. Rely on new function
568 sh_analyze_prologue when after_prologue fails.
569 (sh_frame_saved_pc): Remove.
570 (sh_alloc_frame_cache): New function.
571 (sh_frame_cache): Ditto.
572 (sh_frame_prev_register): Ditto.
573 (sh_frame_this_id): Ditto.
574 (sh_frame_unwind): New structure defining the heuristic frame
575 sniffer interface.
576 (sh_frame_sniffer): New function.
577 (sh_unwind_sp): Ditto.
578 (sh_unwind_pc): Ditto.
579 (sh_unwind_dummy_id): Ditto.
580 (sh_frame_base_address): Ditto.
581 (sh_frame_base): New structure defining new frame base code.
582 (sh_in_function_epilogue_p): New function.
583 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
584 code and to call all new code instead. Initialize dwarf2 and
585 heuristic frame sniffer.
586
587 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
588
589 * parser-defs.h (struct exp_descriptor): New definition, containing
590 language-specific info for printing, prefixifying, dumping, and
591 evaluating expressions.
592 (exp_descriptor_standard): Declare new variable.
593 (print_subexp): Make global and declare here (from expprint.c).
594 (dump_subexp): Ditto.
595 (dump_subexp_body_standard): Declare.
596 (operator_length_standard): Declare.
597 (op_name_standard): Declare.
598 (print_subexp): Declare.
599 (print_subexp_standard): Declare.
600
601 * language.h (struct language_defn): Add la_exp_desc field to hold
602 pointer to table for language-specific operators.
603 Remove evaluate_exp field, which is now in struct exp_descriptor.
604
605 * parse.c (operator_length): Move most code to new
606 operator_length_standard function. Use language-specific information.
607 (operator_length_standard): New function taking most code from
608 operator_length.
609 (exp_descriptor_standard): New constant.
610
611 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
612 and OP_EXTENDED_LAST.
613
614 * expprint.c (print_subexp): Use language-specific print_subexp.
615 Make global; remove static declaration.
616 Move most code to print_subexp_standard.
617 (print_subexp_standard): New function, containing code formerly in
618 print_subexp.
619 (op_name): Add expression to argument signature.
620 Use langauge-specific op_name.
621 Move most code to op_name_standard.
622 (op_name_standard): New function, containing code formerly in op_name.
623 (dump_subexp): Use new version of op_name function.
624 Use language-specific dump_subexp_body, and move most existing code to
625 dump_subexp_body_standard.
626 (dump_raw_expression): Use new op_name interface.
627 (dump_subexp_body): Move most code to dump_subexp_body_standard.
628 (dump_subexp_body_standard): New function, containing code formerly
629 in dump_subexp_body.
630
631 * language.c (unknown_language): Add default la_exp_desc field and
632 remove evaluate_exp field.
633 (auto_language): Ditto.
634 (local_language): Ditto.
635 * f-lang.c (f_language_defn): Ditto.
636 * c-lang.c (c_language_defn): Ditto.
637 (cplus_language_defn): Ditto.
638 (asm_language_defn): Ditto.
639 (minimal_language_defn): Ditto.
640 * p-lang.c (pascal_language_defn): Ditto.
641 * m2-lang.c (m2_language_defn): Ditto.
642 * objc-lang.c (objc_language_defn): Ditto.
643
644 * jv-lang.c (exp_descriptor_java): New variable, containing
645 Java-specific expression evaluator.
646 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
647 field.
648 * scm-lang.c (exp_descriptor_scm): New variable, containing
649 Scheme-specific expression evaluator.
650 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
651 field.
652 * objc-lang.c (print_object_command): Take evaluate_exp from the
653 la_exp_desc field.
654
655 * Makefile.in (eval.o): Add dependency on parser-defs.h.
656
657 * eval.c: Include parser-defs.h for the full declaration of
658 la_exp_desc's type.
659 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
660
661 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
662
663 * parser-defs.h (operator_length): Declare.
664
665 * parse.c (length_of_subexp): Use operator_length to get operator
666 lengths and arities for operators.
667 Move most code to new operator_length function.
668 (operator_length): New function absorbing most code from
669 length_of_subexp.
670 (prefixify_subexp): Remove large case and use operator_length instead.
671 (parse_exp_1): Use renamings:
672 dump_prefix_expression => dump_raw_expression and
673 dump_postfix_expression => dump_prefix_expression.
674
675 * expression.h (dump_prefix_expression): Rename to ...
676 (dump_raw_expression): New name.
677 (dump_postfix_expression): Rename to ...
678 (dump_prefix_expression): New name.
679
680 * expprint.c (dump_subexp): Make global. Add comment.
681 Move most existing code to dump_subexp_body.
682 (dump_subexp_body): New function.
683 (dump_prefix_expression): Rename to dump_raw_expression.
684 Remove attempt to print the expression via print_expression: it can't
685 work before the expression is prefixified.
686 (dump_raw_expression): Renamed from dump_prefix_expression.
687 (dump_postfix_expression): Rename to dump_prefix_expression, since
688 that's what it does.
689 Remove 'note' parameter, since this routine must be used on
690 prefixified expression.
691 (dump_prefix_expression): Renamed from dump_postfix_expression.
692
693 2003-09-22 Jim Blandy <jimb@redhat.com>
694
695 * dwarf2read.c (read_array_type): When building the type for an
696 array of unspecified length, make sure to choose the upper bound
697 so that the array's total length comes out to be zero --- that's
698 how we represent such arrays.
699
700 2003-09-22 Michael Chastain <mec@shout.net>
701
702 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
703
704 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
705
706 * top.c (quit_force): Fix indirect call to quit_target so
707 a struct qt_args pointer is passed.
708
709 2003-09-22 Andrew Cagney <cagney@redhat.com>
710
711 * arch-utils.h (init_frame_pc_noop): Delete declaration.
712 * arch-utils.c (init_frame_pc_noop): Delete function.
713 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
714 "init_frame_pc".
715 * mips-tdep.c (mips_gdbarch_init): Ditto.
716 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
717 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
718 declaration.
719 (DEPRECATED_INIT_FRAME_PC): Delete macro.
720 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
721 declaration.
722 (DEPRECATED_INIT_FRAME_PC): Delete macro.
723
724 2003-09-22 Anthony Green <green@redhat.com>
725
726 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
727 declaration.
728
729 2003-09-20 Andrew Cagney <cagney@redhat.com>
730
731 * breakpoint.c: Eliminate ARGSUSED.
732 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
733 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
734 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
735 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
736 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
737 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
738 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
739 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
740 * wince.c, remote-vx.c: Ditto.
741
742 * cli/cli-script.c: Remove "register" attributes.
743 * config/pa/tm-hppa.h: Ditto.
744 * cli/cli-decode.c: Ditto.
745 * cli/cli-cmds.c: Ditto.
746
747 2003-09-19 Andrew Cagney <cagney@redhat.com>
748
749 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
750 DEPRECATED_NPC_REGNUM.
751 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
752
753 2003-09-19 Christopher Faylor <cgf@redhat.com>
754
755 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
756
757 2003-09-19 Jim Blandy <jimb@redhat.com>
758
759 * macrotab.c (macro_include): Use the correct comparison to find
760 the appropriate place for this inclusion in the list.
761
762 2003-09-19 Andrew Cagney <cagney@redhat.com>
763
764 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
765 (DEPRECATED_HPUX_TEXT_END): Define.
766 (deprecated_hpux_text_end): Declare.
767 (struct target_ops): Declare opaque.
768 * hppah-nat.c (text_end): Make static.
769 (deprecated_hpux_text_end): New function.
770 * exec.c (text_end): Delete global variable.
771 (NEED_TEXT_START_END): Do not define.
772 (exec_file_attach): Replace code computing "text_end" code with
773 call to DEPRECATED_HPUX_TEXT_END.
774
775 2003-09-19 Andrew Cagney <cagney@redhat.com>
776
777 * utils.c (align_up, align_down): New functions.
778 * defs.h (align_up, align_down): Declare.
779 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
780 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
781 and "align_down".
782 (round_up, round_down): Delete functions.
783 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
784 "align_down".
785 (ROUND_DOWN, ROUND_UP): Delete macros.
786 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
787 * h8300-tdep.c: Replace "round_up" and "round_down" with
788 "align_up" and "align_down".
789 (round_up, round_down): Delete macros.
790 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
791 "align_down".
792 (ROUND_UP, ROUND_DOWN): Delete macros.
793
794 2003-09-18 J. Brobecker <brobecker@gnat.com>
795
796 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
797 hard-coded constant. Use the proper machine name instead.
798
799 2003-09-17 Andrew Cagney <cagney@redhat.com>
800
801 * sparc-tdep.c (legacy_register_name): Delete function.
802 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
803 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
804 * infcmd.c (gdb_register_name): Delete variable.
805 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
806 REGISTER_NAME and "tm.h".
807 * gdbarch.h, gdbarch.c: Regenerate.
808 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
809 REGISTER_NAMES in comments.
810 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
811 * m68klinux-nat.c (regmap): Ditto.
812
813 2003-09-17 Jim Blandy <jimb@redhat.com>
814
815 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
816
817 2003-09-17 Andrew Cagney <cagney@redhat.com>
818
819 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
820 (ppcnbsd_init_abi): Set "use_struct_convention" to
821 "ppcnbsd_use_struct_convention".
822
823 2003-09-17 Mark Kettenis <kettenis@gnu.org>
824
825 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
826 * gdbarch.h, gdbarch.c: Regenerate.
827 (stabs_argument_has_addr): New architecture method.
828 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
829 * arch-utils.c: Include "buildsym.h".
830 (default_stabs_argument_has_addr): New function.
831 * stabsread.c (define_symbol): Use stabs_argument_has_addr
832 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
833
834 2003-09-17 Andrew Cagney <cagney@redhat.com>
835
836 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
837 * gdbarch.h, gdbarch.c: Regenerate.
838 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
839 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
840 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
841 * sparcnbsd-tdep.c: Update.
842
843 2003-09-17 Andrew Cagney <cagney@redhat.com>
844
845 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
846 * gdbarch.h, gdbarch.c: Regenerate.
847 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
848 * d10v-tdep.c, frame.c: Update.
849 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
850 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
851 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
852 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
853 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
854 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
855 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
856 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
857 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
858 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
859 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
860 * config/pa/nm-hppah.h: Update.
861
862 2003-09-16 Andrew Cagney <cagney@redhat.com>
863
864 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
865 "use_struct_convention" to "ppc_linux_use_struct_convention".
866 (ppc_linux_use_struct_convention): New function.
867 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
868 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
869 "rs6000_use_struct_convention".
870 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
871 declaration.
872 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
873 Delete function.
874
875 2003-09-16 Andrew Cagney <cagney@redhat.com>
876
877 * buildsym.c: Remove more occurances of "register".
878 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
879 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
880 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
881 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
882 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
883 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
884 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
885 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
886
887 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
888
889 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
890 numbers to enumeration values.
891 * sh-tdep.c: Accomodate above change.
892 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
893 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
894 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
895 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
896 (IS_FPUSH): Rename from IS_FMOV.
897 (sh_extract_struct_value_address): Remove useless comment.
898 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
899 instead of own local values.
900 (sh_dump_tdep): Remove.
901 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
902 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
903
904 2003-09-15 Andrew Cagney <cagney@redhat.com>
905
906 * doublest.c (convert_floatformat_to_doublest): No longer need to
907 cast "exp_bias" to an int. Reverts 2002-12-04 change.
908
909 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
910
911 * values.c (unpack_double): Call floatformat_is_valid.
912
913 2003-09-15 Mark Kettenis <kettenis@gnu.org>
914
915 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
916 ps_strings into a long.
917
918 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
919 _initialize_am64fbsd_nat.
920
921 2003-09-15 Kevin Buettner <kevinb@redhat.com>
922
923 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
924 associated with DW_AT_ranges attribute is out of bounds.
925
926 2003-09-15 David Lecomber <dsl@sources.redhat.com>
927
928 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
929
930 2003-09-14 Michael Chastain <mec@shout.net>
931
932 * config/m68k/nm-apollo68v.h: Delete.
933 * config/m68k/xm-apollo68v.h: Delete.
934
935 2003-09-14 Andrew Cagney <cagney@redhat.com>
936
937 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
938 * dcache.c: Update copyrights and descriptions.
939 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
940
941 2003-09-14 Andrew Cagney <cagney@redhat.com>
942
943 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
944 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
945
946 2003-09-14 Andrew Cagney <cagney@redhat.com>
947
948 * alpha-nat.c: Remove some occurances of "register".
949 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
950 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
951 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
952 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
953 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
954 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
955 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
956 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
957 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
958 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
959 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
960 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
961 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
962 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
963 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
964 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
965 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
966 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
967 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
968 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
969 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
970 * values.c, vax-tdep.c, xcoffread.c: Ditto.
971
972 2003-09-13 Andrew Cagney <cagney@redhat.com>
973
974 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
975 * ppc-tdep.h (struct regcache): Declare opaque.
976 * objfiles.h (struct objfile_data): Declare opaque.
977 * cp-support.h (struct objfile): Declare opaque.
978 * linux-nat.h (target_waitstatus): Declare opaque.
979
980 2003-09-14 Mark Kettenis <kettenis@gnu.org>
981
982 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
983 (stabs_argument_has_addr): New architecture method.
984 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
985 * arch-utils.c: Include "buildsym.h".
986 (default_stabs_argument_has_addr): New function.
987 * stabsread.c (define_symbol): Use stabs_argument_has_addr
988 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
989
990 * cris-tdep.c (cris_gdbarch_init): Set
991 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
992 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
993 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
994 * mips-tdep.c (mips_gdbarch_init): Likewise.
995 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
996 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
997
998 2003-09-13 Andrew Cagney <cagney@redhat.com>
999
1000 * values.c (using_struct_return): Delete "function" and "funcaddr"
1001 parameters.
1002 * value.h (using_struct_return): Update declaration.
1003 * infcmd.c (finish_command_continuation): Update.
1004 (finish_command): Update.
1005 * infcall.c (call_function_by_hand): Update.
1006 * eval.c (evaluate_subexp_standard): Update.
1007
1008 2003-09-13 Christopher Faylor <cgf@redhat.com>
1009
1010 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1011 SSE registers since gdb will not operate correctly without this.
1012 Restore include file ordering munged in previous change.
1013 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1014
1015 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1016
1017 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1018 REG_STRUCT_HAS_ADDR.
1019 * gdbarch.c, gdbarch.h: Updated.
1020 * infcall.c (call_function_by_hand): Update.
1021 * stabsread.c (define_symbol): Updated.
1022
1023 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1024
1025 2003-09-12 Christopher Faylor <cgf@redhat.com>
1026
1027 * win32-nat.c: Reorganize so that defines used by target headers are
1028 actually defined by the system headers.
1029 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1030 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1031
1032 2003-09-12 Jim Blandy <jimb@redhat.com>
1033
1034 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1035 the file has no .data, .bss, or .rodata sections. Instead wait
1036 until we see a variable alleged to live in one of those sections.
1037
1038 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1039 .bss section, presume that any variables we find live in the
1040 .rodata section.
1041
1042 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1043 offsets for global and static variables.
1044
1045 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1046 symbol types are, by definition, in the .data section, so it is
1047 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1048 If there is no .data section, there should be no N_DATA or N_DATA
1049 | N_EXT symbols.
1050
1051 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1052
1053 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1054 (amd64fbsd_sigcontext_addr): Rewrite.
1055 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1056 with correct values.
1057 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1058 (amd64fbsd_init_abi): Fix typo.
1059
1060 2003-09-12 Andrew Cagney <cagney@redhat.com>
1061
1062 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1063 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1064
1065 2003-09-12 Andrew Cagney <cagney@redhat.com>
1066
1067 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1068 "entry_file_highpc". Update comments.
1069 * defs.h (deprecated_inside_entry_file): Rename
1070 "inside_entry_file".
1071 * blockframe.c (deprecated_inside_entry_file): Rename
1072 "inside_entry_file".
1073 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1074 * vax-tdep.c (vax_frame_chain): Update.
1075 * sh64-tdep.c (sh64_frame_chain): Update.
1076 * sh-tdep.c (sh_frame_chain): Update.
1077 * rs6000-tdep.c (rs6000_frame_chain): Update.
1078 * ns32k-tdep.c (ns32k_frame_chain): Update.
1079 * mips-tdep.c (mips_frame_chain): Update.
1080 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1081 * m32r-tdep.c (m32r_frame_this_id): Update.
1082 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1083 * frv-tdep.c (frv_frame_this_id): Update.
1084 * d10v-tdep.c (d10v_frame_this_id): Update.
1085 * cris-tdep.c (cris_frame_chain): Update.
1086 * blockframe.c (legacy_frame_chain_valid): Update.
1087 * avr-tdep.c (avr_frame_this_id): Update.
1088 * arm-tdep.c (arm_prologue_this_id): Update.
1089 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1090 * objfiles.c (objfile_relocate): Update.
1091 * mipsread.c (mipscoff_symfile_read): Update.
1092 (mipscoff_symfile_read): Update.
1093 * mdebugread.c (parse_partial_symbols): Update.
1094 * dwarfread.c (read_file_scope): Update.
1095 * dwarf2read.c (read_file_scope): Update.
1096 * dbxread.c (read_dbx_symtab): Update.
1097 (read_dbx_symtab): Update.
1098 * coffread.c (complete_symtab): Update.
1099
1100 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1101
1102 * top.c (quit_target): New static helper function.
1103 (quit_force): Moved code to quit_target(). Call quit_target()
1104 via catch_errors() to catch errors during quit.
1105
1106 2003-09-11 David Carlton <carlton@kealia.com>
1107
1108 * buildsym.c (finish_block): Use allocate_block to allocate the
1109 block.
1110 * mdebugread.c (new_block): Add FIXME.
1111
1112 2003-09-11 David Carlton <carlton@kealia.com>
1113
1114 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1115 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1116 (recursive_dump_type): Ditto.
1117 * printcmd.c (print_formatted): Ditto.
1118 * typeprint.c (print_type_scalar): Ditto.
1119 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1120 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1121 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1122 maint_cplus_cmd_list.
1123 * cp-support.c: Make maint_cplus_cmd_list extern.
1124 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1125 command.h.
1126 (lookup_symbol_file): Look in possible namespace blocks when
1127 appropriate.
1128 (initialize_namespace_symtab): New.
1129 (get_possible_namespace_block, free_namespace_block)
1130 (check_possible_namespace_symbols)
1131 (check_possible_namespace_symbols_loop)
1132 (check_one_possible_namespace_symbol)
1133 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1134 (_initialize_cp_namespace): Ditto.
1135 * block.h: Declare allocate_block.
1136 * block.c (allocate_block): New.
1137 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1138 allocate_block.
1139 * symfile.h: Update declaration of add_psymbol_to_list.
1140 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1141 question.
1142 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1143 scan_partial_symbols_call.
1144 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1145 helper functions.
1146 (add_partial_symbol): If necessary, scan mangled names for names
1147 of namespaces.
1148 (add_partial_namespace): Add NAMESPACE argument; generate partial
1149 symbols associated to namespaces.
1150 (add_partial_enumeration): Add NAMESPACE argument.
1151 (new_symbol): Allow namespace syms.
1152 (read_namespace): Generate namespace syms.
1153 * objfiles.h: Add opaque declaration of struct symtab.
1154 (struct objfile): Add cp_namespace_symtab member.
1155 * objfiles.c (allocate_objfile): Set
1156 objfile->cp_namespace_symtab.
1157 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1158 dictionary_h, command_h.
1159
1160 2003-09-11 Andrew Cagney <cagney@redhat.com>
1161
1162 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1163 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1164 near the function's end.
1165 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1166 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1167 regcache_raw_write_signed to set SP_REGNUM.
1168
1169 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1170
1171 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1172 orig_addrs is set up properly.
1173
1174 2003-09-11 Andrew Cagney <cagney@redhat.com>
1175
1176 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1177 * gdbarch.h, gdbarch.c: Re-generate.
1178 * infcall.c (call_function_by_hand): Update.
1179 * hppa-tdep.c (hppa_push_arguments): Update.
1180 * ada-lang.c (place_on_stack): Update.
1181 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1182 * sparc-tdep.c (sparc_gdbarch_init): Update.
1183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1184 * hppa-tdep.c (hppa_gdbarch_init): Update.
1185 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1186 stack_align.
1187
1188 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1189
1190 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1191 register do need a frame.
1192
1193 2003-09-11 Andrew Cagney <cagney@redhat.com>
1194
1195 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1196 buildable since GDB 5.0.
1197 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1198 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1199 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1200 * irix4-nat.c: Delete file.
1201 * config/mips/irix4.mh: Delete file.
1202 * config/mips/irix3.mh: Delete file.
1203 * config/mips/irix3.mt: Delete file.
1204 * config/mips/tm-irix3.h: Delete file.
1205 * config/mips/nm-irix3.h: Delete file.
1206 * config/mips/xm-irix3.h: Delete file.
1207 * config/mips/nm-irix4.h: Delete file.
1208 * config/mips/xm-irix4.h: Delete file.
1209 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1210
1211 2003-09-10 J. Brobecker <brobecker@gnat.com>
1212
1213 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1214 * Makefile.in (hppa-tdep.o): Update dependencies.
1215
1216 2003-09-10 James E Wilson <wilson@specifixinc.com>
1217
1218 * MAINTAINERS: Change my e-mail address. Move to paper trail
1219 section.
1220
1221 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1222
1223 * MAINTAINERS (frv): New ISA entry.
1224
1225 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1226
1227 * frv-tdep.c (dis-asm.h): Include.
1228 * Makefile.in (frv-tdep.o): Update dependencies.
1229
1230 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1231
1232 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1233 Fix typo for high range of floating registers.
1234
1235 2003-09-09 David Carlton <carlton@kealia.com>
1236
1237 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1238 highpc initialization here out of scan_partial_symbols.
1239 (scan_partial_symbols): Restructure into a recursive version,
1240 calling add_partial_namespace and add_partial_enumeration when
1241 appropriate.
1242 (add_partial_namespace): New.
1243 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1244
1245 2003-09-09 Andrew Cagney <cagney@redhat.com>
1246
1247 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1248 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1249 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1250 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1251
1252 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1253 (rs6000_push_dummy_call): Set the "TOC" register.
1254
1255 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1256 methods "max_register_raw_size", "max_register_virtual_size" or
1257 "register_virtual_size".
1258
1259 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1260
1261 * MAINTAINERS: Update my e-mail address.
1262
1263 2003-09-09 Andrew Cagney <cagney@redhat.com>
1264
1265 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1266 (rs6000_push_dummy_call): Store the struct return address.
1267 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1268
1269 2003-09-09 Andrew Cagney <cagney@redhat.com>
1270
1271 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1272 "ppc_sysv_abi_push_arguments".
1273 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1274 "ppc_sysv_abi_push_arguments".
1275 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1276 instead of "push_arguments".
1277 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1278
1279 2003-09-09 Andrew Cagney <cagney@redhat.com>
1280
1281 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1282 instead of CALL_DUMMY_ADDRESS.
1283
1284 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1285
1286 * p-lang.c: Eliminate "register".
1287 * c-lang.c: Ditto.
1288 * expprint.c: Ditto.
1289 * f-lang.c: Ditto.
1290 * jv-lang.c: Ditto.
1291 * language.c: Ditto.
1292 * m2-lang.c: Ditto.
1293 * parse.c: Ditto.
1294 * scm-lang.c: Ditto.
1295 * objc-lang.c: Ditto.
1296
1297 2003-09-09 Nick Clifton <nickc@redhat.com>
1298
1299 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1300
1301 2003-09-04 Andrew Cagney <cagney@redhat.com>
1302
1303 * avr-tdep.c: Include "dis-asm.h".
1304 * cris-tdep.c: Include "dis-asm.h".
1305 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1306 instead of corresponding typedef.
1307 * h8300-tdep.c: Include "dis-asm.h".
1308 * ia64-tdep.c: Include "dis-asm.h".
1309 * i386-tdep.c: Include "dis-asm.h".
1310 (i386_print_insn): Use "struct disassemble_info" instead of
1311 corresponding typedef.
1312 * m68k-tdep.c: Include "dis-asm.h".
1313 * mcore-tdep.c: Include "dis-asm.h".
1314 * mips-tdep.c: Include "dis-asm.h".
1315 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1316 instead of corresponding typedef.
1317 * ns32k-tdep.c: Include "dis-asm.h".
1318 * s390-tdep.c: Include "dis-asm.h".
1319 * sparc-tdep.c: Include "dis-asm.h".
1320 * vax-tdep.c: Include "dis-asm.h".
1321 * v850-tdep.c: Include "dis-asm.h".
1322 * mn10300-tdep.c: Include "dis-asm.h".
1323 * rs6000-tdep.c: Include "dis-asm.h".
1324 * xstormy16-tdep.c: Include "dis-asm.h".
1325 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1326 print_insn_xstormy16.
1327 * Makefile.in (v850-tdep.o): Update dependencies.
1328 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1329 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1330 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1331 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1332 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1333 (gdbarch_h): Remove $(dis_asm_h).
1334 * disasm.c: Include "dis-asm.h".
1335 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1336 corresponding typedef.
1337 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1338 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1339 * gdbarch.sh: Do not include "dis-asm.h".
1340 (struct disassemble_info): Declare opaque.
1341 (TARGET_PRINT_INSN): Update declaration.
1342 * gdbarch.h, gdbarch.c: Re-generate.
1343
1344 2003-09-08 Andrew Cagney <cagney@redhat.com>
1345
1346 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1347 CALL_DUMMY_ADDRESS, change to a predicate.
1348 * gdbarch.h, gdbarch.c: Re-generate.
1349 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1350 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1351 * infcall.c (call_function_by_hand): Ditto.
1352 * sparc-tdep.c (sparc_push_return_address): Ditto.
1353 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1354 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1355 CALL_DUMMY_ADDRESS with entry_point_address.
1356 * v850-tdep.c (v850_push_return_address): Ditto.
1357 * s390-tdep.c (s390_push_return_address): Ditto.
1358 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1359 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1360 * mcore-tdep.c (mcore_push_return_address): Ditto.
1361 * cris-tdep.c (cris_push_return_address): Ditto.
1362 * arm-tdep.c (arm_push_return_address): Ditto.
1363
1364 2003-09-08 Andrew Cagney <cagney@redhat.com>
1365
1366 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1367 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1368 and REG_UNMODIFIED to REG_SAME_VALUE.
1369 (execute_cfa_program): Update.
1370 (dwarf2_frame_cache): Update. Initialize table to
1371 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1372 location.
1373 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1374
1375 2003-09-08 Andrew Cagney <cagney@redhat.com>
1376
1377 * gnu-nat.c: Remove "inline" function attribute.
1378 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1379
1380 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1381
1382 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1383 target.
1384
1385 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1386
1387 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1388 (frame_extra_info): Rename this struct to frv_unwind_cache.
1389 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1390 Add fields ``prev_sp'' and ``base''.
1391 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1392 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1393 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1394 Delete.
1395 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1396 Revise all callers. Fill in the unwind cache argument and make
1397 other adjustments to account for new frame mechanisms.
1398 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1399 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1400 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1401 (frv_frame_unwind, frv_frame_base): New structs.
1402 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1403 additional arguments expected by this method and adjust function
1404 body accordingly.
1405 (frv_gdbarch_init): Remove calls to the following functions:
1406 set_gdbarch_deprecated_init_frame_pc(),
1407 set_gdbarch_deprecated_saved_pc_after_call(),
1408 set_gdbarch_deprecated_frame_chain(),
1409 set_gdbarch_deprecated_frame_saved_pc(),
1410 set_gdbarch_deprecated_frame_init_saved_regs(),
1411 set_gdbarch_deprecated_push_arguments(),
1412 set_gdbarch_deprecated_push_return_address(),
1413 set_gdbarch_deprecated_pop_frame(),
1414 set_gdbarch_deprecated_call_dummy_words(),
1415 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1416 set_gdbarch_deprecated_init_extra_frame_info(),
1417 set_gdbarch_deprecated_dummy_write_sp(), and
1418 set_gdbarch_deprecated_pc_in_call_dummy().
1419 Add calls to the following functions:
1420 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1421 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1422 frame_base_set_default().
1423 * Makefile.in (frv-tdep.o): Update dependencies.
1424
1425 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1426
1427 * dwarf2-frame.c (read_encoded_value): Add support for
1428 DW_EH_PE_aligned encoding.
1429
1430 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1431
1432 * infrun.c (normal_stop): Don't print a message if the inferior
1433 has exited.
1434
1435 2003-09-08 Jim Blandy <jimb@redhat.com>
1436
1437 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1438 * dbxread.c: #include "gdb_assert.h".
1439 (read_dbx_symtab): If the objfile has no .data section, use the
1440 section index for the .bss section instead.
1441
1442 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1443
1444 * frame.c (deprecated_safe_get_selected_frame): New function.
1445 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1446 * findvar.c (read_var_value): Call it.
1447
1448 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1449
1450 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1451 (sh64-tdep.o): Add dependencies.
1452 * configure.tgt: Add FIXME to sh-*-linux*.
1453 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1454 (sh_gdbarch_init): Always set correct sh_show_regs function
1455 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1456 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1457 * sh64-tdep.c: New file, containing all sh64 related code from
1458 sh-tdep.c.
1459 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1460 * config/sh/linux.mt (TDEPFILES): Ditto.
1461 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1462 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1463 * config/sh/wince.mt (TDEPFILES): Ditto.
1464
1465 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1466
1467 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1468 (stop_wait_callback): Handle !lp->signalled also.
1469 (lin_lwp_has_pending, flush_callback): New functions.
1470 (lin_lwp_wait): Call flush_callback.
1471 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1472 (linux_proc_pending_signals): New function.
1473 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1474
1475 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1476
1477 From Nick Kelsey <nickk@ubicom.com>:
1478 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1479 when the stop PC is at the beginning of a function also.
1480
1481 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1482
1483 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1484 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1485
1486 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1487
1488 * sol-thread.c: Include "gdb_string.h".
1489
1490 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1491
1492 * gcore.c: Reorder include files in alphabetical order. Include
1493 "gdb_assert.h". Various coding style fixes.
1494 (derive_stack_segment, derive_heap_segment): Replace check for
1495 non-null BOTTOM and TOP with gdb_assert.
1496 (derive_heap_segment): Replace check for successful creation of
1497 ZERO with gdb_assert.
1498 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1499
1500 2003-09-04 Andrew Cagney <cagney@redhat.com>
1501
1502 * thread-db.c (verbose_dlsym): New function.
1503 (thread_db_load): Use verbose_dlsym
1504 (thread_db_new_objfile): Print that libthread_db was loaded, and
1505 that thread debugging was enabled.
1506
1507 2003-09-04 Andrew Cagney <cagney@redhat.com>
1508
1509 * configure.tgt: Add "mips64*-*-*" target. Delete
1510 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1511 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1512 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1513 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1514 mips*-sony-*, and mips64*-*-elf* targets.
1515 * config/mips/embedl.mt: Delete file.
1516 * config/mips/embedl64.mt: Delete file.
1517 * config/mips/mips.mt: Delete file.
1518 * config/mips/mips64.mt: Delete file.
1519 * config/mips/tm-embed.h: Delete file.
1520 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1521 * config/mips/embed64.mt: Delete out-of-date comment.
1522
1523 2003-09-04 Andrew Cagney <cagney@redhat.com>
1524
1525 * hppa-tdep.c (hppa_gdbarch_init): Set
1526 "have_nonsteppable_watchpoint".
1527 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1528 * mips-tdep.c (mips_dump_tdep): Do not print
1529 HAVE_NONSTEPPABLE_WATCHPOINT.
1530 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1531 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1532 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1533 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1534
1535 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1536
1537 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1538 unused code. Add comment.
1539
1540 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1541
1542 * breakpoint.c (watchpoint_check): Check for pc being in an
1543 epilogue if watchpoint frame couldn't be found.
1544
1545 2003-09-04 Andrew Cagney <cagney@redhat.com>
1546
1547 * Makefile.in: Re-generate all dependencies.
1548
1549 2003-09-03 Andrew Cagney <cagney@redhat.com>
1550
1551 * arch-utils.h (legacy_print_insn): Delete declaration.
1552 * arch-utils.c (legacy_print_insn): Delete function.
1553 * disasm.c (deprecated_tm_print_insn_info): Delete.
1554 (_initialize_disasm): Delete function, contained code initializing
1555 deprecated_tm_print_insn_info.
1556 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1557 (deprecated_tm_print_insn_info): Delete.
1558 (TARGET_PRINT_INSN): Do not provide a default.
1559 * gdbarch.h, gdbarch.c: Re-generate.
1560
1561 2003-09-03 Andrew Cagney <cagney@redhat.com>
1562
1563 * disasm.c (fprintf_disasm): New function.
1564 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1565 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1566 reverts 2003-08-14 change.
1567 (_initialize_disasm): Call "init_disassemble_info", instead of
1568 INIT_DISASSEMBLE_INFO_NO_ARCH.
1569
1570 2003-09-03 Michael Snyder <msnyder@redhat.com>
1571
1572 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1573
1574 2003-09-03 Andrew Cagney <cagney@redhat.com>
1575
1576 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1577 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1578 * symfile.c (syms_from_objfile): Update.
1579 (reread_symbols): `Update
1580 * exec.c (exec_file_attach): Update.
1581 (exec_file_attach): Update.
1582 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1583 2003-08-29 change.
1584 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1585
1586 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1587
1588 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1589 trad-frame.h.
1590 (arm_get_cache): Delete macro.
1591 (struct arm_prologue_cache): Update comments. Make saved_regs into
1592 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1593 to prev_sp.
1594 (thumb_scan_prologue): Update for cache changes. Don't call
1595 DEPRECATED_PC_IN_CALL_DUMMY.
1596 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1597 argument and use it in desperation search for our prologue. Do not
1598 search past the specified PC.
1599 (arm_make_prologue_cache): Simplify.
1600
1601 (arm_prologue_this_id, arm_prologue_prev_register)
1602 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1603 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1604 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1605 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1606 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1607
1608 (arm_frame_chain_valid, arm_find_callers_reg)
1609 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1610 (arm_pop_frame): Delete obsolete methods.
1611 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1612
1613 (arm_gdbarch_init): Update for new frame methods. Register prologue
1614 and sigtramp unwinders. Set the default frame base method.
1615
1616 * Makefile.in (arm-tdep.o): Update dependencies.
1617 * varobj.c (find_frame_addr_in_frame_chain): Call
1618 get_frame_base_address.
1619 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1620
1621 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1622
1623 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1624 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1625 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1626 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1627 Take NEXT_FRAME and CACHE arguments. Call
1628 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1629 Set unwound_pc in CACHE instead of modifying the frame argument.
1630 Don't bother checking the frame type when looking for sigtramp
1631 frames.
1632 (arm_make_prologue_cache, arm_frame_chain)
1633 (arm_init_extra_frame_info): New functions.
1634
1635 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1636
1637 * arm-tdep.c (arm_get_cache): Define.
1638 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1639 unwound_sp, unwound_pc, and saved_regs.
1640 (thumb_scan_prologue): Take a cache instead of the frame.
1641 (arm_scan_prologue): Likewise.
1642 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1643 instead of a temporary frame.
1644 (arm_init_extra_frame_info): Allocate and use a cache.
1645 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1646
1647 2003-09-03 Andrew Cagney <cagney@redhat.com>
1648
1649 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1650 * config/mips/wince.mt (TM_CLIBS): Ditto.
1651 * config/sh/wince.mt (TM_CLIBS): Ditto.
1652 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1653 * config/sparc/sp64.mt (CC): Delete.
1654
1655 2003-09-03 Andrew Cagney <cagney@redhat.com>
1656
1657 * defs.h: Do not include "arch-utils.h".
1658 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1659 GDB_MULTI_ARCH_PURE.
1660 * configure.in (GDB_MULTI_ARCH): Do not define.
1661 * configure, config.in: Regenerate.
1662 * configure.tgt: Do not set variable "gdb_multi_arch".
1663 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1664 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1665 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1666 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1667 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1668 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1669 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1670 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1671 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1672 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1673 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1674 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1675 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1676 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1677 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1678 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1679 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1680 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1681
1682 2003-08-30 Michael Chastain <mec@shout.net>
1683
1684 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1685 * config/m68k/nm-hp300hpux.h: Delete.
1686 * config/m68k/tm-hp300hpux.h: Delete.
1687 * config/m68k/xm-hp300hpux.h: Delete.
1688 * config/m68k/xm-hp300bsd.h: Delete.
1689 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1690 tm-hp300hpux.h, xm-hp300hpux.h.
1691 * somsolib.c: Remove comment about hp300 shared libraries.
1692
1693 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1694
1695 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1696 Only define PTRACE_GET_THREAD_AREA is not already defined.
1697 Various style fixes in code and comments and some additional
1698 spelling fixes in comments. Move after functions dealing with
1699 debug registers.
1700 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1701 Fix coding-style.
1702
1703 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1704 frame_unwind_register_unsigned instead of
1705 frame_unwind_unsigned_register.
1706
1707 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1708
1709 * configure.in: Search for gethostbyname in libnsl.
1710 * configure: Regenerated.
1711
1712 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1713
1714 * configure.in: Remove redundant AC_MSG_RESULT in check for
1715 uintptr_t in stdint.h.
1716 * configure: Regenerated.
1717
1718 * amd64-nat.h (struct regcache): Add opaque declaration.
1719
1720 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1721 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1722 Change "register array" to "register cache" in comments.
1723 (x86_64_linux_gregset64_reg_offset): New variable.
1724 (GETREGS_SUPPLIES): Remove macro.
1725 (supply_gregset): Call amd64_supply_native_gregset instead of
1726 x86_64_linux_supply_gregset.
1727 (fill_gregset): Rename `regno' to `regnum'. Call
1728 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1729 (store_regs): Rename `regno' to `regnum'.
1730 (store_fpregs): Rename `regno' to `regnum'.
1731 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1732 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1733 Reorganize function a bit.
1734 (store_inferior_registers): Rename `regno' to `regnum'. Use
1735 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1736 Reorganize function a bit.
1737 (_initialize_x86_64_linux_nat): New function.
1738 * config/i386/x86-64linux.mh.
1739
1740 2003-08-29 Andrew Cagney <cagney@redhat.com>
1741
1742 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1743 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1744 (target_remove_watchpoint): Delete macro.
1745 (target_insert_watchpoint): Delete macro.
1746 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1747 (remote_mips_stopped_by_watchpoint): Delete declaration.
1748 (remote_mips_remove_watchpoint): Delete declaration.
1749 (remote_mips_set_watchpoint): Delete declaration.
1750 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1751 * remote-mips.c (_initialize_remote_mips): Set
1752 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1753 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1754 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1755 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1756 (mips_stopped_by_watchpoint): Rename
1757 remote_mips_stopped_by_watchpoint.
1758 (mips_can_hardware_watchpoint): Rename
1759 remote_mips_can_use_hardware_watchpoint, update function
1760 signature.
1761
1762 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1763
1764 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1765 USER_DS. We haven't given them a register number yet.
1766
1767 * amd64-nat.h: New file.
1768 * amd64-nat.c: New file.
1769 * amd64fbsd-nat.c: Include "amd64-nat.h".
1770 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1771 (amd64fbsd32_r_reg_offset): New variable.
1772 (supply_gregset): Simply call amd64_supply_native_gregset.
1773 (fill_gregset): Rename `regno' to `regnum'. Simply call
1774 amd64_collect_native_gregset.
1775 (fill_fpregset): Rename `regno' to `regnum'.
1776 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1777 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1778 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1779 `fpregset_t'. Call amd64_supply_native_gregset instead of
1780 supply_gregset. Call x86_64_supply_fxsave instead of
1781 supply_fpregset.
1782 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1783 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1784 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1785 `fpregset_t'. Call amd64_collect_native_gregset instead of
1786 fill_gregset. Call x86_64_collect_fxsave instead of
1787 fill_fpregset.
1788 (_initialize_am64fbsd_nat): Initialize
1789 amd64_native_gregset32_reg_offset and
1790 amd64_native_gregset64_reg_offset.
1791 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1792
1793 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1794 null pointer. Fix typo in comment.
1795
1796 * regcache.c (supply_register): Reimplement to call
1797 regcache_raw_supply.
1798 (regcache_collect): Reimplement by calling regcache_raw_collect.
1799
1800 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1801
1802 * regcache.c (register_buffer): Consitify first argument.
1803 (regcache_raw_supply, regcache_raw_collect): New
1804 functions.
1805
1806 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1807
1808 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1809 by Nathan J. Williams.
1810
1811 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1812
1813 * lin-lwp.c (wait_lwp): New function, copied from
1814 stop_wait_callback. Clean up.
1815 (stop_wait_callback): Use wait_lwp.
1816
1817 2003-08-28 Andrew Cagney <cagney@redhat.com>
1818
1819 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1820 flavour and disassembler options.
1821 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1822 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1823 deprecated_tm_print_insn_info.
1824
1825 2003-08-27 Andrew Cagney <cagney@redhat.com>
1826
1827 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1828 Use target_read_memory.
1829 (s390_get_frame_info): Update. Do not reference
1830 deprecated_tm_print_insn_info.
1831 (s390_check_function_end, s390_is_sigreturn): Ditto.
1832
1833 2003-08-27 Andrew Cagney <cagney@redhat.com>
1834
1835 * Makefile.in (cris-tdep.o): Update dependencies.
1836 * cris-tdep.c: Include "gdb_assert.h".
1837 (cris_gdbarch_init): Set print_insn.
1838 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1839 (cris_delayed_get_disassembler): Simplify, directly call the
1840 disassembler returned by cris_get_disassembler.
1841 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1842 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1843 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1844 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1845 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1846 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1847 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1848 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1849 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1850 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1851 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1852 (gdb_print_insn_sparc): Delete function.
1853 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1854 deprecated_tm_print_insn_info.
1855 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1856 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1857 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1858 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1859 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1860 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1861 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1862 (s390_gdbarch_init): Set print_insn.
1863
1864 2003-08-27 Andrew Cagney <cagney@redhat.com>
1865
1866 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1867 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1868 * infcall.c (call_function_by_hand): Convert the entry point
1869 address into a code address.
1870
1871 2003-08-27 Andrew Cagney <cagney@redhat.com>
1872
1873 * dsrec.c: Include "gdb_string.h".
1874 * Makefile.in (dsrec.o): Update dependencies.
1875
1876 2003-08-27 Michael Chastain <mec@shout.net>
1877
1878 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
1879
1880 2003-08-27 Andrew Cagney <cagney@redhat.com>
1881
1882 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
1883 (alpha_osf1_init_abi): Do not set call_dummy_address.
1884
1885 2003-08-27 David Carlton <carlton@kealia.com>
1886
1887 From Randolph Chung <tausq@debian.org>:
1888 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
1889 compiles with -Wformat-nonliteral -Werror.
1890
1891 2003-08-26 Jim Blandy <jimb@redhat.com>
1892
1893 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
1894 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
1895 bfd_lookup_symbol, since we only want symbols in code sections.
1896 (look_for_base): Pass zero as the SECT_FLAGS argument to
1897 bfd_lookup_symbol, since we're not concerned about which section
1898 the symbol is in.
1899
1900 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1901
1902 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
1903 we are frameless or the return address register is already known.
1904
1905 2003-08-26 Andrew Cagney <cagney@redhat.com>
1906
1907 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
1908 in size. Add comments.
1909
1910 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1911
1912 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1913 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1914
1915 2003-08-26 Jason Merrill <jason@redhat.com>
1916
1917 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1918 case out of #ifdef MIPS block.
1919
1920 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1921
1922 PR java/1322
1923 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1924 available before calling SECT_OFF_TEXT.
1925 * PROBLEMS: Remove description of java/1322.
1926
1927 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1928
1929 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1930 bof, and nat0-nat127 as pseudo-registers.
1931 (ia64_frame_cache): New struct used to cache frame info.
1932 (ia64_register_reggroup_p): New routine used to override default
1933 register grouping so registers without names are still saved and
1934 restored.
1935 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1936 pseudo values.
1937 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1938 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1939 (ia64_alloc_frame_cache): New routine to create a new
1940 ia64_frame_cache.
1941 (examine_prologue): Change prototype to add next_frame pointer.
1942 Assume frameless until otherwise proven. Verify that the cfm for
1943 current frame matches the cfm that should occur for the prologues
1944 alloc insn and if equal, mark as not frameless. At end of routine,
1945 if not frameless, calculate registers for the previous frame and store
1946 in the cache, if a cache is provided.
1947 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1948 and pass 0 for next_frame.
1949 (ia64_store_return_value): Change to use convert_typed_floating()
1950 instead of calling ia64_convert_to_raw().
1951 (ia64_extract_return_value): Change to use convert_typed_floating()
1952 instead of calling ia64_convert_to_virtual().
1953 (ia64_frame_cache): New routine to support new frame model.
1954 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1955 (ia64_frame_sniffer): Ditto.
1956 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1957 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1958 (ia64_sigtramp_frame_prev_register): Ditto.
1959 (ia64_sigtramp_frame_sniffer): Ditto.
1960 (ia64_frame_base_address): Ditto.
1961 (ia64_extract_struct_value_address): Change to issue error message.
1962 (ia64_frame_align): New routine to align sp.
1963 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1964 (ia64_push_arguments): Removed. Logic moved to
1965 ia64_push_dummy_call().
1966 (ia64_push_return_address): Ditto.
1967 (ia64_unwind_dummy_id): New function.
1968 (ia64_unwind_pc): Ditto.
1969 (ia64_convert_register_p): Ditto.
1970 (ia64_register_to_value): Ditto.
1971 (ia64_value_to_register): Ditto.
1972 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1973 (ia64_register_byte, ia64_register_raw_size): Ditto.
1974 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1975 (ia64_saved_pc_after_call): Ditto.
1976 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1977 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1978 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1979 (ia64_register_convert_to_raw): Ditto.
1980 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1981 (ia64_init_extra_frame_info): Ditto.
1982 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1983 (ia64_gdbarch_init): Remove registering of deprecated functions that
1984 are no longer used. Add registration of new gdbarch functions.
1985 Remove registering deprecated_write_sp. Replace
1986 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1987 Delete set_gdbarch_deprecated_register_convertible(),
1988 set_gdbarch_deprecated_register_convert_to_virtual(), and
1989 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1990 set_gdbarch_deprecated_register_size(),
1991 set_gdbarch_deprecated_register_bytes(),
1992 set_gdbarch_pcregnum(),
1993 set_gdbarch_deprecated_register_byte(),
1994 set_gdbarch_deprecated_register_raw_size(),
1995 set_gdbarch_deprecated_max_register_raw_size(),
1996 set_gdbarch_deprecated_register_virtual_size(),
1997 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1998 Replace set_gdbarch_deprecated_extract_return_value() with
1999 set_gdbarch_extract_return_value(). Remove calls to:
2000 set_gdbarch_deprecated_saved_pc_after_call();
2001 set_gdbarch_deprecated_frame_chain(),
2002 set_gdbarch_deprecated_frame_saved_pc(),
2003 set_gdbarch_deprecated_frame_init_saved_regs(),
2004 set_gdbarch_deprecated_get_saved_register(),
2005 set_gdbarch_deprecated_call_dummy_words(),
2006 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2007 set_gdbarch_deprecated_init_extra_frame_info(),
2008 set_gdbarch_deprecated_frame_args_address(),
2009 set_gdbarch_deprecated_frame_locals_address(),
2010 and set_gdbarch_deprecated_dummy_write_sp().
2011 Add set_gdbarch_convert_register_p(),
2012 set_gdbarch_register_to_value(),
2013 set_gdbarch_value_to_register(),
2014 set_gdbarch_push_dummy_call(),
2015 set_gdbarch_frame_align(),
2016 set_gdbarch_unwind_dummy_id(),
2017 set_gdbarch_unwind_pc(),
2018 frame_unwind_append_sniffer(),
2019 frame_unwind_append_sniffer(),
2020 and frame_base_set_default().
2021
2022 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2023
2024 * configure.tgt: Document need for special "mipsisa64" handling.
2025 (mipsisa64*-*-linux64): Handle as target linux64.
2026 (mipsisa64*-*-*): Handle as target embed64.
2027
2028 2003-08-18 Michael Chastain <mec@shout.net>
2029
2030 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2031 objfile bug.
2032
2033 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2034
2035 * i387-tdep.h: Update copyright date.
2036 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2037
2038 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2039 CFLAGS games to reflect reality.
2040
2041 2003-08-24 Andrew Cagney <cagney@redhat.com>
2042
2043 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2044 GDB_MULTI_ARCH is always non-zero.
2045 * osabi.c (_initialize_gdb_osabi): Ditto.
2046 (gdbarch_init_osabi): Ditto.
2047 * sparc-tdep.c: Ditto for #if code.
2048
2049 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2050
2051 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2052 Update comments.
2053 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2054 comments.
2055 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2056 x86_64_supply_fxsave.
2057 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2058 x86_64_supply_fxsave.
2059 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2060 x86_64_supply_fxsave.
2061
2062 2003-08-23 Andreas Jaeger <aj@suse.de>
2063
2064 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2065 i387_supply_fxsave.
2066
2067 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2068
2069 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2070 i387_supply_register.
2071 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2072 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2073 i387_supply_fsave.
2074 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2075 i387_supply_fxsave.
2076 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2077 i387_supply_fsave.
2078 * i386bsd-nat.c (supply_fpregset): Adjust call to
2079 i387_supply_fsave.
2080 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2081 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2082 supply_fpregset.
2083 (store_inferior_registers): Remove extraneous whitespace. Call
2084 i387_fill_fsave instead of fill_fpregset.
2085 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2086 (supply_fpregset): Likewise.
2087 * i386v4-nat.c (supply_fpregset): Adjust call to
2088 i387_supply_fsave.
2089 * i386-interix-nat.c (supply_fpregset): Adjust call to
2090 i387_supply_fsave.
2091 * i386-linux-nat.c (supply_fpregset): Adjust call to
2092 i387_supply_fsave.
2093 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2094 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2095 i387supply_fsave and i387_supply_fxsave.
2096 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2097 Incorporate code from `i387_supply_register.
2098 (i387_supply_register): Remove.
2099 (i387_supply_fxsave): Add `regnum' argument.
2100 Update comments.
2101 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2102 prototype.
2103 (i387_supply_register): remove prototype.
2104 Update comments.
2105
2106 2003-08-22 Michael Chastain <mec@shout.net>
2107
2108 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2109 Add lines for files in gdb/testsuite/gdb.cp/* that are
2110 still not 8.3 unique.
2111
2112 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2113
2114 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2115 TYPE_VPTR_FIELDNO is valid.
2116
2117 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2118
2119 * utils.c (set_width_command): Remove prototypes.
2120 (set_screen_size): New prototype.
2121 (init_page_info): Simplify by fetching the screen size from
2122 Readline. Call set_screen_size.
2123 (set_screen_size): New function.
2124 (set_width): Add missing whitespace in comment.
2125 (set_width_command): Call set_screen_size.
2126 (set_height_command): New function.
2127 (initialize_utils): Fix formatting. Make "set height" command
2128 call set_height_command. Remove redundant code that turns off
2129 pagination if output isn't a terminal. Remove redundant call to
2130 set_width_command.
2131
2132 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2133
2134 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2135 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2136 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2137 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2138 `case' keyword.
2139 (sparc64_register_info): Give the reister with number
2140 SPARC64_STATE_REGNUM a name.
2141 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2142 %asi and %ccr.
2143 (sparc64_push_dummy_call): Take BIAS into account when checking
2144 stcak alignment.
2145 (sparc_software_single_step): Remove assertions that check whether
2146 NPC and NNPC were zero.
2147 (sparc_supply_rwindow): Make public. Merge functionality with
2148 sparc64_supply_rwindow.
2149 (sparc_fill_rwindow): Make public. Merge functionality with
2150 sparc64_fill_rwindow.
2151 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2152 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2153 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2154 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2155 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2156
2157 * reggroups.c: Add whitespace after declarations of local
2158 variables in functions.
2159
2160 2003-08-21 Michael Chastain <mec@shout.net>
2161
2162 * gdbtypes.h: Change array bound type from an int to enum.
2163
2164 2003-08-21 Andrew Cagney <cagney@redhat.com>
2165
2166 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2167 * config/sparc/tm-sparc.h: Ditto.
2168 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2169 unconditionally.
2170 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2171
2172 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2173
2174 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2175 (register_objfile_data, set_objfile_data, objfile_data): New
2176 prototypes.
2177 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2178 prototypes.
2179 (allocate_objfile): Call objfile_alloc_data.
2180 (free_objfile): Call objfile_free_data.
2181 (struct objfile_data): New.
2182 (struct objfile_data_registration): New.
2183 (struct objfile_data_registry): New.
2184 (objfile_data_registry): New variable.
2185 (register_objfile_data): New function.
2186 (objfile_alloc_data, objfile_free_data): New functions.
2187 (set_objfile_data, objfile_data): New functions.
2188 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2189 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2190 (_initialize_dwarf2_frame): New function and prototype.
2191
2192 2003-08-21 Andrew Cagney <cagney@redhat.com>
2193
2194 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2195 a specific architecture.
2196 * arch-utils.h (set_architecture_from_arch_mach): Delete
2197 declaration.
2198 (target_architecture_hook): Delete declaration.
2199 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2200 (default_float_format): Assume GDB_MULTI_ARCH.
2201 (default_double_format): Assume GDB_MULTI_ARCH.
2202 (set_endian_from_file): Delete function.
2203 (arch_ok): Delete function.
2204 (set_arch): Delete function.
2205 (set_architecture_from_arch_mach): Delete function.
2206 (set_architecture_from_file): Delete function.
2207 (set_architecture): Assume GDB_MULTI_ARCH.
2208 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2209
2210 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2211
2212 Rewrite FreeBSD/sparc64 native configuration.
2213 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2214 * sparc64fbsd-nat.c: New file.
2215 * sparc64fbsd-tdep.c: New file.
2216 * sparc64-tdep.c sparc64-tdep.h: New files.
2217 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2218 sparc64fbsd-tdep.o): New dependencies.
2219 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2220 and sparc64fbsd-tdep.c.
2221 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2222 * config/sparc/fbsd.mh: Remove copyright notice.
2223 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2224 sparcbsd-nat.o.
2225 * config/sparc/fbsd.mt: Remove copyright notice.
2226 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2227 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2228 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2229 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2230 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2231 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2232 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2233 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2234 "sparc/tm-sp64.h".
2235 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2236 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2237
2238 2003-08-21 Michael Chastain <mec@shout.net>
2239
2240 * symtab.h: Add doco on the space critical structures and
2241 some measurements of space usage.
2242
2243 2003-08-21 Michael Snyder <msnyder@redhat.com>
2244
2245 * tracepoint.c (trace_dump_command): Trace break address
2246 is subject to DECR_PC_AFTER_BREAK.
2247 (set_traceframe_context): Make "trace_line" an int.
2248 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2249
2250 2003-08-20 Michael Snyder <msnyder@redhat.com>
2251
2252 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2253 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2254 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2255 argument passing.
2256 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2257 functions, replace sh_push_dummy_call.
2258 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2259
2260 2003-08-20 Michael Chastain <mec@shout.net>
2261
2262 * gdbtypes.h (struct main_type): Rearrange to save space.
2263
2264 2003-08-20 Michael Snyder <msnyder@redhat.com>
2265
2266 * trad-frame.c: Comment typo fix.
2267
2268 2003-08-20 Michael Snyder <msnyder@redhat.com>
2269 Kevin Buettner <kevinb@redhat.com>
2270
2271 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2272 (frv_frame_init_saved_regs): Add declaration.
2273 (frame_extra_info): Add new field ``saved_regs''.
2274 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2275 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2276 Update frame related code.
2277 (frv_extract_struct_value_address): Adjust formatting.
2278 * Makefile.in (frv-tdep.o): Update dependencies.
2279 * config/frv/tm-frv.h (target_insert_watchpoint)
2280 (target_remove_watchpoint, target_insert_hw_breakpoint)
2281 (target_remove_hw_breakpoint): Delete these macros.
2282 (remote_insert_watchpoint, remote_remove_watchpoint)
2283 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2284 these declarations.
2285
2286 2003-08-20 Michael Chastain <mec@shout.net>
2287
2288 * defs.h (ENUM_BITFIELD): New macro.
2289 * symtab.h (ENUM_BITFIELD): Use it.
2290 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2291
2292 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2293
2294 * MAINTAINERS (write after approval): Add myself.
2295
2296 2003-08-18 Andrew Cagney <cagney@redhat.com>
2297
2298 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2299 * gdbarch.h, gdbarch.c: Re-generate.
2300 * infcall.c (call_function_by_hand): Adjust the SP by
2301 frame_red_zone_size before allocating any stack space.
2302 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2303 * x86-64-tdep.c (x86_64_frame_align): New function.
2304 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2305
2306 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2307 Remove code adjusting SP so that it skips over the Red Zone.
2308
2309 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2310
2311 * NEWS (New native configurations): Mention FreeBSD/amd64.
2312
2313 2003-08-18 Andrew Cagney <cagney@redhat.com>
2314
2315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2316 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2317 "m68k_frame_p".
2318 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2319
2320 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2321
2322 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2323
2324 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2325
2326 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2327 Define.
2328 * i386-linux-nat.c: Include "linux-nat.h".
2329 (child_post_startup_inferior): New function.
2330
2331 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2332
2333 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2334 at the start of a frameless function. This probably fixes PR
2335 backtrace/1338.
2336
2337 2003-08-17 Michael Chastain <mec@shout.net>
2338
2339 * symfile.c (find_sym_fns): Remove special case for apollo target.
2340
2341 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2342
2343 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2344 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2345 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2346 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2347 (linux_supports_tracevforkdone): New function.
2348 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2349 TRACEVFORKDONE.
2350 (child_follow_fork): Handle vfork.
2351 (linux_handle_extended_wait): Likewise. Also handle exec.
2352 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2353 * NEWS: Mention fork tracing.
2354
2355 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2356
2357 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2358
2359 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2360
2361 * Makefile.in (i386-linux-nat.o): Update dependencies.
2362 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2363 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2364 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2365 * i386-linux-nat.c: Include "linux-nat.h".
2366 (child_post_startup_inferior): New function.
2367 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2368 * infptrace.c (kill_inferior): Wrap in #ifdef.
2369 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2370 attaching to each LWP.
2371 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2372 (init_lin_lwp_ops): Fill in some more operations.
2373 * linux-nat.h (linux_enable_event_reporting)
2374 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2375 prototypes.
2376 * linux-nat.c (linux_enable_event_reporting): New function.
2377 (child_post_attach, linux_child_post_startup_inferior)
2378 (child_post_startup_inferior, child_follow_fork)
2379 (linux_handle_extended_wait, kill_inferior): New functions.
2380
2381 2003-08-16 Andrew Cagney <cagney@redhat.com>
2382
2383 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2384 * gdbarch.h, gdbarch.c: Re-generate.
2385
2386 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2387
2388 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2389
2390 2003-08-16 Andrew Cagney <cagney@redhat.com>
2391
2392 * NEWS: Mention that "set prompt-escape-char" was deleted.
2393 * top.c (get_prompt_1): Delete function.
2394 (gdb_prompt_escape):
2395 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2396 prompt-escape-char" command.
2397 (MAX_PROMPT_SIZE): Delete macro.
2398 (get_prompt): Simplify, do not call get_prompt_1.
2399
2400 2003-08-16 Andrew Cagney <cagney@redhat.com>
2401
2402 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2403 -Werror. -Wformat-nonliteral problems.
2404
2405 2003-08-15 J. Brobecker <brobecker@gnat.com>
2406
2407 Further multiarching work mostly for hppa64-*-hpux11:
2408 * hppa-tdep.h: New file.
2409 * hppa-tdep.c: #include hppa-tdep.c.
2410 (hppa32_num_regs): Renamed from hppa_num_regs.
2411 (hppa64_num_regs): New constant.
2412 (hppa64_call_dummy_breakpoint_offset): New constant.
2413 (hppa32_call_dummy_length): New constant.
2414 (hppa64_call_dummy_length): New constant.
2415 (hppa32_stack_align): Make name 32bit explicit.
2416 (hppa32_register_virtual_type): Likewise.
2417 (hppa32_extract_return_value): Likewise.
2418 (hppa32_use_struct_convention): Likewise.
2419 (hppa32_store_return_value): Likewise.
2420 (hppa64_register_virtual_type): New function.
2421 (hppa64_extract_return_value): New function.
2422 (hppa64_use_struct_convention): New function.
2423 (hppa64_store_return_value): New function.
2424 (hppa_frame_locals_address): Remove declaration, function does
2425 not exist anymore.
2426 (hppa_register_byte): Add support for PA64 ABI.
2427 (hppa_gdbarch_init): Add support for PA64 ABI.
2428 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2429 Make name 32bit explicit.
2430 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2431 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2432 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2433 (hppa64_hpux_frame_base_before_sigtramp): New function.
2434 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2435 * config/pa/tm-hppa64.h: Remove macros that are no longer
2436 necessary now that the gdbarch vector is properly setup.
2437 Transform some macros into function calls. Some minor cleanup.
2438 * config/pa/tm-hppah.h: Update function calls in macros
2439 following the function renaming in hppa-hpux-tdep.c.
2440 * Makefile.in (hppa_tdep_h): New variable.
2441 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2442
2443 2003-08-14 Michael Snyder <msnyder@redhat.com>
2444
2445 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2446
2447 2003-08-13 J. Brobecker <brobecker@gnat.com>
2448
2449 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2450 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2451 routine.
2452
2453 2003-08-13 Michael Snyder <msnyder@redhat.com>
2454
2455 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2456 (frv_saved_pc_after_call): Use deprecated ftype.
2457 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2458 (frv_remote_translate_xfer_address): Remove.
2459 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2460
2461 2003-08-13 J. Brobecker <brobecker@gnat.com>
2462
2463 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2464 initialization after the common gdbarch initialization, not before.
2465
2466 2003-08-13 J. Brobecker <brobecker@gnat.com>
2467
2468 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2469 (ADDR_BITS_REMOVE): Remove, redundant.
2470
2471 2003-08-13 J. Brobecker <brobecker@gnat.com>
2472
2473 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2474 gdbarch method to clear the 2 low bits of text addresses.
2475
2476 2003-08-12 Andrew Cagney <cagney@redhat.com>
2477
2478 * Makefile.in (dsrec.o): Update dependencies.
2479 * dsrec.c: Include "gdb_assert.h".
2480 (make_srec): Use snprintf instead of sprintf, use a literal format
2481 string.
2482
2483 2003-08-12 Andrew Cagney <cagney@redhat.com>
2484
2485 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2486 FRAME_OBSTACK_ZALLOC.
2487
2488 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2489
2490 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2491 SSE registers.
2492
2493 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2494
2495 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2496 amd64fbsd_sc_reg_offset): Add extern declarations.
2497 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2498 declarations.
2499
2500 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2501
2502 * MAINTAINERS (write after approval): Update my mail address.
2503
2504 2003-08-10 Andrew Cagney <cagney@redhat.com>
2505
2506 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2507
2508 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2509
2510 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2511 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2512 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2513 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2514 i386bsd_sc_reg_offset): Add extern declarations.
2515 * i386obsd-nat.c: Include "i386-tdep.h"
2516 (_initialize_i386obsd_nat): Remove extern declarations.
2517 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2518 declarations.
2519 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2520 declarations.
2521
2522 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2523 instead of frame_read_register.
2524 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2525 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2526 SP_REGNUM.
2527 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2528 instead of frame_unwind_unsigned_register. Use
2529 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2530 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2531 instead of read_register. Use builtin_type_void_data_ptr instead
2532 of builtin_type_void_func_ptr when extracting the address of the
2533 jmp_buf.
2534 (i386_extract_return_value, i386_store_return_value,
2535 i386_pseudo_register_read, i386_pseudo_register_write): Use
2536 register_size instead REGISTER_RAW_SIZE.
2537
2538 2003-08-10 Andrew Cagney <cagney@redhat.com>
2539
2540 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2541 sprintf. Make "name" constant.
2542
2543 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2544
2545 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2546 instead of frame_read_register.
2547 (i387_print_float_info): Use get_frame_register and
2548 get_frame_register_unsigned instead of frame_register_read.
2549
2550 * i386fbsd-nat.c: Include "i386-tdep.h".
2551 (child_resume): Make `eflags' an ULONGEST. Use
2552 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2553 instead of register_read and register_write.
2554
2555 * i386bsd-nat.c (fetch_inferior_registers,
2556 store_inferior_registers): Don't use && at the end of a line.
2557 (_initialize_i386bsd_nat): Fix typo.
2558
2559 * frame.c (_initialize_frame): Add missing backslash.
2560
2561 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2562 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2563 and supply_register instead of manipulating the register buffer
2564 directly.
2565
2566 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2567 * config/i386/nm-i386sol2.h
2568 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2569
2570 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2571 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2572 instructions that GCC likes to mingle into the prologue. Fixes
2573 gdb/1253 and gdb/1255.
2574
2575 2003-08-09 Andrew Cagney <cagney@redhat.com>
2576
2577 Fix GDB PR cli/926.
2578 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2579 * command.h (add_setshow_uinteger_cmd): Declare.
2580 * frame.c (set_backtrace_cmd): New function.
2581 (show_backtrace_cmd): New function.
2582 * frame.c (_initialize_frame): Replace "set/show
2583 backtrace-below-main" with "set/show backtrace past-main". Add
2584 command "set/show backtrace limit".
2585 (backtrace_past_main): Rename "backtrace_below_main".
2586 (backtrace_limit): New variable.
2587 (get_prev_frame): Update. Check the backtrace_limit.
2588
2589 2003-08-09 Andrew Cagney <cagney@redhat.com>
2590
2591 * defs.h (xstrprintf): Declare.
2592 * utils.c (xstrprintf): New function.
2593 * breakpoint.c (insert_breakpoints): Replace sprintf and
2594 non-literal format strings, with xstrprintf and cleanups.
2595 (delete_breakpoint,breakpoint_re_set): Ditto.
2596 (commands_command, insert_breakpoints): Ditto.
2597 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2598 (break_at_finish_command_1): Ditto.
2599
2600 2003-08-09 Andrew Cagney <cagney@redhat.com>
2601
2602 * MAINTAINERS (language support): List Adam Fedor as Objective C
2603 maintainer.
2604
2605 2003-08-08 J. Brobecker <brobecker@gnat.com>
2606
2607 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2608 are now multiarched.
2609
2610 2003-08-08 J. Brobecker <brobecker@gnat.com>
2611
2612 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2613 longer necessary now that hppa64 is partially multiarch'ed.
2614
2615 2003-08-08 Andrew Cagney <cagney@redhat.com>
2616
2617 * interps.c (interp_set): Check for a NULL "old_interp".
2618
2619 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2620
2621 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2622 (install-only): Support DESTDIR.
2623 (uninstall): Likewise.
2624 (install-gdbtk): Likewise.
2625
2626 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2627
2628 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2629 contains something meaningful at all times.
2630
2631 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2632
2633 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2634
2635 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2636
2637 * MAINTAINERS (write after approval): Added self.
2638
2639 2003-08-07 Andrew Cagney <cagney@redhat.com>
2640
2641 * inferior.h (AT_SYMBOL): Define.
2642 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2643 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2644 * mips-tdep.c (mips_call_dummy_address): Delete function.
2645 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2646 set call_dummy_address.
2647
2648 2003-08-07 Andrew Cagney <cagney@redhat.com>
2649
2650 * language.c (op_error): Delete function.
2651 (binop_type_check): Delete function.
2652 * language.h (type_op_error, range_op_error): Delete macros.
2653 (op_error): Delete declaration.
2654
2655 2003-08-07 Andrew Cagney <cagney@redhat.com>
2656
2657 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2658
2659 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2660
2661 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2662 (x86_64_push_arguments): Skip the red zone.
2663
2664 2003-08-05 Andrew Cagney <cagney@redhat.com>
2665
2666 * reggroups.c (reggroup_next): Check for the final entry.
2667
2668 2003-08-04 Andrew Cagney <cagney@redhat.com>
2669
2670 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2671 * cli/cli-script.c (define_command): Call query directly, instead
2672 of passing it a buffer.
2673 * ocd.c (ocd_error): Pass error a constant format string.
2674 * remote-mips.c (mips_error): Use fputs_filtered.
2675
2676 * solib-svr4.c (_initialize_svr4_solib): Update
2677 register_gdbarch_data call.
2678 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2679
2680 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2681 (register_gdbarch_data): Delete "free" parameter. Update
2682 comments.
2683 * gdbarch.h, gdbarch.c: Re-generate.
2684 * reggroups.c (_initialize_reggroup): Update.
2685 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2686 * frame-base.c (_initialize_frame_base): Update.
2687 * frame-unwind.c (_initialize_frame_unwind): Update.
2688 * user-regs.c (_initialize_user_regs): Update.
2689 * remote.c (_initialize_remote): Update.
2690 * regcache.c (_initialize_regcache): Update.
2691
2692 * regcache.c (xfree_regcache_descr): Delete function.
2693 (_initialize_regcache): Update call to register_gdbarch_data.
2694 (init_regcache_descr, init_legacy_regcache_descr): Use
2695 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2696
2697 * remote.c (free_remote_state): Delete function.
2698 (_initialize_remote): Update register_gdbarch_data.
2699 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2700 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2701
2702 2003-08-04 Andrew Cagney <cagney@redhat.com>
2703
2704 * reggroups.c (struct reggroup_el): Define.
2705 (struct reggroups): Delete field "nr_group". Replace array
2706 "group" with a "first" to "last" linked list.
2707 (reggroups_init): Update. Allocate using gdbarch's obstack.
2708 (reggroups_free): Delete function.
2709 (add_group): Update. Add "el" parameter.
2710 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2711 (default_groups): Update.
2712 (reggroup_next): Replace reggroups.
2713 (reggroups_dump): Update.
2714 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2715 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2716 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2717
2718 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2719
2720 * Makefile.in (tui-interp.o): Update dependencies.
2721
2722 2003-08-04 David Carlton <carlton@kealia.com>
2723
2724 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2725 to internal_error call.
2726 * source.c (forward_search_command): Add "%s" format argument.
2727 (reverse_search_command): Ditto.
2728 * top.c (quit_confirm): Ditto.
2729 * cli/cli-setshow.c (do_setshow_command): Ditto.
2730 * cp-valprint.c (cp_print_class_method): Replace
2731 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2732 (cp_print_class_member): Ditto.
2733 * event-top.c (command_line_handler): Ditto.
2734 * linux-proc.c (linux_info_proc_cmd): Ditto.
2735 * p-typeprint.c (pascal_type_print_base): Ditto.
2736 * p-valprint.c (pascal_object_print_class_method): Ditto.
2737 (pascal_object_print_class_member): Ditto.
2738 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2739 * remote.c (remote_cisco_section_offsets): Ditto.
2740 * top.c (command_line_input): Ditto.
2741 * utils.c (vwarning,error_stream,quit): Ditto.
2742 * valprint.c (print_floating,print_binary_chars)
2743 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2744
2745 2003-08-04 Andrew Cagney <cagney@redhat.com>
2746
2747 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2748
2749 2003-08-02 Andrew Cagney <cagney@redhat.com>
2750
2751 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2752 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2753 amd64fbsd-nat.c.
2754
2755 2003-08-02 Andrew Cagney <cagney@redhat.com>
2756
2757 * Makefile.in: Update all dependencies and definitions.
2758
2759 2003-08-02 Adam Fedor <fedor@gnu.org>
2760
2761 * linespec.c (is_objc_method_format): New function
2762 (decode_line_1, locate_first_half): Use it.
2763 Fixes PR objc/1298
2764
2765 2003-08-01 Andrew Cagney <cagney@redhat.com>
2766
2767 * NEWS: Mention that m32r is multi-arch.
2768 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2769 * configure.tgt: Recognize m32r-*-*.
2770 * config/m32r/tm-m32r.h: Delete file.
2771 * config/m32r/m32r.mt: New file.
2772 * m32r-rom.c (m32r_upload_command): Use hostent only when
2773 gethostname succeeds, in order to avoid a compilation
2774 warning.
2775 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2776 compiler warning.
2777
2778 2003-08-01 Michael Snyder <msnyder@redhat.com>
2779
2780 * sh-tdep.c (sh_frame_align): New gdbarch method.
2781 (sh_gdbarch_init): Set up frame_align method.
2782
2783 2003-07-31 Michael Snyder <msnyder@redhat.com>
2784
2785 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2786 which is already covered by the new frames infrastructure.
2787
2788 2003-07-31 Andrew Cagney <cagney@redhat.com>
2789
2790 * user-regs.c (struct user_reg): Add "next" link.
2791 (struct user_regs): Replace "user" with "first" and "last" links.
2792 (append_user_reg): Add pre-allocated "reg" parameter.
2793 (builtin_user_regs): Provide initial value for "last".
2794 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2795 (user_regs_init): Allocate memory from the gdbarch obstack.
2796 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2797 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2798 linked list.
2799 (usernum_to_user_reg): New function.
2800 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2801 (value_of_user_reg): Use usernum_to_user_reg.
2802 (user_regs_free): Delete function.
2803 (_initialize_user_regs): Update register_gdbarch_data call.
2804
2805 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2806
2807 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2808
2809 2003-07-30 Michael Snyder <msnyder@redhat.com>
2810
2811 * value.h (value_being_returned): Add a struct_addr argument.
2812 * infcall.c (call_function_by_hand): Pass struct_addr to
2813 value_being_returned.
2814 * infcmd.c (print_return_value): Pass zero as struct_addr.
2815 * values.c (value_being_returned): If struct_addr is passed,
2816 use it instead of trying to recover it from the inferior.
2817
2818 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2819
2820 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2821 the prologue analyzer won't need to attempt to extract the pc
2822 value from the woefully incomplete dummy frame.
2823 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2824 possible. Disable code which modifies the frame.
2825
2826 2003-07-28 Andrew Cagney <cagney@redhat.com>
2827
2828 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2829 to level 2.
2830 (annotate_breakpoints_table, annotate_record): Ditto.
2831 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2832 (annotate_field_name_end, annotate_field_value): Ditto.
2833 (annotate_field_end, annotate_frame_source_begin): Ditto.
2834 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2835 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2836 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2837 (annotate_frame_address_end, annotate_frame_address): Ditto.
2838 (annotate_frame_args, annotate_frame_end): Ditto.
2839 (annotate_frame_where, annotate_arg_begin): Ditto.
2840 (annotate_arg_name_end, annotate_arg_value): Ditto.
2841 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2842 (annotate_function_call, annotate_signal_name): Ditto.
2843 (annotate_signal_string, annotate_signal_name_end): Ditto.
2844 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2845 (annotate_value_begin, annotate_value_history_value): Ditto.
2846 (annotate_value_history_end, annotate_value_end): Ditto.
2847 (annotate_display_begin, annotate_display_number_end): Ditto.
2848 (annotate_display_format, annotate_display_expression): Ditto.
2849 (annotate_display_expression_end, annotate_display_value): Ditto.
2850 (annotate_display_end, annotate_array_section_begin): Ditto.
2851 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2852 (annotate_elt, annotate_array_section_end): Ditto.
2853
2854 2003-07-28 Andrew Cagney <cagney@redhat.com>
2855
2856 * regcache.c (struct regcache_descr): Update comments on
2857 nr_raw_registers.
2858 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2859 sizeof_raw_register_valid_p.
2860 (init_regcache_descr): Set nr_raw_registers and
2861 sizeof_raw_register_valid_p before calling
2862 init_legacy_regcache_descr.
2863
2864 2003-07-28 Andrew Cagney <cagney@redhat.com>
2865
2866 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2867 MOD NUM_REGS.
2868
2869 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
2870
2871 * thread.c (info_threads_command): Use get_selected_frame ().
2872 Check that there is at least one non-sentinel frame.
2873
2874 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2875
2876 * m68hc11-tdep.c (struct frame_extra_info): Remove.
2877 (m68hc11_pop_frame): Remove.
2878 (m68hc11_frame_saved_pc): Remove.
2879 (m68hc11_frame_chain): Remove.
2880 (m68hc11_frame_init_saved_regs): Remove.
2881 (m68hc11_init_extra_frame_info): Remove.
2882 (m68hc11_store_struct_return): Remove.
2883 (m68hc11_saved_pc_after_call): Remove.
2884
2885 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2886
2887 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
2888 frame unwind information.
2889 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
2890 and adapted for frame unwinding.
2891 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
2892 (m68hc11_unwind_pc): New function.
2893 (m68hc11_frame_unwind_cache): New function to analyze frames.
2894 (m68hc11_frame_this_id): New function to create new frame struct.
2895 (m68hc11_frame_prev_register): New function to unwind a register from
2896 the frame.
2897 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
2898 (m68hc11_frame_p): New function for the above.
2899 (m68hc11_frame_base_address): New function to return fp of frame.
2900 (m68hc11_frame_args_address): Update for frame.
2901 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
2902 (m68hc11_unwind_sp): New function.
2903 (m68hc11_unwind_dummy_id): New function.
2904 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
2905 calls.
2906
2907 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2908
2909 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
2910 (m68hc11_guess_from_prologue): Advance the pc and frame size only
2911 when we are beyond the current pc.
2912
2913 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2914
2915 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2916 from m68hc11_push_arguments.
2917 (m68hc11_push_arguments): Remove.
2918 (m68hc11_push_return_address): Remove.
2919 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2920 handlers; remove deprecated_extra_stack_alignment_needed.
2921
2922 2003-07-27 Andrew Cagney <cagney@redhat.com>
2923
2924 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2925 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2926 REAL_PC and not the pointer.
2927 * hppa-hpux-tdep.c: Include frame.h
2928
2929 2003-07-27 Andrew Cagney <cagney@redhat.com>
2930
2931 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2932 GDB_MULTI_ACH_PARTIAL.
2933
2934 2003-07-27 Andrew Cagney <cagney@redhat.com>
2935
2936 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2937 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2938 operator at start and not end of line.
2939 (decode_prologue): Ditto.
2940 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2941 frame_unwind_register_unsigned instead of
2942 frame_unwind_unsigned_register.
2943 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2944 read_register.
2945 (m32r_push_dummy_call): Use register_size instead of
2946 REGISTER_RAW_SIZE.
2947 (m32r_frame_sniffer): Replace m32r_frame_p.
2948 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2949 * m32r-rom.c (report_transfer_performance): Delete extern
2950 declaration.
2951 (m32r_load, m32r_upload_command): Use print_transfer_performance
2952 instead of report_transfer_performance.
2953 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2954 / add_show_from_set.
2955
2956 2003-07-26 Andrew Cagney <cagney@redhat.com>
2957
2958 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2959 store_return_value and extract_struct_value_address.
2960
2961 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2962
2963 PR c++/1267
2964 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2965 NULL, default to the section containing PC.
2966
2967 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2968
2969 * NEWS: Mention "regs" deprecated for m68hc11 too.
2970
2971 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2972 (m68hc11_print_register): New function to print out one register.
2973 (m68hc11_print_registers_info): New function to print registers.
2974 (show_regs): Deprecate and use the above.
2975 (m68hc11_gdbarch_init): Install the print_registers_info.
2976
2977 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2978
2979 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2980 that we have a SIGTRAP before returning non-zero.
2981
2982 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2983 Elena Zannoni <ezannoni@redhat.com>
2984
2985 * linespec.c (decode_line_2): Avoid crash if
2986 find_function_start_sal() returns empty record.
2987
2988 2003-07-23 Andreas Schwab <schwab@suse.de>
2989
2990 * ia64-tdep.c (ia64_print_insn): New function.
2991 (ia64_gdbarch_init): Set print_insn to it.
2992 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2993 deprecated_tm_print_insn_info.
2994
2995 2003-07-22 Michael Snyder <msnyder@redhat.com>
2996
2997 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2998 handle 8-bit returns (long long).
2999 (h8300h_extract_return_value): Ditto.
3000 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3001
3002 2003-07-22 Andrew Cagney <cagney@redhat.com>
3003
3004 * gdbarch.c Include "gdb_obstack.h".
3005 (struct gdbarch): Add an "obstack".
3006 (alloc_gdbarch_data): Allocate the gdbarch data using
3007 GDBARCH_OBSTACK_CALLOC.
3008 (free_gdbarch_data): Delete function.
3009 (gdbarch_obstack_zalloc): New function.
3010 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3011 Assert that the architecture is not initialized.
3012 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3013 vector from the obstack.
3014 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3015 architecture obstack.
3016 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3017 (set_gdbarch_data): Assert that the data is not initialized.
3018 (struct gdbarch_data): Delete member "free".
3019 (register_gdbarch_data): Do not initialize "free".
3020 * gdbarch.h, gdbarch.c: Re-generate.
3021
3022 2003-07-22 Andrew Cagney <cagney@redhat.com>
3023
3024 * configure.in (build_warnings): Add -Wformat-nonliteral.
3025 * configure: Re-generate.
3026
3027 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3028
3029 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3030
3031 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3032
3033 * findvar.c (read_var_value): Remove case for thread local storage
3034 variables. It is now entirely handled by the dwarf2 location
3035 expression code.
3036 * printcmd.c (address_info): Ditto.
3037 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3038 enumeration value.
3039 (struct symbol): Remove objfile field, which was used by
3040 LOC_THREAD_LOCAL_STATIC only.
3041 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3042 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3043 usage of objfile pointer.
3044 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3045 thread local variables.
3046 Add include of objfiles.h.
3047 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3048 storage variables.
3049 * Makefile.in (dwarf2loc.o): Update dependencies.
3050
3051 2003-07-22 Andrew Cagney <cagney@redhat.com>
3052
3053 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3054 get_frame_base.
3055 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3056 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3057 (struct value): Add opaque declaration.
3058 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3059
3060 2003-07-21 Andrew Cagney <cagney@redhat.com>
3061
3062 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3063 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3064
3065 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3066
3067 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3068 regcache_cooked_read_unsigned instead of read_register.
3069 (m68hc11_saved_pc_after_call): Likewise.
3070 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3071 instead of write_register.
3072 (m68hc11_register_type): New function.
3073 (m68hc11_register_virtual_type): Remove.
3074 (m68hc11_store_return_value): Convert to use the regcache.
3075 (m68hc11_extract_struct_value_address): Likewise.
3076 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3077 m68hc11_register_type; undeprecate store_return_value and
3078 extract_struct_value_address.
3079
3080 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3081
3082 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3083 and translate to use regcache.
3084 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3085
3086 2003-07-18 Andrew Cagney <cagney@redhat.com>
3087
3088 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3089 * gdbarch.h, gdbarch.c: Re-generate.
3090 * i386-tdep.c (i386_gdbarch_init): Do not set
3091 DWARF2_BUILD_FRAME_INFO.
3092 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3093 unconditionally.
3094 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3095 DWARF2_BUILD_FRAME_INFO.
3096
3097 2003-07-18 Andrew Cagney <cagney@redhat.com>
3098
3099 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3100 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3101
3102 2003-07-18 Andrew Cagney <cagney@redhat.com>
3103
3104 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3105 frame_unwind_address_in_block, instead of frame_pc_unwind.
3106 (dwarf2_frame_cache): Ditto.
3107
3108 2003-07-18 Andrew Cagney <cagney@redhat.com>
3109
3110 * user-regs.h (struct gdbarch): Declare opaque.
3111 * ui-out.h (struct ui_file): Declare opaque.
3112 * dwarf2-frame.h (struct frame_info): Declare opaque.
3113
3114 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3115
3116 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3117 #include "...".
3118 (procfs_meminfo): Change strerror to safe_strerror.
3119 (procfs_can_run): Remove K&R badness.
3120
3121 2003-07-17 Michael Snyder <msnyder@redhat.com>
3122
3123 * remote-sim.c: Comment typo fix.
3124
3125 2003-07-17 Andrew Cagney <cagney@redhat.com>
3126
3127 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3128 configure.
3129 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3130 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3131 GDB_MULTI_ARCH_PARTIAL.
3132
3133 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3134
3135 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3136 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3137 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3138
3139 2003-07-16 Theodore A. Roth <troth@openavr.org>
3140
3141 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3142 found.
3143 (avr_frame_unwind_cache): Don't unwind FP for main.
3144 Update a comment.
3145 Save the computed prev_sp.
3146 (avr_saved_regs_unwinder): Remove function.
3147 (avr_frame_prev_register): Use PC unwind logic from
3148 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3149
3150 2003-07-16 Andrew Cagney <cagney@redhat.com>
3151
3152 * frame-base.h (frame_base_p_ftype): Delete definition.
3153 (frame_base_append_predicate): Delete declaration.
3154 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3155 (frame_unwind_append_predicate): Delete declaration.
3156 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3157 (append_predicate): Delete parameter "p".
3158 (frame_unwind_append_predicate): Delete function.
3159 (frame_unwind_append_sniffer): Update call to append_predicate.
3160 (frame_unwind_free): Delete function.
3161 (_initialize_frame_unwind): Pass NULL as "free" to
3162 register_gdbarch_data.
3163 (frame_unwind_init): Append the dummy_frame_sniffer.
3164 (frame_unwind_find_by_frame): Simplify.
3165 * frame-base.c (struct frame_base_table): Delete field "p".
3166 (append_predicate): Delete parameter "p".
3167 (frame_base_append_predicate): Delete function.
3168 (frame_base_append_sniffer): Update call to append_predicate.
3169 (frame_base_free): Delete function.
3170 (frame_base_find_by_frame): Simplify.
3171 (_initialize_frame_base): Pass NULL as "free" to
3172 register_gdbarch_data.
3173 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3174 (x86_64_sigtramp_frame_sniffer): Replace
3175 "x86_64_sigtramp_frame_p".
3176 (x86_64_init_abi): Set the frame unwind sniffers.
3177 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3178 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3179 (m68k_gdbarch_init): Set the frame unwind sniffers.
3180 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3181 "i386_sigtramp_frame_p".
3182 (i386_frame_sniffer): Replace "i386_frame_p".
3183 (i386_gdbarch_init): Set the frame unwind sniffers.
3184 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3185 (avr_gdbarch_init): Set the frame unwind sniffers.
3186 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3187 "alpha_sigtramp_frame_p"
3188 (alpha_heuristic_frame_sniffer): Replace
3189 "alpha_heuristic_frame_p".
3190 (alpha_gdbarch_init): Set the frame unwind sniffers.
3191 (alpha_dwarf2_init_abi): Ditto.
3192 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3193 "alpha_debug_frame_p".
3194 (alpha_mdebug_frame_base_sniffer): Replace
3195 "alpha_mdebug_frame_base_p".
3196 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3197 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3198 (d10v_gdbarch_init): Set the frame unwind sniffer.
3199 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3200 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3201 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3202 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3203 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3204 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3205
3206 2003-07-16 Michael Snyder <msnyder@redhat.com>
3207
3208 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3209 should go thru sh_dsp_register_sim_regno, else the dsp regs
3210 will not get the right values.
3211
3212 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3213
3214 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3215 deprecated_store_floating by call to store_typed_floating.
3216 (sh_sh4_register_convert_to_raw): Substitute call to
3217 deprecated_extract_floating by call to extract_typed_floating.
3218
3219 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3220
3221 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3222
3223 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3224
3225 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3226 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3227 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3228 as possible.
3229 (do_pseudo_register): Remove.
3230 (sh_push_dummy_code): New function.
3231 (sh64_store_struct_return): Rename from sh_store_struct_return.
3232 Only called for sh64 now.
3233 (sh_extract_struct_value_address): Regcache'ify.
3234 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3235 and accomodate new tasks.
3236 (sh64_push_return_address): Rename from sh_push_return_address.
3237 Only called for sh64 now.
3238 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3239 Regcache'ify.
3240 (sh3e_sh4_extract_return_value): Regcache'ify.
3241 (sh_default_store_return_value): Ditto.
3242 (sh3e_sh4_store_return_value): Ditto.
3243 (sh_default_register_byte): Remove.
3244 (sh_sh4_register_byte): Remove.
3245 (sh_default_register_raw_size): Remove.
3246 (sh_sh4_register_raw_size): Remove.
3247 (sh_register_virtual_size): Remove.
3248 (sh_sh3e_register_virtual_type): Remove.
3249 (sh_sh3e_register_type): New function.
3250 (sh_sh4_register_virtual_type): Remove.
3251 (sh_sh4_register_type): New function.
3252 (sh_default_register_virtual_type): Remove.
3253 (sh_default_register_type): New function.
3254 (do_fv_register_info): Add parameters to accomodate call from
3255 sh_print_registers_info.
3256 (do_dr_register_info): Ditto.
3257 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3258 Add parameters to accomodate call from sh_print_registers_info.
3259 (sh_do_fp_register): Ditto.
3260 (sh64_do_pseudo_register): Call do_dr_register_info,
3261 do_fv_register_info and sh_do_fp_register with default parameters.
3262 (sh_do_register): Add parameters to accomodate call from
3263 sh_print_registers_info.
3264 (sh_print_register): Ditto.
3265 (sh_print_registers_info): Rename from sh_do_registers_info.
3266 Add parameters to be used as gdbarch_print_registers_info
3267 implementation. Accomodate removed do_pseudo_register function
3268 pointer.
3269 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3270 function pointer. Call sh_print_register with default parameters.
3271 (sh64_do_registers_info): Call sh_print_registers_info instead of
3272 sh_do_registers_info.
3273 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3274 detection of deprecated vs. non-deprecated functionality.
3275 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3276 function pointer assignments by direct function calls.
3277
3278 2003-07-15 Andrew Cagney <cagney@redhat.com>
3279
3280 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3281 (frame_register_unwind, create_new_frame): Ditto.
3282 (legacy_get_prev_frame, get_frame_type): Ditto.
3283 (get_frame_base_address): Use frame_base_find_by_frame.
3284 (get_frame_locals_address): Use frame_base_find_by_frame.
3285 (get_frame_args_address): Use frame_base_find_by_frame.
3286 * frame-base.h (frame_base_sniffer_ftype): Declare.
3287 (frame_base_append_sniffer): Declare.
3288 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3289 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3290 (frame_base_append_sniffer): New function.
3291 (frame_base_append_predicate): Add a NULL sniffer.
3292 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3293 (struct frame_base_table): Add "sniffer".
3294 (frame_base_free): Free the "sniffer" table.
3295 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3296 (frame_unwind_append_sniffer): Declare.
3297 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3298 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3299 (struct frame_unwind_table): Add "sniffer", delete "middle".
3300 (append_predicate): Add "sniffer" parameter, append the sniffer.
3301 (frame_unwind_init): Update append_predicate call.
3302 (frame_unwind_append_sniffer): New function.
3303 (frame_unwind_append_predicate): Update append_predicate call.
3304 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3305
3306 2003-07-15 Andrew Cagney <cagney@redhat.com>
3307
3308 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3309 before code inhibiting repeated unwind attempts. Add to
3310 commentary on that test's problems.
3311 * blockframe.c (inside_main_func): Look for "main" in the minimal
3312 symbol table.
3313 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3314 identical.
3315
3316 2003-07-15 Andrew Cagney <cagney@redhat.com>
3317
3318 * complaints.c (struct explanation): Define.
3319 (struct complaints): Change type of "explanation" to "struct
3320 explanation".
3321 (symfile_explanations): Convert to a "struct explanation" table.
3322 (vcomplaint): Update.
3323
3324 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3325
3326 * x86-64-linux-nat.c (regmap): Removed.
3327 (supply_gregset, fill_gregset): Call
3328 x86_64_linux_(fill,supply)_gregset functions.
3329 * x86-64-linux-tdep.c (USER_*): New defines.
3330 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3331 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3332 New functions.
3333 (fetch_core_registers): Ditto.
3334 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3335 * x86-64-linux-tdep.h: New file.
3336 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3337 and core-regset.o.
3338 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3339
3340 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3341
3342 * x86-64-tdep.c (x86_64_store_return_value): Use
3343 regcache_cooked_write_part instead of regcache_cooked_write.
3344
3345 * configure.host: Add x86_64-*-freebsd*.
3346 * configure.tgt: Add x86_64-*-freebsd*.
3347 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3348 * amd64fbsd-nat.c: New file.
3349 * amd64fbsd-tdep.c: New file.
3350 * config/i386/nm-fbsd64.h: New file.
3351 * config/i386/fbsd64.mh: New file.
3352 * config/i386/fbsd64.mt: New file.
3353
3354 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3355
3356 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3357 `sc_regs_offset' and `sc_fpregs_offset'.
3358 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3359 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3360 (alpha_sigtramp_register_address): Rewrite to use new members of
3361 `struct gdbarch_tdep'.
3362 (alpha_gdbarch_init): Initialize new members of struct
3363 gdbarch_tdep'.
3364 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3365 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3366 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3367 (alphafbsd_pc_in_sigtramp): Implement.
3368 (alphafbsd_sigtramp_offset): New function.
3369 (alphafbsd_sigcontext_addr): New function.
3370 (alphafbsd_init_abi): Initialize signal trampoline related members
3371 of `struct gdbarch_tdep'.
3372 (_initialize_alphafbsd_tdep): Add prototype.
3373
3374 2003-07-11 Theodore A. Roth <troth@openavr.org>
3375
3376 * Makefile.in (install-only): Quote sed expression when generating
3377 transformed_name.
3378
3379 2003-07-11 Richard Henderson <rth@redhat.com>
3380
3381 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3382 * dwarf2-frame.c: Include complaints.h.
3383 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3384 variable initialization; return NULL on error.
3385 (decode_frame_entry): New.
3386
3387 2003-07-11 Andrew Cagney <cagney@redhat.com>
3388
3389 * frame.h (frame_address_in_block): Delete declaration.
3390 * blockframe.c (frame_address_in_block): Delete function.
3391 (get_frame_block): Use get_frame_address_in_block.
3392 (block_innermost_frame): Ditto.
3393 * stack.c (print_frame, backtrace_command_1): Ditto.
3394
3395 * frame.h (get_frame_address_in_block): Declare.
3396 (frame_unwind_address_in_block): Declare.
3397 * frame.c (frame_unwind_address_in_block): New function.
3398 (get_frame_address_in_block): New function.
3399
3400 2003-07-10 Andrew Cagney <cagney@redhat.com>
3401
3402 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3403 pre-default. Note: re-generate has no effect.
3404
3405 2003-07-10 Andrew Cagney <cagney@redhat.com>
3406
3407 * gdbarch.sh: When a variable, but not a function, compare against
3408 0. Fix problem in previous patch.
3409 * gdbarch.c: Re-generate.
3410
3411 2003-07-10 Andrew Cagney <cagney@redhat.com>
3412
3413 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3414 functions against NULL, not 0.
3415 * gdbarch.c: Re-generate.
3416
3417 2003-07-10 Fred Fish <fnf@ninemoons.com>
3418
3419 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3420 null string instead of a null pointer.
3421 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3422
3423 2003-07-09 Michael Snyder <msnyder@redhat.com>
3424
3425 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3426
3427 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3428
3429 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3430 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3431 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3432 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3433 * x86-64-tdep.c: ... from here.
3434
3435 2003-07-09 Andreas Schwab <schwab@suse.de>
3436
3437 * m68k-tdep.h (enum struct_return): Define.
3438 (struct gdbarch_tdep): Add struct_return.
3439 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3440 bytes are padded to the right, not to the left. Pass struct value
3441 address in register %a1, not on stack.
3442 (m68k_use_struct_convention): New function.
3443 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3444 struct_return in tdep to pcc_struct_return.
3445 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3446 reg_struct_return.
3447
3448 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3449
3450 * somread.c (som_symfile_offsets): Fix compilation error.
3451
3452 2003-07-09 Andrew Cagney <cagney@redhat.com>
3453
3454 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3455 Add comments about the checks.
3456
3457 2003-07-08 Andrew Cagney <cagney@redhat.com>
3458
3459 * Makefile.in: Make dependency section headers consistent.
3460 (config_h): Move to $BUILD headers section.
3461 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3462 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3463 (ada-exp.tab.c): Move to YACC/LEX section.
3464 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3465 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3466
3467 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3468
3469 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3470 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3471 of strerror with safe_strerror, use ISO C function definitions,
3472 and replace instances of sprintf with snprintf.
3473
3474 2003-07-07 Andrew Cagney <cagney@redhat.com>
3475
3476 * frame.c (get_prev_frame): Enable check for identical frames.
3477 Update comments. Update error messages.
3478
3479 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3480
3481 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3482
3483 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3484
3485 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3486 sort_symtab_syms, no longer necessary.
3487
3488 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3489
3490 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3491
3492 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3493
3494 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3495 (mips_register_byte): Likewise.
3496
3497 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3498
3499 * Makefile.in (sparc_tdep_h): New.
3500 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3501 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3502 * sparc-linux-nat.c: Include "sparc-tdep.h".
3503 * sparc-nat.c: Likewise.
3504 * sparc-tdep.c: Likewise.
3505 * sparc64nbsd-nat.c: Likewise.
3506 * sparcnbsd-nat.c: Likewise.
3507 * sparcnbsd-tdep.c: Likewise.
3508 * sparc-tdep.h: New file.
3509 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3510 and sparc_npc_regnum.
3511
3512 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3513
3514 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3515 (mips_linux_cannot_store_register): List supported instead of
3516 unsupported registers.
3517
3518 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3519
3520 * disasm.c (dump_insns): Separate instructions from addresses.
3521
3522 2003-07-07 Andreas Schwab <schwab@suse.de>
3523
3524 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3525 dependencies.
3526 * m68k-tdep.c (NUM_FREGS): Delete.
3527 (SIG_PC_FP_OFFSET): Delete.
3528 (TARGET_M68K): Delete.
3529 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3530 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3531 P_MOVEL_SP, P_MOVEML_SP): Define.
3532 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3533 P_TRAP): Delete.
3534 (m68k_register_raw_size): Delete.
3535 (m68k_register_virtual_size): Delete.
3536 (m68k_register_type): Renamed from m68k_register_virtual_type and
3537 add gdbarch argument.
3538 (m68k_store_struct_return): Delete.
3539 (m68k_deprecated_extract_return_value): Delete.
3540 (m68k_deprecated_extract_struct_value_address): Delete.
3541 (m68k_frame_chain): Delete.
3542 (m68k_frame_saved_pc): Delete.
3543 (m68k_fix_call_dummy): Delete.
3544 (m68k_push_dummy_frame): Delete.
3545 (m68k_pop_frame): Delete.
3546 (m68k_extract_return_value): New function.
3547 (m68k_store_return_value): Rewrite using regcache.
3548 (m68k_extract_struct_value_address): Rewrite using regcache.
3549 (m68k_push_dummy_call): New function.
3550 (struct m68k_frame_cache): Define.
3551 (m68k_alloc_frame_cache): New function.
3552 (m68k_analyze_frame_setup): New function.
3553 (m68k_analyze_register_saves): New function.
3554 (m68k_analyze_prologue): New function.
3555 (m68k_skip_prologue): Rewrite using above functions.
3556 (m68k_unwind_pc): New function.
3557 (m68k_frame_cache): New function.
3558 (m68k_frame_this_id): New function.
3559 (m68k_frame_prev_register): New function.
3560 (m68k_frame_unwind): New variable.
3561 (m68k_frame_p): New function.
3562 (m68k_sigtramp_frame_cache): New function.
3563 (m68k_sigtramp_frame_this_id): New function.
3564 (m68k_sigtramp_frame_prev_register): New function.
3565 (m68k_sigtramp_frame_unwind): New variable.
3566 (m68k_sigtramp_frame_p): New function.
3567 (m68k_frame_base_address): New function.
3568 (m68k_frame_base): New function.
3569 (m68k_unwind_dummy_id): New function.
3570 (fill_gregset): Use regcache_collect.
3571 (fill_fpregset): Likewise.
3572 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3573 defined.
3574 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3575 deprecated_init_frame_pc, deprecated_store_struct_return,
3576 deprecated_extract_return_value, deprecated_store_return_value,
3577 deprecated_frame_chain, deprecated_frame_saved_pc,
3578 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3579 deprecated_register_virtual_size,
3580 deprecated_max_register_raw_size,
3581 deprecated_max_register_virtual_size,
3582 deprecated_register_virtual_type, deprecated_register_size,
3583 deprecated_register_byte, deprecated_register_bytes,
3584 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3585 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3586 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3587 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3588 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3589 deprecated_push_dummy_frame, deprecated_pop_frame,
3590 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3591 only if SYSCALL_TRAP is defined. Set extract_return_value,
3592 store_return_value, extract_struct_value_address, register_type,
3593 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3594 predicates.
3595 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3596 M68K_MAX_REGISTER_SIZE): Define.
3597 (struct m68k_sigtramp_info): Define.
3598 (struct gdbarch_tdep): Add get_sigtramp_info.
3599 * m68klinux-nat.c (fetch_register): Use register_size instead of
3600 REGISTER_RAW_SIZE. Don't put assignment in if.
3601 (store_register): Likewise.
3602 (fetch_inferior_registers): Likewise.
3603 (store_inferior_registers): Likewise.
3604 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3605 (m68k_linux_frame_saved_pc): Delete.
3606 (m68k_linux_sigcontext_reg_offset,
3607 m68k_linux_ucontext_reg_offset): Define.
3608 (m68k_linux_get_sigtramp_info): New function.
3609 (m68k_linux_extract_return_value): Rewrite using regcache.
3610 (m68k_linux_store_return_value): Likewise.
3611 (m68k_linux_extract_struct_value_address): Likewise.
3612 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3613 Don't set deprecated_frame_saved_pc,
3614 deprecated_extract_return_value, deprecated_store_return_value,
3615 deprecated_extract_struct_value_address. Set
3616 extract_return_value, store_return_value,
3617 extract_struct_value_address.
3618
3619 2003-07-07 Andrew Cagney <cagney@redhat.com>
3620
3621 * expprint.c: Include "user-regs.h" instead of "frame.h".
3622 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3623 frame_map_regnum_to_name.
3624 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3625 (frame_map_name_to_regnum): Simplify, call
3626 user_reg_map_name_to_regnum.
3627 (frame_map_regnum_to_name): Simplify, call
3628 user_reg_map_regnum_to_name.
3629 (frame_register_unwind): Update.
3630 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3631 (_initialize_frame_reg): Call user_reg_add_builtin.
3632 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3633 (value_of_register): Use value_of_user_reg.
3634 * eval.c (evaluate_subexp_standard): Update.
3635 * parse.c (write_dollar_variable): Update.
3636 * d10v-tdep.c (d10v_print_registers_info): Update.
3637 * infcmd.c (registers_info): Update.
3638 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3639 (builtin_regs_h): Delete macro.
3640 (user_regs_h): Define.
3641 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3642 (builtin-regs.o): Delete target.
3643 (user-regs.o): Specify dependencies.
3644 (expprint.o): Update dependencies.
3645 (findvar.o): Update dependencies.
3646 (frame.o): Update dependencies.
3647 (std-regs.o): Update dependencies.
3648
3649 2003-07-06 Christopher Faylor <cgf@redhat.com>
3650
3651 * win32-nat.c (solib_symbols_add): Use one variable for all section
3652 address stuff. Pass variable rather than address of variable to
3653 safe_symbol_file_add.
3654
3655 2003-07-06 Andreas Schwab <schwab@suse.de>
3656
3657 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3658
3659 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3660
3661 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3662
3663 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3664
3665 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3666
3667 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3668
3669 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3670 * config/i386/nto.mh: New file.
3671 * config/i386/nm-nto.h: New file.
3672 * configure.host: Add i[3456]86-*-nto*.
3673
3674 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3675
3676 * remote-vx.c (vx_add_symbols): Fix compilation error.
3677
3678 2003-07-03 Andrew Cagney <cagney@redhat.com>
3679
3680 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3681 * gdbarch.h, gdbarch.c: Re-generate.
3682 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3683 (legacy_register_name): Declare.
3684 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3685 (REGISTER_NAME): Define.
3686 * sparc-tdep.c (legacy_register_name): New function.
3687 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3688 (REGISTER_NAME): Define.
3689 (hppa64_register_name): Declare.
3690 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3691 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3692 (hppa64_register_name): New function.
3693 (hppa_register_name): New function.
3694 * arch-utils.c (legacy_register_name): Delete.
3695 * arch-utils.h (legacy_register_name): Delete.
3696
3697 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3698
3699 * cli/cli-interp.c (cli_interpreter_resume): Update the
3700 cli_uiout's stream to gdb_stdout.
3701
3702 2003-07-03 Andrew Cagney <cagney@redhat.com>
3703
3704 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3705 predicate.
3706 * gdbarch.h, gdbarch.c: Re-generate.
3707 * regcache.c (init_regcache_descr): Use legacy code when either
3708 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3709
3710 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3711
3712 * NEWS: Move "set logging" entry into GDB 6.0 section.
3713
3714 2003-07-02 Jim Blandy <jimb@redhat.com>
3715
3716 * s390-tdep.c (struct frame_extra_info): new member:
3717 'stack_bought_valid'.
3718 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3719 initialize fextra_info->stack_bought.
3720 (s390_frameless_function_invocation): Don't trust the value of
3721 fextra_info_ptr->stack_bought unless
3722 fextra_info->stack_bought_valid is set.
3723
3724 New S390 prologue analyzer.
3725 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3726 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3727 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3728 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3729 compute_x_addr, s390_on_stack, s390_store,
3730 s390_get_signal_frame_info): New functions.
3731 (S390_NUM_SPILL_SLOTS): New macro.
3732 (s390_get_frame_info): Rewritten.
3733 (is_arg_reg): Deleted.
3734
3735 Break out the decoding of S/390 instructions into separate
3736 functions, to make it more legible, and easier to check
3737 against the spec.
3738 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3739 is_rx, is_rxe): New functions.
3740 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3741 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3742 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3743 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3744 enums for opcode values. (Is this an improvement?)
3745
3746 2003-07-02 Andrew Cagney <cagney@redhat.com>
3747
3748 * i386-tdep.c: Revert change committed as part of trad-frame code
3749 below.
3750
3751 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3752
3753 * breakpoint.c (insert_catchpoint): Make static.
3754
3755 2003-07-02 Andreas Schwab <schwab@suse.de>
3756
3757 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3758 former ia64_push_arguments and ia64_push_return_address, and use
3759 regcache functions instead of read/write_register.
3760 (ia64_gdbarch_init): Set push_dummy_call instead of
3761 deprecated_push_arguments and deprecated_push_return_address.
3762
3763 2003-07-01 Andreas Jaeger <aj@suse.de>
3764
3765 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3766 before the call.
3767 Set %rax only to number of SSE registers used.
3768
3769 2003-07-01 Andrew Cagney <cagney@redhat.com>
3770
3771 * trad-frame.h: Update comments, a -1 .addr is reserved.
3772 (trad_frame_value_p, trad_frame_addr_p): Declare.
3773 (trad_frame_reg_p): Declare.
3774 (trad_frame_set_value): Rename trad_frame_register_value.
3775 (trad_frame_set_unknown): Declare.
3776 * trad-frame.c (trad_frame_realreg_p): New function.
3777 (trad_frame_addr_p, trad_frame_value_p): New function.
3778 (trad_frame_set_unknown): New function.
3779 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3780 (trad_frame_prev_register): Use trad_frame_realreg_p,
3781 trad_frame_addr_p and trad_frame_value_p.
3782 (trad_frame_set_value): Rename trad_frame_register_value.
3783 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3784 and trad_frame_set_value.
3785
3786 2003-06-30 Jim Blandy <jimb@redhat.com>
3787
3788 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3789 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3790 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3791 for 16 registers, and then 32 more bytes.
3792 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3793 New macros.
3794 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3795 Move up in the file, since it's now used by is_simple_arg.
3796 (is_simple_arg): Don't assume registers are four bytes long.
3797 Exclude all double arguments. Extended floats are not simple
3798 args.
3799 (is_power_of_two): New function.
3800 (pass_by_copy_ref): Call is_power_of_two, and check that the
3801 length fits in a register, rather than listing all the acceptable
3802 sizes. Extended floats are not passed by reference.
3803 (s390_push_arguments): Don't assume registers are four bytes long.
3804 Reserve an argument register to point to the buffer for structures
3805 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3806 S390_STACK_FRAME_OVERHEAD.
3807
3808 2003-06-30 Andreas Schwab <schwab@suse.de>
3809
3810 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3811 format error message.
3812
3813 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3814
3815 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3816
3817 2003-06-30 David Carlton <carlton@kealia.com>
3818
3819 Band-aid for PR c++/1245.
3820 * Makefile.in (cp-support.o): Depend on complaints_h.
3821 * cp-support.c: Include complaints.h. Add declaration for
3822 find_last_component.
3823 (cp_find_first_component): Separate code into
3824 cp_find_first_component_aux.
3825 (cp_find_first_component_aux): Call demangled_name_complaint.
3826 (demangled_name_complaint): New.
3827
3828 2003-06-30 Andrew Cagney <cagney@redhat.com>
3829
3830 * remote.c (remote_write_bytes): Explicitly compute and then use
3831 the payload size. Update comments to reflect. Fixes problem of
3832 GDB not sending small packets as found by Fred Fish.
3833
3834 2003-06-30 Andrew Cagney <cagney@redhat.com>
3835
3836 * remote.c (remote_async_wait): Fix -Wformat problem.
3837
3838 2003-06-29 Andrew Cagney <cagney@redhat.com>
3839
3840 * remote.c (remote_wait): Call error, and not warning, when the
3841 packet is corrupt.
3842 (remote_async_wait): Ditto.
3843
3844 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3845
3846 * sparc-tdep.c (sparc_y_regnum): Make external again.
3847
3848 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3849
3850 * cli/cli-logging.c (pop_output_files): Add void to function
3851 definition.
3852
3853 2003-06-29 Andrew Cagney <cagney@redhat.com>
3854
3855 * frame.c (frame_register_unwind): Use unsigned char when dumping
3856 the buffer contents.
3857
3858 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3859
3860 * cli/cli-logging.c: New file.
3861 * cli-out.c (struct ui_out_data): Add original_stream.
3862 (cli_redirect): New function.
3863 (cli_ui_out_impl): Add cli_redirect.
3864 (cli_out_new): Initialize original_stream.
3865 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3866 (uo_redirect, ui_out_redirect): New.
3867 * ui-out.h (struct ui_out_impl): Add redirect member.
3868 (redirect_ftype): New.
3869 (ui_out_redirect): Add prototype.
3870 * Makefile.in: Add rules for cli-logging.c.
3871 * NEWS: Mention "set logging".
3872
3873 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3874
3875 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
3876
3877 2003-06-27 Andrew Cagney <cagney@redhat.com>
3878
3879 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
3880 (m68hc11_gdbarch_init): Do not set call_dummy_address.
3881 * avr-tdep.c (avr_call_dummy_address): Delete function.
3882 (avr_gdbarch_init): Do not set call_dummy_address.
3883
3884 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3885
3886 * symfile.c (syms_from_objfile): Move variables to inner block.
3887 Move the checks for the non-mainline case a bit earlier to avoid
3888 doing some useless computations.
3889
3890 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
3891
3892 * dwarfread.c (decode_modified_type): Gag new compiler warning.
3893
3894 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
3895
3896 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
3897 sections.
3898
3899 2003-06-26 Michael Chastain <mec@shout.net>
3900
3901 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
3902 gdb/testsuite/gdb.c++/pr-1210.exp.
3903
3904 2003-06-26 Andrew Cagney <cagney@redhat.com>
3905
3906 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
3907 altivec_expression.h and altivec_registers.h.
3908
3909 2003-06-26 Andrew Cagney <cagney@redhat.com>
3910
3911 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3912 info->mach when MIPS16. Patch suggested by Fred Fish.
3913
3914 2003-06-26 Andrew Cagney <cagney@redhat.com>
3915
3916 * utils.c (internal_vproblem): Print the problem to a reason
3917 buffer and then pass to query. Make the msg variable more local.
3918
3919 2003-06-26 Andrew Cagney <cagney@redhat.com>
3920
3921 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3922 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3923 * gdbarch.h, gdbarch.c: Re-generate.
3924 * frame-base.c (default_frame_args_address): Update. Use
3925 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3926 not available.
3927 (default_frame_locals_address): Ditto for
3928 DEPRECATED_FRAME_LOCALS_ADDRESS.
3929 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3930 (vax_frame_num_args): Update.
3931 (vax_gdbarch_init): Update.
3932 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3933 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3934 * mcore-tdep.c (mcore_gdbarch_init): Update.
3935 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3936 * ia64-tdep.c (ia64_gdbarch_init): Update.
3937 * symtab.h (address_class): Update comments.
3938 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3939 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3940 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3941 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3942 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3943 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3944 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3945 * alpha-mdebug-tdep.c: Update.
3946 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3947
3948 2003-06-26 Andreas Jaeger <aj@suse.de>
3949
3950 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3951 of SSE registers so that varargs functions work. Rework handling
3952 of passing arguments on the stack.
3953 (x86_64_store_return_value): Return double and float values in SSE
3954 register.
3955
3956 2003-06-24 Michael Chastain <mec@shout.net>
3957
3958 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3959 the "constructor breakpoints ignored" bug.
3960
3961 2003-06-25 David Carlton <carlton@kealia.com>
3962
3963 * MAINTAINERS: Update e-mail address.
3964
3965 2003-06-24 Jim Blandy <jimb@redhat.com>
3966
3967 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3968
3969 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3970 function.
3971 (ppc_linux_init_abi): Register it as the
3972 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3973
3974 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3975 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3976 method.
3977
3978 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3979 (ppc64_standard_linkage_target): Use it.
3980
3981 2003-06-23 Andrew Cagney <cagney@redhat.com>
3982
3983 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3984 for 0 "int0" and 4 "int32" sized registers.
3985 * gdbtypes.c (builtin_type_int0): Define.
3986 (build_gdbtypes): Initialize builtin_type_int0.
3987 * gdbtypes.h (builtin_type_int0): Declare.
3988
3989 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3990
3991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3992 as characters are unsigned.
3993
3994 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3995
3996 PR gdb/1179
3997 * dwarfread.c (struct_type): Skip static fields without crashing.
3998
3999 2003-06-22 Andrew Cagney <cagney@redhat.com>
4000
4001 GDB 6.0 branch created.
4002 * README: Update.
4003 * PROBLEMS: Update. Empty.
4004 * NEWS: Update.
4005
4006 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4007
4008 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4009 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4010
4011 2003-06-22 Andrew Cagney <cagney@redhat.com>
4012
4013 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4014 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4015 Velikov.
4016
4017 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4018
4019 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4020 compilers.
4021
4022 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4023
4024 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4025 argument of val_print.
4026 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4027 to the address argument of baseclass_offset or target_read_memory.
4028 Do add it to the argument of cp_print_value_fields.
4029
4030 2003-06-21 Andrew Cagney <cagney@redhat.com>
4031
4032 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4033 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4034 instead of 0..NUM_REGS.
4035 (mips_register_reggroup_p): New function.
4036 (mips_pseudo_register_write): New function.
4037 (mips_pseudo_register_read): New function.
4038 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4039 based on the register's type.
4040 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4041 cooked.
4042 (mips_get_saved_register): Simplify. Assert that REGNO is a
4043 pseudo / cooked.
4044 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4045 (mips_register_type): Replace mips_register_virtual_type. Map
4046 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4047 when available.
4048 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4049 that the register is cooked / virtual.
4050 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4051 Only get the extra info when needed.
4052 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4053 (mips32_heuristic_proc_desc): Fetch the cooked register.
4054 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4055 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4056 (mips_print_register): Use gdbarch_register_type, instead of
4057 REGISTER_VIRTUAL_TYPE.
4058 (print_gp_register_row): Use gdbarch_register_type, instead of
4059 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4060 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4061 Print the pseudo / cooked registers.
4062 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4063 Print the pseudo / cooked registers.
4064 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4065 REG_NUM is pseudo / cooked.
4066 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4067 (mips_n32n64_xfer_return_value): Ditto.
4068 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4069 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4070 (mips_register_sim_regno): New function.
4071 (mips_gdbarch_init): Set deprecated_register_byte,
4072 register_group_p, pseudo_register_write, pseudo_register_read,
4073 register_sim_regno, and num_pseudo_regs. Set register_type,
4074 instead of register_virtual_type.
4075 * Makefile.in (mips-tdep.o): Update dependencies.
4076 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4077 REGISTER_VIRTUAL_TYPE.
4078 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4079 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4080 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4081 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4082 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4083
4084 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4085
4086 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4087 * cli/cli-cmds.c: Include "gdb_vfork.h".
4088 (shell_escape): Use vfork.
4089
4090 2003-06-21 Andrew Cagney <cagney@redhat.com>
4091
4092 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4093 32 bit floating-point register saves.
4094
4095 * frame.h (deprecated_unwind_get_saved_register): Delete.
4096 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4097 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4098 and deprecated_get_next_frame_hack instead of
4099 deprecated_unwind_get_saved_register.
4100
4101 * mips-tdep.c (mips_dump_tdep): Do not print
4102 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4103
4104 * frame.c (get_frame_register): New function.
4105 (frame_unwind_register_signed): New function.
4106 (get_frame_register_signed): New function.
4107 (frame_unwind_register_unsigned): New function.
4108 (get_frame_register_unsigned): New function.
4109 * frame.h: Add comments on naming schema.
4110 (get_frame_register, frame_unwind_register_signed): Declare.
4111 (get_frame_register_signed, get_frame_register_signed): Declare.
4112 (frame_unwind_register_unsigned): Declare.
4113 (get_frame_register_unsigned): Declare.
4114
4115 2003-06-20 Theodore A. Roth <troth@openavr.org>
4116
4117 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4118
4119 2003-06-20 Theodore A. Roth <troth@openavr.org>
4120
4121 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4122 (avr_read_sp): Ditto.
4123
4124 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4125
4126 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4127 * config/arm/nm-linux.h: Likewise.
4128 * config/arm/tm-linux.h: Likewise.
4129 * config/ia64/nm-linux.h: Likewise.
4130 * config/ia64/tm-ia64.h: Likewise.
4131 * config/s390/tm-linux.h: Likewise.
4132 * config/s390/tm-s390.h: Likewise.
4133 * s390-nat.c: Likewise.
4134 * s390-tdep.c: Likewise.
4135
4136 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4137 * config/ia64/linux.mt: Likewise.
4138 * config/m68k/linux.mh: Likewise.
4139 * config/mips/linux.mt: Likewise.
4140 * config/powerpc/linux.mh: Likewise.
4141 * config/sh/linux.mt: Likewise.
4142
4143 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4144
4145 * solib.c (solib_open): Change tests for whether to search
4146 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4147 comments.
4148
4149 2003-06-19 Theodore A. Roth <troth@openavr.org>
4150
4151 * avr-tdep.c (avr_frame_address): Delete function.
4152 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4153 set_gdbarch_frame_args_address.
4154
4155 2003-06-19 Andrew Cagney <cagney@redhat.com>
4156
4157 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4158 (REGISTER_CONVERT_FROM_TYPE): Delete.
4159 (mips_register_convert_to_type): Delete declaration.
4160 (mips_register_convert_from_type): Delete declaration.
4161 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4162 kernel/.
4163
4164 2003-06-19 Michael Snyder <msnyder@redhat.com>
4165
4166 * linux-nat.h: New file.
4167 * linux-nat.c: Include linux-nat.h.
4168 * lin-lwp.c: Include linux-nat.h.
4169 Move struct lwp_info def to linux-nat.h.
4170 * linux-proc.c: Include linux-nat.h.
4171 (linux_make_note_section): Iterate over lwps instead of threads.
4172 (linux_do_thread_registers): Use lwp instead of merged pid.
4173 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4174 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4175 Add dependency on linux_nat_h.
4176
4177 2003-06-19 Theodore A. Roth <troth@openavr.org>
4178
4179 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4180
4181 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4182
4183 * varobj.c (get_type, get_target_type): Use check_typedef.
4184
4185 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4186
4187 * breakpoint.c (insert_catchpoint): Call internal_error.
4188
4189 2003-06-19 Theodore A. Roth <troth@openavr.org>
4190
4191 * avr-tdep.c (avr_push_dummy_code): Delete function.
4192 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4193
4194 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4195
4196 * arch-utils.c (default_prepare_to_proceed): Remove.
4197 (generic_prepare_to_proceed): Remove.
4198 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4199 (generic_prepare_to_proceed): Remove prototype.
4200 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4201 * gdbarch.c: Regenerate.
4202 * gdbarch.h: Regenerate.
4203 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4204 * hppah-nat.c (hppa_switched_threads): Remove.
4205 * infrun.c (prepare_to_proceed): New static function, copied from
4206 generic_prepare_to_proceed. Remove select_it argument.
4207 (proceed): Call prepare_to_proceed.
4208 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4209 variables.
4210 (ptrace_wait): Don't set the removed variables.
4211 (hppa_switched_threads): Remove.
4212 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4213 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4214 (lin_lwp_prepare_to_proceed): Remove prototype.
4215 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4216 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4217
4218 2003-06-18 Theodore A. Roth <troth@openavr.org>
4219
4220 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4221 trad-frame.h.
4222 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4223 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4224 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4225 (AVR_PROLOGUE_*): Enumerate prologue types.
4226 (struct frame_extra_info): Remove.
4227 (struct avr_unwind_cache): Define.
4228 (avr_write_sp): Delete function.
4229 (avr_read_fp): Ditto.
4230 (avr_init_extra_frame_info): Ditto.
4231 (avr_pop_frame): Ditto.
4232 (avr_frame_saved_pc): Ditto.
4233 (avr_saved_pc_after_call): Ditto.
4234 (avr_push_return_address): Ditto.
4235 (avr_frame_chain): Ditto.
4236 (avr_store_struct_return): Ditto.
4237 (avr_push_arguments): Ditto.
4238 (avr_scan_prologue): Update comments. Changed to set up the info for
4239 cache unwinding. Now returns end of prologue PC.
4240 (avr_skip_prologue): Better handling of functions lacking a prologue
4241 by using avr_scan_prologue.
4242 (avr_scan_arg_moves): New function.
4243 (avr_saved_regs_unwinder): Ditto.
4244 (avr_frame_unwind_cache): Ditto.
4245 (avr_unwind_pc): Ditto.
4246 (avr_frame_this_id): Ditto.
4247 (avr_frame_prev_register): Ditto.
4248 (avr_frame_p): Ditto.
4249 (avr_frame_base_address ): Ditto.
4250 (avr_unwind_dummy_id): Ditto.
4251 (avr_push_dummy_code): Ditto.
4252 (push_stack_item): Ditto.
4253 (pop_stack_item): Ditto.
4254 (avr_push_dummy_call): Ditto.
4255 (struct stack_item): Define.
4256 (avr_frame_unwind): Declare structure.
4257 (avr_frame_base): Ditto.
4258 (avr_gdbarch_init): Remove calls to
4259 set_gdbarch_deprecated_init_frame_pc,
4260 set_gdbarch_deprecated_target_read_fp,
4261 set_gdbarch_deprecated_dummy_write_sp,
4262 set_gdbarch_deprecated_fp_regnum,
4263 set_gdbarch_deprecated_push_arguments,
4264 set_gdbarch_deprecated_push_return_address,
4265 set_gdbarch_deprecated_pop_frame,
4266 set_gdbarch_deprecated_store_struct_return,
4267 set_gdbarch_deprecated_frame_init_saved_regs,
4268 set_gdbarch_deprecated_init_extra_frame_info,
4269 set_gdbarch_deprecated_frame_chain,
4270 set_gdbarch_deprecated_frame_saved_pc,
4271 set_gdbarch_deprecated_saved_pc_after_call.
4272 Add calls to set_gdbarch_push_dummy_call,
4273 set_gdbarch_push_dummy_code,
4274 frame_unwind_append_predicate,
4275 frame_base_set_default,
4276 set_gdbarch_unwind_dummy_id,
4277 set_gdbarch_unwind_pc.
4278 Wrap a long line.
4279
4280 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4281
4282 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4283 registers for H8/300S.
4284 (h8300_print_registers_info): Ditto.
4285 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4286
4287 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4288
4289 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4290 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4291 (lin_lwp_wait): Likewise. Update comments.
4292 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4293 (pull_pid_from_list, linux_record_stopped_pid): New.
4294
4295 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4296
4297 * ada-lang.c (scan_discrim_bound): Name first argument.
4298 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4299 declared by ALL_BLOCK_SYMBOLS.
4300
4301 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4302
4303 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4304 ("regcache.h"): Include it.
4305 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4306
4307 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4308
4309 * NEWS: Mention gdbserver detach change and "disconnect" command.
4310 * infcmd.c (disconnect_command): New function.
4311 (_initialize_infcmd): Add ``disconnect'' command.
4312 * remote.c (remote_async_detach): Delete.
4313 (remote_detach): Merge remote_async_detach.
4314 (remote_disconnect): New.
4315 (init_remote_ops): Set to_disconnect.
4316 (init_remote_cisco_ops): Likewise.
4317 (init_remote_async_ops): Likewise. Use remote_detach.
4318 * target.c (cleanup_target): Default to_disconnect.
4319 (update_current_target): Inherit to_disconnect.
4320 (target_disconnect, debug_to_disconnect): New functions.
4321 (setup_target_debug): Set to_disconnect.
4322 * target.h (struct target_ops): Add to_disconnect.
4323 (target_disconnect): Add prototype.
4324
4325 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4326
4327 * breakpoint.c (insert_catchpoint): New function.
4328 (insert_breakpoints): Use catch_exceptions to call
4329 insert_catchpoint. Disable catchpoints if they fail to insert.
4330
4331 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4332
4333 * symfile.c (reread_symbols): Clear sym_private.
4334
4335 2003-06-17 Andrew Cagney <cagney@redhat.com>
4336
4337 * trad-frame.h (struct frame_info): Add opaque declaration.
4338 * remote-fileio.h (struct cmd_list_element): Add opaque
4339 declaration.
4340 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4341 comments.
4342
4343 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4344
4345 * remote.c (remote_prepare_to_store): Replace call to
4346 deprecated_read_register_bytes with multiple regcache_raw_read
4347 calls.
4348
4349 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4350
4351 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4352 (nto_find_and_open_solib): Likewise.
4353 (nto_init_solib_absolute_prefix): Likewise.
4354 (_initialize_nto_tdep): Fix indentation.
4355
4356 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4357
4358 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4359
4360 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4361
4362 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4363
4364 2003-06-17 Jim Blandy <jimb@redhat.com>
4365
4366 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4367
4368 2003-06-16 Theodore A. Roth <troth@openavr.org>
4369
4370 * avr-tdep.c (avr_extract_return_value): New function.
4371 (avr_gdbarch_init): Set extract_return_value method.
4372
4373 2003-06-16 Andrew Cagney <cagney@redhat.com>
4374
4375 * frame.h (deprecated_get_next_frame_hack): Declare.
4376 * frame.c (legacy_saved_regs_prev_register): Only require
4377 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4378 there are always saved regs.
4379 (deprecated_generic_get_saved_register): Do not require
4380 DEPRECATED_FRAME_INIT_SAVED_REGS.
4381 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4382 use frame ID unwind instead.
4383 (deprecated_get_next_frame_hack): New function.
4384
4385 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4386
4387 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4388 (h8300_push_dummy_call): ...this function. Some minor optimization.
4389 (h8300_push_return_address): Remove.
4390 (h8300_gdbarch_init): Remove calls to
4391 set_gdbarch_deprecated_dummy_write_sp,
4392 set_gdbarch_deprecated_push_arguments and
4393 set_gdbarch_deprecated_push_return_address.
4394 Add call to set_gdbarch_push_dummy_call.
4395
4396 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4397
4398 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4399 (E_PSEUDO_EXR_REGNUM): Ditto.
4400 (h8300_is_argument_spill): Check for instructions moving argument
4401 registers into safe registers.
4402 (h8300_skip_prologue): Check for stm instruction to push registers
4403 used for register variables onto stack.
4404 (gdb_print_insn_h8300): Remove.
4405 (h8300_examine_prologue): Add a comment.
4406 (h8300_register_name): Take pseudo registers into account.
4407 (h8300s_register_name): Ditto.
4408 (h8300sx_register_name): Ditto.
4409 (h8300_print_register): Ditto.
4410 (h8300_print_registers_info): Define "nice" printing order.
4411 (h8300_saved_pc_after_call): Take pseudo registers into account.
4412 (h8300_register_type): Ditto. Return type used for remote connection
4413 when requesting real CCR or EXR register, return actual type when
4414 requesting pseudo CCR or EXR.
4415 (h8300_pseudo_register_read): New function.
4416 (h8300_pseudo_register_write): Ditto.
4417 (h8300_dbg_reg_to_regnum): Ditto.
4418 (h8300s_dbg_reg_to_regnum): Ditto.
4419 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4420 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4421 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4422 set_gdbarch_print_insn architecture dependent.
4423 Call set_gdbarch_pseudo_register_read and
4424 set_gdbarch_pseudo_register_write.
4425 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4426
4427 2003-06-16 Andrew Cagney <cagney@redhat.com>
4428
4429 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4430 * gdbarch.h, gdbarch.c: Re-generate.
4431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4432 * s390-tdep.c (s390_gdbarch_init): Update.
4433 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4434 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4435 * mips-tdep.c (mips_gdbarch_init): Update.
4436 * mcore-tdep.c (mcore_gdbarch_init): Update.
4437 * cris-tdep.c (cris_gdbarch_init): Update.
4438 * infcall.c (call_function_by_hand): Update.
4439 * ia64-tdep.c (ia64_push_arguments): Update comment.
4440 * frame.c (legacy_get_prev_frame): Do not assume
4441 SAVE_DUMMY_FRAME_TOS_P.
4442 * dummy-frame.c (find_dummy_frame): Update comment.
4443
4444 2003-06-16 Andrew Cagney <cagney@redhat.com>
4445
4446 * regcache.c (do_cooked_read): Do not use register_valid_p.
4447
4448 2003-06-15 Theodore A. Roth <troth@openavr.org>
4449
4450 * avr-tdep.c (avr_register_type): Remove a blank line.
4451 (avr_scan_prologue): Correct some comments.
4452
4453 2003-06-15 Theodore A. Roth <troth@openavr.org>
4454
4455 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4456 prologue types.
4457 Properly scan prologues generated by gcc with the -mcall-prologues
4458 option.
4459 Add code to scan -mcall-prologues for mega devices.
4460
4461 2003-06-15 Theodore A. Roth <troth@openavr.org>
4462
4463 * avr-tdep.c (avr_register_byte): Delete function.
4464 (avr_register_raw_size): Delete function.
4465 (avr_register_virtual_size): Delete function.
4466 (avr_register_virtual_type): Delete function.
4467 (avr_register_type): New function.
4468 (avr_address_to_pointer): Remove unused code.
4469 (avr_read_fp): Need to read FP as two separate bytes due to change to
4470 avr_register_type() usage.
4471 (avr_gdbarch_init): Don't set deprecated_register_size.
4472 Don't set deprecated_register_bytes.
4473 Don't set deprecated_register_byte.
4474 Don't set deprecated_register_raw_size.
4475 Don't set deprecated_max_register_raw_size.
4476 Don't set deprecated_register_virtual_size.
4477 Don't set deprecated_max_register_virtual_size.
4478 Don't set deprecated_register_virtual_type.
4479 Set register_type method.
4480
4481 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4482
4483 * Makefile.in (linux-nat.o): Add rule.
4484 * linux-nat.c: New file.
4485 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4486 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4487 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4488 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4489 * config/arm/linux.mh (NATDEPFILES): Likewise.
4490 * config/i386/linux.mh (NATDEPFILES): Likewise.
4491 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4492 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4493 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4494 * config/mips/linux.mh (NATDEPFILES): Likewise.
4495 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4496 * config/s390/s390.mh (NATDEPFILES): Likewise.
4497 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4498
4499 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4500
4501 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4502 replace out-of-date comment.
4503
4504 2003-06-15 Andrew Cagney <cagney@redhat.com>
4505
4506 * rdi-share/host.h (Fail): Change to a varargs function.
4507 * remote-rdi.c (Fail): Update.
4508
4509 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4510
4511 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4512 (i386_convert_register_p, i386_register_to_value,
4513 i386_register_from_value): Handle types longer than 8 bytes.
4514
4515 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4516
4517 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4518 Move floating-point code to new function in i387-tdep.c.
4519 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4520 New functions containing code moved here from i386-tdep.c.
4521 * i387-tdep.h: Add opaque declaration for `struct type'.
4522 (i387_register_to_value, i387_value_to_register): New prototypes.
4523 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4524 (x86_64_init_abi): Set convert_register_p, register_to_value and
4525 value_to_register here.
4526
4527 2003-06-14 Andrew Cagney <cagney@redhat.com>
4528
4529 * mips-tdep.c (mips_register_to_value): Make static.
4530 (mips_value_to_register): Make static.
4531 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4532 * ia64-tdep.c (ia64_register_raw_size): Make static.
4533 (ia64_register_virtual_size): Make static.
4534 (ia64_register_byte): Make static.
4535 * i387-tdep.c: Include "i387-tdep.h".
4536 (print_387_control_word): Delete function.
4537 (print_387_status_word): Delete function.
4538 (print_387_status_bits): Delete function.
4539 (print_387_control_bits): Delete function.
4540 * Makefile.in (i387-tdep.o): Update dependencies.
4541 * rdi-share/host.h (Fail): Declare.
4542 * remote-rdi.c (Fail): Update to match declaration.
4543
4544 2003-06-14 Andrew Cagney <cagney@redhat.com>
4545
4546 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4547 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4548 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4549 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4550 * README: Delete reference to remote-array.
4551 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4552 (remote-array.o): Delete target.
4553 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4554 * remote-array.c: Delete file.
4555
4556 2003-06-14 Andrew Cagney <cagney@redhat.com>
4557 Mark Kettenis <kettenis@gnu.org>
4558
4559 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4560 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4561 parameter with "frame".
4562 * gdbarch.h, gdbarch.c: Re-generate.
4563 * frame.h (put_frame_register): Declare.
4564 * frame.c (put_frame_register): New function.
4565 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4566 (legacy_register_to_value): Rewrite, use "frame" to get the
4567 register value.
4568 (legacy_value_to_register): Rewrite, use "frame" to find the
4569 register's location before storing.
4570 * arch-utils.h (legacy_convert_register_p): Update.
4571 (legacy_register_to_value, legacy_value_to_register): Update.
4572 * findvar.c (value_from_register): Rewrite, eliminate use of
4573 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4574 "frame" to REGISTER_TO_VALUE.
4575 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4576 lval_reg_frame_relative + lval_register branch of the switch. Do
4577 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4578 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4579 I386_EDI_REGNUM): New defines.
4580 (i386_next_regnum, i386_convert_register_p,
4581 i386_register_to_value, i386_value_to_register): New functions.
4582 (i386_register_convertible, i386_register_convert_to_virtual,
4583 i386_convert_to_raw): Remove functions.
4584 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4585 value_to_register instead of register_convertible,
4586 register_convert_to_virtual and register_convert_to_raw.
4587 * mips-tdep.c (mips_convert_register_p): New function.
4588 (mips_value_to_register): Replace mips_register_convert_from_type.
4589 (mips_register_to_value): Replace mips_register_convert_to_type.
4590 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4591 register_to_value.
4592 * alpha-tdep.c (alpha_convert_register_p): Update.
4593 (alpha_value_to_register): Update, store the register.
4594 (alpha_register_to_value): Update, fetch the register.
4595
4596 2003-06-14 Theodore A. Roth <troth@openavr.org>
4597
4598 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4599 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4600 Don't set deprecated_call_dummy_words.
4601 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4602 Don't set remote_translate_xfer_address.
4603 (avr_io_reg_read_command): Remove commented out debug printf.
4604 Wrap a long line.
4605
4606 2003-06-14 Theodore A. Roth <troth@openavr.org>
4607
4608 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4609 causes gdb to seg fault.
4610
4611 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4612
4613 * sparc-nat.c (fetch_inferior_registers): Correct
4614 a reference to "registers".
4615
4616 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4617
4618 * Makefile.in (exc_request_U_h): Define
4619 (exc_request_S_h): Likewise.
4620 (msg_reply_S_h): Likewise.
4621 (msg_U_h): Likewise.
4622 (notify_S_h): Likewise.
4623 (process_reply_S_h): Likewise.
4624 (gnu-nat.o): Depend on gdb_obstack_h
4625 * gnu-nat.c: Include "gdb_obstack.h".
4626
4627 2003-06-13 Andrew Cagney <cagney@redhat.com>
4628
4629 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4630 * gdbarch.h, gdbarch.c: Re-generate.
4631
4632 2003-06-13 Andrew Cagney <cagney@redhat.com>
4633
4634 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4635 when deprecated REGISTER macros can be deleted.
4636 * gdbarch.h, gdbarch.c: Re-generate.
4637
4638 2003-06-13 Jim Blandy <jimb@redhat.com>
4639
4640 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4641 Linux entry point symbols for _dl_debug_state, too.
4642
4643 2003-06-13 Andrew Cagney <cagney@redhat.com>
4644
4645 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4646 available, do not use the FP register, and always save the TOS.
4647 * dummy-frame.c (dummy_frame_this_id): Do not assert
4648 SAVE_DUMMY_FRAME_TOS.
4649 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4650 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4651 (i386_push_dummy_call): Add 8 to the returned SP.
4652 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4653 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4654 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4655 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4656 (x86_64_push_dummy_call): Return "sp + 16".
4657 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4658 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4659 save_dummy_frame_tos.
4660
4661 2003-06-13 Jim Blandy <jimb@redhat.com>
4662
4663 * frv-tdep.c (frv_use_struct_convention): Delete static
4664 declaration for function deleted in my change of 2003-06-12.
4665
4666 2003-06-13 Theodore A. Roth <troth@openavr.org>
4667
4668 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4669 (avr_pointer_to_address): Shift code addrs left 1 bit.
4670 (avr_convert_from_func_ptr_addr): Delete function since operation is
4671 better handled by avr_address_to_pointer and avr_pointer_to_address.
4672 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4673
4674 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4675
4676 From Kelley Cook <kelleycook@wideopenwest.com>:
4677 * configure.host: Accept i[34567]86 variants.
4678 * configure.tgt: Likewise.
4679 * nlm/configure.in: Likewise.
4680 * nlm/configure: Regenerated.
4681
4682 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4683
4684 * arm-tdep.c (solib-svr4.h): Dont' include it.
4685 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4686 * arm-linux-tdep.c: ... here. Make static.
4687 (arm_linux_init_abi): Register it.
4688 (solib-svr4.h): Include it.
4689 * Makefile.in: Update dependencies.
4690 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4691 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4692
4693 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4694
4695 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4696 indicate registers used for return values.
4697 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4698 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4699 members.
4700 (h8300_init_extra_frame_info): Ditto.
4701 (h8300_frame_locals_address): Removed.
4702 (h8300_frame_args_address): Removed.
4703 (h8300_extract_return_value): Use new regcache structure. Only care
4704 for 16 bit CPUs.
4705 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4706 (h8300_store_return_value): Use new regcache structure. Only care
4707 for 16 bit CPUs.
4708 (h8300h_store_return_value): Same function for 32 bit CPUs.
4709 (h8300_store_struct_return): Removed.
4710 (h8300_extract_struct_value_address): Use new regcache structure.
4711 (h8300h_extract_struct_value_address): Removed.
4712 (h8300_push_dummy_code): New function.
4713 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4714 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4715 set_gdbarch_store_return_value architecture dependent.
4716 Call set_gdbarch_push_dummy_code and
4717 set_gdbarch_extract_struct_value_address.
4718 Remove calls to set_gdbarch_frame_args_address,
4719 set_gdbarch_frame_locals_address,
4720 set_gdbarch_deprecated_store_struct_return,
4721 set_gdbarch_deprecated_extract_return_value,
4722 set_gdbarch_deprecated_extract_struct_value_address,
4723 set_gdbarch_deprecated_call_dummy_words and
4724 set_gdbarch_deprecated_sizeof_call_dummy_words.
4725
4726 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4727
4728 * h8300-tdep.c (h8300_register_byte): Remove.
4729 (h8300h_register_byte): Remove.
4730 (h8300_register_virtual_type): Remove. Substitute by...
4731 (h8300_register_type): New function.
4732 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4733 (h8300h_extract_struct_value_address): Ditto.
4734 (h8300_gdbarch_init): Drop calls to
4735 set_gdbarch_deprecated_register_byte and
4736 set_gdbarch_deprecated_register_virtual_type.
4737 Add call to set_gdbarch_register_type.
4738
4739 2003-06-13 Andrew Cagney <cagney@redhat.com>
4740
4741 * gdbarch.sh: Update comments on registers.
4742 (deprecated_register_byte): Rename register_byte.
4743 (deprecated_register_raw_size): Rename register_raw_size.
4744 (deprecated_register_virtual_size): Rename register_virtual_size.
4745 (deprecated_register_virtual_type): Rename register_virtual_type.
4746 * gdbarch.h, gdbarch.c: Re-generate.
4747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4748 * vax-tdep.c (vax_gdbarch_init): Update.
4749 * v850-tdep.c (v850_gdbarch_init): Update.
4750 * sparc-tdep.c (sparc_gdbarch_init): Update.
4751 * sh-tdep.c (sh_gdbarch_init): Update.
4752 * s390-tdep.c (s390_gdbarch_init): Update.
4753 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4754 * ns32k-tdep.c: Update.
4755 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4756 * mips-tdep.c (mips_gdbarch_init): Update.
4757 * mcore-tdep.c (mcore_gdbarch_init): Update.
4758 * m68k-tdep.c (m68k_gdbarch_init): Update.
4759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4760 * ia64-tdep.c (ia64_gdbarch_init): Update.
4761 * hppa-tdep.c (hppa_gdbarch_init): Update.
4762 * h8300-tdep.c (h8300_gdbarch_init): Update.
4763 * frv-tdep.c (frv_gdbarch_init): Update.
4764 * cris-tdep.c (cris_gdbarch_init): Update.
4765 * avr-tdep.c (avr_gdbarch_init): Update.
4766 * alpha-tdep.c (alpha_gdbarch_init): Update.
4767 * arm-tdep.c (arm_gdbarch_init): Update.
4768
4769 2003-06-13 Andrew Cagney <cagney@redhat.com>
4770
4771 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4772 mips_o32_use_struct_convention with always_use_struct_convention.
4773
4774 2003-06-12 David Carlton <carlton@kealia.com>
4775
4776 * cp-namespace.c (cp_set_block_scope): Comment out
4777 processing_has_namespace_info branch.
4778
4779 2003-06-12 Jim Blandy <jimb@redhat.com>
4780
4781 Recognize and skip 64-bit PowerPC Linux linkage functions.
4782 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4783 insn_pattern, insns_match_pattern, d_field, ds_field): New
4784 functions, macros, and types for working with PPC instructions.
4785 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4786 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4787 ppc64_skip_trampoline_code): New functions, variables, and macros
4788 for recognizing and skipping linkage functions.
4789 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4790 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4791
4792 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4793 register offsets for both the 32- and 64-bit interfaces.
4794
4795 Actually finish the job started by my change of 2003-05-29.
4796 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4797 other #definition of this.
4798 (ppc_linux_skip_trampoline_code): Remove declaration.
4799 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4800 static.
4801 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4802 method for GDBARCH.
4803
4804 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4805 'long' on ppc64-*-linux*.
4806
4807 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4808 isn't #defined, assume the register doesn't exist: act as if
4809 tdep->ppc_mq_regnum were -1.
4810
4811 * configure.host, configure.tgt: Add entries for
4812 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4813 powerpc/linux.mt.
4814 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4815 New files.
4816
4817 * arch-utils.c (always_use_struct_convention): New function.
4818 * arch-utils.h (always_use_struct_convention): New prototype.
4819 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4820 (alpha_gdbarch_init): Register always_use_struct_convention,
4821 instead of alpha_use_struct_convention.
4822 * cris-tdep.c (cris_use_struct_convention): Delete.
4823 (cris_gdbarch_init): Register always_use_struct_convention,
4824 instead of cris_use_struct_convention.
4825 * frv-tdep.c (frv_use_struct_convention): Delete.
4826 (frv_gdbarch_init): Register always_use_struct_convention,
4827 instead of frv_use_struct_convention.
4828 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4829 (h8300_gdbarch_init): Register always_use_struct_convention,
4830 instead of h8300_use_struct_convention.
4831 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4832 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4833 instead of mips_o32_use_struct_convention.
4834
4835 2003-06-12 Andrew Cagney <cagney@redhat.com>
4836
4837 * wince.c: Include "mips-tdep.h".
4838 * mips-tdep.h (mips_next_pc): Declare.
4839 * mcore-tdep.c: Make more local functions static.
4840 * Makefile.in (wince.o): Update dependencies.
4841
4842 2003-06-12 David Carlton <carlton@kealia.com>
4843
4844 * symtab.c (lookup_symbol_aux_minsyms): Replace
4845 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4846 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4847 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4848 SYMBOL_NATURAL_NAME.
4849
4850 2003-06-12 Andreas Schwab <schwab@suse.de>
4851
4852 * Makefile.in (tuiDisassem.o): Update dependencies.
4853
4854 2003-06-12 David Carlton <carlton@bactrian.org>
4855
4856 * symtab.h: Delete declaration of make_symbol_overload_list.
4857 Add declaration of lookup_partial_symbol.
4858 * symtab.c (remove_params): Move to cp-support.c.
4859 (overload_list_add_symbol, make_symbol_overload_list)
4860 (sym_return_val_size, sym_return_val_index): Ditto.
4861 (lookup_partial_symbol): Make extern.
4862 * cp-support.h: Add declaration of make_symbol_overload_list.
4863 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4864 symtab.h, and block.h.
4865 (remove_params): Move here from symtab.c.
4866 (overload_list_add_symbol, make_symbol_overload_list)
4867 (sym_return_val_size, sym_return_val_index): Ditto.
4868 * valops.c: Include cp-support.h.
4869 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
4870 frame_h, and block_h.
4871 (valops.o): Depend on cp_support_h.
4872
4873 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
4874
4875 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
4876 substitute by NUM_REGS throughout.
4877 (h8300_register_name): Only care for H8/300 and H8/300H registers.
4878 (h8300s_register_name): New function for H8S registers.
4879 (h8300sx_register_name): Ditto for H8SX registers.
4880 (h8300_print_register): Revise register printing, avoid depending
4881 on 32 bit long.
4882 (h8300_register_byte): Only care for H8/300 registers.
4883 (h8300h_register_byte): New function for any other architecture.
4884 (h8300_register_raw_size): Remove.
4885 (h8300_register_virtual_type): Revise to return actually useful
4886 type.
4887 (h8300_extract_struct_value_address): Only care for H8/300 registers.
4888 (h8300h_extract_struct_value_address): New function for any other
4889 architecture.
4890 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
4891 set_gdbarch_register_name, set_gdbarch_register_byte,
4892 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
4893 Remove calls to set_gdbarch_deprecated_register_size,
4894 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
4895 set_gdbarch_deprecated_max_register_raw_size,
4896 set_gdbarch_register_virtual_size and
4897 set_gdbarch_deprecated_max_register_virtual_size entirely.
4898 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
4899 set_gdbarch_long_double_bit.
4900
4901 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4902
4903 * doublest.c (convert_doublest_to_floatformat): When dealing
4904 with the implied integer bit, only alter mant_bits if we are
4905 processing a full 32 bits of mantissa.
4906
4907 2003-06-11 David Carlton <carlton@bactrian.org>
4908
4909 * dictionary.h: New.
4910 * dictionary.c: New.
4911 * block.h: Add opaque declaration for struct dictionary.
4912 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4913 'sym' members.
4914 (BLOCK_DICT): New macro.
4915 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4916 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4917 BLOCK_SHOULD_SORT.
4918 (ALL_BLOCK_SYMBOLS): Update definition.
4919 * Makefile.in (SFILES): Add dictionary.c.
4920 (dictionary_h): New.
4921 (COMMON_OBS): Add dictionary.o.
4922 (dictionary.o): New.
4923 (ada-lang.o): Depend on dictionary_h.
4924 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4925 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4926 (mi-cmd-stack.o): Ditto.
4927 (gdbtk-cmds.o): Update dependencies.
4928 (gdbtk-stack.o): Ditto.
4929 * ada-lang.c: Include dictionary.h.
4930 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4931 (fill_in_ada_prototype, debug_print_block): Ditto.
4932 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4933 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4934 'is_sorted'.
4935 * mdebugread.c: Include dictionary.h.
4936 (struct parse_stack): Delete 'maxsyms' member.
4937 (parse_symbol): Update calls to new_block. Delete calls to
4938 shrink_block. Use dictionary methods.
4939 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4940 Update calls to new_symtab. Don't maintain maxsyms data.
4941 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4942 (add_symbol): Just call dict_add_symbol.
4943 (new_symtab): Delete 'maxsyms' argument.
4944 (new_symtab): Update calls to new_block.
4945 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4946 (shrink_block): Delete function.
4947 (fixup_sigtramp): Update call to new_block. Add symbol via
4948 dict_add_symbol.
4949 * jv-lang.c: Include dictionary.h.
4950 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4951 appropriately. Set class_symtab->free_func. Make sure the
4952 blockvector is big enough to hold two blocks.
4953 (add_class_symtab_symbol): Use dictionary methods.
4954 (free_class_block): New function.
4955 (type_from_class): Replace explicit iteration by
4956 ALL_BLOCK_SYMBOLS.
4957 * symtab.h (struct symtab): Replace 'free_ptr' method by
4958 'free_func'.
4959 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4960 sort_symtab_syms.
4961 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4962 sort_symtab_syms.
4963 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4964 Include dictionary.h.
4965 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4966 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4967 sort_symtab_syms.
4968 * objfiles.c: Include dictionary.h.
4969 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4970 * buildsym.c: Include dictionary.h.
4971 (finish_block): Use dictionary methods.
4972 (end_symtab): Set free_func to NULL, not free_ptr.
4973 * tracepoint.c: Include dictionary.h.
4974 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4975 (scope_info): Ditto.
4976 * stack.c: Include dictionary.h.
4977 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4978 (print_block_frame_labels, print_frame_arg_vars)
4979 (print_frame_args): Ditto.
4980 * symmisc.c (free_symtab_block): Use dictionary methods.
4981 (dump_symtab): Ditto.
4982 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4983 Include dictionary.h.
4984 * symfile.h: Delete declarations of sort_block_syms,
4985 sort_symtab_syms.
4986 * symfile.c (sort_block_syms): Delete.
4987 (sort_symtab_syms): Delete.
4988 * symtab.c: Include dictionary.h.
4989 (lookup_block_symbol): Use dictionary iterators.
4990 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4991 (search_symbols, make_symbol_completion_list): Ditto.
4992 (make_symbol_overload_list): Ditto.
4993 * valops.c (value_of_local): Use dict_empty.
4994 Include dictionary.h.
4995
4996 2003-06-11 J. Brobecker <brobecker@gnat.com>
4997
4998 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4999
5000 2003-06-11 David Carlton <carlton@bactrian.org>
5001
5002 * block.h (BLOCK_SHOULD_SORT): Delete.
5003 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5004 blocks.
5005 * ada-lang.c (ada_add_block_symbols): Ditto.
5006 * symfile.c (sort_block_syms): Delete.
5007 (sort_symtab_syms): Ditto.
5008 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5009 declarations.
5010 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5011 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5012 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5013 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5014 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5015 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5016 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5017
5018 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5019
5020 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5021 bits to 128.
5022
5023 2003-06-11 Andrew Cagney <cagney@redhat.com>
5024
5025 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5026 REGISTER_CONVERTIBLE.
5027 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5028 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5029 * gdbarch.h, gdbarch.c: Re-generate.
5030 * arch-utils.h (deprecated_register_convertible_not): Rename
5031 generic_register_convertible_not.
5032 * arch-utils.c (deprecated_register_convertible_not): Rename
5033 generic_register_convertible.
5034 (legacy_convert_register_p, legacy_register_to_value): Update.
5035 * sh-tdep.c (sh64_push_arguments): Update.
5036 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5037 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5038 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5039 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5040 * arch-utils.c (legacy_value_to_register): Update.
5041 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5042 (rs6000_register_convert_to_raw): Make parameter "from" const.
5043 * mips-tdep.c (mips_gdbarch_init): Update.
5044 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5045 * infcmd.c (default_print_registers_info): Update.
5046 * ia64-tdep.c (ia64_gdbarch_init): Update.
5047 (ia64_register_convert_to_raw): Make parameter "from" const.
5048 * i386-tdep.c (i386_gdbarch_init): Update.
5049 (i386_register_convert_to_raw): Update.
5050
5051 2003-06-11 Andrew Cagney <cagney@redhat.com>
5052
5053 * remote-fileio.c: Include "remote-fileio.h".
5054 * Makefile.in (remote-fileio.o): Update dependencies.
5055 (remote_fileio_h): Fix typo.
5056
5057 2003-06-11 Andrew Cagney <cagney@redhat.com>
5058
5059 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5060 (xstormy16_save_dummy_frame_tos): Make static.
5061 (_initialize_xstormy16_tdep): Add declaration.
5062 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5063 * v850-tdep.c: Make local functions static.
5064 (_initialize_v850_tdep): Add declaration.
5065 * sparc-tdep.c: Make local functions static.
5066 (_initialize_sparc_tdep): Add declaration.
5067 * sh-tdep.c: Make local functions static.
5068 (_initialize_sh_tdep): Add declaration.
5069 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5070 * s390-tdep.c: Make local functions static.
5071 (_initialize_s390_tdep): Add declaration.
5072 * dbxread.c (find_stab_function_addr): Make static.
5073 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5074 * ocd.c (_initialize_remote_ocd): Add declaration.
5075 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5076 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5077 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5078 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5079 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5080 * remote-array.c (_initialize_array): Add declaration.
5081 (_initialize_remote_monitors): Add declaration.
5082 * remote-mips.c: Make local functions static.
5083 (_initialize_remote_mips): Add declaration.
5084 * mcore-tdep.c: Make all local functions static.
5085 (_initialize_mcore_tdep): Add declaration.
5086 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5087 * abug-rom.c (_initialize_abug_rom): Add declaration.
5088 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5089 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5090 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5091 * remote-est.c (_initialize_est): Add declaration.
5092 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5093 (m68hc11_call_dummy_address): Make static.
5094 * ia64-tdep.c: Make local functions static.
5095 (_initialize_ia64_tdep): Add declaration.
5096 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5097 * monitor.c (monitor_wait_filter): Make static.
5098 (_initialize_remote_monitors): Add declaration.
5099 * remote-hms.c (_initialize_remote_hms): Add declaration.
5100 * remote-e7000.c (fetch_regs_from_dump): Make static.
5101 (expect_n): Make static.
5102 (_initialize_remote_e7000): Add declaration.
5103 * ser-e7kpc.c: Always include "defs.h".
5104 (_initialize_ser_e7000pc): Add declaration.
5105 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5106 * cris-tdep.c: Make all but one function static.
5107 (_initialize_cris_tdep): Add declaration.
5108 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5109 * solib.c (update_solib_list): Make static.
5110 (_initialize_solib): Add declaration.
5111 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5112 (_initialize_avr_tdep): Add declaration.
5113 * remote-rdi.c (voiddummy): Make static.
5114 (_initialize_remote_rdi): Add declaration.
5115 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5116 * remote-rdp.c (send_rdp): Make static.
5117 (_initialize_remote_rdp): Add declaration.
5118 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5119
5120 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5121
5122 * remote-fileio.c: Make ari happy.
5123
5124 2003-06-10 J. Brobecker <brobecker@gnat.com>
5125
5126 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5127 fetching the trailing bytes of the buffer we are about to write.
5128
5129 2003-06-10 Andrew Cagney <cagney@redhat.com>
5130
5131 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5132 * Makefile.in (remote-fileio.o): Update dependencies.
5133 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5134 include <setjmp.h>, or <sys/types.h> conditional on USG.
5135 (remote_fio_jmp_buf): Delete global variable.
5136
5137 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5138 Martin M. Hunt <hunt@redhat.com>
5139
5140 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5141 (SFILES): Add remote-fileio.c.
5142 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5143 dependencies for building remote.o.
5144 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5145 * remote-fileio.h: New header file defining remote File-I/O interface.
5146 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5147 static storage class.
5148 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5149 'F' packet.
5150 (_initialize_remote): Call initialize_remote_fileio().
5151 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5152 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5153 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5154 (captured_main): Initialize new ui_files.
5155 * ui-file.c: Add read and fgets input functions.
5156 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5157 (null_file_read): New function.
5158 (ui_file_read): New function.
5159 (set_ui_file_read): New function.
5160 (stdio_file_read): New function.
5161 * ui-file.h: New type ui_file_read_ftype.
5162 (set_ui_file_read): Declare.
5163 (ui_file_read): Declare.
5164
5165 2003-06-09 Andrew Cagney <cagney@redhat.com>
5166
5167 * frame.h (deprecated_unwind_get_saved_register): Rename
5168 generic_unwind_get_saved_register, update comments.
5169 * mips-tdep.c (mips_get_saved_register): Update.
5170 * frame.c (deprecated_unwind_get_saved_register): Update.
5171
5172 2003-06-09 Andrew Cagney <cagney@redhat.com>
5173
5174 * vax-tdep.c (vax_frame_locals_address): Delete function.
5175 (vax_gdbarch_init): Do not set frame_locals_address.
5176 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5177 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5178 * s390-tdep.c (s390_frame_args_address): Delete function.
5179 (s390_gdbarch_init): Do not set frame_args_address or
5180 frame_locals_address.
5181 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5182 (ns32k_gdbarch_init): Do not set frame_locals_address.
5183 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5184 (hppa_frame_locals_address): Delete function.
5185 (hppa_gdbarch_init): Do not set frame_args_address, or
5186 frame_locals_address.
5187 * arm-tdep.c (arm_frame_args_address): Delete.
5188 (arm_frame_locals_address): Delete.
5189 (arm_gdbarch_init): Do not set frame_args_address, or
5190 frame_locals_address.
5191
5192 2003-06-09 Andrew Cagney <cagney@redhat.com>
5193
5194 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5195 * gdbarch.h, gdbarch.c: Re-generate.
5196 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5197 * arch-utils.c (frame_num_args_unknown): Delete function.
5198 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5199 (frame_info): Use FRAME_NUM_ARGS_P.
5200 * arm-tdep.c (arm_frame_num_args): Delete function.
5201 (arm_gdbarch_init): Do not set frame_num_args.
5202 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5203 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5204 (hppa_gdbarch_init): Do not set frame_num_args.
5205 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5206 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5207 frame_num_args to default frame_num_args_unknown.
5208 * v850-tdep.c (v850_gdbarch_init): Ditto.
5209 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5210 * sh-tdep.c (sh_gdbarch_init): Ditto.
5211 * s390-tdep.c (s390_gdbarch_init): Ditto.
5212 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5213 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5214 * mips-tdep.c (mips_gdbarch_init): Ditto.
5215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5216 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5219 * i386-tdep.c (i386_gdbarch_init): Ditto.
5220 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5221 * frv-tdep.c (frv_gdbarch_init): Ditto.
5222 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5223 * cris-tdep.c (cris_gdbarch_init): Ditto.
5224 * avr-tdep.c (avr_gdbarch_init): Ditto.
5225 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5226
5227 2003-06-09 Andrew Cagney <cagney@redhat.com>
5228
5229 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5230 (print_frame_args): Moved to "stack.c".
5231 * stack.c: Include "gdb_assert.h".
5232 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5233 (print_frame_args): Moved from "printcmd.c".
5234 * frame.h (print_frame_args): Delete declaration.
5235 * Makefile.in (stack.o): Update dependencies.
5236
5237 2003-06-08 Andrew Cagney <cagney@redhat.com>
5238
5239 * frame.c (get_prev_frame): Remove reference to
5240 frame_args_address_correct in comments.
5241 * frame-base.c (default_frame_args_address): Delete code
5242 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5243 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5244 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5245 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5246 (vax_frame_args_address_correct): Delete declaration.
5247
5248 2003-06-08 Andrew Cagney <cagney@redhat.com>
5249
5250 * gdbarch.sh (UNWIND_SP): Add.
5251 * gdbarch.h, gdbarch.c: Re-generate.
5252 * frame.c (frame_sp_unwind): New function.
5253 (get_frame_sp): New function.
5254 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5255 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5256 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5257 value.
5258 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5259 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5260
5261 2003-06-08 Andrew Cagney <cagney@redhat.com>
5262
5263 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5264 REMOTE_BREAKPOINT.
5265 * remote.c: Update.
5266 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5267 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5268 * config/m68k/tm-sun3.h: Update.
5269 * config/m68k/tm-m68klynx.h: Update.
5270 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5271
5272 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5273 trad_frame". Update comments.
5274 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5275 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5276 (trad_frame_register_value, trad_frame_prev_register): Update.
5277
5278 2003-06-08 Andrew Cagney <cagney@redhat.com>
5279
5280 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5281 from GCC's acinclude.m4.
5282 * configure.in: Check for getopt's delcaration.
5283 * aclocal.m4, config.in, configure: Re-generate.
5284 * main.c (error_init): Delete declaration.
5285 * defs.h (error_init): Declare.
5286 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5287 (rs6000_convert_from_func_ptr_addr): Make static.
5288 (_initialize_rs6000_tdep): Add declaration.
5289 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5290 (show_commands, set_verbose, show_history): Delete declaration.
5291 * top.h (set_verbose): Add declaration.
5292 (show_history, set_history, show_commands): Add declaration.
5293 (do_restore_instream_cleanup): Add declaration.
5294 * objc-lang.c (specialcmp): Make static.
5295 (print_object_command): Make static.
5296 (find_objc_msgsend): Make static.
5297 (find_objc_msgcall_submethod_helper): Make static.
5298 (find_objc_msgcall_submethod): Make static.
5299 (_initialize_objc_language): Add declaration.
5300 (find_implementation_from_class): Make static.
5301 (find_implementation): Make static.
5302 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5303 * objc-lang.h (lookup_struct_typedef): Add declaration.
5304 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5305 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5306 (do_restore_user_call_depth): Make static.
5307 (do_restore_instream_cleanup): Delete declaration.
5308 (dont_repeat): Delete declaration.
5309 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5310 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5311 * reggroups.c (_initialize_reggroup): Add declaration.
5312 * cp-support.c (_initialize_cp_support): Add declaration.
5313 * cp-abi.c (_initialize_cp_abi): Add declaration.
5314 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5315 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5316 (_initialize_gnu_v3_abi): Add declaration.
5317 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5318 (_initialize_gnu_v2_abi): Add declaration.
5319 * frame-base.c (_initialize_frame_base): Add declaration.
5320 * doublest.c (floatformat_from_length): Make static.
5321 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5322 * frame.c (create_sentinel_frame): Make static.
5323 (_initialize_frame): Add declaration.
5324 * top.c (do_catch_errors): Make static.
5325 (gdb_rl_operate_and_get_next_completion): Make static.
5326 * typeprint.c: Include "typeprint.h".
5327 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5328 (sentinel_frame_this_id): Make static.
5329 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5330 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5331 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5332 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5333 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5334 * maint.c (maintenance_print_architecture): Make static.
5335 * signals/signals.c (_initialize_signals): Add declaration.
5336 * std-regs.c (_initialize_frame_reg): Add declaration.
5337 * jv-exp.y (push_variable): ISO C definition.
5338 (push_qualified_expression_name): Ditto.
5339 * memattr.c (_initialize_mem): Add declaration.
5340 * remote.c (remote_check_watch_resources): Make static.
5341 (remote_stopped_by_watchpoint): Make static.
5342 (remote_stopped_data_address): Make static.
5343 * d10v-tdep.c (nr_dmap_regs): Make static.
5344 (a0_regnum): Make static.
5345 (d10v_frame_unwind_cache): Make static.
5346 (d10v_frame_p): Make static.
5347 * osabi.c (show_osabi): Make static.
5348 (_initialize_gdb_osabi): Add extern declaration.
5349 * gdbtypes.c (make_qualified_type): Make static.
5350 (safe_parse_type): Make static.
5351 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5352 * macrotab.c (macro_bcache_free): Make static.
5353 * interps.c (interp_set_quiet): Make static.
5354 (interpreter_exec_cmd): Make static.
5355 * stack.h (select_frame_command): New file.
5356 * stack.c: Include "stack.h".
5357 (select_frame_command_wrapper): Delete function.
5358 (select_frame_command): Make global.
5359 * infcall.c: Include "infcall.h".
5360 * linespec.c: Include "linespec.h".
5361 * symfile.c (sections_overlap): Make static.
5362 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5363 * charset.c (_initialize_charset): Add missing prototype.
5364 * regcache.c (init_legacy_regcache_descr): Make static.
5365 (do_regcache_xfree): Make static.
5366 (regcache_xfer_part): Make static.
5367 (_initialize_regcache): Add missing prototype.
5368 * breakpoint.c (parse_breakpoint_sals): Make static.
5369 (breakpoint_sals_to_pc): Make static.
5370 * interps.h (clear_interpreter_hooks): ISO C declaration.
5371 * Makefile.in (stack_h): Define.
5372 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5373 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5374
5375 2003-06-08 Andrew Cagney <cagney@redhat.com>
5376
5377 * Makefile.in (d10v-tdep.o): Update dependencies.
5378 (SFILES): Add trad-frame.c.
5379 (trad_frame_h): Define.
5380 (COMMON_OBS): Add trad-frame.o.
5381 (trad-frame.o): Specify dependencies.
5382 * d10v-tdep.c: Include "trad-frame.h".
5383 (saved_regs_unwinder): Delete function.
5384 (d10v_frame_prev_register): Use trad_frame_prev_register.
5385 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5386 trad_frame", delete "regs" and "prev_sp".
5387 (prologue_find_regs): Use trad-frame.
5388 * trad-frame.h, trad-frame.c: New files.
5389
5390 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5391
5392 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5393
5394 2003-06-07 Adam Fedor <fedor@gnu.org>
5395
5396 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5397 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5398 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5399 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5400 resolve_msgsend_super, resolve_msgsend_super_stret):
5401 Use it.
5402
5403 2003-06-07 Andrew Cagney <cagney@redhat.com>
5404
5405 * symfile.h: Re-indent, clean up comments.
5406
5407 2003-06-07 Andrew Cagney <cagney@redhat.com>
5408
5409 * inferior.h (deprecated_write_sp): Replace
5410 generic_target_write_sp.
5411 * regcache.c (deprecated_write_sp): Replace
5412 generic_target_write_sp.
5413 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5414 * vax-tdep.c (vax_gdbarch_init): Update.
5415 * v850-tdep.c (v850_gdbarch_init): Update.
5416 * sparc-tdep.c (sparc_gdbarch_init): Update.
5417 * sh-tdep.c (sh_gdbarch_init): Update.
5418 * s390-tdep.c (s390_gdbarch_init): Update.
5419 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5420 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5421 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5422 * mcore-tdep.c (mcore_gdbarch_init): Update.
5423 * m68k-tdep.c (m68k_gdbarch_init): Update.
5424 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5425 * ia64-tdep.c (ia64_gdbarch_init): Update.
5426 * h8300-tdep.c (h8300_gdbarch_init): Update.
5427 * frv-tdep.c (frv_gdbarch_init): Update.
5428 * cris-tdep.c (cris_gdbarch_init): Update.
5429 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5430
5431 2003-06-07 Andrew Cagney <cagney@redhat.com>
5432
5433 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5434 Assert that PC_REGNUM is valid.
5435 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5436
5437 2003-06-07 Andrew Cagney <cagney@redhat.com>
5438
5439 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5440 * gdbarch.h, gdbarch.c: Regenerate.
5441 * mn10300-tdep.c: Include "gdb_assert.h".
5442 (mn10300_read_fp): New function.
5443 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5444 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5445 * ia64-tdep.c: Include "gdb_assert.h".
5446 (ia64_read_fp): New function.
5447 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5448 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5449 * regcache.c (generic_target_read_sp): Delete function.
5450 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5451 * inferior.h (generic_target_read_sp): Delete declaration.
5452 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5453 generic_target_read_sp.
5454 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5455 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5456 * sh-tdep.c (sh_gdbarch_init): Ditto.
5457 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5458 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5459
5460 2003-06-07 Andrew Cagney <cagney@redhat.com>
5461
5462 * gdbarch.sh: Comment each field of startup_gdbarch.
5463 * gdbarch.h, gdbarch.c: Re-generate.
5464
5465 2003-06-07 Andrew Cagney <cagney@redhat.com>
5466
5467 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5468 * gdbarch.h, gdbarch.c: Re-generate.
5469 * regcache.c: Update comments on read_pc et.al.
5470 (generic_target_read_pc): Delete function.
5471 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5472 * inferior.h (generic_target_read_pc): Delete declaration.
5473 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5474 generic_target_read_pc.
5475 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5476 * sh-tdep.c (sh_gdbarch_init): Ditto.
5477 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5478 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5479
5480 2003-06-07 Andrew Cagney <cagney@redhat.com>
5481
5482 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5483 "index" with "special_local_sect". Use strcmp instead of STREQ.
5484 Append period to coments.
5485
5486 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5487
5488 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5489 (elfstab_offset_sections): Likewise.
5490 * gdb-stabs.h (stab_section_info): Likewise.
5491 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5492 * objfiles.c (objfile_relocate): Likewise.
5493 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5494 * remote.c (get_offsets): Likewise.
5495 (remote_cisco_objfile_relocate): Likewise.
5496 * somread.c (som_symfile_offsets): Likewise.
5497 * symfile.c (alloc_section_addr_info): New function.
5498 (build_section_addr_info_from_section_tab): Use it.
5499 (free_section_addr_info): Adjust.
5500 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5501 (syms_from_objfile): Allocate local_addr dynamically.
5502 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5503 dynamically.
5504 (add_symbol_file_command): Allocate sect_opts dynamically.
5505 (reread_symbols): Avoid use of SECT_OFF_MAX.
5506 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5507 (alloc_section_addr_info): Declare it.
5508 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5509 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5510 dynamically.
5511 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5512
5513 2003-06-06 Andrew Cagney <cagney@redhat.com>
5514
5515 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5516 (d10v_frame_unwind_cache): Do not set "return_pc".
5517
5518 2003-06-06 Michael Snyder <msnyder@redhat.com>
5519
5520 * h8300-tdep.c: Make tidy (long lines).
5521
5522 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5523
5524 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5525 to regcache_collect().
5526
5527 2003-06-05 J. Brobecker <brobecker@gnat.com>
5528
5529 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5530 pc_in_sigtramp multiarch method.
5531 (hppa_hpux_som_init_abi): Use it.
5532 (hppa_hpux_elf_init_abi): Likewise.
5533 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5534 macro has been multiarched.
5535 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5536 macro here, as hppa64 isn't multiarched yet.
5537
5538 2003-06-05 Andrew Cagney <cagney@redhat.com>
5539
5540 * Makefile.in (value_h): Add $(frame_h).
5541 * value.h: Include "frame.h".
5542 (struct value): Replace "frame_addr" with "frame_id".
5543 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5544 * values.c (allocate_value): Use VALUE_FRAME_ID.
5545 (value_copy): Use VALUE_FRAME_ID.
5546 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5547 * valops.c (value_assign): Update. Use frame_find_by_id.
5548
5549 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5550
5551 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5552 in each pass.
5553
5554 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5555
5556 * thread-db.c (check_event): For create/death event breakpoints,
5557 loop through all messages to ensure that we read the message
5558 corresponding to the breakpoint we are at.
5559
5560 2003-06-04 Michael Snyder <msnyder@redhat.com>
5561
5562 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5563
5564 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5565
5566 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5567 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5568 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5569 when handling .eh_frame sections.
5570
5571 2003-06-04 J. Brobecker <brobecker@gnat.com>
5572
5573 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5574 prepare_to_proceed procedure instead of the hppa-specific one.
5575 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5576
5577 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5578
5579 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5580 * config.in: Regenerated.
5581 * configure.in: Add test for syscall function and check for
5582 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5583 * configure: Regenerated.
5584 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5585 <sys/syscall.h>.
5586 (kill_lwp): New function that uses tkill syscall or
5587 uses kill, depending on whether threading model is nptl or not.
5588 All callers of kill() changed to use kill_lwp().
5589 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5590 see if all threads have already exited in the nptl model.
5591 (stop_and_resume_callback): New callback function used by the
5592 lin_lwp_wait thread exit handling code.
5593 (stop_wait_callback): Check for threads already having exited and
5594 delete such threads fromt the lwp list when discovered.
5595 (stop_callback): Don't assert retcode of kill call.
5596
5597 Roland McGrath <roland@redhat.com>
5598 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5599 nptl libthread_db.
5600
5601 2003-06-03 Richard Henderson <rth@redhat.com>
5602
5603 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5604 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5605 (alpha_sigtramp_frame_prev_register): Likewise.
5606 (alpha_heuristic_frame_prev_register): Likewise.
5607 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5608
5609 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5610 alpha-specific register id names.
5611 (alpha_mdebug_frame_unwind_cache): Likewise.
5612 (alpha_mdebug_frame_prev_register): Likewise.
5613
5614 2003-06-03 Richard Henderson <rth@redhat.com>
5615
5616 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5617 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5618 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5619 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5620 unwind routines.
5621 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5622 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5623 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5624
5625 * alpha-linux-tdep.c: Remove unnecessary includes.
5626 * Makefile.in (alpha-linux-tdep.o): Update.
5627
5628 2003-06-03 Richard Henderson <rth@redhat.com>
5629
5630 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5631 (alphabsd_fill_fpreg): Likewise.
5632
5633 2003-06-03 J. Brobecker <brobecker@gnat.com>
5634
5635 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5636 references to struct frame_info fields by calls to the equivalent
5637 accessors. Necessary now that frame_info is opaque.
5638
5639 2003-06-03 J. Brobecker <brobecker@gnat.com>
5640
5641 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5642 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5643 structure, field no longer exists.
5644
5645 2003-06-03 J. Brobecker <brobecker@gnat.com>
5646
5647 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5648 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5649
5650 2003-06-03 J. Brobecker <brobecker@gnat.com>
5651
5652 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5653 references to struct frame_info fields by calls to the equivalent
5654 accessors. Necessary now that frame_info is opaque.
5655
5656 2003-06-03 J. Brobecker <brobecker@gnat.com>
5657
5658 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5659 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5660 structure, field no longer exists.
5661
5662 2003-06-03 Theodore A. Roth <troth@openavr.org>
5663
5664 * remote.c (init_remote_state): Compute sizeof_g_packet by
5665 accumulation of the size of all registers instead of blindly using
5666 DEPRECATED_REGISTER_BYTES.
5667
5668 2003-06-03 Michael Snyder <msnyder@redhat.com>
5669
5670 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5671 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5672 for h8300sx.
5673
5674 2003-06-03 J. Brobecker <brobecker@gnat.com>
5675
5676 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5677 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5678
5679 2003-06-03 Andrew Cagney <cagney@redhat.com>
5680
5681 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5682 (sparc_convert_to_raw): Delete function.
5683 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5684 register_convert_to_virtual.
5685
5686 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5687
5688 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5689 layer if not dealing with a statically-linked threaded program.
5690
5691 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5692
5693 * solib.c (solib_open): Update comment to reflect actual search order.
5694
5695 2003-06-03 Andrew Cagney <cagney@redhat.com>
5696
5697 * frame.c (get_frame_memory_signed): New function.
5698 (get_frame_memory, get_frame_memory_unsigned): New function.
5699 (get_frame_arch): New function.
5700 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5701 (get_frame_memory, get_frame_unsigned_memory): Declare.
5702 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5703 get_frame_memory_unsigned and get_frame_arch.
5704 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5705
5706 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5707
5708 * MAINTAINERS (write after approval): Add myself.
5709
5710 2003-06-03 Jim Blandy <jimb@redhat.com>
5711
5712 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5713 elements of gregset_t are 64 bits each, but access registers
5714 are still 32 bits, so they're packed two per gregset_t
5715 element. Unpack/pack them properly.
5716
5717 2003-06-02 David Carlton <carlton@bactrian.org>
5718
5719 * linespec.c (find_methods): Break out code into
5720 add_matching_methods and add_constructors.
5721 (add_matching_methods): New.
5722 (add_constructors): Ditto.
5723
5724 2003-06-02 Andrew Cagney <cagney@redhat.com>
5725
5726 * sparc-tdep.c (sparc_print_registers): Delete call to
5727 REGISTER_CONVERTIBLE.
5728 (sparc_gdbarch_init): Do not set register_convertible.
5729 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5730 * frv-tdep.c (frv_gdbarch_init): Ditto.
5731 * cris-tdep.c (cris_gdbarch_init): Ditto.
5732
5733 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5734
5735 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5736 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5737 (syms_from_objfile): Ditto.
5738
5739 2003-06-03 Andreas Schwab <schwab@suse.de>
5740
5741 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5742 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5743
5744 2003-06-02 Richard Henderson <rth@redhat.com>
5745
5746 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5747 a member of all_reggroup.
5748
5749 2003-06-02 Richard Henderson <rth@redhat.com>
5750
5751 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5752 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5753 (alpha_lds, alpha_sts): New.
5754 (alpha_convert_register_p): Change from _register_convertible.
5755 (alpha_register_to_value): Change from _convert_to_virtual;
5756 restructure and fail for type sizes other than 4 or 8.
5757 (alpha_value_to_register): Similarly.
5758 (alpha_extract_return_value): Use alpha_sts.
5759 (alpha_store_return_value): Use alpha_lds.
5760 (alpha_gdbarch_init): Update hooks.
5761
5762 2003-06-02 Richard Henderson <rth@redhat.com>
5763
5764 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5765 regnum identifiers.
5766 (alpha_sigtramp_register_address): Likewise.
5767
5768 2003-06-02 Richard Henderson <rth@redhat.com>
5769
5770 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5771 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5772 * alpha-tdep.h: Declare them.
5773
5774 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5775 Remove zerobuf. Don't error on UNIQUE.
5776 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5777 (ALPHA_REGSET_UNIQUE): Provide default.
5778 (supply_gregset): Use alpha_supply_int_regs.
5779 (fill_gregset): Use alpha_fill_int_regs.
5780 (supply_fpregset): Use alpha_supply_fp_regs.
5781 (fill_fpregset): Use alpha_fill_fp_regs.
5782 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5783 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5784 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5785 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5786 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5787 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5788
5789 2003-06-02 Richard Henderson <rth@redhat.com>
5790
5791 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5792
5793 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5794 (alpha_store_return_value): Likewise.
5795
5796 2003-06-02 David Carlton <carlton@math.stanford.edu>
5797
5798 * block.c (contained_in): Add 'const' to arguments.
5799 (block_function): Ditto.
5800 * block.h: Update declarations for block_function and
5801 contained_in.
5802
5803 2003-06-02 David Carlton <carlton@math.stanford.edu>
5804
5805 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5806 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5807 * p-valprint.c (pascal_val_print): Ditto.
5808 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5809
5810 2003-06-02 Richard Henderson <rth@redhat.com>
5811
5812 * alpha-tdep.c (alpha_push_dummy_call): Use
5813 builtin_type_ieee_double_little instead of builtin_type_double.
5814
5815 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5816 sign-extension of 32-bit values.
5817 (alpha_store_return_value): Similarly.
5818
5819 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5820 (alpha_extract_return_value): Likewise.
5821 (alpha_store_return_value): Likewise.
5822
5823 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5824 (alpha_store_return_value): Error on IEEE Quad floats.
5825
5826 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5827 (alpha_extract_struct_value_address): Likewise.
5828 (alpha_store_return_value): Likewise.
5829 (alpha_store_struct_return): Remove.
5830 (alpha_gdbarch_init): Update hook registration to match.
5831
5832 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5833 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5834 macros where appropriate.
5835 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5836 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5837
5838 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5839 for SP, GP; void_func_ptr for PC; non-language-specific types
5840 for all others.
5841 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5842
5843 2003-06-02 Richard Henderson <rth@redhat.com>
5844
5845 * top.h (lim_at_start): Declare.
5846 * main.c (captured_main): Set it.
5847 * top.c (lim_at_start): Define.
5848 (command_loop): Use it instead of &environ.
5849 * event-top.c (command_handler): Likewise.
5850
5851 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5852
5853 * mipsnbsd-tdep.c: Update copyright years.
5854 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5855
5856 2003-06-01 Richard Henderson <rth@redhat.com>
5857
5858 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5859 (alpha-linux-tdep.o): Update dependencies.
5860 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5861 * alpha-mdebug-tdep.c: Remove unneeded includes.
5862
5863 2003-06-01 Richard Henderson <rth@redhat.com>
5864
5865 * alpha-tdep.c (alpha_register_reggroup_p): New.
5866 (alpha_gdbarch_init): Register it.
5867
5868 2003-06-02 Andrew Cagney <cagney@redhat.com>
5869
5870 * dwarfread.c: Eliminate "register"
5871 (decode_die_type): Eliminate assignment within "if".
5872 (struct_type, decode_array_element_type): Ditto.
5873 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
5874 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
5875 (decode_modified_type, completedieinfo): Ditto.
5876 * block.c: Eliminate "register".
5877 (blockvector_for_pc_sect): Eliminate assignment within "if".
5878 * cp-support.h (struct symbol): Opaque declaration.
5879 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
5880
5881 2003-06-01 Richard Henderson <rth@redhat.com>
5882
5883 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
5884 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5885
5886 2003-06-01 Adam Fedor <fedor@gnu.org>
5887
5888 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
5889 * gdbarch.[ch]: Regenerate.
5890 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
5891 (hppa_gdbarch_init): Set it in the gdbarch vector.
5892 * i386-tdep.c (i386_fetch_pointer_argument): New
5893 (i386_gdbarch_init): Set it into gdbarch.
5894 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
5895 (rs6000_gdbarch_init): Set it in gdbarch.
5896 * sparc-tdep.c (sparc_fetch_pointer_argument): New
5897 (sparc_gdbarch_init): Set it in gdbarch.
5898
5899 2003-06-01 Andrew Cagney <cagney@redhat.com>
5900
5901 * defs.h (extract_address): Delete declaration.
5902 * findvar.c (extract_address): Delete function.
5903 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
5904 extract_address with the inline equivalent,
5905 extract_unsigned_integer.
5906 (xstormy16_extract_struct_value_address): Ditto.
5907 (xstormy16_pointer_to_address): Ditto.
5908 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
5909 * v850-tdep.c (v850_push_arguments): Ditto.
5910 (v850_extract_return_value): Ditto.
5911 (v850_extract_struct_value_address): Ditto.
5912 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5913 (sparcnbsd_get_longjmp_target_64): Ditto.
5914 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5915 (get_longjmp_target): Ditto.
5916 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5917 (sh64_extract_struct_value_address): Ditto.
5918 (sh_push_arguments): Ditto.
5919 (sh64_push_arguments): Ditto.
5920 * remote-vxsparc.c (vx_read_register): Ditto.
5921 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5922 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5923 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5924 * mipsv4-nat.c (get_longjmp_target): Ditto.
5925 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5926 * mips-nat.c (get_longjmp_target): Ditto.
5927 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5928 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5929 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5930 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5931 * irix5-nat.c (get_longjmp_target): Ditto.
5932 * irix4-nat.c (get_longjmp_target): Ditto.
5933 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5934 (ia64_push_arguments): Ditto.
5935 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5936 * h8300-tdep.c (h8300_push_arguments): Ditto.
5937 (h8300_store_return_value): Ditto.
5938 (h8300_extract_struct_value_address): Ditto.
5939 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5940 (frv_push_arguments): Ditto.
5941 * avr-tdep.c (avr_pointer_to_address): Ditto.
5942 (avr_push_arguments): Ditto.
5943 * arm-tdep.c (arm_push_dummy_call): Ditto.
5944 (arm_get_longjmp_target): Ditto.
5945 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5946 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5947 (alpha_get_longjmp_target): Ditto.
5948
5949 * solib-irix.c (extract_mips_address): Inline extract_address,
5950 replacing it with extract_signed_integer.
5951 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5952 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5953 (first_link_map_member, open_symbol_file_object): Ditto.
5954 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5955 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5956 (LM_NEXT, LM_NAME): Ditto.
5957
5958 2003-06-01 Richard Henderson <rth@redhat.com>
5959
5960 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5961 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5962 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5963 (alpha_cannot_store_register): Likewise.
5964 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5965 * alpha-nat.c (supply_gregset): Likewise.
5966 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5967
5968 2003-06-01 Andrew Cagney <cagney@redhat.com>
5969
5970 * infcall.c (call_function_by_hand): Update comment on
5971 DEPRECATED_DUMMY_WRITE_SP.
5972
5973 * mips-tdep.c (mips_gdbarch_init): Do not set
5974 deprecated_dummy_write_sp.
5975 (mips_eabi_push_dummy_call): Set the SP register.
5976 (mips_o64_push_dummy_call): Set the SP register.
5977 (mips_o32_push_dummy_call): Set the SP register.
5978 (mips_n32n64_push_dummy_call): Set the SP register.
5979
5980 2003-06-01 Richard Henderson <rth@redhat.com>
5981
5982 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5983 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5984 (supply_gregset): Likewise.
5985 * alpha-tdep.c (alpha_store_return_value): Likewise.
5986 (alpha_get_longjmp_target): Likewise.
5987 (alpha_register_name): Constify array.
5988 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5989 deprecated_register_size, deprecated_register_bytes,
5990 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5991 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5992 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5993
5994 2003-06-01 Richard Henderson <rth@redhat.com>
5995
5996 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5997 from arg_reg_buffer to regcache to avoid double conversion.
5998
5999 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6000
6001 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6002 SP_REGNUM.
6003 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6004 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6005
6006 2003-06-01 Richard Henderson <rth@redhat.com>
6007
6008 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6009 (decode_frame_entry): Set it. Skip FDE augmentation.
6010
6011 2003-06-01 Richard Henderson <rth@redhat.com>
6012
6013 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6014 not overlapping PC_REGNUM.
6015
6016 2003-06-01 Richard Henderson <rth@redhat.com>
6017
6018 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6019 alpha_push_arguments. Don't dump argument register data to
6020 the target stack. Fix float and 128-bit long double semantics.
6021 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6022 (alpha_fix_call_dummy): Remove.
6023 (alpha_call_dummy_words): Remove.
6024 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6025
6026 2003-06-01 Richard Henderson <rth@redhat.com>
6027
6028 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6029
6030 2003-06-01 Andrew Cagney <cagney@redhat.com>
6031
6032 * mips-tdep.c (is_mips16_addr): New function.
6033 (make_mips16_addr, unmake_mips16_addr): New functions.
6034 (pc_is_mips16, mips_fetch_instruction): Use.
6035 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6036 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6037 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6038 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6039 TARGET_MIPS.
6040 * config/mips/tm-mips.h: Update copyright.
6041 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6042 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6043 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6044 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6045 (TM_PRINT_INSN_MACH): Delete.
6046 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6047
6048 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6049 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6050 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6051 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6052 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6053 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6054 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6055 mips*-*-riscos* and mips*-*-sysv* onto mips.
6056 * config/mips/mips64.mt: New file.
6057 * config/mips/mips.mt: New file.
6058 * config/mips/littlemips.mt: Delete file.
6059 * config/mips/decstation.mt: Delete file.
6060 * config/mips/vr4300el.mt: Delete file.
6061 * config/mips/vr5000el.mt: Delete file.
6062 * config/mips/vr5000.mt: Delete file.
6063 * config/mips/vr4100.mt: Delete file.
6064 * config/mips/vr4xxxel.mt: Delete file.
6065 * config/mips/vr4300.mt: Delete file.
6066 * config/mips/vr4xxx.mt: Delete file.
6067 * config/mips/bigmips.mt: Delete file.
6068 * config/mips/bigmips64.mt: Delete file.
6069 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6070 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6071 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6072 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6073 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6074 "tm-bigmips.h".
6075 * config/mips/tm-irix3.h: Ditto.
6076 * config/mips/tm-mipsv4.h: Ditto.
6077 * config/mips/tm-embed.h: Ditto.
6078 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6079 "tm-bigmips64.h".
6080 * config/mips/tm-vr5000el.h: Delete file.
6081 * config/mips/tm-tx39l.h: Delete file.
6082 * config/mips/tm-vr4300el.h: Delete file.
6083 * config/mips/tm-vr4xxxel.h: Delete file.
6084 * config/mips/tm-vr4300.h: Delete file.
6085 * config/mips/tm-vr4100.h: Delete file.
6086 * config/mips/tm-vr4xxx.h: Delete file.
6087 * config/mips/tm-vr5000.h: Delete file.
6088 * config/mips/tm-embedl64.h: Delete file.
6089 * config/mips/tm-embedl.h: Delete file.
6090 * config/mips/tm-embed64.h: Delete file.
6091 * config/mips/tm-bigmips64.h: Delete file.
6092 * config/mips/tm-bigmips.h: Delete file.
6093
6094 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6095
6096 Fix gdb/1216.
6097 * shnbsd-nat.c: Include "sh-tdep.h".
6098
6099 From Richard Henderson <rth@redhat.com>:
6100 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6101
6102 2003-05-31 Andrew Cagney <cagney@redhat.com>
6103
6104 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6105 forward declaration.
6106 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6107 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6108 (mips_find_saved_regs): Use set_reg_offset.
6109 (mips_frame_init_saved_regs): Delete function.
6110 (mips_pop_frame): Call mips_find_saved_regs instead of
6111 DEPRECATED_FRAME_INIT_SAVED_REGS.
6112
6113 2003-05-31 Andrew Cagney <cagney@redhat.com>
6114
6115 * mips-tdep.c (mips_gdbarch_init): Do not set
6116 deprecated_max_register_raw_size, register_virtual_size, and
6117 deprecated_max_register_virtual_size.
6118
6119 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6120
6121 * i386-tdep.c: Include "dwarf2-frame.h".
6122 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6123 * Makefile.in (i386-tdep.o): Update dependencies.
6124
6125 * dwarf2-frame.c, dwarf2-frame.h: New files.
6126 * Makefile.in (SFILES): Add dwarf2-frame.c.
6127 (dwarf2_frame_h): Define.
6128 (COMMON_OBS): Add dwarf2-frame.o.
6129 (dwarf2-frame.o): Add dependencies.
6130
6131 2003-05-31 Andreas Jaeger <aj@suse.de>
6132
6133 * x86-64-linux-nat.c: Fix comment.
6134
6135 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6136
6137 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6138 function signature.
6139
6140 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6141 have a sigcontext_addr handler.
6142 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6143 sigcontext_addr handler.
6144
6145 2003-05-31 Andrew Cagney <cagney@redhat.com>
6146
6147 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6148 (print_fp_register_row): Replace do_fp_register_row.
6149 (mips_print_fp_register): Add "file" and "frame" parameters.
6150 (mips_print_register): Add "file" and "frame" parameters.
6151 (mips_print_registers_info): Replace mips_do_registers_info.
6152 (mips_gdbarch_init): Set print_registers_info instead of
6153 deprecated_do_registers_info.
6154 (mips_read_fp_register_single): Add "frame" parameter.
6155 (mips_read_fp_register_double): Add "frame" parameter.
6156
6157 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6158
6159 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6160 Fixes a bug where GDB would print the wrong register names for
6161 targets without SSE.
6162
6163 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6164 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6165 registers.
6166
6167 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6168 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6169 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6170 TDEP->sc_sp_offset.
6171
6172 From Michal Ludvig <mludvig@suse.cz>:
6173 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6174 and `sc_num_regs'.
6175 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6176 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6177 I386_ST0_REGNUM): Move here from...
6178 * i386-tdep.c: ... here.
6179 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6180 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6181 registers if possible.
6182 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6183 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6184 Remove variables.
6185 (i386bsd_sc_reg_offset): New variable.
6186 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6187 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6188 TDEP->sc_sp_offset.
6189 (i386fbsd_sc_reg_offset): New variable.
6190 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6191 TDEP->sc_num_regs.
6192 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6193 variables.
6194 (i386fbsd4_sc_reg_offset): New variable.
6195 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6196 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6197 TDEP->sc_sp_offset.
6198 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6199 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6200 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6201 Remove variables.
6202 (i386nbsd_sc_reg_offset): New variable.
6203 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6204 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6205 TDEP->sc_sp_offset.
6206 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6207 Remove variables.
6208 (i386obsd_sc_reg_offset): New variable.
6209 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6210 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6211 TDEP->sc_sp_offset.
6212 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6213 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6214 for frame pointer offset in `struct sigcontext'.
6215
6216 2003-05-31 Andrew Cagney <cagney@redhat.com>
6217
6218 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6219 architecture methods call_dummy_words, sizeof_call_dummy_words,
6220 push_return_address, store_struct_return, and fix_call_dummy. Set
6221 push_dummy_call instead of deprecated_push_arguments.
6222 (mips_store_struct_return): Delete function.
6223 (mips_fix_call_dummy): Delete function.
6224 (mips_push_return_address): Delete function.
6225 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6226 RA_REGNUM and T9_REGNUM.
6227 (mips_n32n64_push_dummy_call): Ditto for
6228 mips_n32n64_push_arguments.
6229 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6230 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6231
6232 2003-05-31 Andrew Cagney <cagney@redhat.com>
6233
6234 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6235 "dummy_addr" to "bp_addr".
6236 * infcall.c (call_function_by_hand): Pass "funaddr" to
6237 gdbarch_push_dummy_call.
6238 * gdbarch.h, gdbarch.c: Re-generate.
6239 * i386-tdep.c (i386_push_dummy_call): Update.
6240 * arm-tdep.c (arm_push_dummy_call): Update.
6241 * d10v-tdep.c (d10v_push_dummy_call): Update.
6242
6243 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6244
6245 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6246 variable declarations.
6247 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6248 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6249 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6250 x86_64_init_frame_pc, x86_64_init_frame_pc,
6251 x86_64_function_has_prologue): Remove prototypes.
6252 (X86_64_NUM_GREGS): New define.
6253 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6254 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6255 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6256 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6257 XMM1_REGNUM): Remove defines.
6258 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6259 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6260 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6261 X86_64_XMM1_REGNUM): New defines.
6262 (struct x86_64_register_info): Renamed from `struct
6263 register_info'. Remove `size' member.
6264 (x86_64_register_info_table): Remove variable.
6265 (x86_64_register_info): New variable.
6266 (X86_64_NUM_REGS): New define.
6267 (X86_64_NUM_GREGS): Remove define.
6268 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6269 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6270 Remove variables.
6271 (x86_54_dwarf2_reg_to_regnum): Remove function.
6272 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6273 (x86_64_dwarf_reg_to_regnum): New function.
6274 (x86_64_register_name): Rewrite.
6275 (x86_64_register_raw_size): Remove function.
6276 (x86_64_register_byte_table): Remove variable.
6277 (x86_64_register_byte): Remove function.
6278 (x86_64_register_virtual_type): Remove function.
6279 (x86_64_register_type): New function.
6280 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6281 x86_64_register_convert_to_raw): Remove functions.
6282 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6283 (x86_64_use_struct_convention): Make static. Adjust for renamed
6284 defines.
6285 (x86_64_frame_init_saved_regs): Remove function.
6286 (x86_64_push_arguments): Make static. Change to accept a regcache
6287 as argument.
6288 (x86_64_store_return_value, x86_64_extract_return_value): Make
6289 static. Rewrite based on i386 counterparts.
6290 (x86_64_push_dummy_call): New function.
6291 (X86_64_NUM_SAVED_REGS): New define.
6292 (x86_64_register_number): Remove function.
6293 (x86_64_store_struct_return): Remove function.
6294 (x86_64_frameless_function_invocation,
6295 x86_64_function_has_prologue): Remove functions.
6296 (PROLOG_BUFSIZE): Remove define.
6297 (struct x86_64_frame_cache): New structure.
6298 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6299 x86_64_frame_cache, x86_64_frame_this_id,
6300 x86_64_frame_prev_register, x86_64_frame_p,
6301 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6302 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6303 functions.
6304 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6305 variables.
6306 (x86_64_skip_prologue): Rewrite in terms of
6307 x86_64_analyze_prologue.
6308 (x86_64_frame_base_address): New function.
6309 (x86_64_frame_base): New variable.
6310 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6311 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6312 set deprecated_fp_regnum, deprecated_register_size,
6313 deprecated_register_bytes, register_raw_size, register_byte,
6314 register_virtual_type, register_convertiable,
6315 register_convert_to_virtual, convert_to_raw,
6316 deprecated_get_saved_register, deprecated_target_read_fp,
6317 deprecated_push_arguments, deprecated_push_return_address,
6318 deprecated_pop_frame, deprecated_store_struct_return,
6319 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6320 frameless_function_invocation, deprecated_frame_saved_pc,
6321 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6322 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6323 deprecated_init_frame_pc and virtual_frame_pointer. Call
6324 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6325 and x86_64_frame_p. Call frame_base_set_default to register
6326 x86_64_frame_base.
6327 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6328 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6329 (_initialize_x86_64_tdep): Remove function.
6330 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6331 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6332 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6333 define.
6334 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6335 (x86_64_linux_sigcontext_addr): Rewrite.
6336 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6337 x86_64_linux_frame_saved_pc): Remove functions.
6338 (x86_64_linux_pc_in_sigtramp): Renamed from
6339 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6340 trampoline.
6341 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6342 Remove_functions.
6343 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6344 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6345 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6346 (x86_64_regmap): Rename to regmap.
6347 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6348 x86_64_num_gregs.
6349 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6350 x86_64_regmap.
6351 (x86_64_fxsave_offset): Remove function.
6352 (supply_fpregset): Simply call x86_64_supply_fxsave.
6353 (fill_fpregset): Simply call x86_64_fill_fxsave.
6354 (fetch_inferior_registers, store_inferior_registers): Avoid
6355 asignment in if-statement.
6356 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6357 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6358 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6359 (fetch_core_registers): Remove function.
6360 (linux_elf_core_fns): Remove.
6361 (offsetoff): Don't define.
6362 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6363 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6364 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6365 add core-regset.o.
6366 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6367 protection against multiple includes instead of NM_X86_64_h. Add
6368 various comments. Include "config/nm-linux.h". Don't include
6369 <signal.h>.
6370 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6371 GET_THREAD_SIGNALS): Remove defines.
6372 (x86_64_register_u_addr, kernel_u_size,
6373 lin_thread_get_thread_signals): Remove prototypes.
6374 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6375 [HAVE_LINK_H]: Don't include "solib.h".
6376 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6377 * config/i386/tm-x86-64linux.h: Fix comments.
6378 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6379 x86-64-tdep.o): Update dependencies.
6380
6381 2003-05-30 Andrew Cagney <cagney@redhat.com>
6382
6383 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6384 Change parameter type to a "struct regcache *".
6385
6386 * gdbarch.sh: Regardless of the multi-arch level, always define
6387 the macro when not already defined.
6388 * gdbarch.h, gdbarch.c: Re-generate.
6389
6390 2003-05-30 Richard Henderson <rth@redhat.com>
6391
6392 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6393 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6394 (alpha_mdebug_frame_this_id): Likewise.
6395 (alpha_mdebug_frame_prev_register): Likewise.
6396 (alpha_mdebug_frame_base_address): Likewise.
6397 (alpha_mdebug_frame_locals_address): Likewise.
6398 (alpha_mdebug_frame_args_address): Likewise.
6399 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6400 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6401 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6402 loop increment.
6403 (alpha_heuristic_frame_this_id): Make static.
6404 (alpha_heuristic_frame_prev_register): Likewise.
6405 (alpha_heuristic_frame_base_address): Likewise.
6406 * alpha-tdep.h: Update.
6407
6408 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6409
6410 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6411 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6412 defenitions.
6413 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6414 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6415 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6416 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6417 I386_ST0_REGNUM): New defines.
6418 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6419 codestream_get): Remove define.
6420 (codestream_next_addr, condestream_addr, condestream_buf,
6421 codestream_off, codestream_cnt): Remove variables.
6422 (codestream_fill, codestream_seek, codestream_read): Remove
6423 functions.
6424 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6425 functionality.
6426 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6427 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6428 i386_frame_saved_pc, i386_saved_pc_after_call,
6429 i386_frame_num_args, i386_frame_init_saved_regs,
6430 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6431 i386_push_arguments): Remove functions.
6432 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6433 functionality. Use i386_analyze_prologue instead of
6434 i386_get_frame_setup.
6435 (I386_NUM_SAVED_REGS): New define.
6436 (struct i386_frame_cache): New structure.
6437 (i386_alloc_frame_cache, i386_analyze_struct_return,
6438 i386_skip_probe, i386_analyze_frame_setup,
6439 i386_analyze_register_saves, i386_analyze_prologue,
6440 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6441 i386_frame_prev_register, i386_sigtramp_frame_cache,
6442 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6443 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6444 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6445 New functions.
6446 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6447 New variables.
6448 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6449 I386_EAX_REGNUM and I386_EDX_REGNUM.
6450 (i386_extract_return_value, i386_store_return_value): Use
6451 I386_ST0_REGNUM where appropriate.
6452 (i386_extract_struct_value_address): Rewrite to use extract_address.
6453 (i386_svr4_pc_in_sigtramp): Add comment.
6454 (i386_svr4_sigcontext_addr): Rewrite.
6455 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6456 TDEP->sc_sp_offset.
6457 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6458 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6459 of new defines. Set push_dummy_call, don't set
6460 deprecated_push_arguments, deprecated_push_return_address,
6461 deprecated_pop_frame. Don't set parm_boundary. Don't set
6462 deprecated_frame_chain, deprecated_frame_saved_pc,
6463 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6464 save_dummy_frame_tos, unwind_pc. Call
6465 frame_unwind_append_predicate and frame_base_set_default. Don't
6466 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6467 Don't set frameless_function_invocation. Don't set
6468 deprecated_register_bytes, deprecated_register_size,
6469 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6470 * i386-linux-tdep.c: Fix formatting in some comments.
6471 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6472 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6473 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6474 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6475 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6476 redundant parentheses.
6477 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6478 (i386_linux_sigcontext_addr): Use it. Rewrite.
6479 (find_minsym_and_objfile): Change name of second argument.
6480 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6481 changed. Use frame_pc_unwind instead of
6482 DEPRECATED_SAVED_PC_AFTER_CALL.
6483 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6484 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6485 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6486 unwinder.
6487 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6488 "dummy-frame.h".
6489 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6490 (_initialize_i386_cygwin_tdep): New prototype.
6491 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6492 deprecated_frame_chain_valid.
6493 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6494 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6495 Rely on the SVR4 defaults.
6496 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6497 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6498
6499 2003-05-30 Andrew Cagney <cagney@redhat.com>
6500
6501 * infcall.c (call_function_by_hand): Always call
6502 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6503
6504 2003-05-30 Richard Henderson <rth@redhat.com>
6505
6506 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6507 increment.
6508
6509 2003-05-29 Jim Blandy <jimb@redhat.com>
6510
6511 Use gdbarch methods for solib stuff on PowerPC Linux.
6512 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6513 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6514 show through.
6515 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6516 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6517 giving the same effect as the #definitions above.
6518
6519 2003-05-29 Adam Fedor <fedor@gnu.org>
6520
6521 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6522 (find_implementation_from_class): Replace it with the standard
6523 case i.e. do nothing.
6524
6525 2003-05-29 Richard Henderson <rth@redhat.com>
6526
6527 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6528 (alpha_linux_sigtramp_offset): Use it. Make static.
6529 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6530 update for new frame model.
6531 * alpha-mdebug-tdep.c: New file.
6532 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6533 (alpha_osf1_init_abi): Install it.
6534 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6535 (linked_proc_desc_table): Remove.
6536 (alpha_frame_past_sigtramp_frame): Remove.
6537 (alpha_dynamic_sigtramp_offset): Remove.
6538 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6539 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6540 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6541 (push_sigtramp_desc): Remove.
6542 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6543 (alpha_cannot_store_register): Likewise.
6544 (alpha_sigcontext_addr): Remove.
6545 (alpha_find_saved_regs): Remove.
6546 (alpha_frame_init_saved_regs): Remove.
6547 (alpha_init_frame_pc_first): Remove.
6548 (read_next_frame_reg): Remove.
6549 (alpha_frame_saved_pc): Remove.
6550 (alpha_saved_pc_after_call): Remove.
6551 (temp_proc_desc, temp_saved_regs): Remove.
6552 (alpha_about_to_return): Remove.
6553 (cached_proc_desc): Remove.
6554 (alpha_frame_chain): Remove.
6555 (alpha_print_extra_frame_info): Remove.
6556 (alpha_init_extra_frame_info): Remove.
6557 (alpha_frame_locals_address): Remove.
6558 (alpha_frame_args_address): Remove.
6559 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6560 (alpha_push_dummy_frame): Remove.
6561 (alpha_pop_frame): Remove.
6562 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6563 (alpha_read_insn): New.
6564 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6565 for different insn encodings.
6566 (alpha_in_lenient_prologue): Remove.
6567 (struct alpha_sigtramp_unwind_cache): New.
6568 (alpha_sigtramp_frame_unwind_cache): New.
6569 (alpha_sigtramp_register_address): New.
6570 (alpha_sigtramp_frame_this_id): New.
6571 (alpha_sigtramp_frame_prev_register): New.
6572 (alpha_sigtramp_frame_unwind): New.
6573 (alpha_sigtramp_frame_p): New.
6574 (struct alpha_heuristic_unwind_cache): New.
6575 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6576 don't count nop insns that occur between functions.
6577 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6578 heuristic_proc_desc, but without the mdebug wrapping.
6579 (alpha_heuristic_frame_this_id): New.
6580 (alpha_heuristic_frame_prev_register): New.
6581 (alpha_heuristic_frame_unwind): New.
6582 (alpha_heuristic_frame_p): New.
6583 (alpha_heuristic_frame_base_address): New.
6584 (alpha_heuristic_frame_base): New.
6585 (alpha_unwind_dummy_id): New.
6586 (alpha_unwind_pc): New.
6587 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6588 frame related deprecated initializations; install replacements.
6589 (alpha_dump_tdep): Remove.
6590 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6591 (alpha_read_insn, alpha_after_prologue,
6592 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6593 alpha_heuristic_frame_prev_register,
6594 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6595 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6596 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6597 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6598
6599 2003-05-29 Andrew Cagney <cagney@redhat.com>
6600
6601 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6602 dependant on the availability of ASSERT_FUNCTION.
6603 (ASSERT_FUNCTION): Do not define when there is no function name.
6604
6605 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6606
6607 From Jimi X <jimix@watson.ibm.com>:
6608 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6609
6610 2003-05-28 Jim Blandy <jimb@redhat.com>
6611
6612 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6613 argument to ptrace to int; the system headers should give it the
6614 right type, and pointers don't fit in ints on powerpc64-*-*.
6615
6616 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6617
6618 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6619 DW_TAG_catch_block.
6620
6621 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6622
6623 * stabsread.c (dbx_lookup_type): Make static.
6624 (read_type): Ditto.
6625 (add_undefined_type): Ditto.
6626 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6627 not export.
6628
6629 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6630
6631 * hpread.c (hpread_has_name): Make static.
6632 (hpread_psymtab_to_symtab): Ditto.
6633 (file_exists): Ditto.
6634 (hpread_call_pxdb): Ditto.
6635 (hpread_pxdb_needed): Ditto.
6636 (hpread_quick_traverse): Ditto.
6637 (hpread_get_header): Ditto.
6638 (hpread_get_lntt): Ditto.
6639 (hpread_get_slt): Ditto.
6640 (class_of): Ditto.
6641
6642 2003-05-25 Andreas Schwab <schwab@suse.de>
6643
6644 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6645 stack_align and deprecated_extra_stack_alignment_needed.
6646 (m68k_stack_align): Delete.
6647
6648 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6649 (m68k_register_virtual_size): Likewise.
6650 (altos_skip_prologue): Remove obsolete function.
6651 (isi_frame_num_args): Likewise.
6652 (news_frame_num_args): Likewise.
6653 (m68k_fix_call_dummy): Make static.
6654 (m68k_push_dummy_frame): Likewise.
6655 (m68k_pop_frame): Likewise.
6656 (m68k_skip_prologue): Likewise.
6657 (m68k_frame_init_saved_regs): Likewise.
6658 (m68k_saved_pc_after_call): Likewise.
6659 (m68k_get_longjmp_target): Make multi-arch.
6660 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6661 structure. Register m68k_get_longjmp_target if enabled.
6662 * m68k-tdep.h (struct gdbarch_tdep): Define.
6663 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6664
6665 * Makefile.in (config.status): Also depend on configure.tgt
6666 and configure.host.
6667 (m68klinux-tdep.o): Update dependencies.
6668 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6669 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6670 (M68K_LINUX_JB_PC): Define.
6671 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6672 and take additional parameter.
6673 (m68k_linux_sigtramp_saved_pc): Update.
6674 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6675 m68k_linux_pc_in_sigtramp, in_plt_section,
6676 find_solib_trampoline_target.
6677 * config/m68k/tm-linux.h: Don't include any tm headers.
6678 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6679 (JB_ELEMENT_SIZE): Likewise.
6680 (JB_PC): Likewise.
6681 (GET_LONGJMP_TARGET): Likewise.
6682 (IN_SIGTRAMP): Likewise.
6683 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6684
6685 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6686
6687 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6688 (sparc32_push_arguments): Re-implement by calling
6689 sparc32_do_push_arguments.
6690
6691 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6692
6693 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6694 SPARC_O1_REGNUM): New defines.
6695 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6696 (sparc32_store_return_value): New function.
6697 (sparc_extract_struct_value_address): Rewrite to operate on a
6698 regcache.
6699 (sparc_gdbarch_init): Don't set
6700 deprecated_extract_struct_value_address. Set
6701 extract_struct_value_address instead. Don't set
6702 deprecated_extract_return_value and deprecated_store_return_value
6703 for 32-bit targets. Set extract_return_value and
6704 store_return_value instead.
6705 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6706 DEPRECTAED_EXTRACT_RETURN_VALUE,
6707 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6708 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6709 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6710 (sparc_store_return_value): Remove prototype.
6711 (sparc32_store_return_value): New prototype.
6712 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6713 Adjust prototypes.
6714
6715 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6716
6717 * sparcnbsd-tdep.c: Include "gdb_string.h".
6718
6719 2003-05-23 Andrew Cagney <cagney@redhat.com>
6720
6721 * p-valprint.c (pascal_val_print): Replace extract_address with
6722 the inline equivalent extract_unsigned_integer.
6723 * jv-valprint.c (java_value_print): Ditto.
6724 * ada-valprint.c (ada_val_print_1): Ditto.
6725 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6726
6727 2003-05-23 Theodore A. Roth <troth@openavr.org>
6728
6729 * blockframe.c (frameless_look_for_prologue): Remove unused
6730 after_prologue variable.
6731
6732 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6733
6734 * blockframe.c (get_pc_function_start): Rewrite to avoid
6735 asignments in if-statements.
6736
6737 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6738
6739 Committed by Elena Zannoni <ezannoni@redhat.com>.
6740 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6741 files, don't relocate absolute symbols (and do use mst_abs).
6742
6743 2003-05-23 Andrew Cagney <cagney@redhat.com>
6744
6745 * objc-lang.c: Include "gdb_assert.h".
6746 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6747 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6748 (gdb_check, gdb_check_fatal): Delete functions.
6749 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6750 gdb_assert.
6751 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6752 * Makefile.in (objc-lang.o): Update dependencies.
6753
6754 2003-05-22 Ian Lance Taylor <ian@airs.com>
6755
6756 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6757 with fprintf_filtered, not fprintf_unfiltered.
6758
6759 2003-05-22 Andrew Cagney <cagney@redhat.com>
6760
6761 * stack.c (frame_info): Inline extract_address, replacing it with
6762 extract_unsigned_integer.
6763 * findvar.c (unsigned_pointer_to_address): Ditto.
6764 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6765 * dwarf2expr.c (dwarf2_read_address): Ditto.
6766 * frame.c (frame_pc_unwind): Update comment.
6767 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6768
6769 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6770
6771 * infptrace.c (detach): Call print_sys_errmsg rather than
6772 perror_with_name to issue warning message when errno is non-zero
6773 after calling ptrace detach.
6774
6775 2003-05-21 J. Brobecker <brobecker@gnat.com>
6776
6777 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6778 macro definitions from here...
6779 * hppa-tdep.c: ...to there.
6780
6781 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6782
6783 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6784 register_ptrace_addr(). Fix all callers.
6785
6786 2003-05-21 Andreas Schwab <schwab@suse.de>
6787
6788 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6789 dependencies.
6790 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6791 end.
6792 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6793 (_initialize_m68k_linux_tdep): New function.
6794 (m68k_linux_frame_saved_pc): Make static.
6795 (m68k_linux_extract_return_value): Likewise.
6796 (m68k_linux_store_return_value): Likewise.
6797 (m68k_linux_extract_struct_value_address): Likewise.
6798 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6799 Remove.
6800 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6801 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6802 (DEPRECATED_FRAME_SAVED_PC): Remove.
6803
6804 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6805
6806 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6807 regset numbering rather than our own.
6808
6809 2003-05-19 David Carlton <carlton@bactrian.org>
6810
6811 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6812
6813 2003-05-19 David Carlton <carlton@bactrian.org>
6814
6815 Partial fix for PR c++/827.
6816 * cp-support.h: Include symtab.h.
6817 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6818 * cp-namespace.c: Update contributors.
6819 (cp_lookup_symbol_nonlocal): New.
6820 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6821 (lookup_symbol_file): Ditto.
6822 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6823 * block.h: Declare block_scope, block_using, block_global_block.
6824 * block.c (block_scope): New.
6825 (block_using, block_global_block): Ditto.
6826 * Makefile.in (cp_support_h): Depend on symtab_h.
6827 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6828
6829 2003-05-19 David Carlton <carlton@bactrian.org>
6830
6831 * language.h (struct language_defn): Add 'la_value_of_this'
6832 and 'la_lookup_symbol_nonlocal' members.
6833 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6834 lookup_symbol_static, lookup_symbol_global,
6835 lookup_symbol_aux_block.
6836 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6837 if we should search fields of this and how to do static/global
6838 lookup.
6839 (lookup_symbol_aux_block): Make extern.
6840 (basic_lookup_symbol_nonlocal): New.
6841 (lookup_symbol_static, lookup_symbol_global): Ditto.
6842 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6843 'la_lookup_symbol_nonlocal' members.
6844 * c-lang.c (c_language_defn, cplus_language_defn)
6845 (asm_language_defn, minimal_language_defn): Ditto.
6846 * jv-lang.c (java_language_defn): Ditto.
6847 * language.c (unknown_language_defn, auto_language_defn)
6848 (local_language_defn): Ditto.
6849 * m2-lang.c (m2_language_defn): Ditto.
6850 * objc-lang.c (objc_language_defn): Ditto.
6851 * scm-lang.c (scm_language_defn): Ditto.
6852 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6853 * p-lang.c (pascal_language_defn): Ditto for both.
6854 * Makefile.in (f-lang.o): Depend on value_h.
6855 (p-lang.o): Ditto.
6856
6857 2003-05-19 David Carlton <carlton@bactrian.org>
6858
6859 * block.h: Declare block_static_block.
6860 * block.c (block_static_block): New.
6861 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6862 lookup_symbol_aux_local, calling block_static_block instead.
6863 (lookup_symbol_aux_local): Delete 'static_block' argument.
6864
6865 2003-05-19 David Carlton <carlton@bactrian.org>
6866
6867 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6868
6869 2003-05-19 Michal Ludvig <mludvig@suse.cz>
6870
6871 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
6872 register numbers mapping.
6873
6874 2003-05-18 Adam Fedor <fedor@gnu.org>
6875
6876 * symtab.c (completion_list_objc_symbol): New function.
6877 (make_symbol_completion_list): Use it to add ObjC symbols
6878 when looking though the list.
6879 (language_search_unquoted_string): New function.
6880 (make_file_symbol_completion_list): Use it.
6881
6882 2003-05-18 Andreas Schwab <schwab@suse.de>
6883
6884 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
6885 dependencies.
6886 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
6887 as m68k_linux_extract_return_value.
6888 (DEPRECATED_STORE_RETURN_VALUE): Define as
6889 m68k_linux_store_return_value.
6890 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
6891 m68k_linux_extract_struct_value_address.
6892 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
6893 get_next_frame, get_frame_base, get_frame_pc.
6894 (m68k_linux_frame_saved_pc): Use get_frame_base.
6895 (m68k_linux_extract_return_value): New function.
6896 (m68k_linux_store_return_value): New function.
6897 (m68k_linux_extract_struct_value_address): New function.
6898 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
6899
6900 * c-exp.y (typebase): Remove duplicate occurence of
6901 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
6902 of lookup_signed_typename.
6903
6904 2003-05-18 Mark Kettenis <kettenis@gnu.org>
6905
6906 * dwarf2loc.c (find_location_expression): Change type of second
6907 argument to `size_t *'.
6908 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
6909 for size variable.
6910
6911 2003-05-18 David Carlton <carlton@bactrian.org>
6912
6913 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6914 'linkage_name'. Add comment.
6915 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6916 'linkage_name'.
6917 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6918 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6919 (lookup_block_symbol): Ditto.
6920
6921 2003-05-16 Andrew Cagney <cagney@redhat.com>
6922
6923 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6924 * gdbarch.h, gdbarch.c: Re-generate.
6925 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6926 * TODO (REGISTER_BYTES): Delete reference.
6927 * alpha-tdep.c (alpha_gdbarch_init): Update.
6928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6929 * x86-64-tdep.c (x86_64_init_abi): Update.
6930 * vax-tdep.c (vax_gdbarch_init): Update.
6931 * v850-tdep.c (v850_gdbarch_init): Update.
6932 * sparc-tdep.c (sparc_gdbarch_init): Update.
6933 * sh-tdep.c (sh_gdbarch_init): Update.
6934 * s390-tdep.c (s390_gdbarch_init): Update.
6935 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6936 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6937 (ns32k_gdbarch_init_32382): Update.
6938 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6939 * mcore-tdep.c (mcore_gdbarch_init): Update.
6940 * m68k-tdep.c (m68k_gdbarch_init): Update.
6941 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6942 * ia64-tdep.c (ia64_gdbarch_init): Update.
6943 * i386-tdep.c (i386_gdbarch_init): Update.
6944 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6945 * hppa-tdep.c (hppa_gdbarch_init): Update.
6946 * h8300-tdep.c (h8300_gdbarch_init): Update.
6947 * frv-tdep.c (frv_gdbarch_init): Update.
6948 * cris-tdep.c (cris_gdbarch_init): Update.
6949 * avr-tdep.c (avr_gdbarch_init): Update.
6950 * arm-tdep.c (arm_gdbarch_init): Update.
6951 * sparc-tdep.c (sparc_pop_frame): Update.
6952 * rs6000-tdep.c (rs6000_pop_frame): Update.
6953 * remote.c (init_remote_state): Update.
6954 (remote_prepare_to_store): Update.
6955 * remote-vx.c (vx_prepare_to_store): Update.
6956 * remote-sds.c (sds_fetch_registers): Update.
6957 (sds_prepare_to_store): Update.
6958 * remote-array.c: Update.
6959 * regcache.c (init_legacy_regcache_descr): Update.
6960 (init_regcache_descr): Update.
6961 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6962 (mips_o64_extract_return_value): Update.
6963 * irix5-nat.c (fetch_core_registers): Update.
6964 * irix4-nat.c (fetch_core_registers): Update.
6965 * i386-tdep.h: Update.
6966 * hppa-tdep.c (pa_do_registers_info): Update.
6967 (pa_do_strcat_registers_info): Update.
6968 * cris-tdep.c (cris_register_bytes_ok): Update.
6969 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6970 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6971 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6972 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6973 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6974 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6975 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6976 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6977 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6978 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6979 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6980 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6981 (REGISTER_BYTES_OK): Update.
6982 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6983 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6984
6985 2003-05-16 Ian Lance Taylor <ian@airs.com>
6986
6987 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6988 (vax_print_insn, print_insn_arg): Remove static functions.
6989 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6990 print_insn_vax from opcodes library.
6991 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6992
6993 2003-05-15 Andrew Cagney <cagney@redhat.com>
6994
6995 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6996 * target.h (memory_breakpoint_from_pc): Delete declaration.
6997 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6998 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6999 * monitor.c (monitor_insert_breakpoint): Use
7000 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7001 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7002 * gdbarch.h, gdbarch.c: Re-generate.
7003 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7004 (sparc_gdbarch_init): Set breakpoint_from_pc to
7005 sparc_breakpoint_from_pc.
7006 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7007 (BREAKPOINT_FROM_PC): Define.
7008 (sparc_breakpoint_from_pc): Declare.
7009 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7010 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7011 (BREAKPOINT_FROM_PC): Define.
7012 (BREAKPOINT): Delete macro.
7013 * target.h: Update comment.
7014 * s390-tdep.c (s390_gdbarch_init): Update comments.
7015 * remote.c: Update comments.
7016 * remote-mips.c: Update comments.
7017 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7018 * mem-break.c: Update comment.
7019 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7020 (ia64_memory_insert_breakpoint): Update.
7021 * config/sparc/tm-sparc.h: Update comment.
7022 * config/pa/tm-hppa64.h: Update comment.
7023 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7024 (rs6000_breakpoint_from_pc): Update.
7025 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7026 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7027 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7028 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7029 (mips_breakpoint_from_pc): Update.
7030 (mips_dump_tdep): Update.
7031
7032 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7033 * minsyms.c (lookup_minimal_symbol): Inline
7034 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7035
7036 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7037 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7038 * p-lang.c (pascal_printstr): Ditto.
7039 * objc-lang.c (objc_printstr): Ditto.
7040 * m2-lang.c (m2_printstr): Ditto.
7041 * jv-valprint.c (java_print_value_fields): Ditto.
7042 * f-lang.c (f_printstr): Ditto.
7043 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7044 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7045 for repeat_count_threshold.
7046 * Makefile.in (cp-valprint.o): Update dependencies.
7047
7048 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7049
7050 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7051 (examine_prologue): Support looking through leaf functions, knowing
7052 they start with mov r2,r12. Support skipping over indirect stores
7053 of the input registers. Upon hitting a non-nop branch instruction
7054 or predicated instruction, bail out by setting lim_pc to the current
7055 pc value in the loop. At the end, if the lim_pc value is still
7056 beyond our calculated value and we have trust_limit set,
7057 use the lim_pc value.
7058
7059 2003-05-15 Andrew Cagney <cagney@redhat.com>
7060
7061 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7062 generic_find_dummy_frame.
7063 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7064 (deprecated_generic_find_dummy_frame): Update.
7065 (deprecated_read_register_dummy): Update.
7066 * frame.c (deprecated_generic_get_saved_register): Update.
7067
7068 2003-05-15 Theodore A. Roth <troth@openavr.org>
7069
7070 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7071 (avr_gdbarch_init): Set breakpoint_from_pc method.
7072
7073 2003-05-15 Andrew Cagney <cagney@redhat.com>
7074
7075 * regcache.c (build_regcache): Set deprecated_register_valid
7076 directly.
7077 (deprecated_grub_regcache_for_register_valid): Delete function.
7078 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7079 declaration.
7080
7081 2003-05-15 David Carlton <carlton@bactrian.org>
7082
7083 Committed by Elena Zannoni <ezannoni@redhat.com>
7084 * symtab.c (lookup_symbol_aux): Delete calls to
7085 lookup_symbol_aux_minsyms.
7086 (lookup_symbol_aux_minsyms): Comment out function and
7087 prototype. Delete lookup by mangled name.
7088
7089 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7090
7091 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7092 correctly indicate an empty stack and ``stack_allocated'' to the
7093 indicate the number of elements initially allocated.
7094 (dwarf_expr_grow_stack): Simplify method for computing new
7095 stack size. Don't loop infinitely if ``stack_len'' is zero.
7096 (execute_stack_op): Move ``ctx->in_reg'' initialization
7097 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7098 be used in conjuction with DW_OP_piece. Revise error message
7099 accordingly.
7100
7101 2003-05-14 Theodore A. Roth <troth@openavr.org>
7102
7103 * MAINTAINERS: Update my email address.
7104 * avr-tdep.c: Ditto.
7105
7106 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7107
7108 * symtab.h (enum domain_enum): Rename from namespace_enum.
7109 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7110 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7111 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7112 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7113 TYPES_NAMESPACE, METHODS_NAMESPACE.
7114 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7115 (struct symbol, struct partial_symbol): Rename field
7116 'namespace_enum namespace' to 'domain_enum domain'.
7117 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7118 Delete old define kludge for namespace.
7119
7120 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7121 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7122 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7123 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7124 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7125 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7126 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7127 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7128 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7129 occurrences of the above.
7130
7131 2003-05-14 Ian Lance Taylor <ian@airs.com>
7132
7133 * Makefile.in (install-only): Use $(SHELL) when running
7134 mkinstalldirs.
7135
7136 2003-05-13 Ian Lance Taylor <ian@airs.com>
7137
7138 * MAINTAINERS (write after approval): Add myself.
7139
7140 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7141 second and third arguments.
7142 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7143 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7144
7145 2003-05-13 Andrew Cagney <cagney@redhat.com>
7146
7147 * defs.h (store_address): Delete declaration.
7148 findvar.c (store_address): Delete function.
7149 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7150 store_unsigned_integer.
7151 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7152 * v850-tdep.c (v850_push_arguments): Ditto.
7153 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7154 * sh-tdep.c (sh64_get_saved_register): Ditto.
7155 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7156 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7157 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7158 (mips_get_saved_register): Ditto.
7159 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7160 (find_func_descr, ia64_push_arguments): Ditto.
7161 * i386-tdep.c (i386_push_arguments): Ditto.
7162 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7163 * frv-tdep.c (frv_push_arguments): Ditto.
7164 * frame.c (legacy_saved_regs_prev_register): Ditto.
7165 (deprecated_generic_get_saved_register): Ditto.
7166 * findvar.c (unsigned_address_to_pointer): Ditto.
7167 * dwarf2read.c (dwarf2_const_value): Ditto.
7168 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7169 * alpha-tdep.c (alpha_push_arguments): Ditto.
7170
7171 2003-05-12 J. Brobecker <brobecker@gnat.com>
7172
7173 * NEWS: Mention that the hppa-hpux port has been partially
7174 multiarched (32bit ABIT only, so far).
7175
7176 2003-05-11 Andrew Cagney <cagney@redhat.com>
7177
7178 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7179 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7180 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7181 sim/testsuite/sim/arm/misaligned2.ms, and
7182 sim/testsuite/sim/arm/misaligned3.ms.
7183 * disasm.h (struct ui_file): Add opaque struct declaration.
7184 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7185 * frame.h (struct ui_file): Ditto.
7186
7187 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7188
7189 * value.h: Pretty print.
7190
7191 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7192
7193 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7194
7195 2003-05-08 Andrew Cagney <cagney@redhat.com>
7196
7197 * regcache.h (max_register_size): Delete declaration.
7198 * regcache.c (max_register_size): Delete function.
7199 (struct regcache_descr): Delete field "max_register_size".
7200 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7201 registers fit in MAX_REGISTER_SIZE.
7202 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7203 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7204 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7205 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7206 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7207 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7208 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7209 * dve3900-rom.c, hppa-tdep.c: Ditto.
7210
7211 2003-05-08 David Carlton <carlton@math.stanford.edu>
7212
7213 * valops.c (push_word): Fix typo.
7214
7215 2003-05-08 Andrew Cagney <cagney@redhat.com>
7216
7217 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7218 * gdbarch.h: Re-generate.
7219 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7220 (legacy_max_register_raw_size): Delete declaration.
7221 * regcache.c (legacy_max_register_raw_size): Delete function.
7222 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7223 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7224 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7225 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7226 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7227 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7228 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7229 * findvar.c, dwarf2cfi.c: Ditto.
7230
7231 2003-05-08 Andrew Cagney <cagney@redhat.com>
7232
7233 * mips-tdep.c (read_signed_register): New function, moved to here
7234 from "regcache.c".
7235 (read_signed_register_pid): Ditto.
7236 * regcache.c (read_signed_register_pid): Delete function, moved to
7237 "mips-tdep.c".
7238 (read_signed_register): Ditto.
7239 * regcache.h (read_signed_register): Delete declaration.
7240 (read_signed_register_pid): Delete declaration.
7241
7242 2003-05-08 Andrew Cagney <cagney@redhat.com>
7243
7244 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7245 * gdbarch.h: Re-generate.
7246 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7247 (legacy_max_register_virtual_size): Delete declaration.
7248 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7249 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7250 * tracepoint.c (memrange_sortmerge): Ditto.
7251 * sparc-tdep.c (sparc_print_registers): Ditto.
7252 * regcache.c (legacy_max_register_virtual_size): Delete function.
7253
7254 2002-05-08 J. Brobecker <brobecker@gnat.com>
7255
7256 * fork-child.c (escape_bang_in_quoted_argument): New function.
7257 (fork_inferior): Escape '!' characters in quoted arguments
7258 only when needed.
7259
7260 2003-05-08 J. Brobecker <brobecker@gnat.com>
7261
7262 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7263 the language of the CU is not currently supported by GDB.
7264
7265 2003-05-08 J. Brobecker <brobecker@gnat.com>
7266
7267 * defs.h (language): Add language_minimal enum value.
7268 * c-lang.c (minimal_language_defn): New language definition.
7269 (_initialize_c_language): Add the new minimal language to the list
7270 of languages known to GDB.
7271
7272 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7273
7274 * frame.c (get_frame_type): Don't attempt to lazily initialize
7275 frame's unwinder for legacy frames.
7276
7277 2003-05-07 Andrew Cagney <cagney@redhat.com>
7278
7279 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7280 and "regcache" parameters.
7281 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7282
7283 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7284
7285 * dwarf2read.c (dwarf_decode_lines): Only use output of
7286 check_cu_functions() when calling record_line(). Do not update
7287 the current address.
7288
7289 2003-05-07 Andrew Cagney <cagney@redhat.com>
7290
7291 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7292 code.
7293
7294 2003-05-07 Jim Blandy <jimb@redhat.com>
7295
7296 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7297 'maint info symtabs' and 'maint info psymtabs'.
7298 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7299 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7300 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7301 Declarations updated.
7302 * maint.c (maintenance_list_command): Delete.
7303 (_initialize_maint_cmds): Update calls to add_cmd.
7304 * gdbcmd.h (maintenancelistlist): Delete declaration.
7305 * cli/cli-cmds.c (maintenancelistlist): Delete.
7306 (init_cmd_lists): Don't initialize it.
7307 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7308
7309 2003-05-07 Andrew Cagney <cagney@redhat.com>
7310
7311 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7312 "regcache".
7313 (d10v_print_registers_info): Update.
7314 (d10v_dmap_register, d10v_imap_register): Delete functions.
7315 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7316 and "imap_register".
7317 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7318 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7319 * arch-utils.c (generic_remote_translate_xfer_address): Add
7320 "regcache" and "gdbarch" parameters.
7321 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7322 parameter. Change class to multi-arch.
7323 * gdbarch.h, gdbarch.c: Re-generate.
7324 * remote.c (remote_xfer_memory): Use
7325 gdbarch_remote_translate_xfer_address.
7326
7327 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7328
7329 * infrun.c (prev_pc): Move declaration ahead of proceed().
7330 (proceed): Refresh prev_pc value before resuming.
7331 (stop_stepping): Remove code to refresh prev_pc.
7332
7333 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7334
7335 * nto-tdep.c: Removed stray comment.
7336
7337 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7338
7339 * i386-nto-tdep.c: Fix old K&R function definitions.
7340 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7341 Also change add_show_from_set() call to add_setshow_cmd().
7342 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7343
7344 2003-05-05 Andrew Cagney <cagney@redhat.com>
7345
7346 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7347 (fprint_dummy_frames): New function.
7348 (maintenance_print_dummy_frames): New function.
7349 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7350 * frame.c (fprint_frame_id): Make global.
7351 * frame.h (fprint_frame_id): Declare.
7352 * Makefile.in (dummy-frame.o): Update dependencies.
7353
7354 2003-05-05 Andrew Cagney <cagney@redhat.com>
7355
7356 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7357 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7358 SIZEOF_CALL_DUMMY_WORDS.
7359 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7360 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7361 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7362 CALL_DUMMY_BREAKPOINT_OFFSET.
7363 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7364 CALL_DUMMY_START_OFFSET.
7365 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7366 * gdbarch.h, gdbarch.c: Re-generate.
7367 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7368 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7369 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7370 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7371 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7372 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7373 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7374 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7375 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7376 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7377 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7378 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7379 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7380 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7381 * config/sparc/tm-sparc.h: Update.
7382
7383 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7384
7385 * configure.tgt: Add i[3456]86-*-nto*.
7386 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7387 * nto-tdep.c: New file. Neutrino target support routines.
7388 * nto-tdep.h: New file. Neutrino target header.
7389 * config/tm-qnxnto.h: New file.
7390 * config/i386/i386nto.mt: New file.
7391 * config/i386/tm-i386nto.h: New file.
7392
7393 2003-05-04 Andrew Cagney <cagney@redhat.com>
7394
7395 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7396 (load_infrun_state): Ditto.
7397 (struct thread_info): Drop "prev_func_name" field.
7398 * thread.c (load_infrun_state): Update.
7399 (save_infrun_state): Update.
7400 * infrun.c (prev_func_name): Delete variable.
7401 (init_wait_for_inferior): Do not clear prev_func_name.
7402 (stop_stepping, keep_going, context_switch): Do not swap
7403 prev_func_name.
7404 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7405 instead of PC_IN_SIGTRAMP.
7406
7407 2003-05-04 Andrew Cagney <cagney@redhat.com>
7408
7409 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7410 REGISTER_BYTE with register_offset_hack.
7411 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7412 that REGISTER_BYTE is consistent with the regcache.
7413 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7414 * gdbarch.h, gdbarch.c: Regenerate.
7415
7416 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7417
7418 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7419 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7420
7421 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7422
7423 2003-05-03 J. Brobecker <brobecker@gnat.com>
7424
7425 From Thierry Schneider <tpschneider1@yahoo.com>
7426 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7427 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7428 (mi-cmd-symbol.o): Add rule.
7429
7430 2003-05-03 Andrew Cagney <cagney@redhat.com>
7431
7432 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7433 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7434 * gdbarch.h, gdbarch.c: Re-generate.
7435 * d10v-tdep.c (d10v_push_dummy_code): New function.
7436 (d10v_gdbarch_init): Set push_dummy_code.
7437 * infcall.c (legacy_push_dummy_code): New function.
7438 (generic_push_dummy_code): New function.
7439 (push_dummy_code): New function.
7440 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7441 instead of dummy_addr, to push_dummy_call. Move call to
7442 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7443 switch.
7444 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7445
7446 2003-05-03 Andrew Cagney <cagney@redhat.com>
7447
7448 * disasm.h (print_insn): Declare.
7449 * disasm.c (init_gdb_disassemble_info): New function.
7450 (gdb_disassembly): Call init_gdb_disassemble_info.
7451 (gdb_print_insn): New function.
7452 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7453 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7454 * mcore-tdep.c: Include "disasm.h"
7455 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7456 * d10v-tdep.c: Include "disasm.h".
7457 (display_trace): Call gdb_print_insn, instead of print_insn.
7458 (print_insn): Delete function.
7459 * printcmd.c: Include "disasm.h".
7460 (print_insn): Delete function.
7461 (print_formatted): Call gdb_print_insn, instead of print_insn.
7462 * Makefile.in (printcmd.o): Update dependencies.
7463 (mcore-tdep.o, d10v-tdep.o): Ditto.
7464
7465 2003-05-02 Andrew Cagney <cagney@redhat.com>
7466
7467 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7468 PC_REGNUM, re-indent.
7469 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7470 PC_REGNUM isn't set.
7471
7472 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7473 * gdbarch.h, gdbarch.c: Re-generate.
7474 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7475 register_virtual_size, pc_regnum, or register_bytes.
7476 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7477 (d10v_register_type): Use D10V_PC_REGNUM.
7478 (d10v_print_registers_info, d10v_read_pc): Ditto.
7479 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7480 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7481
7482 2003-05-02 David Carlton <carlton@bactrian.org>
7483
7484 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7485 the name with mstrsave.
7486
7487 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7488
7489 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7490 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7491 (host_charset_name, target_charset_name): New vars for use by
7492 set/show commands.
7493 (host_charset_enum, target_charset_enum): New enums for set/show
7494 commands.
7495 (set_charset_sfunc, set_host_charset_sfunc,
7496 set_target_charset_sfunc): New functions.
7497 (set_host_charset, set_target_charset): Make static.
7498 (list_charsets, set_host_charset_command,
7499 set_target_charset_command): Delete functions.
7500 (show_charset_command): Rewrite as....
7501 (show_charset): Hook this up with the set/show command mechanism.
7502 (_initialize_charset): Change names of charsets to match the
7503 set/show enums. Use host_charset_name and target_charset_name.
7504 Use set/show mechanism for charset, host-charset, target-charset
7505 commands. Do not make 'show host-charset' and 'show
7506 target-charset' be aliases of 'show charset'.
7507
7508 * charset.h (set_host_charset, set_target_charset): Don't export,
7509 they are not used outside the file.
7510
7511 2003-05-01 Andrew Cagney <cagney@redhat.com>
7512
7513 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7514 (gdb_disassembly): Make "di" non static, always initialize and
7515 cleanup. Always use dis_asm_read_memory.
7516 (gdb_dis_asm_read_memory): Delete function.
7517
7518 2003-05-01 Andrew Cagney <cagney@redhat.com>
7519
7520 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7521 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7522
7523 2003-04-30 Andrew Cagney <cagney@redhat.com>
7524
7525 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7526 "tm_print_insn_info".
7527 (TARGET_PRINT_INSN_INFO): Delete macro.
7528 (dis_asm_read_memory): Delete function declaration.
7529 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7530 (tm_print_insn_info): Delete variable definition.
7531 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7532 * gdbarch.h, gdbarch.c: Re-generate.
7533 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7534 "deprecated_tm_print_insn_info".
7535 * mcore-tdep.c (mcore_dump_insn): Ditto.
7536 * mips-tdep.c (mips_gdbarch_init): Ditto.
7537 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7538 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7539 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7540 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7541 instead of TARGET_PRINT_INSN_INFO, add comment.
7542 * s390-tdep.c (s390_get_frame_info): Instead of
7543 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7544 (s390_check_function_end, s390_is_sigreturn): Ditto.
7545 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7546 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7547 * disasm.c: Include "gdbcore.h".
7548 (_initialize_disasm): New function, initialize
7549 "deprecated_tm_print_insn_info".
7550 (deprecated_tm_print_insn_info): New variable.
7551 (dis_asm_read_memory): Moved from "corefile.c", made static.
7552 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7553 * Makefile.in (disasm.o): Update dependencies.
7554
7555 2003-04-30 Andrew Cagney <cagney@redhat.com>
7556
7557 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7558
7559 2003-04-29 Adam Fedor <fedor@gnu.org>
7560
7561 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7562 * infcall.c (find_function_addr): Make non-static.
7563 * infcall.h (find_function_addr): Declare.
7564 * Makefile.in (eval.o): Update dependencies.
7565
7566 2003-04-28 Adam Fedor <fedor@gnu.org>
7567
7568 * symtab.c (symbol_find_demangled_name): Check for and demangle
7569 ObjC symbols.
7570 (symbol_init_demangled_name): Init for language_objc as well.
7571
7572 2003-04-28 Andrew Cagney <cagney@redhat.com>
7573
7574 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7575 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7576 * gdbarch.h, gdbarch.c: Re-generate.
7577 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7578 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7579 * inferior.h (deprecated_read_fp): Rename read_fp.
7580 (generic_target_read_fp): Delete declaration.
7581 * regcache.c (generic_target_read_fp): Delete function.
7582 (deprecated_read_fp): Replace read_fp, use
7583 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7584 * d10v-tdep.c (d10v_read_fp): Delete function.
7585 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7586
7587 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7588 deprecated_target_read_fp to generic_target_read_fp.
7589 * sh-tdep.c (sh_gdbarch_init): Ditto.
7590 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7591 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7592 * frv-tdep.c (frv_gdbarch_init): Ditto.
7593
7594 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7595 deprecated_fp_regnum.
7596 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7597 * vax-tdep.c (vax_gdbarch_init): Ditto.
7598 * v850-tdep.c (v850_gdbarch_init): Ditto.
7599 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7600 * sh-tdep.c (sh_gdbarch_init): Ditto.
7601 * s390-tdep.c (s390_gdbarch_init): Ditto.
7602 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7603 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7604 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7605 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7607 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7608 * i386-tdep.c (i386_gdbarch_init): Ditto.
7609 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7610 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7611 * frv-tdep.c (frv_gdbarch_init): Ditto.
7612 * cris-tdep.c (cris_gdbarch_init): Ditto.
7613 * avr-tdep.c (avr_gdbarch_init): Ditto.
7614 * arm-tdep.c (arm_gdbarch_init): Ditto.
7615 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7616
7617 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7618 * v850-tdep.c (v850_gdbarch_init): Ditto.
7619 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7620 * sh-tdep.c (sh_gdbarch_init): Ditto.
7621 * s390-tdep.c (s390_gdbarch_init): Ditto.
7622 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7623 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7624 * mips-tdep.c (mips_gdbarch_init): Ditto.
7625 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7626 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7627 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7628 * frv-tdep.c (frv_gdbarch_init): Ditto.
7629 * avr-tdep.c (avr_gdbarch_init): Ditto.
7630 * arm-tdep.c (arm_gdbarch_init): Ditto.
7631
7632 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7633 DEPRECATED_FP_REGNUM.
7634 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7635 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7636 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7637 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7638 (sparc32_register_virtual_type): Ditto.
7639 * sh-tdep.c (sh64_frame_chain): Ditto.
7640 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7641 (sh_nofp_frame_init_saved_regs): Ditto.
7642 (sh64_nofp_frame_init_saved_regs): Ditto.
7643 (sh_fp_frame_init_saved_regs): Ditto.
7644 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7645 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7646 * procfs.c (procfs_fetch_registers): Ditto.
7647 (procfs_store_registers): Ditto.
7648 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7649 (store_inferior_registers, fetch_core_registers): Ditto.
7650 (fetch_kcore_registers, clear_regs): Ditto.
7651 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7652 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7653 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7654 * nlm/i386.c (do_status): Ditto.
7655 * mipsv4-nat.c (supply_gregset): Ditto.
7656 * mips-tdep.c: Ditto for comments.
7657 * mips-nat.c (fetch_inferior_registers): Ditto.
7658 (store_inferior_registers, fetch_core_registers): Ditto.
7659 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7660 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7661 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7662 (i386_do_pop_frame, i386_register_type): Ditto.
7663 * hppa-tdep.c (hppa_frame_chain): Ditto.
7664 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7665 (hppa_pop_frame, hppa_read_fp): Ditto.
7666 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7667 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7668 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7669 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7670 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7671 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7672 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7673 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7674 * blockframe.c: Ditto for comments.
7675 * arch-utils.h: Ditto for comments.
7676 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7677 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7678 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7679 * alpha-tdep.h: Ditto for comments.
7680 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7681 (alpha_cannot_store_register): Ditto.
7682 (alpha_push_dummy_frame): Ditto.
7683 * alpha-nat.c (supply_gregset): Ditto.
7684
7685 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7686 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7687 * config/sparc/tm-sparc.h: Update comment.
7688
7689 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7690 deprecated_read_fp instead of TARGET_READ_FP.
7691 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7692 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7693 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7694 deprecated_read_fp instead of read_fp.
7695 * s390-tdep.c (s390_push_arguments): Ditto.
7696 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7697 * frame.h: Ditto in comments.
7698 * frame.c (legacy_get_prev_frame): Ditto.
7699 * dummy-frame.c (dummy_frame_this_id): Ditto.
7700 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7701
7702 2003-04-28 Andrew Cagney <cagney@redhat.com>
7703
7704 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7705 * gdbarch.h, gdbarch.c: Re-generate.
7706 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7707 * vax-tdep.c (_initialize_vax_tdep): Update.
7708 * v850-tdep.c (_initialize_v850_tdep): Update.
7709 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7710 * s390-tdep.c (_initialize_s390_tdep): Update.
7711 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7712 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7713 * mips-tdep.c (_initialize_mips_tdep): Update.
7714 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7715 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7716 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7717 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7718 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7719 * frv-tdep.c (_initialize_frv_tdep): Update.
7720 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7721 (_initialize_cris_tdep): Update.
7722 * arch-utils.c (legacy_print_insn): Update.
7723 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7724
7725 2003-04-26 Adam Fedor <fedor@gnu.org>
7726
7727 * linespec.c (decode_objc): New function to decode ObjC calls
7728 (decode_line_1): Check for ObjC calls (using decode_objc)
7729 * Makefile (linespec.o): Update dependencies.
7730
7731 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7732
7733 * breakpoint.h (struct breakpoint_ops): New.
7734 (struct breakpoint): Add ops member.
7735
7736 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7737 (mention): Use new breakpoint ops member.
7738 (set_raw_breakpoint): Initialize ops field to NULL.
7739 (print_exception_catchpoint, print_one_exception_catchpoint)
7740 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7741 (gnu_v3_exception_catchpoint_ops): New.
7742 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7743
7744 2003-04-25 Adam Fedor <fedor@gnu.org>
7745
7746 * Makefile.in (COMMON_OBS): Add objc-lang.o
7747
7748 2003-04-25 Andrew Cagney <cagney@redhat.com>
7749
7750 * d10v-tdep.c (print_insn): Delete function.
7751 (display_trace): Use TARGET_PRINT_INSN.
7752 (_initialize_d10v_tdep): Do not set tm_print_insn.
7753 (d10v_gdbarch_init): Set print_insn.
7754
7755 2003-04-25 Andrew Cagney <cagney@redhat.com>
7756
7757 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7758 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7759 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7760 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7761 (nr_dmap_regs, a0_regnum): ... new functions.
7762 (d10v_print_registers_info): Use a0_regnum, use register_size.
7763 (d10v_register_byte): Delete function.
7764 (d10v_register_raw_size): Delete function.
7765 (d10v_register_type): Use a0_regnum.
7766 (d10v_print_registers_info): Use a0_regnum.
7767 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7768 (d10v_gdbarch_init): Do not set register_byte or
7769 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7770 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7771 extract_address.
7772 (trace_command): Use XCALLOC.
7773 (print_insn): Delete reference to tm_print_insn.
7774 (saved_regs_unwinder): Use store_unsigned_integer instead of
7775 store_address.
7776 * frame.h (FRAME_OBSTACK_CALLOC): Define
7777
7778 2003-04-25 David Carlton <carlton@bactrian.org>
7779
7780 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7781
7782 2003-04-24 Adam Fedor <fedor@gnu.org>
7783
7784 * objc-lang.c: Include "valprint.h"
7785 * Makefile.in (objc-lang.o): Update dependencies.
7786
7787 2003-04-24 Adam Fedor <fedor@gnu.org>
7788
7789 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7790 architecture dependant compilation and mark as unimplemented
7791 (until they get put in the gdbarch vector).
7792
7793 2003-04-23 David Carlton <carlton@bactrian.org>
7794
7795 * cp-support.c (cp_find_first_component): Accept 'operator' in
7796 more locations.
7797
7798 2003-04-23 Andrew Cagney <cagney@redhat.com>
7799
7800 * infcall.c (call_function_by_hand): Eliminate redundant
7801 indentation. Move "saved_async" and "old_cleanups" to where they
7802 are needed.
7803
7804 2003-04-23 Andrew Cagney <cagney@redhat.com>
7805
7806 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7807 and "buffer". Move the "name" code to where it is needed.
7808
7809 2003-04-23 Andrew Cagney <cagney@redhat.com>
7810
7811 * infcall.c (call_function_by_hand): Move variables "start_sp",
7812 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7813 code to ON_STACK switch branch.
7814
7815 2003-04-23 Andrew Cagney <cagney@redhat.com>
7816
7817 * infcall.c (call_function_by_hand): Make declaration of "i",
7818 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7819 lint.
7820
7821 2003-04-23 Andrew Cagney <cagney@redhat.com>
7822
7823 * infcall.c (call_function_by_hand): Delete variable
7824 "n_method_args". Localize "param_type"'s declaration to the loop
7825 that it is used. Reinstate code assigning to said variable -
7826 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7827 Rationalize code using "param_type".
7828
7829 2003-04-22 Andrew Cagney <cagney@redhat.com>
7830
7831 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7832 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7833 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7834 to DEPRECATED_PUSH_RETURN_ADDRESS.
7835
7836 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7837
7838 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7839 on the DWARF2 register number prior to fetching a register.
7840
7841 2003-04-22 J. Brobecker <brobecker@gnat.com>
7842
7843 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7844 Update all the tests using SOFT_FLOAT considering the fact that
7845 this macro was always set to 0.
7846 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7847 considering the fact that this macro was always set to 0.
7848 * hppa-tdep.h (hppa_store_return_value): Likewise.
7849 (hppa_extract_return_value): Likewise.
7850
7851 2003-04-22 J. Brobecker <brobecker@gnat.com>
7852
7853 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7854 the hppa-pro target only.
7855
7856 2003-04-21 J. Brobecker <brobecker@gnat.com>
7857
7858 Ongoing multi-arch conversion effort for HP/UX:
7859 * config/pa/tm-hppa.h: Move all macro that are no longer
7860 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7861 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7862
7863 2003-04-21 J. Brobecker <brobecker@gnat.com>
7864
7865 * config/pa/tm-hppa.h: Obsolete a section that was only used
7866 for hppa-pro.
7867
7868 2003-04-21 J. Brobecker <brobecker@gnat.com>
7869
7870 Ongoing multi-arch conversion for HP/UX.
7871 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
7872 if already defined (allows hppa64 to stay non-multiarched for now).
7873 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
7874
7875 2003-04-21 Andrew Cagney <cagney@redhat.com>
7876
7877 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
7878
7879 2003-04-21 Andrew Cagney <cagney@redhat.com>
7880
7881 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
7882 "i386_num_mmx_regs".
7883
7884 2003-04-21 Andrew Cagney <cagney@redhat.com>
7885
7886 * infcall.c: New file.
7887 * infcall.h: New file.
7888 * valarith.c: Include "infcall.h".
7889 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
7890 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
7891 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
7892 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
7893 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
7894 (SFILES): Add "infcall.c"
7895 (COMMON_OBS): Add "infcall.o".
7896 (infcall.o): Specify dependencies.
7897 * value.h (call_function_by_hand): Delete declaration.
7898 * inferior.h (run_stack_dummy): Delete declaration.
7899 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
7900 (run_stack_dummy): Move to "infcall.c", merged into
7901 call_function_by_hand.
7902 * valops.c (call_function_by_hand): Moved to "infcall.c".
7903 (find_function_addr, value_arg_coerce): Ditto.
7904 (unwindonsignal_p, coerce_float_to_double): Ditto.
7905 (_initialize_valops): Move "set/show coerce-float-to-double", and
7906 "set/show unwindonsignal" commands to "infcall.c".
7907 * v850-tdep.c, target.h: Update comments.
7908 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
7909 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
7910 (sh64_init_extra_frame_info): Update comments.
7911 * mn10300-tdep.c: Update comments.
7912 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7913 * config/sparc/tm-sparc.h: Update comments.
7914 * breakpoint.h: Update comments.
7915 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7916 * arm-tdep.c: Update comment.
7917
7918 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7919
7920 * i386-tdep.c (i386_num_register_names): New variable.
7921 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7922 (MM0_REGNUM): Remove redundant parentheses in define.
7923 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7924 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7925 i386_mxcsr_regnum_p): Remove redundant parentheses.
7926 (i386_register_name): Use i386_num_register_names.
7927
7928 * i386-tdep.c (i386_extract_return_value,
7929 i386_store_return_value): Correct check for availability of
7930 floating-point registers.
7931
7932 * i386-tdep.c (i386_frame_num_args): Remove function.
7933 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7934
7935 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7936 mmx_regnum_to_fp_regnum. Adjust all callers.
7937
7938 * i386-tdep.c (i386_get_longjmp_target): Use
7939 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7940 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7941 extract_address.
7942
7943 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7944
7945 * core-regset.c: Update comments to reflect reality. Re-order
7946 includes.
7947 (fetch_core_registers): Use switch instead of if. Remove
7948 redundant prototype.
7949
7950 2003-04-18 Jim Blandy <jimb@redhat.com>
7951
7952 * s390-tdep.c (s390_frame_align): New function.
7953 (s390_gdbarch_init): Register it with the gdbarch object.
7954
7955 2003-04-17 Richard Henderson <rth@redhat.com>
7956
7957 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7958
7959 2003-04-17 Michael Snyder <msnyder@redhat.com>
7960 Karen Bennet <bennet@redhat.com>
7961
7962 Committed by Elena Zannoni <ezannoni@redhat.com>
7963 * gdb_gcore.sh: New script to create a core dump of a process.
7964
7965 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7966
7967 * values.c (value_being_returned): Don't fetch the return
7968 value if the return type is void.
7969
7970 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7971
7972 * thread-db.c: Reindented.
7973
7974 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7975
7976 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7977 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7978 as types.
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8005
8006 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8007 the size of ``long double'' to 16, instead of 8.
8008
8009 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8010
8011 * i386-linux-nat.c: Add some whitespace to make things more
8012 readable.
8013 (fetch_register, store_register, fetch_inferior_registers,
8014 store_inferior_registers): Get rid of assignment in if-statement.
8015 (store_register): Fix typo in error message.
8016
8017 2003-04-16 Andrew Cagney <cagney@redhat.com>
8018
8019 * utils.c (xmmalloc): Always allocate something, matches
8020 libiberty/xmalloc's semantics.
8021 (xmrealloc, xmcalloc): Ditto.
8022
8023 2003-04-16 Andrew Cagney <cagney@redhat.com>
8024
8025 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8026 update comments.
8027 (get_frame_type): Initialize unwind and type when needed.
8028 (get_frame_id, frame_register_unwind): Ditto.
8029
8030 2003-04-16 Andrew Cagney <cagney@redhat.com>
8031
8032 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8033 obsolete.
8034 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8035 * sparcl-stub.c: Obsolete file.
8036 * config/sparc/tm-sparclet.h: Obsolete file.
8037 * sparclet-stub.c: Obsolete file.
8038 * sparclet-rom.c: Obsolete file.
8039 * sparcl-tdep.c: Obsolete file.
8040 * config/sparc/tm-sparclite.h: Obsolete file.
8041 * config/sparc/sparclite.mt: Obsolete file.
8042 * config/sparc/sparclet.mt: Obsolete file.
8043 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8044 sparc86x-*-* obsolete.
8045
8046 2003-04-15 David Carlton <carlton@math.stanford.edu>
8047
8048 * Makefile.in (SFILES): Add cp-namespace.c.
8049 (COMMON_OBS): Add cp-namespace.o.
8050 (block.o): Depend on gdb_obstack_h and cp_support_h.
8051 (buildsym.o): Depend on cp_support_h.
8052 (cp-namespace.o): New.
8053 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8054 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8055 (dwarf2read.o): Depend on cp_support_h.
8056 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8057 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8058 processing_current_namespace.
8059 (read_namespace): Update processing_current_namespace; check for
8060 anonymous namespaces.
8061 (dwarf2_name): New function.
8062 (dwarf2_extension): Ditto.
8063 * cp-support.h: Update copyright, contributors.
8064 Add inclusion guards.
8065 Add opaque declaration for structs obstack, block, symbol.
8066 (struct using_direct): New struct.
8067 Add declarations for cp_find_first_component,
8068 cp_entire_prefix_len, processing_has_namespace_info,
8069 processing_current_namespace, cp_is_anonymous,
8070 cp_add_using_directive, cp_initialize_namespace,
8071 cp_finalize_namespace, cp_set_block_scope,
8072 cp_scan_for_anonymous_namespaces.
8073 * cp-namespace.c: New file.
8074 * cp-support.c: Update copyright.
8075 Include ctype.h, gdb_assert.h, gdbcmd.h.
8076 New variable maint_cplus_cmd_list.
8077 (cp_find_first_component): New function.
8078 (cp_entire_prefix_len, maint_cplus_command)
8079 (first_component_command, _initialize_cp_support): Ditto.
8080 * buildsym.c: Include cp-support.h.
8081 New variable using_list.
8082 (add_symbol_to_list): Check for anonymous namespaces.
8083 (finish_block): Set block's scope.
8084 (start_symtab): Initialize C++ namespace support.
8085 (end_symtab): Finalize C++ namespace support.
8086 * block.h: Add opaque declarations for structs
8087 block_namespace_info, using_direct, and obstack.
8088 Add declarations for block_set_scope and block_set_using.
8089 (struct block): Add 'language_specific' member.
8090 (BLOCK_NAMESPACE): New macro.
8091 * block.c: Include gdb_obstack.h and cp-support.h.
8092 (struct block_namespace_info): New struct.
8093 (block_set_scope): New function.
8094 (block_set_using, block_initialize_namespace): Ditto.
8095
8096 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8097
8098 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8099 (locate_base): Return early if there aren't any link map offsets.
8100 (svr4_solib_create_inferior_hook): Warn if shared library support
8101 is unavailable.
8102
8103 2003-04-14 David Carlton <carlton@math.stanford.edu>
8104
8105 * symtab.c (symbol_set_names): Add prefix when storing Java names
8106 in hash table. Fix for PR java/1039.
8107
8108 2003-04-14 David Carlton <carlton@math.stanford.edu>
8109
8110 * symtab.c (symbol_set_names): Rename 'name' arg to
8111 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8112 * symtab.h: Change 'name' argument in declaration of
8113 symbol_set_names to 'linkage_name'.
8114 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8115
8116 2003-04-14 Andrew Cagney <cagney@redhat.com>
8117
8118 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8119 return the fully sign-extended register value.
8120 (get_frame_pointer): Ditto.
8121 (mips_pop_frame): Initialize "proc_desc" after checking for a
8122 dummy frame.
8123
8124 2003-04-14 Andrew Cagney <cagney@redhat.com>
8125
8126 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8127 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8128 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8129 (mips_push_register): Delete function.
8130 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8131 PUSH_FP_REGNUM.
8132
8133 2003-04-14 Jim Blandy <jimb@redhat.com>
8134
8135 * symmisc.c: #include "gdb_regex.h".
8136 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8137 functions.
8138 * maint.c (maintenance_list_command): New function.
8139 (_initialize_maint_cmds): Register the above as commands.
8140 * symtab.h (maintenance_list_symtabs,
8141 maintenance_list_psymtabs): New declarations.
8142 * cli/cli-cmds.c (maintenancelistlist): New variable.
8143 (init_cmd_lists): Initialize it.
8144 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8145 * gdbcmd.h (maintenancelistlist): New declaration.
8146 * Makefile.in (symmisc.o): Update dependencies.
8147
8148 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8149
8150 * s390-nat.c: Include asm/types.h for addr_t.
8151
8152 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8153
8154 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8155 actually incoming type.
8156
8157 2003-04-13 Andrew Cagney <cagney@redhat.com>
8158
8159 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8160 get_next_frame and get_frame_saved_regs.
8161
8162 2003-04-13 Andrew Cagney <cagney@redhat.com>
8163
8164 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8165 of gdbarch_num_regs.
8166
8167 2003-04-13 Andrew Cagney <cagney@redhat.com>
8168
8169 * frame.h: Mention what replaced what in "struct frame_info".
8170 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8171 deprecated_update_frame_base_hack and
8172 deprecated_update_frame_pc_hack.
8173 * hppa-tdep.c: Ditto.
8174
8175 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8176
8177 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8178 to read_reg and update its comment. Remove regnum member.
8179 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8180 Don't call read_reg when setting in_reg. Call read_reg to get
8181 the frame base if it's in a register. Return the register number
8182 on the stack instead of in the context. Remove extra arguments
8183 to read_reg.
8184 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8185 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8186 the register number on the expression stack.
8187 (needs_frame_read_reg): Remove extra arguments.
8188
8189 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8190
8191 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8192 made non-static.
8193 (execute_stack_op): All callers updated.
8194 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8195 * dwarf2loc.c (find_location_expression): New function.
8196 (dwarf_expr_frame_base): Call it.
8197 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8198 (dwarf2_tracepoint_var_ref): New function, broken out from
8199 locexpr_tracepoint_var_ref.
8200 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8201 Make static.
8202 (loclist_read_variable, loclist_read_needs_frame): New functions.
8203 (loclist_describe_location, loclist_tracepoint_var_ref): New
8204 functions.
8205 (dwarf2_loclist_funcs): New struct location_funcs.
8206 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8207 (struct dwarf2_locexpr_baton): Add comments.
8208 (dwarf2_loclist_funcs): New extern.
8209 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8210 base_address and base_known.
8211 (dwarf_loc_buffer): New variable.
8212 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8213 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8214 (dwarf2_has_info): Initialize dwarf_loc_offset.
8215 (dwarf2_build_psymtabs): Read in .debug_loc.
8216 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8217 DWARF_LOC_SIZE.
8218 (psymtab_to_symtab_1): Likewise. Move base address calculation
8219 here, from...
8220 (dwarf2_get_pc_bounds): ... here. Use the base address from
8221 cu_header.
8222 (dwarf2_symbol_mark_computed): Handle location lists.
8223
8224 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8225
8226 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8227 if the linkage name demangled successfully.
8228
8229 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8230
8231 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8232 disassmbly_flavour): Removed.
8233
8234 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8235
8236 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8237
8238 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8239
8240 2003-04-12 Andrew Cagney <cagney@redhat.com>
8241
8242 * frame.h (struct frame_info): Move definition from here ...
8243 * frame.c (struct frame_info): ... to here.
8244
8245 2003-04-12 Andrew Cagney <cagney@redhat.com>
8246
8247 * gdbthread.h (save_infrun_state): Delete parameter
8248 "prev_func_start".
8249 (struct thread_info): Delete field "prev_func_start".
8250 (load_infrun_state): Ditto.
8251 * thread.c (load_infrun_state, save_infrun_state): Update.
8252 * infrun.c (prev_func_start): Delete variable.
8253 (context_switch, init_wait_for_inferior): Update.
8254 (stop_stepping, keep_going): Update.
8255
8256 2003-04-12 Andrew Cagney <cagney@redhat.com>
8257
8258 * gdbarch.sh: Add missing opaque declarations.
8259 * gdbarch.h: Regnerate.
8260 * symtab.h: Add missing opaque declarations.
8261 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8262 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8263 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8264 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8265 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8266 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8267 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8268 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8269 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8270 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8271 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8272 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8273 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8274
8275 2003-04-11 Andrew Cagney <cagney@redhat.com>
8276
8277 * frame.c (get_frame_id): Return this frame's "id".
8278 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8279 function start.
8280 (legacy_saved_regs_this_id): Replace function body with
8281 internal-error.
8282 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8283 FRAME_OBSTACK_ZALLOC.
8284 (create_new_frame): Mark the frame ID as valid.
8285
8286 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8287
8288 * Makefile.in (libbfd_h): Added missing setting.
8289 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8290 according to the selected ABI.
8291
8292 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8293
8294 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8295
8296 2003-04-11 Andrew Cagney <cagney@redhat.com>
8297
8298 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8299 SAVED_PC_AFTER_CALL.
8300 * gdbarch.h, gdbarch.c: Regenerate.
8301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8302 * x86-64-tdep.c (x86_64_init_abi): Update.
8303 * vax-tdep.c (vax_gdbarch_init): Update.
8304 * v850-tdep.c (v850_gdbarch_init): Update.
8305 * sparc-tdep.c (sparc_gdbarch_init): Update.
8306 * sh-tdep.c (sh_gdbarch_init): Update.
8307 * s390-tdep.c (s390_gdbarch_init): Update.
8308 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8309 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8310 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8311 * mips-tdep.c (mips_gdbarch_init): Update.
8312 * mcore-tdep.c (mcore_gdbarch_init): Update.
8313 * m68k-tdep.c (m68k_gdbarch_init): Update.
8314 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8315 * ia64-tdep.c (ia64_gdbarch_init): Update.
8316 (ia64_saved_pc_after_call): Update declaration.
8317 * i386ly-tdep.c (i386lynx_init_abi): Update.
8318 * i386-tdep.c (i386_gdbarch_init): Update.
8319 * hppa-tdep.c (hppa_gdbarch_init): Update.
8320 * h8300-tdep.c (h8300_gdbarch_init): Update.
8321 * frv-tdep.c (frv_gdbarch_init): Update.
8322 * cris-tdep.c (cris_gdbarch_init): Update.
8323 * avr-tdep.c (avr_gdbarch_init): Update.
8324 * arm-tdep.c (arm_gdbarch_init): Update.
8325 * alpha-tdep.c (alpha_gdbarch_init): Update.
8326 * ns32knbsd-nat.c (frame_num_args): Update.
8327 * ns32k-tdep.c (umax_frame_num_args): Update.
8328 * mips-tdep.c (mips_init_frame_pc_first): Update.
8329 * infrun.c (step_over_function): Update.
8330 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8331 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8332 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8333 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8334 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8335 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8336 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8337 * arch-utils.c (init_frame_pc_default): Update.
8338 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8339 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8340 declaration.
8341
8342 2003-04-11 Andrew Cagney <cagney@redhat.com>
8343
8344 * i387-tdep.c: Update copyright.
8345 (i387_to_double): Delete function.
8346 (double_to_i387): Delete function.
8347
8348 2003-04-10 Andrew Cagney <cagney@redhat.com>
8349
8350 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8351 frame's function's address. Simplify.
8352 (d10v_frame_unwind_cache): Check that the frame's function is
8353 non-zero.
8354
8355 2003-04-10 Jim Blandy <jimb@redhat.com>
8356
8357 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8358 call to set_gdbarch_deprecated_push_arguments.
8359
8360 2003-04-10 Andrew Cagney <cagney@redhat.com>
8361
8362 * frame.c (fprint_frame_id): New function.
8363 (fprint_frame_type, fprint_frame): New function.
8364 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8365 (create_sentinel_frame, get_frame_id): Ditto.
8366 (frame_id_p, frame_id_eq): Ditto.
8367 (frame_id_inner, create_new_frame): Ditto.
8368 (legacy_get_prev_frame, get_prev_frame): Ditto.
8369 (deprecated_update_frame_pc_hack): Ditto.
8370 (frame_register_unwind): Ditto.
8371 (deprecated_update_frame_base_hack): Ditto.
8372
8373 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8374
8375 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8376 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8377 frame_chain function.
8378 * Makefile.in: Add dependencies due to above change.
8379
8380 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8381
8382 * blockframe.c (legacy_frame_chain_valid): Move call to
8383 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8384 inside_entry_file.
8385
8386 2003-04-09 Andrew Cagney <cagney@redhat.com>
8387
8388 * frame.h (struct frame_id): Replace "pc" and "base" with
8389 "stack_addr" and "code_addr". Update comments.
8390 (frame_id_build): Update parameter names and comment.
8391 (struct frame_info): Replace "id_p" and "id" with "this_id".
8392 * dummy-frame.c (dummy_frame_this_id): Update.
8393 * breakpoint.c (print_one_breakpoint): Update.
8394 * frame.c (get_frame_id): Update.
8395 (get_frame_base, frame_id_build): Update.
8396 (create_sentinel_frame, legacy_get_prev_frame): Update.
8397 (deprecated_update_frame_base_hack): Update.
8398 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8399 (frame_id_inner): Ditto.
8400
8401 2003-04-09 Andrew Cagney <cagney@redhat.com>
8402
8403 * defs.h (gdb_print_host_address): Make "addr" parameter a
8404 pointer constant.
8405 * utils.c (gdb_print_host_address): Update.
8406
8407 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8408
8409 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8410 register number for R0 is 0.
8411
8412 2003-04-09 J. Brobecker <brobecker@gnat.com>
8413
8414 * frame.h (struct gdbarch): Add opaque structure definition
8415 to avoid a compilation warning on LynxOS 4.0.
8416
8417 2003-04-09 Andrew Cagney <cagney@redhat.com>
8418
8419 * frame.h (struct frame_info): Delete field "pc". Replace
8420 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8421 structure.
8422 * frame.c (frame_pc_unwind): Update.
8423 (create_sentinel_frame): Do not set "pc".
8424 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8425 (get_frame_pc): Call frame_pc_unwind.
8426 (deprecated_update_frame_pc_hack): Update.
8427 (create_new_frame): Use "pc" not "->pc".
8428
8429 2003-04-09 Andrew Cagney <cagney@redhat.com>
8430
8431 * frame.c (get_frame_id): Eliminate code updating "frame".
8432 (legacy_get_prev_frame): Ditto.
8433 (get_frame_base): Return id.base directly.
8434 (deprecated_update_frame_base_hack): Update "id.base".
8435 * frame.h (struct frame_info): Delete field "frame".
8436
8437 2003-04-09 Andrew Cagney <cagney@redhat.com>
8438
8439 * NEWS: Mention that the "Sequent family" is obsolete.
8440 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8441 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8442 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8443 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8444 * config/i386/tm-ptx4.h: Obsolete file.
8445 * config/i386/tm-ptx.h: Obsolete file.
8446 * symm-tdep.c: Obsolete file.
8447 * config/i386/symmetry.mt: Obsolete file.
8448 * config/i386/tm-symmetry.h: Obsolete file.
8449 * symm-nat.c: Obsolete file.
8450 * config/i386/nm-symmetry.h: Obsolete file.
8451 * config/i386/xm-symmetry.h: Obsolete file.
8452 * config/i386/symmetry.mh: Obsolete file.
8453 * config/i386/nm-ptx4.h: Obsolete file.
8454 * config/i386/ptx4.mh: Obsolete file.
8455 * config/i386/ptx.mt: Obsolete file.
8456 * config/i386/ptx.mh: Obsolete file.
8457 * config/i386/xm-ptx4.h: Obsolete file.
8458 * config/i386/xm-ptx.h: Obsolete file.
8459
8460 2003-04-09 Andrew Cagney <cagney@redhat.com>
8461
8462 Obsolete mips*-*-mach3*.
8463 * NEWS: Mention that mips*-*-mach3* is obsolete.
8464 * m3-nat.c: Obsolete file.
8465 * config/nm-m3.h: Obsolete file.
8466 * config/mips/tm-mipsm3.h: Obsolete file.
8467 * config/mips/mipsm3.mt: Obsolete file.
8468 * config/mips/mipsm3.mh: Obsolete file.
8469 * config/mips/xm-mipsm3.h: Obsolete file.
8470 * mipsm3-nat.c: Obsolete file.
8471 * configure.host: Obsolete mips-dec-mach3*.
8472 * configure.tgt: Obsolete mips*-*-mach3*.
8473
8474 2003-04-09 Andrew Cagney <cagney@redhat.com>
8475
8476 * doublest.h: Update copyright.
8477 (deprecated_store_floating, deprecated_extract_floating): Rename
8478 store_floating and extract_floating. Update comments.
8479 * doublest.c: Update copyright.
8480 (extract_floating_by_length): Replace extract_floating.
8481 (store_floating_by_length): Replace store_floating.
8482 (deprecated_extract_floating): New function.
8483 (deprecated_store_floating): New function.
8484 (extract_typed_floating): Call extract_floating_by_length.
8485 (store_typed_floating): Call store_floating_by_length.
8486 * x86-64-tdep.c (x86_64_store_return_value): Update.
8487 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8488 (sh64_extract_return_value): Update.
8489 (sh_sh4_register_convert_to_virtual): Update.
8490 (sh_sh64_register_convert_to_virtual): Update.
8491 (sh_sh4_register_convert_to_raw): Update.
8492 (sh_sh64_register_convert_to_raw): Update.
8493 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8494 (rs6000_register_convert_to_raw): Update.
8495 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8496 (ia64_register_convert_to_raw): Update.
8497 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8498 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8499 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8500 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8501 (alpha_register_convert_to_raw): Update.
8502
8503 2003-04-08 Andrew Cagney <cagney@redhat.com>
8504
8505 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8506 * gdbarch.h, gdbarch.c: Re-generate.
8507 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8508 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8509 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8510 conditionally, use frame_pc_unwind as an alternative. Add
8511 comments.
8512 * arch-utils.c (init_frame_pc_default): Only call
8513 SAVED_PC_AFTER_CALL when available.
8514
8515 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8516
8517 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8518 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8519 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8520 (start_remote): Ditto.
8521 (handle_inferior_event): Ditto.
8522 (save_inferior_status): Ditto.
8523 (restore_inferior_status): Ditto.
8524 * infcmd.c (attach_command): Ditto.
8525 * fork-child.c (startup_inferior): Ditto.
8526 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8527 * alpha-tdep.c (heuristic_proc_start): Ditto.
8528 * mips-tdep.c (heuristic_proc_start): Ditto.
8529 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8530 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8531 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8532 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8533 * remote-vx.c (vx_create_inferior): Ditto.
8534
8535 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8536
8537 * infrun.c (stop_soon_quietly): Make it an enum, to better
8538 override the default behavior of handle_inferior_event.
8539 (clear_proceed_status): Update uses of stop_soon_quietly to
8540 reflect that it is now an enum.
8541 (start_remote): Ditto.
8542 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8543 is set to handle the new GNU/Linux kernel behavior for
8544 attach/sigstop. Update uses of stop_soon_quietly.
8545 * inferior.h (enum stop_kind): New enum.
8546 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8547 Reset normal handle_inferior_event behavior, afterwards.
8548 * fork-child.c (startup_inferior): Update.
8549 * alpha-tdep.c (heuristic_proc_start): Update.
8550 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8551 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8552 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8553 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8554 * remote-vx.c (vx_create_inferior): Update.
8555 * mips-tdep.c (heuristic_proc_start): Update.
8556
8557 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8558
8559 * disasm.c (dump_insns): Move variables inside loop, or they will
8560 be freed more than once, causing wild memory corruptions.
8561 (gdb_disassembly): Look for the substring "-thread",
8562 instead of "-threads" in the target name, to make sure to find
8563 the 'multi-thread' target. Also, make sure we do the right thing
8564 with the "core" target.
8565
8566 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8567
8568 * mips-tdep.c (mips_print_fp_register): New function, created from
8569 do_fp_register_row(). Registers are now (also) printed as hex.
8570 Only one register is printed per row.
8571 (mips_print_register, do_fp_register_row): Print floating point
8572 registers with mips_print_fp_register().
8573
8574 2003-04-06 Andrew Cagney <cagney@redhat.com>
8575
8576 * valprint.h (inspect_it): Add extern declaration.
8577 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8578 (selectors_info, classes_info): Ditto.
8579 (find_objc_msgcall): Fix indentation.
8580 (objc_printstr): Delete extern declarations.
8581
8582 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8583
8584 2003-04-06 Andrew Cagney <cagney@redhat.com>
8585
8586 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8587 Update comment.
8588 * frame.c (legacy_saved_regs_this_id): Update.
8589 (legacy_get_prev_frame): Update.
8590 * xstormy16-tdep.c: Update comment.
8591 * sparc-tdep.c (sparc_frame_chain): Update comment.
8592 * blockframe.c (legacy_frame_chain_valid): Update.
8593
8594 2003-04-06 Andrew Cagney <cagney@redhat.com>
8595
8596 * valprint.c (val_print_type_code_int): Delete #ifdef
8597 PRINT_TYPELESS_INTEGER code.
8598
8599 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8600 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8601 multi-arch definition.
8602 * gdbarch.h: Re-generate.
8603
8604 2003-04-05 Andrew Cagney <cagney@redhat.com>
8605
8606 Eliminate FRAME_FIND_SAVED_REGS.
8607 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8608 Change FSR parameter to a pointer.
8609 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8610 Assume FSR parameter is a pointer.
8611 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8612 Make fsr a pointer.
8613 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8614 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8615 saved_regs a pointer.
8616 (hppa_frame_saved_pc): Ditto.
8617 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8618 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8619 pointer.
8620 (restore_pc_queue): Make fsr a pointer.
8621 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8622 (hppa_frame_chain): Make saved_regs a pointer, call
8623 hppa_frame_init_saved_regs.
8624 * sparc-tdep.c: Include "gdb_assert.h".
8625 (sparc_frame_find_saved_regs): Replace internal_error with
8626 gdb_assert.
8627 * remote-vxsparc.c (vx_read_register): Delete reference to
8628 FRAME_FIND_SAVED_REGS.
8629 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8630 * gdbarch.h: Regenerate.
8631 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8632 (deprecated_get_frame_saved_regs): Delete declaration.
8633 (struct frame_saved_regs): Delete definition.
8634 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8635 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8636 (hppa_frame_find_saved_regs): Delete declaration.
8637 (FRAME_FIND_SAVED_REGS): Delete macro.
8638 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8639 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8640 FRAME_FIND_SAVED_REGS in comment.
8641
8642 2003-04-05 Andrew Cagney <cagney@redhat.com>
8643
8644 * frame.c (frame_func_unwind, get_frame_func): New functions.
8645 * frame.h (get_frame_func, frame_func_unwind): Declare.
8646 (struct frame_info): Add field "prev_func" for caching the
8647 previous frame's function address.
8648 * arm-tdep.c (arm_frameless_function_invocation): Combine
8649 get_pc_function_start and get_frame_pc into get_frame_func.
8650 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8651 (sh64_nofp_frame_init_saved_regs): Ditto.
8652 * s390-tdep.c (s390_function_start): Ditto.
8653 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8654 (rs6000_frameless_function_invocation): Ditto.
8655 (rs6000_frame_saved_pc): Ditto.
8656 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8657 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8658 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8659 (i386_frame_init_saved_regs): Ditto.
8660 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8661 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8662 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8663 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8664 * blockframe.c (frameless_look_for_prologue): Ditto.
8665
8666 2003-04-05 Andrew Cagney <cagney@redhat.com>
8667
8668 * frame.c (legacy_get_prev_frame): Link prev to next at the
8669 function start. Update comments.
8670
8671 2003-04-05 Andrew Cagney <cagney@redhat.com>
8672
8673 * frame.c (get_frame_id): Update comment.
8674 (legacy_get_prev_frame): Update comment.
8675 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8676 * gdbarch.h: Regenerate.
8677 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8678 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8679
8680 2003-04-05 Andrew Cagney <cagney@redhat.com>
8681
8682 * stack.c (print_frame_info): Use get_frame_pc.
8683
8684 2003-04-04 Andrew Cagney <cagney@redhat.com>
8685
8686 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8687 the frame's type from the unwinder.
8688 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8689 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8690 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8691 (get_frame_base_address): Use get_frame_type.
8692 (get_frame_locals_address, get_frame_args_address): Ditto.
8693 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8694 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8695 (struct frame_info): Add comment explaining why the frame contains
8696 a "type" field.
8697 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8698 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8699 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8700 NORMAL_FRAME.
8701 * frame-unwind.h: Include "frame.h".
8702 (struct frame_unwind): Add "type" field.
8703 * Makefile.in (frame_unwind_h): Add $(frame_h).
8704
8705 2003-04-04 Andrew Cagney <cagney@redhat.com>
8706
8707 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8708 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8709 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8710 get_frame_base.
8711 (d10v_unwind_dummy_id): Use frame_id_build.
8712 * frame.c (find_frame_sal): Use get_frame_pc.
8713 (create_new_frame): Use deprecated_update_frame_pc_hack and
8714 deprecated_update_frame_base_hack.
8715 (create_sentinel_frame): Add comment about ->pc going away.
8716 (get_prev_frame): Add comment about ->pc going away.
8717 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8718 frame_id_build, deprecated_update_frame_pc_hack and
8719 deprecated_update_frame_base_hack.
8720 (select_frame): Use get_frame_pc.
8721 (legacy_saved_regs_this_id): Use frame_id_build.
8722
8723 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8724
8725 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8726 signed integer case.
8727 (classify_argument): Handle enumerations and references.
8728
8729 2003-04-04 Andrew Cagney <cagney@redhat.com>
8730
8731 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8732 ID to NULL.
8733
8734 2003-04-01 Adam Fedor <fedor@gnu.org>
8735
8736 * gdb/objc-lang.c (selectors_info): Replace calls to
8737 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8738 SYMBOL_NATURAL_NAME.
8739 (classes_info, find_methods): Likewise.
8740
8741 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8742
8743 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8744 ``mach'' to the value determined by bfd_default_set_arch_mach().
8745
8746 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8747
8748 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8749 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8750 (mi-cmd-file.o): Update dependencies.
8751
8752 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8753
8754 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8755 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8756
8757 2003-04-01 Adam Fedor <fedor@gnu.org>
8758
8759 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8760 * language.h (struct language_defn): Add la_demangle.
8761 (language_demangle): Declare.
8762 * language.c (language_demangle): New function.
8763 (unk_lang_demangle): Likewise.
8764 (unknown_language_defn, auto_language_defn, local_language_defn):
8765 Add ukn_lang_demangle.
8766 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8767 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8768 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8769 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8770 * jv-lang.c (java_demangle): New function
8771 (java_language_defn): Use it for la_demangle element.
8772 * objc-lang.c (objc_demangle): Add options argument
8773 (objc_language_defn): Use objc_demangle for la_demangle element.
8774 * maint.c (maintenance_demangle): Replace switch with
8775 call to language_demangle.
8776 * utils.c (fprintf_symbol_filtered): Likewise.
8777
8778 2003-04-01 Andrew Cagney <cagney@redhat.com>
8779
8780 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8781 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8782 PRINT_TYPELESS_INTEGER.
8783 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8784 PUSH_RETURN_ADDRESS.
8785
8786 2003-04-01 Andrew Cagney <cagney@redhat.com>
8787
8788 * Makefile.in (d10v-tdep.o): Update dependencies.
8789 * d10v-tdep.c: Include "frame-base.h".
8790 (d10v_frame_unwind): Make constant.
8791 (d10v_frame_base_address): New function.
8792 (d10v_frame_base): New variable.
8793 (d10v_gdbarch_init): Set frame_base default.
8794 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8795 comment for base.
8796 (d10v_frame_unwind_cache): Set and use "prev_sp".
8797 (d10v_frame_this_id): Use the previous frame's inner most stack
8798 address and this frame's func address for the frame ID. Use
8799 frame_id_build. Don't analyze beyond the current instruction.
8800
8801 2003-04-01 Andrew Cagney <cagney@redhat.com>
8802
8803 * frame.h (get_frame_locals_address, get_frame_args_address):
8804 Refer to the base address, instead of the address of the first
8805 local or parameter.
8806
8807 2003-04-01 Andrew Cagney <cagney@redhat.com>
8808
8809 Add frame debug info addresses:
8810 * frame-base.c: New file.
8811 * frame-base.h: New file.
8812 * frame.h (struct frame_base): Add opaque declaration.
8813 (get_frame_base): Update comment.
8814 (get_frame_base_address): Declare.
8815 (get_frame_locals_address): Declare.
8816 (get_frame_args_address): Declare.
8817 (struct frame_info): Add "base" and "base_cache". Update
8818 comments on the unwinder.
8819 * frame.c: Include "frame-base.h".
8820 (get_frame_locals_address): New function.
8821 (get_frame_base_address): New function.
8822 (get_frame_args_address): New function.
8823 * findvar.c (read_var_value): Use get_frame_locals_address and
8824 get_frame_args_address.
8825 * stack.c (frame_info): Use get_frame_locals_address and
8826 get_frame_args_address.
8827 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8828 moved to "frame-base.c".
8829 * printcmd.c (print_frame_nameless_args): Ditto.
8830 * symtab.h (address_class): Update comments.
8831 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8832 get_frame_base_address.
8833 * dwarf2expr.c (execute_stack_op): Ditto.
8834 * Makefile.in (frame_base_h): Define.
8835 (frame.o): Update dependencies.
8836 (frame-base.o): Add dependencies.
8837 (SFILES): Add frame-base.c.
8838 (COMMON_OBS): Add frame-base.o.
8839
8840 2003-04-01 Andrew Cagney <cagney@redhat.com>
8841
8842 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8843 CALL_DUMMY_LENGTH): Ditto.
8844 * gdbarch.c: Re-generate.
8845 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8846 (CALL_DUMMY_LENGTH): Delete macro.
8847 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8848 * arm-tdep.c (arm_gdbarch_init): Ditto.
8849 * avr-tdep.c (avr_gdbarch_init): Ditto.
8850 * cris-tdep.c (cris_gdbarch_init): Ditto.
8851 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8852 * frv-tdep.c (frv_gdbarch_init): Ditto.
8853 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8854 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8855 * i386-tdep.c (i386_gdbarch_init): Ditto.
8856 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8857 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8858 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8859 * mips-tdep.c (mips_gdbarch_init): Ditto.
8860 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8861 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8862 * s390-tdep.c (s390_gdbarch_init): Ditto.
8863 * sh-tdep.c (sh_gdbarch_init): Ditto.
8864 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8865 * v850-tdep.c (v850_gdbarch_init): Ditto.
8866 * vax-tdep.c (vax_gdbarch_init): Ditto.
8867 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8868
8869 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
8870
8871 * frame.c (get_prev_frame): Disable call to inside_entry_file().
8872
8873 2003-04-01 Andrew Cagney <cagney@redhat.com>
8874
8875 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8876 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8877 * gdbarch.h, gdbarch.c: Re-generate.
8878 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8879 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8880 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8881 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8882 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8883 * infcmd.c (run_stack_dummy): Simplify assuming
8884 CALL_DUMMY_BREAKPOINT_OFFSET_P.
8885 * infrun.c (handle_inferior_event): Ditto.
8886 * alpha-tdep.c (alpha_gdbarch_init): Do not set
8887 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
8888 * arm-tdep.c (arm_gdbarch_init): Ditto.
8889 * avr-tdep.c (avr_gdbarch_init): Ditto.
8890 * cris-tdep.c (cris_gdbarch_init): Ditto.
8891 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8892 * frv-tdep.c (frv_gdbarch_init): Ditto.
8893 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8894 * i386-tdep.c (i386_gdbarch_init): Ditto.
8895 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8896 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8897 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8898 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8899 * mips-tdep.c (mips_gdbarch_init): Ditto.
8900 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8901 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8902 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8903 * s390-tdep.c (s390_gdbarch_init): Ditto.
8904 * sh-tdep.c (sh_gdbarch_init): Ditto.
8905 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8906 * v850-tdep.c (v850_gdbarch_init): Ditto.
8907 * vax-tdep.c (vax_gdbarch_init): Ditto.
8908 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8909
8910 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8911
8912 * symfile.c (symfile_relocate_debug_section): Update call to
8913 bfd_simple_get_relocated_section_contents.
8914
8915 2003-03-31 Andrew Cagney <cagney@redhat.com>
8916
8917 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8918 * gdbarch.h, gdbarch.c: Regenerate.
8919 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8920 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8921 available.
8922 * frame.h (generic_fix_call_dummy): Delete declaration.
8923 * dummy-frame.h: Update comment.
8924 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8925 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8926 fix_call_dummy.
8927 * sh-tdep.c (sh_gdbarch_init): Ditto.
8928 * s390-tdep.c (s390_gdbarch_init): Ditto.
8929 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8930 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8931 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8932 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8933 * i386-tdep.c (i386_gdbarch_init): Ditto.
8934 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8935 * frv-tdep.c (frv_gdbarch_init): Ditto.
8936 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8937 * cris-tdep.c (cris_gdbarch_init): Ditto.
8938 * avr-tdep.c (avr_gdbarch_init): Ditto.
8939 * arm-tdep.c (arm_gdbarch_init): Ditto.
8940
8941 2003-03-31 J. Brobecker <brobecker@gnat.com>
8942
8943 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8944 (INIT_FRAME_AP): Likewise.
8945 (EXTRA_FRAME_INFO): Likewise.
8946
8947 2003-03-31 Andrew Cagney <cagney@redhat.com>
8948
8949 * gdbarch.sh: Include "symfile.h".
8950 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8951 * gdbarch.h, gdbarch.c: Re-generate.
8952 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8953 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8954 call_dummy_address, the default is at entry_point_address.
8955 * v850-tdep.c (v850_gdbarch_init): Ditto.
8956 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8957 * sh-tdep.c (sh_gdbarch_init): Ditto.
8958 * s390-tdep.c (s390_gdbarch_init): Ditto.
8959 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8960 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8961 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8962 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8963 * i386-tdep.c (i386_gdbarch_init): Ditto.
8964 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8965 * frv-tdep.c (frv_gdbarch_init): Ditto.
8966 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8967 * cris-tdep.c (cris_gdbarch_init): Ditto.
8968 * arm-tdep.c (arm_gdbarch_init): Ditto.
8969
8970 2003-03-31 Andrew Cagney <cagney@redhat.com>
8971
8972 * gdbarch.sh (CALL_DUMMY_P): Delete.
8973 * gdbarch.h, gdbarch.c: Re-generate.
8974 * inferior.h (CALL_DUMMY_P): Delete macro.
8975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8976 * vax-tdep.c (vax_gdbarch_init): Update.
8977 * v850-tdep.c (v850_gdbarch_init): Update.
8978 * sparc-tdep.c (sparc_gdbarch_init): Update.
8979 * sh-tdep.c (sh_gdbarch_init): Update.
8980 * s390-tdep.c (s390_gdbarch_init): Update.
8981 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8982 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8983 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8984 * mips-tdep.c (mips_gdbarch_init): Update.
8985 * mcore-tdep.c (mcore_gdbarch_init): Update.
8986 * m68k-tdep.c (m68k_gdbarch_init): Update.
8987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8988 * ia64-tdep.c (ia64_gdbarch_init): Update.
8989 * i386-tdep.c (i386_gdbarch_init): Update.
8990 * h8300-tdep.c (h8300_gdbarch_init): Update.
8991 * frv-tdep.c (frv_gdbarch_init): Update.
8992 * d10v-tdep.c (d10v_gdbarch_init): Update.
8993 * cris-tdep.c (cris_gdbarch_init): Update.
8994 * breakpoint.c (deprecated_frame_in_dummy): Update.
8995 * avr-tdep.c (avr_gdbarch_init): Update.
8996 * alpha-tdep.c (alpha_gdbarch_init): Update.
8997 * arm-tdep.c (arm_gdbarch_init): Update.
8998 * dummy-frame.c (dummy_frame_this_id): Update comments.
8999 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9000 * frame.c (legacy_get_prev_frame): Ditto.
9001 * valops.c (call_function_by_hand): Delete function.
9002 (hand_function_call): Rename to call_function_by_hand
9003
9004 2003-03-30 Andrew Cagney <cagney@redhat.com>
9005
9006 2002-11-10 Klee Dienes <kdienes@apple.com>
9007 * value.h (struct value): Update comment.
9008
9009 2003-03-30 Andrew Cagney <cagney@redhat.com>
9010
9011 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9012 D10V_FP_REGNUM.
9013 (d10v_gdbarch_init): Do not set fp_regnum.
9014
9015 * frame.c (get_frame_base): Force ID initialization.
9016 (get_prev_frame): Move computation of the frame ID from here ...
9017 (get_frame_id): ... to here.
9018 (legacy_get_prev_frame): Mark the frame ID as valid.
9019 * frame.h (struct frame_info): Add field "id_p".
9020
9021 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9022
9023 * i386-tdep.c (i386_store_struct_return): Removed.
9024 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9025
9026 2003-03-30 Andrew Cagney <cagney@redhat.com>
9027
9028 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9029 * gdbarch.h, gdbarch.c: Regenerate.
9030 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9031 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9032 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9033 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9034 * i386-tdep.c (i386_gdbarch_init): Ditto.
9035 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9036 * cris-tdep.c (cris_gdbarch_init): Ditto.
9037 * vax-tdep.c (vax_gdbarch_init): Ditto.
9038 * s390-tdep.c (s390_gdbarch_init): Ditto.
9039 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9040 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9041 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9042 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9043 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9044 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9045 * sparc-tdep.c (sparc_gdbarch_init): Update.
9046 * sh-tdep.c (sh_gdbarch_init): Update.
9047 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9048 * mips-tdep.c (mips_gdbarch_init): Update.
9049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9050 * ia64-tdep.c (ia64_gdbarch_init): Update.
9051 * frv-tdep.c (frv_gdbarch_init): Update.
9052 * avr-tdep.c (avr_gdbarch_init): Update.
9053 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9054 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9055 instead of when push_dummy_call is not available.
9056
9057 2003-03-30 Andrew Cagney <cagney@redhat.com>
9058
9059 * infttrace.c: Include "gdbthread.h".
9060 (parent_attach_all): Fix function signature.
9061 (call_ptrace): Update call.
9062 * Makefile.in (infttrace.o): Update dependencies.
9063
9064 2003-03-30 Andrew Cagney <cagney@redhat.com>
9065
9066 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9067 PUSH_RETURN_ADDRESS.
9068 * gdbarch.h, gdbarch.c: Regenerate.
9069 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9070 * x86-64-tdep.c (x86_64_init_abi): Update.
9071 * v850-tdep.c (v850_gdbarch_init): Update.
9072 * sparc-tdep.c (sparc_gdbarch_init): Update.
9073 * sh-tdep.c (sh_gdbarch_init): Update.
9074 * s390-tdep.c (s390_gdbarch_init): Update.
9075 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9076 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9077 * mips-tdep.c (mips_gdbarch_init): Update.
9078 * mcore-tdep.c (mcore_gdbarch_init): Update.
9079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9080 * ia64-tdep.c (ia64_gdbarch_init): Update.
9081 * i386-tdep.c (i386_gdbarch_init): Update.
9082 * h8300-tdep.c (h8300_gdbarch_init): Update.
9083 * frv-tdep.c (frv_gdbarch_init): Update.
9084 * cris-tdep.c (cris_gdbarch_init): Update.
9085 * avr-tdep.c (avr_gdbarch_init): Update.
9086 * arm-tdep.c (arm_gdbarch_init): Update.
9087 * valops.c (hand_function_call): Update.
9088
9089 2003-03-29 Andrew Cagney <cagney@redhat.com>
9090
9091 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9092 sizeof_call_dummy_words.
9093 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9094 define.
9095 * gdbarch.h: Regenerate.
9096
9097 2003-03-29 Andrew Cagney <cagney@redhat.com>
9098
9099 * infttrace.h: New file.
9100 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9101 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9102 (hpread_read_doc_function_type): Detect an initialized type1.
9103 (hpread_quick_traverse): Initialize mod_name_string.
9104 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9105 (som_solib_get_solib_by_pc): Declare.
9106 (so_lib_thread_start_addr): Declare.
9107 (no_shared_libraries): Declare.
9108 * somread.c (init_import_symbols): Make static. Add forward
9109 declaration.
9110 * config/pa/nm-hppah.h: Include "infttrace.h" for
9111 parent_attach_all.
9112 (hppa_insert_hw_watchpoint): Declare.
9113 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9114 * hppah-nat.c: Include "gdb_string.h".
9115 (parent_attach_all): Delete extern declaration, moved to
9116 "infttrace.h".
9117 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9118 int.
9119 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9120 * Makefile.in (infttrace_h): Define.
9121 (hpread.o): Update dependencies.
9122 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9123 * hppa-hpux-tdep.c: Include "gdb_string.h".
9124 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9125 * infrun.c (handle_inferior_event): Always initialize
9126 stepped_after_stopped_by_watchpoint. Add default and remove
9127 fallthrough in switch statement.
9128 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9129 parameter to int.
9130 (hppa_remove_hw_watchpoint): Ditto.
9131
9132 2003-03-29 Andrew Cagney <cagney@redhat.com>
9133
9134 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9135 offset.
9136
9137 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9138
9139 * arm-tdep.c (arm_push_arguments): Delete.
9140 (struct stack_item): New type.
9141 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9142 (arm_store_struct_return): Delte.
9143 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9144 arm_push_arguments or arm_store_struct_return.
9145
9146 2003-03-28 Andrew Cagney <cagney@redhat.com>
9147
9148 * Makefile.in (d10v-tdep.o): Update dependencies.
9149 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9150 * d10v-tdep.c: Include "remote.h".
9151 (target_resume_hook): Delete extern declaration.
9152 (target_wait_loop_hook): Ditto.
9153 (tdisassemble_command): Eliminate assignment in "if" conditional.
9154 (d10v_ts2_register_sim_regno): Eliminate call to
9155 legacy_register_sim_regno.
9156 (d10v_ts3_register_sim_regno): Ditto.
9157
9158 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9159
9160 * thread.c: Reindented.
9161 * lin-lwp.c: Ditto.
9162 * linux-proc.c: Ditto.
9163
9164 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9165
9166 * MAINTAINERS (write after approval): Add myself.
9167
9168 2003-03-27 Theodore A. Roth <troth@openavr.org>
9169
9170 * objc-exp.y: Add missing semi-colons.
9171
9172 2003-03-27 Andrew Cagney <cagney@redhat.com>
9173
9174 * regcache.c (write_sp): Delete function and references.
9175 * inferior.h (write_sp): Delete declaration.
9176 * valops.c (hand_function_call): Replace write_sp with
9177 TARGET_WRITE_SP.
9178 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9179 (sparc_pop_frame): Ditto.
9180
9181 2003-03-27 Andrew Cagney <cagney@redhat.com>
9182
9183 * NEWS: Mention removal of support for hppa*-*-bsd* and
9184 hppa*-*-osf* natives, and hppa*-*-pro* target.
9185 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9186 * config/pa/xm-pa.h: Obsolete file.
9187 * config/pa/xm-hppab.h: Obsolete file.
9188 * config/pa/nm-hppab.h: Obsolete file.
9189 * config/pa/tm-hppab.h: Obsolete file.
9190 * config/pa/tm-hppao.h: Obsolete file.
9191 * config/pa/nm-hppao.h: Obsolete file.
9192 * config/pa/tm-pro.h: Obsolete file.
9193 * config/pa/hppaosf.mt: Obsolete file.
9194 * config/pa/hppaosf.mh: Obsolete file.
9195 * config/pa/hppapro.mt: Obsolete file.
9196 * config/pa/hppabsd.mt: Obsolete file.
9197 * config/pa/hppabsd.mh: Obsolete file.
9198 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9199 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9200 hppa*-*-osf*.
9201
9202 2003-03-27 Andrew Cagney <cagney@redhat.com>
9203
9204 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9205 push_arguments. Don't set push_return_address or write_sp.
9206 (d10v_push_dummy_call): Replace d10v_push_arguments.
9207 (d10v_push_return_address, d10v_write_sp): Delete function,
9208 handled by push_dummy_call.
9209
9210 2003-03-26 Andrew Cagney <cagney@redhat.com>
9211
9212 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9213 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9214 regcache and dummy_addr parameters.
9215 * gdbarch.h, gdbarch.c: Re-generate.
9216 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9217 available; assume it will handle stack alignment and return
9218 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9219 legacy_push_arguments.
9220 (legacy_push_arguments): Rename default_push_arguments.
9221 * value.h (legacy_push_arguments): Rename default_push_arguments.
9222 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9223 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9224 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9225 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9226 * config/i386/tm-symmetry.h: Update.
9227 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9228 * x86-64-tdep.c (x86_64_init_abi): Update.
9229 * v850-tdep.c (v850_gdbarch_init): Update.
9230 * sparc-tdep.c (sparc_gdbarch_init): Update.
9231 * sh-tdep.c (sh_gdbarch_init): Update.
9232 * s390-tdep.c (s390_gdbarch_init): Update.
9233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9234 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9235 * mips-tdep.c (mips_gdbarch_init): Update.
9236 * mcore-tdep.c (mcore_gdbarch_init): Update.
9237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9238 * ia64-tdep.c (ia64_gdbarch_init): Update.
9239 * i386-tdep.c (i386_gdbarch_init): Update.
9240 * hppa-tdep.c (hppa_gdbarch_init): Update.
9241 * h8300-tdep.c (h8300_gdbarch_init): Update.
9242 * frv-tdep.c (frv_gdbarch_init): Update.
9243 * d10v-tdep.c (d10v_gdbarch_init): Update.
9244 * cris-tdep.c (cris_gdbarch_init): Update.
9245 * avr-tdep.c (avr_gdbarch_init): Update.
9246 * arm-tdep.c (arm_gdbarch_init): Update.
9247 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9248 * alpha-tdep.c (alpha_gdbarch_init): Update.
9249
9250 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9251
9252 * signals/signals.c (do_target_signal_to_host): Correct realtime
9253 signal range test.
9254
9255 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9256
9257 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9258 (struct sal_chain, map_catch_names): Remove.
9259 (catch_exception_command_1): Don't call
9260 handle_gnu_4_16_catch_command.
9261
9262 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9263
9264 From Mark Dettinger <dettinge@de.ibm.com>:
9265 * dwarf2cfi.c (read_2u): Increment pointer by two.
9266
9267 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9268
9269 * signals/signals.c: Fix typos in last change.
9270
9271 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9272
9273 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9274 not already defined. Use __SIGRTMIN if available.
9275 (target_signal_from_host): Remove SIGRTMIN block.
9276 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9277 the signal is within the realtime range.
9278
9279 2003-03-25 Adam Fedor <fedor@gnu.org>
9280
9281 * Makefile.in (infrun.o): Add $(language_h)
9282 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9283 for language specific trampolines.
9284 * language.h (struct language_defn): Add skip_trampoline.
9285 (skip_language_trampoline): Declare.
9286 * language.c (unk_lang_trampoline, skip_language_trampoline):
9287 New functions.
9288 (unknown_language_defn, auto_language_defn, local_language_defn):
9289 Add ukn_lang_trampoline.
9290 * ada-lang.c (ada_language_defn): Add NULL for language
9291 specific skip_trampoline.
9292 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9293 scm-lang.c: Likewise.
9294 * objc-lang.c (objc_skip_trampoline): New function.
9295 (objc_language_defn): Add objc_skip_trampoline.
9296
9297 2003-03-25 Andrew Cagney <cagney@redhat.com>
9298
9299 * frame.c (get_prev_frame): Delay validating a frame's ID -
9300 non-NULL, didn't go backwards - until an attempt to unwind it to
9301 the previous frame.
9302
9303 2003-03-25 Andrew Cagney <cagney@redhat.com>
9304
9305 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9306 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9307 * gdbarch.h, gdbarch.c: Re-generate.
9308 * config/sparc/tm-sparc.h
9309 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9310 * sparc-tdep.c (sparc_gdbarch_init): Set
9311 deprecated_extra_stack_alignment_needed.
9312 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9314 extra_stack_alignment_needed.
9315 * v850-tdep.c (v850_gdbarch_init): Ditto.
9316 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9317 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9318 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9319 * cris-tdep.c (cris_gdbarch_init): Ditto.
9320 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9321 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9322
9323 2003-03-25 Andrew Cagney <cagney@redhat.com>
9324
9325 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9326 STORE_STRUCT_RETURN.
9327 * gdbarch.h, gdbarch.c: Regenerate.
9328 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9329 (d10v_push_arguments): Set the struct return register.
9330 (d10v_gdbarch_init): Update.
9331 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9332 * x86-64-tdep.c (x86_64_init_abi): Update.
9333 * vax-tdep.c (vax_gdbarch_init): Update.
9334 * v850-tdep.c (v850_gdbarch_init): Update.
9335 * sparc-tdep.c (sparc_gdbarch_init): Update.
9336 * sh-tdep.c (sh_gdbarch_init): Update.
9337 * s390-tdep.c (s390_gdbarch_init): Update.
9338 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9339 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9340 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9341 * mips-tdep.c (mips_gdbarch_init): Update.
9342 * mcore-tdep.c (mcore_gdbarch_init): Update.
9343 * m68k-tdep.c (m68k_gdbarch_init): Update.
9344 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9345 * ia64-tdep.c (ia64_gdbarch_init): Update.
9346 * i386-tdep.c (i386_gdbarch_init): Update.
9347 * hppa-tdep.c (hppa_gdbarch_init): Update.
9348 * h8300-tdep.c (h8300_gdbarch_init): Update.
9349 * frv-tdep.c (frv_gdbarch_init): Update.
9350 * cris-tdep.c (cris_gdbarch_init): Update.
9351 * avr-tdep.c (avr_gdbarch_init): Update.
9352 * arm-tdep.c (arm_gdbarch_init): Update.
9353 * alpha-tdep.c (alpha_gdbarch_init): Update.
9354
9355 2003-03-25 Andrew Cagney <cagney@redhat.com>
9356
9357 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9358 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9359 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9360 * gdbarch.h, gdbarch.c: Regenerate.
9361 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9362 call_dummy_stack_adjust_p.
9363 * vax-tdep.c (vax_gdbarch_init): Ditto.
9364 * v850-tdep.c (v850_gdbarch_init): Ditto.
9365 * sh-tdep.c (sh_gdbarch_init): Ditto.
9366 * s390-tdep.c (s390_gdbarch_init): Ditto.
9367 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9368 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9369 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9370 * mips-tdep.c (mips_gdbarch_init): Ditto.
9371 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9372 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9374 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9375 * i386-tdep.c (i386_gdbarch_init): Ditto.
9376 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9377 * frv-tdep.c (frv_gdbarch_init): Ditto.
9378 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9379 * cris-tdep.c (cris_gdbarch_init): Ditto.
9380 * avr-tdep.c (avr_gdbarch_init): Ditto.
9381 * arm-tdep.c (arm_gdbarch_init): Ditto.
9382 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9383 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9384 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9385 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9386 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9387 call_dummy_stack_adjust_p.
9388 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9389 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9390 * sparc-tdep.c (sparc32_push_arguments): Update.
9391 * valops.c (hand_function_call): Update.
9392
9393 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9394
9395 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9396 set_gdbarch_char_signed.
9397
9398 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9399
9400 PR cli/548
9401 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9402
9403 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9404
9405 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9406 (_initialize_arm_tdep): Don't set tm_print_insn.
9407
9408 2003-03-24 Adam Fedor <fedor@gnu.org>
9409
9410 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9411 * objc-lang.h: Add multiple inclusion protection.
9412 (start_msglist, add_msglist, end_msglist): Additional declarations.
9413
9414 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9415
9416 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9417 value was renamed to ARM_FLOAT_SOFT_FPA.
9418
9419 2003-03-23 Andrew Cagney <cagney@redhat.com>
9420
9421 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9422 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9423 * gdbarch.h, gdbarch.c: Regenerate.
9424 * valops.c (hand_function_call): Update.
9425 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9426 * frame.c (legacy_saved_regs_this_id): Update.
9427 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9428 * dummy-frame.h: Update.
9429 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9430 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9431 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9432 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9433 * config/m68k/tm-sun3.h: Update.
9434 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9435 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9436 * x86-64-tdep.c (x86_64_init_abi): Update.
9437 * vax-tdep.c (vax_gdbarch_init): Update.
9438 * v850-tdep.c (v850_gdbarch_init): Update.
9439 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9440 * sh-tdep.c (sh_gdbarch_init): Update.
9441 * s390-tdep.c (s390_gdbarch_init): Update.
9442 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9443 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9444 (frame_get_saved_regs): Update.
9445 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9446 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9447 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9448 * mips-tdep.c (mips_gdbarch_init): Update.
9449 * mcore-tdep.c (mcore_gdbarch_init): Update.
9450 * m68k-tdep.c (m68k_gdbarch_init): Update.
9451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9452 * ia64-tdep.c (ia64_gdbarch_init): Update.
9453 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9454 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9455 (i386_interix_back_one_frame): Update.
9456 * hppa-tdep.c (hppa_gdbarch_init): Update.
9457 (hppa_init_extra_frame_info): Update.
9458 * h8300-tdep.c (h8300_gdbarch_init): Update.
9459 * frv-tdep.c (frv_gdbarch_init): Update.
9460 * cris-tdep.c (cris_gdbarch_init): Update.
9461 * avr-tdep.c (avr_gdbarch_init): Update.
9462 * arm-tdep.c (arm_gdbarch_init): Update.
9463 * alpha-tdep.c (alpha_gdbarch_init): Update.
9464
9465 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9466
9467 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9468 (arm_get_fp_model): Declare.
9469 * arm-tdep.c (fp_model_strings): New string array.
9470 (arm_fp_model, current_fp_model): New variables.
9471 (arm_get_fp_model): New function.
9472 (arm_set_fp): New function.
9473 (set_fp_model_sfunc): New function.
9474 (show_fp_model): New function.
9475 (_initialize_arm_tdep): Add new command to set/show the FPU.
9476 (arm_extract_return_value): Use arm_get_fp_model.
9477 (arm_store_return_value): Likewise.
9478 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9479 to initialize the floating-point data types.
9480 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9481 model is FPA.
9482
9483 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9484
9485 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9486 the current setting of each value.
9487 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9488 new_set and new_show. Use add_setshow_cmd_full and
9489 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9490 commands and add new version as subcommands of "set/show arm".
9491
9492 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9493
9494 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9495 (set_arm_command, show_arm_command): New functions.
9496 (_initialize_arm_tdep): Add them.
9497 (num_disassembly_options): Renamed from num_flavor_options.
9498 (valid_disassembly_styles): Renamed from valid_flavors.
9499 (disassembly_style): Renamed from disassembly_flavor.
9500 (set_disassembly_style_sfunc): Renamed from
9501 set_disassembly_flavor_sfunc.
9502 (set_disassembly_style): Renamed from set_disassembly_flavor.
9503 (arm_othernames): Updated.
9504 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9505 command. Add "set/show arm disassembly" commands. Deprecate
9506 "othernames" command.
9507
9508 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9509
9510 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9511 (arm-tdep.o): Depend on elf_arm_h.
9512
9513 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9514
9515 * Makefile.in (coff_internal_h): Define.
9516 (arm-tdep.o): Update dependencies.
9517
9518 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9519
9520 * arm-tdep.c (prologue_cache): Delete.
9521 (check_prologue_cache, save_prologue_cache): Delete.
9522 (arm_scan_prologue): Don't check or update the prologue_cache.
9523 (arm_gdb_arch_init): Don't initialize it.
9524 (_initialize_arm_tdep): Likewise.
9525
9526 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9527
9528 * MAINTAINERS (tui): Maintainer of tui code.
9529
9530 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9531
9532 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9533 (i386-cygwin-tdep.o): Add dependencies.
9534 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9535 * i386-cygwin-tdep.c: New file.
9536 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9537 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9538
9539 2003-03-20 Andrew Cagney <cagney@redhat.com>
9540
9541 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9542 (handle_inferior_event): Remove code calling
9543 DYNAMIC_TRAMPOLINE_NEXTPC.
9544
9545 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9546 already has a full path.
9547
9548 * main.c (gdb_main): Return 1.
9549 (captured_main): Call error to report an invalid interpreter.
9550
9551 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9552 * alpha-osf1-tdep.c: Include "gdb_string.h".
9553
9554 2003-03-19 J. Brobecker <brobecker@gnat.com>
9555
9556 Continuing work to convert the hppa targets to multiarch partial.
9557
9558 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9559 method, now that hppa_push_dummy_frame has a conformant prototype.
9560 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9561 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9562 for the switch to multiarch partial.
9563
9564 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9565
9566 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9567 when iss is issNull.
9568
9569 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9570
9571 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9572 NUM_REGS bounds check.
9573
9574 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9575
9576 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9577 * mips-tdep.c (gdb_assert.h): Include.
9578 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9579 (mips_register_name): Handle integer registers explicitly. Add
9580 bounds checking.
9581 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9582 (mips_lsi33k_reg_names): Don't list integer registers; they're
9583 handled by mips_register_name() now.
9584 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9585 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9586 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9587 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9588 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9589
9590 2003-03-18 Andrew Cagney <cagney@redhat.com>
9591
9592 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9593 a void pointer.
9594 * gdbtypes.h (print_scalar_formatted): Update declaration.
9595 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9596
9597 2003-03-18 J. Brobecker <brobecker@gnat.com>
9598
9599 * infrun.c (observer.h): Add #include.
9600 (normal_stop): Add call to observer_notify_normal_stop.
9601 * Makefile.in (infrun.o): Add dependency on observer.h.
9602
9603 2003-03-18 J. Brobecker <brobecker@gnat.com>
9604
9605 Continuing work to convert the hppa targets to multiarch partial.
9606 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9607 parameter. Reformat comment.
9608 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9609 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9610 to match new profile.
9611
9612 2003-03-18 J. Brobecker <brobecker@gnat.com>
9613
9614 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9615 appear to be working in any case.
9616
9617 2003-03-18 J. Brobecker <brobecker@gnat.com>
9618
9619 * observer.c (observer_test_first_observer): New static variable.
9620 (observer_test_second_observer): Likewise.
9621 (observer_test_third_observer): Likewise.
9622 (observer_test_first_notification_function): New static function.
9623 (observer_test_second_notification_function): Likewise.
9624 (observer_test_third_notification_function): Likewise.
9625
9626 2003-03-17 J. Brobecker <brobecker@gnat.com>
9627
9628 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9629 * somsolib.c (gdb_assert.h): Likewise.
9630 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9631 (somsolib.o): Likewise.
9632
9633 2003-03-17 Andrew Cagney <cagney@redhat.com>
9634
9635 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9636 BFD. Simplify setting of di.endian.
9637
9638 2003-03-17 Andrew Cagney <cagney@redhat.com>
9639
9640 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9641 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9642
9643 From Elena Zannoni <ezannoni@redhat.com>
9644 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9645 vector and floating-point parameters.
9646 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9647 convention.
9648 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9649
9650 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9651
9652 * MAINTAINERS: Remove my name from several maintainership roles.
9653
9654 2003-03-17 Andrew Cagney <cagney@redhat.com>
9655
9656 Fix frame off-by-one bug.
9657 * frame-unwind.h (frame_this_id_ftype): Replace
9658 frame_unwind_id_ftype.
9659 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9660 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9661 with "prev_register".
9662 * frame-unwind.c (frame_unwind_find_by_pc): Return
9663 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9664 comment.
9665 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9666 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9667 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9668 (dummy_frame_unwind): Update.
9669 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9670 sentinel_frame_register_unwind.
9671 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9672 (sentinel_frame_unwinder): Update.
9673 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9674 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9675 * frame.c (create_sentinel_frame): Update. Initialize
9676 "prologue_cache" instead of "unwind_cache".
9677 (frame_register_unwind): Call this frame's prev_register with the
9678 next frame and this frame's prologue cache.
9679 (get_prev_frame): Simplify. Always call prev frame's this_id with
9680 this frame and prev frame's prologue cache. Document that this
9681 call is shifted one to the left when compared to the
9682 frame_register_unwind call.
9683 (legacy_saved_regs_prev_register): Replace
9684 frame_saved_regs_register_unwind.
9685 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9686 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9687 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9688 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9689 (d10v_frame_unwind): Update.
9690 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9691 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9692 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9693 "saved_regs" with "this_saved_regs".
9694
9695 2003-03-16 Andrew Cagney <cagney@redhat.com>
9696
9697 * frame.c (frame_pop): Don't call target_store_registers. Fix
9698 problem reported by Mark Kettenis.
9699
9700 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9701
9702 * i386-tdep.c (i386_register_type): Renamed from
9703 i386_register_virtual_type. Adjust function signature.
9704 (i386_gdbarch_init): Set register_type instead of
9705 deprecated_max_register_raw_size,
9706 deprecated_max_register_virtual_size and register_virtual_type.
9707
9708 2003-03-14 Andrew Cagney <cagney@redhat.com>
9709
9710 * frame.c (get_prev_frame): When a legacy frame, always call
9711 legacy_get_prev_frame. Simplify unwind code using assumption that
9712 the unwinder is new.
9713 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9714 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9715 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9716
9717 2003-03-14 Andrew Cagney <cagney@redhat.com>
9718
9719 * frame.c (get_saved_register): Delete function.
9720 * frame.h (get_saved_register): Delete declaration.
9721 * xstormy16-tdep.c: Update comment.
9722 * regcache.h: Update comments.
9723 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9724 get_saved_register and extract_address, use
9725 frame_read_unsigned_register.
9726 (sparc_frame_saved_pc): Ditto.
9727 (sparc_get_saved_register): Instead of get_saved_register, use
9728 frame_register.
9729 (sparc_pop_frame): Ditto.
9730 * findvar.c: Update comments.
9731 (value_of_register): Call frame_register instead of
9732 get_saved_register.
9733 (value_from_register): Ditto.
9734 * config/sparc/tm-sparc.h: Update comment.
9735 * breakpoint.c: Update comment.
9736
9737 2003-03-14 Andrew Cagney <cagney@redhat.com>
9738
9739 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9740 GET_SAVED_REGISTER.
9741 * gdbarch.h, gdbarch.c: Re-generate.
9742 * frame.h: Update comments.
9743 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9744 * x86-64-tdep.c (x86_64_init_abi): Update.
9745 * sparc-tdep.c (sparc_gdbarch_init): Update.
9746 * sh-tdep.c (sh_gdbarch_init): Update.
9747 * mips-tdep.c (mips_gdbarch_init): Update.
9748 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9749 * cris-tdep.c (cris_gdbarch_init): Update.
9750 * ia64-tdep.c (ia64_gdbarch_init): Update.
9751 * frame.c (frame_register): Update.
9752 (get_saved_register): Update.
9753 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9754
9755 2003-03-13 Andrew Cagney <cagney@redhat.com>
9756
9757 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9758 * gdbarch.h, gdbarch.c: Regenerate.
9759 * valops.c (hand_function_call): Update comment.
9760 * stack.c (return_command): Update comment.
9761 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9762 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9763 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9764 * x86-64-tdep.c (x86_64_init_abi): Update.
9765 * vax-tdep.c (vax_gdbarch_init): Update.
9766 * v850-tdep.c (v850_gdbarch_init): Update.
9767 * sparc-tdep.c (sparc_gdbarch_init): Update.
9768 * sh-tdep.c (sh_gdbarch_init): Update.
9769 * s390-tdep.c (s390_gdbarch_init): Update.
9770 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9771 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9772 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9773 * mips-tdep.c (mips_gdbarch_init): Update.
9774 * mcore-tdep.c (mcore_gdbarch_init): Update.
9775 * m68k-tdep.c (m68k_gdbarch_init): Update.
9776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9777 * ia64-tdep.c (ia64_gdbarch_init): Update.
9778 * i386-tdep.c (i386_gdbarch_init): Update.
9779 * hppa-tdep.c (hppa_gdbarch_init): Update.
9780 * h8300-tdep.c (h8300_gdbarch_init): Update.
9781 * frv-tdep.c (frv_gdbarch_init): Update.
9782 * cris-tdep.c (cris_gdbarch_init): Update.
9783 * avr-tdep.c (avr_gdbarch_init): Update.
9784 * arm-tdep.c (arm_gdbarch_init): Update.
9785 * alpha-tdep.c (alpha_gdbarch_init): Update.
9786
9787 2003-03-13 Andrew Cagney <cagney@redhat.com>
9788
9789 * frame.c (legacy_frame_p): New function.
9790 (get_prev_frame): Use legacy_frame_p.
9791 * frame.h (legacy_frame_p): Declare.
9792
9793 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9794
9795 * MAINTAINERS (write after approval): Alphabetically
9796 listing corrected.
9797
9798 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9799
9800 * MAINTAINERS (write after approval): Add myself.
9801
9802 2003-03-12 Andrew Cagney <cagney@redhat.com>
9803
9804 * frame.c (get_prev_frame): Rename the frame parameter to
9805 "this_frame".
9806 (get_next_frame, legacy_get_prev_frame): Ditto.
9807
9808 2003-03-12 Andrew Cagney <cagney@redhat.com>
9809
9810 * frame.c (get_current_frame): Check target_has_registers before
9811 checking target_has_stack.
9812 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9813 instead of deprecated_selected_frame.
9814 * findvar.c (value_of_register): Pass "frame", not
9815 deprecated_selected_frame, to value_of_builtin_reg.
9816
9817 2003-03-12 Andrew Cagney <cagney@redhat.com>
9818
9819 * regcache.c (regcache_cooked_write_signed): New function.
9820 (regcache_cooked_write_unsigned): New function.
9821 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9822 (regcache_cooked_read_signed): Fix regnum in range assertion.
9823 * regcache.h (regcache_cooked_write_signed): Declare.
9824 (regcache_cooked_write_unsigned): Declare.
9825
9826 2003-03-12 Andrew Cagney <cagney@redhat.com>
9827
9828 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9829 * gdbarch.h, gdbarch.c: Re-generate.
9830 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9831 * x86-64-tdep.h: Update.
9832 * x86-64-tdep.c (x86_64_init_abi): Update.
9833 * v850-tdep.c (v850_gdbarch_init): Update.
9834 * sparc-tdep.c (sparc_gdbarch_init): Update.
9835 * sh-tdep.c (sh_gdbarch_init): Update.
9836 * s390-tdep.c (s390_gdbarch_init): Update.
9837 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9838 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9839 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9840 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9841 * mips-tdep.c (mips_gdbarch_init): Update.
9842 * mcore-tdep.c (mcore_gdbarch_init): Update.
9843 * m68k-tdep.c (m68k_gdbarch_init): Update.
9844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9845 * ia64-tdep.c (ia64_gdbarch_init): Update.
9846 * i386-tdep.c (i386_gdbarch_init): Update.
9847 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9848 * hppa-tdep.c (hppa_gdbarch_init): Update.
9849 * h8300-tdep.c (h8300_gdbarch_init): Update.
9850 * frv-tdep.c (frv_gdbarch_init): Update.
9851 * cris-tdep.c (cris_gdbarch_init): Update.
9852 * avr-tdep.c (avr_gdbarch_init): Update.
9853 * arm-tdep.c (arm_gdbarch_init): Update.
9854 * alpha-tdep.c (alpha_gdbarch_init): Update.
9855 * sh-tdep.c (sh_init_extra_frame_info): Update.
9856 (sh64_init_extra_frame_info): Update.
9857 * ns32knbsd-nat.c (frame_num_args): Update.
9858 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9859 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9860 (xstormy16_frame_chain_valid): Update.
9861 * vax-tdep.c (vax_saved_pc_after_call): Update.
9862 * v850-tdep.c (v850_frame_chain): Update.
9863 (v850_pop_frame): Update.
9864 (v850_init_extra_frame_info): Update.
9865 * sparc-tdep.c (setup_arbitrary_frame): Update.
9866 * ns32k-tdep.c (umax_frame_num_args): Update.
9867 * s390-tdep.c (s390_pop_frame_regular): Update.
9868 * mn10300-tdep.c (mn10300_frame_chain): Update.
9869 (mn10300_pop_frame_regular): Update.
9870 (mn10300_init_extra_frame_info): Update.
9871 * mips-tdep.c (mips_init_frame_pc_first): Update.
9872 (mips_frame_chain): Update.
9873 (mips_pop_frame): Update.
9874 * mcore-tdep.c (mcore_frame_chain): Update.
9875 (mcore_pop_frame): Update.
9876 (mcore_init_extra_frame_info): Update.
9877 * arch-utils.c (init_frame_pc_default): Update.
9878 * m68k-tdep.c (isi_frame_num_args): Update.
9879 (delta68_frame_num_args): Update.
9880 (news_frame_num_args): Update.
9881 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9882 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9883 (alpha_frame_chain): Update.
9884 (alpha_pop_frame): Update.
9885 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9886 (hppa_init_extra_frame_info): Update.
9887 (hppa_frame_chain): Update.
9888 (hppa_frame_chain_valid): Update.
9889 * cris-tdep.c (cris_init_extra_frame_info): Update.
9890 * avr-tdep.c (avr_init_extra_frame_info): Update.
9891 * arm-tdep.c (arm_frame_chain_valid): Update.
9892 (arm_init_extra_frame_info): Update.
9893 (arm_pop_frame): Update.
9894 * frame.c (frame_pc_unwind): Update.
9895 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9896 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9897 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9898 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9899 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9900 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9901
9902 2003-03-12 Andrew Cagney <cagney@redhat.com>
9903
9904 Eliminate the need for POP_FRAME.
9905 * frame.c (do_frame_unwind_register): New function.
9906 (frame_pop): When no POP_FRAME, pop the frame using register
9907 unwind and a scratch regcache.
9908 (frame_saved_regs_pop): Delete function.
9909 (trad_frame_unwinder): Update.
9910 * d10v-tdep.c (d10v_frame_pop): Delete function.
9911 (d10v_frame_unwind): Update.
9912 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9913 (sentinel_frame_unwinder): Update.
9914 * dummy-frame.c (dummy_frame_pop): Delete function.
9915 (dummy_frame_unwind): Update.
9916 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9917 (struct frame_unwind): Update.
9918
9919 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9920
9921 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9922 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9923 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9924 Do range checks on register number obtained from debugging info.
9925 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9926 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9927 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9928 mapping function.
9929 (do_fp_register_row): Fix typo which caused double type to be
9930 used when attempting to unpack a float.
9931
9932 2003-03-11 J. Brobecker <brobecker@gnat.com>
9933
9934 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9935
9936 2003-03-11 Andrew Cagney <cagney@redhat.com>
9937
9938 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9939 frame. Problem found by Corinna Vinschen.
9940
9941 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9942
9943 * doublest.c (floatformat_from_length): Accept also
9944 the real size of 'long double' type.
9945
9946 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9947
9948 From Klee Dienes <kdienes@apple.com>:
9949 * breakpoint.c (bpstat_copy): Copy the command lines as well
9950 as the old value, to match what is freed in bpstat_clear.
9951
9952 2003-03-10 David Carlton <carlton@math.stanford.edu>
9953
9954 * minsyms.c (add_minsym_to_hash_table): Replace
9955 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9956 (compare_minimal_symbols, compact_minimal_symbols)
9957 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9958 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9959 of DEPRECATED_SYMBOL_MATCHES_NAME.
9960 (lookup_minimal_symbol_solib_trampoline): Ditto.
9961
9962 2003-03-10 Andrew Cagney <cagney@redhat.com>
9963
9964 * regcache.h (regcache_cooked_read_ftype): Define.
9965 (regcache_save, regcache_restore): Add a cooked_read parameter.
9966 * regcache.c (regcache_save, regcache_restore): Update.
9967 (do_cooked_read): New function.
9968 (regcache_cpy): Pass do_cooked_read to regcache_save and
9969 regcache_restore.
9970
9971 2003-03-10 Andrew Cagney <cagney@redhat.com>
9972
9973 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9974 * gdbarch.h, gdbarch.c: Re-generate.
9975 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9976 * x86-64-tdep.h: Update.
9977 * x86-64-tdep.c (x86_64_init_abi): Update.
9978 * v850-tdep.c (v850_gdbarch_init): Update.
9979 * sparc-tdep.c (sparc_gdbarch_init): Update.
9980 * sh-tdep.c (sh_gdbarch_init): Update.
9981 * s390-tdep.c (s390_gdbarch_init): Update.
9982 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9983 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9984 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9985 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9986 * mips-tdep.c (mips_gdbarch_init): Update.
9987 * mcore-tdep.c (mcore_gdbarch_init): Update.
9988 * m68k-tdep.c (m68k_gdbarch_init): Update.
9989 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9990 * ia64-tdep.c (ia64_gdbarch_init): Update.
9991 * i386-tdep.c (i386_gdbarch_init): Update.
9992 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9993 * hppa-tdep.c (hppa_gdbarch_init): Update.
9994 * h8300-tdep.c (h8300_gdbarch_init): Update.
9995 * frv-tdep.c (frv_gdbarch_init): Update.
9996 * cris-tdep.c (cris_gdbarch_init): Update.
9997 * avr-tdep.c (avr_gdbarch_init): Update.
9998 * arm-tdep.c (arm_gdbarch_init): Update.
9999 * alpha-tdep.c (alpha_gdbarch_init): Update.
10000 * sh-tdep.c (sh_init_extra_frame_info): Update.
10001 (sh64_init_extra_frame_info): Update.
10002 * ns32knbsd-nat.c (frame_num_args): Update.
10003 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10004 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10005 (xstormy16_frame_chain_valid): Update.
10006 * vax-tdep.c (vax_saved_pc_after_call): Update.
10007 * v850-tdep.c (v850_frame_chain): Update.
10008 (v850_pop_frame): Update.
10009 (v850_init_extra_frame_info): Update.
10010 * sparc-tdep.c (setup_arbitrary_frame): Update.
10011 * ns32k-tdep.c (umax_frame_num_args): Update.
10012 * s390-tdep.c (s390_pop_frame_regular): Update.
10013 * mn10300-tdep.c (mn10300_frame_chain): Update.
10014 (mn10300_pop_frame_regular): Update.
10015 (mn10300_init_extra_frame_info): Update.
10016 * mips-tdep.c (mips_init_frame_pc_first): Update.
10017 (mips_frame_chain): Update.
10018 (mips_pop_frame): Update.
10019 * mcore-tdep.c (mcore_frame_chain): Update.
10020 (mcore_pop_frame): Update.
10021 (mcore_init_extra_frame_info): Update.
10022 * arch-utils.c (init_frame_pc_default): Update.
10023 * m68k-tdep.c (isi_frame_num_args): Update.
10024 (delta68_frame_num_args): Update.
10025 (news_frame_num_args): Update.
10026 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10027 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10028 (alpha_frame_chain): Update.
10029 (alpha_pop_frame): Update.
10030 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10031 (hppa_init_extra_frame_info): Update.
10032 (hppa_frame_chain): Update.
10033 (hppa_frame_chain_valid): Update.
10034 * cris-tdep.c (cris_init_extra_frame_info): Update.
10035 * avr-tdep.c (avr_init_extra_frame_info): Update.
10036 * arm-tdep.c (arm_frame_chain_valid): Update.
10037 (arm_init_extra_frame_info): Update.
10038 (arm_pop_frame): Update.
10039 * frame.c (frame_pc_unwind): Update.
10040 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10041 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10042 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10043 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10044 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10045 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10046
10047 2003-03-10 Andrew Cagney <cagney@redhat.com>
10048
10049 * gdbarch.sh (gdbarch_unwind_pc): New method.
10050 * gdbarch.h, gdbarch.c: Regenerate.
10051 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10052 but use read_pc and FRAME_SAVED_PC as fall backs.
10053 (frame_saved_regs_pc_unwind): Delete function.
10054 (trad_frame_unwinder): Update.
10055 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10056 (struct frame_unwind): Update.
10057 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10058 (dummy_frame_unwind): Update.
10059 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10060 (sentinel_frame_unwinder): Update.
10061 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10062 (d10v_frame_unwind): Update.
10063 (d10v_unwind_pc): New function.
10064 (d10v_gdbarch_init): Set unwind_pc.
10065
10066 2003-03-10 Andrew Cagney <cagney@redhat.com>
10067
10068 * gdbarch.h: Re-generate.
10069
10070 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10071 PC.
10072 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10073 the PC register.
10074
10075 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10076
10077 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10078
10079 2003-03-08 Andrew Cagney <cagney@redhat.com>
10080
10081 * cli-out.c: Update copyright.
10082 (cli_out_data): Define typedef. Use instead of ui_out_data.
10083
10084 2003-03-08 Andrew Cagney <cagney@redhat.com>
10085
10086 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10087 the result.
10088
10089 2003-03-07 Andrew Cagney <cagney@redhat.com>
10090
10091 * gdbarch.sh: Don't generate two macro definitions when an
10092 undefined macro taking no arguments.
10093 * gdbarch.h: Regenerate.
10094
10095 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10096
10097 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10098 (x86_64_unwind_dummy_id): New functions.
10099 (x86_64_init_abi): Register these two new functions.
10100
10101 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10102
10103 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10104 (x86_64_skip_prologue): Move prologue detection to
10105 separate function.
10106 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10107
10108 2003-03-05 Andrew Cagney <cagney@redhat.com>
10109
10110 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10111 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10112 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10113 to use unwind_dummy_id when a dummy frame.
10114 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10115 predicate.
10116 * gdbarch.h, gdbarch.c: Regneerate.
10117
10118 2003-03-05 Andrew Cagney <cagney@redhat.com>
10119
10120 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10121 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10122 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10123 values.
10124
10125 2003-03-05 Andrew Cagney <cagney@redhat.com>
10126
10127 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10128 (struct d10v_unwind_cache): Delete field "frameless". Replace
10129 "next_addr" with "sp_offset". Add "r11_offset".
10130 (d10v_frame_unwind_cache): Update.
10131 (prologue_find_regs): Update. When "mv r11, sp", save the
10132 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10133 RN was saved in r11_offset.
10134
10135 2003-03-05 Andrew Cagney <cagney@redhat.com>
10136
10137 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10138 cached PC value in the next frame.
10139
10140 2003-03-05 Andrew Cagney <cagney@redhat.com>
10141
10142 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10143 "id_unwind_cache" with "id".
10144 (frame_id_unwind): Delete declaration.
10145 * frame.c (frame_id_unwind): Delete function.
10146 (get_prev_frame): Call the frame id unwind method directly. Store
10147 the returned next frame's ID value in NEXT_FRAME. Note that there
10148 is a problem with the wrong unwind ID being called with the wrong
10149 unwind cache.
10150
10151 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10152
10153 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10154
10155 2003-03-05 James Ingham <jingham@apple.com>
10156 Daniel Jacobowitz <drow@mvista.com>
10157
10158 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10159 (auto_cp_abi): New variable.
10160 (current_cp_abi, num_cp_abis): Make static.
10161 (CP_ABI_MAX): Define.
10162 (cp_abis): Turn into an array.
10163 (value_virtual_fn_field): Fix formatting.
10164 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10165 takes a pointer.
10166 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10167 (list_cp_abis, _initialize_cp_abi): New functions.
10168 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10169 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10170 switch_to_cp_abi. Update prototype for register_cp_abi.
10171 * Makefile.in (cp-abi.o): Update dependencies.
10172 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10173 instead of switch_to_cp_abi.
10174 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10175 register_cp_abi.
10176 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10177 register_cp_abi.
10178 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10179
10180 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10181
10182 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10183 * dwarf2loc.c: Include "regcache.h".
10184 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10185 register_size.
10186 * Makefile.in (dwarf2loc.o): Update dependencies.
10187
10188 2003-03-04 Theodore A. Roth <troth@openavr.org>
10189
10190 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10191 number of io registers reported by remote target is not a multiple of
10192 step.
10193
10194 2003-03-04 David Carlton <carlton@math.stanford.edu>
10195
10196 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10197 (lookup_symbol_aux_psymtabs): Update call to
10198 lookup_partial_symbol.
10199 (lookup_transparent_type, find_main_psymtab)
10200 (make_symbol_overload_list): Ditto.
10201
10202 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10203
10204 * MAINTAINERS (Write after approval): Update my email address.
10205
10206 2003-03-03 Andrew Cagney <cagney@redhat.com>
10207
10208 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10209 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10210 predicate. Replace MAX_REGISTER_RAW_SIZE.
10211 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10212 MAX_REGISTER_VIRTUAL_SIZE.
10213 * regcache.c (legacy_max_register_raw_size): New function.
10214 (legacy_max_register_virtual_size): New function.
10215 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10216 (MAX_REGISTER_RAW_SIZE): Define.
10217 (legacy_max_register_raw_size): Declare.
10218 (legacy_max_register_virtual_size): Declare.
10219 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10220 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10221 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10222 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10223 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10224 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10225 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10226 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10227 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10229 * vax-tdep.c (vax_gdbarch_init): Update.
10230 * v850-tdep.c (v850_gdbarch_init): Update.
10231 * sparc-tdep.c (sparc_gdbarch_init): Update.
10232 * sh-tdep.c (sh_gdbarch_init): Update.
10233 * s390-tdep.c (s390_gdbarch_init): Update.
10234 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10235 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10236 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10237 * mips-tdep.c (mips_gdbarch_init): Update.
10238 * mcore-tdep.c (mcore_gdbarch_init): Update.
10239 * m68k-tdep.c (m68k_gdbarch_init): Update.
10240 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10241 * ia64-tdep.c (ia64_gdbarch_init): Update.
10242 * i386-tdep.c (i386_gdbarch_init): Update.
10243 * hppa-tdep.c (hppa_gdbarch_init): Update.
10244 * h8300-tdep.c (h8300_gdbarch_init): Update.
10245 * frv-tdep.c (frv_gdbarch_init): Update.
10246 * cris-tdep.c (cris_gdbarch_init): Update.
10247 * avr-tdep.c (avr_gdbarch_init): Update.
10248 * arm-tdep.c (arm_gdbarch_init): Update.
10249 * alpha-tdep.c (alpha_gdbarch_init): Update.
10250 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10251 max_register_raw_size or max_register_virtual_size.
10252
10253 2003-03-03 David Carlton <carlton@math.stanford.edu>
10254
10255 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10256 SYMBOL_MATCHES_NAME, add comment.
10257 (SYMBOL_MATCHES_NATURAL_NAME): New.
10258 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10259 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10260 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10261 * symtab.c (lookup_partial_symbol): Use
10262 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10263 unhelpful comment.
10264 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10265 SYMBOL_MATCHES_NAME.
10266 Fix for PR c++/33.
10267
10268 2003-03-03 David Carlton <carlton@math.stanford.edu>
10269
10270 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10271 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10272 by regexp matching against SYMBOL_NATURAL_NAME.
10273
10274 2003-03-03 David Carlton <carlton@math.stanford.edu>
10275
10276 * linespec.c (find_method): Extract code into collect_methods.
10277 (collect_methods): New.
10278
10279 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10280
10281 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10282 get_frame_base.
10283
10284 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10285 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10286
10287 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10288
10289 * arch-utils.c (generic_register_byte): Fix to use the loop index
10290 and not regnum when summing the size of all registers up to regnum.
10291
10292 2003-03-01 Andrew Cagney <cagney@redhat.com>
10293
10294 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10295 FRAME_INIT_SAVED_REGS.
10296 * gdbarch.h, gdbarch.c: Regenerate.
10297 * stack.c (frame_info): Update.
10298 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10299 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10300 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10301 * ns32k-tdep.c (ns32k_pop_frame): Update.
10302 * mips-tdep.c (mips_pop_frame): Update.
10303 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10304 * ia64-tdep.c (ia64_frame_chain): Update.
10305 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10306 (ia64_frameless_function_invocation): Update.
10307 (ia64_init_extra_frame_info): Update.
10308 (ia64_pop_frame_regular): Update.
10309 * frame.h (struct frame_info): Update comment.
10310 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10311 * frame.c (frame_saved_regs_register_unwind): Update.
10312 (frame_saved_regs_register_unwind): Update.
10313 (deprecated_generic_get_saved_register): Update.
10314 * cris-tdep.c: Update comment.
10315 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10316 Rename macro.
10317 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10318 * x86-64-tdep.c (x86_64_init_abi): Update.
10319 * vax-tdep.c (vax_gdbarch_init): Update.
10320 * v850-tdep.c (v850_gdbarch_init): Update.
10321 * sparc-tdep.c (sparc_gdbarch_init): Update.
10322 * sh-tdep.c (sh_gdbarch_init): Update.
10323 * s390-tdep.c (s390_gdbarch_init): Update.
10324 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10325 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10326 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10327 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10328 * mips-tdep.c (mips_gdbarch_init): Update.
10329 * mcore-tdep.c (mcore_gdbarch_init): Update.
10330 * m68k-tdep.c (m68k_gdbarch_init): Update.
10331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10332 * ia64-tdep.c (ia64_gdbarch_init): Update.
10333 * i386-tdep.c (i386_gdbarch_init): Update.
10334 * frv-tdep.c (frv_gdbarch_init): Update.
10335 * avr-tdep.c (avr_gdbarch_init): Update.
10336 * arm-tdep.c (arm_gdbarch_init): Update.
10337 * alpha-tdep.c (alpha_gdbarch_init): Update.
10338
10339 2003-03-01 Andrew Cagney <cagney@redhat.com>
10340
10341 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10342 option enum and switch. When no windows, set the interpreter to
10343 INTERP_CONSOLE.
10344
10345 2003-03-01 Andrew Cagney <cagney@redhat.com>
10346
10347 * main.c (captured_main): Replace magic option characters with an
10348 enum.
10349
10350 2003-03-01 Andrew Cagney <cagney@redhat.com>
10351
10352 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10353 INIT_EXTRA_FRAME_INFO.
10354 * gdbarch.h, gdbarch.c: Regenerate.
10355 * arm-tdep.c: Update comments.
10356 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10357 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10358 * frame.h, avr-tdep.c: Ditto.
10359 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10360 (create_new_frame, legacy_get_prev_frame): Ditto.
10361 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10362 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10363 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10364 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10365 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10366 * v850-tdep.c (v850_gdbarch_init): Ditto.
10367 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10368 * sh-tdep.c (sh_gdbarch_init): Ditto.
10369 * s390-tdep.c (s390_gdbarch_init): Ditto.
10370 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10371 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10372 * mips-tdep.c (mips_gdbarch_init): Ditto.
10373 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10374 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10375 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10376 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10377 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10378 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10379 * frv-tdep.c (frv_gdbarch_init): Ditto.
10380 * cris-tdep.c (cris_gdbarch_init): Ditto.
10381 * avr-tdep.c (avr_gdbarch_init): Ditto.
10382 * arm-tdep.c (arm_gdbarch_init): Ditto.
10383 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10384 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10385
10386 2003-03-01 Andrew Cagney <cagney@redhat.com>
10387
10388 * gdbarch.sh (register_type): New function with predicate.
10389 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10390 * gdbarch.h, gdbarch.c: Re-generate.
10391 * arch-utils.c (generic_register_byte): Use generic_register_size.
10392 (generic_register_size): When available, use
10393 gdbarch_register_type.
10394 * regcache.c (init_regcache_descr): When available, initialize the
10395 register type array using gdbarch_register_type. If the
10396 architecture supplies gdbarch_register_type, do not use the legacy
10397 regcache layout.
10398 * d10v-tdep.c (d10v_register_type): Replace
10399 d10v_register_virtual_type.
10400 (d10v_gdbarch_init): Set register_type instead of
10401 register_virtual_type.
10402
10403 2003-03-01 Andrew Cagney <cagney@redhat.com>
10404
10405 * Makefile.in (ax-gdb.o): Update dependencies.
10406 * ax-gdb.c: Include "regcache.h".
10407 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10408 * findvar.c (value_of_register): Ditto.
10409 * infcmd.c (default_print_registers_info): Ditto.
10410
10411 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10412
10413 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10414 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10415
10416 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10417
10418 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10419 of STREQ.
10420
10421 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10422
10423 * Makefile.in (dwarf2loc.o): Update dependencies.
10424 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10425 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10426 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10427 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10428 (locexpr_tracepoint_var_ref): New function.
10429 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10430
10431 2003-02-28 Andrew Cagney <cagney@redhat.com>
10432
10433 * regcache.c (register_size): New function.
10434 * regcache.h (register_size): Declare
10435 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10436 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10437
10438 2003-02-28 David Carlton <carlton@math.stanford.edu>
10439
10440 * linespec.c (decode_compound): Extract code into find_method.
10441 (find_method): New.
10442
10443 2003-02-28 J. Brobecker <brobecker@gnat.com>
10444
10445 * Makefile.in: Add rules to build and link in observer.o.
10446
10447 2003-02-27 J. Brobecker <brobecker@gnat.com>
10448
10449 * observer.c: Minor comments edits.
10450
10451 2003-02-27 J. Brobecker <brobecker@gnat.com>
10452
10453 * observer.h, observer.c: New file.
10454
10455 2003-02-27 Andrew Cagney <cagney@redhat.com>
10456
10457 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10458
10459 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10460
10461 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10462 (M6812_OP_STS_EXT): Likewise.
10463 (m6811_prologue): Use the above to recognize prologue.
10464 (m6812_prologue): Likewise.
10465
10466 2003-02-27 David Carlton <carlton@math.stanford.edu>
10467
10468 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10469 SYMBOL_PRINT_NAME.
10470 (compare_psymbols): Ditto.
10471 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10472
10473 2003-02-27 Michael Snyder <msnyder@redhat.com>
10474
10475 * f-lang.c (build_fortran_types): New function.
10476 (_initialize_f_language): Gdbarch-register built-in fortran types.
10477 * doublest.c (extract_floating): Fix warning text.
10478
10479 2003-02-27 Andrew Cagney <cagney@redhat.com>
10480
10481 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10482 predicate. Replaces PUSH_DUMMY_FRAME.
10483 * gdbarch.h, gdbarch.c: Regnerate.
10484 * valops.c (hand_function_call): Update. Call
10485 generic_push_dummy_frame directly.
10486 * vax-tdep.c (vax_gdbarch_init): Update.
10487 * sparc-tdep.c (sparc_gdbarch_init): Update.
10488 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10489 * m68k-tdep.c (m68k_gdbarch_init): Update.
10490 * hppa-tdep.c (hppa_gdbarch_init): Update.
10491 * alpha-tdep.c (alpha_gdbarch_init): Update.
10492 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10493 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10494 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10496 push_dummy_frame to generic_push_dummy_frame.
10497 * v850-tdep.c (v850_gdbarch_init): Ditto.
10498 * sh-tdep.c (sh_gdbarch_init): Ditto.
10499 * s390-tdep.c (s390_gdbarch_init): Ditto.
10500 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10501 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10502 * mips-tdep.c (mips_gdbarch_init): Ditto.
10503 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10505 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10506 * i386-tdep.c (i386_gdbarch_init): Ditto.
10507 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10508 * frv-tdep.c (frv_gdbarch_init): Ditto.
10509 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10510 * cris-tdep.c (cris_gdbarch_init): Ditto.
10511 * avr-tdep.c (avr_gdbarch_init): Ditto.
10512 * arm-tdep.c (arm_gdbarch_init): Ditto.
10513
10514 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10515
10516 * mips-tdep.c (show_mips_abi): New function.
10517 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10518 command ``show mips abi''.
10519
10520 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10521
10522 From Elena Zannoni <ezannoni@redhat.com>
10523 * dbxread.c (process_one_symbol): Only record line 0 if one or
10524 more sline entries have been seen for the function.
10525
10526 2003-02-26 Michael Chastain <mec@shout.net>
10527
10528 * configure: Regenerate with autoconf 000227.
10529
10530 2003-02-26 Michael Chastain <mec@shout.net>
10531
10532 Close PR build/660.
10533 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10534 for old libc5/glibc.
10535 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10536
10537 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10538
10539 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10540 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10541
10542 2003-02-26 Michael Chastain <mec@shout.net>
10543
10544 * configure.in: New variable HAVE_UINTPTR_T.
10545 * configure, config.in: Regenerated.
10546
10547 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10548
10549 Fix PR build/1097.
10550 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10551
10552 2003-02-25 Andrew Cagney <cagney@redhat.com>
10553
10554 * frame.c (get_prev_frame): Add comment on check for
10555 inside_entry_func. Only check for inside_entry_file when not a
10556 dummy and not a sentinel. Check that the new frame is not inner
10557 to the old frame.
10558
10559 2003-02-25 Andrew Cagney <cagney@redhat.com>
10560
10561 * frame.c (frame_debug): New variable.
10562 (_initialize_frame): Add "set/show debug frame" command.
10563 (get_prev_frame): When frame_debug, print reason why unwind
10564 failed.
10565
10566 2003-02-25 Michael Chastain <mec@shout.net>
10567
10568 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10569 to avoid uintptr_t definition problems.
10570
10571 2003-02-25 David Carlton <carlton@math.stanford.edu>
10572
10573 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10574 (SYMBOL_LINKAGE_NAME): Ditto.
10575 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10576 SYMBOL_LINKAGE_NAME.
10577 (struct general_symbol_info): Expand comment.
10578 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10579 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10580 (SYMBOL_MATCHES_REGEXP): Ditto.
10581 * symtab.c (symbol_natural_name): New function.
10582 * objfiles.h: Replace all uses of SYMBOL_NAME by
10583 DEPRECATED_SYMBOL_NAME.
10584 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10585 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10586 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10587 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10588 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10589 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10590 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10591 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10592 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10593 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10594 * ada-exp.y: Ditto.
10595 * ada-exp.y: Update copyright.
10596 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10597 * cp-valprint.c: Ditto.
10598
10599 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10600
10601 * infptrace.c (detach): Do not flag error if ptrace detach fails
10602 and errno is set to ESRCH.
10603
10604 2003-02-24 Andrew Cagney <cagney@redhat.com>
10605
10606 * infptrace.c (udot_info): Change type of udot_off to long. Use
10607 paddr when printing udot_off's value.
10608
10609 2003-02-24 David Carlton <carlton@math.stanford.edu>
10610
10611 * symtab.c (make_symbol_overload_list): Only read in partial
10612 symtabs containing a matching partial symbol.
10613
10614 2003-02-24 David Carlton <carlton@math.stanford.edu>
10615
10616 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10617 do the comparison, not strcmp.
10618 * symfile.c (compare_psymbols): Ditto.
10619 * defs.h: Declare strcmp_iw_ordered.
10620 * utils.c (strcmp_iw_ordered): New function.
10621
10622 2003-02-24 Jim Blandy <jimb@redhat.com>
10623
10624 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10625 support, shared libs): Remove my name from here, to better reflect
10626 reality.
10627
10628 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10629
10630 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10631 (target_ops): Add to_have_continuable_watchpoint.
10632 * target.c (update_current_target): Add INHERIT line for
10633 to_have_continuable_watchpoint.
10634 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10635 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10636 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10637 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10638
10639 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10640
10641 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10642 maintainership.
10643
10644 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10645
10646 * solib.c (solib_open): Call target defined search function after
10647 failing with solib-search-path.
10648 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10649 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10650
10651 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10652
10653 * MAINTAINERS: Add myself to Write After section.
10654
10655 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10656
10657 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10658
10659 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10660
10661 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10662 (m68hc11_add_reggroups): New function.
10663 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10664 (m68hc11_gdbarch_init): Install the reggroups.
10665 (_initialize_m68hc11_tdep): Initialize them.
10666
10667 2003-02-21 James E Wilson <wilson@tuliptree.org>
10668
10669 * MAINTAINERS: Update my email address.
10670
10671 2003-02-21 David Carlton <carlton@math.stanford.edu>
10672
10673 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10674
10675 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10676
10677 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10678 * symtab.h: Add opaque declarations of struct axs_value and
10679 struct agent_expr.
10680 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10681 (struct location_funcs): New type.
10682 (struct symbol): Add "loc" to aux_value.
10683 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10684 * dwarf2read.c: Include "dwarf2expr.h".
10685 (dwarf2_symbol_mark_computed): New function.
10686 (read_func_scope): Use it.
10687 (var_decode_location): New function.
10688 (new_symbol): Use it.
10689 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10690
10691 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10692 (dwarf2expr_h, dwarf2loc_h): New variables.
10693 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10694 (dwarf2expr.o, dwarf2loc.o): New rules.
10695 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10696 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10697 LOC_COMPUTED_ARG.
10698 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10699 * m2-exp.y (yylex): Likewise.
10700 * printcmd.c (address_info, print_frame_args): Likewise.
10701 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10702 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10703 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10704 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10705 * symtab.c (lookup_block_symbol): Likewise.
10706
10707 2003-02-20 Adam Fedor <fedor@gnu.org>
10708
10709 * symtab.h: Remove objc_specific struct
10710 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10711 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10712 Have language_objc use cplus_specific struct.
10713
10714 2003-02-20 Tom Tromey <tromey@redhat.com>
10715
10716 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10717 TYPE_NAME, when printing a String value. PR java/1075.
10718
10719 2003-02-20 Adam Fedor <fedor@gnu.org>
10720
10721 * objc-lang.h (find_methods): Remove declaration.
10722 * objc-lang.c (find_methods): Make static.
10723
10724 2003-02-20 Christopher Faylor <cgf@redhat.com>
10725
10726 * win32-nat.c (get_image_name): Check return value from
10727 ReadProcessMemory.
10728 (child_xfer_memory): Ditto.
10729
10730 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10731
10732 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10733 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10734 '${exec_prefix}' (in addition to the expansion thereof) as
10735 relocatable.
10736 * configure: Rebuilt.
10737
10738 2003-02-20 David Carlton <carlton@math.stanford.edu>
10739
10740 * symtab.c (search_symbols): Revert the search_symbols part of my
10741 2002-12-23 patch. Add comment.
10742
10743 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10744
10745 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10746 * dbxread.c (elfstab_build_psymtabs): Don't call
10747 install_minimal_symbols.
10748 (stabsect_build_psymtabs): Likewise.
10749 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10750 earlier.
10751 * somread.c (som_symfile_read): Call install_minimal_symbols
10752 and do_cleanups earlier.
10753 * nlmread.c (nlm_symfile_read): Likewise.
10754 * mdebugread.c (elfmdebug_build_psymtabs): Call
10755 install_minimal_symbols and make appropriate cleanups.
10756
10757 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10758
10759 * solib.c (reload_shared_libraries): New function.
10760 (_initialize_solib): Add callbacks for ``set solib-search-path''
10761 and ``set solib-absolute-prefix''.
10762
10763 2003-02-20 David Carlton <carlton@math.stanford.edu>
10764
10765 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10766 expand comment.
10767 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10768 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10769 * ada-typeprint.c (ada_typedef_print): Ditto.
10770 * ax-gdb.c (gen_var_ref): Ditto.
10771 * breakpoint.c (print_one_breakpoint): Ditto.
10772 * buildsym.c (finish_block): Ditto.
10773 * c-valprint.c (c_val_print): Ditto.
10774 * expprint.c (print_subexp): Ditto.
10775 * findvar.c (locate_var_value): Ditto.
10776 * infcmd.c (jump_command): Ditto.
10777 * linespec.c (decode_line_2, decode_compound): Ditto.
10778 * maint.c (maintenance_translate_address): Ditto.
10779 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10780 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10781 Ditto.
10782 * p-valprint.c (pascal_val_print): Ditto.
10783 * stabsread.c (define_symbol): Ditto.
10784 * stack.c (print_frame, frame_info, print_block_frame_locals)
10785 (print_frame_arg_vars, return_command): Ditto.
10786 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10787 * symmisc.c (print_symbol): Ditto.
10788 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10789 (compare_search_syms, print_symbol_info, print_msymbol_info)
10790 (rbreak_command): Ditto.
10791 * tracepoint.c (tracepoints_info): Ditto.
10792 * typeprint.c (typedef_print): Ditto.
10793 * valops.c (value_of_variable, hand_function_call): Ditto.
10794 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10795 * ada-typeprint.c: Update Copyright.
10796 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10797 * tracepoint.c, cli/cli-cmds.c: Ditto.
10798
10799 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10800
10801 * frame.c (generic_unwind_get_saved_register): Make non-static.
10802 * frame.h (generic_unwind_get_saved_register): Declare.
10803 * mips-tdep.c (read_next_frame_reg): Fetch register from
10804 current regcache when frame is NULL.
10805 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10806 that must be NULL.
10807 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10808 instead of frame_register_unwind().
10809
10810 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10811
10812 * remote-sim.c (gdbsim_insert_breakpoint)
10813 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10814 code.
10815
10816 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10817
10818 * remote.c (_initialize_remote): Add commands "set/show remote
10819 hardware-watchpoint-limit" and "set/show remote
10820 hardware-breakpoint-limit".
10821 (remote_hw_watchpoint_limit): Initialize to -1.
10822 (remote_hw_breakpoint_limit): Ditto.
10823 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10824
10825 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10826
10827 * coff-pe-read.c: New file - support reading of minimal symbols from a
10828 portable executable using the export table.
10829 * coff-pe-read.h: New file.
10830 * coffread.c: Include coff-pe-read.h.
10831 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10832 debugging symbols found.
10833 * Makefile.in (SFILES): Add coff-pe-read.o.
10834 (coff_pe_read_h): Define.
10835 (COMMON_OBS): Add coff-pe-read.o.
10836 (coffread.o): Add coff_pe_read_h dependency.
10837 (coff-pe-read.o): New target.
10838
10839 2003-02-19 David Carlton <carlton@math.stanford.edu>
10840
10841 * Makefile.in (SFILES): Add block.c.
10842 (block_h): New.
10843 (COMMON_OBS): Add block.o.
10844 (block.o): New.
10845 (x86-64-tdep.o): Add $(block_h).
10846 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10847 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10848 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10849 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10850 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10851 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10852 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10853 * value.h: Add opaque declaration for struct block.
10854 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10855 * ada-lang.h: Ditto.
10856 * x86-64-tdep.c: #include "block.h"
10857 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10858 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10859 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10860 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10861 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10862 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10863 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10864 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10865 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10866 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10867 * symtab.c (block_function): Ditto.
10868 (contained_in): Ditto.
10869 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
10870 block.h. Add opaque declaration for struct block.
10871 * symtab.h: Move block_function and contained_in declarations to
10872 block.h. Add opaque declarations for struct block, struct
10873 blockvector.
10874 (struct block): Move to block.h.
10875 (struct blockvector): Ditto.
10876 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
10877 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
10878 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
10879 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
10880 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
10881 Ditto.
10882 * block.c: New file.
10883 * block.h: New file.
10884
10885 2003-02-19 Theodore A. Roth <troth@openavr.org>
10886
10887 * avr-tdep.c (avr_extract_return_value): Remove function.
10888 (avr_store_return_value): Remove function.
10889 (avr_extract_struct_value_address): Remove function.
10890 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
10891
10892 2003-02-19 Andrew Cagney <ac131313@redhat.com>
10893
10894 * rs6000-tdep.c: Include "gdb_assert.h".
10895 (registers_e500): Add "acc" and "spefscr".
10896 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
10897 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
10898 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
10899 really is "r0".
10900 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
10901
10902 2003-02-18 Keith Seitz <keiths@redhat.com>
10903
10904 * Makefile.in: Add gdbtk-interps.c.
10905
10906 2003-02-18 Kevin Buettner <kevinb@redhat.com>
10907
10908 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
10909 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
10910
10911 2003-02-18 Andrew Cagney <cagney@redhat.com>
10912
10913 * symtab.h (struct objfile): Add opaque declaration.
10914
10915 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10916
10917 From Jim Ingham <jingham@apple.com>:
10918 * dbxread.c (process_one_symbol): Use last_function_start rather
10919 than function_start_offset to find the real beginning of the
10920 current function. The latter is just the text section offset on
10921 some systems, the former is always the real function start.
10922
10923 2003-02-17 Andrew Cagney <cagney@redhat.com>
10924
10925 * configure.in: Revert ${target} != ${host}.
10926
10927 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10928
10929 * configure.in (Makefile): Use the test ${target} != ${host},
10930 instead of the absence of the "nm.h" file, to determine of the
10931 configuration non-native.
10932 * configure: Regenerate.
10933
10934 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10935
10936 From Brian Ford <ford@vss.fsi.com>
10937
10938 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10939 conditionalize tui_active test.
10940 (lookup_cmd_1): Ditto.
10941
10942 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10943
10944 * configure.in: Add check for _etext.
10945 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10946 available.
10947 * config.in, configure: regenerated.
10948
10949 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10950
10951 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10952
10953 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10954
10955 * main.c (tui_version): Delete variable.
10956 (captured_main): When --tui, set interpreter_p to "tui" instead of
10957 enabling tui_version.
10958 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10959 tui_version.
10960 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10961 * cli/cli-cmds.c (disassemble_command): Ditto.
10962 * defs.h (tui_version): Delete declaration.
10963 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10964 (tui-interp.o): Add rules.
10965 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10966
10967 2003-02-14 Christopher Faylor <cgf@redhat.com>
10968
10969 * win32-nat.c (register_loaded_dll): Correctly set address range for
10970 just-loaded dll.
10971
10972 2003-02-12 Jason Molenda (jmolenda@apple.com)
10973
10974 * symmisc.c (print_objfile_statistics): Include information about
10975 the number of psymtabs and symtabs in each object file.
10976
10977 2003-02-13 Keith R Seitz <keiths@redhat.com>
10978
10979 * main.h (struct captured_main_args): Add interpreter_p.
10980 * main.c (captured_main): Initialize interpreter_p from context.
10981 * gdb.c (main): Set interpreter_p argument.
10982 * Makefile.in (gdb.o): Add dependency for interps.h.
10983
10984 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10985
10986 * event-top.c (cli_command_loop): Delete declaration.
10987 (_initialize_event_loop): Delete function setting event_loop_hook.
10988 * event-top.h (cli_command_loop): Declare. Update copyright.
10989 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10990 * interps.c (current_interp_command_loop): When event_loop_p, call
10991 cli_command_loop.
10992
10993 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10994
10995 * interps.h (interp_command_loop_ftype): Change return type to
10996 void.
10997
10998 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10999
11000 * x86-64-tdep.c (x86_64_extract_return_value)
11001 (x86_64_store_return_value): Use regcache instead of regbuf.
11002 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11003 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11004
11005 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11006
11007 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11008 * aclocal.m4: Regenerate.
11009 * configure: Regenerate.
11010
11011 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11012 TCL_LD_SEARCH_FLAGS.
11013
11014 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11015
11016 * dwarf2cfi.c: Reindented.
11017
11018 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11019
11020 * interps.c (clear_interpreter_hooks): Convert function definition
11021 to ISO C.
11022
11023 2003-02-07 David Carlton <carlton@math.stanford.edu>
11024
11025 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11026
11027 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11028
11029 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11030 (struct type): ...to here.
11031 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11032 field.
11033 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11034 (replace_type): Set length on all type variants for a given type.
11035
11036 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11037
11038 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11039 <sys/stat.h>.
11040 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11041
11042 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11043
11044 * Makefile.in (symm-nat.o): Update dependencies.
11045 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11046 (lynx-nat.o, ia64-linux-nat.): Ditto.
11047 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11048 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11049 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11050
11051 * Makefile.in (inflow_h): Define.
11052 (procfs.o, inflow.o, procfs.o): Update dependencies.
11053 * inftarg.c (child_stop): Delete extern declaration of
11054 inferior_process_group. Include "inflow.h".
11055 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11056 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11057 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11058 (our_process_group, inferior_process_group): Extern declarations.
11059
11060 * procfs.c: Include "gdb_assert.h".
11061
11062 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11063 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11064 * jv-typeprint.c (java_type_print_base): Ditto.
11065 * typeprint.c (typedef_print): Eliminate STREQ.
11066 * cli/cli-script.c (define_command, define_command): Ditto.
11067 * main.c (captured_main): Ditto.
11068 * values.c (lookup_internalvar): Ditto.
11069 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11070 within `if' conditional.
11071 * linespec.c (decode_line_2): Ditto.
11072 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11073 (bfd_openw_with_cleanup): Ditto.
11074
11075 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11076
11077 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11078 legacy_extract_return_value and store_return_value to
11079 legacy_return_value.
11080
11081 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11082
11083 * win32-nat.c (get_relocated_section_addrs): New function. Find
11084 section load addresses for symbol handling in relocated DLLs.
11085 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11086
11087 2003-02-05 Fred Fish <fnf@intrinsity.com>
11088
11089 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11090 '=' and '!='.
11091 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11092 with '&' and '=='.
11093 (angel_RDI_info): Ditto.
11094 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11095 with '&' and '!='.
11096 (threads_continue_all_with_signals): Ditto.
11097
11098 2003-02-05 Jim Ingham <jingham@apple.com>
11099 Keith Seitz <keiths@redhat.com>
11100 Elena Zannoni <ezannoni@redhat.com>
11101 Andrew Cagney <ac131313@redhat.com>
11102
11103 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11104 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11105 (SUBDIR_MI_OBS): Add "mi-interp.o".
11106 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11107 (SFILES): Add "interps.c".
11108 (COMMON_OBS): Add "interps.o".
11109 (interps_h, mi_main_h): Define.
11110 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11111 (mi-main.o, main.o, event-top.o): Update dependencies.
11112 * cli/cli-interp.c: New file.
11113 * interps.h, interps.c: New files.
11114 * top.c: (gdb_init): Don't install the default interpreter, handed
11115 by captured_main.
11116 * main.c: Include "interps.h".
11117 (interpreter_p): Note that it should malloc'ed.
11118 (captured_command_loop): Call current_interp_command_loop.
11119 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11120 xfree and xstrdup when updating interpreter_p. Install the
11121 default interpreter. Add hack to stop mi1's copyright notice
11122 being encoded.
11123 * event-top.h (gdb_setup_readline): Declare.
11124 (gdb_disable_readline): Declare.
11125 * event-top.c: Include "interps.h".
11126 (display_gdb_prompt): Call current_interp_display_prompt_p.
11127 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11128 gdb_stdlog, and gdb_stdtarg.
11129 (_initialize_event_loop): Don't call gdb_setup_readline.
11130 * cli-out.c (cli_out_set_stream): New function.
11131 * cli-out.h (cli_out_set_stream): Declare.
11132
11133 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11134
11135 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11136 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11137 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11138 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11139 config/i386/i386v42mp.mt: Removed.
11140
11141 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11142
11143 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11144 GDB_OSABI_SOLARIS.
11145
11146 2003-02-05 Michael Chastain <mec@shout.net>
11147
11148 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11149 2.12.1 and earlier versions.
11150
11151 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11152
11153 Remove orphaned hosts, targets and files.
11154 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11155 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11156 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11157 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11158 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11159 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11160 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11161 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11162 * config/sparc/tm-sp64sim.h: Delete.
11163 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11164 hosts.
11165 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11166 mips*-dec-mach3* targets.
11167
11168 2003-02-04 Michael Chastain <mec@shout.net>
11169
11170 * NEWS: Fix typo: sepcifying -> specifying.
11171
11172 2003-02-04 Michael Chastain <mec@shout.net>
11173
11174 * dwarfread.c: Add documentation on the state of dwarf-1,
11175 looking towards obsoletion.
11176
11177 2003-02-03 Michael Chastain <mec@shout.net>
11178
11179 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11180 gdb/testsuite/gdb.c++/pr-1023.exp.
11181
11182 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11183
11184 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11185 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11186
11187 * utils.c (init_page_info): Delete reference to MPW in comments.
11188 * main.c (captured_main): Delete #ifdef MPW.
11189
11190 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11191
11192 * NEWS: Note that the m32r-*-elf* is obsolete.
11193 * monitor.c (monitor_expect): Obsolete reference to m32r.
11194 * configure.tgt: Mark m32r-*-elf* as obsolete.
11195 * MAINTAINERS: Mark m32k as obsolete.
11196 * m32r-rom.c: Obsolete file.
11197 * config/m32r/m32r.mt: Obsolete file.
11198 * config/m32r/tm-m32r.h: Obsolete file.
11199 * m32r-stub.c: Obsolete file.
11200 * m32r-tdep.c: Obsolete file.
11201
11202 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11203
11204 * NEWS: Mention that the z8k-zilog-none is obsolete.
11205 * MAINTAINERS: Mark z8k as obsolete.
11206 * configure.tgt: Obsolete the z8k-*-coff* target.
11207 * config/z8k/z8k.mt: Obsolete file.
11208 * config/z8k/tm-z8k.h: Obsolete file.
11209 * z8k-tdep.c: Obsolete file.
11210
11211 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11212
11213 * NEWS: Mention that the mn10200-elf is obsolete.
11214 * configure.tgt: Obsolete mn10200-*-* target.
11215 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11216 mention that the mn10200 is obsolete.
11217 * breakpoint.h: Ditto.
11218 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11219 * config/mn10200/mn10200.mt: Obsolete file.
11220 * config/mn10200/tm-mn10200.h: Obsolete file.
11221 * mn10200-tdep.c: Obsolete file.
11222
11223 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11224
11225 * MAINTAINERS: Mark h8500 as obsolete.
11226 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11227 * findvar.c (value_from_register): Ditto.
11228 * h8500-tdep.c: Mark file as obsolete.
11229 * config/h8500/h8500.mt: Ditto.
11230 * config/h8500/tm-h8500.h: Ditto.
11231 * NEWS: Mention that h8500 is obsolete.
11232
11233 2003-02-04 David Carlton <carlton@math.stanford.edu>
11234
11235 * objfiles.c (allocate_objfile): Always set name. Add comment at
11236 start of function.
11237 * jv-lang.c (get_dynamics_objfile): Add comment.
11238
11239 2003-02-04 David Carlton <carlton@math.stanford.edu>
11240
11241 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11242 * printcmd.c (build_address_symbolic): Replace uses of
11243 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11244 SYMBOL_NAME, and asm_demangle.
11245 Update copyright.
11246
11247 2003-02-04 David Carlton <carlton@math.stanford.edu>
11248
11249 * linespec.c (decode_compound): Extract code into
11250 lookup_prefix_sym.
11251 (lookup_prefix_sym): New function.
11252
11253 2003-02-04 David Carlton <carlton@math.stanford.edu>
11254
11255 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11256 FLOAT_COERCION_BADNESS.
11257 * gdbtypes.c (rank_one_type): Replace all uses of
11258 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11259
11260 2003-02-04 Jim Blandy <jimb@redhat.com>
11261
11262 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11263 section, let dwarf_macinfo_section point to it, not
11264 dwarf_loc_section.
11265
11266 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11267
11268 Pointed out by Anton Blanchard <anton@samba.org>.
11269 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11270 (ppc_linux_at_sigtramp_return_path): Use it.
11271
11272 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11273
11274 * defs.h (streq): Add prototype.
11275 * utils.c (streq): New function.
11276
11277 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11278 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11279 * mdebugread.c (new_symbol): Likewise.
11280 * stabsread.c (define_symbol): Likewise.
11281 * coffread.c (process_coff_symbol): Likewise.
11282 * dwarfread.c (new_symbol): Likewise.
11283
11284 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11285 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11286 here.
11287 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11288 SYMBOL_INIT_DEMANGLED_NAME.
11289 * objfiles.c: Include "hashtab.h".
11290 (allocate_objfile): Call htab_set_functions_ex for the
11291 demangled_names_hash.
11292 (free_objfile): Call htab_delete for the demangled_names_hash.
11293 * objfiles.h (struct htab): Add declaration.
11294 (struct objfile): Add demangled_names_hash.
11295 * symfile.c: Include "hashtab.h".
11296 (reread_symbols): Call htab_delete for the demangled_names_hash.
11297 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11298 SYMBOL_NAME in the bcache.
11299 * symtab.c: Include "hashtab.h". Update comments.
11300 (create_demangled_names_hash, symbol_set_names): New functions.
11301 (symbol_find_demangled_name): New function, broken out from
11302 symbol_init_demangled_names.
11303 (symbol_init_demangled_names): Use it.
11304 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11305 (SYMBOL_SET_NAMES): New macro.
11306 (symbol_set_names): Add prototype.
11307
11308 2003-02-03 Jim Blandy <jimb@redhat.com>
11309
11310 Use a single, consistent representation for an empty minimal
11311 symbol table in an objfile.
11312 * objfiles.c (terminate_minimal_symbol_table): New function.
11313 (allocate_objfile): Call it.
11314 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11315 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11316 non-NULL.
11317 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11318 objfile has minimal symbols, compare minimal_symbol_count to zero,
11319 instead of comparing msymbols with NULL.
11320 * objfiles.c (have_minimal_symbols): Same.
11321 * solib-sunos.c (solib_add_common_symbols): Call
11322 terminate_minimal_symbol_table.
11323 * symfile.c (reread_symbols): Same.
11324
11325 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11326
11327 * s390-tdep.c (s390_address_class_type_flags)
11328 (s390_address_class_type_flags_to_name)
11329 (s390_address_class_name_to_type_flags): New functions.
11330 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11331 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11332
11333 2003-02-03 Michael Snyder <msnyder@redhat.com>
11334
11335 * arm-tdep.c: Fix spell-o in comment.
11336
11337 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11338
11339 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11340 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11341 error messages to contain BFD filename.
11342
11343 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11344
11345 Fix PR gdb/742 gdb/743 gdb/877
11346 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11347 (do_mixed_source_and_assembly): Use
11348 make_cleanup_ui_out_tuple_begin_end and
11349 make_cleanup_ui_out_tuple_begin_end.
11350 (do_mixed_source_and_assembly): Ditto.
11351 * thread.c (do_captured_list_thread_ids): Ditto.
11352 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11353 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11354 ui_out_tuple_end): Delete prototypes.
11355 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11356 ui_out_list_end, ui_out_tuple_end): Delete.
11357
11358 From Kevin Buettner <kevinb@redhat.com>:
11359 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11360 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11361 (do_cleanup_table_end): New functions.
11362 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11363 Use cleanups to invoke_ui_out_tuple_end().
11364 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11365 * cli/cli-setshow.c (cmd_show_list): Use
11366 make_cleanup_ui_out_tuple_begin_end.
11367
11368 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11369
11370 * frame.c (frame_unwind_register): New function.
11371 (frame_unwind_unsigned_register): Use.
11372 (frame_unwind_signed_register): Use.
11373 (frame_read_register): New function.
11374 * frame.h (frame_unwind_register): Declare.
11375 (frame_read_register): Declare.
11376
11377 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11378 and frame_unwind_register instead of read_memory, write_register
11379 and deprecated_write_register_bytes.
11380
11381 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11382
11383 * frame.h: Note that namelen can be negative.
11384 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11385 NAME's length.
11386
11387 * NEWS: Mention that the d10v's `regs' command is deprecated.
11388 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11389 (d10v_print_registers_info): New function.
11390 (show_regs): Call d10v_print_registers_info.
11391 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11392
11393 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11394
11395 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11396 lost in the previous patch.
11397
11398 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11399
11400 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11401 * stack.c (print_frame_info_base): Output complete FRAME tuple
11402 for synthesized frames.
11403
11404 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11405
11406 * mips-nat.c (zerobuf): Delete.
11407 (fetch_inferior_registers): Alloc local zerobuf.
11408 (fetch_core_registers): Alloc local zerobuf.
11409 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11410 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11411 * thread-db.c (thread_db_store_registers): Ditto.
11412 * sh-tdep.c (sh_do_register): Ditto.
11413 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11414 * remote-sim.c (gdbsim_store_register): Ditto.
11415 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11416 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11417 * monitor.c (monitor_supply_register): Ditto.
11418 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11419 * mips-nat.c (fetch_inferior_registers): Ditto.
11420 * m68klinux-nat.c (fetch_register): Ditto.
11421 * lynx-nat.c (fetch_inferior_registers): Ditto.
11422 (fetch_inferior_registers): Ditto.
11423 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11424 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11425 (hpux_thread_store_registers): Ditto.
11426 * hppah-nat.c (fetch_register): Ditto.
11427 * hppab-nat.c (fetch_register): Ditto.
11428 * hppa-tdep.c (pa_register_look_aside): Ditto.
11429 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11430 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11431
11432 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11433
11434 * gdbarch.sh: Explictly specify all method levels. When a
11435 variable with an empty level, provide a non-multi-arch default.
11436 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11437 * gdbarch.h: Re-generate.
11438 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11439 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11440
11441 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11442
11443 * defs.h (host_pointer_to_address): Delete declaration.
11444 (address_to_host_pointer): Delete declaration.
11445 * utils.c (host_pointer_to_address): Delete function.
11446 (address_to_host_pointer): Delete function.
11447 * procfs.c (procfs_address_to_host_pointer): New function.
11448 * procfs.c (proc_set_watchpoint): Use.
11449 (procfs_can_use_hw_breakpoint): Update comments.
11450 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11451 (som_solib_add): Use.
11452 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11453 * hppa-tdep.c (unwind_command): Use.
11454
11455 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11456
11457 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11458 strlen d_name.
11459
11460 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11461 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11462 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11463 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11464 (define_symbol): Update.
11465 * symfile.c (generic_load): Remove references to nindy.
11466 * symtab.c: Remove references to nindy.
11467
11468 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11469
11470 * infcmd.c (print_float_info): Delete code conditional on
11471 FLOAT_INFO.
11472 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11473 * config/m68k/nm-apollo68b.h: Ditto.
11474 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11475 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11476 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11477
11478 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11479
11480 * config/i386/tm-i386os9k.h: Removed.
11481
11482 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11483 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11484 they're identical to i[3456]86-*-sysv* now.
11485 * config/i386/i386v32.mh: Removed.
11486 * config/i386/xm-i386v32.h: Removed.
11487 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11488
11489 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11490
11491 * config/i386/i386dgux.mh: Removed.
11492 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11493
11494 * configure.in: Fix typo.
11495 * configure: Regenerated.
11496
11497 2003-01-31 David Carlton <carlton@math.stanford.edu>
11498
11499 * dwarf2read.c (dwarf2_locate_sections): Set
11500 dwarf_ranges_section.
11501
11502 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11503
11504 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11505 * utils.c: Update comments documenting legitimate uses of PTR.
11506
11507 * utils.c: Re-indent.
11508
11509 * config/djgpp/fnchange.lst: Delete nindy files.
11510 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11511 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11512 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11513 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11514 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11515 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11516 * Makefile.in (init.c): Remove nindy references.
11517 (saber_gdb): Delete rule.
11518 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11519 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11520 and a68v-nat.c.
11521 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11522 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11523 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11524 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11525 nindy-share/stop.h.
11526 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11527 * saber.suppress: Delete file.
11528
11529 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11530
11531 * dbxread.c (stabs_data): New static variable.
11532 (fill_symbuf): Support an in-memory buffer for stabs data.
11533 (stabs_seek): New function.
11534 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11535 (read_ofile_symtab): Use stabs_seek.
11536 (elfstab_build_psymtabs): Take an asection* instead of
11537 an offset and size. Relocate the stabs data if necessary.
11538 Save the section* for dbx_psymtab_to_symtab.
11539 * dwarf2read.c: Add section variables for each debug section.
11540 (dwarf2_locate_sections): Fill them in.
11541 (dwarf2_read_section): Take an asection* argument.
11542 Relocate the section contents if necessary.
11543 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11544 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11545 it to dwarf2_read_section.
11546 (dwarf2_build_frame_info): Update callers.
11547 * elfread.c (elf_symfile_read): Update call to
11548 elfstab_build_psymtabs.
11549 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11550 (DBX_STAB_SECTION): New macro.
11551 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11552 * symfile.c (symfile_dummy_outputs): New function.
11553 (symfile_relocate_debug_section): New function.
11554 * symfile.h (symfile_relocate_debug_section): Add prototype.
11555
11556 2003-01-31 Richard Henderson <rth@redhat.com>
11557
11558 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11559 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11560 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11561 * alpha-tdep.c (alpha_register_name): Add "unique".
11562 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11563 (ALPHA_UNIQUE_REGNUM): New.
11564 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11565
11566 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11567
11568 * README: Remove reference to Ericsson 1800 monitor.
11569 * Makefile.in (remote-es.o): Delete rule.
11570 (ALLDEPFILES): Delete remote-es.c.
11571 * remote-es.c: Delete file.
11572 * config/m68k/es1800.mt: Delete file.
11573 * config/djgpp/fnchange.lst: Update.
11574 * configure.tgt: Delete m68*-ericsson-* target.
11575
11576 2003-01-31 Adam Fedor <fedor@gnu.org>
11577
11578 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11579 Remove duplicate/shadowing variable of same name.
11580
11581 2003-01-30 Jim Blandy <jimb@redhat.com>
11582
11583 * symfile.c (find_separate_debug_file): Assert that the objfile's
11584 directory name we compute ends with a slash, and then assume that
11585 that's so everywhere we use it.
11586
11587 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11588
11589 * valops.c (value_assign): Flush frame cache after stores to memory
11590 also.
11591
11592 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11593
11594 * Makefile.in (mon960-rom.o): Delete rule.
11595 * mon960-rom.c: Delete file.
11596
11597 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11598
11599 * d10v-tdep.c: Include "frame-unwind.h".
11600 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11601 list.
11602 (next_addr, uses_frame): Delete.
11603 (struct d10v_unwind_cache): Define.
11604 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11605 Use info instead of next_addr and uses_frame globals.
11606 (d10v_frame_init_saved_regs): Delete function.
11607 (d10v_init_extra_frame_info): Delete function.
11608 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11609 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11610 init_frame_pc or frame_saved_pc.
11611 (d10v_pop_frame): Delete function.
11612 (do_d10v_pop_frame): Delete function.
11613 (d10v_frame_chain): Delete function.
11614 (d10v_frame_chain_valid): Delete function.
11615 (d10v_frame_pc_unwind): New function.
11616 (d10v_frame_id_unwind): New function.
11617 (saved_regs_unwinder): New function.
11618 (d10v_frame_register_unwind): New function.
11619 (d10v_frame_pop): New function.
11620 (d10v_frame_unwind): New variable.
11621 (d10v_frame_p): New function.
11622 (d10v_frame_saved_pc): Delete function.
11623 * Makefile.in (d10v-tdep.o): Update dependencies.
11624
11625 2003-01-30 J. Brobecker <brobecker@gnat.com>
11626
11627 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11628 causing some regressions due to a change in the default value
11629 for this macro.
11630
11631 2003-01-29 Richard Henderson <rth@redhat.com>
11632 Elena Zannoni <ezannoni@redhat.com>
11633 Daniel Jacobowitz <drow@mvista.com>
11634
11635 Fix PR gdb/961.
11636 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11637 variables.
11638 (RANGES_SECTION): New.
11639 (dwarf_ranges_buffer): New variable.
11640 (struct comp_unit_head): Add member "die".
11641 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11642 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11643 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11644 (dwarf2_locate_sections): Likewise.
11645 (dwarf2_build_psymtabs): Read .debug_ranges.
11646 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11647 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11648 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11649 Look for DW_AT_ranges and return the bounding box.
11650
11651 2003-01-29 Brian Ford <ford@vss.fsi.com>
11652
11653 * win32-nat.c (cygwin_pid): Removed as unused.
11654 (child_attach): Try fall back to Cygwin pid.
11655
11656 2003-01-29 Jim Blandy <jimb@redhat.com>
11657
11658 * objfiles.h (struct objfile): Doc fix.
11659
11660 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11661
11662 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11663 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11664 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11665 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11666 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11667 (FRAME_SAVED_PC): Change to a function with predicate.
11668 * gdbarch.h, gdbarch.c: Re-generate.
11669
11670 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11671
11672 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11673
11674 * complaints.c (complain): Delete function.
11675 * complaints.h (struct deprecated_complaint): Delete definition.
11676 (complain): Delete declaration.
11677
11678 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11679
11680 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11681 dummy frames.
11682
11683 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11684
11685 * sentinel-frame.h, sentinel-frame.c: New files.
11686 * Makefile.in (frame.o): Update dependencies.
11687 (SFILES): Add sentinel-frame.c.
11688 (sentinel_frame_h): Define.
11689 (COMMON_OBS): Add sentinel-frame.o.
11690 (sentinel-frame.o): Specify dependencies.
11691 * frame.c: Include "sentinel-frame.h".
11692 (frame_register_unwind): Rewrite assuming that there is always a a
11693 ->next frame.
11694 (frame_register, generic_unwind_get_saved_register): Ditto.
11695 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11696 (create_sentinel_frame, unwind_to_current_frame): New functions.
11697 (get_current_frame): Rewrite using create_sentinel_frame and
11698 unwind_to_current_frame. When possible, always create a frame.
11699 (create_new_frame): Set next to the sentinel frame.
11700 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11701 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11702 ID cache when necessary.
11703 (frame_saved_regs_id_unwind): Use frame_relative_level.
11704 (deprecated_generic_get_saved_register): Use frame_relative_level,
11705 get_frame_saved_regs, get_frame_pc, get_frame_base and
11706 get_next_frame.
11707 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11708 frame_register.
11709
11710 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11711
11712 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11713
11714 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11715
11716 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11717 (maintenance_set_profile_cmd): Use error () instead of warning ().
11718
11719 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11720
11721 * configure.in: Check that -pg works if using --enable-profiling.
11722 Check for monstartup and _mcleanup regardless of --enable-profiling.
11723 * maint.c: Check for monstartup and _mcleanup before using them.
11724 * config.in: Regenerated.
11725 * configure: Regenerated.
11726
11727 2003-01-24 Nick Clifton <nickc@redhat.com>
11728
11729 * Add sh2e support:
11730
11731 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11732
11733 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11734 (sh2e_show_regs): New.
11735 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11736 * config/sh/tm-sh.h: Added sh2e to comments.
11737
11738 2003-01-23 Jim Blandy <jimb@redhat.com>
11739
11740 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11741 symbols found)" message here; we haven't checked for a separate
11742 debug info file yet, so we don't know yet.
11743 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11744 we've looked everywhere. Also, there's no need to print a special
11745 message when we're loading the separate debug info file: the one
11746 symbol_file_add prints is fine.
11747
11748 2003-01-23 Alexander Larsson <alexl@redhat.com>
11749 Jim Blandy <jimb@redhat.com>
11750
11751 Add support for executables whose debug info has been separated
11752 out into a separate file, leaving only a link behind.
11753 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11754 and separate_debug_objfile_backlink.
11755 (put_objfile_before): New declaration.
11756 * symfile.c: #include "filenames.h".
11757 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11758 debug info in a separate file, read that, too. Save the addrs
11759 argument, so we can use it again to read the separated debug info;
11760 syms_from_objfile modifies the table we pass it.
11761 (reread_symbols): After re-reading an objfile, call
11762 reread_separate_symbols to refresh its separate debug info
11763 objfile, if it has one.
11764 (reread_separate_symbols, find_separate_debug_file,
11765 get_debug_link_info, separate_debug_file_exists): New functions.
11766 (debug_file_directory): New global var.
11767 (_initialize_symfile): Initialize debug_file_directory, and
11768 provide the new `set debug-file-directory' command to let the user
11769 change it.
11770 * objfiles.c (free_objfile): If this objfile has its debug info in
11771 a separate objfile, free that one too. If this is itself a
11772 separate debug info objfile, clear our parent's backlink.
11773 (put_objfile_before): New function.
11774 * utils.c (gnu_debuglink_crc32): New function.
11775 * defs.h (gnu_debuglink_crc32): New declaration.
11776 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11777 * configure.in: Handle --with-separate-debug-dir config option.
11778 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11779 * acconfig.h (DEBUGDIR): New macro.
11780 * configure, aclocal.m4, config.in: Regenerated.
11781
11782 2003-01-22 Jim Blandy <jimb@redhat.com>
11783
11784 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11785 like the old symbol_file_add, but taking new arguments: you can
11786 now pass in either a `struct section_addr_info' list to say where
11787 each section is loaded, or a `struct section_offsets' table. Pass
11788 these new arguments through to syms_from_objfile as appropriate.
11789 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11790 with the appropriate quiescent values for the new arguments.
11791
11792 * symfile.c: #include "gdb_assert.h".
11793 (syms_from_objfile): Add the ability to pass in a section offset
11794 table directly, as an alternative to the section_addr_info table.
11795 Document arguments better.
11796 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11797 * symfile.h (syms_from_objfile): Update declaration.
11798 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11799 syms_from_objfile.
11800 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11801
11802 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11803
11804 Original patch by Tom Tromey <tromey@cygnus.com> and
11805 Jason Molenda <jmolenda@apple.com>.
11806 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11807 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11808 * NEWS: Mention profiling.
11809 * configure.in (--enable-gdbtk): Fix typo.
11810 (--enable-profiling): New. Set PROFILE_CFLAGS.
11811 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11812 Fill in function.
11813 (profiling_state): New variable.
11814 (mcleanup_wrapper): New function.
11815 (_initialize_maint): Remove NOTYET, fix call to
11816 add_setshow_boolean_cmd for "maint set profile".
11817 * configure: Regenerated.
11818
11819 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11820
11821 * Makefile.in (install-gdbtk): Install PNG images too.
11822
11823 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11824
11825 * exec.c (text_start): Delete global variable.
11826 (exec_file_attach): Make text_start local to the function.
11827 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11828 * valops.c (hand_function_call): Delete code that handles
11829 BEFORE_TEXT_END and AFTER_TEXT_END.
11830 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11831 of CALL_DUMMY_LOCATION.
11832 * gdbarch.c: Regenerate.
11833 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11834 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11835 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11836 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11837 (text_end): Delete extern declaration.
11838
11839 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11840
11841 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11842 * blockframe.c (backtrace_below_main): Move to "frame.c".
11843 (frame_chain_valid): Delete check for backtrace_below_main.
11844 (_initialize_blockframe): Delete initialization, move ``set
11845 backtrace-below-main'' command to "frame.c".
11846 (do_flush_frames_sfunc): Delete function.
11847 * frame.c: Include "command.h" and "gdbcmd.h".
11848 (frame_type_from_pc): New function.
11849 (create_new_frame): Use frame_type_from_pc.
11850 (legacy_get_prev_frame): New function.
11851 (get_prev_frame): Rewrite. When an old style frame, call
11852 legacy_get_prev_frame. Otherwize, unwind the PC first.
11853 (_initialize_frame): Add ``set backtrace-below-main'' command.
11854 * Makefile.in (frame.o): Update dependencies.
11855
11856 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11857
11858 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11859 DEPRECATED_REGISTERS_INFO.
11860
11861 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11862
11863 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11864 Maintainers'. Update `Various Maintainers'.
11865
11866 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11867
11868 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11869 * gdbarch.sh (POP_FRAME): Change to function with predicate.
11870 Suppress actual parameters when `-'.
11871 * gdbarch.h, gdbarch.c: Regenerate.
11872
11873 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11874
11875 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
11876 code handling dummy frames.
11877
11878 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11879
11880 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
11881 (struct frame_unwind): Add field pop.
11882 * frame.h (frame_pop): Declare.
11883 * frame.c (frame_saved_regs_pop): New function.
11884 (trad_frame_unwinder): Add frame_saved_regs_pop.
11885 (frame_pop): New function.
11886 * dummy-frame.c (dummy_frame_pop): New function.
11887 (discard_innermost_dummy): New function.
11888 (generic_pop_dummy_frame): Use discard_innermost_dummy.
11889 (dummy_frame_unwind): Add dummy_frame_pop.
11890 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
11891 * valops.c (hand_function_call): Ditto.
11892 * stack.c (return_command): Ditto.
11893
11894 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11895
11896 * cris-tdep.c: Fix function declaration indentation.
11897 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
11898 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
11899 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
11900 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
11901 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
11902 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
11903
11904 2003-01-18 Michael Chastain <mec@shout.net>
11905
11906 * README (Unpacking and Installation -- quick overview):
11907 Warn against ".../gdb-5.3/gdb/configure".
11908
11909 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11910
11911 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11912 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11913 (struct frame_unwind): Declare opaque.
11914 (dummy_frame_p): Declare function.
11915 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11916 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11917 * dummy-frame.c: Include "frame-unwind.h".
11918 (dummy_frame_p): New function.
11919 (dummy_frame_unwind): New variable.
11920 * frame.c: Include "frame-unwind.h".
11921 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11922 to use the new unwind field.
11923 (set_unwind_by_pc): Delete function.
11924 (create_new_frame, get_prev_frame): Set unwind field using
11925 frame_unwind_find_by_pc.
11926 (trad_frame_unwind, trad_frame_unwinder): New variables.
11927 * frame.h (trad_frame_unwind): Declare variable.
11928 (frame_id_unwind_ftype): Delete declaration.
11929 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11930 (struct frame_unwind): Declare opaque.
11931 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11932 register_unwind with a single unwind pointer.
11933 * frame-unwind.h, frame-unwind.c: New files.
11934 * Makefile.in (SFILES): Add frame-unwind.c.
11935 (frame_unwind_h): Define.
11936 (COMMON_OBS): Add frame-unwind.o.
11937 (frame-unwind.o): Specify dependencies.
11938 (frame.o, dummy-frame.o): Update dependencies.
11939
11940 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11941
11942 * ada-valprint.c: Eliminate PTR.
11943 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11944 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11945 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11946 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11947 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11948 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11949 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11950
11951 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11952
11953 * main.c (captured_main): Don't use PTR.
11954 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11955 * gdbtypes.c (lookup_primitive_typename): Ditto.
11956 (lookup_struct_elt_type): Ditto.
11957 * f-valprint.c (info_common_command): Ditto.
11958 (list_all_visible_commons): Ditto.
11959 * jv-typeprint.c (java_type_print_base): Ditto.
11960
11961 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11962 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11963 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11964 i386-interix-nat.c and i386-interix-tdep.c. Rename
11965 m68klinux-nat.c and m68klinux-tdep.c. Rename
11966 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11967 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11968 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11969 * main.c (captured_main): Use xfree, not free.
11970
11971 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11972
11973 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11974 ID back using a parameter.
11975 * frame.c (frame_id_unwind): Update call.
11976 (frame_saved_regs_id_unwind): Update.
11977 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11978 * dummy-frame.h (struct frame_id): Add opaque declaration.
11979 (dummy_frame_id_unwind): Update declaration.
11980
11981 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11982
11983 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11984
11985 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11986
11987 * MAINTAINERS (Stephen P. Smith): Updated email address.
11988
11989 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11990
11991 Fix PR gdb/898
11992 * breakpoint.c (until_break_command): Add new argument. Use it to
11993 decide whether to stop only at the current frame or not.
11994 * breakpoint.h (until_break_command): Update prototype.
11995 * infcmd.c (until_command): Add new argument to until_break_command
11996 call.
11997 (advance_command): New function.
11998 (_initialize_infcmd): Update help string for 'until' command.
11999 Add new 'advance' command.
12000
12001 2003-01-14 David Carlton <carlton@math.stanford.edu>
12002
12003 * linespec.c (decode_line_1): Normalize comments.
12004 (set_flags): Ditto.
12005 (locate_first_half): Ditto.
12006 (decode_compound): Ditto.
12007 (symtab_from_filename): Ditto.
12008 (decode_all_digits): Ditto.
12009 (decode_dollar): Ditto.
12010 (find_methods): Ditto.
12011 (find_toplevel_char): Ditto.
12012
12013 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12014
12015 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12016 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12017 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12018 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12019 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12020 * language.c, language.h, m32r-tdep.c: Update copyright.
12021 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12022 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12023 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12024 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12025 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12026 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12027
12028 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12029
12030 * stabsread.h (process_later, resolve_cfront_continuation):
12031 Obsolete.
12032 Update copyright years.
12033 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12034 Update copyright year.
12035 * dbxread.c(struct cont_elem): Obsolete.
12036 (process_later, process_now): Obsolete functions.
12037 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12038 Update copyright year.
12039 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12040 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12041 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12042 (parse_partial_symbols): Obsolete cfront support.
12043 * stabsread.c
12044 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12045 macros.
12046 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12047 read_cfront_baseclasses, read_cfront_member_functions,
12048 resolve_cfront_continuation,read_cfront_static_fields,
12049 copy_cfront_struct_fields): Obsolete functions.
12050 (define_symbol, read_one_struct_field): Obsolete cfront support.
12051 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12052 Update Copyright year.
12053
12054 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12055
12056 * stack.c (print_frame_info, print_stack_frame_base_stub,
12057 print_stack_frame_base, show_and_print_stack_frame_stub,
12058 show_and_print_stack_frame, print_only_stack_frame_stub,
12059 print_only_stack_frame): Delete functions.
12060 (print_stack_frame_stub): Call print_frame_info instead of
12061 print_frame_info_base.
12062 (print_frame_info_base): Rename to print_frame_info.
12063 (backtrace_command_1): Call print_frame_info, instead of
12064 print_frame_info_base.
12065 (current_frame_command): Call print_stack_frame, instead of
12066 print_only_stack_frame.
12067 (frame_command): Call print_stack_frame, instead of
12068 show_and_print_stack_frame.
12069 (up_command): Ditto.
12070 (down_command): Ditto.
12071 * frame.h (print_only_stack_frame): Delete prototype.
12072 * infrun.c (normal_stop): Call print_stack_frame, instead of
12073 show_and_print_stack_frame.
12074 * thread.c (info_threads_command): Call print_stack_frame, instead
12075 of print_only_stack_frame.
12076
12077 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12078
12079 * README (Graphical interface to GDB): Update URL. Point at
12080 gdb/links/.
12081
12082 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12083 version match.
12084
12085 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12086
12087 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12088 lines.
12089
12090 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12091
12092 * thread-db.c (attach_thread): Prototype.
12093 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12094 thread information (ti), and valid flags (th_valid, ti_valid).
12095 (attach_thread): Move target_pid_to_str call to after the thread
12096 is added to GDB's list. Initialize the cache.
12097 (thread_get_info_callback, thread_db_map_id2thr)
12098 (thread_db_get_info): New functions.
12099 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12100 (thread_db_store_registers, thread_db_thread_alive)
12101 (thread_db_get_thread_local_address): Use them.
12102 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12103 of calling error() for threads in unknown state.
12104
12105 (clear_lwpid_callback): New function.
12106 (thread_db_resume): Use it to clear the cache.
12107
12108 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12109
12110 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12111 (resume_callback): Remove dead code.
12112
12113 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12114
12115 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12116 predicate.
12117 * gdbarch.h, gdbarch.c: Regenerate.
12118 * stack.c (frame_info): Only initialize the saved registers when
12119 FRAME_INIT_SAVED_REGS_P.
12120 * frame.c (frame_saved_regs_register_unwind): Assert
12121 FRAME_INIT_SAVED_REGS_P.
12122 (deprecated_generic_get_saved_register): Ditto.
12123
12124 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12125
12126 * source.c (openp): Squelch warning about "filename".
12127
12128 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12129
12130 * source.c (openp): If the file does not exist don't necessarily
12131 search the path.
12132
12133 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12134
12135 Fix PR gdb/872.
12136 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12137 (integer_types_same_name_p): New function.
12138 (rank_one_type): Use it.
12139 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12140
12141 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12144 variables.
12145 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12146 * configure.in: Add --with-sysroot.
12147 * configure: Regenerated.
12148 * main.c (gdb_sysroot): New variable.
12149 (captured_main): Initialize gdb_sysroot.
12150 * defs.h (gdb_sysroot): New extern declaration.
12151 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12152
12153 2003-01-12 Michael Chastain <mec@shout.net>
12154
12155 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12156
12157 2003-01-12 Michael Chastain <mec@shout.net>
12158
12159 * top.c (print_gdb_version): Bump copyright year to 2003.
12160
12161 2003-01-12 David Carlton <carlton@bactrian.org>
12162
12163 * linespec.c (symtab_from_filename): Rename variable 's' to
12164 'file_symtab'.
12165
12166 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12167
12168 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12169 dummy frame.
12170 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12171
12172 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12173
12174 * d10v-tdep.c: Include "gdb_assert.h".
12175 (d10v_store_return_value): Rewrite to match current interface.
12176 (d10v_extract_struct_value_address): Ditto.
12177 (d10v_extract_return_value): Ditto.
12178 (d10v_gdbarch_init): Set store_restore_value,
12179 extract_struct_value_address and extract_return_value.
12180
12181 2003-01-12 J. Brobecker <brobecker@gnat.com>
12182
12183 * hpread.c (set_namestring): New procedure replacing the
12184 SET_NAMESTRING macro.
12185 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12186 by calls to set_namestring.
12187
12188 2003-01-11 J. Brobecker <brobecker@gnat.com>
12189
12190 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12191 a compilation warning.
12192 (hpread_process_one_debug_symbol): Likewise.
12193
12194 2003-01-10 David Carlton <carlton@math.stanford.edu>
12195
12196 * linespec.c (decode_line_1): Rename variable 's' to
12197 'file_symtab'.
12198 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12199 (decode_dollar): Ditto.
12200 (decode_variable): Ditto.
12201 (symbol_found): Ditto.
12202
12203 2003-01-09 Michael Chastain <mec@shout.net>
12204
12205 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12206
12207 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12208
12209 * win32-nat.c (set_process_privilege): New function.
12210 (child_attach): Call set_process_privilege() to enable the
12211 SE_DEBUG_NAME user privilege if available in process token.
12212
12213 2003-01-10 J. Brobecker <brobecker@gnat.com>
12214
12215 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12216 compilation error in the previous revision.
12217
12218 2003-01-09 David Carlton <carlton@math.stanford.edu>
12219
12220 * linespec.c: Update copyright.
12221
12222 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12223
12224 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12225 than inferior_ptid.
12226 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12227
12228 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12229
12230 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12231 Update comments.
12232 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12233 (frame_saved_regs_zalloc): Update.
12234 (frame_saved_regs_register_unwind): Update.
12235 (create_new_frame): Update.
12236 (get_prev_frame): Update.
12237 (frame_extra_info_zalloc): Update.
12238 (deprecated_get_frame_saved_regs): Update.
12239 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12240 * cris-tdep.c: Update comment.
12241
12242 * somsolib.h: Fix function indentation.
12243 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12244 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12245 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12246 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12247 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12248
12249 * infrun.c (follow_fork): Use ISO C definition.
12250 * expprint.c (print_subexp): Use xfree instead of free.
12251 * charset.c: Include "gdb_string.h" instead of <string.h>.
12252 (register_iconv_charsets): Use ISO C definition.
12253 (host_charset, target_charset): Ditto.
12254 * Makefile.in (charset.o): Update dependencies.
12255 (mi-cmd-env.o): Update dependencies.
12256
12257 2003-01-08 Andrew Cagney <cagney@redhat.com>
12258
12259 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12260 get_frame_base.
12261
12262 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12263
12264 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12265 build directories. Save edited gdb output in Mbuild.log. If a
12266 build fails, remove any final GDB executable.
12267
12268 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12269
12270 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12271 replacing hex constants with function names and stripping leading
12272 file name directory prefixes.
12273
12274 2003-01-08 Andrew Cagney <cagney@redhat.com>
12275
12276 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12277 get_frame_base.
12278
12279 2003-01-08 David Carlton <carlton@math.stanford.edu>
12280
12281 * linespec.c (decode_line_1): Move code into decode_variable.
12282 (decode_variable): New function.
12283
12284 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12285
12286 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12287
12288 2003-01-08 Andrew Cagney <cagney@redhat.com>
12289
12290 * cris-tdep.c (cris_frame_init_saved_regs): Use
12291 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12292 saved_regs buffer.
12293 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12294 (sh64_nofp_frame_init_saved_regs): Ditto.
12295 (sh_fp_frame_init_saved_regs): Ditto.
12296 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12297 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12298 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12299 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12300
12301 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12302
12303 * minsyms.c (lookup_minimal_symbol): Update comment.
12304 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12305 (lookup_minimal_symbol_solib_trampoline): Likewise.
12306
12307 2003-01-08 Andrew Cagney <cagney@redhat.com>
12308
12309 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12310 frame_relative_level.
12311
12312 * alpha-tdep.c: Use get_frame_extra_info.
12313 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12314 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12315 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12316 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12317
12318 * alpha-tdep.c: Use get_next_frame.
12319 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12320 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12321 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12322 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12323 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12324 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12325 * xstormy16-tdep.c: Ditto.
12326
12327 2003-01-07 Andrew Cagney <cagney@redhat.com>
12328
12329 * alpha-tdep.c: Use get_frame_base.
12330 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12331 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12332 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12333 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12334 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12335 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12336 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12337 * config/sparc/tm-sparc.h: Ditto.
12338
12339 2003-01-07 Andrew Cagney <cagney@redhat.com>
12340
12341 * frame.c (deprecated_get_frame_context): New function.
12342 (deprecated_set_frame_context): New function.
12343 * frame.h (deprecated_get_frame_context): Declare.
12344 (deprecated_set_frame_context): Declare.
12345 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12346 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12347
12348 2003-01-07 Andrew Cagney <cagney@redhat.com>
12349
12350 * frame.c (deprecated_set_frame_next_hack): New function.
12351 (deprecated_set_frame_prev_hack): New function.
12352 * frame.h (deprecated_set_frame_next_hack): Declare.
12353 (deprecated_set_frame_prev_hack): Declare.
12354 * mcore-tdep.c (analyze_dummy_frame): Use
12355 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12356 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12357
12358 2003-01-07 David Carlton <carlton@math.stanford.edu>
12359
12360 * linespec.c (decode_line_1): Move code into decode_dollar.
12361 (decode_dollar): New function.
12362
12363 2003-01-07 Andrew Cagney <cagney@redhat.com>
12364
12365 * arm-tdep.c (arm_init_extra_frame_info): Use
12366 deprecated_update_frame_base_hack.
12367 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12368 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12369 (fix_frame_pointer): Ditto.
12370 (mn10300_analyze_prologue): Ditto.
12371
12372 2003-01-07 Andrew Cagney <cagney@redhat.com>
12373
12374 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12375 extra_info using frame_extra_info_zalloc.
12376 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12377 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12378 (sh64_init_extra_frame_info): Ditto.
12379 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12380 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12381 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12382 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12383 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12384 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12385 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12386 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12387 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12388 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12389 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12390 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12391
12392 * mn10300-tdep.c (analyze_dummy_frame): Use
12393 deprecated_set_frame_extra_info_hack.
12394 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12395
12396 2003-01-07 J. Brobecker <brobecker@gnat.com>
12397
12398 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12399 class is not scText. These do not define "real" procedures.
12400 (parse_partial_symbols): Likewise.
12401
12402 2003-01-06 Michael Snyder <msnyder@redhat.com>
12403
12404 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12405
12406 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12407
12408 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12409 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12410 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12411 deprecated_frame_xmalloc_with_cleanup.
12412 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12413 deprecated_frame_xmalloc.
12414 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12415 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12416
12417 2003-01-06 Andrew Cagney <cagney@redhat.com>
12418
12419 * x86-64-linux-tdep.c: Include "osabi.h".
12420 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12421
12422 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12423
12424 2003-01-06 Andrew Cagney <cagney@redhat.com>
12425
12426 * MAINTAINERS (Target Instruction Set Architectures): Update
12427 arm-elf. Can be built with -Werror, has been multiarched.
12428
12429 * value.h (unpack_long): Make buffer parameter constant.
12430 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12431 * scm-lang.h (scm_parse): Ditto.
12432 * defs.h (extract_typed_address, extract_address): Ditto.
12433 (extract_long_unsigned_integer): Ditto.
12434 * inferior.h (unsigned_pointer_to_address): Ditto.
12435 (signed_pointer_to_address): Ditto.
12436 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12437 * gdbarch.h, gdbarch.c: Regenerate.
12438 * findvar.c (extract_long_unsigned_integer): Update.
12439 (extract_address): Update.
12440 (extract_typed_address): Update.
12441 (unsigned_pointer_to_address): Update.
12442 * values.c (unpack_long): Update.
12443 (unpack_double): Update.
12444 (unpack_pointer): Update.
12445 (unpack_field_as_long): Update.
12446 * d10v-tdep.c (d10v_pointer_to_address): Update.
12447 * avr-tdep.c (avr_pointer_to_address): Update.
12448 * scm-lang.c (scm_unpack): Update.
12449 * findvar.c (signed_pointer_to_address): Update.
12450
12451 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12452
12453 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12454 since it is in i386-tdep.c.
12455
12456 2003-01-06 J. Brobecker <brobecker@gnat.com>
12457
12458 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12459 failure introduced in the previous change.
12460
12461 2003-01-05 Michael Chastain <mec@shout.net>
12462
12463 * README: Remove references to deleted remote-*.c files:
12464 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12465 remote-nrom.c, remote-os9k.c, remote-udi.c.
12466
12467 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12468
12469 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12470 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12471 i386_get_longjmp_target.
12472
12473 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12474
12475 * arm-tdep.c (prologue_cache): Change to a pointer.
12476 (_initialize_arm_tdep): Allocate prologue_cache.
12477 (check_prologue_cache): Update.
12478 (save_prologue_cache): Update.
12479 (arm_gdbarch_init): Update.
12480
12481 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12482
12483 * stabsread.c (update_method_name_from_physname): Call complaint()
12484 instead of error.
12485
12486 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12487
12488 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12489 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12490 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12491
12492 * blockframe.c: Include "gdbcmd.h" and "command.h".
12493 (backtrace_below_main): New variable.
12494 (file_frame_chain_valid, func_frame_chain_valid)
12495 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12496 (generic_func_frame_chain_valid): Remove functions.
12497 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12498 (_initialize_blockframe): New function.
12499 * Makefile.in (blockframe.o): Update dependencies.
12500 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12501 comment. Call frame_chain_valid ().
12502 * frame.h: Remove old prototypes. Add prototype for
12503 frame_chain_valid and update comments to match.
12504 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12505 Remove old comment.
12506 * gdbarch.h: Regenerated.
12507 * gdbarch.c: Regenerated.
12508
12509 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12510 set_gdbarch_frame_chain_valid.
12511 * avr-tdep.c (avr_gdbarch_init): Likewise.
12512 * cris-tdep.c (cris_gdbarch_init): Likewise.
12513 * frv-tdep.c (frv_gdbarch_init): Likewise.
12514 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12515 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12516 (i386_nw_init_abi): Likewise.
12517 (i386_gdbarch_init): Likewise.
12518 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12519 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12520 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12521 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12522 * mips-tdep.c (mips_gdbarch_init): Likewise.
12523 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12524 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12525 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12526 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12527 * s390-tdep.c (s390_gdbarch_init): Likewise.
12528 * sh-tdep.c (sh_gdbarch_init): Likewise.
12529 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12530 * v850-tdep.c (v850_gdbarch_init): Likewise.
12531 * vax-tdep.c (vax_gdbarch_init): Likewise.
12532 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12533
12534 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12535 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12536 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12537 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12538 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12539 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12540 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12541 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12542
12543 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12544
12545 * Makefile.in (acconfig_h): Remove incorrect macro.
12546 (config_h): Define.
12547 (osabi.o): Update dependencies.
12548 * configure.tgt: Set gdb_osabi based on target triplet.
12549 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12550 * configure: Regenerated.
12551 * config.in: Regenerated.
12552 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12553 (GDB_OSABI_DEFAULT): Define if not already defined.
12554 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12555 (set_osabi_string): New variables.
12556 (gdbarch_register_osabi): Add new OS ABI to
12557 gdb_osabi_available_names.
12558 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12559 (set_osabi, show_osabi): New functions.
12560 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12561
12562 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12563
12564 * arch-utils.c (gdbarch_info_init): Set osabi to
12565 GDB_OSABI_UNINITIALIZED.
12566 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12567 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12568 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12569 * gdbarch.c: Regenerated.
12570 * gdbarch.h: Regenerated.
12571 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12572 there's no BFD.
12573 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12574 * osabi.h (enum gdb_osabi): Move to defs.h.
12575 (gdbarch_init_osabi): Update prototype.
12576 * defs.h (enum gdb_osabi): Moved here.
12577 * Makefile.in: Update dependencies.
12578
12579 * alpha-tdep.h: Don't include "osabi.h".
12580 (struct gdbarch_tdep): Remove osabi member.
12581 * alpha-tdep.c: Include "osabi.h".
12582 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12583 iterate over arches. Update call to gdbarch_init_osabi.
12584 (alpha_dump_tdep): Don't dump osabi.
12585 * alpha-linux-tdep.c: Include "osabi.h".
12586 * alpha-osf1-tdep.c: Include "osabi.h".
12587 * alphafbsd-tdep.c: Include "osabi.h".
12588 * alphanbsd-tdep.c: Include "osabi.h".
12589
12590 * arm-tdep.h: Don't include "osabi.h".
12591 (struct gdbarch_tdep): Remove osabi member.
12592 * arm-tdep.c: Include "osabi.h".
12593 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12594 iterate over arches. Update call to gdbarch_init_osabi.
12595 (arm_dump_tdep): Don't dump osabi.
12596 * arm-linux-tdep.c: Include "osabi.h".
12597 * armnbsd-tdep.c: Include "osabi.h".
12598
12599 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12600 Update call to gdbarch_init_osabi.
12601
12602 * i386-tdep.h: Don't include "osabi.h".
12603 (struct gdbarch_tdep): Remove osabi member.
12604 * i386-tdep.c: Include "osabi.h".
12605 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12606 iterate over arches. Update call to gdbarch_init_osabi.
12607 (i386_dump_tdep): Don't dump osabi.
12608 * i386-linux-tdep.c: Include "osabi.h".
12609 * i386-sol2-tdep.c: Include "osabi.h".
12610 * i386bsd-tdep.c: Include "osabi.h".
12611 * i386gnu-tdep.c: Include "osabi.h".
12612 * i386ly-tdep.c: Include "osabi.h".
12613 * i386nbsd-tdep.c: Include "osabi.h".
12614 * i386obsd-tdep.c: Include "osabi.h".
12615
12616 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12617 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12618 check osabi when iterating over arches. Update call to
12619 gdbarch_init_osabi.
12620 (mips_dump_tdep): Don't dump osabi.
12621
12622 * ns32k-tdep.h: Don't include "osabi.h".
12623 (struct gdbarch_tdep): Remove.
12624 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12625 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12626 allocate tdep. Update call to gdbarch_init_osabi.
12627 (ns32k_dump_tdep): Remove.
12628 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12629 * ns32knbsd-tdep.c: Include "osabi.h".
12630
12631 * ppc-tdep.h: Don't include "osabi.h".
12632 (struct gdbarch_tdep): Remove osabi member.
12633 * rs6000-tdep.c: Include "osabi.h".
12634 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12635 osabi when iterating over arches. Update call to
12636 gdbarch_init_osabi.
12637 (rs6000_dump_tdep): Don't dump osabi.
12638 * ppc-linux-tdep.c: Include "osabi.h".
12639 * ppcnbsd-tdep.c: Include "osabi.h".
12640
12641 * sh-tdep.h: Don't include "osabi.h".
12642 (struct gdbarch_tdep): Remove osabi member.
12643 * sh-tdep.c: Include "osabi.h".
12644 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12645 iterate over arches. Update call to gdbarch_init_osabi.
12646 (sh_dump_tdep): Don't dump osabi.
12647 * shnbsd-tdep.c: Include "osabi.h".
12648
12649 * sparc-tdep.c: Include "osabi.h".
12650 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12651 iterate over arches. Update call to gdbarch_init_osabi.
12652 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12653 tdep structure.
12654
12655 * vax-tdep.h: Don't include "osabi.h".
12656 (struct gdbarch_tdep): Remove.
12657 * vax-tdep.c: Include "osabi.h".
12658 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12659 iterate over arches. Don't allocate tdep. Update call
12660 to gdbarch_init_osabi.
12661 (vax_dump_tdep): Remove.
12662 (_initialize_vax_tdep): Update call to gdbarch_register.
12663
12664 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12665
12666 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12667 entirely.
12668 (breakpoint_re_set_one): Don't fetch the value for a disabled
12669 watchpoint.
12670
12671 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12672
12673 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12674 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12675 (COERCE_FLOAT_TO_DOUBLE): Remove.
12676 * gdbarch.c: Regenerate.
12677 * gdbarch.h: Regenerate.
12678 * Makefile.in: Remove value_h from gdbarch_h.
12679 * valops.c (coerce_float_to_double): New variable.
12680 (default_coerce_float_to_double): Remove.
12681 (standard_coerce_float_to_double): Remove.
12682 (value_arg_coerce): Use coerce_float_to_double.
12683 (_initialize_valops): Add "set coerce-float-to-double".
12684 * value.h (default_coerce_float_to_double): Remove prototype.
12685 (standard_coerce_float_to_double): Remove prototype.
12686
12687 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12688 prototyped.
12689 * mdebugread.c (parse_symbol): Likewise.
12690 * stabsread.c (define_symbol): Mark all functions as prototyped.
12691
12692 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12693 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12694 set_gdbarch_coerce_float_to_double.
12695 * arm-tdep.c (arm_gdbarch_init): Likewise.
12696 * frv-tdep.c (frv_gdbarch_init): Likewise.
12697 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12698 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12699 * mips-tdep.c (mips_gdbarch_init): Likewise.
12700 (mips_coerce_float_to_double): Remove.
12701 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12702 (rs6000_coerce_float_to_double): Remove.
12703 * s390-tdep.c (s390_gdbarch_init): Likewise.
12704 * sh-tdep.c (sh_gdbarch_init): Likewise.
12705 (sh_coerce_float_to_double): Remove.
12706 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12707 (sparc_coerce_float_to_double): Remove.
12708 * v850-tdep.c (v850_gdbarch_init): Likewise.
12709 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12710 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12711 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12712 (hppa_coerce_float_to_double): Remove prototype.
12713 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12714
12715 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12716
12717 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12718
12719 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12720
12721 Suggested by Stewart Brown <sb24@avaya.com>:
12722 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12723 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12724 (c_type_print_varspec_suffix): Likewise.
12725
12726 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12727
12728 * configure.in: Don't set and AC_SUBST SUBDIRS.
12729 * configure: Regenerated.
12730
12731 * configure.in: Remove code dealing with shared libraries.
12732 * Makefile.in: Remove HLDFLAGS and HLDENV.
12733 * configure: Regenerated.
12734
12735 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12736
12737 * frame.c (deprecated_frame_xmalloc): New function.
12738 (deprecated_set_frame_saved_regs_hack): New function.
12739 (deprecated_set_frame_extra_info_hack): New function.
12740 * frame.h (deprecated_frame_xmalloc): Declare.
12741 (deprecated_set_frame_saved_regs_hack): Declare.
12742 (deprecated_set_frame_extra_info_hack): Declare.
12743
12744 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12745
12746 * configure.in: Move code that provides the --enable-gdbtk option
12747 right after the code that handles the --enable-tui option, and
12748 polish it somewhat.
12749 * configure: Regenerated.
12750
12751 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12752 AC_CHECK_FUNCS and remove the old check for pread64.
12753 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12754 * acconfig.h (_GNU_SOURCE): Add.
12755 (HAVE_PREAD64): Remove.
12756 * configure, aclocal.m4, config.in: Regenerated.
12757
12758 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12759
12760 * alpha-tdep.c: Use get_frame_saved_regs.
12761 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12762 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12763 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12764 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12765 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12766
12767 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12768
12769 * configure.in: Remove all use of the SUBDIRS variable; add
12770 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12771 code providing the --enable-multi-ice option, and move it right in
12772 front of the code that checks whether gdbserver is supported.
12773 Polish that too.
12774 * configure: Regenerated.
12775 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12776 @SUBDIRS@.
12777
12778 2003-01-03 Andrew Cagney <cagney@redhat.com>
12779
12780 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12781 * avr-tdep.c, cris-tdep.c: Ditto.
12782 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12783 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12784
12785 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12786
12787 * configure.in: Remove --enable-netrom option.
12788 * configure: Regenerated.
12789
12790 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12791
12792 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12793 declaration for `struct re_pattern_buffer' instead.
12794 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12795
12796 2003-01-03 J. Brobecker <brobecker@gnat.com>
12797
12798 * mdebugread.c (parse_symbol): Count until the stEnd matching
12799 the structure name.
12800
12801 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12802
12803 * configure.in: Remove --with-cpu option.
12804 subscripts. Remove evil changequotes here.
12805 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12806 * config.in, configure: Regenerated.
12807
12808 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12809 * configure.in: Cleanup section that sources GDB and BFD configure
12810 subscripts. Remove evil changequotes here.
12811 * config.in, configure: Regenerated.
12812
12813 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12814
12815 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12816 frame accessor methods.
12817 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12818 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12819 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12820 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12821 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12822 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12823 * z8k-tdep.c: Ditto.
12824
12825 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12826
12827 * configure.in: Remove UI_OUT configuration code.
12828 * ada-lang.c: Update assuming UI_OUT is always true.
12829 * Makefile.in (UIOUT_CFLAGS): Remove.
12830 * configure: Regenerated.
12831 * TODO: Remove blurb about elimination of -DUI_OUT.
12832
12833 * configure.in: Move code that provides the --enable-gdbcli,
12834 --enable-gdbmi options right before the code that handles the
12835 --enable-tui option. Polish a bit.
12836 * configure: Regenerated.
12837
12838 * configure.in: Rewrite check for GNU regex and the
12839 --without-included regex option, and move it into the "Checks for
12840 library functions" section. This makes us use the system regex
12841 again by default on systems with version 2 of the GNU C library.
12842 This was apparently broken.
12843 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12844 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12845 * config.in, configure: Regenerated.
12846
12847 * configure.in: Move code that provides the --enable-tui option
12848 before the "Checks for libraries" section. Polish the code
12849 somewhat and set need_curses to yes if we build the TUI. Rewrite
12850 code that looks for a library providing termcap functionality to
12851 match more closely what's done in the Readline library, and move
12852 it into to the "Checks for libraries" section.
12853 * configure: Regenerated.
12854 * Makefile.in (TERMCAP): Remove variable.
12855 * config/i386/go32.mh (TERMCAP): Remove variable.
12856
12857 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12858
12859 * MAINTAINERS: Mention gdb_mbuild.sh.
12860 * gdb_mbuild.sh: Rewrite.
12861
12862 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12863
12864 * configure.in: Fix typo in last change.
12865 * config.in, configure: Regenerated.
12866
12867 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12868
12869 * valarith.c (value_binop): Delete obsolete code and comments.
12870 * configure.host: Ditto.
12871 * buildsym.h (make_blockvector): Ditto.
12872 * buildsym.c (make_blockvector): Ditto.
12873 * defs.h (enum language): Ditto.
12874 (chill_demangle): Ditto.
12875 * elfread.c (elf_symtab_read): Ditto.
12876 * dwarfread.c (CHILL_PRODUCER): Ditto.
12877 (set_cu_language): Ditto.
12878 (handle_producer): Ditto.
12879 * expprint.c (print_subexp): Ditto.
12880 * gdbtypes.c (chill_varying_type): Ditto.
12881 * gdbtypes.h (builtin_type_chill_bool): Ditto.
12882 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
12883 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
12884 (chill_varying_type): Ditto.
12885 * language.h (_LANG_chill): Ditto.
12886 * language.c (binop_result_type, integral_type): Ditto.
12887 (character_type, string_type, structured_type): Ditto.
12888 (lang_bool_type, binop_type_check): Ditto.
12889 * stabsread.h (os9k_stabs): Ditto.
12890 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
12891 (define_symbol, read_type, read_struct_fields): Ditto.
12892 (read_array_type, read_enum_type, read_huge_number): Ditto.
12893 (read_range_type, start_stabs): Ditto.
12894 * symfile.c (init_filename_language_table): Ditto.
12895 (add_psymbol_with_dem_name_to_list): Ditto.
12896 * symtab.c (symbol_init_language_specific): Ditto.
12897 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
12898 * symtab.h (struct general_symbol_info): Ditto.
12899 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
12900 * typeprint.c (typedef_print): Ditto.
12901 * utils.c (fprintf_symbol_filtered): Ditto.
12902 * valops.c (value_cast, search_struct_field, value_slice): Delete
12903 obsolete code.
12904 (varying_to_slice): Delete function.
12905 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
12906 (varying_to_slice): Delete declaration.
12907 * MAINTAINERS: Update.
12908
12909 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12910
12911 * configure.in: Reorganize "Checks for library functions section"
12912 a bit. Remove check for `btowc' and `isascii' functions.
12913 * configure: Regenerated.
12914
12915 * acconfig.h (_MSE_INT_H): Remove.
12916 * configure.in: Create "Checks for header files" section, and move
12917 appropriate tests there. Don't check for objlist.h, wchar.h,
12918 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12919 misdetection fix. Also add "Checks for types", "Checks for
12920 compiler characteristics" and "Checks for library functions"
12921 sections.
12922 * config.in, configure: Regenerated.
12923
12924 * configure.in: Create "Checks for programs" section, and move
12925 appropriate tests there.
12926
12927 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12928
12929 * configure.in: Create "Checks for libraries" section, and move
12930 appropriate tests there. Cleanup check for wctype in libw. Use
12931 AC_SEARCH_LIBS to see whether we need libsocket.
12932 * configure: Regenerated.
12933
12934 For older changes see ChangeLog-2002
12935 \f
12936 Local Variables:
12937 mode: change-log
12938 left-margin: 8
12939 fill-column: 74
12940 version-control: never
12941 End:
This page took 0.284981 seconds and 5 git commands to generate.