1 2003-10-11 Mark Kettenis <kettenis@gnu.org>
3 * gdbarch.sh (regset_from_core_section): New method.
4 (struct regset): Declare opaque.
5 * gdbarch.c, gdbarch.h: Regenerated.
7 2003-10-11 Alan Modra <amodra@bigpond.net.au>
9 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
10 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
11 Correct test for pc within section.
13 2003-10-11 Mark Kettenis <kettenis@gnu.org>
15 * gdbarch.sh: Remove trailing whitepsace from comments.
17 2003-10-08 Roland McGrath <roland@redhat.com>
19 * gcore.c (make_mem_sec): Function removed, folded into ...
20 (gcore_create_callback): ... here. To omit a section, clear its
21 SEC_LOAD bit rather than zeroing its size.
22 Omit read-only sections only if they correspond to a known disk file.
23 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
25 2003-10-10 Michael Snyder <msnyder@redhat.com>
27 * d10v-tdep.c: Fix typo in comment.
29 2003-10-10 Andrew Cagney <cagney@redhat.com>
31 * rs6000-tdep.c (e500_store_return_value): Delete function.
32 (e500_extract_return_value): Delete function.
33 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
34 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
35 "ppc_sysv_abi_restore_return_value" where applicable.
36 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
37 (ppc_sysv_abi_extract_return_value): Declare.
38 (ppc_sysv_abi_broken_store_return_value): Declare.
39 (ppc_sysv_abi_broken_extract_return_value): Declare.
40 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
41 * ppc-sysv-tdep.c (return_value_convention): Move definition to
43 (do_ppc_sysv_return_value): New function.
44 (ppc_sysv_abi_extract_return_value): New function.
45 (ppc_sysv_abi_store_return_value): New function.
46 (ppc_sysv_abi_broken_extract_return_value): New function.
47 (ppc_sysv_abi_broken_store_return_value): New function.
48 (ppc_sysv_abi_use_struct_convention): Call
49 do_ppc_sysv_return_value.
51 2003-10-10 J. Brobecker <brobecker@gnat.com>
53 * blockframe.c (inside_main_func): No longer use symbol_lookup()
54 to lookup the main function symbol.
56 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
58 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
60 (sh_push_dummy_call_fpu): Fix argument passing rules.
61 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
63 (sh3e_sh4_store_return_value): Ditto.
65 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
67 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
70 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
72 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
73 more readable code. Accomodate passing of bitfields.
75 2003-10-10 Andrew Cagney <cagney@redhat.com>
77 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
78 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
79 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
80 * ppc-sysv-tdep.c: Include "gdb_assert.h".
81 (ppc64_sysv_abi_push_dummy_call): New function.
82 (ppc64_sysv_abi_broken_push_dummy_call): New function.
83 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
84 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
86 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
88 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
91 * h8300-tdep.c: Ditto.
92 * remote-e7000.c: Ditto.
93 * remote-hms.c: Ditto.
102 * config/d10v/d10v.mt: Ditto.
103 * config/sh/embed.mt: Ditto.
104 * config/sh/linux.mt: Ditto.
105 * config/sh/tm-linux.h: Ditto.
106 * config/sh/tm-sh.h: Ditto.
107 * config/sh/wince.mt: Ditto.
109 2003-10-09 Andrew Cagney <cagney@redhat.com>
111 * ppc-tdep.h (struct type): Declare opaque.
112 * x86-64-tdep.h (struct regcache): Declare opaque.
113 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
116 2003-10-09 Andrew Cagney <cagney@redhat.com>
118 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
119 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
120 (SOFTWARE_SINGLE_STEP_P): Ditto.
121 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
122 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
123 (SOFTWARE_SINGLE_STEP_P): Ditto.
124 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
125 software_single_step to rs6000_software_single_step.
127 2003-10-09 Andrew Cagney <cagney@redhat.com>
129 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
131 2003-10-09 Michael Snyder <msnyder@redhat.com>
133 * frame.h: Fix typo in comment.
134 * dummy-frame.c: Fix typo in comment.
135 * d10v-tdep.c: Random whitespace/comment tweaks.
137 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
139 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
140 (sh_push_dummy_code): Delete function, it's only used for dummy calls
143 Based on input by Stephen Clarke (stephen.clarke@superh.com):
144 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
147 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
149 * remote-mips.c (mips_initialize): Remove unneeded call to
150 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
152 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
154 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
157 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
159 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
160 for any lwp we resume.
161 (running_callback): Add lwps that have pending status events
162 against them to be considered running.
164 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
166 * m32r-tdep.c : Include "dis-asm.h".
167 * Makefile.in (m32r-tdep.o): Update dependencies.
169 2003-10-06 J. Brobecker <brobecker@gnat.com>
171 * completer.h (get_gdb_completer_word_break_characters): Delete.
172 * completer.c: include language.h.
173 (gdb_completer_word_break_characters): Delete.
174 (get_gdb_completer_word_break_characters): Delete.
175 (location_completer): Use the word break characters of the current
177 (complete_line): Likewise.
178 (line_completion_function): Likewise.
179 (skip_quoted_chars): Likewise.
180 * Makefile.in (completer.o): Add dependency on language.h.
181 * top.c (init_main): Set the readline word break characters
182 to GDB's default word break characters.
184 2003-10-06 J. Brobecker <brobecker@gnat.com>
186 * language.h (language_defn): new field, la_word_break_characters.
187 * language.c (unknown_language_defn): Set new field to
188 default_word_break_characters.
189 (auto_language_defn): Likewise.
190 (local_language_defn): Likewise.
191 * ada-lang.c (ada_language_defn): Likewise.
192 * c-lang.c (c_language_defn): Likewise.
193 (cplus_language_defn): Likewise.
194 (asm_language_defn): Likewise.
195 (minimal_language_defn): Likewise.
196 * f-lang.c (f_language_defn): Likewise.
197 * jv-lang.c (java_language_defn): Likewise.
198 * m2-lang.c (m2_language_defn): Likewise.
199 * objc-lang.c (objc_language_defn): Likewise.
200 * p-lang.c (pascal_language_defn): Likewise.
201 * scm-lang.c (scm_language_defn): Likewise.
203 2003-10-06 Andrew Cagney <cagney@redhat.com>
205 * ppc-sysv-tdep.c: Re-indent.
207 2003-10-06 J. Brobecker <brobecker@gnat.com>
209 * language.h (default_word_break_characters): Add prototype.
210 * language.c (default_word_break_characters): New function.
212 2003-10-06 Andreas Schwab <schwab@suse.de>
214 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
217 2003-10-06 Andrew Cagney <cagney@redhat.com>
219 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
221 (z8k-tdep.o): Delete custom build rule.
223 2003-10-06 Andrew Cagney <cagney@redhat.com>
225 * Makefile.in: Update all dependencies.
227 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
228 No longer list PA as as obsolete candidate. List m32r as
229 broken instead of obsolete.
231 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
232 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
233 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
234 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
235 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
236 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
237 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
238 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
239 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
240 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
241 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
242 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
243 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
244 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
245 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
246 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
247 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
248 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
249 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
250 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
251 * config/z8k/z8k.mt: Ditto.
253 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
254 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
255 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
256 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
257 sparclite were removed.
258 * configure.host, configure.tgt: Remove corresponding tuples.
260 * breakpoint.c, breakpoint.h: Remove obsolete code.
261 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
262 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
263 * stabsread.h, xcoffread.c: Ditto.
265 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
266 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
267 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
268 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
270 2003-10-06 David Lecomber <dsl@sources.redhat.com>
272 * f-valprint.c: Reformatting
274 2003-10-06 Mark Kettenis <kettenis@gnu.org>
276 * x86-64-tdep.c: Remove duplicate comment.
278 * x86-64-tdep.c (x86_64_store_return_value): Don't use
279 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
280 names for return values. This fixes a bug since we looked at %rbx
283 2003-10-05 Mark Kettenis <kettenis@gnu.org>
285 * x86-64-tdep.c: Include "regset.h".
287 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
288 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
290 * i386-tdep.c: Include "regset.h".
291 (i386_supply_gregset): New function.
292 (i386_supply_fpregset): New function.
293 (i386_gdbarch_init): Initialze register set-related members of
295 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
296 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
298 2003-10-03 Andrew Cagney <cagney@redhat.com>
300 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
301 set extract_return_value, store_return_value and
302 use_struct_convention to ppc64_sysv_abi_extract_return_value,
303 ppc64_sysv_abi_store_return_value and
304 ppc64_sysv_abi_use_struct_convention.
305 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
306 (ppc64_sysv_abi_store_return_value): Declare.
307 (ppc64_sysv_abi_use_struct_convention): Declare.
308 * ppc-sysv-tdep.c (enum return_value_convention): Define.
309 (ppc64_sysv_abi_extract_return_value): New function.
310 (ppc64_sysv_abi_store_return_value): New function.
311 (ppc64_sysv_abi_use_struct_convention): New function.
312 (ppc64_sysv_abi_return_value): New function.
314 2003-10-03 Andrew Cagney <cagney@redhat.com>
316 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
317 convert a descriptor to a function when it's in the ".opd"
320 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
322 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
323 reg_size to keep GCC silent.
325 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
327 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
328 base for DW_EH_PE_textrel encodings.
329 (read_encoded_value): Add a DW_EH_PE_textrel case.
330 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
333 2003-10-03 Mark Kettenis <kettenis@gnu.org>
335 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
337 2003-10-02 Andrew Cagney <cagney@redhat.com>
339 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
341 * gdbarch.h, gdbarch.c: Re-generate.
342 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
343 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
344 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
345 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
346 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
347 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
348 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
349 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
350 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
351 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
352 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
353 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
354 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
355 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
356 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
357 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
359 2003-10-02 Jim Blandy <jimb@redhat.com>
361 * dwarf2read.c (struct die_info): Doc fix.
363 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
365 * sh-tdep.c: Running thru gdb_indent.sh.
367 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
369 * sh-tdep.c (sh_justify_value_in_reg): New function.
370 (sh_stack_allocsize): Ditto.
371 (flt_argreg_array): New array used for floating point argument
373 (sh_init_flt_argreg): New function.
374 (sh_next_flt_argreg): Ditto.
375 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
376 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
377 Fix argument passing strategy.
378 (sh_push_dummy_call_nofpu): Ditto.
380 2003-10-01 Andrew Cagney <cagney@redhat.com>
382 * value.h (register_value_being_returned): Declare. Replace
383 "value_being_returned".
384 * infcall.c (call_function_by_hand): Use
385 register_value_being_returned.
386 * infcmd.c (print_return_value): Call
387 "register_value_being_returned", handle struct return locally.
388 * values.c (register_value_being_returned): New function. Replace
389 "value_being_returned".
391 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
393 * linux-proc.c (linux_do_registers): New function.
394 (linux_make_note_section): Use linux_do_registers in case of
395 single threaded inferior programs.
397 2003-10-01 Andrew Cagney <cagney@redhat.com>
399 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
400 use STRUCT_ADDR. When not using "struct return convention", pass
401 "0" to "value_being_returned". Add FIXMEs.
402 * infcmd.c (print_return_value): Pass an explicit 0/1 to
403 value_being_returned. Add comments.
404 * values.c (value_being_returned): Add fixme.
405 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
406 (hppa_value_returned_from_stack): Add FIXME.
408 2003-09-30 David Carlton <carlton@kealia.com>
410 * dwarf2read.c (struct die_info): Add 'parent' field; replace
411 'has_children' and 'next' by 'child' and 'sibling'.
412 (read_comp_unit): Rework algorithm, breaking body into
413 read_die_and_children and read_die_and_siblings.
414 (read_die_and_children, read_die_and_siblings): New.
415 (read_full_die): Add 'has_children' argument; set it instead of
416 the die's 'has_children' field. Minor formatting cleanup.
417 (free_die_list): Use die->child and die->sibling instead of
419 (dump_die_list): Ditto.
420 (sibling_die): Use die->sibling.
421 (psymtab_to_symtab_1): Use die's 'child' field in place of its
422 'has_children' and 'next' fields.
423 (process_die, read_file_scope, read_func_scope)
424 (read_lexical_block_scope, read_structure_scope)
425 (read_enumeration, read_array_type, read_common_block)
426 (read_namespace, read_subroutine_type, dump_die): Ditto.
428 2003-09-30 Andrew Cagney <cagney@redhat.com>
430 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
433 2003-09-30 Andrew Cagney <cagney@redhat.com>
435 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
436 REGISTER_VIRTUAL_SIZE.
437 * gdbarch.h, gdbarch.c: Regenerate.
438 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
439 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
440 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
442 2003-09-29 Andrew Cagney <cagney@redhat.com>
444 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
445 DEPRECATED_REGISTER_VIRTUAL_TYPE.
446 * gdbarch.h, gdbarch.c: Regenerate.
447 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
448 * sh64-tdep.c, sparc-tdep.c: Update.
450 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
451 * remote-vxmips.c (vx_read_register): Ditto.
452 * remote-vx68.c (vx_read_register): Ditto.
453 * gnu-nat.c (inf_validate_procs): Ditto.
455 2003-09-29 J. Brobecker <brobecker@gnat.com>
457 * infcall.c (call_function_by_hand): Fix build failure
458 introduced in the previous change to this file.
460 2003-09-29 Andrew Cagney <cagney@redhat.com>
462 * NEWS: Mention Objective-C.
464 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
466 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
467 test if the register has been saved on the stack.
468 (arm_scan_prologue_cache): When analysing the instruction
469 "str lr, [sp, #-4]", save the address where lr has been stored.
471 2003-09-28 Andrew Cagney <cagney@redhat.com>
473 * frame.c (frame_read_unsigned_register): Delete function.
474 * frame.h (frame_read_unsigned_register): Delete declaration.
475 * sparc-tdep.c (sparc_init_extra_frame_info): Use
476 get_frame_register_unsigned.
477 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
478 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
479 * d10v-tdep.c (d10v_print_registers_info): Ditto.
481 * frame.h (frame_read_register): Delete declaration.
482 * frame.c (frame_read_register): Delete function.
483 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
484 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
485 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
486 * mips-tdep.c (mips_register_to_value): Ditto.
487 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
488 * d10v-tdep.c (d10v_print_registers_info): Ditto.
490 * frame.c (frame_read_signed_register): Delete function.
491 (frame_read_unsigned_register): Update comments.
492 * frame.h (frame_read_signed_register): Delete declaration.
493 * h8300-tdep.c (h8300_print_register): Use
494 get_frame_register_signed.
495 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
497 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
498 Rename VALUE_RETURNED_FROM_STACK.
499 * infcmd.c (print_return_value): Update.
500 * infcall.c (call_function_by_hand): Update.
502 2003-09-28 Mark Kettenis <kettenis@gnu.org>
504 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
505 regcache argument and reverse the order of the other two
506 arguments. Remove local regcache variable. Determine
507 architecture from REGCACHE. Update comments.
508 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
509 reverse the order of the other two arguments. Remove local
510 regcache variable. Determine architecture from REGCACHE. Update
512 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
513 prototypes. Update comments.
514 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
516 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
518 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
519 * i386-interix-nat.c (supply_fpregset): Update.
520 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
521 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
522 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
523 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
524 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
526 * i386obsd-tdep.c (fetch_core_registers): Update.
527 * i386v4-nat.c (supply_fpregset): Update.
528 * x86-64-linux-nat.c (supply_fpregset): Update.
529 * x86-64-linux-tdep.c (fetch_core_registers): Update.
531 2003-09-27 Mark Kettenis <kettenis@gnu.org>
533 * i386-tdep.h: Put opaque declarations in alphabetical
534 order. Remove spurious whitespace.
535 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
536 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
537 * i386-tdep.c (MM0_REGNUM): Remove define.
538 (i386_mmx_regnum_p): Add gdbarch argument.
539 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
540 Rewrite using new macro definitions for FPU/SSE registers.
541 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
542 definitions from i387-tdep.h.
543 (i386_register_name): Update.
544 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
545 new macro definitions for FPU/SSE registers.
546 (i386_extract_return_value): Determine whether floating-point
547 registers are present by examining REGCACHE's architecture.
548 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
549 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
551 (i386_register_type): Update.
552 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
553 definitions for FPU registers. Use REGCACHE's architecture to
554 determine the appropriate register numbers.
555 (i386_pseudo_register_read, i386_pseudo_register_write,
556 i386_register_reggroup_p): Update.
557 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
559 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
560 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
561 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
562 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
563 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
564 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
566 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
567 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
568 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
569 definitions for FPU/SSE registers.
570 (FXSAVE_MXCSR_ADDR): New define.
571 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
573 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
574 (I387_ST0_REGNUM): Define.
576 * regcache.h (get_regcache_arch): New prototype.
577 * regcache.c (get_regcache_arch): New function.
579 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
582 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
583 Initialize using ARRAY_SIZE.
585 2003-09-27 Andrew Cagney <cagney@redhat.com>
587 * arch-utils.c (deprecated_init_frame_pc_default): Rename
588 "init_frame_pc_default".
589 * arch-utils.h (deprecated_init_frame_pc_default): Update.
590 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
591 * vax-tdep.c (vax_gdbarch_init): Update.
592 * v850-tdep.c (v850_gdbarch_init): Update.
593 * sh64-tdep.c (sh64_gdbarch_init): Update.
594 * s390-tdep.c (s390_gdbarch_init): Update.
595 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
596 * mcore-tdep.c (mcore_gdbarch_init): Update.
597 * h8300-tdep.c (h8300_gdbarch_init): Update.
598 * cris-tdep.c (cris_gdbarch_init): Update.
599 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
601 2003-09-26 Mark Kettenis <kettenis@gnu.org>
603 * regset.h: New file.
604 * Makefile.in (regset_h): Add.
606 2003-09-25 Andrew Cagney <cagney@redhat.com>
608 * frame.h (deprecated_frame_saved_regs): Rename
609 get_frame_saved_regs.
610 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
611 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
612 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
613 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
614 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
616 2003-09-25 Andrew Cagney <cagney@redhat.com>
618 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
619 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
621 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
622 arm*-*-* do not use the new frame code.
624 2003-09-25 David Carlton <carlton@kealia.com>
626 * c-exp.y: Remove 'register' declarations.
627 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
629 2003-09-25 David Carlton <carlton@kealia.com>
631 * c-exp.y: Include cp-support.h. Add qualified_type.
632 (yylex): Delete nested type hack; add comments.
633 * cp-namespace.c (cp_lookup_nested_type): New function.
634 * cp-support.h: Declare cp_lookup_nested_type.
635 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
636 instead of value_struct_elt_for_reference.
637 * valops.c: Include cp-support.h.
638 (value_aggregate_elt): New function.
639 (value_namespace_elt): Ditto.
640 (value_struct_elt_for_reference): Make static.
641 * value.h: Delete declaration of value_struct_elt_for_reference;
642 add declaration for value_aggregate_elt.
643 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
646 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
648 * stack.c: Include "reggroups.h".
649 (frame_info): Only display registers in all_reggroup.
650 * Makefile.in (stack.o): Update dependencies.
652 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
654 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
655 "add ip, sp #n" in the prologue.
656 (arm_scan_prologue): Ditto.
658 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
660 * MAINTAINERS (write after approval): Add myself.
662 2003-09-25 Andreas Schwab <schwab@suse.de>
664 * m68k-tdep.c: Include "dwarf2-frame.h".
665 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
666 * Makefile.in (m68k-tdep.o): Update dependencies.
668 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
670 * sh-tdep.c (struct frame_extra_info): Remove.
671 (struct sh_frame_cache): New structure.
672 (GET_SOURCE_REG): New macro extracting source register of an opcode.
673 (GET_TARGET_REG): Ditto but target register.
674 (GET_PUSHED_REG): Remove.
675 (IS_MOV_ARG_TO_REG): New macro.
676 (IS_MOV_ARG_TO_IND_R14): New macro.
677 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
678 (IS_MOVW_PCREL_TO_REG): New macro.
679 (IS_MOVL_PCREL_TO_REG): New macro.
680 (IS_SUB_REG_FROM_SP): New macro.
681 (IS_ARG_MOV): Remove.
682 (IS_MOV_TO_R14): Remove.
683 (IS_RESTORE_FP): New macro.
686 (IS_MOV_FP_SP): New macro.
687 (IS_ADD_REG_TO_FP): New macro.
688 (IS_ADD_IMM_FP): New macro.
689 (sh_skip_prologue_hard_way): Remove.
690 (sh_saved_pc_after_call): Remove.
691 (sh_frame_chain): Remove.
692 (sh_find_callers_reg): Remove.
693 (sh_nofp_frame_init_saved_regs): Remove.
694 (sh_fp_frame_init_saved_regs): Remove.
695 (sh_init_extra_frame_info): Remove.
696 (sh_analyze_prologue): New function.
697 (sh_skip_prologue): Remove deprecated code. Rely on new function
698 sh_analyze_prologue when after_prologue fails.
699 (sh_frame_saved_pc): Remove.
700 (sh_alloc_frame_cache): New function.
701 (sh_frame_cache): Ditto.
702 (sh_frame_prev_register): Ditto.
703 (sh_frame_this_id): Ditto.
704 (sh_frame_unwind): New structure defining the heuristic frame
706 (sh_frame_sniffer): New function.
707 (sh_unwind_sp): Ditto.
708 (sh_unwind_pc): Ditto.
709 (sh_unwind_dummy_id): Ditto.
710 (sh_frame_base_address): Ditto.
711 (sh_frame_base): New structure defining new frame base code.
712 (sh_in_function_epilogue_p): New function.
713 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
714 code and to call all new code instead. Initialize dwarf2 and
715 heuristic frame sniffer.
717 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
719 * parser-defs.h (struct exp_descriptor): New definition, containing
720 language-specific info for printing, prefixifying, dumping, and
721 evaluating expressions.
722 (exp_descriptor_standard): Declare new variable.
723 (print_subexp): Make global and declare here (from expprint.c).
724 (dump_subexp): Ditto.
725 (dump_subexp_body_standard): Declare.
726 (operator_length_standard): Declare.
727 (op_name_standard): Declare.
728 (print_subexp): Declare.
729 (print_subexp_standard): Declare.
731 * language.h (struct language_defn): Add la_exp_desc field to hold
732 pointer to table for language-specific operators.
733 Remove evaluate_exp field, which is now in struct exp_descriptor.
735 * parse.c (operator_length): Move most code to new
736 operator_length_standard function. Use language-specific information.
737 (operator_length_standard): New function taking most code from
739 (exp_descriptor_standard): New constant.
741 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
742 and OP_EXTENDED_LAST.
744 * expprint.c (print_subexp): Use language-specific print_subexp.
745 Make global; remove static declaration.
746 Move most code to print_subexp_standard.
747 (print_subexp_standard): New function, containing code formerly in
749 (op_name): Add expression to argument signature.
750 Use langauge-specific op_name.
751 Move most code to op_name_standard.
752 (op_name_standard): New function, containing code formerly in op_name.
753 (dump_subexp): Use new version of op_name function.
754 Use language-specific dump_subexp_body, and move most existing code to
755 dump_subexp_body_standard.
756 (dump_raw_expression): Use new op_name interface.
757 (dump_subexp_body): Move most code to dump_subexp_body_standard.
758 (dump_subexp_body_standard): New function, containing code formerly
761 * language.c (unknown_language): Add default la_exp_desc field and
762 remove evaluate_exp field.
763 (auto_language): Ditto.
764 (local_language): Ditto.
765 * f-lang.c (f_language_defn): Ditto.
766 * c-lang.c (c_language_defn): Ditto.
767 (cplus_language_defn): Ditto.
768 (asm_language_defn): Ditto.
769 (minimal_language_defn): Ditto.
770 * p-lang.c (pascal_language_defn): Ditto.
771 * m2-lang.c (m2_language_defn): Ditto.
772 * objc-lang.c (objc_language_defn): Ditto.
774 * jv-lang.c (exp_descriptor_java): New variable, containing
775 Java-specific expression evaluator.
776 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
778 * scm-lang.c (exp_descriptor_scm): New variable, containing
779 Scheme-specific expression evaluator.
780 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
782 * objc-lang.c (print_object_command): Take evaluate_exp from the
785 * Makefile.in (eval.o): Add dependency on parser-defs.h.
787 * eval.c: Include parser-defs.h for the full declaration of
789 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
791 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
793 * parser-defs.h (operator_length): Declare.
795 * parse.c (length_of_subexp): Use operator_length to get operator
796 lengths and arities for operators.
797 Move most code to new operator_length function.
798 (operator_length): New function absorbing most code from
800 (prefixify_subexp): Remove large case and use operator_length instead.
801 (parse_exp_1): Use renamings:
802 dump_prefix_expression => dump_raw_expression and
803 dump_postfix_expression => dump_prefix_expression.
805 * expression.h (dump_prefix_expression): Rename to ...
806 (dump_raw_expression): New name.
807 (dump_postfix_expression): Rename to ...
808 (dump_prefix_expression): New name.
810 * expprint.c (dump_subexp): Make global. Add comment.
811 Move most existing code to dump_subexp_body.
812 (dump_subexp_body): New function.
813 (dump_prefix_expression): Rename to dump_raw_expression.
814 Remove attempt to print the expression via print_expression: it can't
815 work before the expression is prefixified.
816 (dump_raw_expression): Renamed from dump_prefix_expression.
817 (dump_postfix_expression): Rename to dump_prefix_expression, since
819 Remove 'note' parameter, since this routine must be used on
820 prefixified expression.
821 (dump_prefix_expression): Renamed from dump_postfix_expression.
823 2003-09-22 Jim Blandy <jimb@redhat.com>
825 * dwarf2read.c (read_array_type): When building the type for an
826 array of unspecified length, make sure to choose the upper bound
827 so that the array's total length comes out to be zero --- that's
828 how we represent such arrays.
830 2003-09-22 Michael Chastain <mec@shout.net>
832 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
834 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
836 * top.c (quit_force): Fix indirect call to quit_target so
837 a struct qt_args pointer is passed.
839 2003-09-22 Andrew Cagney <cagney@redhat.com>
841 * arch-utils.h (init_frame_pc_noop): Delete declaration.
842 * arch-utils.c (init_frame_pc_noop): Delete function.
843 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
845 * mips-tdep.c (mips_gdbarch_init): Ditto.
846 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
847 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
849 (DEPRECATED_INIT_FRAME_PC): Delete macro.
850 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
852 (DEPRECATED_INIT_FRAME_PC): Delete macro.
854 2003-09-22 Anthony Green <green@redhat.com>
856 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
859 2003-09-20 Andrew Cagney <cagney@redhat.com>
861 * breakpoint.c: Eliminate ARGSUSED.
862 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
863 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
864 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
865 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
866 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
867 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
868 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
869 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
870 * wince.c, remote-vx.c: Ditto.
872 * cli/cli-script.c: Remove "register" attributes.
873 * config/pa/tm-hppa.h: Ditto.
874 * cli/cli-decode.c: Ditto.
875 * cli/cli-cmds.c: Ditto.
877 2003-09-19 Andrew Cagney <cagney@redhat.com>
879 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
880 DEPRECATED_NPC_REGNUM.
881 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
883 2003-09-19 Christopher Faylor <cgf@redhat.com>
885 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
887 2003-09-19 Jim Blandy <jimb@redhat.com>
889 * macrotab.c (macro_include): Use the correct comparison to find
890 the appropriate place for this inclusion in the list.
892 2003-09-19 Andrew Cagney <cagney@redhat.com>
894 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
895 (DEPRECATED_HPUX_TEXT_END): Define.
896 (deprecated_hpux_text_end): Declare.
897 (struct target_ops): Declare opaque.
898 * hppah-nat.c (text_end): Make static.
899 (deprecated_hpux_text_end): New function.
900 * exec.c (text_end): Delete global variable.
901 (NEED_TEXT_START_END): Do not define.
902 (exec_file_attach): Replace code computing "text_end" code with
903 call to DEPRECATED_HPUX_TEXT_END.
905 2003-09-19 Andrew Cagney <cagney@redhat.com>
907 * utils.c (align_up, align_down): New functions.
908 * defs.h (align_up, align_down): Declare.
909 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
910 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
912 (round_up, round_down): Delete functions.
913 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
915 (ROUND_DOWN, ROUND_UP): Delete macros.
916 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
917 * h8300-tdep.c: Replace "round_up" and "round_down" with
918 "align_up" and "align_down".
919 (round_up, round_down): Delete macros.
920 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
922 (ROUND_UP, ROUND_DOWN): Delete macros.
924 2003-09-18 J. Brobecker <brobecker@gnat.com>
926 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
927 hard-coded constant. Use the proper machine name instead.
929 2003-09-17 Andrew Cagney <cagney@redhat.com>
931 * sparc-tdep.c (legacy_register_name): Delete function.
932 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
933 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
934 * infcmd.c (gdb_register_name): Delete variable.
935 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
936 REGISTER_NAME and "tm.h".
937 * gdbarch.h, gdbarch.c: Regenerate.
938 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
939 REGISTER_NAMES in comments.
940 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
941 * m68klinux-nat.c (regmap): Ditto.
943 2003-09-17 Jim Blandy <jimb@redhat.com>
945 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
947 2003-09-17 Andrew Cagney <cagney@redhat.com>
949 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
950 (ppcnbsd_init_abi): Set "use_struct_convention" to
951 "ppcnbsd_use_struct_convention".
953 2003-09-17 Mark Kettenis <kettenis@gnu.org>
955 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
956 * gdbarch.h, gdbarch.c: Regenerate.
957 (stabs_argument_has_addr): New architecture method.
958 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
959 * arch-utils.c: Include "buildsym.h".
960 (default_stabs_argument_has_addr): New function.
961 * stabsread.c (define_symbol): Use stabs_argument_has_addr
962 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
964 2003-09-17 Andrew Cagney <cagney@redhat.com>
966 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
967 * gdbarch.h, gdbarch.c: Regenerate.
968 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
969 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
970 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
971 * sparcnbsd-tdep.c: Update.
973 2003-09-17 Andrew Cagney <cagney@redhat.com>
975 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
976 * gdbarch.h, gdbarch.c: Regenerate.
977 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
978 * d10v-tdep.c, frame.c: Update.
979 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
980 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
981 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
982 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
983 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
984 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
985 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
986 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
987 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
988 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
989 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
990 * config/pa/nm-hppah.h: Update.
992 2003-09-16 Andrew Cagney <cagney@redhat.com>
994 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
995 "use_struct_convention" to "ppc_linux_use_struct_convention".
996 (ppc_linux_use_struct_convention): New function.
997 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
998 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
999 "rs6000_use_struct_convention".
1000 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1002 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1005 2003-09-16 Andrew Cagney <cagney@redhat.com>
1007 * buildsym.c: Remove more occurances of "register".
1008 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1009 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1010 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1011 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1012 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1013 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1014 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1015 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1017 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1019 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1020 numbers to enumeration values.
1021 * sh-tdep.c: Accomodate above change.
1022 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1023 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1024 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1025 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1026 (IS_FPUSH): Rename from IS_FMOV.
1027 (sh_extract_struct_value_address): Remove useless comment.
1028 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1029 instead of own local values.
1030 (sh_dump_tdep): Remove.
1031 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1032 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1034 2003-09-15 Andrew Cagney <cagney@redhat.com>
1036 * doublest.c (convert_floatformat_to_doublest): No longer need to
1037 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1039 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1041 * values.c (unpack_double): Call floatformat_is_valid.
1043 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1045 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1046 ps_strings into a long.
1048 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1049 _initialize_am64fbsd_nat.
1051 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1053 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1054 associated with DW_AT_ranges attribute is out of bounds.
1056 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1058 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1060 2003-09-14 Michael Chastain <mec@shout.net>
1062 * config/m68k/nm-apollo68v.h: Delete.
1063 * config/m68k/xm-apollo68v.h: Delete.
1065 2003-09-14 Andrew Cagney <cagney@redhat.com>
1067 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1068 * dcache.c: Update copyrights and descriptions.
1069 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1071 2003-09-14 Andrew Cagney <cagney@redhat.com>
1073 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1074 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1076 2003-09-14 Andrew Cagney <cagney@redhat.com>
1078 * alpha-nat.c: Remove some occurances of "register".
1079 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1080 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1081 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1082 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1083 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1084 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1085 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1086 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1087 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1088 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1089 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1090 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1091 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1092 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1093 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1094 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1095 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1096 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1097 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1098 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1099 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1100 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1102 2003-09-13 Andrew Cagney <cagney@redhat.com>
1104 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1105 * ppc-tdep.h (struct regcache): Declare opaque.
1106 * objfiles.h (struct objfile_data): Declare opaque.
1107 * cp-support.h (struct objfile): Declare opaque.
1108 * linux-nat.h (target_waitstatus): Declare opaque.
1110 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1112 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1113 (stabs_argument_has_addr): New architecture method.
1114 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1115 * arch-utils.c: Include "buildsym.h".
1116 (default_stabs_argument_has_addr): New function.
1117 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1118 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1120 * cris-tdep.c (cris_gdbarch_init): Set
1121 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1122 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1123 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1124 * mips-tdep.c (mips_gdbarch_init): Likewise.
1125 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1126 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1128 2003-09-13 Andrew Cagney <cagney@redhat.com>
1130 * values.c (using_struct_return): Delete "function" and "funcaddr"
1132 * value.h (using_struct_return): Update declaration.
1133 * infcmd.c (finish_command_continuation): Update.
1134 (finish_command): Update.
1135 * infcall.c (call_function_by_hand): Update.
1136 * eval.c (evaluate_subexp_standard): Update.
1138 2003-09-13 Christopher Faylor <cgf@redhat.com>
1140 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1141 SSE registers since gdb will not operate correctly without this.
1142 Restore include file ordering munged in previous change.
1143 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1145 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1147 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1148 REG_STRUCT_HAS_ADDR.
1149 * gdbarch.c, gdbarch.h: Updated.
1150 * infcall.c (call_function_by_hand): Update.
1151 * stabsread.c (define_symbol): Updated.
1153 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1155 2003-09-12 Christopher Faylor <cgf@redhat.com>
1157 * win32-nat.c: Reorganize so that defines used by target headers are
1158 actually defined by the system headers.
1159 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1160 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1162 2003-09-12 Jim Blandy <jimb@redhat.com>
1164 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1165 the file has no .data, .bss, or .rodata sections. Instead wait
1166 until we see a variable alleged to live in one of those sections.
1168 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1169 .bss section, presume that any variables we find live in the
1172 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1173 offsets for global and static variables.
1175 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1176 symbol types are, by definition, in the .data section, so it is
1177 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1178 If there is no .data section, there should be no N_DATA or N_DATA
1181 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1183 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1184 (amd64fbsd_sigcontext_addr): Rewrite.
1185 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1186 with correct values.
1187 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1188 (amd64fbsd_init_abi): Fix typo.
1190 2003-09-12 Andrew Cagney <cagney@redhat.com>
1192 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1193 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1195 2003-09-12 Andrew Cagney <cagney@redhat.com>
1197 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1198 "entry_file_highpc". Update comments.
1199 * defs.h (deprecated_inside_entry_file): Rename
1200 "inside_entry_file".
1201 * blockframe.c (deprecated_inside_entry_file): Rename
1202 "inside_entry_file".
1203 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1204 * vax-tdep.c (vax_frame_chain): Update.
1205 * sh64-tdep.c (sh64_frame_chain): Update.
1206 * sh-tdep.c (sh_frame_chain): Update.
1207 * rs6000-tdep.c (rs6000_frame_chain): Update.
1208 * ns32k-tdep.c (ns32k_frame_chain): Update.
1209 * mips-tdep.c (mips_frame_chain): Update.
1210 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1211 * m32r-tdep.c (m32r_frame_this_id): Update.
1212 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1213 * frv-tdep.c (frv_frame_this_id): Update.
1214 * d10v-tdep.c (d10v_frame_this_id): Update.
1215 * cris-tdep.c (cris_frame_chain): Update.
1216 * blockframe.c (legacy_frame_chain_valid): Update.
1217 * avr-tdep.c (avr_frame_this_id): Update.
1218 * arm-tdep.c (arm_prologue_this_id): Update.
1219 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1220 * objfiles.c (objfile_relocate): Update.
1221 * mipsread.c (mipscoff_symfile_read): Update.
1222 (mipscoff_symfile_read): Update.
1223 * mdebugread.c (parse_partial_symbols): Update.
1224 * dwarfread.c (read_file_scope): Update.
1225 * dwarf2read.c (read_file_scope): Update.
1226 * dbxread.c (read_dbx_symtab): Update.
1227 (read_dbx_symtab): Update.
1228 * coffread.c (complete_symtab): Update.
1230 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1232 * top.c (quit_target): New static helper function.
1233 (quit_force): Moved code to quit_target(). Call quit_target()
1234 via catch_errors() to catch errors during quit.
1236 2003-09-11 David Carlton <carlton@kealia.com>
1238 * buildsym.c (finish_block): Use allocate_block to allocate the
1240 * mdebugread.c (new_block): Add FIXME.
1242 2003-09-11 David Carlton <carlton@kealia.com>
1244 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1245 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1246 (recursive_dump_type): Ditto.
1247 * printcmd.c (print_formatted): Ditto.
1248 * typeprint.c (print_type_scalar): Ditto.
1249 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1250 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1251 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1252 maint_cplus_cmd_list.
1253 * cp-support.c: Make maint_cplus_cmd_list extern.
1254 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1256 (lookup_symbol_file): Look in possible namespace blocks when
1258 (initialize_namespace_symtab): New.
1259 (get_possible_namespace_block, free_namespace_block)
1260 (check_possible_namespace_symbols)
1261 (check_possible_namespace_symbols_loop)
1262 (check_one_possible_namespace_symbol)
1263 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1264 (_initialize_cp_namespace): Ditto.
1265 * block.h: Declare allocate_block.
1266 * block.c (allocate_block): New.
1267 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1269 * symfile.h: Update declaration of add_psymbol_to_list.
1270 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1272 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1273 scan_partial_symbols_call.
1274 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1276 (add_partial_symbol): If necessary, scan mangled names for names
1278 (add_partial_namespace): Add NAMESPACE argument; generate partial
1279 symbols associated to namespaces.
1280 (add_partial_enumeration): Add NAMESPACE argument.
1281 (new_symbol): Allow namespace syms.
1282 (read_namespace): Generate namespace syms.
1283 * objfiles.h: Add opaque declaration of struct symtab.
1284 (struct objfile): Add cp_namespace_symtab member.
1285 * objfiles.c (allocate_objfile): Set
1286 objfile->cp_namespace_symtab.
1287 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1288 dictionary_h, command_h.
1290 2003-09-11 Andrew Cagney <cagney@redhat.com>
1292 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1293 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1294 near the function's end.
1295 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1296 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1297 regcache_raw_write_signed to set SP_REGNUM.
1299 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1301 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1302 orig_addrs is set up properly.
1304 2003-09-11 Andrew Cagney <cagney@redhat.com>
1306 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1307 * gdbarch.h, gdbarch.c: Re-generate.
1308 * infcall.c (call_function_by_hand): Update.
1309 * hppa-tdep.c (hppa_push_arguments): Update.
1310 * ada-lang.c (place_on_stack): Update.
1311 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1312 * sparc-tdep.c (sparc_gdbarch_init): Update.
1313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1314 * hppa-tdep.c (hppa_gdbarch_init): Update.
1315 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1318 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1320 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1321 register do need a frame.
1323 2003-09-11 Andrew Cagney <cagney@redhat.com>
1325 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1326 buildable since GDB 5.0.
1327 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1328 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1329 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1330 * irix4-nat.c: Delete file.
1331 * config/mips/irix4.mh: Delete file.
1332 * config/mips/irix3.mh: Delete file.
1333 * config/mips/irix3.mt: Delete file.
1334 * config/mips/tm-irix3.h: Delete file.
1335 * config/mips/nm-irix3.h: Delete file.
1336 * config/mips/xm-irix3.h: Delete file.
1337 * config/mips/nm-irix4.h: Delete file.
1338 * config/mips/xm-irix4.h: Delete file.
1339 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1341 2003-09-10 J. Brobecker <brobecker@gnat.com>
1343 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1344 * Makefile.in (hppa-tdep.o): Update dependencies.
1346 2003-09-10 James E Wilson <wilson@specifixinc.com>
1348 * MAINTAINERS: Change my e-mail address. Move to paper trail
1351 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1353 * MAINTAINERS (frv): New ISA entry.
1355 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1357 * frv-tdep.c (dis-asm.h): Include.
1358 * Makefile.in (frv-tdep.o): Update dependencies.
1360 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1362 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1363 Fix typo for high range of floating registers.
1365 2003-09-09 David Carlton <carlton@kealia.com>
1367 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1368 highpc initialization here out of scan_partial_symbols.
1369 (scan_partial_symbols): Restructure into a recursive version,
1370 calling add_partial_namespace and add_partial_enumeration when
1372 (add_partial_namespace): New.
1373 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1375 2003-09-09 Andrew Cagney <cagney@redhat.com>
1377 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1378 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1379 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1380 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1382 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1383 (rs6000_push_dummy_call): Set the "TOC" register.
1385 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1386 methods "max_register_raw_size", "max_register_virtual_size" or
1387 "register_virtual_size".
1389 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1391 * MAINTAINERS: Update my e-mail address.
1393 2003-09-09 Andrew Cagney <cagney@redhat.com>
1395 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1396 (rs6000_push_dummy_call): Store the struct return address.
1397 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1399 2003-09-09 Andrew Cagney <cagney@redhat.com>
1401 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1402 "ppc_sysv_abi_push_arguments".
1403 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1404 "ppc_sysv_abi_push_arguments".
1405 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1406 instead of "push_arguments".
1407 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1409 2003-09-09 Andrew Cagney <cagney@redhat.com>
1411 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1412 instead of CALL_DUMMY_ADDRESS.
1414 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1416 * p-lang.c: Eliminate "register".
1418 * expprint.c: Ditto.
1421 * language.c: Ditto.
1424 * scm-lang.c: Ditto.
1425 * objc-lang.c: Ditto.
1427 2003-09-09 Nick Clifton <nickc@redhat.com>
1429 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1431 2003-09-04 Andrew Cagney <cagney@redhat.com>
1433 * avr-tdep.c: Include "dis-asm.h".
1434 * cris-tdep.c: Include "dis-asm.h".
1435 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1436 instead of corresponding typedef.
1437 * h8300-tdep.c: Include "dis-asm.h".
1438 * ia64-tdep.c: Include "dis-asm.h".
1439 * i386-tdep.c: Include "dis-asm.h".
1440 (i386_print_insn): Use "struct disassemble_info" instead of
1441 corresponding typedef.
1442 * m68k-tdep.c: Include "dis-asm.h".
1443 * mcore-tdep.c: Include "dis-asm.h".
1444 * mips-tdep.c: Include "dis-asm.h".
1445 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1446 instead of corresponding typedef.
1447 * ns32k-tdep.c: Include "dis-asm.h".
1448 * s390-tdep.c: Include "dis-asm.h".
1449 * sparc-tdep.c: Include "dis-asm.h".
1450 * vax-tdep.c: Include "dis-asm.h".
1451 * v850-tdep.c: Include "dis-asm.h".
1452 * mn10300-tdep.c: Include "dis-asm.h".
1453 * rs6000-tdep.c: Include "dis-asm.h".
1454 * xstormy16-tdep.c: Include "dis-asm.h".
1455 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1456 print_insn_xstormy16.
1457 * Makefile.in (v850-tdep.o): Update dependencies.
1458 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1459 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1460 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1461 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1462 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1463 (gdbarch_h): Remove $(dis_asm_h).
1464 * disasm.c: Include "dis-asm.h".
1465 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1466 corresponding typedef.
1467 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1468 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1469 * gdbarch.sh: Do not include "dis-asm.h".
1470 (struct disassemble_info): Declare opaque.
1471 (TARGET_PRINT_INSN): Update declaration.
1472 * gdbarch.h, gdbarch.c: Re-generate.
1474 2003-09-08 Andrew Cagney <cagney@redhat.com>
1476 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1477 CALL_DUMMY_ADDRESS, change to a predicate.
1478 * gdbarch.h, gdbarch.c: Re-generate.
1479 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1480 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1481 * infcall.c (call_function_by_hand): Ditto.
1482 * sparc-tdep.c (sparc_push_return_address): Ditto.
1483 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1484 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1485 CALL_DUMMY_ADDRESS with entry_point_address.
1486 * v850-tdep.c (v850_push_return_address): Ditto.
1487 * s390-tdep.c (s390_push_return_address): Ditto.
1488 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1489 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1490 * mcore-tdep.c (mcore_push_return_address): Ditto.
1491 * cris-tdep.c (cris_push_return_address): Ditto.
1492 * arm-tdep.c (arm_push_return_address): Ditto.
1494 2003-09-08 Andrew Cagney <cagney@redhat.com>
1496 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1497 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1498 and REG_UNMODIFIED to REG_SAME_VALUE.
1499 (execute_cfa_program): Update.
1500 (dwarf2_frame_cache): Update. Initialize table to
1501 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1503 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1505 2003-09-08 Andrew Cagney <cagney@redhat.com>
1507 * gnu-nat.c: Remove "inline" function attribute.
1508 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1510 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1512 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1515 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1517 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1518 (frame_extra_info): Rename this struct to frv_unwind_cache.
1519 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1520 Add fields ``prev_sp'' and ``base''.
1521 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1522 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1523 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1525 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1526 Revise all callers. Fill in the unwind cache argument and make
1527 other adjustments to account for new frame mechanisms.
1528 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1529 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1530 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1531 (frv_frame_unwind, frv_frame_base): New structs.
1532 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1533 additional arguments expected by this method and adjust function
1535 (frv_gdbarch_init): Remove calls to the following functions:
1536 set_gdbarch_deprecated_init_frame_pc(),
1537 set_gdbarch_deprecated_saved_pc_after_call(),
1538 set_gdbarch_deprecated_frame_chain(),
1539 set_gdbarch_deprecated_frame_saved_pc(),
1540 set_gdbarch_deprecated_frame_init_saved_regs(),
1541 set_gdbarch_deprecated_push_arguments(),
1542 set_gdbarch_deprecated_push_return_address(),
1543 set_gdbarch_deprecated_pop_frame(),
1544 set_gdbarch_deprecated_call_dummy_words(),
1545 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1546 set_gdbarch_deprecated_init_extra_frame_info(),
1547 set_gdbarch_deprecated_dummy_write_sp(), and
1548 set_gdbarch_deprecated_pc_in_call_dummy().
1549 Add calls to the following functions:
1550 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1551 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1552 frame_base_set_default().
1553 * Makefile.in (frv-tdep.o): Update dependencies.
1555 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1557 * dwarf2-frame.c (read_encoded_value): Add support for
1558 DW_EH_PE_aligned encoding.
1560 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1562 * infrun.c (normal_stop): Don't print a message if the inferior
1565 2003-09-08 Jim Blandy <jimb@redhat.com>
1567 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1568 * dbxread.c: #include "gdb_assert.h".
1569 (read_dbx_symtab): If the objfile has no .data section, use the
1570 section index for the .bss section instead.
1572 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1574 * frame.c (deprecated_safe_get_selected_frame): New function.
1575 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1576 * findvar.c (read_var_value): Call it.
1578 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1580 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1581 (sh64-tdep.o): Add dependencies.
1582 * configure.tgt: Add FIXME to sh-*-linux*.
1583 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1584 (sh_gdbarch_init): Always set correct sh_show_regs function
1585 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1586 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1587 * sh64-tdep.c: New file, containing all sh64 related code from
1589 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1590 * config/sh/linux.mt (TDEPFILES): Ditto.
1591 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1592 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1593 * config/sh/wince.mt (TDEPFILES): Ditto.
1595 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1597 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1598 (stop_wait_callback): Handle !lp->signalled also.
1599 (lin_lwp_has_pending, flush_callback): New functions.
1600 (lin_lwp_wait): Call flush_callback.
1601 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1602 (linux_proc_pending_signals): New function.
1603 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1605 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1607 From Nick Kelsey <nickk@ubicom.com>:
1608 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1609 when the stop PC is at the beginning of a function also.
1611 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1613 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1614 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1616 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1618 * sol-thread.c: Include "gdb_string.h".
1620 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1622 * gcore.c: Reorder include files in alphabetical order. Include
1623 "gdb_assert.h". Various coding style fixes.
1624 (derive_stack_segment, derive_heap_segment): Replace check for
1625 non-null BOTTOM and TOP with gdb_assert.
1626 (derive_heap_segment): Replace check for successful creation of
1627 ZERO with gdb_assert.
1628 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1630 2003-09-04 Andrew Cagney <cagney@redhat.com>
1632 * thread-db.c (verbose_dlsym): New function.
1633 (thread_db_load): Use verbose_dlsym
1634 (thread_db_new_objfile): Print that libthread_db was loaded, and
1635 that thread debugging was enabled.
1637 2003-09-04 Andrew Cagney <cagney@redhat.com>
1639 * configure.tgt: Add "mips64*-*-*" target. Delete
1640 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1641 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1642 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1643 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1644 mips*-sony-*, and mips64*-*-elf* targets.
1645 * config/mips/embedl.mt: Delete file.
1646 * config/mips/embedl64.mt: Delete file.
1647 * config/mips/mips.mt: Delete file.
1648 * config/mips/mips64.mt: Delete file.
1649 * config/mips/tm-embed.h: Delete file.
1650 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1651 * config/mips/embed64.mt: Delete out-of-date comment.
1653 2003-09-04 Andrew Cagney <cagney@redhat.com>
1655 * hppa-tdep.c (hppa_gdbarch_init): Set
1656 "have_nonsteppable_watchpoint".
1657 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1658 * mips-tdep.c (mips_dump_tdep): Do not print
1659 HAVE_NONSTEPPABLE_WATCHPOINT.
1660 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1661 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1662 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1663 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1665 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1667 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1668 unused code. Add comment.
1670 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1672 * breakpoint.c (watchpoint_check): Check for pc being in an
1673 epilogue if watchpoint frame couldn't be found.
1675 2003-09-04 Andrew Cagney <cagney@redhat.com>
1677 * Makefile.in: Re-generate all dependencies.
1679 2003-09-03 Andrew Cagney <cagney@redhat.com>
1681 * arch-utils.h (legacy_print_insn): Delete declaration.
1682 * arch-utils.c (legacy_print_insn): Delete function.
1683 * disasm.c (deprecated_tm_print_insn_info): Delete.
1684 (_initialize_disasm): Delete function, contained code initializing
1685 deprecated_tm_print_insn_info.
1686 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1687 (deprecated_tm_print_insn_info): Delete.
1688 (TARGET_PRINT_INSN): Do not provide a default.
1689 * gdbarch.h, gdbarch.c: Re-generate.
1691 2003-09-03 Andrew Cagney <cagney@redhat.com>
1693 * disasm.c (fprintf_disasm): New function.
1694 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1695 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1696 reverts 2003-08-14 change.
1697 (_initialize_disasm): Call "init_disassemble_info", instead of
1698 INIT_DISASSEMBLE_INFO_NO_ARCH.
1700 2003-09-03 Michael Snyder <msnyder@redhat.com>
1702 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1704 2003-09-03 Andrew Cagney <cagney@redhat.com>
1706 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1707 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1708 * symfile.c (syms_from_objfile): Update.
1709 (reread_symbols): `Update
1710 * exec.c (exec_file_attach): Update.
1711 (exec_file_attach): Update.
1712 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1714 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1716 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1718 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1720 (arm_get_cache): Delete macro.
1721 (struct arm_prologue_cache): Update comments. Make saved_regs into
1722 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1724 (thumb_scan_prologue): Update for cache changes. Don't call
1725 DEPRECATED_PC_IN_CALL_DUMMY.
1726 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1727 argument and use it in desperation search for our prologue. Do not
1728 search past the specified PC.
1729 (arm_make_prologue_cache): Simplify.
1731 (arm_prologue_this_id, arm_prologue_prev_register)
1732 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1733 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1734 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1735 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1736 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1738 (arm_frame_chain_valid, arm_find_callers_reg)
1739 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1740 (arm_pop_frame): Delete obsolete methods.
1741 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1743 (arm_gdbarch_init): Update for new frame methods. Register prologue
1744 and sigtramp unwinders. Set the default frame base method.
1746 * Makefile.in (arm-tdep.o): Update dependencies.
1747 * varobj.c (find_frame_addr_in_frame_chain): Call
1748 get_frame_base_address.
1749 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1751 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1753 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1754 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1755 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1756 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1757 Take NEXT_FRAME and CACHE arguments. Call
1758 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1759 Set unwound_pc in CACHE instead of modifying the frame argument.
1760 Don't bother checking the frame type when looking for sigtramp
1762 (arm_make_prologue_cache, arm_frame_chain)
1763 (arm_init_extra_frame_info): New functions.
1765 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1767 * arm-tdep.c (arm_get_cache): Define.
1768 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1769 unwound_sp, unwound_pc, and saved_regs.
1770 (thumb_scan_prologue): Take a cache instead of the frame.
1771 (arm_scan_prologue): Likewise.
1772 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1773 instead of a temporary frame.
1774 (arm_init_extra_frame_info): Allocate and use a cache.
1775 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1777 2003-09-03 Andrew Cagney <cagney@redhat.com>
1779 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1780 * config/mips/wince.mt (TM_CLIBS): Ditto.
1781 * config/sh/wince.mt (TM_CLIBS): Ditto.
1782 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1783 * config/sparc/sp64.mt (CC): Delete.
1785 2003-09-03 Andrew Cagney <cagney@redhat.com>
1787 * defs.h: Do not include "arch-utils.h".
1788 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1789 GDB_MULTI_ARCH_PURE.
1790 * configure.in (GDB_MULTI_ARCH): Do not define.
1791 * configure, config.in: Regenerate.
1792 * configure.tgt: Do not set variable "gdb_multi_arch".
1793 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1794 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1795 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1796 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1797 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1798 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1799 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1800 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1801 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1802 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1803 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1804 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1805 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1806 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1807 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1808 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1809 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1810 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1812 2003-08-30 Michael Chastain <mec@shout.net>
1814 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1815 * config/m68k/nm-hp300hpux.h: Delete.
1816 * config/m68k/tm-hp300hpux.h: Delete.
1817 * config/m68k/xm-hp300hpux.h: Delete.
1818 * config/m68k/xm-hp300bsd.h: Delete.
1819 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1820 tm-hp300hpux.h, xm-hp300hpux.h.
1821 * somsolib.c: Remove comment about hp300 shared libraries.
1823 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1825 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1826 Only define PTRACE_GET_THREAD_AREA is not already defined.
1827 Various style fixes in code and comments and some additional
1828 spelling fixes in comments. Move after functions dealing with
1830 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1833 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1834 frame_unwind_register_unsigned instead of
1835 frame_unwind_unsigned_register.
1837 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1839 * configure.in: Search for gethostbyname in libnsl.
1840 * configure: Regenerated.
1842 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1844 * configure.in: Remove redundant AC_MSG_RESULT in check for
1845 uintptr_t in stdint.h.
1846 * configure: Regenerated.
1848 * amd64-nat.h (struct regcache): Add opaque declaration.
1850 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1851 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1852 Change "register array" to "register cache" in comments.
1853 (x86_64_linux_gregset64_reg_offset): New variable.
1854 (GETREGS_SUPPLIES): Remove macro.
1855 (supply_gregset): Call amd64_supply_native_gregset instead of
1856 x86_64_linux_supply_gregset.
1857 (fill_gregset): Rename `regno' to `regnum'. Call
1858 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1859 (store_regs): Rename `regno' to `regnum'.
1860 (store_fpregs): Rename `regno' to `regnum'.
1861 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1862 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1863 Reorganize function a bit.
1864 (store_inferior_registers): Rename `regno' to `regnum'. Use
1865 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1866 Reorganize function a bit.
1867 (_initialize_x86_64_linux_nat): New function.
1868 * config/i386/x86-64linux.mh.
1870 2003-08-29 Andrew Cagney <cagney@redhat.com>
1872 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1873 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1874 (target_remove_watchpoint): Delete macro.
1875 (target_insert_watchpoint): Delete macro.
1876 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1877 (remote_mips_stopped_by_watchpoint): Delete declaration.
1878 (remote_mips_remove_watchpoint): Delete declaration.
1879 (remote_mips_set_watchpoint): Delete declaration.
1880 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1881 * remote-mips.c (_initialize_remote_mips): Set
1882 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1883 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1884 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1885 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1886 (mips_stopped_by_watchpoint): Rename
1887 remote_mips_stopped_by_watchpoint.
1888 (mips_can_hardware_watchpoint): Rename
1889 remote_mips_can_use_hardware_watchpoint, update function
1892 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1894 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1895 USER_DS. We haven't given them a register number yet.
1897 * amd64-nat.h: New file.
1898 * amd64-nat.c: New file.
1899 * amd64fbsd-nat.c: Include "amd64-nat.h".
1900 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1901 (amd64fbsd32_r_reg_offset): New variable.
1902 (supply_gregset): Simply call amd64_supply_native_gregset.
1903 (fill_gregset): Rename `regno' to `regnum'. Simply call
1904 amd64_collect_native_gregset.
1905 (fill_fpregset): Rename `regno' to `regnum'.
1906 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1907 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1908 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1909 `fpregset_t'. Call amd64_supply_native_gregset instead of
1910 supply_gregset. Call x86_64_supply_fxsave instead of
1912 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1913 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1914 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1915 `fpregset_t'. Call amd64_collect_native_gregset instead of
1916 fill_gregset. Call x86_64_collect_fxsave instead of
1918 (_initialize_am64fbsd_nat): Initialize
1919 amd64_native_gregset32_reg_offset and
1920 amd64_native_gregset64_reg_offset.
1921 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1923 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1924 null pointer. Fix typo in comment.
1926 * regcache.c (supply_register): Reimplement to call
1927 regcache_raw_supply.
1928 (regcache_collect): Reimplement by calling regcache_raw_collect.
1930 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1932 * regcache.c (register_buffer): Consitify first argument.
1933 (regcache_raw_supply, regcache_raw_collect): New
1936 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1938 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
1939 by Nathan J. Williams.
1941 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
1943 * lin-lwp.c (wait_lwp): New function, copied from
1944 stop_wait_callback. Clean up.
1945 (stop_wait_callback): Use wait_lwp.
1947 2003-08-28 Andrew Cagney <cagney@redhat.com>
1949 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
1950 flavour and disassembler options.
1951 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
1952 (mips_gdbarch_init): Set "print_insn". Delete initialization of
1953 deprecated_tm_print_insn_info.
1955 2003-08-27 Andrew Cagney <cagney@redhat.com>
1957 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
1958 Use target_read_memory.
1959 (s390_get_frame_info): Update. Do not reference
1960 deprecated_tm_print_insn_info.
1961 (s390_check_function_end, s390_is_sigreturn): Ditto.
1963 2003-08-27 Andrew Cagney <cagney@redhat.com>
1965 * Makefile.in (cris-tdep.o): Update dependencies.
1966 * cris-tdep.c: Include "gdb_assert.h".
1967 (cris_gdbarch_init): Set print_insn.
1968 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
1969 (cris_delayed_get_disassembler): Simplify, directly call the
1970 disassembler returned by cris_get_disassembler.
1971 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
1972 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
1973 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
1974 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
1975 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
1976 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
1977 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
1978 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
1979 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
1980 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
1981 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
1982 (gdb_print_insn_sparc): Delete function.
1983 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
1984 deprecated_tm_print_insn_info.
1985 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
1986 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
1987 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
1988 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
1989 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
1990 * s390-tdep.c (gdb_print_insn_s390): Delete function.
1991 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
1992 (s390_gdbarch_init): Set print_insn.
1994 2003-08-27 Andrew Cagney <cagney@redhat.com>
1996 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
1997 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
1998 * infcall.c (call_function_by_hand): Convert the entry point
1999 address into a code address.
2001 2003-08-27 Andrew Cagney <cagney@redhat.com>
2003 * dsrec.c: Include "gdb_string.h".
2004 * Makefile.in (dsrec.o): Update dependencies.
2006 2003-08-27 Michael Chastain <mec@shout.net>
2008 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2010 2003-08-27 Andrew Cagney <cagney@redhat.com>
2012 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2013 (alpha_osf1_init_abi): Do not set call_dummy_address.
2015 2003-08-27 David Carlton <carlton@kealia.com>
2017 From Randolph Chung <tausq@debian.org>:
2018 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2019 compiles with -Wformat-nonliteral -Werror.
2021 2003-08-26 Jim Blandy <jimb@redhat.com>
2023 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2024 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2025 bfd_lookup_symbol, since we only want symbols in code sections.
2026 (look_for_base): Pass zero as the SECT_FLAGS argument to
2027 bfd_lookup_symbol, since we're not concerned about which section
2030 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2032 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2033 we are frameless or the return address register is already known.
2035 2003-08-26 Andrew Cagney <cagney@redhat.com>
2037 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2038 in size. Add comments.
2040 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2042 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2043 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2045 2003-08-26 Jason Merrill <jason@redhat.com>
2047 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2048 case out of #ifdef MIPS block.
2050 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2053 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2054 available before calling SECT_OFF_TEXT.
2055 * PROBLEMS: Remove description of java/1322.
2057 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2059 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2060 bof, and nat0-nat127 as pseudo-registers.
2061 (ia64_frame_cache): New struct used to cache frame info.
2062 (ia64_register_reggroup_p): New routine used to override default
2063 register grouping so registers without names are still saved and
2065 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2067 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2068 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2069 (ia64_alloc_frame_cache): New routine to create a new
2071 (examine_prologue): Change prototype to add next_frame pointer.
2072 Assume frameless until otherwise proven. Verify that the cfm for
2073 current frame matches the cfm that should occur for the prologues
2074 alloc insn and if equal, mark as not frameless. At end of routine,
2075 if not frameless, calculate registers for the previous frame and store
2076 in the cache, if a cache is provided.
2077 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2078 and pass 0 for next_frame.
2079 (ia64_store_return_value): Change to use convert_typed_floating()
2080 instead of calling ia64_convert_to_raw().
2081 (ia64_extract_return_value): Change to use convert_typed_floating()
2082 instead of calling ia64_convert_to_virtual().
2083 (ia64_frame_cache): New routine to support new frame model.
2084 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2085 (ia64_frame_sniffer): Ditto.
2086 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2087 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2088 (ia64_sigtramp_frame_prev_register): Ditto.
2089 (ia64_sigtramp_frame_sniffer): Ditto.
2090 (ia64_frame_base_address): Ditto.
2091 (ia64_extract_struct_value_address): Change to issue error message.
2092 (ia64_frame_align): New routine to align sp.
2093 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2094 (ia64_push_arguments): Removed. Logic moved to
2095 ia64_push_dummy_call().
2096 (ia64_push_return_address): Ditto.
2097 (ia64_unwind_dummy_id): New function.
2098 (ia64_unwind_pc): Ditto.
2099 (ia64_convert_register_p): Ditto.
2100 (ia64_register_to_value): Ditto.
2101 (ia64_value_to_register): Ditto.
2102 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2103 (ia64_register_byte, ia64_register_raw_size): Ditto.
2104 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2105 (ia64_saved_pc_after_call): Ditto.
2106 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2107 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2108 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2109 (ia64_register_convert_to_raw): Ditto.
2110 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2111 (ia64_init_extra_frame_info): Ditto.
2112 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2113 (ia64_gdbarch_init): Remove registering of deprecated functions that
2114 are no longer used. Add registration of new gdbarch functions.
2115 Remove registering deprecated_write_sp. Replace
2116 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2117 Delete set_gdbarch_deprecated_register_convertible(),
2118 set_gdbarch_deprecated_register_convert_to_virtual(), and
2119 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2120 set_gdbarch_deprecated_register_size(),
2121 set_gdbarch_deprecated_register_bytes(),
2122 set_gdbarch_pcregnum(),
2123 set_gdbarch_deprecated_register_byte(),
2124 set_gdbarch_deprecated_register_raw_size(),
2125 set_gdbarch_deprecated_max_register_raw_size(),
2126 set_gdbarch_deprecated_register_virtual_size(),
2127 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2128 Replace set_gdbarch_deprecated_extract_return_value() with
2129 set_gdbarch_extract_return_value(). Remove calls to:
2130 set_gdbarch_deprecated_saved_pc_after_call();
2131 set_gdbarch_deprecated_frame_chain(),
2132 set_gdbarch_deprecated_frame_saved_pc(),
2133 set_gdbarch_deprecated_frame_init_saved_regs(),
2134 set_gdbarch_deprecated_get_saved_register(),
2135 set_gdbarch_deprecated_call_dummy_words(),
2136 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2137 set_gdbarch_deprecated_init_extra_frame_info(),
2138 set_gdbarch_deprecated_frame_args_address(),
2139 set_gdbarch_deprecated_frame_locals_address(),
2140 and set_gdbarch_deprecated_dummy_write_sp().
2141 Add set_gdbarch_convert_register_p(),
2142 set_gdbarch_register_to_value(),
2143 set_gdbarch_value_to_register(),
2144 set_gdbarch_push_dummy_call(),
2145 set_gdbarch_frame_align(),
2146 set_gdbarch_unwind_dummy_id(),
2147 set_gdbarch_unwind_pc(),
2148 frame_unwind_append_sniffer(),
2149 frame_unwind_append_sniffer(),
2150 and frame_base_set_default().
2152 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2154 * configure.tgt: Document need for special "mipsisa64" handling.
2155 (mipsisa64*-*-linux64): Handle as target linux64.
2156 (mipsisa64*-*-*): Handle as target embed64.
2158 2003-08-18 Michael Chastain <mec@shout.net>
2160 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2163 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2165 * i387-tdep.h: Update copyright date.
2166 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2168 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2169 CFLAGS games to reflect reality.
2171 2003-08-24 Andrew Cagney <cagney@redhat.com>
2173 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2174 GDB_MULTI_ARCH is always non-zero.
2175 * osabi.c (_initialize_gdb_osabi): Ditto.
2176 (gdbarch_init_osabi): Ditto.
2177 * sparc-tdep.c: Ditto for #if code.
2179 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2181 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2183 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2185 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2186 x86_64_supply_fxsave.
2187 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2188 x86_64_supply_fxsave.
2189 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2190 x86_64_supply_fxsave.
2192 2003-08-23 Andreas Jaeger <aj@suse.de>
2194 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2197 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2199 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2200 i387_supply_register.
2201 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2202 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2204 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2206 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2208 * i386bsd-nat.c (supply_fpregset): Adjust call to
2210 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2211 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2213 (store_inferior_registers): Remove extraneous whitespace. Call
2214 i387_fill_fsave instead of fill_fpregset.
2215 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2216 (supply_fpregset): Likewise.
2217 * i386v4-nat.c (supply_fpregset): Adjust call to
2219 * i386-interix-nat.c (supply_fpregset): Adjust call to
2221 * i386-linux-nat.c (supply_fpregset): Adjust call to
2223 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2224 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2225 i387supply_fsave and i387_supply_fxsave.
2226 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2227 Incorporate code from `i387_supply_register.
2228 (i387_supply_register): Remove.
2229 (i387_supply_fxsave): Add `regnum' argument.
2231 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2233 (i387_supply_register): remove prototype.
2236 2003-08-22 Michael Chastain <mec@shout.net>
2238 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2239 Add lines for files in gdb/testsuite/gdb.cp/* that are
2240 still not 8.3 unique.
2242 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2244 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2245 TYPE_VPTR_FIELDNO is valid.
2247 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2249 * utils.c (set_width_command): Remove prototypes.
2250 (set_screen_size): New prototype.
2251 (init_page_info): Simplify by fetching the screen size from
2252 Readline. Call set_screen_size.
2253 (set_screen_size): New function.
2254 (set_width): Add missing whitespace in comment.
2255 (set_width_command): Call set_screen_size.
2256 (set_height_command): New function.
2257 (initialize_utils): Fix formatting. Make "set height" command
2258 call set_height_command. Remove redundant code that turns off
2259 pagination if output isn't a terminal. Remove redundant call to
2262 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2264 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2265 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2266 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2267 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2269 (sparc64_register_info): Give the reister with number
2270 SPARC64_STATE_REGNUM a name.
2271 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2273 (sparc64_push_dummy_call): Take BIAS into account when checking
2275 (sparc_software_single_step): Remove assertions that check whether
2276 NPC and NNPC were zero.
2277 (sparc_supply_rwindow): Make public. Merge functionality with
2278 sparc64_supply_rwindow.
2279 (sparc_fill_rwindow): Make public. Merge functionality with
2280 sparc64_fill_rwindow.
2281 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2282 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2283 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2284 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2285 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2287 * reggroups.c: Add whitespace after declarations of local
2288 variables in functions.
2290 2003-08-21 Michael Chastain <mec@shout.net>
2292 * gdbtypes.h: Change array bound type from an int to enum.
2294 2003-08-21 Andrew Cagney <cagney@redhat.com>
2296 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2297 * config/sparc/tm-sparc.h: Ditto.
2298 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2300 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2302 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2304 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2305 (register_objfile_data, set_objfile_data, objfile_data): New
2307 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2309 (allocate_objfile): Call objfile_alloc_data.
2310 (free_objfile): Call objfile_free_data.
2311 (struct objfile_data): New.
2312 (struct objfile_data_registration): New.
2313 (struct objfile_data_registry): New.
2314 (objfile_data_registry): New variable.
2315 (register_objfile_data): New function.
2316 (objfile_alloc_data, objfile_free_data): New functions.
2317 (set_objfile_data, objfile_data): New functions.
2318 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2319 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2320 (_initialize_dwarf2_frame): New function and prototype.
2322 2003-08-21 Andrew Cagney <cagney@redhat.com>
2324 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2325 a specific architecture.
2326 * arch-utils.h (set_architecture_from_arch_mach): Delete
2328 (target_architecture_hook): Delete declaration.
2329 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2330 (default_float_format): Assume GDB_MULTI_ARCH.
2331 (default_double_format): Assume GDB_MULTI_ARCH.
2332 (set_endian_from_file): Delete function.
2333 (arch_ok): Delete function.
2334 (set_arch): Delete function.
2335 (set_architecture_from_arch_mach): Delete function.
2336 (set_architecture_from_file): Delete function.
2337 (set_architecture): Assume GDB_MULTI_ARCH.
2338 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2340 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2342 Rewrite FreeBSD/sparc64 native configuration.
2343 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2344 * sparc64fbsd-nat.c: New file.
2345 * sparc64fbsd-tdep.c: New file.
2346 * sparc64-tdep.c sparc64-tdep.h: New files.
2347 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2348 sparc64fbsd-tdep.o): New dependencies.
2349 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2350 and sparc64fbsd-tdep.c.
2351 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2352 * config/sparc/fbsd.mh: Remove copyright notice.
2353 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2355 * config/sparc/fbsd.mt: Remove copyright notice.
2356 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2357 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2358 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2359 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2360 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2361 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2362 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2363 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2365 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2366 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2368 2003-08-21 Michael Chastain <mec@shout.net>
2370 * symtab.h: Add doco on the space critical structures and
2371 some measurements of space usage.
2373 2003-08-21 Michael Snyder <msnyder@redhat.com>
2375 * tracepoint.c (trace_dump_command): Trace break address
2376 is subject to DECR_PC_AFTER_BREAK.
2377 (set_traceframe_context): Make "trace_line" an int.
2378 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2380 2003-08-20 Michael Snyder <msnyder@redhat.com>
2382 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2383 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2384 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2386 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2387 functions, replace sh_push_dummy_call.
2388 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2390 2003-08-20 Michael Chastain <mec@shout.net>
2392 * gdbtypes.h (struct main_type): Rearrange to save space.
2394 2003-08-20 Michael Snyder <msnyder@redhat.com>
2396 * trad-frame.c: Comment typo fix.
2398 2003-08-20 Michael Snyder <msnyder@redhat.com>
2399 Kevin Buettner <kevinb@redhat.com>
2401 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2402 (frv_frame_init_saved_regs): Add declaration.
2403 (frame_extra_info): Add new field ``saved_regs''.
2404 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2405 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2406 Update frame related code.
2407 (frv_extract_struct_value_address): Adjust formatting.
2408 * Makefile.in (frv-tdep.o): Update dependencies.
2409 * config/frv/tm-frv.h (target_insert_watchpoint)
2410 (target_remove_watchpoint, target_insert_hw_breakpoint)
2411 (target_remove_hw_breakpoint): Delete these macros.
2412 (remote_insert_watchpoint, remote_remove_watchpoint)
2413 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2416 2003-08-20 Michael Chastain <mec@shout.net>
2418 * defs.h (ENUM_BITFIELD): New macro.
2419 * symtab.h (ENUM_BITFIELD): Use it.
2420 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2422 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2424 * MAINTAINERS (write after approval): Add myself.
2426 2003-08-18 Andrew Cagney <cagney@redhat.com>
2428 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2429 * gdbarch.h, gdbarch.c: Re-generate.
2430 * infcall.c (call_function_by_hand): Adjust the SP by
2431 frame_red_zone_size before allocating any stack space.
2432 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2433 * x86-64-tdep.c (x86_64_frame_align): New function.
2434 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2436 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2437 Remove code adjusting SP so that it skips over the Red Zone.
2439 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2441 * NEWS (New native configurations): Mention FreeBSD/amd64.
2443 2003-08-18 Andrew Cagney <cagney@redhat.com>
2445 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2446 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2448 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2450 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2452 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2454 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2456 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2458 * i386-linux-nat.c: Include "linux-nat.h".
2459 (child_post_startup_inferior): New function.
2461 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2463 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2464 at the start of a frameless function. This probably fixes PR
2467 2003-08-17 Michael Chastain <mec@shout.net>
2469 * symfile.c (find_sym_fns): Remove special case for apollo target.
2471 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2473 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2474 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2475 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2476 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2477 (linux_supports_tracevforkdone): New function.
2478 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2480 (child_follow_fork): Handle vfork.
2481 (linux_handle_extended_wait): Likewise. Also handle exec.
2482 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2483 * NEWS: Mention fork tracing.
2485 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2487 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2489 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2491 * Makefile.in (i386-linux-nat.o): Update dependencies.
2492 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2493 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2494 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2495 * i386-linux-nat.c: Include "linux-nat.h".
2496 (child_post_startup_inferior): New function.
2497 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2498 * infptrace.c (kill_inferior): Wrap in #ifdef.
2499 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2500 attaching to each LWP.
2501 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2502 (init_lin_lwp_ops): Fill in some more operations.
2503 * linux-nat.h (linux_enable_event_reporting)
2504 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2506 * linux-nat.c (linux_enable_event_reporting): New function.
2507 (child_post_attach, linux_child_post_startup_inferior)
2508 (child_post_startup_inferior, child_follow_fork)
2509 (linux_handle_extended_wait, kill_inferior): New functions.
2511 2003-08-16 Andrew Cagney <cagney@redhat.com>
2513 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2514 * gdbarch.h, gdbarch.c: Re-generate.
2516 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2518 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2520 2003-08-16 Andrew Cagney <cagney@redhat.com>
2522 * NEWS: Mention that "set prompt-escape-char" was deleted.
2523 * top.c (get_prompt_1): Delete function.
2524 (gdb_prompt_escape):
2525 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2526 prompt-escape-char" command.
2527 (MAX_PROMPT_SIZE): Delete macro.
2528 (get_prompt): Simplify, do not call get_prompt_1.
2530 2003-08-16 Andrew Cagney <cagney@redhat.com>
2532 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2533 -Werror. -Wformat-nonliteral problems.
2535 2003-08-15 J. Brobecker <brobecker@gnat.com>
2537 Further multiarching work mostly for hppa64-*-hpux11:
2538 * hppa-tdep.h: New file.
2539 * hppa-tdep.c: #include hppa-tdep.c.
2540 (hppa32_num_regs): Renamed from hppa_num_regs.
2541 (hppa64_num_regs): New constant.
2542 (hppa64_call_dummy_breakpoint_offset): New constant.
2543 (hppa32_call_dummy_length): New constant.
2544 (hppa64_call_dummy_length): New constant.
2545 (hppa32_stack_align): Make name 32bit explicit.
2546 (hppa32_register_virtual_type): Likewise.
2547 (hppa32_extract_return_value): Likewise.
2548 (hppa32_use_struct_convention): Likewise.
2549 (hppa32_store_return_value): Likewise.
2550 (hppa64_register_virtual_type): New function.
2551 (hppa64_extract_return_value): New function.
2552 (hppa64_use_struct_convention): New function.
2553 (hppa64_store_return_value): New function.
2554 (hppa_frame_locals_address): Remove declaration, function does
2556 (hppa_register_byte): Add support for PA64 ABI.
2557 (hppa_gdbarch_init): Add support for PA64 ABI.
2558 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2559 Make name 32bit explicit.
2560 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2561 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2562 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2563 (hppa64_hpux_frame_base_before_sigtramp): New function.
2564 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2565 * config/pa/tm-hppa64.h: Remove macros that are no longer
2566 necessary now that the gdbarch vector is properly setup.
2567 Transform some macros into function calls. Some minor cleanup.
2568 * config/pa/tm-hppah.h: Update function calls in macros
2569 following the function renaming in hppa-hpux-tdep.c.
2570 * Makefile.in (hppa_tdep_h): New variable.
2571 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2573 2003-08-14 Michael Snyder <msnyder@redhat.com>
2575 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2577 2003-08-13 J. Brobecker <brobecker@gnat.com>
2579 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2580 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2583 2003-08-13 Michael Snyder <msnyder@redhat.com>
2585 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2586 (frv_saved_pc_after_call): Use deprecated ftype.
2587 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2588 (frv_remote_translate_xfer_address): Remove.
2589 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2591 2003-08-13 J. Brobecker <brobecker@gnat.com>
2593 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2594 initialization after the common gdbarch initialization, not before.
2596 2003-08-13 J. Brobecker <brobecker@gnat.com>
2598 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2599 (ADDR_BITS_REMOVE): Remove, redundant.
2601 2003-08-13 J. Brobecker <brobecker@gnat.com>
2603 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2604 gdbarch method to clear the 2 low bits of text addresses.
2606 2003-08-12 Andrew Cagney <cagney@redhat.com>
2608 * Makefile.in (dsrec.o): Update dependencies.
2609 * dsrec.c: Include "gdb_assert.h".
2610 (make_srec): Use snprintf instead of sprintf, use a literal format
2613 2003-08-12 Andrew Cagney <cagney@redhat.com>
2615 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2616 FRAME_OBSTACK_ZALLOC.
2618 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2620 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2623 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2625 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2626 amd64fbsd_sc_reg_offset): Add extern declarations.
2627 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2630 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2632 * MAINTAINERS (write after approval): Update my mail address.
2634 2003-08-10 Andrew Cagney <cagney@redhat.com>
2636 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2638 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2640 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2641 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2642 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2643 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2644 i386bsd_sc_reg_offset): Add extern declarations.
2645 * i386obsd-nat.c: Include "i386-tdep.h"
2646 (_initialize_i386obsd_nat): Remove extern declarations.
2647 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2649 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2652 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2653 instead of frame_read_register.
2654 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2655 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2657 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2658 instead of frame_unwind_unsigned_register. Use
2659 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2660 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2661 instead of read_register. Use builtin_type_void_data_ptr instead
2662 of builtin_type_void_func_ptr when extracting the address of the
2664 (i386_extract_return_value, i386_store_return_value,
2665 i386_pseudo_register_read, i386_pseudo_register_write): Use
2666 register_size instead REGISTER_RAW_SIZE.
2668 2003-08-10 Andrew Cagney <cagney@redhat.com>
2670 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2671 sprintf. Make "name" constant.
2673 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2675 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2676 instead of frame_read_register.
2677 (i387_print_float_info): Use get_frame_register and
2678 get_frame_register_unsigned instead of frame_register_read.
2680 * i386fbsd-nat.c: Include "i386-tdep.h".
2681 (child_resume): Make `eflags' an ULONGEST. Use
2682 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2683 instead of register_read and register_write.
2685 * i386bsd-nat.c (fetch_inferior_registers,
2686 store_inferior_registers): Don't use && at the end of a line.
2687 (_initialize_i386bsd_nat): Fix typo.
2689 * frame.c (_initialize_frame): Add missing backslash.
2691 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2692 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2693 and supply_register instead of manipulating the register buffer
2696 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2697 * config/i386/nm-i386sol2.h
2698 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2700 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2701 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2702 instructions that GCC likes to mingle into the prologue. Fixes
2703 gdb/1253 and gdb/1255.
2705 2003-08-09 Andrew Cagney <cagney@redhat.com>
2708 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2709 * command.h (add_setshow_uinteger_cmd): Declare.
2710 * frame.c (set_backtrace_cmd): New function.
2711 (show_backtrace_cmd): New function.
2712 * frame.c (_initialize_frame): Replace "set/show
2713 backtrace-below-main" with "set/show backtrace past-main". Add
2714 command "set/show backtrace limit".
2715 (backtrace_past_main): Rename "backtrace_below_main".
2716 (backtrace_limit): New variable.
2717 (get_prev_frame): Update. Check the backtrace_limit.
2719 2003-08-09 Andrew Cagney <cagney@redhat.com>
2721 * defs.h (xstrprintf): Declare.
2722 * utils.c (xstrprintf): New function.
2723 * breakpoint.c (insert_breakpoints): Replace sprintf and
2724 non-literal format strings, with xstrprintf and cleanups.
2725 (delete_breakpoint,breakpoint_re_set): Ditto.
2726 (commands_command, insert_breakpoints): Ditto.
2727 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2728 (break_at_finish_command_1): Ditto.
2730 2003-08-09 Andrew Cagney <cagney@redhat.com>
2732 * MAINTAINERS (language support): List Adam Fedor as Objective C
2735 2003-08-08 J. Brobecker <brobecker@gnat.com>
2737 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2738 are now multiarched.
2740 2003-08-08 J. Brobecker <brobecker@gnat.com>
2742 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2743 longer necessary now that hppa64 is partially multiarch'ed.
2745 2003-08-08 Andrew Cagney <cagney@redhat.com>
2747 * interps.c (interp_set): Check for a NULL "old_interp".
2749 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2751 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2752 (install-only): Support DESTDIR.
2753 (uninstall): Likewise.
2754 (install-gdbtk): Likewise.
2756 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2758 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2759 contains something meaningful at all times.
2761 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2763 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2765 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2767 * MAINTAINERS (write after approval): Added self.
2769 2003-08-07 Andrew Cagney <cagney@redhat.com>
2771 * inferior.h (AT_SYMBOL): Define.
2772 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2773 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2774 * mips-tdep.c (mips_call_dummy_address): Delete function.
2775 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2776 set call_dummy_address.
2778 2003-08-07 Andrew Cagney <cagney@redhat.com>
2780 * language.c (op_error): Delete function.
2781 (binop_type_check): Delete function.
2782 * language.h (type_op_error, range_op_error): Delete macros.
2783 (op_error): Delete declaration.
2785 2003-08-07 Andrew Cagney <cagney@redhat.com>
2787 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2789 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2791 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2792 (x86_64_push_arguments): Skip the red zone.
2794 2003-08-05 Andrew Cagney <cagney@redhat.com>
2796 * reggroups.c (reggroup_next): Check for the final entry.
2798 2003-08-04 Andrew Cagney <cagney@redhat.com>
2800 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2801 * cli/cli-script.c (define_command): Call query directly, instead
2802 of passing it a buffer.
2803 * ocd.c (ocd_error): Pass error a constant format string.
2804 * remote-mips.c (mips_error): Use fputs_filtered.
2806 * solib-svr4.c (_initialize_svr4_solib): Update
2807 register_gdbarch_data call.
2808 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2810 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2811 (register_gdbarch_data): Delete "free" parameter. Update
2813 * gdbarch.h, gdbarch.c: Re-generate.
2814 * reggroups.c (_initialize_reggroup): Update.
2815 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2816 * frame-base.c (_initialize_frame_base): Update.
2817 * frame-unwind.c (_initialize_frame_unwind): Update.
2818 * user-regs.c (_initialize_user_regs): Update.
2819 * remote.c (_initialize_remote): Update.
2820 * regcache.c (_initialize_regcache): Update.
2822 * regcache.c (xfree_regcache_descr): Delete function.
2823 (_initialize_regcache): Update call to register_gdbarch_data.
2824 (init_regcache_descr, init_legacy_regcache_descr): Use
2825 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2827 * remote.c (free_remote_state): Delete function.
2828 (_initialize_remote): Update register_gdbarch_data.
2829 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2830 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2832 2003-08-04 Andrew Cagney <cagney@redhat.com>
2834 * reggroups.c (struct reggroup_el): Define.
2835 (struct reggroups): Delete field "nr_group". Replace array
2836 "group" with a "first" to "last" linked list.
2837 (reggroups_init): Update. Allocate using gdbarch's obstack.
2838 (reggroups_free): Delete function.
2839 (add_group): Update. Add "el" parameter.
2840 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2841 (default_groups): Update.
2842 (reggroup_next): Replace reggroups.
2843 (reggroups_dump): Update.
2844 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2845 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2846 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2848 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2850 * Makefile.in (tui-interp.o): Update dependencies.
2852 2003-08-04 David Carlton <carlton@kealia.com>
2854 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2855 to internal_error call.
2856 * source.c (forward_search_command): Add "%s" format argument.
2857 (reverse_search_command): Ditto.
2858 * top.c (quit_confirm): Ditto.
2859 * cli/cli-setshow.c (do_setshow_command): Ditto.
2860 * cp-valprint.c (cp_print_class_method): Replace
2861 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2862 (cp_print_class_member): Ditto.
2863 * event-top.c (command_line_handler): Ditto.
2864 * linux-proc.c (linux_info_proc_cmd): Ditto.
2865 * p-typeprint.c (pascal_type_print_base): Ditto.
2866 * p-valprint.c (pascal_object_print_class_method): Ditto.
2867 (pascal_object_print_class_member): Ditto.
2868 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2869 * remote.c (remote_cisco_section_offsets): Ditto.
2870 * top.c (command_line_input): Ditto.
2871 * utils.c (vwarning,error_stream,quit): Ditto.
2872 * valprint.c (print_floating,print_binary_chars)
2873 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2875 2003-08-04 Andrew Cagney <cagney@redhat.com>
2877 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2879 2003-08-02 Andrew Cagney <cagney@redhat.com>
2881 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2882 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2885 2003-08-02 Andrew Cagney <cagney@redhat.com>
2887 * Makefile.in: Update all dependencies and definitions.
2889 2003-08-02 Adam Fedor <fedor@gnu.org>
2891 * linespec.c (is_objc_method_format): New function
2892 (decode_line_1, locate_first_half): Use it.
2895 2003-08-01 Andrew Cagney <cagney@redhat.com>
2897 * NEWS: Mention that m32r is multi-arch.
2898 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2899 * configure.tgt: Recognize m32r-*-*.
2900 * config/m32r/tm-m32r.h: Delete file.
2901 * config/m32r/m32r.mt: New file.
2902 * m32r-rom.c (m32r_upload_command): Use hostent only when
2903 gethostname succeeds, in order to avoid a compilation
2905 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2908 2003-08-01 Michael Snyder <msnyder@redhat.com>
2910 * sh-tdep.c (sh_frame_align): New gdbarch method.
2911 (sh_gdbarch_init): Set up frame_align method.
2913 2003-07-31 Michael Snyder <msnyder@redhat.com>
2915 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2916 which is already covered by the new frames infrastructure.
2918 2003-07-31 Andrew Cagney <cagney@redhat.com>
2920 * user-regs.c (struct user_reg): Add "next" link.
2921 (struct user_regs): Replace "user" with "first" and "last" links.
2922 (append_user_reg): Add pre-allocated "reg" parameter.
2923 (builtin_user_regs): Provide initial value for "last".
2924 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2925 (user_regs_init): Allocate memory from the gdbarch obstack.
2926 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2927 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2929 (usernum_to_user_reg): New function.
2930 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2931 (value_of_user_reg): Use usernum_to_user_reg.
2932 (user_regs_free): Delete function.
2933 (_initialize_user_regs): Update register_gdbarch_data call.
2935 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2937 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
2939 2003-07-30 Michael Snyder <msnyder@redhat.com>
2941 * value.h (value_being_returned): Add a struct_addr argument.
2942 * infcall.c (call_function_by_hand): Pass struct_addr to
2943 value_being_returned.
2944 * infcmd.c (print_return_value): Pass zero as struct_addr.
2945 * values.c (value_being_returned): If struct_addr is passed,
2946 use it instead of trying to recover it from the inferior.
2948 2003-07-30 Kevin Buettner <kevinb@redhat.com>
2950 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
2951 the prologue analyzer won't need to attempt to extract the pc
2952 value from the woefully incomplete dummy frame.
2953 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
2954 possible. Disable code which modifies the frame.
2956 2003-07-28 Andrew Cagney <cagney@redhat.com>
2958 * annotate.c (annotate_breakpoints_headers): Restrict annotation
2960 (annotate_breakpoints_table, annotate_record): Ditto.
2961 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
2962 (annotate_field_name_end, annotate_field_value): Ditto.
2963 (annotate_field_end, annotate_frame_source_begin): Ditto.
2964 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
2965 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
2966 (annotate_frame_begin, annotate_frame_function_name): Ditto.
2967 (annotate_frame_address_end, annotate_frame_address): Ditto.
2968 (annotate_frame_args, annotate_frame_end): Ditto.
2969 (annotate_frame_where, annotate_arg_begin): Ditto.
2970 (annotate_arg_name_end, annotate_arg_value): Ditto.
2971 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
2972 (annotate_function_call, annotate_signal_name): Ditto.
2973 (annotate_signal_string, annotate_signal_name_end): Ditto.
2974 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
2975 (annotate_value_begin, annotate_value_history_value): Ditto.
2976 (annotate_value_history_end, annotate_value_end): Ditto.
2977 (annotate_display_begin, annotate_display_number_end): Ditto.
2978 (annotate_display_format, annotate_display_expression): Ditto.
2979 (annotate_display_expression_end, annotate_display_value): Ditto.
2980 (annotate_display_end, annotate_array_section_begin): Ditto.
2981 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
2982 (annotate_elt, annotate_array_section_end): Ditto.
2984 2003-07-28 Andrew Cagney <cagney@redhat.com>
2986 * regcache.c (struct regcache_descr): Update comments on
2988 (init_legacy_regcache_descr): Don't set nr_raw_registers or
2989 sizeof_raw_register_valid_p.
2990 (init_regcache_descr): Set nr_raw_registers and
2991 sizeof_raw_register_valid_p before calling
2992 init_legacy_regcache_descr.
2994 2003-07-28 Andrew Cagney <cagney@redhat.com>
2996 * mips-tdep.c (print_gp_register_row): Print the GPR's register
2999 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3001 * thread.c (info_threads_command): Use get_selected_frame ().
3002 Check that there is at least one non-sentinel frame.
3004 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3006 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3007 (m68hc11_pop_frame): Remove.
3008 (m68hc11_frame_saved_pc): Remove.
3009 (m68hc11_frame_chain): Remove.
3010 (m68hc11_frame_init_saved_regs): Remove.
3011 (m68hc11_init_extra_frame_info): Remove.
3012 (m68hc11_store_struct_return): Remove.
3013 (m68hc11_saved_pc_after_call): Remove.
3015 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3017 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3018 frame unwind information.
3019 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3020 and adapted for frame unwinding.
3021 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3022 (m68hc11_unwind_pc): New function.
3023 (m68hc11_frame_unwind_cache): New function to analyze frames.
3024 (m68hc11_frame_this_id): New function to create new frame struct.
3025 (m68hc11_frame_prev_register): New function to unwind a register from
3027 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3028 (m68hc11_frame_p): New function for the above.
3029 (m68hc11_frame_base_address): New function to return fp of frame.
3030 (m68hc11_frame_args_address): Update for frame.
3031 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3032 (m68hc11_unwind_sp): New function.
3033 (m68hc11_unwind_dummy_id): New function.
3034 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3037 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3039 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3040 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3041 when we are beyond the current pc.
3043 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3045 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3046 from m68hc11_push_arguments.
3047 (m68hc11_push_arguments): Remove.
3048 (m68hc11_push_return_address): Remove.
3049 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3050 handlers; remove deprecated_extra_stack_alignment_needed.
3052 2003-07-27 Andrew Cagney <cagney@redhat.com>
3054 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3055 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3056 REAL_PC and not the pointer.
3057 * hppa-hpux-tdep.c: Include frame.h
3059 2003-07-27 Andrew Cagney <cagney@redhat.com>
3061 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3062 GDB_MULTI_ACH_PARTIAL.
3064 2003-07-27 Andrew Cagney <cagney@redhat.com>
3066 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3067 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3068 operator at start and not end of line.
3069 (decode_prologue): Ditto.
3070 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3071 frame_unwind_register_unsigned instead of
3072 frame_unwind_unsigned_register.
3073 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3075 (m32r_push_dummy_call): Use register_size instead of
3077 (m32r_frame_sniffer): Replace m32r_frame_p.
3078 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3079 * m32r-rom.c (report_transfer_performance): Delete extern
3081 (m32r_load, m32r_upload_command): Use print_transfer_performance
3082 instead of report_transfer_performance.
3083 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3084 / add_show_from_set.
3086 2003-07-26 Andrew Cagney <cagney@redhat.com>
3088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3089 store_return_value and extract_struct_value_address.
3091 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3094 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3095 NULL, default to the section containing PC.
3097 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3099 * NEWS: Mention "regs" deprecated for m68hc11 too.
3101 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3102 (m68hc11_print_register): New function to print out one register.
3103 (m68hc11_print_registers_info): New function to print registers.
3104 (show_regs): Deprecate and use the above.
3105 (m68hc11_gdbarch_init): Install the print_registers_info.
3107 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3109 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3110 that we have a SIGTRAP before returning non-zero.
3112 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3113 Elena Zannoni <ezannoni@redhat.com>
3115 * linespec.c (decode_line_2): Avoid crash if
3116 find_function_start_sal() returns empty record.
3118 2003-07-23 Andreas Schwab <schwab@suse.de>
3120 * ia64-tdep.c (ia64_print_insn): New function.
3121 (ia64_gdbarch_init): Set print_insn to it.
3122 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3123 deprecated_tm_print_insn_info.
3125 2003-07-22 Michael Snyder <msnyder@redhat.com>
3127 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3128 handle 8-bit returns (long long).
3129 (h8300h_extract_return_value): Ditto.
3130 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3132 2003-07-22 Andrew Cagney <cagney@redhat.com>
3134 * gdbarch.c Include "gdb_obstack.h".
3135 (struct gdbarch): Add an "obstack".
3136 (alloc_gdbarch_data): Allocate the gdbarch data using
3137 GDBARCH_OBSTACK_CALLOC.
3138 (free_gdbarch_data): Delete function.
3139 (gdbarch_obstack_zalloc): New function.
3140 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3141 Assert that the architecture is not initialized.
3142 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3143 vector from the obstack.
3144 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3145 architecture obstack.
3146 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3147 (set_gdbarch_data): Assert that the data is not initialized.
3148 (struct gdbarch_data): Delete member "free".
3149 (register_gdbarch_data): Do not initialize "free".
3150 * gdbarch.h, gdbarch.c: Re-generate.
3152 2003-07-22 Andrew Cagney <cagney@redhat.com>
3154 * configure.in (build_warnings): Add -Wformat-nonliteral.
3155 * configure: Re-generate.
3157 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3159 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3161 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3163 * findvar.c (read_var_value): Remove case for thread local storage
3164 variables. It is now entirely handled by the dwarf2 location
3166 * printcmd.c (address_info): Ditto.
3167 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3169 (struct symbol): Remove objfile field, which was used by
3170 LOC_THREAD_LOCAL_STATIC only.
3171 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3172 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3173 usage of objfile pointer.
3174 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3175 thread local variables.
3176 Add include of objfiles.h.
3177 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3179 * Makefile.in (dwarf2loc.o): Update dependencies.
3181 2003-07-22 Andrew Cagney <cagney@redhat.com>
3183 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3185 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3186 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3187 (struct value): Add opaque declaration.
3188 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3190 2003-07-21 Andrew Cagney <cagney@redhat.com>
3192 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3193 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3195 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3197 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3198 regcache_cooked_read_unsigned instead of read_register.
3199 (m68hc11_saved_pc_after_call): Likewise.
3200 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3201 instead of write_register.
3202 (m68hc11_register_type): New function.
3203 (m68hc11_register_virtual_type): Remove.
3204 (m68hc11_store_return_value): Convert to use the regcache.
3205 (m68hc11_extract_struct_value_address): Likewise.
3206 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3207 m68hc11_register_type; undeprecate store_return_value and
3208 extract_struct_value_address.
3210 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3212 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3213 and translate to use regcache.
3214 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3216 2003-07-18 Andrew Cagney <cagney@redhat.com>
3218 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3219 * gdbarch.h, gdbarch.c: Re-generate.
3220 * i386-tdep.c (i386_gdbarch_init): Do not set
3221 DWARF2_BUILD_FRAME_INFO.
3222 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3224 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3225 DWARF2_BUILD_FRAME_INFO.
3227 2003-07-18 Andrew Cagney <cagney@redhat.com>
3229 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3230 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3232 2003-07-18 Andrew Cagney <cagney@redhat.com>
3234 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3235 frame_unwind_address_in_block, instead of frame_pc_unwind.
3236 (dwarf2_frame_cache): Ditto.
3238 2003-07-18 Andrew Cagney <cagney@redhat.com>
3240 * user-regs.h (struct gdbarch): Declare opaque.
3241 * ui-out.h (struct ui_file): Declare opaque.
3242 * dwarf2-frame.h (struct frame_info): Declare opaque.
3244 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3246 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3248 (procfs_meminfo): Change strerror to safe_strerror.
3249 (procfs_can_run): Remove K&R badness.
3251 2003-07-17 Michael Snyder <msnyder@redhat.com>
3253 * remote-sim.c: Comment typo fix.
3255 2003-07-17 Andrew Cagney <cagney@redhat.com>
3257 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3259 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3260 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3261 GDB_MULTI_ARCH_PARTIAL.
3263 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3265 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3266 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3267 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3269 2003-07-16 Theodore A. Roth <troth@openavr.org>
3271 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3273 (avr_frame_unwind_cache): Don't unwind FP for main.
3275 Save the computed prev_sp.
3276 (avr_saved_regs_unwinder): Remove function.
3277 (avr_frame_prev_register): Use PC unwind logic from
3278 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3280 2003-07-16 Andrew Cagney <cagney@redhat.com>
3282 * frame-base.h (frame_base_p_ftype): Delete definition.
3283 (frame_base_append_predicate): Delete declaration.
3284 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3285 (frame_unwind_append_predicate): Delete declaration.
3286 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3287 (append_predicate): Delete parameter "p".
3288 (frame_unwind_append_predicate): Delete function.
3289 (frame_unwind_append_sniffer): Update call to append_predicate.
3290 (frame_unwind_free): Delete function.
3291 (_initialize_frame_unwind): Pass NULL as "free" to
3292 register_gdbarch_data.
3293 (frame_unwind_init): Append the dummy_frame_sniffer.
3294 (frame_unwind_find_by_frame): Simplify.
3295 * frame-base.c (struct frame_base_table): Delete field "p".
3296 (append_predicate): Delete parameter "p".
3297 (frame_base_append_predicate): Delete function.
3298 (frame_base_append_sniffer): Update call to append_predicate.
3299 (frame_base_free): Delete function.
3300 (frame_base_find_by_frame): Simplify.
3301 (_initialize_frame_base): Pass NULL as "free" to
3302 register_gdbarch_data.
3303 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3304 (x86_64_sigtramp_frame_sniffer): Replace
3305 "x86_64_sigtramp_frame_p".
3306 (x86_64_init_abi): Set the frame unwind sniffers.
3307 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3308 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3309 (m68k_gdbarch_init): Set the frame unwind sniffers.
3310 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3311 "i386_sigtramp_frame_p".
3312 (i386_frame_sniffer): Replace "i386_frame_p".
3313 (i386_gdbarch_init): Set the frame unwind sniffers.
3314 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3315 (avr_gdbarch_init): Set the frame unwind sniffers.
3316 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3317 "alpha_sigtramp_frame_p"
3318 (alpha_heuristic_frame_sniffer): Replace
3319 "alpha_heuristic_frame_p".
3320 (alpha_gdbarch_init): Set the frame unwind sniffers.
3321 (alpha_dwarf2_init_abi): Ditto.
3322 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3323 "alpha_debug_frame_p".
3324 (alpha_mdebug_frame_base_sniffer): Replace
3325 "alpha_mdebug_frame_base_p".
3326 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3327 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3328 (d10v_gdbarch_init): Set the frame unwind sniffer.
3329 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3330 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3331 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3332 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3333 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3334 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3336 2003-07-16 Michael Snyder <msnyder@redhat.com>
3338 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3339 should go thru sh_dsp_register_sim_regno, else the dsp regs
3340 will not get the right values.
3342 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3344 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3345 deprecated_store_floating by call to store_typed_floating.
3346 (sh_sh4_register_convert_to_raw): Substitute call to
3347 deprecated_extract_floating by call to extract_typed_floating.
3349 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3351 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3353 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3355 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3356 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3357 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3359 (do_pseudo_register): Remove.
3360 (sh_push_dummy_code): New function.
3361 (sh64_store_struct_return): Rename from sh_store_struct_return.
3362 Only called for sh64 now.
3363 (sh_extract_struct_value_address): Regcache'ify.
3364 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3365 and accomodate new tasks.
3366 (sh64_push_return_address): Rename from sh_push_return_address.
3367 Only called for sh64 now.
3368 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3370 (sh3e_sh4_extract_return_value): Regcache'ify.
3371 (sh_default_store_return_value): Ditto.
3372 (sh3e_sh4_store_return_value): Ditto.
3373 (sh_default_register_byte): Remove.
3374 (sh_sh4_register_byte): Remove.
3375 (sh_default_register_raw_size): Remove.
3376 (sh_sh4_register_raw_size): Remove.
3377 (sh_register_virtual_size): Remove.
3378 (sh_sh3e_register_virtual_type): Remove.
3379 (sh_sh3e_register_type): New function.
3380 (sh_sh4_register_virtual_type): Remove.
3381 (sh_sh4_register_type): New function.
3382 (sh_default_register_virtual_type): Remove.
3383 (sh_default_register_type): New function.
3384 (do_fv_register_info): Add parameters to accomodate call from
3385 sh_print_registers_info.
3386 (do_dr_register_info): Ditto.
3387 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3388 Add parameters to accomodate call from sh_print_registers_info.
3389 (sh_do_fp_register): Ditto.
3390 (sh64_do_pseudo_register): Call do_dr_register_info,
3391 do_fv_register_info and sh_do_fp_register with default parameters.
3392 (sh_do_register): Add parameters to accomodate call from
3393 sh_print_registers_info.
3394 (sh_print_register): Ditto.
3395 (sh_print_registers_info): Rename from sh_do_registers_info.
3396 Add parameters to be used as gdbarch_print_registers_info
3397 implementation. Accomodate removed do_pseudo_register function
3399 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3400 function pointer. Call sh_print_register with default parameters.
3401 (sh64_do_registers_info): Call sh_print_registers_info instead of
3402 sh_do_registers_info.
3403 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3404 detection of deprecated vs. non-deprecated functionality.
3405 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3406 function pointer assignments by direct function calls.
3408 2003-07-15 Andrew Cagney <cagney@redhat.com>
3410 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3411 (frame_register_unwind, create_new_frame): Ditto.
3412 (legacy_get_prev_frame, get_frame_type): Ditto.
3413 (get_frame_base_address): Use frame_base_find_by_frame.
3414 (get_frame_locals_address): Use frame_base_find_by_frame.
3415 (get_frame_args_address): Use frame_base_find_by_frame.
3416 * frame-base.h (frame_base_sniffer_ftype): Declare.
3417 (frame_base_append_sniffer): Declare.
3418 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3419 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3420 (frame_base_append_sniffer): New function.
3421 (frame_base_append_predicate): Add a NULL sniffer.
3422 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3423 (struct frame_base_table): Add "sniffer".
3424 (frame_base_free): Free the "sniffer" table.
3425 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3426 (frame_unwind_append_sniffer): Declare.
3427 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3428 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3429 (struct frame_unwind_table): Add "sniffer", delete "middle".
3430 (append_predicate): Add "sniffer" parameter, append the sniffer.
3431 (frame_unwind_init): Update append_predicate call.
3432 (frame_unwind_append_sniffer): New function.
3433 (frame_unwind_append_predicate): Update append_predicate call.
3434 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3436 2003-07-15 Andrew Cagney <cagney@redhat.com>
3438 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3439 before code inhibiting repeated unwind attempts. Add to
3440 commentary on that test's problems.
3441 * blockframe.c (inside_main_func): Look for "main" in the minimal
3443 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3446 2003-07-15 Andrew Cagney <cagney@redhat.com>
3448 * complaints.c (struct explanation): Define.
3449 (struct complaints): Change type of "explanation" to "struct
3451 (symfile_explanations): Convert to a "struct explanation" table.
3452 (vcomplaint): Update.
3454 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3456 * x86-64-linux-nat.c (regmap): Removed.
3457 (supply_gregset, fill_gregset): Call
3458 x86_64_linux_(fill,supply)_gregset functions.
3459 * x86-64-linux-tdep.c (USER_*): New defines.
3460 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3461 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3463 (fetch_core_registers): Ditto.
3464 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3465 * x86-64-linux-tdep.h: New file.
3466 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3468 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3470 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3472 * x86-64-tdep.c (x86_64_store_return_value): Use
3473 regcache_cooked_write_part instead of regcache_cooked_write.
3475 * configure.host: Add x86_64-*-freebsd*.
3476 * configure.tgt: Add x86_64-*-freebsd*.
3477 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3478 * amd64fbsd-nat.c: New file.
3479 * amd64fbsd-tdep.c: New file.
3480 * config/i386/nm-fbsd64.h: New file.
3481 * config/i386/fbsd64.mh: New file.
3482 * config/i386/fbsd64.mt: New file.
3484 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3486 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3487 `sc_regs_offset' and `sc_fpregs_offset'.
3488 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3489 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3490 (alpha_sigtramp_register_address): Rewrite to use new members of
3491 `struct gdbarch_tdep'.
3492 (alpha_gdbarch_init): Initialize new members of struct
3494 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3495 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3496 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3497 (alphafbsd_pc_in_sigtramp): Implement.
3498 (alphafbsd_sigtramp_offset): New function.
3499 (alphafbsd_sigcontext_addr): New function.
3500 (alphafbsd_init_abi): Initialize signal trampoline related members
3501 of `struct gdbarch_tdep'.
3502 (_initialize_alphafbsd_tdep): Add prototype.
3504 2003-07-11 Theodore A. Roth <troth@openavr.org>
3506 * Makefile.in (install-only): Quote sed expression when generating
3509 2003-07-11 Richard Henderson <rth@redhat.com>
3511 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3512 * dwarf2-frame.c: Include complaints.h.
3513 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3514 variable initialization; return NULL on error.
3515 (decode_frame_entry): New.
3517 2003-07-11 Andrew Cagney <cagney@redhat.com>
3519 * frame.h (frame_address_in_block): Delete declaration.
3520 * blockframe.c (frame_address_in_block): Delete function.
3521 (get_frame_block): Use get_frame_address_in_block.
3522 (block_innermost_frame): Ditto.
3523 * stack.c (print_frame, backtrace_command_1): Ditto.
3525 * frame.h (get_frame_address_in_block): Declare.
3526 (frame_unwind_address_in_block): Declare.
3527 * frame.c (frame_unwind_address_in_block): New function.
3528 (get_frame_address_in_block): New function.
3530 2003-07-10 Andrew Cagney <cagney@redhat.com>
3532 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3533 pre-default. Note: re-generate has no effect.
3535 2003-07-10 Andrew Cagney <cagney@redhat.com>
3537 * gdbarch.sh: When a variable, but not a function, compare against
3538 0. Fix problem in previous patch.
3539 * gdbarch.c: Re-generate.
3541 2003-07-10 Andrew Cagney <cagney@redhat.com>
3543 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3544 functions against NULL, not 0.
3545 * gdbarch.c: Re-generate.
3547 2003-07-10 Fred Fish <fnf@ninemoons.com>
3549 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3550 null string instead of a null pointer.
3551 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3553 2003-07-09 Michael Snyder <msnyder@redhat.com>
3555 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3557 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3559 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3560 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3561 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3562 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3563 * x86-64-tdep.c: ... from here.
3565 2003-07-09 Andreas Schwab <schwab@suse.de>
3567 * m68k-tdep.h (enum struct_return): Define.
3568 (struct gdbarch_tdep): Add struct_return.
3569 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3570 bytes are padded to the right, not to the left. Pass struct value
3571 address in register %a1, not on stack.
3572 (m68k_use_struct_convention): New function.
3573 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3574 struct_return in tdep to pcc_struct_return.
3575 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3578 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3580 * somread.c (som_symfile_offsets): Fix compilation error.
3582 2003-07-09 Andrew Cagney <cagney@redhat.com>
3584 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3585 Add comments about the checks.
3587 2003-07-08 Andrew Cagney <cagney@redhat.com>
3589 * Makefile.in: Make dependency section headers consistent.
3590 (config_h): Move to $BUILD headers section.
3591 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3592 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3593 (ada-exp.tab.c): Move to YACC/LEX section.
3594 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3595 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3597 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3599 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3600 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3601 of strerror with safe_strerror, use ISO C function definitions,
3602 and replace instances of sprintf with snprintf.
3604 2003-07-07 Andrew Cagney <cagney@redhat.com>
3606 * frame.c (get_prev_frame): Enable check for identical frames.
3607 Update comments. Update error messages.
3609 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3611 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3613 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3615 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3616 sort_symtab_syms, no longer necessary.
3618 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3620 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3622 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3624 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3625 (mips_register_byte): Likewise.
3627 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3629 * Makefile.in (sparc_tdep_h): New.
3630 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3631 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3632 * sparc-linux-nat.c: Include "sparc-tdep.h".
3633 * sparc-nat.c: Likewise.
3634 * sparc-tdep.c: Likewise.
3635 * sparc64nbsd-nat.c: Likewise.
3636 * sparcnbsd-nat.c: Likewise.
3637 * sparcnbsd-tdep.c: Likewise.
3638 * sparc-tdep.h: New file.
3639 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3640 and sparc_npc_regnum.
3642 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3644 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3645 (mips_linux_cannot_store_register): List supported instead of
3646 unsupported registers.
3648 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3650 * disasm.c (dump_insns): Separate instructions from addresses.
3652 2003-07-07 Andreas Schwab <schwab@suse.de>
3654 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3656 * m68k-tdep.c (NUM_FREGS): Delete.
3657 (SIG_PC_FP_OFFSET): Delete.
3658 (TARGET_M68K): Delete.
3659 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3660 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3661 P_MOVEL_SP, P_MOVEML_SP): Define.
3662 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3664 (m68k_register_raw_size): Delete.
3665 (m68k_register_virtual_size): Delete.
3666 (m68k_register_type): Renamed from m68k_register_virtual_type and
3667 add gdbarch argument.
3668 (m68k_store_struct_return): Delete.
3669 (m68k_deprecated_extract_return_value): Delete.
3670 (m68k_deprecated_extract_struct_value_address): Delete.
3671 (m68k_frame_chain): Delete.
3672 (m68k_frame_saved_pc): Delete.
3673 (m68k_fix_call_dummy): Delete.
3674 (m68k_push_dummy_frame): Delete.
3675 (m68k_pop_frame): Delete.
3676 (m68k_extract_return_value): New function.
3677 (m68k_store_return_value): Rewrite using regcache.
3678 (m68k_extract_struct_value_address): Rewrite using regcache.
3679 (m68k_push_dummy_call): New function.
3680 (struct m68k_frame_cache): Define.
3681 (m68k_alloc_frame_cache): New function.
3682 (m68k_analyze_frame_setup): New function.
3683 (m68k_analyze_register_saves): New function.
3684 (m68k_analyze_prologue): New function.
3685 (m68k_skip_prologue): Rewrite using above functions.
3686 (m68k_unwind_pc): New function.
3687 (m68k_frame_cache): New function.
3688 (m68k_frame_this_id): New function.
3689 (m68k_frame_prev_register): New function.
3690 (m68k_frame_unwind): New variable.
3691 (m68k_frame_p): New function.
3692 (m68k_sigtramp_frame_cache): New function.
3693 (m68k_sigtramp_frame_this_id): New function.
3694 (m68k_sigtramp_frame_prev_register): New function.
3695 (m68k_sigtramp_frame_unwind): New variable.
3696 (m68k_sigtramp_frame_p): New function.
3697 (m68k_frame_base_address): New function.
3698 (m68k_frame_base): New function.
3699 (m68k_unwind_dummy_id): New function.
3700 (fill_gregset): Use regcache_collect.
3701 (fill_fpregset): Likewise.
3702 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3704 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3705 deprecated_init_frame_pc, deprecated_store_struct_return,
3706 deprecated_extract_return_value, deprecated_store_return_value,
3707 deprecated_frame_chain, deprecated_frame_saved_pc,
3708 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3709 deprecated_register_virtual_size,
3710 deprecated_max_register_raw_size,
3711 deprecated_max_register_virtual_size,
3712 deprecated_register_virtual_type, deprecated_register_size,
3713 deprecated_register_byte, deprecated_register_bytes,
3714 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3715 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3716 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3717 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3718 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3719 deprecated_push_dummy_frame, deprecated_pop_frame,
3720 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3721 only if SYSCALL_TRAP is defined. Set extract_return_value,
3722 store_return_value, extract_struct_value_address, register_type,
3723 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3725 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3726 M68K_MAX_REGISTER_SIZE): Define.
3727 (struct m68k_sigtramp_info): Define.
3728 (struct gdbarch_tdep): Add get_sigtramp_info.
3729 * m68klinux-nat.c (fetch_register): Use register_size instead of
3730 REGISTER_RAW_SIZE. Don't put assignment in if.
3731 (store_register): Likewise.
3732 (fetch_inferior_registers): Likewise.
3733 (store_inferior_registers): Likewise.
3734 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3735 (m68k_linux_frame_saved_pc): Delete.
3736 (m68k_linux_sigcontext_reg_offset,
3737 m68k_linux_ucontext_reg_offset): Define.
3738 (m68k_linux_get_sigtramp_info): New function.
3739 (m68k_linux_extract_return_value): Rewrite using regcache.
3740 (m68k_linux_store_return_value): Likewise.
3741 (m68k_linux_extract_struct_value_address): Likewise.
3742 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3743 Don't set deprecated_frame_saved_pc,
3744 deprecated_extract_return_value, deprecated_store_return_value,
3745 deprecated_extract_struct_value_address. Set
3746 extract_return_value, store_return_value,
3747 extract_struct_value_address.
3749 2003-07-07 Andrew Cagney <cagney@redhat.com>
3751 * expprint.c: Include "user-regs.h" instead of "frame.h".
3752 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3753 frame_map_regnum_to_name.
3754 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3755 (frame_map_name_to_regnum): Simplify, call
3756 user_reg_map_name_to_regnum.
3757 (frame_map_regnum_to_name): Simplify, call
3758 user_reg_map_regnum_to_name.
3759 (frame_register_unwind): Update.
3760 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3761 (_initialize_frame_reg): Call user_reg_add_builtin.
3762 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3763 (value_of_register): Use value_of_user_reg.
3764 * eval.c (evaluate_subexp_standard): Update.
3765 * parse.c (write_dollar_variable): Update.
3766 * d10v-tdep.c (d10v_print_registers_info): Update.
3767 * infcmd.c (registers_info): Update.
3768 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3769 (builtin_regs_h): Delete macro.
3770 (user_regs_h): Define.
3771 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3772 (builtin-regs.o): Delete target.
3773 (user-regs.o): Specify dependencies.
3774 (expprint.o): Update dependencies.
3775 (findvar.o): Update dependencies.
3776 (frame.o): Update dependencies.
3777 (std-regs.o): Update dependencies.
3779 2003-07-06 Christopher Faylor <cgf@redhat.com>
3781 * win32-nat.c (solib_symbols_add): Use one variable for all section
3782 address stuff. Pass variable rather than address of variable to
3783 safe_symbol_file_add.
3785 2003-07-06 Andreas Schwab <schwab@suse.de>
3787 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3789 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3791 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3793 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3795 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3797 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3799 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3800 * config/i386/nto.mh: New file.
3801 * config/i386/nm-nto.h: New file.
3802 * configure.host: Add i[3456]86-*-nto*.
3804 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3806 * remote-vx.c (vx_add_symbols): Fix compilation error.
3808 2003-07-03 Andrew Cagney <cagney@redhat.com>
3810 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3811 * gdbarch.h, gdbarch.c: Re-generate.
3812 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3813 (legacy_register_name): Declare.
3814 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3815 (REGISTER_NAME): Define.
3816 * sparc-tdep.c (legacy_register_name): New function.
3817 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3818 (REGISTER_NAME): Define.
3819 (hppa64_register_name): Declare.
3820 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3821 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3822 (hppa64_register_name): New function.
3823 (hppa_register_name): New function.
3824 * arch-utils.c (legacy_register_name): Delete.
3825 * arch-utils.h (legacy_register_name): Delete.
3827 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3829 * cli/cli-interp.c (cli_interpreter_resume): Update the
3830 cli_uiout's stream to gdb_stdout.
3832 2003-07-03 Andrew Cagney <cagney@redhat.com>
3834 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3836 * gdbarch.h, gdbarch.c: Re-generate.
3837 * regcache.c (init_regcache_descr): Use legacy code when either
3838 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3840 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3842 * NEWS: Move "set logging" entry into GDB 6.0 section.
3844 2003-07-02 Jim Blandy <jimb@redhat.com>
3846 * s390-tdep.c (struct frame_extra_info): new member:
3847 'stack_bought_valid'.
3848 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3849 initialize fextra_info->stack_bought.
3850 (s390_frameless_function_invocation): Don't trust the value of
3851 fextra_info_ptr->stack_bought unless
3852 fextra_info->stack_bought_valid is set.
3854 New S390 prologue analyzer.
3855 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3856 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3857 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3858 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3859 compute_x_addr, s390_on_stack, s390_store,
3860 s390_get_signal_frame_info): New functions.
3861 (S390_NUM_SPILL_SLOTS): New macro.
3862 (s390_get_frame_info): Rewritten.
3863 (is_arg_reg): Deleted.
3865 Break out the decoding of S/390 instructions into separate
3866 functions, to make it more legible, and easier to check
3868 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3869 is_rx, is_rxe): New functions.
3870 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3871 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3872 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3873 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3874 enums for opcode values. (Is this an improvement?)
3876 2003-07-02 Andrew Cagney <cagney@redhat.com>
3878 * i386-tdep.c: Revert change committed as part of trad-frame code
3881 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3883 * breakpoint.c (insert_catchpoint): Make static.
3885 2003-07-02 Andreas Schwab <schwab@suse.de>
3887 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3888 former ia64_push_arguments and ia64_push_return_address, and use
3889 regcache functions instead of read/write_register.
3890 (ia64_gdbarch_init): Set push_dummy_call instead of
3891 deprecated_push_arguments and deprecated_push_return_address.
3893 2003-07-01 Andreas Jaeger <aj@suse.de>
3895 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3897 Set %rax only to number of SSE registers used.
3899 2003-07-01 Andrew Cagney <cagney@redhat.com>
3901 * trad-frame.h: Update comments, a -1 .addr is reserved.
3902 (trad_frame_value_p, trad_frame_addr_p): Declare.
3903 (trad_frame_reg_p): Declare.
3904 (trad_frame_set_value): Rename trad_frame_register_value.
3905 (trad_frame_set_unknown): Declare.
3906 * trad-frame.c (trad_frame_realreg_p): New function.
3907 (trad_frame_addr_p, trad_frame_value_p): New function.
3908 (trad_frame_set_unknown): New function.
3909 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3910 (trad_frame_prev_register): Use trad_frame_realreg_p,
3911 trad_frame_addr_p and trad_frame_value_p.
3912 (trad_frame_set_value): Rename trad_frame_register_value.
3913 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3914 and trad_frame_set_value.
3916 2003-06-30 Jim Blandy <jimb@redhat.com>
3918 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3919 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3920 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3921 for 16 registers, and then 32 more bytes.
3922 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3924 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3925 Move up in the file, since it's now used by is_simple_arg.
3926 (is_simple_arg): Don't assume registers are four bytes long.
3927 Exclude all double arguments. Extended floats are not simple
3929 (is_power_of_two): New function.
3930 (pass_by_copy_ref): Call is_power_of_two, and check that the
3931 length fits in a register, rather than listing all the acceptable
3932 sizes. Extended floats are not passed by reference.
3933 (s390_push_arguments): Don't assume registers are four bytes long.
3934 Reserve an argument register to point to the buffer for structures
3935 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3936 S390_STACK_FRAME_OVERHEAD.
3938 2003-06-30 Andreas Schwab <schwab@suse.de>
3940 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
3941 format error message.
3943 2003-06-30 Joel Brobecker <brobecker@gnat.com>
3945 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
3947 2003-06-30 David Carlton <carlton@kealia.com>
3949 Band-aid for PR c++/1245.
3950 * Makefile.in (cp-support.o): Depend on complaints_h.
3951 * cp-support.c: Include complaints.h. Add declaration for
3952 find_last_component.
3953 (cp_find_first_component): Separate code into
3954 cp_find_first_component_aux.
3955 (cp_find_first_component_aux): Call demangled_name_complaint.
3956 (demangled_name_complaint): New.
3958 2003-06-30 Andrew Cagney <cagney@redhat.com>
3960 * remote.c (remote_write_bytes): Explicitly compute and then use
3961 the payload size. Update comments to reflect. Fixes problem of
3962 GDB not sending small packets as found by Fred Fish.
3964 2003-06-30 Andrew Cagney <cagney@redhat.com>
3966 * remote.c (remote_async_wait): Fix -Wformat problem.
3968 2003-06-29 Andrew Cagney <cagney@redhat.com>
3970 * remote.c (remote_wait): Call error, and not warning, when the
3972 (remote_async_wait): Ditto.
3974 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3976 * sparc-tdep.c (sparc_y_regnum): Make external again.
3978 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
3980 * cli/cli-logging.c (pop_output_files): Add void to function
3983 2003-06-29 Andrew Cagney <cagney@redhat.com>
3985 * frame.c (frame_register_unwind): Use unsigned char when dumping
3986 the buffer contents.
3988 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
3990 * cli/cli-logging.c: New file.
3991 * cli-out.c (struct ui_out_data): Add original_stream.
3992 (cli_redirect): New function.
3993 (cli_ui_out_impl): Add cli_redirect.
3994 (cli_out_new): Initialize original_stream.
3995 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
3996 (uo_redirect, ui_out_redirect): New.
3997 * ui-out.h (struct ui_out_impl): Add redirect member.
3998 (redirect_ftype): New.
3999 (ui_out_redirect): Add prototype.
4000 * Makefile.in: Add rules for cli-logging.c.
4001 * NEWS: Mention "set logging".
4003 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4005 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4007 2003-06-27 Andrew Cagney <cagney@redhat.com>
4009 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4010 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4011 * avr-tdep.c (avr_call_dummy_address): Delete function.
4012 (avr_gdbarch_init): Do not set call_dummy_address.
4014 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4016 * symfile.c (syms_from_objfile): Move variables to inner block.
4017 Move the checks for the non-mainline case a bit earlier to avoid
4018 doing some useless computations.
4020 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4022 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4024 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4026 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4029 2003-06-26 Michael Chastain <mec@shout.net>
4031 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4032 gdb/testsuite/gdb.c++/pr-1210.exp.
4034 2003-06-26 Andrew Cagney <cagney@redhat.com>
4036 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4037 altivec_expression.h and altivec_registers.h.
4039 2003-06-26 Andrew Cagney <cagney@redhat.com>
4041 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4042 info->mach when MIPS16. Patch suggested by Fred Fish.
4044 2003-06-26 Andrew Cagney <cagney@redhat.com>
4046 * utils.c (internal_vproblem): Print the problem to a reason
4047 buffer and then pass to query. Make the msg variable more local.
4049 2003-06-26 Andrew Cagney <cagney@redhat.com>
4051 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4052 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4053 * gdbarch.h, gdbarch.c: Re-generate.
4054 * frame-base.c (default_frame_args_address): Update. Use
4055 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4057 (default_frame_locals_address): Ditto for
4058 DEPRECATED_FRAME_LOCALS_ADDRESS.
4059 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4060 (vax_frame_num_args): Update.
4061 (vax_gdbarch_init): Update.
4062 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4063 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4064 * mcore-tdep.c (mcore_gdbarch_init): Update.
4065 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4066 * ia64-tdep.c (ia64_gdbarch_init): Update.
4067 * symtab.h (address_class): Update comments.
4068 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4069 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4070 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4071 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4072 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4073 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4074 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4075 * alpha-mdebug-tdep.c: Update.
4076 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4078 2003-06-26 Andreas Jaeger <aj@suse.de>
4080 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4081 of SSE registers so that varargs functions work. Rework handling
4082 of passing arguments on the stack.
4083 (x86_64_store_return_value): Return double and float values in SSE
4086 2003-06-24 Michael Chastain <mec@shout.net>
4088 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4089 the "constructor breakpoints ignored" bug.
4091 2003-06-25 David Carlton <carlton@kealia.com>
4093 * MAINTAINERS: Update e-mail address.
4095 2003-06-24 Jim Blandy <jimb@redhat.com>
4097 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4099 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4101 (ppc_linux_init_abi): Register it as the
4102 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4104 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4105 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4108 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4109 (ppc64_standard_linkage_target): Use it.
4111 2003-06-23 Andrew Cagney <cagney@redhat.com>
4113 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4114 for 0 "int0" and 4 "int32" sized registers.
4115 * gdbtypes.c (builtin_type_int0): Define.
4116 (build_gdbtypes): Initialize builtin_type_int0.
4117 * gdbtypes.h (builtin_type_int0): Declare.
4119 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4122 as characters are unsigned.
4124 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4127 * dwarfread.c (struct_type): Skip static fields without crashing.
4129 2003-06-22 Andrew Cagney <cagney@redhat.com>
4131 GDB 6.0 branch created.
4133 * PROBLEMS: Update. Empty.
4136 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4138 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4139 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4141 2003-06-22 Andrew Cagney <cagney@redhat.com>
4143 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4144 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4147 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4149 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4152 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4154 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4155 argument of val_print.
4156 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4157 to the address argument of baseclass_offset or target_read_memory.
4158 Do add it to the argument of cp_print_value_fields.
4160 2003-06-21 Andrew Cagney <cagney@redhat.com>
4162 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4163 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4164 instead of 0..NUM_REGS.
4165 (mips_register_reggroup_p): New function.
4166 (mips_pseudo_register_write): New function.
4167 (mips_pseudo_register_read): New function.
4168 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4169 based on the register's type.
4170 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4172 (mips_get_saved_register): Simplify. Assert that REGNO is a
4174 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4175 (mips_register_type): Replace mips_register_virtual_type. Map
4176 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4178 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4179 that the register is cooked / virtual.
4180 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4181 Only get the extra info when needed.
4182 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4183 (mips32_heuristic_proc_desc): Fetch the cooked register.
4184 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4185 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4186 (mips_print_register): Use gdbarch_register_type, instead of
4187 REGISTER_VIRTUAL_TYPE.
4188 (print_gp_register_row): Use gdbarch_register_type, instead of
4189 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4190 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4191 Print the pseudo / cooked registers.
4192 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4193 Print the pseudo / cooked registers.
4194 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4195 REG_NUM is pseudo / cooked.
4196 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4197 (mips_n32n64_xfer_return_value): Ditto.
4198 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4199 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4200 (mips_register_sim_regno): New function.
4201 (mips_gdbarch_init): Set deprecated_register_byte,
4202 register_group_p, pseudo_register_write, pseudo_register_read,
4203 register_sim_regno, and num_pseudo_regs. Set register_type,
4204 instead of register_virtual_type.
4205 * Makefile.in (mips-tdep.o): Update dependencies.
4206 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4207 REGISTER_VIRTUAL_TYPE.
4208 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4209 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4210 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4211 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4212 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4214 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4216 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4217 * cli/cli-cmds.c: Include "gdb_vfork.h".
4218 (shell_escape): Use vfork.
4220 2003-06-21 Andrew Cagney <cagney@redhat.com>
4222 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4223 32 bit floating-point register saves.
4225 * frame.h (deprecated_unwind_get_saved_register): Delete.
4226 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4227 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4228 and deprecated_get_next_frame_hack instead of
4229 deprecated_unwind_get_saved_register.
4231 * mips-tdep.c (mips_dump_tdep): Do not print
4232 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4234 * frame.c (get_frame_register): New function.
4235 (frame_unwind_register_signed): New function.
4236 (get_frame_register_signed): New function.
4237 (frame_unwind_register_unsigned): New function.
4238 (get_frame_register_unsigned): New function.
4239 * frame.h: Add comments on naming schema.
4240 (get_frame_register, frame_unwind_register_signed): Declare.
4241 (get_frame_register_signed, get_frame_register_signed): Declare.
4242 (frame_unwind_register_unsigned): Declare.
4243 (get_frame_register_unsigned): Declare.
4245 2003-06-20 Theodore A. Roth <troth@openavr.org>
4247 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4249 2003-06-20 Theodore A. Roth <troth@openavr.org>
4251 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4252 (avr_read_sp): Ditto.
4254 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4256 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4257 * config/arm/nm-linux.h: Likewise.
4258 * config/arm/tm-linux.h: Likewise.
4259 * config/ia64/nm-linux.h: Likewise.
4260 * config/ia64/tm-ia64.h: Likewise.
4261 * config/s390/tm-linux.h: Likewise.
4262 * config/s390/tm-s390.h: Likewise.
4263 * s390-nat.c: Likewise.
4264 * s390-tdep.c: Likewise.
4266 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4267 * config/ia64/linux.mt: Likewise.
4268 * config/m68k/linux.mh: Likewise.
4269 * config/mips/linux.mt: Likewise.
4270 * config/powerpc/linux.mh: Likewise.
4271 * config/sh/linux.mt: Likewise.
4273 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4275 * solib.c (solib_open): Change tests for whether to search
4276 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4279 2003-06-19 Theodore A. Roth <troth@openavr.org>
4281 * avr-tdep.c (avr_frame_address): Delete function.
4282 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4283 set_gdbarch_frame_args_address.
4285 2003-06-19 Andrew Cagney <cagney@redhat.com>
4287 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4288 (REGISTER_CONVERT_FROM_TYPE): Delete.
4289 (mips_register_convert_to_type): Delete declaration.
4290 (mips_register_convert_from_type): Delete declaration.
4291 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4294 2003-06-19 Michael Snyder <msnyder@redhat.com>
4296 * linux-nat.h: New file.
4297 * linux-nat.c: Include linux-nat.h.
4298 * lin-lwp.c: Include linux-nat.h.
4299 Move struct lwp_info def to linux-nat.h.
4300 * linux-proc.c: Include linux-nat.h.
4301 (linux_make_note_section): Iterate over lwps instead of threads.
4302 (linux_do_thread_registers): Use lwp instead of merged pid.
4303 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4304 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4305 Add dependency on linux_nat_h.
4307 2003-06-19 Theodore A. Roth <troth@openavr.org>
4309 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4311 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4313 * varobj.c (get_type, get_target_type): Use check_typedef.
4315 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4317 * breakpoint.c (insert_catchpoint): Call internal_error.
4319 2003-06-19 Theodore A. Roth <troth@openavr.org>
4321 * avr-tdep.c (avr_push_dummy_code): Delete function.
4322 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4324 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4326 * arch-utils.c (default_prepare_to_proceed): Remove.
4327 (generic_prepare_to_proceed): Remove.
4328 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4329 (generic_prepare_to_proceed): Remove prototype.
4330 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4331 * gdbarch.c: Regenerate.
4332 * gdbarch.h: Regenerate.
4333 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4334 * hppah-nat.c (hppa_switched_threads): Remove.
4335 * infrun.c (prepare_to_proceed): New static function, copied from
4336 generic_prepare_to_proceed. Remove select_it argument.
4337 (proceed): Call prepare_to_proceed.
4338 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4340 (ptrace_wait): Don't set the removed variables.
4341 (hppa_switched_threads): Remove.
4342 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4343 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4344 (lin_lwp_prepare_to_proceed): Remove prototype.
4345 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4346 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4348 2003-06-18 Theodore A. Roth <troth@openavr.org>
4350 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4352 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4353 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4354 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4355 (AVR_PROLOGUE_*): Enumerate prologue types.
4356 (struct frame_extra_info): Remove.
4357 (struct avr_unwind_cache): Define.
4358 (avr_write_sp): Delete function.
4359 (avr_read_fp): Ditto.
4360 (avr_init_extra_frame_info): Ditto.
4361 (avr_pop_frame): Ditto.
4362 (avr_frame_saved_pc): Ditto.
4363 (avr_saved_pc_after_call): Ditto.
4364 (avr_push_return_address): Ditto.
4365 (avr_frame_chain): Ditto.
4366 (avr_store_struct_return): Ditto.
4367 (avr_push_arguments): Ditto.
4368 (avr_scan_prologue): Update comments. Changed to set up the info for
4369 cache unwinding. Now returns end of prologue PC.
4370 (avr_skip_prologue): Better handling of functions lacking a prologue
4371 by using avr_scan_prologue.
4372 (avr_scan_arg_moves): New function.
4373 (avr_saved_regs_unwinder): Ditto.
4374 (avr_frame_unwind_cache): Ditto.
4375 (avr_unwind_pc): Ditto.
4376 (avr_frame_this_id): Ditto.
4377 (avr_frame_prev_register): Ditto.
4378 (avr_frame_p): Ditto.
4379 (avr_frame_base_address ): Ditto.
4380 (avr_unwind_dummy_id): Ditto.
4381 (avr_push_dummy_code): Ditto.
4382 (push_stack_item): Ditto.
4383 (pop_stack_item): Ditto.
4384 (avr_push_dummy_call): Ditto.
4385 (struct stack_item): Define.
4386 (avr_frame_unwind): Declare structure.
4387 (avr_frame_base): Ditto.
4388 (avr_gdbarch_init): Remove calls to
4389 set_gdbarch_deprecated_init_frame_pc,
4390 set_gdbarch_deprecated_target_read_fp,
4391 set_gdbarch_deprecated_dummy_write_sp,
4392 set_gdbarch_deprecated_fp_regnum,
4393 set_gdbarch_deprecated_push_arguments,
4394 set_gdbarch_deprecated_push_return_address,
4395 set_gdbarch_deprecated_pop_frame,
4396 set_gdbarch_deprecated_store_struct_return,
4397 set_gdbarch_deprecated_frame_init_saved_regs,
4398 set_gdbarch_deprecated_init_extra_frame_info,
4399 set_gdbarch_deprecated_frame_chain,
4400 set_gdbarch_deprecated_frame_saved_pc,
4401 set_gdbarch_deprecated_saved_pc_after_call.
4402 Add calls to set_gdbarch_push_dummy_call,
4403 set_gdbarch_push_dummy_code,
4404 frame_unwind_append_predicate,
4405 frame_base_set_default,
4406 set_gdbarch_unwind_dummy_id,
4407 set_gdbarch_unwind_pc.
4410 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4412 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4413 registers for H8/300S.
4414 (h8300_print_registers_info): Ditto.
4415 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4417 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4419 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4420 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4421 (lin_lwp_wait): Likewise. Update comments.
4422 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4423 (pull_pid_from_list, linux_record_stopped_pid): New.
4425 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4427 * ada-lang.c (scan_discrim_bound): Name first argument.
4428 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4429 declared by ALL_BLOCK_SYMBOLS.
4431 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4433 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4434 ("regcache.h"): Include it.
4435 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4437 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4439 * NEWS: Mention gdbserver detach change and "disconnect" command.
4440 * infcmd.c (disconnect_command): New function.
4441 (_initialize_infcmd): Add ``disconnect'' command.
4442 * remote.c (remote_async_detach): Delete.
4443 (remote_detach): Merge remote_async_detach.
4444 (remote_disconnect): New.
4445 (init_remote_ops): Set to_disconnect.
4446 (init_remote_cisco_ops): Likewise.
4447 (init_remote_async_ops): Likewise. Use remote_detach.
4448 * target.c (cleanup_target): Default to_disconnect.
4449 (update_current_target): Inherit to_disconnect.
4450 (target_disconnect, debug_to_disconnect): New functions.
4451 (setup_target_debug): Set to_disconnect.
4452 * target.h (struct target_ops): Add to_disconnect.
4453 (target_disconnect): Add prototype.
4455 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4457 * breakpoint.c (insert_catchpoint): New function.
4458 (insert_breakpoints): Use catch_exceptions to call
4459 insert_catchpoint. Disable catchpoints if they fail to insert.
4461 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4463 * symfile.c (reread_symbols): Clear sym_private.
4465 2003-06-17 Andrew Cagney <cagney@redhat.com>
4467 * trad-frame.h (struct frame_info): Add opaque declaration.
4468 * remote-fileio.h (struct cmd_list_element): Add opaque
4470 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4473 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4475 * remote.c (remote_prepare_to_store): Replace call to
4476 deprecated_read_register_bytes with multiple regcache_raw_read
4479 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4481 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4482 (nto_find_and_open_solib): Likewise.
4483 (nto_init_solib_absolute_prefix): Likewise.
4484 (_initialize_nto_tdep): Fix indentation.
4486 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4488 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4490 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4492 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4494 2003-06-17 Jim Blandy <jimb@redhat.com>
4496 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4498 2003-06-16 Theodore A. Roth <troth@openavr.org>
4500 * avr-tdep.c (avr_extract_return_value): New function.
4501 (avr_gdbarch_init): Set extract_return_value method.
4503 2003-06-16 Andrew Cagney <cagney@redhat.com>
4505 * frame.h (deprecated_get_next_frame_hack): Declare.
4506 * frame.c (legacy_saved_regs_prev_register): Only require
4507 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4508 there are always saved regs.
4509 (deprecated_generic_get_saved_register): Do not require
4510 DEPRECATED_FRAME_INIT_SAVED_REGS.
4511 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4512 use frame ID unwind instead.
4513 (deprecated_get_next_frame_hack): New function.
4515 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4517 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4518 (h8300_push_dummy_call): ...this function. Some minor optimization.
4519 (h8300_push_return_address): Remove.
4520 (h8300_gdbarch_init): Remove calls to
4521 set_gdbarch_deprecated_dummy_write_sp,
4522 set_gdbarch_deprecated_push_arguments and
4523 set_gdbarch_deprecated_push_return_address.
4524 Add call to set_gdbarch_push_dummy_call.
4526 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4528 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4529 (E_PSEUDO_EXR_REGNUM): Ditto.
4530 (h8300_is_argument_spill): Check for instructions moving argument
4531 registers into safe registers.
4532 (h8300_skip_prologue): Check for stm instruction to push registers
4533 used for register variables onto stack.
4534 (gdb_print_insn_h8300): Remove.
4535 (h8300_examine_prologue): Add a comment.
4536 (h8300_register_name): Take pseudo registers into account.
4537 (h8300s_register_name): Ditto.
4538 (h8300sx_register_name): Ditto.
4539 (h8300_print_register): Ditto.
4540 (h8300_print_registers_info): Define "nice" printing order.
4541 (h8300_saved_pc_after_call): Take pseudo registers into account.
4542 (h8300_register_type): Ditto. Return type used for remote connection
4543 when requesting real CCR or EXR register, return actual type when
4544 requesting pseudo CCR or EXR.
4545 (h8300_pseudo_register_read): New function.
4546 (h8300_pseudo_register_write): Ditto.
4547 (h8300_dbg_reg_to_regnum): Ditto.
4548 (h8300s_dbg_reg_to_regnum): Ditto.
4549 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4550 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4551 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4552 set_gdbarch_print_insn architecture dependent.
4553 Call set_gdbarch_pseudo_register_read and
4554 set_gdbarch_pseudo_register_write.
4555 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4557 2003-06-16 Andrew Cagney <cagney@redhat.com>
4559 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4560 * gdbarch.h, gdbarch.c: Re-generate.
4561 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4562 * s390-tdep.c (s390_gdbarch_init): Update.
4563 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4564 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4565 * mips-tdep.c (mips_gdbarch_init): Update.
4566 * mcore-tdep.c (mcore_gdbarch_init): Update.
4567 * cris-tdep.c (cris_gdbarch_init): Update.
4568 * infcall.c (call_function_by_hand): Update.
4569 * ia64-tdep.c (ia64_push_arguments): Update comment.
4570 * frame.c (legacy_get_prev_frame): Do not assume
4571 SAVE_DUMMY_FRAME_TOS_P.
4572 * dummy-frame.c (find_dummy_frame): Update comment.
4574 2003-06-16 Andrew Cagney <cagney@redhat.com>
4576 * regcache.c (do_cooked_read): Do not use register_valid_p.
4578 2003-06-15 Theodore A. Roth <troth@openavr.org>
4580 * avr-tdep.c (avr_register_type): Remove a blank line.
4581 (avr_scan_prologue): Correct some comments.
4583 2003-06-15 Theodore A. Roth <troth@openavr.org>
4585 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4587 Properly scan prologues generated by gcc with the -mcall-prologues
4589 Add code to scan -mcall-prologues for mega devices.
4591 2003-06-15 Theodore A. Roth <troth@openavr.org>
4593 * avr-tdep.c (avr_register_byte): Delete function.
4594 (avr_register_raw_size): Delete function.
4595 (avr_register_virtual_size): Delete function.
4596 (avr_register_virtual_type): Delete function.
4597 (avr_register_type): New function.
4598 (avr_address_to_pointer): Remove unused code.
4599 (avr_read_fp): Need to read FP as two separate bytes due to change to
4600 avr_register_type() usage.
4601 (avr_gdbarch_init): Don't set deprecated_register_size.
4602 Don't set deprecated_register_bytes.
4603 Don't set deprecated_register_byte.
4604 Don't set deprecated_register_raw_size.
4605 Don't set deprecated_max_register_raw_size.
4606 Don't set deprecated_register_virtual_size.
4607 Don't set deprecated_max_register_virtual_size.
4608 Don't set deprecated_register_virtual_type.
4609 Set register_type method.
4611 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4613 * Makefile.in (linux-nat.o): Add rule.
4614 * linux-nat.c: New file.
4615 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4616 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4617 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4618 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4619 * config/arm/linux.mh (NATDEPFILES): Likewise.
4620 * config/i386/linux.mh (NATDEPFILES): Likewise.
4621 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4622 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4623 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4624 * config/mips/linux.mh (NATDEPFILES): Likewise.
4625 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4626 * config/s390/s390.mh (NATDEPFILES): Likewise.
4627 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4629 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4631 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4632 replace out-of-date comment.
4634 2003-06-15 Andrew Cagney <cagney@redhat.com>
4636 * rdi-share/host.h (Fail): Change to a varargs function.
4637 * remote-rdi.c (Fail): Update.
4639 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4641 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4642 (i386_convert_register_p, i386_register_to_value,
4643 i386_register_from_value): Handle types longer than 8 bytes.
4645 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4647 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4648 Move floating-point code to new function in i387-tdep.c.
4649 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4650 New functions containing code moved here from i386-tdep.c.
4651 * i387-tdep.h: Add opaque declaration for `struct type'.
4652 (i387_register_to_value, i387_value_to_register): New prototypes.
4653 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4654 (x86_64_init_abi): Set convert_register_p, register_to_value and
4655 value_to_register here.
4657 2003-06-14 Andrew Cagney <cagney@redhat.com>
4659 * mips-tdep.c (mips_register_to_value): Make static.
4660 (mips_value_to_register): Make static.
4661 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4662 * ia64-tdep.c (ia64_register_raw_size): Make static.
4663 (ia64_register_virtual_size): Make static.
4664 (ia64_register_byte): Make static.
4665 * i387-tdep.c: Include "i387-tdep.h".
4666 (print_387_control_word): Delete function.
4667 (print_387_status_word): Delete function.
4668 (print_387_status_bits): Delete function.
4669 (print_387_control_bits): Delete function.
4670 * Makefile.in (i387-tdep.o): Update dependencies.
4671 * rdi-share/host.h (Fail): Declare.
4672 * remote-rdi.c (Fail): Update to match declaration.
4674 2003-06-14 Andrew Cagney <cagney@redhat.com>
4676 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4677 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4678 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4679 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4680 * README: Delete reference to remote-array.
4681 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4682 (remote-array.o): Delete target.
4683 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4684 * remote-array.c: Delete file.
4686 2003-06-14 Andrew Cagney <cagney@redhat.com>
4687 Mark Kettenis <kettenis@gnu.org>
4689 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4690 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4691 parameter with "frame".
4692 * gdbarch.h, gdbarch.c: Re-generate.
4693 * frame.h (put_frame_register): Declare.
4694 * frame.c (put_frame_register): New function.
4695 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4696 (legacy_register_to_value): Rewrite, use "frame" to get the
4698 (legacy_value_to_register): Rewrite, use "frame" to find the
4699 register's location before storing.
4700 * arch-utils.h (legacy_convert_register_p): Update.
4701 (legacy_register_to_value, legacy_value_to_register): Update.
4702 * findvar.c (value_from_register): Rewrite, eliminate use of
4703 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4704 "frame" to REGISTER_TO_VALUE.
4705 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4706 lval_reg_frame_relative + lval_register branch of the switch. Do
4707 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4708 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4709 I386_EDI_REGNUM): New defines.
4710 (i386_next_regnum, i386_convert_register_p,
4711 i386_register_to_value, i386_value_to_register): New functions.
4712 (i386_register_convertible, i386_register_convert_to_virtual,
4713 i386_convert_to_raw): Remove functions.
4714 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4715 value_to_register instead of register_convertible,
4716 register_convert_to_virtual and register_convert_to_raw.
4717 * mips-tdep.c (mips_convert_register_p): New function.
4718 (mips_value_to_register): Replace mips_register_convert_from_type.
4719 (mips_register_to_value): Replace mips_register_convert_to_type.
4720 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4722 * alpha-tdep.c (alpha_convert_register_p): Update.
4723 (alpha_value_to_register): Update, store the register.
4724 (alpha_register_to_value): Update, fetch the register.
4726 2003-06-14 Theodore A. Roth <troth@openavr.org>
4728 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4729 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4730 Don't set deprecated_call_dummy_words.
4731 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4732 Don't set remote_translate_xfer_address.
4733 (avr_io_reg_read_command): Remove commented out debug printf.
4736 2003-06-14 Theodore A. Roth <troth@openavr.org>
4738 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4739 causes gdb to seg fault.
4741 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4743 * sparc-nat.c (fetch_inferior_registers): Correct
4744 a reference to "registers".
4746 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4748 * Makefile.in (exc_request_U_h): Define
4749 (exc_request_S_h): Likewise.
4750 (msg_reply_S_h): Likewise.
4751 (msg_U_h): Likewise.
4752 (notify_S_h): Likewise.
4753 (process_reply_S_h): Likewise.
4754 (gnu-nat.o): Depend on gdb_obstack_h
4755 * gnu-nat.c: Include "gdb_obstack.h".
4757 2003-06-13 Andrew Cagney <cagney@redhat.com>
4759 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4760 * gdbarch.h, gdbarch.c: Re-generate.
4762 2003-06-13 Andrew Cagney <cagney@redhat.com>
4764 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4765 when deprecated REGISTER macros can be deleted.
4766 * gdbarch.h, gdbarch.c: Re-generate.
4768 2003-06-13 Jim Blandy <jimb@redhat.com>
4770 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4771 Linux entry point symbols for _dl_debug_state, too.
4773 2003-06-13 Andrew Cagney <cagney@redhat.com>
4775 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4776 available, do not use the FP register, and always save the TOS.
4777 * dummy-frame.c (dummy_frame_this_id): Do not assert
4778 SAVE_DUMMY_FRAME_TOS.
4779 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4780 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4781 (i386_push_dummy_call): Add 8 to the returned SP.
4782 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4783 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4784 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4785 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4786 (x86_64_push_dummy_call): Return "sp + 16".
4787 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4788 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4789 save_dummy_frame_tos.
4791 2003-06-13 Jim Blandy <jimb@redhat.com>
4793 * frv-tdep.c (frv_use_struct_convention): Delete static
4794 declaration for function deleted in my change of 2003-06-12.
4796 2003-06-13 Theodore A. Roth <troth@openavr.org>
4798 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4799 (avr_pointer_to_address): Shift code addrs left 1 bit.
4800 (avr_convert_from_func_ptr_addr): Delete function since operation is
4801 better handled by avr_address_to_pointer and avr_pointer_to_address.
4802 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4804 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4806 From Kelley Cook <kelleycook@wideopenwest.com>:
4807 * configure.host: Accept i[34567]86 variants.
4808 * configure.tgt: Likewise.
4809 * nlm/configure.in: Likewise.
4810 * nlm/configure: Regenerated.
4812 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4814 * arm-tdep.c (solib-svr4.h): Dont' include it.
4815 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4816 * arm-linux-tdep.c: ... here. Make static.
4817 (arm_linux_init_abi): Register it.
4818 (solib-svr4.h): Include it.
4819 * Makefile.in: Update dependencies.
4820 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4821 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4823 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4825 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4826 indicate registers used for return values.
4827 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4828 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4830 (h8300_init_extra_frame_info): Ditto.
4831 (h8300_frame_locals_address): Removed.
4832 (h8300_frame_args_address): Removed.
4833 (h8300_extract_return_value): Use new regcache structure. Only care
4835 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4836 (h8300_store_return_value): Use new regcache structure. Only care
4838 (h8300h_store_return_value): Same function for 32 bit CPUs.
4839 (h8300_store_struct_return): Removed.
4840 (h8300_extract_struct_value_address): Use new regcache structure.
4841 (h8300h_extract_struct_value_address): Removed.
4842 (h8300_push_dummy_code): New function.
4843 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4844 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4845 set_gdbarch_store_return_value architecture dependent.
4846 Call set_gdbarch_push_dummy_code and
4847 set_gdbarch_extract_struct_value_address.
4848 Remove calls to set_gdbarch_frame_args_address,
4849 set_gdbarch_frame_locals_address,
4850 set_gdbarch_deprecated_store_struct_return,
4851 set_gdbarch_deprecated_extract_return_value,
4852 set_gdbarch_deprecated_extract_struct_value_address,
4853 set_gdbarch_deprecated_call_dummy_words and
4854 set_gdbarch_deprecated_sizeof_call_dummy_words.
4856 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4858 * h8300-tdep.c (h8300_register_byte): Remove.
4859 (h8300h_register_byte): Remove.
4860 (h8300_register_virtual_type): Remove. Substitute by...
4861 (h8300_register_type): New function.
4862 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4863 (h8300h_extract_struct_value_address): Ditto.
4864 (h8300_gdbarch_init): Drop calls to
4865 set_gdbarch_deprecated_register_byte and
4866 set_gdbarch_deprecated_register_virtual_type.
4867 Add call to set_gdbarch_register_type.
4869 2003-06-13 Andrew Cagney <cagney@redhat.com>
4871 * gdbarch.sh: Update comments on registers.
4872 (deprecated_register_byte): Rename register_byte.
4873 (deprecated_register_raw_size): Rename register_raw_size.
4874 (deprecated_register_virtual_size): Rename register_virtual_size.
4875 (deprecated_register_virtual_type): Rename register_virtual_type.
4876 * gdbarch.h, gdbarch.c: Re-generate.
4877 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4878 * vax-tdep.c (vax_gdbarch_init): Update.
4879 * v850-tdep.c (v850_gdbarch_init): Update.
4880 * sparc-tdep.c (sparc_gdbarch_init): Update.
4881 * sh-tdep.c (sh_gdbarch_init): Update.
4882 * s390-tdep.c (s390_gdbarch_init): Update.
4883 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4884 * ns32k-tdep.c: Update.
4885 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4886 * mips-tdep.c (mips_gdbarch_init): Update.
4887 * mcore-tdep.c (mcore_gdbarch_init): Update.
4888 * m68k-tdep.c (m68k_gdbarch_init): Update.
4889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4890 * ia64-tdep.c (ia64_gdbarch_init): Update.
4891 * hppa-tdep.c (hppa_gdbarch_init): Update.
4892 * h8300-tdep.c (h8300_gdbarch_init): Update.
4893 * frv-tdep.c (frv_gdbarch_init): Update.
4894 * cris-tdep.c (cris_gdbarch_init): Update.
4895 * avr-tdep.c (avr_gdbarch_init): Update.
4896 * alpha-tdep.c (alpha_gdbarch_init): Update.
4897 * arm-tdep.c (arm_gdbarch_init): Update.
4899 2003-06-13 Andrew Cagney <cagney@redhat.com>
4901 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4902 mips_o32_use_struct_convention with always_use_struct_convention.
4904 2003-06-12 David Carlton <carlton@kealia.com>
4906 * cp-namespace.c (cp_set_block_scope): Comment out
4907 processing_has_namespace_info branch.
4909 2003-06-12 Jim Blandy <jimb@redhat.com>
4911 Recognize and skip 64-bit PowerPC Linux linkage functions.
4912 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4913 insn_pattern, insns_match_pattern, d_field, ds_field): New
4914 functions, macros, and types for working with PPC instructions.
4915 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4916 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4917 ppc64_skip_trampoline_code): New functions, variables, and macros
4918 for recognizing and skipping linkage functions.
4919 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4920 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4922 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4923 register offsets for both the 32- and 64-bit interfaces.
4925 Actually finish the job started by my change of 2003-05-29.
4926 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4927 other #definition of this.
4928 (ppc_linux_skip_trampoline_code): Remove declaration.
4929 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4931 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4934 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4935 'long' on ppc64-*-linux*.
4937 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
4938 isn't #defined, assume the register doesn't exist: act as if
4939 tdep->ppc_mq_regnum were -1.
4941 * configure.host, configure.tgt: Add entries for
4942 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
4944 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
4947 * arch-utils.c (always_use_struct_convention): New function.
4948 * arch-utils.h (always_use_struct_convention): New prototype.
4949 * alpha-tdep.c (alpha_use_struct_convention): Delete.
4950 (alpha_gdbarch_init): Register always_use_struct_convention,
4951 instead of alpha_use_struct_convention.
4952 * cris-tdep.c (cris_use_struct_convention): Delete.
4953 (cris_gdbarch_init): Register always_use_struct_convention,
4954 instead of cris_use_struct_convention.
4955 * frv-tdep.c (frv_use_struct_convention): Delete.
4956 (frv_gdbarch_init): Register always_use_struct_convention,
4957 instead of frv_use_struct_convention.
4958 * h8300-tdep.c (h8300_use_struct_convention): Delete.
4959 (h8300_gdbarch_init): Register always_use_struct_convention,
4960 instead of h8300_use_struct_convention.
4961 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
4962 (mips_o32_gdbarch_init): Register always_use_struct_convention,
4963 instead of mips_o32_use_struct_convention.
4965 2003-06-12 Andrew Cagney <cagney@redhat.com>
4967 * wince.c: Include "mips-tdep.h".
4968 * mips-tdep.h (mips_next_pc): Declare.
4969 * mcore-tdep.c: Make more local functions static.
4970 * Makefile.in (wince.o): Update dependencies.
4972 2003-06-12 David Carlton <carlton@kealia.com>
4974 * symtab.c (lookup_symbol_aux_minsyms): Replace
4975 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4976 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
4977 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
4978 SYMBOL_NATURAL_NAME.
4980 2003-06-12 Andreas Schwab <schwab@suse.de>
4982 * Makefile.in (tuiDisassem.o): Update dependencies.
4984 2003-06-12 David Carlton <carlton@bactrian.org>
4986 * symtab.h: Delete declaration of make_symbol_overload_list.
4987 Add declaration of lookup_partial_symbol.
4988 * symtab.c (remove_params): Move to cp-support.c.
4989 (overload_list_add_symbol, make_symbol_overload_list)
4990 (sym_return_val_size, sym_return_val_index): Ditto.
4991 (lookup_partial_symbol): Make extern.
4992 * cp-support.h: Add declaration of make_symbol_overload_list.
4993 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
4994 symtab.h, and block.h.
4995 (remove_params): Move here from symtab.c.
4996 (overload_list_add_symbol, make_symbol_overload_list)
4997 (sym_return_val_size, sym_return_val_index): Ditto.
4998 * valops.c: Include cp-support.h.
4999 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5000 frame_h, and block_h.
5001 (valops.o): Depend on cp_support_h.
5003 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5005 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5006 substitute by NUM_REGS throughout.
5007 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5008 (h8300s_register_name): New function for H8S registers.
5009 (h8300sx_register_name): Ditto for H8SX registers.
5010 (h8300_print_register): Revise register printing, avoid depending
5012 (h8300_register_byte): Only care for H8/300 registers.
5013 (h8300h_register_byte): New function for any other architecture.
5014 (h8300_register_raw_size): Remove.
5015 (h8300_register_virtual_type): Revise to return actually useful
5017 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5018 (h8300h_extract_struct_value_address): New function for any other
5020 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5021 set_gdbarch_register_name, set_gdbarch_register_byte,
5022 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5023 Remove calls to set_gdbarch_deprecated_register_size,
5024 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5025 set_gdbarch_deprecated_max_register_raw_size,
5026 set_gdbarch_register_virtual_size and
5027 set_gdbarch_deprecated_max_register_virtual_size entirely.
5028 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5029 set_gdbarch_long_double_bit.
5031 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5033 * doublest.c (convert_doublest_to_floatformat): When dealing
5034 with the implied integer bit, only alter mant_bits if we are
5035 processing a full 32 bits of mantissa.
5037 2003-06-11 David Carlton <carlton@bactrian.org>
5039 * dictionary.h: New.
5040 * dictionary.c: New.
5041 * block.h: Add opaque declaration for struct dictionary.
5042 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5044 (BLOCK_DICT): New macro.
5045 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5046 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5048 (ALL_BLOCK_SYMBOLS): Update definition.
5049 * Makefile.in (SFILES): Add dictionary.c.
5050 (dictionary_h): New.
5051 (COMMON_OBS): Add dictionary.o.
5052 (dictionary.o): New.
5053 (ada-lang.o): Depend on dictionary_h.
5054 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5055 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5056 (mi-cmd-stack.o): Ditto.
5057 (gdbtk-cmds.o): Update dependencies.
5058 (gdbtk-stack.o): Ditto.
5059 * ada-lang.c: Include dictionary.h.
5060 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5061 (fill_in_ada_prototype, debug_print_block): Ditto.
5062 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5063 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5065 * mdebugread.c: Include dictionary.h.
5066 (struct parse_stack): Delete 'maxsyms' member.
5067 (parse_symbol): Update calls to new_block. Delete calls to
5068 shrink_block. Use dictionary methods.
5069 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5070 Update calls to new_symtab. Don't maintain maxsyms data.
5071 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5072 (add_symbol): Just call dict_add_symbol.
5073 (new_symtab): Delete 'maxsyms' argument.
5074 (new_symtab): Update calls to new_block.
5075 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5076 (shrink_block): Delete function.
5077 (fixup_sigtramp): Update call to new_block. Add symbol via
5079 * jv-lang.c: Include dictionary.h.
5080 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5081 appropriately. Set class_symtab->free_func. Make sure the
5082 blockvector is big enough to hold two blocks.
5083 (add_class_symtab_symbol): Use dictionary methods.
5084 (free_class_block): New function.
5085 (type_from_class): Replace explicit iteration by
5087 * symtab.h (struct symtab): Replace 'free_ptr' method by
5089 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5091 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5093 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5094 Include dictionary.h.
5095 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5096 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5098 * objfiles.c: Include dictionary.h.
5099 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5100 * buildsym.c: Include dictionary.h.
5101 (finish_block): Use dictionary methods.
5102 (end_symtab): Set free_func to NULL, not free_ptr.
5103 * tracepoint.c: Include dictionary.h.
5104 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5105 (scope_info): Ditto.
5106 * stack.c: Include dictionary.h.
5107 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5108 (print_block_frame_labels, print_frame_arg_vars)
5109 (print_frame_args): Ditto.
5110 * symmisc.c (free_symtab_block): Use dictionary methods.
5111 (dump_symtab): Ditto.
5112 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5113 Include dictionary.h.
5114 * symfile.h: Delete declarations of sort_block_syms,
5116 * symfile.c (sort_block_syms): Delete.
5117 (sort_symtab_syms): Delete.
5118 * symtab.c: Include dictionary.h.
5119 (lookup_block_symbol): Use dictionary iterators.
5120 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5121 (search_symbols, make_symbol_completion_list): Ditto.
5122 (make_symbol_overload_list): Ditto.
5123 * valops.c (value_of_local): Use dict_empty.
5124 Include dictionary.h.
5126 2003-06-11 J. Brobecker <brobecker@gnat.com>
5128 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5130 2003-06-11 David Carlton <carlton@bactrian.org>
5132 * block.h (BLOCK_SHOULD_SORT): Delete.
5133 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5135 * ada-lang.c (ada_add_block_symbols): Ditto.
5136 * symfile.c (sort_block_syms): Delete.
5137 (sort_symtab_syms): Ditto.
5138 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5140 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5141 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5142 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5143 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5144 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5145 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5146 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5148 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5150 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5153 2003-06-11 Andrew Cagney <cagney@redhat.com>
5155 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5156 REGISTER_CONVERTIBLE.
5157 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5158 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5159 * gdbarch.h, gdbarch.c: Re-generate.
5160 * arch-utils.h (deprecated_register_convertible_not): Rename
5161 generic_register_convertible_not.
5162 * arch-utils.c (deprecated_register_convertible_not): Rename
5163 generic_register_convertible.
5164 (legacy_convert_register_p, legacy_register_to_value): Update.
5165 * sh-tdep.c (sh64_push_arguments): Update.
5166 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5167 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5168 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5169 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5170 * arch-utils.c (legacy_value_to_register): Update.
5171 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5172 (rs6000_register_convert_to_raw): Make parameter "from" const.
5173 * mips-tdep.c (mips_gdbarch_init): Update.
5174 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5175 * infcmd.c (default_print_registers_info): Update.
5176 * ia64-tdep.c (ia64_gdbarch_init): Update.
5177 (ia64_register_convert_to_raw): Make parameter "from" const.
5178 * i386-tdep.c (i386_gdbarch_init): Update.
5179 (i386_register_convert_to_raw): Update.
5181 2003-06-11 Andrew Cagney <cagney@redhat.com>
5183 * remote-fileio.c: Include "remote-fileio.h".
5184 * Makefile.in (remote-fileio.o): Update dependencies.
5185 (remote_fileio_h): Fix typo.
5187 2003-06-11 Andrew Cagney <cagney@redhat.com>
5189 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5190 (xstormy16_save_dummy_frame_tos): Make static.
5191 (_initialize_xstormy16_tdep): Add declaration.
5192 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5193 * v850-tdep.c: Make local functions static.
5194 (_initialize_v850_tdep): Add declaration.
5195 * sparc-tdep.c: Make local functions static.
5196 (_initialize_sparc_tdep): Add declaration.
5197 * sh-tdep.c: Make local functions static.
5198 (_initialize_sh_tdep): Add declaration.
5199 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5200 * s390-tdep.c: Make local functions static.
5201 (_initialize_s390_tdep): Add declaration.
5202 * dbxread.c (find_stab_function_addr): Make static.
5203 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5204 * ocd.c (_initialize_remote_ocd): Add declaration.
5205 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5206 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5207 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5208 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5209 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5210 * remote-array.c (_initialize_array): Add declaration.
5211 (_initialize_remote_monitors): Add declaration.
5212 * remote-mips.c: Make local functions static.
5213 (_initialize_remote_mips): Add declaration.
5214 * mcore-tdep.c: Make all local functions static.
5215 (_initialize_mcore_tdep): Add declaration.
5216 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5217 * abug-rom.c (_initialize_abug_rom): Add declaration.
5218 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5219 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5220 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5221 * remote-est.c (_initialize_est): Add declaration.
5222 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5223 (m68hc11_call_dummy_address): Make static.
5224 * ia64-tdep.c: Make local functions static.
5225 (_initialize_ia64_tdep): Add declaration.
5226 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5227 * monitor.c (monitor_wait_filter): Make static.
5228 (_initialize_remote_monitors): Add declaration.
5229 * remote-hms.c (_initialize_remote_hms): Add declaration.
5230 * remote-e7000.c (fetch_regs_from_dump): Make static.
5231 (expect_n): Make static.
5232 (_initialize_remote_e7000): Add declaration.
5233 * ser-e7kpc.c: Always include "defs.h".
5234 (_initialize_ser_e7000pc): Add declaration.
5235 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5236 * cris-tdep.c: Make all but one function static.
5237 (_initialize_cris_tdep): Add declaration.
5238 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5239 * solib.c (update_solib_list): Make static.
5240 (_initialize_solib): Add declaration.
5241 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5242 (_initialize_avr_tdep): Add declaration.
5243 * remote-rdi.c (voiddummy): Make static.
5244 (_initialize_remote_rdi): Add declaration.
5245 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5246 * remote-rdp.c (send_rdp): Make static.
5247 (_initialize_remote_rdp): Add declaration.
5248 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5250 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5252 * remote-fileio.c: Make ari happy.
5254 2003-06-10 J. Brobecker <brobecker@gnat.com>
5256 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5257 fetching the trailing bytes of the buffer we are about to write.
5259 2003-06-10 Andrew Cagney <cagney@redhat.com>
5261 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5262 * Makefile.in (remote-fileio.o): Update dependencies.
5263 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5264 include <setjmp.h>, or <sys/types.h> conditional on USG.
5265 (remote_fio_jmp_buf): Delete global variable.
5267 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5268 Martin M. Hunt <hunt@redhat.com>
5270 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5271 (SFILES): Add remote-fileio.c.
5272 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5273 dependencies for building remote.o.
5274 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5275 * remote-fileio.h: New header file defining remote File-I/O interface.
5276 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5277 static storage class.
5278 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5280 (_initialize_remote): Call initialize_remote_fileio().
5281 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5282 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5283 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5284 (captured_main): Initialize new ui_files.
5285 * ui-file.c: Add read and fgets input functions.
5286 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5287 (null_file_read): New function.
5288 (ui_file_read): New function.
5289 (set_ui_file_read): New function.
5290 (stdio_file_read): New function.
5291 * ui-file.h: New type ui_file_read_ftype.
5292 (set_ui_file_read): Declare.
5293 (ui_file_read): Declare.
5295 2003-06-09 Andrew Cagney <cagney@redhat.com>
5297 * frame.h (deprecated_unwind_get_saved_register): Rename
5298 generic_unwind_get_saved_register, update comments.
5299 * mips-tdep.c (mips_get_saved_register): Update.
5300 * frame.c (deprecated_unwind_get_saved_register): Update.
5302 2003-06-09 Andrew Cagney <cagney@redhat.com>
5304 * vax-tdep.c (vax_frame_locals_address): Delete function.
5305 (vax_gdbarch_init): Do not set frame_locals_address.
5306 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5307 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5308 * s390-tdep.c (s390_frame_args_address): Delete function.
5309 (s390_gdbarch_init): Do not set frame_args_address or
5310 frame_locals_address.
5311 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5312 (ns32k_gdbarch_init): Do not set frame_locals_address.
5313 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5314 (hppa_frame_locals_address): Delete function.
5315 (hppa_gdbarch_init): Do not set frame_args_address, or
5316 frame_locals_address.
5317 * arm-tdep.c (arm_frame_args_address): Delete.
5318 (arm_frame_locals_address): Delete.
5319 (arm_gdbarch_init): Do not set frame_args_address, or
5320 frame_locals_address.
5322 2003-06-09 Andrew Cagney <cagney@redhat.com>
5324 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5325 * gdbarch.h, gdbarch.c: Re-generate.
5326 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5327 * arch-utils.c (frame_num_args_unknown): Delete function.
5328 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5329 (frame_info): Use FRAME_NUM_ARGS_P.
5330 * arm-tdep.c (arm_frame_num_args): Delete function.
5331 (arm_gdbarch_init): Do not set frame_num_args.
5332 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5333 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5334 (hppa_gdbarch_init): Do not set frame_num_args.
5335 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5337 frame_num_args to default frame_num_args_unknown.
5338 * v850-tdep.c (v850_gdbarch_init): Ditto.
5339 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5340 * sh-tdep.c (sh_gdbarch_init): Ditto.
5341 * s390-tdep.c (s390_gdbarch_init): Ditto.
5342 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5343 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5344 * mips-tdep.c (mips_gdbarch_init): Ditto.
5345 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5346 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5348 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5349 * i386-tdep.c (i386_gdbarch_init): Ditto.
5350 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5351 * frv-tdep.c (frv_gdbarch_init): Ditto.
5352 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5353 * cris-tdep.c (cris_gdbarch_init): Ditto.
5354 * avr-tdep.c (avr_gdbarch_init): Ditto.
5355 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5357 2003-06-09 Andrew Cagney <cagney@redhat.com>
5359 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5360 (print_frame_args): Moved to "stack.c".
5361 * stack.c: Include "gdb_assert.h".
5362 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5363 (print_frame_args): Moved from "printcmd.c".
5364 * frame.h (print_frame_args): Delete declaration.
5365 * Makefile.in (stack.o): Update dependencies.
5367 2003-06-08 Andrew Cagney <cagney@redhat.com>
5369 * frame.c (get_prev_frame): Remove reference to
5370 frame_args_address_correct in comments.
5371 * frame-base.c (default_frame_args_address): Delete code
5372 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5373 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5374 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5375 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5376 (vax_frame_args_address_correct): Delete declaration.
5378 2003-06-08 Andrew Cagney <cagney@redhat.com>
5380 * gdbarch.sh (UNWIND_SP): Add.
5381 * gdbarch.h, gdbarch.c: Re-generate.
5382 * frame.c (frame_sp_unwind): New function.
5383 (get_frame_sp): New function.
5384 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5385 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5386 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5388 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5389 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5391 2003-06-08 Andrew Cagney <cagney@redhat.com>
5393 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5396 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5397 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5398 * config/m68k/tm-sun3.h: Update.
5399 * config/m68k/tm-m68klynx.h: Update.
5400 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5402 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5403 trad_frame". Update comments.
5404 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5405 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5406 (trad_frame_register_value, trad_frame_prev_register): Update.
5408 2003-06-08 Andrew Cagney <cagney@redhat.com>
5410 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5411 from GCC's acinclude.m4.
5412 * configure.in: Check for getopt's delcaration.
5413 * aclocal.m4, config.in, configure: Re-generate.
5414 * main.c (error_init): Delete declaration.
5415 * defs.h (error_init): Declare.
5416 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5417 (rs6000_convert_from_func_ptr_addr): Make static.
5418 (_initialize_rs6000_tdep): Add declaration.
5419 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5420 (show_commands, set_verbose, show_history): Delete declaration.
5421 * top.h (set_verbose): Add declaration.
5422 (show_history, set_history, show_commands): Add declaration.
5423 (do_restore_instream_cleanup): Add declaration.
5424 * objc-lang.c (specialcmp): Make static.
5425 (print_object_command): Make static.
5426 (find_objc_msgsend): Make static.
5427 (find_objc_msgcall_submethod_helper): Make static.
5428 (find_objc_msgcall_submethod): Make static.
5429 (_initialize_objc_language): Add declaration.
5430 (find_implementation_from_class): Make static.
5431 (find_implementation): Make static.
5432 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5433 * objc-lang.h (lookup_struct_typedef): Add declaration.
5434 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5435 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5436 (do_restore_user_call_depth): Make static.
5437 (do_restore_instream_cleanup): Delete declaration.
5438 (dont_repeat): Delete declaration.
5439 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5440 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5441 * reggroups.c (_initialize_reggroup): Add declaration.
5442 * cp-support.c (_initialize_cp_support): Add declaration.
5443 * cp-abi.c (_initialize_cp_abi): Add declaration.
5444 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5445 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5446 (_initialize_gnu_v3_abi): Add declaration.
5447 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5448 (_initialize_gnu_v2_abi): Add declaration.
5449 * frame-base.c (_initialize_frame_base): Add declaration.
5450 * doublest.c (floatformat_from_length): Make static.
5451 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5452 * frame.c (create_sentinel_frame): Make static.
5453 (_initialize_frame): Add declaration.
5454 * top.c (do_catch_errors): Make static.
5455 (gdb_rl_operate_and_get_next_completion): Make static.
5456 * typeprint.c: Include "typeprint.h".
5457 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5458 (sentinel_frame_this_id): Make static.
5459 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5460 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5461 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5462 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5463 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5464 * maint.c (maintenance_print_architecture): Make static.
5465 * signals/signals.c (_initialize_signals): Add declaration.
5466 * std-regs.c (_initialize_frame_reg): Add declaration.
5467 * jv-exp.y (push_variable): ISO C definition.
5468 (push_qualified_expression_name): Ditto.
5469 * memattr.c (_initialize_mem): Add declaration.
5470 * remote.c (remote_check_watch_resources): Make static.
5471 (remote_stopped_by_watchpoint): Make static.
5472 (remote_stopped_data_address): Make static.
5473 * d10v-tdep.c (nr_dmap_regs): Make static.
5474 (a0_regnum): Make static.
5475 (d10v_frame_unwind_cache): Make static.
5476 (d10v_frame_p): Make static.
5477 * osabi.c (show_osabi): Make static.
5478 (_initialize_gdb_osabi): Add extern declaration.
5479 * gdbtypes.c (make_qualified_type): Make static.
5480 (safe_parse_type): Make static.
5481 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5482 * macrotab.c (macro_bcache_free): Make static.
5483 * interps.c (interp_set_quiet): Make static.
5484 (interpreter_exec_cmd): Make static.
5485 * stack.h (select_frame_command): New file.
5486 * stack.c: Include "stack.h".
5487 (select_frame_command_wrapper): Delete function.
5488 (select_frame_command): Make global.
5489 * infcall.c: Include "infcall.h".
5490 * linespec.c: Include "linespec.h".
5491 * symfile.c (sections_overlap): Make static.
5492 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5493 * charset.c (_initialize_charset): Add missing prototype.
5494 * regcache.c (init_legacy_regcache_descr): Make static.
5495 (do_regcache_xfree): Make static.
5496 (regcache_xfer_part): Make static.
5497 (_initialize_regcache): Add missing prototype.
5498 * breakpoint.c (parse_breakpoint_sals): Make static.
5499 (breakpoint_sals_to_pc): Make static.
5500 * interps.h (clear_interpreter_hooks): ISO C declaration.
5501 * Makefile.in (stack_h): Define.
5502 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5503 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5505 2003-06-08 Andrew Cagney <cagney@redhat.com>
5507 * Makefile.in (d10v-tdep.o): Update dependencies.
5508 (SFILES): Add trad-frame.c.
5509 (trad_frame_h): Define.
5510 (COMMON_OBS): Add trad-frame.o.
5511 (trad-frame.o): Specify dependencies.
5512 * d10v-tdep.c: Include "trad-frame.h".
5513 (saved_regs_unwinder): Delete function.
5514 (d10v_frame_prev_register): Use trad_frame_prev_register.
5515 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5516 trad_frame", delete "regs" and "prev_sp".
5517 (prologue_find_regs): Use trad-frame.
5518 * trad-frame.h, trad-frame.c: New files.
5520 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5522 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5524 2003-06-07 Adam Fedor <fedor@gnu.org>
5526 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5527 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5528 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5529 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5530 resolve_msgsend_super, resolve_msgsend_super_stret):
5533 2003-06-07 Andrew Cagney <cagney@redhat.com>
5535 * symfile.h: Re-indent, clean up comments.
5537 2003-06-07 Andrew Cagney <cagney@redhat.com>
5539 * inferior.h (deprecated_write_sp): Replace
5540 generic_target_write_sp.
5541 * regcache.c (deprecated_write_sp): Replace
5542 generic_target_write_sp.
5543 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5544 * vax-tdep.c (vax_gdbarch_init): Update.
5545 * v850-tdep.c (v850_gdbarch_init): Update.
5546 * sparc-tdep.c (sparc_gdbarch_init): Update.
5547 * sh-tdep.c (sh_gdbarch_init): Update.
5548 * s390-tdep.c (s390_gdbarch_init): Update.
5549 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5550 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5551 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5552 * mcore-tdep.c (mcore_gdbarch_init): Update.
5553 * m68k-tdep.c (m68k_gdbarch_init): Update.
5554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5555 * ia64-tdep.c (ia64_gdbarch_init): Update.
5556 * h8300-tdep.c (h8300_gdbarch_init): Update.
5557 * frv-tdep.c (frv_gdbarch_init): Update.
5558 * cris-tdep.c (cris_gdbarch_init): Update.
5559 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5561 2003-06-07 Andrew Cagney <cagney@redhat.com>
5563 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5564 Assert that PC_REGNUM is valid.
5565 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5567 2003-06-07 Andrew Cagney <cagney@redhat.com>
5569 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5570 * gdbarch.h, gdbarch.c: Regenerate.
5571 * mn10300-tdep.c: Include "gdb_assert.h".
5572 (mn10300_read_fp): New function.
5573 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5574 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5575 * ia64-tdep.c: Include "gdb_assert.h".
5576 (ia64_read_fp): New function.
5577 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5578 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5579 * regcache.c (generic_target_read_sp): Delete function.
5580 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5581 * inferior.h (generic_target_read_sp): Delete declaration.
5582 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5583 generic_target_read_sp.
5584 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5585 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5586 * sh-tdep.c (sh_gdbarch_init): Ditto.
5587 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5588 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5590 2003-06-07 Andrew Cagney <cagney@redhat.com>
5592 * gdbarch.sh: Comment each field of startup_gdbarch.
5593 * gdbarch.h, gdbarch.c: Re-generate.
5595 2003-06-07 Andrew Cagney <cagney@redhat.com>
5597 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5598 * gdbarch.h, gdbarch.c: Re-generate.
5599 * regcache.c: Update comments on read_pc et.al.
5600 (generic_target_read_pc): Delete function.
5601 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5602 * inferior.h (generic_target_read_pc): Delete declaration.
5603 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5604 generic_target_read_pc.
5605 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5606 * sh-tdep.c (sh_gdbarch_init): Ditto.
5607 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5610 2003-06-07 Andrew Cagney <cagney@redhat.com>
5612 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5613 "index" with "special_local_sect". Use strcmp instead of STREQ.
5614 Append period to coments.
5616 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5618 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5619 (elfstab_offset_sections): Likewise.
5620 * gdb-stabs.h (stab_section_info): Likewise.
5621 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5622 * objfiles.c (objfile_relocate): Likewise.
5623 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5624 * remote.c (get_offsets): Likewise.
5625 (remote_cisco_objfile_relocate): Likewise.
5626 * somread.c (som_symfile_offsets): Likewise.
5627 * symfile.c (alloc_section_addr_info): New function.
5628 (build_section_addr_info_from_section_tab): Use it.
5629 (free_section_addr_info): Adjust.
5630 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5631 (syms_from_objfile): Allocate local_addr dynamically.
5632 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5634 (add_symbol_file_command): Allocate sect_opts dynamically.
5635 (reread_symbols): Avoid use of SECT_OFF_MAX.
5636 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5637 (alloc_section_addr_info): Declare it.
5638 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5639 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5641 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5643 2003-06-06 Andrew Cagney <cagney@redhat.com>
5645 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5646 (d10v_frame_unwind_cache): Do not set "return_pc".
5648 2003-06-06 Michael Snyder <msnyder@redhat.com>
5650 * h8300-tdep.c: Make tidy (long lines).
5652 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5654 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5655 to regcache_collect().
5657 2003-06-05 J. Brobecker <brobecker@gnat.com>
5659 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5660 pc_in_sigtramp multiarch method.
5661 (hppa_hpux_som_init_abi): Use it.
5662 (hppa_hpux_elf_init_abi): Likewise.
5663 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5664 macro has been multiarched.
5665 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5666 macro here, as hppa64 isn't multiarched yet.
5668 2003-06-05 Andrew Cagney <cagney@redhat.com>
5670 * Makefile.in (value_h): Add $(frame_h).
5671 * value.h: Include "frame.h".
5672 (struct value): Replace "frame_addr" with "frame_id".
5673 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5674 * values.c (allocate_value): Use VALUE_FRAME_ID.
5675 (value_copy): Use VALUE_FRAME_ID.
5676 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5677 * valops.c (value_assign): Update. Use frame_find_by_id.
5679 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5681 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5684 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5686 * thread-db.c (check_event): For create/death event breakpoints,
5687 loop through all messages to ensure that we read the message
5688 corresponding to the breakpoint we are at.
5690 2003-06-04 Michael Snyder <msnyder@redhat.com>
5692 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5694 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5696 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5697 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5698 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5699 when handling .eh_frame sections.
5701 2003-06-04 J. Brobecker <brobecker@gnat.com>
5703 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5704 prepare_to_proceed procedure instead of the hppa-specific one.
5705 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5707 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5709 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5710 * config.in: Regenerated.
5711 * configure.in: Add test for syscall function and check for
5712 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5713 * configure: Regenerated.
5714 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5716 (kill_lwp): New function that uses tkill syscall or
5717 uses kill, depending on whether threading model is nptl or not.
5718 All callers of kill() changed to use kill_lwp().
5719 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5720 see if all threads have already exited in the nptl model.
5721 (stop_and_resume_callback): New callback function used by the
5722 lin_lwp_wait thread exit handling code.
5723 (stop_wait_callback): Check for threads already having exited and
5724 delete such threads fromt the lwp list when discovered.
5725 (stop_callback): Don't assert retcode of kill call.
5727 Roland McGrath <roland@redhat.com>
5728 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5731 2003-06-03 Richard Henderson <rth@redhat.com>
5733 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5734 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5735 (alpha_sigtramp_frame_prev_register): Likewise.
5736 (alpha_heuristic_frame_prev_register): Likewise.
5737 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5739 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5740 alpha-specific register id names.
5741 (alpha_mdebug_frame_unwind_cache): Likewise.
5742 (alpha_mdebug_frame_prev_register): Likewise.
5744 2003-06-03 Richard Henderson <rth@redhat.com>
5746 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5747 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5748 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5749 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5751 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5752 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5753 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5755 * alpha-linux-tdep.c: Remove unnecessary includes.
5756 * Makefile.in (alpha-linux-tdep.o): Update.
5758 2003-06-03 Richard Henderson <rth@redhat.com>
5760 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5761 (alphabsd_fill_fpreg): Likewise.
5763 2003-06-03 J. Brobecker <brobecker@gnat.com>
5765 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5766 references to struct frame_info fields by calls to the equivalent
5767 accessors. Necessary now that frame_info is opaque.
5769 2003-06-03 J. Brobecker <brobecker@gnat.com>
5771 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5772 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5773 structure, field no longer exists.
5775 2003-06-03 J. Brobecker <brobecker@gnat.com>
5777 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5778 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5780 2003-06-03 J. Brobecker <brobecker@gnat.com>
5782 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5783 references to struct frame_info fields by calls to the equivalent
5784 accessors. Necessary now that frame_info is opaque.
5786 2003-06-03 J. Brobecker <brobecker@gnat.com>
5788 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5789 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5790 structure, field no longer exists.
5792 2003-06-03 Theodore A. Roth <troth@openavr.org>
5794 * remote.c (init_remote_state): Compute sizeof_g_packet by
5795 accumulation of the size of all registers instead of blindly using
5796 DEPRECATED_REGISTER_BYTES.
5798 2003-06-03 Michael Snyder <msnyder@redhat.com>
5800 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5801 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5804 2003-06-03 J. Brobecker <brobecker@gnat.com>
5806 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5807 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5809 2003-06-03 Andrew Cagney <cagney@redhat.com>
5811 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5812 (sparc_convert_to_raw): Delete function.
5813 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5814 register_convert_to_virtual.
5816 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5818 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5819 layer if not dealing with a statically-linked threaded program.
5821 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5823 * solib.c (solib_open): Update comment to reflect actual search order.
5825 2003-06-03 Andrew Cagney <cagney@redhat.com>
5827 * frame.c (get_frame_memory_signed): New function.
5828 (get_frame_memory, get_frame_memory_unsigned): New function.
5829 (get_frame_arch): New function.
5830 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5831 (get_frame_memory, get_frame_unsigned_memory): Declare.
5832 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5833 get_frame_memory_unsigned and get_frame_arch.
5834 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5836 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5838 * MAINTAINERS (write after approval): Add myself.
5840 2003-06-03 Jim Blandy <jimb@redhat.com>
5842 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5843 elements of gregset_t are 64 bits each, but access registers
5844 are still 32 bits, so they're packed two per gregset_t
5845 element. Unpack/pack them properly.
5847 2003-06-02 David Carlton <carlton@bactrian.org>
5849 * linespec.c (find_methods): Break out code into
5850 add_matching_methods and add_constructors.
5851 (add_matching_methods): New.
5852 (add_constructors): Ditto.
5854 2003-06-02 Andrew Cagney <cagney@redhat.com>
5856 * sparc-tdep.c (sparc_print_registers): Delete call to
5857 REGISTER_CONVERTIBLE.
5858 (sparc_gdbarch_init): Do not set register_convertible.
5859 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5860 * frv-tdep.c (frv_gdbarch_init): Ditto.
5861 * cris-tdep.c (cris_gdbarch_init): Ditto.
5863 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5865 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5866 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5867 (syms_from_objfile): Ditto.
5869 2003-06-03 Andreas Schwab <schwab@suse.de>
5871 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5872 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5874 2003-06-02 Richard Henderson <rth@redhat.com>
5876 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5877 a member of all_reggroup.
5879 2003-06-02 Richard Henderson <rth@redhat.com>
5881 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5882 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5883 (alpha_lds, alpha_sts): New.
5884 (alpha_convert_register_p): Change from _register_convertible.
5885 (alpha_register_to_value): Change from _convert_to_virtual;
5886 restructure and fail for type sizes other than 4 or 8.
5887 (alpha_value_to_register): Similarly.
5888 (alpha_extract_return_value): Use alpha_sts.
5889 (alpha_store_return_value): Use alpha_lds.
5890 (alpha_gdbarch_init): Update hooks.
5892 2003-06-02 Richard Henderson <rth@redhat.com>
5894 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5896 (alpha_sigtramp_register_address): Likewise.
5898 2003-06-02 Richard Henderson <rth@redhat.com>
5900 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5901 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5902 * alpha-tdep.h: Declare them.
5904 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5905 Remove zerobuf. Don't error on UNIQUE.
5906 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5907 (ALPHA_REGSET_UNIQUE): Provide default.
5908 (supply_gregset): Use alpha_supply_int_regs.
5909 (fill_gregset): Use alpha_fill_int_regs.
5910 (supply_fpregset): Use alpha_supply_fp_regs.
5911 (fill_fpregset): Use alpha_fill_fp_regs.
5912 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5913 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5914 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5915 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5916 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5917 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5919 2003-06-02 Richard Henderson <rth@redhat.com>
5921 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5923 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5924 (alpha_store_return_value): Likewise.
5926 2003-06-02 David Carlton <carlton@math.stanford.edu>
5928 * block.c (contained_in): Add 'const' to arguments.
5929 (block_function): Ditto.
5930 * block.h: Update declarations for block_function and
5933 2003-06-02 David Carlton <carlton@math.stanford.edu>
5935 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5936 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5937 * p-valprint.c (pascal_val_print): Ditto.
5938 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
5940 2003-06-02 Richard Henderson <rth@redhat.com>
5942 * alpha-tdep.c (alpha_push_dummy_call): Use
5943 builtin_type_ieee_double_little instead of builtin_type_double.
5945 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
5946 sign-extension of 32-bit values.
5947 (alpha_store_return_value): Similarly.
5949 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
5950 (alpha_extract_return_value): Likewise.
5951 (alpha_store_return_value): Likewise.
5953 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
5954 (alpha_store_return_value): Error on IEEE Quad floats.
5956 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
5957 (alpha_extract_struct_value_address): Likewise.
5958 (alpha_store_return_value): Likewise.
5959 (alpha_store_struct_return): Remove.
5960 (alpha_gdbarch_init): Update hook registration to match.
5962 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
5963 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
5964 macros where appropriate.
5965 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
5966 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
5968 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
5969 for SP, GP; void_func_ptr for PC; non-language-specific types
5971 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
5973 2003-06-02 Richard Henderson <rth@redhat.com>
5975 * top.h (lim_at_start): Declare.
5976 * main.c (captured_main): Set it.
5977 * top.c (lim_at_start): Define.
5978 (command_loop): Use it instead of &environ.
5979 * event-top.c (command_handler): Likewise.
5981 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
5983 * mipsnbsd-tdep.c: Update copyright years.
5984 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
5986 2003-06-01 Richard Henderson <rth@redhat.com>
5988 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
5989 (alpha-linux-tdep.o): Update dependencies.
5990 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
5991 * alpha-mdebug-tdep.c: Remove unneeded includes.
5993 2003-06-01 Richard Henderson <rth@redhat.com>
5995 * alpha-tdep.c (alpha_register_reggroup_p): New.
5996 (alpha_gdbarch_init): Register it.
5998 2003-06-02 Andrew Cagney <cagney@redhat.com>
6000 * dwarfread.c: Eliminate "register"
6001 (decode_die_type): Eliminate assignment within "if".
6002 (struct_type, decode_array_element_type): Ditto.
6003 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6004 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6005 (decode_modified_type, completedieinfo): Ditto.
6006 * block.c: Eliminate "register".
6007 (blockvector_for_pc_sect): Eliminate assignment within "if".
6008 * cp-support.h (struct symbol): Opaque declaration.
6009 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6011 2003-06-01 Richard Henderson <rth@redhat.com>
6013 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6014 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6016 2003-06-01 Adam Fedor <fedor@gnu.org>
6018 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6019 * gdbarch.[ch]: Regenerate.
6020 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6021 (hppa_gdbarch_init): Set it in the gdbarch vector.
6022 * i386-tdep.c (i386_fetch_pointer_argument): New
6023 (i386_gdbarch_init): Set it into gdbarch.
6024 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6025 (rs6000_gdbarch_init): Set it in gdbarch.
6026 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6027 (sparc_gdbarch_init): Set it in gdbarch.
6029 2003-06-01 Andrew Cagney <cagney@redhat.com>
6031 * defs.h (extract_address): Delete declaration.
6032 * findvar.c (extract_address): Delete function.
6033 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6034 extract_address with the inline equivalent,
6035 extract_unsigned_integer.
6036 (xstormy16_extract_struct_value_address): Ditto.
6037 (xstormy16_pointer_to_address): Ditto.
6038 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6039 * v850-tdep.c (v850_push_arguments): Ditto.
6040 (v850_extract_return_value): Ditto.
6041 (v850_extract_struct_value_address): Ditto.
6042 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6043 (sparcnbsd_get_longjmp_target_64): Ditto.
6044 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6045 (get_longjmp_target): Ditto.
6046 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6047 (sh64_extract_struct_value_address): Ditto.
6048 (sh_push_arguments): Ditto.
6049 (sh64_push_arguments): Ditto.
6050 * remote-vxsparc.c (vx_read_register): Ditto.
6051 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6052 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6053 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6054 * mipsv4-nat.c (get_longjmp_target): Ditto.
6055 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6056 * mips-nat.c (get_longjmp_target): Ditto.
6057 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6058 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6059 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6060 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6061 * irix5-nat.c (get_longjmp_target): Ditto.
6062 * irix4-nat.c (get_longjmp_target): Ditto.
6063 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6064 (ia64_push_arguments): Ditto.
6065 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6066 * h8300-tdep.c (h8300_push_arguments): Ditto.
6067 (h8300_store_return_value): Ditto.
6068 (h8300_extract_struct_value_address): Ditto.
6069 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6070 (frv_push_arguments): Ditto.
6071 * avr-tdep.c (avr_pointer_to_address): Ditto.
6072 (avr_push_arguments): Ditto.
6073 * arm-tdep.c (arm_push_dummy_call): Ditto.
6074 (arm_get_longjmp_target): Ditto.
6075 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6076 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6077 (alpha_get_longjmp_target): Ditto.
6079 * solib-irix.c (extract_mips_address): Inline extract_address,
6080 replacing it with extract_signed_integer.
6081 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6082 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6083 (first_link_map_member, open_symbol_file_object): Ditto.
6084 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6085 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6086 (LM_NEXT, LM_NAME): Ditto.
6088 2003-06-01 Richard Henderson <rth@redhat.com>
6090 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6091 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6092 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6093 (alpha_cannot_store_register): Likewise.
6094 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6095 * alpha-nat.c (supply_gregset): Likewise.
6096 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6098 2003-06-01 Andrew Cagney <cagney@redhat.com>
6100 * infcall.c (call_function_by_hand): Update comment on
6101 DEPRECATED_DUMMY_WRITE_SP.
6103 * mips-tdep.c (mips_gdbarch_init): Do not set
6104 deprecated_dummy_write_sp.
6105 (mips_eabi_push_dummy_call): Set the SP register.
6106 (mips_o64_push_dummy_call): Set the SP register.
6107 (mips_o32_push_dummy_call): Set the SP register.
6108 (mips_n32n64_push_dummy_call): Set the SP register.
6110 2003-06-01 Richard Henderson <rth@redhat.com>
6112 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6113 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6114 (supply_gregset): Likewise.
6115 * alpha-tdep.c (alpha_store_return_value): Likewise.
6116 (alpha_get_longjmp_target): Likewise.
6117 (alpha_register_name): Constify array.
6118 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6119 deprecated_register_size, deprecated_register_bytes,
6120 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6121 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6122 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6124 2003-06-01 Richard Henderson <rth@redhat.com>
6126 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6127 from arg_reg_buffer to regcache to avoid double conversion.
6129 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6131 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6133 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6134 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6136 2003-06-01 Richard Henderson <rth@redhat.com>
6138 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6139 (decode_frame_entry): Set it. Skip FDE augmentation.
6141 2003-06-01 Richard Henderson <rth@redhat.com>
6143 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6144 not overlapping PC_REGNUM.
6146 2003-06-01 Richard Henderson <rth@redhat.com>
6148 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6149 alpha_push_arguments. Don't dump argument register data to
6150 the target stack. Fix float and 128-bit long double semantics.
6151 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6152 (alpha_fix_call_dummy): Remove.
6153 (alpha_call_dummy_words): Remove.
6154 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6156 2003-06-01 Richard Henderson <rth@redhat.com>
6158 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6160 2003-06-01 Andrew Cagney <cagney@redhat.com>
6162 * mips-tdep.c (is_mips16_addr): New function.
6163 (make_mips16_addr, unmake_mips16_addr): New functions.
6164 (pc_is_mips16, mips_fetch_instruction): Use.
6165 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6166 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6167 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6168 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6170 * config/mips/tm-mips.h: Update copyright.
6171 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6172 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6173 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6174 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6175 (TM_PRINT_INSN_MACH): Delete.
6176 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6178 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6179 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6180 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6181 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6182 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6183 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6184 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6185 mips*-*-riscos* and mips*-*-sysv* onto mips.
6186 * config/mips/mips64.mt: New file.
6187 * config/mips/mips.mt: New file.
6188 * config/mips/littlemips.mt: Delete file.
6189 * config/mips/decstation.mt: Delete file.
6190 * config/mips/vr4300el.mt: Delete file.
6191 * config/mips/vr5000el.mt: Delete file.
6192 * config/mips/vr5000.mt: Delete file.
6193 * config/mips/vr4100.mt: Delete file.
6194 * config/mips/vr4xxxel.mt: Delete file.
6195 * config/mips/vr4300.mt: Delete file.
6196 * config/mips/vr4xxx.mt: Delete file.
6197 * config/mips/bigmips.mt: Delete file.
6198 * config/mips/bigmips64.mt: Delete file.
6199 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6200 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6201 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6202 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6203 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6205 * config/mips/tm-irix3.h: Ditto.
6206 * config/mips/tm-mipsv4.h: Ditto.
6207 * config/mips/tm-embed.h: Ditto.
6208 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6210 * config/mips/tm-vr5000el.h: Delete file.
6211 * config/mips/tm-tx39l.h: Delete file.
6212 * config/mips/tm-vr4300el.h: Delete file.
6213 * config/mips/tm-vr4xxxel.h: Delete file.
6214 * config/mips/tm-vr4300.h: Delete file.
6215 * config/mips/tm-vr4100.h: Delete file.
6216 * config/mips/tm-vr4xxx.h: Delete file.
6217 * config/mips/tm-vr5000.h: Delete file.
6218 * config/mips/tm-embedl64.h: Delete file.
6219 * config/mips/tm-embedl.h: Delete file.
6220 * config/mips/tm-embed64.h: Delete file.
6221 * config/mips/tm-bigmips64.h: Delete file.
6222 * config/mips/tm-bigmips.h: Delete file.
6224 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6227 * shnbsd-nat.c: Include "sh-tdep.h".
6229 From Richard Henderson <rth@redhat.com>:
6230 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6232 2003-05-31 Andrew Cagney <cagney@redhat.com>
6234 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6235 forward declaration.
6236 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6237 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6238 (mips_find_saved_regs): Use set_reg_offset.
6239 (mips_frame_init_saved_regs): Delete function.
6240 (mips_pop_frame): Call mips_find_saved_regs instead of
6241 DEPRECATED_FRAME_INIT_SAVED_REGS.
6243 2003-05-31 Andrew Cagney <cagney@redhat.com>
6245 * mips-tdep.c (mips_gdbarch_init): Do not set
6246 deprecated_max_register_raw_size, register_virtual_size, and
6247 deprecated_max_register_virtual_size.
6249 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6251 * i386-tdep.c: Include "dwarf2-frame.h".
6252 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6253 * Makefile.in (i386-tdep.o): Update dependencies.
6255 * dwarf2-frame.c, dwarf2-frame.h: New files.
6256 * Makefile.in (SFILES): Add dwarf2-frame.c.
6257 (dwarf2_frame_h): Define.
6258 (COMMON_OBS): Add dwarf2-frame.o.
6259 (dwarf2-frame.o): Add dependencies.
6261 2003-05-31 Andreas Jaeger <aj@suse.de>
6263 * x86-64-linux-nat.c: Fix comment.
6265 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6267 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6270 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6271 have a sigcontext_addr handler.
6272 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6273 sigcontext_addr handler.
6275 2003-05-31 Andrew Cagney <cagney@redhat.com>
6277 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6278 (print_fp_register_row): Replace do_fp_register_row.
6279 (mips_print_fp_register): Add "file" and "frame" parameters.
6280 (mips_print_register): Add "file" and "frame" parameters.
6281 (mips_print_registers_info): Replace mips_do_registers_info.
6282 (mips_gdbarch_init): Set print_registers_info instead of
6283 deprecated_do_registers_info.
6284 (mips_read_fp_register_single): Add "frame" parameter.
6285 (mips_read_fp_register_double): Add "frame" parameter.
6287 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6289 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6290 Fixes a bug where GDB would print the wrong register names for
6291 targets without SSE.
6293 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6294 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6297 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6298 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6299 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6302 From Michal Ludvig <mludvig@suse.cz>:
6303 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6305 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6306 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6307 I386_ST0_REGNUM): Move here from...
6308 * i386-tdep.c: ... here.
6309 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6310 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6311 registers if possible.
6312 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6313 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6315 (i386bsd_sc_reg_offset): New variable.
6316 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6317 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6319 (i386fbsd_sc_reg_offset): New variable.
6320 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6322 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6324 (i386fbsd4_sc_reg_offset): New variable.
6325 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6326 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6328 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6329 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6330 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6332 (i386nbsd_sc_reg_offset): New variable.
6333 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6334 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6336 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6338 (i386obsd_sc_reg_offset): New variable.
6339 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6340 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6342 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6343 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6344 for frame pointer offset in `struct sigcontext'.
6346 2003-05-31 Andrew Cagney <cagney@redhat.com>
6348 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6349 architecture methods call_dummy_words, sizeof_call_dummy_words,
6350 push_return_address, store_struct_return, and fix_call_dummy. Set
6351 push_dummy_call instead of deprecated_push_arguments.
6352 (mips_store_struct_return): Delete function.
6353 (mips_fix_call_dummy): Delete function.
6354 (mips_push_return_address): Delete function.
6355 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6356 RA_REGNUM and T9_REGNUM.
6357 (mips_n32n64_push_dummy_call): Ditto for
6358 mips_n32n64_push_arguments.
6359 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6360 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6362 2003-05-31 Andrew Cagney <cagney@redhat.com>
6364 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6365 "dummy_addr" to "bp_addr".
6366 * infcall.c (call_function_by_hand): Pass "funaddr" to
6367 gdbarch_push_dummy_call.
6368 * gdbarch.h, gdbarch.c: Re-generate.
6369 * i386-tdep.c (i386_push_dummy_call): Update.
6370 * arm-tdep.c (arm_push_dummy_call): Update.
6371 * d10v-tdep.c (d10v_push_dummy_call): Update.
6373 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6375 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6376 variable declarations.
6377 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6378 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6379 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6380 x86_64_init_frame_pc, x86_64_init_frame_pc,
6381 x86_64_function_has_prologue): Remove prototypes.
6382 (X86_64_NUM_GREGS): New define.
6383 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6384 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6385 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6386 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6387 XMM1_REGNUM): Remove defines.
6388 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6389 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6390 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6391 X86_64_XMM1_REGNUM): New defines.
6392 (struct x86_64_register_info): Renamed from `struct
6393 register_info'. Remove `size' member.
6394 (x86_64_register_info_table): Remove variable.
6395 (x86_64_register_info): New variable.
6396 (X86_64_NUM_REGS): New define.
6397 (X86_64_NUM_GREGS): Remove define.
6398 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6399 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6401 (x86_54_dwarf2_reg_to_regnum): Remove function.
6402 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6403 (x86_64_dwarf_reg_to_regnum): New function.
6404 (x86_64_register_name): Rewrite.
6405 (x86_64_register_raw_size): Remove function.
6406 (x86_64_register_byte_table): Remove variable.
6407 (x86_64_register_byte): Remove function.
6408 (x86_64_register_virtual_type): Remove function.
6409 (x86_64_register_type): New function.
6410 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6411 x86_64_register_convert_to_raw): Remove functions.
6412 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6413 (x86_64_use_struct_convention): Make static. Adjust for renamed
6415 (x86_64_frame_init_saved_regs): Remove function.
6416 (x86_64_push_arguments): Make static. Change to accept a regcache
6418 (x86_64_store_return_value, x86_64_extract_return_value): Make
6419 static. Rewrite based on i386 counterparts.
6420 (x86_64_push_dummy_call): New function.
6421 (X86_64_NUM_SAVED_REGS): New define.
6422 (x86_64_register_number): Remove function.
6423 (x86_64_store_struct_return): Remove function.
6424 (x86_64_frameless_function_invocation,
6425 x86_64_function_has_prologue): Remove functions.
6426 (PROLOG_BUFSIZE): Remove define.
6427 (struct x86_64_frame_cache): New structure.
6428 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6429 x86_64_frame_cache, x86_64_frame_this_id,
6430 x86_64_frame_prev_register, x86_64_frame_p,
6431 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6432 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6434 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6436 (x86_64_skip_prologue): Rewrite in terms of
6437 x86_64_analyze_prologue.
6438 (x86_64_frame_base_address): New function.
6439 (x86_64_frame_base): New variable.
6440 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6441 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6442 set deprecated_fp_regnum, deprecated_register_size,
6443 deprecated_register_bytes, register_raw_size, register_byte,
6444 register_virtual_type, register_convertiable,
6445 register_convert_to_virtual, convert_to_raw,
6446 deprecated_get_saved_register, deprecated_target_read_fp,
6447 deprecated_push_arguments, deprecated_push_return_address,
6448 deprecated_pop_frame, deprecated_store_struct_return,
6449 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6450 frameless_function_invocation, deprecated_frame_saved_pc,
6451 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6452 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6453 deprecated_init_frame_pc and virtual_frame_pointer. Call
6454 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6455 and x86_64_frame_p. Call frame_base_set_default to register
6457 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6458 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6459 (_initialize_x86_64_tdep): Remove function.
6460 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6461 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6462 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6464 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6465 (x86_64_linux_sigcontext_addr): Rewrite.
6466 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6467 x86_64_linux_frame_saved_pc): Remove functions.
6468 (x86_64_linux_pc_in_sigtramp): Renamed from
6469 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6471 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6473 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6474 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6475 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6476 (x86_64_regmap): Rename to regmap.
6477 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6479 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6481 (x86_64_fxsave_offset): Remove function.
6482 (supply_fpregset): Simply call x86_64_supply_fxsave.
6483 (fill_fpregset): Simply call x86_64_fill_fxsave.
6484 (fetch_inferior_registers, store_inferior_registers): Avoid
6485 asignment in if-statement.
6486 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6487 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6488 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6489 (fetch_core_registers): Remove function.
6490 (linux_elf_core_fns): Remove.
6491 (offsetoff): Don't define.
6492 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6493 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6494 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6496 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6497 protection against multiple includes instead of NM_X86_64_h. Add
6498 various comments. Include "config/nm-linux.h". Don't include
6500 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6501 GET_THREAD_SIGNALS): Remove defines.
6502 (x86_64_register_u_addr, kernel_u_size,
6503 lin_thread_get_thread_signals): Remove prototypes.
6504 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6505 [HAVE_LINK_H]: Don't include "solib.h".
6506 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6507 * config/i386/tm-x86-64linux.h: Fix comments.
6508 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6509 x86-64-tdep.o): Update dependencies.
6511 2003-05-30 Andrew Cagney <cagney@redhat.com>
6513 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6514 Change parameter type to a "struct regcache *".
6516 * gdbarch.sh: Regardless of the multi-arch level, always define
6517 the macro when not already defined.
6518 * gdbarch.h, gdbarch.c: Re-generate.
6520 2003-05-30 Richard Henderson <rth@redhat.com>
6522 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6523 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6524 (alpha_mdebug_frame_this_id): Likewise.
6525 (alpha_mdebug_frame_prev_register): Likewise.
6526 (alpha_mdebug_frame_base_address): Likewise.
6527 (alpha_mdebug_frame_locals_address): Likewise.
6528 (alpha_mdebug_frame_args_address): Likewise.
6529 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6530 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6531 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6533 (alpha_heuristic_frame_this_id): Make static.
6534 (alpha_heuristic_frame_prev_register): Likewise.
6535 (alpha_heuristic_frame_base_address): Likewise.
6536 * alpha-tdep.h: Update.
6538 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6540 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6541 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6543 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6544 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6545 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6546 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6547 I386_ST0_REGNUM): New defines.
6548 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6549 codestream_get): Remove define.
6550 (codestream_next_addr, condestream_addr, condestream_buf,
6551 codestream_off, codestream_cnt): Remove variables.
6552 (codestream_fill, codestream_seek, codestream_read): Remove
6554 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6556 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6557 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6558 i386_frame_saved_pc, i386_saved_pc_after_call,
6559 i386_frame_num_args, i386_frame_init_saved_regs,
6560 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6561 i386_push_arguments): Remove functions.
6562 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6563 functionality. Use i386_analyze_prologue instead of
6564 i386_get_frame_setup.
6565 (I386_NUM_SAVED_REGS): New define.
6566 (struct i386_frame_cache): New structure.
6567 (i386_alloc_frame_cache, i386_analyze_struct_return,
6568 i386_skip_probe, i386_analyze_frame_setup,
6569 i386_analyze_register_saves, i386_analyze_prologue,
6570 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6571 i386_frame_prev_register, i386_sigtramp_frame_cache,
6572 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6573 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6574 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6576 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6578 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6579 I386_EAX_REGNUM and I386_EDX_REGNUM.
6580 (i386_extract_return_value, i386_store_return_value): Use
6581 I386_ST0_REGNUM where appropriate.
6582 (i386_extract_struct_value_address): Rewrite to use extract_address.
6583 (i386_svr4_pc_in_sigtramp): Add comment.
6584 (i386_svr4_sigcontext_addr): Rewrite.
6585 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6587 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6588 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6589 of new defines. Set push_dummy_call, don't set
6590 deprecated_push_arguments, deprecated_push_return_address,
6591 deprecated_pop_frame. Don't set parm_boundary. Don't set
6592 deprecated_frame_chain, deprecated_frame_saved_pc,
6593 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6594 save_dummy_frame_tos, unwind_pc. Call
6595 frame_unwind_append_predicate and frame_base_set_default. Don't
6596 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6597 Don't set frameless_function_invocation. Don't set
6598 deprecated_register_bytes, deprecated_register_size,
6599 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6600 * i386-linux-tdep.c: Fix formatting in some comments.
6601 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6602 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6603 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6604 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6605 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6606 redundant parentheses.
6607 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6608 (i386_linux_sigcontext_addr): Use it. Rewrite.
6609 (find_minsym_and_objfile): Change name of second argument.
6610 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6611 changed. Use frame_pc_unwind instead of
6612 DEPRECATED_SAVED_PC_AFTER_CALL.
6613 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6614 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6615 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6617 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6619 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6620 (_initialize_i386_cygwin_tdep): New prototype.
6621 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6622 deprecated_frame_chain_valid.
6623 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6624 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6625 Rely on the SVR4 defaults.
6626 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6627 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6629 2003-05-30 Andrew Cagney <cagney@redhat.com>
6631 * infcall.c (call_function_by_hand): Always call
6632 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6634 2003-05-30 Richard Henderson <rth@redhat.com>
6636 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6639 2003-05-29 Jim Blandy <jimb@redhat.com>
6641 Use gdbarch methods for solib stuff on PowerPC Linux.
6642 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6643 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6645 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6646 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6647 giving the same effect as the #definitions above.
6649 2003-05-29 Adam Fedor <fedor@gnu.org>
6651 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6652 (find_implementation_from_class): Replace it with the standard
6653 case i.e. do nothing.
6655 2003-05-29 Richard Henderson <rth@redhat.com>
6657 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6658 (alpha_linux_sigtramp_offset): Use it. Make static.
6659 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6660 update for new frame model.
6661 * alpha-mdebug-tdep.c: New file.
6662 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6663 (alpha_osf1_init_abi): Install it.
6664 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6665 (linked_proc_desc_table): Remove.
6666 (alpha_frame_past_sigtramp_frame): Remove.
6667 (alpha_dynamic_sigtramp_offset): Remove.
6668 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6669 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6670 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6671 (push_sigtramp_desc): Remove.
6672 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6673 (alpha_cannot_store_register): Likewise.
6674 (alpha_sigcontext_addr): Remove.
6675 (alpha_find_saved_regs): Remove.
6676 (alpha_frame_init_saved_regs): Remove.
6677 (alpha_init_frame_pc_first): Remove.
6678 (read_next_frame_reg): Remove.
6679 (alpha_frame_saved_pc): Remove.
6680 (alpha_saved_pc_after_call): Remove.
6681 (temp_proc_desc, temp_saved_regs): Remove.
6682 (alpha_about_to_return): Remove.
6683 (cached_proc_desc): Remove.
6684 (alpha_frame_chain): Remove.
6685 (alpha_print_extra_frame_info): Remove.
6686 (alpha_init_extra_frame_info): Remove.
6687 (alpha_frame_locals_address): Remove.
6688 (alpha_frame_args_address): Remove.
6689 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6690 (alpha_push_dummy_frame): Remove.
6691 (alpha_pop_frame): Remove.
6692 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6693 (alpha_read_insn): New.
6694 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6695 for different insn encodings.
6696 (alpha_in_lenient_prologue): Remove.
6697 (struct alpha_sigtramp_unwind_cache): New.
6698 (alpha_sigtramp_frame_unwind_cache): New.
6699 (alpha_sigtramp_register_address): New.
6700 (alpha_sigtramp_frame_this_id): New.
6701 (alpha_sigtramp_frame_prev_register): New.
6702 (alpha_sigtramp_frame_unwind): New.
6703 (alpha_sigtramp_frame_p): New.
6704 (struct alpha_heuristic_unwind_cache): New.
6705 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6706 don't count nop insns that occur between functions.
6707 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6708 heuristic_proc_desc, but without the mdebug wrapping.
6709 (alpha_heuristic_frame_this_id): New.
6710 (alpha_heuristic_frame_prev_register): New.
6711 (alpha_heuristic_frame_unwind): New.
6712 (alpha_heuristic_frame_p): New.
6713 (alpha_heuristic_frame_base_address): New.
6714 (alpha_heuristic_frame_base): New.
6715 (alpha_unwind_dummy_id): New.
6716 (alpha_unwind_pc): New.
6717 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6718 frame related deprecated initializations; install replacements.
6719 (alpha_dump_tdep): Remove.
6720 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6721 (alpha_read_insn, alpha_after_prologue,
6722 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6723 alpha_heuristic_frame_prev_register,
6724 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6725 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6726 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6727 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6729 2003-05-29 Andrew Cagney <cagney@redhat.com>
6731 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6732 dependant on the availability of ASSERT_FUNCTION.
6733 (ASSERT_FUNCTION): Do not define when there is no function name.
6735 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6737 From Jimi X <jimix@watson.ibm.com>:
6738 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6740 2003-05-28 Jim Blandy <jimb@redhat.com>
6742 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6743 argument to ptrace to int; the system headers should give it the
6744 right type, and pointers don't fit in ints on powerpc64-*-*.
6746 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6748 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6751 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6753 * stabsread.c (dbx_lookup_type): Make static.
6755 (add_undefined_type): Ditto.
6756 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6759 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6761 * hpread.c (hpread_has_name): Make static.
6762 (hpread_psymtab_to_symtab): Ditto.
6763 (file_exists): Ditto.
6764 (hpread_call_pxdb): Ditto.
6765 (hpread_pxdb_needed): Ditto.
6766 (hpread_quick_traverse): Ditto.
6767 (hpread_get_header): Ditto.
6768 (hpread_get_lntt): Ditto.
6769 (hpread_get_slt): Ditto.
6772 2003-05-25 Andreas Schwab <schwab@suse.de>
6774 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6775 stack_align and deprecated_extra_stack_alignment_needed.
6776 (m68k_stack_align): Delete.
6778 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6779 (m68k_register_virtual_size): Likewise.
6780 (altos_skip_prologue): Remove obsolete function.
6781 (isi_frame_num_args): Likewise.
6782 (news_frame_num_args): Likewise.
6783 (m68k_fix_call_dummy): Make static.
6784 (m68k_push_dummy_frame): Likewise.
6785 (m68k_pop_frame): Likewise.
6786 (m68k_skip_prologue): Likewise.
6787 (m68k_frame_init_saved_regs): Likewise.
6788 (m68k_saved_pc_after_call): Likewise.
6789 (m68k_get_longjmp_target): Make multi-arch.
6790 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6791 structure. Register m68k_get_longjmp_target if enabled.
6792 * m68k-tdep.h (struct gdbarch_tdep): Define.
6793 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6795 * Makefile.in (config.status): Also depend on configure.tgt
6797 (m68klinux-tdep.o): Update dependencies.
6798 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6799 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6800 (M68K_LINUX_JB_PC): Define.
6801 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6802 and take additional parameter.
6803 (m68k_linux_sigtramp_saved_pc): Update.
6804 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6805 m68k_linux_pc_in_sigtramp, in_plt_section,
6806 find_solib_trampoline_target.
6807 * config/m68k/tm-linux.h: Don't include any tm headers.
6808 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6809 (JB_ELEMENT_SIZE): Likewise.
6811 (GET_LONGJMP_TARGET): Likewise.
6812 (IN_SIGTRAMP): Likewise.
6813 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6815 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6817 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6818 (sparc32_push_arguments): Re-implement by calling
6819 sparc32_do_push_arguments.
6821 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6823 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6824 SPARC_O1_REGNUM): New defines.
6825 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6826 (sparc32_store_return_value): New function.
6827 (sparc_extract_struct_value_address): Rewrite to operate on a
6829 (sparc_gdbarch_init): Don't set
6830 deprecated_extract_struct_value_address. Set
6831 extract_struct_value_address instead. Don't set
6832 deprecated_extract_return_value and deprecated_store_return_value
6833 for 32-bit targets. Set extract_return_value and
6834 store_return_value instead.
6835 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6836 DEPRECTAED_EXTRACT_RETURN_VALUE,
6837 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6838 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6839 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6840 (sparc_store_return_value): Remove prototype.
6841 (sparc32_store_return_value): New prototype.
6842 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6845 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6847 * sparcnbsd-tdep.c: Include "gdb_string.h".
6849 2003-05-23 Andrew Cagney <cagney@redhat.com>
6851 * p-valprint.c (pascal_val_print): Replace extract_address with
6852 the inline equivalent extract_unsigned_integer.
6853 * jv-valprint.c (java_value_print): Ditto.
6854 * ada-valprint.c (ada_val_print_1): Ditto.
6855 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6857 2003-05-23 Theodore A. Roth <troth@openavr.org>
6859 * blockframe.c (frameless_look_for_prologue): Remove unused
6860 after_prologue variable.
6862 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6864 * blockframe.c (get_pc_function_start): Rewrite to avoid
6865 asignments in if-statements.
6867 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6869 Committed by Elena Zannoni <ezannoni@redhat.com>.
6870 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6871 files, don't relocate absolute symbols (and do use mst_abs).
6873 2003-05-23 Andrew Cagney <cagney@redhat.com>
6875 * objc-lang.c: Include "gdb_assert.h".
6876 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6877 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6878 (gdb_check, gdb_check_fatal): Delete functions.
6879 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6881 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6882 * Makefile.in (objc-lang.o): Update dependencies.
6884 2003-05-22 Ian Lance Taylor <ian@airs.com>
6886 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6887 with fprintf_filtered, not fprintf_unfiltered.
6889 2003-05-22 Andrew Cagney <cagney@redhat.com>
6891 * stack.c (frame_info): Inline extract_address, replacing it with
6892 extract_unsigned_integer.
6893 * findvar.c (unsigned_pointer_to_address): Ditto.
6894 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6895 * dwarf2expr.c (dwarf2_read_address): Ditto.
6896 * frame.c (frame_pc_unwind): Update comment.
6897 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6899 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6901 * infptrace.c (detach): Call print_sys_errmsg rather than
6902 perror_with_name to issue warning message when errno is non-zero
6903 after calling ptrace detach.
6905 2003-05-21 J. Brobecker <brobecker@gnat.com>
6907 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6908 macro definitions from here...
6909 * hppa-tdep.c: ...to there.
6911 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6913 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6914 register_ptrace_addr(). Fix all callers.
6916 2003-05-21 Andreas Schwab <schwab@suse.de>
6918 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6920 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6922 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6923 (_initialize_m68k_linux_tdep): New function.
6924 (m68k_linux_frame_saved_pc): Make static.
6925 (m68k_linux_extract_return_value): Likewise.
6926 (m68k_linux_store_return_value): Likewise.
6927 (m68k_linux_extract_struct_value_address): Likewise.
6928 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6930 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6931 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6932 (DEPRECATED_FRAME_SAVED_PC): Remove.
6934 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6936 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6937 regset numbering rather than our own.
6939 2003-05-19 David Carlton <carlton@bactrian.org>
6941 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
6943 2003-05-19 David Carlton <carlton@bactrian.org>
6945 Partial fix for PR c++/827.
6946 * cp-support.h: Include symtab.h.
6947 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
6948 * cp-namespace.c: Update contributors.
6949 (cp_lookup_symbol_nonlocal): New.
6950 (lookup_namespace_scope, cp_lookup_symbol_namespace)
6951 (lookup_symbol_file): Ditto.
6952 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
6953 * block.h: Declare block_scope, block_using, block_global_block.
6954 * block.c (block_scope): New.
6955 (block_using, block_global_block): Ditto.
6956 * Makefile.in (cp_support_h): Depend on symtab_h.
6957 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
6959 2003-05-19 David Carlton <carlton@bactrian.org>
6961 * language.h (struct language_defn): Add 'la_value_of_this'
6962 and 'la_lookup_symbol_nonlocal' members.
6963 * symtab.h: Declare basic_lookup_symbol_nonlocal,
6964 lookup_symbol_static, lookup_symbol_global,
6965 lookup_symbol_aux_block.
6966 * symtab.c (lookup_symbol_aux): Call language hooks to determine
6967 if we should search fields of this and how to do static/global
6969 (lookup_symbol_aux_block): Make extern.
6970 (basic_lookup_symbol_nonlocal): New.
6971 (lookup_symbol_static, lookup_symbol_global): Ditto.
6972 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
6973 'la_lookup_symbol_nonlocal' members.
6974 * c-lang.c (c_language_defn, cplus_language_defn)
6975 (asm_language_defn, minimal_language_defn): Ditto.
6976 * jv-lang.c (java_language_defn): Ditto.
6977 * language.c (unknown_language_defn, auto_language_defn)
6978 (local_language_defn): Ditto.
6979 * m2-lang.c (m2_language_defn): Ditto.
6980 * objc-lang.c (objc_language_defn): Ditto.
6981 * scm-lang.c (scm_language_defn): Ditto.
6982 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
6983 * p-lang.c (pascal_language_defn): Ditto for both.
6984 * Makefile.in (f-lang.o): Depend on value_h.
6987 2003-05-19 David Carlton <carlton@bactrian.org>
6989 * block.h: Declare block_static_block.
6990 * block.c (block_static_block): New.
6991 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
6992 lookup_symbol_aux_local, calling block_static_block instead.
6993 (lookup_symbol_aux_local): Delete 'static_block' argument.
6995 2003-05-19 David Carlton <carlton@bactrian.org>
6997 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
6999 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7001 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7002 register numbers mapping.
7004 2003-05-18 Adam Fedor <fedor@gnu.org>
7006 * symtab.c (completion_list_objc_symbol): New function.
7007 (make_symbol_completion_list): Use it to add ObjC symbols
7008 when looking though the list.
7009 (language_search_unquoted_string): New function.
7010 (make_file_symbol_completion_list): Use it.
7012 2003-05-18 Andreas Schwab <schwab@suse.de>
7014 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7016 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7017 as m68k_linux_extract_return_value.
7018 (DEPRECATED_STORE_RETURN_VALUE): Define as
7019 m68k_linux_store_return_value.
7020 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7021 m68k_linux_extract_struct_value_address.
7022 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7023 get_next_frame, get_frame_base, get_frame_pc.
7024 (m68k_linux_frame_saved_pc): Use get_frame_base.
7025 (m68k_linux_extract_return_value): New function.
7026 (m68k_linux_store_return_value): New function.
7027 (m68k_linux_extract_struct_value_address): New function.
7028 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7030 * c-exp.y (typebase): Remove duplicate occurence of
7031 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7032 of lookup_signed_typename.
7034 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7036 * dwarf2loc.c (find_location_expression): Change type of second
7037 argument to `size_t *'.
7038 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7041 2003-05-18 David Carlton <carlton@bactrian.org>
7043 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7044 'linkage_name'. Add comment.
7045 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7047 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7048 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7049 (lookup_block_symbol): Ditto.
7051 2003-05-16 Andrew Cagney <cagney@redhat.com>
7053 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7054 * gdbarch.h, gdbarch.c: Re-generate.
7055 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7056 * TODO (REGISTER_BYTES): Delete reference.
7057 * alpha-tdep.c (alpha_gdbarch_init): Update.
7058 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7059 * x86-64-tdep.c (x86_64_init_abi): Update.
7060 * vax-tdep.c (vax_gdbarch_init): Update.
7061 * v850-tdep.c (v850_gdbarch_init): Update.
7062 * sparc-tdep.c (sparc_gdbarch_init): Update.
7063 * sh-tdep.c (sh_gdbarch_init): Update.
7064 * s390-tdep.c (s390_gdbarch_init): Update.
7065 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7066 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7067 (ns32k_gdbarch_init_32382): Update.
7068 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7069 * mcore-tdep.c (mcore_gdbarch_init): Update.
7070 * m68k-tdep.c (m68k_gdbarch_init): Update.
7071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7072 * ia64-tdep.c (ia64_gdbarch_init): Update.
7073 * i386-tdep.c (i386_gdbarch_init): Update.
7074 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7075 * hppa-tdep.c (hppa_gdbarch_init): Update.
7076 * h8300-tdep.c (h8300_gdbarch_init): Update.
7077 * frv-tdep.c (frv_gdbarch_init): Update.
7078 * cris-tdep.c (cris_gdbarch_init): Update.
7079 * avr-tdep.c (avr_gdbarch_init): Update.
7080 * arm-tdep.c (arm_gdbarch_init): Update.
7081 * sparc-tdep.c (sparc_pop_frame): Update.
7082 * rs6000-tdep.c (rs6000_pop_frame): Update.
7083 * remote.c (init_remote_state): Update.
7084 (remote_prepare_to_store): Update.
7085 * remote-vx.c (vx_prepare_to_store): Update.
7086 * remote-sds.c (sds_fetch_registers): Update.
7087 (sds_prepare_to_store): Update.
7088 * remote-array.c: Update.
7089 * regcache.c (init_legacy_regcache_descr): Update.
7090 (init_regcache_descr): Update.
7091 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7092 (mips_o64_extract_return_value): Update.
7093 * irix5-nat.c (fetch_core_registers): Update.
7094 * irix4-nat.c (fetch_core_registers): Update.
7095 * i386-tdep.h: Update.
7096 * hppa-tdep.c (pa_do_registers_info): Update.
7097 (pa_do_strcat_registers_info): Update.
7098 * cris-tdep.c (cris_register_bytes_ok): Update.
7099 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7100 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7101 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7102 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7103 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7104 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7105 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7106 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7107 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7108 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7109 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7110 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7111 (REGISTER_BYTES_OK): Update.
7112 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7113 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7115 2003-05-16 Ian Lance Taylor <ian@airs.com>
7117 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7118 (vax_print_insn, print_insn_arg): Remove static functions.
7119 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7120 print_insn_vax from opcodes library.
7121 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7123 2003-05-15 Andrew Cagney <cagney@redhat.com>
7125 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7126 * target.h (memory_breakpoint_from_pc): Delete declaration.
7127 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7128 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7129 * monitor.c (monitor_insert_breakpoint): Use
7130 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7131 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7132 * gdbarch.h, gdbarch.c: Re-generate.
7133 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7134 (sparc_gdbarch_init): Set breakpoint_from_pc to
7135 sparc_breakpoint_from_pc.
7136 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7137 (BREAKPOINT_FROM_PC): Define.
7138 (sparc_breakpoint_from_pc): Declare.
7139 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7140 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7141 (BREAKPOINT_FROM_PC): Define.
7142 (BREAKPOINT): Delete macro.
7143 * target.h: Update comment.
7144 * s390-tdep.c (s390_gdbarch_init): Update comments.
7145 * remote.c: Update comments.
7146 * remote-mips.c: Update comments.
7147 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7148 * mem-break.c: Update comment.
7149 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7150 (ia64_memory_insert_breakpoint): Update.
7151 * config/sparc/tm-sparc.h: Update comment.
7152 * config/pa/tm-hppa64.h: Update comment.
7153 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7154 (rs6000_breakpoint_from_pc): Update.
7155 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7156 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7157 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7158 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7159 (mips_breakpoint_from_pc): Update.
7160 (mips_dump_tdep): Update.
7162 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7163 * minsyms.c (lookup_minimal_symbol): Inline
7164 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7166 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7167 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7168 * p-lang.c (pascal_printstr): Ditto.
7169 * objc-lang.c (objc_printstr): Ditto.
7170 * m2-lang.c (m2_printstr): Ditto.
7171 * jv-valprint.c (java_print_value_fields): Ditto.
7172 * f-lang.c (f_printstr): Ditto.
7173 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7174 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7175 for repeat_count_threshold.
7176 * Makefile.in (cp-valprint.o): Update dependencies.
7178 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7180 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7181 (examine_prologue): Support looking through leaf functions, knowing
7182 they start with mov r2,r12. Support skipping over indirect stores
7183 of the input registers. Upon hitting a non-nop branch instruction
7184 or predicated instruction, bail out by setting lim_pc to the current
7185 pc value in the loop. At the end, if the lim_pc value is still
7186 beyond our calculated value and we have trust_limit set,
7187 use the lim_pc value.
7189 2003-05-15 Andrew Cagney <cagney@redhat.com>
7191 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7192 generic_find_dummy_frame.
7193 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7194 (deprecated_generic_find_dummy_frame): Update.
7195 (deprecated_read_register_dummy): Update.
7196 * frame.c (deprecated_generic_get_saved_register): Update.
7198 2003-05-15 Theodore A. Roth <troth@openavr.org>
7200 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7201 (avr_gdbarch_init): Set breakpoint_from_pc method.
7203 2003-05-15 Andrew Cagney <cagney@redhat.com>
7205 * regcache.c (build_regcache): Set deprecated_register_valid
7207 (deprecated_grub_regcache_for_register_valid): Delete function.
7208 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7211 2003-05-15 David Carlton <carlton@bactrian.org>
7213 Committed by Elena Zannoni <ezannoni@redhat.com>
7214 * symtab.c (lookup_symbol_aux): Delete calls to
7215 lookup_symbol_aux_minsyms.
7216 (lookup_symbol_aux_minsyms): Comment out function and
7217 prototype. Delete lookup by mangled name.
7219 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7221 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7222 correctly indicate an empty stack and ``stack_allocated'' to the
7223 indicate the number of elements initially allocated.
7224 (dwarf_expr_grow_stack): Simplify method for computing new
7225 stack size. Don't loop infinitely if ``stack_len'' is zero.
7226 (execute_stack_op): Move ``ctx->in_reg'' initialization
7227 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7228 be used in conjuction with DW_OP_piece. Revise error message
7231 2003-05-14 Theodore A. Roth <troth@openavr.org>
7233 * MAINTAINERS: Update my email address.
7234 * avr-tdep.c: Ditto.
7236 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7238 * symtab.h (enum domain_enum): Rename from namespace_enum.
7239 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7240 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7241 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7242 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7243 TYPES_NAMESPACE, METHODS_NAMESPACE.
7244 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7245 (struct symbol, struct partial_symbol): Rename field
7246 'namespace_enum namespace' to 'domain_enum domain'.
7247 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7248 Delete old define kludge for namespace.
7250 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7251 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7252 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7253 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7254 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7255 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7256 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7257 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7258 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7259 occurrences of the above.
7261 2003-05-14 Ian Lance Taylor <ian@airs.com>
7263 * Makefile.in (install-only): Use $(SHELL) when running
7266 2003-05-13 Ian Lance Taylor <ian@airs.com>
7268 * MAINTAINERS (write after approval): Add myself.
7270 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7271 second and third arguments.
7272 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7273 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7275 2003-05-13 Andrew Cagney <cagney@redhat.com>
7277 * defs.h (store_address): Delete declaration.
7278 findvar.c (store_address): Delete function.
7279 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7280 store_unsigned_integer.
7281 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7282 * v850-tdep.c (v850_push_arguments): Ditto.
7283 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7284 * sh-tdep.c (sh64_get_saved_register): Ditto.
7285 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7286 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7287 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7288 (mips_get_saved_register): Ditto.
7289 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7290 (find_func_descr, ia64_push_arguments): Ditto.
7291 * i386-tdep.c (i386_push_arguments): Ditto.
7292 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7293 * frv-tdep.c (frv_push_arguments): Ditto.
7294 * frame.c (legacy_saved_regs_prev_register): Ditto.
7295 (deprecated_generic_get_saved_register): Ditto.
7296 * findvar.c (unsigned_address_to_pointer): Ditto.
7297 * dwarf2read.c (dwarf2_const_value): Ditto.
7298 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7299 * alpha-tdep.c (alpha_push_arguments): Ditto.
7301 2003-05-12 J. Brobecker <brobecker@gnat.com>
7303 * NEWS: Mention that the hppa-hpux port has been partially
7304 multiarched (32bit ABIT only, so far).
7306 2003-05-11 Andrew Cagney <cagney@redhat.com>
7308 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7309 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7310 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7311 sim/testsuite/sim/arm/misaligned2.ms, and
7312 sim/testsuite/sim/arm/misaligned3.ms.
7313 * disasm.h (struct ui_file): Add opaque struct declaration.
7314 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7315 * frame.h (struct ui_file): Ditto.
7317 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7319 * value.h: Pretty print.
7321 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7323 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7325 2003-05-08 Andrew Cagney <cagney@redhat.com>
7327 * regcache.h (max_register_size): Delete declaration.
7328 * regcache.c (max_register_size): Delete function.
7329 (struct regcache_descr): Delete field "max_register_size".
7330 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7331 registers fit in MAX_REGISTER_SIZE.
7332 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7333 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7334 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7335 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7336 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7337 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7338 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7339 * dve3900-rom.c, hppa-tdep.c: Ditto.
7341 2003-05-08 David Carlton <carlton@math.stanford.edu>
7343 * valops.c (push_word): Fix typo.
7345 2003-05-08 Andrew Cagney <cagney@redhat.com>
7347 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7348 * gdbarch.h: Re-generate.
7349 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7350 (legacy_max_register_raw_size): Delete declaration.
7351 * regcache.c (legacy_max_register_raw_size): Delete function.
7352 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7353 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7354 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7355 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7356 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7357 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7358 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7359 * findvar.c, dwarf2cfi.c: Ditto.
7361 2003-05-08 Andrew Cagney <cagney@redhat.com>
7363 * mips-tdep.c (read_signed_register): New function, moved to here
7365 (read_signed_register_pid): Ditto.
7366 * regcache.c (read_signed_register_pid): Delete function, moved to
7368 (read_signed_register): Ditto.
7369 * regcache.h (read_signed_register): Delete declaration.
7370 (read_signed_register_pid): Delete declaration.
7372 2003-05-08 Andrew Cagney <cagney@redhat.com>
7374 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7375 * gdbarch.h: Re-generate.
7376 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7377 (legacy_max_register_virtual_size): Delete declaration.
7378 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7379 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7380 * tracepoint.c (memrange_sortmerge): Ditto.
7381 * sparc-tdep.c (sparc_print_registers): Ditto.
7382 * regcache.c (legacy_max_register_virtual_size): Delete function.
7384 2002-05-08 J. Brobecker <brobecker@gnat.com>
7386 * fork-child.c (escape_bang_in_quoted_argument): New function.
7387 (fork_inferior): Escape '!' characters in quoted arguments
7390 2003-05-08 J. Brobecker <brobecker@gnat.com>
7392 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7393 the language of the CU is not currently supported by GDB.
7395 2003-05-08 J. Brobecker <brobecker@gnat.com>
7397 * defs.h (language): Add language_minimal enum value.
7398 * c-lang.c (minimal_language_defn): New language definition.
7399 (_initialize_c_language): Add the new minimal language to the list
7400 of languages known to GDB.
7402 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7404 * frame.c (get_frame_type): Don't attempt to lazily initialize
7405 frame's unwinder for legacy frames.
7407 2003-05-07 Andrew Cagney <cagney@redhat.com>
7409 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7410 and "regcache" parameters.
7411 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7413 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7415 * dwarf2read.c (dwarf_decode_lines): Only use output of
7416 check_cu_functions() when calling record_line(). Do not update
7417 the current address.
7419 2003-05-07 Andrew Cagney <cagney@redhat.com>
7421 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7424 2003-05-07 Jim Blandy <jimb@redhat.com>
7426 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7427 'maint info symtabs' and 'maint info psymtabs'.
7428 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7429 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7430 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7431 Declarations updated.
7432 * maint.c (maintenance_list_command): Delete.
7433 (_initialize_maint_cmds): Update calls to add_cmd.
7434 * gdbcmd.h (maintenancelistlist): Delete declaration.
7435 * cli/cli-cmds.c (maintenancelistlist): Delete.
7436 (init_cmd_lists): Don't initialize it.
7437 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7439 2003-05-07 Andrew Cagney <cagney@redhat.com>
7441 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7443 (d10v_print_registers_info): Update.
7444 (d10v_dmap_register, d10v_imap_register): Delete functions.
7445 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7446 and "imap_register".
7447 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7448 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7449 * arch-utils.c (generic_remote_translate_xfer_address): Add
7450 "regcache" and "gdbarch" parameters.
7451 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7452 parameter. Change class to multi-arch.
7453 * gdbarch.h, gdbarch.c: Re-generate.
7454 * remote.c (remote_xfer_memory): Use
7455 gdbarch_remote_translate_xfer_address.
7457 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7459 * infrun.c (prev_pc): Move declaration ahead of proceed().
7460 (proceed): Refresh prev_pc value before resuming.
7461 (stop_stepping): Remove code to refresh prev_pc.
7463 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7465 * nto-tdep.c: Removed stray comment.
7467 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7469 * i386-nto-tdep.c: Fix old K&R function definitions.
7470 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7471 Also change add_show_from_set() call to add_setshow_cmd().
7472 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7474 2003-05-05 Andrew Cagney <cagney@redhat.com>
7476 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7477 (fprint_dummy_frames): New function.
7478 (maintenance_print_dummy_frames): New function.
7479 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7480 * frame.c (fprint_frame_id): Make global.
7481 * frame.h (fprint_frame_id): Declare.
7482 * Makefile.in (dummy-frame.o): Update dependencies.
7484 2003-05-05 Andrew Cagney <cagney@redhat.com>
7486 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7487 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7488 SIZEOF_CALL_DUMMY_WORDS.
7489 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7490 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7491 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7492 CALL_DUMMY_BREAKPOINT_OFFSET.
7493 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7494 CALL_DUMMY_START_OFFSET.
7495 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7496 * gdbarch.h, gdbarch.c: Re-generate.
7497 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7498 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7499 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7500 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7501 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7502 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7503 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7504 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7505 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7506 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7507 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7508 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7509 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7510 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7511 * config/sparc/tm-sparc.h: Update.
7513 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7515 * configure.tgt: Add i[3456]86-*-nto*.
7516 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7517 * nto-tdep.c: New file. Neutrino target support routines.
7518 * nto-tdep.h: New file. Neutrino target header.
7519 * config/tm-qnxnto.h: New file.
7520 * config/i386/i386nto.mt: New file.
7521 * config/i386/tm-i386nto.h: New file.
7523 2003-05-04 Andrew Cagney <cagney@redhat.com>
7525 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7526 (load_infrun_state): Ditto.
7527 (struct thread_info): Drop "prev_func_name" field.
7528 * thread.c (load_infrun_state): Update.
7529 (save_infrun_state): Update.
7530 * infrun.c (prev_func_name): Delete variable.
7531 (init_wait_for_inferior): Do not clear prev_func_name.
7532 (stop_stepping, keep_going, context_switch): Do not swap
7534 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7535 instead of PC_IN_SIGTRAMP.
7537 2003-05-04 Andrew Cagney <cagney@redhat.com>
7539 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7540 REGISTER_BYTE with register_offset_hack.
7541 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7542 that REGISTER_BYTE is consistent with the regcache.
7543 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7544 * gdbarch.h, gdbarch.c: Regenerate.
7546 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7548 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7549 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7551 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7553 2003-05-03 J. Brobecker <brobecker@gnat.com>
7555 From Thierry Schneider <tpschneider1@yahoo.com>
7556 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7557 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7558 (mi-cmd-symbol.o): Add rule.
7560 2003-05-03 Andrew Cagney <cagney@redhat.com>
7562 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7563 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7564 * gdbarch.h, gdbarch.c: Re-generate.
7565 * d10v-tdep.c (d10v_push_dummy_code): New function.
7566 (d10v_gdbarch_init): Set push_dummy_code.
7567 * infcall.c (legacy_push_dummy_code): New function.
7568 (generic_push_dummy_code): New function.
7569 (push_dummy_code): New function.
7570 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7571 instead of dummy_addr, to push_dummy_call. Move call to
7572 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7574 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7576 2003-05-03 Andrew Cagney <cagney@redhat.com>
7578 * disasm.h (print_insn): Declare.
7579 * disasm.c (init_gdb_disassemble_info): New function.
7580 (gdb_disassembly): Call init_gdb_disassemble_info.
7581 (gdb_print_insn): New function.
7582 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7583 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7584 * mcore-tdep.c: Include "disasm.h"
7585 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7586 * d10v-tdep.c: Include "disasm.h".
7587 (display_trace): Call gdb_print_insn, instead of print_insn.
7588 (print_insn): Delete function.
7589 * printcmd.c: Include "disasm.h".
7590 (print_insn): Delete function.
7591 (print_formatted): Call gdb_print_insn, instead of print_insn.
7592 * Makefile.in (printcmd.o): Update dependencies.
7593 (mcore-tdep.o, d10v-tdep.o): Ditto.
7595 2003-05-02 Andrew Cagney <cagney@redhat.com>
7597 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7598 PC_REGNUM, re-indent.
7599 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7600 PC_REGNUM isn't set.
7602 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7603 * gdbarch.h, gdbarch.c: Re-generate.
7604 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7605 register_virtual_size, pc_regnum, or register_bytes.
7606 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7607 (d10v_register_type): Use D10V_PC_REGNUM.
7608 (d10v_print_registers_info, d10v_read_pc): Ditto.
7609 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7610 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7612 2003-05-02 David Carlton <carlton@bactrian.org>
7614 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7615 the name with mstrsave.
7617 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7619 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7620 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7621 (host_charset_name, target_charset_name): New vars for use by
7623 (host_charset_enum, target_charset_enum): New enums for set/show
7625 (set_charset_sfunc, set_host_charset_sfunc,
7626 set_target_charset_sfunc): New functions.
7627 (set_host_charset, set_target_charset): Make static.
7628 (list_charsets, set_host_charset_command,
7629 set_target_charset_command): Delete functions.
7630 (show_charset_command): Rewrite as....
7631 (show_charset): Hook this up with the set/show command mechanism.
7632 (_initialize_charset): Change names of charsets to match the
7633 set/show enums. Use host_charset_name and target_charset_name.
7634 Use set/show mechanism for charset, host-charset, target-charset
7635 commands. Do not make 'show host-charset' and 'show
7636 target-charset' be aliases of 'show charset'.
7638 * charset.h (set_host_charset, set_target_charset): Don't export,
7639 they are not used outside the file.
7641 2003-05-01 Andrew Cagney <cagney@redhat.com>
7643 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7644 (gdb_disassembly): Make "di" non static, always initialize and
7645 cleanup. Always use dis_asm_read_memory.
7646 (gdb_dis_asm_read_memory): Delete function.
7648 2003-05-01 Andrew Cagney <cagney@redhat.com>
7650 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7651 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7653 2003-04-30 Andrew Cagney <cagney@redhat.com>
7655 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7656 "tm_print_insn_info".
7657 (TARGET_PRINT_INSN_INFO): Delete macro.
7658 (dis_asm_read_memory): Delete function declaration.
7659 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7660 (tm_print_insn_info): Delete variable definition.
7661 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7662 * gdbarch.h, gdbarch.c: Re-generate.
7663 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7664 "deprecated_tm_print_insn_info".
7665 * mcore-tdep.c (mcore_dump_insn): Ditto.
7666 * mips-tdep.c (mips_gdbarch_init): Ditto.
7667 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7668 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7669 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7670 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7671 instead of TARGET_PRINT_INSN_INFO, add comment.
7672 * s390-tdep.c (s390_get_frame_info): Instead of
7673 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7674 (s390_check_function_end, s390_is_sigreturn): Ditto.
7675 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7676 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7677 * disasm.c: Include "gdbcore.h".
7678 (_initialize_disasm): New function, initialize
7679 "deprecated_tm_print_insn_info".
7680 (deprecated_tm_print_insn_info): New variable.
7681 (dis_asm_read_memory): Moved from "corefile.c", made static.
7682 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7683 * Makefile.in (disasm.o): Update dependencies.
7685 2003-04-30 Andrew Cagney <cagney@redhat.com>
7687 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7689 2003-04-29 Adam Fedor <fedor@gnu.org>
7691 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7692 * infcall.c (find_function_addr): Make non-static.
7693 * infcall.h (find_function_addr): Declare.
7694 * Makefile.in (eval.o): Update dependencies.
7696 2003-04-28 Adam Fedor <fedor@gnu.org>
7698 * symtab.c (symbol_find_demangled_name): Check for and demangle
7700 (symbol_init_demangled_name): Init for language_objc as well.
7702 2003-04-28 Andrew Cagney <cagney@redhat.com>
7704 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7705 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7706 * gdbarch.h, gdbarch.c: Re-generate.
7707 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7708 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7709 * inferior.h (deprecated_read_fp): Rename read_fp.
7710 (generic_target_read_fp): Delete declaration.
7711 * regcache.c (generic_target_read_fp): Delete function.
7712 (deprecated_read_fp): Replace read_fp, use
7713 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7714 * d10v-tdep.c (d10v_read_fp): Delete function.
7715 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7717 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7718 deprecated_target_read_fp to generic_target_read_fp.
7719 * sh-tdep.c (sh_gdbarch_init): Ditto.
7720 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7721 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7722 * frv-tdep.c (frv_gdbarch_init): Ditto.
7724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7725 deprecated_fp_regnum.
7726 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7727 * vax-tdep.c (vax_gdbarch_init): Ditto.
7728 * v850-tdep.c (v850_gdbarch_init): Ditto.
7729 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7730 * sh-tdep.c (sh_gdbarch_init): Ditto.
7731 * s390-tdep.c (s390_gdbarch_init): Ditto.
7732 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7733 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7734 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7735 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7737 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7738 * i386-tdep.c (i386_gdbarch_init): Ditto.
7739 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7740 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7741 * frv-tdep.c (frv_gdbarch_init): Ditto.
7742 * cris-tdep.c (cris_gdbarch_init): Ditto.
7743 * avr-tdep.c (avr_gdbarch_init): Ditto.
7744 * arm-tdep.c (arm_gdbarch_init): Ditto.
7745 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7747 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7748 * v850-tdep.c (v850_gdbarch_init): Ditto.
7749 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7750 * sh-tdep.c (sh_gdbarch_init): Ditto.
7751 * s390-tdep.c (s390_gdbarch_init): Ditto.
7752 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7753 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7754 * mips-tdep.c (mips_gdbarch_init): Ditto.
7755 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7756 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7757 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7758 * frv-tdep.c (frv_gdbarch_init): Ditto.
7759 * avr-tdep.c (avr_gdbarch_init): Ditto.
7760 * arm-tdep.c (arm_gdbarch_init): Ditto.
7762 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7763 DEPRECATED_FP_REGNUM.
7764 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7765 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7766 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7767 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7768 (sparc32_register_virtual_type): Ditto.
7769 * sh-tdep.c (sh64_frame_chain): Ditto.
7770 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7771 (sh_nofp_frame_init_saved_regs): Ditto.
7772 (sh64_nofp_frame_init_saved_regs): Ditto.
7773 (sh_fp_frame_init_saved_regs): Ditto.
7774 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7775 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7776 * procfs.c (procfs_fetch_registers): Ditto.
7777 (procfs_store_registers): Ditto.
7778 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7779 (store_inferior_registers, fetch_core_registers): Ditto.
7780 (fetch_kcore_registers, clear_regs): Ditto.
7781 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7782 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7783 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7784 * nlm/i386.c (do_status): Ditto.
7785 * mipsv4-nat.c (supply_gregset): Ditto.
7786 * mips-tdep.c: Ditto for comments.
7787 * mips-nat.c (fetch_inferior_registers): Ditto.
7788 (store_inferior_registers, fetch_core_registers): Ditto.
7789 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7790 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7791 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7792 (i386_do_pop_frame, i386_register_type): Ditto.
7793 * hppa-tdep.c (hppa_frame_chain): Ditto.
7794 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7795 (hppa_pop_frame, hppa_read_fp): Ditto.
7796 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7797 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7798 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7799 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7800 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7801 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7802 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7803 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7804 * blockframe.c: Ditto for comments.
7805 * arch-utils.h: Ditto for comments.
7806 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7807 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7808 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7809 * alpha-tdep.h: Ditto for comments.
7810 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7811 (alpha_cannot_store_register): Ditto.
7812 (alpha_push_dummy_frame): Ditto.
7813 * alpha-nat.c (supply_gregset): Ditto.
7815 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7816 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7817 * config/sparc/tm-sparc.h: Update comment.
7819 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7820 deprecated_read_fp instead of TARGET_READ_FP.
7821 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7822 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7823 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7824 deprecated_read_fp instead of read_fp.
7825 * s390-tdep.c (s390_push_arguments): Ditto.
7826 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7827 * frame.h: Ditto in comments.
7828 * frame.c (legacy_get_prev_frame): Ditto.
7829 * dummy-frame.c (dummy_frame_this_id): Ditto.
7830 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7832 2003-04-28 Andrew Cagney <cagney@redhat.com>
7834 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7835 * gdbarch.h, gdbarch.c: Re-generate.
7836 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7837 * vax-tdep.c (_initialize_vax_tdep): Update.
7838 * v850-tdep.c (_initialize_v850_tdep): Update.
7839 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7840 * s390-tdep.c (_initialize_s390_tdep): Update.
7841 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7842 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7843 * mips-tdep.c (_initialize_mips_tdep): Update.
7844 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7845 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7846 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7847 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7848 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7849 * frv-tdep.c (_initialize_frv_tdep): Update.
7850 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7851 (_initialize_cris_tdep): Update.
7852 * arch-utils.c (legacy_print_insn): Update.
7853 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7855 2003-04-26 Adam Fedor <fedor@gnu.org>
7857 * linespec.c (decode_objc): New function to decode ObjC calls
7858 (decode_line_1): Check for ObjC calls (using decode_objc)
7859 * Makefile (linespec.o): Update dependencies.
7861 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7863 * breakpoint.h (struct breakpoint_ops): New.
7864 (struct breakpoint): Add ops member.
7866 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7867 (mention): Use new breakpoint ops member.
7868 (set_raw_breakpoint): Initialize ops field to NULL.
7869 (print_exception_catchpoint, print_one_exception_catchpoint)
7870 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7871 (gnu_v3_exception_catchpoint_ops): New.
7872 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7874 2003-04-25 Adam Fedor <fedor@gnu.org>
7876 * Makefile.in (COMMON_OBS): Add objc-lang.o
7878 2003-04-25 Andrew Cagney <cagney@redhat.com>
7880 * d10v-tdep.c (print_insn): Delete function.
7881 (display_trace): Use TARGET_PRINT_INSN.
7882 (_initialize_d10v_tdep): Do not set tm_print_insn.
7883 (d10v_gdbarch_init): Set print_insn.
7885 2003-04-25 Andrew Cagney <cagney@redhat.com>
7887 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7888 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7889 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7890 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7891 (nr_dmap_regs, a0_regnum): ... new functions.
7892 (d10v_print_registers_info): Use a0_regnum, use register_size.
7893 (d10v_register_byte): Delete function.
7894 (d10v_register_raw_size): Delete function.
7895 (d10v_register_type): Use a0_regnum.
7896 (d10v_print_registers_info): Use a0_regnum.
7897 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7898 (d10v_gdbarch_init): Do not set register_byte or
7899 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7900 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7902 (trace_command): Use XCALLOC.
7903 (print_insn): Delete reference to tm_print_insn.
7904 (saved_regs_unwinder): Use store_unsigned_integer instead of
7906 * frame.h (FRAME_OBSTACK_CALLOC): Define
7908 2003-04-25 David Carlton <carlton@bactrian.org>
7910 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7912 2003-04-24 Adam Fedor <fedor@gnu.org>
7914 * objc-lang.c: Include "valprint.h"
7915 * Makefile.in (objc-lang.o): Update dependencies.
7917 2003-04-24 Adam Fedor <fedor@gnu.org>
7919 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7920 architecture dependant compilation and mark as unimplemented
7921 (until they get put in the gdbarch vector).
7923 2003-04-23 David Carlton <carlton@bactrian.org>
7925 * cp-support.c (cp_find_first_component): Accept 'operator' in
7928 2003-04-23 Andrew Cagney <cagney@redhat.com>
7930 * infcall.c (call_function_by_hand): Eliminate redundant
7931 indentation. Move "saved_async" and "old_cleanups" to where they
7934 2003-04-23 Andrew Cagney <cagney@redhat.com>
7936 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7937 and "buffer". Move the "name" code to where it is needed.
7939 2003-04-23 Andrew Cagney <cagney@redhat.com>
7941 * infcall.c (call_function_by_hand): Move variables "start_sp",
7942 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
7943 code to ON_STACK switch branch.
7945 2003-04-23 Andrew Cagney <cagney@redhat.com>
7947 * infcall.c (call_function_by_hand): Make declaration of "i",
7948 "sal", "bpt" and "old_sp" more local to their use. Delete #if
7951 2003-04-23 Andrew Cagney <cagney@redhat.com>
7953 * infcall.c (call_function_by_hand): Delete variable
7954 "n_method_args". Localize "param_type"'s declaration to the loop
7955 that it is used. Reinstate code assigning to said variable -
7956 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
7957 Rationalize code using "param_type".
7959 2003-04-22 Andrew Cagney <cagney@redhat.com>
7961 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
7962 compute the breakpoint address. Only call FIX_CALL_DUMMY when
7963 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
7964 to DEPRECATED_PUSH_RETURN_ADDRESS.
7966 2003-04-22 Kevin Buettner <kevinb@redhat.com>
7968 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
7969 on the DWARF2 register number prior to fetching a register.
7971 2003-04-22 J. Brobecker <brobecker@gnat.com>
7973 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
7974 Update all the tests using SOFT_FLOAT considering the fact that
7975 this macro was always set to 0.
7976 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
7977 considering the fact that this macro was always set to 0.
7978 * hppa-tdep.h (hppa_store_return_value): Likewise.
7979 (hppa_extract_return_value): Likewise.
7981 2003-04-22 J. Brobecker <brobecker@gnat.com>
7983 * config/pa/tm-hppa.h: Remove obsolete code, was used by
7984 the hppa-pro target only.
7986 2003-04-21 J. Brobecker <brobecker@gnat.com>
7988 Ongoing multi-arch conversion effort for HP/UX:
7989 * config/pa/tm-hppa.h: Move all macro that are no longer
7990 defined now that GDB_MULTI_ARCH is now set to 1 from here...
7991 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
7993 2003-04-21 J. Brobecker <brobecker@gnat.com>
7995 * config/pa/tm-hppa.h: Obsolete a section that was only used
7998 2003-04-21 J. Brobecker <brobecker@gnat.com>
8000 Ongoing multi-arch conversion for HP/UX.
8001 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8002 if already defined (allows hppa64 to stay non-multiarched for now).
8003 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8005 2003-04-21 Andrew Cagney <cagney@redhat.com>
8007 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8009 2003-04-21 Andrew Cagney <cagney@redhat.com>
8011 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8012 "i386_num_mmx_regs".
8014 2003-04-21 Andrew Cagney <cagney@redhat.com>
8016 * infcall.c: New file.
8017 * infcall.h: New file.
8018 * valarith.c: Include "infcall.h".
8019 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8020 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8021 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8022 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8023 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8024 (SFILES): Add "infcall.c"
8025 (COMMON_OBS): Add "infcall.o".
8026 (infcall.o): Specify dependencies.
8027 * value.h (call_function_by_hand): Delete declaration.
8028 * inferior.h (run_stack_dummy): Delete declaration.
8029 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8030 (run_stack_dummy): Move to "infcall.c", merged into
8031 call_function_by_hand.
8032 * valops.c (call_function_by_hand): Moved to "infcall.c".
8033 (find_function_addr, value_arg_coerce): Ditto.
8034 (unwindonsignal_p, coerce_float_to_double): Ditto.
8035 (_initialize_valops): Move "set/show coerce-float-to-double", and
8036 "set/show unwindonsignal" commands to "infcall.c".
8037 * v850-tdep.c, target.h: Update comments.
8038 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8039 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8040 (sh64_init_extra_frame_info): Update comments.
8041 * mn10300-tdep.c: Update comments.
8042 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8043 * config/sparc/tm-sparc.h: Update comments.
8044 * breakpoint.h: Update comments.
8045 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8046 * arm-tdep.c: Update comment.
8048 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8050 * i386-tdep.c (i386_num_register_names): New variable.
8051 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8052 (MM0_REGNUM): Remove redundant parentheses in define.
8053 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8054 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8055 i386_mxcsr_regnum_p): Remove redundant parentheses.
8056 (i386_register_name): Use i386_num_register_names.
8058 * i386-tdep.c (i386_extract_return_value,
8059 i386_store_return_value): Correct check for availability of
8060 floating-point registers.
8062 * i386-tdep.c (i386_frame_num_args): Remove function.
8063 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8065 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8066 mmx_regnum_to_fp_regnum. Adjust all callers.
8068 * i386-tdep.c (i386_get_longjmp_target): Use
8069 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8070 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8073 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8075 * core-regset.c: Update comments to reflect reality. Re-order
8077 (fetch_core_registers): Use switch instead of if. Remove
8078 redundant prototype.
8080 2003-04-18 Jim Blandy <jimb@redhat.com>
8082 * s390-tdep.c (s390_frame_align): New function.
8083 (s390_gdbarch_init): Register it with the gdbarch object.
8085 2003-04-17 Richard Henderson <rth@redhat.com>
8087 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8089 2003-04-17 Michael Snyder <msnyder@redhat.com>
8090 Karen Bennet <bennet@redhat.com>
8092 Committed by Elena Zannoni <ezannoni@redhat.com>
8093 * gdb_gcore.sh: New script to create a core dump of a process.
8095 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8097 * values.c (value_being_returned): Don't fetch the return
8098 value if the return type is void.
8100 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8102 * thread-db.c: Reindented.
8104 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8106 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8107 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8134 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8136 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8137 the size of ``long double'' to 16, instead of 8.
8139 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8141 * i386-linux-nat.c: Add some whitespace to make things more
8143 (fetch_register, store_register, fetch_inferior_registers,
8144 store_inferior_registers): Get rid of assignment in if-statement.
8145 (store_register): Fix typo in error message.
8147 2003-04-16 Andrew Cagney <cagney@redhat.com>
8149 * utils.c (xmmalloc): Always allocate something, matches
8150 libiberty/xmalloc's semantics.
8151 (xmrealloc, xmcalloc): Ditto.
8153 2003-04-16 Andrew Cagney <cagney@redhat.com>
8155 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8157 (get_frame_type): Initialize unwind and type when needed.
8158 (get_frame_id, frame_register_unwind): Ditto.
8160 2003-04-16 Andrew Cagney <cagney@redhat.com>
8162 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8164 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8165 * sparcl-stub.c: Obsolete file.
8166 * config/sparc/tm-sparclet.h: Obsolete file.
8167 * sparclet-stub.c: Obsolete file.
8168 * sparclet-rom.c: Obsolete file.
8169 * sparcl-tdep.c: Obsolete file.
8170 * config/sparc/tm-sparclite.h: Obsolete file.
8171 * config/sparc/sparclite.mt: Obsolete file.
8172 * config/sparc/sparclet.mt: Obsolete file.
8173 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8174 sparc86x-*-* obsolete.
8176 2003-04-15 David Carlton <carlton@math.stanford.edu>
8178 * Makefile.in (SFILES): Add cp-namespace.c.
8179 (COMMON_OBS): Add cp-namespace.o.
8180 (block.o): Depend on gdb_obstack_h and cp_support_h.
8181 (buildsym.o): Depend on cp_support_h.
8182 (cp-namespace.o): New.
8183 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8184 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8185 (dwarf2read.o): Depend on cp_support_h.
8186 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8187 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8188 processing_current_namespace.
8189 (read_namespace): Update processing_current_namespace; check for
8190 anonymous namespaces.
8191 (dwarf2_name): New function.
8192 (dwarf2_extension): Ditto.
8193 * cp-support.h: Update copyright, contributors.
8194 Add inclusion guards.
8195 Add opaque declaration for structs obstack, block, symbol.
8196 (struct using_direct): New struct.
8197 Add declarations for cp_find_first_component,
8198 cp_entire_prefix_len, processing_has_namespace_info,
8199 processing_current_namespace, cp_is_anonymous,
8200 cp_add_using_directive, cp_initialize_namespace,
8201 cp_finalize_namespace, cp_set_block_scope,
8202 cp_scan_for_anonymous_namespaces.
8203 * cp-namespace.c: New file.
8204 * cp-support.c: Update copyright.
8205 Include ctype.h, gdb_assert.h, gdbcmd.h.
8206 New variable maint_cplus_cmd_list.
8207 (cp_find_first_component): New function.
8208 (cp_entire_prefix_len, maint_cplus_command)
8209 (first_component_command, _initialize_cp_support): Ditto.
8210 * buildsym.c: Include cp-support.h.
8211 New variable using_list.
8212 (add_symbol_to_list): Check for anonymous namespaces.
8213 (finish_block): Set block's scope.
8214 (start_symtab): Initialize C++ namespace support.
8215 (end_symtab): Finalize C++ namespace support.
8216 * block.h: Add opaque declarations for structs
8217 block_namespace_info, using_direct, and obstack.
8218 Add declarations for block_set_scope and block_set_using.
8219 (struct block): Add 'language_specific' member.
8220 (BLOCK_NAMESPACE): New macro.
8221 * block.c: Include gdb_obstack.h and cp-support.h.
8222 (struct block_namespace_info): New struct.
8223 (block_set_scope): New function.
8224 (block_set_using, block_initialize_namespace): Ditto.
8226 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8228 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8229 (locate_base): Return early if there aren't any link map offsets.
8230 (svr4_solib_create_inferior_hook): Warn if shared library support
8233 2003-04-14 David Carlton <carlton@math.stanford.edu>
8235 * symtab.c (symbol_set_names): Add prefix when storing Java names
8236 in hash table. Fix for PR java/1039.
8238 2003-04-14 David Carlton <carlton@math.stanford.edu>
8240 * symtab.c (symbol_set_names): Rename 'name' arg to
8241 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8242 * symtab.h: Change 'name' argument in declaration of
8243 symbol_set_names to 'linkage_name'.
8244 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8246 2003-04-14 Andrew Cagney <cagney@redhat.com>
8248 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8249 return the fully sign-extended register value.
8250 (get_frame_pointer): Ditto.
8251 (mips_pop_frame): Initialize "proc_desc" after checking for a
8254 2003-04-14 Andrew Cagney <cagney@redhat.com>
8256 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8257 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8258 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8259 (mips_push_register): Delete function.
8260 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8263 2003-04-14 Jim Blandy <jimb@redhat.com>
8265 * symmisc.c: #include "gdb_regex.h".
8266 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8268 * maint.c (maintenance_list_command): New function.
8269 (_initialize_maint_cmds): Register the above as commands.
8270 * symtab.h (maintenance_list_symtabs,
8271 maintenance_list_psymtabs): New declarations.
8272 * cli/cli-cmds.c (maintenancelistlist): New variable.
8273 (init_cmd_lists): Initialize it.
8274 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8275 * gdbcmd.h (maintenancelistlist): New declaration.
8276 * Makefile.in (symmisc.o): Update dependencies.
8278 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8280 * s390-nat.c: Include asm/types.h for addr_t.
8282 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8284 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8285 actually incoming type.
8287 2003-04-13 Andrew Cagney <cagney@redhat.com>
8289 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8290 get_next_frame and get_frame_saved_regs.
8292 2003-04-13 Andrew Cagney <cagney@redhat.com>
8294 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8295 of gdbarch_num_regs.
8297 2003-04-13 Andrew Cagney <cagney@redhat.com>
8299 * frame.h: Mention what replaced what in "struct frame_info".
8300 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8301 deprecated_update_frame_base_hack and
8302 deprecated_update_frame_pc_hack.
8303 * hppa-tdep.c: Ditto.
8305 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8307 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8308 to read_reg and update its comment. Remove regnum member.
8309 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8310 Don't call read_reg when setting in_reg. Call read_reg to get
8311 the frame base if it's in a register. Return the register number
8312 on the stack instead of in the context. Remove extra arguments
8314 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8315 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8316 the register number on the expression stack.
8317 (needs_frame_read_reg): Remove extra arguments.
8319 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8321 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8323 (execute_stack_op): All callers updated.
8324 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8325 * dwarf2loc.c (find_location_expression): New function.
8326 (dwarf_expr_frame_base): Call it.
8327 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8328 (dwarf2_tracepoint_var_ref): New function, broken out from
8329 locexpr_tracepoint_var_ref.
8330 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8332 (loclist_read_variable, loclist_read_needs_frame): New functions.
8333 (loclist_describe_location, loclist_tracepoint_var_ref): New
8335 (dwarf2_loclist_funcs): New struct location_funcs.
8336 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8337 (struct dwarf2_locexpr_baton): Add comments.
8338 (dwarf2_loclist_funcs): New extern.
8339 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8340 base_address and base_known.
8341 (dwarf_loc_buffer): New variable.
8342 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8343 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8344 (dwarf2_has_info): Initialize dwarf_loc_offset.
8345 (dwarf2_build_psymtabs): Read in .debug_loc.
8346 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8348 (psymtab_to_symtab_1): Likewise. Move base address calculation
8350 (dwarf2_get_pc_bounds): ... here. Use the base address from
8352 (dwarf2_symbol_mark_computed): Handle location lists.
8354 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8356 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8357 if the linkage name demangled successfully.
8359 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8361 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8362 disassmbly_flavour): Removed.
8364 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8366 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8368 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8370 2003-04-12 Andrew Cagney <cagney@redhat.com>
8372 * frame.h (struct frame_info): Move definition from here ...
8373 * frame.c (struct frame_info): ... to here.
8375 2003-04-12 Andrew Cagney <cagney@redhat.com>
8377 * gdbthread.h (save_infrun_state): Delete parameter
8379 (struct thread_info): Delete field "prev_func_start".
8380 (load_infrun_state): Ditto.
8381 * thread.c (load_infrun_state, save_infrun_state): Update.
8382 * infrun.c (prev_func_start): Delete variable.
8383 (context_switch, init_wait_for_inferior): Update.
8384 (stop_stepping, keep_going): Update.
8386 2003-04-12 Andrew Cagney <cagney@redhat.com>
8388 * gdbarch.sh: Add missing opaque declarations.
8389 * gdbarch.h: Regnerate.
8390 * symtab.h: Add missing opaque declarations.
8391 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8392 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8393 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8394 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8395 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8396 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8397 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8398 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8399 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8400 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8401 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8402 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8403 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8405 2003-04-11 Andrew Cagney <cagney@redhat.com>
8407 * frame.c (get_frame_id): Return this frame's "id".
8408 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8410 (legacy_saved_regs_this_id): Replace function body with
8412 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8413 FRAME_OBSTACK_ZALLOC.
8414 (create_new_frame): Mark the frame ID as valid.
8416 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8418 * Makefile.in (libbfd_h): Added missing setting.
8419 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8420 according to the selected ABI.
8422 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8424 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8426 2003-04-11 Andrew Cagney <cagney@redhat.com>
8428 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8429 SAVED_PC_AFTER_CALL.
8430 * gdbarch.h, gdbarch.c: Regenerate.
8431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8432 * x86-64-tdep.c (x86_64_init_abi): Update.
8433 * vax-tdep.c (vax_gdbarch_init): Update.
8434 * v850-tdep.c (v850_gdbarch_init): Update.
8435 * sparc-tdep.c (sparc_gdbarch_init): Update.
8436 * sh-tdep.c (sh_gdbarch_init): Update.
8437 * s390-tdep.c (s390_gdbarch_init): Update.
8438 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8439 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8440 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8441 * mips-tdep.c (mips_gdbarch_init): Update.
8442 * mcore-tdep.c (mcore_gdbarch_init): Update.
8443 * m68k-tdep.c (m68k_gdbarch_init): Update.
8444 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8445 * ia64-tdep.c (ia64_gdbarch_init): Update.
8446 (ia64_saved_pc_after_call): Update declaration.
8447 * i386ly-tdep.c (i386lynx_init_abi): Update.
8448 * i386-tdep.c (i386_gdbarch_init): Update.
8449 * hppa-tdep.c (hppa_gdbarch_init): Update.
8450 * h8300-tdep.c (h8300_gdbarch_init): Update.
8451 * frv-tdep.c (frv_gdbarch_init): Update.
8452 * cris-tdep.c (cris_gdbarch_init): Update.
8453 * avr-tdep.c (avr_gdbarch_init): Update.
8454 * arm-tdep.c (arm_gdbarch_init): Update.
8455 * alpha-tdep.c (alpha_gdbarch_init): Update.
8456 * ns32knbsd-nat.c (frame_num_args): Update.
8457 * ns32k-tdep.c (umax_frame_num_args): Update.
8458 * mips-tdep.c (mips_init_frame_pc_first): Update.
8459 * infrun.c (step_over_function): Update.
8460 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8461 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8462 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8463 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8464 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8465 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8466 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8467 * arch-utils.c (init_frame_pc_default): Update.
8468 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8469 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8472 2003-04-11 Andrew Cagney <cagney@redhat.com>
8474 * i387-tdep.c: Update copyright.
8475 (i387_to_double): Delete function.
8476 (double_to_i387): Delete function.
8478 2003-04-10 Andrew Cagney <cagney@redhat.com>
8480 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8481 frame's function's address. Simplify.
8482 (d10v_frame_unwind_cache): Check that the frame's function is
8485 2003-04-10 Jim Blandy <jimb@redhat.com>
8487 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8488 call to set_gdbarch_deprecated_push_arguments.
8490 2003-04-10 Andrew Cagney <cagney@redhat.com>
8492 * frame.c (fprint_frame_id): New function.
8493 (fprint_frame_type, fprint_frame): New function.
8494 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8495 (create_sentinel_frame, get_frame_id): Ditto.
8496 (frame_id_p, frame_id_eq): Ditto.
8497 (frame_id_inner, create_new_frame): Ditto.
8498 (legacy_get_prev_frame, get_prev_frame): Ditto.
8499 (deprecated_update_frame_pc_hack): Ditto.
8500 (frame_register_unwind): Ditto.
8501 (deprecated_update_frame_base_hack): Ditto.
8503 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8505 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8506 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8507 frame_chain function.
8508 * Makefile.in: Add dependencies due to above change.
8510 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8512 * blockframe.c (legacy_frame_chain_valid): Move call to
8513 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8516 2003-04-09 Andrew Cagney <cagney@redhat.com>
8518 * frame.h (struct frame_id): Replace "pc" and "base" with
8519 "stack_addr" and "code_addr". Update comments.
8520 (frame_id_build): Update parameter names and comment.
8521 (struct frame_info): Replace "id_p" and "id" with "this_id".
8522 * dummy-frame.c (dummy_frame_this_id): Update.
8523 * breakpoint.c (print_one_breakpoint): Update.
8524 * frame.c (get_frame_id): Update.
8525 (get_frame_base, frame_id_build): Update.
8526 (create_sentinel_frame, legacy_get_prev_frame): Update.
8527 (deprecated_update_frame_base_hack): Update.
8528 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8529 (frame_id_inner): Ditto.
8531 2003-04-09 Andrew Cagney <cagney@redhat.com>
8533 * defs.h (gdb_print_host_address): Make "addr" parameter a
8535 * utils.c (gdb_print_host_address): Update.
8537 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8539 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8540 register number for R0 is 0.
8542 2003-04-09 J. Brobecker <brobecker@gnat.com>
8544 * frame.h (struct gdbarch): Add opaque structure definition
8545 to avoid a compilation warning on LynxOS 4.0.
8547 2003-04-09 Andrew Cagney <cagney@redhat.com>
8549 * frame.h (struct frame_info): Delete field "pc". Replace
8550 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8552 * frame.c (frame_pc_unwind): Update.
8553 (create_sentinel_frame): Do not set "pc".
8554 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8555 (get_frame_pc): Call frame_pc_unwind.
8556 (deprecated_update_frame_pc_hack): Update.
8557 (create_new_frame): Use "pc" not "->pc".
8559 2003-04-09 Andrew Cagney <cagney@redhat.com>
8561 * frame.c (get_frame_id): Eliminate code updating "frame".
8562 (legacy_get_prev_frame): Ditto.
8563 (get_frame_base): Return id.base directly.
8564 (deprecated_update_frame_base_hack): Update "id.base".
8565 * frame.h (struct frame_info): Delete field "frame".
8567 2003-04-09 Andrew Cagney <cagney@redhat.com>
8569 * NEWS: Mention that the "Sequent family" is obsolete.
8570 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8571 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8572 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8573 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8574 * config/i386/tm-ptx4.h: Obsolete file.
8575 * config/i386/tm-ptx.h: Obsolete file.
8576 * symm-tdep.c: Obsolete file.
8577 * config/i386/symmetry.mt: Obsolete file.
8578 * config/i386/tm-symmetry.h: Obsolete file.
8579 * symm-nat.c: Obsolete file.
8580 * config/i386/nm-symmetry.h: Obsolete file.
8581 * config/i386/xm-symmetry.h: Obsolete file.
8582 * config/i386/symmetry.mh: Obsolete file.
8583 * config/i386/nm-ptx4.h: Obsolete file.
8584 * config/i386/ptx4.mh: Obsolete file.
8585 * config/i386/ptx.mt: Obsolete file.
8586 * config/i386/ptx.mh: Obsolete file.
8587 * config/i386/xm-ptx4.h: Obsolete file.
8588 * config/i386/xm-ptx.h: Obsolete file.
8590 2003-04-09 Andrew Cagney <cagney@redhat.com>
8592 Obsolete mips*-*-mach3*.
8593 * NEWS: Mention that mips*-*-mach3* is obsolete.
8594 * m3-nat.c: Obsolete file.
8595 * config/nm-m3.h: Obsolete file.
8596 * config/mips/tm-mipsm3.h: Obsolete file.
8597 * config/mips/mipsm3.mt: Obsolete file.
8598 * config/mips/mipsm3.mh: Obsolete file.
8599 * config/mips/xm-mipsm3.h: Obsolete file.
8600 * mipsm3-nat.c: Obsolete file.
8601 * configure.host: Obsolete mips-dec-mach3*.
8602 * configure.tgt: Obsolete mips*-*-mach3*.
8604 2003-04-09 Andrew Cagney <cagney@redhat.com>
8606 * doublest.h: Update copyright.
8607 (deprecated_store_floating, deprecated_extract_floating): Rename
8608 store_floating and extract_floating. Update comments.
8609 * doublest.c: Update copyright.
8610 (extract_floating_by_length): Replace extract_floating.
8611 (store_floating_by_length): Replace store_floating.
8612 (deprecated_extract_floating): New function.
8613 (deprecated_store_floating): New function.
8614 (extract_typed_floating): Call extract_floating_by_length.
8615 (store_typed_floating): Call store_floating_by_length.
8616 * x86-64-tdep.c (x86_64_store_return_value): Update.
8617 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8618 (sh64_extract_return_value): Update.
8619 (sh_sh4_register_convert_to_virtual): Update.
8620 (sh_sh64_register_convert_to_virtual): Update.
8621 (sh_sh4_register_convert_to_raw): Update.
8622 (sh_sh64_register_convert_to_raw): Update.
8623 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8624 (rs6000_register_convert_to_raw): Update.
8625 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8626 (ia64_register_convert_to_raw): Update.
8627 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8628 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8629 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8630 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8631 (alpha_register_convert_to_raw): Update.
8633 2003-04-08 Andrew Cagney <cagney@redhat.com>
8635 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8636 * gdbarch.h, gdbarch.c: Re-generate.
8637 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8638 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8639 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8640 conditionally, use frame_pc_unwind as an alternative. Add
8642 * arch-utils.c (init_frame_pc_default): Only call
8643 SAVED_PC_AFTER_CALL when available.
8645 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8647 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8648 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8649 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8650 (start_remote): Ditto.
8651 (handle_inferior_event): Ditto.
8652 (save_inferior_status): Ditto.
8653 (restore_inferior_status): Ditto.
8654 * infcmd.c (attach_command): Ditto.
8655 * fork-child.c (startup_inferior): Ditto.
8656 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8657 * alpha-tdep.c (heuristic_proc_start): Ditto.
8658 * mips-tdep.c (heuristic_proc_start): Ditto.
8659 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8660 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8661 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8662 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8663 * remote-vx.c (vx_create_inferior): Ditto.
8665 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8667 * infrun.c (stop_soon_quietly): Make it an enum, to better
8668 override the default behavior of handle_inferior_event.
8669 (clear_proceed_status): Update uses of stop_soon_quietly to
8670 reflect that it is now an enum.
8671 (start_remote): Ditto.
8672 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8673 is set to handle the new GNU/Linux kernel behavior for
8674 attach/sigstop. Update uses of stop_soon_quietly.
8675 * inferior.h (enum stop_kind): New enum.
8676 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8677 Reset normal handle_inferior_event behavior, afterwards.
8678 * fork-child.c (startup_inferior): Update.
8679 * alpha-tdep.c (heuristic_proc_start): Update.
8680 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8681 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8682 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8683 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8684 * remote-vx.c (vx_create_inferior): Update.
8685 * mips-tdep.c (heuristic_proc_start): Update.
8687 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8689 * disasm.c (dump_insns): Move variables inside loop, or they will
8690 be freed more than once, causing wild memory corruptions.
8691 (gdb_disassembly): Look for the substring "-thread",
8692 instead of "-threads" in the target name, to make sure to find
8693 the 'multi-thread' target. Also, make sure we do the right thing
8694 with the "core" target.
8696 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8698 * mips-tdep.c (mips_print_fp_register): New function, created from
8699 do_fp_register_row(). Registers are now (also) printed as hex.
8700 Only one register is printed per row.
8701 (mips_print_register, do_fp_register_row): Print floating point
8702 registers with mips_print_fp_register().
8704 2003-04-06 Andrew Cagney <cagney@redhat.com>
8706 * valprint.h (inspect_it): Add extern declaration.
8707 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8708 (selectors_info, classes_info): Ditto.
8709 (find_objc_msgcall): Fix indentation.
8710 (objc_printstr): Delete extern declarations.
8712 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8714 2003-04-06 Andrew Cagney <cagney@redhat.com>
8716 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8718 * frame.c (legacy_saved_regs_this_id): Update.
8719 (legacy_get_prev_frame): Update.
8720 * xstormy16-tdep.c: Update comment.
8721 * sparc-tdep.c (sparc_frame_chain): Update comment.
8722 * blockframe.c (legacy_frame_chain_valid): Update.
8724 2003-04-06 Andrew Cagney <cagney@redhat.com>
8726 * valprint.c (val_print_type_code_int): Delete #ifdef
8727 PRINT_TYPELESS_INTEGER code.
8729 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8730 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8731 multi-arch definition.
8732 * gdbarch.h: Re-generate.
8734 2003-04-05 Andrew Cagney <cagney@redhat.com>
8736 Eliminate FRAME_FIND_SAVED_REGS.
8737 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8738 Change FSR parameter to a pointer.
8739 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8740 Assume FSR parameter is a pointer.
8741 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8743 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8744 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8745 saved_regs a pointer.
8746 (hppa_frame_saved_pc): Ditto.
8747 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8748 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8750 (restore_pc_queue): Make fsr a pointer.
8751 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8752 (hppa_frame_chain): Make saved_regs a pointer, call
8753 hppa_frame_init_saved_regs.
8754 * sparc-tdep.c: Include "gdb_assert.h".
8755 (sparc_frame_find_saved_regs): Replace internal_error with
8757 * remote-vxsparc.c (vx_read_register): Delete reference to
8758 FRAME_FIND_SAVED_REGS.
8759 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8760 * gdbarch.h: Regenerate.
8761 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8762 (deprecated_get_frame_saved_regs): Delete declaration.
8763 (struct frame_saved_regs): Delete definition.
8764 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8765 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8766 (hppa_frame_find_saved_regs): Delete declaration.
8767 (FRAME_FIND_SAVED_REGS): Delete macro.
8768 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8769 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8770 FRAME_FIND_SAVED_REGS in comment.
8772 2003-04-05 Andrew Cagney <cagney@redhat.com>
8774 * frame.c (frame_func_unwind, get_frame_func): New functions.
8775 * frame.h (get_frame_func, frame_func_unwind): Declare.
8776 (struct frame_info): Add field "prev_func" for caching the
8777 previous frame's function address.
8778 * arm-tdep.c (arm_frameless_function_invocation): Combine
8779 get_pc_function_start and get_frame_pc into get_frame_func.
8780 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8781 (sh64_nofp_frame_init_saved_regs): Ditto.
8782 * s390-tdep.c (s390_function_start): Ditto.
8783 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8784 (rs6000_frameless_function_invocation): Ditto.
8785 (rs6000_frame_saved_pc): Ditto.
8786 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8787 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8788 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8789 (i386_frame_init_saved_regs): Ditto.
8790 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8791 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8792 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8793 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8794 * blockframe.c (frameless_look_for_prologue): Ditto.
8796 2003-04-05 Andrew Cagney <cagney@redhat.com>
8798 * frame.c (legacy_get_prev_frame): Link prev to next at the
8799 function start. Update comments.
8801 2003-04-05 Andrew Cagney <cagney@redhat.com>
8803 * frame.c (get_frame_id): Update comment.
8804 (legacy_get_prev_frame): Update comment.
8805 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8806 * gdbarch.h: Regenerate.
8807 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8808 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8810 2003-04-05 Andrew Cagney <cagney@redhat.com>
8812 * stack.c (print_frame_info): Use get_frame_pc.
8814 2003-04-04 Andrew Cagney <cagney@redhat.com>
8816 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8817 the frame's type from the unwinder.
8818 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8819 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8820 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8821 (get_frame_base_address): Use get_frame_type.
8822 (get_frame_locals_address, get_frame_args_address): Ditto.
8823 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8824 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8825 (struct frame_info): Add comment explaining why the frame contains
8827 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8828 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8829 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8831 * frame-unwind.h: Include "frame.h".
8832 (struct frame_unwind): Add "type" field.
8833 * Makefile.in (frame_unwind_h): Add $(frame_h).
8835 2003-04-04 Andrew Cagney <cagney@redhat.com>
8837 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8838 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8839 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8841 (d10v_unwind_dummy_id): Use frame_id_build.
8842 * frame.c (find_frame_sal): Use get_frame_pc.
8843 (create_new_frame): Use deprecated_update_frame_pc_hack and
8844 deprecated_update_frame_base_hack.
8845 (create_sentinel_frame): Add comment about ->pc going away.
8846 (get_prev_frame): Add comment about ->pc going away.
8847 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8848 frame_id_build, deprecated_update_frame_pc_hack and
8849 deprecated_update_frame_base_hack.
8850 (select_frame): Use get_frame_pc.
8851 (legacy_saved_regs_this_id): Use frame_id_build.
8853 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8855 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8856 signed integer case.
8857 (classify_argument): Handle enumerations and references.
8859 2003-04-04 Andrew Cagney <cagney@redhat.com>
8861 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8864 2003-04-01 Adam Fedor <fedor@gnu.org>
8866 * gdb/objc-lang.c (selectors_info): Replace calls to
8867 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8868 SYMBOL_NATURAL_NAME.
8869 (classes_info, find_methods): Likewise.
8871 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8873 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8874 ``mach'' to the value determined by bfd_default_set_arch_mach().
8876 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8878 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8879 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8880 (mi-cmd-file.o): Update dependencies.
8882 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8884 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8885 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8887 2003-04-01 Adam Fedor <fedor@gnu.org>
8889 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8890 * language.h (struct language_defn): Add la_demangle.
8891 (language_demangle): Declare.
8892 * language.c (language_demangle): New function.
8893 (unk_lang_demangle): Likewise.
8894 (unknown_language_defn, auto_language_defn, local_language_defn):
8895 Add ukn_lang_demangle.
8896 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8897 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8898 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8899 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8900 * jv-lang.c (java_demangle): New function
8901 (java_language_defn): Use it for la_demangle element.
8902 * objc-lang.c (objc_demangle): Add options argument
8903 (objc_language_defn): Use objc_demangle for la_demangle element.
8904 * maint.c (maintenance_demangle): Replace switch with
8905 call to language_demangle.
8906 * utils.c (fprintf_symbol_filtered): Likewise.
8908 2003-04-01 Andrew Cagney <cagney@redhat.com>
8910 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8911 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8912 PRINT_TYPELESS_INTEGER.
8913 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8914 PUSH_RETURN_ADDRESS.
8916 2003-04-01 Andrew Cagney <cagney@redhat.com>
8918 * Makefile.in (d10v-tdep.o): Update dependencies.
8919 * d10v-tdep.c: Include "frame-base.h".
8920 (d10v_frame_unwind): Make constant.
8921 (d10v_frame_base_address): New function.
8922 (d10v_frame_base): New variable.
8923 (d10v_gdbarch_init): Set frame_base default.
8924 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8926 (d10v_frame_unwind_cache): Set and use "prev_sp".
8927 (d10v_frame_this_id): Use the previous frame's inner most stack
8928 address and this frame's func address for the frame ID. Use
8929 frame_id_build. Don't analyze beyond the current instruction.
8931 2003-04-01 Andrew Cagney <cagney@redhat.com>
8933 * frame.h (get_frame_locals_address, get_frame_args_address):
8934 Refer to the base address, instead of the address of the first
8937 2003-04-01 Andrew Cagney <cagney@redhat.com>
8939 Add frame debug info addresses:
8940 * frame-base.c: New file.
8941 * frame-base.h: New file.
8942 * frame.h (struct frame_base): Add opaque declaration.
8943 (get_frame_base): Update comment.
8944 (get_frame_base_address): Declare.
8945 (get_frame_locals_address): Declare.
8946 (get_frame_args_address): Declare.
8947 (struct frame_info): Add "base" and "base_cache". Update
8948 comments on the unwinder.
8949 * frame.c: Include "frame-base.h".
8950 (get_frame_locals_address): New function.
8951 (get_frame_base_address): New function.
8952 (get_frame_args_address): New function.
8953 * findvar.c (read_var_value): Use get_frame_locals_address and
8954 get_frame_args_address.
8955 * stack.c (frame_info): Use get_frame_locals_address and
8956 get_frame_args_address.
8957 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
8958 moved to "frame-base.c".
8959 * printcmd.c (print_frame_nameless_args): Ditto.
8960 * symtab.h (address_class): Update comments.
8961 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
8962 get_frame_base_address.
8963 * dwarf2expr.c (execute_stack_op): Ditto.
8964 * Makefile.in (frame_base_h): Define.
8965 (frame.o): Update dependencies.
8966 (frame-base.o): Add dependencies.
8967 (SFILES): Add frame-base.c.
8968 (COMMON_OBS): Add frame-base.o.
8970 2003-04-01 Andrew Cagney <cagney@redhat.com>
8972 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
8973 CALL_DUMMY_LENGTH): Ditto.
8974 * gdbarch.c: Re-generate.
8975 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
8976 (CALL_DUMMY_LENGTH): Delete macro.
8977 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
8978 * arm-tdep.c (arm_gdbarch_init): Ditto.
8979 * avr-tdep.c (avr_gdbarch_init): Ditto.
8980 * cris-tdep.c (cris_gdbarch_init): Ditto.
8981 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8982 * frv-tdep.c (frv_gdbarch_init): Ditto.
8983 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8984 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8985 * i386-tdep.c (i386_gdbarch_init): Ditto.
8986 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8987 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8988 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8989 * mips-tdep.c (mips_gdbarch_init): Ditto.
8990 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8991 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8992 * s390-tdep.c (s390_gdbarch_init): Ditto.
8993 * sh-tdep.c (sh_gdbarch_init): Ditto.
8994 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8995 * v850-tdep.c (v850_gdbarch_init): Ditto.
8996 * vax-tdep.c (vax_gdbarch_init): Ditto.
8997 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8999 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9001 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9003 2003-04-01 Andrew Cagney <cagney@redhat.com>
9005 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9006 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9007 * gdbarch.h, gdbarch.c: Re-generate.
9008 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9009 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9010 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9011 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9012 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9013 * infcmd.c (run_stack_dummy): Simplify assuming
9014 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9015 * infrun.c (handle_inferior_event): Ditto.
9016 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9017 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9018 * arm-tdep.c (arm_gdbarch_init): Ditto.
9019 * avr-tdep.c (avr_gdbarch_init): Ditto.
9020 * cris-tdep.c (cris_gdbarch_init): Ditto.
9021 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9022 * frv-tdep.c (frv_gdbarch_init): Ditto.
9023 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9024 * i386-tdep.c (i386_gdbarch_init): Ditto.
9025 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9027 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9028 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9029 * mips-tdep.c (mips_gdbarch_init): Ditto.
9030 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9031 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9032 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9033 * s390-tdep.c (s390_gdbarch_init): Ditto.
9034 * sh-tdep.c (sh_gdbarch_init): Ditto.
9035 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9036 * v850-tdep.c (v850_gdbarch_init): Ditto.
9037 * vax-tdep.c (vax_gdbarch_init): Ditto.
9038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9040 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9042 * symfile.c (symfile_relocate_debug_section): Update call to
9043 bfd_simple_get_relocated_section_contents.
9045 2003-03-31 Andrew Cagney <cagney@redhat.com>
9047 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9048 * gdbarch.h, gdbarch.c: Regenerate.
9049 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9050 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9052 * frame.h (generic_fix_call_dummy): Delete declaration.
9053 * dummy-frame.h: Update comment.
9054 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9055 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9057 * sh-tdep.c (sh_gdbarch_init): Ditto.
9058 * s390-tdep.c (s390_gdbarch_init): Ditto.
9059 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9060 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9061 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9062 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9063 * i386-tdep.c (i386_gdbarch_init): Ditto.
9064 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9065 * frv-tdep.c (frv_gdbarch_init): Ditto.
9066 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9067 * cris-tdep.c (cris_gdbarch_init): Ditto.
9068 * avr-tdep.c (avr_gdbarch_init): Ditto.
9069 * arm-tdep.c (arm_gdbarch_init): Ditto.
9071 2003-03-31 J. Brobecker <brobecker@gnat.com>
9073 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9074 (INIT_FRAME_AP): Likewise.
9075 (EXTRA_FRAME_INFO): Likewise.
9077 2003-03-31 Andrew Cagney <cagney@redhat.com>
9079 * gdbarch.sh: Include "symfile.h".
9080 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9081 * gdbarch.h, gdbarch.c: Re-generate.
9082 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9084 call_dummy_address, the default is at entry_point_address.
9085 * v850-tdep.c (v850_gdbarch_init): Ditto.
9086 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9087 * sh-tdep.c (sh_gdbarch_init): Ditto.
9088 * s390-tdep.c (s390_gdbarch_init): Ditto.
9089 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9090 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9091 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9092 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9093 * i386-tdep.c (i386_gdbarch_init): Ditto.
9094 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9095 * frv-tdep.c (frv_gdbarch_init): Ditto.
9096 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9097 * cris-tdep.c (cris_gdbarch_init): Ditto.
9098 * arm-tdep.c (arm_gdbarch_init): Ditto.
9100 2003-03-31 Andrew Cagney <cagney@redhat.com>
9102 * gdbarch.sh (CALL_DUMMY_P): Delete.
9103 * gdbarch.h, gdbarch.c: Re-generate.
9104 * inferior.h (CALL_DUMMY_P): Delete macro.
9105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9106 * vax-tdep.c (vax_gdbarch_init): Update.
9107 * v850-tdep.c (v850_gdbarch_init): Update.
9108 * sparc-tdep.c (sparc_gdbarch_init): Update.
9109 * sh-tdep.c (sh_gdbarch_init): Update.
9110 * s390-tdep.c (s390_gdbarch_init): Update.
9111 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9112 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9113 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9114 * mips-tdep.c (mips_gdbarch_init): Update.
9115 * mcore-tdep.c (mcore_gdbarch_init): Update.
9116 * m68k-tdep.c (m68k_gdbarch_init): Update.
9117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9118 * ia64-tdep.c (ia64_gdbarch_init): Update.
9119 * i386-tdep.c (i386_gdbarch_init): Update.
9120 * h8300-tdep.c (h8300_gdbarch_init): Update.
9121 * frv-tdep.c (frv_gdbarch_init): Update.
9122 * d10v-tdep.c (d10v_gdbarch_init): Update.
9123 * cris-tdep.c (cris_gdbarch_init): Update.
9124 * breakpoint.c (deprecated_frame_in_dummy): Update.
9125 * avr-tdep.c (avr_gdbarch_init): Update.
9126 * alpha-tdep.c (alpha_gdbarch_init): Update.
9127 * arm-tdep.c (arm_gdbarch_init): Update.
9128 * dummy-frame.c (dummy_frame_this_id): Update comments.
9129 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9130 * frame.c (legacy_get_prev_frame): Ditto.
9131 * valops.c (call_function_by_hand): Delete function.
9132 (hand_function_call): Rename to call_function_by_hand
9134 2003-03-30 Andrew Cagney <cagney@redhat.com>
9136 2002-11-10 Klee Dienes <kdienes@apple.com>
9137 * value.h (struct value): Update comment.
9139 2003-03-30 Andrew Cagney <cagney@redhat.com>
9141 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9143 (d10v_gdbarch_init): Do not set fp_regnum.
9145 * frame.c (get_frame_base): Force ID initialization.
9146 (get_prev_frame): Move computation of the frame ID from here ...
9147 (get_frame_id): ... to here.
9148 (legacy_get_prev_frame): Mark the frame ID as valid.
9149 * frame.h (struct frame_info): Add field "id_p".
9151 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9153 * i386-tdep.c (i386_store_struct_return): Removed.
9154 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9156 2003-03-30 Andrew Cagney <cagney@redhat.com>
9158 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9159 * gdbarch.h, gdbarch.c: Regenerate.
9160 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9161 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9162 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9163 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9164 * i386-tdep.c (i386_gdbarch_init): Ditto.
9165 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9166 * cris-tdep.c (cris_gdbarch_init): Ditto.
9167 * vax-tdep.c (vax_gdbarch_init): Ditto.
9168 * s390-tdep.c (s390_gdbarch_init): Ditto.
9169 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9170 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9171 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9172 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9173 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9174 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9175 * sparc-tdep.c (sparc_gdbarch_init): Update.
9176 * sh-tdep.c (sh_gdbarch_init): Update.
9177 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9178 * mips-tdep.c (mips_gdbarch_init): Update.
9179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9180 * ia64-tdep.c (ia64_gdbarch_init): Update.
9181 * frv-tdep.c (frv_gdbarch_init): Update.
9182 * avr-tdep.c (avr_gdbarch_init): Update.
9183 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9184 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9185 instead of when push_dummy_call is not available.
9187 2003-03-30 Andrew Cagney <cagney@redhat.com>
9189 * infttrace.c: Include "gdbthread.h".
9190 (parent_attach_all): Fix function signature.
9191 (call_ptrace): Update call.
9192 * Makefile.in (infttrace.o): Update dependencies.
9194 2003-03-30 Andrew Cagney <cagney@redhat.com>
9196 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9197 PUSH_RETURN_ADDRESS.
9198 * gdbarch.h, gdbarch.c: Regenerate.
9199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9200 * x86-64-tdep.c (x86_64_init_abi): Update.
9201 * v850-tdep.c (v850_gdbarch_init): Update.
9202 * sparc-tdep.c (sparc_gdbarch_init): Update.
9203 * sh-tdep.c (sh_gdbarch_init): Update.
9204 * s390-tdep.c (s390_gdbarch_init): Update.
9205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9206 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9207 * mips-tdep.c (mips_gdbarch_init): Update.
9208 * mcore-tdep.c (mcore_gdbarch_init): Update.
9209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9210 * ia64-tdep.c (ia64_gdbarch_init): Update.
9211 * i386-tdep.c (i386_gdbarch_init): Update.
9212 * h8300-tdep.c (h8300_gdbarch_init): Update.
9213 * frv-tdep.c (frv_gdbarch_init): Update.
9214 * cris-tdep.c (cris_gdbarch_init): Update.
9215 * avr-tdep.c (avr_gdbarch_init): Update.
9216 * arm-tdep.c (arm_gdbarch_init): Update.
9217 * valops.c (hand_function_call): Update.
9219 2003-03-29 Andrew Cagney <cagney@redhat.com>
9221 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9222 sizeof_call_dummy_words.
9223 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9225 * gdbarch.h: Regenerate.
9227 2003-03-29 Andrew Cagney <cagney@redhat.com>
9229 * infttrace.h: New file.
9230 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9231 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9232 (hpread_read_doc_function_type): Detect an initialized type1.
9233 (hpread_quick_traverse): Initialize mod_name_string.
9234 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9235 (som_solib_get_solib_by_pc): Declare.
9236 (so_lib_thread_start_addr): Declare.
9237 (no_shared_libraries): Declare.
9238 * somread.c (init_import_symbols): Make static. Add forward
9240 * config/pa/nm-hppah.h: Include "infttrace.h" for
9242 (hppa_insert_hw_watchpoint): Declare.
9243 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9244 * hppah-nat.c: Include "gdb_string.h".
9245 (parent_attach_all): Delete extern declaration, moved to
9247 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9249 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9250 * Makefile.in (infttrace_h): Define.
9251 (hpread.o): Update dependencies.
9252 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9253 * hppa-hpux-tdep.c: Include "gdb_string.h".
9254 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9255 * infrun.c (handle_inferior_event): Always initialize
9256 stepped_after_stopped_by_watchpoint. Add default and remove
9257 fallthrough in switch statement.
9258 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9260 (hppa_remove_hw_watchpoint): Ditto.
9262 2003-03-29 Andrew Cagney <cagney@redhat.com>
9264 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9267 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9269 * arm-tdep.c (arm_push_arguments): Delete.
9270 (struct stack_item): New type.
9271 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9272 (arm_store_struct_return): Delte.
9273 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9274 arm_push_arguments or arm_store_struct_return.
9276 2003-03-28 Andrew Cagney <cagney@redhat.com>
9278 * Makefile.in (d10v-tdep.o): Update dependencies.
9279 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9280 * d10v-tdep.c: Include "remote.h".
9281 (target_resume_hook): Delete extern declaration.
9282 (target_wait_loop_hook): Ditto.
9283 (tdisassemble_command): Eliminate assignment in "if" conditional.
9284 (d10v_ts2_register_sim_regno): Eliminate call to
9285 legacy_register_sim_regno.
9286 (d10v_ts3_register_sim_regno): Ditto.
9288 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9290 * thread.c: Reindented.
9292 * linux-proc.c: Ditto.
9294 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9296 * MAINTAINERS (write after approval): Add myself.
9298 2003-03-27 Theodore A. Roth <troth@openavr.org>
9300 * objc-exp.y: Add missing semi-colons.
9302 2003-03-27 Andrew Cagney <cagney@redhat.com>
9304 * regcache.c (write_sp): Delete function and references.
9305 * inferior.h (write_sp): Delete declaration.
9306 * valops.c (hand_function_call): Replace write_sp with
9308 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9309 (sparc_pop_frame): Ditto.
9311 2003-03-27 Andrew Cagney <cagney@redhat.com>
9313 * NEWS: Mention removal of support for hppa*-*-bsd* and
9314 hppa*-*-osf* natives, and hppa*-*-pro* target.
9315 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9316 * config/pa/xm-pa.h: Obsolete file.
9317 * config/pa/xm-hppab.h: Obsolete file.
9318 * config/pa/nm-hppab.h: Obsolete file.
9319 * config/pa/tm-hppab.h: Obsolete file.
9320 * config/pa/tm-hppao.h: Obsolete file.
9321 * config/pa/nm-hppao.h: Obsolete file.
9322 * config/pa/tm-pro.h: Obsolete file.
9323 * config/pa/hppaosf.mt: Obsolete file.
9324 * config/pa/hppaosf.mh: Obsolete file.
9325 * config/pa/hppapro.mt: Obsolete file.
9326 * config/pa/hppabsd.mt: Obsolete file.
9327 * config/pa/hppabsd.mh: Obsolete file.
9328 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9329 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9332 2003-03-27 Andrew Cagney <cagney@redhat.com>
9334 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9335 push_arguments. Don't set push_return_address or write_sp.
9336 (d10v_push_dummy_call): Replace d10v_push_arguments.
9337 (d10v_push_return_address, d10v_write_sp): Delete function,
9338 handled by push_dummy_call.
9340 2003-03-26 Andrew Cagney <cagney@redhat.com>
9342 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9343 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9344 regcache and dummy_addr parameters.
9345 * gdbarch.h, gdbarch.c: Re-generate.
9346 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9347 available; assume it will handle stack alignment and return
9348 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9349 legacy_push_arguments.
9350 (legacy_push_arguments): Rename default_push_arguments.
9351 * value.h (legacy_push_arguments): Rename default_push_arguments.
9352 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9353 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9354 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9355 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9356 * config/i386/tm-symmetry.h: Update.
9357 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9358 * x86-64-tdep.c (x86_64_init_abi): Update.
9359 * v850-tdep.c (v850_gdbarch_init): Update.
9360 * sparc-tdep.c (sparc_gdbarch_init): Update.
9361 * sh-tdep.c (sh_gdbarch_init): Update.
9362 * s390-tdep.c (s390_gdbarch_init): Update.
9363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9364 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9365 * mips-tdep.c (mips_gdbarch_init): Update.
9366 * mcore-tdep.c (mcore_gdbarch_init): Update.
9367 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9368 * ia64-tdep.c (ia64_gdbarch_init): Update.
9369 * i386-tdep.c (i386_gdbarch_init): Update.
9370 * hppa-tdep.c (hppa_gdbarch_init): Update.
9371 * h8300-tdep.c (h8300_gdbarch_init): Update.
9372 * frv-tdep.c (frv_gdbarch_init): Update.
9373 * d10v-tdep.c (d10v_gdbarch_init): Update.
9374 * cris-tdep.c (cris_gdbarch_init): Update.
9375 * avr-tdep.c (avr_gdbarch_init): Update.
9376 * arm-tdep.c (arm_gdbarch_init): Update.
9377 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9378 * alpha-tdep.c (alpha_gdbarch_init): Update.
9380 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9382 * signals/signals.c (do_target_signal_to_host): Correct realtime
9385 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9387 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9388 (struct sal_chain, map_catch_names): Remove.
9389 (catch_exception_command_1): Don't call
9390 handle_gnu_4_16_catch_command.
9392 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9394 From Mark Dettinger <dettinge@de.ibm.com>:
9395 * dwarf2cfi.c (read_2u): Increment pointer by two.
9397 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9399 * signals/signals.c: Fix typos in last change.
9401 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9403 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9404 not already defined. Use __SIGRTMIN if available.
9405 (target_signal_from_host): Remove SIGRTMIN block.
9406 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9407 the signal is within the realtime range.
9409 2003-03-25 Adam Fedor <fedor@gnu.org>
9411 * Makefile.in (infrun.o): Add $(language_h)
9412 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9413 for language specific trampolines.
9414 * language.h (struct language_defn): Add skip_trampoline.
9415 (skip_language_trampoline): Declare.
9416 * language.c (unk_lang_trampoline, skip_language_trampoline):
9418 (unknown_language_defn, auto_language_defn, local_language_defn):
9419 Add ukn_lang_trampoline.
9420 * ada-lang.c (ada_language_defn): Add NULL for language
9421 specific skip_trampoline.
9422 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9423 scm-lang.c: Likewise.
9424 * objc-lang.c (objc_skip_trampoline): New function.
9425 (objc_language_defn): Add objc_skip_trampoline.
9427 2003-03-25 Andrew Cagney <cagney@redhat.com>
9429 * frame.c (get_prev_frame): Delay validating a frame's ID -
9430 non-NULL, didn't go backwards - until an attempt to unwind it to
9433 2003-03-25 Andrew Cagney <cagney@redhat.com>
9435 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9436 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9437 * gdbarch.h, gdbarch.c: Re-generate.
9438 * config/sparc/tm-sparc.h
9439 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9440 * sparc-tdep.c (sparc_gdbarch_init): Set
9441 deprecated_extra_stack_alignment_needed.
9442 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9443 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9444 extra_stack_alignment_needed.
9445 * v850-tdep.c (v850_gdbarch_init): Ditto.
9446 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9447 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9448 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9449 * cris-tdep.c (cris_gdbarch_init): Ditto.
9450 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9453 2003-03-25 Andrew Cagney <cagney@redhat.com>
9455 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9456 STORE_STRUCT_RETURN.
9457 * gdbarch.h, gdbarch.c: Regenerate.
9458 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9459 (d10v_push_arguments): Set the struct return register.
9460 (d10v_gdbarch_init): Update.
9461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9462 * x86-64-tdep.c (x86_64_init_abi): Update.
9463 * vax-tdep.c (vax_gdbarch_init): Update.
9464 * v850-tdep.c (v850_gdbarch_init): Update.
9465 * sparc-tdep.c (sparc_gdbarch_init): Update.
9466 * sh-tdep.c (sh_gdbarch_init): Update.
9467 * s390-tdep.c (s390_gdbarch_init): Update.
9468 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9469 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9470 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9471 * mips-tdep.c (mips_gdbarch_init): Update.
9472 * mcore-tdep.c (mcore_gdbarch_init): Update.
9473 * m68k-tdep.c (m68k_gdbarch_init): Update.
9474 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9475 * ia64-tdep.c (ia64_gdbarch_init): Update.
9476 * i386-tdep.c (i386_gdbarch_init): Update.
9477 * hppa-tdep.c (hppa_gdbarch_init): Update.
9478 * h8300-tdep.c (h8300_gdbarch_init): Update.
9479 * frv-tdep.c (frv_gdbarch_init): Update.
9480 * cris-tdep.c (cris_gdbarch_init): Update.
9481 * avr-tdep.c (avr_gdbarch_init): Update.
9482 * arm-tdep.c (arm_gdbarch_init): Update.
9483 * alpha-tdep.c (alpha_gdbarch_init): Update.
9485 2003-03-25 Andrew Cagney <cagney@redhat.com>
9487 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9488 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9489 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9490 * gdbarch.h, gdbarch.c: Regenerate.
9491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9492 call_dummy_stack_adjust_p.
9493 * vax-tdep.c (vax_gdbarch_init): Ditto.
9494 * v850-tdep.c (v850_gdbarch_init): Ditto.
9495 * sh-tdep.c (sh_gdbarch_init): Ditto.
9496 * s390-tdep.c (s390_gdbarch_init): Ditto.
9497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9498 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9499 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9500 * mips-tdep.c (mips_gdbarch_init): Ditto.
9501 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9502 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9504 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9505 * i386-tdep.c (i386_gdbarch_init): Ditto.
9506 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9507 * frv-tdep.c (frv_gdbarch_init): Ditto.
9508 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9509 * cris-tdep.c (cris_gdbarch_init): Ditto.
9510 * avr-tdep.c (avr_gdbarch_init): Ditto.
9511 * arm-tdep.c (arm_gdbarch_init): Ditto.
9512 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9513 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9514 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9515 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9516 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9517 call_dummy_stack_adjust_p.
9518 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9519 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9520 * sparc-tdep.c (sparc32_push_arguments): Update.
9521 * valops.c (hand_function_call): Update.
9523 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9525 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9526 set_gdbarch_char_signed.
9528 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9531 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9533 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9535 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9536 (_initialize_arm_tdep): Don't set tm_print_insn.
9538 2003-03-24 Adam Fedor <fedor@gnu.org>
9540 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9541 * objc-lang.h: Add multiple inclusion protection.
9542 (start_msglist, add_msglist, end_msglist): Additional declarations.
9544 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9546 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9547 value was renamed to ARM_FLOAT_SOFT_FPA.
9549 2003-03-23 Andrew Cagney <cagney@redhat.com>
9551 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9552 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9553 * gdbarch.h, gdbarch.c: Regenerate.
9554 * valops.c (hand_function_call): Update.
9555 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9556 * frame.c (legacy_saved_regs_this_id): Update.
9557 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9558 * dummy-frame.h: Update.
9559 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9560 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9561 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9562 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9563 * config/m68k/tm-sun3.h: Update.
9564 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9565 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9566 * x86-64-tdep.c (x86_64_init_abi): Update.
9567 * vax-tdep.c (vax_gdbarch_init): Update.
9568 * v850-tdep.c (v850_gdbarch_init): Update.
9569 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9570 * sh-tdep.c (sh_gdbarch_init): Update.
9571 * s390-tdep.c (s390_gdbarch_init): Update.
9572 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9573 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9574 (frame_get_saved_regs): Update.
9575 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9576 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9577 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9578 * mips-tdep.c (mips_gdbarch_init): Update.
9579 * mcore-tdep.c (mcore_gdbarch_init): Update.
9580 * m68k-tdep.c (m68k_gdbarch_init): Update.
9581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9582 * ia64-tdep.c (ia64_gdbarch_init): Update.
9583 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9584 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9585 (i386_interix_back_one_frame): Update.
9586 * hppa-tdep.c (hppa_gdbarch_init): Update.
9587 (hppa_init_extra_frame_info): Update.
9588 * h8300-tdep.c (h8300_gdbarch_init): Update.
9589 * frv-tdep.c (frv_gdbarch_init): Update.
9590 * cris-tdep.c (cris_gdbarch_init): Update.
9591 * avr-tdep.c (avr_gdbarch_init): Update.
9592 * arm-tdep.c (arm_gdbarch_init): Update.
9593 * alpha-tdep.c (alpha_gdbarch_init): Update.
9595 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9597 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9598 (arm_get_fp_model): Declare.
9599 * arm-tdep.c (fp_model_strings): New string array.
9600 (arm_fp_model, current_fp_model): New variables.
9601 (arm_get_fp_model): New function.
9602 (arm_set_fp): New function.
9603 (set_fp_model_sfunc): New function.
9604 (show_fp_model): New function.
9605 (_initialize_arm_tdep): Add new command to set/show the FPU.
9606 (arm_extract_return_value): Use arm_get_fp_model.
9607 (arm_store_return_value): Likewise.
9608 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9609 to initialize the floating-point data types.
9610 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9613 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9615 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9616 the current setting of each value.
9617 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9618 new_set and new_show. Use add_setshow_cmd_full and
9619 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9620 commands and add new version as subcommands of "set/show arm".
9622 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9624 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9625 (set_arm_command, show_arm_command): New functions.
9626 (_initialize_arm_tdep): Add them.
9627 (num_disassembly_options): Renamed from num_flavor_options.
9628 (valid_disassembly_styles): Renamed from valid_flavors.
9629 (disassembly_style): Renamed from disassembly_flavor.
9630 (set_disassembly_style_sfunc): Renamed from
9631 set_disassembly_flavor_sfunc.
9632 (set_disassembly_style): Renamed from set_disassembly_flavor.
9633 (arm_othernames): Updated.
9634 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9635 command. Add "set/show arm disassembly" commands. Deprecate
9636 "othernames" command.
9638 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9640 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9641 (arm-tdep.o): Depend on elf_arm_h.
9643 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9645 * Makefile.in (coff_internal_h): Define.
9646 (arm-tdep.o): Update dependencies.
9648 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9650 * arm-tdep.c (prologue_cache): Delete.
9651 (check_prologue_cache, save_prologue_cache): Delete.
9652 (arm_scan_prologue): Don't check or update the prologue_cache.
9653 (arm_gdb_arch_init): Don't initialize it.
9654 (_initialize_arm_tdep): Likewise.
9656 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9658 * MAINTAINERS (tui): Maintainer of tui code.
9660 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9662 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9663 (i386-cygwin-tdep.o): Add dependencies.
9664 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9665 * i386-cygwin-tdep.c: New file.
9666 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9667 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9669 2003-03-20 Andrew Cagney <cagney@redhat.com>
9671 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9672 (handle_inferior_event): Remove code calling
9673 DYNAMIC_TRAMPOLINE_NEXTPC.
9675 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9676 already has a full path.
9678 * main.c (gdb_main): Return 1.
9679 (captured_main): Call error to report an invalid interpreter.
9681 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9682 * alpha-osf1-tdep.c: Include "gdb_string.h".
9684 2003-03-19 J. Brobecker <brobecker@gnat.com>
9686 Continuing work to convert the hppa targets to multiarch partial.
9688 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9689 method, now that hppa_push_dummy_frame has a conformant prototype.
9690 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9691 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9692 for the switch to multiarch partial.
9694 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9696 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9697 when iss is issNull.
9699 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9701 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9702 NUM_REGS bounds check.
9704 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9706 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9707 * mips-tdep.c (gdb_assert.h): Include.
9708 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9709 (mips_register_name): Handle integer registers explicitly. Add
9711 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9712 (mips_lsi33k_reg_names): Don't list integer registers; they're
9713 handled by mips_register_name() now.
9714 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9715 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9716 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9717 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9718 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9720 2003-03-18 Andrew Cagney <cagney@redhat.com>
9722 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9724 * gdbtypes.h (print_scalar_formatted): Update declaration.
9725 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9727 2003-03-18 J. Brobecker <brobecker@gnat.com>
9729 * infrun.c (observer.h): Add #include.
9730 (normal_stop): Add call to observer_notify_normal_stop.
9731 * Makefile.in (infrun.o): Add dependency on observer.h.
9733 2003-03-18 J. Brobecker <brobecker@gnat.com>
9735 Continuing work to convert the hppa targets to multiarch partial.
9736 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9737 parameter. Reformat comment.
9738 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9739 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9740 to match new profile.
9742 2003-03-18 J. Brobecker <brobecker@gnat.com>
9744 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9745 appear to be working in any case.
9747 2003-03-18 J. Brobecker <brobecker@gnat.com>
9749 * observer.c (observer_test_first_observer): New static variable.
9750 (observer_test_second_observer): Likewise.
9751 (observer_test_third_observer): Likewise.
9752 (observer_test_first_notification_function): New static function.
9753 (observer_test_second_notification_function): Likewise.
9754 (observer_test_third_notification_function): Likewise.
9756 2003-03-17 J. Brobecker <brobecker@gnat.com>
9758 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9759 * somsolib.c (gdb_assert.h): Likewise.
9760 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9761 (somsolib.o): Likewise.
9763 2003-03-17 Andrew Cagney <cagney@redhat.com>
9765 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9766 BFD. Simplify setting of di.endian.
9768 2003-03-17 Andrew Cagney <cagney@redhat.com>
9770 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9771 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9773 From Elena Zannoni <ezannoni@redhat.com>
9774 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9775 vector and floating-point parameters.
9776 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9778 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9780 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9782 * MAINTAINERS: Remove my name from several maintainership roles.
9784 2003-03-17 Andrew Cagney <cagney@redhat.com>
9786 Fix frame off-by-one bug.
9787 * frame-unwind.h (frame_this_id_ftype): Replace
9788 frame_unwind_id_ftype.
9789 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9790 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9791 with "prev_register".
9792 * frame-unwind.c (frame_unwind_find_by_pc): Return
9793 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9795 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9796 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9797 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9798 (dummy_frame_unwind): Update.
9799 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9800 sentinel_frame_register_unwind.
9801 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9802 (sentinel_frame_unwinder): Update.
9803 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9804 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9805 * frame.c (create_sentinel_frame): Update. Initialize
9806 "prologue_cache" instead of "unwind_cache".
9807 (frame_register_unwind): Call this frame's prev_register with the
9808 next frame and this frame's prologue cache.
9809 (get_prev_frame): Simplify. Always call prev frame's this_id with
9810 this frame and prev frame's prologue cache. Document that this
9811 call is shifted one to the left when compared to the
9812 frame_register_unwind call.
9813 (legacy_saved_regs_prev_register): Replace
9814 frame_saved_regs_register_unwind.
9815 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9816 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9817 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9818 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9819 (d10v_frame_unwind): Update.
9820 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9821 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9822 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9823 "saved_regs" with "this_saved_regs".
9825 2003-03-16 Andrew Cagney <cagney@redhat.com>
9827 * frame.c (frame_pop): Don't call target_store_registers. Fix
9828 problem reported by Mark Kettenis.
9830 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9832 * i386-tdep.c (i386_register_type): Renamed from
9833 i386_register_virtual_type. Adjust function signature.
9834 (i386_gdbarch_init): Set register_type instead of
9835 deprecated_max_register_raw_size,
9836 deprecated_max_register_virtual_size and register_virtual_type.
9838 2003-03-14 Andrew Cagney <cagney@redhat.com>
9840 * frame.c (get_prev_frame): When a legacy frame, always call
9841 legacy_get_prev_frame. Simplify unwind code using assumption that
9842 the unwinder is new.
9843 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9844 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9845 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9847 2003-03-14 Andrew Cagney <cagney@redhat.com>
9849 * frame.c (get_saved_register): Delete function.
9850 * frame.h (get_saved_register): Delete declaration.
9851 * xstormy16-tdep.c: Update comment.
9852 * regcache.h: Update comments.
9853 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9854 get_saved_register and extract_address, use
9855 frame_read_unsigned_register.
9856 (sparc_frame_saved_pc): Ditto.
9857 (sparc_get_saved_register): Instead of get_saved_register, use
9859 (sparc_pop_frame): Ditto.
9860 * findvar.c: Update comments.
9861 (value_of_register): Call frame_register instead of
9863 (value_from_register): Ditto.
9864 * config/sparc/tm-sparc.h: Update comment.
9865 * breakpoint.c: Update comment.
9867 2003-03-14 Andrew Cagney <cagney@redhat.com>
9869 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9871 * gdbarch.h, gdbarch.c: Re-generate.
9872 * frame.h: Update comments.
9873 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9874 * x86-64-tdep.c (x86_64_init_abi): Update.
9875 * sparc-tdep.c (sparc_gdbarch_init): Update.
9876 * sh-tdep.c (sh_gdbarch_init): Update.
9877 * mips-tdep.c (mips_gdbarch_init): Update.
9878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9879 * cris-tdep.c (cris_gdbarch_init): Update.
9880 * ia64-tdep.c (ia64_gdbarch_init): Update.
9881 * frame.c (frame_register): Update.
9882 (get_saved_register): Update.
9883 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9885 2003-03-13 Andrew Cagney <cagney@redhat.com>
9887 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9888 * gdbarch.h, gdbarch.c: Regenerate.
9889 * valops.c (hand_function_call): Update comment.
9890 * stack.c (return_command): Update comment.
9891 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9892 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9893 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9894 * x86-64-tdep.c (x86_64_init_abi): Update.
9895 * vax-tdep.c (vax_gdbarch_init): Update.
9896 * v850-tdep.c (v850_gdbarch_init): Update.
9897 * sparc-tdep.c (sparc_gdbarch_init): Update.
9898 * sh-tdep.c (sh_gdbarch_init): Update.
9899 * s390-tdep.c (s390_gdbarch_init): Update.
9900 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9901 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9902 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9903 * mips-tdep.c (mips_gdbarch_init): Update.
9904 * mcore-tdep.c (mcore_gdbarch_init): Update.
9905 * m68k-tdep.c (m68k_gdbarch_init): Update.
9906 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9907 * ia64-tdep.c (ia64_gdbarch_init): Update.
9908 * i386-tdep.c (i386_gdbarch_init): Update.
9909 * hppa-tdep.c (hppa_gdbarch_init): Update.
9910 * h8300-tdep.c (h8300_gdbarch_init): Update.
9911 * frv-tdep.c (frv_gdbarch_init): Update.
9912 * cris-tdep.c (cris_gdbarch_init): Update.
9913 * avr-tdep.c (avr_gdbarch_init): Update.
9914 * arm-tdep.c (arm_gdbarch_init): Update.
9915 * alpha-tdep.c (alpha_gdbarch_init): Update.
9917 2003-03-13 Andrew Cagney <cagney@redhat.com>
9919 * frame.c (legacy_frame_p): New function.
9920 (get_prev_frame): Use legacy_frame_p.
9921 * frame.h (legacy_frame_p): Declare.
9923 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9925 * MAINTAINERS (write after approval): Alphabetically
9928 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9930 * MAINTAINERS (write after approval): Add myself.
9932 2003-03-12 Andrew Cagney <cagney@redhat.com>
9934 * frame.c (get_prev_frame): Rename the frame parameter to
9936 (get_next_frame, legacy_get_prev_frame): Ditto.
9938 2003-03-12 Andrew Cagney <cagney@redhat.com>
9940 * frame.c (get_current_frame): Check target_has_registers before
9941 checking target_has_stack.
9942 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
9943 instead of deprecated_selected_frame.
9944 * findvar.c (value_of_register): Pass "frame", not
9945 deprecated_selected_frame, to value_of_builtin_reg.
9947 2003-03-12 Andrew Cagney <cagney@redhat.com>
9949 * regcache.c (regcache_cooked_write_signed): New function.
9950 (regcache_cooked_write_unsigned): New function.
9951 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
9952 (regcache_cooked_read_signed): Fix regnum in range assertion.
9953 * regcache.h (regcache_cooked_write_signed): Declare.
9954 (regcache_cooked_write_unsigned): Declare.
9956 2003-03-12 Andrew Cagney <cagney@redhat.com>
9958 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9959 * gdbarch.h, gdbarch.c: Re-generate.
9960 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9961 * x86-64-tdep.h: Update.
9962 * x86-64-tdep.c (x86_64_init_abi): Update.
9963 * v850-tdep.c (v850_gdbarch_init): Update.
9964 * sparc-tdep.c (sparc_gdbarch_init): Update.
9965 * sh-tdep.c (sh_gdbarch_init): Update.
9966 * s390-tdep.c (s390_gdbarch_init): Update.
9967 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9968 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9969 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9970 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9971 * mips-tdep.c (mips_gdbarch_init): Update.
9972 * mcore-tdep.c (mcore_gdbarch_init): Update.
9973 * m68k-tdep.c (m68k_gdbarch_init): Update.
9974 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9975 * ia64-tdep.c (ia64_gdbarch_init): Update.
9976 * i386-tdep.c (i386_gdbarch_init): Update.
9977 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9978 * hppa-tdep.c (hppa_gdbarch_init): Update.
9979 * h8300-tdep.c (h8300_gdbarch_init): Update.
9980 * frv-tdep.c (frv_gdbarch_init): Update.
9981 * cris-tdep.c (cris_gdbarch_init): Update.
9982 * avr-tdep.c (avr_gdbarch_init): Update.
9983 * arm-tdep.c (arm_gdbarch_init): Update.
9984 * alpha-tdep.c (alpha_gdbarch_init): Update.
9985 * sh-tdep.c (sh_init_extra_frame_info): Update.
9986 (sh64_init_extra_frame_info): Update.
9987 * ns32knbsd-nat.c (frame_num_args): Update.
9988 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9989 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9990 (xstormy16_frame_chain_valid): Update.
9991 * vax-tdep.c (vax_saved_pc_after_call): Update.
9992 * v850-tdep.c (v850_frame_chain): Update.
9993 (v850_pop_frame): Update.
9994 (v850_init_extra_frame_info): Update.
9995 * sparc-tdep.c (setup_arbitrary_frame): Update.
9996 * ns32k-tdep.c (umax_frame_num_args): Update.
9997 * s390-tdep.c (s390_pop_frame_regular): Update.
9998 * mn10300-tdep.c (mn10300_frame_chain): Update.
9999 (mn10300_pop_frame_regular): Update.
10000 (mn10300_init_extra_frame_info): Update.
10001 * mips-tdep.c (mips_init_frame_pc_first): Update.
10002 (mips_frame_chain): Update.
10003 (mips_pop_frame): Update.
10004 * mcore-tdep.c (mcore_frame_chain): Update.
10005 (mcore_pop_frame): Update.
10006 (mcore_init_extra_frame_info): Update.
10007 * arch-utils.c (init_frame_pc_default): Update.
10008 * m68k-tdep.c (isi_frame_num_args): Update.
10009 (delta68_frame_num_args): Update.
10010 (news_frame_num_args): Update.
10011 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10012 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10013 (alpha_frame_chain): Update.
10014 (alpha_pop_frame): Update.
10015 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10016 (hppa_init_extra_frame_info): Update.
10017 (hppa_frame_chain): Update.
10018 (hppa_frame_chain_valid): Update.
10019 * cris-tdep.c (cris_init_extra_frame_info): Update.
10020 * avr-tdep.c (avr_init_extra_frame_info): Update.
10021 * arm-tdep.c (arm_frame_chain_valid): Update.
10022 (arm_init_extra_frame_info): Update.
10023 (arm_pop_frame): Update.
10024 * frame.c (frame_pc_unwind): Update.
10025 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10026 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10027 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10028 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10029 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10030 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10032 2003-03-12 Andrew Cagney <cagney@redhat.com>
10034 Eliminate the need for POP_FRAME.
10035 * frame.c (do_frame_unwind_register): New function.
10036 (frame_pop): When no POP_FRAME, pop the frame using register
10037 unwind and a scratch regcache.
10038 (frame_saved_regs_pop): Delete function.
10039 (trad_frame_unwinder): Update.
10040 * d10v-tdep.c (d10v_frame_pop): Delete function.
10041 (d10v_frame_unwind): Update.
10042 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10043 (sentinel_frame_unwinder): Update.
10044 * dummy-frame.c (dummy_frame_pop): Delete function.
10045 (dummy_frame_unwind): Update.
10046 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10047 (struct frame_unwind): Update.
10049 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10051 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10052 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10053 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10054 Do range checks on register number obtained from debugging info.
10055 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10056 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10057 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10059 (do_fp_register_row): Fix typo which caused double type to be
10060 used when attempting to unpack a float.
10062 2003-03-11 J. Brobecker <brobecker@gnat.com>
10064 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10066 2003-03-11 Andrew Cagney <cagney@redhat.com>
10068 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10069 frame. Problem found by Corinna Vinschen.
10071 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10073 * doublest.c (floatformat_from_length): Accept also
10074 the real size of 'long double' type.
10076 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10078 From Klee Dienes <kdienes@apple.com>:
10079 * breakpoint.c (bpstat_copy): Copy the command lines as well
10080 as the old value, to match what is freed in bpstat_clear.
10082 2003-03-10 David Carlton <carlton@math.stanford.edu>
10084 * minsyms.c (add_minsym_to_hash_table): Replace
10085 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10086 (compare_minimal_symbols, compact_minimal_symbols)
10087 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10088 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10089 of DEPRECATED_SYMBOL_MATCHES_NAME.
10090 (lookup_minimal_symbol_solib_trampoline): Ditto.
10092 2003-03-10 Andrew Cagney <cagney@redhat.com>
10094 * regcache.h (regcache_cooked_read_ftype): Define.
10095 (regcache_save, regcache_restore): Add a cooked_read parameter.
10096 * regcache.c (regcache_save, regcache_restore): Update.
10097 (do_cooked_read): New function.
10098 (regcache_cpy): Pass do_cooked_read to regcache_save and
10101 2003-03-10 Andrew Cagney <cagney@redhat.com>
10103 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10104 * gdbarch.h, gdbarch.c: Re-generate.
10105 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10106 * x86-64-tdep.h: Update.
10107 * x86-64-tdep.c (x86_64_init_abi): Update.
10108 * v850-tdep.c (v850_gdbarch_init): Update.
10109 * sparc-tdep.c (sparc_gdbarch_init): Update.
10110 * sh-tdep.c (sh_gdbarch_init): Update.
10111 * s390-tdep.c (s390_gdbarch_init): Update.
10112 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10113 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10114 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10115 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10116 * mips-tdep.c (mips_gdbarch_init): Update.
10117 * mcore-tdep.c (mcore_gdbarch_init): Update.
10118 * m68k-tdep.c (m68k_gdbarch_init): Update.
10119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10120 * ia64-tdep.c (ia64_gdbarch_init): Update.
10121 * i386-tdep.c (i386_gdbarch_init): Update.
10122 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10123 * hppa-tdep.c (hppa_gdbarch_init): Update.
10124 * h8300-tdep.c (h8300_gdbarch_init): Update.
10125 * frv-tdep.c (frv_gdbarch_init): Update.
10126 * cris-tdep.c (cris_gdbarch_init): Update.
10127 * avr-tdep.c (avr_gdbarch_init): Update.
10128 * arm-tdep.c (arm_gdbarch_init): Update.
10129 * alpha-tdep.c (alpha_gdbarch_init): Update.
10130 * sh-tdep.c (sh_init_extra_frame_info): Update.
10131 (sh64_init_extra_frame_info): Update.
10132 * ns32knbsd-nat.c (frame_num_args): Update.
10133 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10134 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10135 (xstormy16_frame_chain_valid): Update.
10136 * vax-tdep.c (vax_saved_pc_after_call): Update.
10137 * v850-tdep.c (v850_frame_chain): Update.
10138 (v850_pop_frame): Update.
10139 (v850_init_extra_frame_info): Update.
10140 * sparc-tdep.c (setup_arbitrary_frame): Update.
10141 * ns32k-tdep.c (umax_frame_num_args): Update.
10142 * s390-tdep.c (s390_pop_frame_regular): Update.
10143 * mn10300-tdep.c (mn10300_frame_chain): Update.
10144 (mn10300_pop_frame_regular): Update.
10145 (mn10300_init_extra_frame_info): Update.
10146 * mips-tdep.c (mips_init_frame_pc_first): Update.
10147 (mips_frame_chain): Update.
10148 (mips_pop_frame): Update.
10149 * mcore-tdep.c (mcore_frame_chain): Update.
10150 (mcore_pop_frame): Update.
10151 (mcore_init_extra_frame_info): Update.
10152 * arch-utils.c (init_frame_pc_default): Update.
10153 * m68k-tdep.c (isi_frame_num_args): Update.
10154 (delta68_frame_num_args): Update.
10155 (news_frame_num_args): Update.
10156 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10157 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10158 (alpha_frame_chain): Update.
10159 (alpha_pop_frame): Update.
10160 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10161 (hppa_init_extra_frame_info): Update.
10162 (hppa_frame_chain): Update.
10163 (hppa_frame_chain_valid): Update.
10164 * cris-tdep.c (cris_init_extra_frame_info): Update.
10165 * avr-tdep.c (avr_init_extra_frame_info): Update.
10166 * arm-tdep.c (arm_frame_chain_valid): Update.
10167 (arm_init_extra_frame_info): Update.
10168 (arm_pop_frame): Update.
10169 * frame.c (frame_pc_unwind): Update.
10170 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10171 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10172 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10173 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10174 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10175 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10177 2003-03-10 Andrew Cagney <cagney@redhat.com>
10179 * gdbarch.sh (gdbarch_unwind_pc): New method.
10180 * gdbarch.h, gdbarch.c: Regenerate.
10181 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10182 but use read_pc and FRAME_SAVED_PC as fall backs.
10183 (frame_saved_regs_pc_unwind): Delete function.
10184 (trad_frame_unwinder): Update.
10185 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10186 (struct frame_unwind): Update.
10187 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10188 (dummy_frame_unwind): Update.
10189 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10190 (sentinel_frame_unwinder): Update.
10191 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10192 (d10v_frame_unwind): Update.
10193 (d10v_unwind_pc): New function.
10194 (d10v_gdbarch_init): Set unwind_pc.
10196 2003-03-10 Andrew Cagney <cagney@redhat.com>
10198 * gdbarch.h: Re-generate.
10200 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10202 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10205 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10207 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10209 2003-03-08 Andrew Cagney <cagney@redhat.com>
10211 * cli-out.c: Update copyright.
10212 (cli_out_data): Define typedef. Use instead of ui_out_data.
10214 2003-03-08 Andrew Cagney <cagney@redhat.com>
10216 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10219 2003-03-07 Andrew Cagney <cagney@redhat.com>
10221 * gdbarch.sh: Don't generate two macro definitions when an
10222 undefined macro taking no arguments.
10223 * gdbarch.h: Regenerate.
10225 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10227 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10228 (x86_64_unwind_dummy_id): New functions.
10229 (x86_64_init_abi): Register these two new functions.
10231 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10233 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10234 (x86_64_skip_prologue): Move prologue detection to
10236 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10238 2003-03-05 Andrew Cagney <cagney@redhat.com>
10240 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10241 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10242 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10243 to use unwind_dummy_id when a dummy frame.
10244 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10246 * gdbarch.h, gdbarch.c: Regneerate.
10248 2003-03-05 Andrew Cagney <cagney@redhat.com>
10250 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10251 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10252 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10255 2003-03-05 Andrew Cagney <cagney@redhat.com>
10257 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10258 (struct d10v_unwind_cache): Delete field "frameless". Replace
10259 "next_addr" with "sp_offset". Add "r11_offset".
10260 (d10v_frame_unwind_cache): Update.
10261 (prologue_find_regs): Update. When "mv r11, sp", save the
10262 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10263 RN was saved in r11_offset.
10265 2003-03-05 Andrew Cagney <cagney@redhat.com>
10267 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10268 cached PC value in the next frame.
10270 2003-03-05 Andrew Cagney <cagney@redhat.com>
10272 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10273 "id_unwind_cache" with "id".
10274 (frame_id_unwind): Delete declaration.
10275 * frame.c (frame_id_unwind): Delete function.
10276 (get_prev_frame): Call the frame id unwind method directly. Store
10277 the returned next frame's ID value in NEXT_FRAME. Note that there
10278 is a problem with the wrong unwind ID being called with the wrong
10281 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10283 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10285 2003-03-05 James Ingham <jingham@apple.com>
10286 Daniel Jacobowitz <drow@mvista.com>
10288 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10289 (auto_cp_abi): New variable.
10290 (current_cp_abi, num_cp_abis): Make static.
10291 (CP_ABI_MAX): Define.
10292 (cp_abis): Turn into an array.
10293 (value_virtual_fn_field): Fix formatting.
10294 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10296 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10297 (list_cp_abis, _initialize_cp_abi): New functions.
10298 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10299 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10300 switch_to_cp_abi. Update prototype for register_cp_abi.
10301 * Makefile.in (cp-abi.o): Update dependencies.
10302 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10303 instead of switch_to_cp_abi.
10304 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10306 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10308 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10310 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10312 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10313 * dwarf2loc.c: Include "regcache.h".
10314 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10316 * Makefile.in (dwarf2loc.o): Update dependencies.
10318 2003-03-04 Theodore A. Roth <troth@openavr.org>
10320 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10321 number of io registers reported by remote target is not a multiple of
10324 2003-03-04 David Carlton <carlton@math.stanford.edu>
10326 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10327 (lookup_symbol_aux_psymtabs): Update call to
10328 lookup_partial_symbol.
10329 (lookup_transparent_type, find_main_psymtab)
10330 (make_symbol_overload_list): Ditto.
10332 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10334 * MAINTAINERS (Write after approval): Update my email address.
10336 2003-03-03 Andrew Cagney <cagney@redhat.com>
10338 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10339 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10340 predicate. Replace MAX_REGISTER_RAW_SIZE.
10341 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10342 MAX_REGISTER_VIRTUAL_SIZE.
10343 * regcache.c (legacy_max_register_raw_size): New function.
10344 (legacy_max_register_virtual_size): New function.
10345 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10346 (MAX_REGISTER_RAW_SIZE): Define.
10347 (legacy_max_register_raw_size): Declare.
10348 (legacy_max_register_virtual_size): Declare.
10349 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10350 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10351 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10352 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10353 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10354 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10355 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10356 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10357 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10359 * vax-tdep.c (vax_gdbarch_init): Update.
10360 * v850-tdep.c (v850_gdbarch_init): Update.
10361 * sparc-tdep.c (sparc_gdbarch_init): Update.
10362 * sh-tdep.c (sh_gdbarch_init): Update.
10363 * s390-tdep.c (s390_gdbarch_init): Update.
10364 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10365 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10366 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10367 * mips-tdep.c (mips_gdbarch_init): Update.
10368 * mcore-tdep.c (mcore_gdbarch_init): Update.
10369 * m68k-tdep.c (m68k_gdbarch_init): Update.
10370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10371 * ia64-tdep.c (ia64_gdbarch_init): Update.
10372 * i386-tdep.c (i386_gdbarch_init): Update.
10373 * hppa-tdep.c (hppa_gdbarch_init): Update.
10374 * h8300-tdep.c (h8300_gdbarch_init): Update.
10375 * frv-tdep.c (frv_gdbarch_init): Update.
10376 * cris-tdep.c (cris_gdbarch_init): Update.
10377 * avr-tdep.c (avr_gdbarch_init): Update.
10378 * arm-tdep.c (arm_gdbarch_init): Update.
10379 * alpha-tdep.c (alpha_gdbarch_init): Update.
10380 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10381 max_register_raw_size or max_register_virtual_size.
10383 2003-03-03 David Carlton <carlton@math.stanford.edu>
10385 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10386 SYMBOL_MATCHES_NAME, add comment.
10387 (SYMBOL_MATCHES_NATURAL_NAME): New.
10388 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10389 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10390 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10391 * symtab.c (lookup_partial_symbol): Use
10392 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10394 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10395 SYMBOL_MATCHES_NAME.
10398 2003-03-03 David Carlton <carlton@math.stanford.edu>
10400 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10401 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10402 by regexp matching against SYMBOL_NATURAL_NAME.
10404 2003-03-03 David Carlton <carlton@math.stanford.edu>
10406 * linespec.c (find_method): Extract code into collect_methods.
10407 (collect_methods): New.
10409 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10411 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10414 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10415 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10417 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10419 * arch-utils.c (generic_register_byte): Fix to use the loop index
10420 and not regnum when summing the size of all registers up to regnum.
10422 2003-03-01 Andrew Cagney <cagney@redhat.com>
10424 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10425 FRAME_INIT_SAVED_REGS.
10426 * gdbarch.h, gdbarch.c: Regenerate.
10427 * stack.c (frame_info): Update.
10428 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10429 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10430 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10431 * ns32k-tdep.c (ns32k_pop_frame): Update.
10432 * mips-tdep.c (mips_pop_frame): Update.
10433 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10434 * ia64-tdep.c (ia64_frame_chain): Update.
10435 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10436 (ia64_frameless_function_invocation): Update.
10437 (ia64_init_extra_frame_info): Update.
10438 (ia64_pop_frame_regular): Update.
10439 * frame.h (struct frame_info): Update comment.
10440 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10441 * frame.c (frame_saved_regs_register_unwind): Update.
10442 (frame_saved_regs_register_unwind): Update.
10443 (deprecated_generic_get_saved_register): Update.
10444 * cris-tdep.c: Update comment.
10445 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10448 * x86-64-tdep.c (x86_64_init_abi): Update.
10449 * vax-tdep.c (vax_gdbarch_init): Update.
10450 * v850-tdep.c (v850_gdbarch_init): Update.
10451 * sparc-tdep.c (sparc_gdbarch_init): Update.
10452 * sh-tdep.c (sh_gdbarch_init): Update.
10453 * s390-tdep.c (s390_gdbarch_init): Update.
10454 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10455 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10456 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10457 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10458 * mips-tdep.c (mips_gdbarch_init): Update.
10459 * mcore-tdep.c (mcore_gdbarch_init): Update.
10460 * m68k-tdep.c (m68k_gdbarch_init): Update.
10461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10462 * ia64-tdep.c (ia64_gdbarch_init): Update.
10463 * i386-tdep.c (i386_gdbarch_init): Update.
10464 * frv-tdep.c (frv_gdbarch_init): Update.
10465 * avr-tdep.c (avr_gdbarch_init): Update.
10466 * arm-tdep.c (arm_gdbarch_init): Update.
10467 * alpha-tdep.c (alpha_gdbarch_init): Update.
10469 2003-03-01 Andrew Cagney <cagney@redhat.com>
10471 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10472 option enum and switch. When no windows, set the interpreter to
10475 2003-03-01 Andrew Cagney <cagney@redhat.com>
10477 * main.c (captured_main): Replace magic option characters with an
10480 2003-03-01 Andrew Cagney <cagney@redhat.com>
10482 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10483 INIT_EXTRA_FRAME_INFO.
10484 * gdbarch.h, gdbarch.c: Regenerate.
10485 * arm-tdep.c: Update comments.
10486 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10487 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10488 * frame.h, avr-tdep.c: Ditto.
10489 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10490 (create_new_frame, legacy_get_prev_frame): Ditto.
10491 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10492 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10494 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10495 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10496 * v850-tdep.c (v850_gdbarch_init): Ditto.
10497 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10498 * sh-tdep.c (sh_gdbarch_init): Ditto.
10499 * s390-tdep.c (s390_gdbarch_init): Ditto.
10500 * ppc-linux-tdep.c (ppc_linux_init_abi): 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-interix-tdep.c (i386_interix_init_abi): Ditto.
10507 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10508 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10509 * frv-tdep.c (frv_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 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10514 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10516 2003-03-01 Andrew Cagney <cagney@redhat.com>
10518 * gdbarch.sh (register_type): New function with predicate.
10519 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10520 * gdbarch.h, gdbarch.c: Re-generate.
10521 * arch-utils.c (generic_register_byte): Use generic_register_size.
10522 (generic_register_size): When available, use
10523 gdbarch_register_type.
10524 * regcache.c (init_regcache_descr): When available, initialize the
10525 register type array using gdbarch_register_type. If the
10526 architecture supplies gdbarch_register_type, do not use the legacy
10528 * d10v-tdep.c (d10v_register_type): Replace
10529 d10v_register_virtual_type.
10530 (d10v_gdbarch_init): Set register_type instead of
10531 register_virtual_type.
10533 2003-03-01 Andrew Cagney <cagney@redhat.com>
10535 * Makefile.in (ax-gdb.o): Update dependencies.
10536 * ax-gdb.c: Include "regcache.h".
10537 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10538 * findvar.c (value_of_register): Ditto.
10539 * infcmd.c (default_print_registers_info): Ditto.
10541 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10543 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10544 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10546 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10548 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10551 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10553 * Makefile.in (dwarf2loc.o): Update dependencies.
10554 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10555 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10556 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10557 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10558 (locexpr_tracepoint_var_ref): New function.
10559 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10561 2003-02-28 Andrew Cagney <cagney@redhat.com>
10563 * regcache.c (register_size): New function.
10564 * regcache.h (register_size): Declare
10565 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10566 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10568 2003-02-28 David Carlton <carlton@math.stanford.edu>
10570 * linespec.c (decode_compound): Extract code into find_method.
10571 (find_method): New.
10573 2003-02-28 J. Brobecker <brobecker@gnat.com>
10575 * Makefile.in: Add rules to build and link in observer.o.
10577 2003-02-27 J. Brobecker <brobecker@gnat.com>
10579 * observer.c: Minor comments edits.
10581 2003-02-27 J. Brobecker <brobecker@gnat.com>
10583 * observer.h, observer.c: New file.
10585 2003-02-27 Andrew Cagney <cagney@redhat.com>
10587 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10589 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10591 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10592 (M6812_OP_STS_EXT): Likewise.
10593 (m6811_prologue): Use the above to recognize prologue.
10594 (m6812_prologue): Likewise.
10596 2003-02-27 David Carlton <carlton@math.stanford.edu>
10598 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10600 (compare_psymbols): Ditto.
10601 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10603 2003-02-27 Michael Snyder <msnyder@redhat.com>
10605 * f-lang.c (build_fortran_types): New function.
10606 (_initialize_f_language): Gdbarch-register built-in fortran types.
10607 * doublest.c (extract_floating): Fix warning text.
10609 2003-02-27 Andrew Cagney <cagney@redhat.com>
10611 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10612 predicate. Replaces PUSH_DUMMY_FRAME.
10613 * gdbarch.h, gdbarch.c: Regnerate.
10614 * valops.c (hand_function_call): Update. Call
10615 generic_push_dummy_frame directly.
10616 * vax-tdep.c (vax_gdbarch_init): Update.
10617 * sparc-tdep.c (sparc_gdbarch_init): Update.
10618 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10619 * m68k-tdep.c (m68k_gdbarch_init): Update.
10620 * hppa-tdep.c (hppa_gdbarch_init): Update.
10621 * alpha-tdep.c (alpha_gdbarch_init): Update.
10622 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10623 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10624 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10625 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10626 push_dummy_frame to generic_push_dummy_frame.
10627 * v850-tdep.c (v850_gdbarch_init): Ditto.
10628 * sh-tdep.c (sh_gdbarch_init): Ditto.
10629 * s390-tdep.c (s390_gdbarch_init): Ditto.
10630 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10631 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10632 * mips-tdep.c (mips_gdbarch_init): Ditto.
10633 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10635 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10636 * i386-tdep.c (i386_gdbarch_init): Ditto.
10637 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10638 * frv-tdep.c (frv_gdbarch_init): Ditto.
10639 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10640 * cris-tdep.c (cris_gdbarch_init): Ditto.
10641 * avr-tdep.c (avr_gdbarch_init): Ditto.
10642 * arm-tdep.c (arm_gdbarch_init): Ditto.
10644 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10646 * mips-tdep.c (show_mips_abi): New function.
10647 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10648 command ``show mips abi''.
10650 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10652 From Elena Zannoni <ezannoni@redhat.com>
10653 * dbxread.c (process_one_symbol): Only record line 0 if one or
10654 more sline entries have been seen for the function.
10656 2003-02-26 Michael Chastain <mec@shout.net>
10658 * configure: Regenerate with autoconf 000227.
10660 2003-02-26 Michael Chastain <mec@shout.net>
10662 Close PR build/660.
10663 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10664 for old libc5/glibc.
10665 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10667 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10669 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10670 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10672 2003-02-26 Michael Chastain <mec@shout.net>
10674 * configure.in: New variable HAVE_UINTPTR_T.
10675 * configure, config.in: Regenerated.
10677 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10680 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10682 2003-02-25 Andrew Cagney <cagney@redhat.com>
10684 * frame.c (get_prev_frame): Add comment on check for
10685 inside_entry_func. Only check for inside_entry_file when not a
10686 dummy and not a sentinel. Check that the new frame is not inner
10689 2003-02-25 Andrew Cagney <cagney@redhat.com>
10691 * frame.c (frame_debug): New variable.
10692 (_initialize_frame): Add "set/show debug frame" command.
10693 (get_prev_frame): When frame_debug, print reason why unwind
10696 2003-02-25 Michael Chastain <mec@shout.net>
10698 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10699 to avoid uintptr_t definition problems.
10701 2003-02-25 David Carlton <carlton@math.stanford.edu>
10703 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10704 (SYMBOL_LINKAGE_NAME): Ditto.
10705 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10706 SYMBOL_LINKAGE_NAME.
10707 (struct general_symbol_info): Expand comment.
10708 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10709 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10710 (SYMBOL_MATCHES_REGEXP): Ditto.
10711 * symtab.c (symbol_natural_name): New function.
10712 * objfiles.h: Replace all uses of SYMBOL_NAME by
10713 DEPRECATED_SYMBOL_NAME.
10714 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10715 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10716 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10717 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10718 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10719 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10720 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10721 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10722 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10723 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10724 * ada-exp.y: Ditto.
10725 * ada-exp.y: Update copyright.
10726 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10727 * cp-valprint.c: Ditto.
10729 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10731 * infptrace.c (detach): Do not flag error if ptrace detach fails
10732 and errno is set to ESRCH.
10734 2003-02-24 Andrew Cagney <cagney@redhat.com>
10736 * infptrace.c (udot_info): Change type of udot_off to long. Use
10737 paddr when printing udot_off's value.
10739 2003-02-24 David Carlton <carlton@math.stanford.edu>
10741 * symtab.c (make_symbol_overload_list): Only read in partial
10742 symtabs containing a matching partial symbol.
10744 2003-02-24 David Carlton <carlton@math.stanford.edu>
10746 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10747 do the comparison, not strcmp.
10748 * symfile.c (compare_psymbols): Ditto.
10749 * defs.h: Declare strcmp_iw_ordered.
10750 * utils.c (strcmp_iw_ordered): New function.
10752 2003-02-24 Jim Blandy <jimb@redhat.com>
10754 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10755 support, shared libs): Remove my name from here, to better reflect
10758 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10760 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10761 (target_ops): Add to_have_continuable_watchpoint.
10762 * target.c (update_current_target): Add INHERIT line for
10763 to_have_continuable_watchpoint.
10764 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10765 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10766 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10767 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10769 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10771 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10774 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10776 * solib.c (solib_open): Call target defined search function after
10777 failing with solib-search-path.
10778 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10779 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10781 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10783 * MAINTAINERS: Add myself to Write After section.
10785 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10787 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10789 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10791 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10792 (m68hc11_add_reggroups): New function.
10793 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10794 (m68hc11_gdbarch_init): Install the reggroups.
10795 (_initialize_m68hc11_tdep): Initialize them.
10797 2003-02-21 James E Wilson <wilson@tuliptree.org>
10799 * MAINTAINERS: Update my email address.
10801 2003-02-21 David Carlton <carlton@math.stanford.edu>
10803 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10805 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10807 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10808 * symtab.h: Add opaque declarations of struct axs_value and
10810 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10811 (struct location_funcs): New type.
10812 (struct symbol): Add "loc" to aux_value.
10813 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10814 * dwarf2read.c: Include "dwarf2expr.h".
10815 (dwarf2_symbol_mark_computed): New function.
10816 (read_func_scope): Use it.
10817 (var_decode_location): New function.
10818 (new_symbol): Use it.
10819 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10821 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10822 (dwarf2expr_h, dwarf2loc_h): New variables.
10823 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10824 (dwarf2expr.o, dwarf2loc.o): New rules.
10825 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10826 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10828 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10829 * m2-exp.y (yylex): Likewise.
10830 * printcmd.c (address_info, print_frame_args): Likewise.
10831 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10832 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10833 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10834 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10835 * symtab.c (lookup_block_symbol): Likewise.
10837 2003-02-20 Adam Fedor <fedor@gnu.org>
10839 * symtab.h: Remove objc_specific struct
10840 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10841 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10842 Have language_objc use cplus_specific struct.
10844 2003-02-20 Tom Tromey <tromey@redhat.com>
10846 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10847 TYPE_NAME, when printing a String value. PR java/1075.
10849 2003-02-20 Adam Fedor <fedor@gnu.org>
10851 * objc-lang.h (find_methods): Remove declaration.
10852 * objc-lang.c (find_methods): Make static.
10854 2003-02-20 Christopher Faylor <cgf@redhat.com>
10856 * win32-nat.c (get_image_name): Check return value from
10858 (child_xfer_memory): Ditto.
10860 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10862 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10863 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10864 '${exec_prefix}' (in addition to the expansion thereof) as
10866 * configure: Rebuilt.
10868 2003-02-20 David Carlton <carlton@math.stanford.edu>
10870 * symtab.c (search_symbols): Revert the search_symbols part of my
10871 2002-12-23 patch. Add comment.
10873 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10875 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10876 * dbxread.c (elfstab_build_psymtabs): Don't call
10877 install_minimal_symbols.
10878 (stabsect_build_psymtabs): Likewise.
10879 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10881 * somread.c (som_symfile_read): Call install_minimal_symbols
10882 and do_cleanups earlier.
10883 * nlmread.c (nlm_symfile_read): Likewise.
10884 * mdebugread.c (elfmdebug_build_psymtabs): Call
10885 install_minimal_symbols and make appropriate cleanups.
10887 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10889 * solib.c (reload_shared_libraries): New function.
10890 (_initialize_solib): Add callbacks for ``set solib-search-path''
10891 and ``set solib-absolute-prefix''.
10893 2003-02-20 David Carlton <carlton@math.stanford.edu>
10895 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10897 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10898 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10899 * ada-typeprint.c (ada_typedef_print): Ditto.
10900 * ax-gdb.c (gen_var_ref): Ditto.
10901 * breakpoint.c (print_one_breakpoint): Ditto.
10902 * buildsym.c (finish_block): Ditto.
10903 * c-valprint.c (c_val_print): Ditto.
10904 * expprint.c (print_subexp): Ditto.
10905 * findvar.c (locate_var_value): Ditto.
10906 * infcmd.c (jump_command): Ditto.
10907 * linespec.c (decode_line_2, decode_compound): Ditto.
10908 * maint.c (maintenance_translate_address): Ditto.
10909 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10910 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10912 * p-valprint.c (pascal_val_print): Ditto.
10913 * stabsread.c (define_symbol): Ditto.
10914 * stack.c (print_frame, frame_info, print_block_frame_locals)
10915 (print_frame_arg_vars, return_command): Ditto.
10916 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10917 * symmisc.c (print_symbol): Ditto.
10918 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10919 (compare_search_syms, print_symbol_info, print_msymbol_info)
10920 (rbreak_command): Ditto.
10921 * tracepoint.c (tracepoints_info): Ditto.
10922 * typeprint.c (typedef_print): Ditto.
10923 * valops.c (value_of_variable, hand_function_call): Ditto.
10924 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10925 * ada-typeprint.c: Update Copyright.
10926 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10927 * tracepoint.c, cli/cli-cmds.c: Ditto.
10929 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10931 * frame.c (generic_unwind_get_saved_register): Make non-static.
10932 * frame.h (generic_unwind_get_saved_register): Declare.
10933 * mips-tdep.c (read_next_frame_reg): Fetch register from
10934 current regcache when frame is NULL.
10935 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10937 (mips_get_saved_register): Call generic_unwind_get_saved_register()
10938 instead of frame_register_unwind().
10940 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10942 * remote-sim.c (gdbsim_insert_breakpoint)
10943 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
10946 2003-02-20 Andrew Cagney <ac131313@redhat.com>
10948 * remote.c (_initialize_remote): Add commands "set/show remote
10949 hardware-watchpoint-limit" and "set/show remote
10950 hardware-breakpoint-limit".
10951 (remote_hw_watchpoint_limit): Initialize to -1.
10952 (remote_hw_breakpoint_limit): Ditto.
10953 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
10955 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
10957 * coff-pe-read.c: New file - support reading of minimal symbols from a
10958 portable executable using the export table.
10959 * coff-pe-read.h: New file.
10960 * coffread.c: Include coff-pe-read.h.
10961 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
10962 debugging symbols found.
10963 * Makefile.in (SFILES): Add coff-pe-read.o.
10964 (coff_pe_read_h): Define.
10965 (COMMON_OBS): Add coff-pe-read.o.
10966 (coffread.o): Add coff_pe_read_h dependency.
10967 (coff-pe-read.o): New target.
10969 2003-02-19 David Carlton <carlton@math.stanford.edu>
10971 * Makefile.in (SFILES): Add block.c.
10973 (COMMON_OBS): Add block.o.
10975 (x86-64-tdep.o): Add $(block_h).
10976 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
10977 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
10978 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
10979 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
10980 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
10981 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
10982 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
10983 * value.h: Add opaque declaration for struct block.
10984 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
10985 * ada-lang.h: Ditto.
10986 * x86-64-tdep.c: #include "block.h"
10987 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
10988 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
10989 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
10990 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
10991 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
10992 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
10993 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
10994 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
10995 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
10996 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
10997 * symtab.c (block_function): Ditto.
10998 (contained_in): Ditto.
10999 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11000 block.h. Add opaque declaration for struct block.
11001 * symtab.h: Move block_function and contained_in declarations to
11002 block.h. Add opaque declarations for struct block, struct
11004 (struct block): Move to block.h.
11005 (struct blockvector): Ditto.
11006 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11007 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11008 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11009 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11010 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11012 * block.c: New file.
11013 * block.h: New file.
11015 2003-02-19 Theodore A. Roth <troth@openavr.org>
11017 * avr-tdep.c (avr_extract_return_value): Remove function.
11018 (avr_store_return_value): Remove function.
11019 (avr_extract_struct_value_address): Remove function.
11020 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11022 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11024 * rs6000-tdep.c: Include "gdb_assert.h".
11025 (registers_e500): Add "acc" and "spefscr".
11026 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11027 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11028 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11030 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11032 2003-02-18 Keith Seitz <keiths@redhat.com>
11034 * Makefile.in: Add gdbtk-interps.c.
11036 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11038 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11039 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11041 2003-02-18 Andrew Cagney <cagney@redhat.com>
11043 * symtab.h (struct objfile): Add opaque declaration.
11045 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11047 From Jim Ingham <jingham@apple.com>:
11048 * dbxread.c (process_one_symbol): Use last_function_start rather
11049 than function_start_offset to find the real beginning of the
11050 current function. The latter is just the text section offset on
11051 some systems, the former is always the real function start.
11053 2003-02-17 Andrew Cagney <cagney@redhat.com>
11055 * configure.in: Revert ${target} != ${host}.
11057 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11059 * configure.in (Makefile): Use the test ${target} != ${host},
11060 instead of the absence of the "nm.h" file, to determine of the
11061 configuration non-native.
11062 * configure: Regenerate.
11064 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11066 From Brian Ford <ford@vss.fsi.com>
11068 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11069 conditionalize tui_active test.
11070 (lookup_cmd_1): Ditto.
11072 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11074 * configure.in: Add check for _etext.
11075 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11077 * config.in, configure: regenerated.
11079 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11081 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11083 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11085 * main.c (tui_version): Delete variable.
11086 (captured_main): When --tui, set interpreter_p to "tui" instead of
11087 enabling tui_version.
11088 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11090 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11091 * cli/cli-cmds.c (disassemble_command): Ditto.
11092 * defs.h (tui_version): Delete declaration.
11093 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11094 (tui-interp.o): Add rules.
11095 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11097 2003-02-14 Christopher Faylor <cgf@redhat.com>
11099 * win32-nat.c (register_loaded_dll): Correctly set address range for
11102 2003-02-12 Jason Molenda (jmolenda@apple.com)
11104 * symmisc.c (print_objfile_statistics): Include information about
11105 the number of psymtabs and symtabs in each object file.
11107 2003-02-13 Keith R Seitz <keiths@redhat.com>
11109 * main.h (struct captured_main_args): Add interpreter_p.
11110 * main.c (captured_main): Initialize interpreter_p from context.
11111 * gdb.c (main): Set interpreter_p argument.
11112 * Makefile.in (gdb.o): Add dependency for interps.h.
11114 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11116 * event-top.c (cli_command_loop): Delete declaration.
11117 (_initialize_event_loop): Delete function setting event_loop_hook.
11118 * event-top.h (cli_command_loop): Declare. Update copyright.
11119 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11120 * interps.c (current_interp_command_loop): When event_loop_p, call
11123 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11125 * interps.h (interp_command_loop_ftype): Change return type to
11128 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11130 * x86-64-tdep.c (x86_64_extract_return_value)
11131 (x86_64_store_return_value): Use regcache instead of regbuf.
11132 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11133 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11135 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11137 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11138 * aclocal.m4: Regenerate.
11139 * configure: Regenerate.
11141 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11142 TCL_LD_SEARCH_FLAGS.
11144 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11146 * dwarf2cfi.c: Reindented.
11148 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11150 * interps.c (clear_interpreter_hooks): Convert function definition
11153 2003-02-07 David Carlton <carlton@math.stanford.edu>
11155 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11157 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11159 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11160 (struct type): ...to here.
11161 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11163 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11164 (replace_type): Set length on all type variants for a given type.
11166 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11168 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11170 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11172 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11174 * Makefile.in (symm-nat.o): Update dependencies.
11175 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11176 (lynx-nat.o, ia64-linux-nat.): Ditto.
11177 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11178 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11179 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11181 * Makefile.in (inflow_h): Define.
11182 (procfs.o, inflow.o, procfs.o): Update dependencies.
11183 * inftarg.c (child_stop): Delete extern declaration of
11184 inferior_process_group. Include "inflow.h".
11185 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11186 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11187 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11188 (our_process_group, inferior_process_group): Extern declarations.
11190 * procfs.c: Include "gdb_assert.h".
11192 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11193 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11194 * jv-typeprint.c (java_type_print_base): Ditto.
11195 * typeprint.c (typedef_print): Eliminate STREQ.
11196 * cli/cli-script.c (define_command, define_command): Ditto.
11197 * main.c (captured_main): Ditto.
11198 * values.c (lookup_internalvar): Ditto.
11199 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11200 within `if' conditional.
11201 * linespec.c (decode_line_2): Ditto.
11202 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11203 (bfd_openw_with_cleanup): Ditto.
11205 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11207 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11208 legacy_extract_return_value and store_return_value to
11209 legacy_return_value.
11211 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11213 * win32-nat.c (get_relocated_section_addrs): New function. Find
11214 section load addresses for symbol handling in relocated DLLs.
11215 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11217 2003-02-05 Fred Fish <fnf@intrinsity.com>
11219 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11221 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11223 (angel_RDI_info): Ditto.
11224 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11226 (threads_continue_all_with_signals): Ditto.
11228 2003-02-05 Jim Ingham <jingham@apple.com>
11229 Keith Seitz <keiths@redhat.com>
11230 Elena Zannoni <ezannoni@redhat.com>
11231 Andrew Cagney <ac131313@redhat.com>
11233 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11234 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11235 (SUBDIR_MI_OBS): Add "mi-interp.o".
11236 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11237 (SFILES): Add "interps.c".
11238 (COMMON_OBS): Add "interps.o".
11239 (interps_h, mi_main_h): Define.
11240 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11241 (mi-main.o, main.o, event-top.o): Update dependencies.
11242 * cli/cli-interp.c: New file.
11243 * interps.h, interps.c: New files.
11244 * top.c: (gdb_init): Don't install the default interpreter, handed
11246 * main.c: Include "interps.h".
11247 (interpreter_p): Note that it should malloc'ed.
11248 (captured_command_loop): Call current_interp_command_loop.
11249 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11250 xfree and xstrdup when updating interpreter_p. Install the
11251 default interpreter. Add hack to stop mi1's copyright notice
11253 * event-top.h (gdb_setup_readline): Declare.
11254 (gdb_disable_readline): Declare.
11255 * event-top.c: Include "interps.h".
11256 (display_gdb_prompt): Call current_interp_display_prompt_p.
11257 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11258 gdb_stdlog, and gdb_stdtarg.
11259 (_initialize_event_loop): Don't call gdb_setup_readline.
11260 * cli-out.c (cli_out_set_stream): New function.
11261 * cli-out.h (cli_out_set_stream): Declare.
11263 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11265 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11266 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11267 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11268 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11269 config/i386/i386v42mp.mt: Removed.
11271 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11273 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11276 2003-02-05 Michael Chastain <mec@shout.net>
11278 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11279 2.12.1 and earlier versions.
11281 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11283 Remove orphaned hosts, targets and files.
11284 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11285 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11286 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11287 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11288 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11289 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11290 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11291 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11292 * config/sparc/tm-sp64sim.h: Delete.
11293 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11295 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11296 mips*-dec-mach3* targets.
11298 2003-02-04 Michael Chastain <mec@shout.net>
11300 * NEWS: Fix typo: sepcifying -> specifying.
11302 2003-02-04 Michael Chastain <mec@shout.net>
11304 * dwarfread.c: Add documentation on the state of dwarf-1,
11305 looking towards obsoletion.
11307 2003-02-03 Michael Chastain <mec@shout.net>
11309 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11310 gdb/testsuite/gdb.c++/pr-1023.exp.
11312 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11314 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11315 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11317 * utils.c (init_page_info): Delete reference to MPW in comments.
11318 * main.c (captured_main): Delete #ifdef MPW.
11320 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11322 * NEWS: Note that the m32r-*-elf* is obsolete.
11323 * monitor.c (monitor_expect): Obsolete reference to m32r.
11324 * configure.tgt: Mark m32r-*-elf* as obsolete.
11325 * MAINTAINERS: Mark m32k as obsolete.
11326 * m32r-rom.c: Obsolete file.
11327 * config/m32r/m32r.mt: Obsolete file.
11328 * config/m32r/tm-m32r.h: Obsolete file.
11329 * m32r-stub.c: Obsolete file.
11330 * m32r-tdep.c: Obsolete file.
11332 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11334 * NEWS: Mention that the z8k-zilog-none is obsolete.
11335 * MAINTAINERS: Mark z8k as obsolete.
11336 * configure.tgt: Obsolete the z8k-*-coff* target.
11337 * config/z8k/z8k.mt: Obsolete file.
11338 * config/z8k/tm-z8k.h: Obsolete file.
11339 * z8k-tdep.c: Obsolete file.
11341 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11343 * NEWS: Mention that the mn10200-elf is obsolete.
11344 * configure.tgt: Obsolete mn10200-*-* target.
11345 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11346 mention that the mn10200 is obsolete.
11347 * breakpoint.h: Ditto.
11348 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11349 * config/mn10200/mn10200.mt: Obsolete file.
11350 * config/mn10200/tm-mn10200.h: Obsolete file.
11351 * mn10200-tdep.c: Obsolete file.
11353 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11355 * MAINTAINERS: Mark h8500 as obsolete.
11356 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11357 * findvar.c (value_from_register): Ditto.
11358 * h8500-tdep.c: Mark file as obsolete.
11359 * config/h8500/h8500.mt: Ditto.
11360 * config/h8500/tm-h8500.h: Ditto.
11361 * NEWS: Mention that h8500 is obsolete.
11363 2003-02-04 David Carlton <carlton@math.stanford.edu>
11365 * objfiles.c (allocate_objfile): Always set name. Add comment at
11367 * jv-lang.c (get_dynamics_objfile): Add comment.
11369 2003-02-04 David Carlton <carlton@math.stanford.edu>
11371 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11372 * printcmd.c (build_address_symbolic): Replace uses of
11373 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11374 SYMBOL_NAME, and asm_demangle.
11377 2003-02-04 David Carlton <carlton@math.stanford.edu>
11379 * linespec.c (decode_compound): Extract code into
11381 (lookup_prefix_sym): New function.
11383 2003-02-04 David Carlton <carlton@math.stanford.edu>
11385 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11386 FLOAT_COERCION_BADNESS.
11387 * gdbtypes.c (rank_one_type): Replace all uses of
11388 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11390 2003-02-04 Jim Blandy <jimb@redhat.com>
11392 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11393 section, let dwarf_macinfo_section point to it, not
11396 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11398 Pointed out by Anton Blanchard <anton@samba.org>.
11399 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11400 (ppc_linux_at_sigtramp_return_path): Use it.
11402 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11404 * defs.h (streq): Add prototype.
11405 * utils.c (streq): New function.
11407 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11408 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11409 * mdebugread.c (new_symbol): Likewise.
11410 * stabsread.c (define_symbol): Likewise.
11411 * coffread.c (process_coff_symbol): Likewise.
11412 * dwarfread.c (new_symbol): Likewise.
11414 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11415 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11417 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11418 SYMBOL_INIT_DEMANGLED_NAME.
11419 * objfiles.c: Include "hashtab.h".
11420 (allocate_objfile): Call htab_set_functions_ex for the
11421 demangled_names_hash.
11422 (free_objfile): Call htab_delete for the demangled_names_hash.
11423 * objfiles.h (struct htab): Add declaration.
11424 (struct objfile): Add demangled_names_hash.
11425 * symfile.c: Include "hashtab.h".
11426 (reread_symbols): Call htab_delete for the demangled_names_hash.
11427 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11428 SYMBOL_NAME in the bcache.
11429 * symtab.c: Include "hashtab.h". Update comments.
11430 (create_demangled_names_hash, symbol_set_names): New functions.
11431 (symbol_find_demangled_name): New function, broken out from
11432 symbol_init_demangled_names.
11433 (symbol_init_demangled_names): Use it.
11434 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11435 (SYMBOL_SET_NAMES): New macro.
11436 (symbol_set_names): Add prototype.
11438 2003-02-03 Jim Blandy <jimb@redhat.com>
11440 Use a single, consistent representation for an empty minimal
11441 symbol table in an objfile.
11442 * objfiles.c (terminate_minimal_symbol_table): New function.
11443 (allocate_objfile): Call it.
11444 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11445 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11447 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11448 objfile has minimal symbols, compare minimal_symbol_count to zero,
11449 instead of comparing msymbols with NULL.
11450 * objfiles.c (have_minimal_symbols): Same.
11451 * solib-sunos.c (solib_add_common_symbols): Call
11452 terminate_minimal_symbol_table.
11453 * symfile.c (reread_symbols): Same.
11455 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11457 * s390-tdep.c (s390_address_class_type_flags)
11458 (s390_address_class_type_flags_to_name)
11459 (s390_address_class_name_to_type_flags): New functions.
11460 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11461 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11463 2003-02-03 Michael Snyder <msnyder@redhat.com>
11465 * arm-tdep.c: Fix spell-o in comment.
11467 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11469 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11470 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11471 error messages to contain BFD filename.
11473 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11475 Fix PR gdb/742 gdb/743 gdb/877
11476 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11477 (do_mixed_source_and_assembly): Use
11478 make_cleanup_ui_out_tuple_begin_end and
11479 make_cleanup_ui_out_tuple_begin_end.
11480 (do_mixed_source_and_assembly): Ditto.
11481 * thread.c (do_captured_list_thread_ids): Ditto.
11482 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11483 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11484 ui_out_tuple_end): Delete prototypes.
11485 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11486 ui_out_list_end, ui_out_tuple_end): Delete.
11488 From Kevin Buettner <kevinb@redhat.com>:
11489 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11490 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11491 (do_cleanup_table_end): New functions.
11492 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11493 Use cleanups to invoke_ui_out_tuple_end().
11494 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11495 * cli/cli-setshow.c (cmd_show_list): Use
11496 make_cleanup_ui_out_tuple_begin_end.
11498 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11500 * frame.c (frame_unwind_register): New function.
11501 (frame_unwind_unsigned_register): Use.
11502 (frame_unwind_signed_register): Use.
11503 (frame_read_register): New function.
11504 * frame.h (frame_unwind_register): Declare.
11505 (frame_read_register): Declare.
11507 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11508 and frame_unwind_register instead of read_memory, write_register
11509 and deprecated_write_register_bytes.
11511 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11513 * frame.h: Note that namelen can be negative.
11514 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11517 * NEWS: Mention that the d10v's `regs' command is deprecated.
11518 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11519 (d10v_print_registers_info): New function.
11520 (show_regs): Call d10v_print_registers_info.
11521 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11523 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11525 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11526 lost in the previous patch.
11528 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11530 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11531 * stack.c (print_frame_info_base): Output complete FRAME tuple
11532 for synthesized frames.
11534 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11536 * mips-nat.c (zerobuf): Delete.
11537 (fetch_inferior_registers): Alloc local zerobuf.
11538 (fetch_core_registers): Alloc local zerobuf.
11539 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11540 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11541 * thread-db.c (thread_db_store_registers): Ditto.
11542 * sh-tdep.c (sh_do_register): Ditto.
11543 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11544 * remote-sim.c (gdbsim_store_register): Ditto.
11545 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11546 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11547 * monitor.c (monitor_supply_register): Ditto.
11548 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11549 * mips-nat.c (fetch_inferior_registers): Ditto.
11550 * m68klinux-nat.c (fetch_register): Ditto.
11551 * lynx-nat.c (fetch_inferior_registers): Ditto.
11552 (fetch_inferior_registers): Ditto.
11553 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11554 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11555 (hpux_thread_store_registers): Ditto.
11556 * hppah-nat.c (fetch_register): Ditto.
11557 * hppab-nat.c (fetch_register): Ditto.
11558 * hppa-tdep.c (pa_register_look_aside): Ditto.
11559 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11560 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11562 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11564 * gdbarch.sh: Explictly specify all method levels. When a
11565 variable with an empty level, provide a non-multi-arch default.
11566 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11567 * gdbarch.h: Re-generate.
11568 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11569 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11571 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11573 * defs.h (host_pointer_to_address): Delete declaration.
11574 (address_to_host_pointer): Delete declaration.
11575 * utils.c (host_pointer_to_address): Delete function.
11576 (address_to_host_pointer): Delete function.
11577 * procfs.c (procfs_address_to_host_pointer): New function.
11578 * procfs.c (proc_set_watchpoint): Use.
11579 (procfs_can_use_hw_breakpoint): Update comments.
11580 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11581 (som_solib_add): Use.
11582 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11583 * hppa-tdep.c (unwind_command): Use.
11585 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11587 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11590 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11591 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11592 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11593 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11594 (define_symbol): Update.
11595 * symfile.c (generic_load): Remove references to nindy.
11596 * symtab.c: Remove references to nindy.
11598 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11600 * infcmd.c (print_float_info): Delete code conditional on
11602 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11603 * config/m68k/nm-apollo68b.h: Ditto.
11604 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11605 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11606 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11608 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11610 * config/i386/tm-i386os9k.h: Removed.
11612 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11613 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11614 they're identical to i[3456]86-*-sysv* now.
11615 * config/i386/i386v32.mh: Removed.
11616 * config/i386/xm-i386v32.h: Removed.
11617 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11619 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11621 * config/i386/i386dgux.mh: Removed.
11622 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11624 * configure.in: Fix typo.
11625 * configure: Regenerated.
11627 2003-01-31 David Carlton <carlton@math.stanford.edu>
11629 * dwarf2read.c (dwarf2_locate_sections): Set
11630 dwarf_ranges_section.
11632 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11634 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11635 * utils.c: Update comments documenting legitimate uses of PTR.
11637 * utils.c: Re-indent.
11639 * config/djgpp/fnchange.lst: Delete nindy files.
11640 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11641 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11642 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11643 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11644 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11645 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11646 * Makefile.in (init.c): Remove nindy references.
11647 (saber_gdb): Delete rule.
11648 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11649 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11651 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11652 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11653 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11654 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11655 nindy-share/stop.h.
11656 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11657 * saber.suppress: Delete file.
11659 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11661 * dbxread.c (stabs_data): New static variable.
11662 (fill_symbuf): Support an in-memory buffer for stabs data.
11663 (stabs_seek): New function.
11664 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11665 (read_ofile_symtab): Use stabs_seek.
11666 (elfstab_build_psymtabs): Take an asection* instead of
11667 an offset and size. Relocate the stabs data if necessary.
11668 Save the section* for dbx_psymtab_to_symtab.
11669 * dwarf2read.c: Add section variables for each debug section.
11670 (dwarf2_locate_sections): Fill them in.
11671 (dwarf2_read_section): Take an asection* argument.
11672 Relocate the section contents if necessary.
11673 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11674 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11675 it to dwarf2_read_section.
11676 (dwarf2_build_frame_info): Update callers.
11677 * elfread.c (elf_symfile_read): Update call to
11678 elfstab_build_psymtabs.
11679 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11680 (DBX_STAB_SECTION): New macro.
11681 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11682 * symfile.c (symfile_dummy_outputs): New function.
11683 (symfile_relocate_debug_section): New function.
11684 * symfile.h (symfile_relocate_debug_section): Add prototype.
11686 2003-01-31 Richard Henderson <rth@redhat.com>
11688 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11689 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11690 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11691 * alpha-tdep.c (alpha_register_name): Add "unique".
11692 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11693 (ALPHA_UNIQUE_REGNUM): New.
11694 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11696 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11698 * README: Remove reference to Ericsson 1800 monitor.
11699 * Makefile.in (remote-es.o): Delete rule.
11700 (ALLDEPFILES): Delete remote-es.c.
11701 * remote-es.c: Delete file.
11702 * config/m68k/es1800.mt: Delete file.
11703 * config/djgpp/fnchange.lst: Update.
11704 * configure.tgt: Delete m68*-ericsson-* target.
11706 2003-01-31 Adam Fedor <fedor@gnu.org>
11708 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11709 Remove duplicate/shadowing variable of same name.
11711 2003-01-30 Jim Blandy <jimb@redhat.com>
11713 * symfile.c (find_separate_debug_file): Assert that the objfile's
11714 directory name we compute ends with a slash, and then assume that
11715 that's so everywhere we use it.
11717 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11719 * valops.c (value_assign): Flush frame cache after stores to memory
11722 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11724 * Makefile.in (mon960-rom.o): Delete rule.
11725 * mon960-rom.c: Delete file.
11727 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11729 * d10v-tdep.c: Include "frame-unwind.h".
11730 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11732 (next_addr, uses_frame): Delete.
11733 (struct d10v_unwind_cache): Define.
11734 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11735 Use info instead of next_addr and uses_frame globals.
11736 (d10v_frame_init_saved_regs): Delete function.
11737 (d10v_init_extra_frame_info): Delete function.
11738 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11739 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11740 init_frame_pc or frame_saved_pc.
11741 (d10v_pop_frame): Delete function.
11742 (do_d10v_pop_frame): Delete function.
11743 (d10v_frame_chain): Delete function.
11744 (d10v_frame_chain_valid): Delete function.
11745 (d10v_frame_pc_unwind): New function.
11746 (d10v_frame_id_unwind): New function.
11747 (saved_regs_unwinder): New function.
11748 (d10v_frame_register_unwind): New function.
11749 (d10v_frame_pop): New function.
11750 (d10v_frame_unwind): New variable.
11751 (d10v_frame_p): New function.
11752 (d10v_frame_saved_pc): Delete function.
11753 * Makefile.in (d10v-tdep.o): Update dependencies.
11755 2003-01-30 J. Brobecker <brobecker@gnat.com>
11757 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11758 causing some regressions due to a change in the default value
11761 2003-01-29 Richard Henderson <rth@redhat.com>
11762 Elena Zannoni <ezannoni@redhat.com>
11763 Daniel Jacobowitz <drow@mvista.com>
11766 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11768 (RANGES_SECTION): New.
11769 (dwarf_ranges_buffer): New variable.
11770 (struct comp_unit_head): Add member "die".
11771 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11772 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11773 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11774 (dwarf2_locate_sections): Likewise.
11775 (dwarf2_build_psymtabs): Read .debug_ranges.
11776 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11777 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11778 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11779 Look for DW_AT_ranges and return the bounding box.
11781 2003-01-29 Brian Ford <ford@vss.fsi.com>
11783 * win32-nat.c (cygwin_pid): Removed as unused.
11784 (child_attach): Try fall back to Cygwin pid.
11786 2003-01-29 Jim Blandy <jimb@redhat.com>
11788 * objfiles.h (struct objfile): Doc fix.
11790 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11792 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11793 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11794 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11795 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11796 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11797 (FRAME_SAVED_PC): Change to a function with predicate.
11798 * gdbarch.h, gdbarch.c: Re-generate.
11800 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11802 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11804 * complaints.c (complain): Delete function.
11805 * complaints.h (struct deprecated_complaint): Delete definition.
11806 (complain): Delete declaration.
11808 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11810 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11813 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11815 * sentinel-frame.h, sentinel-frame.c: New files.
11816 * Makefile.in (frame.o): Update dependencies.
11817 (SFILES): Add sentinel-frame.c.
11818 (sentinel_frame_h): Define.
11819 (COMMON_OBS): Add sentinel-frame.o.
11820 (sentinel-frame.o): Specify dependencies.
11821 * frame.c: Include "sentinel-frame.h".
11822 (frame_register_unwind): Rewrite assuming that there is always a a
11824 (frame_register, generic_unwind_get_saved_register): Ditto.
11825 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11826 (create_sentinel_frame, unwind_to_current_frame): New functions.
11827 (get_current_frame): Rewrite using create_sentinel_frame and
11828 unwind_to_current_frame. When possible, always create a frame.
11829 (create_new_frame): Set next to the sentinel frame.
11830 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11831 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11832 ID cache when necessary.
11833 (frame_saved_regs_id_unwind): Use frame_relative_level.
11834 (deprecated_generic_get_saved_register): Use frame_relative_level,
11835 get_frame_saved_regs, get_frame_pc, get_frame_base and
11837 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11840 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11842 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11844 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11846 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11847 (maintenance_set_profile_cmd): Use error () instead of warning ().
11849 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11851 * configure.in: Check that -pg works if using --enable-profiling.
11852 Check for monstartup and _mcleanup regardless of --enable-profiling.
11853 * maint.c: Check for monstartup and _mcleanup before using them.
11854 * config.in: Regenerated.
11855 * configure: Regenerated.
11857 2003-01-24 Nick Clifton <nickc@redhat.com>
11859 * Add sh2e support:
11861 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11863 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11864 (sh2e_show_regs): New.
11865 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11866 * config/sh/tm-sh.h: Added sh2e to comments.
11868 2003-01-23 Jim Blandy <jimb@redhat.com>
11870 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11871 symbols found)" message here; we haven't checked for a separate
11872 debug info file yet, so we don't know yet.
11873 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11874 we've looked everywhere. Also, there's no need to print a special
11875 message when we're loading the separate debug info file: the one
11876 symbol_file_add prints is fine.
11878 2003-01-23 Alexander Larsson <alexl@redhat.com>
11879 Jim Blandy <jimb@redhat.com>
11881 Add support for executables whose debug info has been separated
11882 out into a separate file, leaving only a link behind.
11883 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11884 and separate_debug_objfile_backlink.
11885 (put_objfile_before): New declaration.
11886 * symfile.c: #include "filenames.h".
11887 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11888 debug info in a separate file, read that, too. Save the addrs
11889 argument, so we can use it again to read the separated debug info;
11890 syms_from_objfile modifies the table we pass it.
11891 (reread_symbols): After re-reading an objfile, call
11892 reread_separate_symbols to refresh its separate debug info
11893 objfile, if it has one.
11894 (reread_separate_symbols, find_separate_debug_file,
11895 get_debug_link_info, separate_debug_file_exists): New functions.
11896 (debug_file_directory): New global var.
11897 (_initialize_symfile): Initialize debug_file_directory, and
11898 provide the new `set debug-file-directory' command to let the user
11900 * objfiles.c (free_objfile): If this objfile has its debug info in
11901 a separate objfile, free that one too. If this is itself a
11902 separate debug info objfile, clear our parent's backlink.
11903 (put_objfile_before): New function.
11904 * utils.c (gnu_debuglink_crc32): New function.
11905 * defs.h (gnu_debuglink_crc32): New declaration.
11906 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11907 * configure.in: Handle --with-separate-debug-dir config option.
11908 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11909 * acconfig.h (DEBUGDIR): New macro.
11910 * configure, aclocal.m4, config.in: Regenerated.
11912 2003-01-22 Jim Blandy <jimb@redhat.com>
11914 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11915 like the old symbol_file_add, but taking new arguments: you can
11916 now pass in either a `struct section_addr_info' list to say where
11917 each section is loaded, or a `struct section_offsets' table. Pass
11918 these new arguments through to syms_from_objfile as appropriate.
11919 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11920 with the appropriate quiescent values for the new arguments.
11922 * symfile.c: #include "gdb_assert.h".
11923 (syms_from_objfile): Add the ability to pass in a section offset
11924 table directly, as an alternative to the section_addr_info table.
11925 Document arguments better.
11926 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11927 * symfile.h (syms_from_objfile): Update declaration.
11928 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11930 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11932 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11934 Original patch by Tom Tromey <tromey@cygnus.com> and
11935 Jason Molenda <jmolenda@apple.com>.
11936 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11937 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
11938 * NEWS: Mention profiling.
11939 * configure.in (--enable-gdbtk): Fix typo.
11940 (--enable-profiling): New. Set PROFILE_CFLAGS.
11941 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
11943 (profiling_state): New variable.
11944 (mcleanup_wrapper): New function.
11945 (_initialize_maint): Remove NOTYET, fix call to
11946 add_setshow_boolean_cmd for "maint set profile".
11947 * configure: Regenerated.
11949 2003-01-21 Martin M. Hunt <hunt@redhat.com>
11951 * Makefile.in (install-gdbtk): Install PNG images too.
11953 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11955 * exec.c (text_start): Delete global variable.
11956 (exec_file_attach): Make text_start local to the function.
11957 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
11958 * valops.c (hand_function_call): Delete code that handles
11959 BEFORE_TEXT_END and AFTER_TEXT_END.
11960 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
11961 of CALL_DUMMY_LOCATION.
11962 * gdbarch.c: Regenerate.
11963 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
11964 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
11965 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
11966 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
11967 (text_end): Delete extern declaration.
11969 2003-01-21 Andrew Cagney <ac131313@redhat.com>
11971 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
11972 * blockframe.c (backtrace_below_main): Move to "frame.c".
11973 (frame_chain_valid): Delete check for backtrace_below_main.
11974 (_initialize_blockframe): Delete initialization, move ``set
11975 backtrace-below-main'' command to "frame.c".
11976 (do_flush_frames_sfunc): Delete function.
11977 * frame.c: Include "command.h" and "gdbcmd.h".
11978 (frame_type_from_pc): New function.
11979 (create_new_frame): Use frame_type_from_pc.
11980 (legacy_get_prev_frame): New function.
11981 (get_prev_frame): Rewrite. When an old style frame, call
11982 legacy_get_prev_frame. Otherwize, unwind the PC first.
11983 (_initialize_frame): Add ``set backtrace-below-main'' command.
11984 * Makefile.in (frame.o): Update dependencies.
11986 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11988 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
11989 DEPRECATED_REGISTERS_INFO.
11991 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11993 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
11994 Maintainers'. Update `Various Maintainers'.
11996 2003-01-19 Andrew Cagney <ac131313@redhat.com>
11998 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
11999 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12000 Suppress actual parameters when `-'.
12001 * gdbarch.h, gdbarch.c: Regenerate.
12003 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12005 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12006 code handling dummy frames.
12008 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12010 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12011 (struct frame_unwind): Add field pop.
12012 * frame.h (frame_pop): Declare.
12013 * frame.c (frame_saved_regs_pop): New function.
12014 (trad_frame_unwinder): Add frame_saved_regs_pop.
12015 (frame_pop): New function.
12016 * dummy-frame.c (dummy_frame_pop): New function.
12017 (discard_innermost_dummy): New function.
12018 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12019 (dummy_frame_unwind): Add dummy_frame_pop.
12020 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12021 * valops.c (hand_function_call): Ditto.
12022 * stack.c (return_command): Ditto.
12024 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12026 * cris-tdep.c: Fix function declaration indentation.
12027 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12028 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12029 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12030 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12031 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12032 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12034 2003-01-18 Michael Chastain <mec@shout.net>
12036 * README (Unpacking and Installation -- quick overview):
12037 Warn against ".../gdb-5.3/gdb/configure".
12039 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12041 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12042 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12043 (struct frame_unwind): Declare opaque.
12044 (dummy_frame_p): Declare function.
12045 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12046 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12047 * dummy-frame.c: Include "frame-unwind.h".
12048 (dummy_frame_p): New function.
12049 (dummy_frame_unwind): New variable.
12050 * frame.c: Include "frame-unwind.h".
12051 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12052 to use the new unwind field.
12053 (set_unwind_by_pc): Delete function.
12054 (create_new_frame, get_prev_frame): Set unwind field using
12055 frame_unwind_find_by_pc.
12056 (trad_frame_unwind, trad_frame_unwinder): New variables.
12057 * frame.h (trad_frame_unwind): Declare variable.
12058 (frame_id_unwind_ftype): Delete declaration.
12059 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12060 (struct frame_unwind): Declare opaque.
12061 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12062 register_unwind with a single unwind pointer.
12063 * frame-unwind.h, frame-unwind.c: New files.
12064 * Makefile.in (SFILES): Add frame-unwind.c.
12065 (frame_unwind_h): Define.
12066 (COMMON_OBS): Add frame-unwind.o.
12067 (frame-unwind.o): Specify dependencies.
12068 (frame.o, dummy-frame.o): Update dependencies.
12070 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12072 * ada-valprint.c: Eliminate PTR.
12073 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12074 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12075 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12076 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12077 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12078 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12079 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12081 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12083 * main.c (captured_main): Don't use PTR.
12084 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12085 * gdbtypes.c (lookup_primitive_typename): Ditto.
12086 (lookup_struct_elt_type): Ditto.
12087 * f-valprint.c (info_common_command): Ditto.
12088 (list_all_visible_commons): Ditto.
12089 * jv-typeprint.c (java_type_print_base): Ditto.
12091 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12092 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12093 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12094 i386-interix-nat.c and i386-interix-tdep.c. Rename
12095 m68klinux-nat.c and m68klinux-tdep.c. Rename
12096 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12097 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12098 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12099 * main.c (captured_main): Use xfree, not free.
12101 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12103 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12104 ID back using a parameter.
12105 * frame.c (frame_id_unwind): Update call.
12106 (frame_saved_regs_id_unwind): Update.
12107 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12108 * dummy-frame.h (struct frame_id): Add opaque declaration.
12109 (dummy_frame_id_unwind): Update declaration.
12111 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12113 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12115 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12117 * MAINTAINERS (Stephen P. Smith): Updated email address.
12119 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12122 * breakpoint.c (until_break_command): Add new argument. Use it to
12123 decide whether to stop only at the current frame or not.
12124 * breakpoint.h (until_break_command): Update prototype.
12125 * infcmd.c (until_command): Add new argument to until_break_command
12127 (advance_command): New function.
12128 (_initialize_infcmd): Update help string for 'until' command.
12129 Add new 'advance' command.
12131 2003-01-14 David Carlton <carlton@math.stanford.edu>
12133 * linespec.c (decode_line_1): Normalize comments.
12134 (set_flags): Ditto.
12135 (locate_first_half): Ditto.
12136 (decode_compound): Ditto.
12137 (symtab_from_filename): Ditto.
12138 (decode_all_digits): Ditto.
12139 (decode_dollar): Ditto.
12140 (find_methods): Ditto.
12141 (find_toplevel_char): Ditto.
12143 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12145 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12146 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12147 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12148 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12149 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12150 * language.c, language.h, m32r-tdep.c: Update copyright.
12151 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12152 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12153 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12154 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12155 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12156 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12158 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12160 * stabsread.h (process_later, resolve_cfront_continuation):
12162 Update copyright years.
12163 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12164 Update copyright year.
12165 * dbxread.c(struct cont_elem): Obsolete.
12166 (process_later, process_now): Obsolete functions.
12167 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12168 Update copyright year.
12169 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12170 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12171 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12172 (parse_partial_symbols): Obsolete cfront support.
12174 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12176 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12177 read_cfront_baseclasses, read_cfront_member_functions,
12178 resolve_cfront_continuation,read_cfront_static_fields,
12179 copy_cfront_struct_fields): Obsolete functions.
12180 (define_symbol, read_one_struct_field): Obsolete cfront support.
12181 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12182 Update Copyright year.
12184 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12186 * stack.c (print_frame_info, print_stack_frame_base_stub,
12187 print_stack_frame_base, show_and_print_stack_frame_stub,
12188 show_and_print_stack_frame, print_only_stack_frame_stub,
12189 print_only_stack_frame): Delete functions.
12190 (print_stack_frame_stub): Call print_frame_info instead of
12191 print_frame_info_base.
12192 (print_frame_info_base): Rename to print_frame_info.
12193 (backtrace_command_1): Call print_frame_info, instead of
12194 print_frame_info_base.
12195 (current_frame_command): Call print_stack_frame, instead of
12196 print_only_stack_frame.
12197 (frame_command): Call print_stack_frame, instead of
12198 show_and_print_stack_frame.
12199 (up_command): Ditto.
12200 (down_command): Ditto.
12201 * frame.h (print_only_stack_frame): Delete prototype.
12202 * infrun.c (normal_stop): Call print_stack_frame, instead of
12203 show_and_print_stack_frame.
12204 * thread.c (info_threads_command): Call print_stack_frame, instead
12205 of print_only_stack_frame.
12207 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12209 * README (Graphical interface to GDB): Update URL. Point at
12212 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12215 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12217 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12220 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12222 * thread-db.c (attach_thread): Prototype.
12223 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12224 thread information (ti), and valid flags (th_valid, ti_valid).
12225 (attach_thread): Move target_pid_to_str call to after the thread
12226 is added to GDB's list. Initialize the cache.
12227 (thread_get_info_callback, thread_db_map_id2thr)
12228 (thread_db_get_info): New functions.
12229 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12230 (thread_db_store_registers, thread_db_thread_alive)
12231 (thread_db_get_thread_local_address): Use them.
12232 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12233 of calling error() for threads in unknown state.
12235 (clear_lwpid_callback): New function.
12236 (thread_db_resume): Use it to clear the cache.
12238 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12240 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12241 (resume_callback): Remove dead code.
12243 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12245 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12247 * gdbarch.h, gdbarch.c: Regenerate.
12248 * stack.c (frame_info): Only initialize the saved registers when
12249 FRAME_INIT_SAVED_REGS_P.
12250 * frame.c (frame_saved_regs_register_unwind): Assert
12251 FRAME_INIT_SAVED_REGS_P.
12252 (deprecated_generic_get_saved_register): Ditto.
12254 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12256 * source.c (openp): Squelch warning about "filename".
12258 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12260 * source.c (openp): If the file does not exist don't necessarily
12263 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12266 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12267 (integer_types_same_name_p): New function.
12268 (rank_one_type): Use it.
12269 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12271 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12273 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12275 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12276 * configure.in: Add --with-sysroot.
12277 * configure: Regenerated.
12278 * main.c (gdb_sysroot): New variable.
12279 (captured_main): Initialize gdb_sysroot.
12280 * defs.h (gdb_sysroot): New extern declaration.
12281 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12283 2003-01-12 Michael Chastain <mec@shout.net>
12285 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12287 2003-01-12 Michael Chastain <mec@shout.net>
12289 * top.c (print_gdb_version): Bump copyright year to 2003.
12291 2003-01-12 David Carlton <carlton@bactrian.org>
12293 * linespec.c (symtab_from_filename): Rename variable 's' to
12296 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12298 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12300 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12302 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12304 * d10v-tdep.c: Include "gdb_assert.h".
12305 (d10v_store_return_value): Rewrite to match current interface.
12306 (d10v_extract_struct_value_address): Ditto.
12307 (d10v_extract_return_value): Ditto.
12308 (d10v_gdbarch_init): Set store_restore_value,
12309 extract_struct_value_address and extract_return_value.
12311 2003-01-12 J. Brobecker <brobecker@gnat.com>
12313 * hpread.c (set_namestring): New procedure replacing the
12314 SET_NAMESTRING macro.
12315 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12316 by calls to set_namestring.
12318 2003-01-11 J. Brobecker <brobecker@gnat.com>
12320 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12321 a compilation warning.
12322 (hpread_process_one_debug_symbol): Likewise.
12324 2003-01-10 David Carlton <carlton@math.stanford.edu>
12326 * linespec.c (decode_line_1): Rename variable 's' to
12328 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12329 (decode_dollar): Ditto.
12330 (decode_variable): Ditto.
12331 (symbol_found): Ditto.
12333 2003-01-09 Michael Chastain <mec@shout.net>
12335 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12337 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12339 * win32-nat.c (set_process_privilege): New function.
12340 (child_attach): Call set_process_privilege() to enable the
12341 SE_DEBUG_NAME user privilege if available in process token.
12343 2003-01-10 J. Brobecker <brobecker@gnat.com>
12345 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12346 compilation error in the previous revision.
12348 2003-01-09 David Carlton <carlton@math.stanford.edu>
12350 * linespec.c: Update copyright.
12352 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12354 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12355 than inferior_ptid.
12356 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12358 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12360 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12362 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12363 (frame_saved_regs_zalloc): Update.
12364 (frame_saved_regs_register_unwind): Update.
12365 (create_new_frame): Update.
12366 (get_prev_frame): Update.
12367 (frame_extra_info_zalloc): Update.
12368 (deprecated_get_frame_saved_regs): Update.
12369 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12370 * cris-tdep.c: Update comment.
12372 * somsolib.h: Fix function indentation.
12373 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12374 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12375 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12376 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12377 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12379 * infrun.c (follow_fork): Use ISO C definition.
12380 * expprint.c (print_subexp): Use xfree instead of free.
12381 * charset.c: Include "gdb_string.h" instead of <string.h>.
12382 (register_iconv_charsets): Use ISO C definition.
12383 (host_charset, target_charset): Ditto.
12384 * Makefile.in (charset.o): Update dependencies.
12385 (mi-cmd-env.o): Update dependencies.
12387 2003-01-08 Andrew Cagney <cagney@redhat.com>
12389 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12392 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12394 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12395 build directories. Save edited gdb output in Mbuild.log. If a
12396 build fails, remove any final GDB executable.
12398 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12400 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12401 replacing hex constants with function names and stripping leading
12402 file name directory prefixes.
12404 2003-01-08 Andrew Cagney <cagney@redhat.com>
12406 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12409 2003-01-08 David Carlton <carlton@math.stanford.edu>
12411 * linespec.c (decode_line_1): Move code into decode_variable.
12412 (decode_variable): New function.
12414 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12416 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12418 2003-01-08 Andrew Cagney <cagney@redhat.com>
12420 * cris-tdep.c (cris_frame_init_saved_regs): Use
12421 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12423 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12424 (sh64_nofp_frame_init_saved_regs): Ditto.
12425 (sh_fp_frame_init_saved_regs): Ditto.
12426 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12427 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12428 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12429 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12431 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12433 * minsyms.c (lookup_minimal_symbol): Update comment.
12434 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12435 (lookup_minimal_symbol_solib_trampoline): Likewise.
12437 2003-01-08 Andrew Cagney <cagney@redhat.com>
12439 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12440 frame_relative_level.
12442 * alpha-tdep.c: Use get_frame_extra_info.
12443 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12444 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12445 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12446 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12448 * alpha-tdep.c: Use get_next_frame.
12449 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12450 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12451 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12452 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12453 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12454 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12455 * xstormy16-tdep.c: Ditto.
12457 2003-01-07 Andrew Cagney <cagney@redhat.com>
12459 * alpha-tdep.c: Use get_frame_base.
12460 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12461 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12462 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12463 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12464 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12465 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12466 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12467 * config/sparc/tm-sparc.h: Ditto.
12469 2003-01-07 Andrew Cagney <cagney@redhat.com>
12471 * frame.c (deprecated_get_frame_context): New function.
12472 (deprecated_set_frame_context): New function.
12473 * frame.h (deprecated_get_frame_context): Declare.
12474 (deprecated_set_frame_context): Declare.
12475 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12476 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12478 2003-01-07 Andrew Cagney <cagney@redhat.com>
12480 * frame.c (deprecated_set_frame_next_hack): New function.
12481 (deprecated_set_frame_prev_hack): New function.
12482 * frame.h (deprecated_set_frame_next_hack): Declare.
12483 (deprecated_set_frame_prev_hack): Declare.
12484 * mcore-tdep.c (analyze_dummy_frame): Use
12485 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12486 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12488 2003-01-07 David Carlton <carlton@math.stanford.edu>
12490 * linespec.c (decode_line_1): Move code into decode_dollar.
12491 (decode_dollar): New function.
12493 2003-01-07 Andrew Cagney <cagney@redhat.com>
12495 * arm-tdep.c (arm_init_extra_frame_info): Use
12496 deprecated_update_frame_base_hack.
12497 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12498 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12499 (fix_frame_pointer): Ditto.
12500 (mn10300_analyze_prologue): Ditto.
12502 2003-01-07 Andrew Cagney <cagney@redhat.com>
12504 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12505 extra_info using frame_extra_info_zalloc.
12506 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12507 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12508 (sh64_init_extra_frame_info): Ditto.
12509 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12510 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12511 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12512 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12513 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12514 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12515 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12516 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12517 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12518 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12519 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12520 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12522 * mn10300-tdep.c (analyze_dummy_frame): Use
12523 deprecated_set_frame_extra_info_hack.
12524 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12526 2003-01-07 J. Brobecker <brobecker@gnat.com>
12528 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12529 class is not scText. These do not define "real" procedures.
12530 (parse_partial_symbols): Likewise.
12532 2003-01-06 Michael Snyder <msnyder@redhat.com>
12534 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12536 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12538 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12539 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12540 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12541 deprecated_frame_xmalloc_with_cleanup.
12542 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12543 deprecated_frame_xmalloc.
12544 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12545 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12547 2003-01-06 Andrew Cagney <cagney@redhat.com>
12549 * x86-64-linux-tdep.c: Include "osabi.h".
12550 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12552 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12554 2003-01-06 Andrew Cagney <cagney@redhat.com>
12556 * MAINTAINERS (Target Instruction Set Architectures): Update
12557 arm-elf. Can be built with -Werror, has been multiarched.
12559 * value.h (unpack_long): Make buffer parameter constant.
12560 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12561 * scm-lang.h (scm_parse): Ditto.
12562 * defs.h (extract_typed_address, extract_address): Ditto.
12563 (extract_long_unsigned_integer): Ditto.
12564 * inferior.h (unsigned_pointer_to_address): Ditto.
12565 (signed_pointer_to_address): Ditto.
12566 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12567 * gdbarch.h, gdbarch.c: Regenerate.
12568 * findvar.c (extract_long_unsigned_integer): Update.
12569 (extract_address): Update.
12570 (extract_typed_address): Update.
12571 (unsigned_pointer_to_address): Update.
12572 * values.c (unpack_long): Update.
12573 (unpack_double): Update.
12574 (unpack_pointer): Update.
12575 (unpack_field_as_long): Update.
12576 * d10v-tdep.c (d10v_pointer_to_address): Update.
12577 * avr-tdep.c (avr_pointer_to_address): Update.
12578 * scm-lang.c (scm_unpack): Update.
12579 * findvar.c (signed_pointer_to_address): Update.
12581 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12583 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12584 since it is in i386-tdep.c.
12586 2003-01-06 J. Brobecker <brobecker@gnat.com>
12588 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12589 failure introduced in the previous change.
12591 2003-01-05 Michael Chastain <mec@shout.net>
12593 * README: Remove references to deleted remote-*.c files:
12594 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12595 remote-nrom.c, remote-os9k.c, remote-udi.c.
12597 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12599 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12600 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12601 i386_get_longjmp_target.
12603 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12605 * arm-tdep.c (prologue_cache): Change to a pointer.
12606 (_initialize_arm_tdep): Allocate prologue_cache.
12607 (check_prologue_cache): Update.
12608 (save_prologue_cache): Update.
12609 (arm_gdbarch_init): Update.
12611 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12613 * stabsread.c (update_method_name_from_physname): Call complaint()
12616 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12618 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12619 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12620 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12622 * blockframe.c: Include "gdbcmd.h" and "command.h".
12623 (backtrace_below_main): New variable.
12624 (file_frame_chain_valid, func_frame_chain_valid)
12625 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12626 (generic_func_frame_chain_valid): Remove functions.
12627 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12628 (_initialize_blockframe): New function.
12629 * Makefile.in (blockframe.o): Update dependencies.
12630 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12631 comment. Call frame_chain_valid ().
12632 * frame.h: Remove old prototypes. Add prototype for
12633 frame_chain_valid and update comments to match.
12634 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12635 Remove old comment.
12636 * gdbarch.h: Regenerated.
12637 * gdbarch.c: Regenerated.
12639 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12640 set_gdbarch_frame_chain_valid.
12641 * avr-tdep.c (avr_gdbarch_init): Likewise.
12642 * cris-tdep.c (cris_gdbarch_init): Likewise.
12643 * frv-tdep.c (frv_gdbarch_init): Likewise.
12644 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12645 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12646 (i386_nw_init_abi): Likewise.
12647 (i386_gdbarch_init): Likewise.
12648 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12649 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12650 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12651 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12652 * mips-tdep.c (mips_gdbarch_init): Likewise.
12653 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12654 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12655 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12656 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12657 * s390-tdep.c (s390_gdbarch_init): Likewise.
12658 * sh-tdep.c (sh_gdbarch_init): Likewise.
12659 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12660 * v850-tdep.c (v850_gdbarch_init): Likewise.
12661 * vax-tdep.c (vax_gdbarch_init): Likewise.
12662 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12664 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12665 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12666 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12667 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12668 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12669 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12670 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12671 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12673 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12675 * Makefile.in (acconfig_h): Remove incorrect macro.
12676 (config_h): Define.
12677 (osabi.o): Update dependencies.
12678 * configure.tgt: Set gdb_osabi based on target triplet.
12679 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12680 * configure: Regenerated.
12681 * config.in: Regenerated.
12682 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12683 (GDB_OSABI_DEFAULT): Define if not already defined.
12684 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12685 (set_osabi_string): New variables.
12686 (gdbarch_register_osabi): Add new OS ABI to
12687 gdb_osabi_available_names.
12688 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12689 (set_osabi, show_osabi): New functions.
12690 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12692 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12694 * arch-utils.c (gdbarch_info_init): Set osabi to
12695 GDB_OSABI_UNINITIALIZED.
12696 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12697 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12698 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12699 * gdbarch.c: Regenerated.
12700 * gdbarch.h: Regenerated.
12701 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12703 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12704 * osabi.h (enum gdb_osabi): Move to defs.h.
12705 (gdbarch_init_osabi): Update prototype.
12706 * defs.h (enum gdb_osabi): Moved here.
12707 * Makefile.in: Update dependencies.
12709 * alpha-tdep.h: Don't include "osabi.h".
12710 (struct gdbarch_tdep): Remove osabi member.
12711 * alpha-tdep.c: Include "osabi.h".
12712 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12713 iterate over arches. Update call to gdbarch_init_osabi.
12714 (alpha_dump_tdep): Don't dump osabi.
12715 * alpha-linux-tdep.c: Include "osabi.h".
12716 * alpha-osf1-tdep.c: Include "osabi.h".
12717 * alphafbsd-tdep.c: Include "osabi.h".
12718 * alphanbsd-tdep.c: Include "osabi.h".
12720 * arm-tdep.h: Don't include "osabi.h".
12721 (struct gdbarch_tdep): Remove osabi member.
12722 * arm-tdep.c: Include "osabi.h".
12723 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12724 iterate over arches. Update call to gdbarch_init_osabi.
12725 (arm_dump_tdep): Don't dump osabi.
12726 * arm-linux-tdep.c: Include "osabi.h".
12727 * armnbsd-tdep.c: Include "osabi.h".
12729 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12730 Update call to gdbarch_init_osabi.
12732 * i386-tdep.h: Don't include "osabi.h".
12733 (struct gdbarch_tdep): Remove osabi member.
12734 * i386-tdep.c: Include "osabi.h".
12735 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12736 iterate over arches. Update call to gdbarch_init_osabi.
12737 (i386_dump_tdep): Don't dump osabi.
12738 * i386-linux-tdep.c: Include "osabi.h".
12739 * i386-sol2-tdep.c: Include "osabi.h".
12740 * i386bsd-tdep.c: Include "osabi.h".
12741 * i386gnu-tdep.c: Include "osabi.h".
12742 * i386ly-tdep.c: Include "osabi.h".
12743 * i386nbsd-tdep.c: Include "osabi.h".
12744 * i386obsd-tdep.c: Include "osabi.h".
12746 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12747 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12748 check osabi when iterating over arches. Update call to
12749 gdbarch_init_osabi.
12750 (mips_dump_tdep): Don't dump osabi.
12752 * ns32k-tdep.h: Don't include "osabi.h".
12753 (struct gdbarch_tdep): Remove.
12754 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12755 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12756 allocate tdep. Update call to gdbarch_init_osabi.
12757 (ns32k_dump_tdep): Remove.
12758 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12759 * ns32knbsd-tdep.c: Include "osabi.h".
12761 * ppc-tdep.h: Don't include "osabi.h".
12762 (struct gdbarch_tdep): Remove osabi member.
12763 * rs6000-tdep.c: Include "osabi.h".
12764 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12765 osabi when iterating over arches. Update call to
12766 gdbarch_init_osabi.
12767 (rs6000_dump_tdep): Don't dump osabi.
12768 * ppc-linux-tdep.c: Include "osabi.h".
12769 * ppcnbsd-tdep.c: Include "osabi.h".
12771 * sh-tdep.h: Don't include "osabi.h".
12772 (struct gdbarch_tdep): Remove osabi member.
12773 * sh-tdep.c: Include "osabi.h".
12774 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12775 iterate over arches. Update call to gdbarch_init_osabi.
12776 (sh_dump_tdep): Don't dump osabi.
12777 * shnbsd-tdep.c: Include "osabi.h".
12779 * sparc-tdep.c: Include "osabi.h".
12780 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12781 iterate over arches. Update call to gdbarch_init_osabi.
12782 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12785 * vax-tdep.h: Don't include "osabi.h".
12786 (struct gdbarch_tdep): Remove.
12787 * vax-tdep.c: Include "osabi.h".
12788 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12789 iterate over arches. Don't allocate tdep. Update call
12790 to gdbarch_init_osabi.
12791 (vax_dump_tdep): Remove.
12792 (_initialize_vax_tdep): Update call to gdbarch_register.
12794 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12796 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12798 (breakpoint_re_set_one): Don't fetch the value for a disabled
12801 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12803 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12804 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12805 (COERCE_FLOAT_TO_DOUBLE): Remove.
12806 * gdbarch.c: Regenerate.
12807 * gdbarch.h: Regenerate.
12808 * Makefile.in: Remove value_h from gdbarch_h.
12809 * valops.c (coerce_float_to_double): New variable.
12810 (default_coerce_float_to_double): Remove.
12811 (standard_coerce_float_to_double): Remove.
12812 (value_arg_coerce): Use coerce_float_to_double.
12813 (_initialize_valops): Add "set coerce-float-to-double".
12814 * value.h (default_coerce_float_to_double): Remove prototype.
12815 (standard_coerce_float_to_double): Remove prototype.
12817 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12819 * mdebugread.c (parse_symbol): Likewise.
12820 * stabsread.c (define_symbol): Mark all functions as prototyped.
12822 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12823 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12824 set_gdbarch_coerce_float_to_double.
12825 * arm-tdep.c (arm_gdbarch_init): Likewise.
12826 * frv-tdep.c (frv_gdbarch_init): Likewise.
12827 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12828 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12829 * mips-tdep.c (mips_gdbarch_init): Likewise.
12830 (mips_coerce_float_to_double): Remove.
12831 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12832 (rs6000_coerce_float_to_double): Remove.
12833 * s390-tdep.c (s390_gdbarch_init): Likewise.
12834 * sh-tdep.c (sh_gdbarch_init): Likewise.
12835 (sh_coerce_float_to_double): Remove.
12836 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12837 (sparc_coerce_float_to_double): Remove.
12838 * v850-tdep.c (v850_gdbarch_init): Likewise.
12839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12840 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12841 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12842 (hppa_coerce_float_to_double): Remove prototype.
12843 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12845 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12847 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12849 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12851 Suggested by Stewart Brown <sb24@avaya.com>:
12852 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12853 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12854 (c_type_print_varspec_suffix): Likewise.
12856 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12858 * configure.in: Don't set and AC_SUBST SUBDIRS.
12859 * configure: Regenerated.
12861 * configure.in: Remove code dealing with shared libraries.
12862 * Makefile.in: Remove HLDFLAGS and HLDENV.
12863 * configure: Regenerated.
12865 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12867 * frame.c (deprecated_frame_xmalloc): New function.
12868 (deprecated_set_frame_saved_regs_hack): New function.
12869 (deprecated_set_frame_extra_info_hack): New function.
12870 * frame.h (deprecated_frame_xmalloc): Declare.
12871 (deprecated_set_frame_saved_regs_hack): Declare.
12872 (deprecated_set_frame_extra_info_hack): Declare.
12874 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12876 * configure.in: Move code that provides the --enable-gdbtk option
12877 right after the code that handles the --enable-tui option, and
12878 polish it somewhat.
12879 * configure: Regenerated.
12881 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12882 AC_CHECK_FUNCS and remove the old check for pread64.
12883 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12884 * acconfig.h (_GNU_SOURCE): Add.
12885 (HAVE_PREAD64): Remove.
12886 * configure, aclocal.m4, config.in: Regenerated.
12888 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12890 * alpha-tdep.c: Use get_frame_saved_regs.
12891 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12892 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12893 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12894 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12895 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12897 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12899 * configure.in: Remove all use of the SUBDIRS variable; add
12900 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12901 code providing the --enable-multi-ice option, and move it right in
12902 front of the code that checks whether gdbserver is supported.
12904 * configure: Regenerated.
12905 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12908 2003-01-03 Andrew Cagney <cagney@redhat.com>
12910 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12911 * avr-tdep.c, cris-tdep.c: Ditto.
12912 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12913 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12915 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12917 * configure.in: Remove --enable-netrom option.
12918 * configure: Regenerated.
12920 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12922 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12923 declaration for `struct re_pattern_buffer' instead.
12924 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12926 2003-01-03 J. Brobecker <brobecker@gnat.com>
12928 * mdebugread.c (parse_symbol): Count until the stEnd matching
12929 the structure name.
12931 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12933 * configure.in: Remove --with-cpu option.
12934 subscripts. Remove evil changequotes here.
12935 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12936 * config.in, configure: Regenerated.
12938 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
12939 * configure.in: Cleanup section that sources GDB and BFD configure
12940 subscripts. Remove evil changequotes here.
12941 * config.in, configure: Regenerated.
12943 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12945 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
12946 frame accessor methods.
12947 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12948 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12949 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
12950 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
12951 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12952 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12953 * z8k-tdep.c: Ditto.
12955 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12957 * configure.in: Remove UI_OUT configuration code.
12958 * ada-lang.c: Update assuming UI_OUT is always true.
12959 * Makefile.in (UIOUT_CFLAGS): Remove.
12960 * configure: Regenerated.
12961 * TODO: Remove blurb about elimination of -DUI_OUT.
12963 * configure.in: Move code that provides the --enable-gdbcli,
12964 --enable-gdbmi options right before the code that handles the
12965 --enable-tui option. Polish a bit.
12966 * configure: Regenerated.
12968 * configure.in: Rewrite check for GNU regex and the
12969 --without-included regex option, and move it into the "Checks for
12970 library functions" section. This makes us use the system regex
12971 again by default on systems with version 2 of the GNU C library.
12972 This was apparently broken.
12973 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
12974 * acconfig.h (USE_INCLUDED_REGEX): Remove.
12975 * config.in, configure: Regenerated.
12977 * configure.in: Move code that provides the --enable-tui option
12978 before the "Checks for libraries" section. Polish the code
12979 somewhat and set need_curses to yes if we build the TUI. Rewrite
12980 code that looks for a library providing termcap functionality to
12981 match more closely what's done in the Readline library, and move
12982 it into to the "Checks for libraries" section.
12983 * configure: Regenerated.
12984 * Makefile.in (TERMCAP): Remove variable.
12985 * config/i386/go32.mh (TERMCAP): Remove variable.
12987 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12989 * MAINTAINERS: Mention gdb_mbuild.sh.
12990 * gdb_mbuild.sh: Rewrite.
12992 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12994 * configure.in: Fix typo in last change.
12995 * config.in, configure: Regenerated.
12997 2003-01-02 Andrew Cagney <ac131313@redhat.com>
12999 * valarith.c (value_binop): Delete obsolete code and comments.
13000 * configure.host: Ditto.
13001 * buildsym.h (make_blockvector): Ditto.
13002 * buildsym.c (make_blockvector): Ditto.
13003 * defs.h (enum language): Ditto.
13004 (chill_demangle): Ditto.
13005 * elfread.c (elf_symtab_read): Ditto.
13006 * dwarfread.c (CHILL_PRODUCER): Ditto.
13007 (set_cu_language): Ditto.
13008 (handle_producer): Ditto.
13009 * expprint.c (print_subexp): Ditto.
13010 * gdbtypes.c (chill_varying_type): Ditto.
13011 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13012 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13013 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13014 (chill_varying_type): Ditto.
13015 * language.h (_LANG_chill): Ditto.
13016 * language.c (binop_result_type, integral_type): Ditto.
13017 (character_type, string_type, structured_type): Ditto.
13018 (lang_bool_type, binop_type_check): Ditto.
13019 * stabsread.h (os9k_stabs): Ditto.
13020 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13021 (define_symbol, read_type, read_struct_fields): Ditto.
13022 (read_array_type, read_enum_type, read_huge_number): Ditto.
13023 (read_range_type, start_stabs): Ditto.
13024 * symfile.c (init_filename_language_table): Ditto.
13025 (add_psymbol_with_dem_name_to_list): Ditto.
13026 * symtab.c (symbol_init_language_specific): Ditto.
13027 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13028 * symtab.h (struct general_symbol_info): Ditto.
13029 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13030 * typeprint.c (typedef_print): Ditto.
13031 * utils.c (fprintf_symbol_filtered): Ditto.
13032 * valops.c (value_cast, search_struct_field, value_slice): Delete
13034 (varying_to_slice): Delete function.
13035 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13036 (varying_to_slice): Delete declaration.
13037 * MAINTAINERS: Update.
13039 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13041 * configure.in: Reorganize "Checks for library functions section"
13042 a bit. Remove check for `btowc' and `isascii' functions.
13043 * configure: Regenerated.
13045 * acconfig.h (_MSE_INT_H): Remove.
13046 * configure.in: Create "Checks for header files" section, and move
13047 appropriate tests there. Don't check for objlist.h, wchar.h,
13048 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13049 misdetection fix. Also add "Checks for types", "Checks for
13050 compiler characteristics" and "Checks for library functions"
13052 * config.in, configure: Regenerated.
13054 * configure.in: Create "Checks for programs" section, and move
13055 appropriate tests there.
13057 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13059 * configure.in: Create "Checks for libraries" section, and move
13060 appropriate tests there. Cleanup check for wctype in libw. Use
13061 AC_SEARCH_LIBS to see whether we need libsocket.
13062 * configure: Regenerated.
13064 For older changes see ChangeLog-2002
13070 version-control: never