1 2003-10-16 Andrew Cagney <cagney@redhat.com>
3 * infrun.c (handle_inferior_event): Add comment about
4 "frame_id_inner" being too weak.
6 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
8 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
9 second parameter, which is always null. Remove
10 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
11 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
13 * somsolib.c (som_solib_create_inferior_hook,
14 som_solib_desire_dynamic_linker_symbols): Update callers.
15 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
17 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
19 * remote-m32r-sdi.c : New file, interface to m32r on-chip
20 debug interface, SDI (Scalable Debug Interface).
21 * NEWS: Mention m32r SDI protocol was supported.
22 * Makefile.in (remote-m32r-sdi.o): Add build rule.
23 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
25 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
27 * ia64-linux-tdep.c: Include gdbcore.h.
28 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
29 (ia64_linux_sigcontext_register_addr): Find the address of the
30 sigcontext area stored in the sigframe instead of using
31 a magic offset constant.
33 2003-10-15 Andrew Cagney <cagney@redhat.com>
35 * remote.c (remote_search): Delete function.
36 * target.h (target_search): Delete disabled macro.
37 (struct target_ops): Delete disabled field "to_search".
39 2003-10-14 Kevin Buettner <kevinb@redhat.com>
41 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
42 instead of deprecated_inside_entry_file().
44 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
46 * sh-tdep.c: Fix copy/paste hangover in comment.
47 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
49 (sh3e_sh4_extract_return_value): Ditto.
51 2003-10-13 Richard Henderson <rth@redhat.com>
53 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
54 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
55 match c_val_print a bit closer.
57 2003-10-13 Kevin Buettner <kevinb@redhat.com>
59 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
60 (frv_gdbarch_adjust_breakpoint_address): New function.
61 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
64 2003-10-13 Kevin Buettner <kevinb@redhat.com>
66 * breakpoint.h (struct breakpoint): Add new member
67 ``requested_address''.
68 * breakpoint.c (breakpoint_adjustment_warning)
69 (adjust_breakpoint_address): New static functions.
70 (print_it_typical): Issue warning if breakpoint's address is different
71 from its requested address.
72 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
73 (breakpoint_re_set_one): Set breakpoint's
74 ``requested_address'' field. Set ``address'' field to the
75 result of calling adjust_breakpoint_address() on the requested
78 2003-10-13 Kevin Buettner <kevinb@redhat.com>
80 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
81 * gdbarch.h, gdbarch.c: Regenerate.
83 2003-10-11 Mark Kettenis <kettenis@gnu.org>
85 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
88 * i386fbsd-tdep.c: New file.
89 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
90 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
91 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
93 (_initialize_i386fbsd_tdep): New function.
94 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
95 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
96 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
97 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
99 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
100 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
101 to initialize TDEP->sc_num_regs.
102 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
103 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
104 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
105 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
106 FreeBSD ELF OS/ABI's here.
107 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
108 (i386fbsd-tdep.o): New target.
109 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
110 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
112 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
113 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
114 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
115 in initialization of TDEP->sc_num_regs.
117 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
118 (x86_64_init_abi): Initialize regset_from_core_section if
121 * i386-tdep.c (i386_regset_from_core_section): New function.
122 (i386_gdbarch_init): Initialize regset_from_core_section if
124 * i386-tdep.h (i386_regset_from_core_section): New declaration.
126 * i386-tdep.h (struct regset): Declare opaque.
128 * gdbarch.sh (regset_from_core_section): New method.
129 (struct regset): Declare opaque.
130 * gdbarch.c, gdbarch.h: Regenerated.
132 2003-10-11 Alan Modra <amodra@bigpond.net.au>
134 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
135 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
136 Correct test for pc within section.
138 2003-10-11 Mark Kettenis <kettenis@gnu.org>
140 * gdbarch.sh: Remove trailing whitepsace from comments.
142 2003-10-08 Roland McGrath <roland@redhat.com>
144 * gcore.c (make_mem_sec): Function removed, folded into ...
145 (gcore_create_callback): ... here. To omit a section, clear its
146 SEC_LOAD bit rather than zeroing its size.
147 Omit read-only sections only if they correspond to a known disk file.
148 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
150 2003-10-10 Michael Snyder <msnyder@redhat.com>
152 * d10v-tdep.c: Fix typo in comment.
154 2003-10-10 Andrew Cagney <cagney@redhat.com>
156 * rs6000-tdep.c (e500_store_return_value): Delete function.
157 (e500_extract_return_value): Delete function.
158 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
159 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
160 "ppc_sysv_abi_restore_return_value" where applicable.
161 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
162 (ppc_sysv_abi_extract_return_value): Declare.
163 (ppc_sysv_abi_broken_store_return_value): Declare.
164 (ppc_sysv_abi_broken_extract_return_value): Declare.
165 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
166 * ppc-sysv-tdep.c (return_value_convention): Move definition to
168 (do_ppc_sysv_return_value): New function.
169 (ppc_sysv_abi_extract_return_value): New function.
170 (ppc_sysv_abi_store_return_value): New function.
171 (ppc_sysv_abi_broken_extract_return_value): New function.
172 (ppc_sysv_abi_broken_store_return_value): New function.
173 (ppc_sysv_abi_use_struct_convention): Call
174 do_ppc_sysv_return_value.
176 2003-10-10 J. Brobecker <brobecker@gnat.com>
178 * blockframe.c (inside_main_func): No longer use symbol_lookup()
179 to lookup the main function symbol.
181 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
183 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
185 (sh_push_dummy_call_fpu): Fix argument passing rules.
186 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
188 (sh3e_sh4_store_return_value): Ditto.
190 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
192 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
195 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
197 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
198 more readable code. Accomodate passing of bitfields.
200 2003-10-10 Andrew Cagney <cagney@redhat.com>
202 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
203 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
204 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
205 * ppc-sysv-tdep.c: Include "gdb_assert.h".
206 (ppc64_sysv_abi_push_dummy_call): New function.
207 (ppc64_sysv_abi_broken_push_dummy_call): New function.
208 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
209 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
211 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
213 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
215 * d10v-tdep.c: Ditto.
216 * h8300-tdep.c: Ditto.
217 * remote-e7000.c: Ditto.
218 * remote-hms.c: Ditto.
219 * ser-e7kpc.c: Ditto.
224 * sh64-tdep.c: Ditto.
227 * config/d10v/d10v.mt: Ditto.
228 * config/sh/embed.mt: Ditto.
229 * config/sh/linux.mt: Ditto.
230 * config/sh/tm-linux.h: Ditto.
231 * config/sh/tm-sh.h: Ditto.
232 * config/sh/wince.mt: Ditto.
234 2003-10-09 Andrew Cagney <cagney@redhat.com>
236 * ppc-tdep.h (struct type): Declare opaque.
237 * x86-64-tdep.h (struct regcache): Declare opaque.
238 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
241 2003-10-09 Andrew Cagney <cagney@redhat.com>
243 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
244 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
245 (SOFTWARE_SINGLE_STEP_P): Ditto.
246 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
247 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
248 (SOFTWARE_SINGLE_STEP_P): Ditto.
249 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
250 software_single_step to rs6000_software_single_step.
252 2003-10-09 Andrew Cagney <cagney@redhat.com>
254 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
256 2003-10-09 Michael Snyder <msnyder@redhat.com>
258 * frame.h: Fix typo in comment.
259 * dummy-frame.c: Fix typo in comment.
260 * d10v-tdep.c: Random whitespace/comment tweaks.
262 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
264 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
265 (sh_push_dummy_code): Delete function, it's only used for dummy calls
268 Based on input by Stephen Clarke (stephen.clarke@superh.com):
269 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
272 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
274 * remote-mips.c (mips_initialize): Remove unneeded call to
275 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
277 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
279 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
282 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
284 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
285 for any lwp we resume.
286 (running_callback): Add lwps that have pending status events
287 against them to be considered running.
289 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
291 * m32r-tdep.c : Include "dis-asm.h".
292 * Makefile.in (m32r-tdep.o): Update dependencies.
294 2003-10-06 J. Brobecker <brobecker@gnat.com>
296 * completer.h (get_gdb_completer_word_break_characters): Delete.
297 * completer.c: include language.h.
298 (gdb_completer_word_break_characters): Delete.
299 (get_gdb_completer_word_break_characters): Delete.
300 (location_completer): Use the word break characters of the current
302 (complete_line): Likewise.
303 (line_completion_function): Likewise.
304 (skip_quoted_chars): Likewise.
305 * Makefile.in (completer.o): Add dependency on language.h.
306 * top.c (init_main): Set the readline word break characters
307 to GDB's default word break characters.
309 2003-10-06 J. Brobecker <brobecker@gnat.com>
311 * language.h (language_defn): new field, la_word_break_characters.
312 * language.c (unknown_language_defn): Set new field to
313 default_word_break_characters.
314 (auto_language_defn): Likewise.
315 (local_language_defn): Likewise.
316 * ada-lang.c (ada_language_defn): Likewise.
317 * c-lang.c (c_language_defn): Likewise.
318 (cplus_language_defn): Likewise.
319 (asm_language_defn): Likewise.
320 (minimal_language_defn): Likewise.
321 * f-lang.c (f_language_defn): Likewise.
322 * jv-lang.c (java_language_defn): Likewise.
323 * m2-lang.c (m2_language_defn): Likewise.
324 * objc-lang.c (objc_language_defn): Likewise.
325 * p-lang.c (pascal_language_defn): Likewise.
326 * scm-lang.c (scm_language_defn): Likewise.
328 2003-10-06 Andrew Cagney <cagney@redhat.com>
330 * ppc-sysv-tdep.c: Re-indent.
332 2003-10-06 J. Brobecker <brobecker@gnat.com>
334 * language.h (default_word_break_characters): Add prototype.
335 * language.c (default_word_break_characters): New function.
337 2003-10-06 Andreas Schwab <schwab@suse.de>
339 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
342 2003-10-06 Andrew Cagney <cagney@redhat.com>
344 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
346 (z8k-tdep.o): Delete custom build rule.
348 2003-10-06 Andrew Cagney <cagney@redhat.com>
350 * Makefile.in: Update all dependencies.
352 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
353 No longer list PA as as obsolete candidate. List m32r as
354 broken instead of obsolete.
356 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
357 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
358 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
359 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
360 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
361 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
362 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
363 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
364 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
365 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
366 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
367 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
368 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
369 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
370 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
371 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
372 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
373 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
374 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
375 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
376 * config/z8k/z8k.mt: Ditto.
378 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
379 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
380 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
381 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
382 sparclite were removed.
383 * configure.host, configure.tgt: Remove corresponding tuples.
385 * breakpoint.c, breakpoint.h: Remove obsolete code.
386 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
387 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
388 * stabsread.h, xcoffread.c: Ditto.
390 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
391 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
392 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
393 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
395 2003-10-06 David Lecomber <dsl@sources.redhat.com>
397 * f-valprint.c: Reformatting
399 2003-10-06 Mark Kettenis <kettenis@gnu.org>
401 * x86-64-tdep.c: Remove duplicate comment.
403 * x86-64-tdep.c (x86_64_store_return_value): Don't use
404 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
405 names for return values. This fixes a bug since we looked at %rbx
408 2003-10-05 Mark Kettenis <kettenis@gnu.org>
410 * x86-64-tdep.c: Include "regset.h".
412 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
413 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
415 * i386-tdep.c: Include "regset.h".
416 (i386_supply_gregset): New function.
417 (i386_supply_fpregset): New function.
418 (i386_gdbarch_init): Initialze register set-related members of
420 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
421 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
423 2003-10-03 Andrew Cagney <cagney@redhat.com>
425 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
426 set extract_return_value, store_return_value and
427 use_struct_convention to ppc64_sysv_abi_extract_return_value,
428 ppc64_sysv_abi_store_return_value and
429 ppc64_sysv_abi_use_struct_convention.
430 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
431 (ppc64_sysv_abi_store_return_value): Declare.
432 (ppc64_sysv_abi_use_struct_convention): Declare.
433 * ppc-sysv-tdep.c (enum return_value_convention): Define.
434 (ppc64_sysv_abi_extract_return_value): New function.
435 (ppc64_sysv_abi_store_return_value): New function.
436 (ppc64_sysv_abi_use_struct_convention): New function.
437 (ppc64_sysv_abi_return_value): New function.
439 2003-10-03 Andrew Cagney <cagney@redhat.com>
441 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
442 convert a descriptor to a function when it's in the ".opd"
445 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
447 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
448 reg_size to keep GCC silent.
450 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
452 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
453 base for DW_EH_PE_textrel encodings.
454 (read_encoded_value): Add a DW_EH_PE_textrel case.
455 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
458 2003-10-03 Mark Kettenis <kettenis@gnu.org>
460 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
462 2003-10-02 Andrew Cagney <cagney@redhat.com>
464 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
466 * gdbarch.h, gdbarch.c: Re-generate.
467 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
468 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
469 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
470 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
471 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
472 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
473 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
474 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
475 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
476 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
477 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
478 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
479 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
480 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
481 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
482 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
484 2003-10-02 Jim Blandy <jimb@redhat.com>
486 * dwarf2read.c (struct die_info): Doc fix.
488 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
490 * sh-tdep.c: Running thru gdb_indent.sh.
492 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
494 * sh-tdep.c (sh_justify_value_in_reg): New function.
495 (sh_stack_allocsize): Ditto.
496 (flt_argreg_array): New array used for floating point argument
498 (sh_init_flt_argreg): New function.
499 (sh_next_flt_argreg): Ditto.
500 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
501 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
502 Fix argument passing strategy.
503 (sh_push_dummy_call_nofpu): Ditto.
505 2003-10-01 Andrew Cagney <cagney@redhat.com>
507 * value.h (register_value_being_returned): Declare. Replace
508 "value_being_returned".
509 * infcall.c (call_function_by_hand): Use
510 register_value_being_returned.
511 * infcmd.c (print_return_value): Call
512 "register_value_being_returned", handle struct return locally.
513 * values.c (register_value_being_returned): New function. Replace
514 "value_being_returned".
516 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
518 * linux-proc.c (linux_do_registers): New function.
519 (linux_make_note_section): Use linux_do_registers in case of
520 single threaded inferior programs.
522 2003-10-01 Andrew Cagney <cagney@redhat.com>
524 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
525 use STRUCT_ADDR. When not using "struct return convention", pass
526 "0" to "value_being_returned". Add FIXMEs.
527 * infcmd.c (print_return_value): Pass an explicit 0/1 to
528 value_being_returned. Add comments.
529 * values.c (value_being_returned): Add fixme.
530 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
531 (hppa_value_returned_from_stack): Add FIXME.
533 2003-09-30 David Carlton <carlton@kealia.com>
535 * dwarf2read.c (struct die_info): Add 'parent' field; replace
536 'has_children' and 'next' by 'child' and 'sibling'.
537 (read_comp_unit): Rework algorithm, breaking body into
538 read_die_and_children and read_die_and_siblings.
539 (read_die_and_children, read_die_and_siblings): New.
540 (read_full_die): Add 'has_children' argument; set it instead of
541 the die's 'has_children' field. Minor formatting cleanup.
542 (free_die_list): Use die->child and die->sibling instead of
544 (dump_die_list): Ditto.
545 (sibling_die): Use die->sibling.
546 (psymtab_to_symtab_1): Use die's 'child' field in place of its
547 'has_children' and 'next' fields.
548 (process_die, read_file_scope, read_func_scope)
549 (read_lexical_block_scope, read_structure_scope)
550 (read_enumeration, read_array_type, read_common_block)
551 (read_namespace, read_subroutine_type, dump_die): Ditto.
553 2003-09-30 Andrew Cagney <cagney@redhat.com>
555 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
558 2003-09-30 Andrew Cagney <cagney@redhat.com>
560 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
561 REGISTER_VIRTUAL_SIZE.
562 * gdbarch.h, gdbarch.c: Regenerate.
563 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
564 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
565 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
567 2003-09-29 Andrew Cagney <cagney@redhat.com>
569 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
570 DEPRECATED_REGISTER_VIRTUAL_TYPE.
571 * gdbarch.h, gdbarch.c: Regenerate.
572 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
573 * sh64-tdep.c, sparc-tdep.c: Update.
575 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
576 * remote-vxmips.c (vx_read_register): Ditto.
577 * remote-vx68.c (vx_read_register): Ditto.
578 * gnu-nat.c (inf_validate_procs): Ditto.
580 2003-09-29 J. Brobecker <brobecker@gnat.com>
582 * infcall.c (call_function_by_hand): Fix build failure
583 introduced in the previous change to this file.
585 2003-09-29 Andrew Cagney <cagney@redhat.com>
587 * NEWS: Mention Objective-C.
589 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
591 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
592 test if the register has been saved on the stack.
593 (arm_scan_prologue_cache): When analysing the instruction
594 "str lr, [sp, #-4]", save the address where lr has been stored.
596 2003-09-28 Andrew Cagney <cagney@redhat.com>
598 * frame.c (frame_read_unsigned_register): Delete function.
599 * frame.h (frame_read_unsigned_register): Delete declaration.
600 * sparc-tdep.c (sparc_init_extra_frame_info): Use
601 get_frame_register_unsigned.
602 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
603 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
604 * d10v-tdep.c (d10v_print_registers_info): Ditto.
606 * frame.h (frame_read_register): Delete declaration.
607 * frame.c (frame_read_register): Delete function.
608 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
609 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
610 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
611 * mips-tdep.c (mips_register_to_value): Ditto.
612 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
613 * d10v-tdep.c (d10v_print_registers_info): Ditto.
615 * frame.c (frame_read_signed_register): Delete function.
616 (frame_read_unsigned_register): Update comments.
617 * frame.h (frame_read_signed_register): Delete declaration.
618 * h8300-tdep.c (h8300_print_register): Use
619 get_frame_register_signed.
620 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
622 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
623 Rename VALUE_RETURNED_FROM_STACK.
624 * infcmd.c (print_return_value): Update.
625 * infcall.c (call_function_by_hand): Update.
627 2003-09-28 Mark Kettenis <kettenis@gnu.org>
629 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
630 regcache argument and reverse the order of the other two
631 arguments. Remove local regcache variable. Determine
632 architecture from REGCACHE. Update comments.
633 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
634 reverse the order of the other two arguments. Remove local
635 regcache variable. Determine architecture from REGCACHE. Update
637 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
638 prototypes. Update comments.
639 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
641 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
643 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
644 * i386-interix-nat.c (supply_fpregset): Update.
645 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
646 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
647 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
648 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
649 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
651 * i386obsd-tdep.c (fetch_core_registers): Update.
652 * i386v4-nat.c (supply_fpregset): Update.
653 * x86-64-linux-nat.c (supply_fpregset): Update.
654 * x86-64-linux-tdep.c (fetch_core_registers): Update.
656 2003-09-27 Mark Kettenis <kettenis@gnu.org>
658 * i386-tdep.h: Put opaque declarations in alphabetical
659 order. Remove spurious whitespace.
660 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
661 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
662 * i386-tdep.c (MM0_REGNUM): Remove define.
663 (i386_mmx_regnum_p): Add gdbarch argument.
664 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
665 Rewrite using new macro definitions for FPU/SSE registers.
666 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
667 definitions from i387-tdep.h.
668 (i386_register_name): Update.
669 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
670 new macro definitions for FPU/SSE registers.
671 (i386_extract_return_value): Determine whether floating-point
672 registers are present by examining REGCACHE's architecture.
673 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
674 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
676 (i386_register_type): Update.
677 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
678 definitions for FPU registers. Use REGCACHE's architecture to
679 determine the appropriate register numbers.
680 (i386_pseudo_register_read, i386_pseudo_register_write,
681 i386_register_reggroup_p): Update.
682 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
684 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
685 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
686 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
687 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
688 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
689 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
691 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
692 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
693 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
694 definitions for FPU/SSE registers.
695 (FXSAVE_MXCSR_ADDR): New define.
696 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
698 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
699 (I387_ST0_REGNUM): Define.
701 * regcache.h (get_regcache_arch): New prototype.
702 * regcache.c (get_regcache_arch): New function.
704 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
707 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
708 Initialize using ARRAY_SIZE.
710 2003-09-27 Andrew Cagney <cagney@redhat.com>
712 * arch-utils.c (deprecated_init_frame_pc_default): Rename
713 "init_frame_pc_default".
714 * arch-utils.h (deprecated_init_frame_pc_default): Update.
715 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
716 * vax-tdep.c (vax_gdbarch_init): Update.
717 * v850-tdep.c (v850_gdbarch_init): Update.
718 * sh64-tdep.c (sh64_gdbarch_init): Update.
719 * s390-tdep.c (s390_gdbarch_init): Update.
720 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
721 * mcore-tdep.c (mcore_gdbarch_init): Update.
722 * h8300-tdep.c (h8300_gdbarch_init): Update.
723 * cris-tdep.c (cris_gdbarch_init): Update.
724 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
726 2003-09-26 Mark Kettenis <kettenis@gnu.org>
728 * regset.h: New file.
729 * Makefile.in (regset_h): Add.
731 2003-09-25 Andrew Cagney <cagney@redhat.com>
733 * frame.h (deprecated_frame_saved_regs): Rename
734 get_frame_saved_regs.
735 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
736 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
737 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
738 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
739 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
741 2003-09-25 Andrew Cagney <cagney@redhat.com>
743 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
744 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
746 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
747 arm*-*-* do not use the new frame code.
749 2003-09-25 David Carlton <carlton@kealia.com>
751 * c-exp.y: Remove 'register' declarations.
752 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
754 2003-09-25 David Carlton <carlton@kealia.com>
756 * c-exp.y: Include cp-support.h. Add qualified_type.
757 (yylex): Delete nested type hack; add comments.
758 * cp-namespace.c (cp_lookup_nested_type): New function.
759 * cp-support.h: Declare cp_lookup_nested_type.
760 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
761 instead of value_struct_elt_for_reference.
762 * valops.c: Include cp-support.h.
763 (value_aggregate_elt): New function.
764 (value_namespace_elt): Ditto.
765 (value_struct_elt_for_reference): Make static.
766 * value.h: Delete declaration of value_struct_elt_for_reference;
767 add declaration for value_aggregate_elt.
768 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
771 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
773 * stack.c: Include "reggroups.h".
774 (frame_info): Only display registers in all_reggroup.
775 * Makefile.in (stack.o): Update dependencies.
777 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
779 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
780 "add ip, sp #n" in the prologue.
781 (arm_scan_prologue): Ditto.
783 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
785 * MAINTAINERS (write after approval): Add myself.
787 2003-09-25 Andreas Schwab <schwab@suse.de>
789 * m68k-tdep.c: Include "dwarf2-frame.h".
790 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
791 * Makefile.in (m68k-tdep.o): Update dependencies.
793 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
795 * sh-tdep.c (struct frame_extra_info): Remove.
796 (struct sh_frame_cache): New structure.
797 (GET_SOURCE_REG): New macro extracting source register of an opcode.
798 (GET_TARGET_REG): Ditto but target register.
799 (GET_PUSHED_REG): Remove.
800 (IS_MOV_ARG_TO_REG): New macro.
801 (IS_MOV_ARG_TO_IND_R14): New macro.
802 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
803 (IS_MOVW_PCREL_TO_REG): New macro.
804 (IS_MOVL_PCREL_TO_REG): New macro.
805 (IS_SUB_REG_FROM_SP): New macro.
806 (IS_ARG_MOV): Remove.
807 (IS_MOV_TO_R14): Remove.
808 (IS_RESTORE_FP): New macro.
811 (IS_MOV_FP_SP): New macro.
812 (IS_ADD_REG_TO_FP): New macro.
813 (IS_ADD_IMM_FP): New macro.
814 (sh_skip_prologue_hard_way): Remove.
815 (sh_saved_pc_after_call): Remove.
816 (sh_frame_chain): Remove.
817 (sh_find_callers_reg): Remove.
818 (sh_nofp_frame_init_saved_regs): Remove.
819 (sh_fp_frame_init_saved_regs): Remove.
820 (sh_init_extra_frame_info): Remove.
821 (sh_analyze_prologue): New function.
822 (sh_skip_prologue): Remove deprecated code. Rely on new function
823 sh_analyze_prologue when after_prologue fails.
824 (sh_frame_saved_pc): Remove.
825 (sh_alloc_frame_cache): New function.
826 (sh_frame_cache): Ditto.
827 (sh_frame_prev_register): Ditto.
828 (sh_frame_this_id): Ditto.
829 (sh_frame_unwind): New structure defining the heuristic frame
831 (sh_frame_sniffer): New function.
832 (sh_unwind_sp): Ditto.
833 (sh_unwind_pc): Ditto.
834 (sh_unwind_dummy_id): Ditto.
835 (sh_frame_base_address): Ditto.
836 (sh_frame_base): New structure defining new frame base code.
837 (sh_in_function_epilogue_p): New function.
838 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
839 code and to call all new code instead. Initialize dwarf2 and
840 heuristic frame sniffer.
842 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
844 * parser-defs.h (struct exp_descriptor): New definition, containing
845 language-specific info for printing, prefixifying, dumping, and
846 evaluating expressions.
847 (exp_descriptor_standard): Declare new variable.
848 (print_subexp): Make global and declare here (from expprint.c).
849 (dump_subexp): Ditto.
850 (dump_subexp_body_standard): Declare.
851 (operator_length_standard): Declare.
852 (op_name_standard): Declare.
853 (print_subexp): Declare.
854 (print_subexp_standard): Declare.
856 * language.h (struct language_defn): Add la_exp_desc field to hold
857 pointer to table for language-specific operators.
858 Remove evaluate_exp field, which is now in struct exp_descriptor.
860 * parse.c (operator_length): Move most code to new
861 operator_length_standard function. Use language-specific information.
862 (operator_length_standard): New function taking most code from
864 (exp_descriptor_standard): New constant.
866 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
867 and OP_EXTENDED_LAST.
869 * expprint.c (print_subexp): Use language-specific print_subexp.
870 Make global; remove static declaration.
871 Move most code to print_subexp_standard.
872 (print_subexp_standard): New function, containing code formerly in
874 (op_name): Add expression to argument signature.
875 Use langauge-specific op_name.
876 Move most code to op_name_standard.
877 (op_name_standard): New function, containing code formerly in op_name.
878 (dump_subexp): Use new version of op_name function.
879 Use language-specific dump_subexp_body, and move most existing code to
880 dump_subexp_body_standard.
881 (dump_raw_expression): Use new op_name interface.
882 (dump_subexp_body): Move most code to dump_subexp_body_standard.
883 (dump_subexp_body_standard): New function, containing code formerly
886 * language.c (unknown_language): Add default la_exp_desc field and
887 remove evaluate_exp field.
888 (auto_language): Ditto.
889 (local_language): Ditto.
890 * f-lang.c (f_language_defn): Ditto.
891 * c-lang.c (c_language_defn): Ditto.
892 (cplus_language_defn): Ditto.
893 (asm_language_defn): Ditto.
894 (minimal_language_defn): Ditto.
895 * p-lang.c (pascal_language_defn): Ditto.
896 * m2-lang.c (m2_language_defn): Ditto.
897 * objc-lang.c (objc_language_defn): Ditto.
899 * jv-lang.c (exp_descriptor_java): New variable, containing
900 Java-specific expression evaluator.
901 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
903 * scm-lang.c (exp_descriptor_scm): New variable, containing
904 Scheme-specific expression evaluator.
905 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
907 * objc-lang.c (print_object_command): Take evaluate_exp from the
910 * Makefile.in (eval.o): Add dependency on parser-defs.h.
912 * eval.c: Include parser-defs.h for the full declaration of
914 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
916 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
918 * parser-defs.h (operator_length): Declare.
920 * parse.c (length_of_subexp): Use operator_length to get operator
921 lengths and arities for operators.
922 Move most code to new operator_length function.
923 (operator_length): New function absorbing most code from
925 (prefixify_subexp): Remove large case and use operator_length instead.
926 (parse_exp_1): Use renamings:
927 dump_prefix_expression => dump_raw_expression and
928 dump_postfix_expression => dump_prefix_expression.
930 * expression.h (dump_prefix_expression): Rename to ...
931 (dump_raw_expression): New name.
932 (dump_postfix_expression): Rename to ...
933 (dump_prefix_expression): New name.
935 * expprint.c (dump_subexp): Make global. Add comment.
936 Move most existing code to dump_subexp_body.
937 (dump_subexp_body): New function.
938 (dump_prefix_expression): Rename to dump_raw_expression.
939 Remove attempt to print the expression via print_expression: it can't
940 work before the expression is prefixified.
941 (dump_raw_expression): Renamed from dump_prefix_expression.
942 (dump_postfix_expression): Rename to dump_prefix_expression, since
944 Remove 'note' parameter, since this routine must be used on
945 prefixified expression.
946 (dump_prefix_expression): Renamed from dump_postfix_expression.
948 2003-09-22 Jim Blandy <jimb@redhat.com>
950 * dwarf2read.c (read_array_type): When building the type for an
951 array of unspecified length, make sure to choose the upper bound
952 so that the array's total length comes out to be zero --- that's
953 how we represent such arrays.
955 2003-09-22 Michael Chastain <mec@shout.net>
957 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
959 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
961 * top.c (quit_force): Fix indirect call to quit_target so
962 a struct qt_args pointer is passed.
964 2003-09-22 Andrew Cagney <cagney@redhat.com>
966 * arch-utils.h (init_frame_pc_noop): Delete declaration.
967 * arch-utils.c (init_frame_pc_noop): Delete function.
968 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
970 * mips-tdep.c (mips_gdbarch_init): Ditto.
971 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
972 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
974 (DEPRECATED_INIT_FRAME_PC): Delete macro.
975 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
977 (DEPRECATED_INIT_FRAME_PC): Delete macro.
979 2003-09-22 Anthony Green <green@redhat.com>
981 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
984 2003-09-20 Andrew Cagney <cagney@redhat.com>
986 * breakpoint.c: Eliminate ARGSUSED.
987 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
988 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
989 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
990 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
991 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
992 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
993 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
994 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
995 * wince.c, remote-vx.c: Ditto.
997 * cli/cli-script.c: Remove "register" attributes.
998 * config/pa/tm-hppa.h: Ditto.
999 * cli/cli-decode.c: Ditto.
1000 * cli/cli-cmds.c: Ditto.
1002 2003-09-19 Andrew Cagney <cagney@redhat.com>
1004 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1005 DEPRECATED_NPC_REGNUM.
1006 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1008 2003-09-19 Christopher Faylor <cgf@redhat.com>
1010 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1012 2003-09-19 Jim Blandy <jimb@redhat.com>
1014 * macrotab.c (macro_include): Use the correct comparison to find
1015 the appropriate place for this inclusion in the list.
1017 2003-09-19 Andrew Cagney <cagney@redhat.com>
1019 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1020 (DEPRECATED_HPUX_TEXT_END): Define.
1021 (deprecated_hpux_text_end): Declare.
1022 (struct target_ops): Declare opaque.
1023 * hppah-nat.c (text_end): Make static.
1024 (deprecated_hpux_text_end): New function.
1025 * exec.c (text_end): Delete global variable.
1026 (NEED_TEXT_START_END): Do not define.
1027 (exec_file_attach): Replace code computing "text_end" code with
1028 call to DEPRECATED_HPUX_TEXT_END.
1030 2003-09-19 Andrew Cagney <cagney@redhat.com>
1032 * utils.c (align_up, align_down): New functions.
1033 * defs.h (align_up, align_down): Declare.
1034 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1035 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1037 (round_up, round_down): Delete functions.
1038 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1040 (ROUND_DOWN, ROUND_UP): Delete macros.
1041 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1042 * h8300-tdep.c: Replace "round_up" and "round_down" with
1043 "align_up" and "align_down".
1044 (round_up, round_down): Delete macros.
1045 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1047 (ROUND_UP, ROUND_DOWN): Delete macros.
1049 2003-09-18 J. Brobecker <brobecker@gnat.com>
1051 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1052 hard-coded constant. Use the proper machine name instead.
1054 2003-09-17 Andrew Cagney <cagney@redhat.com>
1056 * sparc-tdep.c (legacy_register_name): Delete function.
1057 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1058 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1059 * infcmd.c (gdb_register_name): Delete variable.
1060 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1061 REGISTER_NAME and "tm.h".
1062 * gdbarch.h, gdbarch.c: Regenerate.
1063 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1064 REGISTER_NAMES in comments.
1065 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1066 * m68klinux-nat.c (regmap): Ditto.
1068 2003-09-17 Jim Blandy <jimb@redhat.com>
1070 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1072 2003-09-17 Andrew Cagney <cagney@redhat.com>
1074 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1075 (ppcnbsd_init_abi): Set "use_struct_convention" to
1076 "ppcnbsd_use_struct_convention".
1078 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1080 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1081 * gdbarch.h, gdbarch.c: Regenerate.
1082 (stabs_argument_has_addr): New architecture method.
1083 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1084 * arch-utils.c: Include "buildsym.h".
1085 (default_stabs_argument_has_addr): New function.
1086 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1087 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1089 2003-09-17 Andrew Cagney <cagney@redhat.com>
1091 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1092 * gdbarch.h, gdbarch.c: Regenerate.
1093 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1094 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1095 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1096 * sparcnbsd-tdep.c: Update.
1098 2003-09-17 Andrew Cagney <cagney@redhat.com>
1100 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1101 * gdbarch.h, gdbarch.c: Regenerate.
1102 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1103 * d10v-tdep.c, frame.c: Update.
1104 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1105 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1106 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1107 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1108 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1109 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1110 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1111 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1112 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1113 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1114 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1115 * config/pa/nm-hppah.h: Update.
1117 2003-09-16 Andrew Cagney <cagney@redhat.com>
1119 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1120 "use_struct_convention" to "ppc_linux_use_struct_convention".
1121 (ppc_linux_use_struct_convention): New function.
1122 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1123 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1124 "rs6000_use_struct_convention".
1125 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1127 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1130 2003-09-16 Andrew Cagney <cagney@redhat.com>
1132 * buildsym.c: Remove more occurances of "register".
1133 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1134 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1135 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1136 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1137 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1138 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1139 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1140 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1142 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1144 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1145 numbers to enumeration values.
1146 * sh-tdep.c: Accomodate above change.
1147 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1148 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1149 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1150 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1151 (IS_FPUSH): Rename from IS_FMOV.
1152 (sh_extract_struct_value_address): Remove useless comment.
1153 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1154 instead of own local values.
1155 (sh_dump_tdep): Remove.
1156 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1157 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1159 2003-09-15 Andrew Cagney <cagney@redhat.com>
1161 * doublest.c (convert_floatformat_to_doublest): No longer need to
1162 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1164 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1166 * values.c (unpack_double): Call floatformat_is_valid.
1168 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1170 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1171 ps_strings into a long.
1173 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1174 _initialize_am64fbsd_nat.
1176 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1178 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1179 associated with DW_AT_ranges attribute is out of bounds.
1181 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1183 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1185 2003-09-14 Michael Chastain <mec@shout.net>
1187 * config/m68k/nm-apollo68v.h: Delete.
1188 * config/m68k/xm-apollo68v.h: Delete.
1190 2003-09-14 Andrew Cagney <cagney@redhat.com>
1192 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1193 * dcache.c: Update copyrights and descriptions.
1194 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1196 2003-09-14 Andrew Cagney <cagney@redhat.com>
1198 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1199 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1201 2003-09-14 Andrew Cagney <cagney@redhat.com>
1203 * alpha-nat.c: Remove some occurances of "register".
1204 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1205 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1206 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1207 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1208 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1209 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1210 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1211 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1212 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1213 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1214 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1215 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1216 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1217 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1218 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1219 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1220 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1221 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1222 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1223 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1224 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1225 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1227 2003-09-13 Andrew Cagney <cagney@redhat.com>
1229 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1230 * ppc-tdep.h (struct regcache): Declare opaque.
1231 * objfiles.h (struct objfile_data): Declare opaque.
1232 * cp-support.h (struct objfile): Declare opaque.
1233 * linux-nat.h (target_waitstatus): Declare opaque.
1235 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1237 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1238 (stabs_argument_has_addr): New architecture method.
1239 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1240 * arch-utils.c: Include "buildsym.h".
1241 (default_stabs_argument_has_addr): New function.
1242 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1243 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1245 * cris-tdep.c (cris_gdbarch_init): Set
1246 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1247 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1248 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1249 * mips-tdep.c (mips_gdbarch_init): Likewise.
1250 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1251 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1253 2003-09-13 Andrew Cagney <cagney@redhat.com>
1255 * values.c (using_struct_return): Delete "function" and "funcaddr"
1257 * value.h (using_struct_return): Update declaration.
1258 * infcmd.c (finish_command_continuation): Update.
1259 (finish_command): Update.
1260 * infcall.c (call_function_by_hand): Update.
1261 * eval.c (evaluate_subexp_standard): Update.
1263 2003-09-13 Christopher Faylor <cgf@redhat.com>
1265 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1266 SSE registers since gdb will not operate correctly without this.
1267 Restore include file ordering munged in previous change.
1268 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1270 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1272 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1273 REG_STRUCT_HAS_ADDR.
1274 * gdbarch.c, gdbarch.h: Updated.
1275 * infcall.c (call_function_by_hand): Update.
1276 * stabsread.c (define_symbol): Updated.
1278 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1280 2003-09-12 Christopher Faylor <cgf@redhat.com>
1282 * win32-nat.c: Reorganize so that defines used by target headers are
1283 actually defined by the system headers.
1284 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1285 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1287 2003-09-12 Jim Blandy <jimb@redhat.com>
1289 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1290 the file has no .data, .bss, or .rodata sections. Instead wait
1291 until we see a variable alleged to live in one of those sections.
1293 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1294 .bss section, presume that any variables we find live in the
1297 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1298 offsets for global and static variables.
1300 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1301 symbol types are, by definition, in the .data section, so it is
1302 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1303 If there is no .data section, there should be no N_DATA or N_DATA
1306 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1308 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1309 (amd64fbsd_sigcontext_addr): Rewrite.
1310 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1311 with correct values.
1312 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1313 (amd64fbsd_init_abi): Fix typo.
1315 2003-09-12 Andrew Cagney <cagney@redhat.com>
1317 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1318 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1320 2003-09-12 Andrew Cagney <cagney@redhat.com>
1322 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1323 "entry_file_highpc". Update comments.
1324 * defs.h (deprecated_inside_entry_file): Rename
1325 "inside_entry_file".
1326 * blockframe.c (deprecated_inside_entry_file): Rename
1327 "inside_entry_file".
1328 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1329 * vax-tdep.c (vax_frame_chain): Update.
1330 * sh64-tdep.c (sh64_frame_chain): Update.
1331 * sh-tdep.c (sh_frame_chain): Update.
1332 * rs6000-tdep.c (rs6000_frame_chain): Update.
1333 * ns32k-tdep.c (ns32k_frame_chain): Update.
1334 * mips-tdep.c (mips_frame_chain): Update.
1335 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1336 * m32r-tdep.c (m32r_frame_this_id): Update.
1337 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1338 * frv-tdep.c (frv_frame_this_id): Update.
1339 * d10v-tdep.c (d10v_frame_this_id): Update.
1340 * cris-tdep.c (cris_frame_chain): Update.
1341 * blockframe.c (legacy_frame_chain_valid): Update.
1342 * avr-tdep.c (avr_frame_this_id): Update.
1343 * arm-tdep.c (arm_prologue_this_id): Update.
1344 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1345 * objfiles.c (objfile_relocate): Update.
1346 * mipsread.c (mipscoff_symfile_read): Update.
1347 (mipscoff_symfile_read): Update.
1348 * mdebugread.c (parse_partial_symbols): Update.
1349 * dwarfread.c (read_file_scope): Update.
1350 * dwarf2read.c (read_file_scope): Update.
1351 * dbxread.c (read_dbx_symtab): Update.
1352 (read_dbx_symtab): Update.
1353 * coffread.c (complete_symtab): Update.
1355 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1357 * top.c (quit_target): New static helper function.
1358 (quit_force): Moved code to quit_target(). Call quit_target()
1359 via catch_errors() to catch errors during quit.
1361 2003-09-11 David Carlton <carlton@kealia.com>
1363 * buildsym.c (finish_block): Use allocate_block to allocate the
1365 * mdebugread.c (new_block): Add FIXME.
1367 2003-09-11 David Carlton <carlton@kealia.com>
1369 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1370 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1371 (recursive_dump_type): Ditto.
1372 * printcmd.c (print_formatted): Ditto.
1373 * typeprint.c (print_type_scalar): Ditto.
1374 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1375 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1376 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1377 maint_cplus_cmd_list.
1378 * cp-support.c: Make maint_cplus_cmd_list extern.
1379 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1381 (lookup_symbol_file): Look in possible namespace blocks when
1383 (initialize_namespace_symtab): New.
1384 (get_possible_namespace_block, free_namespace_block)
1385 (check_possible_namespace_symbols)
1386 (check_possible_namespace_symbols_loop)
1387 (check_one_possible_namespace_symbol)
1388 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1389 (_initialize_cp_namespace): Ditto.
1390 * block.h: Declare allocate_block.
1391 * block.c (allocate_block): New.
1392 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1394 * symfile.h: Update declaration of add_psymbol_to_list.
1395 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1397 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1398 scan_partial_symbols_call.
1399 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1401 (add_partial_symbol): If necessary, scan mangled names for names
1403 (add_partial_namespace): Add NAMESPACE argument; generate partial
1404 symbols associated to namespaces.
1405 (add_partial_enumeration): Add NAMESPACE argument.
1406 (new_symbol): Allow namespace syms.
1407 (read_namespace): Generate namespace syms.
1408 * objfiles.h: Add opaque declaration of struct symtab.
1409 (struct objfile): Add cp_namespace_symtab member.
1410 * objfiles.c (allocate_objfile): Set
1411 objfile->cp_namespace_symtab.
1412 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1413 dictionary_h, command_h.
1415 2003-09-11 Andrew Cagney <cagney@redhat.com>
1417 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1418 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1419 near the function's end.
1420 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1421 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1422 regcache_raw_write_signed to set SP_REGNUM.
1424 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1426 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1427 orig_addrs is set up properly.
1429 2003-09-11 Andrew Cagney <cagney@redhat.com>
1431 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1432 * gdbarch.h, gdbarch.c: Re-generate.
1433 * infcall.c (call_function_by_hand): Update.
1434 * hppa-tdep.c (hppa_push_arguments): Update.
1435 * ada-lang.c (place_on_stack): Update.
1436 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1437 * sparc-tdep.c (sparc_gdbarch_init): Update.
1438 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1439 * hppa-tdep.c (hppa_gdbarch_init): Update.
1440 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1443 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1445 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1446 register do need a frame.
1448 2003-09-11 Andrew Cagney <cagney@redhat.com>
1450 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1451 buildable since GDB 5.0.
1452 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1453 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1454 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1455 * irix4-nat.c: Delete file.
1456 * config/mips/irix4.mh: Delete file.
1457 * config/mips/irix3.mh: Delete file.
1458 * config/mips/irix3.mt: Delete file.
1459 * config/mips/tm-irix3.h: Delete file.
1460 * config/mips/nm-irix3.h: Delete file.
1461 * config/mips/xm-irix3.h: Delete file.
1462 * config/mips/nm-irix4.h: Delete file.
1463 * config/mips/xm-irix4.h: Delete file.
1464 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1466 2003-09-10 J. Brobecker <brobecker@gnat.com>
1468 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1469 * Makefile.in (hppa-tdep.o): Update dependencies.
1471 2003-09-10 James E Wilson <wilson@specifixinc.com>
1473 * MAINTAINERS: Change my e-mail address. Move to paper trail
1476 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1478 * MAINTAINERS (frv): New ISA entry.
1480 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1482 * frv-tdep.c (dis-asm.h): Include.
1483 * Makefile.in (frv-tdep.o): Update dependencies.
1485 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1487 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1488 Fix typo for high range of floating registers.
1490 2003-09-09 David Carlton <carlton@kealia.com>
1492 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1493 highpc initialization here out of scan_partial_symbols.
1494 (scan_partial_symbols): Restructure into a recursive version,
1495 calling add_partial_namespace and add_partial_enumeration when
1497 (add_partial_namespace): New.
1498 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1500 2003-09-09 Andrew Cagney <cagney@redhat.com>
1502 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1503 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1504 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1505 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1507 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1508 (rs6000_push_dummy_call): Set the "TOC" register.
1510 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1511 methods "max_register_raw_size", "max_register_virtual_size" or
1512 "register_virtual_size".
1514 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1516 * MAINTAINERS: Update my e-mail address.
1518 2003-09-09 Andrew Cagney <cagney@redhat.com>
1520 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1521 (rs6000_push_dummy_call): Store the struct return address.
1522 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1524 2003-09-09 Andrew Cagney <cagney@redhat.com>
1526 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1527 "ppc_sysv_abi_push_arguments".
1528 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1529 "ppc_sysv_abi_push_arguments".
1530 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1531 instead of "push_arguments".
1532 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1534 2003-09-09 Andrew Cagney <cagney@redhat.com>
1536 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1537 instead of CALL_DUMMY_ADDRESS.
1539 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1541 * p-lang.c: Eliminate "register".
1543 * expprint.c: Ditto.
1546 * language.c: Ditto.
1549 * scm-lang.c: Ditto.
1550 * objc-lang.c: Ditto.
1552 2003-09-09 Nick Clifton <nickc@redhat.com>
1554 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1556 2003-09-04 Andrew Cagney <cagney@redhat.com>
1558 * avr-tdep.c: Include "dis-asm.h".
1559 * cris-tdep.c: Include "dis-asm.h".
1560 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1561 instead of corresponding typedef.
1562 * h8300-tdep.c: Include "dis-asm.h".
1563 * ia64-tdep.c: Include "dis-asm.h".
1564 * i386-tdep.c: Include "dis-asm.h".
1565 (i386_print_insn): Use "struct disassemble_info" instead of
1566 corresponding typedef.
1567 * m68k-tdep.c: Include "dis-asm.h".
1568 * mcore-tdep.c: Include "dis-asm.h".
1569 * mips-tdep.c: Include "dis-asm.h".
1570 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1571 instead of corresponding typedef.
1572 * ns32k-tdep.c: Include "dis-asm.h".
1573 * s390-tdep.c: Include "dis-asm.h".
1574 * sparc-tdep.c: Include "dis-asm.h".
1575 * vax-tdep.c: Include "dis-asm.h".
1576 * v850-tdep.c: Include "dis-asm.h".
1577 * mn10300-tdep.c: Include "dis-asm.h".
1578 * rs6000-tdep.c: Include "dis-asm.h".
1579 * xstormy16-tdep.c: Include "dis-asm.h".
1580 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1581 print_insn_xstormy16.
1582 * Makefile.in (v850-tdep.o): Update dependencies.
1583 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1584 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1585 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1586 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1587 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1588 (gdbarch_h): Remove $(dis_asm_h).
1589 * disasm.c: Include "dis-asm.h".
1590 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1591 corresponding typedef.
1592 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1593 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1594 * gdbarch.sh: Do not include "dis-asm.h".
1595 (struct disassemble_info): Declare opaque.
1596 (TARGET_PRINT_INSN): Update declaration.
1597 * gdbarch.h, gdbarch.c: Re-generate.
1599 2003-09-08 Andrew Cagney <cagney@redhat.com>
1601 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1602 CALL_DUMMY_ADDRESS, change to a predicate.
1603 * gdbarch.h, gdbarch.c: Re-generate.
1604 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1605 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1606 * infcall.c (call_function_by_hand): Ditto.
1607 * sparc-tdep.c (sparc_push_return_address): Ditto.
1608 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1609 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1610 CALL_DUMMY_ADDRESS with entry_point_address.
1611 * v850-tdep.c (v850_push_return_address): Ditto.
1612 * s390-tdep.c (s390_push_return_address): Ditto.
1613 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1614 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1615 * mcore-tdep.c (mcore_push_return_address): Ditto.
1616 * cris-tdep.c (cris_push_return_address): Ditto.
1617 * arm-tdep.c (arm_push_return_address): Ditto.
1619 2003-09-08 Andrew Cagney <cagney@redhat.com>
1621 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1622 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1623 and REG_UNMODIFIED to REG_SAME_VALUE.
1624 (execute_cfa_program): Update.
1625 (dwarf2_frame_cache): Update. Initialize table to
1626 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1628 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1630 2003-09-08 Andrew Cagney <cagney@redhat.com>
1632 * gnu-nat.c: Remove "inline" function attribute.
1633 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1635 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1637 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1640 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1642 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1643 (frame_extra_info): Rename this struct to frv_unwind_cache.
1644 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1645 Add fields ``prev_sp'' and ``base''.
1646 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1647 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1648 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1650 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1651 Revise all callers. Fill in the unwind cache argument and make
1652 other adjustments to account for new frame mechanisms.
1653 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1654 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1655 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1656 (frv_frame_unwind, frv_frame_base): New structs.
1657 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1658 additional arguments expected by this method and adjust function
1660 (frv_gdbarch_init): Remove calls to the following functions:
1661 set_gdbarch_deprecated_init_frame_pc(),
1662 set_gdbarch_deprecated_saved_pc_after_call(),
1663 set_gdbarch_deprecated_frame_chain(),
1664 set_gdbarch_deprecated_frame_saved_pc(),
1665 set_gdbarch_deprecated_frame_init_saved_regs(),
1666 set_gdbarch_deprecated_push_arguments(),
1667 set_gdbarch_deprecated_push_return_address(),
1668 set_gdbarch_deprecated_pop_frame(),
1669 set_gdbarch_deprecated_call_dummy_words(),
1670 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1671 set_gdbarch_deprecated_init_extra_frame_info(),
1672 set_gdbarch_deprecated_dummy_write_sp(), and
1673 set_gdbarch_deprecated_pc_in_call_dummy().
1674 Add calls to the following functions:
1675 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1676 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1677 frame_base_set_default().
1678 * Makefile.in (frv-tdep.o): Update dependencies.
1680 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1682 * dwarf2-frame.c (read_encoded_value): Add support for
1683 DW_EH_PE_aligned encoding.
1685 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1687 * infrun.c (normal_stop): Don't print a message if the inferior
1690 2003-09-08 Jim Blandy <jimb@redhat.com>
1692 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1693 * dbxread.c: #include "gdb_assert.h".
1694 (read_dbx_symtab): If the objfile has no .data section, use the
1695 section index for the .bss section instead.
1697 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1699 * frame.c (deprecated_safe_get_selected_frame): New function.
1700 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1701 * findvar.c (read_var_value): Call it.
1703 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1705 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1706 (sh64-tdep.o): Add dependencies.
1707 * configure.tgt: Add FIXME to sh-*-linux*.
1708 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1709 (sh_gdbarch_init): Always set correct sh_show_regs function
1710 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1711 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1712 * sh64-tdep.c: New file, containing all sh64 related code from
1714 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1715 * config/sh/linux.mt (TDEPFILES): Ditto.
1716 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1717 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1718 * config/sh/wince.mt (TDEPFILES): Ditto.
1720 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1722 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1723 (stop_wait_callback): Handle !lp->signalled also.
1724 (lin_lwp_has_pending, flush_callback): New functions.
1725 (lin_lwp_wait): Call flush_callback.
1726 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1727 (linux_proc_pending_signals): New function.
1728 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1730 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1732 From Nick Kelsey <nickk@ubicom.com>:
1733 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1734 when the stop PC is at the beginning of a function also.
1736 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1738 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1739 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1741 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1743 * sol-thread.c: Include "gdb_string.h".
1745 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1747 * gcore.c: Reorder include files in alphabetical order. Include
1748 "gdb_assert.h". Various coding style fixes.
1749 (derive_stack_segment, derive_heap_segment): Replace check for
1750 non-null BOTTOM and TOP with gdb_assert.
1751 (derive_heap_segment): Replace check for successful creation of
1752 ZERO with gdb_assert.
1753 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1755 2003-09-04 Andrew Cagney <cagney@redhat.com>
1757 * thread-db.c (verbose_dlsym): New function.
1758 (thread_db_load): Use verbose_dlsym
1759 (thread_db_new_objfile): Print that libthread_db was loaded, and
1760 that thread debugging was enabled.
1762 2003-09-04 Andrew Cagney <cagney@redhat.com>
1764 * configure.tgt: Add "mips64*-*-*" target. Delete
1765 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1766 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1767 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1768 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1769 mips*-sony-*, and mips64*-*-elf* targets.
1770 * config/mips/embedl.mt: Delete file.
1771 * config/mips/embedl64.mt: Delete file.
1772 * config/mips/mips.mt: Delete file.
1773 * config/mips/mips64.mt: Delete file.
1774 * config/mips/tm-embed.h: Delete file.
1775 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1776 * config/mips/embed64.mt: Delete out-of-date comment.
1778 2003-09-04 Andrew Cagney <cagney@redhat.com>
1780 * hppa-tdep.c (hppa_gdbarch_init): Set
1781 "have_nonsteppable_watchpoint".
1782 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1783 * mips-tdep.c (mips_dump_tdep): Do not print
1784 HAVE_NONSTEPPABLE_WATCHPOINT.
1785 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1786 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1787 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1788 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1790 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1792 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1793 unused code. Add comment.
1795 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1797 * breakpoint.c (watchpoint_check): Check for pc being in an
1798 epilogue if watchpoint frame couldn't be found.
1800 2003-09-04 Andrew Cagney <cagney@redhat.com>
1802 * Makefile.in: Re-generate all dependencies.
1804 2003-09-03 Andrew Cagney <cagney@redhat.com>
1806 * arch-utils.h (legacy_print_insn): Delete declaration.
1807 * arch-utils.c (legacy_print_insn): Delete function.
1808 * disasm.c (deprecated_tm_print_insn_info): Delete.
1809 (_initialize_disasm): Delete function, contained code initializing
1810 deprecated_tm_print_insn_info.
1811 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1812 (deprecated_tm_print_insn_info): Delete.
1813 (TARGET_PRINT_INSN): Do not provide a default.
1814 * gdbarch.h, gdbarch.c: Re-generate.
1816 2003-09-03 Andrew Cagney <cagney@redhat.com>
1818 * disasm.c (fprintf_disasm): New function.
1819 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1820 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1821 reverts 2003-08-14 change.
1822 (_initialize_disasm): Call "init_disassemble_info", instead of
1823 INIT_DISASSEMBLE_INFO_NO_ARCH.
1825 2003-09-03 Michael Snyder <msnyder@redhat.com>
1827 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1829 2003-09-03 Andrew Cagney <cagney@redhat.com>
1831 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1832 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1833 * symfile.c (syms_from_objfile): Update.
1834 (reread_symbols): `Update
1835 * exec.c (exec_file_attach): Update.
1836 (exec_file_attach): Update.
1837 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1839 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1841 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1843 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1845 (arm_get_cache): Delete macro.
1846 (struct arm_prologue_cache): Update comments. Make saved_regs into
1847 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1849 (thumb_scan_prologue): Update for cache changes. Don't call
1850 DEPRECATED_PC_IN_CALL_DUMMY.
1851 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1852 argument and use it in desperation search for our prologue. Do not
1853 search past the specified PC.
1854 (arm_make_prologue_cache): Simplify.
1856 (arm_prologue_this_id, arm_prologue_prev_register)
1857 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1858 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1859 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1860 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1861 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1863 (arm_frame_chain_valid, arm_find_callers_reg)
1864 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1865 (arm_pop_frame): Delete obsolete methods.
1866 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1868 (arm_gdbarch_init): Update for new frame methods. Register prologue
1869 and sigtramp unwinders. Set the default frame base method.
1871 * Makefile.in (arm-tdep.o): Update dependencies.
1872 * varobj.c (find_frame_addr_in_frame_chain): Call
1873 get_frame_base_address.
1874 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1876 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1878 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1879 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1880 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1881 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1882 Take NEXT_FRAME and CACHE arguments. Call
1883 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1884 Set unwound_pc in CACHE instead of modifying the frame argument.
1885 Don't bother checking the frame type when looking for sigtramp
1887 (arm_make_prologue_cache, arm_frame_chain)
1888 (arm_init_extra_frame_info): New functions.
1890 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1892 * arm-tdep.c (arm_get_cache): Define.
1893 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1894 unwound_sp, unwound_pc, and saved_regs.
1895 (thumb_scan_prologue): Take a cache instead of the frame.
1896 (arm_scan_prologue): Likewise.
1897 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1898 instead of a temporary frame.
1899 (arm_init_extra_frame_info): Allocate and use a cache.
1900 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1902 2003-09-03 Andrew Cagney <cagney@redhat.com>
1904 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1905 * config/mips/wince.mt (TM_CLIBS): Ditto.
1906 * config/sh/wince.mt (TM_CLIBS): Ditto.
1907 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1908 * config/sparc/sp64.mt (CC): Delete.
1910 2003-09-03 Andrew Cagney <cagney@redhat.com>
1912 * defs.h: Do not include "arch-utils.h".
1913 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1914 GDB_MULTI_ARCH_PURE.
1915 * configure.in (GDB_MULTI_ARCH): Do not define.
1916 * configure, config.in: Regenerate.
1917 * configure.tgt: Do not set variable "gdb_multi_arch".
1918 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1919 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1920 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1921 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1922 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1923 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1924 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1925 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1926 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1927 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1928 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1929 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1930 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1931 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1932 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1933 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1934 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1935 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1937 2003-08-30 Michael Chastain <mec@shout.net>
1939 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1940 * config/m68k/nm-hp300hpux.h: Delete.
1941 * config/m68k/tm-hp300hpux.h: Delete.
1942 * config/m68k/xm-hp300hpux.h: Delete.
1943 * config/m68k/xm-hp300bsd.h: Delete.
1944 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1945 tm-hp300hpux.h, xm-hp300hpux.h.
1946 * somsolib.c: Remove comment about hp300 shared libraries.
1948 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1950 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1951 Only define PTRACE_GET_THREAD_AREA is not already defined.
1952 Various style fixes in code and comments and some additional
1953 spelling fixes in comments. Move after functions dealing with
1955 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1958 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1959 frame_unwind_register_unsigned instead of
1960 frame_unwind_unsigned_register.
1962 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1964 * configure.in: Search for gethostbyname in libnsl.
1965 * configure: Regenerated.
1967 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1969 * configure.in: Remove redundant AC_MSG_RESULT in check for
1970 uintptr_t in stdint.h.
1971 * configure: Regenerated.
1973 * amd64-nat.h (struct regcache): Add opaque declaration.
1975 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1976 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1977 Change "register array" to "register cache" in comments.
1978 (x86_64_linux_gregset64_reg_offset): New variable.
1979 (GETREGS_SUPPLIES): Remove macro.
1980 (supply_gregset): Call amd64_supply_native_gregset instead of
1981 x86_64_linux_supply_gregset.
1982 (fill_gregset): Rename `regno' to `regnum'. Call
1983 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1984 (store_regs): Rename `regno' to `regnum'.
1985 (store_fpregs): Rename `regno' to `regnum'.
1986 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1987 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1988 Reorganize function a bit.
1989 (store_inferior_registers): Rename `regno' to `regnum'. Use
1990 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1991 Reorganize function a bit.
1992 (_initialize_x86_64_linux_nat): New function.
1993 * config/i386/x86-64linux.mh.
1995 2003-08-29 Andrew Cagney <cagney@redhat.com>
1997 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1998 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1999 (target_remove_watchpoint): Delete macro.
2000 (target_insert_watchpoint): Delete macro.
2001 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2002 (remote_mips_stopped_by_watchpoint): Delete declaration.
2003 (remote_mips_remove_watchpoint): Delete declaration.
2004 (remote_mips_set_watchpoint): Delete declaration.
2005 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2006 * remote-mips.c (_initialize_remote_mips): Set
2007 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2008 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2009 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2010 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2011 (mips_stopped_by_watchpoint): Rename
2012 remote_mips_stopped_by_watchpoint.
2013 (mips_can_hardware_watchpoint): Rename
2014 remote_mips_can_use_hardware_watchpoint, update function
2017 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2019 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2020 USER_DS. We haven't given them a register number yet.
2022 * amd64-nat.h: New file.
2023 * amd64-nat.c: New file.
2024 * amd64fbsd-nat.c: Include "amd64-nat.h".
2025 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2026 (amd64fbsd32_r_reg_offset): New variable.
2027 (supply_gregset): Simply call amd64_supply_native_gregset.
2028 (fill_gregset): Rename `regno' to `regnum'. Simply call
2029 amd64_collect_native_gregset.
2030 (fill_fpregset): Rename `regno' to `regnum'.
2031 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2032 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2033 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2034 `fpregset_t'. Call amd64_supply_native_gregset instead of
2035 supply_gregset. Call x86_64_supply_fxsave instead of
2037 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2038 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2039 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2040 `fpregset_t'. Call amd64_collect_native_gregset instead of
2041 fill_gregset. Call x86_64_collect_fxsave instead of
2043 (_initialize_am64fbsd_nat): Initialize
2044 amd64_native_gregset32_reg_offset and
2045 amd64_native_gregset64_reg_offset.
2046 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2048 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2049 null pointer. Fix typo in comment.
2051 * regcache.c (supply_register): Reimplement to call
2052 regcache_raw_supply.
2053 (regcache_collect): Reimplement by calling regcache_raw_collect.
2055 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2057 * regcache.c (register_buffer): Consitify first argument.
2058 (regcache_raw_supply, regcache_raw_collect): New
2061 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2063 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2064 by Nathan J. Williams.
2066 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2068 * lin-lwp.c (wait_lwp): New function, copied from
2069 stop_wait_callback. Clean up.
2070 (stop_wait_callback): Use wait_lwp.
2072 2003-08-28 Andrew Cagney <cagney@redhat.com>
2074 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2075 flavour and disassembler options.
2076 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2077 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2078 deprecated_tm_print_insn_info.
2080 2003-08-27 Andrew Cagney <cagney@redhat.com>
2082 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2083 Use target_read_memory.
2084 (s390_get_frame_info): Update. Do not reference
2085 deprecated_tm_print_insn_info.
2086 (s390_check_function_end, s390_is_sigreturn): Ditto.
2088 2003-08-27 Andrew Cagney <cagney@redhat.com>
2090 * Makefile.in (cris-tdep.o): Update dependencies.
2091 * cris-tdep.c: Include "gdb_assert.h".
2092 (cris_gdbarch_init): Set print_insn.
2093 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2094 (cris_delayed_get_disassembler): Simplify, directly call the
2095 disassembler returned by cris_get_disassembler.
2096 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2097 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2098 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2099 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2100 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2101 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2102 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2103 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2104 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2105 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2106 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2107 (gdb_print_insn_sparc): Delete function.
2108 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2109 deprecated_tm_print_insn_info.
2110 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2111 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2112 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2113 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2114 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2115 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2116 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2117 (s390_gdbarch_init): Set print_insn.
2119 2003-08-27 Andrew Cagney <cagney@redhat.com>
2121 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2122 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2123 * infcall.c (call_function_by_hand): Convert the entry point
2124 address into a code address.
2126 2003-08-27 Andrew Cagney <cagney@redhat.com>
2128 * dsrec.c: Include "gdb_string.h".
2129 * Makefile.in (dsrec.o): Update dependencies.
2131 2003-08-27 Michael Chastain <mec@shout.net>
2133 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2135 2003-08-27 Andrew Cagney <cagney@redhat.com>
2137 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2138 (alpha_osf1_init_abi): Do not set call_dummy_address.
2140 2003-08-27 David Carlton <carlton@kealia.com>
2142 From Randolph Chung <tausq@debian.org>:
2143 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2144 compiles with -Wformat-nonliteral -Werror.
2146 2003-08-26 Jim Blandy <jimb@redhat.com>
2148 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2149 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2150 bfd_lookup_symbol, since we only want symbols in code sections.
2151 (look_for_base): Pass zero as the SECT_FLAGS argument to
2152 bfd_lookup_symbol, since we're not concerned about which section
2155 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2157 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2158 we are frameless or the return address register is already known.
2160 2003-08-26 Andrew Cagney <cagney@redhat.com>
2162 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2163 in size. Add comments.
2165 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2167 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2168 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2170 2003-08-26 Jason Merrill <jason@redhat.com>
2172 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2173 case out of #ifdef MIPS block.
2175 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2178 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2179 available before calling SECT_OFF_TEXT.
2180 * PROBLEMS: Remove description of java/1322.
2182 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2184 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2185 bof, and nat0-nat127 as pseudo-registers.
2186 (ia64_frame_cache): New struct used to cache frame info.
2187 (ia64_register_reggroup_p): New routine used to override default
2188 register grouping so registers without names are still saved and
2190 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2192 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2193 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2194 (ia64_alloc_frame_cache): New routine to create a new
2196 (examine_prologue): Change prototype to add next_frame pointer.
2197 Assume frameless until otherwise proven. Verify that the cfm for
2198 current frame matches the cfm that should occur for the prologues
2199 alloc insn and if equal, mark as not frameless. At end of routine,
2200 if not frameless, calculate registers for the previous frame and store
2201 in the cache, if a cache is provided.
2202 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2203 and pass 0 for next_frame.
2204 (ia64_store_return_value): Change to use convert_typed_floating()
2205 instead of calling ia64_convert_to_raw().
2206 (ia64_extract_return_value): Change to use convert_typed_floating()
2207 instead of calling ia64_convert_to_virtual().
2208 (ia64_frame_cache): New routine to support new frame model.
2209 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2210 (ia64_frame_sniffer): Ditto.
2211 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2212 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2213 (ia64_sigtramp_frame_prev_register): Ditto.
2214 (ia64_sigtramp_frame_sniffer): Ditto.
2215 (ia64_frame_base_address): Ditto.
2216 (ia64_extract_struct_value_address): Change to issue error message.
2217 (ia64_frame_align): New routine to align sp.
2218 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2219 (ia64_push_arguments): Removed. Logic moved to
2220 ia64_push_dummy_call().
2221 (ia64_push_return_address): Ditto.
2222 (ia64_unwind_dummy_id): New function.
2223 (ia64_unwind_pc): Ditto.
2224 (ia64_convert_register_p): Ditto.
2225 (ia64_register_to_value): Ditto.
2226 (ia64_value_to_register): Ditto.
2227 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2228 (ia64_register_byte, ia64_register_raw_size): Ditto.
2229 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2230 (ia64_saved_pc_after_call): Ditto.
2231 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2232 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2233 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2234 (ia64_register_convert_to_raw): Ditto.
2235 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2236 (ia64_init_extra_frame_info): Ditto.
2237 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2238 (ia64_gdbarch_init): Remove registering of deprecated functions that
2239 are no longer used. Add registration of new gdbarch functions.
2240 Remove registering deprecated_write_sp. Replace
2241 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2242 Delete set_gdbarch_deprecated_register_convertible(),
2243 set_gdbarch_deprecated_register_convert_to_virtual(), and
2244 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2245 set_gdbarch_deprecated_register_size(),
2246 set_gdbarch_deprecated_register_bytes(),
2247 set_gdbarch_pcregnum(),
2248 set_gdbarch_deprecated_register_byte(),
2249 set_gdbarch_deprecated_register_raw_size(),
2250 set_gdbarch_deprecated_max_register_raw_size(),
2251 set_gdbarch_deprecated_register_virtual_size(),
2252 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2253 Replace set_gdbarch_deprecated_extract_return_value() with
2254 set_gdbarch_extract_return_value(). Remove calls to:
2255 set_gdbarch_deprecated_saved_pc_after_call();
2256 set_gdbarch_deprecated_frame_chain(),
2257 set_gdbarch_deprecated_frame_saved_pc(),
2258 set_gdbarch_deprecated_frame_init_saved_regs(),
2259 set_gdbarch_deprecated_get_saved_register(),
2260 set_gdbarch_deprecated_call_dummy_words(),
2261 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2262 set_gdbarch_deprecated_init_extra_frame_info(),
2263 set_gdbarch_deprecated_frame_args_address(),
2264 set_gdbarch_deprecated_frame_locals_address(),
2265 and set_gdbarch_deprecated_dummy_write_sp().
2266 Add set_gdbarch_convert_register_p(),
2267 set_gdbarch_register_to_value(),
2268 set_gdbarch_value_to_register(),
2269 set_gdbarch_push_dummy_call(),
2270 set_gdbarch_frame_align(),
2271 set_gdbarch_unwind_dummy_id(),
2272 set_gdbarch_unwind_pc(),
2273 frame_unwind_append_sniffer(),
2274 frame_unwind_append_sniffer(),
2275 and frame_base_set_default().
2277 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2279 * configure.tgt: Document need for special "mipsisa64" handling.
2280 (mipsisa64*-*-linux64): Handle as target linux64.
2281 (mipsisa64*-*-*): Handle as target embed64.
2283 2003-08-18 Michael Chastain <mec@shout.net>
2285 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2288 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2290 * i387-tdep.h: Update copyright date.
2291 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2293 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2294 CFLAGS games to reflect reality.
2296 2003-08-24 Andrew Cagney <cagney@redhat.com>
2298 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2299 GDB_MULTI_ARCH is always non-zero.
2300 * osabi.c (_initialize_gdb_osabi): Ditto.
2301 (gdbarch_init_osabi): Ditto.
2302 * sparc-tdep.c: Ditto for #if code.
2304 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2306 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2308 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2310 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2311 x86_64_supply_fxsave.
2312 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2313 x86_64_supply_fxsave.
2314 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2315 x86_64_supply_fxsave.
2317 2003-08-23 Andreas Jaeger <aj@suse.de>
2319 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2322 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2324 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2325 i387_supply_register.
2326 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2327 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2329 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2331 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2333 * i386bsd-nat.c (supply_fpregset): Adjust call to
2335 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2336 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2338 (store_inferior_registers): Remove extraneous whitespace. Call
2339 i387_fill_fsave instead of fill_fpregset.
2340 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2341 (supply_fpregset): Likewise.
2342 * i386v4-nat.c (supply_fpregset): Adjust call to
2344 * i386-interix-nat.c (supply_fpregset): Adjust call to
2346 * i386-linux-nat.c (supply_fpregset): Adjust call to
2348 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2349 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2350 i387supply_fsave and i387_supply_fxsave.
2351 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2352 Incorporate code from `i387_supply_register.
2353 (i387_supply_register): Remove.
2354 (i387_supply_fxsave): Add `regnum' argument.
2356 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2358 (i387_supply_register): remove prototype.
2361 2003-08-22 Michael Chastain <mec@shout.net>
2363 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2364 Add lines for files in gdb/testsuite/gdb.cp/* that are
2365 still not 8.3 unique.
2367 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2369 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2370 TYPE_VPTR_FIELDNO is valid.
2372 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2374 * utils.c (set_width_command): Remove prototypes.
2375 (set_screen_size): New prototype.
2376 (init_page_info): Simplify by fetching the screen size from
2377 Readline. Call set_screen_size.
2378 (set_screen_size): New function.
2379 (set_width): Add missing whitespace in comment.
2380 (set_width_command): Call set_screen_size.
2381 (set_height_command): New function.
2382 (initialize_utils): Fix formatting. Make "set height" command
2383 call set_height_command. Remove redundant code that turns off
2384 pagination if output isn't a terminal. Remove redundant call to
2387 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2389 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2390 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2391 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2392 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2394 (sparc64_register_info): Give the reister with number
2395 SPARC64_STATE_REGNUM a name.
2396 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2398 (sparc64_push_dummy_call): Take BIAS into account when checking
2400 (sparc_software_single_step): Remove assertions that check whether
2401 NPC and NNPC were zero.
2402 (sparc_supply_rwindow): Make public. Merge functionality with
2403 sparc64_supply_rwindow.
2404 (sparc_fill_rwindow): Make public. Merge functionality with
2405 sparc64_fill_rwindow.
2406 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2407 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2408 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2409 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2410 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2412 * reggroups.c: Add whitespace after declarations of local
2413 variables in functions.
2415 2003-08-21 Michael Chastain <mec@shout.net>
2417 * gdbtypes.h: Change array bound type from an int to enum.
2419 2003-08-21 Andrew Cagney <cagney@redhat.com>
2421 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2422 * config/sparc/tm-sparc.h: Ditto.
2423 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2425 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2427 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2429 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2430 (register_objfile_data, set_objfile_data, objfile_data): New
2432 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2434 (allocate_objfile): Call objfile_alloc_data.
2435 (free_objfile): Call objfile_free_data.
2436 (struct objfile_data): New.
2437 (struct objfile_data_registration): New.
2438 (struct objfile_data_registry): New.
2439 (objfile_data_registry): New variable.
2440 (register_objfile_data): New function.
2441 (objfile_alloc_data, objfile_free_data): New functions.
2442 (set_objfile_data, objfile_data): New functions.
2443 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2444 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2445 (_initialize_dwarf2_frame): New function and prototype.
2447 2003-08-21 Andrew Cagney <cagney@redhat.com>
2449 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2450 a specific architecture.
2451 * arch-utils.h (set_architecture_from_arch_mach): Delete
2453 (target_architecture_hook): Delete declaration.
2454 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2455 (default_float_format): Assume GDB_MULTI_ARCH.
2456 (default_double_format): Assume GDB_MULTI_ARCH.
2457 (set_endian_from_file): Delete function.
2458 (arch_ok): Delete function.
2459 (set_arch): Delete function.
2460 (set_architecture_from_arch_mach): Delete function.
2461 (set_architecture_from_file): Delete function.
2462 (set_architecture): Assume GDB_MULTI_ARCH.
2463 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2465 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2467 Rewrite FreeBSD/sparc64 native configuration.
2468 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2469 * sparc64fbsd-nat.c: New file.
2470 * sparc64fbsd-tdep.c: New file.
2471 * sparc64-tdep.c sparc64-tdep.h: New files.
2472 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2473 sparc64fbsd-tdep.o): New dependencies.
2474 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2475 and sparc64fbsd-tdep.c.
2476 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2477 * config/sparc/fbsd.mh: Remove copyright notice.
2478 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2480 * config/sparc/fbsd.mt: Remove copyright notice.
2481 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2482 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2483 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2484 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2485 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2486 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2487 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2488 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2490 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2491 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2493 2003-08-21 Michael Chastain <mec@shout.net>
2495 * symtab.h: Add doco on the space critical structures and
2496 some measurements of space usage.
2498 2003-08-21 Michael Snyder <msnyder@redhat.com>
2500 * tracepoint.c (trace_dump_command): Trace break address
2501 is subject to DECR_PC_AFTER_BREAK.
2502 (set_traceframe_context): Make "trace_line" an int.
2503 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2505 2003-08-20 Michael Snyder <msnyder@redhat.com>
2507 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2508 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2509 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2511 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2512 functions, replace sh_push_dummy_call.
2513 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2515 2003-08-20 Michael Chastain <mec@shout.net>
2517 * gdbtypes.h (struct main_type): Rearrange to save space.
2519 2003-08-20 Michael Snyder <msnyder@redhat.com>
2521 * trad-frame.c: Comment typo fix.
2523 2003-08-20 Michael Snyder <msnyder@redhat.com>
2524 Kevin Buettner <kevinb@redhat.com>
2526 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2527 (frv_frame_init_saved_regs): Add declaration.
2528 (frame_extra_info): Add new field ``saved_regs''.
2529 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2530 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2531 Update frame related code.
2532 (frv_extract_struct_value_address): Adjust formatting.
2533 * Makefile.in (frv-tdep.o): Update dependencies.
2534 * config/frv/tm-frv.h (target_insert_watchpoint)
2535 (target_remove_watchpoint, target_insert_hw_breakpoint)
2536 (target_remove_hw_breakpoint): Delete these macros.
2537 (remote_insert_watchpoint, remote_remove_watchpoint)
2538 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2541 2003-08-20 Michael Chastain <mec@shout.net>
2543 * defs.h (ENUM_BITFIELD): New macro.
2544 * symtab.h (ENUM_BITFIELD): Use it.
2545 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2547 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2549 * MAINTAINERS (write after approval): Add myself.
2551 2003-08-18 Andrew Cagney <cagney@redhat.com>
2553 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2554 * gdbarch.h, gdbarch.c: Re-generate.
2555 * infcall.c (call_function_by_hand): Adjust the SP by
2556 frame_red_zone_size before allocating any stack space.
2557 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2558 * x86-64-tdep.c (x86_64_frame_align): New function.
2559 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2561 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2562 Remove code adjusting SP so that it skips over the Red Zone.
2564 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2566 * NEWS (New native configurations): Mention FreeBSD/amd64.
2568 2003-08-18 Andrew Cagney <cagney@redhat.com>
2570 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2571 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2573 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2575 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2577 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2579 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2581 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2583 * i386-linux-nat.c: Include "linux-nat.h".
2584 (child_post_startup_inferior): New function.
2586 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2588 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2589 at the start of a frameless function. This probably fixes PR
2592 2003-08-17 Michael Chastain <mec@shout.net>
2594 * symfile.c (find_sym_fns): Remove special case for apollo target.
2596 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2598 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2599 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2600 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2601 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2602 (linux_supports_tracevforkdone): New function.
2603 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2605 (child_follow_fork): Handle vfork.
2606 (linux_handle_extended_wait): Likewise. Also handle exec.
2607 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2608 * NEWS: Mention fork tracing.
2610 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2612 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2614 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2616 * Makefile.in (i386-linux-nat.o): Update dependencies.
2617 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2618 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2619 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2620 * i386-linux-nat.c: Include "linux-nat.h".
2621 (child_post_startup_inferior): New function.
2622 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2623 * infptrace.c (kill_inferior): Wrap in #ifdef.
2624 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2625 attaching to each LWP.
2626 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2627 (init_lin_lwp_ops): Fill in some more operations.
2628 * linux-nat.h (linux_enable_event_reporting)
2629 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2631 * linux-nat.c (linux_enable_event_reporting): New function.
2632 (child_post_attach, linux_child_post_startup_inferior)
2633 (child_post_startup_inferior, child_follow_fork)
2634 (linux_handle_extended_wait, kill_inferior): New functions.
2636 2003-08-16 Andrew Cagney <cagney@redhat.com>
2638 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2639 * gdbarch.h, gdbarch.c: Re-generate.
2641 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2643 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2645 2003-08-16 Andrew Cagney <cagney@redhat.com>
2647 * NEWS: Mention that "set prompt-escape-char" was deleted.
2648 * top.c (get_prompt_1): Delete function.
2649 (gdb_prompt_escape):
2650 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2651 prompt-escape-char" command.
2652 (MAX_PROMPT_SIZE): Delete macro.
2653 (get_prompt): Simplify, do not call get_prompt_1.
2655 2003-08-16 Andrew Cagney <cagney@redhat.com>
2657 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2658 -Werror. -Wformat-nonliteral problems.
2660 2003-08-15 J. Brobecker <brobecker@gnat.com>
2662 Further multiarching work mostly for hppa64-*-hpux11:
2663 * hppa-tdep.h: New file.
2664 * hppa-tdep.c: #include hppa-tdep.c.
2665 (hppa32_num_regs): Renamed from hppa_num_regs.
2666 (hppa64_num_regs): New constant.
2667 (hppa64_call_dummy_breakpoint_offset): New constant.
2668 (hppa32_call_dummy_length): New constant.
2669 (hppa64_call_dummy_length): New constant.
2670 (hppa32_stack_align): Make name 32bit explicit.
2671 (hppa32_register_virtual_type): Likewise.
2672 (hppa32_extract_return_value): Likewise.
2673 (hppa32_use_struct_convention): Likewise.
2674 (hppa32_store_return_value): Likewise.
2675 (hppa64_register_virtual_type): New function.
2676 (hppa64_extract_return_value): New function.
2677 (hppa64_use_struct_convention): New function.
2678 (hppa64_store_return_value): New function.
2679 (hppa_frame_locals_address): Remove declaration, function does
2681 (hppa_register_byte): Add support for PA64 ABI.
2682 (hppa_gdbarch_init): Add support for PA64 ABI.
2683 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2684 Make name 32bit explicit.
2685 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2686 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2687 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2688 (hppa64_hpux_frame_base_before_sigtramp): New function.
2689 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2690 * config/pa/tm-hppa64.h: Remove macros that are no longer
2691 necessary now that the gdbarch vector is properly setup.
2692 Transform some macros into function calls. Some minor cleanup.
2693 * config/pa/tm-hppah.h: Update function calls in macros
2694 following the function renaming in hppa-hpux-tdep.c.
2695 * Makefile.in (hppa_tdep_h): New variable.
2696 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2698 2003-08-14 Michael Snyder <msnyder@redhat.com>
2700 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2702 2003-08-13 J. Brobecker <brobecker@gnat.com>
2704 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2705 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2708 2003-08-13 Michael Snyder <msnyder@redhat.com>
2710 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2711 (frv_saved_pc_after_call): Use deprecated ftype.
2712 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2713 (frv_remote_translate_xfer_address): Remove.
2714 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2716 2003-08-13 J. Brobecker <brobecker@gnat.com>
2718 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2719 initialization after the common gdbarch initialization, not before.
2721 2003-08-13 J. Brobecker <brobecker@gnat.com>
2723 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2724 (ADDR_BITS_REMOVE): Remove, redundant.
2726 2003-08-13 J. Brobecker <brobecker@gnat.com>
2728 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2729 gdbarch method to clear the 2 low bits of text addresses.
2731 2003-08-12 Andrew Cagney <cagney@redhat.com>
2733 * Makefile.in (dsrec.o): Update dependencies.
2734 * dsrec.c: Include "gdb_assert.h".
2735 (make_srec): Use snprintf instead of sprintf, use a literal format
2738 2003-08-12 Andrew Cagney <cagney@redhat.com>
2740 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2741 FRAME_OBSTACK_ZALLOC.
2743 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2745 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2748 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2750 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2751 amd64fbsd_sc_reg_offset): Add extern declarations.
2752 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2755 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2757 * MAINTAINERS (write after approval): Update my mail address.
2759 2003-08-10 Andrew Cagney <cagney@redhat.com>
2761 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2763 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2765 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2766 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2767 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2768 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2769 i386bsd_sc_reg_offset): Add extern declarations.
2770 * i386obsd-nat.c: Include "i386-tdep.h"
2771 (_initialize_i386obsd_nat): Remove extern declarations.
2772 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2774 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2777 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2778 instead of frame_read_register.
2779 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2780 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2782 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2783 instead of frame_unwind_unsigned_register. Use
2784 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2785 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2786 instead of read_register. Use builtin_type_void_data_ptr instead
2787 of builtin_type_void_func_ptr when extracting the address of the
2789 (i386_extract_return_value, i386_store_return_value,
2790 i386_pseudo_register_read, i386_pseudo_register_write): Use
2791 register_size instead REGISTER_RAW_SIZE.
2793 2003-08-10 Andrew Cagney <cagney@redhat.com>
2795 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2796 sprintf. Make "name" constant.
2798 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2800 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2801 instead of frame_read_register.
2802 (i387_print_float_info): Use get_frame_register and
2803 get_frame_register_unsigned instead of frame_register_read.
2805 * i386fbsd-nat.c: Include "i386-tdep.h".
2806 (child_resume): Make `eflags' an ULONGEST. Use
2807 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2808 instead of register_read and register_write.
2810 * i386bsd-nat.c (fetch_inferior_registers,
2811 store_inferior_registers): Don't use && at the end of a line.
2812 (_initialize_i386bsd_nat): Fix typo.
2814 * frame.c (_initialize_frame): Add missing backslash.
2816 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2817 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2818 and supply_register instead of manipulating the register buffer
2821 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2822 * config/i386/nm-i386sol2.h
2823 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2825 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2826 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2827 instructions that GCC likes to mingle into the prologue. Fixes
2828 gdb/1253 and gdb/1255.
2830 2003-08-09 Andrew Cagney <cagney@redhat.com>
2833 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2834 * command.h (add_setshow_uinteger_cmd): Declare.
2835 * frame.c (set_backtrace_cmd): New function.
2836 (show_backtrace_cmd): New function.
2837 * frame.c (_initialize_frame): Replace "set/show
2838 backtrace-below-main" with "set/show backtrace past-main". Add
2839 command "set/show backtrace limit".
2840 (backtrace_past_main): Rename "backtrace_below_main".
2841 (backtrace_limit): New variable.
2842 (get_prev_frame): Update. Check the backtrace_limit.
2844 2003-08-09 Andrew Cagney <cagney@redhat.com>
2846 * defs.h (xstrprintf): Declare.
2847 * utils.c (xstrprintf): New function.
2848 * breakpoint.c (insert_breakpoints): Replace sprintf and
2849 non-literal format strings, with xstrprintf and cleanups.
2850 (delete_breakpoint,breakpoint_re_set): Ditto.
2851 (commands_command, insert_breakpoints): Ditto.
2852 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2853 (break_at_finish_command_1): Ditto.
2855 2003-08-09 Andrew Cagney <cagney@redhat.com>
2857 * MAINTAINERS (language support): List Adam Fedor as Objective C
2860 2003-08-08 J. Brobecker <brobecker@gnat.com>
2862 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2863 are now multiarched.
2865 2003-08-08 J. Brobecker <brobecker@gnat.com>
2867 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2868 longer necessary now that hppa64 is partially multiarch'ed.
2870 2003-08-08 Andrew Cagney <cagney@redhat.com>
2872 * interps.c (interp_set): Check for a NULL "old_interp".
2874 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2876 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2877 (install-only): Support DESTDIR.
2878 (uninstall): Likewise.
2879 (install-gdbtk): Likewise.
2881 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2883 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2884 contains something meaningful at all times.
2886 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2888 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2890 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2892 * MAINTAINERS (write after approval): Added self.
2894 2003-08-07 Andrew Cagney <cagney@redhat.com>
2896 * inferior.h (AT_SYMBOL): Define.
2897 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2898 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2899 * mips-tdep.c (mips_call_dummy_address): Delete function.
2900 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2901 set call_dummy_address.
2903 2003-08-07 Andrew Cagney <cagney@redhat.com>
2905 * language.c (op_error): Delete function.
2906 (binop_type_check): Delete function.
2907 * language.h (type_op_error, range_op_error): Delete macros.
2908 (op_error): Delete declaration.
2910 2003-08-07 Andrew Cagney <cagney@redhat.com>
2912 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2914 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2916 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2917 (x86_64_push_arguments): Skip the red zone.
2919 2003-08-05 Andrew Cagney <cagney@redhat.com>
2921 * reggroups.c (reggroup_next): Check for the final entry.
2923 2003-08-04 Andrew Cagney <cagney@redhat.com>
2925 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2926 * cli/cli-script.c (define_command): Call query directly, instead
2927 of passing it a buffer.
2928 * ocd.c (ocd_error): Pass error a constant format string.
2929 * remote-mips.c (mips_error): Use fputs_filtered.
2931 * solib-svr4.c (_initialize_svr4_solib): Update
2932 register_gdbarch_data call.
2933 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2935 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2936 (register_gdbarch_data): Delete "free" parameter. Update
2938 * gdbarch.h, gdbarch.c: Re-generate.
2939 * reggroups.c (_initialize_reggroup): Update.
2940 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2941 * frame-base.c (_initialize_frame_base): Update.
2942 * frame-unwind.c (_initialize_frame_unwind): Update.
2943 * user-regs.c (_initialize_user_regs): Update.
2944 * remote.c (_initialize_remote): Update.
2945 * regcache.c (_initialize_regcache): Update.
2947 * regcache.c (xfree_regcache_descr): Delete function.
2948 (_initialize_regcache): Update call to register_gdbarch_data.
2949 (init_regcache_descr, init_legacy_regcache_descr): Use
2950 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2952 * remote.c (free_remote_state): Delete function.
2953 (_initialize_remote): Update register_gdbarch_data.
2954 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2955 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2957 2003-08-04 Andrew Cagney <cagney@redhat.com>
2959 * reggroups.c (struct reggroup_el): Define.
2960 (struct reggroups): Delete field "nr_group". Replace array
2961 "group" with a "first" to "last" linked list.
2962 (reggroups_init): Update. Allocate using gdbarch's obstack.
2963 (reggroups_free): Delete function.
2964 (add_group): Update. Add "el" parameter.
2965 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2966 (default_groups): Update.
2967 (reggroup_next): Replace reggroups.
2968 (reggroups_dump): Update.
2969 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2970 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2971 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2973 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2975 * Makefile.in (tui-interp.o): Update dependencies.
2977 2003-08-04 David Carlton <carlton@kealia.com>
2979 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2980 to internal_error call.
2981 * source.c (forward_search_command): Add "%s" format argument.
2982 (reverse_search_command): Ditto.
2983 * top.c (quit_confirm): Ditto.
2984 * cli/cli-setshow.c (do_setshow_command): Ditto.
2985 * cp-valprint.c (cp_print_class_method): Replace
2986 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2987 (cp_print_class_member): Ditto.
2988 * event-top.c (command_line_handler): Ditto.
2989 * linux-proc.c (linux_info_proc_cmd): Ditto.
2990 * p-typeprint.c (pascal_type_print_base): Ditto.
2991 * p-valprint.c (pascal_object_print_class_method): Ditto.
2992 (pascal_object_print_class_member): Ditto.
2993 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2994 * remote.c (remote_cisco_section_offsets): Ditto.
2995 * top.c (command_line_input): Ditto.
2996 * utils.c (vwarning,error_stream,quit): Ditto.
2997 * valprint.c (print_floating,print_binary_chars)
2998 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3000 2003-08-04 Andrew Cagney <cagney@redhat.com>
3002 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3004 2003-08-02 Andrew Cagney <cagney@redhat.com>
3006 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3007 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3010 2003-08-02 Andrew Cagney <cagney@redhat.com>
3012 * Makefile.in: Update all dependencies and definitions.
3014 2003-08-02 Adam Fedor <fedor@gnu.org>
3016 * linespec.c (is_objc_method_format): New function
3017 (decode_line_1, locate_first_half): Use it.
3020 2003-08-01 Andrew Cagney <cagney@redhat.com>
3022 * NEWS: Mention that m32r is multi-arch.
3023 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3024 * configure.tgt: Recognize m32r-*-*.
3025 * config/m32r/tm-m32r.h: Delete file.
3026 * config/m32r/m32r.mt: New file.
3027 * m32r-rom.c (m32r_upload_command): Use hostent only when
3028 gethostname succeeds, in order to avoid a compilation
3030 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3033 2003-08-01 Michael Snyder <msnyder@redhat.com>
3035 * sh-tdep.c (sh_frame_align): New gdbarch method.
3036 (sh_gdbarch_init): Set up frame_align method.
3038 2003-07-31 Michael Snyder <msnyder@redhat.com>
3040 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3041 which is already covered by the new frames infrastructure.
3043 2003-07-31 Andrew Cagney <cagney@redhat.com>
3045 * user-regs.c (struct user_reg): Add "next" link.
3046 (struct user_regs): Replace "user" with "first" and "last" links.
3047 (append_user_reg): Add pre-allocated "reg" parameter.
3048 (builtin_user_regs): Provide initial value for "last".
3049 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3050 (user_regs_init): Allocate memory from the gdbarch obstack.
3051 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3052 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3054 (usernum_to_user_reg): New function.
3055 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3056 (value_of_user_reg): Use usernum_to_user_reg.
3057 (user_regs_free): Delete function.
3058 (_initialize_user_regs): Update register_gdbarch_data call.
3060 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3062 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3064 2003-07-30 Michael Snyder <msnyder@redhat.com>
3066 * value.h (value_being_returned): Add a struct_addr argument.
3067 * infcall.c (call_function_by_hand): Pass struct_addr to
3068 value_being_returned.
3069 * infcmd.c (print_return_value): Pass zero as struct_addr.
3070 * values.c (value_being_returned): If struct_addr is passed,
3071 use it instead of trying to recover it from the inferior.
3073 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3075 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3076 the prologue analyzer won't need to attempt to extract the pc
3077 value from the woefully incomplete dummy frame.
3078 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3079 possible. Disable code which modifies the frame.
3081 2003-07-28 Andrew Cagney <cagney@redhat.com>
3083 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3085 (annotate_breakpoints_table, annotate_record): Ditto.
3086 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3087 (annotate_field_name_end, annotate_field_value): Ditto.
3088 (annotate_field_end, annotate_frame_source_begin): Ditto.
3089 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3090 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3091 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3092 (annotate_frame_address_end, annotate_frame_address): Ditto.
3093 (annotate_frame_args, annotate_frame_end): Ditto.
3094 (annotate_frame_where, annotate_arg_begin): Ditto.
3095 (annotate_arg_name_end, annotate_arg_value): Ditto.
3096 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3097 (annotate_function_call, annotate_signal_name): Ditto.
3098 (annotate_signal_string, annotate_signal_name_end): Ditto.
3099 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3100 (annotate_value_begin, annotate_value_history_value): Ditto.
3101 (annotate_value_history_end, annotate_value_end): Ditto.
3102 (annotate_display_begin, annotate_display_number_end): Ditto.
3103 (annotate_display_format, annotate_display_expression): Ditto.
3104 (annotate_display_expression_end, annotate_display_value): Ditto.
3105 (annotate_display_end, annotate_array_section_begin): Ditto.
3106 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3107 (annotate_elt, annotate_array_section_end): Ditto.
3109 2003-07-28 Andrew Cagney <cagney@redhat.com>
3111 * regcache.c (struct regcache_descr): Update comments on
3113 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3114 sizeof_raw_register_valid_p.
3115 (init_regcache_descr): Set nr_raw_registers and
3116 sizeof_raw_register_valid_p before calling
3117 init_legacy_regcache_descr.
3119 2003-07-28 Andrew Cagney <cagney@redhat.com>
3121 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3124 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3126 * thread.c (info_threads_command): Use get_selected_frame ().
3127 Check that there is at least one non-sentinel frame.
3129 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3131 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3132 (m68hc11_pop_frame): Remove.
3133 (m68hc11_frame_saved_pc): Remove.
3134 (m68hc11_frame_chain): Remove.
3135 (m68hc11_frame_init_saved_regs): Remove.
3136 (m68hc11_init_extra_frame_info): Remove.
3137 (m68hc11_store_struct_return): Remove.
3138 (m68hc11_saved_pc_after_call): Remove.
3140 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3142 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3143 frame unwind information.
3144 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3145 and adapted for frame unwinding.
3146 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3147 (m68hc11_unwind_pc): New function.
3148 (m68hc11_frame_unwind_cache): New function to analyze frames.
3149 (m68hc11_frame_this_id): New function to create new frame struct.
3150 (m68hc11_frame_prev_register): New function to unwind a register from
3152 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3153 (m68hc11_frame_p): New function for the above.
3154 (m68hc11_frame_base_address): New function to return fp of frame.
3155 (m68hc11_frame_args_address): Update for frame.
3156 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3157 (m68hc11_unwind_sp): New function.
3158 (m68hc11_unwind_dummy_id): New function.
3159 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3162 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3164 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3165 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3166 when we are beyond the current pc.
3168 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3170 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3171 from m68hc11_push_arguments.
3172 (m68hc11_push_arguments): Remove.
3173 (m68hc11_push_return_address): Remove.
3174 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3175 handlers; remove deprecated_extra_stack_alignment_needed.
3177 2003-07-27 Andrew Cagney <cagney@redhat.com>
3179 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3180 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3181 REAL_PC and not the pointer.
3182 * hppa-hpux-tdep.c: Include frame.h
3184 2003-07-27 Andrew Cagney <cagney@redhat.com>
3186 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3187 GDB_MULTI_ACH_PARTIAL.
3189 2003-07-27 Andrew Cagney <cagney@redhat.com>
3191 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3192 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3193 operator at start and not end of line.
3194 (decode_prologue): Ditto.
3195 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3196 frame_unwind_register_unsigned instead of
3197 frame_unwind_unsigned_register.
3198 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3200 (m32r_push_dummy_call): Use register_size instead of
3202 (m32r_frame_sniffer): Replace m32r_frame_p.
3203 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3204 * m32r-rom.c (report_transfer_performance): Delete extern
3206 (m32r_load, m32r_upload_command): Use print_transfer_performance
3207 instead of report_transfer_performance.
3208 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3209 / add_show_from_set.
3211 2003-07-26 Andrew Cagney <cagney@redhat.com>
3213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3214 store_return_value and extract_struct_value_address.
3216 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3219 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3220 NULL, default to the section containing PC.
3222 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3224 * NEWS: Mention "regs" deprecated for m68hc11 too.
3226 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3227 (m68hc11_print_register): New function to print out one register.
3228 (m68hc11_print_registers_info): New function to print registers.
3229 (show_regs): Deprecate and use the above.
3230 (m68hc11_gdbarch_init): Install the print_registers_info.
3232 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3234 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3235 that we have a SIGTRAP before returning non-zero.
3237 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3238 Elena Zannoni <ezannoni@redhat.com>
3240 * linespec.c (decode_line_2): Avoid crash if
3241 find_function_start_sal() returns empty record.
3243 2003-07-23 Andreas Schwab <schwab@suse.de>
3245 * ia64-tdep.c (ia64_print_insn): New function.
3246 (ia64_gdbarch_init): Set print_insn to it.
3247 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3248 deprecated_tm_print_insn_info.
3250 2003-07-22 Michael Snyder <msnyder@redhat.com>
3252 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3253 handle 8-bit returns (long long).
3254 (h8300h_extract_return_value): Ditto.
3255 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3257 2003-07-22 Andrew Cagney <cagney@redhat.com>
3259 * gdbarch.c Include "gdb_obstack.h".
3260 (struct gdbarch): Add an "obstack".
3261 (alloc_gdbarch_data): Allocate the gdbarch data using
3262 GDBARCH_OBSTACK_CALLOC.
3263 (free_gdbarch_data): Delete function.
3264 (gdbarch_obstack_zalloc): New function.
3265 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3266 Assert that the architecture is not initialized.
3267 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3268 vector from the obstack.
3269 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3270 architecture obstack.
3271 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3272 (set_gdbarch_data): Assert that the data is not initialized.
3273 (struct gdbarch_data): Delete member "free".
3274 (register_gdbarch_data): Do not initialize "free".
3275 * gdbarch.h, gdbarch.c: Re-generate.
3277 2003-07-22 Andrew Cagney <cagney@redhat.com>
3279 * configure.in (build_warnings): Add -Wformat-nonliteral.
3280 * configure: Re-generate.
3282 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3284 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3286 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3288 * findvar.c (read_var_value): Remove case for thread local storage
3289 variables. It is now entirely handled by the dwarf2 location
3291 * printcmd.c (address_info): Ditto.
3292 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3294 (struct symbol): Remove objfile field, which was used by
3295 LOC_THREAD_LOCAL_STATIC only.
3296 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3297 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3298 usage of objfile pointer.
3299 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3300 thread local variables.
3301 Add include of objfiles.h.
3302 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3304 * Makefile.in (dwarf2loc.o): Update dependencies.
3306 2003-07-22 Andrew Cagney <cagney@redhat.com>
3308 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3310 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3311 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3312 (struct value): Add opaque declaration.
3313 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3315 2003-07-21 Andrew Cagney <cagney@redhat.com>
3317 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3318 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3320 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3322 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3323 regcache_cooked_read_unsigned instead of read_register.
3324 (m68hc11_saved_pc_after_call): Likewise.
3325 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3326 instead of write_register.
3327 (m68hc11_register_type): New function.
3328 (m68hc11_register_virtual_type): Remove.
3329 (m68hc11_store_return_value): Convert to use the regcache.
3330 (m68hc11_extract_struct_value_address): Likewise.
3331 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3332 m68hc11_register_type; undeprecate store_return_value and
3333 extract_struct_value_address.
3335 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3337 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3338 and translate to use regcache.
3339 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3341 2003-07-18 Andrew Cagney <cagney@redhat.com>
3343 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3344 * gdbarch.h, gdbarch.c: Re-generate.
3345 * i386-tdep.c (i386_gdbarch_init): Do not set
3346 DWARF2_BUILD_FRAME_INFO.
3347 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3349 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3350 DWARF2_BUILD_FRAME_INFO.
3352 2003-07-18 Andrew Cagney <cagney@redhat.com>
3354 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3355 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3357 2003-07-18 Andrew Cagney <cagney@redhat.com>
3359 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3360 frame_unwind_address_in_block, instead of frame_pc_unwind.
3361 (dwarf2_frame_cache): Ditto.
3363 2003-07-18 Andrew Cagney <cagney@redhat.com>
3365 * user-regs.h (struct gdbarch): Declare opaque.
3366 * ui-out.h (struct ui_file): Declare opaque.
3367 * dwarf2-frame.h (struct frame_info): Declare opaque.
3369 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3371 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3373 (procfs_meminfo): Change strerror to safe_strerror.
3374 (procfs_can_run): Remove K&R badness.
3376 2003-07-17 Michael Snyder <msnyder@redhat.com>
3378 * remote-sim.c: Comment typo fix.
3380 2003-07-17 Andrew Cagney <cagney@redhat.com>
3382 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3384 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3385 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3386 GDB_MULTI_ARCH_PARTIAL.
3388 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3390 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3391 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3392 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3394 2003-07-16 Theodore A. Roth <troth@openavr.org>
3396 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3398 (avr_frame_unwind_cache): Don't unwind FP for main.
3400 Save the computed prev_sp.
3401 (avr_saved_regs_unwinder): Remove function.
3402 (avr_frame_prev_register): Use PC unwind logic from
3403 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3405 2003-07-16 Andrew Cagney <cagney@redhat.com>
3407 * frame-base.h (frame_base_p_ftype): Delete definition.
3408 (frame_base_append_predicate): Delete declaration.
3409 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3410 (frame_unwind_append_predicate): Delete declaration.
3411 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3412 (append_predicate): Delete parameter "p".
3413 (frame_unwind_append_predicate): Delete function.
3414 (frame_unwind_append_sniffer): Update call to append_predicate.
3415 (frame_unwind_free): Delete function.
3416 (_initialize_frame_unwind): Pass NULL as "free" to
3417 register_gdbarch_data.
3418 (frame_unwind_init): Append the dummy_frame_sniffer.
3419 (frame_unwind_find_by_frame): Simplify.
3420 * frame-base.c (struct frame_base_table): Delete field "p".
3421 (append_predicate): Delete parameter "p".
3422 (frame_base_append_predicate): Delete function.
3423 (frame_base_append_sniffer): Update call to append_predicate.
3424 (frame_base_free): Delete function.
3425 (frame_base_find_by_frame): Simplify.
3426 (_initialize_frame_base): Pass NULL as "free" to
3427 register_gdbarch_data.
3428 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3429 (x86_64_sigtramp_frame_sniffer): Replace
3430 "x86_64_sigtramp_frame_p".
3431 (x86_64_init_abi): Set the frame unwind sniffers.
3432 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3433 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3434 (m68k_gdbarch_init): Set the frame unwind sniffers.
3435 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3436 "i386_sigtramp_frame_p".
3437 (i386_frame_sniffer): Replace "i386_frame_p".
3438 (i386_gdbarch_init): Set the frame unwind sniffers.
3439 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3440 (avr_gdbarch_init): Set the frame unwind sniffers.
3441 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3442 "alpha_sigtramp_frame_p"
3443 (alpha_heuristic_frame_sniffer): Replace
3444 "alpha_heuristic_frame_p".
3445 (alpha_gdbarch_init): Set the frame unwind sniffers.
3446 (alpha_dwarf2_init_abi): Ditto.
3447 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3448 "alpha_debug_frame_p".
3449 (alpha_mdebug_frame_base_sniffer): Replace
3450 "alpha_mdebug_frame_base_p".
3451 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3452 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3453 (d10v_gdbarch_init): Set the frame unwind sniffer.
3454 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3455 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3456 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3457 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3458 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3459 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3461 2003-07-16 Michael Snyder <msnyder@redhat.com>
3463 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3464 should go thru sh_dsp_register_sim_regno, else the dsp regs
3465 will not get the right values.
3467 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3469 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3470 deprecated_store_floating by call to store_typed_floating.
3471 (sh_sh4_register_convert_to_raw): Substitute call to
3472 deprecated_extract_floating by call to extract_typed_floating.
3474 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3476 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3478 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3480 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3481 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3482 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3484 (do_pseudo_register): Remove.
3485 (sh_push_dummy_code): New function.
3486 (sh64_store_struct_return): Rename from sh_store_struct_return.
3487 Only called for sh64 now.
3488 (sh_extract_struct_value_address): Regcache'ify.
3489 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3490 and accomodate new tasks.
3491 (sh64_push_return_address): Rename from sh_push_return_address.
3492 Only called for sh64 now.
3493 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3495 (sh3e_sh4_extract_return_value): Regcache'ify.
3496 (sh_default_store_return_value): Ditto.
3497 (sh3e_sh4_store_return_value): Ditto.
3498 (sh_default_register_byte): Remove.
3499 (sh_sh4_register_byte): Remove.
3500 (sh_default_register_raw_size): Remove.
3501 (sh_sh4_register_raw_size): Remove.
3502 (sh_register_virtual_size): Remove.
3503 (sh_sh3e_register_virtual_type): Remove.
3504 (sh_sh3e_register_type): New function.
3505 (sh_sh4_register_virtual_type): Remove.
3506 (sh_sh4_register_type): New function.
3507 (sh_default_register_virtual_type): Remove.
3508 (sh_default_register_type): New function.
3509 (do_fv_register_info): Add parameters to accomodate call from
3510 sh_print_registers_info.
3511 (do_dr_register_info): Ditto.
3512 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3513 Add parameters to accomodate call from sh_print_registers_info.
3514 (sh_do_fp_register): Ditto.
3515 (sh64_do_pseudo_register): Call do_dr_register_info,
3516 do_fv_register_info and sh_do_fp_register with default parameters.
3517 (sh_do_register): Add parameters to accomodate call from
3518 sh_print_registers_info.
3519 (sh_print_register): Ditto.
3520 (sh_print_registers_info): Rename from sh_do_registers_info.
3521 Add parameters to be used as gdbarch_print_registers_info
3522 implementation. Accomodate removed do_pseudo_register function
3524 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3525 function pointer. Call sh_print_register with default parameters.
3526 (sh64_do_registers_info): Call sh_print_registers_info instead of
3527 sh_do_registers_info.
3528 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3529 detection of deprecated vs. non-deprecated functionality.
3530 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3531 function pointer assignments by direct function calls.
3533 2003-07-15 Andrew Cagney <cagney@redhat.com>
3535 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3536 (frame_register_unwind, create_new_frame): Ditto.
3537 (legacy_get_prev_frame, get_frame_type): Ditto.
3538 (get_frame_base_address): Use frame_base_find_by_frame.
3539 (get_frame_locals_address): Use frame_base_find_by_frame.
3540 (get_frame_args_address): Use frame_base_find_by_frame.
3541 * frame-base.h (frame_base_sniffer_ftype): Declare.
3542 (frame_base_append_sniffer): Declare.
3543 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3544 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3545 (frame_base_append_sniffer): New function.
3546 (frame_base_append_predicate): Add a NULL sniffer.
3547 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3548 (struct frame_base_table): Add "sniffer".
3549 (frame_base_free): Free the "sniffer" table.
3550 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3551 (frame_unwind_append_sniffer): Declare.
3552 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3553 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3554 (struct frame_unwind_table): Add "sniffer", delete "middle".
3555 (append_predicate): Add "sniffer" parameter, append the sniffer.
3556 (frame_unwind_init): Update append_predicate call.
3557 (frame_unwind_append_sniffer): New function.
3558 (frame_unwind_append_predicate): Update append_predicate call.
3559 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3561 2003-07-15 Andrew Cagney <cagney@redhat.com>
3563 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3564 before code inhibiting repeated unwind attempts. Add to
3565 commentary on that test's problems.
3566 * blockframe.c (inside_main_func): Look for "main" in the minimal
3568 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3571 2003-07-15 Andrew Cagney <cagney@redhat.com>
3573 * complaints.c (struct explanation): Define.
3574 (struct complaints): Change type of "explanation" to "struct
3576 (symfile_explanations): Convert to a "struct explanation" table.
3577 (vcomplaint): Update.
3579 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3581 * x86-64-linux-nat.c (regmap): Removed.
3582 (supply_gregset, fill_gregset): Call
3583 x86_64_linux_(fill,supply)_gregset functions.
3584 * x86-64-linux-tdep.c (USER_*): New defines.
3585 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3586 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3588 (fetch_core_registers): Ditto.
3589 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3590 * x86-64-linux-tdep.h: New file.
3591 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3593 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3595 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3597 * x86-64-tdep.c (x86_64_store_return_value): Use
3598 regcache_cooked_write_part instead of regcache_cooked_write.
3600 * configure.host: Add x86_64-*-freebsd*.
3601 * configure.tgt: Add x86_64-*-freebsd*.
3602 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3603 * amd64fbsd-nat.c: New file.
3604 * amd64fbsd-tdep.c: New file.
3605 * config/i386/nm-fbsd64.h: New file.
3606 * config/i386/fbsd64.mh: New file.
3607 * config/i386/fbsd64.mt: New file.
3609 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3611 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3612 `sc_regs_offset' and `sc_fpregs_offset'.
3613 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3614 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3615 (alpha_sigtramp_register_address): Rewrite to use new members of
3616 `struct gdbarch_tdep'.
3617 (alpha_gdbarch_init): Initialize new members of struct
3619 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3620 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3621 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3622 (alphafbsd_pc_in_sigtramp): Implement.
3623 (alphafbsd_sigtramp_offset): New function.
3624 (alphafbsd_sigcontext_addr): New function.
3625 (alphafbsd_init_abi): Initialize signal trampoline related members
3626 of `struct gdbarch_tdep'.
3627 (_initialize_alphafbsd_tdep): Add prototype.
3629 2003-07-11 Theodore A. Roth <troth@openavr.org>
3631 * Makefile.in (install-only): Quote sed expression when generating
3634 2003-07-11 Richard Henderson <rth@redhat.com>
3636 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3637 * dwarf2-frame.c: Include complaints.h.
3638 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3639 variable initialization; return NULL on error.
3640 (decode_frame_entry): New.
3642 2003-07-11 Andrew Cagney <cagney@redhat.com>
3644 * frame.h (frame_address_in_block): Delete declaration.
3645 * blockframe.c (frame_address_in_block): Delete function.
3646 (get_frame_block): Use get_frame_address_in_block.
3647 (block_innermost_frame): Ditto.
3648 * stack.c (print_frame, backtrace_command_1): Ditto.
3650 * frame.h (get_frame_address_in_block): Declare.
3651 (frame_unwind_address_in_block): Declare.
3652 * frame.c (frame_unwind_address_in_block): New function.
3653 (get_frame_address_in_block): New function.
3655 2003-07-10 Andrew Cagney <cagney@redhat.com>
3657 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3658 pre-default. Note: re-generate has no effect.
3660 2003-07-10 Andrew Cagney <cagney@redhat.com>
3662 * gdbarch.sh: When a variable, but not a function, compare against
3663 0. Fix problem in previous patch.
3664 * gdbarch.c: Re-generate.
3666 2003-07-10 Andrew Cagney <cagney@redhat.com>
3668 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3669 functions against NULL, not 0.
3670 * gdbarch.c: Re-generate.
3672 2003-07-10 Fred Fish <fnf@ninemoons.com>
3674 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3675 null string instead of a null pointer.
3676 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3678 2003-07-09 Michael Snyder <msnyder@redhat.com>
3680 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3682 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3684 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3685 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3686 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3687 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3688 * x86-64-tdep.c: ... from here.
3690 2003-07-09 Andreas Schwab <schwab@suse.de>
3692 * m68k-tdep.h (enum struct_return): Define.
3693 (struct gdbarch_tdep): Add struct_return.
3694 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3695 bytes are padded to the right, not to the left. Pass struct value
3696 address in register %a1, not on stack.
3697 (m68k_use_struct_convention): New function.
3698 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3699 struct_return in tdep to pcc_struct_return.
3700 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3703 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3705 * somread.c (som_symfile_offsets): Fix compilation error.
3707 2003-07-09 Andrew Cagney <cagney@redhat.com>
3709 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3710 Add comments about the checks.
3712 2003-07-08 Andrew Cagney <cagney@redhat.com>
3714 * Makefile.in: Make dependency section headers consistent.
3715 (config_h): Move to $BUILD headers section.
3716 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3717 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3718 (ada-exp.tab.c): Move to YACC/LEX section.
3719 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3720 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3722 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3724 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3725 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3726 of strerror with safe_strerror, use ISO C function definitions,
3727 and replace instances of sprintf with snprintf.
3729 2003-07-07 Andrew Cagney <cagney@redhat.com>
3731 * frame.c (get_prev_frame): Enable check for identical frames.
3732 Update comments. Update error messages.
3734 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3736 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3738 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3740 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3741 sort_symtab_syms, no longer necessary.
3743 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3745 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3747 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3749 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3750 (mips_register_byte): Likewise.
3752 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3754 * Makefile.in (sparc_tdep_h): New.
3755 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3756 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3757 * sparc-linux-nat.c: Include "sparc-tdep.h".
3758 * sparc-nat.c: Likewise.
3759 * sparc-tdep.c: Likewise.
3760 * sparc64nbsd-nat.c: Likewise.
3761 * sparcnbsd-nat.c: Likewise.
3762 * sparcnbsd-tdep.c: Likewise.
3763 * sparc-tdep.h: New file.
3764 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3765 and sparc_npc_regnum.
3767 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3769 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3770 (mips_linux_cannot_store_register): List supported instead of
3771 unsupported registers.
3773 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3775 * disasm.c (dump_insns): Separate instructions from addresses.
3777 2003-07-07 Andreas Schwab <schwab@suse.de>
3779 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3781 * m68k-tdep.c (NUM_FREGS): Delete.
3782 (SIG_PC_FP_OFFSET): Delete.
3783 (TARGET_M68K): Delete.
3784 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3785 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3786 P_MOVEL_SP, P_MOVEML_SP): Define.
3787 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3789 (m68k_register_raw_size): Delete.
3790 (m68k_register_virtual_size): Delete.
3791 (m68k_register_type): Renamed from m68k_register_virtual_type and
3792 add gdbarch argument.
3793 (m68k_store_struct_return): Delete.
3794 (m68k_deprecated_extract_return_value): Delete.
3795 (m68k_deprecated_extract_struct_value_address): Delete.
3796 (m68k_frame_chain): Delete.
3797 (m68k_frame_saved_pc): Delete.
3798 (m68k_fix_call_dummy): Delete.
3799 (m68k_push_dummy_frame): Delete.
3800 (m68k_pop_frame): Delete.
3801 (m68k_extract_return_value): New function.
3802 (m68k_store_return_value): Rewrite using regcache.
3803 (m68k_extract_struct_value_address): Rewrite using regcache.
3804 (m68k_push_dummy_call): New function.
3805 (struct m68k_frame_cache): Define.
3806 (m68k_alloc_frame_cache): New function.
3807 (m68k_analyze_frame_setup): New function.
3808 (m68k_analyze_register_saves): New function.
3809 (m68k_analyze_prologue): New function.
3810 (m68k_skip_prologue): Rewrite using above functions.
3811 (m68k_unwind_pc): New function.
3812 (m68k_frame_cache): New function.
3813 (m68k_frame_this_id): New function.
3814 (m68k_frame_prev_register): New function.
3815 (m68k_frame_unwind): New variable.
3816 (m68k_frame_p): New function.
3817 (m68k_sigtramp_frame_cache): New function.
3818 (m68k_sigtramp_frame_this_id): New function.
3819 (m68k_sigtramp_frame_prev_register): New function.
3820 (m68k_sigtramp_frame_unwind): New variable.
3821 (m68k_sigtramp_frame_p): New function.
3822 (m68k_frame_base_address): New function.
3823 (m68k_frame_base): New function.
3824 (m68k_unwind_dummy_id): New function.
3825 (fill_gregset): Use regcache_collect.
3826 (fill_fpregset): Likewise.
3827 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3829 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3830 deprecated_init_frame_pc, deprecated_store_struct_return,
3831 deprecated_extract_return_value, deprecated_store_return_value,
3832 deprecated_frame_chain, deprecated_frame_saved_pc,
3833 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3834 deprecated_register_virtual_size,
3835 deprecated_max_register_raw_size,
3836 deprecated_max_register_virtual_size,
3837 deprecated_register_virtual_type, deprecated_register_size,
3838 deprecated_register_byte, deprecated_register_bytes,
3839 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3840 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3841 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3842 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3843 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3844 deprecated_push_dummy_frame, deprecated_pop_frame,
3845 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3846 only if SYSCALL_TRAP is defined. Set extract_return_value,
3847 store_return_value, extract_struct_value_address, register_type,
3848 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3850 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3851 M68K_MAX_REGISTER_SIZE): Define.
3852 (struct m68k_sigtramp_info): Define.
3853 (struct gdbarch_tdep): Add get_sigtramp_info.
3854 * m68klinux-nat.c (fetch_register): Use register_size instead of
3855 REGISTER_RAW_SIZE. Don't put assignment in if.
3856 (store_register): Likewise.
3857 (fetch_inferior_registers): Likewise.
3858 (store_inferior_registers): Likewise.
3859 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3860 (m68k_linux_frame_saved_pc): Delete.
3861 (m68k_linux_sigcontext_reg_offset,
3862 m68k_linux_ucontext_reg_offset): Define.
3863 (m68k_linux_get_sigtramp_info): New function.
3864 (m68k_linux_extract_return_value): Rewrite using regcache.
3865 (m68k_linux_store_return_value): Likewise.
3866 (m68k_linux_extract_struct_value_address): Likewise.
3867 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3868 Don't set deprecated_frame_saved_pc,
3869 deprecated_extract_return_value, deprecated_store_return_value,
3870 deprecated_extract_struct_value_address. Set
3871 extract_return_value, store_return_value,
3872 extract_struct_value_address.
3874 2003-07-07 Andrew Cagney <cagney@redhat.com>
3876 * expprint.c: Include "user-regs.h" instead of "frame.h".
3877 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3878 frame_map_regnum_to_name.
3879 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3880 (frame_map_name_to_regnum): Simplify, call
3881 user_reg_map_name_to_regnum.
3882 (frame_map_regnum_to_name): Simplify, call
3883 user_reg_map_regnum_to_name.
3884 (frame_register_unwind): Update.
3885 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3886 (_initialize_frame_reg): Call user_reg_add_builtin.
3887 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3888 (value_of_register): Use value_of_user_reg.
3889 * eval.c (evaluate_subexp_standard): Update.
3890 * parse.c (write_dollar_variable): Update.
3891 * d10v-tdep.c (d10v_print_registers_info): Update.
3892 * infcmd.c (registers_info): Update.
3893 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3894 (builtin_regs_h): Delete macro.
3895 (user_regs_h): Define.
3896 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3897 (builtin-regs.o): Delete target.
3898 (user-regs.o): Specify dependencies.
3899 (expprint.o): Update dependencies.
3900 (findvar.o): Update dependencies.
3901 (frame.o): Update dependencies.
3902 (std-regs.o): Update dependencies.
3904 2003-07-06 Christopher Faylor <cgf@redhat.com>
3906 * win32-nat.c (solib_symbols_add): Use one variable for all section
3907 address stuff. Pass variable rather than address of variable to
3908 safe_symbol_file_add.
3910 2003-07-06 Andreas Schwab <schwab@suse.de>
3912 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3914 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3916 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3918 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3920 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3922 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3924 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3925 * config/i386/nto.mh: New file.
3926 * config/i386/nm-nto.h: New file.
3927 * configure.host: Add i[3456]86-*-nto*.
3929 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3931 * remote-vx.c (vx_add_symbols): Fix compilation error.
3933 2003-07-03 Andrew Cagney <cagney@redhat.com>
3935 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3936 * gdbarch.h, gdbarch.c: Re-generate.
3937 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3938 (legacy_register_name): Declare.
3939 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3940 (REGISTER_NAME): Define.
3941 * sparc-tdep.c (legacy_register_name): New function.
3942 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3943 (REGISTER_NAME): Define.
3944 (hppa64_register_name): Declare.
3945 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3946 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3947 (hppa64_register_name): New function.
3948 (hppa_register_name): New function.
3949 * arch-utils.c (legacy_register_name): Delete.
3950 * arch-utils.h (legacy_register_name): Delete.
3952 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3954 * cli/cli-interp.c (cli_interpreter_resume): Update the
3955 cli_uiout's stream to gdb_stdout.
3957 2003-07-03 Andrew Cagney <cagney@redhat.com>
3959 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3961 * gdbarch.h, gdbarch.c: Re-generate.
3962 * regcache.c (init_regcache_descr): Use legacy code when either
3963 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3965 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3967 * NEWS: Move "set logging" entry into GDB 6.0 section.
3969 2003-07-02 Jim Blandy <jimb@redhat.com>
3971 * s390-tdep.c (struct frame_extra_info): new member:
3972 'stack_bought_valid'.
3973 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3974 initialize fextra_info->stack_bought.
3975 (s390_frameless_function_invocation): Don't trust the value of
3976 fextra_info_ptr->stack_bought unless
3977 fextra_info->stack_bought_valid is set.
3979 New S390 prologue analyzer.
3980 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3981 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3982 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3983 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3984 compute_x_addr, s390_on_stack, s390_store,
3985 s390_get_signal_frame_info): New functions.
3986 (S390_NUM_SPILL_SLOTS): New macro.
3987 (s390_get_frame_info): Rewritten.
3988 (is_arg_reg): Deleted.
3990 Break out the decoding of S/390 instructions into separate
3991 functions, to make it more legible, and easier to check
3993 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3994 is_rx, is_rxe): New functions.
3995 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3996 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3997 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3998 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3999 enums for opcode values. (Is this an improvement?)
4001 2003-07-02 Andrew Cagney <cagney@redhat.com>
4003 * i386-tdep.c: Revert change committed as part of trad-frame code
4006 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4008 * breakpoint.c (insert_catchpoint): Make static.
4010 2003-07-02 Andreas Schwab <schwab@suse.de>
4012 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4013 former ia64_push_arguments and ia64_push_return_address, and use
4014 regcache functions instead of read/write_register.
4015 (ia64_gdbarch_init): Set push_dummy_call instead of
4016 deprecated_push_arguments and deprecated_push_return_address.
4018 2003-07-01 Andreas Jaeger <aj@suse.de>
4020 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4022 Set %rax only to number of SSE registers used.
4024 2003-07-01 Andrew Cagney <cagney@redhat.com>
4026 * trad-frame.h: Update comments, a -1 .addr is reserved.
4027 (trad_frame_value_p, trad_frame_addr_p): Declare.
4028 (trad_frame_reg_p): Declare.
4029 (trad_frame_set_value): Rename trad_frame_register_value.
4030 (trad_frame_set_unknown): Declare.
4031 * trad-frame.c (trad_frame_realreg_p): New function.
4032 (trad_frame_addr_p, trad_frame_value_p): New function.
4033 (trad_frame_set_unknown): New function.
4034 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4035 (trad_frame_prev_register): Use trad_frame_realreg_p,
4036 trad_frame_addr_p and trad_frame_value_p.
4037 (trad_frame_set_value): Rename trad_frame_register_value.
4038 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4039 and trad_frame_set_value.
4041 2003-06-30 Jim Blandy <jimb@redhat.com>
4043 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4044 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4045 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4046 for 16 registers, and then 32 more bytes.
4047 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4049 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4050 Move up in the file, since it's now used by is_simple_arg.
4051 (is_simple_arg): Don't assume registers are four bytes long.
4052 Exclude all double arguments. Extended floats are not simple
4054 (is_power_of_two): New function.
4055 (pass_by_copy_ref): Call is_power_of_two, and check that the
4056 length fits in a register, rather than listing all the acceptable
4057 sizes. Extended floats are not passed by reference.
4058 (s390_push_arguments): Don't assume registers are four bytes long.
4059 Reserve an argument register to point to the buffer for structures
4060 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4061 S390_STACK_FRAME_OVERHEAD.
4063 2003-06-30 Andreas Schwab <schwab@suse.de>
4065 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4066 format error message.
4068 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4070 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4072 2003-06-30 David Carlton <carlton@kealia.com>
4074 Band-aid for PR c++/1245.
4075 * Makefile.in (cp-support.o): Depend on complaints_h.
4076 * cp-support.c: Include complaints.h. Add declaration for
4077 find_last_component.
4078 (cp_find_first_component): Separate code into
4079 cp_find_first_component_aux.
4080 (cp_find_first_component_aux): Call demangled_name_complaint.
4081 (demangled_name_complaint): New.
4083 2003-06-30 Andrew Cagney <cagney@redhat.com>
4085 * remote.c (remote_write_bytes): Explicitly compute and then use
4086 the payload size. Update comments to reflect. Fixes problem of
4087 GDB not sending small packets as found by Fred Fish.
4089 2003-06-30 Andrew Cagney <cagney@redhat.com>
4091 * remote.c (remote_async_wait): Fix -Wformat problem.
4093 2003-06-29 Andrew Cagney <cagney@redhat.com>
4095 * remote.c (remote_wait): Call error, and not warning, when the
4097 (remote_async_wait): Ditto.
4099 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4101 * sparc-tdep.c (sparc_y_regnum): Make external again.
4103 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4105 * cli/cli-logging.c (pop_output_files): Add void to function
4108 2003-06-29 Andrew Cagney <cagney@redhat.com>
4110 * frame.c (frame_register_unwind): Use unsigned char when dumping
4111 the buffer contents.
4113 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4115 * cli/cli-logging.c: New file.
4116 * cli-out.c (struct ui_out_data): Add original_stream.
4117 (cli_redirect): New function.
4118 (cli_ui_out_impl): Add cli_redirect.
4119 (cli_out_new): Initialize original_stream.
4120 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4121 (uo_redirect, ui_out_redirect): New.
4122 * ui-out.h (struct ui_out_impl): Add redirect member.
4123 (redirect_ftype): New.
4124 (ui_out_redirect): Add prototype.
4125 * Makefile.in: Add rules for cli-logging.c.
4126 * NEWS: Mention "set logging".
4128 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4130 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4132 2003-06-27 Andrew Cagney <cagney@redhat.com>
4134 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4135 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4136 * avr-tdep.c (avr_call_dummy_address): Delete function.
4137 (avr_gdbarch_init): Do not set call_dummy_address.
4139 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4141 * symfile.c (syms_from_objfile): Move variables to inner block.
4142 Move the checks for the non-mainline case a bit earlier to avoid
4143 doing some useless computations.
4145 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4147 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4149 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4151 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4154 2003-06-26 Michael Chastain <mec@shout.net>
4156 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4157 gdb/testsuite/gdb.c++/pr-1210.exp.
4159 2003-06-26 Andrew Cagney <cagney@redhat.com>
4161 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4162 altivec_expression.h and altivec_registers.h.
4164 2003-06-26 Andrew Cagney <cagney@redhat.com>
4166 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4167 info->mach when MIPS16. Patch suggested by Fred Fish.
4169 2003-06-26 Andrew Cagney <cagney@redhat.com>
4171 * utils.c (internal_vproblem): Print the problem to a reason
4172 buffer and then pass to query. Make the msg variable more local.
4174 2003-06-26 Andrew Cagney <cagney@redhat.com>
4176 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4177 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4178 * gdbarch.h, gdbarch.c: Re-generate.
4179 * frame-base.c (default_frame_args_address): Update. Use
4180 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4182 (default_frame_locals_address): Ditto for
4183 DEPRECATED_FRAME_LOCALS_ADDRESS.
4184 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4185 (vax_frame_num_args): Update.
4186 (vax_gdbarch_init): Update.
4187 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4188 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4189 * mcore-tdep.c (mcore_gdbarch_init): Update.
4190 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4191 * ia64-tdep.c (ia64_gdbarch_init): Update.
4192 * symtab.h (address_class): Update comments.
4193 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4194 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4195 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4196 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4197 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4198 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4199 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4200 * alpha-mdebug-tdep.c: Update.
4201 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4203 2003-06-26 Andreas Jaeger <aj@suse.de>
4205 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4206 of SSE registers so that varargs functions work. Rework handling
4207 of passing arguments on the stack.
4208 (x86_64_store_return_value): Return double and float values in SSE
4211 2003-06-24 Michael Chastain <mec@shout.net>
4213 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4214 the "constructor breakpoints ignored" bug.
4216 2003-06-25 David Carlton <carlton@kealia.com>
4218 * MAINTAINERS: Update e-mail address.
4220 2003-06-24 Jim Blandy <jimb@redhat.com>
4222 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4224 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4226 (ppc_linux_init_abi): Register it as the
4227 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4229 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4230 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4233 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4234 (ppc64_standard_linkage_target): Use it.
4236 2003-06-23 Andrew Cagney <cagney@redhat.com>
4238 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4239 for 0 "int0" and 4 "int32" sized registers.
4240 * gdbtypes.c (builtin_type_int0): Define.
4241 (build_gdbtypes): Initialize builtin_type_int0.
4242 * gdbtypes.h (builtin_type_int0): Declare.
4244 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4246 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4247 as characters are unsigned.
4249 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4252 * dwarfread.c (struct_type): Skip static fields without crashing.
4254 2003-06-22 Andrew Cagney <cagney@redhat.com>
4256 GDB 6.0 branch created.
4258 * PROBLEMS: Update. Empty.
4261 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4263 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4264 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4266 2003-06-22 Andrew Cagney <cagney@redhat.com>
4268 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4269 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4272 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4274 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4277 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4279 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4280 argument of val_print.
4281 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4282 to the address argument of baseclass_offset or target_read_memory.
4283 Do add it to the argument of cp_print_value_fields.
4285 2003-06-21 Andrew Cagney <cagney@redhat.com>
4287 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4288 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4289 instead of 0..NUM_REGS.
4290 (mips_register_reggroup_p): New function.
4291 (mips_pseudo_register_write): New function.
4292 (mips_pseudo_register_read): New function.
4293 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4294 based on the register's type.
4295 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4297 (mips_get_saved_register): Simplify. Assert that REGNO is a
4299 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4300 (mips_register_type): Replace mips_register_virtual_type. Map
4301 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4303 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4304 that the register is cooked / virtual.
4305 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4306 Only get the extra info when needed.
4307 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4308 (mips32_heuristic_proc_desc): Fetch the cooked register.
4309 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4310 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4311 (mips_print_register): Use gdbarch_register_type, instead of
4312 REGISTER_VIRTUAL_TYPE.
4313 (print_gp_register_row): Use gdbarch_register_type, instead of
4314 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4315 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4316 Print the pseudo / cooked registers.
4317 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4318 Print the pseudo / cooked registers.
4319 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4320 REG_NUM is pseudo / cooked.
4321 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4322 (mips_n32n64_xfer_return_value): Ditto.
4323 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4324 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4325 (mips_register_sim_regno): New function.
4326 (mips_gdbarch_init): Set deprecated_register_byte,
4327 register_group_p, pseudo_register_write, pseudo_register_read,
4328 register_sim_regno, and num_pseudo_regs. Set register_type,
4329 instead of register_virtual_type.
4330 * Makefile.in (mips-tdep.o): Update dependencies.
4331 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4332 REGISTER_VIRTUAL_TYPE.
4333 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4334 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4335 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4336 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4337 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4339 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4341 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4342 * cli/cli-cmds.c: Include "gdb_vfork.h".
4343 (shell_escape): Use vfork.
4345 2003-06-21 Andrew Cagney <cagney@redhat.com>
4347 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4348 32 bit floating-point register saves.
4350 * frame.h (deprecated_unwind_get_saved_register): Delete.
4351 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4352 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4353 and deprecated_get_next_frame_hack instead of
4354 deprecated_unwind_get_saved_register.
4356 * mips-tdep.c (mips_dump_tdep): Do not print
4357 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4359 * frame.c (get_frame_register): New function.
4360 (frame_unwind_register_signed): New function.
4361 (get_frame_register_signed): New function.
4362 (frame_unwind_register_unsigned): New function.
4363 (get_frame_register_unsigned): New function.
4364 * frame.h: Add comments on naming schema.
4365 (get_frame_register, frame_unwind_register_signed): Declare.
4366 (get_frame_register_signed, get_frame_register_signed): Declare.
4367 (frame_unwind_register_unsigned): Declare.
4368 (get_frame_register_unsigned): Declare.
4370 2003-06-20 Theodore A. Roth <troth@openavr.org>
4372 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4374 2003-06-20 Theodore A. Roth <troth@openavr.org>
4376 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4377 (avr_read_sp): Ditto.
4379 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4381 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4382 * config/arm/nm-linux.h: Likewise.
4383 * config/arm/tm-linux.h: Likewise.
4384 * config/ia64/nm-linux.h: Likewise.
4385 * config/ia64/tm-ia64.h: Likewise.
4386 * config/s390/tm-linux.h: Likewise.
4387 * config/s390/tm-s390.h: Likewise.
4388 * s390-nat.c: Likewise.
4389 * s390-tdep.c: Likewise.
4391 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4392 * config/ia64/linux.mt: Likewise.
4393 * config/m68k/linux.mh: Likewise.
4394 * config/mips/linux.mt: Likewise.
4395 * config/powerpc/linux.mh: Likewise.
4396 * config/sh/linux.mt: Likewise.
4398 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4400 * solib.c (solib_open): Change tests for whether to search
4401 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4404 2003-06-19 Theodore A. Roth <troth@openavr.org>
4406 * avr-tdep.c (avr_frame_address): Delete function.
4407 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4408 set_gdbarch_frame_args_address.
4410 2003-06-19 Andrew Cagney <cagney@redhat.com>
4412 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4413 (REGISTER_CONVERT_FROM_TYPE): Delete.
4414 (mips_register_convert_to_type): Delete declaration.
4415 (mips_register_convert_from_type): Delete declaration.
4416 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4419 2003-06-19 Michael Snyder <msnyder@redhat.com>
4421 * linux-nat.h: New file.
4422 * linux-nat.c: Include linux-nat.h.
4423 * lin-lwp.c: Include linux-nat.h.
4424 Move struct lwp_info def to linux-nat.h.
4425 * linux-proc.c: Include linux-nat.h.
4426 (linux_make_note_section): Iterate over lwps instead of threads.
4427 (linux_do_thread_registers): Use lwp instead of merged pid.
4428 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4429 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4430 Add dependency on linux_nat_h.
4432 2003-06-19 Theodore A. Roth <troth@openavr.org>
4434 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4436 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4438 * varobj.c (get_type, get_target_type): Use check_typedef.
4440 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4442 * breakpoint.c (insert_catchpoint): Call internal_error.
4444 2003-06-19 Theodore A. Roth <troth@openavr.org>
4446 * avr-tdep.c (avr_push_dummy_code): Delete function.
4447 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4449 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4451 * arch-utils.c (default_prepare_to_proceed): Remove.
4452 (generic_prepare_to_proceed): Remove.
4453 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4454 (generic_prepare_to_proceed): Remove prototype.
4455 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4456 * gdbarch.c: Regenerate.
4457 * gdbarch.h: Regenerate.
4458 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4459 * hppah-nat.c (hppa_switched_threads): Remove.
4460 * infrun.c (prepare_to_proceed): New static function, copied from
4461 generic_prepare_to_proceed. Remove select_it argument.
4462 (proceed): Call prepare_to_proceed.
4463 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4465 (ptrace_wait): Don't set the removed variables.
4466 (hppa_switched_threads): Remove.
4467 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4468 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4469 (lin_lwp_prepare_to_proceed): Remove prototype.
4470 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4471 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4473 2003-06-18 Theodore A. Roth <troth@openavr.org>
4475 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4477 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4478 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4479 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4480 (AVR_PROLOGUE_*): Enumerate prologue types.
4481 (struct frame_extra_info): Remove.
4482 (struct avr_unwind_cache): Define.
4483 (avr_write_sp): Delete function.
4484 (avr_read_fp): Ditto.
4485 (avr_init_extra_frame_info): Ditto.
4486 (avr_pop_frame): Ditto.
4487 (avr_frame_saved_pc): Ditto.
4488 (avr_saved_pc_after_call): Ditto.
4489 (avr_push_return_address): Ditto.
4490 (avr_frame_chain): Ditto.
4491 (avr_store_struct_return): Ditto.
4492 (avr_push_arguments): Ditto.
4493 (avr_scan_prologue): Update comments. Changed to set up the info for
4494 cache unwinding. Now returns end of prologue PC.
4495 (avr_skip_prologue): Better handling of functions lacking a prologue
4496 by using avr_scan_prologue.
4497 (avr_scan_arg_moves): New function.
4498 (avr_saved_regs_unwinder): Ditto.
4499 (avr_frame_unwind_cache): Ditto.
4500 (avr_unwind_pc): Ditto.
4501 (avr_frame_this_id): Ditto.
4502 (avr_frame_prev_register): Ditto.
4503 (avr_frame_p): Ditto.
4504 (avr_frame_base_address ): Ditto.
4505 (avr_unwind_dummy_id): Ditto.
4506 (avr_push_dummy_code): Ditto.
4507 (push_stack_item): Ditto.
4508 (pop_stack_item): Ditto.
4509 (avr_push_dummy_call): Ditto.
4510 (struct stack_item): Define.
4511 (avr_frame_unwind): Declare structure.
4512 (avr_frame_base): Ditto.
4513 (avr_gdbarch_init): Remove calls to
4514 set_gdbarch_deprecated_init_frame_pc,
4515 set_gdbarch_deprecated_target_read_fp,
4516 set_gdbarch_deprecated_dummy_write_sp,
4517 set_gdbarch_deprecated_fp_regnum,
4518 set_gdbarch_deprecated_push_arguments,
4519 set_gdbarch_deprecated_push_return_address,
4520 set_gdbarch_deprecated_pop_frame,
4521 set_gdbarch_deprecated_store_struct_return,
4522 set_gdbarch_deprecated_frame_init_saved_regs,
4523 set_gdbarch_deprecated_init_extra_frame_info,
4524 set_gdbarch_deprecated_frame_chain,
4525 set_gdbarch_deprecated_frame_saved_pc,
4526 set_gdbarch_deprecated_saved_pc_after_call.
4527 Add calls to set_gdbarch_push_dummy_call,
4528 set_gdbarch_push_dummy_code,
4529 frame_unwind_append_predicate,
4530 frame_base_set_default,
4531 set_gdbarch_unwind_dummy_id,
4532 set_gdbarch_unwind_pc.
4535 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4537 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4538 registers for H8/300S.
4539 (h8300_print_registers_info): Ditto.
4540 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4542 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4544 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4545 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4546 (lin_lwp_wait): Likewise. Update comments.
4547 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4548 (pull_pid_from_list, linux_record_stopped_pid): New.
4550 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4552 * ada-lang.c (scan_discrim_bound): Name first argument.
4553 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4554 declared by ALL_BLOCK_SYMBOLS.
4556 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4558 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4559 ("regcache.h"): Include it.
4560 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4562 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4564 * NEWS: Mention gdbserver detach change and "disconnect" command.
4565 * infcmd.c (disconnect_command): New function.
4566 (_initialize_infcmd): Add ``disconnect'' command.
4567 * remote.c (remote_async_detach): Delete.
4568 (remote_detach): Merge remote_async_detach.
4569 (remote_disconnect): New.
4570 (init_remote_ops): Set to_disconnect.
4571 (init_remote_cisco_ops): Likewise.
4572 (init_remote_async_ops): Likewise. Use remote_detach.
4573 * target.c (cleanup_target): Default to_disconnect.
4574 (update_current_target): Inherit to_disconnect.
4575 (target_disconnect, debug_to_disconnect): New functions.
4576 (setup_target_debug): Set to_disconnect.
4577 * target.h (struct target_ops): Add to_disconnect.
4578 (target_disconnect): Add prototype.
4580 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4582 * breakpoint.c (insert_catchpoint): New function.
4583 (insert_breakpoints): Use catch_exceptions to call
4584 insert_catchpoint. Disable catchpoints if they fail to insert.
4586 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4588 * symfile.c (reread_symbols): Clear sym_private.
4590 2003-06-17 Andrew Cagney <cagney@redhat.com>
4592 * trad-frame.h (struct frame_info): Add opaque declaration.
4593 * remote-fileio.h (struct cmd_list_element): Add opaque
4595 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4598 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4600 * remote.c (remote_prepare_to_store): Replace call to
4601 deprecated_read_register_bytes with multiple regcache_raw_read
4604 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4606 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4607 (nto_find_and_open_solib): Likewise.
4608 (nto_init_solib_absolute_prefix): Likewise.
4609 (_initialize_nto_tdep): Fix indentation.
4611 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4613 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4615 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4617 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4619 2003-06-17 Jim Blandy <jimb@redhat.com>
4621 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4623 2003-06-16 Theodore A. Roth <troth@openavr.org>
4625 * avr-tdep.c (avr_extract_return_value): New function.
4626 (avr_gdbarch_init): Set extract_return_value method.
4628 2003-06-16 Andrew Cagney <cagney@redhat.com>
4630 * frame.h (deprecated_get_next_frame_hack): Declare.
4631 * frame.c (legacy_saved_regs_prev_register): Only require
4632 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4633 there are always saved regs.
4634 (deprecated_generic_get_saved_register): Do not require
4635 DEPRECATED_FRAME_INIT_SAVED_REGS.
4636 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4637 use frame ID unwind instead.
4638 (deprecated_get_next_frame_hack): New function.
4640 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4642 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4643 (h8300_push_dummy_call): ...this function. Some minor optimization.
4644 (h8300_push_return_address): Remove.
4645 (h8300_gdbarch_init): Remove calls to
4646 set_gdbarch_deprecated_dummy_write_sp,
4647 set_gdbarch_deprecated_push_arguments and
4648 set_gdbarch_deprecated_push_return_address.
4649 Add call to set_gdbarch_push_dummy_call.
4651 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4653 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4654 (E_PSEUDO_EXR_REGNUM): Ditto.
4655 (h8300_is_argument_spill): Check for instructions moving argument
4656 registers into safe registers.
4657 (h8300_skip_prologue): Check for stm instruction to push registers
4658 used for register variables onto stack.
4659 (gdb_print_insn_h8300): Remove.
4660 (h8300_examine_prologue): Add a comment.
4661 (h8300_register_name): Take pseudo registers into account.
4662 (h8300s_register_name): Ditto.
4663 (h8300sx_register_name): Ditto.
4664 (h8300_print_register): Ditto.
4665 (h8300_print_registers_info): Define "nice" printing order.
4666 (h8300_saved_pc_after_call): Take pseudo registers into account.
4667 (h8300_register_type): Ditto. Return type used for remote connection
4668 when requesting real CCR or EXR register, return actual type when
4669 requesting pseudo CCR or EXR.
4670 (h8300_pseudo_register_read): New function.
4671 (h8300_pseudo_register_write): Ditto.
4672 (h8300_dbg_reg_to_regnum): Ditto.
4673 (h8300s_dbg_reg_to_regnum): Ditto.
4674 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4675 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4676 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4677 set_gdbarch_print_insn architecture dependent.
4678 Call set_gdbarch_pseudo_register_read and
4679 set_gdbarch_pseudo_register_write.
4680 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4682 2003-06-16 Andrew Cagney <cagney@redhat.com>
4684 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4685 * gdbarch.h, gdbarch.c: Re-generate.
4686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4687 * s390-tdep.c (s390_gdbarch_init): Update.
4688 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4689 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4690 * mips-tdep.c (mips_gdbarch_init): Update.
4691 * mcore-tdep.c (mcore_gdbarch_init): Update.
4692 * cris-tdep.c (cris_gdbarch_init): Update.
4693 * infcall.c (call_function_by_hand): Update.
4694 * ia64-tdep.c (ia64_push_arguments): Update comment.
4695 * frame.c (legacy_get_prev_frame): Do not assume
4696 SAVE_DUMMY_FRAME_TOS_P.
4697 * dummy-frame.c (find_dummy_frame): Update comment.
4699 2003-06-16 Andrew Cagney <cagney@redhat.com>
4701 * regcache.c (do_cooked_read): Do not use register_valid_p.
4703 2003-06-15 Theodore A. Roth <troth@openavr.org>
4705 * avr-tdep.c (avr_register_type): Remove a blank line.
4706 (avr_scan_prologue): Correct some comments.
4708 2003-06-15 Theodore A. Roth <troth@openavr.org>
4710 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4712 Properly scan prologues generated by gcc with the -mcall-prologues
4714 Add code to scan -mcall-prologues for mega devices.
4716 2003-06-15 Theodore A. Roth <troth@openavr.org>
4718 * avr-tdep.c (avr_register_byte): Delete function.
4719 (avr_register_raw_size): Delete function.
4720 (avr_register_virtual_size): Delete function.
4721 (avr_register_virtual_type): Delete function.
4722 (avr_register_type): New function.
4723 (avr_address_to_pointer): Remove unused code.
4724 (avr_read_fp): Need to read FP as two separate bytes due to change to
4725 avr_register_type() usage.
4726 (avr_gdbarch_init): Don't set deprecated_register_size.
4727 Don't set deprecated_register_bytes.
4728 Don't set deprecated_register_byte.
4729 Don't set deprecated_register_raw_size.
4730 Don't set deprecated_max_register_raw_size.
4731 Don't set deprecated_register_virtual_size.
4732 Don't set deprecated_max_register_virtual_size.
4733 Don't set deprecated_register_virtual_type.
4734 Set register_type method.
4736 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4738 * Makefile.in (linux-nat.o): Add rule.
4739 * linux-nat.c: New file.
4740 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4741 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4742 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4743 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4744 * config/arm/linux.mh (NATDEPFILES): Likewise.
4745 * config/i386/linux.mh (NATDEPFILES): Likewise.
4746 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4747 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4748 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4749 * config/mips/linux.mh (NATDEPFILES): Likewise.
4750 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4751 * config/s390/s390.mh (NATDEPFILES): Likewise.
4752 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4754 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4756 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4757 replace out-of-date comment.
4759 2003-06-15 Andrew Cagney <cagney@redhat.com>
4761 * rdi-share/host.h (Fail): Change to a varargs function.
4762 * remote-rdi.c (Fail): Update.
4764 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4766 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4767 (i386_convert_register_p, i386_register_to_value,
4768 i386_register_from_value): Handle types longer than 8 bytes.
4770 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4772 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4773 Move floating-point code to new function in i387-tdep.c.
4774 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4775 New functions containing code moved here from i386-tdep.c.
4776 * i387-tdep.h: Add opaque declaration for `struct type'.
4777 (i387_register_to_value, i387_value_to_register): New prototypes.
4778 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4779 (x86_64_init_abi): Set convert_register_p, register_to_value and
4780 value_to_register here.
4782 2003-06-14 Andrew Cagney <cagney@redhat.com>
4784 * mips-tdep.c (mips_register_to_value): Make static.
4785 (mips_value_to_register): Make static.
4786 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4787 * ia64-tdep.c (ia64_register_raw_size): Make static.
4788 (ia64_register_virtual_size): Make static.
4789 (ia64_register_byte): Make static.
4790 * i387-tdep.c: Include "i387-tdep.h".
4791 (print_387_control_word): Delete function.
4792 (print_387_status_word): Delete function.
4793 (print_387_status_bits): Delete function.
4794 (print_387_control_bits): Delete function.
4795 * Makefile.in (i387-tdep.o): Update dependencies.
4796 * rdi-share/host.h (Fail): Declare.
4797 * remote-rdi.c (Fail): Update to match declaration.
4799 2003-06-14 Andrew Cagney <cagney@redhat.com>
4801 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4802 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4803 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4804 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4805 * README: Delete reference to remote-array.
4806 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4807 (remote-array.o): Delete target.
4808 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4809 * remote-array.c: Delete file.
4811 2003-06-14 Andrew Cagney <cagney@redhat.com>
4812 Mark Kettenis <kettenis@gnu.org>
4814 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4815 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4816 parameter with "frame".
4817 * gdbarch.h, gdbarch.c: Re-generate.
4818 * frame.h (put_frame_register): Declare.
4819 * frame.c (put_frame_register): New function.
4820 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4821 (legacy_register_to_value): Rewrite, use "frame" to get the
4823 (legacy_value_to_register): Rewrite, use "frame" to find the
4824 register's location before storing.
4825 * arch-utils.h (legacy_convert_register_p): Update.
4826 (legacy_register_to_value, legacy_value_to_register): Update.
4827 * findvar.c (value_from_register): Rewrite, eliminate use of
4828 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4829 "frame" to REGISTER_TO_VALUE.
4830 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4831 lval_reg_frame_relative + lval_register branch of the switch. Do
4832 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4833 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4834 I386_EDI_REGNUM): New defines.
4835 (i386_next_regnum, i386_convert_register_p,
4836 i386_register_to_value, i386_value_to_register): New functions.
4837 (i386_register_convertible, i386_register_convert_to_virtual,
4838 i386_convert_to_raw): Remove functions.
4839 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4840 value_to_register instead of register_convertible,
4841 register_convert_to_virtual and register_convert_to_raw.
4842 * mips-tdep.c (mips_convert_register_p): New function.
4843 (mips_value_to_register): Replace mips_register_convert_from_type.
4844 (mips_register_to_value): Replace mips_register_convert_to_type.
4845 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4847 * alpha-tdep.c (alpha_convert_register_p): Update.
4848 (alpha_value_to_register): Update, store the register.
4849 (alpha_register_to_value): Update, fetch the register.
4851 2003-06-14 Theodore A. Roth <troth@openavr.org>
4853 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4854 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4855 Don't set deprecated_call_dummy_words.
4856 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4857 Don't set remote_translate_xfer_address.
4858 (avr_io_reg_read_command): Remove commented out debug printf.
4861 2003-06-14 Theodore A. Roth <troth@openavr.org>
4863 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4864 causes gdb to seg fault.
4866 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4868 * sparc-nat.c (fetch_inferior_registers): Correct
4869 a reference to "registers".
4871 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4873 * Makefile.in (exc_request_U_h): Define
4874 (exc_request_S_h): Likewise.
4875 (msg_reply_S_h): Likewise.
4876 (msg_U_h): Likewise.
4877 (notify_S_h): Likewise.
4878 (process_reply_S_h): Likewise.
4879 (gnu-nat.o): Depend on gdb_obstack_h
4880 * gnu-nat.c: Include "gdb_obstack.h".
4882 2003-06-13 Andrew Cagney <cagney@redhat.com>
4884 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4885 * gdbarch.h, gdbarch.c: Re-generate.
4887 2003-06-13 Andrew Cagney <cagney@redhat.com>
4889 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4890 when deprecated REGISTER macros can be deleted.
4891 * gdbarch.h, gdbarch.c: Re-generate.
4893 2003-06-13 Jim Blandy <jimb@redhat.com>
4895 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4896 Linux entry point symbols for _dl_debug_state, too.
4898 2003-06-13 Andrew Cagney <cagney@redhat.com>
4900 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4901 available, do not use the FP register, and always save the TOS.
4902 * dummy-frame.c (dummy_frame_this_id): Do not assert
4903 SAVE_DUMMY_FRAME_TOS.
4904 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4905 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4906 (i386_push_dummy_call): Add 8 to the returned SP.
4907 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4908 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4909 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4910 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4911 (x86_64_push_dummy_call): Return "sp + 16".
4912 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4913 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4914 save_dummy_frame_tos.
4916 2003-06-13 Jim Blandy <jimb@redhat.com>
4918 * frv-tdep.c (frv_use_struct_convention): Delete static
4919 declaration for function deleted in my change of 2003-06-12.
4921 2003-06-13 Theodore A. Roth <troth@openavr.org>
4923 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4924 (avr_pointer_to_address): Shift code addrs left 1 bit.
4925 (avr_convert_from_func_ptr_addr): Delete function since operation is
4926 better handled by avr_address_to_pointer and avr_pointer_to_address.
4927 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4929 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4931 From Kelley Cook <kelleycook@wideopenwest.com>:
4932 * configure.host: Accept i[34567]86 variants.
4933 * configure.tgt: Likewise.
4934 * nlm/configure.in: Likewise.
4935 * nlm/configure: Regenerated.
4937 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4939 * arm-tdep.c (solib-svr4.h): Dont' include it.
4940 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4941 * arm-linux-tdep.c: ... here. Make static.
4942 (arm_linux_init_abi): Register it.
4943 (solib-svr4.h): Include it.
4944 * Makefile.in: Update dependencies.
4945 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4946 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4948 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4950 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4951 indicate registers used for return values.
4952 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4953 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4955 (h8300_init_extra_frame_info): Ditto.
4956 (h8300_frame_locals_address): Removed.
4957 (h8300_frame_args_address): Removed.
4958 (h8300_extract_return_value): Use new regcache structure. Only care
4960 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4961 (h8300_store_return_value): Use new regcache structure. Only care
4963 (h8300h_store_return_value): Same function for 32 bit CPUs.
4964 (h8300_store_struct_return): Removed.
4965 (h8300_extract_struct_value_address): Use new regcache structure.
4966 (h8300h_extract_struct_value_address): Removed.
4967 (h8300_push_dummy_code): New function.
4968 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4969 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4970 set_gdbarch_store_return_value architecture dependent.
4971 Call set_gdbarch_push_dummy_code and
4972 set_gdbarch_extract_struct_value_address.
4973 Remove calls to set_gdbarch_frame_args_address,
4974 set_gdbarch_frame_locals_address,
4975 set_gdbarch_deprecated_store_struct_return,
4976 set_gdbarch_deprecated_extract_return_value,
4977 set_gdbarch_deprecated_extract_struct_value_address,
4978 set_gdbarch_deprecated_call_dummy_words and
4979 set_gdbarch_deprecated_sizeof_call_dummy_words.
4981 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4983 * h8300-tdep.c (h8300_register_byte): Remove.
4984 (h8300h_register_byte): Remove.
4985 (h8300_register_virtual_type): Remove. Substitute by...
4986 (h8300_register_type): New function.
4987 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4988 (h8300h_extract_struct_value_address): Ditto.
4989 (h8300_gdbarch_init): Drop calls to
4990 set_gdbarch_deprecated_register_byte and
4991 set_gdbarch_deprecated_register_virtual_type.
4992 Add call to set_gdbarch_register_type.
4994 2003-06-13 Andrew Cagney <cagney@redhat.com>
4996 * gdbarch.sh: Update comments on registers.
4997 (deprecated_register_byte): Rename register_byte.
4998 (deprecated_register_raw_size): Rename register_raw_size.
4999 (deprecated_register_virtual_size): Rename register_virtual_size.
5000 (deprecated_register_virtual_type): Rename register_virtual_type.
5001 * gdbarch.h, gdbarch.c: Re-generate.
5002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5003 * vax-tdep.c (vax_gdbarch_init): Update.
5004 * v850-tdep.c (v850_gdbarch_init): Update.
5005 * sparc-tdep.c (sparc_gdbarch_init): Update.
5006 * sh-tdep.c (sh_gdbarch_init): Update.
5007 * s390-tdep.c (s390_gdbarch_init): Update.
5008 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5009 * ns32k-tdep.c: Update.
5010 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5011 * mips-tdep.c (mips_gdbarch_init): Update.
5012 * mcore-tdep.c (mcore_gdbarch_init): Update.
5013 * m68k-tdep.c (m68k_gdbarch_init): Update.
5014 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5015 * ia64-tdep.c (ia64_gdbarch_init): Update.
5016 * hppa-tdep.c (hppa_gdbarch_init): Update.
5017 * h8300-tdep.c (h8300_gdbarch_init): Update.
5018 * frv-tdep.c (frv_gdbarch_init): Update.
5019 * cris-tdep.c (cris_gdbarch_init): Update.
5020 * avr-tdep.c (avr_gdbarch_init): Update.
5021 * alpha-tdep.c (alpha_gdbarch_init): Update.
5022 * arm-tdep.c (arm_gdbarch_init): Update.
5024 2003-06-13 Andrew Cagney <cagney@redhat.com>
5026 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5027 mips_o32_use_struct_convention with always_use_struct_convention.
5029 2003-06-12 David Carlton <carlton@kealia.com>
5031 * cp-namespace.c (cp_set_block_scope): Comment out
5032 processing_has_namespace_info branch.
5034 2003-06-12 Jim Blandy <jimb@redhat.com>
5036 Recognize and skip 64-bit PowerPC Linux linkage functions.
5037 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5038 insn_pattern, insns_match_pattern, d_field, ds_field): New
5039 functions, macros, and types for working with PPC instructions.
5040 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5041 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5042 ppc64_skip_trampoline_code): New functions, variables, and macros
5043 for recognizing and skipping linkage functions.
5044 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5045 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5047 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5048 register offsets for both the 32- and 64-bit interfaces.
5050 Actually finish the job started by my change of 2003-05-29.
5051 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5052 other #definition of this.
5053 (ppc_linux_skip_trampoline_code): Remove declaration.
5054 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5056 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5059 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5060 'long' on ppc64-*-linux*.
5062 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5063 isn't #defined, assume the register doesn't exist: act as if
5064 tdep->ppc_mq_regnum were -1.
5066 * configure.host, configure.tgt: Add entries for
5067 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5069 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5072 * arch-utils.c (always_use_struct_convention): New function.
5073 * arch-utils.h (always_use_struct_convention): New prototype.
5074 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5075 (alpha_gdbarch_init): Register always_use_struct_convention,
5076 instead of alpha_use_struct_convention.
5077 * cris-tdep.c (cris_use_struct_convention): Delete.
5078 (cris_gdbarch_init): Register always_use_struct_convention,
5079 instead of cris_use_struct_convention.
5080 * frv-tdep.c (frv_use_struct_convention): Delete.
5081 (frv_gdbarch_init): Register always_use_struct_convention,
5082 instead of frv_use_struct_convention.
5083 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5084 (h8300_gdbarch_init): Register always_use_struct_convention,
5085 instead of h8300_use_struct_convention.
5086 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5087 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5088 instead of mips_o32_use_struct_convention.
5090 2003-06-12 Andrew Cagney <cagney@redhat.com>
5092 * wince.c: Include "mips-tdep.h".
5093 * mips-tdep.h (mips_next_pc): Declare.
5094 * mcore-tdep.c: Make more local functions static.
5095 * Makefile.in (wince.o): Update dependencies.
5097 2003-06-12 David Carlton <carlton@kealia.com>
5099 * symtab.c (lookup_symbol_aux_minsyms): Replace
5100 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5101 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5102 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5103 SYMBOL_NATURAL_NAME.
5105 2003-06-12 Andreas Schwab <schwab@suse.de>
5107 * Makefile.in (tuiDisassem.o): Update dependencies.
5109 2003-06-12 David Carlton <carlton@bactrian.org>
5111 * symtab.h: Delete declaration of make_symbol_overload_list.
5112 Add declaration of lookup_partial_symbol.
5113 * symtab.c (remove_params): Move to cp-support.c.
5114 (overload_list_add_symbol, make_symbol_overload_list)
5115 (sym_return_val_size, sym_return_val_index): Ditto.
5116 (lookup_partial_symbol): Make extern.
5117 * cp-support.h: Add declaration of make_symbol_overload_list.
5118 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5119 symtab.h, and block.h.
5120 (remove_params): Move here from symtab.c.
5121 (overload_list_add_symbol, make_symbol_overload_list)
5122 (sym_return_val_size, sym_return_val_index): Ditto.
5123 * valops.c: Include cp-support.h.
5124 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5125 frame_h, and block_h.
5126 (valops.o): Depend on cp_support_h.
5128 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5130 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5131 substitute by NUM_REGS throughout.
5132 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5133 (h8300s_register_name): New function for H8S registers.
5134 (h8300sx_register_name): Ditto for H8SX registers.
5135 (h8300_print_register): Revise register printing, avoid depending
5137 (h8300_register_byte): Only care for H8/300 registers.
5138 (h8300h_register_byte): New function for any other architecture.
5139 (h8300_register_raw_size): Remove.
5140 (h8300_register_virtual_type): Revise to return actually useful
5142 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5143 (h8300h_extract_struct_value_address): New function for any other
5145 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5146 set_gdbarch_register_name, set_gdbarch_register_byte,
5147 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5148 Remove calls to set_gdbarch_deprecated_register_size,
5149 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5150 set_gdbarch_deprecated_max_register_raw_size,
5151 set_gdbarch_register_virtual_size and
5152 set_gdbarch_deprecated_max_register_virtual_size entirely.
5153 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5154 set_gdbarch_long_double_bit.
5156 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5158 * doublest.c (convert_doublest_to_floatformat): When dealing
5159 with the implied integer bit, only alter mant_bits if we are
5160 processing a full 32 bits of mantissa.
5162 2003-06-11 David Carlton <carlton@bactrian.org>
5164 * dictionary.h: New.
5165 * dictionary.c: New.
5166 * block.h: Add opaque declaration for struct dictionary.
5167 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5169 (BLOCK_DICT): New macro.
5170 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5171 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5173 (ALL_BLOCK_SYMBOLS): Update definition.
5174 * Makefile.in (SFILES): Add dictionary.c.
5175 (dictionary_h): New.
5176 (COMMON_OBS): Add dictionary.o.
5177 (dictionary.o): New.
5178 (ada-lang.o): Depend on dictionary_h.
5179 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5180 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5181 (mi-cmd-stack.o): Ditto.
5182 (gdbtk-cmds.o): Update dependencies.
5183 (gdbtk-stack.o): Ditto.
5184 * ada-lang.c: Include dictionary.h.
5185 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5186 (fill_in_ada_prototype, debug_print_block): Ditto.
5187 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5188 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5190 * mdebugread.c: Include dictionary.h.
5191 (struct parse_stack): Delete 'maxsyms' member.
5192 (parse_symbol): Update calls to new_block. Delete calls to
5193 shrink_block. Use dictionary methods.
5194 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5195 Update calls to new_symtab. Don't maintain maxsyms data.
5196 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5197 (add_symbol): Just call dict_add_symbol.
5198 (new_symtab): Delete 'maxsyms' argument.
5199 (new_symtab): Update calls to new_block.
5200 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5201 (shrink_block): Delete function.
5202 (fixup_sigtramp): Update call to new_block. Add symbol via
5204 * jv-lang.c: Include dictionary.h.
5205 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5206 appropriately. Set class_symtab->free_func. Make sure the
5207 blockvector is big enough to hold two blocks.
5208 (add_class_symtab_symbol): Use dictionary methods.
5209 (free_class_block): New function.
5210 (type_from_class): Replace explicit iteration by
5212 * symtab.h (struct symtab): Replace 'free_ptr' method by
5214 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5216 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5218 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5219 Include dictionary.h.
5220 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5221 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5223 * objfiles.c: Include dictionary.h.
5224 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5225 * buildsym.c: Include dictionary.h.
5226 (finish_block): Use dictionary methods.
5227 (end_symtab): Set free_func to NULL, not free_ptr.
5228 * tracepoint.c: Include dictionary.h.
5229 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5230 (scope_info): Ditto.
5231 * stack.c: Include dictionary.h.
5232 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5233 (print_block_frame_labels, print_frame_arg_vars)
5234 (print_frame_args): Ditto.
5235 * symmisc.c (free_symtab_block): Use dictionary methods.
5236 (dump_symtab): Ditto.
5237 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5238 Include dictionary.h.
5239 * symfile.h: Delete declarations of sort_block_syms,
5241 * symfile.c (sort_block_syms): Delete.
5242 (sort_symtab_syms): Delete.
5243 * symtab.c: Include dictionary.h.
5244 (lookup_block_symbol): Use dictionary iterators.
5245 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5246 (search_symbols, make_symbol_completion_list): Ditto.
5247 (make_symbol_overload_list): Ditto.
5248 * valops.c (value_of_local): Use dict_empty.
5249 Include dictionary.h.
5251 2003-06-11 J. Brobecker <brobecker@gnat.com>
5253 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5255 2003-06-11 David Carlton <carlton@bactrian.org>
5257 * block.h (BLOCK_SHOULD_SORT): Delete.
5258 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5260 * ada-lang.c (ada_add_block_symbols): Ditto.
5261 * symfile.c (sort_block_syms): Delete.
5262 (sort_symtab_syms): Ditto.
5263 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5265 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5266 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5267 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5268 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5269 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5270 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5271 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5273 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5275 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5278 2003-06-11 Andrew Cagney <cagney@redhat.com>
5280 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5281 REGISTER_CONVERTIBLE.
5282 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5283 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5284 * gdbarch.h, gdbarch.c: Re-generate.
5285 * arch-utils.h (deprecated_register_convertible_not): Rename
5286 generic_register_convertible_not.
5287 * arch-utils.c (deprecated_register_convertible_not): Rename
5288 generic_register_convertible.
5289 (legacy_convert_register_p, legacy_register_to_value): Update.
5290 * sh-tdep.c (sh64_push_arguments): Update.
5291 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5292 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5293 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5294 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5295 * arch-utils.c (legacy_value_to_register): Update.
5296 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5297 (rs6000_register_convert_to_raw): Make parameter "from" const.
5298 * mips-tdep.c (mips_gdbarch_init): Update.
5299 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5300 * infcmd.c (default_print_registers_info): Update.
5301 * ia64-tdep.c (ia64_gdbarch_init): Update.
5302 (ia64_register_convert_to_raw): Make parameter "from" const.
5303 * i386-tdep.c (i386_gdbarch_init): Update.
5304 (i386_register_convert_to_raw): Update.
5306 2003-06-11 Andrew Cagney <cagney@redhat.com>
5308 * remote-fileio.c: Include "remote-fileio.h".
5309 * Makefile.in (remote-fileio.o): Update dependencies.
5310 (remote_fileio_h): Fix typo.
5312 2003-06-11 Andrew Cagney <cagney@redhat.com>
5314 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5315 (xstormy16_save_dummy_frame_tos): Make static.
5316 (_initialize_xstormy16_tdep): Add declaration.
5317 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5318 * v850-tdep.c: Make local functions static.
5319 (_initialize_v850_tdep): Add declaration.
5320 * sparc-tdep.c: Make local functions static.
5321 (_initialize_sparc_tdep): Add declaration.
5322 * sh-tdep.c: Make local functions static.
5323 (_initialize_sh_tdep): Add declaration.
5324 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5325 * s390-tdep.c: Make local functions static.
5326 (_initialize_s390_tdep): Add declaration.
5327 * dbxread.c (find_stab_function_addr): Make static.
5328 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5329 * ocd.c (_initialize_remote_ocd): Add declaration.
5330 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5331 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5332 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5333 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5334 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5335 * remote-array.c (_initialize_array): Add declaration.
5336 (_initialize_remote_monitors): Add declaration.
5337 * remote-mips.c: Make local functions static.
5338 (_initialize_remote_mips): Add declaration.
5339 * mcore-tdep.c: Make all local functions static.
5340 (_initialize_mcore_tdep): Add declaration.
5341 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5342 * abug-rom.c (_initialize_abug_rom): Add declaration.
5343 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5344 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5345 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5346 * remote-est.c (_initialize_est): Add declaration.
5347 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5348 (m68hc11_call_dummy_address): Make static.
5349 * ia64-tdep.c: Make local functions static.
5350 (_initialize_ia64_tdep): Add declaration.
5351 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5352 * monitor.c (monitor_wait_filter): Make static.
5353 (_initialize_remote_monitors): Add declaration.
5354 * remote-hms.c (_initialize_remote_hms): Add declaration.
5355 * remote-e7000.c (fetch_regs_from_dump): Make static.
5356 (expect_n): Make static.
5357 (_initialize_remote_e7000): Add declaration.
5358 * ser-e7kpc.c: Always include "defs.h".
5359 (_initialize_ser_e7000pc): Add declaration.
5360 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5361 * cris-tdep.c: Make all but one function static.
5362 (_initialize_cris_tdep): Add declaration.
5363 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5364 * solib.c (update_solib_list): Make static.
5365 (_initialize_solib): Add declaration.
5366 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5367 (_initialize_avr_tdep): Add declaration.
5368 * remote-rdi.c (voiddummy): Make static.
5369 (_initialize_remote_rdi): Add declaration.
5370 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5371 * remote-rdp.c (send_rdp): Make static.
5372 (_initialize_remote_rdp): Add declaration.
5373 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5375 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5377 * remote-fileio.c: Make ari happy.
5379 2003-06-10 J. Brobecker <brobecker@gnat.com>
5381 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5382 fetching the trailing bytes of the buffer we are about to write.
5384 2003-06-10 Andrew Cagney <cagney@redhat.com>
5386 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5387 * Makefile.in (remote-fileio.o): Update dependencies.
5388 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5389 include <setjmp.h>, or <sys/types.h> conditional on USG.
5390 (remote_fio_jmp_buf): Delete global variable.
5392 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5393 Martin M. Hunt <hunt@redhat.com>
5395 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5396 (SFILES): Add remote-fileio.c.
5397 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5398 dependencies for building remote.o.
5399 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5400 * remote-fileio.h: New header file defining remote File-I/O interface.
5401 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5402 static storage class.
5403 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5405 (_initialize_remote): Call initialize_remote_fileio().
5406 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5407 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5408 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5409 (captured_main): Initialize new ui_files.
5410 * ui-file.c: Add read and fgets input functions.
5411 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5412 (null_file_read): New function.
5413 (ui_file_read): New function.
5414 (set_ui_file_read): New function.
5415 (stdio_file_read): New function.
5416 * ui-file.h: New type ui_file_read_ftype.
5417 (set_ui_file_read): Declare.
5418 (ui_file_read): Declare.
5420 2003-06-09 Andrew Cagney <cagney@redhat.com>
5422 * frame.h (deprecated_unwind_get_saved_register): Rename
5423 generic_unwind_get_saved_register, update comments.
5424 * mips-tdep.c (mips_get_saved_register): Update.
5425 * frame.c (deprecated_unwind_get_saved_register): Update.
5427 2003-06-09 Andrew Cagney <cagney@redhat.com>
5429 * vax-tdep.c (vax_frame_locals_address): Delete function.
5430 (vax_gdbarch_init): Do not set frame_locals_address.
5431 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5432 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5433 * s390-tdep.c (s390_frame_args_address): Delete function.
5434 (s390_gdbarch_init): Do not set frame_args_address or
5435 frame_locals_address.
5436 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5437 (ns32k_gdbarch_init): Do not set frame_locals_address.
5438 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5439 (hppa_frame_locals_address): Delete function.
5440 (hppa_gdbarch_init): Do not set frame_args_address, or
5441 frame_locals_address.
5442 * arm-tdep.c (arm_frame_args_address): Delete.
5443 (arm_frame_locals_address): Delete.
5444 (arm_gdbarch_init): Do not set frame_args_address, or
5445 frame_locals_address.
5447 2003-06-09 Andrew Cagney <cagney@redhat.com>
5449 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5450 * gdbarch.h, gdbarch.c: Re-generate.
5451 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5452 * arch-utils.c (frame_num_args_unknown): Delete function.
5453 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5454 (frame_info): Use FRAME_NUM_ARGS_P.
5455 * arm-tdep.c (arm_frame_num_args): Delete function.
5456 (arm_gdbarch_init): Do not set frame_num_args.
5457 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5458 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5459 (hppa_gdbarch_init): Do not set frame_num_args.
5460 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5461 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5462 frame_num_args to default frame_num_args_unknown.
5463 * v850-tdep.c (v850_gdbarch_init): Ditto.
5464 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5465 * sh-tdep.c (sh_gdbarch_init): Ditto.
5466 * s390-tdep.c (s390_gdbarch_init): Ditto.
5467 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5468 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5469 * mips-tdep.c (mips_gdbarch_init): Ditto.
5470 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5471 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5473 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5474 * i386-tdep.c (i386_gdbarch_init): Ditto.
5475 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5476 * frv-tdep.c (frv_gdbarch_init): Ditto.
5477 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5478 * cris-tdep.c (cris_gdbarch_init): Ditto.
5479 * avr-tdep.c (avr_gdbarch_init): Ditto.
5480 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5482 2003-06-09 Andrew Cagney <cagney@redhat.com>
5484 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5485 (print_frame_args): Moved to "stack.c".
5486 * stack.c: Include "gdb_assert.h".
5487 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5488 (print_frame_args): Moved from "printcmd.c".
5489 * frame.h (print_frame_args): Delete declaration.
5490 * Makefile.in (stack.o): Update dependencies.
5492 2003-06-08 Andrew Cagney <cagney@redhat.com>
5494 * frame.c (get_prev_frame): Remove reference to
5495 frame_args_address_correct in comments.
5496 * frame-base.c (default_frame_args_address): Delete code
5497 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5498 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5499 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5500 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5501 (vax_frame_args_address_correct): Delete declaration.
5503 2003-06-08 Andrew Cagney <cagney@redhat.com>
5505 * gdbarch.sh (UNWIND_SP): Add.
5506 * gdbarch.h, gdbarch.c: Re-generate.
5507 * frame.c (frame_sp_unwind): New function.
5508 (get_frame_sp): New function.
5509 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5510 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5511 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5513 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5514 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5516 2003-06-08 Andrew Cagney <cagney@redhat.com>
5518 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5521 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5522 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5523 * config/m68k/tm-sun3.h: Update.
5524 * config/m68k/tm-m68klynx.h: Update.
5525 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5527 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5528 trad_frame". Update comments.
5529 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5530 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5531 (trad_frame_register_value, trad_frame_prev_register): Update.
5533 2003-06-08 Andrew Cagney <cagney@redhat.com>
5535 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5536 from GCC's acinclude.m4.
5537 * configure.in: Check for getopt's delcaration.
5538 * aclocal.m4, config.in, configure: Re-generate.
5539 * main.c (error_init): Delete declaration.
5540 * defs.h (error_init): Declare.
5541 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5542 (rs6000_convert_from_func_ptr_addr): Make static.
5543 (_initialize_rs6000_tdep): Add declaration.
5544 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5545 (show_commands, set_verbose, show_history): Delete declaration.
5546 * top.h (set_verbose): Add declaration.
5547 (show_history, set_history, show_commands): Add declaration.
5548 (do_restore_instream_cleanup): Add declaration.
5549 * objc-lang.c (specialcmp): Make static.
5550 (print_object_command): Make static.
5551 (find_objc_msgsend): Make static.
5552 (find_objc_msgcall_submethod_helper): Make static.
5553 (find_objc_msgcall_submethod): Make static.
5554 (_initialize_objc_language): Add declaration.
5555 (find_implementation_from_class): Make static.
5556 (find_implementation): Make static.
5557 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5558 * objc-lang.h (lookup_struct_typedef): Add declaration.
5559 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5560 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5561 (do_restore_user_call_depth): Make static.
5562 (do_restore_instream_cleanup): Delete declaration.
5563 (dont_repeat): Delete declaration.
5564 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5565 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5566 * reggroups.c (_initialize_reggroup): Add declaration.
5567 * cp-support.c (_initialize_cp_support): Add declaration.
5568 * cp-abi.c (_initialize_cp_abi): Add declaration.
5569 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5570 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5571 (_initialize_gnu_v3_abi): Add declaration.
5572 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5573 (_initialize_gnu_v2_abi): Add declaration.
5574 * frame-base.c (_initialize_frame_base): Add declaration.
5575 * doublest.c (floatformat_from_length): Make static.
5576 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5577 * frame.c (create_sentinel_frame): Make static.
5578 (_initialize_frame): Add declaration.
5579 * top.c (do_catch_errors): Make static.
5580 (gdb_rl_operate_and_get_next_completion): Make static.
5581 * typeprint.c: Include "typeprint.h".
5582 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5583 (sentinel_frame_this_id): Make static.
5584 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5585 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5586 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5587 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5588 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5589 * maint.c (maintenance_print_architecture): Make static.
5590 * signals/signals.c (_initialize_signals): Add declaration.
5591 * std-regs.c (_initialize_frame_reg): Add declaration.
5592 * jv-exp.y (push_variable): ISO C definition.
5593 (push_qualified_expression_name): Ditto.
5594 * memattr.c (_initialize_mem): Add declaration.
5595 * remote.c (remote_check_watch_resources): Make static.
5596 (remote_stopped_by_watchpoint): Make static.
5597 (remote_stopped_data_address): Make static.
5598 * d10v-tdep.c (nr_dmap_regs): Make static.
5599 (a0_regnum): Make static.
5600 (d10v_frame_unwind_cache): Make static.
5601 (d10v_frame_p): Make static.
5602 * osabi.c (show_osabi): Make static.
5603 (_initialize_gdb_osabi): Add extern declaration.
5604 * gdbtypes.c (make_qualified_type): Make static.
5605 (safe_parse_type): Make static.
5606 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5607 * macrotab.c (macro_bcache_free): Make static.
5608 * interps.c (interp_set_quiet): Make static.
5609 (interpreter_exec_cmd): Make static.
5610 * stack.h (select_frame_command): New file.
5611 * stack.c: Include "stack.h".
5612 (select_frame_command_wrapper): Delete function.
5613 (select_frame_command): Make global.
5614 * infcall.c: Include "infcall.h".
5615 * linespec.c: Include "linespec.h".
5616 * symfile.c (sections_overlap): Make static.
5617 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5618 * charset.c (_initialize_charset): Add missing prototype.
5619 * regcache.c (init_legacy_regcache_descr): Make static.
5620 (do_regcache_xfree): Make static.
5621 (regcache_xfer_part): Make static.
5622 (_initialize_regcache): Add missing prototype.
5623 * breakpoint.c (parse_breakpoint_sals): Make static.
5624 (breakpoint_sals_to_pc): Make static.
5625 * interps.h (clear_interpreter_hooks): ISO C declaration.
5626 * Makefile.in (stack_h): Define.
5627 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5628 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5630 2003-06-08 Andrew Cagney <cagney@redhat.com>
5632 * Makefile.in (d10v-tdep.o): Update dependencies.
5633 (SFILES): Add trad-frame.c.
5634 (trad_frame_h): Define.
5635 (COMMON_OBS): Add trad-frame.o.
5636 (trad-frame.o): Specify dependencies.
5637 * d10v-tdep.c: Include "trad-frame.h".
5638 (saved_regs_unwinder): Delete function.
5639 (d10v_frame_prev_register): Use trad_frame_prev_register.
5640 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5641 trad_frame", delete "regs" and "prev_sp".
5642 (prologue_find_regs): Use trad-frame.
5643 * trad-frame.h, trad-frame.c: New files.
5645 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5647 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5649 2003-06-07 Adam Fedor <fedor@gnu.org>
5651 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5652 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5653 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5654 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5655 resolve_msgsend_super, resolve_msgsend_super_stret):
5658 2003-06-07 Andrew Cagney <cagney@redhat.com>
5660 * symfile.h: Re-indent, clean up comments.
5662 2003-06-07 Andrew Cagney <cagney@redhat.com>
5664 * inferior.h (deprecated_write_sp): Replace
5665 generic_target_write_sp.
5666 * regcache.c (deprecated_write_sp): Replace
5667 generic_target_write_sp.
5668 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5669 * vax-tdep.c (vax_gdbarch_init): Update.
5670 * v850-tdep.c (v850_gdbarch_init): Update.
5671 * sparc-tdep.c (sparc_gdbarch_init): Update.
5672 * sh-tdep.c (sh_gdbarch_init): Update.
5673 * s390-tdep.c (s390_gdbarch_init): Update.
5674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5675 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5676 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5677 * mcore-tdep.c (mcore_gdbarch_init): Update.
5678 * m68k-tdep.c (m68k_gdbarch_init): Update.
5679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5680 * ia64-tdep.c (ia64_gdbarch_init): Update.
5681 * h8300-tdep.c (h8300_gdbarch_init): Update.
5682 * frv-tdep.c (frv_gdbarch_init): Update.
5683 * cris-tdep.c (cris_gdbarch_init): Update.
5684 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5686 2003-06-07 Andrew Cagney <cagney@redhat.com>
5688 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5689 Assert that PC_REGNUM is valid.
5690 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5692 2003-06-07 Andrew Cagney <cagney@redhat.com>
5694 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5695 * gdbarch.h, gdbarch.c: Regenerate.
5696 * mn10300-tdep.c: Include "gdb_assert.h".
5697 (mn10300_read_fp): New function.
5698 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5699 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5700 * ia64-tdep.c: Include "gdb_assert.h".
5701 (ia64_read_fp): New function.
5702 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5703 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5704 * regcache.c (generic_target_read_sp): Delete function.
5705 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5706 * inferior.h (generic_target_read_sp): Delete declaration.
5707 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5708 generic_target_read_sp.
5709 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5710 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5711 * sh-tdep.c (sh_gdbarch_init): Ditto.
5712 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5713 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5715 2003-06-07 Andrew Cagney <cagney@redhat.com>
5717 * gdbarch.sh: Comment each field of startup_gdbarch.
5718 * gdbarch.h, gdbarch.c: Re-generate.
5720 2003-06-07 Andrew Cagney <cagney@redhat.com>
5722 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5723 * gdbarch.h, gdbarch.c: Re-generate.
5724 * regcache.c: Update comments on read_pc et.al.
5725 (generic_target_read_pc): Delete function.
5726 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5727 * inferior.h (generic_target_read_pc): Delete declaration.
5728 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5729 generic_target_read_pc.
5730 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5731 * sh-tdep.c (sh_gdbarch_init): Ditto.
5732 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5735 2003-06-07 Andrew Cagney <cagney@redhat.com>
5737 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5738 "index" with "special_local_sect". Use strcmp instead of STREQ.
5739 Append period to coments.
5741 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5743 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5744 (elfstab_offset_sections): Likewise.
5745 * gdb-stabs.h (stab_section_info): Likewise.
5746 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5747 * objfiles.c (objfile_relocate): Likewise.
5748 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5749 * remote.c (get_offsets): Likewise.
5750 (remote_cisco_objfile_relocate): Likewise.
5751 * somread.c (som_symfile_offsets): Likewise.
5752 * symfile.c (alloc_section_addr_info): New function.
5753 (build_section_addr_info_from_section_tab): Use it.
5754 (free_section_addr_info): Adjust.
5755 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5756 (syms_from_objfile): Allocate local_addr dynamically.
5757 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5759 (add_symbol_file_command): Allocate sect_opts dynamically.
5760 (reread_symbols): Avoid use of SECT_OFF_MAX.
5761 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5762 (alloc_section_addr_info): Declare it.
5763 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5764 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5766 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5768 2003-06-06 Andrew Cagney <cagney@redhat.com>
5770 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5771 (d10v_frame_unwind_cache): Do not set "return_pc".
5773 2003-06-06 Michael Snyder <msnyder@redhat.com>
5775 * h8300-tdep.c: Make tidy (long lines).
5777 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5779 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5780 to regcache_collect().
5782 2003-06-05 J. Brobecker <brobecker@gnat.com>
5784 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5785 pc_in_sigtramp multiarch method.
5786 (hppa_hpux_som_init_abi): Use it.
5787 (hppa_hpux_elf_init_abi): Likewise.
5788 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5789 macro has been multiarched.
5790 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5791 macro here, as hppa64 isn't multiarched yet.
5793 2003-06-05 Andrew Cagney <cagney@redhat.com>
5795 * Makefile.in (value_h): Add $(frame_h).
5796 * value.h: Include "frame.h".
5797 (struct value): Replace "frame_addr" with "frame_id".
5798 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5799 * values.c (allocate_value): Use VALUE_FRAME_ID.
5800 (value_copy): Use VALUE_FRAME_ID.
5801 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5802 * valops.c (value_assign): Update. Use frame_find_by_id.
5804 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5806 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5809 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5811 * thread-db.c (check_event): For create/death event breakpoints,
5812 loop through all messages to ensure that we read the message
5813 corresponding to the breakpoint we are at.
5815 2003-06-04 Michael Snyder <msnyder@redhat.com>
5817 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5819 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5821 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5822 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5823 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5824 when handling .eh_frame sections.
5826 2003-06-04 J. Brobecker <brobecker@gnat.com>
5828 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5829 prepare_to_proceed procedure instead of the hppa-specific one.
5830 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5832 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5834 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5835 * config.in: Regenerated.
5836 * configure.in: Add test for syscall function and check for
5837 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5838 * configure: Regenerated.
5839 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5841 (kill_lwp): New function that uses tkill syscall or
5842 uses kill, depending on whether threading model is nptl or not.
5843 All callers of kill() changed to use kill_lwp().
5844 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5845 see if all threads have already exited in the nptl model.
5846 (stop_and_resume_callback): New callback function used by the
5847 lin_lwp_wait thread exit handling code.
5848 (stop_wait_callback): Check for threads already having exited and
5849 delete such threads fromt the lwp list when discovered.
5850 (stop_callback): Don't assert retcode of kill call.
5852 Roland McGrath <roland@redhat.com>
5853 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5856 2003-06-03 Richard Henderson <rth@redhat.com>
5858 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5859 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5860 (alpha_sigtramp_frame_prev_register): Likewise.
5861 (alpha_heuristic_frame_prev_register): Likewise.
5862 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5864 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5865 alpha-specific register id names.
5866 (alpha_mdebug_frame_unwind_cache): Likewise.
5867 (alpha_mdebug_frame_prev_register): Likewise.
5869 2003-06-03 Richard Henderson <rth@redhat.com>
5871 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5872 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5873 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5874 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5876 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5877 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5878 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5880 * alpha-linux-tdep.c: Remove unnecessary includes.
5881 * Makefile.in (alpha-linux-tdep.o): Update.
5883 2003-06-03 Richard Henderson <rth@redhat.com>
5885 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5886 (alphabsd_fill_fpreg): Likewise.
5888 2003-06-03 J. Brobecker <brobecker@gnat.com>
5890 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5891 references to struct frame_info fields by calls to the equivalent
5892 accessors. Necessary now that frame_info is opaque.
5894 2003-06-03 J. Brobecker <brobecker@gnat.com>
5896 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5897 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5898 structure, field no longer exists.
5900 2003-06-03 J. Brobecker <brobecker@gnat.com>
5902 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5903 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5905 2003-06-03 J. Brobecker <brobecker@gnat.com>
5907 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5908 references to struct frame_info fields by calls to the equivalent
5909 accessors. Necessary now that frame_info is opaque.
5911 2003-06-03 J. Brobecker <brobecker@gnat.com>
5913 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5914 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5915 structure, field no longer exists.
5917 2003-06-03 Theodore A. Roth <troth@openavr.org>
5919 * remote.c (init_remote_state): Compute sizeof_g_packet by
5920 accumulation of the size of all registers instead of blindly using
5921 DEPRECATED_REGISTER_BYTES.
5923 2003-06-03 Michael Snyder <msnyder@redhat.com>
5925 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5926 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5929 2003-06-03 J. Brobecker <brobecker@gnat.com>
5931 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5932 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5934 2003-06-03 Andrew Cagney <cagney@redhat.com>
5936 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5937 (sparc_convert_to_raw): Delete function.
5938 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5939 register_convert_to_virtual.
5941 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5943 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5944 layer if not dealing with a statically-linked threaded program.
5946 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5948 * solib.c (solib_open): Update comment to reflect actual search order.
5950 2003-06-03 Andrew Cagney <cagney@redhat.com>
5952 * frame.c (get_frame_memory_signed): New function.
5953 (get_frame_memory, get_frame_memory_unsigned): New function.
5954 (get_frame_arch): New function.
5955 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5956 (get_frame_memory, get_frame_unsigned_memory): Declare.
5957 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5958 get_frame_memory_unsigned and get_frame_arch.
5959 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5961 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5963 * MAINTAINERS (write after approval): Add myself.
5965 2003-06-03 Jim Blandy <jimb@redhat.com>
5967 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5968 elements of gregset_t are 64 bits each, but access registers
5969 are still 32 bits, so they're packed two per gregset_t
5970 element. Unpack/pack them properly.
5972 2003-06-02 David Carlton <carlton@bactrian.org>
5974 * linespec.c (find_methods): Break out code into
5975 add_matching_methods and add_constructors.
5976 (add_matching_methods): New.
5977 (add_constructors): Ditto.
5979 2003-06-02 Andrew Cagney <cagney@redhat.com>
5981 * sparc-tdep.c (sparc_print_registers): Delete call to
5982 REGISTER_CONVERTIBLE.
5983 (sparc_gdbarch_init): Do not set register_convertible.
5984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5985 * frv-tdep.c (frv_gdbarch_init): Ditto.
5986 * cris-tdep.c (cris_gdbarch_init): Ditto.
5988 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5990 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5991 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5992 (syms_from_objfile): Ditto.
5994 2003-06-03 Andreas Schwab <schwab@suse.de>
5996 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5997 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5999 2003-06-02 Richard Henderson <rth@redhat.com>
6001 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6002 a member of all_reggroup.
6004 2003-06-02 Richard Henderson <rth@redhat.com>
6006 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6007 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6008 (alpha_lds, alpha_sts): New.
6009 (alpha_convert_register_p): Change from _register_convertible.
6010 (alpha_register_to_value): Change from _convert_to_virtual;
6011 restructure and fail for type sizes other than 4 or 8.
6012 (alpha_value_to_register): Similarly.
6013 (alpha_extract_return_value): Use alpha_sts.
6014 (alpha_store_return_value): Use alpha_lds.
6015 (alpha_gdbarch_init): Update hooks.
6017 2003-06-02 Richard Henderson <rth@redhat.com>
6019 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6021 (alpha_sigtramp_register_address): Likewise.
6023 2003-06-02 Richard Henderson <rth@redhat.com>
6025 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6026 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6027 * alpha-tdep.h: Declare them.
6029 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6030 Remove zerobuf. Don't error on UNIQUE.
6031 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6032 (ALPHA_REGSET_UNIQUE): Provide default.
6033 (supply_gregset): Use alpha_supply_int_regs.
6034 (fill_gregset): Use alpha_fill_int_regs.
6035 (supply_fpregset): Use alpha_supply_fp_regs.
6036 (fill_fpregset): Use alpha_fill_fp_regs.
6037 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6038 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6039 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6040 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6041 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6042 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6044 2003-06-02 Richard Henderson <rth@redhat.com>
6046 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6048 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6049 (alpha_store_return_value): Likewise.
6051 2003-06-02 David Carlton <carlton@math.stanford.edu>
6053 * block.c (contained_in): Add 'const' to arguments.
6054 (block_function): Ditto.
6055 * block.h: Update declarations for block_function and
6058 2003-06-02 David Carlton <carlton@math.stanford.edu>
6060 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6061 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6062 * p-valprint.c (pascal_val_print): Ditto.
6063 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6065 2003-06-02 Richard Henderson <rth@redhat.com>
6067 * alpha-tdep.c (alpha_push_dummy_call): Use
6068 builtin_type_ieee_double_little instead of builtin_type_double.
6070 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6071 sign-extension of 32-bit values.
6072 (alpha_store_return_value): Similarly.
6074 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6075 (alpha_extract_return_value): Likewise.
6076 (alpha_store_return_value): Likewise.
6078 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6079 (alpha_store_return_value): Error on IEEE Quad floats.
6081 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6082 (alpha_extract_struct_value_address): Likewise.
6083 (alpha_store_return_value): Likewise.
6084 (alpha_store_struct_return): Remove.
6085 (alpha_gdbarch_init): Update hook registration to match.
6087 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6088 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6089 macros where appropriate.
6090 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6091 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6093 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6094 for SP, GP; void_func_ptr for PC; non-language-specific types
6096 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6098 2003-06-02 Richard Henderson <rth@redhat.com>
6100 * top.h (lim_at_start): Declare.
6101 * main.c (captured_main): Set it.
6102 * top.c (lim_at_start): Define.
6103 (command_loop): Use it instead of &environ.
6104 * event-top.c (command_handler): Likewise.
6106 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6108 * mipsnbsd-tdep.c: Update copyright years.
6109 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6111 2003-06-01 Richard Henderson <rth@redhat.com>
6113 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6114 (alpha-linux-tdep.o): Update dependencies.
6115 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6116 * alpha-mdebug-tdep.c: Remove unneeded includes.
6118 2003-06-01 Richard Henderson <rth@redhat.com>
6120 * alpha-tdep.c (alpha_register_reggroup_p): New.
6121 (alpha_gdbarch_init): Register it.
6123 2003-06-02 Andrew Cagney <cagney@redhat.com>
6125 * dwarfread.c: Eliminate "register"
6126 (decode_die_type): Eliminate assignment within "if".
6127 (struct_type, decode_array_element_type): Ditto.
6128 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6129 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6130 (decode_modified_type, completedieinfo): Ditto.
6131 * block.c: Eliminate "register".
6132 (blockvector_for_pc_sect): Eliminate assignment within "if".
6133 * cp-support.h (struct symbol): Opaque declaration.
6134 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6136 2003-06-01 Richard Henderson <rth@redhat.com>
6138 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6139 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6141 2003-06-01 Adam Fedor <fedor@gnu.org>
6143 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6144 * gdbarch.[ch]: Regenerate.
6145 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6146 (hppa_gdbarch_init): Set it in the gdbarch vector.
6147 * i386-tdep.c (i386_fetch_pointer_argument): New
6148 (i386_gdbarch_init): Set it into gdbarch.
6149 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6150 (rs6000_gdbarch_init): Set it in gdbarch.
6151 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6152 (sparc_gdbarch_init): Set it in gdbarch.
6154 2003-06-01 Andrew Cagney <cagney@redhat.com>
6156 * defs.h (extract_address): Delete declaration.
6157 * findvar.c (extract_address): Delete function.
6158 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6159 extract_address with the inline equivalent,
6160 extract_unsigned_integer.
6161 (xstormy16_extract_struct_value_address): Ditto.
6162 (xstormy16_pointer_to_address): Ditto.
6163 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6164 * v850-tdep.c (v850_push_arguments): Ditto.
6165 (v850_extract_return_value): Ditto.
6166 (v850_extract_struct_value_address): Ditto.
6167 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6168 (sparcnbsd_get_longjmp_target_64): Ditto.
6169 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6170 (get_longjmp_target): Ditto.
6171 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6172 (sh64_extract_struct_value_address): Ditto.
6173 (sh_push_arguments): Ditto.
6174 (sh64_push_arguments): Ditto.
6175 * remote-vxsparc.c (vx_read_register): Ditto.
6176 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6177 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6178 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6179 * mipsv4-nat.c (get_longjmp_target): Ditto.
6180 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6181 * mips-nat.c (get_longjmp_target): Ditto.
6182 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6183 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6184 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6185 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6186 * irix5-nat.c (get_longjmp_target): Ditto.
6187 * irix4-nat.c (get_longjmp_target): Ditto.
6188 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6189 (ia64_push_arguments): Ditto.
6190 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6191 * h8300-tdep.c (h8300_push_arguments): Ditto.
6192 (h8300_store_return_value): Ditto.
6193 (h8300_extract_struct_value_address): Ditto.
6194 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6195 (frv_push_arguments): Ditto.
6196 * avr-tdep.c (avr_pointer_to_address): Ditto.
6197 (avr_push_arguments): Ditto.
6198 * arm-tdep.c (arm_push_dummy_call): Ditto.
6199 (arm_get_longjmp_target): Ditto.
6200 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6201 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6202 (alpha_get_longjmp_target): Ditto.
6204 * solib-irix.c (extract_mips_address): Inline extract_address,
6205 replacing it with extract_signed_integer.
6206 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6207 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6208 (first_link_map_member, open_symbol_file_object): Ditto.
6209 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6210 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6211 (LM_NEXT, LM_NAME): Ditto.
6213 2003-06-01 Richard Henderson <rth@redhat.com>
6215 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6216 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6217 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6218 (alpha_cannot_store_register): Likewise.
6219 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6220 * alpha-nat.c (supply_gregset): Likewise.
6221 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6223 2003-06-01 Andrew Cagney <cagney@redhat.com>
6225 * infcall.c (call_function_by_hand): Update comment on
6226 DEPRECATED_DUMMY_WRITE_SP.
6228 * mips-tdep.c (mips_gdbarch_init): Do not set
6229 deprecated_dummy_write_sp.
6230 (mips_eabi_push_dummy_call): Set the SP register.
6231 (mips_o64_push_dummy_call): Set the SP register.
6232 (mips_o32_push_dummy_call): Set the SP register.
6233 (mips_n32n64_push_dummy_call): Set the SP register.
6235 2003-06-01 Richard Henderson <rth@redhat.com>
6237 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6238 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6239 (supply_gregset): Likewise.
6240 * alpha-tdep.c (alpha_store_return_value): Likewise.
6241 (alpha_get_longjmp_target): Likewise.
6242 (alpha_register_name): Constify array.
6243 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6244 deprecated_register_size, deprecated_register_bytes,
6245 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6246 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6247 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6249 2003-06-01 Richard Henderson <rth@redhat.com>
6251 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6252 from arg_reg_buffer to regcache to avoid double conversion.
6254 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6256 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6258 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6259 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6261 2003-06-01 Richard Henderson <rth@redhat.com>
6263 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6264 (decode_frame_entry): Set it. Skip FDE augmentation.
6266 2003-06-01 Richard Henderson <rth@redhat.com>
6268 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6269 not overlapping PC_REGNUM.
6271 2003-06-01 Richard Henderson <rth@redhat.com>
6273 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6274 alpha_push_arguments. Don't dump argument register data to
6275 the target stack. Fix float and 128-bit long double semantics.
6276 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6277 (alpha_fix_call_dummy): Remove.
6278 (alpha_call_dummy_words): Remove.
6279 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6281 2003-06-01 Richard Henderson <rth@redhat.com>
6283 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6285 2003-06-01 Andrew Cagney <cagney@redhat.com>
6287 * mips-tdep.c (is_mips16_addr): New function.
6288 (make_mips16_addr, unmake_mips16_addr): New functions.
6289 (pc_is_mips16, mips_fetch_instruction): Use.
6290 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6291 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6292 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6293 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6295 * config/mips/tm-mips.h: Update copyright.
6296 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6297 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6298 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6299 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6300 (TM_PRINT_INSN_MACH): Delete.
6301 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6303 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6304 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6305 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6306 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6307 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6308 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6309 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6310 mips*-*-riscos* and mips*-*-sysv* onto mips.
6311 * config/mips/mips64.mt: New file.
6312 * config/mips/mips.mt: New file.
6313 * config/mips/littlemips.mt: Delete file.
6314 * config/mips/decstation.mt: Delete file.
6315 * config/mips/vr4300el.mt: Delete file.
6316 * config/mips/vr5000el.mt: Delete file.
6317 * config/mips/vr5000.mt: Delete file.
6318 * config/mips/vr4100.mt: Delete file.
6319 * config/mips/vr4xxxel.mt: Delete file.
6320 * config/mips/vr4300.mt: Delete file.
6321 * config/mips/vr4xxx.mt: Delete file.
6322 * config/mips/bigmips.mt: Delete file.
6323 * config/mips/bigmips64.mt: Delete file.
6324 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6325 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6326 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6327 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6328 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6330 * config/mips/tm-irix3.h: Ditto.
6331 * config/mips/tm-mipsv4.h: Ditto.
6332 * config/mips/tm-embed.h: Ditto.
6333 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6335 * config/mips/tm-vr5000el.h: Delete file.
6336 * config/mips/tm-tx39l.h: Delete file.
6337 * config/mips/tm-vr4300el.h: Delete file.
6338 * config/mips/tm-vr4xxxel.h: Delete file.
6339 * config/mips/tm-vr4300.h: Delete file.
6340 * config/mips/tm-vr4100.h: Delete file.
6341 * config/mips/tm-vr4xxx.h: Delete file.
6342 * config/mips/tm-vr5000.h: Delete file.
6343 * config/mips/tm-embedl64.h: Delete file.
6344 * config/mips/tm-embedl.h: Delete file.
6345 * config/mips/tm-embed64.h: Delete file.
6346 * config/mips/tm-bigmips64.h: Delete file.
6347 * config/mips/tm-bigmips.h: Delete file.
6349 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6352 * shnbsd-nat.c: Include "sh-tdep.h".
6354 From Richard Henderson <rth@redhat.com>:
6355 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6357 2003-05-31 Andrew Cagney <cagney@redhat.com>
6359 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6360 forward declaration.
6361 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6362 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6363 (mips_find_saved_regs): Use set_reg_offset.
6364 (mips_frame_init_saved_regs): Delete function.
6365 (mips_pop_frame): Call mips_find_saved_regs instead of
6366 DEPRECATED_FRAME_INIT_SAVED_REGS.
6368 2003-05-31 Andrew Cagney <cagney@redhat.com>
6370 * mips-tdep.c (mips_gdbarch_init): Do not set
6371 deprecated_max_register_raw_size, register_virtual_size, and
6372 deprecated_max_register_virtual_size.
6374 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6376 * i386-tdep.c: Include "dwarf2-frame.h".
6377 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6378 * Makefile.in (i386-tdep.o): Update dependencies.
6380 * dwarf2-frame.c, dwarf2-frame.h: New files.
6381 * Makefile.in (SFILES): Add dwarf2-frame.c.
6382 (dwarf2_frame_h): Define.
6383 (COMMON_OBS): Add dwarf2-frame.o.
6384 (dwarf2-frame.o): Add dependencies.
6386 2003-05-31 Andreas Jaeger <aj@suse.de>
6388 * x86-64-linux-nat.c: Fix comment.
6390 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6392 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6395 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6396 have a sigcontext_addr handler.
6397 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6398 sigcontext_addr handler.
6400 2003-05-31 Andrew Cagney <cagney@redhat.com>
6402 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6403 (print_fp_register_row): Replace do_fp_register_row.
6404 (mips_print_fp_register): Add "file" and "frame" parameters.
6405 (mips_print_register): Add "file" and "frame" parameters.
6406 (mips_print_registers_info): Replace mips_do_registers_info.
6407 (mips_gdbarch_init): Set print_registers_info instead of
6408 deprecated_do_registers_info.
6409 (mips_read_fp_register_single): Add "frame" parameter.
6410 (mips_read_fp_register_double): Add "frame" parameter.
6412 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6414 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6415 Fixes a bug where GDB would print the wrong register names for
6416 targets without SSE.
6418 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6419 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6422 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6423 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6424 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6427 From Michal Ludvig <mludvig@suse.cz>:
6428 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6430 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6431 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6432 I386_ST0_REGNUM): Move here from...
6433 * i386-tdep.c: ... here.
6434 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6435 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6436 registers if possible.
6437 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6438 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6440 (i386bsd_sc_reg_offset): New variable.
6441 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6442 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6444 (i386fbsd_sc_reg_offset): New variable.
6445 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6447 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6449 (i386fbsd4_sc_reg_offset): New variable.
6450 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6451 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6453 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6454 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6455 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6457 (i386nbsd_sc_reg_offset): New variable.
6458 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6459 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6461 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6463 (i386obsd_sc_reg_offset): New variable.
6464 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6465 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6467 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6468 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6469 for frame pointer offset in `struct sigcontext'.
6471 2003-05-31 Andrew Cagney <cagney@redhat.com>
6473 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6474 architecture methods call_dummy_words, sizeof_call_dummy_words,
6475 push_return_address, store_struct_return, and fix_call_dummy. Set
6476 push_dummy_call instead of deprecated_push_arguments.
6477 (mips_store_struct_return): Delete function.
6478 (mips_fix_call_dummy): Delete function.
6479 (mips_push_return_address): Delete function.
6480 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6481 RA_REGNUM and T9_REGNUM.
6482 (mips_n32n64_push_dummy_call): Ditto for
6483 mips_n32n64_push_arguments.
6484 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6485 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6487 2003-05-31 Andrew Cagney <cagney@redhat.com>
6489 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6490 "dummy_addr" to "bp_addr".
6491 * infcall.c (call_function_by_hand): Pass "funaddr" to
6492 gdbarch_push_dummy_call.
6493 * gdbarch.h, gdbarch.c: Re-generate.
6494 * i386-tdep.c (i386_push_dummy_call): Update.
6495 * arm-tdep.c (arm_push_dummy_call): Update.
6496 * d10v-tdep.c (d10v_push_dummy_call): Update.
6498 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6500 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6501 variable declarations.
6502 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6503 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6504 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6505 x86_64_init_frame_pc, x86_64_init_frame_pc,
6506 x86_64_function_has_prologue): Remove prototypes.
6507 (X86_64_NUM_GREGS): New define.
6508 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6509 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6510 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6511 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6512 XMM1_REGNUM): Remove defines.
6513 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6514 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6515 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6516 X86_64_XMM1_REGNUM): New defines.
6517 (struct x86_64_register_info): Renamed from `struct
6518 register_info'. Remove `size' member.
6519 (x86_64_register_info_table): Remove variable.
6520 (x86_64_register_info): New variable.
6521 (X86_64_NUM_REGS): New define.
6522 (X86_64_NUM_GREGS): Remove define.
6523 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6524 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6526 (x86_54_dwarf2_reg_to_regnum): Remove function.
6527 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6528 (x86_64_dwarf_reg_to_regnum): New function.
6529 (x86_64_register_name): Rewrite.
6530 (x86_64_register_raw_size): Remove function.
6531 (x86_64_register_byte_table): Remove variable.
6532 (x86_64_register_byte): Remove function.
6533 (x86_64_register_virtual_type): Remove function.
6534 (x86_64_register_type): New function.
6535 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6536 x86_64_register_convert_to_raw): Remove functions.
6537 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6538 (x86_64_use_struct_convention): Make static. Adjust for renamed
6540 (x86_64_frame_init_saved_regs): Remove function.
6541 (x86_64_push_arguments): Make static. Change to accept a regcache
6543 (x86_64_store_return_value, x86_64_extract_return_value): Make
6544 static. Rewrite based on i386 counterparts.
6545 (x86_64_push_dummy_call): New function.
6546 (X86_64_NUM_SAVED_REGS): New define.
6547 (x86_64_register_number): Remove function.
6548 (x86_64_store_struct_return): Remove function.
6549 (x86_64_frameless_function_invocation,
6550 x86_64_function_has_prologue): Remove functions.
6551 (PROLOG_BUFSIZE): Remove define.
6552 (struct x86_64_frame_cache): New structure.
6553 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6554 x86_64_frame_cache, x86_64_frame_this_id,
6555 x86_64_frame_prev_register, x86_64_frame_p,
6556 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6557 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6559 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6561 (x86_64_skip_prologue): Rewrite in terms of
6562 x86_64_analyze_prologue.
6563 (x86_64_frame_base_address): New function.
6564 (x86_64_frame_base): New variable.
6565 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6566 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6567 set deprecated_fp_regnum, deprecated_register_size,
6568 deprecated_register_bytes, register_raw_size, register_byte,
6569 register_virtual_type, register_convertiable,
6570 register_convert_to_virtual, convert_to_raw,
6571 deprecated_get_saved_register, deprecated_target_read_fp,
6572 deprecated_push_arguments, deprecated_push_return_address,
6573 deprecated_pop_frame, deprecated_store_struct_return,
6574 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6575 frameless_function_invocation, deprecated_frame_saved_pc,
6576 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6577 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6578 deprecated_init_frame_pc and virtual_frame_pointer. Call
6579 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6580 and x86_64_frame_p. Call frame_base_set_default to register
6582 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6583 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6584 (_initialize_x86_64_tdep): Remove function.
6585 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6586 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6587 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6589 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6590 (x86_64_linux_sigcontext_addr): Rewrite.
6591 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6592 x86_64_linux_frame_saved_pc): Remove functions.
6593 (x86_64_linux_pc_in_sigtramp): Renamed from
6594 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6596 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6598 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6599 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6600 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6601 (x86_64_regmap): Rename to regmap.
6602 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6604 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6606 (x86_64_fxsave_offset): Remove function.
6607 (supply_fpregset): Simply call x86_64_supply_fxsave.
6608 (fill_fpregset): Simply call x86_64_fill_fxsave.
6609 (fetch_inferior_registers, store_inferior_registers): Avoid
6610 asignment in if-statement.
6611 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6612 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6613 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6614 (fetch_core_registers): Remove function.
6615 (linux_elf_core_fns): Remove.
6616 (offsetoff): Don't define.
6617 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6618 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6619 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6621 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6622 protection against multiple includes instead of NM_X86_64_h. Add
6623 various comments. Include "config/nm-linux.h". Don't include
6625 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6626 GET_THREAD_SIGNALS): Remove defines.
6627 (x86_64_register_u_addr, kernel_u_size,
6628 lin_thread_get_thread_signals): Remove prototypes.
6629 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6630 [HAVE_LINK_H]: Don't include "solib.h".
6631 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6632 * config/i386/tm-x86-64linux.h: Fix comments.
6633 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6634 x86-64-tdep.o): Update dependencies.
6636 2003-05-30 Andrew Cagney <cagney@redhat.com>
6638 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6639 Change parameter type to a "struct regcache *".
6641 * gdbarch.sh: Regardless of the multi-arch level, always define
6642 the macro when not already defined.
6643 * gdbarch.h, gdbarch.c: Re-generate.
6645 2003-05-30 Richard Henderson <rth@redhat.com>
6647 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6648 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6649 (alpha_mdebug_frame_this_id): Likewise.
6650 (alpha_mdebug_frame_prev_register): Likewise.
6651 (alpha_mdebug_frame_base_address): Likewise.
6652 (alpha_mdebug_frame_locals_address): Likewise.
6653 (alpha_mdebug_frame_args_address): Likewise.
6654 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6655 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6656 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6658 (alpha_heuristic_frame_this_id): Make static.
6659 (alpha_heuristic_frame_prev_register): Likewise.
6660 (alpha_heuristic_frame_base_address): Likewise.
6661 * alpha-tdep.h: Update.
6663 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6665 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6666 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6668 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6669 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6670 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6671 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6672 I386_ST0_REGNUM): New defines.
6673 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6674 codestream_get): Remove define.
6675 (codestream_next_addr, condestream_addr, condestream_buf,
6676 codestream_off, codestream_cnt): Remove variables.
6677 (codestream_fill, codestream_seek, codestream_read): Remove
6679 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6681 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6682 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6683 i386_frame_saved_pc, i386_saved_pc_after_call,
6684 i386_frame_num_args, i386_frame_init_saved_regs,
6685 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6686 i386_push_arguments): Remove functions.
6687 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6688 functionality. Use i386_analyze_prologue instead of
6689 i386_get_frame_setup.
6690 (I386_NUM_SAVED_REGS): New define.
6691 (struct i386_frame_cache): New structure.
6692 (i386_alloc_frame_cache, i386_analyze_struct_return,
6693 i386_skip_probe, i386_analyze_frame_setup,
6694 i386_analyze_register_saves, i386_analyze_prologue,
6695 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6696 i386_frame_prev_register, i386_sigtramp_frame_cache,
6697 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6698 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6699 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6701 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6703 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6704 I386_EAX_REGNUM and I386_EDX_REGNUM.
6705 (i386_extract_return_value, i386_store_return_value): Use
6706 I386_ST0_REGNUM where appropriate.
6707 (i386_extract_struct_value_address): Rewrite to use extract_address.
6708 (i386_svr4_pc_in_sigtramp): Add comment.
6709 (i386_svr4_sigcontext_addr): Rewrite.
6710 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6712 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6713 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6714 of new defines. Set push_dummy_call, don't set
6715 deprecated_push_arguments, deprecated_push_return_address,
6716 deprecated_pop_frame. Don't set parm_boundary. Don't set
6717 deprecated_frame_chain, deprecated_frame_saved_pc,
6718 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6719 save_dummy_frame_tos, unwind_pc. Call
6720 frame_unwind_append_predicate and frame_base_set_default. Don't
6721 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6722 Don't set frameless_function_invocation. Don't set
6723 deprecated_register_bytes, deprecated_register_size,
6724 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6725 * i386-linux-tdep.c: Fix formatting in some comments.
6726 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6727 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6728 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6729 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6730 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6731 redundant parentheses.
6732 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6733 (i386_linux_sigcontext_addr): Use it. Rewrite.
6734 (find_minsym_and_objfile): Change name of second argument.
6735 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6736 changed. Use frame_pc_unwind instead of
6737 DEPRECATED_SAVED_PC_AFTER_CALL.
6738 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6739 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6740 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6742 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6744 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6745 (_initialize_i386_cygwin_tdep): New prototype.
6746 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6747 deprecated_frame_chain_valid.
6748 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6749 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6750 Rely on the SVR4 defaults.
6751 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6752 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6754 2003-05-30 Andrew Cagney <cagney@redhat.com>
6756 * infcall.c (call_function_by_hand): Always call
6757 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6759 2003-05-30 Richard Henderson <rth@redhat.com>
6761 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6764 2003-05-29 Jim Blandy <jimb@redhat.com>
6766 Use gdbarch methods for solib stuff on PowerPC Linux.
6767 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6768 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6770 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6771 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6772 giving the same effect as the #definitions above.
6774 2003-05-29 Adam Fedor <fedor@gnu.org>
6776 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6777 (find_implementation_from_class): Replace it with the standard
6778 case i.e. do nothing.
6780 2003-05-29 Richard Henderson <rth@redhat.com>
6782 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6783 (alpha_linux_sigtramp_offset): Use it. Make static.
6784 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6785 update for new frame model.
6786 * alpha-mdebug-tdep.c: New file.
6787 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6788 (alpha_osf1_init_abi): Install it.
6789 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6790 (linked_proc_desc_table): Remove.
6791 (alpha_frame_past_sigtramp_frame): Remove.
6792 (alpha_dynamic_sigtramp_offset): Remove.
6793 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6794 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6795 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6796 (push_sigtramp_desc): Remove.
6797 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6798 (alpha_cannot_store_register): Likewise.
6799 (alpha_sigcontext_addr): Remove.
6800 (alpha_find_saved_regs): Remove.
6801 (alpha_frame_init_saved_regs): Remove.
6802 (alpha_init_frame_pc_first): Remove.
6803 (read_next_frame_reg): Remove.
6804 (alpha_frame_saved_pc): Remove.
6805 (alpha_saved_pc_after_call): Remove.
6806 (temp_proc_desc, temp_saved_regs): Remove.
6807 (alpha_about_to_return): Remove.
6808 (cached_proc_desc): Remove.
6809 (alpha_frame_chain): Remove.
6810 (alpha_print_extra_frame_info): Remove.
6811 (alpha_init_extra_frame_info): Remove.
6812 (alpha_frame_locals_address): Remove.
6813 (alpha_frame_args_address): Remove.
6814 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6815 (alpha_push_dummy_frame): Remove.
6816 (alpha_pop_frame): Remove.
6817 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6818 (alpha_read_insn): New.
6819 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6820 for different insn encodings.
6821 (alpha_in_lenient_prologue): Remove.
6822 (struct alpha_sigtramp_unwind_cache): New.
6823 (alpha_sigtramp_frame_unwind_cache): New.
6824 (alpha_sigtramp_register_address): New.
6825 (alpha_sigtramp_frame_this_id): New.
6826 (alpha_sigtramp_frame_prev_register): New.
6827 (alpha_sigtramp_frame_unwind): New.
6828 (alpha_sigtramp_frame_p): New.
6829 (struct alpha_heuristic_unwind_cache): New.
6830 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6831 don't count nop insns that occur between functions.
6832 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6833 heuristic_proc_desc, but without the mdebug wrapping.
6834 (alpha_heuristic_frame_this_id): New.
6835 (alpha_heuristic_frame_prev_register): New.
6836 (alpha_heuristic_frame_unwind): New.
6837 (alpha_heuristic_frame_p): New.
6838 (alpha_heuristic_frame_base_address): New.
6839 (alpha_heuristic_frame_base): New.
6840 (alpha_unwind_dummy_id): New.
6841 (alpha_unwind_pc): New.
6842 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6843 frame related deprecated initializations; install replacements.
6844 (alpha_dump_tdep): Remove.
6845 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6846 (alpha_read_insn, alpha_after_prologue,
6847 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6848 alpha_heuristic_frame_prev_register,
6849 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6850 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6851 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6852 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6854 2003-05-29 Andrew Cagney <cagney@redhat.com>
6856 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6857 dependant on the availability of ASSERT_FUNCTION.
6858 (ASSERT_FUNCTION): Do not define when there is no function name.
6860 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6862 From Jimi X <jimix@watson.ibm.com>:
6863 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6865 2003-05-28 Jim Blandy <jimb@redhat.com>
6867 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6868 argument to ptrace to int; the system headers should give it the
6869 right type, and pointers don't fit in ints on powerpc64-*-*.
6871 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6873 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6876 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6878 * stabsread.c (dbx_lookup_type): Make static.
6880 (add_undefined_type): Ditto.
6881 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6884 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6886 * hpread.c (hpread_has_name): Make static.
6887 (hpread_psymtab_to_symtab): Ditto.
6888 (file_exists): Ditto.
6889 (hpread_call_pxdb): Ditto.
6890 (hpread_pxdb_needed): Ditto.
6891 (hpread_quick_traverse): Ditto.
6892 (hpread_get_header): Ditto.
6893 (hpread_get_lntt): Ditto.
6894 (hpread_get_slt): Ditto.
6897 2003-05-25 Andreas Schwab <schwab@suse.de>
6899 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6900 stack_align and deprecated_extra_stack_alignment_needed.
6901 (m68k_stack_align): Delete.
6903 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6904 (m68k_register_virtual_size): Likewise.
6905 (altos_skip_prologue): Remove obsolete function.
6906 (isi_frame_num_args): Likewise.
6907 (news_frame_num_args): Likewise.
6908 (m68k_fix_call_dummy): Make static.
6909 (m68k_push_dummy_frame): Likewise.
6910 (m68k_pop_frame): Likewise.
6911 (m68k_skip_prologue): Likewise.
6912 (m68k_frame_init_saved_regs): Likewise.
6913 (m68k_saved_pc_after_call): Likewise.
6914 (m68k_get_longjmp_target): Make multi-arch.
6915 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6916 structure. Register m68k_get_longjmp_target if enabled.
6917 * m68k-tdep.h (struct gdbarch_tdep): Define.
6918 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6920 * Makefile.in (config.status): Also depend on configure.tgt
6922 (m68klinux-tdep.o): Update dependencies.
6923 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6924 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6925 (M68K_LINUX_JB_PC): Define.
6926 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6927 and take additional parameter.
6928 (m68k_linux_sigtramp_saved_pc): Update.
6929 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6930 m68k_linux_pc_in_sigtramp, in_plt_section,
6931 find_solib_trampoline_target.
6932 * config/m68k/tm-linux.h: Don't include any tm headers.
6933 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6934 (JB_ELEMENT_SIZE): Likewise.
6936 (GET_LONGJMP_TARGET): Likewise.
6937 (IN_SIGTRAMP): Likewise.
6938 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6940 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6942 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6943 (sparc32_push_arguments): Re-implement by calling
6944 sparc32_do_push_arguments.
6946 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6948 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6949 SPARC_O1_REGNUM): New defines.
6950 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6951 (sparc32_store_return_value): New function.
6952 (sparc_extract_struct_value_address): Rewrite to operate on a
6954 (sparc_gdbarch_init): Don't set
6955 deprecated_extract_struct_value_address. Set
6956 extract_struct_value_address instead. Don't set
6957 deprecated_extract_return_value and deprecated_store_return_value
6958 for 32-bit targets. Set extract_return_value and
6959 store_return_value instead.
6960 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6961 DEPRECTAED_EXTRACT_RETURN_VALUE,
6962 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6963 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6964 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6965 (sparc_store_return_value): Remove prototype.
6966 (sparc32_store_return_value): New prototype.
6967 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6970 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6972 * sparcnbsd-tdep.c: Include "gdb_string.h".
6974 2003-05-23 Andrew Cagney <cagney@redhat.com>
6976 * p-valprint.c (pascal_val_print): Replace extract_address with
6977 the inline equivalent extract_unsigned_integer.
6978 * jv-valprint.c (java_value_print): Ditto.
6979 * ada-valprint.c (ada_val_print_1): Ditto.
6980 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6982 2003-05-23 Theodore A. Roth <troth@openavr.org>
6984 * blockframe.c (frameless_look_for_prologue): Remove unused
6985 after_prologue variable.
6987 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6989 * blockframe.c (get_pc_function_start): Rewrite to avoid
6990 asignments in if-statements.
6992 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6994 Committed by Elena Zannoni <ezannoni@redhat.com>.
6995 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6996 files, don't relocate absolute symbols (and do use mst_abs).
6998 2003-05-23 Andrew Cagney <cagney@redhat.com>
7000 * objc-lang.c: Include "gdb_assert.h".
7001 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7002 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7003 (gdb_check, gdb_check_fatal): Delete functions.
7004 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7006 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7007 * Makefile.in (objc-lang.o): Update dependencies.
7009 2003-05-22 Ian Lance Taylor <ian@airs.com>
7011 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7012 with fprintf_filtered, not fprintf_unfiltered.
7014 2003-05-22 Andrew Cagney <cagney@redhat.com>
7016 * stack.c (frame_info): Inline extract_address, replacing it with
7017 extract_unsigned_integer.
7018 * findvar.c (unsigned_pointer_to_address): Ditto.
7019 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7020 * dwarf2expr.c (dwarf2_read_address): Ditto.
7021 * frame.c (frame_pc_unwind): Update comment.
7022 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7024 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7026 * infptrace.c (detach): Call print_sys_errmsg rather than
7027 perror_with_name to issue warning message when errno is non-zero
7028 after calling ptrace detach.
7030 2003-05-21 J. Brobecker <brobecker@gnat.com>
7032 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7033 macro definitions from here...
7034 * hppa-tdep.c: ...to there.
7036 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7038 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7039 register_ptrace_addr(). Fix all callers.
7041 2003-05-21 Andreas Schwab <schwab@suse.de>
7043 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7045 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7047 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7048 (_initialize_m68k_linux_tdep): New function.
7049 (m68k_linux_frame_saved_pc): Make static.
7050 (m68k_linux_extract_return_value): Likewise.
7051 (m68k_linux_store_return_value): Likewise.
7052 (m68k_linux_extract_struct_value_address): Likewise.
7053 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7055 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7056 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7057 (DEPRECATED_FRAME_SAVED_PC): Remove.
7059 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7061 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7062 regset numbering rather than our own.
7064 2003-05-19 David Carlton <carlton@bactrian.org>
7066 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7068 2003-05-19 David Carlton <carlton@bactrian.org>
7070 Partial fix for PR c++/827.
7071 * cp-support.h: Include symtab.h.
7072 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7073 * cp-namespace.c: Update contributors.
7074 (cp_lookup_symbol_nonlocal): New.
7075 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7076 (lookup_symbol_file): Ditto.
7077 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7078 * block.h: Declare block_scope, block_using, block_global_block.
7079 * block.c (block_scope): New.
7080 (block_using, block_global_block): Ditto.
7081 * Makefile.in (cp_support_h): Depend on symtab_h.
7082 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7084 2003-05-19 David Carlton <carlton@bactrian.org>
7086 * language.h (struct language_defn): Add 'la_value_of_this'
7087 and 'la_lookup_symbol_nonlocal' members.
7088 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7089 lookup_symbol_static, lookup_symbol_global,
7090 lookup_symbol_aux_block.
7091 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7092 if we should search fields of this and how to do static/global
7094 (lookup_symbol_aux_block): Make extern.
7095 (basic_lookup_symbol_nonlocal): New.
7096 (lookup_symbol_static, lookup_symbol_global): Ditto.
7097 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7098 'la_lookup_symbol_nonlocal' members.
7099 * c-lang.c (c_language_defn, cplus_language_defn)
7100 (asm_language_defn, minimal_language_defn): Ditto.
7101 * jv-lang.c (java_language_defn): Ditto.
7102 * language.c (unknown_language_defn, auto_language_defn)
7103 (local_language_defn): Ditto.
7104 * m2-lang.c (m2_language_defn): Ditto.
7105 * objc-lang.c (objc_language_defn): Ditto.
7106 * scm-lang.c (scm_language_defn): Ditto.
7107 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7108 * p-lang.c (pascal_language_defn): Ditto for both.
7109 * Makefile.in (f-lang.o): Depend on value_h.
7112 2003-05-19 David Carlton <carlton@bactrian.org>
7114 * block.h: Declare block_static_block.
7115 * block.c (block_static_block): New.
7116 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7117 lookup_symbol_aux_local, calling block_static_block instead.
7118 (lookup_symbol_aux_local): Delete 'static_block' argument.
7120 2003-05-19 David Carlton <carlton@bactrian.org>
7122 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7124 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7126 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7127 register numbers mapping.
7129 2003-05-18 Adam Fedor <fedor@gnu.org>
7131 * symtab.c (completion_list_objc_symbol): New function.
7132 (make_symbol_completion_list): Use it to add ObjC symbols
7133 when looking though the list.
7134 (language_search_unquoted_string): New function.
7135 (make_file_symbol_completion_list): Use it.
7137 2003-05-18 Andreas Schwab <schwab@suse.de>
7139 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7141 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7142 as m68k_linux_extract_return_value.
7143 (DEPRECATED_STORE_RETURN_VALUE): Define as
7144 m68k_linux_store_return_value.
7145 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7146 m68k_linux_extract_struct_value_address.
7147 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7148 get_next_frame, get_frame_base, get_frame_pc.
7149 (m68k_linux_frame_saved_pc): Use get_frame_base.
7150 (m68k_linux_extract_return_value): New function.
7151 (m68k_linux_store_return_value): New function.
7152 (m68k_linux_extract_struct_value_address): New function.
7153 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7155 * c-exp.y (typebase): Remove duplicate occurence of
7156 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7157 of lookup_signed_typename.
7159 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7161 * dwarf2loc.c (find_location_expression): Change type of second
7162 argument to `size_t *'.
7163 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7166 2003-05-18 David Carlton <carlton@bactrian.org>
7168 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7169 'linkage_name'. Add comment.
7170 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7172 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7173 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7174 (lookup_block_symbol): Ditto.
7176 2003-05-16 Andrew Cagney <cagney@redhat.com>
7178 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7179 * gdbarch.h, gdbarch.c: Re-generate.
7180 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7181 * TODO (REGISTER_BYTES): Delete reference.
7182 * alpha-tdep.c (alpha_gdbarch_init): Update.
7183 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7184 * x86-64-tdep.c (x86_64_init_abi): Update.
7185 * vax-tdep.c (vax_gdbarch_init): Update.
7186 * v850-tdep.c (v850_gdbarch_init): Update.
7187 * sparc-tdep.c (sparc_gdbarch_init): Update.
7188 * sh-tdep.c (sh_gdbarch_init): Update.
7189 * s390-tdep.c (s390_gdbarch_init): Update.
7190 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7191 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7192 (ns32k_gdbarch_init_32382): Update.
7193 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7194 * mcore-tdep.c (mcore_gdbarch_init): Update.
7195 * m68k-tdep.c (m68k_gdbarch_init): Update.
7196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7197 * ia64-tdep.c (ia64_gdbarch_init): Update.
7198 * i386-tdep.c (i386_gdbarch_init): Update.
7199 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7200 * hppa-tdep.c (hppa_gdbarch_init): Update.
7201 * h8300-tdep.c (h8300_gdbarch_init): Update.
7202 * frv-tdep.c (frv_gdbarch_init): Update.
7203 * cris-tdep.c (cris_gdbarch_init): Update.
7204 * avr-tdep.c (avr_gdbarch_init): Update.
7205 * arm-tdep.c (arm_gdbarch_init): Update.
7206 * sparc-tdep.c (sparc_pop_frame): Update.
7207 * rs6000-tdep.c (rs6000_pop_frame): Update.
7208 * remote.c (init_remote_state): Update.
7209 (remote_prepare_to_store): Update.
7210 * remote-vx.c (vx_prepare_to_store): Update.
7211 * remote-sds.c (sds_fetch_registers): Update.
7212 (sds_prepare_to_store): Update.
7213 * remote-array.c: Update.
7214 * regcache.c (init_legacy_regcache_descr): Update.
7215 (init_regcache_descr): Update.
7216 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7217 (mips_o64_extract_return_value): Update.
7218 * irix5-nat.c (fetch_core_registers): Update.
7219 * irix4-nat.c (fetch_core_registers): Update.
7220 * i386-tdep.h: Update.
7221 * hppa-tdep.c (pa_do_registers_info): Update.
7222 (pa_do_strcat_registers_info): Update.
7223 * cris-tdep.c (cris_register_bytes_ok): Update.
7224 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7225 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7226 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7227 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7228 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7229 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7230 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7231 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7232 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7233 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7234 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7235 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7236 (REGISTER_BYTES_OK): Update.
7237 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7238 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7240 2003-05-16 Ian Lance Taylor <ian@airs.com>
7242 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7243 (vax_print_insn, print_insn_arg): Remove static functions.
7244 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7245 print_insn_vax from opcodes library.
7246 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7248 2003-05-15 Andrew Cagney <cagney@redhat.com>
7250 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7251 * target.h (memory_breakpoint_from_pc): Delete declaration.
7252 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7253 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7254 * monitor.c (monitor_insert_breakpoint): Use
7255 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7256 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7257 * gdbarch.h, gdbarch.c: Re-generate.
7258 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7259 (sparc_gdbarch_init): Set breakpoint_from_pc to
7260 sparc_breakpoint_from_pc.
7261 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7262 (BREAKPOINT_FROM_PC): Define.
7263 (sparc_breakpoint_from_pc): Declare.
7264 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7265 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7266 (BREAKPOINT_FROM_PC): Define.
7267 (BREAKPOINT): Delete macro.
7268 * target.h: Update comment.
7269 * s390-tdep.c (s390_gdbarch_init): Update comments.
7270 * remote.c: Update comments.
7271 * remote-mips.c: Update comments.
7272 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7273 * mem-break.c: Update comment.
7274 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7275 (ia64_memory_insert_breakpoint): Update.
7276 * config/sparc/tm-sparc.h: Update comment.
7277 * config/pa/tm-hppa64.h: Update comment.
7278 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7279 (rs6000_breakpoint_from_pc): Update.
7280 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7281 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7282 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7283 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7284 (mips_breakpoint_from_pc): Update.
7285 (mips_dump_tdep): Update.
7287 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7288 * minsyms.c (lookup_minimal_symbol): Inline
7289 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7291 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7292 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7293 * p-lang.c (pascal_printstr): Ditto.
7294 * objc-lang.c (objc_printstr): Ditto.
7295 * m2-lang.c (m2_printstr): Ditto.
7296 * jv-valprint.c (java_print_value_fields): Ditto.
7297 * f-lang.c (f_printstr): Ditto.
7298 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7299 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7300 for repeat_count_threshold.
7301 * Makefile.in (cp-valprint.o): Update dependencies.
7303 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7305 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7306 (examine_prologue): Support looking through leaf functions, knowing
7307 they start with mov r2,r12. Support skipping over indirect stores
7308 of the input registers. Upon hitting a non-nop branch instruction
7309 or predicated instruction, bail out by setting lim_pc to the current
7310 pc value in the loop. At the end, if the lim_pc value is still
7311 beyond our calculated value and we have trust_limit set,
7312 use the lim_pc value.
7314 2003-05-15 Andrew Cagney <cagney@redhat.com>
7316 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7317 generic_find_dummy_frame.
7318 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7319 (deprecated_generic_find_dummy_frame): Update.
7320 (deprecated_read_register_dummy): Update.
7321 * frame.c (deprecated_generic_get_saved_register): Update.
7323 2003-05-15 Theodore A. Roth <troth@openavr.org>
7325 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7326 (avr_gdbarch_init): Set breakpoint_from_pc method.
7328 2003-05-15 Andrew Cagney <cagney@redhat.com>
7330 * regcache.c (build_regcache): Set deprecated_register_valid
7332 (deprecated_grub_regcache_for_register_valid): Delete function.
7333 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7336 2003-05-15 David Carlton <carlton@bactrian.org>
7338 Committed by Elena Zannoni <ezannoni@redhat.com>
7339 * symtab.c (lookup_symbol_aux): Delete calls to
7340 lookup_symbol_aux_minsyms.
7341 (lookup_symbol_aux_minsyms): Comment out function and
7342 prototype. Delete lookup by mangled name.
7344 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7346 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7347 correctly indicate an empty stack and ``stack_allocated'' to the
7348 indicate the number of elements initially allocated.
7349 (dwarf_expr_grow_stack): Simplify method for computing new
7350 stack size. Don't loop infinitely if ``stack_len'' is zero.
7351 (execute_stack_op): Move ``ctx->in_reg'' initialization
7352 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7353 be used in conjuction with DW_OP_piece. Revise error message
7356 2003-05-14 Theodore A. Roth <troth@openavr.org>
7358 * MAINTAINERS: Update my email address.
7359 * avr-tdep.c: Ditto.
7361 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7363 * symtab.h (enum domain_enum): Rename from namespace_enum.
7364 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7365 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7366 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7367 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7368 TYPES_NAMESPACE, METHODS_NAMESPACE.
7369 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7370 (struct symbol, struct partial_symbol): Rename field
7371 'namespace_enum namespace' to 'domain_enum domain'.
7372 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7373 Delete old define kludge for namespace.
7375 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7376 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7377 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7378 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7379 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7380 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7381 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7382 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7383 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7384 occurrences of the above.
7386 2003-05-14 Ian Lance Taylor <ian@airs.com>
7388 * Makefile.in (install-only): Use $(SHELL) when running
7391 2003-05-13 Ian Lance Taylor <ian@airs.com>
7393 * MAINTAINERS (write after approval): Add myself.
7395 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7396 second and third arguments.
7397 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7398 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7400 2003-05-13 Andrew Cagney <cagney@redhat.com>
7402 * defs.h (store_address): Delete declaration.
7403 findvar.c (store_address): Delete function.
7404 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7405 store_unsigned_integer.
7406 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7407 * v850-tdep.c (v850_push_arguments): Ditto.
7408 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7409 * sh-tdep.c (sh64_get_saved_register): Ditto.
7410 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7411 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7412 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7413 (mips_get_saved_register): Ditto.
7414 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7415 (find_func_descr, ia64_push_arguments): Ditto.
7416 * i386-tdep.c (i386_push_arguments): Ditto.
7417 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7418 * frv-tdep.c (frv_push_arguments): Ditto.
7419 * frame.c (legacy_saved_regs_prev_register): Ditto.
7420 (deprecated_generic_get_saved_register): Ditto.
7421 * findvar.c (unsigned_address_to_pointer): Ditto.
7422 * dwarf2read.c (dwarf2_const_value): Ditto.
7423 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7424 * alpha-tdep.c (alpha_push_arguments): Ditto.
7426 2003-05-12 J. Brobecker <brobecker@gnat.com>
7428 * NEWS: Mention that the hppa-hpux port has been partially
7429 multiarched (32bit ABIT only, so far).
7431 2003-05-11 Andrew Cagney <cagney@redhat.com>
7433 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7434 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7435 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7436 sim/testsuite/sim/arm/misaligned2.ms, and
7437 sim/testsuite/sim/arm/misaligned3.ms.
7438 * disasm.h (struct ui_file): Add opaque struct declaration.
7439 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7440 * frame.h (struct ui_file): Ditto.
7442 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7444 * value.h: Pretty print.
7446 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7448 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7450 2003-05-08 Andrew Cagney <cagney@redhat.com>
7452 * regcache.h (max_register_size): Delete declaration.
7453 * regcache.c (max_register_size): Delete function.
7454 (struct regcache_descr): Delete field "max_register_size".
7455 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7456 registers fit in MAX_REGISTER_SIZE.
7457 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7458 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7459 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7460 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7461 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7462 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7463 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7464 * dve3900-rom.c, hppa-tdep.c: Ditto.
7466 2003-05-08 David Carlton <carlton@math.stanford.edu>
7468 * valops.c (push_word): Fix typo.
7470 2003-05-08 Andrew Cagney <cagney@redhat.com>
7472 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7473 * gdbarch.h: Re-generate.
7474 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7475 (legacy_max_register_raw_size): Delete declaration.
7476 * regcache.c (legacy_max_register_raw_size): Delete function.
7477 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7478 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7479 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7480 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7481 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7482 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7483 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7484 * findvar.c, dwarf2cfi.c: Ditto.
7486 2003-05-08 Andrew Cagney <cagney@redhat.com>
7488 * mips-tdep.c (read_signed_register): New function, moved to here
7490 (read_signed_register_pid): Ditto.
7491 * regcache.c (read_signed_register_pid): Delete function, moved to
7493 (read_signed_register): Ditto.
7494 * regcache.h (read_signed_register): Delete declaration.
7495 (read_signed_register_pid): Delete declaration.
7497 2003-05-08 Andrew Cagney <cagney@redhat.com>
7499 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7500 * gdbarch.h: Re-generate.
7501 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7502 (legacy_max_register_virtual_size): Delete declaration.
7503 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7504 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7505 * tracepoint.c (memrange_sortmerge): Ditto.
7506 * sparc-tdep.c (sparc_print_registers): Ditto.
7507 * regcache.c (legacy_max_register_virtual_size): Delete function.
7509 2002-05-08 J. Brobecker <brobecker@gnat.com>
7511 * fork-child.c (escape_bang_in_quoted_argument): New function.
7512 (fork_inferior): Escape '!' characters in quoted arguments
7515 2003-05-08 J. Brobecker <brobecker@gnat.com>
7517 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7518 the language of the CU is not currently supported by GDB.
7520 2003-05-08 J. Brobecker <brobecker@gnat.com>
7522 * defs.h (language): Add language_minimal enum value.
7523 * c-lang.c (minimal_language_defn): New language definition.
7524 (_initialize_c_language): Add the new minimal language to the list
7525 of languages known to GDB.
7527 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7529 * frame.c (get_frame_type): Don't attempt to lazily initialize
7530 frame's unwinder for legacy frames.
7532 2003-05-07 Andrew Cagney <cagney@redhat.com>
7534 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7535 and "regcache" parameters.
7536 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7538 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7540 * dwarf2read.c (dwarf_decode_lines): Only use output of
7541 check_cu_functions() when calling record_line(). Do not update
7542 the current address.
7544 2003-05-07 Andrew Cagney <cagney@redhat.com>
7546 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7549 2003-05-07 Jim Blandy <jimb@redhat.com>
7551 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7552 'maint info symtabs' and 'maint info psymtabs'.
7553 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7554 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7555 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7556 Declarations updated.
7557 * maint.c (maintenance_list_command): Delete.
7558 (_initialize_maint_cmds): Update calls to add_cmd.
7559 * gdbcmd.h (maintenancelistlist): Delete declaration.
7560 * cli/cli-cmds.c (maintenancelistlist): Delete.
7561 (init_cmd_lists): Don't initialize it.
7562 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7564 2003-05-07 Andrew Cagney <cagney@redhat.com>
7566 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7568 (d10v_print_registers_info): Update.
7569 (d10v_dmap_register, d10v_imap_register): Delete functions.
7570 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7571 and "imap_register".
7572 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7573 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7574 * arch-utils.c (generic_remote_translate_xfer_address): Add
7575 "regcache" and "gdbarch" parameters.
7576 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7577 parameter. Change class to multi-arch.
7578 * gdbarch.h, gdbarch.c: Re-generate.
7579 * remote.c (remote_xfer_memory): Use
7580 gdbarch_remote_translate_xfer_address.
7582 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7584 * infrun.c (prev_pc): Move declaration ahead of proceed().
7585 (proceed): Refresh prev_pc value before resuming.
7586 (stop_stepping): Remove code to refresh prev_pc.
7588 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7590 * nto-tdep.c: Removed stray comment.
7592 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7594 * i386-nto-tdep.c: Fix old K&R function definitions.
7595 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7596 Also change add_show_from_set() call to add_setshow_cmd().
7597 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7599 2003-05-05 Andrew Cagney <cagney@redhat.com>
7601 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7602 (fprint_dummy_frames): New function.
7603 (maintenance_print_dummy_frames): New function.
7604 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7605 * frame.c (fprint_frame_id): Make global.
7606 * frame.h (fprint_frame_id): Declare.
7607 * Makefile.in (dummy-frame.o): Update dependencies.
7609 2003-05-05 Andrew Cagney <cagney@redhat.com>
7611 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7612 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7613 SIZEOF_CALL_DUMMY_WORDS.
7614 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7615 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7616 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7617 CALL_DUMMY_BREAKPOINT_OFFSET.
7618 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7619 CALL_DUMMY_START_OFFSET.
7620 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7621 * gdbarch.h, gdbarch.c: Re-generate.
7622 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7623 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7624 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7625 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7626 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7627 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7628 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7629 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7630 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7631 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7632 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7633 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7634 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7635 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7636 * config/sparc/tm-sparc.h: Update.
7638 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7640 * configure.tgt: Add i[3456]86-*-nto*.
7641 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7642 * nto-tdep.c: New file. Neutrino target support routines.
7643 * nto-tdep.h: New file. Neutrino target header.
7644 * config/tm-qnxnto.h: New file.
7645 * config/i386/i386nto.mt: New file.
7646 * config/i386/tm-i386nto.h: New file.
7648 2003-05-04 Andrew Cagney <cagney@redhat.com>
7650 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7651 (load_infrun_state): Ditto.
7652 (struct thread_info): Drop "prev_func_name" field.
7653 * thread.c (load_infrun_state): Update.
7654 (save_infrun_state): Update.
7655 * infrun.c (prev_func_name): Delete variable.
7656 (init_wait_for_inferior): Do not clear prev_func_name.
7657 (stop_stepping, keep_going, context_switch): Do not swap
7659 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7660 instead of PC_IN_SIGTRAMP.
7662 2003-05-04 Andrew Cagney <cagney@redhat.com>
7664 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7665 REGISTER_BYTE with register_offset_hack.
7666 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7667 that REGISTER_BYTE is consistent with the regcache.
7668 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7669 * gdbarch.h, gdbarch.c: Regenerate.
7671 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7673 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7674 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7676 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7678 2003-05-03 J. Brobecker <brobecker@gnat.com>
7680 From Thierry Schneider <tpschneider1@yahoo.com>
7681 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7682 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7683 (mi-cmd-symbol.o): Add rule.
7685 2003-05-03 Andrew Cagney <cagney@redhat.com>
7687 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7688 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7689 * gdbarch.h, gdbarch.c: Re-generate.
7690 * d10v-tdep.c (d10v_push_dummy_code): New function.
7691 (d10v_gdbarch_init): Set push_dummy_code.
7692 * infcall.c (legacy_push_dummy_code): New function.
7693 (generic_push_dummy_code): New function.
7694 (push_dummy_code): New function.
7695 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7696 instead of dummy_addr, to push_dummy_call. Move call to
7697 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7699 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7701 2003-05-03 Andrew Cagney <cagney@redhat.com>
7703 * disasm.h (print_insn): Declare.
7704 * disasm.c (init_gdb_disassemble_info): New function.
7705 (gdb_disassembly): Call init_gdb_disassemble_info.
7706 (gdb_print_insn): New function.
7707 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7708 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7709 * mcore-tdep.c: Include "disasm.h"
7710 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7711 * d10v-tdep.c: Include "disasm.h".
7712 (display_trace): Call gdb_print_insn, instead of print_insn.
7713 (print_insn): Delete function.
7714 * printcmd.c: Include "disasm.h".
7715 (print_insn): Delete function.
7716 (print_formatted): Call gdb_print_insn, instead of print_insn.
7717 * Makefile.in (printcmd.o): Update dependencies.
7718 (mcore-tdep.o, d10v-tdep.o): Ditto.
7720 2003-05-02 Andrew Cagney <cagney@redhat.com>
7722 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7723 PC_REGNUM, re-indent.
7724 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7725 PC_REGNUM isn't set.
7727 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7728 * gdbarch.h, gdbarch.c: Re-generate.
7729 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7730 register_virtual_size, pc_regnum, or register_bytes.
7731 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7732 (d10v_register_type): Use D10V_PC_REGNUM.
7733 (d10v_print_registers_info, d10v_read_pc): Ditto.
7734 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7735 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7737 2003-05-02 David Carlton <carlton@bactrian.org>
7739 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7740 the name with mstrsave.
7742 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7744 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7745 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7746 (host_charset_name, target_charset_name): New vars for use by
7748 (host_charset_enum, target_charset_enum): New enums for set/show
7750 (set_charset_sfunc, set_host_charset_sfunc,
7751 set_target_charset_sfunc): New functions.
7752 (set_host_charset, set_target_charset): Make static.
7753 (list_charsets, set_host_charset_command,
7754 set_target_charset_command): Delete functions.
7755 (show_charset_command): Rewrite as....
7756 (show_charset): Hook this up with the set/show command mechanism.
7757 (_initialize_charset): Change names of charsets to match the
7758 set/show enums. Use host_charset_name and target_charset_name.
7759 Use set/show mechanism for charset, host-charset, target-charset
7760 commands. Do not make 'show host-charset' and 'show
7761 target-charset' be aliases of 'show charset'.
7763 * charset.h (set_host_charset, set_target_charset): Don't export,
7764 they are not used outside the file.
7766 2003-05-01 Andrew Cagney <cagney@redhat.com>
7768 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7769 (gdb_disassembly): Make "di" non static, always initialize and
7770 cleanup. Always use dis_asm_read_memory.
7771 (gdb_dis_asm_read_memory): Delete function.
7773 2003-05-01 Andrew Cagney <cagney@redhat.com>
7775 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7776 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7778 2003-04-30 Andrew Cagney <cagney@redhat.com>
7780 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7781 "tm_print_insn_info".
7782 (TARGET_PRINT_INSN_INFO): Delete macro.
7783 (dis_asm_read_memory): Delete function declaration.
7784 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7785 (tm_print_insn_info): Delete variable definition.
7786 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7787 * gdbarch.h, gdbarch.c: Re-generate.
7788 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7789 "deprecated_tm_print_insn_info".
7790 * mcore-tdep.c (mcore_dump_insn): Ditto.
7791 * mips-tdep.c (mips_gdbarch_init): Ditto.
7792 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7793 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7794 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7795 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7796 instead of TARGET_PRINT_INSN_INFO, add comment.
7797 * s390-tdep.c (s390_get_frame_info): Instead of
7798 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7799 (s390_check_function_end, s390_is_sigreturn): Ditto.
7800 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7801 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7802 * disasm.c: Include "gdbcore.h".
7803 (_initialize_disasm): New function, initialize
7804 "deprecated_tm_print_insn_info".
7805 (deprecated_tm_print_insn_info): New variable.
7806 (dis_asm_read_memory): Moved from "corefile.c", made static.
7807 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7808 * Makefile.in (disasm.o): Update dependencies.
7810 2003-04-30 Andrew Cagney <cagney@redhat.com>
7812 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7814 2003-04-29 Adam Fedor <fedor@gnu.org>
7816 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7817 * infcall.c (find_function_addr): Make non-static.
7818 * infcall.h (find_function_addr): Declare.
7819 * Makefile.in (eval.o): Update dependencies.
7821 2003-04-28 Adam Fedor <fedor@gnu.org>
7823 * symtab.c (symbol_find_demangled_name): Check for and demangle
7825 (symbol_init_demangled_name): Init for language_objc as well.
7827 2003-04-28 Andrew Cagney <cagney@redhat.com>
7829 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7830 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7831 * gdbarch.h, gdbarch.c: Re-generate.
7832 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7833 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7834 * inferior.h (deprecated_read_fp): Rename read_fp.
7835 (generic_target_read_fp): Delete declaration.
7836 * regcache.c (generic_target_read_fp): Delete function.
7837 (deprecated_read_fp): Replace read_fp, use
7838 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7839 * d10v-tdep.c (d10v_read_fp): Delete function.
7840 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7842 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7843 deprecated_target_read_fp to generic_target_read_fp.
7844 * sh-tdep.c (sh_gdbarch_init): Ditto.
7845 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7846 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7847 * frv-tdep.c (frv_gdbarch_init): Ditto.
7849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7850 deprecated_fp_regnum.
7851 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7852 * vax-tdep.c (vax_gdbarch_init): Ditto.
7853 * v850-tdep.c (v850_gdbarch_init): Ditto.
7854 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7855 * sh-tdep.c (sh_gdbarch_init): Ditto.
7856 * s390-tdep.c (s390_gdbarch_init): Ditto.
7857 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7858 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7859 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7860 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7862 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7863 * i386-tdep.c (i386_gdbarch_init): Ditto.
7864 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7865 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7866 * frv-tdep.c (frv_gdbarch_init): Ditto.
7867 * cris-tdep.c (cris_gdbarch_init): Ditto.
7868 * avr-tdep.c (avr_gdbarch_init): Ditto.
7869 * arm-tdep.c (arm_gdbarch_init): Ditto.
7870 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7872 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7873 * v850-tdep.c (v850_gdbarch_init): Ditto.
7874 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7875 * sh-tdep.c (sh_gdbarch_init): Ditto.
7876 * s390-tdep.c (s390_gdbarch_init): Ditto.
7877 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7878 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7879 * mips-tdep.c (mips_gdbarch_init): Ditto.
7880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7881 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7882 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7883 * frv-tdep.c (frv_gdbarch_init): Ditto.
7884 * avr-tdep.c (avr_gdbarch_init): Ditto.
7885 * arm-tdep.c (arm_gdbarch_init): Ditto.
7887 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7888 DEPRECATED_FP_REGNUM.
7889 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7890 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7891 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7892 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7893 (sparc32_register_virtual_type): Ditto.
7894 * sh-tdep.c (sh64_frame_chain): Ditto.
7895 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7896 (sh_nofp_frame_init_saved_regs): Ditto.
7897 (sh64_nofp_frame_init_saved_regs): Ditto.
7898 (sh_fp_frame_init_saved_regs): Ditto.
7899 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7900 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7901 * procfs.c (procfs_fetch_registers): Ditto.
7902 (procfs_store_registers): Ditto.
7903 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7904 (store_inferior_registers, fetch_core_registers): Ditto.
7905 (fetch_kcore_registers, clear_regs): Ditto.
7906 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7907 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7908 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7909 * nlm/i386.c (do_status): Ditto.
7910 * mipsv4-nat.c (supply_gregset): Ditto.
7911 * mips-tdep.c: Ditto for comments.
7912 * mips-nat.c (fetch_inferior_registers): Ditto.
7913 (store_inferior_registers, fetch_core_registers): Ditto.
7914 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7915 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7916 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7917 (i386_do_pop_frame, i386_register_type): Ditto.
7918 * hppa-tdep.c (hppa_frame_chain): Ditto.
7919 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7920 (hppa_pop_frame, hppa_read_fp): Ditto.
7921 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7922 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7923 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7924 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7925 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7926 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7927 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7928 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7929 * blockframe.c: Ditto for comments.
7930 * arch-utils.h: Ditto for comments.
7931 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7932 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7933 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7934 * alpha-tdep.h: Ditto for comments.
7935 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7936 (alpha_cannot_store_register): Ditto.
7937 (alpha_push_dummy_frame): Ditto.
7938 * alpha-nat.c (supply_gregset): Ditto.
7940 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7941 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7942 * config/sparc/tm-sparc.h: Update comment.
7944 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7945 deprecated_read_fp instead of TARGET_READ_FP.
7946 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7947 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7948 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7949 deprecated_read_fp instead of read_fp.
7950 * s390-tdep.c (s390_push_arguments): Ditto.
7951 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7952 * frame.h: Ditto in comments.
7953 * frame.c (legacy_get_prev_frame): Ditto.
7954 * dummy-frame.c (dummy_frame_this_id): Ditto.
7955 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7957 2003-04-28 Andrew Cagney <cagney@redhat.com>
7959 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7960 * gdbarch.h, gdbarch.c: Re-generate.
7961 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7962 * vax-tdep.c (_initialize_vax_tdep): Update.
7963 * v850-tdep.c (_initialize_v850_tdep): Update.
7964 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7965 * s390-tdep.c (_initialize_s390_tdep): Update.
7966 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7967 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7968 * mips-tdep.c (_initialize_mips_tdep): Update.
7969 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7970 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7971 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7972 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7973 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7974 * frv-tdep.c (_initialize_frv_tdep): Update.
7975 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7976 (_initialize_cris_tdep): Update.
7977 * arch-utils.c (legacy_print_insn): Update.
7978 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7980 2003-04-26 Adam Fedor <fedor@gnu.org>
7982 * linespec.c (decode_objc): New function to decode ObjC calls
7983 (decode_line_1): Check for ObjC calls (using decode_objc)
7984 * Makefile (linespec.o): Update dependencies.
7986 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7988 * breakpoint.h (struct breakpoint_ops): New.
7989 (struct breakpoint): Add ops member.
7991 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7992 (mention): Use new breakpoint ops member.
7993 (set_raw_breakpoint): Initialize ops field to NULL.
7994 (print_exception_catchpoint, print_one_exception_catchpoint)
7995 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7996 (gnu_v3_exception_catchpoint_ops): New.
7997 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7999 2003-04-25 Adam Fedor <fedor@gnu.org>
8001 * Makefile.in (COMMON_OBS): Add objc-lang.o
8003 2003-04-25 Andrew Cagney <cagney@redhat.com>
8005 * d10v-tdep.c (print_insn): Delete function.
8006 (display_trace): Use TARGET_PRINT_INSN.
8007 (_initialize_d10v_tdep): Do not set tm_print_insn.
8008 (d10v_gdbarch_init): Set print_insn.
8010 2003-04-25 Andrew Cagney <cagney@redhat.com>
8012 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8013 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8014 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8015 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8016 (nr_dmap_regs, a0_regnum): ... new functions.
8017 (d10v_print_registers_info): Use a0_regnum, use register_size.
8018 (d10v_register_byte): Delete function.
8019 (d10v_register_raw_size): Delete function.
8020 (d10v_register_type): Use a0_regnum.
8021 (d10v_print_registers_info): Use a0_regnum.
8022 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8023 (d10v_gdbarch_init): Do not set register_byte or
8024 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8025 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8027 (trace_command): Use XCALLOC.
8028 (print_insn): Delete reference to tm_print_insn.
8029 (saved_regs_unwinder): Use store_unsigned_integer instead of
8031 * frame.h (FRAME_OBSTACK_CALLOC): Define
8033 2003-04-25 David Carlton <carlton@bactrian.org>
8035 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8037 2003-04-24 Adam Fedor <fedor@gnu.org>
8039 * objc-lang.c: Include "valprint.h"
8040 * Makefile.in (objc-lang.o): Update dependencies.
8042 2003-04-24 Adam Fedor <fedor@gnu.org>
8044 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8045 architecture dependant compilation and mark as unimplemented
8046 (until they get put in the gdbarch vector).
8048 2003-04-23 David Carlton <carlton@bactrian.org>
8050 * cp-support.c (cp_find_first_component): Accept 'operator' in
8053 2003-04-23 Andrew Cagney <cagney@redhat.com>
8055 * infcall.c (call_function_by_hand): Eliminate redundant
8056 indentation. Move "saved_async" and "old_cleanups" to where they
8059 2003-04-23 Andrew Cagney <cagney@redhat.com>
8061 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8062 and "buffer". Move the "name" code to where it is needed.
8064 2003-04-23 Andrew Cagney <cagney@redhat.com>
8066 * infcall.c (call_function_by_hand): Move variables "start_sp",
8067 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8068 code to ON_STACK switch branch.
8070 2003-04-23 Andrew Cagney <cagney@redhat.com>
8072 * infcall.c (call_function_by_hand): Make declaration of "i",
8073 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8076 2003-04-23 Andrew Cagney <cagney@redhat.com>
8078 * infcall.c (call_function_by_hand): Delete variable
8079 "n_method_args". Localize "param_type"'s declaration to the loop
8080 that it is used. Reinstate code assigning to said variable -
8081 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8082 Rationalize code using "param_type".
8084 2003-04-22 Andrew Cagney <cagney@redhat.com>
8086 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8087 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8088 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8089 to DEPRECATED_PUSH_RETURN_ADDRESS.
8091 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8093 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8094 on the DWARF2 register number prior to fetching a register.
8096 2003-04-22 J. Brobecker <brobecker@gnat.com>
8098 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8099 Update all the tests using SOFT_FLOAT considering the fact that
8100 this macro was always set to 0.
8101 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8102 considering the fact that this macro was always set to 0.
8103 * hppa-tdep.h (hppa_store_return_value): Likewise.
8104 (hppa_extract_return_value): Likewise.
8106 2003-04-22 J. Brobecker <brobecker@gnat.com>
8108 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8109 the hppa-pro target only.
8111 2003-04-21 J. Brobecker <brobecker@gnat.com>
8113 Ongoing multi-arch conversion effort for HP/UX:
8114 * config/pa/tm-hppa.h: Move all macro that are no longer
8115 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8116 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8118 2003-04-21 J. Brobecker <brobecker@gnat.com>
8120 * config/pa/tm-hppa.h: Obsolete a section that was only used
8123 2003-04-21 J. Brobecker <brobecker@gnat.com>
8125 Ongoing multi-arch conversion for HP/UX.
8126 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8127 if already defined (allows hppa64 to stay non-multiarched for now).
8128 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8130 2003-04-21 Andrew Cagney <cagney@redhat.com>
8132 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8134 2003-04-21 Andrew Cagney <cagney@redhat.com>
8136 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8137 "i386_num_mmx_regs".
8139 2003-04-21 Andrew Cagney <cagney@redhat.com>
8141 * infcall.c: New file.
8142 * infcall.h: New file.
8143 * valarith.c: Include "infcall.h".
8144 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8145 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8146 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8147 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8148 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8149 (SFILES): Add "infcall.c"
8150 (COMMON_OBS): Add "infcall.o".
8151 (infcall.o): Specify dependencies.
8152 * value.h (call_function_by_hand): Delete declaration.
8153 * inferior.h (run_stack_dummy): Delete declaration.
8154 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8155 (run_stack_dummy): Move to "infcall.c", merged into
8156 call_function_by_hand.
8157 * valops.c (call_function_by_hand): Moved to "infcall.c".
8158 (find_function_addr, value_arg_coerce): Ditto.
8159 (unwindonsignal_p, coerce_float_to_double): Ditto.
8160 (_initialize_valops): Move "set/show coerce-float-to-double", and
8161 "set/show unwindonsignal" commands to "infcall.c".
8162 * v850-tdep.c, target.h: Update comments.
8163 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8164 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8165 (sh64_init_extra_frame_info): Update comments.
8166 * mn10300-tdep.c: Update comments.
8167 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8168 * config/sparc/tm-sparc.h: Update comments.
8169 * breakpoint.h: Update comments.
8170 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8171 * arm-tdep.c: Update comment.
8173 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8175 * i386-tdep.c (i386_num_register_names): New variable.
8176 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8177 (MM0_REGNUM): Remove redundant parentheses in define.
8178 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8179 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8180 i386_mxcsr_regnum_p): Remove redundant parentheses.
8181 (i386_register_name): Use i386_num_register_names.
8183 * i386-tdep.c (i386_extract_return_value,
8184 i386_store_return_value): Correct check for availability of
8185 floating-point registers.
8187 * i386-tdep.c (i386_frame_num_args): Remove function.
8188 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8190 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8191 mmx_regnum_to_fp_regnum. Adjust all callers.
8193 * i386-tdep.c (i386_get_longjmp_target): Use
8194 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8195 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8198 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8200 * core-regset.c: Update comments to reflect reality. Re-order
8202 (fetch_core_registers): Use switch instead of if. Remove
8203 redundant prototype.
8205 2003-04-18 Jim Blandy <jimb@redhat.com>
8207 * s390-tdep.c (s390_frame_align): New function.
8208 (s390_gdbarch_init): Register it with the gdbarch object.
8210 2003-04-17 Richard Henderson <rth@redhat.com>
8212 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8214 2003-04-17 Michael Snyder <msnyder@redhat.com>
8215 Karen Bennet <bennet@redhat.com>
8217 Committed by Elena Zannoni <ezannoni@redhat.com>
8218 * gdb_gcore.sh: New script to create a core dump of a process.
8220 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8222 * values.c (value_being_returned): Don't fetch the return
8223 value if the return type is void.
8225 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8227 * thread-db.c: Reindented.
8229 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8231 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8232 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8259 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8261 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8262 the size of ``long double'' to 16, instead of 8.
8264 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8266 * i386-linux-nat.c: Add some whitespace to make things more
8268 (fetch_register, store_register, fetch_inferior_registers,
8269 store_inferior_registers): Get rid of assignment in if-statement.
8270 (store_register): Fix typo in error message.
8272 2003-04-16 Andrew Cagney <cagney@redhat.com>
8274 * utils.c (xmmalloc): Always allocate something, matches
8275 libiberty/xmalloc's semantics.
8276 (xmrealloc, xmcalloc): Ditto.
8278 2003-04-16 Andrew Cagney <cagney@redhat.com>
8280 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8282 (get_frame_type): Initialize unwind and type when needed.
8283 (get_frame_id, frame_register_unwind): Ditto.
8285 2003-04-16 Andrew Cagney <cagney@redhat.com>
8287 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8289 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8290 * sparcl-stub.c: Obsolete file.
8291 * config/sparc/tm-sparclet.h: Obsolete file.
8292 * sparclet-stub.c: Obsolete file.
8293 * sparclet-rom.c: Obsolete file.
8294 * sparcl-tdep.c: Obsolete file.
8295 * config/sparc/tm-sparclite.h: Obsolete file.
8296 * config/sparc/sparclite.mt: Obsolete file.
8297 * config/sparc/sparclet.mt: Obsolete file.
8298 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8299 sparc86x-*-* obsolete.
8301 2003-04-15 David Carlton <carlton@math.stanford.edu>
8303 * Makefile.in (SFILES): Add cp-namespace.c.
8304 (COMMON_OBS): Add cp-namespace.o.
8305 (block.o): Depend on gdb_obstack_h and cp_support_h.
8306 (buildsym.o): Depend on cp_support_h.
8307 (cp-namespace.o): New.
8308 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8309 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8310 (dwarf2read.o): Depend on cp_support_h.
8311 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8312 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8313 processing_current_namespace.
8314 (read_namespace): Update processing_current_namespace; check for
8315 anonymous namespaces.
8316 (dwarf2_name): New function.
8317 (dwarf2_extension): Ditto.
8318 * cp-support.h: Update copyright, contributors.
8319 Add inclusion guards.
8320 Add opaque declaration for structs obstack, block, symbol.
8321 (struct using_direct): New struct.
8322 Add declarations for cp_find_first_component,
8323 cp_entire_prefix_len, processing_has_namespace_info,
8324 processing_current_namespace, cp_is_anonymous,
8325 cp_add_using_directive, cp_initialize_namespace,
8326 cp_finalize_namespace, cp_set_block_scope,
8327 cp_scan_for_anonymous_namespaces.
8328 * cp-namespace.c: New file.
8329 * cp-support.c: Update copyright.
8330 Include ctype.h, gdb_assert.h, gdbcmd.h.
8331 New variable maint_cplus_cmd_list.
8332 (cp_find_first_component): New function.
8333 (cp_entire_prefix_len, maint_cplus_command)
8334 (first_component_command, _initialize_cp_support): Ditto.
8335 * buildsym.c: Include cp-support.h.
8336 New variable using_list.
8337 (add_symbol_to_list): Check for anonymous namespaces.
8338 (finish_block): Set block's scope.
8339 (start_symtab): Initialize C++ namespace support.
8340 (end_symtab): Finalize C++ namespace support.
8341 * block.h: Add opaque declarations for structs
8342 block_namespace_info, using_direct, and obstack.
8343 Add declarations for block_set_scope and block_set_using.
8344 (struct block): Add 'language_specific' member.
8345 (BLOCK_NAMESPACE): New macro.
8346 * block.c: Include gdb_obstack.h and cp-support.h.
8347 (struct block_namespace_info): New struct.
8348 (block_set_scope): New function.
8349 (block_set_using, block_initialize_namespace): Ditto.
8351 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8353 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8354 (locate_base): Return early if there aren't any link map offsets.
8355 (svr4_solib_create_inferior_hook): Warn if shared library support
8358 2003-04-14 David Carlton <carlton@math.stanford.edu>
8360 * symtab.c (symbol_set_names): Add prefix when storing Java names
8361 in hash table. Fix for PR java/1039.
8363 2003-04-14 David Carlton <carlton@math.stanford.edu>
8365 * symtab.c (symbol_set_names): Rename 'name' arg to
8366 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8367 * symtab.h: Change 'name' argument in declaration of
8368 symbol_set_names to 'linkage_name'.
8369 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8371 2003-04-14 Andrew Cagney <cagney@redhat.com>
8373 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8374 return the fully sign-extended register value.
8375 (get_frame_pointer): Ditto.
8376 (mips_pop_frame): Initialize "proc_desc" after checking for a
8379 2003-04-14 Andrew Cagney <cagney@redhat.com>
8381 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8382 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8383 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8384 (mips_push_register): Delete function.
8385 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8388 2003-04-14 Jim Blandy <jimb@redhat.com>
8390 * symmisc.c: #include "gdb_regex.h".
8391 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8393 * maint.c (maintenance_list_command): New function.
8394 (_initialize_maint_cmds): Register the above as commands.
8395 * symtab.h (maintenance_list_symtabs,
8396 maintenance_list_psymtabs): New declarations.
8397 * cli/cli-cmds.c (maintenancelistlist): New variable.
8398 (init_cmd_lists): Initialize it.
8399 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8400 * gdbcmd.h (maintenancelistlist): New declaration.
8401 * Makefile.in (symmisc.o): Update dependencies.
8403 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8405 * s390-nat.c: Include asm/types.h for addr_t.
8407 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8409 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8410 actually incoming type.
8412 2003-04-13 Andrew Cagney <cagney@redhat.com>
8414 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8415 get_next_frame and get_frame_saved_regs.
8417 2003-04-13 Andrew Cagney <cagney@redhat.com>
8419 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8420 of gdbarch_num_regs.
8422 2003-04-13 Andrew Cagney <cagney@redhat.com>
8424 * frame.h: Mention what replaced what in "struct frame_info".
8425 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8426 deprecated_update_frame_base_hack and
8427 deprecated_update_frame_pc_hack.
8428 * hppa-tdep.c: Ditto.
8430 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8432 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8433 to read_reg and update its comment. Remove regnum member.
8434 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8435 Don't call read_reg when setting in_reg. Call read_reg to get
8436 the frame base if it's in a register. Return the register number
8437 on the stack instead of in the context. Remove extra arguments
8439 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8440 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8441 the register number on the expression stack.
8442 (needs_frame_read_reg): Remove extra arguments.
8444 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8446 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8448 (execute_stack_op): All callers updated.
8449 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8450 * dwarf2loc.c (find_location_expression): New function.
8451 (dwarf_expr_frame_base): Call it.
8452 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8453 (dwarf2_tracepoint_var_ref): New function, broken out from
8454 locexpr_tracepoint_var_ref.
8455 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8457 (loclist_read_variable, loclist_read_needs_frame): New functions.
8458 (loclist_describe_location, loclist_tracepoint_var_ref): New
8460 (dwarf2_loclist_funcs): New struct location_funcs.
8461 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8462 (struct dwarf2_locexpr_baton): Add comments.
8463 (dwarf2_loclist_funcs): New extern.
8464 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8465 base_address and base_known.
8466 (dwarf_loc_buffer): New variable.
8467 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8468 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8469 (dwarf2_has_info): Initialize dwarf_loc_offset.
8470 (dwarf2_build_psymtabs): Read in .debug_loc.
8471 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8473 (psymtab_to_symtab_1): Likewise. Move base address calculation
8475 (dwarf2_get_pc_bounds): ... here. Use the base address from
8477 (dwarf2_symbol_mark_computed): Handle location lists.
8479 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8481 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8482 if the linkage name demangled successfully.
8484 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8486 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8487 disassmbly_flavour): Removed.
8489 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8491 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8493 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8495 2003-04-12 Andrew Cagney <cagney@redhat.com>
8497 * frame.h (struct frame_info): Move definition from here ...
8498 * frame.c (struct frame_info): ... to here.
8500 2003-04-12 Andrew Cagney <cagney@redhat.com>
8502 * gdbthread.h (save_infrun_state): Delete parameter
8504 (struct thread_info): Delete field "prev_func_start".
8505 (load_infrun_state): Ditto.
8506 * thread.c (load_infrun_state, save_infrun_state): Update.
8507 * infrun.c (prev_func_start): Delete variable.
8508 (context_switch, init_wait_for_inferior): Update.
8509 (stop_stepping, keep_going): Update.
8511 2003-04-12 Andrew Cagney <cagney@redhat.com>
8513 * gdbarch.sh: Add missing opaque declarations.
8514 * gdbarch.h: Regnerate.
8515 * symtab.h: Add missing opaque declarations.
8516 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8517 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8518 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8519 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8520 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8521 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8522 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8523 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8524 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8525 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8526 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8527 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8528 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8530 2003-04-11 Andrew Cagney <cagney@redhat.com>
8532 * frame.c (get_frame_id): Return this frame's "id".
8533 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8535 (legacy_saved_regs_this_id): Replace function body with
8537 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8538 FRAME_OBSTACK_ZALLOC.
8539 (create_new_frame): Mark the frame ID as valid.
8541 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8543 * Makefile.in (libbfd_h): Added missing setting.
8544 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8545 according to the selected ABI.
8547 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8549 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8551 2003-04-11 Andrew Cagney <cagney@redhat.com>
8553 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8554 SAVED_PC_AFTER_CALL.
8555 * gdbarch.h, gdbarch.c: Regenerate.
8556 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8557 * x86-64-tdep.c (x86_64_init_abi): Update.
8558 * vax-tdep.c (vax_gdbarch_init): Update.
8559 * v850-tdep.c (v850_gdbarch_init): Update.
8560 * sparc-tdep.c (sparc_gdbarch_init): Update.
8561 * sh-tdep.c (sh_gdbarch_init): Update.
8562 * s390-tdep.c (s390_gdbarch_init): Update.
8563 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8564 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8565 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8566 * mips-tdep.c (mips_gdbarch_init): Update.
8567 * mcore-tdep.c (mcore_gdbarch_init): Update.
8568 * m68k-tdep.c (m68k_gdbarch_init): Update.
8569 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8570 * ia64-tdep.c (ia64_gdbarch_init): Update.
8571 (ia64_saved_pc_after_call): Update declaration.
8572 * i386ly-tdep.c (i386lynx_init_abi): Update.
8573 * i386-tdep.c (i386_gdbarch_init): Update.
8574 * hppa-tdep.c (hppa_gdbarch_init): Update.
8575 * h8300-tdep.c (h8300_gdbarch_init): Update.
8576 * frv-tdep.c (frv_gdbarch_init): Update.
8577 * cris-tdep.c (cris_gdbarch_init): Update.
8578 * avr-tdep.c (avr_gdbarch_init): Update.
8579 * arm-tdep.c (arm_gdbarch_init): Update.
8580 * alpha-tdep.c (alpha_gdbarch_init): Update.
8581 * ns32knbsd-nat.c (frame_num_args): Update.
8582 * ns32k-tdep.c (umax_frame_num_args): Update.
8583 * mips-tdep.c (mips_init_frame_pc_first): Update.
8584 * infrun.c (step_over_function): Update.
8585 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8586 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8587 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8588 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8589 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8590 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8591 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8592 * arch-utils.c (init_frame_pc_default): Update.
8593 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8594 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8597 2003-04-11 Andrew Cagney <cagney@redhat.com>
8599 * i387-tdep.c: Update copyright.
8600 (i387_to_double): Delete function.
8601 (double_to_i387): Delete function.
8603 2003-04-10 Andrew Cagney <cagney@redhat.com>
8605 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8606 frame's function's address. Simplify.
8607 (d10v_frame_unwind_cache): Check that the frame's function is
8610 2003-04-10 Jim Blandy <jimb@redhat.com>
8612 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8613 call to set_gdbarch_deprecated_push_arguments.
8615 2003-04-10 Andrew Cagney <cagney@redhat.com>
8617 * frame.c (fprint_frame_id): New function.
8618 (fprint_frame_type, fprint_frame): New function.
8619 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8620 (create_sentinel_frame, get_frame_id): Ditto.
8621 (frame_id_p, frame_id_eq): Ditto.
8622 (frame_id_inner, create_new_frame): Ditto.
8623 (legacy_get_prev_frame, get_prev_frame): Ditto.
8624 (deprecated_update_frame_pc_hack): Ditto.
8625 (frame_register_unwind): Ditto.
8626 (deprecated_update_frame_base_hack): Ditto.
8628 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8630 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8631 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8632 frame_chain function.
8633 * Makefile.in: Add dependencies due to above change.
8635 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8637 * blockframe.c (legacy_frame_chain_valid): Move call to
8638 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8641 2003-04-09 Andrew Cagney <cagney@redhat.com>
8643 * frame.h (struct frame_id): Replace "pc" and "base" with
8644 "stack_addr" and "code_addr". Update comments.
8645 (frame_id_build): Update parameter names and comment.
8646 (struct frame_info): Replace "id_p" and "id" with "this_id".
8647 * dummy-frame.c (dummy_frame_this_id): Update.
8648 * breakpoint.c (print_one_breakpoint): Update.
8649 * frame.c (get_frame_id): Update.
8650 (get_frame_base, frame_id_build): Update.
8651 (create_sentinel_frame, legacy_get_prev_frame): Update.
8652 (deprecated_update_frame_base_hack): Update.
8653 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8654 (frame_id_inner): Ditto.
8656 2003-04-09 Andrew Cagney <cagney@redhat.com>
8658 * defs.h (gdb_print_host_address): Make "addr" parameter a
8660 * utils.c (gdb_print_host_address): Update.
8662 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8664 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8665 register number for R0 is 0.
8667 2003-04-09 J. Brobecker <brobecker@gnat.com>
8669 * frame.h (struct gdbarch): Add opaque structure definition
8670 to avoid a compilation warning on LynxOS 4.0.
8672 2003-04-09 Andrew Cagney <cagney@redhat.com>
8674 * frame.h (struct frame_info): Delete field "pc". Replace
8675 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8677 * frame.c (frame_pc_unwind): Update.
8678 (create_sentinel_frame): Do not set "pc".
8679 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8680 (get_frame_pc): Call frame_pc_unwind.
8681 (deprecated_update_frame_pc_hack): Update.
8682 (create_new_frame): Use "pc" not "->pc".
8684 2003-04-09 Andrew Cagney <cagney@redhat.com>
8686 * frame.c (get_frame_id): Eliminate code updating "frame".
8687 (legacy_get_prev_frame): Ditto.
8688 (get_frame_base): Return id.base directly.
8689 (deprecated_update_frame_base_hack): Update "id.base".
8690 * frame.h (struct frame_info): Delete field "frame".
8692 2003-04-09 Andrew Cagney <cagney@redhat.com>
8694 * NEWS: Mention that the "Sequent family" is obsolete.
8695 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8696 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8697 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8698 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8699 * config/i386/tm-ptx4.h: Obsolete file.
8700 * config/i386/tm-ptx.h: Obsolete file.
8701 * symm-tdep.c: Obsolete file.
8702 * config/i386/symmetry.mt: Obsolete file.
8703 * config/i386/tm-symmetry.h: Obsolete file.
8704 * symm-nat.c: Obsolete file.
8705 * config/i386/nm-symmetry.h: Obsolete file.
8706 * config/i386/xm-symmetry.h: Obsolete file.
8707 * config/i386/symmetry.mh: Obsolete file.
8708 * config/i386/nm-ptx4.h: Obsolete file.
8709 * config/i386/ptx4.mh: Obsolete file.
8710 * config/i386/ptx.mt: Obsolete file.
8711 * config/i386/ptx.mh: Obsolete file.
8712 * config/i386/xm-ptx4.h: Obsolete file.
8713 * config/i386/xm-ptx.h: Obsolete file.
8715 2003-04-09 Andrew Cagney <cagney@redhat.com>
8717 Obsolete mips*-*-mach3*.
8718 * NEWS: Mention that mips*-*-mach3* is obsolete.
8719 * m3-nat.c: Obsolete file.
8720 * config/nm-m3.h: Obsolete file.
8721 * config/mips/tm-mipsm3.h: Obsolete file.
8722 * config/mips/mipsm3.mt: Obsolete file.
8723 * config/mips/mipsm3.mh: Obsolete file.
8724 * config/mips/xm-mipsm3.h: Obsolete file.
8725 * mipsm3-nat.c: Obsolete file.
8726 * configure.host: Obsolete mips-dec-mach3*.
8727 * configure.tgt: Obsolete mips*-*-mach3*.
8729 2003-04-09 Andrew Cagney <cagney@redhat.com>
8731 * doublest.h: Update copyright.
8732 (deprecated_store_floating, deprecated_extract_floating): Rename
8733 store_floating and extract_floating. Update comments.
8734 * doublest.c: Update copyright.
8735 (extract_floating_by_length): Replace extract_floating.
8736 (store_floating_by_length): Replace store_floating.
8737 (deprecated_extract_floating): New function.
8738 (deprecated_store_floating): New function.
8739 (extract_typed_floating): Call extract_floating_by_length.
8740 (store_typed_floating): Call store_floating_by_length.
8741 * x86-64-tdep.c (x86_64_store_return_value): Update.
8742 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8743 (sh64_extract_return_value): Update.
8744 (sh_sh4_register_convert_to_virtual): Update.
8745 (sh_sh64_register_convert_to_virtual): Update.
8746 (sh_sh4_register_convert_to_raw): Update.
8747 (sh_sh64_register_convert_to_raw): Update.
8748 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8749 (rs6000_register_convert_to_raw): Update.
8750 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8751 (ia64_register_convert_to_raw): Update.
8752 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8753 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8754 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8755 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8756 (alpha_register_convert_to_raw): Update.
8758 2003-04-08 Andrew Cagney <cagney@redhat.com>
8760 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8761 * gdbarch.h, gdbarch.c: Re-generate.
8762 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8763 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8764 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8765 conditionally, use frame_pc_unwind as an alternative. Add
8767 * arch-utils.c (init_frame_pc_default): Only call
8768 SAVED_PC_AFTER_CALL when available.
8770 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8772 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8773 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8774 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8775 (start_remote): Ditto.
8776 (handle_inferior_event): Ditto.
8777 (save_inferior_status): Ditto.
8778 (restore_inferior_status): Ditto.
8779 * infcmd.c (attach_command): Ditto.
8780 * fork-child.c (startup_inferior): Ditto.
8781 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8782 * alpha-tdep.c (heuristic_proc_start): Ditto.
8783 * mips-tdep.c (heuristic_proc_start): Ditto.
8784 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8785 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8786 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8787 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8788 * remote-vx.c (vx_create_inferior): Ditto.
8790 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8792 * infrun.c (stop_soon_quietly): Make it an enum, to better
8793 override the default behavior of handle_inferior_event.
8794 (clear_proceed_status): Update uses of stop_soon_quietly to
8795 reflect that it is now an enum.
8796 (start_remote): Ditto.
8797 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8798 is set to handle the new GNU/Linux kernel behavior for
8799 attach/sigstop. Update uses of stop_soon_quietly.
8800 * inferior.h (enum stop_kind): New enum.
8801 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8802 Reset normal handle_inferior_event behavior, afterwards.
8803 * fork-child.c (startup_inferior): Update.
8804 * alpha-tdep.c (heuristic_proc_start): Update.
8805 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8806 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8807 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8808 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8809 * remote-vx.c (vx_create_inferior): Update.
8810 * mips-tdep.c (heuristic_proc_start): Update.
8812 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8814 * disasm.c (dump_insns): Move variables inside loop, or they will
8815 be freed more than once, causing wild memory corruptions.
8816 (gdb_disassembly): Look for the substring "-thread",
8817 instead of "-threads" in the target name, to make sure to find
8818 the 'multi-thread' target. Also, make sure we do the right thing
8819 with the "core" target.
8821 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8823 * mips-tdep.c (mips_print_fp_register): New function, created from
8824 do_fp_register_row(). Registers are now (also) printed as hex.
8825 Only one register is printed per row.
8826 (mips_print_register, do_fp_register_row): Print floating point
8827 registers with mips_print_fp_register().
8829 2003-04-06 Andrew Cagney <cagney@redhat.com>
8831 * valprint.h (inspect_it): Add extern declaration.
8832 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8833 (selectors_info, classes_info): Ditto.
8834 (find_objc_msgcall): Fix indentation.
8835 (objc_printstr): Delete extern declarations.
8837 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8839 2003-04-06 Andrew Cagney <cagney@redhat.com>
8841 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8843 * frame.c (legacy_saved_regs_this_id): Update.
8844 (legacy_get_prev_frame): Update.
8845 * xstormy16-tdep.c: Update comment.
8846 * sparc-tdep.c (sparc_frame_chain): Update comment.
8847 * blockframe.c (legacy_frame_chain_valid): Update.
8849 2003-04-06 Andrew Cagney <cagney@redhat.com>
8851 * valprint.c (val_print_type_code_int): Delete #ifdef
8852 PRINT_TYPELESS_INTEGER code.
8854 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8855 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8856 multi-arch definition.
8857 * gdbarch.h: Re-generate.
8859 2003-04-05 Andrew Cagney <cagney@redhat.com>
8861 Eliminate FRAME_FIND_SAVED_REGS.
8862 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8863 Change FSR parameter to a pointer.
8864 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8865 Assume FSR parameter is a pointer.
8866 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8868 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8869 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8870 saved_regs a pointer.
8871 (hppa_frame_saved_pc): Ditto.
8872 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8873 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8875 (restore_pc_queue): Make fsr a pointer.
8876 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8877 (hppa_frame_chain): Make saved_regs a pointer, call
8878 hppa_frame_init_saved_regs.
8879 * sparc-tdep.c: Include "gdb_assert.h".
8880 (sparc_frame_find_saved_regs): Replace internal_error with
8882 * remote-vxsparc.c (vx_read_register): Delete reference to
8883 FRAME_FIND_SAVED_REGS.
8884 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8885 * gdbarch.h: Regenerate.
8886 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8887 (deprecated_get_frame_saved_regs): Delete declaration.
8888 (struct frame_saved_regs): Delete definition.
8889 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8890 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8891 (hppa_frame_find_saved_regs): Delete declaration.
8892 (FRAME_FIND_SAVED_REGS): Delete macro.
8893 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8894 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8895 FRAME_FIND_SAVED_REGS in comment.
8897 2003-04-05 Andrew Cagney <cagney@redhat.com>
8899 * frame.c (frame_func_unwind, get_frame_func): New functions.
8900 * frame.h (get_frame_func, frame_func_unwind): Declare.
8901 (struct frame_info): Add field "prev_func" for caching the
8902 previous frame's function address.
8903 * arm-tdep.c (arm_frameless_function_invocation): Combine
8904 get_pc_function_start and get_frame_pc into get_frame_func.
8905 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8906 (sh64_nofp_frame_init_saved_regs): Ditto.
8907 * s390-tdep.c (s390_function_start): Ditto.
8908 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8909 (rs6000_frameless_function_invocation): Ditto.
8910 (rs6000_frame_saved_pc): Ditto.
8911 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8912 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8913 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8914 (i386_frame_init_saved_regs): Ditto.
8915 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8916 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8917 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8918 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8919 * blockframe.c (frameless_look_for_prologue): Ditto.
8921 2003-04-05 Andrew Cagney <cagney@redhat.com>
8923 * frame.c (legacy_get_prev_frame): Link prev to next at the
8924 function start. Update comments.
8926 2003-04-05 Andrew Cagney <cagney@redhat.com>
8928 * frame.c (get_frame_id): Update comment.
8929 (legacy_get_prev_frame): Update comment.
8930 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8931 * gdbarch.h: Regenerate.
8932 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8933 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8935 2003-04-05 Andrew Cagney <cagney@redhat.com>
8937 * stack.c (print_frame_info): Use get_frame_pc.
8939 2003-04-04 Andrew Cagney <cagney@redhat.com>
8941 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8942 the frame's type from the unwinder.
8943 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8944 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8945 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8946 (get_frame_base_address): Use get_frame_type.
8947 (get_frame_locals_address, get_frame_args_address): Ditto.
8948 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8949 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8950 (struct frame_info): Add comment explaining why the frame contains
8952 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8953 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8954 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8956 * frame-unwind.h: Include "frame.h".
8957 (struct frame_unwind): Add "type" field.
8958 * Makefile.in (frame_unwind_h): Add $(frame_h).
8960 2003-04-04 Andrew Cagney <cagney@redhat.com>
8962 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8963 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8964 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8966 (d10v_unwind_dummy_id): Use frame_id_build.
8967 * frame.c (find_frame_sal): Use get_frame_pc.
8968 (create_new_frame): Use deprecated_update_frame_pc_hack and
8969 deprecated_update_frame_base_hack.
8970 (create_sentinel_frame): Add comment about ->pc going away.
8971 (get_prev_frame): Add comment about ->pc going away.
8972 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8973 frame_id_build, deprecated_update_frame_pc_hack and
8974 deprecated_update_frame_base_hack.
8975 (select_frame): Use get_frame_pc.
8976 (legacy_saved_regs_this_id): Use frame_id_build.
8978 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8980 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8981 signed integer case.
8982 (classify_argument): Handle enumerations and references.
8984 2003-04-04 Andrew Cagney <cagney@redhat.com>
8986 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8989 2003-04-01 Adam Fedor <fedor@gnu.org>
8991 * gdb/objc-lang.c (selectors_info): Replace calls to
8992 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8993 SYMBOL_NATURAL_NAME.
8994 (classes_info, find_methods): Likewise.
8996 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8998 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8999 ``mach'' to the value determined by bfd_default_set_arch_mach().
9001 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9003 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9004 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9005 (mi-cmd-file.o): Update dependencies.
9007 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9009 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9010 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9012 2003-04-01 Adam Fedor <fedor@gnu.org>
9014 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9015 * language.h (struct language_defn): Add la_demangle.
9016 (language_demangle): Declare.
9017 * language.c (language_demangle): New function.
9018 (unk_lang_demangle): Likewise.
9019 (unknown_language_defn, auto_language_defn, local_language_defn):
9020 Add ukn_lang_demangle.
9021 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9022 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9023 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9024 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9025 * jv-lang.c (java_demangle): New function
9026 (java_language_defn): Use it for la_demangle element.
9027 * objc-lang.c (objc_demangle): Add options argument
9028 (objc_language_defn): Use objc_demangle for la_demangle element.
9029 * maint.c (maintenance_demangle): Replace switch with
9030 call to language_demangle.
9031 * utils.c (fprintf_symbol_filtered): Likewise.
9033 2003-04-01 Andrew Cagney <cagney@redhat.com>
9035 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9036 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9037 PRINT_TYPELESS_INTEGER.
9038 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9039 PUSH_RETURN_ADDRESS.
9041 2003-04-01 Andrew Cagney <cagney@redhat.com>
9043 * Makefile.in (d10v-tdep.o): Update dependencies.
9044 * d10v-tdep.c: Include "frame-base.h".
9045 (d10v_frame_unwind): Make constant.
9046 (d10v_frame_base_address): New function.
9047 (d10v_frame_base): New variable.
9048 (d10v_gdbarch_init): Set frame_base default.
9049 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9051 (d10v_frame_unwind_cache): Set and use "prev_sp".
9052 (d10v_frame_this_id): Use the previous frame's inner most stack
9053 address and this frame's func address for the frame ID. Use
9054 frame_id_build. Don't analyze beyond the current instruction.
9056 2003-04-01 Andrew Cagney <cagney@redhat.com>
9058 * frame.h (get_frame_locals_address, get_frame_args_address):
9059 Refer to the base address, instead of the address of the first
9062 2003-04-01 Andrew Cagney <cagney@redhat.com>
9064 Add frame debug info addresses:
9065 * frame-base.c: New file.
9066 * frame-base.h: New file.
9067 * frame.h (struct frame_base): Add opaque declaration.
9068 (get_frame_base): Update comment.
9069 (get_frame_base_address): Declare.
9070 (get_frame_locals_address): Declare.
9071 (get_frame_args_address): Declare.
9072 (struct frame_info): Add "base" and "base_cache". Update
9073 comments on the unwinder.
9074 * frame.c: Include "frame-base.h".
9075 (get_frame_locals_address): New function.
9076 (get_frame_base_address): New function.
9077 (get_frame_args_address): New function.
9078 * findvar.c (read_var_value): Use get_frame_locals_address and
9079 get_frame_args_address.
9080 * stack.c (frame_info): Use get_frame_locals_address and
9081 get_frame_args_address.
9082 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9083 moved to "frame-base.c".
9084 * printcmd.c (print_frame_nameless_args): Ditto.
9085 * symtab.h (address_class): Update comments.
9086 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9087 get_frame_base_address.
9088 * dwarf2expr.c (execute_stack_op): Ditto.
9089 * Makefile.in (frame_base_h): Define.
9090 (frame.o): Update dependencies.
9091 (frame-base.o): Add dependencies.
9092 (SFILES): Add frame-base.c.
9093 (COMMON_OBS): Add frame-base.o.
9095 2003-04-01 Andrew Cagney <cagney@redhat.com>
9097 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9098 CALL_DUMMY_LENGTH): Ditto.
9099 * gdbarch.c: Re-generate.
9100 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9101 (CALL_DUMMY_LENGTH): Delete macro.
9102 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9103 * arm-tdep.c (arm_gdbarch_init): Ditto.
9104 * avr-tdep.c (avr_gdbarch_init): Ditto.
9105 * cris-tdep.c (cris_gdbarch_init): Ditto.
9106 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9107 * frv-tdep.c (frv_gdbarch_init): Ditto.
9108 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9109 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9110 * i386-tdep.c (i386_gdbarch_init): Ditto.
9111 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9112 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9113 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9114 * mips-tdep.c (mips_gdbarch_init): Ditto.
9115 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9116 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9117 * s390-tdep.c (s390_gdbarch_init): Ditto.
9118 * sh-tdep.c (sh_gdbarch_init): Ditto.
9119 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9120 * v850-tdep.c (v850_gdbarch_init): Ditto.
9121 * vax-tdep.c (vax_gdbarch_init): Ditto.
9122 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9124 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9126 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9128 2003-04-01 Andrew Cagney <cagney@redhat.com>
9130 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9131 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9132 * gdbarch.h, gdbarch.c: Re-generate.
9133 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9134 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9135 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9136 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9137 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9138 * infcmd.c (run_stack_dummy): Simplify assuming
9139 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9140 * infrun.c (handle_inferior_event): Ditto.
9141 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9142 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9143 * arm-tdep.c (arm_gdbarch_init): Ditto.
9144 * avr-tdep.c (avr_gdbarch_init): Ditto.
9145 * cris-tdep.c (cris_gdbarch_init): Ditto.
9146 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9147 * frv-tdep.c (frv_gdbarch_init): Ditto.
9148 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9149 * i386-tdep.c (i386_gdbarch_init): Ditto.
9150 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9151 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9152 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9153 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9154 * mips-tdep.c (mips_gdbarch_init): Ditto.
9155 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9156 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9157 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9158 * s390-tdep.c (s390_gdbarch_init): Ditto.
9159 * sh-tdep.c (sh_gdbarch_init): Ditto.
9160 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9161 * v850-tdep.c (v850_gdbarch_init): Ditto.
9162 * vax-tdep.c (vax_gdbarch_init): Ditto.
9163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9165 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9167 * symfile.c (symfile_relocate_debug_section): Update call to
9168 bfd_simple_get_relocated_section_contents.
9170 2003-03-31 Andrew Cagney <cagney@redhat.com>
9172 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9173 * gdbarch.h, gdbarch.c: Regenerate.
9174 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9175 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9177 * frame.h (generic_fix_call_dummy): Delete declaration.
9178 * dummy-frame.h: Update comment.
9179 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9180 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9182 * sh-tdep.c (sh_gdbarch_init): Ditto.
9183 * s390-tdep.c (s390_gdbarch_init): Ditto.
9184 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9186 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9187 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9188 * i386-tdep.c (i386_gdbarch_init): Ditto.
9189 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9190 * frv-tdep.c (frv_gdbarch_init): Ditto.
9191 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9192 * cris-tdep.c (cris_gdbarch_init): Ditto.
9193 * avr-tdep.c (avr_gdbarch_init): Ditto.
9194 * arm-tdep.c (arm_gdbarch_init): Ditto.
9196 2003-03-31 J. Brobecker <brobecker@gnat.com>
9198 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9199 (INIT_FRAME_AP): Likewise.
9200 (EXTRA_FRAME_INFO): Likewise.
9202 2003-03-31 Andrew Cagney <cagney@redhat.com>
9204 * gdbarch.sh: Include "symfile.h".
9205 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9206 * gdbarch.h, gdbarch.c: Re-generate.
9207 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9208 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9209 call_dummy_address, the default is at entry_point_address.
9210 * v850-tdep.c (v850_gdbarch_init): Ditto.
9211 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9212 * sh-tdep.c (sh_gdbarch_init): Ditto.
9213 * s390-tdep.c (s390_gdbarch_init): Ditto.
9214 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9215 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9216 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9217 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9218 * i386-tdep.c (i386_gdbarch_init): Ditto.
9219 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9220 * frv-tdep.c (frv_gdbarch_init): Ditto.
9221 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9222 * cris-tdep.c (cris_gdbarch_init): Ditto.
9223 * arm-tdep.c (arm_gdbarch_init): Ditto.
9225 2003-03-31 Andrew Cagney <cagney@redhat.com>
9227 * gdbarch.sh (CALL_DUMMY_P): Delete.
9228 * gdbarch.h, gdbarch.c: Re-generate.
9229 * inferior.h (CALL_DUMMY_P): Delete macro.
9230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9231 * vax-tdep.c (vax_gdbarch_init): Update.
9232 * v850-tdep.c (v850_gdbarch_init): Update.
9233 * sparc-tdep.c (sparc_gdbarch_init): Update.
9234 * sh-tdep.c (sh_gdbarch_init): Update.
9235 * s390-tdep.c (s390_gdbarch_init): Update.
9236 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9237 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9238 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9239 * mips-tdep.c (mips_gdbarch_init): Update.
9240 * mcore-tdep.c (mcore_gdbarch_init): Update.
9241 * m68k-tdep.c (m68k_gdbarch_init): Update.
9242 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9243 * ia64-tdep.c (ia64_gdbarch_init): Update.
9244 * i386-tdep.c (i386_gdbarch_init): Update.
9245 * h8300-tdep.c (h8300_gdbarch_init): Update.
9246 * frv-tdep.c (frv_gdbarch_init): Update.
9247 * d10v-tdep.c (d10v_gdbarch_init): Update.
9248 * cris-tdep.c (cris_gdbarch_init): Update.
9249 * breakpoint.c (deprecated_frame_in_dummy): Update.
9250 * avr-tdep.c (avr_gdbarch_init): Update.
9251 * alpha-tdep.c (alpha_gdbarch_init): Update.
9252 * arm-tdep.c (arm_gdbarch_init): Update.
9253 * dummy-frame.c (dummy_frame_this_id): Update comments.
9254 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9255 * frame.c (legacy_get_prev_frame): Ditto.
9256 * valops.c (call_function_by_hand): Delete function.
9257 (hand_function_call): Rename to call_function_by_hand
9259 2003-03-30 Andrew Cagney <cagney@redhat.com>
9261 2002-11-10 Klee Dienes <kdienes@apple.com>
9262 * value.h (struct value): Update comment.
9264 2003-03-30 Andrew Cagney <cagney@redhat.com>
9266 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9268 (d10v_gdbarch_init): Do not set fp_regnum.
9270 * frame.c (get_frame_base): Force ID initialization.
9271 (get_prev_frame): Move computation of the frame ID from here ...
9272 (get_frame_id): ... to here.
9273 (legacy_get_prev_frame): Mark the frame ID as valid.
9274 * frame.h (struct frame_info): Add field "id_p".
9276 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9278 * i386-tdep.c (i386_store_struct_return): Removed.
9279 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9281 2003-03-30 Andrew Cagney <cagney@redhat.com>
9283 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9284 * gdbarch.h, gdbarch.c: Regenerate.
9285 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9287 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9288 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9289 * i386-tdep.c (i386_gdbarch_init): Ditto.
9290 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9291 * cris-tdep.c (cris_gdbarch_init): Ditto.
9292 * vax-tdep.c (vax_gdbarch_init): Ditto.
9293 * s390-tdep.c (s390_gdbarch_init): Ditto.
9294 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9295 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9296 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9297 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9298 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9299 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9300 * sparc-tdep.c (sparc_gdbarch_init): Update.
9301 * sh-tdep.c (sh_gdbarch_init): Update.
9302 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9303 * mips-tdep.c (mips_gdbarch_init): Update.
9304 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9305 * ia64-tdep.c (ia64_gdbarch_init): Update.
9306 * frv-tdep.c (frv_gdbarch_init): Update.
9307 * avr-tdep.c (avr_gdbarch_init): Update.
9308 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9309 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9310 instead of when push_dummy_call is not available.
9312 2003-03-30 Andrew Cagney <cagney@redhat.com>
9314 * infttrace.c: Include "gdbthread.h".
9315 (parent_attach_all): Fix function signature.
9316 (call_ptrace): Update call.
9317 * Makefile.in (infttrace.o): Update dependencies.
9319 2003-03-30 Andrew Cagney <cagney@redhat.com>
9321 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9322 PUSH_RETURN_ADDRESS.
9323 * gdbarch.h, gdbarch.c: Regenerate.
9324 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9325 * x86-64-tdep.c (x86_64_init_abi): Update.
9326 * v850-tdep.c (v850_gdbarch_init): Update.
9327 * sparc-tdep.c (sparc_gdbarch_init): Update.
9328 * sh-tdep.c (sh_gdbarch_init): Update.
9329 * s390-tdep.c (s390_gdbarch_init): Update.
9330 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9332 * mips-tdep.c (mips_gdbarch_init): Update.
9333 * mcore-tdep.c (mcore_gdbarch_init): Update.
9334 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9335 * ia64-tdep.c (ia64_gdbarch_init): Update.
9336 * i386-tdep.c (i386_gdbarch_init): Update.
9337 * h8300-tdep.c (h8300_gdbarch_init): Update.
9338 * frv-tdep.c (frv_gdbarch_init): Update.
9339 * cris-tdep.c (cris_gdbarch_init): Update.
9340 * avr-tdep.c (avr_gdbarch_init): Update.
9341 * arm-tdep.c (arm_gdbarch_init): Update.
9342 * valops.c (hand_function_call): Update.
9344 2003-03-29 Andrew Cagney <cagney@redhat.com>
9346 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9347 sizeof_call_dummy_words.
9348 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9350 * gdbarch.h: Regenerate.
9352 2003-03-29 Andrew Cagney <cagney@redhat.com>
9354 * infttrace.h: New file.
9355 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9356 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9357 (hpread_read_doc_function_type): Detect an initialized type1.
9358 (hpread_quick_traverse): Initialize mod_name_string.
9359 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9360 (som_solib_get_solib_by_pc): Declare.
9361 (so_lib_thread_start_addr): Declare.
9362 (no_shared_libraries): Declare.
9363 * somread.c (init_import_symbols): Make static. Add forward
9365 * config/pa/nm-hppah.h: Include "infttrace.h" for
9367 (hppa_insert_hw_watchpoint): Declare.
9368 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9369 * hppah-nat.c: Include "gdb_string.h".
9370 (parent_attach_all): Delete extern declaration, moved to
9372 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9374 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9375 * Makefile.in (infttrace_h): Define.
9376 (hpread.o): Update dependencies.
9377 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9378 * hppa-hpux-tdep.c: Include "gdb_string.h".
9379 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9380 * infrun.c (handle_inferior_event): Always initialize
9381 stepped_after_stopped_by_watchpoint. Add default and remove
9382 fallthrough in switch statement.
9383 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9385 (hppa_remove_hw_watchpoint): Ditto.
9387 2003-03-29 Andrew Cagney <cagney@redhat.com>
9389 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9392 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9394 * arm-tdep.c (arm_push_arguments): Delete.
9395 (struct stack_item): New type.
9396 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9397 (arm_store_struct_return): Delte.
9398 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9399 arm_push_arguments or arm_store_struct_return.
9401 2003-03-28 Andrew Cagney <cagney@redhat.com>
9403 * Makefile.in (d10v-tdep.o): Update dependencies.
9404 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9405 * d10v-tdep.c: Include "remote.h".
9406 (target_resume_hook): Delete extern declaration.
9407 (target_wait_loop_hook): Ditto.
9408 (tdisassemble_command): Eliminate assignment in "if" conditional.
9409 (d10v_ts2_register_sim_regno): Eliminate call to
9410 legacy_register_sim_regno.
9411 (d10v_ts3_register_sim_regno): Ditto.
9413 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9415 * thread.c: Reindented.
9417 * linux-proc.c: Ditto.
9419 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9421 * MAINTAINERS (write after approval): Add myself.
9423 2003-03-27 Theodore A. Roth <troth@openavr.org>
9425 * objc-exp.y: Add missing semi-colons.
9427 2003-03-27 Andrew Cagney <cagney@redhat.com>
9429 * regcache.c (write_sp): Delete function and references.
9430 * inferior.h (write_sp): Delete declaration.
9431 * valops.c (hand_function_call): Replace write_sp with
9433 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9434 (sparc_pop_frame): Ditto.
9436 2003-03-27 Andrew Cagney <cagney@redhat.com>
9438 * NEWS: Mention removal of support for hppa*-*-bsd* and
9439 hppa*-*-osf* natives, and hppa*-*-pro* target.
9440 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9441 * config/pa/xm-pa.h: Obsolete file.
9442 * config/pa/xm-hppab.h: Obsolete file.
9443 * config/pa/nm-hppab.h: Obsolete file.
9444 * config/pa/tm-hppab.h: Obsolete file.
9445 * config/pa/tm-hppao.h: Obsolete file.
9446 * config/pa/nm-hppao.h: Obsolete file.
9447 * config/pa/tm-pro.h: Obsolete file.
9448 * config/pa/hppaosf.mt: Obsolete file.
9449 * config/pa/hppaosf.mh: Obsolete file.
9450 * config/pa/hppapro.mt: Obsolete file.
9451 * config/pa/hppabsd.mt: Obsolete file.
9452 * config/pa/hppabsd.mh: Obsolete file.
9453 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9454 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9457 2003-03-27 Andrew Cagney <cagney@redhat.com>
9459 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9460 push_arguments. Don't set push_return_address or write_sp.
9461 (d10v_push_dummy_call): Replace d10v_push_arguments.
9462 (d10v_push_return_address, d10v_write_sp): Delete function,
9463 handled by push_dummy_call.
9465 2003-03-26 Andrew Cagney <cagney@redhat.com>
9467 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9468 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9469 regcache and dummy_addr parameters.
9470 * gdbarch.h, gdbarch.c: Re-generate.
9471 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9472 available; assume it will handle stack alignment and return
9473 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9474 legacy_push_arguments.
9475 (legacy_push_arguments): Rename default_push_arguments.
9476 * value.h (legacy_push_arguments): Rename default_push_arguments.
9477 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9478 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9479 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9480 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9481 * config/i386/tm-symmetry.h: Update.
9482 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9483 * x86-64-tdep.c (x86_64_init_abi): Update.
9484 * v850-tdep.c (v850_gdbarch_init): Update.
9485 * sparc-tdep.c (sparc_gdbarch_init): Update.
9486 * sh-tdep.c (sh_gdbarch_init): Update.
9487 * s390-tdep.c (s390_gdbarch_init): Update.
9488 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9489 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9490 * mips-tdep.c (mips_gdbarch_init): Update.
9491 * mcore-tdep.c (mcore_gdbarch_init): Update.
9492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9493 * ia64-tdep.c (ia64_gdbarch_init): Update.
9494 * i386-tdep.c (i386_gdbarch_init): Update.
9495 * hppa-tdep.c (hppa_gdbarch_init): Update.
9496 * h8300-tdep.c (h8300_gdbarch_init): Update.
9497 * frv-tdep.c (frv_gdbarch_init): Update.
9498 * d10v-tdep.c (d10v_gdbarch_init): Update.
9499 * cris-tdep.c (cris_gdbarch_init): Update.
9500 * avr-tdep.c (avr_gdbarch_init): Update.
9501 * arm-tdep.c (arm_gdbarch_init): Update.
9502 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9503 * alpha-tdep.c (alpha_gdbarch_init): Update.
9505 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9507 * signals/signals.c (do_target_signal_to_host): Correct realtime
9510 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9512 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9513 (struct sal_chain, map_catch_names): Remove.
9514 (catch_exception_command_1): Don't call
9515 handle_gnu_4_16_catch_command.
9517 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9519 From Mark Dettinger <dettinge@de.ibm.com>:
9520 * dwarf2cfi.c (read_2u): Increment pointer by two.
9522 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9524 * signals/signals.c: Fix typos in last change.
9526 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9528 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9529 not already defined. Use __SIGRTMIN if available.
9530 (target_signal_from_host): Remove SIGRTMIN block.
9531 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9532 the signal is within the realtime range.
9534 2003-03-25 Adam Fedor <fedor@gnu.org>
9536 * Makefile.in (infrun.o): Add $(language_h)
9537 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9538 for language specific trampolines.
9539 * language.h (struct language_defn): Add skip_trampoline.
9540 (skip_language_trampoline): Declare.
9541 * language.c (unk_lang_trampoline, skip_language_trampoline):
9543 (unknown_language_defn, auto_language_defn, local_language_defn):
9544 Add ukn_lang_trampoline.
9545 * ada-lang.c (ada_language_defn): Add NULL for language
9546 specific skip_trampoline.
9547 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9548 scm-lang.c: Likewise.
9549 * objc-lang.c (objc_skip_trampoline): New function.
9550 (objc_language_defn): Add objc_skip_trampoline.
9552 2003-03-25 Andrew Cagney <cagney@redhat.com>
9554 * frame.c (get_prev_frame): Delay validating a frame's ID -
9555 non-NULL, didn't go backwards - until an attempt to unwind it to
9558 2003-03-25 Andrew Cagney <cagney@redhat.com>
9560 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9561 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9562 * gdbarch.h, gdbarch.c: Re-generate.
9563 * config/sparc/tm-sparc.h
9564 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9565 * sparc-tdep.c (sparc_gdbarch_init): Set
9566 deprecated_extra_stack_alignment_needed.
9567 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9568 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9569 extra_stack_alignment_needed.
9570 * v850-tdep.c (v850_gdbarch_init): Ditto.
9571 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9572 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9573 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9574 * cris-tdep.c (cris_gdbarch_init): Ditto.
9575 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9576 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9578 2003-03-25 Andrew Cagney <cagney@redhat.com>
9580 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9581 STORE_STRUCT_RETURN.
9582 * gdbarch.h, gdbarch.c: Regenerate.
9583 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9584 (d10v_push_arguments): Set the struct return register.
9585 (d10v_gdbarch_init): Update.
9586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9587 * x86-64-tdep.c (x86_64_init_abi): Update.
9588 * vax-tdep.c (vax_gdbarch_init): Update.
9589 * v850-tdep.c (v850_gdbarch_init): Update.
9590 * sparc-tdep.c (sparc_gdbarch_init): Update.
9591 * sh-tdep.c (sh_gdbarch_init): Update.
9592 * s390-tdep.c (s390_gdbarch_init): Update.
9593 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9594 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9595 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9596 * mips-tdep.c (mips_gdbarch_init): Update.
9597 * mcore-tdep.c (mcore_gdbarch_init): Update.
9598 * m68k-tdep.c (m68k_gdbarch_init): Update.
9599 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9600 * ia64-tdep.c (ia64_gdbarch_init): Update.
9601 * i386-tdep.c (i386_gdbarch_init): Update.
9602 * hppa-tdep.c (hppa_gdbarch_init): Update.
9603 * h8300-tdep.c (h8300_gdbarch_init): Update.
9604 * frv-tdep.c (frv_gdbarch_init): Update.
9605 * cris-tdep.c (cris_gdbarch_init): Update.
9606 * avr-tdep.c (avr_gdbarch_init): Update.
9607 * arm-tdep.c (arm_gdbarch_init): Update.
9608 * alpha-tdep.c (alpha_gdbarch_init): Update.
9610 2003-03-25 Andrew Cagney <cagney@redhat.com>
9612 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9613 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9614 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9615 * gdbarch.h, gdbarch.c: Regenerate.
9616 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9617 call_dummy_stack_adjust_p.
9618 * vax-tdep.c (vax_gdbarch_init): Ditto.
9619 * v850-tdep.c (v850_gdbarch_init): Ditto.
9620 * sh-tdep.c (sh_gdbarch_init): Ditto.
9621 * s390-tdep.c (s390_gdbarch_init): Ditto.
9622 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9623 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9624 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9625 * mips-tdep.c (mips_gdbarch_init): Ditto.
9626 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9627 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9628 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9629 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9630 * i386-tdep.c (i386_gdbarch_init): Ditto.
9631 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9632 * frv-tdep.c (frv_gdbarch_init): Ditto.
9633 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9634 * cris-tdep.c (cris_gdbarch_init): Ditto.
9635 * avr-tdep.c (avr_gdbarch_init): Ditto.
9636 * arm-tdep.c (arm_gdbarch_init): Ditto.
9637 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9638 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9639 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9640 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9641 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9642 call_dummy_stack_adjust_p.
9643 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9644 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9645 * sparc-tdep.c (sparc32_push_arguments): Update.
9646 * valops.c (hand_function_call): Update.
9648 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9651 set_gdbarch_char_signed.
9653 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9656 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9658 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9660 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9661 (_initialize_arm_tdep): Don't set tm_print_insn.
9663 2003-03-24 Adam Fedor <fedor@gnu.org>
9665 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9666 * objc-lang.h: Add multiple inclusion protection.
9667 (start_msglist, add_msglist, end_msglist): Additional declarations.
9669 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9671 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9672 value was renamed to ARM_FLOAT_SOFT_FPA.
9674 2003-03-23 Andrew Cagney <cagney@redhat.com>
9676 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9677 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9678 * gdbarch.h, gdbarch.c: Regenerate.
9679 * valops.c (hand_function_call): Update.
9680 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9681 * frame.c (legacy_saved_regs_this_id): Update.
9682 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9683 * dummy-frame.h: Update.
9684 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9685 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9686 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9687 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9688 * config/m68k/tm-sun3.h: Update.
9689 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9691 * x86-64-tdep.c (x86_64_init_abi): Update.
9692 * vax-tdep.c (vax_gdbarch_init): Update.
9693 * v850-tdep.c (v850_gdbarch_init): Update.
9694 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9695 * sh-tdep.c (sh_gdbarch_init): Update.
9696 * s390-tdep.c (s390_gdbarch_init): Update.
9697 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9698 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9699 (frame_get_saved_regs): Update.
9700 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9701 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9702 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9703 * mips-tdep.c (mips_gdbarch_init): Update.
9704 * mcore-tdep.c (mcore_gdbarch_init): Update.
9705 * m68k-tdep.c (m68k_gdbarch_init): Update.
9706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9707 * ia64-tdep.c (ia64_gdbarch_init): Update.
9708 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9709 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9710 (i386_interix_back_one_frame): Update.
9711 * hppa-tdep.c (hppa_gdbarch_init): Update.
9712 (hppa_init_extra_frame_info): Update.
9713 * h8300-tdep.c (h8300_gdbarch_init): Update.
9714 * frv-tdep.c (frv_gdbarch_init): Update.
9715 * cris-tdep.c (cris_gdbarch_init): Update.
9716 * avr-tdep.c (avr_gdbarch_init): Update.
9717 * arm-tdep.c (arm_gdbarch_init): Update.
9718 * alpha-tdep.c (alpha_gdbarch_init): Update.
9720 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9722 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9723 (arm_get_fp_model): Declare.
9724 * arm-tdep.c (fp_model_strings): New string array.
9725 (arm_fp_model, current_fp_model): New variables.
9726 (arm_get_fp_model): New function.
9727 (arm_set_fp): New function.
9728 (set_fp_model_sfunc): New function.
9729 (show_fp_model): New function.
9730 (_initialize_arm_tdep): Add new command to set/show the FPU.
9731 (arm_extract_return_value): Use arm_get_fp_model.
9732 (arm_store_return_value): Likewise.
9733 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9734 to initialize the floating-point data types.
9735 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9738 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9740 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9741 the current setting of each value.
9742 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9743 new_set and new_show. Use add_setshow_cmd_full and
9744 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9745 commands and add new version as subcommands of "set/show arm".
9747 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9749 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9750 (set_arm_command, show_arm_command): New functions.
9751 (_initialize_arm_tdep): Add them.
9752 (num_disassembly_options): Renamed from num_flavor_options.
9753 (valid_disassembly_styles): Renamed from valid_flavors.
9754 (disassembly_style): Renamed from disassembly_flavor.
9755 (set_disassembly_style_sfunc): Renamed from
9756 set_disassembly_flavor_sfunc.
9757 (set_disassembly_style): Renamed from set_disassembly_flavor.
9758 (arm_othernames): Updated.
9759 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9760 command. Add "set/show arm disassembly" commands. Deprecate
9761 "othernames" command.
9763 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9765 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9766 (arm-tdep.o): Depend on elf_arm_h.
9768 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9770 * Makefile.in (coff_internal_h): Define.
9771 (arm-tdep.o): Update dependencies.
9773 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9775 * arm-tdep.c (prologue_cache): Delete.
9776 (check_prologue_cache, save_prologue_cache): Delete.
9777 (arm_scan_prologue): Don't check or update the prologue_cache.
9778 (arm_gdb_arch_init): Don't initialize it.
9779 (_initialize_arm_tdep): Likewise.
9781 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9783 * MAINTAINERS (tui): Maintainer of tui code.
9785 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9787 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9788 (i386-cygwin-tdep.o): Add dependencies.
9789 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9790 * i386-cygwin-tdep.c: New file.
9791 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9792 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9794 2003-03-20 Andrew Cagney <cagney@redhat.com>
9796 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9797 (handle_inferior_event): Remove code calling
9798 DYNAMIC_TRAMPOLINE_NEXTPC.
9800 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9801 already has a full path.
9803 * main.c (gdb_main): Return 1.
9804 (captured_main): Call error to report an invalid interpreter.
9806 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9807 * alpha-osf1-tdep.c: Include "gdb_string.h".
9809 2003-03-19 J. Brobecker <brobecker@gnat.com>
9811 Continuing work to convert the hppa targets to multiarch partial.
9813 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9814 method, now that hppa_push_dummy_frame has a conformant prototype.
9815 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9816 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9817 for the switch to multiarch partial.
9819 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9821 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9822 when iss is issNull.
9824 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9826 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9827 NUM_REGS bounds check.
9829 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9831 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9832 * mips-tdep.c (gdb_assert.h): Include.
9833 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9834 (mips_register_name): Handle integer registers explicitly. Add
9836 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9837 (mips_lsi33k_reg_names): Don't list integer registers; they're
9838 handled by mips_register_name() now.
9839 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9840 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9841 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9842 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9843 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9845 2003-03-18 Andrew Cagney <cagney@redhat.com>
9847 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9849 * gdbtypes.h (print_scalar_formatted): Update declaration.
9850 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9852 2003-03-18 J. Brobecker <brobecker@gnat.com>
9854 * infrun.c (observer.h): Add #include.
9855 (normal_stop): Add call to observer_notify_normal_stop.
9856 * Makefile.in (infrun.o): Add dependency on observer.h.
9858 2003-03-18 J. Brobecker <brobecker@gnat.com>
9860 Continuing work to convert the hppa targets to multiarch partial.
9861 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9862 parameter. Reformat comment.
9863 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9864 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9865 to match new profile.
9867 2003-03-18 J. Brobecker <brobecker@gnat.com>
9869 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9870 appear to be working in any case.
9872 2003-03-18 J. Brobecker <brobecker@gnat.com>
9874 * observer.c (observer_test_first_observer): New static variable.
9875 (observer_test_second_observer): Likewise.
9876 (observer_test_third_observer): Likewise.
9877 (observer_test_first_notification_function): New static function.
9878 (observer_test_second_notification_function): Likewise.
9879 (observer_test_third_notification_function): Likewise.
9881 2003-03-17 J. Brobecker <brobecker@gnat.com>
9883 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9884 * somsolib.c (gdb_assert.h): Likewise.
9885 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9886 (somsolib.o): Likewise.
9888 2003-03-17 Andrew Cagney <cagney@redhat.com>
9890 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9891 BFD. Simplify setting of di.endian.
9893 2003-03-17 Andrew Cagney <cagney@redhat.com>
9895 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9896 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9898 From Elena Zannoni <ezannoni@redhat.com>
9899 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9900 vector and floating-point parameters.
9901 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9903 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9905 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9907 * MAINTAINERS: Remove my name from several maintainership roles.
9909 2003-03-17 Andrew Cagney <cagney@redhat.com>
9911 Fix frame off-by-one bug.
9912 * frame-unwind.h (frame_this_id_ftype): Replace
9913 frame_unwind_id_ftype.
9914 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9915 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9916 with "prev_register".
9917 * frame-unwind.c (frame_unwind_find_by_pc): Return
9918 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9920 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9921 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9922 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9923 (dummy_frame_unwind): Update.
9924 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9925 sentinel_frame_register_unwind.
9926 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9927 (sentinel_frame_unwinder): Update.
9928 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9929 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9930 * frame.c (create_sentinel_frame): Update. Initialize
9931 "prologue_cache" instead of "unwind_cache".
9932 (frame_register_unwind): Call this frame's prev_register with the
9933 next frame and this frame's prologue cache.
9934 (get_prev_frame): Simplify. Always call prev frame's this_id with
9935 this frame and prev frame's prologue cache. Document that this
9936 call is shifted one to the left when compared to the
9937 frame_register_unwind call.
9938 (legacy_saved_regs_prev_register): Replace
9939 frame_saved_regs_register_unwind.
9940 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9941 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9942 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9943 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9944 (d10v_frame_unwind): Update.
9945 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9946 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9947 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9948 "saved_regs" with "this_saved_regs".
9950 2003-03-16 Andrew Cagney <cagney@redhat.com>
9952 * frame.c (frame_pop): Don't call target_store_registers. Fix
9953 problem reported by Mark Kettenis.
9955 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9957 * i386-tdep.c (i386_register_type): Renamed from
9958 i386_register_virtual_type. Adjust function signature.
9959 (i386_gdbarch_init): Set register_type instead of
9960 deprecated_max_register_raw_size,
9961 deprecated_max_register_virtual_size and register_virtual_type.
9963 2003-03-14 Andrew Cagney <cagney@redhat.com>
9965 * frame.c (get_prev_frame): When a legacy frame, always call
9966 legacy_get_prev_frame. Simplify unwind code using assumption that
9967 the unwinder is new.
9968 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9969 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9970 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9972 2003-03-14 Andrew Cagney <cagney@redhat.com>
9974 * frame.c (get_saved_register): Delete function.
9975 * frame.h (get_saved_register): Delete declaration.
9976 * xstormy16-tdep.c: Update comment.
9977 * regcache.h: Update comments.
9978 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9979 get_saved_register and extract_address, use
9980 frame_read_unsigned_register.
9981 (sparc_frame_saved_pc): Ditto.
9982 (sparc_get_saved_register): Instead of get_saved_register, use
9984 (sparc_pop_frame): Ditto.
9985 * findvar.c: Update comments.
9986 (value_of_register): Call frame_register instead of
9988 (value_from_register): Ditto.
9989 * config/sparc/tm-sparc.h: Update comment.
9990 * breakpoint.c: Update comment.
9992 2003-03-14 Andrew Cagney <cagney@redhat.com>
9994 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9996 * gdbarch.h, gdbarch.c: Re-generate.
9997 * frame.h: Update comments.
9998 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9999 * x86-64-tdep.c (x86_64_init_abi): Update.
10000 * sparc-tdep.c (sparc_gdbarch_init): Update.
10001 * sh-tdep.c (sh_gdbarch_init): Update.
10002 * mips-tdep.c (mips_gdbarch_init): Update.
10003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10004 * cris-tdep.c (cris_gdbarch_init): Update.
10005 * ia64-tdep.c (ia64_gdbarch_init): Update.
10006 * frame.c (frame_register): Update.
10007 (get_saved_register): Update.
10008 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10010 2003-03-13 Andrew Cagney <cagney@redhat.com>
10012 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10013 * gdbarch.h, gdbarch.c: Regenerate.
10014 * valops.c (hand_function_call): Update comment.
10015 * stack.c (return_command): Update comment.
10016 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10017 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10018 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10019 * x86-64-tdep.c (x86_64_init_abi): Update.
10020 * vax-tdep.c (vax_gdbarch_init): Update.
10021 * v850-tdep.c (v850_gdbarch_init): Update.
10022 * sparc-tdep.c (sparc_gdbarch_init): Update.
10023 * sh-tdep.c (sh_gdbarch_init): Update.
10024 * s390-tdep.c (s390_gdbarch_init): Update.
10025 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10026 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10027 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10028 * mips-tdep.c (mips_gdbarch_init): Update.
10029 * mcore-tdep.c (mcore_gdbarch_init): Update.
10030 * m68k-tdep.c (m68k_gdbarch_init): Update.
10031 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10032 * ia64-tdep.c (ia64_gdbarch_init): Update.
10033 * i386-tdep.c (i386_gdbarch_init): Update.
10034 * hppa-tdep.c (hppa_gdbarch_init): Update.
10035 * h8300-tdep.c (h8300_gdbarch_init): Update.
10036 * frv-tdep.c (frv_gdbarch_init): Update.
10037 * cris-tdep.c (cris_gdbarch_init): Update.
10038 * avr-tdep.c (avr_gdbarch_init): Update.
10039 * arm-tdep.c (arm_gdbarch_init): Update.
10040 * alpha-tdep.c (alpha_gdbarch_init): Update.
10042 2003-03-13 Andrew Cagney <cagney@redhat.com>
10044 * frame.c (legacy_frame_p): New function.
10045 (get_prev_frame): Use legacy_frame_p.
10046 * frame.h (legacy_frame_p): Declare.
10048 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10050 * MAINTAINERS (write after approval): Alphabetically
10053 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10055 * MAINTAINERS (write after approval): Add myself.
10057 2003-03-12 Andrew Cagney <cagney@redhat.com>
10059 * frame.c (get_prev_frame): Rename the frame parameter to
10061 (get_next_frame, legacy_get_prev_frame): Ditto.
10063 2003-03-12 Andrew Cagney <cagney@redhat.com>
10065 * frame.c (get_current_frame): Check target_has_registers before
10066 checking target_has_stack.
10067 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10068 instead of deprecated_selected_frame.
10069 * findvar.c (value_of_register): Pass "frame", not
10070 deprecated_selected_frame, to value_of_builtin_reg.
10072 2003-03-12 Andrew Cagney <cagney@redhat.com>
10074 * regcache.c (regcache_cooked_write_signed): New function.
10075 (regcache_cooked_write_unsigned): New function.
10076 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10077 (regcache_cooked_read_signed): Fix regnum in range assertion.
10078 * regcache.h (regcache_cooked_write_signed): Declare.
10079 (regcache_cooked_write_unsigned): Declare.
10081 2003-03-12 Andrew Cagney <cagney@redhat.com>
10083 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10084 * gdbarch.h, gdbarch.c: Re-generate.
10085 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10086 * x86-64-tdep.h: Update.
10087 * x86-64-tdep.c (x86_64_init_abi): Update.
10088 * v850-tdep.c (v850_gdbarch_init): Update.
10089 * sparc-tdep.c (sparc_gdbarch_init): Update.
10090 * sh-tdep.c (sh_gdbarch_init): Update.
10091 * s390-tdep.c (s390_gdbarch_init): Update.
10092 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10093 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10094 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10095 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10096 * mips-tdep.c (mips_gdbarch_init): Update.
10097 * mcore-tdep.c (mcore_gdbarch_init): Update.
10098 * m68k-tdep.c (m68k_gdbarch_init): Update.
10099 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10100 * ia64-tdep.c (ia64_gdbarch_init): Update.
10101 * i386-tdep.c (i386_gdbarch_init): Update.
10102 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10103 * hppa-tdep.c (hppa_gdbarch_init): Update.
10104 * h8300-tdep.c (h8300_gdbarch_init): Update.
10105 * frv-tdep.c (frv_gdbarch_init): Update.
10106 * cris-tdep.c (cris_gdbarch_init): Update.
10107 * avr-tdep.c (avr_gdbarch_init): Update.
10108 * arm-tdep.c (arm_gdbarch_init): Update.
10109 * alpha-tdep.c (alpha_gdbarch_init): Update.
10110 * sh-tdep.c (sh_init_extra_frame_info): Update.
10111 (sh64_init_extra_frame_info): Update.
10112 * ns32knbsd-nat.c (frame_num_args): Update.
10113 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10114 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10115 (xstormy16_frame_chain_valid): Update.
10116 * vax-tdep.c (vax_saved_pc_after_call): Update.
10117 * v850-tdep.c (v850_frame_chain): Update.
10118 (v850_pop_frame): Update.
10119 (v850_init_extra_frame_info): Update.
10120 * sparc-tdep.c (setup_arbitrary_frame): Update.
10121 * ns32k-tdep.c (umax_frame_num_args): Update.
10122 * s390-tdep.c (s390_pop_frame_regular): Update.
10123 * mn10300-tdep.c (mn10300_frame_chain): Update.
10124 (mn10300_pop_frame_regular): Update.
10125 (mn10300_init_extra_frame_info): Update.
10126 * mips-tdep.c (mips_init_frame_pc_first): Update.
10127 (mips_frame_chain): Update.
10128 (mips_pop_frame): Update.
10129 * mcore-tdep.c (mcore_frame_chain): Update.
10130 (mcore_pop_frame): Update.
10131 (mcore_init_extra_frame_info): Update.
10132 * arch-utils.c (init_frame_pc_default): Update.
10133 * m68k-tdep.c (isi_frame_num_args): Update.
10134 (delta68_frame_num_args): Update.
10135 (news_frame_num_args): Update.
10136 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10137 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10138 (alpha_frame_chain): Update.
10139 (alpha_pop_frame): Update.
10140 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10141 (hppa_init_extra_frame_info): Update.
10142 (hppa_frame_chain): Update.
10143 (hppa_frame_chain_valid): Update.
10144 * cris-tdep.c (cris_init_extra_frame_info): Update.
10145 * avr-tdep.c (avr_init_extra_frame_info): Update.
10146 * arm-tdep.c (arm_frame_chain_valid): Update.
10147 (arm_init_extra_frame_info): Update.
10148 (arm_pop_frame): Update.
10149 * frame.c (frame_pc_unwind): Update.
10150 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10151 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10152 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10153 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10154 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10155 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10157 2003-03-12 Andrew Cagney <cagney@redhat.com>
10159 Eliminate the need for POP_FRAME.
10160 * frame.c (do_frame_unwind_register): New function.
10161 (frame_pop): When no POP_FRAME, pop the frame using register
10162 unwind and a scratch regcache.
10163 (frame_saved_regs_pop): Delete function.
10164 (trad_frame_unwinder): Update.
10165 * d10v-tdep.c (d10v_frame_pop): Delete function.
10166 (d10v_frame_unwind): Update.
10167 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10168 (sentinel_frame_unwinder): Update.
10169 * dummy-frame.c (dummy_frame_pop): Delete function.
10170 (dummy_frame_unwind): Update.
10171 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10172 (struct frame_unwind): Update.
10174 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10176 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10177 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10178 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10179 Do range checks on register number obtained from debugging info.
10180 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10181 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10182 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10184 (do_fp_register_row): Fix typo which caused double type to be
10185 used when attempting to unpack a float.
10187 2003-03-11 J. Brobecker <brobecker@gnat.com>
10189 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10191 2003-03-11 Andrew Cagney <cagney@redhat.com>
10193 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10194 frame. Problem found by Corinna Vinschen.
10196 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10198 * doublest.c (floatformat_from_length): Accept also
10199 the real size of 'long double' type.
10201 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10203 From Klee Dienes <kdienes@apple.com>:
10204 * breakpoint.c (bpstat_copy): Copy the command lines as well
10205 as the old value, to match what is freed in bpstat_clear.
10207 2003-03-10 David Carlton <carlton@math.stanford.edu>
10209 * minsyms.c (add_minsym_to_hash_table): Replace
10210 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10211 (compare_minimal_symbols, compact_minimal_symbols)
10212 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10213 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10214 of DEPRECATED_SYMBOL_MATCHES_NAME.
10215 (lookup_minimal_symbol_solib_trampoline): Ditto.
10217 2003-03-10 Andrew Cagney <cagney@redhat.com>
10219 * regcache.h (regcache_cooked_read_ftype): Define.
10220 (regcache_save, regcache_restore): Add a cooked_read parameter.
10221 * regcache.c (regcache_save, regcache_restore): Update.
10222 (do_cooked_read): New function.
10223 (regcache_cpy): Pass do_cooked_read to regcache_save and
10226 2003-03-10 Andrew Cagney <cagney@redhat.com>
10228 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10229 * gdbarch.h, gdbarch.c: Re-generate.
10230 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10231 * x86-64-tdep.h: Update.
10232 * x86-64-tdep.c (x86_64_init_abi): Update.
10233 * v850-tdep.c (v850_gdbarch_init): Update.
10234 * sparc-tdep.c (sparc_gdbarch_init): Update.
10235 * sh-tdep.c (sh_gdbarch_init): Update.
10236 * s390-tdep.c (s390_gdbarch_init): Update.
10237 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10238 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10239 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10240 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10241 * mips-tdep.c (mips_gdbarch_init): Update.
10242 * mcore-tdep.c (mcore_gdbarch_init): Update.
10243 * m68k-tdep.c (m68k_gdbarch_init): Update.
10244 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10245 * ia64-tdep.c (ia64_gdbarch_init): Update.
10246 * i386-tdep.c (i386_gdbarch_init): Update.
10247 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10248 * hppa-tdep.c (hppa_gdbarch_init): Update.
10249 * h8300-tdep.c (h8300_gdbarch_init): Update.
10250 * frv-tdep.c (frv_gdbarch_init): Update.
10251 * cris-tdep.c (cris_gdbarch_init): Update.
10252 * avr-tdep.c (avr_gdbarch_init): Update.
10253 * arm-tdep.c (arm_gdbarch_init): Update.
10254 * alpha-tdep.c (alpha_gdbarch_init): Update.
10255 * sh-tdep.c (sh_init_extra_frame_info): Update.
10256 (sh64_init_extra_frame_info): Update.
10257 * ns32knbsd-nat.c (frame_num_args): Update.
10258 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10259 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10260 (xstormy16_frame_chain_valid): Update.
10261 * vax-tdep.c (vax_saved_pc_after_call): Update.
10262 * v850-tdep.c (v850_frame_chain): Update.
10263 (v850_pop_frame): Update.
10264 (v850_init_extra_frame_info): Update.
10265 * sparc-tdep.c (setup_arbitrary_frame): Update.
10266 * ns32k-tdep.c (umax_frame_num_args): Update.
10267 * s390-tdep.c (s390_pop_frame_regular): Update.
10268 * mn10300-tdep.c (mn10300_frame_chain): Update.
10269 (mn10300_pop_frame_regular): Update.
10270 (mn10300_init_extra_frame_info): Update.
10271 * mips-tdep.c (mips_init_frame_pc_first): Update.
10272 (mips_frame_chain): Update.
10273 (mips_pop_frame): Update.
10274 * mcore-tdep.c (mcore_frame_chain): Update.
10275 (mcore_pop_frame): Update.
10276 (mcore_init_extra_frame_info): Update.
10277 * arch-utils.c (init_frame_pc_default): Update.
10278 * m68k-tdep.c (isi_frame_num_args): Update.
10279 (delta68_frame_num_args): Update.
10280 (news_frame_num_args): Update.
10281 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10282 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10283 (alpha_frame_chain): Update.
10284 (alpha_pop_frame): Update.
10285 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10286 (hppa_init_extra_frame_info): Update.
10287 (hppa_frame_chain): Update.
10288 (hppa_frame_chain_valid): Update.
10289 * cris-tdep.c (cris_init_extra_frame_info): Update.
10290 * avr-tdep.c (avr_init_extra_frame_info): Update.
10291 * arm-tdep.c (arm_frame_chain_valid): Update.
10292 (arm_init_extra_frame_info): Update.
10293 (arm_pop_frame): Update.
10294 * frame.c (frame_pc_unwind): Update.
10295 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10296 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10297 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10298 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10299 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10300 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10302 2003-03-10 Andrew Cagney <cagney@redhat.com>
10304 * gdbarch.sh (gdbarch_unwind_pc): New method.
10305 * gdbarch.h, gdbarch.c: Regenerate.
10306 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10307 but use read_pc and FRAME_SAVED_PC as fall backs.
10308 (frame_saved_regs_pc_unwind): Delete function.
10309 (trad_frame_unwinder): Update.
10310 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10311 (struct frame_unwind): Update.
10312 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10313 (dummy_frame_unwind): Update.
10314 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10315 (sentinel_frame_unwinder): Update.
10316 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10317 (d10v_frame_unwind): Update.
10318 (d10v_unwind_pc): New function.
10319 (d10v_gdbarch_init): Set unwind_pc.
10321 2003-03-10 Andrew Cagney <cagney@redhat.com>
10323 * gdbarch.h: Re-generate.
10325 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10327 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10330 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10332 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10334 2003-03-08 Andrew Cagney <cagney@redhat.com>
10336 * cli-out.c: Update copyright.
10337 (cli_out_data): Define typedef. Use instead of ui_out_data.
10339 2003-03-08 Andrew Cagney <cagney@redhat.com>
10341 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10344 2003-03-07 Andrew Cagney <cagney@redhat.com>
10346 * gdbarch.sh: Don't generate two macro definitions when an
10347 undefined macro taking no arguments.
10348 * gdbarch.h: Regenerate.
10350 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10352 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10353 (x86_64_unwind_dummy_id): New functions.
10354 (x86_64_init_abi): Register these two new functions.
10356 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10358 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10359 (x86_64_skip_prologue): Move prologue detection to
10361 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10363 2003-03-05 Andrew Cagney <cagney@redhat.com>
10365 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10366 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10367 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10368 to use unwind_dummy_id when a dummy frame.
10369 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10371 * gdbarch.h, gdbarch.c: Regneerate.
10373 2003-03-05 Andrew Cagney <cagney@redhat.com>
10375 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10376 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10377 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10380 2003-03-05 Andrew Cagney <cagney@redhat.com>
10382 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10383 (struct d10v_unwind_cache): Delete field "frameless". Replace
10384 "next_addr" with "sp_offset". Add "r11_offset".
10385 (d10v_frame_unwind_cache): Update.
10386 (prologue_find_regs): Update. When "mv r11, sp", save the
10387 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10388 RN was saved in r11_offset.
10390 2003-03-05 Andrew Cagney <cagney@redhat.com>
10392 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10393 cached PC value in the next frame.
10395 2003-03-05 Andrew Cagney <cagney@redhat.com>
10397 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10398 "id_unwind_cache" with "id".
10399 (frame_id_unwind): Delete declaration.
10400 * frame.c (frame_id_unwind): Delete function.
10401 (get_prev_frame): Call the frame id unwind method directly. Store
10402 the returned next frame's ID value in NEXT_FRAME. Note that there
10403 is a problem with the wrong unwind ID being called with the wrong
10406 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10408 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10410 2003-03-05 James Ingham <jingham@apple.com>
10411 Daniel Jacobowitz <drow@mvista.com>
10413 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10414 (auto_cp_abi): New variable.
10415 (current_cp_abi, num_cp_abis): Make static.
10416 (CP_ABI_MAX): Define.
10417 (cp_abis): Turn into an array.
10418 (value_virtual_fn_field): Fix formatting.
10419 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10421 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10422 (list_cp_abis, _initialize_cp_abi): New functions.
10423 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10424 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10425 switch_to_cp_abi. Update prototype for register_cp_abi.
10426 * Makefile.in (cp-abi.o): Update dependencies.
10427 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10428 instead of switch_to_cp_abi.
10429 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10431 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10433 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10435 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10437 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10438 * dwarf2loc.c: Include "regcache.h".
10439 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10441 * Makefile.in (dwarf2loc.o): Update dependencies.
10443 2003-03-04 Theodore A. Roth <troth@openavr.org>
10445 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10446 number of io registers reported by remote target is not a multiple of
10449 2003-03-04 David Carlton <carlton@math.stanford.edu>
10451 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10452 (lookup_symbol_aux_psymtabs): Update call to
10453 lookup_partial_symbol.
10454 (lookup_transparent_type, find_main_psymtab)
10455 (make_symbol_overload_list): Ditto.
10457 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10459 * MAINTAINERS (Write after approval): Update my email address.
10461 2003-03-03 Andrew Cagney <cagney@redhat.com>
10463 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10464 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10465 predicate. Replace MAX_REGISTER_RAW_SIZE.
10466 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10467 MAX_REGISTER_VIRTUAL_SIZE.
10468 * regcache.c (legacy_max_register_raw_size): New function.
10469 (legacy_max_register_virtual_size): New function.
10470 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10471 (MAX_REGISTER_RAW_SIZE): Define.
10472 (legacy_max_register_raw_size): Declare.
10473 (legacy_max_register_virtual_size): Declare.
10474 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10475 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10476 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10477 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10478 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10479 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10480 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10481 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10482 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10484 * vax-tdep.c (vax_gdbarch_init): Update.
10485 * v850-tdep.c (v850_gdbarch_init): Update.
10486 * sparc-tdep.c (sparc_gdbarch_init): Update.
10487 * sh-tdep.c (sh_gdbarch_init): Update.
10488 * s390-tdep.c (s390_gdbarch_init): Update.
10489 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10490 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10491 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10492 * mips-tdep.c (mips_gdbarch_init): Update.
10493 * mcore-tdep.c (mcore_gdbarch_init): Update.
10494 * m68k-tdep.c (m68k_gdbarch_init): Update.
10495 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10496 * ia64-tdep.c (ia64_gdbarch_init): Update.
10497 * i386-tdep.c (i386_gdbarch_init): Update.
10498 * hppa-tdep.c (hppa_gdbarch_init): Update.
10499 * h8300-tdep.c (h8300_gdbarch_init): Update.
10500 * frv-tdep.c (frv_gdbarch_init): Update.
10501 * cris-tdep.c (cris_gdbarch_init): Update.
10502 * avr-tdep.c (avr_gdbarch_init): Update.
10503 * arm-tdep.c (arm_gdbarch_init): Update.
10504 * alpha-tdep.c (alpha_gdbarch_init): Update.
10505 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10506 max_register_raw_size or max_register_virtual_size.
10508 2003-03-03 David Carlton <carlton@math.stanford.edu>
10510 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10511 SYMBOL_MATCHES_NAME, add comment.
10512 (SYMBOL_MATCHES_NATURAL_NAME): New.
10513 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10514 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10515 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10516 * symtab.c (lookup_partial_symbol): Use
10517 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10519 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10520 SYMBOL_MATCHES_NAME.
10523 2003-03-03 David Carlton <carlton@math.stanford.edu>
10525 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10526 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10527 by regexp matching against SYMBOL_NATURAL_NAME.
10529 2003-03-03 David Carlton <carlton@math.stanford.edu>
10531 * linespec.c (find_method): Extract code into collect_methods.
10532 (collect_methods): New.
10534 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10536 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10539 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10540 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10542 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10544 * arch-utils.c (generic_register_byte): Fix to use the loop index
10545 and not regnum when summing the size of all registers up to regnum.
10547 2003-03-01 Andrew Cagney <cagney@redhat.com>
10549 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10550 FRAME_INIT_SAVED_REGS.
10551 * gdbarch.h, gdbarch.c: Regenerate.
10552 * stack.c (frame_info): Update.
10553 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10554 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10555 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10556 * ns32k-tdep.c (ns32k_pop_frame): Update.
10557 * mips-tdep.c (mips_pop_frame): Update.
10558 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10559 * ia64-tdep.c (ia64_frame_chain): Update.
10560 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10561 (ia64_frameless_function_invocation): Update.
10562 (ia64_init_extra_frame_info): Update.
10563 (ia64_pop_frame_regular): Update.
10564 * frame.h (struct frame_info): Update comment.
10565 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10566 * frame.c (frame_saved_regs_register_unwind): Update.
10567 (frame_saved_regs_register_unwind): Update.
10568 (deprecated_generic_get_saved_register): Update.
10569 * cris-tdep.c: Update comment.
10570 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10572 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10573 * x86-64-tdep.c (x86_64_init_abi): Update.
10574 * vax-tdep.c (vax_gdbarch_init): Update.
10575 * v850-tdep.c (v850_gdbarch_init): Update.
10576 * sparc-tdep.c (sparc_gdbarch_init): Update.
10577 * sh-tdep.c (sh_gdbarch_init): Update.
10578 * s390-tdep.c (s390_gdbarch_init): Update.
10579 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10580 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10581 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10582 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10583 * mips-tdep.c (mips_gdbarch_init): Update.
10584 * mcore-tdep.c (mcore_gdbarch_init): Update.
10585 * m68k-tdep.c (m68k_gdbarch_init): Update.
10586 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10587 * ia64-tdep.c (ia64_gdbarch_init): Update.
10588 * i386-tdep.c (i386_gdbarch_init): Update.
10589 * frv-tdep.c (frv_gdbarch_init): Update.
10590 * avr-tdep.c (avr_gdbarch_init): Update.
10591 * arm-tdep.c (arm_gdbarch_init): Update.
10592 * alpha-tdep.c (alpha_gdbarch_init): Update.
10594 2003-03-01 Andrew Cagney <cagney@redhat.com>
10596 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10597 option enum and switch. When no windows, set the interpreter to
10600 2003-03-01 Andrew Cagney <cagney@redhat.com>
10602 * main.c (captured_main): Replace magic option characters with an
10605 2003-03-01 Andrew Cagney <cagney@redhat.com>
10607 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10608 INIT_EXTRA_FRAME_INFO.
10609 * gdbarch.h, gdbarch.c: Regenerate.
10610 * arm-tdep.c: Update comments.
10611 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10612 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10613 * frame.h, avr-tdep.c: Ditto.
10614 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10615 (create_new_frame, legacy_get_prev_frame): Ditto.
10616 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10617 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10619 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10620 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10621 * v850-tdep.c (v850_gdbarch_init): Ditto.
10622 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10623 * sh-tdep.c (sh_gdbarch_init): Ditto.
10624 * s390-tdep.c (s390_gdbarch_init): Ditto.
10625 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10626 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10627 * mips-tdep.c (mips_gdbarch_init): Ditto.
10628 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10629 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10630 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10631 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10632 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10633 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10634 * frv-tdep.c (frv_gdbarch_init): Ditto.
10635 * cris-tdep.c (cris_gdbarch_init): Ditto.
10636 * avr-tdep.c (avr_gdbarch_init): Ditto.
10637 * arm-tdep.c (arm_gdbarch_init): Ditto.
10638 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10639 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10641 2003-03-01 Andrew Cagney <cagney@redhat.com>
10643 * gdbarch.sh (register_type): New function with predicate.
10644 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10645 * gdbarch.h, gdbarch.c: Re-generate.
10646 * arch-utils.c (generic_register_byte): Use generic_register_size.
10647 (generic_register_size): When available, use
10648 gdbarch_register_type.
10649 * regcache.c (init_regcache_descr): When available, initialize the
10650 register type array using gdbarch_register_type. If the
10651 architecture supplies gdbarch_register_type, do not use the legacy
10653 * d10v-tdep.c (d10v_register_type): Replace
10654 d10v_register_virtual_type.
10655 (d10v_gdbarch_init): Set register_type instead of
10656 register_virtual_type.
10658 2003-03-01 Andrew Cagney <cagney@redhat.com>
10660 * Makefile.in (ax-gdb.o): Update dependencies.
10661 * ax-gdb.c: Include "regcache.h".
10662 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10663 * findvar.c (value_of_register): Ditto.
10664 * infcmd.c (default_print_registers_info): Ditto.
10666 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10668 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10669 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10671 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10673 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10676 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10678 * Makefile.in (dwarf2loc.o): Update dependencies.
10679 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10680 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10681 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10682 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10683 (locexpr_tracepoint_var_ref): New function.
10684 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10686 2003-02-28 Andrew Cagney <cagney@redhat.com>
10688 * regcache.c (register_size): New function.
10689 * regcache.h (register_size): Declare
10690 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10691 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10693 2003-02-28 David Carlton <carlton@math.stanford.edu>
10695 * linespec.c (decode_compound): Extract code into find_method.
10696 (find_method): New.
10698 2003-02-28 J. Brobecker <brobecker@gnat.com>
10700 * Makefile.in: Add rules to build and link in observer.o.
10702 2003-02-27 J. Brobecker <brobecker@gnat.com>
10704 * observer.c: Minor comments edits.
10706 2003-02-27 J. Brobecker <brobecker@gnat.com>
10708 * observer.h, observer.c: New file.
10710 2003-02-27 Andrew Cagney <cagney@redhat.com>
10712 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10714 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10716 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10717 (M6812_OP_STS_EXT): Likewise.
10718 (m6811_prologue): Use the above to recognize prologue.
10719 (m6812_prologue): Likewise.
10721 2003-02-27 David Carlton <carlton@math.stanford.edu>
10723 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10725 (compare_psymbols): Ditto.
10726 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10728 2003-02-27 Michael Snyder <msnyder@redhat.com>
10730 * f-lang.c (build_fortran_types): New function.
10731 (_initialize_f_language): Gdbarch-register built-in fortran types.
10732 * doublest.c (extract_floating): Fix warning text.
10734 2003-02-27 Andrew Cagney <cagney@redhat.com>
10736 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10737 predicate. Replaces PUSH_DUMMY_FRAME.
10738 * gdbarch.h, gdbarch.c: Regnerate.
10739 * valops.c (hand_function_call): Update. Call
10740 generic_push_dummy_frame directly.
10741 * vax-tdep.c (vax_gdbarch_init): Update.
10742 * sparc-tdep.c (sparc_gdbarch_init): Update.
10743 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10744 * m68k-tdep.c (m68k_gdbarch_init): Update.
10745 * hppa-tdep.c (hppa_gdbarch_init): Update.
10746 * alpha-tdep.c (alpha_gdbarch_init): Update.
10747 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10748 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10749 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10750 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10751 push_dummy_frame to generic_push_dummy_frame.
10752 * v850-tdep.c (v850_gdbarch_init): Ditto.
10753 * sh-tdep.c (sh_gdbarch_init): Ditto.
10754 * s390-tdep.c (s390_gdbarch_init): Ditto.
10755 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10756 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10757 * mips-tdep.c (mips_gdbarch_init): Ditto.
10758 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10760 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10761 * i386-tdep.c (i386_gdbarch_init): Ditto.
10762 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10763 * frv-tdep.c (frv_gdbarch_init): Ditto.
10764 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10765 * cris-tdep.c (cris_gdbarch_init): Ditto.
10766 * avr-tdep.c (avr_gdbarch_init): Ditto.
10767 * arm-tdep.c (arm_gdbarch_init): Ditto.
10769 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10771 * mips-tdep.c (show_mips_abi): New function.
10772 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10773 command ``show mips abi''.
10775 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10777 From Elena Zannoni <ezannoni@redhat.com>
10778 * dbxread.c (process_one_symbol): Only record line 0 if one or
10779 more sline entries have been seen for the function.
10781 2003-02-26 Michael Chastain <mec@shout.net>
10783 * configure: Regenerate with autoconf 000227.
10785 2003-02-26 Michael Chastain <mec@shout.net>
10787 Close PR build/660.
10788 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10789 for old libc5/glibc.
10790 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10792 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10794 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10795 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10797 2003-02-26 Michael Chastain <mec@shout.net>
10799 * configure.in: New variable HAVE_UINTPTR_T.
10800 * configure, config.in: Regenerated.
10802 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10805 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10807 2003-02-25 Andrew Cagney <cagney@redhat.com>
10809 * frame.c (get_prev_frame): Add comment on check for
10810 inside_entry_func. Only check for inside_entry_file when not a
10811 dummy and not a sentinel. Check that the new frame is not inner
10814 2003-02-25 Andrew Cagney <cagney@redhat.com>
10816 * frame.c (frame_debug): New variable.
10817 (_initialize_frame): Add "set/show debug frame" command.
10818 (get_prev_frame): When frame_debug, print reason why unwind
10821 2003-02-25 Michael Chastain <mec@shout.net>
10823 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10824 to avoid uintptr_t definition problems.
10826 2003-02-25 David Carlton <carlton@math.stanford.edu>
10828 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10829 (SYMBOL_LINKAGE_NAME): Ditto.
10830 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10831 SYMBOL_LINKAGE_NAME.
10832 (struct general_symbol_info): Expand comment.
10833 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10834 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10835 (SYMBOL_MATCHES_REGEXP): Ditto.
10836 * symtab.c (symbol_natural_name): New function.
10837 * objfiles.h: Replace all uses of SYMBOL_NAME by
10838 DEPRECATED_SYMBOL_NAME.
10839 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10840 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10841 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10842 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10843 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10844 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10845 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10846 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10847 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10848 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10849 * ada-exp.y: Ditto.
10850 * ada-exp.y: Update copyright.
10851 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10852 * cp-valprint.c: Ditto.
10854 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10856 * infptrace.c (detach): Do not flag error if ptrace detach fails
10857 and errno is set to ESRCH.
10859 2003-02-24 Andrew Cagney <cagney@redhat.com>
10861 * infptrace.c (udot_info): Change type of udot_off to long. Use
10862 paddr when printing udot_off's value.
10864 2003-02-24 David Carlton <carlton@math.stanford.edu>
10866 * symtab.c (make_symbol_overload_list): Only read in partial
10867 symtabs containing a matching partial symbol.
10869 2003-02-24 David Carlton <carlton@math.stanford.edu>
10871 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10872 do the comparison, not strcmp.
10873 * symfile.c (compare_psymbols): Ditto.
10874 * defs.h: Declare strcmp_iw_ordered.
10875 * utils.c (strcmp_iw_ordered): New function.
10877 2003-02-24 Jim Blandy <jimb@redhat.com>
10879 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10880 support, shared libs): Remove my name from here, to better reflect
10883 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10885 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10886 (target_ops): Add to_have_continuable_watchpoint.
10887 * target.c (update_current_target): Add INHERIT line for
10888 to_have_continuable_watchpoint.
10889 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10890 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10891 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10892 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10894 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10896 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10899 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10901 * solib.c (solib_open): Call target defined search function after
10902 failing with solib-search-path.
10903 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10904 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10906 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10908 * MAINTAINERS: Add myself to Write After section.
10910 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10912 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10914 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10916 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10917 (m68hc11_add_reggroups): New function.
10918 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10919 (m68hc11_gdbarch_init): Install the reggroups.
10920 (_initialize_m68hc11_tdep): Initialize them.
10922 2003-02-21 James E Wilson <wilson@tuliptree.org>
10924 * MAINTAINERS: Update my email address.
10926 2003-02-21 David Carlton <carlton@math.stanford.edu>
10928 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10930 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10932 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10933 * symtab.h: Add opaque declarations of struct axs_value and
10935 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10936 (struct location_funcs): New type.
10937 (struct symbol): Add "loc" to aux_value.
10938 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10939 * dwarf2read.c: Include "dwarf2expr.h".
10940 (dwarf2_symbol_mark_computed): New function.
10941 (read_func_scope): Use it.
10942 (var_decode_location): New function.
10943 (new_symbol): Use it.
10944 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10946 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10947 (dwarf2expr_h, dwarf2loc_h): New variables.
10948 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10949 (dwarf2expr.o, dwarf2loc.o): New rules.
10950 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10951 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10953 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10954 * m2-exp.y (yylex): Likewise.
10955 * printcmd.c (address_info, print_frame_args): Likewise.
10956 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10957 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10958 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10959 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10960 * symtab.c (lookup_block_symbol): Likewise.
10962 2003-02-20 Adam Fedor <fedor@gnu.org>
10964 * symtab.h: Remove objc_specific struct
10965 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10966 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10967 Have language_objc use cplus_specific struct.
10969 2003-02-20 Tom Tromey <tromey@redhat.com>
10971 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10972 TYPE_NAME, when printing a String value. PR java/1075.
10974 2003-02-20 Adam Fedor <fedor@gnu.org>
10976 * objc-lang.h (find_methods): Remove declaration.
10977 * objc-lang.c (find_methods): Make static.
10979 2003-02-20 Christopher Faylor <cgf@redhat.com>
10981 * win32-nat.c (get_image_name): Check return value from
10983 (child_xfer_memory): Ditto.
10985 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10987 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10988 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10989 '${exec_prefix}' (in addition to the expansion thereof) as
10991 * configure: Rebuilt.
10993 2003-02-20 David Carlton <carlton@math.stanford.edu>
10995 * symtab.c (search_symbols): Revert the search_symbols part of my
10996 2002-12-23 patch. Add comment.
10998 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11000 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11001 * dbxread.c (elfstab_build_psymtabs): Don't call
11002 install_minimal_symbols.
11003 (stabsect_build_psymtabs): Likewise.
11004 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11006 * somread.c (som_symfile_read): Call install_minimal_symbols
11007 and do_cleanups earlier.
11008 * nlmread.c (nlm_symfile_read): Likewise.
11009 * mdebugread.c (elfmdebug_build_psymtabs): Call
11010 install_minimal_symbols and make appropriate cleanups.
11012 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11014 * solib.c (reload_shared_libraries): New function.
11015 (_initialize_solib): Add callbacks for ``set solib-search-path''
11016 and ``set solib-absolute-prefix''.
11018 2003-02-20 David Carlton <carlton@math.stanford.edu>
11020 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11022 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11023 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11024 * ada-typeprint.c (ada_typedef_print): Ditto.
11025 * ax-gdb.c (gen_var_ref): Ditto.
11026 * breakpoint.c (print_one_breakpoint): Ditto.
11027 * buildsym.c (finish_block): Ditto.
11028 * c-valprint.c (c_val_print): Ditto.
11029 * expprint.c (print_subexp): Ditto.
11030 * findvar.c (locate_var_value): Ditto.
11031 * infcmd.c (jump_command): Ditto.
11032 * linespec.c (decode_line_2, decode_compound): Ditto.
11033 * maint.c (maintenance_translate_address): Ditto.
11034 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11035 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11037 * p-valprint.c (pascal_val_print): Ditto.
11038 * stabsread.c (define_symbol): Ditto.
11039 * stack.c (print_frame, frame_info, print_block_frame_locals)
11040 (print_frame_arg_vars, return_command): Ditto.
11041 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11042 * symmisc.c (print_symbol): Ditto.
11043 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11044 (compare_search_syms, print_symbol_info, print_msymbol_info)
11045 (rbreak_command): Ditto.
11046 * tracepoint.c (tracepoints_info): Ditto.
11047 * typeprint.c (typedef_print): Ditto.
11048 * valops.c (value_of_variable, hand_function_call): Ditto.
11049 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11050 * ada-typeprint.c: Update Copyright.
11051 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11052 * tracepoint.c, cli/cli-cmds.c: Ditto.
11054 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11056 * frame.c (generic_unwind_get_saved_register): Make non-static.
11057 * frame.h (generic_unwind_get_saved_register): Declare.
11058 * mips-tdep.c (read_next_frame_reg): Fetch register from
11059 current regcache when frame is NULL.
11060 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11062 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11063 instead of frame_register_unwind().
11065 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11067 * remote-sim.c (gdbsim_insert_breakpoint)
11068 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11071 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11073 * remote.c (_initialize_remote): Add commands "set/show remote
11074 hardware-watchpoint-limit" and "set/show remote
11075 hardware-breakpoint-limit".
11076 (remote_hw_watchpoint_limit): Initialize to -1.
11077 (remote_hw_breakpoint_limit): Ditto.
11078 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11080 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11082 * coff-pe-read.c: New file - support reading of minimal symbols from a
11083 portable executable using the export table.
11084 * coff-pe-read.h: New file.
11085 * coffread.c: Include coff-pe-read.h.
11086 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11087 debugging symbols found.
11088 * Makefile.in (SFILES): Add coff-pe-read.o.
11089 (coff_pe_read_h): Define.
11090 (COMMON_OBS): Add coff-pe-read.o.
11091 (coffread.o): Add coff_pe_read_h dependency.
11092 (coff-pe-read.o): New target.
11094 2003-02-19 David Carlton <carlton@math.stanford.edu>
11096 * Makefile.in (SFILES): Add block.c.
11098 (COMMON_OBS): Add block.o.
11100 (x86-64-tdep.o): Add $(block_h).
11101 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11102 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11103 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11104 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11105 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11106 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11107 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11108 * value.h: Add opaque declaration for struct block.
11109 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11110 * ada-lang.h: Ditto.
11111 * x86-64-tdep.c: #include "block.h"
11112 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11113 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11114 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11115 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11116 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11117 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11118 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11119 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11120 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11121 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11122 * symtab.c (block_function): Ditto.
11123 (contained_in): Ditto.
11124 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11125 block.h. Add opaque declaration for struct block.
11126 * symtab.h: Move block_function and contained_in declarations to
11127 block.h. Add opaque declarations for struct block, struct
11129 (struct block): Move to block.h.
11130 (struct blockvector): Ditto.
11131 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11132 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11133 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11134 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11135 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11137 * block.c: New file.
11138 * block.h: New file.
11140 2003-02-19 Theodore A. Roth <troth@openavr.org>
11142 * avr-tdep.c (avr_extract_return_value): Remove function.
11143 (avr_store_return_value): Remove function.
11144 (avr_extract_struct_value_address): Remove function.
11145 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11147 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11149 * rs6000-tdep.c: Include "gdb_assert.h".
11150 (registers_e500): Add "acc" and "spefscr".
11151 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11152 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11153 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11155 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11157 2003-02-18 Keith Seitz <keiths@redhat.com>
11159 * Makefile.in: Add gdbtk-interps.c.
11161 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11163 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11164 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11166 2003-02-18 Andrew Cagney <cagney@redhat.com>
11168 * symtab.h (struct objfile): Add opaque declaration.
11170 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11172 From Jim Ingham <jingham@apple.com>:
11173 * dbxread.c (process_one_symbol): Use last_function_start rather
11174 than function_start_offset to find the real beginning of the
11175 current function. The latter is just the text section offset on
11176 some systems, the former is always the real function start.
11178 2003-02-17 Andrew Cagney <cagney@redhat.com>
11180 * configure.in: Revert ${target} != ${host}.
11182 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11184 * configure.in (Makefile): Use the test ${target} != ${host},
11185 instead of the absence of the "nm.h" file, to determine of the
11186 configuration non-native.
11187 * configure: Regenerate.
11189 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11191 From Brian Ford <ford@vss.fsi.com>
11193 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11194 conditionalize tui_active test.
11195 (lookup_cmd_1): Ditto.
11197 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11199 * configure.in: Add check for _etext.
11200 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11202 * config.in, configure: regenerated.
11204 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11206 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11208 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11210 * main.c (tui_version): Delete variable.
11211 (captured_main): When --tui, set interpreter_p to "tui" instead of
11212 enabling tui_version.
11213 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11215 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11216 * cli/cli-cmds.c (disassemble_command): Ditto.
11217 * defs.h (tui_version): Delete declaration.
11218 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11219 (tui-interp.o): Add rules.
11220 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11222 2003-02-14 Christopher Faylor <cgf@redhat.com>
11224 * win32-nat.c (register_loaded_dll): Correctly set address range for
11227 2003-02-12 Jason Molenda (jmolenda@apple.com)
11229 * symmisc.c (print_objfile_statistics): Include information about
11230 the number of psymtabs and symtabs in each object file.
11232 2003-02-13 Keith R Seitz <keiths@redhat.com>
11234 * main.h (struct captured_main_args): Add interpreter_p.
11235 * main.c (captured_main): Initialize interpreter_p from context.
11236 * gdb.c (main): Set interpreter_p argument.
11237 * Makefile.in (gdb.o): Add dependency for interps.h.
11239 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11241 * event-top.c (cli_command_loop): Delete declaration.
11242 (_initialize_event_loop): Delete function setting event_loop_hook.
11243 * event-top.h (cli_command_loop): Declare. Update copyright.
11244 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11245 * interps.c (current_interp_command_loop): When event_loop_p, call
11248 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11250 * interps.h (interp_command_loop_ftype): Change return type to
11253 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11255 * x86-64-tdep.c (x86_64_extract_return_value)
11256 (x86_64_store_return_value): Use regcache instead of regbuf.
11257 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11258 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11260 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11262 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11263 * aclocal.m4: Regenerate.
11264 * configure: Regenerate.
11266 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11267 TCL_LD_SEARCH_FLAGS.
11269 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11271 * dwarf2cfi.c: Reindented.
11273 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11275 * interps.c (clear_interpreter_hooks): Convert function definition
11278 2003-02-07 David Carlton <carlton@math.stanford.edu>
11280 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11282 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11284 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11285 (struct type): ...to here.
11286 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11288 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11289 (replace_type): Set length on all type variants for a given type.
11291 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11293 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11295 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11297 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11299 * Makefile.in (symm-nat.o): Update dependencies.
11300 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11301 (lynx-nat.o, ia64-linux-nat.): Ditto.
11302 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11303 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11304 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11306 * Makefile.in (inflow_h): Define.
11307 (procfs.o, inflow.o, procfs.o): Update dependencies.
11308 * inftarg.c (child_stop): Delete extern declaration of
11309 inferior_process_group. Include "inflow.h".
11310 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11311 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11312 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11313 (our_process_group, inferior_process_group): Extern declarations.
11315 * procfs.c: Include "gdb_assert.h".
11317 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11318 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11319 * jv-typeprint.c (java_type_print_base): Ditto.
11320 * typeprint.c (typedef_print): Eliminate STREQ.
11321 * cli/cli-script.c (define_command, define_command): Ditto.
11322 * main.c (captured_main): Ditto.
11323 * values.c (lookup_internalvar): Ditto.
11324 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11325 within `if' conditional.
11326 * linespec.c (decode_line_2): Ditto.
11327 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11328 (bfd_openw_with_cleanup): Ditto.
11330 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11332 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11333 legacy_extract_return_value and store_return_value to
11334 legacy_return_value.
11336 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11338 * win32-nat.c (get_relocated_section_addrs): New function. Find
11339 section load addresses for symbol handling in relocated DLLs.
11340 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11342 2003-02-05 Fred Fish <fnf@intrinsity.com>
11344 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11346 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11348 (angel_RDI_info): Ditto.
11349 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11351 (threads_continue_all_with_signals): Ditto.
11353 2003-02-05 Jim Ingham <jingham@apple.com>
11354 Keith Seitz <keiths@redhat.com>
11355 Elena Zannoni <ezannoni@redhat.com>
11356 Andrew Cagney <ac131313@redhat.com>
11358 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11359 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11360 (SUBDIR_MI_OBS): Add "mi-interp.o".
11361 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11362 (SFILES): Add "interps.c".
11363 (COMMON_OBS): Add "interps.o".
11364 (interps_h, mi_main_h): Define.
11365 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11366 (mi-main.o, main.o, event-top.o): Update dependencies.
11367 * cli/cli-interp.c: New file.
11368 * interps.h, interps.c: New files.
11369 * top.c: (gdb_init): Don't install the default interpreter, handed
11371 * main.c: Include "interps.h".
11372 (interpreter_p): Note that it should malloc'ed.
11373 (captured_command_loop): Call current_interp_command_loop.
11374 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11375 xfree and xstrdup when updating interpreter_p. Install the
11376 default interpreter. Add hack to stop mi1's copyright notice
11378 * event-top.h (gdb_setup_readline): Declare.
11379 (gdb_disable_readline): Declare.
11380 * event-top.c: Include "interps.h".
11381 (display_gdb_prompt): Call current_interp_display_prompt_p.
11382 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11383 gdb_stdlog, and gdb_stdtarg.
11384 (_initialize_event_loop): Don't call gdb_setup_readline.
11385 * cli-out.c (cli_out_set_stream): New function.
11386 * cli-out.h (cli_out_set_stream): Declare.
11388 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11390 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11391 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11392 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11393 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11394 config/i386/i386v42mp.mt: Removed.
11396 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11398 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11401 2003-02-05 Michael Chastain <mec@shout.net>
11403 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11404 2.12.1 and earlier versions.
11406 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11408 Remove orphaned hosts, targets and files.
11409 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11410 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11411 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11412 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11413 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11414 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11415 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11416 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11417 * config/sparc/tm-sp64sim.h: Delete.
11418 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11420 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11421 mips*-dec-mach3* targets.
11423 2003-02-04 Michael Chastain <mec@shout.net>
11425 * NEWS: Fix typo: sepcifying -> specifying.
11427 2003-02-04 Michael Chastain <mec@shout.net>
11429 * dwarfread.c: Add documentation on the state of dwarf-1,
11430 looking towards obsoletion.
11432 2003-02-03 Michael Chastain <mec@shout.net>
11434 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11435 gdb/testsuite/gdb.c++/pr-1023.exp.
11437 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11439 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11440 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11442 * utils.c (init_page_info): Delete reference to MPW in comments.
11443 * main.c (captured_main): Delete #ifdef MPW.
11445 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11447 * NEWS: Note that the m32r-*-elf* is obsolete.
11448 * monitor.c (monitor_expect): Obsolete reference to m32r.
11449 * configure.tgt: Mark m32r-*-elf* as obsolete.
11450 * MAINTAINERS: Mark m32k as obsolete.
11451 * m32r-rom.c: Obsolete file.
11452 * config/m32r/m32r.mt: Obsolete file.
11453 * config/m32r/tm-m32r.h: Obsolete file.
11454 * m32r-stub.c: Obsolete file.
11455 * m32r-tdep.c: Obsolete file.
11457 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11459 * NEWS: Mention that the z8k-zilog-none is obsolete.
11460 * MAINTAINERS: Mark z8k as obsolete.
11461 * configure.tgt: Obsolete the z8k-*-coff* target.
11462 * config/z8k/z8k.mt: Obsolete file.
11463 * config/z8k/tm-z8k.h: Obsolete file.
11464 * z8k-tdep.c: Obsolete file.
11466 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11468 * NEWS: Mention that the mn10200-elf is obsolete.
11469 * configure.tgt: Obsolete mn10200-*-* target.
11470 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11471 mention that the mn10200 is obsolete.
11472 * breakpoint.h: Ditto.
11473 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11474 * config/mn10200/mn10200.mt: Obsolete file.
11475 * config/mn10200/tm-mn10200.h: Obsolete file.
11476 * mn10200-tdep.c: Obsolete file.
11478 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11480 * MAINTAINERS: Mark h8500 as obsolete.
11481 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11482 * findvar.c (value_from_register): Ditto.
11483 * h8500-tdep.c: Mark file as obsolete.
11484 * config/h8500/h8500.mt: Ditto.
11485 * config/h8500/tm-h8500.h: Ditto.
11486 * NEWS: Mention that h8500 is obsolete.
11488 2003-02-04 David Carlton <carlton@math.stanford.edu>
11490 * objfiles.c (allocate_objfile): Always set name. Add comment at
11492 * jv-lang.c (get_dynamics_objfile): Add comment.
11494 2003-02-04 David Carlton <carlton@math.stanford.edu>
11496 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11497 * printcmd.c (build_address_symbolic): Replace uses of
11498 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11499 SYMBOL_NAME, and asm_demangle.
11502 2003-02-04 David Carlton <carlton@math.stanford.edu>
11504 * linespec.c (decode_compound): Extract code into
11506 (lookup_prefix_sym): New function.
11508 2003-02-04 David Carlton <carlton@math.stanford.edu>
11510 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11511 FLOAT_COERCION_BADNESS.
11512 * gdbtypes.c (rank_one_type): Replace all uses of
11513 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11515 2003-02-04 Jim Blandy <jimb@redhat.com>
11517 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11518 section, let dwarf_macinfo_section point to it, not
11521 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11523 Pointed out by Anton Blanchard <anton@samba.org>.
11524 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11525 (ppc_linux_at_sigtramp_return_path): Use it.
11527 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11529 * defs.h (streq): Add prototype.
11530 * utils.c (streq): New function.
11532 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11533 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11534 * mdebugread.c (new_symbol): Likewise.
11535 * stabsread.c (define_symbol): Likewise.
11536 * coffread.c (process_coff_symbol): Likewise.
11537 * dwarfread.c (new_symbol): Likewise.
11539 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11540 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11542 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11543 SYMBOL_INIT_DEMANGLED_NAME.
11544 * objfiles.c: Include "hashtab.h".
11545 (allocate_objfile): Call htab_set_functions_ex for the
11546 demangled_names_hash.
11547 (free_objfile): Call htab_delete for the demangled_names_hash.
11548 * objfiles.h (struct htab): Add declaration.
11549 (struct objfile): Add demangled_names_hash.
11550 * symfile.c: Include "hashtab.h".
11551 (reread_symbols): Call htab_delete for the demangled_names_hash.
11552 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11553 SYMBOL_NAME in the bcache.
11554 * symtab.c: Include "hashtab.h". Update comments.
11555 (create_demangled_names_hash, symbol_set_names): New functions.
11556 (symbol_find_demangled_name): New function, broken out from
11557 symbol_init_demangled_names.
11558 (symbol_init_demangled_names): Use it.
11559 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11560 (SYMBOL_SET_NAMES): New macro.
11561 (symbol_set_names): Add prototype.
11563 2003-02-03 Jim Blandy <jimb@redhat.com>
11565 Use a single, consistent representation for an empty minimal
11566 symbol table in an objfile.
11567 * objfiles.c (terminate_minimal_symbol_table): New function.
11568 (allocate_objfile): Call it.
11569 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11570 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11572 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11573 objfile has minimal symbols, compare minimal_symbol_count to zero,
11574 instead of comparing msymbols with NULL.
11575 * objfiles.c (have_minimal_symbols): Same.
11576 * solib-sunos.c (solib_add_common_symbols): Call
11577 terminate_minimal_symbol_table.
11578 * symfile.c (reread_symbols): Same.
11580 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11582 * s390-tdep.c (s390_address_class_type_flags)
11583 (s390_address_class_type_flags_to_name)
11584 (s390_address_class_name_to_type_flags): New functions.
11585 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11586 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11588 2003-02-03 Michael Snyder <msnyder@redhat.com>
11590 * arm-tdep.c: Fix spell-o in comment.
11592 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11594 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11595 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11596 error messages to contain BFD filename.
11598 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11600 Fix PR gdb/742 gdb/743 gdb/877
11601 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11602 (do_mixed_source_and_assembly): Use
11603 make_cleanup_ui_out_tuple_begin_end and
11604 make_cleanup_ui_out_tuple_begin_end.
11605 (do_mixed_source_and_assembly): Ditto.
11606 * thread.c (do_captured_list_thread_ids): Ditto.
11607 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11608 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11609 ui_out_tuple_end): Delete prototypes.
11610 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11611 ui_out_list_end, ui_out_tuple_end): Delete.
11613 From Kevin Buettner <kevinb@redhat.com>:
11614 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11615 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11616 (do_cleanup_table_end): New functions.
11617 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11618 Use cleanups to invoke_ui_out_tuple_end().
11619 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11620 * cli/cli-setshow.c (cmd_show_list): Use
11621 make_cleanup_ui_out_tuple_begin_end.
11623 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11625 * frame.c (frame_unwind_register): New function.
11626 (frame_unwind_unsigned_register): Use.
11627 (frame_unwind_signed_register): Use.
11628 (frame_read_register): New function.
11629 * frame.h (frame_unwind_register): Declare.
11630 (frame_read_register): Declare.
11632 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11633 and frame_unwind_register instead of read_memory, write_register
11634 and deprecated_write_register_bytes.
11636 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11638 * frame.h: Note that namelen can be negative.
11639 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11642 * NEWS: Mention that the d10v's `regs' command is deprecated.
11643 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11644 (d10v_print_registers_info): New function.
11645 (show_regs): Call d10v_print_registers_info.
11646 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11648 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11650 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11651 lost in the previous patch.
11653 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11655 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11656 * stack.c (print_frame_info_base): Output complete FRAME tuple
11657 for synthesized frames.
11659 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11661 * mips-nat.c (zerobuf): Delete.
11662 (fetch_inferior_registers): Alloc local zerobuf.
11663 (fetch_core_registers): Alloc local zerobuf.
11664 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11665 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11666 * thread-db.c (thread_db_store_registers): Ditto.
11667 * sh-tdep.c (sh_do_register): Ditto.
11668 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11669 * remote-sim.c (gdbsim_store_register): Ditto.
11670 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11671 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11672 * monitor.c (monitor_supply_register): Ditto.
11673 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11674 * mips-nat.c (fetch_inferior_registers): Ditto.
11675 * m68klinux-nat.c (fetch_register): Ditto.
11676 * lynx-nat.c (fetch_inferior_registers): Ditto.
11677 (fetch_inferior_registers): Ditto.
11678 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11679 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11680 (hpux_thread_store_registers): Ditto.
11681 * hppah-nat.c (fetch_register): Ditto.
11682 * hppab-nat.c (fetch_register): Ditto.
11683 * hppa-tdep.c (pa_register_look_aside): Ditto.
11684 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11685 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11687 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11689 * gdbarch.sh: Explictly specify all method levels. When a
11690 variable with an empty level, provide a non-multi-arch default.
11691 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11692 * gdbarch.h: Re-generate.
11693 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11694 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11696 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11698 * defs.h (host_pointer_to_address): Delete declaration.
11699 (address_to_host_pointer): Delete declaration.
11700 * utils.c (host_pointer_to_address): Delete function.
11701 (address_to_host_pointer): Delete function.
11702 * procfs.c (procfs_address_to_host_pointer): New function.
11703 * procfs.c (proc_set_watchpoint): Use.
11704 (procfs_can_use_hw_breakpoint): Update comments.
11705 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11706 (som_solib_add): Use.
11707 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11708 * hppa-tdep.c (unwind_command): Use.
11710 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11712 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11715 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11716 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11717 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11718 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11719 (define_symbol): Update.
11720 * symfile.c (generic_load): Remove references to nindy.
11721 * symtab.c: Remove references to nindy.
11723 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11725 * infcmd.c (print_float_info): Delete code conditional on
11727 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11728 * config/m68k/nm-apollo68b.h: Ditto.
11729 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11730 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11731 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11733 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11735 * config/i386/tm-i386os9k.h: Removed.
11737 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11738 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11739 they're identical to i[3456]86-*-sysv* now.
11740 * config/i386/i386v32.mh: Removed.
11741 * config/i386/xm-i386v32.h: Removed.
11742 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11744 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11746 * config/i386/i386dgux.mh: Removed.
11747 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11749 * configure.in: Fix typo.
11750 * configure: Regenerated.
11752 2003-01-31 David Carlton <carlton@math.stanford.edu>
11754 * dwarf2read.c (dwarf2_locate_sections): Set
11755 dwarf_ranges_section.
11757 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11759 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11760 * utils.c: Update comments documenting legitimate uses of PTR.
11762 * utils.c: Re-indent.
11764 * config/djgpp/fnchange.lst: Delete nindy files.
11765 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11766 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11767 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11768 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11769 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11770 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11771 * Makefile.in (init.c): Remove nindy references.
11772 (saber_gdb): Delete rule.
11773 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11774 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11776 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11777 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11778 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11779 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11780 nindy-share/stop.h.
11781 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11782 * saber.suppress: Delete file.
11784 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11786 * dbxread.c (stabs_data): New static variable.
11787 (fill_symbuf): Support an in-memory buffer for stabs data.
11788 (stabs_seek): New function.
11789 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11790 (read_ofile_symtab): Use stabs_seek.
11791 (elfstab_build_psymtabs): Take an asection* instead of
11792 an offset and size. Relocate the stabs data if necessary.
11793 Save the section* for dbx_psymtab_to_symtab.
11794 * dwarf2read.c: Add section variables for each debug section.
11795 (dwarf2_locate_sections): Fill them in.
11796 (dwarf2_read_section): Take an asection* argument.
11797 Relocate the section contents if necessary.
11798 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11799 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11800 it to dwarf2_read_section.
11801 (dwarf2_build_frame_info): Update callers.
11802 * elfread.c (elf_symfile_read): Update call to
11803 elfstab_build_psymtabs.
11804 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11805 (DBX_STAB_SECTION): New macro.
11806 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11807 * symfile.c (symfile_dummy_outputs): New function.
11808 (symfile_relocate_debug_section): New function.
11809 * symfile.h (symfile_relocate_debug_section): Add prototype.
11811 2003-01-31 Richard Henderson <rth@redhat.com>
11813 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11814 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11815 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11816 * alpha-tdep.c (alpha_register_name): Add "unique".
11817 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11818 (ALPHA_UNIQUE_REGNUM): New.
11819 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11821 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11823 * README: Remove reference to Ericsson 1800 monitor.
11824 * Makefile.in (remote-es.o): Delete rule.
11825 (ALLDEPFILES): Delete remote-es.c.
11826 * remote-es.c: Delete file.
11827 * config/m68k/es1800.mt: Delete file.
11828 * config/djgpp/fnchange.lst: Update.
11829 * configure.tgt: Delete m68*-ericsson-* target.
11831 2003-01-31 Adam Fedor <fedor@gnu.org>
11833 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11834 Remove duplicate/shadowing variable of same name.
11836 2003-01-30 Jim Blandy <jimb@redhat.com>
11838 * symfile.c (find_separate_debug_file): Assert that the objfile's
11839 directory name we compute ends with a slash, and then assume that
11840 that's so everywhere we use it.
11842 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11844 * valops.c (value_assign): Flush frame cache after stores to memory
11847 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11849 * Makefile.in (mon960-rom.o): Delete rule.
11850 * mon960-rom.c: Delete file.
11852 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11854 * d10v-tdep.c: Include "frame-unwind.h".
11855 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11857 (next_addr, uses_frame): Delete.
11858 (struct d10v_unwind_cache): Define.
11859 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11860 Use info instead of next_addr and uses_frame globals.
11861 (d10v_frame_init_saved_regs): Delete function.
11862 (d10v_init_extra_frame_info): Delete function.
11863 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11864 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11865 init_frame_pc or frame_saved_pc.
11866 (d10v_pop_frame): Delete function.
11867 (do_d10v_pop_frame): Delete function.
11868 (d10v_frame_chain): Delete function.
11869 (d10v_frame_chain_valid): Delete function.
11870 (d10v_frame_pc_unwind): New function.
11871 (d10v_frame_id_unwind): New function.
11872 (saved_regs_unwinder): New function.
11873 (d10v_frame_register_unwind): New function.
11874 (d10v_frame_pop): New function.
11875 (d10v_frame_unwind): New variable.
11876 (d10v_frame_p): New function.
11877 (d10v_frame_saved_pc): Delete function.
11878 * Makefile.in (d10v-tdep.o): Update dependencies.
11880 2003-01-30 J. Brobecker <brobecker@gnat.com>
11882 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11883 causing some regressions due to a change in the default value
11886 2003-01-29 Richard Henderson <rth@redhat.com>
11887 Elena Zannoni <ezannoni@redhat.com>
11888 Daniel Jacobowitz <drow@mvista.com>
11891 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11893 (RANGES_SECTION): New.
11894 (dwarf_ranges_buffer): New variable.
11895 (struct comp_unit_head): Add member "die".
11896 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11897 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11898 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11899 (dwarf2_locate_sections): Likewise.
11900 (dwarf2_build_psymtabs): Read .debug_ranges.
11901 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11902 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11903 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11904 Look for DW_AT_ranges and return the bounding box.
11906 2003-01-29 Brian Ford <ford@vss.fsi.com>
11908 * win32-nat.c (cygwin_pid): Removed as unused.
11909 (child_attach): Try fall back to Cygwin pid.
11911 2003-01-29 Jim Blandy <jimb@redhat.com>
11913 * objfiles.h (struct objfile): Doc fix.
11915 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11917 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11918 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11919 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11920 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11921 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11922 (FRAME_SAVED_PC): Change to a function with predicate.
11923 * gdbarch.h, gdbarch.c: Re-generate.
11925 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11927 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11929 * complaints.c (complain): Delete function.
11930 * complaints.h (struct deprecated_complaint): Delete definition.
11931 (complain): Delete declaration.
11933 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11935 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11938 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11940 * sentinel-frame.h, sentinel-frame.c: New files.
11941 * Makefile.in (frame.o): Update dependencies.
11942 (SFILES): Add sentinel-frame.c.
11943 (sentinel_frame_h): Define.
11944 (COMMON_OBS): Add sentinel-frame.o.
11945 (sentinel-frame.o): Specify dependencies.
11946 * frame.c: Include "sentinel-frame.h".
11947 (frame_register_unwind): Rewrite assuming that there is always a a
11949 (frame_register, generic_unwind_get_saved_register): Ditto.
11950 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11951 (create_sentinel_frame, unwind_to_current_frame): New functions.
11952 (get_current_frame): Rewrite using create_sentinel_frame and
11953 unwind_to_current_frame. When possible, always create a frame.
11954 (create_new_frame): Set next to the sentinel frame.
11955 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11956 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11957 ID cache when necessary.
11958 (frame_saved_regs_id_unwind): Use frame_relative_level.
11959 (deprecated_generic_get_saved_register): Use frame_relative_level,
11960 get_frame_saved_regs, get_frame_pc, get_frame_base and
11962 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11965 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11967 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11969 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11971 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11972 (maintenance_set_profile_cmd): Use error () instead of warning ().
11974 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11976 * configure.in: Check that -pg works if using --enable-profiling.
11977 Check for monstartup and _mcleanup regardless of --enable-profiling.
11978 * maint.c: Check for monstartup and _mcleanup before using them.
11979 * config.in: Regenerated.
11980 * configure: Regenerated.
11982 2003-01-24 Nick Clifton <nickc@redhat.com>
11984 * Add sh2e support:
11986 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11988 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11989 (sh2e_show_regs): New.
11990 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11991 * config/sh/tm-sh.h: Added sh2e to comments.
11993 2003-01-23 Jim Blandy <jimb@redhat.com>
11995 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11996 symbols found)" message here; we haven't checked for a separate
11997 debug info file yet, so we don't know yet.
11998 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11999 we've looked everywhere. Also, there's no need to print a special
12000 message when we're loading the separate debug info file: the one
12001 symbol_file_add prints is fine.
12003 2003-01-23 Alexander Larsson <alexl@redhat.com>
12004 Jim Blandy <jimb@redhat.com>
12006 Add support for executables whose debug info has been separated
12007 out into a separate file, leaving only a link behind.
12008 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12009 and separate_debug_objfile_backlink.
12010 (put_objfile_before): New declaration.
12011 * symfile.c: #include "filenames.h".
12012 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12013 debug info in a separate file, read that, too. Save the addrs
12014 argument, so we can use it again to read the separated debug info;
12015 syms_from_objfile modifies the table we pass it.
12016 (reread_symbols): After re-reading an objfile, call
12017 reread_separate_symbols to refresh its separate debug info
12018 objfile, if it has one.
12019 (reread_separate_symbols, find_separate_debug_file,
12020 get_debug_link_info, separate_debug_file_exists): New functions.
12021 (debug_file_directory): New global var.
12022 (_initialize_symfile): Initialize debug_file_directory, and
12023 provide the new `set debug-file-directory' command to let the user
12025 * objfiles.c (free_objfile): If this objfile has its debug info in
12026 a separate objfile, free that one too. If this is itself a
12027 separate debug info objfile, clear our parent's backlink.
12028 (put_objfile_before): New function.
12029 * utils.c (gnu_debuglink_crc32): New function.
12030 * defs.h (gnu_debuglink_crc32): New declaration.
12031 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12032 * configure.in: Handle --with-separate-debug-dir config option.
12033 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12034 * acconfig.h (DEBUGDIR): New macro.
12035 * configure, aclocal.m4, config.in: Regenerated.
12037 2003-01-22 Jim Blandy <jimb@redhat.com>
12039 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12040 like the old symbol_file_add, but taking new arguments: you can
12041 now pass in either a `struct section_addr_info' list to say where
12042 each section is loaded, or a `struct section_offsets' table. Pass
12043 these new arguments through to syms_from_objfile as appropriate.
12044 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12045 with the appropriate quiescent values for the new arguments.
12047 * symfile.c: #include "gdb_assert.h".
12048 (syms_from_objfile): Add the ability to pass in a section offset
12049 table directly, as an alternative to the section_addr_info table.
12050 Document arguments better.
12051 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12052 * symfile.h (syms_from_objfile): Update declaration.
12053 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12055 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12057 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12059 Original patch by Tom Tromey <tromey@cygnus.com> and
12060 Jason Molenda <jmolenda@apple.com>.
12061 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12062 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12063 * NEWS: Mention profiling.
12064 * configure.in (--enable-gdbtk): Fix typo.
12065 (--enable-profiling): New. Set PROFILE_CFLAGS.
12066 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12068 (profiling_state): New variable.
12069 (mcleanup_wrapper): New function.
12070 (_initialize_maint): Remove NOTYET, fix call to
12071 add_setshow_boolean_cmd for "maint set profile".
12072 * configure: Regenerated.
12074 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12076 * Makefile.in (install-gdbtk): Install PNG images too.
12078 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12080 * exec.c (text_start): Delete global variable.
12081 (exec_file_attach): Make text_start local to the function.
12082 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12083 * valops.c (hand_function_call): Delete code that handles
12084 BEFORE_TEXT_END and AFTER_TEXT_END.
12085 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12086 of CALL_DUMMY_LOCATION.
12087 * gdbarch.c: Regenerate.
12088 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12089 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12090 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12091 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12092 (text_end): Delete extern declaration.
12094 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12096 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12097 * blockframe.c (backtrace_below_main): Move to "frame.c".
12098 (frame_chain_valid): Delete check for backtrace_below_main.
12099 (_initialize_blockframe): Delete initialization, move ``set
12100 backtrace-below-main'' command to "frame.c".
12101 (do_flush_frames_sfunc): Delete function.
12102 * frame.c: Include "command.h" and "gdbcmd.h".
12103 (frame_type_from_pc): New function.
12104 (create_new_frame): Use frame_type_from_pc.
12105 (legacy_get_prev_frame): New function.
12106 (get_prev_frame): Rewrite. When an old style frame, call
12107 legacy_get_prev_frame. Otherwize, unwind the PC first.
12108 (_initialize_frame): Add ``set backtrace-below-main'' command.
12109 * Makefile.in (frame.o): Update dependencies.
12111 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12113 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12114 DEPRECATED_REGISTERS_INFO.
12116 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12118 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12119 Maintainers'. Update `Various Maintainers'.
12121 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12123 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12124 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12125 Suppress actual parameters when `-'.
12126 * gdbarch.h, gdbarch.c: Regenerate.
12128 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12130 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12131 code handling dummy frames.
12133 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12135 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12136 (struct frame_unwind): Add field pop.
12137 * frame.h (frame_pop): Declare.
12138 * frame.c (frame_saved_regs_pop): New function.
12139 (trad_frame_unwinder): Add frame_saved_regs_pop.
12140 (frame_pop): New function.
12141 * dummy-frame.c (dummy_frame_pop): New function.
12142 (discard_innermost_dummy): New function.
12143 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12144 (dummy_frame_unwind): Add dummy_frame_pop.
12145 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12146 * valops.c (hand_function_call): Ditto.
12147 * stack.c (return_command): Ditto.
12149 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12151 * cris-tdep.c: Fix function declaration indentation.
12152 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12153 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12154 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12155 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12156 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12157 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12159 2003-01-18 Michael Chastain <mec@shout.net>
12161 * README (Unpacking and Installation -- quick overview):
12162 Warn against ".../gdb-5.3/gdb/configure".
12164 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12166 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12167 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12168 (struct frame_unwind): Declare opaque.
12169 (dummy_frame_p): Declare function.
12170 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12171 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12172 * dummy-frame.c: Include "frame-unwind.h".
12173 (dummy_frame_p): New function.
12174 (dummy_frame_unwind): New variable.
12175 * frame.c: Include "frame-unwind.h".
12176 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12177 to use the new unwind field.
12178 (set_unwind_by_pc): Delete function.
12179 (create_new_frame, get_prev_frame): Set unwind field using
12180 frame_unwind_find_by_pc.
12181 (trad_frame_unwind, trad_frame_unwinder): New variables.
12182 * frame.h (trad_frame_unwind): Declare variable.
12183 (frame_id_unwind_ftype): Delete declaration.
12184 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12185 (struct frame_unwind): Declare opaque.
12186 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12187 register_unwind with a single unwind pointer.
12188 * frame-unwind.h, frame-unwind.c: New files.
12189 * Makefile.in (SFILES): Add frame-unwind.c.
12190 (frame_unwind_h): Define.
12191 (COMMON_OBS): Add frame-unwind.o.
12192 (frame-unwind.o): Specify dependencies.
12193 (frame.o, dummy-frame.o): Update dependencies.
12195 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12197 * ada-valprint.c: Eliminate PTR.
12198 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12199 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12200 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12201 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12202 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12203 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12204 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12206 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12208 * main.c (captured_main): Don't use PTR.
12209 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12210 * gdbtypes.c (lookup_primitive_typename): Ditto.
12211 (lookup_struct_elt_type): Ditto.
12212 * f-valprint.c (info_common_command): Ditto.
12213 (list_all_visible_commons): Ditto.
12214 * jv-typeprint.c (java_type_print_base): Ditto.
12216 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12217 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12218 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12219 i386-interix-nat.c and i386-interix-tdep.c. Rename
12220 m68klinux-nat.c and m68klinux-tdep.c. Rename
12221 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12222 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12223 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12224 * main.c (captured_main): Use xfree, not free.
12226 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12228 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12229 ID back using a parameter.
12230 * frame.c (frame_id_unwind): Update call.
12231 (frame_saved_regs_id_unwind): Update.
12232 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12233 * dummy-frame.h (struct frame_id): Add opaque declaration.
12234 (dummy_frame_id_unwind): Update declaration.
12236 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12238 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12240 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12242 * MAINTAINERS (Stephen P. Smith): Updated email address.
12244 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12247 * breakpoint.c (until_break_command): Add new argument. Use it to
12248 decide whether to stop only at the current frame or not.
12249 * breakpoint.h (until_break_command): Update prototype.
12250 * infcmd.c (until_command): Add new argument to until_break_command
12252 (advance_command): New function.
12253 (_initialize_infcmd): Update help string for 'until' command.
12254 Add new 'advance' command.
12256 2003-01-14 David Carlton <carlton@math.stanford.edu>
12258 * linespec.c (decode_line_1): Normalize comments.
12259 (set_flags): Ditto.
12260 (locate_first_half): Ditto.
12261 (decode_compound): Ditto.
12262 (symtab_from_filename): Ditto.
12263 (decode_all_digits): Ditto.
12264 (decode_dollar): Ditto.
12265 (find_methods): Ditto.
12266 (find_toplevel_char): Ditto.
12268 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12270 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12271 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12272 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12273 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12274 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12275 * language.c, language.h, m32r-tdep.c: Update copyright.
12276 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12277 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12278 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12279 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12280 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12281 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12283 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12285 * stabsread.h (process_later, resolve_cfront_continuation):
12287 Update copyright years.
12288 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12289 Update copyright year.
12290 * dbxread.c(struct cont_elem): Obsolete.
12291 (process_later, process_now): Obsolete functions.
12292 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12293 Update copyright year.
12294 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12295 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12296 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12297 (parse_partial_symbols): Obsolete cfront support.
12299 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12301 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12302 read_cfront_baseclasses, read_cfront_member_functions,
12303 resolve_cfront_continuation,read_cfront_static_fields,
12304 copy_cfront_struct_fields): Obsolete functions.
12305 (define_symbol, read_one_struct_field): Obsolete cfront support.
12306 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12307 Update Copyright year.
12309 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12311 * stack.c (print_frame_info, print_stack_frame_base_stub,
12312 print_stack_frame_base, show_and_print_stack_frame_stub,
12313 show_and_print_stack_frame, print_only_stack_frame_stub,
12314 print_only_stack_frame): Delete functions.
12315 (print_stack_frame_stub): Call print_frame_info instead of
12316 print_frame_info_base.
12317 (print_frame_info_base): Rename to print_frame_info.
12318 (backtrace_command_1): Call print_frame_info, instead of
12319 print_frame_info_base.
12320 (current_frame_command): Call print_stack_frame, instead of
12321 print_only_stack_frame.
12322 (frame_command): Call print_stack_frame, instead of
12323 show_and_print_stack_frame.
12324 (up_command): Ditto.
12325 (down_command): Ditto.
12326 * frame.h (print_only_stack_frame): Delete prototype.
12327 * infrun.c (normal_stop): Call print_stack_frame, instead of
12328 show_and_print_stack_frame.
12329 * thread.c (info_threads_command): Call print_stack_frame, instead
12330 of print_only_stack_frame.
12332 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12334 * README (Graphical interface to GDB): Update URL. Point at
12337 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12340 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12342 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12345 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12347 * thread-db.c (attach_thread): Prototype.
12348 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12349 thread information (ti), and valid flags (th_valid, ti_valid).
12350 (attach_thread): Move target_pid_to_str call to after the thread
12351 is added to GDB's list. Initialize the cache.
12352 (thread_get_info_callback, thread_db_map_id2thr)
12353 (thread_db_get_info): New functions.
12354 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12355 (thread_db_store_registers, thread_db_thread_alive)
12356 (thread_db_get_thread_local_address): Use them.
12357 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12358 of calling error() for threads in unknown state.
12360 (clear_lwpid_callback): New function.
12361 (thread_db_resume): Use it to clear the cache.
12363 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12365 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12366 (resume_callback): Remove dead code.
12368 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12370 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12372 * gdbarch.h, gdbarch.c: Regenerate.
12373 * stack.c (frame_info): Only initialize the saved registers when
12374 FRAME_INIT_SAVED_REGS_P.
12375 * frame.c (frame_saved_regs_register_unwind): Assert
12376 FRAME_INIT_SAVED_REGS_P.
12377 (deprecated_generic_get_saved_register): Ditto.
12379 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12381 * source.c (openp): Squelch warning about "filename".
12383 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12385 * source.c (openp): If the file does not exist don't necessarily
12388 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12391 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12392 (integer_types_same_name_p): New function.
12393 (rank_one_type): Use it.
12394 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12396 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12398 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12400 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12401 * configure.in: Add --with-sysroot.
12402 * configure: Regenerated.
12403 * main.c (gdb_sysroot): New variable.
12404 (captured_main): Initialize gdb_sysroot.
12405 * defs.h (gdb_sysroot): New extern declaration.
12406 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12408 2003-01-12 Michael Chastain <mec@shout.net>
12410 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12412 2003-01-12 Michael Chastain <mec@shout.net>
12414 * top.c (print_gdb_version): Bump copyright year to 2003.
12416 2003-01-12 David Carlton <carlton@bactrian.org>
12418 * linespec.c (symtab_from_filename): Rename variable 's' to
12421 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12423 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12425 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12427 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12429 * d10v-tdep.c: Include "gdb_assert.h".
12430 (d10v_store_return_value): Rewrite to match current interface.
12431 (d10v_extract_struct_value_address): Ditto.
12432 (d10v_extract_return_value): Ditto.
12433 (d10v_gdbarch_init): Set store_restore_value,
12434 extract_struct_value_address and extract_return_value.
12436 2003-01-12 J. Brobecker <brobecker@gnat.com>
12438 * hpread.c (set_namestring): New procedure replacing the
12439 SET_NAMESTRING macro.
12440 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12441 by calls to set_namestring.
12443 2003-01-11 J. Brobecker <brobecker@gnat.com>
12445 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12446 a compilation warning.
12447 (hpread_process_one_debug_symbol): Likewise.
12449 2003-01-10 David Carlton <carlton@math.stanford.edu>
12451 * linespec.c (decode_line_1): Rename variable 's' to
12453 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12454 (decode_dollar): Ditto.
12455 (decode_variable): Ditto.
12456 (symbol_found): Ditto.
12458 2003-01-09 Michael Chastain <mec@shout.net>
12460 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12462 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12464 * win32-nat.c (set_process_privilege): New function.
12465 (child_attach): Call set_process_privilege() to enable the
12466 SE_DEBUG_NAME user privilege if available in process token.
12468 2003-01-10 J. Brobecker <brobecker@gnat.com>
12470 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12471 compilation error in the previous revision.
12473 2003-01-09 David Carlton <carlton@math.stanford.edu>
12475 * linespec.c: Update copyright.
12477 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12479 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12480 than inferior_ptid.
12481 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12483 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12485 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12487 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12488 (frame_saved_regs_zalloc): Update.
12489 (frame_saved_regs_register_unwind): Update.
12490 (create_new_frame): Update.
12491 (get_prev_frame): Update.
12492 (frame_extra_info_zalloc): Update.
12493 (deprecated_get_frame_saved_regs): Update.
12494 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12495 * cris-tdep.c: Update comment.
12497 * somsolib.h: Fix function indentation.
12498 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12499 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12500 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12501 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12502 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12504 * infrun.c (follow_fork): Use ISO C definition.
12505 * expprint.c (print_subexp): Use xfree instead of free.
12506 * charset.c: Include "gdb_string.h" instead of <string.h>.
12507 (register_iconv_charsets): Use ISO C definition.
12508 (host_charset, target_charset): Ditto.
12509 * Makefile.in (charset.o): Update dependencies.
12510 (mi-cmd-env.o): Update dependencies.
12512 2003-01-08 Andrew Cagney <cagney@redhat.com>
12514 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12517 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12519 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12520 build directories. Save edited gdb output in Mbuild.log. If a
12521 build fails, remove any final GDB executable.
12523 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12525 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12526 replacing hex constants with function names and stripping leading
12527 file name directory prefixes.
12529 2003-01-08 Andrew Cagney <cagney@redhat.com>
12531 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12534 2003-01-08 David Carlton <carlton@math.stanford.edu>
12536 * linespec.c (decode_line_1): Move code into decode_variable.
12537 (decode_variable): New function.
12539 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12541 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12543 2003-01-08 Andrew Cagney <cagney@redhat.com>
12545 * cris-tdep.c (cris_frame_init_saved_regs): Use
12546 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12548 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12549 (sh64_nofp_frame_init_saved_regs): Ditto.
12550 (sh_fp_frame_init_saved_regs): Ditto.
12551 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12552 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12553 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12554 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12556 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12558 * minsyms.c (lookup_minimal_symbol): Update comment.
12559 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12560 (lookup_minimal_symbol_solib_trampoline): Likewise.
12562 2003-01-08 Andrew Cagney <cagney@redhat.com>
12564 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12565 frame_relative_level.
12567 * alpha-tdep.c: Use get_frame_extra_info.
12568 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12569 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12570 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12571 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12573 * alpha-tdep.c: Use get_next_frame.
12574 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12575 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12576 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12577 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12578 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12579 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12580 * xstormy16-tdep.c: Ditto.
12582 2003-01-07 Andrew Cagney <cagney@redhat.com>
12584 * alpha-tdep.c: Use get_frame_base.
12585 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12586 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12587 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12588 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12589 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12590 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12591 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12592 * config/sparc/tm-sparc.h: Ditto.
12594 2003-01-07 Andrew Cagney <cagney@redhat.com>
12596 * frame.c (deprecated_get_frame_context): New function.
12597 (deprecated_set_frame_context): New function.
12598 * frame.h (deprecated_get_frame_context): Declare.
12599 (deprecated_set_frame_context): Declare.
12600 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12601 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12603 2003-01-07 Andrew Cagney <cagney@redhat.com>
12605 * frame.c (deprecated_set_frame_next_hack): New function.
12606 (deprecated_set_frame_prev_hack): New function.
12607 * frame.h (deprecated_set_frame_next_hack): Declare.
12608 (deprecated_set_frame_prev_hack): Declare.
12609 * mcore-tdep.c (analyze_dummy_frame): Use
12610 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12611 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12613 2003-01-07 David Carlton <carlton@math.stanford.edu>
12615 * linespec.c (decode_line_1): Move code into decode_dollar.
12616 (decode_dollar): New function.
12618 2003-01-07 Andrew Cagney <cagney@redhat.com>
12620 * arm-tdep.c (arm_init_extra_frame_info): Use
12621 deprecated_update_frame_base_hack.
12622 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12623 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12624 (fix_frame_pointer): Ditto.
12625 (mn10300_analyze_prologue): Ditto.
12627 2003-01-07 Andrew Cagney <cagney@redhat.com>
12629 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12630 extra_info using frame_extra_info_zalloc.
12631 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12632 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12633 (sh64_init_extra_frame_info): Ditto.
12634 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12635 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12636 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12637 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12638 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12639 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12640 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12641 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12642 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12643 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12644 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12645 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12647 * mn10300-tdep.c (analyze_dummy_frame): Use
12648 deprecated_set_frame_extra_info_hack.
12649 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12651 2003-01-07 J. Brobecker <brobecker@gnat.com>
12653 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12654 class is not scText. These do not define "real" procedures.
12655 (parse_partial_symbols): Likewise.
12657 2003-01-06 Michael Snyder <msnyder@redhat.com>
12659 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12661 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12663 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12664 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12665 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12666 deprecated_frame_xmalloc_with_cleanup.
12667 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12668 deprecated_frame_xmalloc.
12669 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12670 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12672 2003-01-06 Andrew Cagney <cagney@redhat.com>
12674 * x86-64-linux-tdep.c: Include "osabi.h".
12675 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12677 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12679 2003-01-06 Andrew Cagney <cagney@redhat.com>
12681 * MAINTAINERS (Target Instruction Set Architectures): Update
12682 arm-elf. Can be built with -Werror, has been multiarched.
12684 * value.h (unpack_long): Make buffer parameter constant.
12685 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12686 * scm-lang.h (scm_parse): Ditto.
12687 * defs.h (extract_typed_address, extract_address): Ditto.
12688 (extract_long_unsigned_integer): Ditto.
12689 * inferior.h (unsigned_pointer_to_address): Ditto.
12690 (signed_pointer_to_address): Ditto.
12691 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12692 * gdbarch.h, gdbarch.c: Regenerate.
12693 * findvar.c (extract_long_unsigned_integer): Update.
12694 (extract_address): Update.
12695 (extract_typed_address): Update.
12696 (unsigned_pointer_to_address): Update.
12697 * values.c (unpack_long): Update.
12698 (unpack_double): Update.
12699 (unpack_pointer): Update.
12700 (unpack_field_as_long): Update.
12701 * d10v-tdep.c (d10v_pointer_to_address): Update.
12702 * avr-tdep.c (avr_pointer_to_address): Update.
12703 * scm-lang.c (scm_unpack): Update.
12704 * findvar.c (signed_pointer_to_address): Update.
12706 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12708 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12709 since it is in i386-tdep.c.
12711 2003-01-06 J. Brobecker <brobecker@gnat.com>
12713 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12714 failure introduced in the previous change.
12716 2003-01-05 Michael Chastain <mec@shout.net>
12718 * README: Remove references to deleted remote-*.c files:
12719 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12720 remote-nrom.c, remote-os9k.c, remote-udi.c.
12722 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12724 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12725 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12726 i386_get_longjmp_target.
12728 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12730 * arm-tdep.c (prologue_cache): Change to a pointer.
12731 (_initialize_arm_tdep): Allocate prologue_cache.
12732 (check_prologue_cache): Update.
12733 (save_prologue_cache): Update.
12734 (arm_gdbarch_init): Update.
12736 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12738 * stabsread.c (update_method_name_from_physname): Call complaint()
12741 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12743 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12744 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12745 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12747 * blockframe.c: Include "gdbcmd.h" and "command.h".
12748 (backtrace_below_main): New variable.
12749 (file_frame_chain_valid, func_frame_chain_valid)
12750 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12751 (generic_func_frame_chain_valid): Remove functions.
12752 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12753 (_initialize_blockframe): New function.
12754 * Makefile.in (blockframe.o): Update dependencies.
12755 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12756 comment. Call frame_chain_valid ().
12757 * frame.h: Remove old prototypes. Add prototype for
12758 frame_chain_valid and update comments to match.
12759 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12760 Remove old comment.
12761 * gdbarch.h: Regenerated.
12762 * gdbarch.c: Regenerated.
12764 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12765 set_gdbarch_frame_chain_valid.
12766 * avr-tdep.c (avr_gdbarch_init): Likewise.
12767 * cris-tdep.c (cris_gdbarch_init): Likewise.
12768 * frv-tdep.c (frv_gdbarch_init): Likewise.
12769 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12770 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12771 (i386_nw_init_abi): Likewise.
12772 (i386_gdbarch_init): Likewise.
12773 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12775 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12776 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12777 * mips-tdep.c (mips_gdbarch_init): Likewise.
12778 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12779 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12780 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12781 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12782 * s390-tdep.c (s390_gdbarch_init): Likewise.
12783 * sh-tdep.c (sh_gdbarch_init): Likewise.
12784 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12785 * v850-tdep.c (v850_gdbarch_init): Likewise.
12786 * vax-tdep.c (vax_gdbarch_init): Likewise.
12787 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12789 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12790 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12791 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12792 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12793 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12794 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12795 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12796 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12798 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12800 * Makefile.in (acconfig_h): Remove incorrect macro.
12801 (config_h): Define.
12802 (osabi.o): Update dependencies.
12803 * configure.tgt: Set gdb_osabi based on target triplet.
12804 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12805 * configure: Regenerated.
12806 * config.in: Regenerated.
12807 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12808 (GDB_OSABI_DEFAULT): Define if not already defined.
12809 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12810 (set_osabi_string): New variables.
12811 (gdbarch_register_osabi): Add new OS ABI to
12812 gdb_osabi_available_names.
12813 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12814 (set_osabi, show_osabi): New functions.
12815 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12817 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12819 * arch-utils.c (gdbarch_info_init): Set osabi to
12820 GDB_OSABI_UNINITIALIZED.
12821 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12822 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12823 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12824 * gdbarch.c: Regenerated.
12825 * gdbarch.h: Regenerated.
12826 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12828 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12829 * osabi.h (enum gdb_osabi): Move to defs.h.
12830 (gdbarch_init_osabi): Update prototype.
12831 * defs.h (enum gdb_osabi): Moved here.
12832 * Makefile.in: Update dependencies.
12834 * alpha-tdep.h: Don't include "osabi.h".
12835 (struct gdbarch_tdep): Remove osabi member.
12836 * alpha-tdep.c: Include "osabi.h".
12837 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12838 iterate over arches. Update call to gdbarch_init_osabi.
12839 (alpha_dump_tdep): Don't dump osabi.
12840 * alpha-linux-tdep.c: Include "osabi.h".
12841 * alpha-osf1-tdep.c: Include "osabi.h".
12842 * alphafbsd-tdep.c: Include "osabi.h".
12843 * alphanbsd-tdep.c: Include "osabi.h".
12845 * arm-tdep.h: Don't include "osabi.h".
12846 (struct gdbarch_tdep): Remove osabi member.
12847 * arm-tdep.c: Include "osabi.h".
12848 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12849 iterate over arches. Update call to gdbarch_init_osabi.
12850 (arm_dump_tdep): Don't dump osabi.
12851 * arm-linux-tdep.c: Include "osabi.h".
12852 * armnbsd-tdep.c: Include "osabi.h".
12854 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12855 Update call to gdbarch_init_osabi.
12857 * i386-tdep.h: Don't include "osabi.h".
12858 (struct gdbarch_tdep): Remove osabi member.
12859 * i386-tdep.c: Include "osabi.h".
12860 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12861 iterate over arches. Update call to gdbarch_init_osabi.
12862 (i386_dump_tdep): Don't dump osabi.
12863 * i386-linux-tdep.c: Include "osabi.h".
12864 * i386-sol2-tdep.c: Include "osabi.h".
12865 * i386bsd-tdep.c: Include "osabi.h".
12866 * i386gnu-tdep.c: Include "osabi.h".
12867 * i386ly-tdep.c: Include "osabi.h".
12868 * i386nbsd-tdep.c: Include "osabi.h".
12869 * i386obsd-tdep.c: Include "osabi.h".
12871 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12872 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12873 check osabi when iterating over arches. Update call to
12874 gdbarch_init_osabi.
12875 (mips_dump_tdep): Don't dump osabi.
12877 * ns32k-tdep.h: Don't include "osabi.h".
12878 (struct gdbarch_tdep): Remove.
12879 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12880 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12881 allocate tdep. Update call to gdbarch_init_osabi.
12882 (ns32k_dump_tdep): Remove.
12883 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12884 * ns32knbsd-tdep.c: Include "osabi.h".
12886 * ppc-tdep.h: Don't include "osabi.h".
12887 (struct gdbarch_tdep): Remove osabi member.
12888 * rs6000-tdep.c: Include "osabi.h".
12889 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12890 osabi when iterating over arches. Update call to
12891 gdbarch_init_osabi.
12892 (rs6000_dump_tdep): Don't dump osabi.
12893 * ppc-linux-tdep.c: Include "osabi.h".
12894 * ppcnbsd-tdep.c: Include "osabi.h".
12896 * sh-tdep.h: Don't include "osabi.h".
12897 (struct gdbarch_tdep): Remove osabi member.
12898 * sh-tdep.c: Include "osabi.h".
12899 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12900 iterate over arches. Update call to gdbarch_init_osabi.
12901 (sh_dump_tdep): Don't dump osabi.
12902 * shnbsd-tdep.c: Include "osabi.h".
12904 * sparc-tdep.c: Include "osabi.h".
12905 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12906 iterate over arches. Update call to gdbarch_init_osabi.
12907 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12910 * vax-tdep.h: Don't include "osabi.h".
12911 (struct gdbarch_tdep): Remove.
12912 * vax-tdep.c: Include "osabi.h".
12913 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12914 iterate over arches. Don't allocate tdep. Update call
12915 to gdbarch_init_osabi.
12916 (vax_dump_tdep): Remove.
12917 (_initialize_vax_tdep): Update call to gdbarch_register.
12919 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12921 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12923 (breakpoint_re_set_one): Don't fetch the value for a disabled
12926 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12928 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12929 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12930 (COERCE_FLOAT_TO_DOUBLE): Remove.
12931 * gdbarch.c: Regenerate.
12932 * gdbarch.h: Regenerate.
12933 * Makefile.in: Remove value_h from gdbarch_h.
12934 * valops.c (coerce_float_to_double): New variable.
12935 (default_coerce_float_to_double): Remove.
12936 (standard_coerce_float_to_double): Remove.
12937 (value_arg_coerce): Use coerce_float_to_double.
12938 (_initialize_valops): Add "set coerce-float-to-double".
12939 * value.h (default_coerce_float_to_double): Remove prototype.
12940 (standard_coerce_float_to_double): Remove prototype.
12942 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12944 * mdebugread.c (parse_symbol): Likewise.
12945 * stabsread.c (define_symbol): Mark all functions as prototyped.
12947 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12948 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12949 set_gdbarch_coerce_float_to_double.
12950 * arm-tdep.c (arm_gdbarch_init): Likewise.
12951 * frv-tdep.c (frv_gdbarch_init): Likewise.
12952 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12953 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12954 * mips-tdep.c (mips_gdbarch_init): Likewise.
12955 (mips_coerce_float_to_double): Remove.
12956 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12957 (rs6000_coerce_float_to_double): Remove.
12958 * s390-tdep.c (s390_gdbarch_init): Likewise.
12959 * sh-tdep.c (sh_gdbarch_init): Likewise.
12960 (sh_coerce_float_to_double): Remove.
12961 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12962 (sparc_coerce_float_to_double): Remove.
12963 * v850-tdep.c (v850_gdbarch_init): Likewise.
12964 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12965 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12966 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12967 (hppa_coerce_float_to_double): Remove prototype.
12968 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12970 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12972 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12974 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12976 Suggested by Stewart Brown <sb24@avaya.com>:
12977 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12978 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12979 (c_type_print_varspec_suffix): Likewise.
12981 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12983 * configure.in: Don't set and AC_SUBST SUBDIRS.
12984 * configure: Regenerated.
12986 * configure.in: Remove code dealing with shared libraries.
12987 * Makefile.in: Remove HLDFLAGS and HLDENV.
12988 * configure: Regenerated.
12990 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12992 * frame.c (deprecated_frame_xmalloc): New function.
12993 (deprecated_set_frame_saved_regs_hack): New function.
12994 (deprecated_set_frame_extra_info_hack): New function.
12995 * frame.h (deprecated_frame_xmalloc): Declare.
12996 (deprecated_set_frame_saved_regs_hack): Declare.
12997 (deprecated_set_frame_extra_info_hack): Declare.
12999 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13001 * configure.in: Move code that provides the --enable-gdbtk option
13002 right after the code that handles the --enable-tui option, and
13003 polish it somewhat.
13004 * configure: Regenerated.
13006 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13007 AC_CHECK_FUNCS and remove the old check for pread64.
13008 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13009 * acconfig.h (_GNU_SOURCE): Add.
13010 (HAVE_PREAD64): Remove.
13011 * configure, aclocal.m4, config.in: Regenerated.
13013 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13015 * alpha-tdep.c: Use get_frame_saved_regs.
13016 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13017 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13018 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13019 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13020 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13022 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13024 * configure.in: Remove all use of the SUBDIRS variable; add
13025 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13026 code providing the --enable-multi-ice option, and move it right in
13027 front of the code that checks whether gdbserver is supported.
13029 * configure: Regenerated.
13030 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13033 2003-01-03 Andrew Cagney <cagney@redhat.com>
13035 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13036 * avr-tdep.c, cris-tdep.c: Ditto.
13037 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13038 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13040 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13042 * configure.in: Remove --enable-netrom option.
13043 * configure: Regenerated.
13045 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13047 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13048 declaration for `struct re_pattern_buffer' instead.
13049 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13051 2003-01-03 J. Brobecker <brobecker@gnat.com>
13053 * mdebugread.c (parse_symbol): Count until the stEnd matching
13054 the structure name.
13056 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13058 * configure.in: Remove --with-cpu option.
13059 subscripts. Remove evil changequotes here.
13060 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13061 * config.in, configure: Regenerated.
13063 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13064 * configure.in: Cleanup section that sources GDB and BFD configure
13065 subscripts. Remove evil changequotes here.
13066 * config.in, configure: Regenerated.
13068 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13070 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13071 frame accessor methods.
13072 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13073 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13074 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13075 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13076 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13077 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13078 * z8k-tdep.c: Ditto.
13080 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13082 * configure.in: Remove UI_OUT configuration code.
13083 * ada-lang.c: Update assuming UI_OUT is always true.
13084 * Makefile.in (UIOUT_CFLAGS): Remove.
13085 * configure: Regenerated.
13086 * TODO: Remove blurb about elimination of -DUI_OUT.
13088 * configure.in: Move code that provides the --enable-gdbcli,
13089 --enable-gdbmi options right before the code that handles the
13090 --enable-tui option. Polish a bit.
13091 * configure: Regenerated.
13093 * configure.in: Rewrite check for GNU regex and the
13094 --without-included regex option, and move it into the "Checks for
13095 library functions" section. This makes us use the system regex
13096 again by default on systems with version 2 of the GNU C library.
13097 This was apparently broken.
13098 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13099 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13100 * config.in, configure: Regenerated.
13102 * configure.in: Move code that provides the --enable-tui option
13103 before the "Checks for libraries" section. Polish the code
13104 somewhat and set need_curses to yes if we build the TUI. Rewrite
13105 code that looks for a library providing termcap functionality to
13106 match more closely what's done in the Readline library, and move
13107 it into to the "Checks for libraries" section.
13108 * configure: Regenerated.
13109 * Makefile.in (TERMCAP): Remove variable.
13110 * config/i386/go32.mh (TERMCAP): Remove variable.
13112 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13114 * MAINTAINERS: Mention gdb_mbuild.sh.
13115 * gdb_mbuild.sh: Rewrite.
13117 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13119 * configure.in: Fix typo in last change.
13120 * config.in, configure: Regenerated.
13122 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13124 * valarith.c (value_binop): Delete obsolete code and comments.
13125 * configure.host: Ditto.
13126 * buildsym.h (make_blockvector): Ditto.
13127 * buildsym.c (make_blockvector): Ditto.
13128 * defs.h (enum language): Ditto.
13129 (chill_demangle): Ditto.
13130 * elfread.c (elf_symtab_read): Ditto.
13131 * dwarfread.c (CHILL_PRODUCER): Ditto.
13132 (set_cu_language): Ditto.
13133 (handle_producer): Ditto.
13134 * expprint.c (print_subexp): Ditto.
13135 * gdbtypes.c (chill_varying_type): Ditto.
13136 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13137 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13138 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13139 (chill_varying_type): Ditto.
13140 * language.h (_LANG_chill): Ditto.
13141 * language.c (binop_result_type, integral_type): Ditto.
13142 (character_type, string_type, structured_type): Ditto.
13143 (lang_bool_type, binop_type_check): Ditto.
13144 * stabsread.h (os9k_stabs): Ditto.
13145 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13146 (define_symbol, read_type, read_struct_fields): Ditto.
13147 (read_array_type, read_enum_type, read_huge_number): Ditto.
13148 (read_range_type, start_stabs): Ditto.
13149 * symfile.c (init_filename_language_table): Ditto.
13150 (add_psymbol_with_dem_name_to_list): Ditto.
13151 * symtab.c (symbol_init_language_specific): Ditto.
13152 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13153 * symtab.h (struct general_symbol_info): Ditto.
13154 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13155 * typeprint.c (typedef_print): Ditto.
13156 * utils.c (fprintf_symbol_filtered): Ditto.
13157 * valops.c (value_cast, search_struct_field, value_slice): Delete
13159 (varying_to_slice): Delete function.
13160 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13161 (varying_to_slice): Delete declaration.
13162 * MAINTAINERS: Update.
13164 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13166 * configure.in: Reorganize "Checks for library functions section"
13167 a bit. Remove check for `btowc' and `isascii' functions.
13168 * configure: Regenerated.
13170 * acconfig.h (_MSE_INT_H): Remove.
13171 * configure.in: Create "Checks for header files" section, and move
13172 appropriate tests there. Don't check for objlist.h, wchar.h,
13173 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13174 misdetection fix. Also add "Checks for types", "Checks for
13175 compiler characteristics" and "Checks for library functions"
13177 * config.in, configure: Regenerated.
13179 * configure.in: Create "Checks for programs" section, and move
13180 appropriate tests there.
13182 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13184 * configure.in: Create "Checks for libraries" section, and move
13185 appropriate tests there. Cleanup check for wctype in libw. Use
13186 AC_SEARCH_LIBS to see whether we need libsocket.
13187 * configure: Regenerated.
13189 For older changes see ChangeLog-2002
13195 version-control: never