1 2003-10-17 Andrew Cagney <cagney@redhat.com>
3 * target.c (target_stack): Change to a static target_ops.
4 (update_current_target): Walk the "struct target_ops" stack.
5 (pop_target, do_xfer_memory, target_info): Ditto.
6 (find_target_beneath): Ditto.
7 (push_target): Rewrite to use the "struct target_ops" stack.
8 (unpush_target): Ditto.
9 * target.h (struct target_stack_item): Delete definition.
10 (target_stack): Delete declaration.
11 (struct target_ops): Add field "beneath".
13 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
15 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
17 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
18 (h8300_examine_prologue): Use h8300_normal_mode flag
19 (h8300_gdbarch_init): Set architecture info for normal mode
21 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
23 * remote.c (remote_protocol_vcont): New variable.
24 (set_remote_protocol_vcont_packet_cmd): New function.
25 (show_remote_protocol_vcont_packet_cmd): New function.
26 (init_all_packet_configs): Handle remote_protocol_vcont.
27 (remote_vcont_probe): New function.
28 (remote_vcont_resume): New function.
29 (remote_resume): Use it.
30 (remote_async_resume): Call remote_resume.
31 (_initialize_remote): Add verbose-resume packet commands.
33 2003-10-16 Andrew Cagney <cagney@redhat.com>
35 * infrun.c (handle_inferior_event): Add comment about
36 "frame_id_inner" being too weak.
38 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
40 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
41 second parameter, which is always null. Remove
42 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
43 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
45 * somsolib.c (som_solib_create_inferior_hook,
46 som_solib_desire_dynamic_linker_symbols): Update callers.
47 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
49 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
51 * remote-m32r-sdi.c : New file, interface to m32r on-chip
52 debug interface, SDI (Scalable Debug Interface).
53 * NEWS: Mention m32r SDI protocol was supported.
54 * Makefile.in (remote-m32r-sdi.o): Add build rule.
55 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
57 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
59 * ia64-linux-tdep.c: Include gdbcore.h.
60 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
61 (ia64_linux_sigcontext_register_addr): Find the address of the
62 sigcontext area stored in the sigframe instead of using
63 a magic offset constant.
65 2003-10-15 Andrew Cagney <cagney@redhat.com>
67 * remote.c (remote_search): Delete function.
68 * target.h (target_search): Delete disabled macro.
69 (struct target_ops): Delete disabled field "to_search".
71 2003-10-14 Kevin Buettner <kevinb@redhat.com>
73 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
74 instead of deprecated_inside_entry_file().
76 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
78 * sh-tdep.c: Fix copy/paste hangover in comment.
79 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
81 (sh3e_sh4_extract_return_value): Ditto.
83 2003-10-13 Richard Henderson <rth@redhat.com>
85 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
86 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
87 match c_val_print a bit closer.
89 2003-10-13 Kevin Buettner <kevinb@redhat.com>
91 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
92 (frv_gdbarch_adjust_breakpoint_address): New function.
93 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
96 2003-10-13 Kevin Buettner <kevinb@redhat.com>
98 * breakpoint.h (struct breakpoint): Add new member
99 ``requested_address''.
100 * breakpoint.c (breakpoint_adjustment_warning)
101 (adjust_breakpoint_address): New static functions.
102 (print_it_typical): Issue warning if breakpoint's address is different
103 from its requested address.
104 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
105 (breakpoint_re_set_one): Set breakpoint's
106 ``requested_address'' field. Set ``address'' field to the
107 result of calling adjust_breakpoint_address() on the requested
110 2003-10-13 Kevin Buettner <kevinb@redhat.com>
112 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
113 * gdbarch.h, gdbarch.c: Regenerate.
115 2003-10-11 Mark Kettenis <kettenis@gnu.org>
117 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
120 * i386fbsd-tdep.c: New file.
121 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
122 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
123 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
125 (_initialize_i386fbsd_tdep): New function.
126 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
127 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
128 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
129 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
131 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
132 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
133 to initialize TDEP->sc_num_regs.
134 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
135 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
136 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
137 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
138 FreeBSD ELF OS/ABI's here.
139 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
140 (i386fbsd-tdep.o): New target.
141 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
142 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
144 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
145 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
146 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
147 in initialization of TDEP->sc_num_regs.
149 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
150 (x86_64_init_abi): Initialize regset_from_core_section if
153 * i386-tdep.c (i386_regset_from_core_section): New function.
154 (i386_gdbarch_init): Initialize regset_from_core_section if
156 * i386-tdep.h (i386_regset_from_core_section): New declaration.
158 * i386-tdep.h (struct regset): Declare opaque.
160 * gdbarch.sh (regset_from_core_section): New method.
161 (struct regset): Declare opaque.
162 * gdbarch.c, gdbarch.h: Regenerated.
164 2003-10-11 Alan Modra <amodra@bigpond.net.au>
166 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
167 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
168 Correct test for pc within section.
170 2003-10-11 Mark Kettenis <kettenis@gnu.org>
172 * gdbarch.sh: Remove trailing whitepsace from comments.
174 2003-10-08 Roland McGrath <roland@redhat.com>
176 * gcore.c (make_mem_sec): Function removed, folded into ...
177 (gcore_create_callback): ... here. To omit a section, clear its
178 SEC_LOAD bit rather than zeroing its size.
179 Omit read-only sections only if they correspond to a known disk file.
180 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
182 2003-10-10 Michael Snyder <msnyder@redhat.com>
184 * d10v-tdep.c: Fix typo in comment.
186 2003-10-10 Andrew Cagney <cagney@redhat.com>
188 * rs6000-tdep.c (e500_store_return_value): Delete function.
189 (e500_extract_return_value): Delete function.
190 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
191 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
192 "ppc_sysv_abi_restore_return_value" where applicable.
193 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
194 (ppc_sysv_abi_extract_return_value): Declare.
195 (ppc_sysv_abi_broken_store_return_value): Declare.
196 (ppc_sysv_abi_broken_extract_return_value): Declare.
197 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
198 * ppc-sysv-tdep.c (return_value_convention): Move definition to
200 (do_ppc_sysv_return_value): New function.
201 (ppc_sysv_abi_extract_return_value): New function.
202 (ppc_sysv_abi_store_return_value): New function.
203 (ppc_sysv_abi_broken_extract_return_value): New function.
204 (ppc_sysv_abi_broken_store_return_value): New function.
205 (ppc_sysv_abi_use_struct_convention): Call
206 do_ppc_sysv_return_value.
208 2003-10-10 J. Brobecker <brobecker@gnat.com>
210 * blockframe.c (inside_main_func): No longer use symbol_lookup()
211 to lookup the main function symbol.
213 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
215 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
217 (sh_push_dummy_call_fpu): Fix argument passing rules.
218 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
220 (sh3e_sh4_store_return_value): Ditto.
222 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
224 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
227 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
229 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
230 more readable code. Accomodate passing of bitfields.
232 2003-10-10 Andrew Cagney <cagney@redhat.com>
234 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
235 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
236 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
237 * ppc-sysv-tdep.c: Include "gdb_assert.h".
238 (ppc64_sysv_abi_push_dummy_call): New function.
239 (ppc64_sysv_abi_broken_push_dummy_call): New function.
240 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
241 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
243 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
245 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
247 * d10v-tdep.c: Ditto.
248 * h8300-tdep.c: Ditto.
249 * remote-e7000.c: Ditto.
250 * remote-hms.c: Ditto.
251 * ser-e7kpc.c: Ditto.
256 * sh64-tdep.c: Ditto.
259 * config/d10v/d10v.mt: Ditto.
260 * config/sh/embed.mt: Ditto.
261 * config/sh/linux.mt: Ditto.
262 * config/sh/tm-linux.h: Ditto.
263 * config/sh/tm-sh.h: Ditto.
264 * config/sh/wince.mt: Ditto.
266 2003-10-09 Andrew Cagney <cagney@redhat.com>
268 * ppc-tdep.h (struct type): Declare opaque.
269 * x86-64-tdep.h (struct regcache): Declare opaque.
270 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
273 2003-10-09 Andrew Cagney <cagney@redhat.com>
275 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
276 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
277 (SOFTWARE_SINGLE_STEP_P): Ditto.
278 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
279 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
280 (SOFTWARE_SINGLE_STEP_P): Ditto.
281 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
282 software_single_step to rs6000_software_single_step.
284 2003-10-09 Andrew Cagney <cagney@redhat.com>
286 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
288 2003-10-09 Michael Snyder <msnyder@redhat.com>
290 * frame.h: Fix typo in comment.
291 * dummy-frame.c: Fix typo in comment.
292 * d10v-tdep.c: Random whitespace/comment tweaks.
294 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
296 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
297 (sh_push_dummy_code): Delete function, it's only used for dummy calls
300 Based on input by Stephen Clarke (stephen.clarke@superh.com):
301 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
304 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
306 * remote-mips.c (mips_initialize): Remove unneeded call to
307 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
309 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
311 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
314 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
316 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
317 for any lwp we resume.
318 (running_callback): Add lwps that have pending status events
319 against them to be considered running.
321 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
323 * m32r-tdep.c : Include "dis-asm.h".
324 * Makefile.in (m32r-tdep.o): Update dependencies.
326 2003-10-06 J. Brobecker <brobecker@gnat.com>
328 * completer.h (get_gdb_completer_word_break_characters): Delete.
329 * completer.c: include language.h.
330 (gdb_completer_word_break_characters): Delete.
331 (get_gdb_completer_word_break_characters): Delete.
332 (location_completer): Use the word break characters of the current
334 (complete_line): Likewise.
335 (line_completion_function): Likewise.
336 (skip_quoted_chars): Likewise.
337 * Makefile.in (completer.o): Add dependency on language.h.
338 * top.c (init_main): Set the readline word break characters
339 to GDB's default word break characters.
341 2003-10-06 J. Brobecker <brobecker@gnat.com>
343 * language.h (language_defn): new field, la_word_break_characters.
344 * language.c (unknown_language_defn): Set new field to
345 default_word_break_characters.
346 (auto_language_defn): Likewise.
347 (local_language_defn): Likewise.
348 * ada-lang.c (ada_language_defn): Likewise.
349 * c-lang.c (c_language_defn): Likewise.
350 (cplus_language_defn): Likewise.
351 (asm_language_defn): Likewise.
352 (minimal_language_defn): Likewise.
353 * f-lang.c (f_language_defn): Likewise.
354 * jv-lang.c (java_language_defn): Likewise.
355 * m2-lang.c (m2_language_defn): Likewise.
356 * objc-lang.c (objc_language_defn): Likewise.
357 * p-lang.c (pascal_language_defn): Likewise.
358 * scm-lang.c (scm_language_defn): Likewise.
360 2003-10-06 Andrew Cagney <cagney@redhat.com>
362 * ppc-sysv-tdep.c: Re-indent.
364 2003-10-06 J. Brobecker <brobecker@gnat.com>
366 * language.h (default_word_break_characters): Add prototype.
367 * language.c (default_word_break_characters): New function.
369 2003-10-06 Andreas Schwab <schwab@suse.de>
371 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
374 2003-10-06 Andrew Cagney <cagney@redhat.com>
376 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
378 (z8k-tdep.o): Delete custom build rule.
380 2003-10-06 Andrew Cagney <cagney@redhat.com>
382 * Makefile.in: Update all dependencies.
384 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
385 No longer list PA as as obsolete candidate. List m32r as
386 broken instead of obsolete.
388 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
389 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
390 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
391 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
392 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
393 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
394 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
395 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
396 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
397 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
398 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
399 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
400 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
401 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
402 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
403 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
404 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
405 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
406 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
407 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
408 * config/z8k/z8k.mt: Ditto.
410 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
411 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
412 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
413 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
414 sparclite were removed.
415 * configure.host, configure.tgt: Remove corresponding tuples.
417 * breakpoint.c, breakpoint.h: Remove obsolete code.
418 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
419 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
420 * stabsread.h, xcoffread.c: Ditto.
422 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
423 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
424 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
425 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
427 2003-10-06 David Lecomber <dsl@sources.redhat.com>
429 * f-valprint.c: Reformatting
431 2003-10-06 Mark Kettenis <kettenis@gnu.org>
433 * x86-64-tdep.c: Remove duplicate comment.
435 * x86-64-tdep.c (x86_64_store_return_value): Don't use
436 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
437 names for return values. This fixes a bug since we looked at %rbx
440 2003-10-05 Mark Kettenis <kettenis@gnu.org>
442 * x86-64-tdep.c: Include "regset.h".
444 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
445 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
447 * i386-tdep.c: Include "regset.h".
448 (i386_supply_gregset): New function.
449 (i386_supply_fpregset): New function.
450 (i386_gdbarch_init): Initialze register set-related members of
452 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
453 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
455 2003-10-03 Andrew Cagney <cagney@redhat.com>
457 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
458 set extract_return_value, store_return_value and
459 use_struct_convention to ppc64_sysv_abi_extract_return_value,
460 ppc64_sysv_abi_store_return_value and
461 ppc64_sysv_abi_use_struct_convention.
462 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
463 (ppc64_sysv_abi_store_return_value): Declare.
464 (ppc64_sysv_abi_use_struct_convention): Declare.
465 * ppc-sysv-tdep.c (enum return_value_convention): Define.
466 (ppc64_sysv_abi_extract_return_value): New function.
467 (ppc64_sysv_abi_store_return_value): New function.
468 (ppc64_sysv_abi_use_struct_convention): New function.
469 (ppc64_sysv_abi_return_value): New function.
471 2003-10-03 Andrew Cagney <cagney@redhat.com>
473 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
474 convert a descriptor to a function when it's in the ".opd"
477 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
479 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
480 reg_size to keep GCC silent.
482 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
484 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
485 base for DW_EH_PE_textrel encodings.
486 (read_encoded_value): Add a DW_EH_PE_textrel case.
487 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
490 2003-10-03 Mark Kettenis <kettenis@gnu.org>
492 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
494 2003-10-02 Andrew Cagney <cagney@redhat.com>
496 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
498 * gdbarch.h, gdbarch.c: Re-generate.
499 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
500 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
501 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
502 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
503 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
504 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
505 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
506 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
507 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
508 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
509 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
510 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
511 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
512 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
513 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
514 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
516 2003-10-02 Jim Blandy <jimb@redhat.com>
518 * dwarf2read.c (struct die_info): Doc fix.
520 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
522 * sh-tdep.c: Running thru gdb_indent.sh.
524 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
526 * sh-tdep.c (sh_justify_value_in_reg): New function.
527 (sh_stack_allocsize): Ditto.
528 (flt_argreg_array): New array used for floating point argument
530 (sh_init_flt_argreg): New function.
531 (sh_next_flt_argreg): Ditto.
532 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
533 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
534 Fix argument passing strategy.
535 (sh_push_dummy_call_nofpu): Ditto.
537 2003-10-01 Andrew Cagney <cagney@redhat.com>
539 * value.h (register_value_being_returned): Declare. Replace
540 "value_being_returned".
541 * infcall.c (call_function_by_hand): Use
542 register_value_being_returned.
543 * infcmd.c (print_return_value): Call
544 "register_value_being_returned", handle struct return locally.
545 * values.c (register_value_being_returned): New function. Replace
546 "value_being_returned".
548 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
550 * linux-proc.c (linux_do_registers): New function.
551 (linux_make_note_section): Use linux_do_registers in case of
552 single threaded inferior programs.
554 2003-10-01 Andrew Cagney <cagney@redhat.com>
556 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
557 use STRUCT_ADDR. When not using "struct return convention", pass
558 "0" to "value_being_returned". Add FIXMEs.
559 * infcmd.c (print_return_value): Pass an explicit 0/1 to
560 value_being_returned. Add comments.
561 * values.c (value_being_returned): Add fixme.
562 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
563 (hppa_value_returned_from_stack): Add FIXME.
565 2003-09-30 David Carlton <carlton@kealia.com>
567 * dwarf2read.c (struct die_info): Add 'parent' field; replace
568 'has_children' and 'next' by 'child' and 'sibling'.
569 (read_comp_unit): Rework algorithm, breaking body into
570 read_die_and_children and read_die_and_siblings.
571 (read_die_and_children, read_die_and_siblings): New.
572 (read_full_die): Add 'has_children' argument; set it instead of
573 the die's 'has_children' field. Minor formatting cleanup.
574 (free_die_list): Use die->child and die->sibling instead of
576 (dump_die_list): Ditto.
577 (sibling_die): Use die->sibling.
578 (psymtab_to_symtab_1): Use die's 'child' field in place of its
579 'has_children' and 'next' fields.
580 (process_die, read_file_scope, read_func_scope)
581 (read_lexical_block_scope, read_structure_scope)
582 (read_enumeration, read_array_type, read_common_block)
583 (read_namespace, read_subroutine_type, dump_die): Ditto.
585 2003-09-30 Andrew Cagney <cagney@redhat.com>
587 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
590 2003-09-30 Andrew Cagney <cagney@redhat.com>
592 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
593 REGISTER_VIRTUAL_SIZE.
594 * gdbarch.h, gdbarch.c: Regenerate.
595 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
596 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
597 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
599 2003-09-29 Andrew Cagney <cagney@redhat.com>
601 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
602 DEPRECATED_REGISTER_VIRTUAL_TYPE.
603 * gdbarch.h, gdbarch.c: Regenerate.
604 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
605 * sh64-tdep.c, sparc-tdep.c: Update.
607 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
608 * remote-vxmips.c (vx_read_register): Ditto.
609 * remote-vx68.c (vx_read_register): Ditto.
610 * gnu-nat.c (inf_validate_procs): Ditto.
612 2003-09-29 J. Brobecker <brobecker@gnat.com>
614 * infcall.c (call_function_by_hand): Fix build failure
615 introduced in the previous change to this file.
617 2003-09-29 Andrew Cagney <cagney@redhat.com>
619 * NEWS: Mention Objective-C.
621 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
623 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
624 test if the register has been saved on the stack.
625 (arm_scan_prologue_cache): When analysing the instruction
626 "str lr, [sp, #-4]", save the address where lr has been stored.
628 2003-09-28 Andrew Cagney <cagney@redhat.com>
630 * frame.c (frame_read_unsigned_register): Delete function.
631 * frame.h (frame_read_unsigned_register): Delete declaration.
632 * sparc-tdep.c (sparc_init_extra_frame_info): Use
633 get_frame_register_unsigned.
634 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
635 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
636 * d10v-tdep.c (d10v_print_registers_info): Ditto.
638 * frame.h (frame_read_register): Delete declaration.
639 * frame.c (frame_read_register): Delete function.
640 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
641 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
642 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
643 * mips-tdep.c (mips_register_to_value): Ditto.
644 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
645 * d10v-tdep.c (d10v_print_registers_info): Ditto.
647 * frame.c (frame_read_signed_register): Delete function.
648 (frame_read_unsigned_register): Update comments.
649 * frame.h (frame_read_signed_register): Delete declaration.
650 * h8300-tdep.c (h8300_print_register): Use
651 get_frame_register_signed.
652 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
654 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
655 Rename VALUE_RETURNED_FROM_STACK.
656 * infcmd.c (print_return_value): Update.
657 * infcall.c (call_function_by_hand): Update.
659 2003-09-28 Mark Kettenis <kettenis@gnu.org>
661 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
662 regcache argument and reverse the order of the other two
663 arguments. Remove local regcache variable. Determine
664 architecture from REGCACHE. Update comments.
665 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
666 reverse the order of the other two arguments. Remove local
667 regcache variable. Determine architecture from REGCACHE. Update
669 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
670 prototypes. Update comments.
671 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
673 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
675 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
676 * i386-interix-nat.c (supply_fpregset): Update.
677 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
678 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
679 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
680 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
681 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
683 * i386obsd-tdep.c (fetch_core_registers): Update.
684 * i386v4-nat.c (supply_fpregset): Update.
685 * x86-64-linux-nat.c (supply_fpregset): Update.
686 * x86-64-linux-tdep.c (fetch_core_registers): Update.
688 2003-09-27 Mark Kettenis <kettenis@gnu.org>
690 * i386-tdep.h: Put opaque declarations in alphabetical
691 order. Remove spurious whitespace.
692 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
693 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
694 * i386-tdep.c (MM0_REGNUM): Remove define.
695 (i386_mmx_regnum_p): Add gdbarch argument.
696 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
697 Rewrite using new macro definitions for FPU/SSE registers.
698 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
699 definitions from i387-tdep.h.
700 (i386_register_name): Update.
701 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
702 new macro definitions for FPU/SSE registers.
703 (i386_extract_return_value): Determine whether floating-point
704 registers are present by examining REGCACHE's architecture.
705 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
706 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
708 (i386_register_type): Update.
709 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
710 definitions for FPU registers. Use REGCACHE's architecture to
711 determine the appropriate register numbers.
712 (i386_pseudo_register_read, i386_pseudo_register_write,
713 i386_register_reggroup_p): Update.
714 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
716 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
717 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
718 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
719 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
720 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
721 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
723 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
724 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
725 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
726 definitions for FPU/SSE registers.
727 (FXSAVE_MXCSR_ADDR): New define.
728 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
730 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
731 (I387_ST0_REGNUM): Define.
733 * regcache.h (get_regcache_arch): New prototype.
734 * regcache.c (get_regcache_arch): New function.
736 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
739 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
740 Initialize using ARRAY_SIZE.
742 2003-09-27 Andrew Cagney <cagney@redhat.com>
744 * arch-utils.c (deprecated_init_frame_pc_default): Rename
745 "init_frame_pc_default".
746 * arch-utils.h (deprecated_init_frame_pc_default): Update.
747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
748 * vax-tdep.c (vax_gdbarch_init): Update.
749 * v850-tdep.c (v850_gdbarch_init): Update.
750 * sh64-tdep.c (sh64_gdbarch_init): Update.
751 * s390-tdep.c (s390_gdbarch_init): Update.
752 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
753 * mcore-tdep.c (mcore_gdbarch_init): Update.
754 * h8300-tdep.c (h8300_gdbarch_init): Update.
755 * cris-tdep.c (cris_gdbarch_init): Update.
756 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
758 2003-09-26 Mark Kettenis <kettenis@gnu.org>
760 * regset.h: New file.
761 * Makefile.in (regset_h): Add.
763 2003-09-25 Andrew Cagney <cagney@redhat.com>
765 * frame.h (deprecated_frame_saved_regs): Rename
766 get_frame_saved_regs.
767 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
768 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
769 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
770 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
771 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
773 2003-09-25 Andrew Cagney <cagney@redhat.com>
775 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
776 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
778 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
779 arm*-*-* do not use the new frame code.
781 2003-09-25 David Carlton <carlton@kealia.com>
783 * c-exp.y: Remove 'register' declarations.
784 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
786 2003-09-25 David Carlton <carlton@kealia.com>
788 * c-exp.y: Include cp-support.h. Add qualified_type.
789 (yylex): Delete nested type hack; add comments.
790 * cp-namespace.c (cp_lookup_nested_type): New function.
791 * cp-support.h: Declare cp_lookup_nested_type.
792 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
793 instead of value_struct_elt_for_reference.
794 * valops.c: Include cp-support.h.
795 (value_aggregate_elt): New function.
796 (value_namespace_elt): Ditto.
797 (value_struct_elt_for_reference): Make static.
798 * value.h: Delete declaration of value_struct_elt_for_reference;
799 add declaration for value_aggregate_elt.
800 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
803 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
805 * stack.c: Include "reggroups.h".
806 (frame_info): Only display registers in all_reggroup.
807 * Makefile.in (stack.o): Update dependencies.
809 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
811 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
812 "add ip, sp #n" in the prologue.
813 (arm_scan_prologue): Ditto.
815 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
817 * MAINTAINERS (write after approval): Add myself.
819 2003-09-25 Andreas Schwab <schwab@suse.de>
821 * m68k-tdep.c: Include "dwarf2-frame.h".
822 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
823 * Makefile.in (m68k-tdep.o): Update dependencies.
825 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
827 * sh-tdep.c (struct frame_extra_info): Remove.
828 (struct sh_frame_cache): New structure.
829 (GET_SOURCE_REG): New macro extracting source register of an opcode.
830 (GET_TARGET_REG): Ditto but target register.
831 (GET_PUSHED_REG): Remove.
832 (IS_MOV_ARG_TO_REG): New macro.
833 (IS_MOV_ARG_TO_IND_R14): New macro.
834 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
835 (IS_MOVW_PCREL_TO_REG): New macro.
836 (IS_MOVL_PCREL_TO_REG): New macro.
837 (IS_SUB_REG_FROM_SP): New macro.
838 (IS_ARG_MOV): Remove.
839 (IS_MOV_TO_R14): Remove.
840 (IS_RESTORE_FP): New macro.
843 (IS_MOV_FP_SP): New macro.
844 (IS_ADD_REG_TO_FP): New macro.
845 (IS_ADD_IMM_FP): New macro.
846 (sh_skip_prologue_hard_way): Remove.
847 (sh_saved_pc_after_call): Remove.
848 (sh_frame_chain): Remove.
849 (sh_find_callers_reg): Remove.
850 (sh_nofp_frame_init_saved_regs): Remove.
851 (sh_fp_frame_init_saved_regs): Remove.
852 (sh_init_extra_frame_info): Remove.
853 (sh_analyze_prologue): New function.
854 (sh_skip_prologue): Remove deprecated code. Rely on new function
855 sh_analyze_prologue when after_prologue fails.
856 (sh_frame_saved_pc): Remove.
857 (sh_alloc_frame_cache): New function.
858 (sh_frame_cache): Ditto.
859 (sh_frame_prev_register): Ditto.
860 (sh_frame_this_id): Ditto.
861 (sh_frame_unwind): New structure defining the heuristic frame
863 (sh_frame_sniffer): New function.
864 (sh_unwind_sp): Ditto.
865 (sh_unwind_pc): Ditto.
866 (sh_unwind_dummy_id): Ditto.
867 (sh_frame_base_address): Ditto.
868 (sh_frame_base): New structure defining new frame base code.
869 (sh_in_function_epilogue_p): New function.
870 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
871 code and to call all new code instead. Initialize dwarf2 and
872 heuristic frame sniffer.
874 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
876 * parser-defs.h (struct exp_descriptor): New definition, containing
877 language-specific info for printing, prefixifying, dumping, and
878 evaluating expressions.
879 (exp_descriptor_standard): Declare new variable.
880 (print_subexp): Make global and declare here (from expprint.c).
881 (dump_subexp): Ditto.
882 (dump_subexp_body_standard): Declare.
883 (operator_length_standard): Declare.
884 (op_name_standard): Declare.
885 (print_subexp): Declare.
886 (print_subexp_standard): Declare.
888 * language.h (struct language_defn): Add la_exp_desc field to hold
889 pointer to table for language-specific operators.
890 Remove evaluate_exp field, which is now in struct exp_descriptor.
892 * parse.c (operator_length): Move most code to new
893 operator_length_standard function. Use language-specific information.
894 (operator_length_standard): New function taking most code from
896 (exp_descriptor_standard): New constant.
898 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
899 and OP_EXTENDED_LAST.
901 * expprint.c (print_subexp): Use language-specific print_subexp.
902 Make global; remove static declaration.
903 Move most code to print_subexp_standard.
904 (print_subexp_standard): New function, containing code formerly in
906 (op_name): Add expression to argument signature.
907 Use langauge-specific op_name.
908 Move most code to op_name_standard.
909 (op_name_standard): New function, containing code formerly in op_name.
910 (dump_subexp): Use new version of op_name function.
911 Use language-specific dump_subexp_body, and move most existing code to
912 dump_subexp_body_standard.
913 (dump_raw_expression): Use new op_name interface.
914 (dump_subexp_body): Move most code to dump_subexp_body_standard.
915 (dump_subexp_body_standard): New function, containing code formerly
918 * language.c (unknown_language): Add default la_exp_desc field and
919 remove evaluate_exp field.
920 (auto_language): Ditto.
921 (local_language): Ditto.
922 * f-lang.c (f_language_defn): Ditto.
923 * c-lang.c (c_language_defn): Ditto.
924 (cplus_language_defn): Ditto.
925 (asm_language_defn): Ditto.
926 (minimal_language_defn): Ditto.
927 * p-lang.c (pascal_language_defn): Ditto.
928 * m2-lang.c (m2_language_defn): Ditto.
929 * objc-lang.c (objc_language_defn): Ditto.
931 * jv-lang.c (exp_descriptor_java): New variable, containing
932 Java-specific expression evaluator.
933 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
935 * scm-lang.c (exp_descriptor_scm): New variable, containing
936 Scheme-specific expression evaluator.
937 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
939 * objc-lang.c (print_object_command): Take evaluate_exp from the
942 * Makefile.in (eval.o): Add dependency on parser-defs.h.
944 * eval.c: Include parser-defs.h for the full declaration of
946 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
948 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
950 * parser-defs.h (operator_length): Declare.
952 * parse.c (length_of_subexp): Use operator_length to get operator
953 lengths and arities for operators.
954 Move most code to new operator_length function.
955 (operator_length): New function absorbing most code from
957 (prefixify_subexp): Remove large case and use operator_length instead.
958 (parse_exp_1): Use renamings:
959 dump_prefix_expression => dump_raw_expression and
960 dump_postfix_expression => dump_prefix_expression.
962 * expression.h (dump_prefix_expression): Rename to ...
963 (dump_raw_expression): New name.
964 (dump_postfix_expression): Rename to ...
965 (dump_prefix_expression): New name.
967 * expprint.c (dump_subexp): Make global. Add comment.
968 Move most existing code to dump_subexp_body.
969 (dump_subexp_body): New function.
970 (dump_prefix_expression): Rename to dump_raw_expression.
971 Remove attempt to print the expression via print_expression: it can't
972 work before the expression is prefixified.
973 (dump_raw_expression): Renamed from dump_prefix_expression.
974 (dump_postfix_expression): Rename to dump_prefix_expression, since
976 Remove 'note' parameter, since this routine must be used on
977 prefixified expression.
978 (dump_prefix_expression): Renamed from dump_postfix_expression.
980 2003-09-22 Jim Blandy <jimb@redhat.com>
982 * dwarf2read.c (read_array_type): When building the type for an
983 array of unspecified length, make sure to choose the upper bound
984 so that the array's total length comes out to be zero --- that's
985 how we represent such arrays.
987 2003-09-22 Michael Chastain <mec@shout.net>
989 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
991 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
993 * top.c (quit_force): Fix indirect call to quit_target so
994 a struct qt_args pointer is passed.
996 2003-09-22 Andrew Cagney <cagney@redhat.com>
998 * arch-utils.h (init_frame_pc_noop): Delete declaration.
999 * arch-utils.c (init_frame_pc_noop): Delete function.
1000 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
1002 * mips-tdep.c (mips_gdbarch_init): Ditto.
1003 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1004 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
1006 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1007 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
1009 (DEPRECATED_INIT_FRAME_PC): Delete macro.
1011 2003-09-22 Anthony Green <green@redhat.com>
1013 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
1016 2003-09-20 Andrew Cagney <cagney@redhat.com>
1018 * breakpoint.c: Eliminate ARGSUSED.
1019 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
1020 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
1021 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
1022 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
1023 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
1024 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
1025 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
1026 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
1027 * wince.c, remote-vx.c: Ditto.
1029 * cli/cli-script.c: Remove "register" attributes.
1030 * config/pa/tm-hppa.h: Ditto.
1031 * cli/cli-decode.c: Ditto.
1032 * cli/cli-cmds.c: Ditto.
1034 2003-09-19 Andrew Cagney <cagney@redhat.com>
1036 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
1037 DEPRECATED_NPC_REGNUM.
1038 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
1040 2003-09-19 Christopher Faylor <cgf@redhat.com>
1042 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
1044 2003-09-19 Jim Blandy <jimb@redhat.com>
1046 * macrotab.c (macro_include): Use the correct comparison to find
1047 the appropriate place for this inclusion in the list.
1049 2003-09-19 Andrew Cagney <cagney@redhat.com>
1051 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
1052 (DEPRECATED_HPUX_TEXT_END): Define.
1053 (deprecated_hpux_text_end): Declare.
1054 (struct target_ops): Declare opaque.
1055 * hppah-nat.c (text_end): Make static.
1056 (deprecated_hpux_text_end): New function.
1057 * exec.c (text_end): Delete global variable.
1058 (NEED_TEXT_START_END): Do not define.
1059 (exec_file_attach): Replace code computing "text_end" code with
1060 call to DEPRECATED_HPUX_TEXT_END.
1062 2003-09-19 Andrew Cagney <cagney@redhat.com>
1064 * utils.c (align_up, align_down): New functions.
1065 * defs.h (align_up, align_down): Declare.
1066 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1067 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1069 (round_up, round_down): Delete functions.
1070 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1072 (ROUND_DOWN, ROUND_UP): Delete macros.
1073 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1074 * h8300-tdep.c: Replace "round_up" and "round_down" with
1075 "align_up" and "align_down".
1076 (round_up, round_down): Delete macros.
1077 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1079 (ROUND_UP, ROUND_DOWN): Delete macros.
1081 2003-09-18 J. Brobecker <brobecker@gnat.com>
1083 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1084 hard-coded constant. Use the proper machine name instead.
1086 2003-09-17 Andrew Cagney <cagney@redhat.com>
1088 * sparc-tdep.c (legacy_register_name): Delete function.
1089 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1090 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1091 * infcmd.c (gdb_register_name): Delete variable.
1092 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1093 REGISTER_NAME and "tm.h".
1094 * gdbarch.h, gdbarch.c: Regenerate.
1095 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1096 REGISTER_NAMES in comments.
1097 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1098 * m68klinux-nat.c (regmap): Ditto.
1100 2003-09-17 Jim Blandy <jimb@redhat.com>
1102 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1104 2003-09-17 Andrew Cagney <cagney@redhat.com>
1106 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1107 (ppcnbsd_init_abi): Set "use_struct_convention" to
1108 "ppcnbsd_use_struct_convention".
1110 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1112 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1113 * gdbarch.h, gdbarch.c: Regenerate.
1114 (stabs_argument_has_addr): New architecture method.
1115 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1116 * arch-utils.c: Include "buildsym.h".
1117 (default_stabs_argument_has_addr): New function.
1118 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1119 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1121 2003-09-17 Andrew Cagney <cagney@redhat.com>
1123 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1124 * gdbarch.h, gdbarch.c: Regenerate.
1125 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1126 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1127 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1128 * sparcnbsd-tdep.c: Update.
1130 2003-09-17 Andrew Cagney <cagney@redhat.com>
1132 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1133 * gdbarch.h, gdbarch.c: Regenerate.
1134 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1135 * d10v-tdep.c, frame.c: Update.
1136 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1137 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1138 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1139 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1140 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1141 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1142 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1143 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1144 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1145 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1146 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1147 * config/pa/nm-hppah.h: Update.
1149 2003-09-16 Andrew Cagney <cagney@redhat.com>
1151 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1152 "use_struct_convention" to "ppc_linux_use_struct_convention".
1153 (ppc_linux_use_struct_convention): New function.
1154 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1155 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1156 "rs6000_use_struct_convention".
1157 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1159 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1162 2003-09-16 Andrew Cagney <cagney@redhat.com>
1164 * buildsym.c: Remove more occurances of "register".
1165 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1166 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1167 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1168 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1169 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1170 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1171 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1172 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1174 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1176 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1177 numbers to enumeration values.
1178 * sh-tdep.c: Accomodate above change.
1179 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1180 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1181 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1182 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1183 (IS_FPUSH): Rename from IS_FMOV.
1184 (sh_extract_struct_value_address): Remove useless comment.
1185 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1186 instead of own local values.
1187 (sh_dump_tdep): Remove.
1188 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1189 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1191 2003-09-15 Andrew Cagney <cagney@redhat.com>
1193 * doublest.c (convert_floatformat_to_doublest): No longer need to
1194 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1196 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1198 * values.c (unpack_double): Call floatformat_is_valid.
1200 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1202 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1203 ps_strings into a long.
1205 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1206 _initialize_am64fbsd_nat.
1208 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1210 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1211 associated with DW_AT_ranges attribute is out of bounds.
1213 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1215 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1217 2003-09-14 Michael Chastain <mec@shout.net>
1219 * config/m68k/nm-apollo68v.h: Delete.
1220 * config/m68k/xm-apollo68v.h: Delete.
1222 2003-09-14 Andrew Cagney <cagney@redhat.com>
1224 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1225 * dcache.c: Update copyrights and descriptions.
1226 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1228 2003-09-14 Andrew Cagney <cagney@redhat.com>
1230 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1231 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1233 2003-09-14 Andrew Cagney <cagney@redhat.com>
1235 * alpha-nat.c: Remove some occurances of "register".
1236 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1237 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1238 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1239 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1240 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1241 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1242 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1243 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1244 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1245 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1246 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1247 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1248 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1249 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1250 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1251 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1252 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1253 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1254 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1255 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1256 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1257 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1259 2003-09-13 Andrew Cagney <cagney@redhat.com>
1261 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1262 * ppc-tdep.h (struct regcache): Declare opaque.
1263 * objfiles.h (struct objfile_data): Declare opaque.
1264 * cp-support.h (struct objfile): Declare opaque.
1265 * linux-nat.h (target_waitstatus): Declare opaque.
1267 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1269 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1270 (stabs_argument_has_addr): New architecture method.
1271 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1272 * arch-utils.c: Include "buildsym.h".
1273 (default_stabs_argument_has_addr): New function.
1274 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1275 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1277 * cris-tdep.c (cris_gdbarch_init): Set
1278 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1279 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1280 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1281 * mips-tdep.c (mips_gdbarch_init): Likewise.
1282 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1283 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1285 2003-09-13 Andrew Cagney <cagney@redhat.com>
1287 * values.c (using_struct_return): Delete "function" and "funcaddr"
1289 * value.h (using_struct_return): Update declaration.
1290 * infcmd.c (finish_command_continuation): Update.
1291 (finish_command): Update.
1292 * infcall.c (call_function_by_hand): Update.
1293 * eval.c (evaluate_subexp_standard): Update.
1295 2003-09-13 Christopher Faylor <cgf@redhat.com>
1297 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1298 SSE registers since gdb will not operate correctly without this.
1299 Restore include file ordering munged in previous change.
1300 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1302 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1304 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1305 REG_STRUCT_HAS_ADDR.
1306 * gdbarch.c, gdbarch.h: Updated.
1307 * infcall.c (call_function_by_hand): Update.
1308 * stabsread.c (define_symbol): Updated.
1310 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1312 2003-09-12 Christopher Faylor <cgf@redhat.com>
1314 * win32-nat.c: Reorganize so that defines used by target headers are
1315 actually defined by the system headers.
1316 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1317 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1319 2003-09-12 Jim Blandy <jimb@redhat.com>
1321 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1322 the file has no .data, .bss, or .rodata sections. Instead wait
1323 until we see a variable alleged to live in one of those sections.
1325 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1326 .bss section, presume that any variables we find live in the
1329 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1330 offsets for global and static variables.
1332 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1333 symbol types are, by definition, in the .data section, so it is
1334 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1335 If there is no .data section, there should be no N_DATA or N_DATA
1338 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1340 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1341 (amd64fbsd_sigcontext_addr): Rewrite.
1342 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1343 with correct values.
1344 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1345 (amd64fbsd_init_abi): Fix typo.
1347 2003-09-12 Andrew Cagney <cagney@redhat.com>
1349 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1350 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1352 2003-09-12 Andrew Cagney <cagney@redhat.com>
1354 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1355 "entry_file_highpc". Update comments.
1356 * defs.h (deprecated_inside_entry_file): Rename
1357 "inside_entry_file".
1358 * blockframe.c (deprecated_inside_entry_file): Rename
1359 "inside_entry_file".
1360 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1361 * vax-tdep.c (vax_frame_chain): Update.
1362 * sh64-tdep.c (sh64_frame_chain): Update.
1363 * sh-tdep.c (sh_frame_chain): Update.
1364 * rs6000-tdep.c (rs6000_frame_chain): Update.
1365 * ns32k-tdep.c (ns32k_frame_chain): Update.
1366 * mips-tdep.c (mips_frame_chain): Update.
1367 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1368 * m32r-tdep.c (m32r_frame_this_id): Update.
1369 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1370 * frv-tdep.c (frv_frame_this_id): Update.
1371 * d10v-tdep.c (d10v_frame_this_id): Update.
1372 * cris-tdep.c (cris_frame_chain): Update.
1373 * blockframe.c (legacy_frame_chain_valid): Update.
1374 * avr-tdep.c (avr_frame_this_id): Update.
1375 * arm-tdep.c (arm_prologue_this_id): Update.
1376 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1377 * objfiles.c (objfile_relocate): Update.
1378 * mipsread.c (mipscoff_symfile_read): Update.
1379 (mipscoff_symfile_read): Update.
1380 * mdebugread.c (parse_partial_symbols): Update.
1381 * dwarfread.c (read_file_scope): Update.
1382 * dwarf2read.c (read_file_scope): Update.
1383 * dbxread.c (read_dbx_symtab): Update.
1384 (read_dbx_symtab): Update.
1385 * coffread.c (complete_symtab): Update.
1387 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1389 * top.c (quit_target): New static helper function.
1390 (quit_force): Moved code to quit_target(). Call quit_target()
1391 via catch_errors() to catch errors during quit.
1393 2003-09-11 David Carlton <carlton@kealia.com>
1395 * buildsym.c (finish_block): Use allocate_block to allocate the
1397 * mdebugread.c (new_block): Add FIXME.
1399 2003-09-11 David Carlton <carlton@kealia.com>
1401 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1402 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1403 (recursive_dump_type): Ditto.
1404 * printcmd.c (print_formatted): Ditto.
1405 * typeprint.c (print_type_scalar): Ditto.
1406 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1407 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1408 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1409 maint_cplus_cmd_list.
1410 * cp-support.c: Make maint_cplus_cmd_list extern.
1411 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1413 (lookup_symbol_file): Look in possible namespace blocks when
1415 (initialize_namespace_symtab): New.
1416 (get_possible_namespace_block, free_namespace_block)
1417 (check_possible_namespace_symbols)
1418 (check_possible_namespace_symbols_loop)
1419 (check_one_possible_namespace_symbol)
1420 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1421 (_initialize_cp_namespace): Ditto.
1422 * block.h: Declare allocate_block.
1423 * block.c (allocate_block): New.
1424 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1426 * symfile.h: Update declaration of add_psymbol_to_list.
1427 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1429 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1430 scan_partial_symbols_call.
1431 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1433 (add_partial_symbol): If necessary, scan mangled names for names
1435 (add_partial_namespace): Add NAMESPACE argument; generate partial
1436 symbols associated to namespaces.
1437 (add_partial_enumeration): Add NAMESPACE argument.
1438 (new_symbol): Allow namespace syms.
1439 (read_namespace): Generate namespace syms.
1440 * objfiles.h: Add opaque declaration of struct symtab.
1441 (struct objfile): Add cp_namespace_symtab member.
1442 * objfiles.c (allocate_objfile): Set
1443 objfile->cp_namespace_symtab.
1444 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1445 dictionary_h, command_h.
1447 2003-09-11 Andrew Cagney <cagney@redhat.com>
1449 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1450 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1451 near the function's end.
1452 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1453 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1454 regcache_raw_write_signed to set SP_REGNUM.
1456 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1458 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1459 orig_addrs is set up properly.
1461 2003-09-11 Andrew Cagney <cagney@redhat.com>
1463 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1464 * gdbarch.h, gdbarch.c: Re-generate.
1465 * infcall.c (call_function_by_hand): Update.
1466 * hppa-tdep.c (hppa_push_arguments): Update.
1467 * ada-lang.c (place_on_stack): Update.
1468 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1469 * sparc-tdep.c (sparc_gdbarch_init): Update.
1470 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1471 * hppa-tdep.c (hppa_gdbarch_init): Update.
1472 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1475 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1477 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1478 register do need a frame.
1480 2003-09-11 Andrew Cagney <cagney@redhat.com>
1482 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1483 buildable since GDB 5.0.
1484 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1485 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1486 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1487 * irix4-nat.c: Delete file.
1488 * config/mips/irix4.mh: Delete file.
1489 * config/mips/irix3.mh: Delete file.
1490 * config/mips/irix3.mt: Delete file.
1491 * config/mips/tm-irix3.h: Delete file.
1492 * config/mips/nm-irix3.h: Delete file.
1493 * config/mips/xm-irix3.h: Delete file.
1494 * config/mips/nm-irix4.h: Delete file.
1495 * config/mips/xm-irix4.h: Delete file.
1496 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1498 2003-09-10 J. Brobecker <brobecker@gnat.com>
1500 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1501 * Makefile.in (hppa-tdep.o): Update dependencies.
1503 2003-09-10 James E Wilson <wilson@specifixinc.com>
1505 * MAINTAINERS: Change my e-mail address. Move to paper trail
1508 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1510 * MAINTAINERS (frv): New ISA entry.
1512 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1514 * frv-tdep.c (dis-asm.h): Include.
1515 * Makefile.in (frv-tdep.o): Update dependencies.
1517 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1519 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1520 Fix typo for high range of floating registers.
1522 2003-09-09 David Carlton <carlton@kealia.com>
1524 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1525 highpc initialization here out of scan_partial_symbols.
1526 (scan_partial_symbols): Restructure into a recursive version,
1527 calling add_partial_namespace and add_partial_enumeration when
1529 (add_partial_namespace): New.
1530 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1532 2003-09-09 Andrew Cagney <cagney@redhat.com>
1534 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1535 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1536 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1537 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1539 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1540 (rs6000_push_dummy_call): Set the "TOC" register.
1542 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1543 methods "max_register_raw_size", "max_register_virtual_size" or
1544 "register_virtual_size".
1546 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1548 * MAINTAINERS: Update my e-mail address.
1550 2003-09-09 Andrew Cagney <cagney@redhat.com>
1552 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1553 (rs6000_push_dummy_call): Store the struct return address.
1554 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1556 2003-09-09 Andrew Cagney <cagney@redhat.com>
1558 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1559 "ppc_sysv_abi_push_arguments".
1560 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1561 "ppc_sysv_abi_push_arguments".
1562 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1563 instead of "push_arguments".
1564 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1566 2003-09-09 Andrew Cagney <cagney@redhat.com>
1568 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1569 instead of CALL_DUMMY_ADDRESS.
1571 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1573 * p-lang.c: Eliminate "register".
1575 * expprint.c: Ditto.
1578 * language.c: Ditto.
1581 * scm-lang.c: Ditto.
1582 * objc-lang.c: Ditto.
1584 2003-09-09 Nick Clifton <nickc@redhat.com>
1586 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1588 2003-09-04 Andrew Cagney <cagney@redhat.com>
1590 * avr-tdep.c: Include "dis-asm.h".
1591 * cris-tdep.c: Include "dis-asm.h".
1592 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1593 instead of corresponding typedef.
1594 * h8300-tdep.c: Include "dis-asm.h".
1595 * ia64-tdep.c: Include "dis-asm.h".
1596 * i386-tdep.c: Include "dis-asm.h".
1597 (i386_print_insn): Use "struct disassemble_info" instead of
1598 corresponding typedef.
1599 * m68k-tdep.c: Include "dis-asm.h".
1600 * mcore-tdep.c: Include "dis-asm.h".
1601 * mips-tdep.c: Include "dis-asm.h".
1602 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1603 instead of corresponding typedef.
1604 * ns32k-tdep.c: Include "dis-asm.h".
1605 * s390-tdep.c: Include "dis-asm.h".
1606 * sparc-tdep.c: Include "dis-asm.h".
1607 * vax-tdep.c: Include "dis-asm.h".
1608 * v850-tdep.c: Include "dis-asm.h".
1609 * mn10300-tdep.c: Include "dis-asm.h".
1610 * rs6000-tdep.c: Include "dis-asm.h".
1611 * xstormy16-tdep.c: Include "dis-asm.h".
1612 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1613 print_insn_xstormy16.
1614 * Makefile.in (v850-tdep.o): Update dependencies.
1615 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1616 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1617 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1618 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1619 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1620 (gdbarch_h): Remove $(dis_asm_h).
1621 * disasm.c: Include "dis-asm.h".
1622 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1623 corresponding typedef.
1624 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1625 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1626 * gdbarch.sh: Do not include "dis-asm.h".
1627 (struct disassemble_info): Declare opaque.
1628 (TARGET_PRINT_INSN): Update declaration.
1629 * gdbarch.h, gdbarch.c: Re-generate.
1631 2003-09-08 Andrew Cagney <cagney@redhat.com>
1633 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1634 CALL_DUMMY_ADDRESS, change to a predicate.
1635 * gdbarch.h, gdbarch.c: Re-generate.
1636 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1637 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1638 * infcall.c (call_function_by_hand): Ditto.
1639 * sparc-tdep.c (sparc_push_return_address): Ditto.
1640 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1641 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1642 CALL_DUMMY_ADDRESS with entry_point_address.
1643 * v850-tdep.c (v850_push_return_address): Ditto.
1644 * s390-tdep.c (s390_push_return_address): Ditto.
1645 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1646 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1647 * mcore-tdep.c (mcore_push_return_address): Ditto.
1648 * cris-tdep.c (cris_push_return_address): Ditto.
1649 * arm-tdep.c (arm_push_return_address): Ditto.
1651 2003-09-08 Andrew Cagney <cagney@redhat.com>
1653 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1654 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1655 and REG_UNMODIFIED to REG_SAME_VALUE.
1656 (execute_cfa_program): Update.
1657 (dwarf2_frame_cache): Update. Initialize table to
1658 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1660 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1662 2003-09-08 Andrew Cagney <cagney@redhat.com>
1664 * gnu-nat.c: Remove "inline" function attribute.
1665 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1667 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1669 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1672 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1674 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1675 (frame_extra_info): Rename this struct to frv_unwind_cache.
1676 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1677 Add fields ``prev_sp'' and ``base''.
1678 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1679 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1680 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1682 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1683 Revise all callers. Fill in the unwind cache argument and make
1684 other adjustments to account for new frame mechanisms.
1685 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1686 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1687 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1688 (frv_frame_unwind, frv_frame_base): New structs.
1689 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1690 additional arguments expected by this method and adjust function
1692 (frv_gdbarch_init): Remove calls to the following functions:
1693 set_gdbarch_deprecated_init_frame_pc(),
1694 set_gdbarch_deprecated_saved_pc_after_call(),
1695 set_gdbarch_deprecated_frame_chain(),
1696 set_gdbarch_deprecated_frame_saved_pc(),
1697 set_gdbarch_deprecated_frame_init_saved_regs(),
1698 set_gdbarch_deprecated_push_arguments(),
1699 set_gdbarch_deprecated_push_return_address(),
1700 set_gdbarch_deprecated_pop_frame(),
1701 set_gdbarch_deprecated_call_dummy_words(),
1702 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1703 set_gdbarch_deprecated_init_extra_frame_info(),
1704 set_gdbarch_deprecated_dummy_write_sp(), and
1705 set_gdbarch_deprecated_pc_in_call_dummy().
1706 Add calls to the following functions:
1707 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1708 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1709 frame_base_set_default().
1710 * Makefile.in (frv-tdep.o): Update dependencies.
1712 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1714 * dwarf2-frame.c (read_encoded_value): Add support for
1715 DW_EH_PE_aligned encoding.
1717 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1719 * infrun.c (normal_stop): Don't print a message if the inferior
1722 2003-09-08 Jim Blandy <jimb@redhat.com>
1724 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1725 * dbxread.c: #include "gdb_assert.h".
1726 (read_dbx_symtab): If the objfile has no .data section, use the
1727 section index for the .bss section instead.
1729 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1731 * frame.c (deprecated_safe_get_selected_frame): New function.
1732 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1733 * findvar.c (read_var_value): Call it.
1735 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1737 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1738 (sh64-tdep.o): Add dependencies.
1739 * configure.tgt: Add FIXME to sh-*-linux*.
1740 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1741 (sh_gdbarch_init): Always set correct sh_show_regs function
1742 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1743 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1744 * sh64-tdep.c: New file, containing all sh64 related code from
1746 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1747 * config/sh/linux.mt (TDEPFILES): Ditto.
1748 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1749 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1750 * config/sh/wince.mt (TDEPFILES): Ditto.
1752 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1754 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1755 (stop_wait_callback): Handle !lp->signalled also.
1756 (lin_lwp_has_pending, flush_callback): New functions.
1757 (lin_lwp_wait): Call flush_callback.
1758 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1759 (linux_proc_pending_signals): New function.
1760 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1762 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1764 From Nick Kelsey <nickk@ubicom.com>:
1765 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1766 when the stop PC is at the beginning of a function also.
1768 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1770 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1771 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1773 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1775 * sol-thread.c: Include "gdb_string.h".
1777 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1779 * gcore.c: Reorder include files in alphabetical order. Include
1780 "gdb_assert.h". Various coding style fixes.
1781 (derive_stack_segment, derive_heap_segment): Replace check for
1782 non-null BOTTOM and TOP with gdb_assert.
1783 (derive_heap_segment): Replace check for successful creation of
1784 ZERO with gdb_assert.
1785 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1787 2003-09-04 Andrew Cagney <cagney@redhat.com>
1789 * thread-db.c (verbose_dlsym): New function.
1790 (thread_db_load): Use verbose_dlsym
1791 (thread_db_new_objfile): Print that libthread_db was loaded, and
1792 that thread debugging was enabled.
1794 2003-09-04 Andrew Cagney <cagney@redhat.com>
1796 * configure.tgt: Add "mips64*-*-*" target. Delete
1797 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1798 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1799 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1800 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1801 mips*-sony-*, and mips64*-*-elf* targets.
1802 * config/mips/embedl.mt: Delete file.
1803 * config/mips/embedl64.mt: Delete file.
1804 * config/mips/mips.mt: Delete file.
1805 * config/mips/mips64.mt: Delete file.
1806 * config/mips/tm-embed.h: Delete file.
1807 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1808 * config/mips/embed64.mt: Delete out-of-date comment.
1810 2003-09-04 Andrew Cagney <cagney@redhat.com>
1812 * hppa-tdep.c (hppa_gdbarch_init): Set
1813 "have_nonsteppable_watchpoint".
1814 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1815 * mips-tdep.c (mips_dump_tdep): Do not print
1816 HAVE_NONSTEPPABLE_WATCHPOINT.
1817 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1818 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1819 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1820 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1822 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1824 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1825 unused code. Add comment.
1827 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1829 * breakpoint.c (watchpoint_check): Check for pc being in an
1830 epilogue if watchpoint frame couldn't be found.
1832 2003-09-04 Andrew Cagney <cagney@redhat.com>
1834 * Makefile.in: Re-generate all dependencies.
1836 2003-09-03 Andrew Cagney <cagney@redhat.com>
1838 * arch-utils.h (legacy_print_insn): Delete declaration.
1839 * arch-utils.c (legacy_print_insn): Delete function.
1840 * disasm.c (deprecated_tm_print_insn_info): Delete.
1841 (_initialize_disasm): Delete function, contained code initializing
1842 deprecated_tm_print_insn_info.
1843 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1844 (deprecated_tm_print_insn_info): Delete.
1845 (TARGET_PRINT_INSN): Do not provide a default.
1846 * gdbarch.h, gdbarch.c: Re-generate.
1848 2003-09-03 Andrew Cagney <cagney@redhat.com>
1850 * disasm.c (fprintf_disasm): New function.
1851 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1852 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1853 reverts 2003-08-14 change.
1854 (_initialize_disasm): Call "init_disassemble_info", instead of
1855 INIT_DISASSEMBLE_INFO_NO_ARCH.
1857 2003-09-03 Michael Snyder <msnyder@redhat.com>
1859 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1861 2003-09-03 Andrew Cagney <cagney@redhat.com>
1863 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1864 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1865 * symfile.c (syms_from_objfile): Update.
1866 (reread_symbols): `Update
1867 * exec.c (exec_file_attach): Update.
1868 (exec_file_attach): Update.
1869 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1871 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1873 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1875 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1877 (arm_get_cache): Delete macro.
1878 (struct arm_prologue_cache): Update comments. Make saved_regs into
1879 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1881 (thumb_scan_prologue): Update for cache changes. Don't call
1882 DEPRECATED_PC_IN_CALL_DUMMY.
1883 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1884 argument and use it in desperation search for our prologue. Do not
1885 search past the specified PC.
1886 (arm_make_prologue_cache): Simplify.
1888 (arm_prologue_this_id, arm_prologue_prev_register)
1889 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1890 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1891 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1892 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1893 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1895 (arm_frame_chain_valid, arm_find_callers_reg)
1896 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1897 (arm_pop_frame): Delete obsolete methods.
1898 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1900 (arm_gdbarch_init): Update for new frame methods. Register prologue
1901 and sigtramp unwinders. Set the default frame base method.
1903 * Makefile.in (arm-tdep.o): Update dependencies.
1904 * varobj.c (find_frame_addr_in_frame_chain): Call
1905 get_frame_base_address.
1906 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1908 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1910 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1911 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1912 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1913 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1914 Take NEXT_FRAME and CACHE arguments. Call
1915 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1916 Set unwound_pc in CACHE instead of modifying the frame argument.
1917 Don't bother checking the frame type when looking for sigtramp
1919 (arm_make_prologue_cache, arm_frame_chain)
1920 (arm_init_extra_frame_info): New functions.
1922 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1924 * arm-tdep.c (arm_get_cache): Define.
1925 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1926 unwound_sp, unwound_pc, and saved_regs.
1927 (thumb_scan_prologue): Take a cache instead of the frame.
1928 (arm_scan_prologue): Likewise.
1929 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1930 instead of a temporary frame.
1931 (arm_init_extra_frame_info): Allocate and use a cache.
1932 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1934 2003-09-03 Andrew Cagney <cagney@redhat.com>
1936 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1937 * config/mips/wince.mt (TM_CLIBS): Ditto.
1938 * config/sh/wince.mt (TM_CLIBS): Ditto.
1939 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1940 * config/sparc/sp64.mt (CC): Delete.
1942 2003-09-03 Andrew Cagney <cagney@redhat.com>
1944 * defs.h: Do not include "arch-utils.h".
1945 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1946 GDB_MULTI_ARCH_PURE.
1947 * configure.in (GDB_MULTI_ARCH): Do not define.
1948 * configure, config.in: Regenerate.
1949 * configure.tgt: Do not set variable "gdb_multi_arch".
1950 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1951 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1952 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1953 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1954 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1955 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1956 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1957 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1958 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1959 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1960 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1961 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1962 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1963 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1964 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1965 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1966 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1967 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1969 2003-08-30 Michael Chastain <mec@shout.net>
1971 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1972 * config/m68k/nm-hp300hpux.h: Delete.
1973 * config/m68k/tm-hp300hpux.h: Delete.
1974 * config/m68k/xm-hp300hpux.h: Delete.
1975 * config/m68k/xm-hp300bsd.h: Delete.
1976 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1977 tm-hp300hpux.h, xm-hp300hpux.h.
1978 * somsolib.c: Remove comment about hp300 shared libraries.
1980 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1982 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1983 Only define PTRACE_GET_THREAD_AREA is not already defined.
1984 Various style fixes in code and comments and some additional
1985 spelling fixes in comments. Move after functions dealing with
1987 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1990 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1991 frame_unwind_register_unsigned instead of
1992 frame_unwind_unsigned_register.
1994 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1996 * configure.in: Search for gethostbyname in libnsl.
1997 * configure: Regenerated.
1999 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2001 * configure.in: Remove redundant AC_MSG_RESULT in check for
2002 uintptr_t in stdint.h.
2003 * configure: Regenerated.
2005 * amd64-nat.h (struct regcache): Add opaque declaration.
2007 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
2008 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
2009 Change "register array" to "register cache" in comments.
2010 (x86_64_linux_gregset64_reg_offset): New variable.
2011 (GETREGS_SUPPLIES): Remove macro.
2012 (supply_gregset): Call amd64_supply_native_gregset instead of
2013 x86_64_linux_supply_gregset.
2014 (fill_gregset): Rename `regno' to `regnum'. Call
2015 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
2016 (store_regs): Rename `regno' to `regnum'.
2017 (store_fpregs): Rename `regno' to `regnum'.
2018 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
2019 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2020 Reorganize function a bit.
2021 (store_inferior_registers): Rename `regno' to `regnum'. Use
2022 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
2023 Reorganize function a bit.
2024 (_initialize_x86_64_linux_nat): New function.
2025 * config/i386/x86-64linux.mh.
2027 2003-08-29 Andrew Cagney <cagney@redhat.com>
2029 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
2030 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
2031 (target_remove_watchpoint): Delete macro.
2032 (target_insert_watchpoint): Delete macro.
2033 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
2034 (remote_mips_stopped_by_watchpoint): Delete declaration.
2035 (remote_mips_remove_watchpoint): Delete declaration.
2036 (remote_mips_set_watchpoint): Delete declaration.
2037 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
2038 * remote-mips.c (_initialize_remote_mips): Set
2039 "to_insert_watchpoint", "to_stopped_by_watchpoint",
2040 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
2041 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
2042 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
2043 (mips_stopped_by_watchpoint): Rename
2044 remote_mips_stopped_by_watchpoint.
2045 (mips_can_hardware_watchpoint): Rename
2046 remote_mips_can_use_hardware_watchpoint, update function
2049 2003-08-29 Mark Kettenis <kettenis@gnu.org>
2051 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
2052 USER_DS. We haven't given them a register number yet.
2054 * amd64-nat.h: New file.
2055 * amd64-nat.c: New file.
2056 * amd64fbsd-nat.c: Include "amd64-nat.h".
2057 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
2058 (amd64fbsd32_r_reg_offset): New variable.
2059 (supply_gregset): Simply call amd64_supply_native_gregset.
2060 (fill_gregset): Rename `regno' to `regnum'. Simply call
2061 amd64_collect_native_gregset.
2062 (fill_fpregset): Rename `regno' to `regnum'.
2063 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2064 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2065 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2066 `fpregset_t'. Call amd64_supply_native_gregset instead of
2067 supply_gregset. Call x86_64_supply_fxsave instead of
2069 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2070 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2071 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2072 `fpregset_t'. Call amd64_collect_native_gregset instead of
2073 fill_gregset. Call x86_64_collect_fxsave instead of
2075 (_initialize_am64fbsd_nat): Initialize
2076 amd64_native_gregset32_reg_offset and
2077 amd64_native_gregset64_reg_offset.
2078 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2080 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2081 null pointer. Fix typo in comment.
2083 * regcache.c (supply_register): Reimplement to call
2084 regcache_raw_supply.
2085 (regcache_collect): Reimplement by calling regcache_raw_collect.
2087 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2089 * regcache.c (register_buffer): Consitify first argument.
2090 (regcache_raw_supply, regcache_raw_collect): New
2093 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2095 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2096 by Nathan J. Williams.
2098 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2100 * lin-lwp.c (wait_lwp): New function, copied from
2101 stop_wait_callback. Clean up.
2102 (stop_wait_callback): Use wait_lwp.
2104 2003-08-28 Andrew Cagney <cagney@redhat.com>
2106 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2107 flavour and disassembler options.
2108 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2109 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2110 deprecated_tm_print_insn_info.
2112 2003-08-27 Andrew Cagney <cagney@redhat.com>
2114 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2115 Use target_read_memory.
2116 (s390_get_frame_info): Update. Do not reference
2117 deprecated_tm_print_insn_info.
2118 (s390_check_function_end, s390_is_sigreturn): Ditto.
2120 2003-08-27 Andrew Cagney <cagney@redhat.com>
2122 * Makefile.in (cris-tdep.o): Update dependencies.
2123 * cris-tdep.c: Include "gdb_assert.h".
2124 (cris_gdbarch_init): Set print_insn.
2125 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2126 (cris_delayed_get_disassembler): Simplify, directly call the
2127 disassembler returned by cris_get_disassembler.
2128 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2129 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2130 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2131 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2132 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2133 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2134 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2135 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2136 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2137 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2138 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2139 (gdb_print_insn_sparc): Delete function.
2140 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2141 deprecated_tm_print_insn_info.
2142 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2143 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2144 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2146 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2147 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2148 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2149 (s390_gdbarch_init): Set print_insn.
2151 2003-08-27 Andrew Cagney <cagney@redhat.com>
2153 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2154 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2155 * infcall.c (call_function_by_hand): Convert the entry point
2156 address into a code address.
2158 2003-08-27 Andrew Cagney <cagney@redhat.com>
2160 * dsrec.c: Include "gdb_string.h".
2161 * Makefile.in (dsrec.o): Update dependencies.
2163 2003-08-27 Michael Chastain <mec@shout.net>
2165 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2167 2003-08-27 Andrew Cagney <cagney@redhat.com>
2169 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2170 (alpha_osf1_init_abi): Do not set call_dummy_address.
2172 2003-08-27 David Carlton <carlton@kealia.com>
2174 From Randolph Chung <tausq@debian.org>:
2175 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2176 compiles with -Wformat-nonliteral -Werror.
2178 2003-08-26 Jim Blandy <jimb@redhat.com>
2180 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2181 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2182 bfd_lookup_symbol, since we only want symbols in code sections.
2183 (look_for_base): Pass zero as the SECT_FLAGS argument to
2184 bfd_lookup_symbol, since we're not concerned about which section
2187 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2189 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2190 we are frameless or the return address register is already known.
2192 2003-08-26 Andrew Cagney <cagney@redhat.com>
2194 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2195 in size. Add comments.
2197 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2199 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2200 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2202 2003-08-26 Jason Merrill <jason@redhat.com>
2204 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2205 case out of #ifdef MIPS block.
2207 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2210 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2211 available before calling SECT_OFF_TEXT.
2212 * PROBLEMS: Remove description of java/1322.
2214 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2216 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2217 bof, and nat0-nat127 as pseudo-registers.
2218 (ia64_frame_cache): New struct used to cache frame info.
2219 (ia64_register_reggroup_p): New routine used to override default
2220 register grouping so registers without names are still saved and
2222 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2224 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2225 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2226 (ia64_alloc_frame_cache): New routine to create a new
2228 (examine_prologue): Change prototype to add next_frame pointer.
2229 Assume frameless until otherwise proven. Verify that the cfm for
2230 current frame matches the cfm that should occur for the prologues
2231 alloc insn and if equal, mark as not frameless. At end of routine,
2232 if not frameless, calculate registers for the previous frame and store
2233 in the cache, if a cache is provided.
2234 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2235 and pass 0 for next_frame.
2236 (ia64_store_return_value): Change to use convert_typed_floating()
2237 instead of calling ia64_convert_to_raw().
2238 (ia64_extract_return_value): Change to use convert_typed_floating()
2239 instead of calling ia64_convert_to_virtual().
2240 (ia64_frame_cache): New routine to support new frame model.
2241 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2242 (ia64_frame_sniffer): Ditto.
2243 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2244 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2245 (ia64_sigtramp_frame_prev_register): Ditto.
2246 (ia64_sigtramp_frame_sniffer): Ditto.
2247 (ia64_frame_base_address): Ditto.
2248 (ia64_extract_struct_value_address): Change to issue error message.
2249 (ia64_frame_align): New routine to align sp.
2250 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2251 (ia64_push_arguments): Removed. Logic moved to
2252 ia64_push_dummy_call().
2253 (ia64_push_return_address): Ditto.
2254 (ia64_unwind_dummy_id): New function.
2255 (ia64_unwind_pc): Ditto.
2256 (ia64_convert_register_p): Ditto.
2257 (ia64_register_to_value): Ditto.
2258 (ia64_value_to_register): Ditto.
2259 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2260 (ia64_register_byte, ia64_register_raw_size): Ditto.
2261 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2262 (ia64_saved_pc_after_call): Ditto.
2263 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2264 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2265 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2266 (ia64_register_convert_to_raw): Ditto.
2267 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2268 (ia64_init_extra_frame_info): Ditto.
2269 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2270 (ia64_gdbarch_init): Remove registering of deprecated functions that
2271 are no longer used. Add registration of new gdbarch functions.
2272 Remove registering deprecated_write_sp. Replace
2273 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2274 Delete set_gdbarch_deprecated_register_convertible(),
2275 set_gdbarch_deprecated_register_convert_to_virtual(), and
2276 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2277 set_gdbarch_deprecated_register_size(),
2278 set_gdbarch_deprecated_register_bytes(),
2279 set_gdbarch_pcregnum(),
2280 set_gdbarch_deprecated_register_byte(),
2281 set_gdbarch_deprecated_register_raw_size(),
2282 set_gdbarch_deprecated_max_register_raw_size(),
2283 set_gdbarch_deprecated_register_virtual_size(),
2284 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2285 Replace set_gdbarch_deprecated_extract_return_value() with
2286 set_gdbarch_extract_return_value(). Remove calls to:
2287 set_gdbarch_deprecated_saved_pc_after_call();
2288 set_gdbarch_deprecated_frame_chain(),
2289 set_gdbarch_deprecated_frame_saved_pc(),
2290 set_gdbarch_deprecated_frame_init_saved_regs(),
2291 set_gdbarch_deprecated_get_saved_register(),
2292 set_gdbarch_deprecated_call_dummy_words(),
2293 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2294 set_gdbarch_deprecated_init_extra_frame_info(),
2295 set_gdbarch_deprecated_frame_args_address(),
2296 set_gdbarch_deprecated_frame_locals_address(),
2297 and set_gdbarch_deprecated_dummy_write_sp().
2298 Add set_gdbarch_convert_register_p(),
2299 set_gdbarch_register_to_value(),
2300 set_gdbarch_value_to_register(),
2301 set_gdbarch_push_dummy_call(),
2302 set_gdbarch_frame_align(),
2303 set_gdbarch_unwind_dummy_id(),
2304 set_gdbarch_unwind_pc(),
2305 frame_unwind_append_sniffer(),
2306 frame_unwind_append_sniffer(),
2307 and frame_base_set_default().
2309 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2311 * configure.tgt: Document need for special "mipsisa64" handling.
2312 (mipsisa64*-*-linux64): Handle as target linux64.
2313 (mipsisa64*-*-*): Handle as target embed64.
2315 2003-08-18 Michael Chastain <mec@shout.net>
2317 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2320 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2322 * i387-tdep.h: Update copyright date.
2323 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2325 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2326 CFLAGS games to reflect reality.
2328 2003-08-24 Andrew Cagney <cagney@redhat.com>
2330 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2331 GDB_MULTI_ARCH is always non-zero.
2332 * osabi.c (_initialize_gdb_osabi): Ditto.
2333 (gdbarch_init_osabi): Ditto.
2334 * sparc-tdep.c: Ditto for #if code.
2336 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2338 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2340 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2342 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2343 x86_64_supply_fxsave.
2344 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2345 x86_64_supply_fxsave.
2346 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2347 x86_64_supply_fxsave.
2349 2003-08-23 Andreas Jaeger <aj@suse.de>
2351 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2354 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2356 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2357 i387_supply_register.
2358 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2359 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2361 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2363 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2365 * i386bsd-nat.c (supply_fpregset): Adjust call to
2367 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2368 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2370 (store_inferior_registers): Remove extraneous whitespace. Call
2371 i387_fill_fsave instead of fill_fpregset.
2372 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2373 (supply_fpregset): Likewise.
2374 * i386v4-nat.c (supply_fpregset): Adjust call to
2376 * i386-interix-nat.c (supply_fpregset): Adjust call to
2378 * i386-linux-nat.c (supply_fpregset): Adjust call to
2380 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2381 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2382 i387supply_fsave and i387_supply_fxsave.
2383 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2384 Incorporate code from `i387_supply_register.
2385 (i387_supply_register): Remove.
2386 (i387_supply_fxsave): Add `regnum' argument.
2388 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2390 (i387_supply_register): remove prototype.
2393 2003-08-22 Michael Chastain <mec@shout.net>
2395 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2396 Add lines for files in gdb/testsuite/gdb.cp/* that are
2397 still not 8.3 unique.
2399 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2401 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2402 TYPE_VPTR_FIELDNO is valid.
2404 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2406 * utils.c (set_width_command): Remove prototypes.
2407 (set_screen_size): New prototype.
2408 (init_page_info): Simplify by fetching the screen size from
2409 Readline. Call set_screen_size.
2410 (set_screen_size): New function.
2411 (set_width): Add missing whitespace in comment.
2412 (set_width_command): Call set_screen_size.
2413 (set_height_command): New function.
2414 (initialize_utils): Fix formatting. Make "set height" command
2415 call set_height_command. Remove redundant code that turns off
2416 pagination if output isn't a terminal. Remove redundant call to
2419 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2421 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2422 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2423 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2424 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2426 (sparc64_register_info): Give the reister with number
2427 SPARC64_STATE_REGNUM a name.
2428 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2430 (sparc64_push_dummy_call): Take BIAS into account when checking
2432 (sparc_software_single_step): Remove assertions that check whether
2433 NPC and NNPC were zero.
2434 (sparc_supply_rwindow): Make public. Merge functionality with
2435 sparc64_supply_rwindow.
2436 (sparc_fill_rwindow): Make public. Merge functionality with
2437 sparc64_fill_rwindow.
2438 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2439 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2440 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2441 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2442 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2444 * reggroups.c: Add whitespace after declarations of local
2445 variables in functions.
2447 2003-08-21 Michael Chastain <mec@shout.net>
2449 * gdbtypes.h: Change array bound type from an int to enum.
2451 2003-08-21 Andrew Cagney <cagney@redhat.com>
2453 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2454 * config/sparc/tm-sparc.h: Ditto.
2455 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2457 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2459 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2461 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2462 (register_objfile_data, set_objfile_data, objfile_data): New
2464 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2466 (allocate_objfile): Call objfile_alloc_data.
2467 (free_objfile): Call objfile_free_data.
2468 (struct objfile_data): New.
2469 (struct objfile_data_registration): New.
2470 (struct objfile_data_registry): New.
2471 (objfile_data_registry): New variable.
2472 (register_objfile_data): New function.
2473 (objfile_alloc_data, objfile_free_data): New functions.
2474 (set_objfile_data, objfile_data): New functions.
2475 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2476 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2477 (_initialize_dwarf2_frame): New function and prototype.
2479 2003-08-21 Andrew Cagney <cagney@redhat.com>
2481 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2482 a specific architecture.
2483 * arch-utils.h (set_architecture_from_arch_mach): Delete
2485 (target_architecture_hook): Delete declaration.
2486 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2487 (default_float_format): Assume GDB_MULTI_ARCH.
2488 (default_double_format): Assume GDB_MULTI_ARCH.
2489 (set_endian_from_file): Delete function.
2490 (arch_ok): Delete function.
2491 (set_arch): Delete function.
2492 (set_architecture_from_arch_mach): Delete function.
2493 (set_architecture_from_file): Delete function.
2494 (set_architecture): Assume GDB_MULTI_ARCH.
2495 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2497 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2499 Rewrite FreeBSD/sparc64 native configuration.
2500 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2501 * sparc64fbsd-nat.c: New file.
2502 * sparc64fbsd-tdep.c: New file.
2503 * sparc64-tdep.c sparc64-tdep.h: New files.
2504 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2505 sparc64fbsd-tdep.o): New dependencies.
2506 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2507 and sparc64fbsd-tdep.c.
2508 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2509 * config/sparc/fbsd.mh: Remove copyright notice.
2510 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2512 * config/sparc/fbsd.mt: Remove copyright notice.
2513 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2514 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2515 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2516 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2517 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2518 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2519 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2520 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2522 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2523 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2525 2003-08-21 Michael Chastain <mec@shout.net>
2527 * symtab.h: Add doco on the space critical structures and
2528 some measurements of space usage.
2530 2003-08-21 Michael Snyder <msnyder@redhat.com>
2532 * tracepoint.c (trace_dump_command): Trace break address
2533 is subject to DECR_PC_AFTER_BREAK.
2534 (set_traceframe_context): Make "trace_line" an int.
2535 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2537 2003-08-20 Michael Snyder <msnyder@redhat.com>
2539 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2540 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2541 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2543 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2544 functions, replace sh_push_dummy_call.
2545 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2547 2003-08-20 Michael Chastain <mec@shout.net>
2549 * gdbtypes.h (struct main_type): Rearrange to save space.
2551 2003-08-20 Michael Snyder <msnyder@redhat.com>
2553 * trad-frame.c: Comment typo fix.
2555 2003-08-20 Michael Snyder <msnyder@redhat.com>
2556 Kevin Buettner <kevinb@redhat.com>
2558 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2559 (frv_frame_init_saved_regs): Add declaration.
2560 (frame_extra_info): Add new field ``saved_regs''.
2561 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2562 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2563 Update frame related code.
2564 (frv_extract_struct_value_address): Adjust formatting.
2565 * Makefile.in (frv-tdep.o): Update dependencies.
2566 * config/frv/tm-frv.h (target_insert_watchpoint)
2567 (target_remove_watchpoint, target_insert_hw_breakpoint)
2568 (target_remove_hw_breakpoint): Delete these macros.
2569 (remote_insert_watchpoint, remote_remove_watchpoint)
2570 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2573 2003-08-20 Michael Chastain <mec@shout.net>
2575 * defs.h (ENUM_BITFIELD): New macro.
2576 * symtab.h (ENUM_BITFIELD): Use it.
2577 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2579 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2581 * MAINTAINERS (write after approval): Add myself.
2583 2003-08-18 Andrew Cagney <cagney@redhat.com>
2585 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2586 * gdbarch.h, gdbarch.c: Re-generate.
2587 * infcall.c (call_function_by_hand): Adjust the SP by
2588 frame_red_zone_size before allocating any stack space.
2589 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2590 * x86-64-tdep.c (x86_64_frame_align): New function.
2591 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2593 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2594 Remove code adjusting SP so that it skips over the Red Zone.
2596 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2598 * NEWS (New native configurations): Mention FreeBSD/amd64.
2600 2003-08-18 Andrew Cagney <cagney@redhat.com>
2602 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2603 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2605 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2607 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2609 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2611 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2613 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2615 * i386-linux-nat.c: Include "linux-nat.h".
2616 (child_post_startup_inferior): New function.
2618 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2620 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2621 at the start of a frameless function. This probably fixes PR
2624 2003-08-17 Michael Chastain <mec@shout.net>
2626 * symfile.c (find_sym_fns): Remove special case for apollo target.
2628 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2630 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2631 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2632 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2633 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2634 (linux_supports_tracevforkdone): New function.
2635 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2637 (child_follow_fork): Handle vfork.
2638 (linux_handle_extended_wait): Likewise. Also handle exec.
2639 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2640 * NEWS: Mention fork tracing.
2642 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2644 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2646 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2648 * Makefile.in (i386-linux-nat.o): Update dependencies.
2649 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2650 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2651 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2652 * i386-linux-nat.c: Include "linux-nat.h".
2653 (child_post_startup_inferior): New function.
2654 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2655 * infptrace.c (kill_inferior): Wrap in #ifdef.
2656 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2657 attaching to each LWP.
2658 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2659 (init_lin_lwp_ops): Fill in some more operations.
2660 * linux-nat.h (linux_enable_event_reporting)
2661 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2663 * linux-nat.c (linux_enable_event_reporting): New function.
2664 (child_post_attach, linux_child_post_startup_inferior)
2665 (child_post_startup_inferior, child_follow_fork)
2666 (linux_handle_extended_wait, kill_inferior): New functions.
2668 2003-08-16 Andrew Cagney <cagney@redhat.com>
2670 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2671 * gdbarch.h, gdbarch.c: Re-generate.
2673 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2675 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2677 2003-08-16 Andrew Cagney <cagney@redhat.com>
2679 * NEWS: Mention that "set prompt-escape-char" was deleted.
2680 * top.c (get_prompt_1): Delete function.
2681 (gdb_prompt_escape):
2682 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2683 prompt-escape-char" command.
2684 (MAX_PROMPT_SIZE): Delete macro.
2685 (get_prompt): Simplify, do not call get_prompt_1.
2687 2003-08-16 Andrew Cagney <cagney@redhat.com>
2689 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2690 -Werror. -Wformat-nonliteral problems.
2692 2003-08-15 J. Brobecker <brobecker@gnat.com>
2694 Further multiarching work mostly for hppa64-*-hpux11:
2695 * hppa-tdep.h: New file.
2696 * hppa-tdep.c: #include hppa-tdep.c.
2697 (hppa32_num_regs): Renamed from hppa_num_regs.
2698 (hppa64_num_regs): New constant.
2699 (hppa64_call_dummy_breakpoint_offset): New constant.
2700 (hppa32_call_dummy_length): New constant.
2701 (hppa64_call_dummy_length): New constant.
2702 (hppa32_stack_align): Make name 32bit explicit.
2703 (hppa32_register_virtual_type): Likewise.
2704 (hppa32_extract_return_value): Likewise.
2705 (hppa32_use_struct_convention): Likewise.
2706 (hppa32_store_return_value): Likewise.
2707 (hppa64_register_virtual_type): New function.
2708 (hppa64_extract_return_value): New function.
2709 (hppa64_use_struct_convention): New function.
2710 (hppa64_store_return_value): New function.
2711 (hppa_frame_locals_address): Remove declaration, function does
2713 (hppa_register_byte): Add support for PA64 ABI.
2714 (hppa_gdbarch_init): Add support for PA64 ABI.
2715 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2716 Make name 32bit explicit.
2717 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2718 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2719 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2720 (hppa64_hpux_frame_base_before_sigtramp): New function.
2721 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2722 * config/pa/tm-hppa64.h: Remove macros that are no longer
2723 necessary now that the gdbarch vector is properly setup.
2724 Transform some macros into function calls. Some minor cleanup.
2725 * config/pa/tm-hppah.h: Update function calls in macros
2726 following the function renaming in hppa-hpux-tdep.c.
2727 * Makefile.in (hppa_tdep_h): New variable.
2728 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2730 2003-08-14 Michael Snyder <msnyder@redhat.com>
2732 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2734 2003-08-13 J. Brobecker <brobecker@gnat.com>
2736 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2737 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2740 2003-08-13 Michael Snyder <msnyder@redhat.com>
2742 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2743 (frv_saved_pc_after_call): Use deprecated ftype.
2744 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2745 (frv_remote_translate_xfer_address): Remove.
2746 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2748 2003-08-13 J. Brobecker <brobecker@gnat.com>
2750 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2751 initialization after the common gdbarch initialization, not before.
2753 2003-08-13 J. Brobecker <brobecker@gnat.com>
2755 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2756 (ADDR_BITS_REMOVE): Remove, redundant.
2758 2003-08-13 J. Brobecker <brobecker@gnat.com>
2760 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2761 gdbarch method to clear the 2 low bits of text addresses.
2763 2003-08-12 Andrew Cagney <cagney@redhat.com>
2765 * Makefile.in (dsrec.o): Update dependencies.
2766 * dsrec.c: Include "gdb_assert.h".
2767 (make_srec): Use snprintf instead of sprintf, use a literal format
2770 2003-08-12 Andrew Cagney <cagney@redhat.com>
2772 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2773 FRAME_OBSTACK_ZALLOC.
2775 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2777 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2780 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2782 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2783 amd64fbsd_sc_reg_offset): Add extern declarations.
2784 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2787 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2789 * MAINTAINERS (write after approval): Update my mail address.
2791 2003-08-10 Andrew Cagney <cagney@redhat.com>
2793 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2795 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2797 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2798 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2799 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2800 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2801 i386bsd_sc_reg_offset): Add extern declarations.
2802 * i386obsd-nat.c: Include "i386-tdep.h"
2803 (_initialize_i386obsd_nat): Remove extern declarations.
2804 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2806 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2809 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2810 instead of frame_read_register.
2811 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2812 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2814 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2815 instead of frame_unwind_unsigned_register. Use
2816 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2817 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2818 instead of read_register. Use builtin_type_void_data_ptr instead
2819 of builtin_type_void_func_ptr when extracting the address of the
2821 (i386_extract_return_value, i386_store_return_value,
2822 i386_pseudo_register_read, i386_pseudo_register_write): Use
2823 register_size instead REGISTER_RAW_SIZE.
2825 2003-08-10 Andrew Cagney <cagney@redhat.com>
2827 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2828 sprintf. Make "name" constant.
2830 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2832 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2833 instead of frame_read_register.
2834 (i387_print_float_info): Use get_frame_register and
2835 get_frame_register_unsigned instead of frame_register_read.
2837 * i386fbsd-nat.c: Include "i386-tdep.h".
2838 (child_resume): Make `eflags' an ULONGEST. Use
2839 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2840 instead of register_read and register_write.
2842 * i386bsd-nat.c (fetch_inferior_registers,
2843 store_inferior_registers): Don't use && at the end of a line.
2844 (_initialize_i386bsd_nat): Fix typo.
2846 * frame.c (_initialize_frame): Add missing backslash.
2848 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2849 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2850 and supply_register instead of manipulating the register buffer
2853 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2854 * config/i386/nm-i386sol2.h
2855 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2857 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2858 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2859 instructions that GCC likes to mingle into the prologue. Fixes
2860 gdb/1253 and gdb/1255.
2862 2003-08-09 Andrew Cagney <cagney@redhat.com>
2865 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2866 * command.h (add_setshow_uinteger_cmd): Declare.
2867 * frame.c (set_backtrace_cmd): New function.
2868 (show_backtrace_cmd): New function.
2869 * frame.c (_initialize_frame): Replace "set/show
2870 backtrace-below-main" with "set/show backtrace past-main". Add
2871 command "set/show backtrace limit".
2872 (backtrace_past_main): Rename "backtrace_below_main".
2873 (backtrace_limit): New variable.
2874 (get_prev_frame): Update. Check the backtrace_limit.
2876 2003-08-09 Andrew Cagney <cagney@redhat.com>
2878 * defs.h (xstrprintf): Declare.
2879 * utils.c (xstrprintf): New function.
2880 * breakpoint.c (insert_breakpoints): Replace sprintf and
2881 non-literal format strings, with xstrprintf and cleanups.
2882 (delete_breakpoint,breakpoint_re_set): Ditto.
2883 (commands_command, insert_breakpoints): Ditto.
2884 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2885 (break_at_finish_command_1): Ditto.
2887 2003-08-09 Andrew Cagney <cagney@redhat.com>
2889 * MAINTAINERS (language support): List Adam Fedor as Objective C
2892 2003-08-08 J. Brobecker <brobecker@gnat.com>
2894 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2895 are now multiarched.
2897 2003-08-08 J. Brobecker <brobecker@gnat.com>
2899 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2900 longer necessary now that hppa64 is partially multiarch'ed.
2902 2003-08-08 Andrew Cagney <cagney@redhat.com>
2904 * interps.c (interp_set): Check for a NULL "old_interp".
2906 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2908 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2909 (install-only): Support DESTDIR.
2910 (uninstall): Likewise.
2911 (install-gdbtk): Likewise.
2913 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2915 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2916 contains something meaningful at all times.
2918 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2920 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2922 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2924 * MAINTAINERS (write after approval): Added self.
2926 2003-08-07 Andrew Cagney <cagney@redhat.com>
2928 * inferior.h (AT_SYMBOL): Define.
2929 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2930 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2931 * mips-tdep.c (mips_call_dummy_address): Delete function.
2932 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2933 set call_dummy_address.
2935 2003-08-07 Andrew Cagney <cagney@redhat.com>
2937 * language.c (op_error): Delete function.
2938 (binop_type_check): Delete function.
2939 * language.h (type_op_error, range_op_error): Delete macros.
2940 (op_error): Delete declaration.
2942 2003-08-07 Andrew Cagney <cagney@redhat.com>
2944 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2946 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2948 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2949 (x86_64_push_arguments): Skip the red zone.
2951 2003-08-05 Andrew Cagney <cagney@redhat.com>
2953 * reggroups.c (reggroup_next): Check for the final entry.
2955 2003-08-04 Andrew Cagney <cagney@redhat.com>
2957 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2958 * cli/cli-script.c (define_command): Call query directly, instead
2959 of passing it a buffer.
2960 * ocd.c (ocd_error): Pass error a constant format string.
2961 * remote-mips.c (mips_error): Use fputs_filtered.
2963 * solib-svr4.c (_initialize_svr4_solib): Update
2964 register_gdbarch_data call.
2965 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2967 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2968 (register_gdbarch_data): Delete "free" parameter. Update
2970 * gdbarch.h, gdbarch.c: Re-generate.
2971 * reggroups.c (_initialize_reggroup): Update.
2972 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2973 * frame-base.c (_initialize_frame_base): Update.
2974 * frame-unwind.c (_initialize_frame_unwind): Update.
2975 * user-regs.c (_initialize_user_regs): Update.
2976 * remote.c (_initialize_remote): Update.
2977 * regcache.c (_initialize_regcache): Update.
2979 * regcache.c (xfree_regcache_descr): Delete function.
2980 (_initialize_regcache): Update call to register_gdbarch_data.
2981 (init_regcache_descr, init_legacy_regcache_descr): Use
2982 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2984 * remote.c (free_remote_state): Delete function.
2985 (_initialize_remote): Update register_gdbarch_data.
2986 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2987 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2989 2003-08-04 Andrew Cagney <cagney@redhat.com>
2991 * reggroups.c (struct reggroup_el): Define.
2992 (struct reggroups): Delete field "nr_group". Replace array
2993 "group" with a "first" to "last" linked list.
2994 (reggroups_init): Update. Allocate using gdbarch's obstack.
2995 (reggroups_free): Delete function.
2996 (add_group): Update. Add "el" parameter.
2997 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2998 (default_groups): Update.
2999 (reggroup_next): Replace reggroups.
3000 (reggroups_dump): Update.
3001 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
3002 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
3003 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
3005 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
3007 * Makefile.in (tui-interp.o): Update dependencies.
3009 2003-08-04 David Carlton <carlton@kealia.com>
3011 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
3012 to internal_error call.
3013 * source.c (forward_search_command): Add "%s" format argument.
3014 (reverse_search_command): Ditto.
3015 * top.c (quit_confirm): Ditto.
3016 * cli/cli-setshow.c (do_setshow_command): Ditto.
3017 * cp-valprint.c (cp_print_class_method): Replace
3018 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
3019 (cp_print_class_member): Ditto.
3020 * event-top.c (command_line_handler): Ditto.
3021 * linux-proc.c (linux_info_proc_cmd): Ditto.
3022 * p-typeprint.c (pascal_type_print_base): Ditto.
3023 * p-valprint.c (pascal_object_print_class_method): Ditto.
3024 (pascal_object_print_class_member): Ditto.
3025 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
3026 * remote.c (remote_cisco_section_offsets): Ditto.
3027 * top.c (command_line_input): Ditto.
3028 * utils.c (vwarning,error_stream,quit): Ditto.
3029 * valprint.c (print_floating,print_binary_chars)
3030 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
3032 2003-08-04 Andrew Cagney <cagney@redhat.com>
3034 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
3036 2003-08-02 Andrew Cagney <cagney@redhat.com>
3038 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
3039 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
3042 2003-08-02 Andrew Cagney <cagney@redhat.com>
3044 * Makefile.in: Update all dependencies and definitions.
3046 2003-08-02 Adam Fedor <fedor@gnu.org>
3048 * linespec.c (is_objc_method_format): New function
3049 (decode_line_1, locate_first_half): Use it.
3052 2003-08-01 Andrew Cagney <cagney@redhat.com>
3054 * NEWS: Mention that m32r is multi-arch.
3055 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
3056 * configure.tgt: Recognize m32r-*-*.
3057 * config/m32r/tm-m32r.h: Delete file.
3058 * config/m32r/m32r.mt: New file.
3059 * m32r-rom.c (m32r_upload_command): Use hostent only when
3060 gethostname succeeds, in order to avoid a compilation
3062 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3065 2003-08-01 Michael Snyder <msnyder@redhat.com>
3067 * sh-tdep.c (sh_frame_align): New gdbarch method.
3068 (sh_gdbarch_init): Set up frame_align method.
3070 2003-07-31 Michael Snyder <msnyder@redhat.com>
3072 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3073 which is already covered by the new frames infrastructure.
3075 2003-07-31 Andrew Cagney <cagney@redhat.com>
3077 * user-regs.c (struct user_reg): Add "next" link.
3078 (struct user_regs): Replace "user" with "first" and "last" links.
3079 (append_user_reg): Add pre-allocated "reg" parameter.
3080 (builtin_user_regs): Provide initial value for "last".
3081 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3082 (user_regs_init): Allocate memory from the gdbarch obstack.
3083 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3084 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3086 (usernum_to_user_reg): New function.
3087 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3088 (value_of_user_reg): Use usernum_to_user_reg.
3089 (user_regs_free): Delete function.
3090 (_initialize_user_regs): Update register_gdbarch_data call.
3092 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3094 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3096 2003-07-30 Michael Snyder <msnyder@redhat.com>
3098 * value.h (value_being_returned): Add a struct_addr argument.
3099 * infcall.c (call_function_by_hand): Pass struct_addr to
3100 value_being_returned.
3101 * infcmd.c (print_return_value): Pass zero as struct_addr.
3102 * values.c (value_being_returned): If struct_addr is passed,
3103 use it instead of trying to recover it from the inferior.
3105 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3107 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3108 the prologue analyzer won't need to attempt to extract the pc
3109 value from the woefully incomplete dummy frame.
3110 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3111 possible. Disable code which modifies the frame.
3113 2003-07-28 Andrew Cagney <cagney@redhat.com>
3115 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3117 (annotate_breakpoints_table, annotate_record): Ditto.
3118 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3119 (annotate_field_name_end, annotate_field_value): Ditto.
3120 (annotate_field_end, annotate_frame_source_begin): Ditto.
3121 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3122 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3123 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3124 (annotate_frame_address_end, annotate_frame_address): Ditto.
3125 (annotate_frame_args, annotate_frame_end): Ditto.
3126 (annotate_frame_where, annotate_arg_begin): Ditto.
3127 (annotate_arg_name_end, annotate_arg_value): Ditto.
3128 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3129 (annotate_function_call, annotate_signal_name): Ditto.
3130 (annotate_signal_string, annotate_signal_name_end): Ditto.
3131 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3132 (annotate_value_begin, annotate_value_history_value): Ditto.
3133 (annotate_value_history_end, annotate_value_end): Ditto.
3134 (annotate_display_begin, annotate_display_number_end): Ditto.
3135 (annotate_display_format, annotate_display_expression): Ditto.
3136 (annotate_display_expression_end, annotate_display_value): Ditto.
3137 (annotate_display_end, annotate_array_section_begin): Ditto.
3138 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3139 (annotate_elt, annotate_array_section_end): Ditto.
3141 2003-07-28 Andrew Cagney <cagney@redhat.com>
3143 * regcache.c (struct regcache_descr): Update comments on
3145 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3146 sizeof_raw_register_valid_p.
3147 (init_regcache_descr): Set nr_raw_registers and
3148 sizeof_raw_register_valid_p before calling
3149 init_legacy_regcache_descr.
3151 2003-07-28 Andrew Cagney <cagney@redhat.com>
3153 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3156 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3158 * thread.c (info_threads_command): Use get_selected_frame ().
3159 Check that there is at least one non-sentinel frame.
3161 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3163 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3164 (m68hc11_pop_frame): Remove.
3165 (m68hc11_frame_saved_pc): Remove.
3166 (m68hc11_frame_chain): Remove.
3167 (m68hc11_frame_init_saved_regs): Remove.
3168 (m68hc11_init_extra_frame_info): Remove.
3169 (m68hc11_store_struct_return): Remove.
3170 (m68hc11_saved_pc_after_call): Remove.
3172 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3174 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3175 frame unwind information.
3176 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3177 and adapted for frame unwinding.
3178 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3179 (m68hc11_unwind_pc): New function.
3180 (m68hc11_frame_unwind_cache): New function to analyze frames.
3181 (m68hc11_frame_this_id): New function to create new frame struct.
3182 (m68hc11_frame_prev_register): New function to unwind a register from
3184 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3185 (m68hc11_frame_p): New function for the above.
3186 (m68hc11_frame_base_address): New function to return fp of frame.
3187 (m68hc11_frame_args_address): Update for frame.
3188 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3189 (m68hc11_unwind_sp): New function.
3190 (m68hc11_unwind_dummy_id): New function.
3191 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3194 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3196 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3197 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3198 when we are beyond the current pc.
3200 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3202 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3203 from m68hc11_push_arguments.
3204 (m68hc11_push_arguments): Remove.
3205 (m68hc11_push_return_address): Remove.
3206 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3207 handlers; remove deprecated_extra_stack_alignment_needed.
3209 2003-07-27 Andrew Cagney <cagney@redhat.com>
3211 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3212 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3213 REAL_PC and not the pointer.
3214 * hppa-hpux-tdep.c: Include frame.h
3216 2003-07-27 Andrew Cagney <cagney@redhat.com>
3218 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3219 GDB_MULTI_ACH_PARTIAL.
3221 2003-07-27 Andrew Cagney <cagney@redhat.com>
3223 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3224 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3225 operator at start and not end of line.
3226 (decode_prologue): Ditto.
3227 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3228 frame_unwind_register_unsigned instead of
3229 frame_unwind_unsigned_register.
3230 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3232 (m32r_push_dummy_call): Use register_size instead of
3234 (m32r_frame_sniffer): Replace m32r_frame_p.
3235 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3236 * m32r-rom.c (report_transfer_performance): Delete extern
3238 (m32r_load, m32r_upload_command): Use print_transfer_performance
3239 instead of report_transfer_performance.
3240 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3241 / add_show_from_set.
3243 2003-07-26 Andrew Cagney <cagney@redhat.com>
3245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3246 store_return_value and extract_struct_value_address.
3248 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3251 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3252 NULL, default to the section containing PC.
3254 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3256 * NEWS: Mention "regs" deprecated for m68hc11 too.
3258 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3259 (m68hc11_print_register): New function to print out one register.
3260 (m68hc11_print_registers_info): New function to print registers.
3261 (show_regs): Deprecate and use the above.
3262 (m68hc11_gdbarch_init): Install the print_registers_info.
3264 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3266 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3267 that we have a SIGTRAP before returning non-zero.
3269 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3270 Elena Zannoni <ezannoni@redhat.com>
3272 * linespec.c (decode_line_2): Avoid crash if
3273 find_function_start_sal() returns empty record.
3275 2003-07-23 Andreas Schwab <schwab@suse.de>
3277 * ia64-tdep.c (ia64_print_insn): New function.
3278 (ia64_gdbarch_init): Set print_insn to it.
3279 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3280 deprecated_tm_print_insn_info.
3282 2003-07-22 Michael Snyder <msnyder@redhat.com>
3284 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3285 handle 8-bit returns (long long).
3286 (h8300h_extract_return_value): Ditto.
3287 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3289 2003-07-22 Andrew Cagney <cagney@redhat.com>
3291 * gdbarch.c Include "gdb_obstack.h".
3292 (struct gdbarch): Add an "obstack".
3293 (alloc_gdbarch_data): Allocate the gdbarch data using
3294 GDBARCH_OBSTACK_CALLOC.
3295 (free_gdbarch_data): Delete function.
3296 (gdbarch_obstack_zalloc): New function.
3297 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3298 Assert that the architecture is not initialized.
3299 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3300 vector from the obstack.
3301 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3302 architecture obstack.
3303 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3304 (set_gdbarch_data): Assert that the data is not initialized.
3305 (struct gdbarch_data): Delete member "free".
3306 (register_gdbarch_data): Do not initialize "free".
3307 * gdbarch.h, gdbarch.c: Re-generate.
3309 2003-07-22 Andrew Cagney <cagney@redhat.com>
3311 * configure.in (build_warnings): Add -Wformat-nonliteral.
3312 * configure: Re-generate.
3314 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3316 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3318 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3320 * findvar.c (read_var_value): Remove case for thread local storage
3321 variables. It is now entirely handled by the dwarf2 location
3323 * printcmd.c (address_info): Ditto.
3324 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3326 (struct symbol): Remove objfile field, which was used by
3327 LOC_THREAD_LOCAL_STATIC only.
3328 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3329 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3330 usage of objfile pointer.
3331 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3332 thread local variables.
3333 Add include of objfiles.h.
3334 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3336 * Makefile.in (dwarf2loc.o): Update dependencies.
3338 2003-07-22 Andrew Cagney <cagney@redhat.com>
3340 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3342 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3343 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3344 (struct value): Add opaque declaration.
3345 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3347 2003-07-21 Andrew Cagney <cagney@redhat.com>
3349 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3350 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3352 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3354 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3355 regcache_cooked_read_unsigned instead of read_register.
3356 (m68hc11_saved_pc_after_call): Likewise.
3357 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3358 instead of write_register.
3359 (m68hc11_register_type): New function.
3360 (m68hc11_register_virtual_type): Remove.
3361 (m68hc11_store_return_value): Convert to use the regcache.
3362 (m68hc11_extract_struct_value_address): Likewise.
3363 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3364 m68hc11_register_type; undeprecate store_return_value and
3365 extract_struct_value_address.
3367 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3369 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3370 and translate to use regcache.
3371 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3373 2003-07-18 Andrew Cagney <cagney@redhat.com>
3375 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3376 * gdbarch.h, gdbarch.c: Re-generate.
3377 * i386-tdep.c (i386_gdbarch_init): Do not set
3378 DWARF2_BUILD_FRAME_INFO.
3379 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3381 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3382 DWARF2_BUILD_FRAME_INFO.
3384 2003-07-18 Andrew Cagney <cagney@redhat.com>
3386 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3387 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3389 2003-07-18 Andrew Cagney <cagney@redhat.com>
3391 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3392 frame_unwind_address_in_block, instead of frame_pc_unwind.
3393 (dwarf2_frame_cache): Ditto.
3395 2003-07-18 Andrew Cagney <cagney@redhat.com>
3397 * user-regs.h (struct gdbarch): Declare opaque.
3398 * ui-out.h (struct ui_file): Declare opaque.
3399 * dwarf2-frame.h (struct frame_info): Declare opaque.
3401 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3403 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3405 (procfs_meminfo): Change strerror to safe_strerror.
3406 (procfs_can_run): Remove K&R badness.
3408 2003-07-17 Michael Snyder <msnyder@redhat.com>
3410 * remote-sim.c: Comment typo fix.
3412 2003-07-17 Andrew Cagney <cagney@redhat.com>
3414 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3416 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3417 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3418 GDB_MULTI_ARCH_PARTIAL.
3420 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3422 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3423 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3424 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3426 2003-07-16 Theodore A. Roth <troth@openavr.org>
3428 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3430 (avr_frame_unwind_cache): Don't unwind FP for main.
3432 Save the computed prev_sp.
3433 (avr_saved_regs_unwinder): Remove function.
3434 (avr_frame_prev_register): Use PC unwind logic from
3435 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3437 2003-07-16 Andrew Cagney <cagney@redhat.com>
3439 * frame-base.h (frame_base_p_ftype): Delete definition.
3440 (frame_base_append_predicate): Delete declaration.
3441 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3442 (frame_unwind_append_predicate): Delete declaration.
3443 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3444 (append_predicate): Delete parameter "p".
3445 (frame_unwind_append_predicate): Delete function.
3446 (frame_unwind_append_sniffer): Update call to append_predicate.
3447 (frame_unwind_free): Delete function.
3448 (_initialize_frame_unwind): Pass NULL as "free" to
3449 register_gdbarch_data.
3450 (frame_unwind_init): Append the dummy_frame_sniffer.
3451 (frame_unwind_find_by_frame): Simplify.
3452 * frame-base.c (struct frame_base_table): Delete field "p".
3453 (append_predicate): Delete parameter "p".
3454 (frame_base_append_predicate): Delete function.
3455 (frame_base_append_sniffer): Update call to append_predicate.
3456 (frame_base_free): Delete function.
3457 (frame_base_find_by_frame): Simplify.
3458 (_initialize_frame_base): Pass NULL as "free" to
3459 register_gdbarch_data.
3460 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3461 (x86_64_sigtramp_frame_sniffer): Replace
3462 "x86_64_sigtramp_frame_p".
3463 (x86_64_init_abi): Set the frame unwind sniffers.
3464 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3465 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3466 (m68k_gdbarch_init): Set the frame unwind sniffers.
3467 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3468 "i386_sigtramp_frame_p".
3469 (i386_frame_sniffer): Replace "i386_frame_p".
3470 (i386_gdbarch_init): Set the frame unwind sniffers.
3471 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3472 (avr_gdbarch_init): Set the frame unwind sniffers.
3473 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3474 "alpha_sigtramp_frame_p"
3475 (alpha_heuristic_frame_sniffer): Replace
3476 "alpha_heuristic_frame_p".
3477 (alpha_gdbarch_init): Set the frame unwind sniffers.
3478 (alpha_dwarf2_init_abi): Ditto.
3479 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3480 "alpha_debug_frame_p".
3481 (alpha_mdebug_frame_base_sniffer): Replace
3482 "alpha_mdebug_frame_base_p".
3483 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3484 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3485 (d10v_gdbarch_init): Set the frame unwind sniffer.
3486 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3487 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3488 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3489 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3490 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3491 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3493 2003-07-16 Michael Snyder <msnyder@redhat.com>
3495 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3496 should go thru sh_dsp_register_sim_regno, else the dsp regs
3497 will not get the right values.
3499 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3501 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3502 deprecated_store_floating by call to store_typed_floating.
3503 (sh_sh4_register_convert_to_raw): Substitute call to
3504 deprecated_extract_floating by call to extract_typed_floating.
3506 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3508 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3510 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3512 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3513 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3514 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3516 (do_pseudo_register): Remove.
3517 (sh_push_dummy_code): New function.
3518 (sh64_store_struct_return): Rename from sh_store_struct_return.
3519 Only called for sh64 now.
3520 (sh_extract_struct_value_address): Regcache'ify.
3521 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3522 and accomodate new tasks.
3523 (sh64_push_return_address): Rename from sh_push_return_address.
3524 Only called for sh64 now.
3525 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3527 (sh3e_sh4_extract_return_value): Regcache'ify.
3528 (sh_default_store_return_value): Ditto.
3529 (sh3e_sh4_store_return_value): Ditto.
3530 (sh_default_register_byte): Remove.
3531 (sh_sh4_register_byte): Remove.
3532 (sh_default_register_raw_size): Remove.
3533 (sh_sh4_register_raw_size): Remove.
3534 (sh_register_virtual_size): Remove.
3535 (sh_sh3e_register_virtual_type): Remove.
3536 (sh_sh3e_register_type): New function.
3537 (sh_sh4_register_virtual_type): Remove.
3538 (sh_sh4_register_type): New function.
3539 (sh_default_register_virtual_type): Remove.
3540 (sh_default_register_type): New function.
3541 (do_fv_register_info): Add parameters to accomodate call from
3542 sh_print_registers_info.
3543 (do_dr_register_info): Ditto.
3544 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3545 Add parameters to accomodate call from sh_print_registers_info.
3546 (sh_do_fp_register): Ditto.
3547 (sh64_do_pseudo_register): Call do_dr_register_info,
3548 do_fv_register_info and sh_do_fp_register with default parameters.
3549 (sh_do_register): Add parameters to accomodate call from
3550 sh_print_registers_info.
3551 (sh_print_register): Ditto.
3552 (sh_print_registers_info): Rename from sh_do_registers_info.
3553 Add parameters to be used as gdbarch_print_registers_info
3554 implementation. Accomodate removed do_pseudo_register function
3556 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3557 function pointer. Call sh_print_register with default parameters.
3558 (sh64_do_registers_info): Call sh_print_registers_info instead of
3559 sh_do_registers_info.
3560 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3561 detection of deprecated vs. non-deprecated functionality.
3562 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3563 function pointer assignments by direct function calls.
3565 2003-07-15 Andrew Cagney <cagney@redhat.com>
3567 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3568 (frame_register_unwind, create_new_frame): Ditto.
3569 (legacy_get_prev_frame, get_frame_type): Ditto.
3570 (get_frame_base_address): Use frame_base_find_by_frame.
3571 (get_frame_locals_address): Use frame_base_find_by_frame.
3572 (get_frame_args_address): Use frame_base_find_by_frame.
3573 * frame-base.h (frame_base_sniffer_ftype): Declare.
3574 (frame_base_append_sniffer): Declare.
3575 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3576 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3577 (frame_base_append_sniffer): New function.
3578 (frame_base_append_predicate): Add a NULL sniffer.
3579 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3580 (struct frame_base_table): Add "sniffer".
3581 (frame_base_free): Free the "sniffer" table.
3582 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3583 (frame_unwind_append_sniffer): Declare.
3584 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3585 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3586 (struct frame_unwind_table): Add "sniffer", delete "middle".
3587 (append_predicate): Add "sniffer" parameter, append the sniffer.
3588 (frame_unwind_init): Update append_predicate call.
3589 (frame_unwind_append_sniffer): New function.
3590 (frame_unwind_append_predicate): Update append_predicate call.
3591 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3593 2003-07-15 Andrew Cagney <cagney@redhat.com>
3595 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3596 before code inhibiting repeated unwind attempts. Add to
3597 commentary on that test's problems.
3598 * blockframe.c (inside_main_func): Look for "main" in the minimal
3600 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3603 2003-07-15 Andrew Cagney <cagney@redhat.com>
3605 * complaints.c (struct explanation): Define.
3606 (struct complaints): Change type of "explanation" to "struct
3608 (symfile_explanations): Convert to a "struct explanation" table.
3609 (vcomplaint): Update.
3611 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3613 * x86-64-linux-nat.c (regmap): Removed.
3614 (supply_gregset, fill_gregset): Call
3615 x86_64_linux_(fill,supply)_gregset functions.
3616 * x86-64-linux-tdep.c (USER_*): New defines.
3617 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3618 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3620 (fetch_core_registers): Ditto.
3621 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3622 * x86-64-linux-tdep.h: New file.
3623 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3625 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3627 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3629 * x86-64-tdep.c (x86_64_store_return_value): Use
3630 regcache_cooked_write_part instead of regcache_cooked_write.
3632 * configure.host: Add x86_64-*-freebsd*.
3633 * configure.tgt: Add x86_64-*-freebsd*.
3634 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3635 * amd64fbsd-nat.c: New file.
3636 * amd64fbsd-tdep.c: New file.
3637 * config/i386/nm-fbsd64.h: New file.
3638 * config/i386/fbsd64.mh: New file.
3639 * config/i386/fbsd64.mt: New file.
3641 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3643 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3644 `sc_regs_offset' and `sc_fpregs_offset'.
3645 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3646 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3647 (alpha_sigtramp_register_address): Rewrite to use new members of
3648 `struct gdbarch_tdep'.
3649 (alpha_gdbarch_init): Initialize new members of struct
3651 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3652 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3653 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3654 (alphafbsd_pc_in_sigtramp): Implement.
3655 (alphafbsd_sigtramp_offset): New function.
3656 (alphafbsd_sigcontext_addr): New function.
3657 (alphafbsd_init_abi): Initialize signal trampoline related members
3658 of `struct gdbarch_tdep'.
3659 (_initialize_alphafbsd_tdep): Add prototype.
3661 2003-07-11 Theodore A. Roth <troth@openavr.org>
3663 * Makefile.in (install-only): Quote sed expression when generating
3666 2003-07-11 Richard Henderson <rth@redhat.com>
3668 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3669 * dwarf2-frame.c: Include complaints.h.
3670 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3671 variable initialization; return NULL on error.
3672 (decode_frame_entry): New.
3674 2003-07-11 Andrew Cagney <cagney@redhat.com>
3676 * frame.h (frame_address_in_block): Delete declaration.
3677 * blockframe.c (frame_address_in_block): Delete function.
3678 (get_frame_block): Use get_frame_address_in_block.
3679 (block_innermost_frame): Ditto.
3680 * stack.c (print_frame, backtrace_command_1): Ditto.
3682 * frame.h (get_frame_address_in_block): Declare.
3683 (frame_unwind_address_in_block): Declare.
3684 * frame.c (frame_unwind_address_in_block): New function.
3685 (get_frame_address_in_block): New function.
3687 2003-07-10 Andrew Cagney <cagney@redhat.com>
3689 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3690 pre-default. Note: re-generate has no effect.
3692 2003-07-10 Andrew Cagney <cagney@redhat.com>
3694 * gdbarch.sh: When a variable, but not a function, compare against
3695 0. Fix problem in previous patch.
3696 * gdbarch.c: Re-generate.
3698 2003-07-10 Andrew Cagney <cagney@redhat.com>
3700 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3701 functions against NULL, not 0.
3702 * gdbarch.c: Re-generate.
3704 2003-07-10 Fred Fish <fnf@ninemoons.com>
3706 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3707 null string instead of a null pointer.
3708 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3710 2003-07-09 Michael Snyder <msnyder@redhat.com>
3712 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3714 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3716 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3717 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3718 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3719 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3720 * x86-64-tdep.c: ... from here.
3722 2003-07-09 Andreas Schwab <schwab@suse.de>
3724 * m68k-tdep.h (enum struct_return): Define.
3725 (struct gdbarch_tdep): Add struct_return.
3726 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3727 bytes are padded to the right, not to the left. Pass struct value
3728 address in register %a1, not on stack.
3729 (m68k_use_struct_convention): New function.
3730 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3731 struct_return in tdep to pcc_struct_return.
3732 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3735 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3737 * somread.c (som_symfile_offsets): Fix compilation error.
3739 2003-07-09 Andrew Cagney <cagney@redhat.com>
3741 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3742 Add comments about the checks.
3744 2003-07-08 Andrew Cagney <cagney@redhat.com>
3746 * Makefile.in: Make dependency section headers consistent.
3747 (config_h): Move to $BUILD headers section.
3748 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3749 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3750 (ada-exp.tab.c): Move to YACC/LEX section.
3751 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3752 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3754 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3756 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3757 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3758 of strerror with safe_strerror, use ISO C function definitions,
3759 and replace instances of sprintf with snprintf.
3761 2003-07-07 Andrew Cagney <cagney@redhat.com>
3763 * frame.c (get_prev_frame): Enable check for identical frames.
3764 Update comments. Update error messages.
3766 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3768 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3770 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3772 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3773 sort_symtab_syms, no longer necessary.
3775 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3777 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3779 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3781 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3782 (mips_register_byte): Likewise.
3784 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3786 * Makefile.in (sparc_tdep_h): New.
3787 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3788 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3789 * sparc-linux-nat.c: Include "sparc-tdep.h".
3790 * sparc-nat.c: Likewise.
3791 * sparc-tdep.c: Likewise.
3792 * sparc64nbsd-nat.c: Likewise.
3793 * sparcnbsd-nat.c: Likewise.
3794 * sparcnbsd-tdep.c: Likewise.
3795 * sparc-tdep.h: New file.
3796 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3797 and sparc_npc_regnum.
3799 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3801 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3802 (mips_linux_cannot_store_register): List supported instead of
3803 unsupported registers.
3805 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3807 * disasm.c (dump_insns): Separate instructions from addresses.
3809 2003-07-07 Andreas Schwab <schwab@suse.de>
3811 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3813 * m68k-tdep.c (NUM_FREGS): Delete.
3814 (SIG_PC_FP_OFFSET): Delete.
3815 (TARGET_M68K): Delete.
3816 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3817 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3818 P_MOVEL_SP, P_MOVEML_SP): Define.
3819 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3821 (m68k_register_raw_size): Delete.
3822 (m68k_register_virtual_size): Delete.
3823 (m68k_register_type): Renamed from m68k_register_virtual_type and
3824 add gdbarch argument.
3825 (m68k_store_struct_return): Delete.
3826 (m68k_deprecated_extract_return_value): Delete.
3827 (m68k_deprecated_extract_struct_value_address): Delete.
3828 (m68k_frame_chain): Delete.
3829 (m68k_frame_saved_pc): Delete.
3830 (m68k_fix_call_dummy): Delete.
3831 (m68k_push_dummy_frame): Delete.
3832 (m68k_pop_frame): Delete.
3833 (m68k_extract_return_value): New function.
3834 (m68k_store_return_value): Rewrite using regcache.
3835 (m68k_extract_struct_value_address): Rewrite using regcache.
3836 (m68k_push_dummy_call): New function.
3837 (struct m68k_frame_cache): Define.
3838 (m68k_alloc_frame_cache): New function.
3839 (m68k_analyze_frame_setup): New function.
3840 (m68k_analyze_register_saves): New function.
3841 (m68k_analyze_prologue): New function.
3842 (m68k_skip_prologue): Rewrite using above functions.
3843 (m68k_unwind_pc): New function.
3844 (m68k_frame_cache): New function.
3845 (m68k_frame_this_id): New function.
3846 (m68k_frame_prev_register): New function.
3847 (m68k_frame_unwind): New variable.
3848 (m68k_frame_p): New function.
3849 (m68k_sigtramp_frame_cache): New function.
3850 (m68k_sigtramp_frame_this_id): New function.
3851 (m68k_sigtramp_frame_prev_register): New function.
3852 (m68k_sigtramp_frame_unwind): New variable.
3853 (m68k_sigtramp_frame_p): New function.
3854 (m68k_frame_base_address): New function.
3855 (m68k_frame_base): New function.
3856 (m68k_unwind_dummy_id): New function.
3857 (fill_gregset): Use regcache_collect.
3858 (fill_fpregset): Likewise.
3859 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3861 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3862 deprecated_init_frame_pc, deprecated_store_struct_return,
3863 deprecated_extract_return_value, deprecated_store_return_value,
3864 deprecated_frame_chain, deprecated_frame_saved_pc,
3865 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3866 deprecated_register_virtual_size,
3867 deprecated_max_register_raw_size,
3868 deprecated_max_register_virtual_size,
3869 deprecated_register_virtual_type, deprecated_register_size,
3870 deprecated_register_byte, deprecated_register_bytes,
3871 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3872 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3873 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3874 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3875 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3876 deprecated_push_dummy_frame, deprecated_pop_frame,
3877 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3878 only if SYSCALL_TRAP is defined. Set extract_return_value,
3879 store_return_value, extract_struct_value_address, register_type,
3880 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3882 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3883 M68K_MAX_REGISTER_SIZE): Define.
3884 (struct m68k_sigtramp_info): Define.
3885 (struct gdbarch_tdep): Add get_sigtramp_info.
3886 * m68klinux-nat.c (fetch_register): Use register_size instead of
3887 REGISTER_RAW_SIZE. Don't put assignment in if.
3888 (store_register): Likewise.
3889 (fetch_inferior_registers): Likewise.
3890 (store_inferior_registers): Likewise.
3891 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3892 (m68k_linux_frame_saved_pc): Delete.
3893 (m68k_linux_sigcontext_reg_offset,
3894 m68k_linux_ucontext_reg_offset): Define.
3895 (m68k_linux_get_sigtramp_info): New function.
3896 (m68k_linux_extract_return_value): Rewrite using regcache.
3897 (m68k_linux_store_return_value): Likewise.
3898 (m68k_linux_extract_struct_value_address): Likewise.
3899 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3900 Don't set deprecated_frame_saved_pc,
3901 deprecated_extract_return_value, deprecated_store_return_value,
3902 deprecated_extract_struct_value_address. Set
3903 extract_return_value, store_return_value,
3904 extract_struct_value_address.
3906 2003-07-07 Andrew Cagney <cagney@redhat.com>
3908 * expprint.c: Include "user-regs.h" instead of "frame.h".
3909 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3910 frame_map_regnum_to_name.
3911 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3912 (frame_map_name_to_regnum): Simplify, call
3913 user_reg_map_name_to_regnum.
3914 (frame_map_regnum_to_name): Simplify, call
3915 user_reg_map_regnum_to_name.
3916 (frame_register_unwind): Update.
3917 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3918 (_initialize_frame_reg): Call user_reg_add_builtin.
3919 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3920 (value_of_register): Use value_of_user_reg.
3921 * eval.c (evaluate_subexp_standard): Update.
3922 * parse.c (write_dollar_variable): Update.
3923 * d10v-tdep.c (d10v_print_registers_info): Update.
3924 * infcmd.c (registers_info): Update.
3925 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3926 (builtin_regs_h): Delete macro.
3927 (user_regs_h): Define.
3928 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3929 (builtin-regs.o): Delete target.
3930 (user-regs.o): Specify dependencies.
3931 (expprint.o): Update dependencies.
3932 (findvar.o): Update dependencies.
3933 (frame.o): Update dependencies.
3934 (std-regs.o): Update dependencies.
3936 2003-07-06 Christopher Faylor <cgf@redhat.com>
3938 * win32-nat.c (solib_symbols_add): Use one variable for all section
3939 address stuff. Pass variable rather than address of variable to
3940 safe_symbol_file_add.
3942 2003-07-06 Andreas Schwab <schwab@suse.de>
3944 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3946 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3948 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3950 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3952 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3954 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3956 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3957 * config/i386/nto.mh: New file.
3958 * config/i386/nm-nto.h: New file.
3959 * configure.host: Add i[3456]86-*-nto*.
3961 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3963 * remote-vx.c (vx_add_symbols): Fix compilation error.
3965 2003-07-03 Andrew Cagney <cagney@redhat.com>
3967 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3968 * gdbarch.h, gdbarch.c: Re-generate.
3969 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3970 (legacy_register_name): Declare.
3971 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3972 (REGISTER_NAME): Define.
3973 * sparc-tdep.c (legacy_register_name): New function.
3974 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3975 (REGISTER_NAME): Define.
3976 (hppa64_register_name): Declare.
3977 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3978 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3979 (hppa64_register_name): New function.
3980 (hppa_register_name): New function.
3981 * arch-utils.c (legacy_register_name): Delete.
3982 * arch-utils.h (legacy_register_name): Delete.
3984 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3986 * cli/cli-interp.c (cli_interpreter_resume): Update the
3987 cli_uiout's stream to gdb_stdout.
3989 2003-07-03 Andrew Cagney <cagney@redhat.com>
3991 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3993 * gdbarch.h, gdbarch.c: Re-generate.
3994 * regcache.c (init_regcache_descr): Use legacy code when either
3995 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3997 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3999 * NEWS: Move "set logging" entry into GDB 6.0 section.
4001 2003-07-02 Jim Blandy <jimb@redhat.com>
4003 * s390-tdep.c (struct frame_extra_info): new member:
4004 'stack_bought_valid'.
4005 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
4006 initialize fextra_info->stack_bought.
4007 (s390_frameless_function_invocation): Don't trust the value of
4008 fextra_info_ptr->stack_bought unless
4009 fextra_info->stack_bought_valid is set.
4011 New S390 prologue analyzer.
4012 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
4013 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
4014 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
4015 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
4016 compute_x_addr, s390_on_stack, s390_store,
4017 s390_get_signal_frame_info): New functions.
4018 (S390_NUM_SPILL_SLOTS): New macro.
4019 (s390_get_frame_info): Rewritten.
4020 (is_arg_reg): Deleted.
4022 Break out the decoding of S/390 instructions into separate
4023 functions, to make it more legible, and easier to check
4025 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
4026 is_rx, is_rxe): New functions.
4027 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
4028 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
4029 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
4030 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
4031 enums for opcode values. (Is this an improvement?)
4033 2003-07-02 Andrew Cagney <cagney@redhat.com>
4035 * i386-tdep.c: Revert change committed as part of trad-frame code
4038 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
4040 * breakpoint.c (insert_catchpoint): Make static.
4042 2003-07-02 Andreas Schwab <schwab@suse.de>
4044 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
4045 former ia64_push_arguments and ia64_push_return_address, and use
4046 regcache functions instead of read/write_register.
4047 (ia64_gdbarch_init): Set push_dummy_call instead of
4048 deprecated_push_arguments and deprecated_push_return_address.
4050 2003-07-01 Andreas Jaeger <aj@suse.de>
4052 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
4054 Set %rax only to number of SSE registers used.
4056 2003-07-01 Andrew Cagney <cagney@redhat.com>
4058 * trad-frame.h: Update comments, a -1 .addr is reserved.
4059 (trad_frame_value_p, trad_frame_addr_p): Declare.
4060 (trad_frame_reg_p): Declare.
4061 (trad_frame_set_value): Rename trad_frame_register_value.
4062 (trad_frame_set_unknown): Declare.
4063 * trad-frame.c (trad_frame_realreg_p): New function.
4064 (trad_frame_addr_p, trad_frame_value_p): New function.
4065 (trad_frame_set_unknown): New function.
4066 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4067 (trad_frame_prev_register): Use trad_frame_realreg_p,
4068 trad_frame_addr_p and trad_frame_value_p.
4069 (trad_frame_set_value): Rename trad_frame_register_value.
4070 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4071 and trad_frame_set_value.
4073 2003-06-30 Jim Blandy <jimb@redhat.com>
4075 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4076 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4077 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4078 for 16 registers, and then 32 more bytes.
4079 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4081 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4082 Move up in the file, since it's now used by is_simple_arg.
4083 (is_simple_arg): Don't assume registers are four bytes long.
4084 Exclude all double arguments. Extended floats are not simple
4086 (is_power_of_two): New function.
4087 (pass_by_copy_ref): Call is_power_of_two, and check that the
4088 length fits in a register, rather than listing all the acceptable
4089 sizes. Extended floats are not passed by reference.
4090 (s390_push_arguments): Don't assume registers are four bytes long.
4091 Reserve an argument register to point to the buffer for structures
4092 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4093 S390_STACK_FRAME_OVERHEAD.
4095 2003-06-30 Andreas Schwab <schwab@suse.de>
4097 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4098 format error message.
4100 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4102 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4104 2003-06-30 David Carlton <carlton@kealia.com>
4106 Band-aid for PR c++/1245.
4107 * Makefile.in (cp-support.o): Depend on complaints_h.
4108 * cp-support.c: Include complaints.h. Add declaration for
4109 find_last_component.
4110 (cp_find_first_component): Separate code into
4111 cp_find_first_component_aux.
4112 (cp_find_first_component_aux): Call demangled_name_complaint.
4113 (demangled_name_complaint): New.
4115 2003-06-30 Andrew Cagney <cagney@redhat.com>
4117 * remote.c (remote_write_bytes): Explicitly compute and then use
4118 the payload size. Update comments to reflect. Fixes problem of
4119 GDB not sending small packets as found by Fred Fish.
4121 2003-06-30 Andrew Cagney <cagney@redhat.com>
4123 * remote.c (remote_async_wait): Fix -Wformat problem.
4125 2003-06-29 Andrew Cagney <cagney@redhat.com>
4127 * remote.c (remote_wait): Call error, and not warning, when the
4129 (remote_async_wait): Ditto.
4131 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4133 * sparc-tdep.c (sparc_y_regnum): Make external again.
4135 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4137 * cli/cli-logging.c (pop_output_files): Add void to function
4140 2003-06-29 Andrew Cagney <cagney@redhat.com>
4142 * frame.c (frame_register_unwind): Use unsigned char when dumping
4143 the buffer contents.
4145 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4147 * cli/cli-logging.c: New file.
4148 * cli-out.c (struct ui_out_data): Add original_stream.
4149 (cli_redirect): New function.
4150 (cli_ui_out_impl): Add cli_redirect.
4151 (cli_out_new): Initialize original_stream.
4152 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4153 (uo_redirect, ui_out_redirect): New.
4154 * ui-out.h (struct ui_out_impl): Add redirect member.
4155 (redirect_ftype): New.
4156 (ui_out_redirect): Add prototype.
4157 * Makefile.in: Add rules for cli-logging.c.
4158 * NEWS: Mention "set logging".
4160 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4162 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4164 2003-06-27 Andrew Cagney <cagney@redhat.com>
4166 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4167 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4168 * avr-tdep.c (avr_call_dummy_address): Delete function.
4169 (avr_gdbarch_init): Do not set call_dummy_address.
4171 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4173 * symfile.c (syms_from_objfile): Move variables to inner block.
4174 Move the checks for the non-mainline case a bit earlier to avoid
4175 doing some useless computations.
4177 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4179 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4181 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4183 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4186 2003-06-26 Michael Chastain <mec@shout.net>
4188 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4189 gdb/testsuite/gdb.c++/pr-1210.exp.
4191 2003-06-26 Andrew Cagney <cagney@redhat.com>
4193 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4194 altivec_expression.h and altivec_registers.h.
4196 2003-06-26 Andrew Cagney <cagney@redhat.com>
4198 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4199 info->mach when MIPS16. Patch suggested by Fred Fish.
4201 2003-06-26 Andrew Cagney <cagney@redhat.com>
4203 * utils.c (internal_vproblem): Print the problem to a reason
4204 buffer and then pass to query. Make the msg variable more local.
4206 2003-06-26 Andrew Cagney <cagney@redhat.com>
4208 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4209 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4210 * gdbarch.h, gdbarch.c: Re-generate.
4211 * frame-base.c (default_frame_args_address): Update. Use
4212 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4214 (default_frame_locals_address): Ditto for
4215 DEPRECATED_FRAME_LOCALS_ADDRESS.
4216 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4217 (vax_frame_num_args): Update.
4218 (vax_gdbarch_init): Update.
4219 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4220 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4221 * mcore-tdep.c (mcore_gdbarch_init): Update.
4222 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4223 * ia64-tdep.c (ia64_gdbarch_init): Update.
4224 * symtab.h (address_class): Update comments.
4225 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4226 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4227 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4228 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4229 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4230 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4231 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4232 * alpha-mdebug-tdep.c: Update.
4233 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4235 2003-06-26 Andreas Jaeger <aj@suse.de>
4237 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4238 of SSE registers so that varargs functions work. Rework handling
4239 of passing arguments on the stack.
4240 (x86_64_store_return_value): Return double and float values in SSE
4243 2003-06-24 Michael Chastain <mec@shout.net>
4245 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4246 the "constructor breakpoints ignored" bug.
4248 2003-06-25 David Carlton <carlton@kealia.com>
4250 * MAINTAINERS: Update e-mail address.
4252 2003-06-24 Jim Blandy <jimb@redhat.com>
4254 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4256 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4258 (ppc_linux_init_abi): Register it as the
4259 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4261 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4262 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4265 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4266 (ppc64_standard_linkage_target): Use it.
4268 2003-06-23 Andrew Cagney <cagney@redhat.com>
4270 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4271 for 0 "int0" and 4 "int32" sized registers.
4272 * gdbtypes.c (builtin_type_int0): Define.
4273 (build_gdbtypes): Initialize builtin_type_int0.
4274 * gdbtypes.h (builtin_type_int0): Declare.
4276 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4278 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4279 as characters are unsigned.
4281 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4284 * dwarfread.c (struct_type): Skip static fields without crashing.
4286 2003-06-22 Andrew Cagney <cagney@redhat.com>
4288 GDB 6.0 branch created.
4290 * PROBLEMS: Update. Empty.
4293 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4295 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4296 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4298 2003-06-22 Andrew Cagney <cagney@redhat.com>
4300 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4301 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4304 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4306 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4309 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4311 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4312 argument of val_print.
4313 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4314 to the address argument of baseclass_offset or target_read_memory.
4315 Do add it to the argument of cp_print_value_fields.
4317 2003-06-21 Andrew Cagney <cagney@redhat.com>
4319 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4320 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4321 instead of 0..NUM_REGS.
4322 (mips_register_reggroup_p): New function.
4323 (mips_pseudo_register_write): New function.
4324 (mips_pseudo_register_read): New function.
4325 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4326 based on the register's type.
4327 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4329 (mips_get_saved_register): Simplify. Assert that REGNO is a
4331 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4332 (mips_register_type): Replace mips_register_virtual_type. Map
4333 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4335 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4336 that the register is cooked / virtual.
4337 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4338 Only get the extra info when needed.
4339 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4340 (mips32_heuristic_proc_desc): Fetch the cooked register.
4341 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4342 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4343 (mips_print_register): Use gdbarch_register_type, instead of
4344 REGISTER_VIRTUAL_TYPE.
4345 (print_gp_register_row): Use gdbarch_register_type, instead of
4346 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4347 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4348 Print the pseudo / cooked registers.
4349 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4350 Print the pseudo / cooked registers.
4351 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4352 REG_NUM is pseudo / cooked.
4353 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4354 (mips_n32n64_xfer_return_value): Ditto.
4355 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4356 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4357 (mips_register_sim_regno): New function.
4358 (mips_gdbarch_init): Set deprecated_register_byte,
4359 register_group_p, pseudo_register_write, pseudo_register_read,
4360 register_sim_regno, and num_pseudo_regs. Set register_type,
4361 instead of register_virtual_type.
4362 * Makefile.in (mips-tdep.o): Update dependencies.
4363 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4364 REGISTER_VIRTUAL_TYPE.
4365 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4366 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4367 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4368 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4369 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4371 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4373 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4374 * cli/cli-cmds.c: Include "gdb_vfork.h".
4375 (shell_escape): Use vfork.
4377 2003-06-21 Andrew Cagney <cagney@redhat.com>
4379 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4380 32 bit floating-point register saves.
4382 * frame.h (deprecated_unwind_get_saved_register): Delete.
4383 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4384 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4385 and deprecated_get_next_frame_hack instead of
4386 deprecated_unwind_get_saved_register.
4388 * mips-tdep.c (mips_dump_tdep): Do not print
4389 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4391 * frame.c (get_frame_register): New function.
4392 (frame_unwind_register_signed): New function.
4393 (get_frame_register_signed): New function.
4394 (frame_unwind_register_unsigned): New function.
4395 (get_frame_register_unsigned): New function.
4396 * frame.h: Add comments on naming schema.
4397 (get_frame_register, frame_unwind_register_signed): Declare.
4398 (get_frame_register_signed, get_frame_register_signed): Declare.
4399 (frame_unwind_register_unsigned): Declare.
4400 (get_frame_register_unsigned): Declare.
4402 2003-06-20 Theodore A. Roth <troth@openavr.org>
4404 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4406 2003-06-20 Theodore A. Roth <troth@openavr.org>
4408 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4409 (avr_read_sp): Ditto.
4411 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4413 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4414 * config/arm/nm-linux.h: Likewise.
4415 * config/arm/tm-linux.h: Likewise.
4416 * config/ia64/nm-linux.h: Likewise.
4417 * config/ia64/tm-ia64.h: Likewise.
4418 * config/s390/tm-linux.h: Likewise.
4419 * config/s390/tm-s390.h: Likewise.
4420 * s390-nat.c: Likewise.
4421 * s390-tdep.c: Likewise.
4423 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4424 * config/ia64/linux.mt: Likewise.
4425 * config/m68k/linux.mh: Likewise.
4426 * config/mips/linux.mt: Likewise.
4427 * config/powerpc/linux.mh: Likewise.
4428 * config/sh/linux.mt: Likewise.
4430 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4432 * solib.c (solib_open): Change tests for whether to search
4433 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4436 2003-06-19 Theodore A. Roth <troth@openavr.org>
4438 * avr-tdep.c (avr_frame_address): Delete function.
4439 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4440 set_gdbarch_frame_args_address.
4442 2003-06-19 Andrew Cagney <cagney@redhat.com>
4444 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4445 (REGISTER_CONVERT_FROM_TYPE): Delete.
4446 (mips_register_convert_to_type): Delete declaration.
4447 (mips_register_convert_from_type): Delete declaration.
4448 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4451 2003-06-19 Michael Snyder <msnyder@redhat.com>
4453 * linux-nat.h: New file.
4454 * linux-nat.c: Include linux-nat.h.
4455 * lin-lwp.c: Include linux-nat.h.
4456 Move struct lwp_info def to linux-nat.h.
4457 * linux-proc.c: Include linux-nat.h.
4458 (linux_make_note_section): Iterate over lwps instead of threads.
4459 (linux_do_thread_registers): Use lwp instead of merged pid.
4460 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4461 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4462 Add dependency on linux_nat_h.
4464 2003-06-19 Theodore A. Roth <troth@openavr.org>
4466 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4468 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4470 * varobj.c (get_type, get_target_type): Use check_typedef.
4472 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4474 * breakpoint.c (insert_catchpoint): Call internal_error.
4476 2003-06-19 Theodore A. Roth <troth@openavr.org>
4478 * avr-tdep.c (avr_push_dummy_code): Delete function.
4479 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4481 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4483 * arch-utils.c (default_prepare_to_proceed): Remove.
4484 (generic_prepare_to_proceed): Remove.
4485 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4486 (generic_prepare_to_proceed): Remove prototype.
4487 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4488 * gdbarch.c: Regenerate.
4489 * gdbarch.h: Regenerate.
4490 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4491 * hppah-nat.c (hppa_switched_threads): Remove.
4492 * infrun.c (prepare_to_proceed): New static function, copied from
4493 generic_prepare_to_proceed. Remove select_it argument.
4494 (proceed): Call prepare_to_proceed.
4495 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4497 (ptrace_wait): Don't set the removed variables.
4498 (hppa_switched_threads): Remove.
4499 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4500 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4501 (lin_lwp_prepare_to_proceed): Remove prototype.
4502 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4503 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4505 2003-06-18 Theodore A. Roth <troth@openavr.org>
4507 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4509 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4510 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4511 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4512 (AVR_PROLOGUE_*): Enumerate prologue types.
4513 (struct frame_extra_info): Remove.
4514 (struct avr_unwind_cache): Define.
4515 (avr_write_sp): Delete function.
4516 (avr_read_fp): Ditto.
4517 (avr_init_extra_frame_info): Ditto.
4518 (avr_pop_frame): Ditto.
4519 (avr_frame_saved_pc): Ditto.
4520 (avr_saved_pc_after_call): Ditto.
4521 (avr_push_return_address): Ditto.
4522 (avr_frame_chain): Ditto.
4523 (avr_store_struct_return): Ditto.
4524 (avr_push_arguments): Ditto.
4525 (avr_scan_prologue): Update comments. Changed to set up the info for
4526 cache unwinding. Now returns end of prologue PC.
4527 (avr_skip_prologue): Better handling of functions lacking a prologue
4528 by using avr_scan_prologue.
4529 (avr_scan_arg_moves): New function.
4530 (avr_saved_regs_unwinder): Ditto.
4531 (avr_frame_unwind_cache): Ditto.
4532 (avr_unwind_pc): Ditto.
4533 (avr_frame_this_id): Ditto.
4534 (avr_frame_prev_register): Ditto.
4535 (avr_frame_p): Ditto.
4536 (avr_frame_base_address ): Ditto.
4537 (avr_unwind_dummy_id): Ditto.
4538 (avr_push_dummy_code): Ditto.
4539 (push_stack_item): Ditto.
4540 (pop_stack_item): Ditto.
4541 (avr_push_dummy_call): Ditto.
4542 (struct stack_item): Define.
4543 (avr_frame_unwind): Declare structure.
4544 (avr_frame_base): Ditto.
4545 (avr_gdbarch_init): Remove calls to
4546 set_gdbarch_deprecated_init_frame_pc,
4547 set_gdbarch_deprecated_target_read_fp,
4548 set_gdbarch_deprecated_dummy_write_sp,
4549 set_gdbarch_deprecated_fp_regnum,
4550 set_gdbarch_deprecated_push_arguments,
4551 set_gdbarch_deprecated_push_return_address,
4552 set_gdbarch_deprecated_pop_frame,
4553 set_gdbarch_deprecated_store_struct_return,
4554 set_gdbarch_deprecated_frame_init_saved_regs,
4555 set_gdbarch_deprecated_init_extra_frame_info,
4556 set_gdbarch_deprecated_frame_chain,
4557 set_gdbarch_deprecated_frame_saved_pc,
4558 set_gdbarch_deprecated_saved_pc_after_call.
4559 Add calls to set_gdbarch_push_dummy_call,
4560 set_gdbarch_push_dummy_code,
4561 frame_unwind_append_predicate,
4562 frame_base_set_default,
4563 set_gdbarch_unwind_dummy_id,
4564 set_gdbarch_unwind_pc.
4567 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4569 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4570 registers for H8/300S.
4571 (h8300_print_registers_info): Ditto.
4572 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4574 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4576 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4577 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4578 (lin_lwp_wait): Likewise. Update comments.
4579 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4580 (pull_pid_from_list, linux_record_stopped_pid): New.
4582 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4584 * ada-lang.c (scan_discrim_bound): Name first argument.
4585 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4586 declared by ALL_BLOCK_SYMBOLS.
4588 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4590 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4591 ("regcache.h"): Include it.
4592 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4594 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4596 * NEWS: Mention gdbserver detach change and "disconnect" command.
4597 * infcmd.c (disconnect_command): New function.
4598 (_initialize_infcmd): Add ``disconnect'' command.
4599 * remote.c (remote_async_detach): Delete.
4600 (remote_detach): Merge remote_async_detach.
4601 (remote_disconnect): New.
4602 (init_remote_ops): Set to_disconnect.
4603 (init_remote_cisco_ops): Likewise.
4604 (init_remote_async_ops): Likewise. Use remote_detach.
4605 * target.c (cleanup_target): Default to_disconnect.
4606 (update_current_target): Inherit to_disconnect.
4607 (target_disconnect, debug_to_disconnect): New functions.
4608 (setup_target_debug): Set to_disconnect.
4609 * target.h (struct target_ops): Add to_disconnect.
4610 (target_disconnect): Add prototype.
4612 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4614 * breakpoint.c (insert_catchpoint): New function.
4615 (insert_breakpoints): Use catch_exceptions to call
4616 insert_catchpoint. Disable catchpoints if they fail to insert.
4618 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4620 * symfile.c (reread_symbols): Clear sym_private.
4622 2003-06-17 Andrew Cagney <cagney@redhat.com>
4624 * trad-frame.h (struct frame_info): Add opaque declaration.
4625 * remote-fileio.h (struct cmd_list_element): Add opaque
4627 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4630 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4632 * remote.c (remote_prepare_to_store): Replace call to
4633 deprecated_read_register_bytes with multiple regcache_raw_read
4636 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4638 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4639 (nto_find_and_open_solib): Likewise.
4640 (nto_init_solib_absolute_prefix): Likewise.
4641 (_initialize_nto_tdep): Fix indentation.
4643 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4645 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4647 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4649 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4651 2003-06-17 Jim Blandy <jimb@redhat.com>
4653 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4655 2003-06-16 Theodore A. Roth <troth@openavr.org>
4657 * avr-tdep.c (avr_extract_return_value): New function.
4658 (avr_gdbarch_init): Set extract_return_value method.
4660 2003-06-16 Andrew Cagney <cagney@redhat.com>
4662 * frame.h (deprecated_get_next_frame_hack): Declare.
4663 * frame.c (legacy_saved_regs_prev_register): Only require
4664 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4665 there are always saved regs.
4666 (deprecated_generic_get_saved_register): Do not require
4667 DEPRECATED_FRAME_INIT_SAVED_REGS.
4668 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4669 use frame ID unwind instead.
4670 (deprecated_get_next_frame_hack): New function.
4672 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4674 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4675 (h8300_push_dummy_call): ...this function. Some minor optimization.
4676 (h8300_push_return_address): Remove.
4677 (h8300_gdbarch_init): Remove calls to
4678 set_gdbarch_deprecated_dummy_write_sp,
4679 set_gdbarch_deprecated_push_arguments and
4680 set_gdbarch_deprecated_push_return_address.
4681 Add call to set_gdbarch_push_dummy_call.
4683 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4685 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4686 (E_PSEUDO_EXR_REGNUM): Ditto.
4687 (h8300_is_argument_spill): Check for instructions moving argument
4688 registers into safe registers.
4689 (h8300_skip_prologue): Check for stm instruction to push registers
4690 used for register variables onto stack.
4691 (gdb_print_insn_h8300): Remove.
4692 (h8300_examine_prologue): Add a comment.
4693 (h8300_register_name): Take pseudo registers into account.
4694 (h8300s_register_name): Ditto.
4695 (h8300sx_register_name): Ditto.
4696 (h8300_print_register): Ditto.
4697 (h8300_print_registers_info): Define "nice" printing order.
4698 (h8300_saved_pc_after_call): Take pseudo registers into account.
4699 (h8300_register_type): Ditto. Return type used for remote connection
4700 when requesting real CCR or EXR register, return actual type when
4701 requesting pseudo CCR or EXR.
4702 (h8300_pseudo_register_read): New function.
4703 (h8300_pseudo_register_write): Ditto.
4704 (h8300_dbg_reg_to_regnum): Ditto.
4705 (h8300s_dbg_reg_to_regnum): Ditto.
4706 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4707 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4708 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4709 set_gdbarch_print_insn architecture dependent.
4710 Call set_gdbarch_pseudo_register_read and
4711 set_gdbarch_pseudo_register_write.
4712 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4714 2003-06-16 Andrew Cagney <cagney@redhat.com>
4716 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4717 * gdbarch.h, gdbarch.c: Re-generate.
4718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4719 * s390-tdep.c (s390_gdbarch_init): Update.
4720 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4721 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4722 * mips-tdep.c (mips_gdbarch_init): Update.
4723 * mcore-tdep.c (mcore_gdbarch_init): Update.
4724 * cris-tdep.c (cris_gdbarch_init): Update.
4725 * infcall.c (call_function_by_hand): Update.
4726 * ia64-tdep.c (ia64_push_arguments): Update comment.
4727 * frame.c (legacy_get_prev_frame): Do not assume
4728 SAVE_DUMMY_FRAME_TOS_P.
4729 * dummy-frame.c (find_dummy_frame): Update comment.
4731 2003-06-16 Andrew Cagney <cagney@redhat.com>
4733 * regcache.c (do_cooked_read): Do not use register_valid_p.
4735 2003-06-15 Theodore A. Roth <troth@openavr.org>
4737 * avr-tdep.c (avr_register_type): Remove a blank line.
4738 (avr_scan_prologue): Correct some comments.
4740 2003-06-15 Theodore A. Roth <troth@openavr.org>
4742 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4744 Properly scan prologues generated by gcc with the -mcall-prologues
4746 Add code to scan -mcall-prologues for mega devices.
4748 2003-06-15 Theodore A. Roth <troth@openavr.org>
4750 * avr-tdep.c (avr_register_byte): Delete function.
4751 (avr_register_raw_size): Delete function.
4752 (avr_register_virtual_size): Delete function.
4753 (avr_register_virtual_type): Delete function.
4754 (avr_register_type): New function.
4755 (avr_address_to_pointer): Remove unused code.
4756 (avr_read_fp): Need to read FP as two separate bytes due to change to
4757 avr_register_type() usage.
4758 (avr_gdbarch_init): Don't set deprecated_register_size.
4759 Don't set deprecated_register_bytes.
4760 Don't set deprecated_register_byte.
4761 Don't set deprecated_register_raw_size.
4762 Don't set deprecated_max_register_raw_size.
4763 Don't set deprecated_register_virtual_size.
4764 Don't set deprecated_max_register_virtual_size.
4765 Don't set deprecated_register_virtual_type.
4766 Set register_type method.
4768 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4770 * Makefile.in (linux-nat.o): Add rule.
4771 * linux-nat.c: New file.
4772 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4773 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4774 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4775 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4776 * config/arm/linux.mh (NATDEPFILES): Likewise.
4777 * config/i386/linux.mh (NATDEPFILES): Likewise.
4778 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4779 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4780 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4781 * config/mips/linux.mh (NATDEPFILES): Likewise.
4782 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4783 * config/s390/s390.mh (NATDEPFILES): Likewise.
4784 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4786 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4788 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4789 replace out-of-date comment.
4791 2003-06-15 Andrew Cagney <cagney@redhat.com>
4793 * rdi-share/host.h (Fail): Change to a varargs function.
4794 * remote-rdi.c (Fail): Update.
4796 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4798 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4799 (i386_convert_register_p, i386_register_to_value,
4800 i386_register_from_value): Handle types longer than 8 bytes.
4802 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4804 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4805 Move floating-point code to new function in i387-tdep.c.
4806 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4807 New functions containing code moved here from i386-tdep.c.
4808 * i387-tdep.h: Add opaque declaration for `struct type'.
4809 (i387_register_to_value, i387_value_to_register): New prototypes.
4810 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4811 (x86_64_init_abi): Set convert_register_p, register_to_value and
4812 value_to_register here.
4814 2003-06-14 Andrew Cagney <cagney@redhat.com>
4816 * mips-tdep.c (mips_register_to_value): Make static.
4817 (mips_value_to_register): Make static.
4818 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4819 * ia64-tdep.c (ia64_register_raw_size): Make static.
4820 (ia64_register_virtual_size): Make static.
4821 (ia64_register_byte): Make static.
4822 * i387-tdep.c: Include "i387-tdep.h".
4823 (print_387_control_word): Delete function.
4824 (print_387_status_word): Delete function.
4825 (print_387_status_bits): Delete function.
4826 (print_387_control_bits): Delete function.
4827 * Makefile.in (i387-tdep.o): Update dependencies.
4828 * rdi-share/host.h (Fail): Declare.
4829 * remote-rdi.c (Fail): Update to match declaration.
4831 2003-06-14 Andrew Cagney <cagney@redhat.com>
4833 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4834 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4835 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4836 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4837 * README: Delete reference to remote-array.
4838 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4839 (remote-array.o): Delete target.
4840 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4841 * remote-array.c: Delete file.
4843 2003-06-14 Andrew Cagney <cagney@redhat.com>
4844 Mark Kettenis <kettenis@gnu.org>
4846 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4847 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4848 parameter with "frame".
4849 * gdbarch.h, gdbarch.c: Re-generate.
4850 * frame.h (put_frame_register): Declare.
4851 * frame.c (put_frame_register): New function.
4852 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4853 (legacy_register_to_value): Rewrite, use "frame" to get the
4855 (legacy_value_to_register): Rewrite, use "frame" to find the
4856 register's location before storing.
4857 * arch-utils.h (legacy_convert_register_p): Update.
4858 (legacy_register_to_value, legacy_value_to_register): Update.
4859 * findvar.c (value_from_register): Rewrite, eliminate use of
4860 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4861 "frame" to REGISTER_TO_VALUE.
4862 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4863 lval_reg_frame_relative + lval_register branch of the switch. Do
4864 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4865 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4866 I386_EDI_REGNUM): New defines.
4867 (i386_next_regnum, i386_convert_register_p,
4868 i386_register_to_value, i386_value_to_register): New functions.
4869 (i386_register_convertible, i386_register_convert_to_virtual,
4870 i386_convert_to_raw): Remove functions.
4871 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4872 value_to_register instead of register_convertible,
4873 register_convert_to_virtual and register_convert_to_raw.
4874 * mips-tdep.c (mips_convert_register_p): New function.
4875 (mips_value_to_register): Replace mips_register_convert_from_type.
4876 (mips_register_to_value): Replace mips_register_convert_to_type.
4877 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4879 * alpha-tdep.c (alpha_convert_register_p): Update.
4880 (alpha_value_to_register): Update, store the register.
4881 (alpha_register_to_value): Update, fetch the register.
4883 2003-06-14 Theodore A. Roth <troth@openavr.org>
4885 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4886 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4887 Don't set deprecated_call_dummy_words.
4888 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4889 Don't set remote_translate_xfer_address.
4890 (avr_io_reg_read_command): Remove commented out debug printf.
4893 2003-06-14 Theodore A. Roth <troth@openavr.org>
4895 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4896 causes gdb to seg fault.
4898 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4900 * sparc-nat.c (fetch_inferior_registers): Correct
4901 a reference to "registers".
4903 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4905 * Makefile.in (exc_request_U_h): Define
4906 (exc_request_S_h): Likewise.
4907 (msg_reply_S_h): Likewise.
4908 (msg_U_h): Likewise.
4909 (notify_S_h): Likewise.
4910 (process_reply_S_h): Likewise.
4911 (gnu-nat.o): Depend on gdb_obstack_h
4912 * gnu-nat.c: Include "gdb_obstack.h".
4914 2003-06-13 Andrew Cagney <cagney@redhat.com>
4916 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4917 * gdbarch.h, gdbarch.c: Re-generate.
4919 2003-06-13 Andrew Cagney <cagney@redhat.com>
4921 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4922 when deprecated REGISTER macros can be deleted.
4923 * gdbarch.h, gdbarch.c: Re-generate.
4925 2003-06-13 Jim Blandy <jimb@redhat.com>
4927 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4928 Linux entry point symbols for _dl_debug_state, too.
4930 2003-06-13 Andrew Cagney <cagney@redhat.com>
4932 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4933 available, do not use the FP register, and always save the TOS.
4934 * dummy-frame.c (dummy_frame_this_id): Do not assert
4935 SAVE_DUMMY_FRAME_TOS.
4936 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4937 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4938 (i386_push_dummy_call): Add 8 to the returned SP.
4939 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4940 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4941 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4942 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4943 (x86_64_push_dummy_call): Return "sp + 16".
4944 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4945 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4946 save_dummy_frame_tos.
4948 2003-06-13 Jim Blandy <jimb@redhat.com>
4950 * frv-tdep.c (frv_use_struct_convention): Delete static
4951 declaration for function deleted in my change of 2003-06-12.
4953 2003-06-13 Theodore A. Roth <troth@openavr.org>
4955 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4956 (avr_pointer_to_address): Shift code addrs left 1 bit.
4957 (avr_convert_from_func_ptr_addr): Delete function since operation is
4958 better handled by avr_address_to_pointer and avr_pointer_to_address.
4959 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4961 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4963 From Kelley Cook <kelleycook@wideopenwest.com>:
4964 * configure.host: Accept i[34567]86 variants.
4965 * configure.tgt: Likewise.
4966 * nlm/configure.in: Likewise.
4967 * nlm/configure: Regenerated.
4969 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4971 * arm-tdep.c (solib-svr4.h): Dont' include it.
4972 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4973 * arm-linux-tdep.c: ... here. Make static.
4974 (arm_linux_init_abi): Register it.
4975 (solib-svr4.h): Include it.
4976 * Makefile.in: Update dependencies.
4977 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4978 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4980 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4982 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4983 indicate registers used for return values.
4984 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4985 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4987 (h8300_init_extra_frame_info): Ditto.
4988 (h8300_frame_locals_address): Removed.
4989 (h8300_frame_args_address): Removed.
4990 (h8300_extract_return_value): Use new regcache structure. Only care
4992 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4993 (h8300_store_return_value): Use new regcache structure. Only care
4995 (h8300h_store_return_value): Same function for 32 bit CPUs.
4996 (h8300_store_struct_return): Removed.
4997 (h8300_extract_struct_value_address): Use new regcache structure.
4998 (h8300h_extract_struct_value_address): Removed.
4999 (h8300_push_dummy_code): New function.
5000 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
5001 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
5002 set_gdbarch_store_return_value architecture dependent.
5003 Call set_gdbarch_push_dummy_code and
5004 set_gdbarch_extract_struct_value_address.
5005 Remove calls to set_gdbarch_frame_args_address,
5006 set_gdbarch_frame_locals_address,
5007 set_gdbarch_deprecated_store_struct_return,
5008 set_gdbarch_deprecated_extract_return_value,
5009 set_gdbarch_deprecated_extract_struct_value_address,
5010 set_gdbarch_deprecated_call_dummy_words and
5011 set_gdbarch_deprecated_sizeof_call_dummy_words.
5013 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
5015 * h8300-tdep.c (h8300_register_byte): Remove.
5016 (h8300h_register_byte): Remove.
5017 (h8300_register_virtual_type): Remove. Substitute by...
5018 (h8300_register_type): New function.
5019 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
5020 (h8300h_extract_struct_value_address): Ditto.
5021 (h8300_gdbarch_init): Drop calls to
5022 set_gdbarch_deprecated_register_byte and
5023 set_gdbarch_deprecated_register_virtual_type.
5024 Add call to set_gdbarch_register_type.
5026 2003-06-13 Andrew Cagney <cagney@redhat.com>
5028 * gdbarch.sh: Update comments on registers.
5029 (deprecated_register_byte): Rename register_byte.
5030 (deprecated_register_raw_size): Rename register_raw_size.
5031 (deprecated_register_virtual_size): Rename register_virtual_size.
5032 (deprecated_register_virtual_type): Rename register_virtual_type.
5033 * gdbarch.h, gdbarch.c: Re-generate.
5034 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5035 * vax-tdep.c (vax_gdbarch_init): Update.
5036 * v850-tdep.c (v850_gdbarch_init): Update.
5037 * sparc-tdep.c (sparc_gdbarch_init): Update.
5038 * sh-tdep.c (sh_gdbarch_init): Update.
5039 * s390-tdep.c (s390_gdbarch_init): Update.
5040 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5041 * ns32k-tdep.c: Update.
5042 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5043 * mips-tdep.c (mips_gdbarch_init): Update.
5044 * mcore-tdep.c (mcore_gdbarch_init): Update.
5045 * m68k-tdep.c (m68k_gdbarch_init): Update.
5046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5047 * ia64-tdep.c (ia64_gdbarch_init): Update.
5048 * hppa-tdep.c (hppa_gdbarch_init): Update.
5049 * h8300-tdep.c (h8300_gdbarch_init): Update.
5050 * frv-tdep.c (frv_gdbarch_init): Update.
5051 * cris-tdep.c (cris_gdbarch_init): Update.
5052 * avr-tdep.c (avr_gdbarch_init): Update.
5053 * alpha-tdep.c (alpha_gdbarch_init): Update.
5054 * arm-tdep.c (arm_gdbarch_init): Update.
5056 2003-06-13 Andrew Cagney <cagney@redhat.com>
5058 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
5059 mips_o32_use_struct_convention with always_use_struct_convention.
5061 2003-06-12 David Carlton <carlton@kealia.com>
5063 * cp-namespace.c (cp_set_block_scope): Comment out
5064 processing_has_namespace_info branch.
5066 2003-06-12 Jim Blandy <jimb@redhat.com>
5068 Recognize and skip 64-bit PowerPC Linux linkage functions.
5069 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5070 insn_pattern, insns_match_pattern, d_field, ds_field): New
5071 functions, macros, and types for working with PPC instructions.
5072 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5073 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5074 ppc64_skip_trampoline_code): New functions, variables, and macros
5075 for recognizing and skipping linkage functions.
5076 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5077 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5079 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5080 register offsets for both the 32- and 64-bit interfaces.
5082 Actually finish the job started by my change of 2003-05-29.
5083 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5084 other #definition of this.
5085 (ppc_linux_skip_trampoline_code): Remove declaration.
5086 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5088 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5091 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5092 'long' on ppc64-*-linux*.
5094 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5095 isn't #defined, assume the register doesn't exist: act as if
5096 tdep->ppc_mq_regnum were -1.
5098 * configure.host, configure.tgt: Add entries for
5099 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5101 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5104 * arch-utils.c (always_use_struct_convention): New function.
5105 * arch-utils.h (always_use_struct_convention): New prototype.
5106 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5107 (alpha_gdbarch_init): Register always_use_struct_convention,
5108 instead of alpha_use_struct_convention.
5109 * cris-tdep.c (cris_use_struct_convention): Delete.
5110 (cris_gdbarch_init): Register always_use_struct_convention,
5111 instead of cris_use_struct_convention.
5112 * frv-tdep.c (frv_use_struct_convention): Delete.
5113 (frv_gdbarch_init): Register always_use_struct_convention,
5114 instead of frv_use_struct_convention.
5115 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5116 (h8300_gdbarch_init): Register always_use_struct_convention,
5117 instead of h8300_use_struct_convention.
5118 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5119 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5120 instead of mips_o32_use_struct_convention.
5122 2003-06-12 Andrew Cagney <cagney@redhat.com>
5124 * wince.c: Include "mips-tdep.h".
5125 * mips-tdep.h (mips_next_pc): Declare.
5126 * mcore-tdep.c: Make more local functions static.
5127 * Makefile.in (wince.o): Update dependencies.
5129 2003-06-12 David Carlton <carlton@kealia.com>
5131 * symtab.c (lookup_symbol_aux_minsyms): Replace
5132 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5133 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5134 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5135 SYMBOL_NATURAL_NAME.
5137 2003-06-12 Andreas Schwab <schwab@suse.de>
5139 * Makefile.in (tuiDisassem.o): Update dependencies.
5141 2003-06-12 David Carlton <carlton@bactrian.org>
5143 * symtab.h: Delete declaration of make_symbol_overload_list.
5144 Add declaration of lookup_partial_symbol.
5145 * symtab.c (remove_params): Move to cp-support.c.
5146 (overload_list_add_symbol, make_symbol_overload_list)
5147 (sym_return_val_size, sym_return_val_index): Ditto.
5148 (lookup_partial_symbol): Make extern.
5149 * cp-support.h: Add declaration of make_symbol_overload_list.
5150 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5151 symtab.h, and block.h.
5152 (remove_params): Move here from symtab.c.
5153 (overload_list_add_symbol, make_symbol_overload_list)
5154 (sym_return_val_size, sym_return_val_index): Ditto.
5155 * valops.c: Include cp-support.h.
5156 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5157 frame_h, and block_h.
5158 (valops.o): Depend on cp_support_h.
5160 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5162 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5163 substitute by NUM_REGS throughout.
5164 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5165 (h8300s_register_name): New function for H8S registers.
5166 (h8300sx_register_name): Ditto for H8SX registers.
5167 (h8300_print_register): Revise register printing, avoid depending
5169 (h8300_register_byte): Only care for H8/300 registers.
5170 (h8300h_register_byte): New function for any other architecture.
5171 (h8300_register_raw_size): Remove.
5172 (h8300_register_virtual_type): Revise to return actually useful
5174 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5175 (h8300h_extract_struct_value_address): New function for any other
5177 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5178 set_gdbarch_register_name, set_gdbarch_register_byte,
5179 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5180 Remove calls to set_gdbarch_deprecated_register_size,
5181 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5182 set_gdbarch_deprecated_max_register_raw_size,
5183 set_gdbarch_register_virtual_size and
5184 set_gdbarch_deprecated_max_register_virtual_size entirely.
5185 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5186 set_gdbarch_long_double_bit.
5188 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5190 * doublest.c (convert_doublest_to_floatformat): When dealing
5191 with the implied integer bit, only alter mant_bits if we are
5192 processing a full 32 bits of mantissa.
5194 2003-06-11 David Carlton <carlton@bactrian.org>
5196 * dictionary.h: New.
5197 * dictionary.c: New.
5198 * block.h: Add opaque declaration for struct dictionary.
5199 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5201 (BLOCK_DICT): New macro.
5202 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5203 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5205 (ALL_BLOCK_SYMBOLS): Update definition.
5206 * Makefile.in (SFILES): Add dictionary.c.
5207 (dictionary_h): New.
5208 (COMMON_OBS): Add dictionary.o.
5209 (dictionary.o): New.
5210 (ada-lang.o): Depend on dictionary_h.
5211 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5212 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5213 (mi-cmd-stack.o): Ditto.
5214 (gdbtk-cmds.o): Update dependencies.
5215 (gdbtk-stack.o): Ditto.
5216 * ada-lang.c: Include dictionary.h.
5217 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5218 (fill_in_ada_prototype, debug_print_block): Ditto.
5219 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5220 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5222 * mdebugread.c: Include dictionary.h.
5223 (struct parse_stack): Delete 'maxsyms' member.
5224 (parse_symbol): Update calls to new_block. Delete calls to
5225 shrink_block. Use dictionary methods.
5226 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5227 Update calls to new_symtab. Don't maintain maxsyms data.
5228 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5229 (add_symbol): Just call dict_add_symbol.
5230 (new_symtab): Delete 'maxsyms' argument.
5231 (new_symtab): Update calls to new_block.
5232 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5233 (shrink_block): Delete function.
5234 (fixup_sigtramp): Update call to new_block. Add symbol via
5236 * jv-lang.c: Include dictionary.h.
5237 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5238 appropriately. Set class_symtab->free_func. Make sure the
5239 blockvector is big enough to hold two blocks.
5240 (add_class_symtab_symbol): Use dictionary methods.
5241 (free_class_block): New function.
5242 (type_from_class): Replace explicit iteration by
5244 * symtab.h (struct symtab): Replace 'free_ptr' method by
5246 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5248 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5250 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5251 Include dictionary.h.
5252 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5253 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5255 * objfiles.c: Include dictionary.h.
5256 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5257 * buildsym.c: Include dictionary.h.
5258 (finish_block): Use dictionary methods.
5259 (end_symtab): Set free_func to NULL, not free_ptr.
5260 * tracepoint.c: Include dictionary.h.
5261 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5262 (scope_info): Ditto.
5263 * stack.c: Include dictionary.h.
5264 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5265 (print_block_frame_labels, print_frame_arg_vars)
5266 (print_frame_args): Ditto.
5267 * symmisc.c (free_symtab_block): Use dictionary methods.
5268 (dump_symtab): Ditto.
5269 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5270 Include dictionary.h.
5271 * symfile.h: Delete declarations of sort_block_syms,
5273 * symfile.c (sort_block_syms): Delete.
5274 (sort_symtab_syms): Delete.
5275 * symtab.c: Include dictionary.h.
5276 (lookup_block_symbol): Use dictionary iterators.
5277 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5278 (search_symbols, make_symbol_completion_list): Ditto.
5279 (make_symbol_overload_list): Ditto.
5280 * valops.c (value_of_local): Use dict_empty.
5281 Include dictionary.h.
5283 2003-06-11 J. Brobecker <brobecker@gnat.com>
5285 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5287 2003-06-11 David Carlton <carlton@bactrian.org>
5289 * block.h (BLOCK_SHOULD_SORT): Delete.
5290 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5292 * ada-lang.c (ada_add_block_symbols): Ditto.
5293 * symfile.c (sort_block_syms): Delete.
5294 (sort_symtab_syms): Ditto.
5295 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5297 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5298 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5299 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5300 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5301 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5302 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5303 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5305 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5307 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5310 2003-06-11 Andrew Cagney <cagney@redhat.com>
5312 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5313 REGISTER_CONVERTIBLE.
5314 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5315 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5316 * gdbarch.h, gdbarch.c: Re-generate.
5317 * arch-utils.h (deprecated_register_convertible_not): Rename
5318 generic_register_convertible_not.
5319 * arch-utils.c (deprecated_register_convertible_not): Rename
5320 generic_register_convertible.
5321 (legacy_convert_register_p, legacy_register_to_value): Update.
5322 * sh-tdep.c (sh64_push_arguments): Update.
5323 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5324 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5325 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5326 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5327 * arch-utils.c (legacy_value_to_register): Update.
5328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5329 (rs6000_register_convert_to_raw): Make parameter "from" const.
5330 * mips-tdep.c (mips_gdbarch_init): Update.
5331 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5332 * infcmd.c (default_print_registers_info): Update.
5333 * ia64-tdep.c (ia64_gdbarch_init): Update.
5334 (ia64_register_convert_to_raw): Make parameter "from" const.
5335 * i386-tdep.c (i386_gdbarch_init): Update.
5336 (i386_register_convert_to_raw): Update.
5338 2003-06-11 Andrew Cagney <cagney@redhat.com>
5340 * remote-fileio.c: Include "remote-fileio.h".
5341 * Makefile.in (remote-fileio.o): Update dependencies.
5342 (remote_fileio_h): Fix typo.
5344 2003-06-11 Andrew Cagney <cagney@redhat.com>
5346 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5347 (xstormy16_save_dummy_frame_tos): Make static.
5348 (_initialize_xstormy16_tdep): Add declaration.
5349 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5350 * v850-tdep.c: Make local functions static.
5351 (_initialize_v850_tdep): Add declaration.
5352 * sparc-tdep.c: Make local functions static.
5353 (_initialize_sparc_tdep): Add declaration.
5354 * sh-tdep.c: Make local functions static.
5355 (_initialize_sh_tdep): Add declaration.
5356 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5357 * s390-tdep.c: Make local functions static.
5358 (_initialize_s390_tdep): Add declaration.
5359 * dbxread.c (find_stab_function_addr): Make static.
5360 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5361 * ocd.c (_initialize_remote_ocd): Add declaration.
5362 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5363 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5364 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5365 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5366 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5367 * remote-array.c (_initialize_array): Add declaration.
5368 (_initialize_remote_monitors): Add declaration.
5369 * remote-mips.c: Make local functions static.
5370 (_initialize_remote_mips): Add declaration.
5371 * mcore-tdep.c: Make all local functions static.
5372 (_initialize_mcore_tdep): Add declaration.
5373 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5374 * abug-rom.c (_initialize_abug_rom): Add declaration.
5375 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5376 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5377 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5378 * remote-est.c (_initialize_est): Add declaration.
5379 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5380 (m68hc11_call_dummy_address): Make static.
5381 * ia64-tdep.c: Make local functions static.
5382 (_initialize_ia64_tdep): Add declaration.
5383 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5384 * monitor.c (monitor_wait_filter): Make static.
5385 (_initialize_remote_monitors): Add declaration.
5386 * remote-hms.c (_initialize_remote_hms): Add declaration.
5387 * remote-e7000.c (fetch_regs_from_dump): Make static.
5388 (expect_n): Make static.
5389 (_initialize_remote_e7000): Add declaration.
5390 * ser-e7kpc.c: Always include "defs.h".
5391 (_initialize_ser_e7000pc): Add declaration.
5392 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5393 * cris-tdep.c: Make all but one function static.
5394 (_initialize_cris_tdep): Add declaration.
5395 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5396 * solib.c (update_solib_list): Make static.
5397 (_initialize_solib): Add declaration.
5398 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5399 (_initialize_avr_tdep): Add declaration.
5400 * remote-rdi.c (voiddummy): Make static.
5401 (_initialize_remote_rdi): Add declaration.
5402 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5403 * remote-rdp.c (send_rdp): Make static.
5404 (_initialize_remote_rdp): Add declaration.
5405 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5407 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5409 * remote-fileio.c: Make ari happy.
5411 2003-06-10 J. Brobecker <brobecker@gnat.com>
5413 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5414 fetching the trailing bytes of the buffer we are about to write.
5416 2003-06-10 Andrew Cagney <cagney@redhat.com>
5418 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5419 * Makefile.in (remote-fileio.o): Update dependencies.
5420 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5421 include <setjmp.h>, or <sys/types.h> conditional on USG.
5422 (remote_fio_jmp_buf): Delete global variable.
5424 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5425 Martin M. Hunt <hunt@redhat.com>
5427 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5428 (SFILES): Add remote-fileio.c.
5429 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5430 dependencies for building remote.o.
5431 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5432 * remote-fileio.h: New header file defining remote File-I/O interface.
5433 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5434 static storage class.
5435 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5437 (_initialize_remote): Call initialize_remote_fileio().
5438 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5439 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5440 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5441 (captured_main): Initialize new ui_files.
5442 * ui-file.c: Add read and fgets input functions.
5443 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5444 (null_file_read): New function.
5445 (ui_file_read): New function.
5446 (set_ui_file_read): New function.
5447 (stdio_file_read): New function.
5448 * ui-file.h: New type ui_file_read_ftype.
5449 (set_ui_file_read): Declare.
5450 (ui_file_read): Declare.
5452 2003-06-09 Andrew Cagney <cagney@redhat.com>
5454 * frame.h (deprecated_unwind_get_saved_register): Rename
5455 generic_unwind_get_saved_register, update comments.
5456 * mips-tdep.c (mips_get_saved_register): Update.
5457 * frame.c (deprecated_unwind_get_saved_register): Update.
5459 2003-06-09 Andrew Cagney <cagney@redhat.com>
5461 * vax-tdep.c (vax_frame_locals_address): Delete function.
5462 (vax_gdbarch_init): Do not set frame_locals_address.
5463 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5464 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5465 * s390-tdep.c (s390_frame_args_address): Delete function.
5466 (s390_gdbarch_init): Do not set frame_args_address or
5467 frame_locals_address.
5468 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5469 (ns32k_gdbarch_init): Do not set frame_locals_address.
5470 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5471 (hppa_frame_locals_address): Delete function.
5472 (hppa_gdbarch_init): Do not set frame_args_address, or
5473 frame_locals_address.
5474 * arm-tdep.c (arm_frame_args_address): Delete.
5475 (arm_frame_locals_address): Delete.
5476 (arm_gdbarch_init): Do not set frame_args_address, or
5477 frame_locals_address.
5479 2003-06-09 Andrew Cagney <cagney@redhat.com>
5481 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5482 * gdbarch.h, gdbarch.c: Re-generate.
5483 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5484 * arch-utils.c (frame_num_args_unknown): Delete function.
5485 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5486 (frame_info): Use FRAME_NUM_ARGS_P.
5487 * arm-tdep.c (arm_frame_num_args): Delete function.
5488 (arm_gdbarch_init): Do not set frame_num_args.
5489 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5490 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5491 (hppa_gdbarch_init): Do not set frame_num_args.
5492 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5494 frame_num_args to default frame_num_args_unknown.
5495 * v850-tdep.c (v850_gdbarch_init): Ditto.
5496 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5497 * sh-tdep.c (sh_gdbarch_init): Ditto.
5498 * s390-tdep.c (s390_gdbarch_init): Ditto.
5499 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5500 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5501 * mips-tdep.c (mips_gdbarch_init): Ditto.
5502 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5503 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5504 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5505 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5506 * i386-tdep.c (i386_gdbarch_init): Ditto.
5507 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5508 * frv-tdep.c (frv_gdbarch_init): Ditto.
5509 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5510 * cris-tdep.c (cris_gdbarch_init): Ditto.
5511 * avr-tdep.c (avr_gdbarch_init): Ditto.
5512 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5514 2003-06-09 Andrew Cagney <cagney@redhat.com>
5516 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5517 (print_frame_args): Moved to "stack.c".
5518 * stack.c: Include "gdb_assert.h".
5519 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5520 (print_frame_args): Moved from "printcmd.c".
5521 * frame.h (print_frame_args): Delete declaration.
5522 * Makefile.in (stack.o): Update dependencies.
5524 2003-06-08 Andrew Cagney <cagney@redhat.com>
5526 * frame.c (get_prev_frame): Remove reference to
5527 frame_args_address_correct in comments.
5528 * frame-base.c (default_frame_args_address): Delete code
5529 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5530 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5531 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5532 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5533 (vax_frame_args_address_correct): Delete declaration.
5535 2003-06-08 Andrew Cagney <cagney@redhat.com>
5537 * gdbarch.sh (UNWIND_SP): Add.
5538 * gdbarch.h, gdbarch.c: Re-generate.
5539 * frame.c (frame_sp_unwind): New function.
5540 (get_frame_sp): New function.
5541 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5542 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5543 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5545 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5546 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5548 2003-06-08 Andrew Cagney <cagney@redhat.com>
5550 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5553 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5554 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5555 * config/m68k/tm-sun3.h: Update.
5556 * config/m68k/tm-m68klynx.h: Update.
5557 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5559 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5560 trad_frame". Update comments.
5561 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5562 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5563 (trad_frame_register_value, trad_frame_prev_register): Update.
5565 2003-06-08 Andrew Cagney <cagney@redhat.com>
5567 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5568 from GCC's acinclude.m4.
5569 * configure.in: Check for getopt's delcaration.
5570 * aclocal.m4, config.in, configure: Re-generate.
5571 * main.c (error_init): Delete declaration.
5572 * defs.h (error_init): Declare.
5573 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5574 (rs6000_convert_from_func_ptr_addr): Make static.
5575 (_initialize_rs6000_tdep): Add declaration.
5576 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5577 (show_commands, set_verbose, show_history): Delete declaration.
5578 * top.h (set_verbose): Add declaration.
5579 (show_history, set_history, show_commands): Add declaration.
5580 (do_restore_instream_cleanup): Add declaration.
5581 * objc-lang.c (specialcmp): Make static.
5582 (print_object_command): Make static.
5583 (find_objc_msgsend): Make static.
5584 (find_objc_msgcall_submethod_helper): Make static.
5585 (find_objc_msgcall_submethod): Make static.
5586 (_initialize_objc_language): Add declaration.
5587 (find_implementation_from_class): Make static.
5588 (find_implementation): Make static.
5589 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5590 * objc-lang.h (lookup_struct_typedef): Add declaration.
5591 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5592 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5593 (do_restore_user_call_depth): Make static.
5594 (do_restore_instream_cleanup): Delete declaration.
5595 (dont_repeat): Delete declaration.
5596 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5597 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5598 * reggroups.c (_initialize_reggroup): Add declaration.
5599 * cp-support.c (_initialize_cp_support): Add declaration.
5600 * cp-abi.c (_initialize_cp_abi): Add declaration.
5601 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5602 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5603 (_initialize_gnu_v3_abi): Add declaration.
5604 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5605 (_initialize_gnu_v2_abi): Add declaration.
5606 * frame-base.c (_initialize_frame_base): Add declaration.
5607 * doublest.c (floatformat_from_length): Make static.
5608 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5609 * frame.c (create_sentinel_frame): Make static.
5610 (_initialize_frame): Add declaration.
5611 * top.c (do_catch_errors): Make static.
5612 (gdb_rl_operate_and_get_next_completion): Make static.
5613 * typeprint.c: Include "typeprint.h".
5614 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5615 (sentinel_frame_this_id): Make static.
5616 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5617 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5618 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5619 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5620 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5621 * maint.c (maintenance_print_architecture): Make static.
5622 * signals/signals.c (_initialize_signals): Add declaration.
5623 * std-regs.c (_initialize_frame_reg): Add declaration.
5624 * jv-exp.y (push_variable): ISO C definition.
5625 (push_qualified_expression_name): Ditto.
5626 * memattr.c (_initialize_mem): Add declaration.
5627 * remote.c (remote_check_watch_resources): Make static.
5628 (remote_stopped_by_watchpoint): Make static.
5629 (remote_stopped_data_address): Make static.
5630 * d10v-tdep.c (nr_dmap_regs): Make static.
5631 (a0_regnum): Make static.
5632 (d10v_frame_unwind_cache): Make static.
5633 (d10v_frame_p): Make static.
5634 * osabi.c (show_osabi): Make static.
5635 (_initialize_gdb_osabi): Add extern declaration.
5636 * gdbtypes.c (make_qualified_type): Make static.
5637 (safe_parse_type): Make static.
5638 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5639 * macrotab.c (macro_bcache_free): Make static.
5640 * interps.c (interp_set_quiet): Make static.
5641 (interpreter_exec_cmd): Make static.
5642 * stack.h (select_frame_command): New file.
5643 * stack.c: Include "stack.h".
5644 (select_frame_command_wrapper): Delete function.
5645 (select_frame_command): Make global.
5646 * infcall.c: Include "infcall.h".
5647 * linespec.c: Include "linespec.h".
5648 * symfile.c (sections_overlap): Make static.
5649 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5650 * charset.c (_initialize_charset): Add missing prototype.
5651 * regcache.c (init_legacy_regcache_descr): Make static.
5652 (do_regcache_xfree): Make static.
5653 (regcache_xfer_part): Make static.
5654 (_initialize_regcache): Add missing prototype.
5655 * breakpoint.c (parse_breakpoint_sals): Make static.
5656 (breakpoint_sals_to_pc): Make static.
5657 * interps.h (clear_interpreter_hooks): ISO C declaration.
5658 * Makefile.in (stack_h): Define.
5659 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5660 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5662 2003-06-08 Andrew Cagney <cagney@redhat.com>
5664 * Makefile.in (d10v-tdep.o): Update dependencies.
5665 (SFILES): Add trad-frame.c.
5666 (trad_frame_h): Define.
5667 (COMMON_OBS): Add trad-frame.o.
5668 (trad-frame.o): Specify dependencies.
5669 * d10v-tdep.c: Include "trad-frame.h".
5670 (saved_regs_unwinder): Delete function.
5671 (d10v_frame_prev_register): Use trad_frame_prev_register.
5672 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5673 trad_frame", delete "regs" and "prev_sp".
5674 (prologue_find_regs): Use trad-frame.
5675 * trad-frame.h, trad-frame.c: New files.
5677 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5679 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5681 2003-06-07 Adam Fedor <fedor@gnu.org>
5683 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5684 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5685 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5686 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5687 resolve_msgsend_super, resolve_msgsend_super_stret):
5690 2003-06-07 Andrew Cagney <cagney@redhat.com>
5692 * symfile.h: Re-indent, clean up comments.
5694 2003-06-07 Andrew Cagney <cagney@redhat.com>
5696 * inferior.h (deprecated_write_sp): Replace
5697 generic_target_write_sp.
5698 * regcache.c (deprecated_write_sp): Replace
5699 generic_target_write_sp.
5700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5701 * vax-tdep.c (vax_gdbarch_init): Update.
5702 * v850-tdep.c (v850_gdbarch_init): Update.
5703 * sparc-tdep.c (sparc_gdbarch_init): Update.
5704 * sh-tdep.c (sh_gdbarch_init): Update.
5705 * s390-tdep.c (s390_gdbarch_init): Update.
5706 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5707 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5708 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5709 * mcore-tdep.c (mcore_gdbarch_init): Update.
5710 * m68k-tdep.c (m68k_gdbarch_init): Update.
5711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5712 * ia64-tdep.c (ia64_gdbarch_init): Update.
5713 * h8300-tdep.c (h8300_gdbarch_init): Update.
5714 * frv-tdep.c (frv_gdbarch_init): Update.
5715 * cris-tdep.c (cris_gdbarch_init): Update.
5716 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5718 2003-06-07 Andrew Cagney <cagney@redhat.com>
5720 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5721 Assert that PC_REGNUM is valid.
5722 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5724 2003-06-07 Andrew Cagney <cagney@redhat.com>
5726 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5727 * gdbarch.h, gdbarch.c: Regenerate.
5728 * mn10300-tdep.c: Include "gdb_assert.h".
5729 (mn10300_read_fp): New function.
5730 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5731 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5732 * ia64-tdep.c: Include "gdb_assert.h".
5733 (ia64_read_fp): New function.
5734 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5735 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5736 * regcache.c (generic_target_read_sp): Delete function.
5737 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5738 * inferior.h (generic_target_read_sp): Delete declaration.
5739 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5740 generic_target_read_sp.
5741 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5742 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5743 * sh-tdep.c (sh_gdbarch_init): Ditto.
5744 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5745 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5747 2003-06-07 Andrew Cagney <cagney@redhat.com>
5749 * gdbarch.sh: Comment each field of startup_gdbarch.
5750 * gdbarch.h, gdbarch.c: Re-generate.
5752 2003-06-07 Andrew Cagney <cagney@redhat.com>
5754 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5755 * gdbarch.h, gdbarch.c: Re-generate.
5756 * regcache.c: Update comments on read_pc et.al.
5757 (generic_target_read_pc): Delete function.
5758 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5759 * inferior.h (generic_target_read_pc): Delete declaration.
5760 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5761 generic_target_read_pc.
5762 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5763 * sh-tdep.c (sh_gdbarch_init): Ditto.
5764 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5765 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5767 2003-06-07 Andrew Cagney <cagney@redhat.com>
5769 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5770 "index" with "special_local_sect". Use strcmp instead of STREQ.
5771 Append period to coments.
5773 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5775 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5776 (elfstab_offset_sections): Likewise.
5777 * gdb-stabs.h (stab_section_info): Likewise.
5778 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5779 * objfiles.c (objfile_relocate): Likewise.
5780 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5781 * remote.c (get_offsets): Likewise.
5782 (remote_cisco_objfile_relocate): Likewise.
5783 * somread.c (som_symfile_offsets): Likewise.
5784 * symfile.c (alloc_section_addr_info): New function.
5785 (build_section_addr_info_from_section_tab): Use it.
5786 (free_section_addr_info): Adjust.
5787 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5788 (syms_from_objfile): Allocate local_addr dynamically.
5789 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5791 (add_symbol_file_command): Allocate sect_opts dynamically.
5792 (reread_symbols): Avoid use of SECT_OFF_MAX.
5793 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5794 (alloc_section_addr_info): Declare it.
5795 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5796 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5798 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5800 2003-06-06 Andrew Cagney <cagney@redhat.com>
5802 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5803 (d10v_frame_unwind_cache): Do not set "return_pc".
5805 2003-06-06 Michael Snyder <msnyder@redhat.com>
5807 * h8300-tdep.c: Make tidy (long lines).
5809 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5811 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5812 to regcache_collect().
5814 2003-06-05 J. Brobecker <brobecker@gnat.com>
5816 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5817 pc_in_sigtramp multiarch method.
5818 (hppa_hpux_som_init_abi): Use it.
5819 (hppa_hpux_elf_init_abi): Likewise.
5820 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5821 macro has been multiarched.
5822 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5823 macro here, as hppa64 isn't multiarched yet.
5825 2003-06-05 Andrew Cagney <cagney@redhat.com>
5827 * Makefile.in (value_h): Add $(frame_h).
5828 * value.h: Include "frame.h".
5829 (struct value): Replace "frame_addr" with "frame_id".
5830 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5831 * values.c (allocate_value): Use VALUE_FRAME_ID.
5832 (value_copy): Use VALUE_FRAME_ID.
5833 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5834 * valops.c (value_assign): Update. Use frame_find_by_id.
5836 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5838 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5841 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5843 * thread-db.c (check_event): For create/death event breakpoints,
5844 loop through all messages to ensure that we read the message
5845 corresponding to the breakpoint we are at.
5847 2003-06-04 Michael Snyder <msnyder@redhat.com>
5849 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5851 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5853 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5854 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5855 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5856 when handling .eh_frame sections.
5858 2003-06-04 J. Brobecker <brobecker@gnat.com>
5860 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5861 prepare_to_proceed procedure instead of the hppa-specific one.
5862 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5864 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5866 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5867 * config.in: Regenerated.
5868 * configure.in: Add test for syscall function and check for
5869 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5870 * configure: Regenerated.
5871 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5873 (kill_lwp): New function that uses tkill syscall or
5874 uses kill, depending on whether threading model is nptl or not.
5875 All callers of kill() changed to use kill_lwp().
5876 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5877 see if all threads have already exited in the nptl model.
5878 (stop_and_resume_callback): New callback function used by the
5879 lin_lwp_wait thread exit handling code.
5880 (stop_wait_callback): Check for threads already having exited and
5881 delete such threads fromt the lwp list when discovered.
5882 (stop_callback): Don't assert retcode of kill call.
5884 Roland McGrath <roland@redhat.com>
5885 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5888 2003-06-03 Richard Henderson <rth@redhat.com>
5890 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5891 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5892 (alpha_sigtramp_frame_prev_register): Likewise.
5893 (alpha_heuristic_frame_prev_register): Likewise.
5894 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5896 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5897 alpha-specific register id names.
5898 (alpha_mdebug_frame_unwind_cache): Likewise.
5899 (alpha_mdebug_frame_prev_register): Likewise.
5901 2003-06-03 Richard Henderson <rth@redhat.com>
5903 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5904 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5905 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5906 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5908 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5909 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5910 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5912 * alpha-linux-tdep.c: Remove unnecessary includes.
5913 * Makefile.in (alpha-linux-tdep.o): Update.
5915 2003-06-03 Richard Henderson <rth@redhat.com>
5917 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5918 (alphabsd_fill_fpreg): Likewise.
5920 2003-06-03 J. Brobecker <brobecker@gnat.com>
5922 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5923 references to struct frame_info fields by calls to the equivalent
5924 accessors. Necessary now that frame_info is opaque.
5926 2003-06-03 J. Brobecker <brobecker@gnat.com>
5928 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5929 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5930 structure, field no longer exists.
5932 2003-06-03 J. Brobecker <brobecker@gnat.com>
5934 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5935 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5937 2003-06-03 J. Brobecker <brobecker@gnat.com>
5939 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5940 references to struct frame_info fields by calls to the equivalent
5941 accessors. Necessary now that frame_info is opaque.
5943 2003-06-03 J. Brobecker <brobecker@gnat.com>
5945 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5946 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5947 structure, field no longer exists.
5949 2003-06-03 Theodore A. Roth <troth@openavr.org>
5951 * remote.c (init_remote_state): Compute sizeof_g_packet by
5952 accumulation of the size of all registers instead of blindly using
5953 DEPRECATED_REGISTER_BYTES.
5955 2003-06-03 Michael Snyder <msnyder@redhat.com>
5957 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5958 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5961 2003-06-03 J. Brobecker <brobecker@gnat.com>
5963 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5964 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5966 2003-06-03 Andrew Cagney <cagney@redhat.com>
5968 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5969 (sparc_convert_to_raw): Delete function.
5970 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5971 register_convert_to_virtual.
5973 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5975 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5976 layer if not dealing with a statically-linked threaded program.
5978 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5980 * solib.c (solib_open): Update comment to reflect actual search order.
5982 2003-06-03 Andrew Cagney <cagney@redhat.com>
5984 * frame.c (get_frame_memory_signed): New function.
5985 (get_frame_memory, get_frame_memory_unsigned): New function.
5986 (get_frame_arch): New function.
5987 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5988 (get_frame_memory, get_frame_unsigned_memory): Declare.
5989 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5990 get_frame_memory_unsigned and get_frame_arch.
5991 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5993 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5995 * MAINTAINERS (write after approval): Add myself.
5997 2003-06-03 Jim Blandy <jimb@redhat.com>
5999 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
6000 elements of gregset_t are 64 bits each, but access registers
6001 are still 32 bits, so they're packed two per gregset_t
6002 element. Unpack/pack them properly.
6004 2003-06-02 David Carlton <carlton@bactrian.org>
6006 * linespec.c (find_methods): Break out code into
6007 add_matching_methods and add_constructors.
6008 (add_matching_methods): New.
6009 (add_constructors): Ditto.
6011 2003-06-02 Andrew Cagney <cagney@redhat.com>
6013 * sparc-tdep.c (sparc_print_registers): Delete call to
6014 REGISTER_CONVERTIBLE.
6015 (sparc_gdbarch_init): Do not set register_convertible.
6016 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6017 * frv-tdep.c (frv_gdbarch_init): Ditto.
6018 * cris-tdep.c (cris_gdbarch_init): Ditto.
6020 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
6022 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
6023 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
6024 (syms_from_objfile): Ditto.
6026 2003-06-03 Andreas Schwab <schwab@suse.de>
6028 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
6029 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
6031 2003-06-02 Richard Henderson <rth@redhat.com>
6033 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
6034 a member of all_reggroup.
6036 2003-06-02 Richard Henderson <rth@redhat.com>
6038 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
6039 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
6040 (alpha_lds, alpha_sts): New.
6041 (alpha_convert_register_p): Change from _register_convertible.
6042 (alpha_register_to_value): Change from _convert_to_virtual;
6043 restructure and fail for type sizes other than 4 or 8.
6044 (alpha_value_to_register): Similarly.
6045 (alpha_extract_return_value): Use alpha_sts.
6046 (alpha_store_return_value): Use alpha_lds.
6047 (alpha_gdbarch_init): Update hooks.
6049 2003-06-02 Richard Henderson <rth@redhat.com>
6051 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
6053 (alpha_sigtramp_register_address): Likewise.
6055 2003-06-02 Richard Henderson <rth@redhat.com>
6057 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
6058 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
6059 * alpha-tdep.h: Declare them.
6061 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
6062 Remove zerobuf. Don't error on UNIQUE.
6063 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6064 (ALPHA_REGSET_UNIQUE): Provide default.
6065 (supply_gregset): Use alpha_supply_int_regs.
6066 (fill_gregset): Use alpha_fill_int_regs.
6067 (supply_fpregset): Use alpha_supply_fp_regs.
6068 (fill_fpregset): Use alpha_fill_fp_regs.
6069 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6070 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6071 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6072 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6073 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6074 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6076 2003-06-02 Richard Henderson <rth@redhat.com>
6078 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6080 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6081 (alpha_store_return_value): Likewise.
6083 2003-06-02 David Carlton <carlton@math.stanford.edu>
6085 * block.c (contained_in): Add 'const' to arguments.
6086 (block_function): Ditto.
6087 * block.h: Update declarations for block_function and
6090 2003-06-02 David Carlton <carlton@math.stanford.edu>
6092 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6093 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6094 * p-valprint.c (pascal_val_print): Ditto.
6095 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6097 2003-06-02 Richard Henderson <rth@redhat.com>
6099 * alpha-tdep.c (alpha_push_dummy_call): Use
6100 builtin_type_ieee_double_little instead of builtin_type_double.
6102 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6103 sign-extension of 32-bit values.
6104 (alpha_store_return_value): Similarly.
6106 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6107 (alpha_extract_return_value): Likewise.
6108 (alpha_store_return_value): Likewise.
6110 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6111 (alpha_store_return_value): Error on IEEE Quad floats.
6113 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6114 (alpha_extract_struct_value_address): Likewise.
6115 (alpha_store_return_value): Likewise.
6116 (alpha_store_struct_return): Remove.
6117 (alpha_gdbarch_init): Update hook registration to match.
6119 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6120 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6121 macros where appropriate.
6122 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6123 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6125 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6126 for SP, GP; void_func_ptr for PC; non-language-specific types
6128 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6130 2003-06-02 Richard Henderson <rth@redhat.com>
6132 * top.h (lim_at_start): Declare.
6133 * main.c (captured_main): Set it.
6134 * top.c (lim_at_start): Define.
6135 (command_loop): Use it instead of &environ.
6136 * event-top.c (command_handler): Likewise.
6138 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6140 * mipsnbsd-tdep.c: Update copyright years.
6141 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6143 2003-06-01 Richard Henderson <rth@redhat.com>
6145 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6146 (alpha-linux-tdep.o): Update dependencies.
6147 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6148 * alpha-mdebug-tdep.c: Remove unneeded includes.
6150 2003-06-01 Richard Henderson <rth@redhat.com>
6152 * alpha-tdep.c (alpha_register_reggroup_p): New.
6153 (alpha_gdbarch_init): Register it.
6155 2003-06-02 Andrew Cagney <cagney@redhat.com>
6157 * dwarfread.c: Eliminate "register"
6158 (decode_die_type): Eliminate assignment within "if".
6159 (struct_type, decode_array_element_type): Ditto.
6160 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6161 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6162 (decode_modified_type, completedieinfo): Ditto.
6163 * block.c: Eliminate "register".
6164 (blockvector_for_pc_sect): Eliminate assignment within "if".
6165 * cp-support.h (struct symbol): Opaque declaration.
6166 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6168 2003-06-01 Richard Henderson <rth@redhat.com>
6170 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6171 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6173 2003-06-01 Adam Fedor <fedor@gnu.org>
6175 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6176 * gdbarch.[ch]: Regenerate.
6177 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6178 (hppa_gdbarch_init): Set it in the gdbarch vector.
6179 * i386-tdep.c (i386_fetch_pointer_argument): New
6180 (i386_gdbarch_init): Set it into gdbarch.
6181 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6182 (rs6000_gdbarch_init): Set it in gdbarch.
6183 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6184 (sparc_gdbarch_init): Set it in gdbarch.
6186 2003-06-01 Andrew Cagney <cagney@redhat.com>
6188 * defs.h (extract_address): Delete declaration.
6189 * findvar.c (extract_address): Delete function.
6190 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6191 extract_address with the inline equivalent,
6192 extract_unsigned_integer.
6193 (xstormy16_extract_struct_value_address): Ditto.
6194 (xstormy16_pointer_to_address): Ditto.
6195 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6196 * v850-tdep.c (v850_push_arguments): Ditto.
6197 (v850_extract_return_value): Ditto.
6198 (v850_extract_struct_value_address): Ditto.
6199 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6200 (sparcnbsd_get_longjmp_target_64): Ditto.
6201 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6202 (get_longjmp_target): Ditto.
6203 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6204 (sh64_extract_struct_value_address): Ditto.
6205 (sh_push_arguments): Ditto.
6206 (sh64_push_arguments): Ditto.
6207 * remote-vxsparc.c (vx_read_register): Ditto.
6208 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6209 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6210 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6211 * mipsv4-nat.c (get_longjmp_target): Ditto.
6212 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6213 * mips-nat.c (get_longjmp_target): Ditto.
6214 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6215 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6216 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6217 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6218 * irix5-nat.c (get_longjmp_target): Ditto.
6219 * irix4-nat.c (get_longjmp_target): Ditto.
6220 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6221 (ia64_push_arguments): Ditto.
6222 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6223 * h8300-tdep.c (h8300_push_arguments): Ditto.
6224 (h8300_store_return_value): Ditto.
6225 (h8300_extract_struct_value_address): Ditto.
6226 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6227 (frv_push_arguments): Ditto.
6228 * avr-tdep.c (avr_pointer_to_address): Ditto.
6229 (avr_push_arguments): Ditto.
6230 * arm-tdep.c (arm_push_dummy_call): Ditto.
6231 (arm_get_longjmp_target): Ditto.
6232 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6233 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6234 (alpha_get_longjmp_target): Ditto.
6236 * solib-irix.c (extract_mips_address): Inline extract_address,
6237 replacing it with extract_signed_integer.
6238 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6239 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6240 (first_link_map_member, open_symbol_file_object): Ditto.
6241 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6242 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6243 (LM_NEXT, LM_NAME): Ditto.
6245 2003-06-01 Richard Henderson <rth@redhat.com>
6247 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6248 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6249 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6250 (alpha_cannot_store_register): Likewise.
6251 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6252 * alpha-nat.c (supply_gregset): Likewise.
6253 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6255 2003-06-01 Andrew Cagney <cagney@redhat.com>
6257 * infcall.c (call_function_by_hand): Update comment on
6258 DEPRECATED_DUMMY_WRITE_SP.
6260 * mips-tdep.c (mips_gdbarch_init): Do not set
6261 deprecated_dummy_write_sp.
6262 (mips_eabi_push_dummy_call): Set the SP register.
6263 (mips_o64_push_dummy_call): Set the SP register.
6264 (mips_o32_push_dummy_call): Set the SP register.
6265 (mips_n32n64_push_dummy_call): Set the SP register.
6267 2003-06-01 Richard Henderson <rth@redhat.com>
6269 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6270 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6271 (supply_gregset): Likewise.
6272 * alpha-tdep.c (alpha_store_return_value): Likewise.
6273 (alpha_get_longjmp_target): Likewise.
6274 (alpha_register_name): Constify array.
6275 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6276 deprecated_register_size, deprecated_register_bytes,
6277 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6278 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6279 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6281 2003-06-01 Richard Henderson <rth@redhat.com>
6283 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6284 from arg_reg_buffer to regcache to avoid double conversion.
6286 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6288 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6290 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6291 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6293 2003-06-01 Richard Henderson <rth@redhat.com>
6295 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6296 (decode_frame_entry): Set it. Skip FDE augmentation.
6298 2003-06-01 Richard Henderson <rth@redhat.com>
6300 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6301 not overlapping PC_REGNUM.
6303 2003-06-01 Richard Henderson <rth@redhat.com>
6305 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6306 alpha_push_arguments. Don't dump argument register data to
6307 the target stack. Fix float and 128-bit long double semantics.
6308 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6309 (alpha_fix_call_dummy): Remove.
6310 (alpha_call_dummy_words): Remove.
6311 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6313 2003-06-01 Richard Henderson <rth@redhat.com>
6315 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6317 2003-06-01 Andrew Cagney <cagney@redhat.com>
6319 * mips-tdep.c (is_mips16_addr): New function.
6320 (make_mips16_addr, unmake_mips16_addr): New functions.
6321 (pc_is_mips16, mips_fetch_instruction): Use.
6322 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6323 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6324 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6325 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6327 * config/mips/tm-mips.h: Update copyright.
6328 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6329 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6330 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6331 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6332 (TM_PRINT_INSN_MACH): Delete.
6333 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6335 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6336 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6337 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6338 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6339 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6340 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6341 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6342 mips*-*-riscos* and mips*-*-sysv* onto mips.
6343 * config/mips/mips64.mt: New file.
6344 * config/mips/mips.mt: New file.
6345 * config/mips/littlemips.mt: Delete file.
6346 * config/mips/decstation.mt: Delete file.
6347 * config/mips/vr4300el.mt: Delete file.
6348 * config/mips/vr5000el.mt: Delete file.
6349 * config/mips/vr5000.mt: Delete file.
6350 * config/mips/vr4100.mt: Delete file.
6351 * config/mips/vr4xxxel.mt: Delete file.
6352 * config/mips/vr4300.mt: Delete file.
6353 * config/mips/vr4xxx.mt: Delete file.
6354 * config/mips/bigmips.mt: Delete file.
6355 * config/mips/bigmips64.mt: Delete file.
6356 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6357 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6358 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6359 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6360 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6362 * config/mips/tm-irix3.h: Ditto.
6363 * config/mips/tm-mipsv4.h: Ditto.
6364 * config/mips/tm-embed.h: Ditto.
6365 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6367 * config/mips/tm-vr5000el.h: Delete file.
6368 * config/mips/tm-tx39l.h: Delete file.
6369 * config/mips/tm-vr4300el.h: Delete file.
6370 * config/mips/tm-vr4xxxel.h: Delete file.
6371 * config/mips/tm-vr4300.h: Delete file.
6372 * config/mips/tm-vr4100.h: Delete file.
6373 * config/mips/tm-vr4xxx.h: Delete file.
6374 * config/mips/tm-vr5000.h: Delete file.
6375 * config/mips/tm-embedl64.h: Delete file.
6376 * config/mips/tm-embedl.h: Delete file.
6377 * config/mips/tm-embed64.h: Delete file.
6378 * config/mips/tm-bigmips64.h: Delete file.
6379 * config/mips/tm-bigmips.h: Delete file.
6381 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6384 * shnbsd-nat.c: Include "sh-tdep.h".
6386 From Richard Henderson <rth@redhat.com>:
6387 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6389 2003-05-31 Andrew Cagney <cagney@redhat.com>
6391 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6392 forward declaration.
6393 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6394 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6395 (mips_find_saved_regs): Use set_reg_offset.
6396 (mips_frame_init_saved_regs): Delete function.
6397 (mips_pop_frame): Call mips_find_saved_regs instead of
6398 DEPRECATED_FRAME_INIT_SAVED_REGS.
6400 2003-05-31 Andrew Cagney <cagney@redhat.com>
6402 * mips-tdep.c (mips_gdbarch_init): Do not set
6403 deprecated_max_register_raw_size, register_virtual_size, and
6404 deprecated_max_register_virtual_size.
6406 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6408 * i386-tdep.c: Include "dwarf2-frame.h".
6409 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6410 * Makefile.in (i386-tdep.o): Update dependencies.
6412 * dwarf2-frame.c, dwarf2-frame.h: New files.
6413 * Makefile.in (SFILES): Add dwarf2-frame.c.
6414 (dwarf2_frame_h): Define.
6415 (COMMON_OBS): Add dwarf2-frame.o.
6416 (dwarf2-frame.o): Add dependencies.
6418 2003-05-31 Andreas Jaeger <aj@suse.de>
6420 * x86-64-linux-nat.c: Fix comment.
6422 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6424 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6427 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6428 have a sigcontext_addr handler.
6429 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6430 sigcontext_addr handler.
6432 2003-05-31 Andrew Cagney <cagney@redhat.com>
6434 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6435 (print_fp_register_row): Replace do_fp_register_row.
6436 (mips_print_fp_register): Add "file" and "frame" parameters.
6437 (mips_print_register): Add "file" and "frame" parameters.
6438 (mips_print_registers_info): Replace mips_do_registers_info.
6439 (mips_gdbarch_init): Set print_registers_info instead of
6440 deprecated_do_registers_info.
6441 (mips_read_fp_register_single): Add "frame" parameter.
6442 (mips_read_fp_register_double): Add "frame" parameter.
6444 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6446 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6447 Fixes a bug where GDB would print the wrong register names for
6448 targets without SSE.
6450 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6451 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6454 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6455 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6456 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6459 From Michal Ludvig <mludvig@suse.cz>:
6460 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6462 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6463 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6464 I386_ST0_REGNUM): Move here from...
6465 * i386-tdep.c: ... here.
6466 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6467 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6468 registers if possible.
6469 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6470 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6472 (i386bsd_sc_reg_offset): New variable.
6473 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6474 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6476 (i386fbsd_sc_reg_offset): New variable.
6477 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6479 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6481 (i386fbsd4_sc_reg_offset): New variable.
6482 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6483 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6485 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6486 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6487 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6489 (i386nbsd_sc_reg_offset): New variable.
6490 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6491 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6493 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6495 (i386obsd_sc_reg_offset): New variable.
6496 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6497 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6499 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6500 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6501 for frame pointer offset in `struct sigcontext'.
6503 2003-05-31 Andrew Cagney <cagney@redhat.com>
6505 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6506 architecture methods call_dummy_words, sizeof_call_dummy_words,
6507 push_return_address, store_struct_return, and fix_call_dummy. Set
6508 push_dummy_call instead of deprecated_push_arguments.
6509 (mips_store_struct_return): Delete function.
6510 (mips_fix_call_dummy): Delete function.
6511 (mips_push_return_address): Delete function.
6512 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6513 RA_REGNUM and T9_REGNUM.
6514 (mips_n32n64_push_dummy_call): Ditto for
6515 mips_n32n64_push_arguments.
6516 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6517 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6519 2003-05-31 Andrew Cagney <cagney@redhat.com>
6521 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6522 "dummy_addr" to "bp_addr".
6523 * infcall.c (call_function_by_hand): Pass "funaddr" to
6524 gdbarch_push_dummy_call.
6525 * gdbarch.h, gdbarch.c: Re-generate.
6526 * i386-tdep.c (i386_push_dummy_call): Update.
6527 * arm-tdep.c (arm_push_dummy_call): Update.
6528 * d10v-tdep.c (d10v_push_dummy_call): Update.
6530 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6532 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6533 variable declarations.
6534 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6535 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6536 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6537 x86_64_init_frame_pc, x86_64_init_frame_pc,
6538 x86_64_function_has_prologue): Remove prototypes.
6539 (X86_64_NUM_GREGS): New define.
6540 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6541 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6542 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6543 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6544 XMM1_REGNUM): Remove defines.
6545 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6546 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6547 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6548 X86_64_XMM1_REGNUM): New defines.
6549 (struct x86_64_register_info): Renamed from `struct
6550 register_info'. Remove `size' member.
6551 (x86_64_register_info_table): Remove variable.
6552 (x86_64_register_info): New variable.
6553 (X86_64_NUM_REGS): New define.
6554 (X86_64_NUM_GREGS): Remove define.
6555 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6556 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6558 (x86_54_dwarf2_reg_to_regnum): Remove function.
6559 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6560 (x86_64_dwarf_reg_to_regnum): New function.
6561 (x86_64_register_name): Rewrite.
6562 (x86_64_register_raw_size): Remove function.
6563 (x86_64_register_byte_table): Remove variable.
6564 (x86_64_register_byte): Remove function.
6565 (x86_64_register_virtual_type): Remove function.
6566 (x86_64_register_type): New function.
6567 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6568 x86_64_register_convert_to_raw): Remove functions.
6569 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6570 (x86_64_use_struct_convention): Make static. Adjust for renamed
6572 (x86_64_frame_init_saved_regs): Remove function.
6573 (x86_64_push_arguments): Make static. Change to accept a regcache
6575 (x86_64_store_return_value, x86_64_extract_return_value): Make
6576 static. Rewrite based on i386 counterparts.
6577 (x86_64_push_dummy_call): New function.
6578 (X86_64_NUM_SAVED_REGS): New define.
6579 (x86_64_register_number): Remove function.
6580 (x86_64_store_struct_return): Remove function.
6581 (x86_64_frameless_function_invocation,
6582 x86_64_function_has_prologue): Remove functions.
6583 (PROLOG_BUFSIZE): Remove define.
6584 (struct x86_64_frame_cache): New structure.
6585 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6586 x86_64_frame_cache, x86_64_frame_this_id,
6587 x86_64_frame_prev_register, x86_64_frame_p,
6588 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6589 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6591 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6593 (x86_64_skip_prologue): Rewrite in terms of
6594 x86_64_analyze_prologue.
6595 (x86_64_frame_base_address): New function.
6596 (x86_64_frame_base): New variable.
6597 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6598 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6599 set deprecated_fp_regnum, deprecated_register_size,
6600 deprecated_register_bytes, register_raw_size, register_byte,
6601 register_virtual_type, register_convertiable,
6602 register_convert_to_virtual, convert_to_raw,
6603 deprecated_get_saved_register, deprecated_target_read_fp,
6604 deprecated_push_arguments, deprecated_push_return_address,
6605 deprecated_pop_frame, deprecated_store_struct_return,
6606 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6607 frameless_function_invocation, deprecated_frame_saved_pc,
6608 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6609 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6610 deprecated_init_frame_pc and virtual_frame_pointer. Call
6611 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6612 and x86_64_frame_p. Call frame_base_set_default to register
6614 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6615 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6616 (_initialize_x86_64_tdep): Remove function.
6617 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6618 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6619 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6621 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6622 (x86_64_linux_sigcontext_addr): Rewrite.
6623 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6624 x86_64_linux_frame_saved_pc): Remove functions.
6625 (x86_64_linux_pc_in_sigtramp): Renamed from
6626 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6628 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6630 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6631 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6632 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6633 (x86_64_regmap): Rename to regmap.
6634 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6636 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6638 (x86_64_fxsave_offset): Remove function.
6639 (supply_fpregset): Simply call x86_64_supply_fxsave.
6640 (fill_fpregset): Simply call x86_64_fill_fxsave.
6641 (fetch_inferior_registers, store_inferior_registers): Avoid
6642 asignment in if-statement.
6643 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6644 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6645 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6646 (fetch_core_registers): Remove function.
6647 (linux_elf_core_fns): Remove.
6648 (offsetoff): Don't define.
6649 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6650 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6651 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6653 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6654 protection against multiple includes instead of NM_X86_64_h. Add
6655 various comments. Include "config/nm-linux.h". Don't include
6657 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6658 GET_THREAD_SIGNALS): Remove defines.
6659 (x86_64_register_u_addr, kernel_u_size,
6660 lin_thread_get_thread_signals): Remove prototypes.
6661 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6662 [HAVE_LINK_H]: Don't include "solib.h".
6663 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6664 * config/i386/tm-x86-64linux.h: Fix comments.
6665 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6666 x86-64-tdep.o): Update dependencies.
6668 2003-05-30 Andrew Cagney <cagney@redhat.com>
6670 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6671 Change parameter type to a "struct regcache *".
6673 * gdbarch.sh: Regardless of the multi-arch level, always define
6674 the macro when not already defined.
6675 * gdbarch.h, gdbarch.c: Re-generate.
6677 2003-05-30 Richard Henderson <rth@redhat.com>
6679 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6680 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6681 (alpha_mdebug_frame_this_id): Likewise.
6682 (alpha_mdebug_frame_prev_register): Likewise.
6683 (alpha_mdebug_frame_base_address): Likewise.
6684 (alpha_mdebug_frame_locals_address): Likewise.
6685 (alpha_mdebug_frame_args_address): Likewise.
6686 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6687 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6688 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6690 (alpha_heuristic_frame_this_id): Make static.
6691 (alpha_heuristic_frame_prev_register): Likewise.
6692 (alpha_heuristic_frame_base_address): Likewise.
6693 * alpha-tdep.h: Update.
6695 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6697 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6698 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6700 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6701 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6702 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6703 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6704 I386_ST0_REGNUM): New defines.
6705 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6706 codestream_get): Remove define.
6707 (codestream_next_addr, condestream_addr, condestream_buf,
6708 codestream_off, codestream_cnt): Remove variables.
6709 (codestream_fill, codestream_seek, codestream_read): Remove
6711 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6713 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6714 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6715 i386_frame_saved_pc, i386_saved_pc_after_call,
6716 i386_frame_num_args, i386_frame_init_saved_regs,
6717 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6718 i386_push_arguments): Remove functions.
6719 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6720 functionality. Use i386_analyze_prologue instead of
6721 i386_get_frame_setup.
6722 (I386_NUM_SAVED_REGS): New define.
6723 (struct i386_frame_cache): New structure.
6724 (i386_alloc_frame_cache, i386_analyze_struct_return,
6725 i386_skip_probe, i386_analyze_frame_setup,
6726 i386_analyze_register_saves, i386_analyze_prologue,
6727 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6728 i386_frame_prev_register, i386_sigtramp_frame_cache,
6729 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6730 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6731 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6733 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6735 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6736 I386_EAX_REGNUM and I386_EDX_REGNUM.
6737 (i386_extract_return_value, i386_store_return_value): Use
6738 I386_ST0_REGNUM where appropriate.
6739 (i386_extract_struct_value_address): Rewrite to use extract_address.
6740 (i386_svr4_pc_in_sigtramp): Add comment.
6741 (i386_svr4_sigcontext_addr): Rewrite.
6742 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6744 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6745 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6746 of new defines. Set push_dummy_call, don't set
6747 deprecated_push_arguments, deprecated_push_return_address,
6748 deprecated_pop_frame. Don't set parm_boundary. Don't set
6749 deprecated_frame_chain, deprecated_frame_saved_pc,
6750 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6751 save_dummy_frame_tos, unwind_pc. Call
6752 frame_unwind_append_predicate and frame_base_set_default. Don't
6753 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6754 Don't set frameless_function_invocation. Don't set
6755 deprecated_register_bytes, deprecated_register_size,
6756 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6757 * i386-linux-tdep.c: Fix formatting in some comments.
6758 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6759 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6760 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6761 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6762 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6763 redundant parentheses.
6764 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6765 (i386_linux_sigcontext_addr): Use it. Rewrite.
6766 (find_minsym_and_objfile): Change name of second argument.
6767 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6768 changed. Use frame_pc_unwind instead of
6769 DEPRECATED_SAVED_PC_AFTER_CALL.
6770 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6771 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6772 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6774 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6776 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6777 (_initialize_i386_cygwin_tdep): New prototype.
6778 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6779 deprecated_frame_chain_valid.
6780 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6781 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6782 Rely on the SVR4 defaults.
6783 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6784 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6786 2003-05-30 Andrew Cagney <cagney@redhat.com>
6788 * infcall.c (call_function_by_hand): Always call
6789 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6791 2003-05-30 Richard Henderson <rth@redhat.com>
6793 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6796 2003-05-29 Jim Blandy <jimb@redhat.com>
6798 Use gdbarch methods for solib stuff on PowerPC Linux.
6799 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6800 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6802 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6803 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6804 giving the same effect as the #definitions above.
6806 2003-05-29 Adam Fedor <fedor@gnu.org>
6808 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6809 (find_implementation_from_class): Replace it with the standard
6810 case i.e. do nothing.
6812 2003-05-29 Richard Henderson <rth@redhat.com>
6814 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6815 (alpha_linux_sigtramp_offset): Use it. Make static.
6816 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6817 update for new frame model.
6818 * alpha-mdebug-tdep.c: New file.
6819 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6820 (alpha_osf1_init_abi): Install it.
6821 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6822 (linked_proc_desc_table): Remove.
6823 (alpha_frame_past_sigtramp_frame): Remove.
6824 (alpha_dynamic_sigtramp_offset): Remove.
6825 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6826 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6827 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6828 (push_sigtramp_desc): Remove.
6829 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6830 (alpha_cannot_store_register): Likewise.
6831 (alpha_sigcontext_addr): Remove.
6832 (alpha_find_saved_regs): Remove.
6833 (alpha_frame_init_saved_regs): Remove.
6834 (alpha_init_frame_pc_first): Remove.
6835 (read_next_frame_reg): Remove.
6836 (alpha_frame_saved_pc): Remove.
6837 (alpha_saved_pc_after_call): Remove.
6838 (temp_proc_desc, temp_saved_regs): Remove.
6839 (alpha_about_to_return): Remove.
6840 (cached_proc_desc): Remove.
6841 (alpha_frame_chain): Remove.
6842 (alpha_print_extra_frame_info): Remove.
6843 (alpha_init_extra_frame_info): Remove.
6844 (alpha_frame_locals_address): Remove.
6845 (alpha_frame_args_address): Remove.
6846 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6847 (alpha_push_dummy_frame): Remove.
6848 (alpha_pop_frame): Remove.
6849 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6850 (alpha_read_insn): New.
6851 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6852 for different insn encodings.
6853 (alpha_in_lenient_prologue): Remove.
6854 (struct alpha_sigtramp_unwind_cache): New.
6855 (alpha_sigtramp_frame_unwind_cache): New.
6856 (alpha_sigtramp_register_address): New.
6857 (alpha_sigtramp_frame_this_id): New.
6858 (alpha_sigtramp_frame_prev_register): New.
6859 (alpha_sigtramp_frame_unwind): New.
6860 (alpha_sigtramp_frame_p): New.
6861 (struct alpha_heuristic_unwind_cache): New.
6862 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6863 don't count nop insns that occur between functions.
6864 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6865 heuristic_proc_desc, but without the mdebug wrapping.
6866 (alpha_heuristic_frame_this_id): New.
6867 (alpha_heuristic_frame_prev_register): New.
6868 (alpha_heuristic_frame_unwind): New.
6869 (alpha_heuristic_frame_p): New.
6870 (alpha_heuristic_frame_base_address): New.
6871 (alpha_heuristic_frame_base): New.
6872 (alpha_unwind_dummy_id): New.
6873 (alpha_unwind_pc): New.
6874 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6875 frame related deprecated initializations; install replacements.
6876 (alpha_dump_tdep): Remove.
6877 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6878 (alpha_read_insn, alpha_after_prologue,
6879 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6880 alpha_heuristic_frame_prev_register,
6881 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6882 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6883 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6884 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6886 2003-05-29 Andrew Cagney <cagney@redhat.com>
6888 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6889 dependant on the availability of ASSERT_FUNCTION.
6890 (ASSERT_FUNCTION): Do not define when there is no function name.
6892 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6894 From Jimi X <jimix@watson.ibm.com>:
6895 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6897 2003-05-28 Jim Blandy <jimb@redhat.com>
6899 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6900 argument to ptrace to int; the system headers should give it the
6901 right type, and pointers don't fit in ints on powerpc64-*-*.
6903 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6905 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6908 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6910 * stabsread.c (dbx_lookup_type): Make static.
6912 (add_undefined_type): Ditto.
6913 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6916 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6918 * hpread.c (hpread_has_name): Make static.
6919 (hpread_psymtab_to_symtab): Ditto.
6920 (file_exists): Ditto.
6921 (hpread_call_pxdb): Ditto.
6922 (hpread_pxdb_needed): Ditto.
6923 (hpread_quick_traverse): Ditto.
6924 (hpread_get_header): Ditto.
6925 (hpread_get_lntt): Ditto.
6926 (hpread_get_slt): Ditto.
6929 2003-05-25 Andreas Schwab <schwab@suse.de>
6931 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6932 stack_align and deprecated_extra_stack_alignment_needed.
6933 (m68k_stack_align): Delete.
6935 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6936 (m68k_register_virtual_size): Likewise.
6937 (altos_skip_prologue): Remove obsolete function.
6938 (isi_frame_num_args): Likewise.
6939 (news_frame_num_args): Likewise.
6940 (m68k_fix_call_dummy): Make static.
6941 (m68k_push_dummy_frame): Likewise.
6942 (m68k_pop_frame): Likewise.
6943 (m68k_skip_prologue): Likewise.
6944 (m68k_frame_init_saved_regs): Likewise.
6945 (m68k_saved_pc_after_call): Likewise.
6946 (m68k_get_longjmp_target): Make multi-arch.
6947 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6948 structure. Register m68k_get_longjmp_target if enabled.
6949 * m68k-tdep.h (struct gdbarch_tdep): Define.
6950 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6952 * Makefile.in (config.status): Also depend on configure.tgt
6954 (m68klinux-tdep.o): Update dependencies.
6955 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6956 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6957 (M68K_LINUX_JB_PC): Define.
6958 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6959 and take additional parameter.
6960 (m68k_linux_sigtramp_saved_pc): Update.
6961 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6962 m68k_linux_pc_in_sigtramp, in_plt_section,
6963 find_solib_trampoline_target.
6964 * config/m68k/tm-linux.h: Don't include any tm headers.
6965 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6966 (JB_ELEMENT_SIZE): Likewise.
6968 (GET_LONGJMP_TARGET): Likewise.
6969 (IN_SIGTRAMP): Likewise.
6970 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6972 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6974 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6975 (sparc32_push_arguments): Re-implement by calling
6976 sparc32_do_push_arguments.
6978 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6980 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6981 SPARC_O1_REGNUM): New defines.
6982 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6983 (sparc32_store_return_value): New function.
6984 (sparc_extract_struct_value_address): Rewrite to operate on a
6986 (sparc_gdbarch_init): Don't set
6987 deprecated_extract_struct_value_address. Set
6988 extract_struct_value_address instead. Don't set
6989 deprecated_extract_return_value and deprecated_store_return_value
6990 for 32-bit targets. Set extract_return_value and
6991 store_return_value instead.
6992 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6993 DEPRECTAED_EXTRACT_RETURN_VALUE,
6994 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6995 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6996 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6997 (sparc_store_return_value): Remove prototype.
6998 (sparc32_store_return_value): New prototype.
6999 (sparc32_extract_return_value, sparc_extract_struct_value_address):
7002 2003-05-24 Mark Kettenis <kettenis@gnu.org>
7004 * sparcnbsd-tdep.c: Include "gdb_string.h".
7006 2003-05-23 Andrew Cagney <cagney@redhat.com>
7008 * p-valprint.c (pascal_val_print): Replace extract_address with
7009 the inline equivalent extract_unsigned_integer.
7010 * jv-valprint.c (java_value_print): Ditto.
7011 * ada-valprint.c (ada_val_print_1): Ditto.
7012 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
7014 2003-05-23 Theodore A. Roth <troth@openavr.org>
7016 * blockframe.c (frameless_look_for_prologue): Remove unused
7017 after_prologue variable.
7019 2003-05-23 Mark Kettenis <kettenis@gnu.org>
7021 * blockframe.c (get_pc_function_start): Rewrite to avoid
7022 asignments in if-statements.
7024 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
7026 Committed by Elena Zannoni <ezannoni@redhat.com>.
7027 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
7028 files, don't relocate absolute symbols (and do use mst_abs).
7030 2003-05-23 Andrew Cagney <cagney@redhat.com>
7032 * objc-lang.c: Include "gdb_assert.h".
7033 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
7034 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
7035 (gdb_check, gdb_check_fatal): Delete functions.
7036 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
7038 (parse_selector, parse_method, find_methods, find_imps): Ditto.
7039 * Makefile.in (objc-lang.o): Update dependencies.
7041 2003-05-22 Ian Lance Taylor <ian@airs.com>
7043 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
7044 with fprintf_filtered, not fprintf_unfiltered.
7046 2003-05-22 Andrew Cagney <cagney@redhat.com>
7048 * stack.c (frame_info): Inline extract_address, replacing it with
7049 extract_unsigned_integer.
7050 * findvar.c (unsigned_pointer_to_address): Ditto.
7051 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
7052 * dwarf2expr.c (dwarf2_read_address): Ditto.
7053 * frame.c (frame_pc_unwind): Update comment.
7054 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
7056 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
7058 * infptrace.c (detach): Call print_sys_errmsg rather than
7059 perror_with_name to issue warning message when errno is non-zero
7060 after calling ptrace detach.
7062 2003-05-21 J. Brobecker <brobecker@gnat.com>
7064 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7065 macro definitions from here...
7066 * hppa-tdep.c: ...to there.
7068 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7070 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7071 register_ptrace_addr(). Fix all callers.
7073 2003-05-21 Andreas Schwab <schwab@suse.de>
7075 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7077 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7079 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7080 (_initialize_m68k_linux_tdep): New function.
7081 (m68k_linux_frame_saved_pc): Make static.
7082 (m68k_linux_extract_return_value): Likewise.
7083 (m68k_linux_store_return_value): Likewise.
7084 (m68k_linux_extract_struct_value_address): Likewise.
7085 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7087 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7088 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7089 (DEPRECATED_FRAME_SAVED_PC): Remove.
7091 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7093 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7094 regset numbering rather than our own.
7096 2003-05-19 David Carlton <carlton@bactrian.org>
7098 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7100 2003-05-19 David Carlton <carlton@bactrian.org>
7102 Partial fix for PR c++/827.
7103 * cp-support.h: Include symtab.h.
7104 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7105 * cp-namespace.c: Update contributors.
7106 (cp_lookup_symbol_nonlocal): New.
7107 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7108 (lookup_symbol_file): Ditto.
7109 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7110 * block.h: Declare block_scope, block_using, block_global_block.
7111 * block.c (block_scope): New.
7112 (block_using, block_global_block): Ditto.
7113 * Makefile.in (cp_support_h): Depend on symtab_h.
7114 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7116 2003-05-19 David Carlton <carlton@bactrian.org>
7118 * language.h (struct language_defn): Add 'la_value_of_this'
7119 and 'la_lookup_symbol_nonlocal' members.
7120 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7121 lookup_symbol_static, lookup_symbol_global,
7122 lookup_symbol_aux_block.
7123 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7124 if we should search fields of this and how to do static/global
7126 (lookup_symbol_aux_block): Make extern.
7127 (basic_lookup_symbol_nonlocal): New.
7128 (lookup_symbol_static, lookup_symbol_global): Ditto.
7129 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7130 'la_lookup_symbol_nonlocal' members.
7131 * c-lang.c (c_language_defn, cplus_language_defn)
7132 (asm_language_defn, minimal_language_defn): Ditto.
7133 * jv-lang.c (java_language_defn): Ditto.
7134 * language.c (unknown_language_defn, auto_language_defn)
7135 (local_language_defn): Ditto.
7136 * m2-lang.c (m2_language_defn): Ditto.
7137 * objc-lang.c (objc_language_defn): Ditto.
7138 * scm-lang.c (scm_language_defn): Ditto.
7139 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7140 * p-lang.c (pascal_language_defn): Ditto for both.
7141 * Makefile.in (f-lang.o): Depend on value_h.
7144 2003-05-19 David Carlton <carlton@bactrian.org>
7146 * block.h: Declare block_static_block.
7147 * block.c (block_static_block): New.
7148 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7149 lookup_symbol_aux_local, calling block_static_block instead.
7150 (lookup_symbol_aux_local): Delete 'static_block' argument.
7152 2003-05-19 David Carlton <carlton@bactrian.org>
7154 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7156 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7158 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7159 register numbers mapping.
7161 2003-05-18 Adam Fedor <fedor@gnu.org>
7163 * symtab.c (completion_list_objc_symbol): New function.
7164 (make_symbol_completion_list): Use it to add ObjC symbols
7165 when looking though the list.
7166 (language_search_unquoted_string): New function.
7167 (make_file_symbol_completion_list): Use it.
7169 2003-05-18 Andreas Schwab <schwab@suse.de>
7171 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7173 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7174 as m68k_linux_extract_return_value.
7175 (DEPRECATED_STORE_RETURN_VALUE): Define as
7176 m68k_linux_store_return_value.
7177 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7178 m68k_linux_extract_struct_value_address.
7179 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7180 get_next_frame, get_frame_base, get_frame_pc.
7181 (m68k_linux_frame_saved_pc): Use get_frame_base.
7182 (m68k_linux_extract_return_value): New function.
7183 (m68k_linux_store_return_value): New function.
7184 (m68k_linux_extract_struct_value_address): New function.
7185 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7187 * c-exp.y (typebase): Remove duplicate occurence of
7188 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7189 of lookup_signed_typename.
7191 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7193 * dwarf2loc.c (find_location_expression): Change type of second
7194 argument to `size_t *'.
7195 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7198 2003-05-18 David Carlton <carlton@bactrian.org>
7200 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7201 'linkage_name'. Add comment.
7202 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7204 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7205 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7206 (lookup_block_symbol): Ditto.
7208 2003-05-16 Andrew Cagney <cagney@redhat.com>
7210 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7211 * gdbarch.h, gdbarch.c: Re-generate.
7212 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7213 * TODO (REGISTER_BYTES): Delete reference.
7214 * alpha-tdep.c (alpha_gdbarch_init): Update.
7215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7216 * x86-64-tdep.c (x86_64_init_abi): Update.
7217 * vax-tdep.c (vax_gdbarch_init): Update.
7218 * v850-tdep.c (v850_gdbarch_init): Update.
7219 * sparc-tdep.c (sparc_gdbarch_init): Update.
7220 * sh-tdep.c (sh_gdbarch_init): Update.
7221 * s390-tdep.c (s390_gdbarch_init): Update.
7222 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7223 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7224 (ns32k_gdbarch_init_32382): Update.
7225 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7226 * mcore-tdep.c (mcore_gdbarch_init): Update.
7227 * m68k-tdep.c (m68k_gdbarch_init): Update.
7228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7229 * ia64-tdep.c (ia64_gdbarch_init): Update.
7230 * i386-tdep.c (i386_gdbarch_init): Update.
7231 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7232 * hppa-tdep.c (hppa_gdbarch_init): Update.
7233 * h8300-tdep.c (h8300_gdbarch_init): Update.
7234 * frv-tdep.c (frv_gdbarch_init): Update.
7235 * cris-tdep.c (cris_gdbarch_init): Update.
7236 * avr-tdep.c (avr_gdbarch_init): Update.
7237 * arm-tdep.c (arm_gdbarch_init): Update.
7238 * sparc-tdep.c (sparc_pop_frame): Update.
7239 * rs6000-tdep.c (rs6000_pop_frame): Update.
7240 * remote.c (init_remote_state): Update.
7241 (remote_prepare_to_store): Update.
7242 * remote-vx.c (vx_prepare_to_store): Update.
7243 * remote-sds.c (sds_fetch_registers): Update.
7244 (sds_prepare_to_store): Update.
7245 * remote-array.c: Update.
7246 * regcache.c (init_legacy_regcache_descr): Update.
7247 (init_regcache_descr): Update.
7248 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7249 (mips_o64_extract_return_value): Update.
7250 * irix5-nat.c (fetch_core_registers): Update.
7251 * irix4-nat.c (fetch_core_registers): Update.
7252 * i386-tdep.h: Update.
7253 * hppa-tdep.c (pa_do_registers_info): Update.
7254 (pa_do_strcat_registers_info): Update.
7255 * cris-tdep.c (cris_register_bytes_ok): Update.
7256 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7257 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7258 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7259 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7260 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7261 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7262 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7263 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7264 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7265 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7266 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7267 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7268 (REGISTER_BYTES_OK): Update.
7269 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7270 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7272 2003-05-16 Ian Lance Taylor <ian@airs.com>
7274 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7275 (vax_print_insn, print_insn_arg): Remove static functions.
7276 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7277 print_insn_vax from opcodes library.
7278 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7280 2003-05-15 Andrew Cagney <cagney@redhat.com>
7282 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7283 * target.h (memory_breakpoint_from_pc): Delete declaration.
7284 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7285 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7286 * monitor.c (monitor_insert_breakpoint): Use
7287 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7288 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7289 * gdbarch.h, gdbarch.c: Re-generate.
7290 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7291 (sparc_gdbarch_init): Set breakpoint_from_pc to
7292 sparc_breakpoint_from_pc.
7293 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7294 (BREAKPOINT_FROM_PC): Define.
7295 (sparc_breakpoint_from_pc): Declare.
7296 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7297 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7298 (BREAKPOINT_FROM_PC): Define.
7299 (BREAKPOINT): Delete macro.
7300 * target.h: Update comment.
7301 * s390-tdep.c (s390_gdbarch_init): Update comments.
7302 * remote.c: Update comments.
7303 * remote-mips.c: Update comments.
7304 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7305 * mem-break.c: Update comment.
7306 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7307 (ia64_memory_insert_breakpoint): Update.
7308 * config/sparc/tm-sparc.h: Update comment.
7309 * config/pa/tm-hppa64.h: Update comment.
7310 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7311 (rs6000_breakpoint_from_pc): Update.
7312 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7313 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7314 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7315 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7316 (mips_breakpoint_from_pc): Update.
7317 (mips_dump_tdep): Update.
7319 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7320 * minsyms.c (lookup_minimal_symbol): Inline
7321 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7323 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7324 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7325 * p-lang.c (pascal_printstr): Ditto.
7326 * objc-lang.c (objc_printstr): Ditto.
7327 * m2-lang.c (m2_printstr): Ditto.
7328 * jv-valprint.c (java_print_value_fields): Ditto.
7329 * f-lang.c (f_printstr): Ditto.
7330 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7331 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7332 for repeat_count_threshold.
7333 * Makefile.in (cp-valprint.o): Update dependencies.
7335 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7337 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7338 (examine_prologue): Support looking through leaf functions, knowing
7339 they start with mov r2,r12. Support skipping over indirect stores
7340 of the input registers. Upon hitting a non-nop branch instruction
7341 or predicated instruction, bail out by setting lim_pc to the current
7342 pc value in the loop. At the end, if the lim_pc value is still
7343 beyond our calculated value and we have trust_limit set,
7344 use the lim_pc value.
7346 2003-05-15 Andrew Cagney <cagney@redhat.com>
7348 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7349 generic_find_dummy_frame.
7350 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7351 (deprecated_generic_find_dummy_frame): Update.
7352 (deprecated_read_register_dummy): Update.
7353 * frame.c (deprecated_generic_get_saved_register): Update.
7355 2003-05-15 Theodore A. Roth <troth@openavr.org>
7357 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7358 (avr_gdbarch_init): Set breakpoint_from_pc method.
7360 2003-05-15 Andrew Cagney <cagney@redhat.com>
7362 * regcache.c (build_regcache): Set deprecated_register_valid
7364 (deprecated_grub_regcache_for_register_valid): Delete function.
7365 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7368 2003-05-15 David Carlton <carlton@bactrian.org>
7370 Committed by Elena Zannoni <ezannoni@redhat.com>
7371 * symtab.c (lookup_symbol_aux): Delete calls to
7372 lookup_symbol_aux_minsyms.
7373 (lookup_symbol_aux_minsyms): Comment out function and
7374 prototype. Delete lookup by mangled name.
7376 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7378 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7379 correctly indicate an empty stack and ``stack_allocated'' to the
7380 indicate the number of elements initially allocated.
7381 (dwarf_expr_grow_stack): Simplify method for computing new
7382 stack size. Don't loop infinitely if ``stack_len'' is zero.
7383 (execute_stack_op): Move ``ctx->in_reg'' initialization
7384 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7385 be used in conjuction with DW_OP_piece. Revise error message
7388 2003-05-14 Theodore A. Roth <troth@openavr.org>
7390 * MAINTAINERS: Update my email address.
7391 * avr-tdep.c: Ditto.
7393 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7395 * symtab.h (enum domain_enum): Rename from namespace_enum.
7396 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7397 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7398 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7399 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7400 TYPES_NAMESPACE, METHODS_NAMESPACE.
7401 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7402 (struct symbol, struct partial_symbol): Rename field
7403 'namespace_enum namespace' to 'domain_enum domain'.
7404 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7405 Delete old define kludge for namespace.
7407 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7408 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7409 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7410 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7411 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7412 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7413 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7414 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7415 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7416 occurrences of the above.
7418 2003-05-14 Ian Lance Taylor <ian@airs.com>
7420 * Makefile.in (install-only): Use $(SHELL) when running
7423 2003-05-13 Ian Lance Taylor <ian@airs.com>
7425 * MAINTAINERS (write after approval): Add myself.
7427 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7428 second and third arguments.
7429 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7430 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7432 2003-05-13 Andrew Cagney <cagney@redhat.com>
7434 * defs.h (store_address): Delete declaration.
7435 findvar.c (store_address): Delete function.
7436 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7437 store_unsigned_integer.
7438 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7439 * v850-tdep.c (v850_push_arguments): Ditto.
7440 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7441 * sh-tdep.c (sh64_get_saved_register): Ditto.
7442 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7443 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7444 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7445 (mips_get_saved_register): Ditto.
7446 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7447 (find_func_descr, ia64_push_arguments): Ditto.
7448 * i386-tdep.c (i386_push_arguments): Ditto.
7449 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7450 * frv-tdep.c (frv_push_arguments): Ditto.
7451 * frame.c (legacy_saved_regs_prev_register): Ditto.
7452 (deprecated_generic_get_saved_register): Ditto.
7453 * findvar.c (unsigned_address_to_pointer): Ditto.
7454 * dwarf2read.c (dwarf2_const_value): Ditto.
7455 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7456 * alpha-tdep.c (alpha_push_arguments): Ditto.
7458 2003-05-12 J. Brobecker <brobecker@gnat.com>
7460 * NEWS: Mention that the hppa-hpux port has been partially
7461 multiarched (32bit ABIT only, so far).
7463 2003-05-11 Andrew Cagney <cagney@redhat.com>
7465 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7466 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7467 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7468 sim/testsuite/sim/arm/misaligned2.ms, and
7469 sim/testsuite/sim/arm/misaligned3.ms.
7470 * disasm.h (struct ui_file): Add opaque struct declaration.
7471 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7472 * frame.h (struct ui_file): Ditto.
7474 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7476 * value.h: Pretty print.
7478 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7480 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7482 2003-05-08 Andrew Cagney <cagney@redhat.com>
7484 * regcache.h (max_register_size): Delete declaration.
7485 * regcache.c (max_register_size): Delete function.
7486 (struct regcache_descr): Delete field "max_register_size".
7487 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7488 registers fit in MAX_REGISTER_SIZE.
7489 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7490 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7491 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7492 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7493 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7494 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7495 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7496 * dve3900-rom.c, hppa-tdep.c: Ditto.
7498 2003-05-08 David Carlton <carlton@math.stanford.edu>
7500 * valops.c (push_word): Fix typo.
7502 2003-05-08 Andrew Cagney <cagney@redhat.com>
7504 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7505 * gdbarch.h: Re-generate.
7506 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7507 (legacy_max_register_raw_size): Delete declaration.
7508 * regcache.c (legacy_max_register_raw_size): Delete function.
7509 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7510 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7511 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7512 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7513 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7514 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7515 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7516 * findvar.c, dwarf2cfi.c: Ditto.
7518 2003-05-08 Andrew Cagney <cagney@redhat.com>
7520 * mips-tdep.c (read_signed_register): New function, moved to here
7522 (read_signed_register_pid): Ditto.
7523 * regcache.c (read_signed_register_pid): Delete function, moved to
7525 (read_signed_register): Ditto.
7526 * regcache.h (read_signed_register): Delete declaration.
7527 (read_signed_register_pid): Delete declaration.
7529 2003-05-08 Andrew Cagney <cagney@redhat.com>
7531 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7532 * gdbarch.h: Re-generate.
7533 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7534 (legacy_max_register_virtual_size): Delete declaration.
7535 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7536 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7537 * tracepoint.c (memrange_sortmerge): Ditto.
7538 * sparc-tdep.c (sparc_print_registers): Ditto.
7539 * regcache.c (legacy_max_register_virtual_size): Delete function.
7541 2002-05-08 J. Brobecker <brobecker@gnat.com>
7543 * fork-child.c (escape_bang_in_quoted_argument): New function.
7544 (fork_inferior): Escape '!' characters in quoted arguments
7547 2003-05-08 J. Brobecker <brobecker@gnat.com>
7549 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7550 the language of the CU is not currently supported by GDB.
7552 2003-05-08 J. Brobecker <brobecker@gnat.com>
7554 * defs.h (language): Add language_minimal enum value.
7555 * c-lang.c (minimal_language_defn): New language definition.
7556 (_initialize_c_language): Add the new minimal language to the list
7557 of languages known to GDB.
7559 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7561 * frame.c (get_frame_type): Don't attempt to lazily initialize
7562 frame's unwinder for legacy frames.
7564 2003-05-07 Andrew Cagney <cagney@redhat.com>
7566 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7567 and "regcache" parameters.
7568 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7570 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7572 * dwarf2read.c (dwarf_decode_lines): Only use output of
7573 check_cu_functions() when calling record_line(). Do not update
7574 the current address.
7576 2003-05-07 Andrew Cagney <cagney@redhat.com>
7578 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7581 2003-05-07 Jim Blandy <jimb@redhat.com>
7583 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7584 'maint info symtabs' and 'maint info psymtabs'.
7585 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7586 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7587 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7588 Declarations updated.
7589 * maint.c (maintenance_list_command): Delete.
7590 (_initialize_maint_cmds): Update calls to add_cmd.
7591 * gdbcmd.h (maintenancelistlist): Delete declaration.
7592 * cli/cli-cmds.c (maintenancelistlist): Delete.
7593 (init_cmd_lists): Don't initialize it.
7594 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7596 2003-05-07 Andrew Cagney <cagney@redhat.com>
7598 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7600 (d10v_print_registers_info): Update.
7601 (d10v_dmap_register, d10v_imap_register): Delete functions.
7602 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7603 and "imap_register".
7604 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7605 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7606 * arch-utils.c (generic_remote_translate_xfer_address): Add
7607 "regcache" and "gdbarch" parameters.
7608 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7609 parameter. Change class to multi-arch.
7610 * gdbarch.h, gdbarch.c: Re-generate.
7611 * remote.c (remote_xfer_memory): Use
7612 gdbarch_remote_translate_xfer_address.
7614 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7616 * infrun.c (prev_pc): Move declaration ahead of proceed().
7617 (proceed): Refresh prev_pc value before resuming.
7618 (stop_stepping): Remove code to refresh prev_pc.
7620 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7622 * nto-tdep.c: Removed stray comment.
7624 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7626 * i386-nto-tdep.c: Fix old K&R function definitions.
7627 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7628 Also change add_show_from_set() call to add_setshow_cmd().
7629 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7631 2003-05-05 Andrew Cagney <cagney@redhat.com>
7633 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7634 (fprint_dummy_frames): New function.
7635 (maintenance_print_dummy_frames): New function.
7636 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7637 * frame.c (fprint_frame_id): Make global.
7638 * frame.h (fprint_frame_id): Declare.
7639 * Makefile.in (dummy-frame.o): Update dependencies.
7641 2003-05-05 Andrew Cagney <cagney@redhat.com>
7643 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7644 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7645 SIZEOF_CALL_DUMMY_WORDS.
7646 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7647 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7648 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7649 CALL_DUMMY_BREAKPOINT_OFFSET.
7650 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7651 CALL_DUMMY_START_OFFSET.
7652 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7653 * gdbarch.h, gdbarch.c: Re-generate.
7654 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7655 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7656 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7657 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7658 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7659 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7660 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7661 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7662 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7663 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7664 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7665 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7666 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7667 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7668 * config/sparc/tm-sparc.h: Update.
7670 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7672 * configure.tgt: Add i[3456]86-*-nto*.
7673 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7674 * nto-tdep.c: New file. Neutrino target support routines.
7675 * nto-tdep.h: New file. Neutrino target header.
7676 * config/tm-qnxnto.h: New file.
7677 * config/i386/i386nto.mt: New file.
7678 * config/i386/tm-i386nto.h: New file.
7680 2003-05-04 Andrew Cagney <cagney@redhat.com>
7682 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7683 (load_infrun_state): Ditto.
7684 (struct thread_info): Drop "prev_func_name" field.
7685 * thread.c (load_infrun_state): Update.
7686 (save_infrun_state): Update.
7687 * infrun.c (prev_func_name): Delete variable.
7688 (init_wait_for_inferior): Do not clear prev_func_name.
7689 (stop_stepping, keep_going, context_switch): Do not swap
7691 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7692 instead of PC_IN_SIGTRAMP.
7694 2003-05-04 Andrew Cagney <cagney@redhat.com>
7696 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7697 REGISTER_BYTE with register_offset_hack.
7698 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7699 that REGISTER_BYTE is consistent with the regcache.
7700 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7701 * gdbarch.h, gdbarch.c: Regenerate.
7703 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7705 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7706 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7708 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7710 2003-05-03 J. Brobecker <brobecker@gnat.com>
7712 From Thierry Schneider <tpschneider1@yahoo.com>
7713 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7714 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7715 (mi-cmd-symbol.o): Add rule.
7717 2003-05-03 Andrew Cagney <cagney@redhat.com>
7719 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7720 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7721 * gdbarch.h, gdbarch.c: Re-generate.
7722 * d10v-tdep.c (d10v_push_dummy_code): New function.
7723 (d10v_gdbarch_init): Set push_dummy_code.
7724 * infcall.c (legacy_push_dummy_code): New function.
7725 (generic_push_dummy_code): New function.
7726 (push_dummy_code): New function.
7727 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7728 instead of dummy_addr, to push_dummy_call. Move call to
7729 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7731 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7733 2003-05-03 Andrew Cagney <cagney@redhat.com>
7735 * disasm.h (print_insn): Declare.
7736 * disasm.c (init_gdb_disassemble_info): New function.
7737 (gdb_disassembly): Call init_gdb_disassemble_info.
7738 (gdb_print_insn): New function.
7739 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7740 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7741 * mcore-tdep.c: Include "disasm.h"
7742 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7743 * d10v-tdep.c: Include "disasm.h".
7744 (display_trace): Call gdb_print_insn, instead of print_insn.
7745 (print_insn): Delete function.
7746 * printcmd.c: Include "disasm.h".
7747 (print_insn): Delete function.
7748 (print_formatted): Call gdb_print_insn, instead of print_insn.
7749 * Makefile.in (printcmd.o): Update dependencies.
7750 (mcore-tdep.o, d10v-tdep.o): Ditto.
7752 2003-05-02 Andrew Cagney <cagney@redhat.com>
7754 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7755 PC_REGNUM, re-indent.
7756 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7757 PC_REGNUM isn't set.
7759 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7760 * gdbarch.h, gdbarch.c: Re-generate.
7761 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7762 register_virtual_size, pc_regnum, or register_bytes.
7763 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7764 (d10v_register_type): Use D10V_PC_REGNUM.
7765 (d10v_print_registers_info, d10v_read_pc): Ditto.
7766 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7767 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7769 2003-05-02 David Carlton <carlton@bactrian.org>
7771 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7772 the name with mstrsave.
7774 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7776 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7777 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7778 (host_charset_name, target_charset_name): New vars for use by
7780 (host_charset_enum, target_charset_enum): New enums for set/show
7782 (set_charset_sfunc, set_host_charset_sfunc,
7783 set_target_charset_sfunc): New functions.
7784 (set_host_charset, set_target_charset): Make static.
7785 (list_charsets, set_host_charset_command,
7786 set_target_charset_command): Delete functions.
7787 (show_charset_command): Rewrite as....
7788 (show_charset): Hook this up with the set/show command mechanism.
7789 (_initialize_charset): Change names of charsets to match the
7790 set/show enums. Use host_charset_name and target_charset_name.
7791 Use set/show mechanism for charset, host-charset, target-charset
7792 commands. Do not make 'show host-charset' and 'show
7793 target-charset' be aliases of 'show charset'.
7795 * charset.h (set_host_charset, set_target_charset): Don't export,
7796 they are not used outside the file.
7798 2003-05-01 Andrew Cagney <cagney@redhat.com>
7800 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7801 (gdb_disassembly): Make "di" non static, always initialize and
7802 cleanup. Always use dis_asm_read_memory.
7803 (gdb_dis_asm_read_memory): Delete function.
7805 2003-05-01 Andrew Cagney <cagney@redhat.com>
7807 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7808 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7810 2003-04-30 Andrew Cagney <cagney@redhat.com>
7812 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7813 "tm_print_insn_info".
7814 (TARGET_PRINT_INSN_INFO): Delete macro.
7815 (dis_asm_read_memory): Delete function declaration.
7816 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7817 (tm_print_insn_info): Delete variable definition.
7818 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7819 * gdbarch.h, gdbarch.c: Re-generate.
7820 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7821 "deprecated_tm_print_insn_info".
7822 * mcore-tdep.c (mcore_dump_insn): Ditto.
7823 * mips-tdep.c (mips_gdbarch_init): Ditto.
7824 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7825 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7826 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7827 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7828 instead of TARGET_PRINT_INSN_INFO, add comment.
7829 * s390-tdep.c (s390_get_frame_info): Instead of
7830 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7831 (s390_check_function_end, s390_is_sigreturn): Ditto.
7832 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7833 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7834 * disasm.c: Include "gdbcore.h".
7835 (_initialize_disasm): New function, initialize
7836 "deprecated_tm_print_insn_info".
7837 (deprecated_tm_print_insn_info): New variable.
7838 (dis_asm_read_memory): Moved from "corefile.c", made static.
7839 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7840 * Makefile.in (disasm.o): Update dependencies.
7842 2003-04-30 Andrew Cagney <cagney@redhat.com>
7844 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7846 2003-04-29 Adam Fedor <fedor@gnu.org>
7848 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7849 * infcall.c (find_function_addr): Make non-static.
7850 * infcall.h (find_function_addr): Declare.
7851 * Makefile.in (eval.o): Update dependencies.
7853 2003-04-28 Adam Fedor <fedor@gnu.org>
7855 * symtab.c (symbol_find_demangled_name): Check for and demangle
7857 (symbol_init_demangled_name): Init for language_objc as well.
7859 2003-04-28 Andrew Cagney <cagney@redhat.com>
7861 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7862 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7863 * gdbarch.h, gdbarch.c: Re-generate.
7864 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7865 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7866 * inferior.h (deprecated_read_fp): Rename read_fp.
7867 (generic_target_read_fp): Delete declaration.
7868 * regcache.c (generic_target_read_fp): Delete function.
7869 (deprecated_read_fp): Replace read_fp, use
7870 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7871 * d10v-tdep.c (d10v_read_fp): Delete function.
7872 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7874 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7875 deprecated_target_read_fp to generic_target_read_fp.
7876 * sh-tdep.c (sh_gdbarch_init): Ditto.
7877 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7879 * frv-tdep.c (frv_gdbarch_init): Ditto.
7881 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7882 deprecated_fp_regnum.
7883 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7884 * vax-tdep.c (vax_gdbarch_init): Ditto.
7885 * v850-tdep.c (v850_gdbarch_init): Ditto.
7886 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7887 * sh-tdep.c (sh_gdbarch_init): Ditto.
7888 * s390-tdep.c (s390_gdbarch_init): Ditto.
7889 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7890 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7891 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7892 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7894 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7895 * i386-tdep.c (i386_gdbarch_init): Ditto.
7896 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7897 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7898 * frv-tdep.c (frv_gdbarch_init): Ditto.
7899 * cris-tdep.c (cris_gdbarch_init): Ditto.
7900 * avr-tdep.c (avr_gdbarch_init): Ditto.
7901 * arm-tdep.c (arm_gdbarch_init): Ditto.
7902 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7904 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7905 * v850-tdep.c (v850_gdbarch_init): Ditto.
7906 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7907 * sh-tdep.c (sh_gdbarch_init): Ditto.
7908 * s390-tdep.c (s390_gdbarch_init): Ditto.
7909 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7910 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7911 * mips-tdep.c (mips_gdbarch_init): Ditto.
7912 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7913 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7914 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7915 * frv-tdep.c (frv_gdbarch_init): Ditto.
7916 * avr-tdep.c (avr_gdbarch_init): Ditto.
7917 * arm-tdep.c (arm_gdbarch_init): Ditto.
7919 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7920 DEPRECATED_FP_REGNUM.
7921 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7922 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7923 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7924 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7925 (sparc32_register_virtual_type): Ditto.
7926 * sh-tdep.c (sh64_frame_chain): Ditto.
7927 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7928 (sh_nofp_frame_init_saved_regs): Ditto.
7929 (sh64_nofp_frame_init_saved_regs): Ditto.
7930 (sh_fp_frame_init_saved_regs): Ditto.
7931 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7932 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7933 * procfs.c (procfs_fetch_registers): Ditto.
7934 (procfs_store_registers): Ditto.
7935 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7936 (store_inferior_registers, fetch_core_registers): Ditto.
7937 (fetch_kcore_registers, clear_regs): Ditto.
7938 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7939 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7940 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7941 * nlm/i386.c (do_status): Ditto.
7942 * mipsv4-nat.c (supply_gregset): Ditto.
7943 * mips-tdep.c: Ditto for comments.
7944 * mips-nat.c (fetch_inferior_registers): Ditto.
7945 (store_inferior_registers, fetch_core_registers): Ditto.
7946 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7947 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7948 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7949 (i386_do_pop_frame, i386_register_type): Ditto.
7950 * hppa-tdep.c (hppa_frame_chain): Ditto.
7951 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7952 (hppa_pop_frame, hppa_read_fp): Ditto.
7953 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7954 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7955 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7956 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7957 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7958 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7959 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7960 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7961 * blockframe.c: Ditto for comments.
7962 * arch-utils.h: Ditto for comments.
7963 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7964 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7965 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7966 * alpha-tdep.h: Ditto for comments.
7967 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7968 (alpha_cannot_store_register): Ditto.
7969 (alpha_push_dummy_frame): Ditto.
7970 * alpha-nat.c (supply_gregset): Ditto.
7972 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7973 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7974 * config/sparc/tm-sparc.h: Update comment.
7976 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7977 deprecated_read_fp instead of TARGET_READ_FP.
7978 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7979 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7980 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7981 deprecated_read_fp instead of read_fp.
7982 * s390-tdep.c (s390_push_arguments): Ditto.
7983 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7984 * frame.h: Ditto in comments.
7985 * frame.c (legacy_get_prev_frame): Ditto.
7986 * dummy-frame.c (dummy_frame_this_id): Ditto.
7987 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7989 2003-04-28 Andrew Cagney <cagney@redhat.com>
7991 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7992 * gdbarch.h, gdbarch.c: Re-generate.
7993 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7994 * vax-tdep.c (_initialize_vax_tdep): Update.
7995 * v850-tdep.c (_initialize_v850_tdep): Update.
7996 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7997 * s390-tdep.c (_initialize_s390_tdep): Update.
7998 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7999 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
8000 * mips-tdep.c (_initialize_mips_tdep): Update.
8001 * mcore-tdep.c (_initialize_mcore_tdep): Update.
8002 * m68k-tdep.c (_initialize_m68k_tdep): Update.
8003 * ia64-tdep.c (_initialize_ia64_tdep): Update.
8004 * hppa-tdep.c (_initialize_hppa_tdep): Update.
8005 * h8300-tdep.c (_initialize_h8300_tdep): Update.
8006 * frv-tdep.c (_initialize_frv_tdep): Update.
8007 * cris-tdep.c (cris_delayed_get_disassembler): Update.
8008 (_initialize_cris_tdep): Update.
8009 * arch-utils.c (legacy_print_insn): Update.
8010 * alpha-tdep.c (_initialize_alpha_tdep): Update.
8012 2003-04-26 Adam Fedor <fedor@gnu.org>
8014 * linespec.c (decode_objc): New function to decode ObjC calls
8015 (decode_line_1): Check for ObjC calls (using decode_objc)
8016 * Makefile (linespec.o): Update dependencies.
8018 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
8020 * breakpoint.h (struct breakpoint_ops): New.
8021 (struct breakpoint): Add ops member.
8023 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
8024 (mention): Use new breakpoint ops member.
8025 (set_raw_breakpoint): Initialize ops field to NULL.
8026 (print_exception_catchpoint, print_one_exception_catchpoint)
8027 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
8028 (gnu_v3_exception_catchpoint_ops): New.
8029 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
8031 2003-04-25 Adam Fedor <fedor@gnu.org>
8033 * Makefile.in (COMMON_OBS): Add objc-lang.o
8035 2003-04-25 Andrew Cagney <cagney@redhat.com>
8037 * d10v-tdep.c (print_insn): Delete function.
8038 (display_trace): Use TARGET_PRINT_INSN.
8039 (_initialize_d10v_tdep): Do not set tm_print_insn.
8040 (d10v_gdbarch_init): Set print_insn.
8042 2003-04-25 Andrew Cagney <cagney@redhat.com>
8044 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
8045 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
8046 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
8047 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
8048 (nr_dmap_regs, a0_regnum): ... new functions.
8049 (d10v_print_registers_info): Use a0_regnum, use register_size.
8050 (d10v_register_byte): Delete function.
8051 (d10v_register_raw_size): Delete function.
8052 (d10v_register_type): Use a0_regnum.
8053 (d10v_print_registers_info): Use a0_regnum.
8054 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
8055 (d10v_gdbarch_init): Do not set register_byte or
8056 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
8057 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
8059 (trace_command): Use XCALLOC.
8060 (print_insn): Delete reference to tm_print_insn.
8061 (saved_regs_unwinder): Use store_unsigned_integer instead of
8063 * frame.h (FRAME_OBSTACK_CALLOC): Define
8065 2003-04-25 David Carlton <carlton@bactrian.org>
8067 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8069 2003-04-24 Adam Fedor <fedor@gnu.org>
8071 * objc-lang.c: Include "valprint.h"
8072 * Makefile.in (objc-lang.o): Update dependencies.
8074 2003-04-24 Adam Fedor <fedor@gnu.org>
8076 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8077 architecture dependant compilation and mark as unimplemented
8078 (until they get put in the gdbarch vector).
8080 2003-04-23 David Carlton <carlton@bactrian.org>
8082 * cp-support.c (cp_find_first_component): Accept 'operator' in
8085 2003-04-23 Andrew Cagney <cagney@redhat.com>
8087 * infcall.c (call_function_by_hand): Eliminate redundant
8088 indentation. Move "saved_async" and "old_cleanups" to where they
8091 2003-04-23 Andrew Cagney <cagney@redhat.com>
8093 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8094 and "buffer". Move the "name" code to where it is needed.
8096 2003-04-23 Andrew Cagney <cagney@redhat.com>
8098 * infcall.c (call_function_by_hand): Move variables "start_sp",
8099 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8100 code to ON_STACK switch branch.
8102 2003-04-23 Andrew Cagney <cagney@redhat.com>
8104 * infcall.c (call_function_by_hand): Make declaration of "i",
8105 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8108 2003-04-23 Andrew Cagney <cagney@redhat.com>
8110 * infcall.c (call_function_by_hand): Delete variable
8111 "n_method_args". Localize "param_type"'s declaration to the loop
8112 that it is used. Reinstate code assigning to said variable -
8113 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8114 Rationalize code using "param_type".
8116 2003-04-22 Andrew Cagney <cagney@redhat.com>
8118 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8119 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8120 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8121 to DEPRECATED_PUSH_RETURN_ADDRESS.
8123 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8125 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8126 on the DWARF2 register number prior to fetching a register.
8128 2003-04-22 J. Brobecker <brobecker@gnat.com>
8130 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8131 Update all the tests using SOFT_FLOAT considering the fact that
8132 this macro was always set to 0.
8133 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8134 considering the fact that this macro was always set to 0.
8135 * hppa-tdep.h (hppa_store_return_value): Likewise.
8136 (hppa_extract_return_value): Likewise.
8138 2003-04-22 J. Brobecker <brobecker@gnat.com>
8140 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8141 the hppa-pro target only.
8143 2003-04-21 J. Brobecker <brobecker@gnat.com>
8145 Ongoing multi-arch conversion effort for HP/UX:
8146 * config/pa/tm-hppa.h: Move all macro that are no longer
8147 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8148 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8150 2003-04-21 J. Brobecker <brobecker@gnat.com>
8152 * config/pa/tm-hppa.h: Obsolete a section that was only used
8155 2003-04-21 J. Brobecker <brobecker@gnat.com>
8157 Ongoing multi-arch conversion for HP/UX.
8158 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8159 if already defined (allows hppa64 to stay non-multiarched for now).
8160 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8162 2003-04-21 Andrew Cagney <cagney@redhat.com>
8164 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8166 2003-04-21 Andrew Cagney <cagney@redhat.com>
8168 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8169 "i386_num_mmx_regs".
8171 2003-04-21 Andrew Cagney <cagney@redhat.com>
8173 * infcall.c: New file.
8174 * infcall.h: New file.
8175 * valarith.c: Include "infcall.h".
8176 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8177 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8178 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8179 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8180 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8181 (SFILES): Add "infcall.c"
8182 (COMMON_OBS): Add "infcall.o".
8183 (infcall.o): Specify dependencies.
8184 * value.h (call_function_by_hand): Delete declaration.
8185 * inferior.h (run_stack_dummy): Delete declaration.
8186 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8187 (run_stack_dummy): Move to "infcall.c", merged into
8188 call_function_by_hand.
8189 * valops.c (call_function_by_hand): Moved to "infcall.c".
8190 (find_function_addr, value_arg_coerce): Ditto.
8191 (unwindonsignal_p, coerce_float_to_double): Ditto.
8192 (_initialize_valops): Move "set/show coerce-float-to-double", and
8193 "set/show unwindonsignal" commands to "infcall.c".
8194 * v850-tdep.c, target.h: Update comments.
8195 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8196 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8197 (sh64_init_extra_frame_info): Update comments.
8198 * mn10300-tdep.c: Update comments.
8199 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8200 * config/sparc/tm-sparc.h: Update comments.
8201 * breakpoint.h: Update comments.
8202 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8203 * arm-tdep.c: Update comment.
8205 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8207 * i386-tdep.c (i386_num_register_names): New variable.
8208 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8209 (MM0_REGNUM): Remove redundant parentheses in define.
8210 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8211 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8212 i386_mxcsr_regnum_p): Remove redundant parentheses.
8213 (i386_register_name): Use i386_num_register_names.
8215 * i386-tdep.c (i386_extract_return_value,
8216 i386_store_return_value): Correct check for availability of
8217 floating-point registers.
8219 * i386-tdep.c (i386_frame_num_args): Remove function.
8220 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8222 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8223 mmx_regnum_to_fp_regnum. Adjust all callers.
8225 * i386-tdep.c (i386_get_longjmp_target): Use
8226 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8227 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8230 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8232 * core-regset.c: Update comments to reflect reality. Re-order
8234 (fetch_core_registers): Use switch instead of if. Remove
8235 redundant prototype.
8237 2003-04-18 Jim Blandy <jimb@redhat.com>
8239 * s390-tdep.c (s390_frame_align): New function.
8240 (s390_gdbarch_init): Register it with the gdbarch object.
8242 2003-04-17 Richard Henderson <rth@redhat.com>
8244 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8246 2003-04-17 Michael Snyder <msnyder@redhat.com>
8247 Karen Bennet <bennet@redhat.com>
8249 Committed by Elena Zannoni <ezannoni@redhat.com>
8250 * gdb_gcore.sh: New script to create a core dump of a process.
8252 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8254 * values.c (value_being_returned): Don't fetch the return
8255 value if the return type is void.
8257 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8259 * thread-db.c: Reindented.
8261 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8263 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8264 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8291 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8293 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8294 the size of ``long double'' to 16, instead of 8.
8296 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8298 * i386-linux-nat.c: Add some whitespace to make things more
8300 (fetch_register, store_register, fetch_inferior_registers,
8301 store_inferior_registers): Get rid of assignment in if-statement.
8302 (store_register): Fix typo in error message.
8304 2003-04-16 Andrew Cagney <cagney@redhat.com>
8306 * utils.c (xmmalloc): Always allocate something, matches
8307 libiberty/xmalloc's semantics.
8308 (xmrealloc, xmcalloc): Ditto.
8310 2003-04-16 Andrew Cagney <cagney@redhat.com>
8312 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8314 (get_frame_type): Initialize unwind and type when needed.
8315 (get_frame_id, frame_register_unwind): Ditto.
8317 2003-04-16 Andrew Cagney <cagney@redhat.com>
8319 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8321 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8322 * sparcl-stub.c: Obsolete file.
8323 * config/sparc/tm-sparclet.h: Obsolete file.
8324 * sparclet-stub.c: Obsolete file.
8325 * sparclet-rom.c: Obsolete file.
8326 * sparcl-tdep.c: Obsolete file.
8327 * config/sparc/tm-sparclite.h: Obsolete file.
8328 * config/sparc/sparclite.mt: Obsolete file.
8329 * config/sparc/sparclet.mt: Obsolete file.
8330 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8331 sparc86x-*-* obsolete.
8333 2003-04-15 David Carlton <carlton@math.stanford.edu>
8335 * Makefile.in (SFILES): Add cp-namespace.c.
8336 (COMMON_OBS): Add cp-namespace.o.
8337 (block.o): Depend on gdb_obstack_h and cp_support_h.
8338 (buildsym.o): Depend on cp_support_h.
8339 (cp-namespace.o): New.
8340 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8341 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8342 (dwarf2read.o): Depend on cp_support_h.
8343 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8344 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8345 processing_current_namespace.
8346 (read_namespace): Update processing_current_namespace; check for
8347 anonymous namespaces.
8348 (dwarf2_name): New function.
8349 (dwarf2_extension): Ditto.
8350 * cp-support.h: Update copyright, contributors.
8351 Add inclusion guards.
8352 Add opaque declaration for structs obstack, block, symbol.
8353 (struct using_direct): New struct.
8354 Add declarations for cp_find_first_component,
8355 cp_entire_prefix_len, processing_has_namespace_info,
8356 processing_current_namespace, cp_is_anonymous,
8357 cp_add_using_directive, cp_initialize_namespace,
8358 cp_finalize_namespace, cp_set_block_scope,
8359 cp_scan_for_anonymous_namespaces.
8360 * cp-namespace.c: New file.
8361 * cp-support.c: Update copyright.
8362 Include ctype.h, gdb_assert.h, gdbcmd.h.
8363 New variable maint_cplus_cmd_list.
8364 (cp_find_first_component): New function.
8365 (cp_entire_prefix_len, maint_cplus_command)
8366 (first_component_command, _initialize_cp_support): Ditto.
8367 * buildsym.c: Include cp-support.h.
8368 New variable using_list.
8369 (add_symbol_to_list): Check for anonymous namespaces.
8370 (finish_block): Set block's scope.
8371 (start_symtab): Initialize C++ namespace support.
8372 (end_symtab): Finalize C++ namespace support.
8373 * block.h: Add opaque declarations for structs
8374 block_namespace_info, using_direct, and obstack.
8375 Add declarations for block_set_scope and block_set_using.
8376 (struct block): Add 'language_specific' member.
8377 (BLOCK_NAMESPACE): New macro.
8378 * block.c: Include gdb_obstack.h and cp-support.h.
8379 (struct block_namespace_info): New struct.
8380 (block_set_scope): New function.
8381 (block_set_using, block_initialize_namespace): Ditto.
8383 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8385 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8386 (locate_base): Return early if there aren't any link map offsets.
8387 (svr4_solib_create_inferior_hook): Warn if shared library support
8390 2003-04-14 David Carlton <carlton@math.stanford.edu>
8392 * symtab.c (symbol_set_names): Add prefix when storing Java names
8393 in hash table. Fix for PR java/1039.
8395 2003-04-14 David Carlton <carlton@math.stanford.edu>
8397 * symtab.c (symbol_set_names): Rename 'name' arg to
8398 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8399 * symtab.h: Change 'name' argument in declaration of
8400 symbol_set_names to 'linkage_name'.
8401 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8403 2003-04-14 Andrew Cagney <cagney@redhat.com>
8405 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8406 return the fully sign-extended register value.
8407 (get_frame_pointer): Ditto.
8408 (mips_pop_frame): Initialize "proc_desc" after checking for a
8411 2003-04-14 Andrew Cagney <cagney@redhat.com>
8413 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8414 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8415 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8416 (mips_push_register): Delete function.
8417 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8420 2003-04-14 Jim Blandy <jimb@redhat.com>
8422 * symmisc.c: #include "gdb_regex.h".
8423 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8425 * maint.c (maintenance_list_command): New function.
8426 (_initialize_maint_cmds): Register the above as commands.
8427 * symtab.h (maintenance_list_symtabs,
8428 maintenance_list_psymtabs): New declarations.
8429 * cli/cli-cmds.c (maintenancelistlist): New variable.
8430 (init_cmd_lists): Initialize it.
8431 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8432 * gdbcmd.h (maintenancelistlist): New declaration.
8433 * Makefile.in (symmisc.o): Update dependencies.
8435 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8437 * s390-nat.c: Include asm/types.h for addr_t.
8439 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8441 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8442 actually incoming type.
8444 2003-04-13 Andrew Cagney <cagney@redhat.com>
8446 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8447 get_next_frame and get_frame_saved_regs.
8449 2003-04-13 Andrew Cagney <cagney@redhat.com>
8451 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8452 of gdbarch_num_regs.
8454 2003-04-13 Andrew Cagney <cagney@redhat.com>
8456 * frame.h: Mention what replaced what in "struct frame_info".
8457 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8458 deprecated_update_frame_base_hack and
8459 deprecated_update_frame_pc_hack.
8460 * hppa-tdep.c: Ditto.
8462 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8464 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8465 to read_reg and update its comment. Remove regnum member.
8466 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8467 Don't call read_reg when setting in_reg. Call read_reg to get
8468 the frame base if it's in a register. Return the register number
8469 on the stack instead of in the context. Remove extra arguments
8471 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8472 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8473 the register number on the expression stack.
8474 (needs_frame_read_reg): Remove extra arguments.
8476 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8478 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8480 (execute_stack_op): All callers updated.
8481 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8482 * dwarf2loc.c (find_location_expression): New function.
8483 (dwarf_expr_frame_base): Call it.
8484 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8485 (dwarf2_tracepoint_var_ref): New function, broken out from
8486 locexpr_tracepoint_var_ref.
8487 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8489 (loclist_read_variable, loclist_read_needs_frame): New functions.
8490 (loclist_describe_location, loclist_tracepoint_var_ref): New
8492 (dwarf2_loclist_funcs): New struct location_funcs.
8493 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8494 (struct dwarf2_locexpr_baton): Add comments.
8495 (dwarf2_loclist_funcs): New extern.
8496 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8497 base_address and base_known.
8498 (dwarf_loc_buffer): New variable.
8499 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8500 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8501 (dwarf2_has_info): Initialize dwarf_loc_offset.
8502 (dwarf2_build_psymtabs): Read in .debug_loc.
8503 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8505 (psymtab_to_symtab_1): Likewise. Move base address calculation
8507 (dwarf2_get_pc_bounds): ... here. Use the base address from
8509 (dwarf2_symbol_mark_computed): Handle location lists.
8511 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8513 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8514 if the linkage name demangled successfully.
8516 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8518 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8519 disassmbly_flavour): Removed.
8521 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8523 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8525 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8527 2003-04-12 Andrew Cagney <cagney@redhat.com>
8529 * frame.h (struct frame_info): Move definition from here ...
8530 * frame.c (struct frame_info): ... to here.
8532 2003-04-12 Andrew Cagney <cagney@redhat.com>
8534 * gdbthread.h (save_infrun_state): Delete parameter
8536 (struct thread_info): Delete field "prev_func_start".
8537 (load_infrun_state): Ditto.
8538 * thread.c (load_infrun_state, save_infrun_state): Update.
8539 * infrun.c (prev_func_start): Delete variable.
8540 (context_switch, init_wait_for_inferior): Update.
8541 (stop_stepping, keep_going): Update.
8543 2003-04-12 Andrew Cagney <cagney@redhat.com>
8545 * gdbarch.sh: Add missing opaque declarations.
8546 * gdbarch.h: Regnerate.
8547 * symtab.h: Add missing opaque declarations.
8548 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8549 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8550 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8551 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8552 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8553 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8554 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8555 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8556 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8557 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8558 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8559 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8560 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8562 2003-04-11 Andrew Cagney <cagney@redhat.com>
8564 * frame.c (get_frame_id): Return this frame's "id".
8565 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8567 (legacy_saved_regs_this_id): Replace function body with
8569 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8570 FRAME_OBSTACK_ZALLOC.
8571 (create_new_frame): Mark the frame ID as valid.
8573 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8575 * Makefile.in (libbfd_h): Added missing setting.
8576 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8577 according to the selected ABI.
8579 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8581 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8583 2003-04-11 Andrew Cagney <cagney@redhat.com>
8585 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8586 SAVED_PC_AFTER_CALL.
8587 * gdbarch.h, gdbarch.c: Regenerate.
8588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8589 * x86-64-tdep.c (x86_64_init_abi): Update.
8590 * vax-tdep.c (vax_gdbarch_init): Update.
8591 * v850-tdep.c (v850_gdbarch_init): Update.
8592 * sparc-tdep.c (sparc_gdbarch_init): Update.
8593 * sh-tdep.c (sh_gdbarch_init): Update.
8594 * s390-tdep.c (s390_gdbarch_init): Update.
8595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8596 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8597 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8598 * mips-tdep.c (mips_gdbarch_init): Update.
8599 * mcore-tdep.c (mcore_gdbarch_init): Update.
8600 * m68k-tdep.c (m68k_gdbarch_init): Update.
8601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8602 * ia64-tdep.c (ia64_gdbarch_init): Update.
8603 (ia64_saved_pc_after_call): Update declaration.
8604 * i386ly-tdep.c (i386lynx_init_abi): Update.
8605 * i386-tdep.c (i386_gdbarch_init): Update.
8606 * hppa-tdep.c (hppa_gdbarch_init): Update.
8607 * h8300-tdep.c (h8300_gdbarch_init): Update.
8608 * frv-tdep.c (frv_gdbarch_init): Update.
8609 * cris-tdep.c (cris_gdbarch_init): Update.
8610 * avr-tdep.c (avr_gdbarch_init): Update.
8611 * arm-tdep.c (arm_gdbarch_init): Update.
8612 * alpha-tdep.c (alpha_gdbarch_init): Update.
8613 * ns32knbsd-nat.c (frame_num_args): Update.
8614 * ns32k-tdep.c (umax_frame_num_args): Update.
8615 * mips-tdep.c (mips_init_frame_pc_first): Update.
8616 * infrun.c (step_over_function): Update.
8617 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8618 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8619 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8620 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8621 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8622 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8623 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8624 * arch-utils.c (init_frame_pc_default): Update.
8625 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8626 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8629 2003-04-11 Andrew Cagney <cagney@redhat.com>
8631 * i387-tdep.c: Update copyright.
8632 (i387_to_double): Delete function.
8633 (double_to_i387): Delete function.
8635 2003-04-10 Andrew Cagney <cagney@redhat.com>
8637 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8638 frame's function's address. Simplify.
8639 (d10v_frame_unwind_cache): Check that the frame's function is
8642 2003-04-10 Jim Blandy <jimb@redhat.com>
8644 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8645 call to set_gdbarch_deprecated_push_arguments.
8647 2003-04-10 Andrew Cagney <cagney@redhat.com>
8649 * frame.c (fprint_frame_id): New function.
8650 (fprint_frame_type, fprint_frame): New function.
8651 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8652 (create_sentinel_frame, get_frame_id): Ditto.
8653 (frame_id_p, frame_id_eq): Ditto.
8654 (frame_id_inner, create_new_frame): Ditto.
8655 (legacy_get_prev_frame, get_prev_frame): Ditto.
8656 (deprecated_update_frame_pc_hack): Ditto.
8657 (frame_register_unwind): Ditto.
8658 (deprecated_update_frame_base_hack): Ditto.
8660 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8662 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8663 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8664 frame_chain function.
8665 * Makefile.in: Add dependencies due to above change.
8667 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8669 * blockframe.c (legacy_frame_chain_valid): Move call to
8670 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8673 2003-04-09 Andrew Cagney <cagney@redhat.com>
8675 * frame.h (struct frame_id): Replace "pc" and "base" with
8676 "stack_addr" and "code_addr". Update comments.
8677 (frame_id_build): Update parameter names and comment.
8678 (struct frame_info): Replace "id_p" and "id" with "this_id".
8679 * dummy-frame.c (dummy_frame_this_id): Update.
8680 * breakpoint.c (print_one_breakpoint): Update.
8681 * frame.c (get_frame_id): Update.
8682 (get_frame_base, frame_id_build): Update.
8683 (create_sentinel_frame, legacy_get_prev_frame): Update.
8684 (deprecated_update_frame_base_hack): Update.
8685 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8686 (frame_id_inner): Ditto.
8688 2003-04-09 Andrew Cagney <cagney@redhat.com>
8690 * defs.h (gdb_print_host_address): Make "addr" parameter a
8692 * utils.c (gdb_print_host_address): Update.
8694 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8696 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8697 register number for R0 is 0.
8699 2003-04-09 J. Brobecker <brobecker@gnat.com>
8701 * frame.h (struct gdbarch): Add opaque structure definition
8702 to avoid a compilation warning on LynxOS 4.0.
8704 2003-04-09 Andrew Cagney <cagney@redhat.com>
8706 * frame.h (struct frame_info): Delete field "pc". Replace
8707 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8709 * frame.c (frame_pc_unwind): Update.
8710 (create_sentinel_frame): Do not set "pc".
8711 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8712 (get_frame_pc): Call frame_pc_unwind.
8713 (deprecated_update_frame_pc_hack): Update.
8714 (create_new_frame): Use "pc" not "->pc".
8716 2003-04-09 Andrew Cagney <cagney@redhat.com>
8718 * frame.c (get_frame_id): Eliminate code updating "frame".
8719 (legacy_get_prev_frame): Ditto.
8720 (get_frame_base): Return id.base directly.
8721 (deprecated_update_frame_base_hack): Update "id.base".
8722 * frame.h (struct frame_info): Delete field "frame".
8724 2003-04-09 Andrew Cagney <cagney@redhat.com>
8726 * NEWS: Mention that the "Sequent family" is obsolete.
8727 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8728 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8729 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8730 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8731 * config/i386/tm-ptx4.h: Obsolete file.
8732 * config/i386/tm-ptx.h: Obsolete file.
8733 * symm-tdep.c: Obsolete file.
8734 * config/i386/symmetry.mt: Obsolete file.
8735 * config/i386/tm-symmetry.h: Obsolete file.
8736 * symm-nat.c: Obsolete file.
8737 * config/i386/nm-symmetry.h: Obsolete file.
8738 * config/i386/xm-symmetry.h: Obsolete file.
8739 * config/i386/symmetry.mh: Obsolete file.
8740 * config/i386/nm-ptx4.h: Obsolete file.
8741 * config/i386/ptx4.mh: Obsolete file.
8742 * config/i386/ptx.mt: Obsolete file.
8743 * config/i386/ptx.mh: Obsolete file.
8744 * config/i386/xm-ptx4.h: Obsolete file.
8745 * config/i386/xm-ptx.h: Obsolete file.
8747 2003-04-09 Andrew Cagney <cagney@redhat.com>
8749 Obsolete mips*-*-mach3*.
8750 * NEWS: Mention that mips*-*-mach3* is obsolete.
8751 * m3-nat.c: Obsolete file.
8752 * config/nm-m3.h: Obsolete file.
8753 * config/mips/tm-mipsm3.h: Obsolete file.
8754 * config/mips/mipsm3.mt: Obsolete file.
8755 * config/mips/mipsm3.mh: Obsolete file.
8756 * config/mips/xm-mipsm3.h: Obsolete file.
8757 * mipsm3-nat.c: Obsolete file.
8758 * configure.host: Obsolete mips-dec-mach3*.
8759 * configure.tgt: Obsolete mips*-*-mach3*.
8761 2003-04-09 Andrew Cagney <cagney@redhat.com>
8763 * doublest.h: Update copyright.
8764 (deprecated_store_floating, deprecated_extract_floating): Rename
8765 store_floating and extract_floating. Update comments.
8766 * doublest.c: Update copyright.
8767 (extract_floating_by_length): Replace extract_floating.
8768 (store_floating_by_length): Replace store_floating.
8769 (deprecated_extract_floating): New function.
8770 (deprecated_store_floating): New function.
8771 (extract_typed_floating): Call extract_floating_by_length.
8772 (store_typed_floating): Call store_floating_by_length.
8773 * x86-64-tdep.c (x86_64_store_return_value): Update.
8774 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8775 (sh64_extract_return_value): Update.
8776 (sh_sh4_register_convert_to_virtual): Update.
8777 (sh_sh64_register_convert_to_virtual): Update.
8778 (sh_sh4_register_convert_to_raw): Update.
8779 (sh_sh64_register_convert_to_raw): Update.
8780 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8781 (rs6000_register_convert_to_raw): Update.
8782 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8783 (ia64_register_convert_to_raw): Update.
8784 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8785 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8786 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8787 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8788 (alpha_register_convert_to_raw): Update.
8790 2003-04-08 Andrew Cagney <cagney@redhat.com>
8792 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8793 * gdbarch.h, gdbarch.c: Re-generate.
8794 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8795 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8796 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8797 conditionally, use frame_pc_unwind as an alternative. Add
8799 * arch-utils.c (init_frame_pc_default): Only call
8800 SAVED_PC_AFTER_CALL when available.
8802 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8804 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8805 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8806 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8807 (start_remote): Ditto.
8808 (handle_inferior_event): Ditto.
8809 (save_inferior_status): Ditto.
8810 (restore_inferior_status): Ditto.
8811 * infcmd.c (attach_command): Ditto.
8812 * fork-child.c (startup_inferior): Ditto.
8813 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8814 * alpha-tdep.c (heuristic_proc_start): Ditto.
8815 * mips-tdep.c (heuristic_proc_start): Ditto.
8816 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8817 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8818 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8819 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8820 * remote-vx.c (vx_create_inferior): Ditto.
8822 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8824 * infrun.c (stop_soon_quietly): Make it an enum, to better
8825 override the default behavior of handle_inferior_event.
8826 (clear_proceed_status): Update uses of stop_soon_quietly to
8827 reflect that it is now an enum.
8828 (start_remote): Ditto.
8829 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8830 is set to handle the new GNU/Linux kernel behavior for
8831 attach/sigstop. Update uses of stop_soon_quietly.
8832 * inferior.h (enum stop_kind): New enum.
8833 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8834 Reset normal handle_inferior_event behavior, afterwards.
8835 * fork-child.c (startup_inferior): Update.
8836 * alpha-tdep.c (heuristic_proc_start): Update.
8837 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8838 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8839 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8840 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8841 * remote-vx.c (vx_create_inferior): Update.
8842 * mips-tdep.c (heuristic_proc_start): Update.
8844 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8846 * disasm.c (dump_insns): Move variables inside loop, or they will
8847 be freed more than once, causing wild memory corruptions.
8848 (gdb_disassembly): Look for the substring "-thread",
8849 instead of "-threads" in the target name, to make sure to find
8850 the 'multi-thread' target. Also, make sure we do the right thing
8851 with the "core" target.
8853 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8855 * mips-tdep.c (mips_print_fp_register): New function, created from
8856 do_fp_register_row(). Registers are now (also) printed as hex.
8857 Only one register is printed per row.
8858 (mips_print_register, do_fp_register_row): Print floating point
8859 registers with mips_print_fp_register().
8861 2003-04-06 Andrew Cagney <cagney@redhat.com>
8863 * valprint.h (inspect_it): Add extern declaration.
8864 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8865 (selectors_info, classes_info): Ditto.
8866 (find_objc_msgcall): Fix indentation.
8867 (objc_printstr): Delete extern declarations.
8869 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8871 2003-04-06 Andrew Cagney <cagney@redhat.com>
8873 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8875 * frame.c (legacy_saved_regs_this_id): Update.
8876 (legacy_get_prev_frame): Update.
8877 * xstormy16-tdep.c: Update comment.
8878 * sparc-tdep.c (sparc_frame_chain): Update comment.
8879 * blockframe.c (legacy_frame_chain_valid): Update.
8881 2003-04-06 Andrew Cagney <cagney@redhat.com>
8883 * valprint.c (val_print_type_code_int): Delete #ifdef
8884 PRINT_TYPELESS_INTEGER code.
8886 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8887 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8888 multi-arch definition.
8889 * gdbarch.h: Re-generate.
8891 2003-04-05 Andrew Cagney <cagney@redhat.com>
8893 Eliminate FRAME_FIND_SAVED_REGS.
8894 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8895 Change FSR parameter to a pointer.
8896 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8897 Assume FSR parameter is a pointer.
8898 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8900 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8901 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8902 saved_regs a pointer.
8903 (hppa_frame_saved_pc): Ditto.
8904 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8905 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8907 (restore_pc_queue): Make fsr a pointer.
8908 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8909 (hppa_frame_chain): Make saved_regs a pointer, call
8910 hppa_frame_init_saved_regs.
8911 * sparc-tdep.c: Include "gdb_assert.h".
8912 (sparc_frame_find_saved_regs): Replace internal_error with
8914 * remote-vxsparc.c (vx_read_register): Delete reference to
8915 FRAME_FIND_SAVED_REGS.
8916 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8917 * gdbarch.h: Regenerate.
8918 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8919 (deprecated_get_frame_saved_regs): Delete declaration.
8920 (struct frame_saved_regs): Delete definition.
8921 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8922 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8923 (hppa_frame_find_saved_regs): Delete declaration.
8924 (FRAME_FIND_SAVED_REGS): Delete macro.
8925 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8926 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8927 FRAME_FIND_SAVED_REGS in comment.
8929 2003-04-05 Andrew Cagney <cagney@redhat.com>
8931 * frame.c (frame_func_unwind, get_frame_func): New functions.
8932 * frame.h (get_frame_func, frame_func_unwind): Declare.
8933 (struct frame_info): Add field "prev_func" for caching the
8934 previous frame's function address.
8935 * arm-tdep.c (arm_frameless_function_invocation): Combine
8936 get_pc_function_start and get_frame_pc into get_frame_func.
8937 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8938 (sh64_nofp_frame_init_saved_regs): Ditto.
8939 * s390-tdep.c (s390_function_start): Ditto.
8940 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8941 (rs6000_frameless_function_invocation): Ditto.
8942 (rs6000_frame_saved_pc): Ditto.
8943 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8944 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8945 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8946 (i386_frame_init_saved_regs): Ditto.
8947 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8948 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8949 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8950 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8951 * blockframe.c (frameless_look_for_prologue): Ditto.
8953 2003-04-05 Andrew Cagney <cagney@redhat.com>
8955 * frame.c (legacy_get_prev_frame): Link prev to next at the
8956 function start. Update comments.
8958 2003-04-05 Andrew Cagney <cagney@redhat.com>
8960 * frame.c (get_frame_id): Update comment.
8961 (legacy_get_prev_frame): Update comment.
8962 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8963 * gdbarch.h: Regenerate.
8964 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8965 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8967 2003-04-05 Andrew Cagney <cagney@redhat.com>
8969 * stack.c (print_frame_info): Use get_frame_pc.
8971 2003-04-04 Andrew Cagney <cagney@redhat.com>
8973 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8974 the frame's type from the unwinder.
8975 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8976 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8977 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8978 (get_frame_base_address): Use get_frame_type.
8979 (get_frame_locals_address, get_frame_args_address): Ditto.
8980 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8981 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8982 (struct frame_info): Add comment explaining why the frame contains
8984 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8985 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8986 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8988 * frame-unwind.h: Include "frame.h".
8989 (struct frame_unwind): Add "type" field.
8990 * Makefile.in (frame_unwind_h): Add $(frame_h).
8992 2003-04-04 Andrew Cagney <cagney@redhat.com>
8994 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8995 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8996 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8998 (d10v_unwind_dummy_id): Use frame_id_build.
8999 * frame.c (find_frame_sal): Use get_frame_pc.
9000 (create_new_frame): Use deprecated_update_frame_pc_hack and
9001 deprecated_update_frame_base_hack.
9002 (create_sentinel_frame): Add comment about ->pc going away.
9003 (get_prev_frame): Add comment about ->pc going away.
9004 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
9005 frame_id_build, deprecated_update_frame_pc_hack and
9006 deprecated_update_frame_base_hack.
9007 (select_frame): Use get_frame_pc.
9008 (legacy_saved_regs_this_id): Use frame_id_build.
9010 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
9012 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
9013 signed integer case.
9014 (classify_argument): Handle enumerations and references.
9016 2003-04-04 Andrew Cagney <cagney@redhat.com>
9018 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
9021 2003-04-01 Adam Fedor <fedor@gnu.org>
9023 * gdb/objc-lang.c (selectors_info): Replace calls to
9024 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
9025 SYMBOL_NATURAL_NAME.
9026 (classes_info, find_methods): Likewise.
9028 2003-04-03 Kevin Buettner <kevinb@redhat.com>
9030 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
9031 ``mach'' to the value determined by bfd_default_set_arch_mach().
9033 2003-04-02 Bob Rossi <bob_rossi@cox.net>
9035 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
9036 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
9037 (mi-cmd-file.o): Update dependencies.
9039 2003-04-01 Kevin Buettner <kevinb@redhat.com>
9041 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
9042 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
9044 2003-04-01 Adam Fedor <fedor@gnu.org>
9046 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
9047 * language.h (struct language_defn): Add la_demangle.
9048 (language_demangle): Declare.
9049 * language.c (language_demangle): New function.
9050 (unk_lang_demangle): Likewise.
9051 (unknown_language_defn, auto_language_defn, local_language_defn):
9052 Add ukn_lang_demangle.
9053 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
9054 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9055 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
9056 (cplus_language_defn): Add cplus_demangle for la_demangle element.
9057 * jv-lang.c (java_demangle): New function
9058 (java_language_defn): Use it for la_demangle element.
9059 * objc-lang.c (objc_demangle): Add options argument
9060 (objc_language_defn): Use objc_demangle for la_demangle element.
9061 * maint.c (maintenance_demangle): Replace switch with
9062 call to language_demangle.
9063 * utils.c (fprintf_symbol_filtered): Likewise.
9065 2003-04-01 Andrew Cagney <cagney@redhat.com>
9067 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9068 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9069 PRINT_TYPELESS_INTEGER.
9070 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9071 PUSH_RETURN_ADDRESS.
9073 2003-04-01 Andrew Cagney <cagney@redhat.com>
9075 * Makefile.in (d10v-tdep.o): Update dependencies.
9076 * d10v-tdep.c: Include "frame-base.h".
9077 (d10v_frame_unwind): Make constant.
9078 (d10v_frame_base_address): New function.
9079 (d10v_frame_base): New variable.
9080 (d10v_gdbarch_init): Set frame_base default.
9081 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9083 (d10v_frame_unwind_cache): Set and use "prev_sp".
9084 (d10v_frame_this_id): Use the previous frame's inner most stack
9085 address and this frame's func address for the frame ID. Use
9086 frame_id_build. Don't analyze beyond the current instruction.
9088 2003-04-01 Andrew Cagney <cagney@redhat.com>
9090 * frame.h (get_frame_locals_address, get_frame_args_address):
9091 Refer to the base address, instead of the address of the first
9094 2003-04-01 Andrew Cagney <cagney@redhat.com>
9096 Add frame debug info addresses:
9097 * frame-base.c: New file.
9098 * frame-base.h: New file.
9099 * frame.h (struct frame_base): Add opaque declaration.
9100 (get_frame_base): Update comment.
9101 (get_frame_base_address): Declare.
9102 (get_frame_locals_address): Declare.
9103 (get_frame_args_address): Declare.
9104 (struct frame_info): Add "base" and "base_cache". Update
9105 comments on the unwinder.
9106 * frame.c: Include "frame-base.h".
9107 (get_frame_locals_address): New function.
9108 (get_frame_base_address): New function.
9109 (get_frame_args_address): New function.
9110 * findvar.c (read_var_value): Use get_frame_locals_address and
9111 get_frame_args_address.
9112 * stack.c (frame_info): Use get_frame_locals_address and
9113 get_frame_args_address.
9114 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9115 moved to "frame-base.c".
9116 * printcmd.c (print_frame_nameless_args): Ditto.
9117 * symtab.h (address_class): Update comments.
9118 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9119 get_frame_base_address.
9120 * dwarf2expr.c (execute_stack_op): Ditto.
9121 * Makefile.in (frame_base_h): Define.
9122 (frame.o): Update dependencies.
9123 (frame-base.o): Add dependencies.
9124 (SFILES): Add frame-base.c.
9125 (COMMON_OBS): Add frame-base.o.
9127 2003-04-01 Andrew Cagney <cagney@redhat.com>
9129 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9130 CALL_DUMMY_LENGTH): Ditto.
9131 * gdbarch.c: Re-generate.
9132 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9133 (CALL_DUMMY_LENGTH): Delete macro.
9134 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9135 * arm-tdep.c (arm_gdbarch_init): Ditto.
9136 * avr-tdep.c (avr_gdbarch_init): Ditto.
9137 * cris-tdep.c (cris_gdbarch_init): Ditto.
9138 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9139 * frv-tdep.c (frv_gdbarch_init): Ditto.
9140 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9141 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9142 * i386-tdep.c (i386_gdbarch_init): Ditto.
9143 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9144 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9145 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9146 * mips-tdep.c (mips_gdbarch_init): Ditto.
9147 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9148 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9149 * s390-tdep.c (s390_gdbarch_init): Ditto.
9150 * sh-tdep.c (sh_gdbarch_init): Ditto.
9151 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9152 * v850-tdep.c (v850_gdbarch_init): Ditto.
9153 * vax-tdep.c (vax_gdbarch_init): Ditto.
9154 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9156 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9158 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9160 2003-04-01 Andrew Cagney <cagney@redhat.com>
9162 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9163 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9164 * gdbarch.h, gdbarch.c: Re-generate.
9165 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9166 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9167 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9168 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9169 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9170 * infcmd.c (run_stack_dummy): Simplify assuming
9171 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9172 * infrun.c (handle_inferior_event): Ditto.
9173 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9174 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9175 * arm-tdep.c (arm_gdbarch_init): Ditto.
9176 * avr-tdep.c (avr_gdbarch_init): Ditto.
9177 * cris-tdep.c (cris_gdbarch_init): Ditto.
9178 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9179 * frv-tdep.c (frv_gdbarch_init): Ditto.
9180 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9181 * i386-tdep.c (i386_gdbarch_init): Ditto.
9182 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9184 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9185 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9186 * mips-tdep.c (mips_gdbarch_init): Ditto.
9187 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9188 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9189 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9190 * s390-tdep.c (s390_gdbarch_init): Ditto.
9191 * sh-tdep.c (sh_gdbarch_init): Ditto.
9192 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9193 * v850-tdep.c (v850_gdbarch_init): Ditto.
9194 * vax-tdep.c (vax_gdbarch_init): Ditto.
9195 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9197 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9199 * symfile.c (symfile_relocate_debug_section): Update call to
9200 bfd_simple_get_relocated_section_contents.
9202 2003-03-31 Andrew Cagney <cagney@redhat.com>
9204 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9205 * gdbarch.h, gdbarch.c: Regenerate.
9206 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9207 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9209 * frame.h (generic_fix_call_dummy): Delete declaration.
9210 * dummy-frame.h: Update comment.
9211 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9212 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9214 * sh-tdep.c (sh_gdbarch_init): Ditto.
9215 * s390-tdep.c (s390_gdbarch_init): Ditto.
9216 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9217 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9219 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9220 * i386-tdep.c (i386_gdbarch_init): Ditto.
9221 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9222 * frv-tdep.c (frv_gdbarch_init): Ditto.
9223 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9224 * cris-tdep.c (cris_gdbarch_init): Ditto.
9225 * avr-tdep.c (avr_gdbarch_init): Ditto.
9226 * arm-tdep.c (arm_gdbarch_init): Ditto.
9228 2003-03-31 J. Brobecker <brobecker@gnat.com>
9230 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9231 (INIT_FRAME_AP): Likewise.
9232 (EXTRA_FRAME_INFO): Likewise.
9234 2003-03-31 Andrew Cagney <cagney@redhat.com>
9236 * gdbarch.sh: Include "symfile.h".
9237 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9238 * gdbarch.h, gdbarch.c: Re-generate.
9239 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9240 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9241 call_dummy_address, the default is at entry_point_address.
9242 * v850-tdep.c (v850_gdbarch_init): Ditto.
9243 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9244 * sh-tdep.c (sh_gdbarch_init): Ditto.
9245 * s390-tdep.c (s390_gdbarch_init): Ditto.
9246 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9247 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9248 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9249 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9250 * i386-tdep.c (i386_gdbarch_init): Ditto.
9251 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9252 * frv-tdep.c (frv_gdbarch_init): Ditto.
9253 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9254 * cris-tdep.c (cris_gdbarch_init): Ditto.
9255 * arm-tdep.c (arm_gdbarch_init): Ditto.
9257 2003-03-31 Andrew Cagney <cagney@redhat.com>
9259 * gdbarch.sh (CALL_DUMMY_P): Delete.
9260 * gdbarch.h, gdbarch.c: Re-generate.
9261 * inferior.h (CALL_DUMMY_P): Delete macro.
9262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9263 * vax-tdep.c (vax_gdbarch_init): Update.
9264 * v850-tdep.c (v850_gdbarch_init): Update.
9265 * sparc-tdep.c (sparc_gdbarch_init): Update.
9266 * sh-tdep.c (sh_gdbarch_init): Update.
9267 * s390-tdep.c (s390_gdbarch_init): Update.
9268 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9269 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9270 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9271 * mips-tdep.c (mips_gdbarch_init): Update.
9272 * mcore-tdep.c (mcore_gdbarch_init): Update.
9273 * m68k-tdep.c (m68k_gdbarch_init): Update.
9274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9275 * ia64-tdep.c (ia64_gdbarch_init): Update.
9276 * i386-tdep.c (i386_gdbarch_init): Update.
9277 * h8300-tdep.c (h8300_gdbarch_init): Update.
9278 * frv-tdep.c (frv_gdbarch_init): Update.
9279 * d10v-tdep.c (d10v_gdbarch_init): Update.
9280 * cris-tdep.c (cris_gdbarch_init): Update.
9281 * breakpoint.c (deprecated_frame_in_dummy): Update.
9282 * avr-tdep.c (avr_gdbarch_init): Update.
9283 * alpha-tdep.c (alpha_gdbarch_init): Update.
9284 * arm-tdep.c (arm_gdbarch_init): Update.
9285 * dummy-frame.c (dummy_frame_this_id): Update comments.
9286 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9287 * frame.c (legacy_get_prev_frame): Ditto.
9288 * valops.c (call_function_by_hand): Delete function.
9289 (hand_function_call): Rename to call_function_by_hand
9291 2003-03-30 Andrew Cagney <cagney@redhat.com>
9293 2002-11-10 Klee Dienes <kdienes@apple.com>
9294 * value.h (struct value): Update comment.
9296 2003-03-30 Andrew Cagney <cagney@redhat.com>
9298 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9300 (d10v_gdbarch_init): Do not set fp_regnum.
9302 * frame.c (get_frame_base): Force ID initialization.
9303 (get_prev_frame): Move computation of the frame ID from here ...
9304 (get_frame_id): ... to here.
9305 (legacy_get_prev_frame): Mark the frame ID as valid.
9306 * frame.h (struct frame_info): Add field "id_p".
9308 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9310 * i386-tdep.c (i386_store_struct_return): Removed.
9311 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9313 2003-03-30 Andrew Cagney <cagney@redhat.com>
9315 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9316 * gdbarch.h, gdbarch.c: Regenerate.
9317 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9318 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9319 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9320 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9321 * i386-tdep.c (i386_gdbarch_init): Ditto.
9322 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9323 * cris-tdep.c (cris_gdbarch_init): Ditto.
9324 * vax-tdep.c (vax_gdbarch_init): Ditto.
9325 * s390-tdep.c (s390_gdbarch_init): Ditto.
9326 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9327 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9328 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9329 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9330 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9331 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9332 * sparc-tdep.c (sparc_gdbarch_init): Update.
9333 * sh-tdep.c (sh_gdbarch_init): Update.
9334 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9335 * mips-tdep.c (mips_gdbarch_init): Update.
9336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9337 * ia64-tdep.c (ia64_gdbarch_init): Update.
9338 * frv-tdep.c (frv_gdbarch_init): Update.
9339 * avr-tdep.c (avr_gdbarch_init): Update.
9340 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9341 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9342 instead of when push_dummy_call is not available.
9344 2003-03-30 Andrew Cagney <cagney@redhat.com>
9346 * infttrace.c: Include "gdbthread.h".
9347 (parent_attach_all): Fix function signature.
9348 (call_ptrace): Update call.
9349 * Makefile.in (infttrace.o): Update dependencies.
9351 2003-03-30 Andrew Cagney <cagney@redhat.com>
9353 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9354 PUSH_RETURN_ADDRESS.
9355 * gdbarch.h, gdbarch.c: Regenerate.
9356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9357 * x86-64-tdep.c (x86_64_init_abi): Update.
9358 * v850-tdep.c (v850_gdbarch_init): Update.
9359 * sparc-tdep.c (sparc_gdbarch_init): Update.
9360 * sh-tdep.c (sh_gdbarch_init): Update.
9361 * s390-tdep.c (s390_gdbarch_init): Update.
9362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9363 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9364 * mips-tdep.c (mips_gdbarch_init): Update.
9365 * mcore-tdep.c (mcore_gdbarch_init): Update.
9366 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9367 * ia64-tdep.c (ia64_gdbarch_init): Update.
9368 * i386-tdep.c (i386_gdbarch_init): Update.
9369 * h8300-tdep.c (h8300_gdbarch_init): Update.
9370 * frv-tdep.c (frv_gdbarch_init): Update.
9371 * cris-tdep.c (cris_gdbarch_init): Update.
9372 * avr-tdep.c (avr_gdbarch_init): Update.
9373 * arm-tdep.c (arm_gdbarch_init): Update.
9374 * valops.c (hand_function_call): Update.
9376 2003-03-29 Andrew Cagney <cagney@redhat.com>
9378 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9379 sizeof_call_dummy_words.
9380 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9382 * gdbarch.h: Regenerate.
9384 2003-03-29 Andrew Cagney <cagney@redhat.com>
9386 * infttrace.h: New file.
9387 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9388 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9389 (hpread_read_doc_function_type): Detect an initialized type1.
9390 (hpread_quick_traverse): Initialize mod_name_string.
9391 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9392 (som_solib_get_solib_by_pc): Declare.
9393 (so_lib_thread_start_addr): Declare.
9394 (no_shared_libraries): Declare.
9395 * somread.c (init_import_symbols): Make static. Add forward
9397 * config/pa/nm-hppah.h: Include "infttrace.h" for
9399 (hppa_insert_hw_watchpoint): Declare.
9400 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9401 * hppah-nat.c: Include "gdb_string.h".
9402 (parent_attach_all): Delete extern declaration, moved to
9404 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9406 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9407 * Makefile.in (infttrace_h): Define.
9408 (hpread.o): Update dependencies.
9409 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9410 * hppa-hpux-tdep.c: Include "gdb_string.h".
9411 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9412 * infrun.c (handle_inferior_event): Always initialize
9413 stepped_after_stopped_by_watchpoint. Add default and remove
9414 fallthrough in switch statement.
9415 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9417 (hppa_remove_hw_watchpoint): Ditto.
9419 2003-03-29 Andrew Cagney <cagney@redhat.com>
9421 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9424 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9426 * arm-tdep.c (arm_push_arguments): Delete.
9427 (struct stack_item): New type.
9428 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9429 (arm_store_struct_return): Delte.
9430 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9431 arm_push_arguments or arm_store_struct_return.
9433 2003-03-28 Andrew Cagney <cagney@redhat.com>
9435 * Makefile.in (d10v-tdep.o): Update dependencies.
9436 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9437 * d10v-tdep.c: Include "remote.h".
9438 (target_resume_hook): Delete extern declaration.
9439 (target_wait_loop_hook): Ditto.
9440 (tdisassemble_command): Eliminate assignment in "if" conditional.
9441 (d10v_ts2_register_sim_regno): Eliminate call to
9442 legacy_register_sim_regno.
9443 (d10v_ts3_register_sim_regno): Ditto.
9445 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9447 * thread.c: Reindented.
9449 * linux-proc.c: Ditto.
9451 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9453 * MAINTAINERS (write after approval): Add myself.
9455 2003-03-27 Theodore A. Roth <troth@openavr.org>
9457 * objc-exp.y: Add missing semi-colons.
9459 2003-03-27 Andrew Cagney <cagney@redhat.com>
9461 * regcache.c (write_sp): Delete function and references.
9462 * inferior.h (write_sp): Delete declaration.
9463 * valops.c (hand_function_call): Replace write_sp with
9465 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9466 (sparc_pop_frame): Ditto.
9468 2003-03-27 Andrew Cagney <cagney@redhat.com>
9470 * NEWS: Mention removal of support for hppa*-*-bsd* and
9471 hppa*-*-osf* natives, and hppa*-*-pro* target.
9472 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9473 * config/pa/xm-pa.h: Obsolete file.
9474 * config/pa/xm-hppab.h: Obsolete file.
9475 * config/pa/nm-hppab.h: Obsolete file.
9476 * config/pa/tm-hppab.h: Obsolete file.
9477 * config/pa/tm-hppao.h: Obsolete file.
9478 * config/pa/nm-hppao.h: Obsolete file.
9479 * config/pa/tm-pro.h: Obsolete file.
9480 * config/pa/hppaosf.mt: Obsolete file.
9481 * config/pa/hppaosf.mh: Obsolete file.
9482 * config/pa/hppapro.mt: Obsolete file.
9483 * config/pa/hppabsd.mt: Obsolete file.
9484 * config/pa/hppabsd.mh: Obsolete file.
9485 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9486 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9489 2003-03-27 Andrew Cagney <cagney@redhat.com>
9491 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9492 push_arguments. Don't set push_return_address or write_sp.
9493 (d10v_push_dummy_call): Replace d10v_push_arguments.
9494 (d10v_push_return_address, d10v_write_sp): Delete function,
9495 handled by push_dummy_call.
9497 2003-03-26 Andrew Cagney <cagney@redhat.com>
9499 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9500 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9501 regcache and dummy_addr parameters.
9502 * gdbarch.h, gdbarch.c: Re-generate.
9503 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9504 available; assume it will handle stack alignment and return
9505 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9506 legacy_push_arguments.
9507 (legacy_push_arguments): Rename default_push_arguments.
9508 * value.h (legacy_push_arguments): Rename default_push_arguments.
9509 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9510 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9511 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9512 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9513 * config/i386/tm-symmetry.h: Update.
9514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9515 * x86-64-tdep.c (x86_64_init_abi): Update.
9516 * v850-tdep.c (v850_gdbarch_init): Update.
9517 * sparc-tdep.c (sparc_gdbarch_init): Update.
9518 * sh-tdep.c (sh_gdbarch_init): Update.
9519 * s390-tdep.c (s390_gdbarch_init): Update.
9520 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9521 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9522 * mips-tdep.c (mips_gdbarch_init): Update.
9523 * mcore-tdep.c (mcore_gdbarch_init): Update.
9524 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9525 * ia64-tdep.c (ia64_gdbarch_init): Update.
9526 * i386-tdep.c (i386_gdbarch_init): Update.
9527 * hppa-tdep.c (hppa_gdbarch_init): Update.
9528 * h8300-tdep.c (h8300_gdbarch_init): Update.
9529 * frv-tdep.c (frv_gdbarch_init): Update.
9530 * d10v-tdep.c (d10v_gdbarch_init): Update.
9531 * cris-tdep.c (cris_gdbarch_init): Update.
9532 * avr-tdep.c (avr_gdbarch_init): Update.
9533 * arm-tdep.c (arm_gdbarch_init): Update.
9534 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9535 * alpha-tdep.c (alpha_gdbarch_init): Update.
9537 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9539 * signals/signals.c (do_target_signal_to_host): Correct realtime
9542 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9544 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9545 (struct sal_chain, map_catch_names): Remove.
9546 (catch_exception_command_1): Don't call
9547 handle_gnu_4_16_catch_command.
9549 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9551 From Mark Dettinger <dettinge@de.ibm.com>:
9552 * dwarf2cfi.c (read_2u): Increment pointer by two.
9554 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9556 * signals/signals.c: Fix typos in last change.
9558 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9560 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9561 not already defined. Use __SIGRTMIN if available.
9562 (target_signal_from_host): Remove SIGRTMIN block.
9563 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9564 the signal is within the realtime range.
9566 2003-03-25 Adam Fedor <fedor@gnu.org>
9568 * Makefile.in (infrun.o): Add $(language_h)
9569 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9570 for language specific trampolines.
9571 * language.h (struct language_defn): Add skip_trampoline.
9572 (skip_language_trampoline): Declare.
9573 * language.c (unk_lang_trampoline, skip_language_trampoline):
9575 (unknown_language_defn, auto_language_defn, local_language_defn):
9576 Add ukn_lang_trampoline.
9577 * ada-lang.c (ada_language_defn): Add NULL for language
9578 specific skip_trampoline.
9579 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9580 scm-lang.c: Likewise.
9581 * objc-lang.c (objc_skip_trampoline): New function.
9582 (objc_language_defn): Add objc_skip_trampoline.
9584 2003-03-25 Andrew Cagney <cagney@redhat.com>
9586 * frame.c (get_prev_frame): Delay validating a frame's ID -
9587 non-NULL, didn't go backwards - until an attempt to unwind it to
9590 2003-03-25 Andrew Cagney <cagney@redhat.com>
9592 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9593 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9594 * gdbarch.h, gdbarch.c: Re-generate.
9595 * config/sparc/tm-sparc.h
9596 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9597 * sparc-tdep.c (sparc_gdbarch_init): Set
9598 deprecated_extra_stack_alignment_needed.
9599 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9600 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9601 extra_stack_alignment_needed.
9602 * v850-tdep.c (v850_gdbarch_init): Ditto.
9603 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9604 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9605 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9606 * cris-tdep.c (cris_gdbarch_init): Ditto.
9607 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9608 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9610 2003-03-25 Andrew Cagney <cagney@redhat.com>
9612 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9613 STORE_STRUCT_RETURN.
9614 * gdbarch.h, gdbarch.c: Regenerate.
9615 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9616 (d10v_push_arguments): Set the struct return register.
9617 (d10v_gdbarch_init): Update.
9618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9619 * x86-64-tdep.c (x86_64_init_abi): Update.
9620 * vax-tdep.c (vax_gdbarch_init): Update.
9621 * v850-tdep.c (v850_gdbarch_init): Update.
9622 * sparc-tdep.c (sparc_gdbarch_init): Update.
9623 * sh-tdep.c (sh_gdbarch_init): Update.
9624 * s390-tdep.c (s390_gdbarch_init): Update.
9625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9626 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9627 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9628 * mips-tdep.c (mips_gdbarch_init): Update.
9629 * mcore-tdep.c (mcore_gdbarch_init): Update.
9630 * m68k-tdep.c (m68k_gdbarch_init): Update.
9631 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9632 * ia64-tdep.c (ia64_gdbarch_init): Update.
9633 * i386-tdep.c (i386_gdbarch_init): Update.
9634 * hppa-tdep.c (hppa_gdbarch_init): Update.
9635 * h8300-tdep.c (h8300_gdbarch_init): Update.
9636 * frv-tdep.c (frv_gdbarch_init): Update.
9637 * cris-tdep.c (cris_gdbarch_init): Update.
9638 * avr-tdep.c (avr_gdbarch_init): Update.
9639 * arm-tdep.c (arm_gdbarch_init): Update.
9640 * alpha-tdep.c (alpha_gdbarch_init): Update.
9642 2003-03-25 Andrew Cagney <cagney@redhat.com>
9644 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9645 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9646 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9647 * gdbarch.h, gdbarch.c: Regenerate.
9648 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9649 call_dummy_stack_adjust_p.
9650 * vax-tdep.c (vax_gdbarch_init): Ditto.
9651 * v850-tdep.c (v850_gdbarch_init): Ditto.
9652 * sh-tdep.c (sh_gdbarch_init): Ditto.
9653 * s390-tdep.c (s390_gdbarch_init): Ditto.
9654 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9655 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9656 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9657 * mips-tdep.c (mips_gdbarch_init): Ditto.
9658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9659 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9661 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9662 * i386-tdep.c (i386_gdbarch_init): Ditto.
9663 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9664 * frv-tdep.c (frv_gdbarch_init): Ditto.
9665 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9666 * cris-tdep.c (cris_gdbarch_init): Ditto.
9667 * avr-tdep.c (avr_gdbarch_init): Ditto.
9668 * arm-tdep.c (arm_gdbarch_init): Ditto.
9669 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9670 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9671 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9672 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9673 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9674 call_dummy_stack_adjust_p.
9675 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9676 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9677 * sparc-tdep.c (sparc32_push_arguments): Update.
9678 * valops.c (hand_function_call): Update.
9680 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9683 set_gdbarch_char_signed.
9685 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9688 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9690 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9692 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9693 (_initialize_arm_tdep): Don't set tm_print_insn.
9695 2003-03-24 Adam Fedor <fedor@gnu.org>
9697 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9698 * objc-lang.h: Add multiple inclusion protection.
9699 (start_msglist, add_msglist, end_msglist): Additional declarations.
9701 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9703 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9704 value was renamed to ARM_FLOAT_SOFT_FPA.
9706 2003-03-23 Andrew Cagney <cagney@redhat.com>
9708 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9709 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9710 * gdbarch.h, gdbarch.c: Regenerate.
9711 * valops.c (hand_function_call): Update.
9712 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9713 * frame.c (legacy_saved_regs_this_id): Update.
9714 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9715 * dummy-frame.h: Update.
9716 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9717 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9718 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9719 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9720 * config/m68k/tm-sun3.h: Update.
9721 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9723 * x86-64-tdep.c (x86_64_init_abi): Update.
9724 * vax-tdep.c (vax_gdbarch_init): Update.
9725 * v850-tdep.c (v850_gdbarch_init): Update.
9726 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9727 * sh-tdep.c (sh_gdbarch_init): Update.
9728 * s390-tdep.c (s390_gdbarch_init): Update.
9729 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9730 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9731 (frame_get_saved_regs): Update.
9732 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9733 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9734 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9735 * mips-tdep.c (mips_gdbarch_init): Update.
9736 * mcore-tdep.c (mcore_gdbarch_init): Update.
9737 * m68k-tdep.c (m68k_gdbarch_init): Update.
9738 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9739 * ia64-tdep.c (ia64_gdbarch_init): Update.
9740 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9741 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9742 (i386_interix_back_one_frame): Update.
9743 * hppa-tdep.c (hppa_gdbarch_init): Update.
9744 (hppa_init_extra_frame_info): Update.
9745 * h8300-tdep.c (h8300_gdbarch_init): Update.
9746 * frv-tdep.c (frv_gdbarch_init): Update.
9747 * cris-tdep.c (cris_gdbarch_init): Update.
9748 * avr-tdep.c (avr_gdbarch_init): Update.
9749 * arm-tdep.c (arm_gdbarch_init): Update.
9750 * alpha-tdep.c (alpha_gdbarch_init): Update.
9752 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9754 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9755 (arm_get_fp_model): Declare.
9756 * arm-tdep.c (fp_model_strings): New string array.
9757 (arm_fp_model, current_fp_model): New variables.
9758 (arm_get_fp_model): New function.
9759 (arm_set_fp): New function.
9760 (set_fp_model_sfunc): New function.
9761 (show_fp_model): New function.
9762 (_initialize_arm_tdep): Add new command to set/show the FPU.
9763 (arm_extract_return_value): Use arm_get_fp_model.
9764 (arm_store_return_value): Likewise.
9765 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9766 to initialize the floating-point data types.
9767 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9770 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9772 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9773 the current setting of each value.
9774 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9775 new_set and new_show. Use add_setshow_cmd_full and
9776 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9777 commands and add new version as subcommands of "set/show arm".
9779 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9781 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9782 (set_arm_command, show_arm_command): New functions.
9783 (_initialize_arm_tdep): Add them.
9784 (num_disassembly_options): Renamed from num_flavor_options.
9785 (valid_disassembly_styles): Renamed from valid_flavors.
9786 (disassembly_style): Renamed from disassembly_flavor.
9787 (set_disassembly_style_sfunc): Renamed from
9788 set_disassembly_flavor_sfunc.
9789 (set_disassembly_style): Renamed from set_disassembly_flavor.
9790 (arm_othernames): Updated.
9791 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9792 command. Add "set/show arm disassembly" commands. Deprecate
9793 "othernames" command.
9795 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9797 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9798 (arm-tdep.o): Depend on elf_arm_h.
9800 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9802 * Makefile.in (coff_internal_h): Define.
9803 (arm-tdep.o): Update dependencies.
9805 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9807 * arm-tdep.c (prologue_cache): Delete.
9808 (check_prologue_cache, save_prologue_cache): Delete.
9809 (arm_scan_prologue): Don't check or update the prologue_cache.
9810 (arm_gdb_arch_init): Don't initialize it.
9811 (_initialize_arm_tdep): Likewise.
9813 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9815 * MAINTAINERS (tui): Maintainer of tui code.
9817 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9819 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9820 (i386-cygwin-tdep.o): Add dependencies.
9821 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9822 * i386-cygwin-tdep.c: New file.
9823 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9824 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9826 2003-03-20 Andrew Cagney <cagney@redhat.com>
9828 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9829 (handle_inferior_event): Remove code calling
9830 DYNAMIC_TRAMPOLINE_NEXTPC.
9832 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9833 already has a full path.
9835 * main.c (gdb_main): Return 1.
9836 (captured_main): Call error to report an invalid interpreter.
9838 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9839 * alpha-osf1-tdep.c: Include "gdb_string.h".
9841 2003-03-19 J. Brobecker <brobecker@gnat.com>
9843 Continuing work to convert the hppa targets to multiarch partial.
9845 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9846 method, now that hppa_push_dummy_frame has a conformant prototype.
9847 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9848 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9849 for the switch to multiarch partial.
9851 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9853 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9854 when iss is issNull.
9856 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9858 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9859 NUM_REGS bounds check.
9861 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9863 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9864 * mips-tdep.c (gdb_assert.h): Include.
9865 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9866 (mips_register_name): Handle integer registers explicitly. Add
9868 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9869 (mips_lsi33k_reg_names): Don't list integer registers; they're
9870 handled by mips_register_name() now.
9871 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9872 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9873 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9874 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9875 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9877 2003-03-18 Andrew Cagney <cagney@redhat.com>
9879 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9881 * gdbtypes.h (print_scalar_formatted): Update declaration.
9882 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9884 2003-03-18 J. Brobecker <brobecker@gnat.com>
9886 * infrun.c (observer.h): Add #include.
9887 (normal_stop): Add call to observer_notify_normal_stop.
9888 * Makefile.in (infrun.o): Add dependency on observer.h.
9890 2003-03-18 J. Brobecker <brobecker@gnat.com>
9892 Continuing work to convert the hppa targets to multiarch partial.
9893 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9894 parameter. Reformat comment.
9895 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9896 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9897 to match new profile.
9899 2003-03-18 J. Brobecker <brobecker@gnat.com>
9901 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9902 appear to be working in any case.
9904 2003-03-18 J. Brobecker <brobecker@gnat.com>
9906 * observer.c (observer_test_first_observer): New static variable.
9907 (observer_test_second_observer): Likewise.
9908 (observer_test_third_observer): Likewise.
9909 (observer_test_first_notification_function): New static function.
9910 (observer_test_second_notification_function): Likewise.
9911 (observer_test_third_notification_function): Likewise.
9913 2003-03-17 J. Brobecker <brobecker@gnat.com>
9915 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9916 * somsolib.c (gdb_assert.h): Likewise.
9917 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9918 (somsolib.o): Likewise.
9920 2003-03-17 Andrew Cagney <cagney@redhat.com>
9922 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9923 BFD. Simplify setting of di.endian.
9925 2003-03-17 Andrew Cagney <cagney@redhat.com>
9927 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9928 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9930 From Elena Zannoni <ezannoni@redhat.com>
9931 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9932 vector and floating-point parameters.
9933 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9935 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9937 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9939 * MAINTAINERS: Remove my name from several maintainership roles.
9941 2003-03-17 Andrew Cagney <cagney@redhat.com>
9943 Fix frame off-by-one bug.
9944 * frame-unwind.h (frame_this_id_ftype): Replace
9945 frame_unwind_id_ftype.
9946 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9947 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9948 with "prev_register".
9949 * frame-unwind.c (frame_unwind_find_by_pc): Return
9950 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9952 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9953 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9954 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9955 (dummy_frame_unwind): Update.
9956 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9957 sentinel_frame_register_unwind.
9958 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9959 (sentinel_frame_unwinder): Update.
9960 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9961 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9962 * frame.c (create_sentinel_frame): Update. Initialize
9963 "prologue_cache" instead of "unwind_cache".
9964 (frame_register_unwind): Call this frame's prev_register with the
9965 next frame and this frame's prologue cache.
9966 (get_prev_frame): Simplify. Always call prev frame's this_id with
9967 this frame and prev frame's prologue cache. Document that this
9968 call is shifted one to the left when compared to the
9969 frame_register_unwind call.
9970 (legacy_saved_regs_prev_register): Replace
9971 frame_saved_regs_register_unwind.
9972 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9973 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9974 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9975 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9976 (d10v_frame_unwind): Update.
9977 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9978 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9979 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9980 "saved_regs" with "this_saved_regs".
9982 2003-03-16 Andrew Cagney <cagney@redhat.com>
9984 * frame.c (frame_pop): Don't call target_store_registers. Fix
9985 problem reported by Mark Kettenis.
9987 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9989 * i386-tdep.c (i386_register_type): Renamed from
9990 i386_register_virtual_type. Adjust function signature.
9991 (i386_gdbarch_init): Set register_type instead of
9992 deprecated_max_register_raw_size,
9993 deprecated_max_register_virtual_size and register_virtual_type.
9995 2003-03-14 Andrew Cagney <cagney@redhat.com>
9997 * frame.c (get_prev_frame): When a legacy frame, always call
9998 legacy_get_prev_frame. Simplify unwind code using assumption that
9999 the unwinder is new.
10000 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
10001 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
10002 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
10004 2003-03-14 Andrew Cagney <cagney@redhat.com>
10006 * frame.c (get_saved_register): Delete function.
10007 * frame.h (get_saved_register): Delete declaration.
10008 * xstormy16-tdep.c: Update comment.
10009 * regcache.h: Update comments.
10010 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
10011 get_saved_register and extract_address, use
10012 frame_read_unsigned_register.
10013 (sparc_frame_saved_pc): Ditto.
10014 (sparc_get_saved_register): Instead of get_saved_register, use
10016 (sparc_pop_frame): Ditto.
10017 * findvar.c: Update comments.
10018 (value_of_register): Call frame_register instead of
10019 get_saved_register.
10020 (value_from_register): Ditto.
10021 * config/sparc/tm-sparc.h: Update comment.
10022 * breakpoint.c: Update comment.
10024 2003-03-14 Andrew Cagney <cagney@redhat.com>
10026 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
10027 GET_SAVED_REGISTER.
10028 * gdbarch.h, gdbarch.c: Re-generate.
10029 * frame.h: Update comments.
10030 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10031 * x86-64-tdep.c (x86_64_init_abi): Update.
10032 * sparc-tdep.c (sparc_gdbarch_init): Update.
10033 * sh-tdep.c (sh_gdbarch_init): Update.
10034 * mips-tdep.c (mips_gdbarch_init): Update.
10035 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10036 * cris-tdep.c (cris_gdbarch_init): Update.
10037 * ia64-tdep.c (ia64_gdbarch_init): Update.
10038 * frame.c (frame_register): Update.
10039 (get_saved_register): Update.
10040 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
10042 2003-03-13 Andrew Cagney <cagney@redhat.com>
10044 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
10045 * gdbarch.h, gdbarch.c: Regenerate.
10046 * valops.c (hand_function_call): Update comment.
10047 * stack.c (return_command): Update comment.
10048 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
10049 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
10050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10051 * x86-64-tdep.c (x86_64_init_abi): Update.
10052 * vax-tdep.c (vax_gdbarch_init): Update.
10053 * v850-tdep.c (v850_gdbarch_init): Update.
10054 * sparc-tdep.c (sparc_gdbarch_init): Update.
10055 * sh-tdep.c (sh_gdbarch_init): Update.
10056 * s390-tdep.c (s390_gdbarch_init): Update.
10057 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10058 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10059 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10060 * mips-tdep.c (mips_gdbarch_init): Update.
10061 * mcore-tdep.c (mcore_gdbarch_init): Update.
10062 * m68k-tdep.c (m68k_gdbarch_init): Update.
10063 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10064 * ia64-tdep.c (ia64_gdbarch_init): Update.
10065 * i386-tdep.c (i386_gdbarch_init): Update.
10066 * hppa-tdep.c (hppa_gdbarch_init): Update.
10067 * h8300-tdep.c (h8300_gdbarch_init): Update.
10068 * frv-tdep.c (frv_gdbarch_init): Update.
10069 * cris-tdep.c (cris_gdbarch_init): Update.
10070 * avr-tdep.c (avr_gdbarch_init): Update.
10071 * arm-tdep.c (arm_gdbarch_init): Update.
10072 * alpha-tdep.c (alpha_gdbarch_init): Update.
10074 2003-03-13 Andrew Cagney <cagney@redhat.com>
10076 * frame.c (legacy_frame_p): New function.
10077 (get_prev_frame): Use legacy_frame_p.
10078 * frame.h (legacy_frame_p): Declare.
10080 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10082 * MAINTAINERS (write after approval): Alphabetically
10085 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10087 * MAINTAINERS (write after approval): Add myself.
10089 2003-03-12 Andrew Cagney <cagney@redhat.com>
10091 * frame.c (get_prev_frame): Rename the frame parameter to
10093 (get_next_frame, legacy_get_prev_frame): Ditto.
10095 2003-03-12 Andrew Cagney <cagney@redhat.com>
10097 * frame.c (get_current_frame): Check target_has_registers before
10098 checking target_has_stack.
10099 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10100 instead of deprecated_selected_frame.
10101 * findvar.c (value_of_register): Pass "frame", not
10102 deprecated_selected_frame, to value_of_builtin_reg.
10104 2003-03-12 Andrew Cagney <cagney@redhat.com>
10106 * regcache.c (regcache_cooked_write_signed): New function.
10107 (regcache_cooked_write_unsigned): New function.
10108 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10109 (regcache_cooked_read_signed): Fix regnum in range assertion.
10110 * regcache.h (regcache_cooked_write_signed): Declare.
10111 (regcache_cooked_write_unsigned): Declare.
10113 2003-03-12 Andrew Cagney <cagney@redhat.com>
10115 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10116 * gdbarch.h, gdbarch.c: Re-generate.
10117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10118 * x86-64-tdep.h: Update.
10119 * x86-64-tdep.c (x86_64_init_abi): Update.
10120 * v850-tdep.c (v850_gdbarch_init): Update.
10121 * sparc-tdep.c (sparc_gdbarch_init): Update.
10122 * sh-tdep.c (sh_gdbarch_init): Update.
10123 * s390-tdep.c (s390_gdbarch_init): Update.
10124 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10125 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10126 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10127 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10128 * mips-tdep.c (mips_gdbarch_init): Update.
10129 * mcore-tdep.c (mcore_gdbarch_init): Update.
10130 * m68k-tdep.c (m68k_gdbarch_init): Update.
10131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10132 * ia64-tdep.c (ia64_gdbarch_init): Update.
10133 * i386-tdep.c (i386_gdbarch_init): Update.
10134 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10135 * hppa-tdep.c (hppa_gdbarch_init): Update.
10136 * h8300-tdep.c (h8300_gdbarch_init): Update.
10137 * frv-tdep.c (frv_gdbarch_init): Update.
10138 * cris-tdep.c (cris_gdbarch_init): Update.
10139 * avr-tdep.c (avr_gdbarch_init): Update.
10140 * arm-tdep.c (arm_gdbarch_init): Update.
10141 * alpha-tdep.c (alpha_gdbarch_init): Update.
10142 * sh-tdep.c (sh_init_extra_frame_info): Update.
10143 (sh64_init_extra_frame_info): Update.
10144 * ns32knbsd-nat.c (frame_num_args): Update.
10145 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10146 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10147 (xstormy16_frame_chain_valid): Update.
10148 * vax-tdep.c (vax_saved_pc_after_call): Update.
10149 * v850-tdep.c (v850_frame_chain): Update.
10150 (v850_pop_frame): Update.
10151 (v850_init_extra_frame_info): Update.
10152 * sparc-tdep.c (setup_arbitrary_frame): Update.
10153 * ns32k-tdep.c (umax_frame_num_args): Update.
10154 * s390-tdep.c (s390_pop_frame_regular): Update.
10155 * mn10300-tdep.c (mn10300_frame_chain): Update.
10156 (mn10300_pop_frame_regular): Update.
10157 (mn10300_init_extra_frame_info): Update.
10158 * mips-tdep.c (mips_init_frame_pc_first): Update.
10159 (mips_frame_chain): Update.
10160 (mips_pop_frame): Update.
10161 * mcore-tdep.c (mcore_frame_chain): Update.
10162 (mcore_pop_frame): Update.
10163 (mcore_init_extra_frame_info): Update.
10164 * arch-utils.c (init_frame_pc_default): Update.
10165 * m68k-tdep.c (isi_frame_num_args): Update.
10166 (delta68_frame_num_args): Update.
10167 (news_frame_num_args): Update.
10168 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10169 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10170 (alpha_frame_chain): Update.
10171 (alpha_pop_frame): Update.
10172 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10173 (hppa_init_extra_frame_info): Update.
10174 (hppa_frame_chain): Update.
10175 (hppa_frame_chain_valid): Update.
10176 * cris-tdep.c (cris_init_extra_frame_info): Update.
10177 * avr-tdep.c (avr_init_extra_frame_info): Update.
10178 * arm-tdep.c (arm_frame_chain_valid): Update.
10179 (arm_init_extra_frame_info): Update.
10180 (arm_pop_frame): Update.
10181 * frame.c (frame_pc_unwind): Update.
10182 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10183 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10184 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10185 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10186 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10187 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10189 2003-03-12 Andrew Cagney <cagney@redhat.com>
10191 Eliminate the need for POP_FRAME.
10192 * frame.c (do_frame_unwind_register): New function.
10193 (frame_pop): When no POP_FRAME, pop the frame using register
10194 unwind and a scratch regcache.
10195 (frame_saved_regs_pop): Delete function.
10196 (trad_frame_unwinder): Update.
10197 * d10v-tdep.c (d10v_frame_pop): Delete function.
10198 (d10v_frame_unwind): Update.
10199 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10200 (sentinel_frame_unwinder): Update.
10201 * dummy-frame.c (dummy_frame_pop): Delete function.
10202 (dummy_frame_unwind): Update.
10203 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10204 (struct frame_unwind): Update.
10206 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10208 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10209 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10210 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10211 Do range checks on register number obtained from debugging info.
10212 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10213 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10214 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10216 (do_fp_register_row): Fix typo which caused double type to be
10217 used when attempting to unpack a float.
10219 2003-03-11 J. Brobecker <brobecker@gnat.com>
10221 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10223 2003-03-11 Andrew Cagney <cagney@redhat.com>
10225 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10226 frame. Problem found by Corinna Vinschen.
10228 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10230 * doublest.c (floatformat_from_length): Accept also
10231 the real size of 'long double' type.
10233 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10235 From Klee Dienes <kdienes@apple.com>:
10236 * breakpoint.c (bpstat_copy): Copy the command lines as well
10237 as the old value, to match what is freed in bpstat_clear.
10239 2003-03-10 David Carlton <carlton@math.stanford.edu>
10241 * minsyms.c (add_minsym_to_hash_table): Replace
10242 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10243 (compare_minimal_symbols, compact_minimal_symbols)
10244 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10245 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10246 of DEPRECATED_SYMBOL_MATCHES_NAME.
10247 (lookup_minimal_symbol_solib_trampoline): Ditto.
10249 2003-03-10 Andrew Cagney <cagney@redhat.com>
10251 * regcache.h (regcache_cooked_read_ftype): Define.
10252 (regcache_save, regcache_restore): Add a cooked_read parameter.
10253 * regcache.c (regcache_save, regcache_restore): Update.
10254 (do_cooked_read): New function.
10255 (regcache_cpy): Pass do_cooked_read to regcache_save and
10258 2003-03-10 Andrew Cagney <cagney@redhat.com>
10260 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10261 * gdbarch.h, gdbarch.c: Re-generate.
10262 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10263 * x86-64-tdep.h: Update.
10264 * x86-64-tdep.c (x86_64_init_abi): Update.
10265 * v850-tdep.c (v850_gdbarch_init): Update.
10266 * sparc-tdep.c (sparc_gdbarch_init): Update.
10267 * sh-tdep.c (sh_gdbarch_init): Update.
10268 * s390-tdep.c (s390_gdbarch_init): Update.
10269 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10270 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10271 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10272 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10273 * mips-tdep.c (mips_gdbarch_init): Update.
10274 * mcore-tdep.c (mcore_gdbarch_init): Update.
10275 * m68k-tdep.c (m68k_gdbarch_init): Update.
10276 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10277 * ia64-tdep.c (ia64_gdbarch_init): Update.
10278 * i386-tdep.c (i386_gdbarch_init): Update.
10279 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10280 * hppa-tdep.c (hppa_gdbarch_init): Update.
10281 * h8300-tdep.c (h8300_gdbarch_init): Update.
10282 * frv-tdep.c (frv_gdbarch_init): Update.
10283 * cris-tdep.c (cris_gdbarch_init): Update.
10284 * avr-tdep.c (avr_gdbarch_init): Update.
10285 * arm-tdep.c (arm_gdbarch_init): Update.
10286 * alpha-tdep.c (alpha_gdbarch_init): Update.
10287 * sh-tdep.c (sh_init_extra_frame_info): Update.
10288 (sh64_init_extra_frame_info): Update.
10289 * ns32knbsd-nat.c (frame_num_args): Update.
10290 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10291 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10292 (xstormy16_frame_chain_valid): Update.
10293 * vax-tdep.c (vax_saved_pc_after_call): Update.
10294 * v850-tdep.c (v850_frame_chain): Update.
10295 (v850_pop_frame): Update.
10296 (v850_init_extra_frame_info): Update.
10297 * sparc-tdep.c (setup_arbitrary_frame): Update.
10298 * ns32k-tdep.c (umax_frame_num_args): Update.
10299 * s390-tdep.c (s390_pop_frame_regular): Update.
10300 * mn10300-tdep.c (mn10300_frame_chain): Update.
10301 (mn10300_pop_frame_regular): Update.
10302 (mn10300_init_extra_frame_info): Update.
10303 * mips-tdep.c (mips_init_frame_pc_first): Update.
10304 (mips_frame_chain): Update.
10305 (mips_pop_frame): Update.
10306 * mcore-tdep.c (mcore_frame_chain): Update.
10307 (mcore_pop_frame): Update.
10308 (mcore_init_extra_frame_info): Update.
10309 * arch-utils.c (init_frame_pc_default): Update.
10310 * m68k-tdep.c (isi_frame_num_args): Update.
10311 (delta68_frame_num_args): Update.
10312 (news_frame_num_args): Update.
10313 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10314 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10315 (alpha_frame_chain): Update.
10316 (alpha_pop_frame): Update.
10317 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10318 (hppa_init_extra_frame_info): Update.
10319 (hppa_frame_chain): Update.
10320 (hppa_frame_chain_valid): Update.
10321 * cris-tdep.c (cris_init_extra_frame_info): Update.
10322 * avr-tdep.c (avr_init_extra_frame_info): Update.
10323 * arm-tdep.c (arm_frame_chain_valid): Update.
10324 (arm_init_extra_frame_info): Update.
10325 (arm_pop_frame): Update.
10326 * frame.c (frame_pc_unwind): Update.
10327 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10328 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10329 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10330 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10331 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10332 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10334 2003-03-10 Andrew Cagney <cagney@redhat.com>
10336 * gdbarch.sh (gdbarch_unwind_pc): New method.
10337 * gdbarch.h, gdbarch.c: Regenerate.
10338 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10339 but use read_pc and FRAME_SAVED_PC as fall backs.
10340 (frame_saved_regs_pc_unwind): Delete function.
10341 (trad_frame_unwinder): Update.
10342 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10343 (struct frame_unwind): Update.
10344 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10345 (dummy_frame_unwind): Update.
10346 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10347 (sentinel_frame_unwinder): Update.
10348 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10349 (d10v_frame_unwind): Update.
10350 (d10v_unwind_pc): New function.
10351 (d10v_gdbarch_init): Set unwind_pc.
10353 2003-03-10 Andrew Cagney <cagney@redhat.com>
10355 * gdbarch.h: Re-generate.
10357 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10359 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10362 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10364 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10366 2003-03-08 Andrew Cagney <cagney@redhat.com>
10368 * cli-out.c: Update copyright.
10369 (cli_out_data): Define typedef. Use instead of ui_out_data.
10371 2003-03-08 Andrew Cagney <cagney@redhat.com>
10373 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10376 2003-03-07 Andrew Cagney <cagney@redhat.com>
10378 * gdbarch.sh: Don't generate two macro definitions when an
10379 undefined macro taking no arguments.
10380 * gdbarch.h: Regenerate.
10382 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10384 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10385 (x86_64_unwind_dummy_id): New functions.
10386 (x86_64_init_abi): Register these two new functions.
10388 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10390 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10391 (x86_64_skip_prologue): Move prologue detection to
10393 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10395 2003-03-05 Andrew Cagney <cagney@redhat.com>
10397 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10398 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10399 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10400 to use unwind_dummy_id when a dummy frame.
10401 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10403 * gdbarch.h, gdbarch.c: Regneerate.
10405 2003-03-05 Andrew Cagney <cagney@redhat.com>
10407 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10408 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10409 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10412 2003-03-05 Andrew Cagney <cagney@redhat.com>
10414 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10415 (struct d10v_unwind_cache): Delete field "frameless". Replace
10416 "next_addr" with "sp_offset". Add "r11_offset".
10417 (d10v_frame_unwind_cache): Update.
10418 (prologue_find_regs): Update. When "mv r11, sp", save the
10419 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10420 RN was saved in r11_offset.
10422 2003-03-05 Andrew Cagney <cagney@redhat.com>
10424 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10425 cached PC value in the next frame.
10427 2003-03-05 Andrew Cagney <cagney@redhat.com>
10429 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10430 "id_unwind_cache" with "id".
10431 (frame_id_unwind): Delete declaration.
10432 * frame.c (frame_id_unwind): Delete function.
10433 (get_prev_frame): Call the frame id unwind method directly. Store
10434 the returned next frame's ID value in NEXT_FRAME. Note that there
10435 is a problem with the wrong unwind ID being called with the wrong
10438 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10440 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10442 2003-03-05 James Ingham <jingham@apple.com>
10443 Daniel Jacobowitz <drow@mvista.com>
10445 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10446 (auto_cp_abi): New variable.
10447 (current_cp_abi, num_cp_abis): Make static.
10448 (CP_ABI_MAX): Define.
10449 (cp_abis): Turn into an array.
10450 (value_virtual_fn_field): Fix formatting.
10451 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10453 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10454 (list_cp_abis, _initialize_cp_abi): New functions.
10455 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10456 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10457 switch_to_cp_abi. Update prototype for register_cp_abi.
10458 * Makefile.in (cp-abi.o): Update dependencies.
10459 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10460 instead of switch_to_cp_abi.
10461 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10463 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10465 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10467 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10469 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10470 * dwarf2loc.c: Include "regcache.h".
10471 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10473 * Makefile.in (dwarf2loc.o): Update dependencies.
10475 2003-03-04 Theodore A. Roth <troth@openavr.org>
10477 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10478 number of io registers reported by remote target is not a multiple of
10481 2003-03-04 David Carlton <carlton@math.stanford.edu>
10483 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10484 (lookup_symbol_aux_psymtabs): Update call to
10485 lookup_partial_symbol.
10486 (lookup_transparent_type, find_main_psymtab)
10487 (make_symbol_overload_list): Ditto.
10489 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10491 * MAINTAINERS (Write after approval): Update my email address.
10493 2003-03-03 Andrew Cagney <cagney@redhat.com>
10495 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10496 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10497 predicate. Replace MAX_REGISTER_RAW_SIZE.
10498 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10499 MAX_REGISTER_VIRTUAL_SIZE.
10500 * regcache.c (legacy_max_register_raw_size): New function.
10501 (legacy_max_register_virtual_size): New function.
10502 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10503 (MAX_REGISTER_RAW_SIZE): Define.
10504 (legacy_max_register_raw_size): Declare.
10505 (legacy_max_register_virtual_size): Declare.
10506 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10507 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10508 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10509 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10510 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10511 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10512 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10513 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10514 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10516 * vax-tdep.c (vax_gdbarch_init): Update.
10517 * v850-tdep.c (v850_gdbarch_init): Update.
10518 * sparc-tdep.c (sparc_gdbarch_init): Update.
10519 * sh-tdep.c (sh_gdbarch_init): Update.
10520 * s390-tdep.c (s390_gdbarch_init): Update.
10521 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10522 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10523 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10524 * mips-tdep.c (mips_gdbarch_init): Update.
10525 * mcore-tdep.c (mcore_gdbarch_init): Update.
10526 * m68k-tdep.c (m68k_gdbarch_init): Update.
10527 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10528 * ia64-tdep.c (ia64_gdbarch_init): Update.
10529 * i386-tdep.c (i386_gdbarch_init): Update.
10530 * hppa-tdep.c (hppa_gdbarch_init): Update.
10531 * h8300-tdep.c (h8300_gdbarch_init): Update.
10532 * frv-tdep.c (frv_gdbarch_init): Update.
10533 * cris-tdep.c (cris_gdbarch_init): Update.
10534 * avr-tdep.c (avr_gdbarch_init): Update.
10535 * arm-tdep.c (arm_gdbarch_init): Update.
10536 * alpha-tdep.c (alpha_gdbarch_init): Update.
10537 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10538 max_register_raw_size or max_register_virtual_size.
10540 2003-03-03 David Carlton <carlton@math.stanford.edu>
10542 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10543 SYMBOL_MATCHES_NAME, add comment.
10544 (SYMBOL_MATCHES_NATURAL_NAME): New.
10545 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10546 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10547 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10548 * symtab.c (lookup_partial_symbol): Use
10549 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10551 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10552 SYMBOL_MATCHES_NAME.
10555 2003-03-03 David Carlton <carlton@math.stanford.edu>
10557 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10558 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10559 by regexp matching against SYMBOL_NATURAL_NAME.
10561 2003-03-03 David Carlton <carlton@math.stanford.edu>
10563 * linespec.c (find_method): Extract code into collect_methods.
10564 (collect_methods): New.
10566 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10568 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10571 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10572 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10574 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10576 * arch-utils.c (generic_register_byte): Fix to use the loop index
10577 and not regnum when summing the size of all registers up to regnum.
10579 2003-03-01 Andrew Cagney <cagney@redhat.com>
10581 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10582 FRAME_INIT_SAVED_REGS.
10583 * gdbarch.h, gdbarch.c: Regenerate.
10584 * stack.c (frame_info): Update.
10585 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10586 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10587 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10588 * ns32k-tdep.c (ns32k_pop_frame): Update.
10589 * mips-tdep.c (mips_pop_frame): Update.
10590 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10591 * ia64-tdep.c (ia64_frame_chain): Update.
10592 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10593 (ia64_frameless_function_invocation): Update.
10594 (ia64_init_extra_frame_info): Update.
10595 (ia64_pop_frame_regular): Update.
10596 * frame.h (struct frame_info): Update comment.
10597 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10598 * frame.c (frame_saved_regs_register_unwind): Update.
10599 (frame_saved_regs_register_unwind): Update.
10600 (deprecated_generic_get_saved_register): Update.
10601 * cris-tdep.c: Update comment.
10602 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10604 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10605 * x86-64-tdep.c (x86_64_init_abi): Update.
10606 * vax-tdep.c (vax_gdbarch_init): Update.
10607 * v850-tdep.c (v850_gdbarch_init): Update.
10608 * sparc-tdep.c (sparc_gdbarch_init): Update.
10609 * sh-tdep.c (sh_gdbarch_init): Update.
10610 * s390-tdep.c (s390_gdbarch_init): Update.
10611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10612 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10613 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10615 * mips-tdep.c (mips_gdbarch_init): Update.
10616 * mcore-tdep.c (mcore_gdbarch_init): Update.
10617 * m68k-tdep.c (m68k_gdbarch_init): Update.
10618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10619 * ia64-tdep.c (ia64_gdbarch_init): Update.
10620 * i386-tdep.c (i386_gdbarch_init): Update.
10621 * frv-tdep.c (frv_gdbarch_init): Update.
10622 * avr-tdep.c (avr_gdbarch_init): Update.
10623 * arm-tdep.c (arm_gdbarch_init): Update.
10624 * alpha-tdep.c (alpha_gdbarch_init): Update.
10626 2003-03-01 Andrew Cagney <cagney@redhat.com>
10628 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10629 option enum and switch. When no windows, set the interpreter to
10632 2003-03-01 Andrew Cagney <cagney@redhat.com>
10634 * main.c (captured_main): Replace magic option characters with an
10637 2003-03-01 Andrew Cagney <cagney@redhat.com>
10639 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10640 INIT_EXTRA_FRAME_INFO.
10641 * gdbarch.h, gdbarch.c: Regenerate.
10642 * arm-tdep.c: Update comments.
10643 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10644 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10645 * frame.h, avr-tdep.c: Ditto.
10646 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10647 (create_new_frame, legacy_get_prev_frame): Ditto.
10648 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10649 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10650 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10651 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10652 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10653 * v850-tdep.c (v850_gdbarch_init): Ditto.
10654 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10655 * sh-tdep.c (sh_gdbarch_init): Ditto.
10656 * s390-tdep.c (s390_gdbarch_init): Ditto.
10657 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10658 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10659 * mips-tdep.c (mips_gdbarch_init): Ditto.
10660 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10661 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10662 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10663 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10664 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10665 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10666 * frv-tdep.c (frv_gdbarch_init): Ditto.
10667 * cris-tdep.c (cris_gdbarch_init): Ditto.
10668 * avr-tdep.c (avr_gdbarch_init): Ditto.
10669 * arm-tdep.c (arm_gdbarch_init): Ditto.
10670 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10671 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10673 2003-03-01 Andrew Cagney <cagney@redhat.com>
10675 * gdbarch.sh (register_type): New function with predicate.
10676 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10677 * gdbarch.h, gdbarch.c: Re-generate.
10678 * arch-utils.c (generic_register_byte): Use generic_register_size.
10679 (generic_register_size): When available, use
10680 gdbarch_register_type.
10681 * regcache.c (init_regcache_descr): When available, initialize the
10682 register type array using gdbarch_register_type. If the
10683 architecture supplies gdbarch_register_type, do not use the legacy
10685 * d10v-tdep.c (d10v_register_type): Replace
10686 d10v_register_virtual_type.
10687 (d10v_gdbarch_init): Set register_type instead of
10688 register_virtual_type.
10690 2003-03-01 Andrew Cagney <cagney@redhat.com>
10692 * Makefile.in (ax-gdb.o): Update dependencies.
10693 * ax-gdb.c: Include "regcache.h".
10694 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10695 * findvar.c (value_of_register): Ditto.
10696 * infcmd.c (default_print_registers_info): Ditto.
10698 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10700 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10701 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10703 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10705 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10708 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10710 * Makefile.in (dwarf2loc.o): Update dependencies.
10711 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10712 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10713 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10714 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10715 (locexpr_tracepoint_var_ref): New function.
10716 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10718 2003-02-28 Andrew Cagney <cagney@redhat.com>
10720 * regcache.c (register_size): New function.
10721 * regcache.h (register_size): Declare
10722 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10723 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10725 2003-02-28 David Carlton <carlton@math.stanford.edu>
10727 * linespec.c (decode_compound): Extract code into find_method.
10728 (find_method): New.
10730 2003-02-28 J. Brobecker <brobecker@gnat.com>
10732 * Makefile.in: Add rules to build and link in observer.o.
10734 2003-02-27 J. Brobecker <brobecker@gnat.com>
10736 * observer.c: Minor comments edits.
10738 2003-02-27 J. Brobecker <brobecker@gnat.com>
10740 * observer.h, observer.c: New file.
10742 2003-02-27 Andrew Cagney <cagney@redhat.com>
10744 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10746 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10748 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10749 (M6812_OP_STS_EXT): Likewise.
10750 (m6811_prologue): Use the above to recognize prologue.
10751 (m6812_prologue): Likewise.
10753 2003-02-27 David Carlton <carlton@math.stanford.edu>
10755 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10757 (compare_psymbols): Ditto.
10758 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10760 2003-02-27 Michael Snyder <msnyder@redhat.com>
10762 * f-lang.c (build_fortran_types): New function.
10763 (_initialize_f_language): Gdbarch-register built-in fortran types.
10764 * doublest.c (extract_floating): Fix warning text.
10766 2003-02-27 Andrew Cagney <cagney@redhat.com>
10768 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10769 predicate. Replaces PUSH_DUMMY_FRAME.
10770 * gdbarch.h, gdbarch.c: Regnerate.
10771 * valops.c (hand_function_call): Update. Call
10772 generic_push_dummy_frame directly.
10773 * vax-tdep.c (vax_gdbarch_init): Update.
10774 * sparc-tdep.c (sparc_gdbarch_init): Update.
10775 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10776 * m68k-tdep.c (m68k_gdbarch_init): Update.
10777 * hppa-tdep.c (hppa_gdbarch_init): Update.
10778 * alpha-tdep.c (alpha_gdbarch_init): Update.
10779 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10780 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10781 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10782 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10783 push_dummy_frame to generic_push_dummy_frame.
10784 * v850-tdep.c (v850_gdbarch_init): Ditto.
10785 * sh-tdep.c (sh_gdbarch_init): Ditto.
10786 * s390-tdep.c (s390_gdbarch_init): Ditto.
10787 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10788 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10789 * mips-tdep.c (mips_gdbarch_init): Ditto.
10790 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10791 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10792 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10793 * i386-tdep.c (i386_gdbarch_init): Ditto.
10794 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10795 * frv-tdep.c (frv_gdbarch_init): Ditto.
10796 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10797 * cris-tdep.c (cris_gdbarch_init): Ditto.
10798 * avr-tdep.c (avr_gdbarch_init): Ditto.
10799 * arm-tdep.c (arm_gdbarch_init): Ditto.
10801 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10803 * mips-tdep.c (show_mips_abi): New function.
10804 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10805 command ``show mips abi''.
10807 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10809 From Elena Zannoni <ezannoni@redhat.com>
10810 * dbxread.c (process_one_symbol): Only record line 0 if one or
10811 more sline entries have been seen for the function.
10813 2003-02-26 Michael Chastain <mec@shout.net>
10815 * configure: Regenerate with autoconf 000227.
10817 2003-02-26 Michael Chastain <mec@shout.net>
10819 Close PR build/660.
10820 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10821 for old libc5/glibc.
10822 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10824 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10826 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10827 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10829 2003-02-26 Michael Chastain <mec@shout.net>
10831 * configure.in: New variable HAVE_UINTPTR_T.
10832 * configure, config.in: Regenerated.
10834 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10837 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10839 2003-02-25 Andrew Cagney <cagney@redhat.com>
10841 * frame.c (get_prev_frame): Add comment on check for
10842 inside_entry_func. Only check for inside_entry_file when not a
10843 dummy and not a sentinel. Check that the new frame is not inner
10846 2003-02-25 Andrew Cagney <cagney@redhat.com>
10848 * frame.c (frame_debug): New variable.
10849 (_initialize_frame): Add "set/show debug frame" command.
10850 (get_prev_frame): When frame_debug, print reason why unwind
10853 2003-02-25 Michael Chastain <mec@shout.net>
10855 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10856 to avoid uintptr_t definition problems.
10858 2003-02-25 David Carlton <carlton@math.stanford.edu>
10860 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10861 (SYMBOL_LINKAGE_NAME): Ditto.
10862 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10863 SYMBOL_LINKAGE_NAME.
10864 (struct general_symbol_info): Expand comment.
10865 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10866 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10867 (SYMBOL_MATCHES_REGEXP): Ditto.
10868 * symtab.c (symbol_natural_name): New function.
10869 * objfiles.h: Replace all uses of SYMBOL_NAME by
10870 DEPRECATED_SYMBOL_NAME.
10871 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10872 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10873 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10874 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10875 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10876 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10877 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10878 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10879 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10880 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10881 * ada-exp.y: Ditto.
10882 * ada-exp.y: Update copyright.
10883 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10884 * cp-valprint.c: Ditto.
10886 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10888 * infptrace.c (detach): Do not flag error if ptrace detach fails
10889 and errno is set to ESRCH.
10891 2003-02-24 Andrew Cagney <cagney@redhat.com>
10893 * infptrace.c (udot_info): Change type of udot_off to long. Use
10894 paddr when printing udot_off's value.
10896 2003-02-24 David Carlton <carlton@math.stanford.edu>
10898 * symtab.c (make_symbol_overload_list): Only read in partial
10899 symtabs containing a matching partial symbol.
10901 2003-02-24 David Carlton <carlton@math.stanford.edu>
10903 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10904 do the comparison, not strcmp.
10905 * symfile.c (compare_psymbols): Ditto.
10906 * defs.h: Declare strcmp_iw_ordered.
10907 * utils.c (strcmp_iw_ordered): New function.
10909 2003-02-24 Jim Blandy <jimb@redhat.com>
10911 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10912 support, shared libs): Remove my name from here, to better reflect
10915 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10917 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10918 (target_ops): Add to_have_continuable_watchpoint.
10919 * target.c (update_current_target): Add INHERIT line for
10920 to_have_continuable_watchpoint.
10921 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10922 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10923 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10924 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10926 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10928 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10931 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10933 * solib.c (solib_open): Call target defined search function after
10934 failing with solib-search-path.
10935 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10936 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10938 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10940 * MAINTAINERS: Add myself to Write After section.
10942 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10944 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10946 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10948 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10949 (m68hc11_add_reggroups): New function.
10950 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10951 (m68hc11_gdbarch_init): Install the reggroups.
10952 (_initialize_m68hc11_tdep): Initialize them.
10954 2003-02-21 James E Wilson <wilson@tuliptree.org>
10956 * MAINTAINERS: Update my email address.
10958 2003-02-21 David Carlton <carlton@math.stanford.edu>
10960 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10962 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10964 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10965 * symtab.h: Add opaque declarations of struct axs_value and
10967 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10968 (struct location_funcs): New type.
10969 (struct symbol): Add "loc" to aux_value.
10970 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10971 * dwarf2read.c: Include "dwarf2expr.h".
10972 (dwarf2_symbol_mark_computed): New function.
10973 (read_func_scope): Use it.
10974 (var_decode_location): New function.
10975 (new_symbol): Use it.
10976 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10978 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10979 (dwarf2expr_h, dwarf2loc_h): New variables.
10980 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10981 (dwarf2expr.o, dwarf2loc.o): New rules.
10982 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10983 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10985 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10986 * m2-exp.y (yylex): Likewise.
10987 * printcmd.c (address_info, print_frame_args): Likewise.
10988 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10989 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10990 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10991 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10992 * symtab.c (lookup_block_symbol): Likewise.
10994 2003-02-20 Adam Fedor <fedor@gnu.org>
10996 * symtab.h: Remove objc_specific struct
10997 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10998 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10999 Have language_objc use cplus_specific struct.
11001 2003-02-20 Tom Tromey <tromey@redhat.com>
11003 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
11004 TYPE_NAME, when printing a String value. PR java/1075.
11006 2003-02-20 Adam Fedor <fedor@gnu.org>
11008 * objc-lang.h (find_methods): Remove declaration.
11009 * objc-lang.c (find_methods): Make static.
11011 2003-02-20 Christopher Faylor <cgf@redhat.com>
11013 * win32-nat.c (get_image_name): Check return value from
11015 (child_xfer_memory): Ditto.
11017 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
11019 * configure.in (TARGET_SYSTEM_ROOT): Set default to
11020 ${exec_prefix}/${target_alias}/sys-root. Match explicit
11021 '${exec_prefix}' (in addition to the expansion thereof) as
11023 * configure: Rebuilt.
11025 2003-02-20 David Carlton <carlton@math.stanford.edu>
11027 * symtab.c (search_symbols): Revert the search_symbols part of my
11028 2002-12-23 patch. Add comment.
11030 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11032 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
11033 * dbxread.c (elfstab_build_psymtabs): Don't call
11034 install_minimal_symbols.
11035 (stabsect_build_psymtabs): Likewise.
11036 * elfread.c (elf_symfile_read): Call install_minimal_symbols
11038 * somread.c (som_symfile_read): Call install_minimal_symbols
11039 and do_cleanups earlier.
11040 * nlmread.c (nlm_symfile_read): Likewise.
11041 * mdebugread.c (elfmdebug_build_psymtabs): Call
11042 install_minimal_symbols and make appropriate cleanups.
11044 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11046 * solib.c (reload_shared_libraries): New function.
11047 (_initialize_solib): Add callbacks for ``set solib-search-path''
11048 and ``set solib-absolute-prefix''.
11050 2003-02-20 David Carlton <carlton@math.stanford.edu>
11052 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
11054 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
11055 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
11056 * ada-typeprint.c (ada_typedef_print): Ditto.
11057 * ax-gdb.c (gen_var_ref): Ditto.
11058 * breakpoint.c (print_one_breakpoint): Ditto.
11059 * buildsym.c (finish_block): Ditto.
11060 * c-valprint.c (c_val_print): Ditto.
11061 * expprint.c (print_subexp): Ditto.
11062 * findvar.c (locate_var_value): Ditto.
11063 * infcmd.c (jump_command): Ditto.
11064 * linespec.c (decode_line_2, decode_compound): Ditto.
11065 * maint.c (maintenance_translate_address): Ditto.
11066 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11067 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11069 * p-valprint.c (pascal_val_print): Ditto.
11070 * stabsread.c (define_symbol): Ditto.
11071 * stack.c (print_frame, frame_info, print_block_frame_locals)
11072 (print_frame_arg_vars, return_command): Ditto.
11073 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11074 * symmisc.c (print_symbol): Ditto.
11075 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11076 (compare_search_syms, print_symbol_info, print_msymbol_info)
11077 (rbreak_command): Ditto.
11078 * tracepoint.c (tracepoints_info): Ditto.
11079 * typeprint.c (typedef_print): Ditto.
11080 * valops.c (value_of_variable, hand_function_call): Ditto.
11081 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11082 * ada-typeprint.c: Update Copyright.
11083 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11084 * tracepoint.c, cli/cli-cmds.c: Ditto.
11086 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11088 * frame.c (generic_unwind_get_saved_register): Make non-static.
11089 * frame.h (generic_unwind_get_saved_register): Declare.
11090 * mips-tdep.c (read_next_frame_reg): Fetch register from
11091 current regcache when frame is NULL.
11092 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11094 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11095 instead of frame_register_unwind().
11097 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11099 * remote-sim.c (gdbsim_insert_breakpoint)
11100 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11103 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11105 * remote.c (_initialize_remote): Add commands "set/show remote
11106 hardware-watchpoint-limit" and "set/show remote
11107 hardware-breakpoint-limit".
11108 (remote_hw_watchpoint_limit): Initialize to -1.
11109 (remote_hw_breakpoint_limit): Ditto.
11110 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11112 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11114 * coff-pe-read.c: New file - support reading of minimal symbols from a
11115 portable executable using the export table.
11116 * coff-pe-read.h: New file.
11117 * coffread.c: Include coff-pe-read.h.
11118 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11119 debugging symbols found.
11120 * Makefile.in (SFILES): Add coff-pe-read.o.
11121 (coff_pe_read_h): Define.
11122 (COMMON_OBS): Add coff-pe-read.o.
11123 (coffread.o): Add coff_pe_read_h dependency.
11124 (coff-pe-read.o): New target.
11126 2003-02-19 David Carlton <carlton@math.stanford.edu>
11128 * Makefile.in (SFILES): Add block.c.
11130 (COMMON_OBS): Add block.o.
11132 (x86-64-tdep.o): Add $(block_h).
11133 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11134 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11135 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11136 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11137 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11138 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11139 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11140 * value.h: Add opaque declaration for struct block.
11141 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11142 * ada-lang.h: Ditto.
11143 * x86-64-tdep.c: #include "block.h"
11144 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11145 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11146 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11147 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11148 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11149 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11150 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11151 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11152 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11153 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11154 * symtab.c (block_function): Ditto.
11155 (contained_in): Ditto.
11156 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11157 block.h. Add opaque declaration for struct block.
11158 * symtab.h: Move block_function and contained_in declarations to
11159 block.h. Add opaque declarations for struct block, struct
11161 (struct block): Move to block.h.
11162 (struct blockvector): Ditto.
11163 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11164 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11165 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11166 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11167 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11169 * block.c: New file.
11170 * block.h: New file.
11172 2003-02-19 Theodore A. Roth <troth@openavr.org>
11174 * avr-tdep.c (avr_extract_return_value): Remove function.
11175 (avr_store_return_value): Remove function.
11176 (avr_extract_struct_value_address): Remove function.
11177 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11179 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11181 * rs6000-tdep.c: Include "gdb_assert.h".
11182 (registers_e500): Add "acc" and "spefscr".
11183 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11184 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11185 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11187 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11189 2003-02-18 Keith Seitz <keiths@redhat.com>
11191 * Makefile.in: Add gdbtk-interps.c.
11193 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11195 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11196 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11198 2003-02-18 Andrew Cagney <cagney@redhat.com>
11200 * symtab.h (struct objfile): Add opaque declaration.
11202 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11204 From Jim Ingham <jingham@apple.com>:
11205 * dbxread.c (process_one_symbol): Use last_function_start rather
11206 than function_start_offset to find the real beginning of the
11207 current function. The latter is just the text section offset on
11208 some systems, the former is always the real function start.
11210 2003-02-17 Andrew Cagney <cagney@redhat.com>
11212 * configure.in: Revert ${target} != ${host}.
11214 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11216 * configure.in (Makefile): Use the test ${target} != ${host},
11217 instead of the absence of the "nm.h" file, to determine of the
11218 configuration non-native.
11219 * configure: Regenerate.
11221 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11223 From Brian Ford <ford@vss.fsi.com>
11225 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11226 conditionalize tui_active test.
11227 (lookup_cmd_1): Ditto.
11229 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11231 * configure.in: Add check for _etext.
11232 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11234 * config.in, configure: regenerated.
11236 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11238 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11240 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11242 * main.c (tui_version): Delete variable.
11243 (captured_main): When --tui, set interpreter_p to "tui" instead of
11244 enabling tui_version.
11245 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11247 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11248 * cli/cli-cmds.c (disassemble_command): Ditto.
11249 * defs.h (tui_version): Delete declaration.
11250 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11251 (tui-interp.o): Add rules.
11252 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11254 2003-02-14 Christopher Faylor <cgf@redhat.com>
11256 * win32-nat.c (register_loaded_dll): Correctly set address range for
11259 2003-02-12 Jason Molenda (jmolenda@apple.com)
11261 * symmisc.c (print_objfile_statistics): Include information about
11262 the number of psymtabs and symtabs in each object file.
11264 2003-02-13 Keith R Seitz <keiths@redhat.com>
11266 * main.h (struct captured_main_args): Add interpreter_p.
11267 * main.c (captured_main): Initialize interpreter_p from context.
11268 * gdb.c (main): Set interpreter_p argument.
11269 * Makefile.in (gdb.o): Add dependency for interps.h.
11271 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11273 * event-top.c (cli_command_loop): Delete declaration.
11274 (_initialize_event_loop): Delete function setting event_loop_hook.
11275 * event-top.h (cli_command_loop): Declare. Update copyright.
11276 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11277 * interps.c (current_interp_command_loop): When event_loop_p, call
11280 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11282 * interps.h (interp_command_loop_ftype): Change return type to
11285 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11287 * x86-64-tdep.c (x86_64_extract_return_value)
11288 (x86_64_store_return_value): Use regcache instead of regbuf.
11289 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11290 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11292 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11294 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11295 * aclocal.m4: Regenerate.
11296 * configure: Regenerate.
11298 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11299 TCL_LD_SEARCH_FLAGS.
11301 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11303 * dwarf2cfi.c: Reindented.
11305 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11307 * interps.c (clear_interpreter_hooks): Convert function definition
11310 2003-02-07 David Carlton <carlton@math.stanford.edu>
11312 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11314 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11316 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11317 (struct type): ...to here.
11318 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11320 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11321 (replace_type): Set length on all type variants for a given type.
11323 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11325 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11327 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11329 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11331 * Makefile.in (symm-nat.o): Update dependencies.
11332 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11333 (lynx-nat.o, ia64-linux-nat.): Ditto.
11334 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11335 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11336 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11338 * Makefile.in (inflow_h): Define.
11339 (procfs.o, inflow.o, procfs.o): Update dependencies.
11340 * inftarg.c (child_stop): Delete extern declaration of
11341 inferior_process_group. Include "inflow.h".
11342 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11343 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11344 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11345 (our_process_group, inferior_process_group): Extern declarations.
11347 * procfs.c: Include "gdb_assert.h".
11349 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11350 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11351 * jv-typeprint.c (java_type_print_base): Ditto.
11352 * typeprint.c (typedef_print): Eliminate STREQ.
11353 * cli/cli-script.c (define_command, define_command): Ditto.
11354 * main.c (captured_main): Ditto.
11355 * values.c (lookup_internalvar): Ditto.
11356 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11357 within `if' conditional.
11358 * linespec.c (decode_line_2): Ditto.
11359 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11360 (bfd_openw_with_cleanup): Ditto.
11362 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11364 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11365 legacy_extract_return_value and store_return_value to
11366 legacy_return_value.
11368 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11370 * win32-nat.c (get_relocated_section_addrs): New function. Find
11371 section load addresses for symbol handling in relocated DLLs.
11372 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11374 2003-02-05 Fred Fish <fnf@intrinsity.com>
11376 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11378 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11380 (angel_RDI_info): Ditto.
11381 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11383 (threads_continue_all_with_signals): Ditto.
11385 2003-02-05 Jim Ingham <jingham@apple.com>
11386 Keith Seitz <keiths@redhat.com>
11387 Elena Zannoni <ezannoni@redhat.com>
11388 Andrew Cagney <ac131313@redhat.com>
11390 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11391 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11392 (SUBDIR_MI_OBS): Add "mi-interp.o".
11393 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11394 (SFILES): Add "interps.c".
11395 (COMMON_OBS): Add "interps.o".
11396 (interps_h, mi_main_h): Define.
11397 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11398 (mi-main.o, main.o, event-top.o): Update dependencies.
11399 * cli/cli-interp.c: New file.
11400 * interps.h, interps.c: New files.
11401 * top.c: (gdb_init): Don't install the default interpreter, handed
11403 * main.c: Include "interps.h".
11404 (interpreter_p): Note that it should malloc'ed.
11405 (captured_command_loop): Call current_interp_command_loop.
11406 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11407 xfree and xstrdup when updating interpreter_p. Install the
11408 default interpreter. Add hack to stop mi1's copyright notice
11410 * event-top.h (gdb_setup_readline): Declare.
11411 (gdb_disable_readline): Declare.
11412 * event-top.c: Include "interps.h".
11413 (display_gdb_prompt): Call current_interp_display_prompt_p.
11414 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11415 gdb_stdlog, and gdb_stdtarg.
11416 (_initialize_event_loop): Don't call gdb_setup_readline.
11417 * cli-out.c (cli_out_set_stream): New function.
11418 * cli-out.h (cli_out_set_stream): Declare.
11420 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11422 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11423 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11424 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11425 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11426 config/i386/i386v42mp.mt: Removed.
11428 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11430 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11433 2003-02-05 Michael Chastain <mec@shout.net>
11435 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11436 2.12.1 and earlier versions.
11438 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11440 Remove orphaned hosts, targets and files.
11441 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11442 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11443 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11444 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11445 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11446 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11447 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11448 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11449 * config/sparc/tm-sp64sim.h: Delete.
11450 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11452 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11453 mips*-dec-mach3* targets.
11455 2003-02-04 Michael Chastain <mec@shout.net>
11457 * NEWS: Fix typo: sepcifying -> specifying.
11459 2003-02-04 Michael Chastain <mec@shout.net>
11461 * dwarfread.c: Add documentation on the state of dwarf-1,
11462 looking towards obsoletion.
11464 2003-02-03 Michael Chastain <mec@shout.net>
11466 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11467 gdb/testsuite/gdb.c++/pr-1023.exp.
11469 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11471 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11472 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11474 * utils.c (init_page_info): Delete reference to MPW in comments.
11475 * main.c (captured_main): Delete #ifdef MPW.
11477 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11479 * NEWS: Note that the m32r-*-elf* is obsolete.
11480 * monitor.c (monitor_expect): Obsolete reference to m32r.
11481 * configure.tgt: Mark m32r-*-elf* as obsolete.
11482 * MAINTAINERS: Mark m32k as obsolete.
11483 * m32r-rom.c: Obsolete file.
11484 * config/m32r/m32r.mt: Obsolete file.
11485 * config/m32r/tm-m32r.h: Obsolete file.
11486 * m32r-stub.c: Obsolete file.
11487 * m32r-tdep.c: Obsolete file.
11489 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11491 * NEWS: Mention that the z8k-zilog-none is obsolete.
11492 * MAINTAINERS: Mark z8k as obsolete.
11493 * configure.tgt: Obsolete the z8k-*-coff* target.
11494 * config/z8k/z8k.mt: Obsolete file.
11495 * config/z8k/tm-z8k.h: Obsolete file.
11496 * z8k-tdep.c: Obsolete file.
11498 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11500 * NEWS: Mention that the mn10200-elf is obsolete.
11501 * configure.tgt: Obsolete mn10200-*-* target.
11502 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11503 mention that the mn10200 is obsolete.
11504 * breakpoint.h: Ditto.
11505 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11506 * config/mn10200/mn10200.mt: Obsolete file.
11507 * config/mn10200/tm-mn10200.h: Obsolete file.
11508 * mn10200-tdep.c: Obsolete file.
11510 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11512 * MAINTAINERS: Mark h8500 as obsolete.
11513 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11514 * findvar.c (value_from_register): Ditto.
11515 * h8500-tdep.c: Mark file as obsolete.
11516 * config/h8500/h8500.mt: Ditto.
11517 * config/h8500/tm-h8500.h: Ditto.
11518 * NEWS: Mention that h8500 is obsolete.
11520 2003-02-04 David Carlton <carlton@math.stanford.edu>
11522 * objfiles.c (allocate_objfile): Always set name. Add comment at
11524 * jv-lang.c (get_dynamics_objfile): Add comment.
11526 2003-02-04 David Carlton <carlton@math.stanford.edu>
11528 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11529 * printcmd.c (build_address_symbolic): Replace uses of
11530 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11531 SYMBOL_NAME, and asm_demangle.
11534 2003-02-04 David Carlton <carlton@math.stanford.edu>
11536 * linespec.c (decode_compound): Extract code into
11538 (lookup_prefix_sym): New function.
11540 2003-02-04 David Carlton <carlton@math.stanford.edu>
11542 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11543 FLOAT_COERCION_BADNESS.
11544 * gdbtypes.c (rank_one_type): Replace all uses of
11545 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11547 2003-02-04 Jim Blandy <jimb@redhat.com>
11549 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11550 section, let dwarf_macinfo_section point to it, not
11553 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11555 Pointed out by Anton Blanchard <anton@samba.org>.
11556 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11557 (ppc_linux_at_sigtramp_return_path): Use it.
11559 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11561 * defs.h (streq): Add prototype.
11562 * utils.c (streq): New function.
11564 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11565 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11566 * mdebugread.c (new_symbol): Likewise.
11567 * stabsread.c (define_symbol): Likewise.
11568 * coffread.c (process_coff_symbol): Likewise.
11569 * dwarfread.c (new_symbol): Likewise.
11571 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11572 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11574 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11575 SYMBOL_INIT_DEMANGLED_NAME.
11576 * objfiles.c: Include "hashtab.h".
11577 (allocate_objfile): Call htab_set_functions_ex for the
11578 demangled_names_hash.
11579 (free_objfile): Call htab_delete for the demangled_names_hash.
11580 * objfiles.h (struct htab): Add declaration.
11581 (struct objfile): Add demangled_names_hash.
11582 * symfile.c: Include "hashtab.h".
11583 (reread_symbols): Call htab_delete for the demangled_names_hash.
11584 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11585 SYMBOL_NAME in the bcache.
11586 * symtab.c: Include "hashtab.h". Update comments.
11587 (create_demangled_names_hash, symbol_set_names): New functions.
11588 (symbol_find_demangled_name): New function, broken out from
11589 symbol_init_demangled_names.
11590 (symbol_init_demangled_names): Use it.
11591 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11592 (SYMBOL_SET_NAMES): New macro.
11593 (symbol_set_names): Add prototype.
11595 2003-02-03 Jim Blandy <jimb@redhat.com>
11597 Use a single, consistent representation for an empty minimal
11598 symbol table in an objfile.
11599 * objfiles.c (terminate_minimal_symbol_table): New function.
11600 (allocate_objfile): Call it.
11601 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11602 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11604 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11605 objfile has minimal symbols, compare minimal_symbol_count to zero,
11606 instead of comparing msymbols with NULL.
11607 * objfiles.c (have_minimal_symbols): Same.
11608 * solib-sunos.c (solib_add_common_symbols): Call
11609 terminate_minimal_symbol_table.
11610 * symfile.c (reread_symbols): Same.
11612 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11614 * s390-tdep.c (s390_address_class_type_flags)
11615 (s390_address_class_type_flags_to_name)
11616 (s390_address_class_name_to_type_flags): New functions.
11617 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11618 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11620 2003-02-03 Michael Snyder <msnyder@redhat.com>
11622 * arm-tdep.c: Fix spell-o in comment.
11624 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11626 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11627 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11628 error messages to contain BFD filename.
11630 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11632 Fix PR gdb/742 gdb/743 gdb/877
11633 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11634 (do_mixed_source_and_assembly): Use
11635 make_cleanup_ui_out_tuple_begin_end and
11636 make_cleanup_ui_out_tuple_begin_end.
11637 (do_mixed_source_and_assembly): Ditto.
11638 * thread.c (do_captured_list_thread_ids): Ditto.
11639 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11640 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11641 ui_out_tuple_end): Delete prototypes.
11642 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11643 ui_out_list_end, ui_out_tuple_end): Delete.
11645 From Kevin Buettner <kevinb@redhat.com>:
11646 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11647 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11648 (do_cleanup_table_end): New functions.
11649 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11650 Use cleanups to invoke_ui_out_tuple_end().
11651 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11652 * cli/cli-setshow.c (cmd_show_list): Use
11653 make_cleanup_ui_out_tuple_begin_end.
11655 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11657 * frame.c (frame_unwind_register): New function.
11658 (frame_unwind_unsigned_register): Use.
11659 (frame_unwind_signed_register): Use.
11660 (frame_read_register): New function.
11661 * frame.h (frame_unwind_register): Declare.
11662 (frame_read_register): Declare.
11664 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11665 and frame_unwind_register instead of read_memory, write_register
11666 and deprecated_write_register_bytes.
11668 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11670 * frame.h: Note that namelen can be negative.
11671 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11674 * NEWS: Mention that the d10v's `regs' command is deprecated.
11675 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11676 (d10v_print_registers_info): New function.
11677 (show_regs): Call d10v_print_registers_info.
11678 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11680 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11682 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11683 lost in the previous patch.
11685 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11687 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11688 * stack.c (print_frame_info_base): Output complete FRAME tuple
11689 for synthesized frames.
11691 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11693 * mips-nat.c (zerobuf): Delete.
11694 (fetch_inferior_registers): Alloc local zerobuf.
11695 (fetch_core_registers): Alloc local zerobuf.
11696 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11697 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11698 * thread-db.c (thread_db_store_registers): Ditto.
11699 * sh-tdep.c (sh_do_register): Ditto.
11700 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11701 * remote-sim.c (gdbsim_store_register): Ditto.
11702 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11703 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11704 * monitor.c (monitor_supply_register): Ditto.
11705 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11706 * mips-nat.c (fetch_inferior_registers): Ditto.
11707 * m68klinux-nat.c (fetch_register): Ditto.
11708 * lynx-nat.c (fetch_inferior_registers): Ditto.
11709 (fetch_inferior_registers): Ditto.
11710 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11711 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11712 (hpux_thread_store_registers): Ditto.
11713 * hppah-nat.c (fetch_register): Ditto.
11714 * hppab-nat.c (fetch_register): Ditto.
11715 * hppa-tdep.c (pa_register_look_aside): Ditto.
11716 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11717 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11719 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11721 * gdbarch.sh: Explictly specify all method levels. When a
11722 variable with an empty level, provide a non-multi-arch default.
11723 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11724 * gdbarch.h: Re-generate.
11725 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11726 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11728 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11730 * defs.h (host_pointer_to_address): Delete declaration.
11731 (address_to_host_pointer): Delete declaration.
11732 * utils.c (host_pointer_to_address): Delete function.
11733 (address_to_host_pointer): Delete function.
11734 * procfs.c (procfs_address_to_host_pointer): New function.
11735 * procfs.c (proc_set_watchpoint): Use.
11736 (procfs_can_use_hw_breakpoint): Update comments.
11737 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11738 (som_solib_add): Use.
11739 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11740 * hppa-tdep.c (unwind_command): Use.
11742 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11744 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11747 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11748 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11749 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11750 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11751 (define_symbol): Update.
11752 * symfile.c (generic_load): Remove references to nindy.
11753 * symtab.c: Remove references to nindy.
11755 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11757 * infcmd.c (print_float_info): Delete code conditional on
11759 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11760 * config/m68k/nm-apollo68b.h: Ditto.
11761 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11762 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11763 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11765 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11767 * config/i386/tm-i386os9k.h: Removed.
11769 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11770 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11771 they're identical to i[3456]86-*-sysv* now.
11772 * config/i386/i386v32.mh: Removed.
11773 * config/i386/xm-i386v32.h: Removed.
11774 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11776 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11778 * config/i386/i386dgux.mh: Removed.
11779 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11781 * configure.in: Fix typo.
11782 * configure: Regenerated.
11784 2003-01-31 David Carlton <carlton@math.stanford.edu>
11786 * dwarf2read.c (dwarf2_locate_sections): Set
11787 dwarf_ranges_section.
11789 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11791 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11792 * utils.c: Update comments documenting legitimate uses of PTR.
11794 * utils.c: Re-indent.
11796 * config/djgpp/fnchange.lst: Delete nindy files.
11797 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11798 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11799 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11800 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11801 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11802 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11803 * Makefile.in (init.c): Remove nindy references.
11804 (saber_gdb): Delete rule.
11805 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11806 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11808 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11809 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11810 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11811 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11812 nindy-share/stop.h.
11813 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11814 * saber.suppress: Delete file.
11816 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11818 * dbxread.c (stabs_data): New static variable.
11819 (fill_symbuf): Support an in-memory buffer for stabs data.
11820 (stabs_seek): New function.
11821 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11822 (read_ofile_symtab): Use stabs_seek.
11823 (elfstab_build_psymtabs): Take an asection* instead of
11824 an offset and size. Relocate the stabs data if necessary.
11825 Save the section* for dbx_psymtab_to_symtab.
11826 * dwarf2read.c: Add section variables for each debug section.
11827 (dwarf2_locate_sections): Fill them in.
11828 (dwarf2_read_section): Take an asection* argument.
11829 Relocate the section contents if necessary.
11830 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11831 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11832 it to dwarf2_read_section.
11833 (dwarf2_build_frame_info): Update callers.
11834 * elfread.c (elf_symfile_read): Update call to
11835 elfstab_build_psymtabs.
11836 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11837 (DBX_STAB_SECTION): New macro.
11838 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11839 * symfile.c (symfile_dummy_outputs): New function.
11840 (symfile_relocate_debug_section): New function.
11841 * symfile.h (symfile_relocate_debug_section): Add prototype.
11843 2003-01-31 Richard Henderson <rth@redhat.com>
11845 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11846 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11847 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11848 * alpha-tdep.c (alpha_register_name): Add "unique".
11849 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11850 (ALPHA_UNIQUE_REGNUM): New.
11851 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11853 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11855 * README: Remove reference to Ericsson 1800 monitor.
11856 * Makefile.in (remote-es.o): Delete rule.
11857 (ALLDEPFILES): Delete remote-es.c.
11858 * remote-es.c: Delete file.
11859 * config/m68k/es1800.mt: Delete file.
11860 * config/djgpp/fnchange.lst: Update.
11861 * configure.tgt: Delete m68*-ericsson-* target.
11863 2003-01-31 Adam Fedor <fedor@gnu.org>
11865 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11866 Remove duplicate/shadowing variable of same name.
11868 2003-01-30 Jim Blandy <jimb@redhat.com>
11870 * symfile.c (find_separate_debug_file): Assert that the objfile's
11871 directory name we compute ends with a slash, and then assume that
11872 that's so everywhere we use it.
11874 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11876 * valops.c (value_assign): Flush frame cache after stores to memory
11879 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11881 * Makefile.in (mon960-rom.o): Delete rule.
11882 * mon960-rom.c: Delete file.
11884 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11886 * d10v-tdep.c: Include "frame-unwind.h".
11887 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11889 (next_addr, uses_frame): Delete.
11890 (struct d10v_unwind_cache): Define.
11891 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11892 Use info instead of next_addr and uses_frame globals.
11893 (d10v_frame_init_saved_regs): Delete function.
11894 (d10v_init_extra_frame_info): Delete function.
11895 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11896 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11897 init_frame_pc or frame_saved_pc.
11898 (d10v_pop_frame): Delete function.
11899 (do_d10v_pop_frame): Delete function.
11900 (d10v_frame_chain): Delete function.
11901 (d10v_frame_chain_valid): Delete function.
11902 (d10v_frame_pc_unwind): New function.
11903 (d10v_frame_id_unwind): New function.
11904 (saved_regs_unwinder): New function.
11905 (d10v_frame_register_unwind): New function.
11906 (d10v_frame_pop): New function.
11907 (d10v_frame_unwind): New variable.
11908 (d10v_frame_p): New function.
11909 (d10v_frame_saved_pc): Delete function.
11910 * Makefile.in (d10v-tdep.o): Update dependencies.
11912 2003-01-30 J. Brobecker <brobecker@gnat.com>
11914 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11915 causing some regressions due to a change in the default value
11918 2003-01-29 Richard Henderson <rth@redhat.com>
11919 Elena Zannoni <ezannoni@redhat.com>
11920 Daniel Jacobowitz <drow@mvista.com>
11923 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11925 (RANGES_SECTION): New.
11926 (dwarf_ranges_buffer): New variable.
11927 (struct comp_unit_head): Add member "die".
11928 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11929 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11930 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11931 (dwarf2_locate_sections): Likewise.
11932 (dwarf2_build_psymtabs): Read .debug_ranges.
11933 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11934 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11935 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11936 Look for DW_AT_ranges and return the bounding box.
11938 2003-01-29 Brian Ford <ford@vss.fsi.com>
11940 * win32-nat.c (cygwin_pid): Removed as unused.
11941 (child_attach): Try fall back to Cygwin pid.
11943 2003-01-29 Jim Blandy <jimb@redhat.com>
11945 * objfiles.h (struct objfile): Doc fix.
11947 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11949 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11950 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11951 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11952 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11953 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11954 (FRAME_SAVED_PC): Change to a function with predicate.
11955 * gdbarch.h, gdbarch.c: Re-generate.
11957 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11959 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11961 * complaints.c (complain): Delete function.
11962 * complaints.h (struct deprecated_complaint): Delete definition.
11963 (complain): Delete declaration.
11965 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11967 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11970 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11972 * sentinel-frame.h, sentinel-frame.c: New files.
11973 * Makefile.in (frame.o): Update dependencies.
11974 (SFILES): Add sentinel-frame.c.
11975 (sentinel_frame_h): Define.
11976 (COMMON_OBS): Add sentinel-frame.o.
11977 (sentinel-frame.o): Specify dependencies.
11978 * frame.c: Include "sentinel-frame.h".
11979 (frame_register_unwind): Rewrite assuming that there is always a a
11981 (frame_register, generic_unwind_get_saved_register): Ditto.
11982 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11983 (create_sentinel_frame, unwind_to_current_frame): New functions.
11984 (get_current_frame): Rewrite using create_sentinel_frame and
11985 unwind_to_current_frame. When possible, always create a frame.
11986 (create_new_frame): Set next to the sentinel frame.
11987 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11988 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11989 ID cache when necessary.
11990 (frame_saved_regs_id_unwind): Use frame_relative_level.
11991 (deprecated_generic_get_saved_register): Use frame_relative_level,
11992 get_frame_saved_regs, get_frame_pc, get_frame_base and
11994 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11997 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11999 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
12001 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12003 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
12004 (maintenance_set_profile_cmd): Use error () instead of warning ().
12006 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
12008 * configure.in: Check that -pg works if using --enable-profiling.
12009 Check for monstartup and _mcleanup regardless of --enable-profiling.
12010 * maint.c: Check for monstartup and _mcleanup before using them.
12011 * config.in: Regenerated.
12012 * configure: Regenerated.
12014 2003-01-24 Nick Clifton <nickc@redhat.com>
12016 * Add sh2e support:
12018 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
12020 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
12021 (sh2e_show_regs): New.
12022 (sh_gdbarch_init): Handle bfd_mach_sh2e.
12023 * config/sh/tm-sh.h: Added sh2e to comments.
12025 2003-01-23 Jim Blandy <jimb@redhat.com>
12027 * symfile.c (syms_from_objfile): Don't print the "(no debugging
12028 symbols found)" message here; we haven't checked for a separate
12029 debug info file yet, so we don't know yet.
12030 (symbol_file_add_with_addrs_or_offsets): Print it here, after
12031 we've looked everywhere. Also, there's no need to print a special
12032 message when we're loading the separate debug info file: the one
12033 symbol_file_add prints is fine.
12035 2003-01-23 Alexander Larsson <alexl@redhat.com>
12036 Jim Blandy <jimb@redhat.com>
12038 Add support for executables whose debug info has been separated
12039 out into a separate file, leaving only a link behind.
12040 * objfiles.h (struct objfile): New fields: separate_debug_objfile
12041 and separate_debug_objfile_backlink.
12042 (put_objfile_before): New declaration.
12043 * symfile.c: #include "filenames.h".
12044 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
12045 debug info in a separate file, read that, too. Save the addrs
12046 argument, so we can use it again to read the separated debug info;
12047 syms_from_objfile modifies the table we pass it.
12048 (reread_symbols): After re-reading an objfile, call
12049 reread_separate_symbols to refresh its separate debug info
12050 objfile, if it has one.
12051 (reread_separate_symbols, find_separate_debug_file,
12052 get_debug_link_info, separate_debug_file_exists): New functions.
12053 (debug_file_directory): New global var.
12054 (_initialize_symfile): Initialize debug_file_directory, and
12055 provide the new `set debug-file-directory' command to let the user
12057 * objfiles.c (free_objfile): If this objfile has its debug info in
12058 a separate objfile, free that one too. If this is itself a
12059 separate debug info objfile, clear our parent's backlink.
12060 (put_objfile_before): New function.
12061 * utils.c (gnu_debuglink_crc32): New function.
12062 * defs.h (gnu_debuglink_crc32): New declaration.
12063 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12064 * configure.in: Handle --with-separate-debug-dir config option.
12065 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12066 * acconfig.h (DEBUGDIR): New macro.
12067 * configure, aclocal.m4, config.in: Regenerated.
12069 2003-01-22 Jim Blandy <jimb@redhat.com>
12071 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12072 like the old symbol_file_add, but taking new arguments: you can
12073 now pass in either a `struct section_addr_info' list to say where
12074 each section is loaded, or a `struct section_offsets' table. Pass
12075 these new arguments through to syms_from_objfile as appropriate.
12076 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12077 with the appropriate quiescent values for the new arguments.
12079 * symfile.c: #include "gdb_assert.h".
12080 (syms_from_objfile): Add the ability to pass in a section offset
12081 table directly, as an alternative to the section_addr_info table.
12082 Document arguments better.
12083 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12084 * symfile.h (syms_from_objfile): Update declaration.
12085 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12087 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12089 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12091 Original patch by Tom Tromey <tromey@cygnus.com> and
12092 Jason Molenda <jmolenda@apple.com>.
12093 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12094 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12095 * NEWS: Mention profiling.
12096 * configure.in (--enable-gdbtk): Fix typo.
12097 (--enable-profiling): New. Set PROFILE_CFLAGS.
12098 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12100 (profiling_state): New variable.
12101 (mcleanup_wrapper): New function.
12102 (_initialize_maint): Remove NOTYET, fix call to
12103 add_setshow_boolean_cmd for "maint set profile".
12104 * configure: Regenerated.
12106 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12108 * Makefile.in (install-gdbtk): Install PNG images too.
12110 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12112 * exec.c (text_start): Delete global variable.
12113 (exec_file_attach): Make text_start local to the function.
12114 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12115 * valops.c (hand_function_call): Delete code that handles
12116 BEFORE_TEXT_END and AFTER_TEXT_END.
12117 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12118 of CALL_DUMMY_LOCATION.
12119 * gdbarch.c: Regenerate.
12120 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12121 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12122 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12123 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12124 (text_end): Delete extern declaration.
12126 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12128 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12129 * blockframe.c (backtrace_below_main): Move to "frame.c".
12130 (frame_chain_valid): Delete check for backtrace_below_main.
12131 (_initialize_blockframe): Delete initialization, move ``set
12132 backtrace-below-main'' command to "frame.c".
12133 (do_flush_frames_sfunc): Delete function.
12134 * frame.c: Include "command.h" and "gdbcmd.h".
12135 (frame_type_from_pc): New function.
12136 (create_new_frame): Use frame_type_from_pc.
12137 (legacy_get_prev_frame): New function.
12138 (get_prev_frame): Rewrite. When an old style frame, call
12139 legacy_get_prev_frame. Otherwize, unwind the PC first.
12140 (_initialize_frame): Add ``set backtrace-below-main'' command.
12141 * Makefile.in (frame.o): Update dependencies.
12143 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12145 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12146 DEPRECATED_REGISTERS_INFO.
12148 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12150 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12151 Maintainers'. Update `Various Maintainers'.
12153 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12155 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12156 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12157 Suppress actual parameters when `-'.
12158 * gdbarch.h, gdbarch.c: Regenerate.
12160 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12162 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12163 code handling dummy frames.
12165 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12167 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12168 (struct frame_unwind): Add field pop.
12169 * frame.h (frame_pop): Declare.
12170 * frame.c (frame_saved_regs_pop): New function.
12171 (trad_frame_unwinder): Add frame_saved_regs_pop.
12172 (frame_pop): New function.
12173 * dummy-frame.c (dummy_frame_pop): New function.
12174 (discard_innermost_dummy): New function.
12175 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12176 (dummy_frame_unwind): Add dummy_frame_pop.
12177 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12178 * valops.c (hand_function_call): Ditto.
12179 * stack.c (return_command): Ditto.
12181 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12183 * cris-tdep.c: Fix function declaration indentation.
12184 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12185 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12186 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12187 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12188 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12189 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12191 2003-01-18 Michael Chastain <mec@shout.net>
12193 * README (Unpacking and Installation -- quick overview):
12194 Warn against ".../gdb-5.3/gdb/configure".
12196 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12198 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12199 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12200 (struct frame_unwind): Declare opaque.
12201 (dummy_frame_p): Declare function.
12202 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12203 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12204 * dummy-frame.c: Include "frame-unwind.h".
12205 (dummy_frame_p): New function.
12206 (dummy_frame_unwind): New variable.
12207 * frame.c: Include "frame-unwind.h".
12208 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12209 to use the new unwind field.
12210 (set_unwind_by_pc): Delete function.
12211 (create_new_frame, get_prev_frame): Set unwind field using
12212 frame_unwind_find_by_pc.
12213 (trad_frame_unwind, trad_frame_unwinder): New variables.
12214 * frame.h (trad_frame_unwind): Declare variable.
12215 (frame_id_unwind_ftype): Delete declaration.
12216 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12217 (struct frame_unwind): Declare opaque.
12218 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12219 register_unwind with a single unwind pointer.
12220 * frame-unwind.h, frame-unwind.c: New files.
12221 * Makefile.in (SFILES): Add frame-unwind.c.
12222 (frame_unwind_h): Define.
12223 (COMMON_OBS): Add frame-unwind.o.
12224 (frame-unwind.o): Specify dependencies.
12225 (frame.o, dummy-frame.o): Update dependencies.
12227 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12229 * ada-valprint.c: Eliminate PTR.
12230 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12231 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12232 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12233 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12234 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12235 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12236 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12238 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12240 * main.c (captured_main): Don't use PTR.
12241 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12242 * gdbtypes.c (lookup_primitive_typename): Ditto.
12243 (lookup_struct_elt_type): Ditto.
12244 * f-valprint.c (info_common_command): Ditto.
12245 (list_all_visible_commons): Ditto.
12246 * jv-typeprint.c (java_type_print_base): Ditto.
12248 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12249 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12250 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12251 i386-interix-nat.c and i386-interix-tdep.c. Rename
12252 m68klinux-nat.c and m68klinux-tdep.c. Rename
12253 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12254 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12255 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12256 * main.c (captured_main): Use xfree, not free.
12258 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12260 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12261 ID back using a parameter.
12262 * frame.c (frame_id_unwind): Update call.
12263 (frame_saved_regs_id_unwind): Update.
12264 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12265 * dummy-frame.h (struct frame_id): Add opaque declaration.
12266 (dummy_frame_id_unwind): Update declaration.
12268 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12270 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12272 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12274 * MAINTAINERS (Stephen P. Smith): Updated email address.
12276 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12279 * breakpoint.c (until_break_command): Add new argument. Use it to
12280 decide whether to stop only at the current frame or not.
12281 * breakpoint.h (until_break_command): Update prototype.
12282 * infcmd.c (until_command): Add new argument to until_break_command
12284 (advance_command): New function.
12285 (_initialize_infcmd): Update help string for 'until' command.
12286 Add new 'advance' command.
12288 2003-01-14 David Carlton <carlton@math.stanford.edu>
12290 * linespec.c (decode_line_1): Normalize comments.
12291 (set_flags): Ditto.
12292 (locate_first_half): Ditto.
12293 (decode_compound): Ditto.
12294 (symtab_from_filename): Ditto.
12295 (decode_all_digits): Ditto.
12296 (decode_dollar): Ditto.
12297 (find_methods): Ditto.
12298 (find_toplevel_char): Ditto.
12300 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12302 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12303 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12304 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12305 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12306 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12307 * language.c, language.h, m32r-tdep.c: Update copyright.
12308 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12309 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12310 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12311 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12312 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12313 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12315 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12317 * stabsread.h (process_later, resolve_cfront_continuation):
12319 Update copyright years.
12320 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12321 Update copyright year.
12322 * dbxread.c(struct cont_elem): Obsolete.
12323 (process_later, process_now): Obsolete functions.
12324 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12325 Update copyright year.
12326 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12327 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12328 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12329 (parse_partial_symbols): Obsolete cfront support.
12331 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12333 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12334 read_cfront_baseclasses, read_cfront_member_functions,
12335 resolve_cfront_continuation,read_cfront_static_fields,
12336 copy_cfront_struct_fields): Obsolete functions.
12337 (define_symbol, read_one_struct_field): Obsolete cfront support.
12338 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12339 Update Copyright year.
12341 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12343 * stack.c (print_frame_info, print_stack_frame_base_stub,
12344 print_stack_frame_base, show_and_print_stack_frame_stub,
12345 show_and_print_stack_frame, print_only_stack_frame_stub,
12346 print_only_stack_frame): Delete functions.
12347 (print_stack_frame_stub): Call print_frame_info instead of
12348 print_frame_info_base.
12349 (print_frame_info_base): Rename to print_frame_info.
12350 (backtrace_command_1): Call print_frame_info, instead of
12351 print_frame_info_base.
12352 (current_frame_command): Call print_stack_frame, instead of
12353 print_only_stack_frame.
12354 (frame_command): Call print_stack_frame, instead of
12355 show_and_print_stack_frame.
12356 (up_command): Ditto.
12357 (down_command): Ditto.
12358 * frame.h (print_only_stack_frame): Delete prototype.
12359 * infrun.c (normal_stop): Call print_stack_frame, instead of
12360 show_and_print_stack_frame.
12361 * thread.c (info_threads_command): Call print_stack_frame, instead
12362 of print_only_stack_frame.
12364 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12366 * README (Graphical interface to GDB): Update URL. Point at
12369 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12372 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12374 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12377 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12379 * thread-db.c (attach_thread): Prototype.
12380 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12381 thread information (ti), and valid flags (th_valid, ti_valid).
12382 (attach_thread): Move target_pid_to_str call to after the thread
12383 is added to GDB's list. Initialize the cache.
12384 (thread_get_info_callback, thread_db_map_id2thr)
12385 (thread_db_get_info): New functions.
12386 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12387 (thread_db_store_registers, thread_db_thread_alive)
12388 (thread_db_get_thread_local_address): Use them.
12389 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12390 of calling error() for threads in unknown state.
12392 (clear_lwpid_callback): New function.
12393 (thread_db_resume): Use it to clear the cache.
12395 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12397 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12398 (resume_callback): Remove dead code.
12400 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12402 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12404 * gdbarch.h, gdbarch.c: Regenerate.
12405 * stack.c (frame_info): Only initialize the saved registers when
12406 FRAME_INIT_SAVED_REGS_P.
12407 * frame.c (frame_saved_regs_register_unwind): Assert
12408 FRAME_INIT_SAVED_REGS_P.
12409 (deprecated_generic_get_saved_register): Ditto.
12411 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12413 * source.c (openp): Squelch warning about "filename".
12415 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12417 * source.c (openp): If the file does not exist don't necessarily
12420 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12423 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12424 (integer_types_same_name_p): New function.
12425 (rank_one_type): Use it.
12426 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12428 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12430 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12432 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12433 * configure.in: Add --with-sysroot.
12434 * configure: Regenerated.
12435 * main.c (gdb_sysroot): New variable.
12436 (captured_main): Initialize gdb_sysroot.
12437 * defs.h (gdb_sysroot): New extern declaration.
12438 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12440 2003-01-12 Michael Chastain <mec@shout.net>
12442 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12444 2003-01-12 Michael Chastain <mec@shout.net>
12446 * top.c (print_gdb_version): Bump copyright year to 2003.
12448 2003-01-12 David Carlton <carlton@bactrian.org>
12450 * linespec.c (symtab_from_filename): Rename variable 's' to
12453 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12455 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12457 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12459 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12461 * d10v-tdep.c: Include "gdb_assert.h".
12462 (d10v_store_return_value): Rewrite to match current interface.
12463 (d10v_extract_struct_value_address): Ditto.
12464 (d10v_extract_return_value): Ditto.
12465 (d10v_gdbarch_init): Set store_restore_value,
12466 extract_struct_value_address and extract_return_value.
12468 2003-01-12 J. Brobecker <brobecker@gnat.com>
12470 * hpread.c (set_namestring): New procedure replacing the
12471 SET_NAMESTRING macro.
12472 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12473 by calls to set_namestring.
12475 2003-01-11 J. Brobecker <brobecker@gnat.com>
12477 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12478 a compilation warning.
12479 (hpread_process_one_debug_symbol): Likewise.
12481 2003-01-10 David Carlton <carlton@math.stanford.edu>
12483 * linespec.c (decode_line_1): Rename variable 's' to
12485 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12486 (decode_dollar): Ditto.
12487 (decode_variable): Ditto.
12488 (symbol_found): Ditto.
12490 2003-01-09 Michael Chastain <mec@shout.net>
12492 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12494 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12496 * win32-nat.c (set_process_privilege): New function.
12497 (child_attach): Call set_process_privilege() to enable the
12498 SE_DEBUG_NAME user privilege if available in process token.
12500 2003-01-10 J. Brobecker <brobecker@gnat.com>
12502 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12503 compilation error in the previous revision.
12505 2003-01-09 David Carlton <carlton@math.stanford.edu>
12507 * linespec.c: Update copyright.
12509 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12511 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12512 than inferior_ptid.
12513 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12515 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12517 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12519 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12520 (frame_saved_regs_zalloc): Update.
12521 (frame_saved_regs_register_unwind): Update.
12522 (create_new_frame): Update.
12523 (get_prev_frame): Update.
12524 (frame_extra_info_zalloc): Update.
12525 (deprecated_get_frame_saved_regs): Update.
12526 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12527 * cris-tdep.c: Update comment.
12529 * somsolib.h: Fix function indentation.
12530 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12531 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12532 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12533 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12534 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12536 * infrun.c (follow_fork): Use ISO C definition.
12537 * expprint.c (print_subexp): Use xfree instead of free.
12538 * charset.c: Include "gdb_string.h" instead of <string.h>.
12539 (register_iconv_charsets): Use ISO C definition.
12540 (host_charset, target_charset): Ditto.
12541 * Makefile.in (charset.o): Update dependencies.
12542 (mi-cmd-env.o): Update dependencies.
12544 2003-01-08 Andrew Cagney <cagney@redhat.com>
12546 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12549 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12551 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12552 build directories. Save edited gdb output in Mbuild.log. If a
12553 build fails, remove any final GDB executable.
12555 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12557 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12558 replacing hex constants with function names and stripping leading
12559 file name directory prefixes.
12561 2003-01-08 Andrew Cagney <cagney@redhat.com>
12563 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12566 2003-01-08 David Carlton <carlton@math.stanford.edu>
12568 * linespec.c (decode_line_1): Move code into decode_variable.
12569 (decode_variable): New function.
12571 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12573 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12575 2003-01-08 Andrew Cagney <cagney@redhat.com>
12577 * cris-tdep.c (cris_frame_init_saved_regs): Use
12578 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12580 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12581 (sh64_nofp_frame_init_saved_regs): Ditto.
12582 (sh_fp_frame_init_saved_regs): Ditto.
12583 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12584 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12585 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12586 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12588 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12590 * minsyms.c (lookup_minimal_symbol): Update comment.
12591 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12592 (lookup_minimal_symbol_solib_trampoline): Likewise.
12594 2003-01-08 Andrew Cagney <cagney@redhat.com>
12596 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12597 frame_relative_level.
12599 * alpha-tdep.c: Use get_frame_extra_info.
12600 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12601 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12602 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12603 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12605 * alpha-tdep.c: Use get_next_frame.
12606 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12607 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12608 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12609 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12610 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12611 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12612 * xstormy16-tdep.c: Ditto.
12614 2003-01-07 Andrew Cagney <cagney@redhat.com>
12616 * alpha-tdep.c: Use get_frame_base.
12617 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12618 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12619 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12620 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12621 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12622 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12623 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12624 * config/sparc/tm-sparc.h: Ditto.
12626 2003-01-07 Andrew Cagney <cagney@redhat.com>
12628 * frame.c (deprecated_get_frame_context): New function.
12629 (deprecated_set_frame_context): New function.
12630 * frame.h (deprecated_get_frame_context): Declare.
12631 (deprecated_set_frame_context): Declare.
12632 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12633 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12635 2003-01-07 Andrew Cagney <cagney@redhat.com>
12637 * frame.c (deprecated_set_frame_next_hack): New function.
12638 (deprecated_set_frame_prev_hack): New function.
12639 * frame.h (deprecated_set_frame_next_hack): Declare.
12640 (deprecated_set_frame_prev_hack): Declare.
12641 * mcore-tdep.c (analyze_dummy_frame): Use
12642 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12643 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12645 2003-01-07 David Carlton <carlton@math.stanford.edu>
12647 * linespec.c (decode_line_1): Move code into decode_dollar.
12648 (decode_dollar): New function.
12650 2003-01-07 Andrew Cagney <cagney@redhat.com>
12652 * arm-tdep.c (arm_init_extra_frame_info): Use
12653 deprecated_update_frame_base_hack.
12654 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12655 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12656 (fix_frame_pointer): Ditto.
12657 (mn10300_analyze_prologue): Ditto.
12659 2003-01-07 Andrew Cagney <cagney@redhat.com>
12661 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12662 extra_info using frame_extra_info_zalloc.
12663 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12664 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12665 (sh64_init_extra_frame_info): Ditto.
12666 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12667 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12668 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12669 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12670 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12671 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12672 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12673 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12674 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12675 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12676 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12677 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12679 * mn10300-tdep.c (analyze_dummy_frame): Use
12680 deprecated_set_frame_extra_info_hack.
12681 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12683 2003-01-07 J. Brobecker <brobecker@gnat.com>
12685 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12686 class is not scText. These do not define "real" procedures.
12687 (parse_partial_symbols): Likewise.
12689 2003-01-06 Michael Snyder <msnyder@redhat.com>
12691 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12693 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12695 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12696 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12697 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12698 deprecated_frame_xmalloc_with_cleanup.
12699 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12700 deprecated_frame_xmalloc.
12701 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12702 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12704 2003-01-06 Andrew Cagney <cagney@redhat.com>
12706 * x86-64-linux-tdep.c: Include "osabi.h".
12707 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12709 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12711 2003-01-06 Andrew Cagney <cagney@redhat.com>
12713 * MAINTAINERS (Target Instruction Set Architectures): Update
12714 arm-elf. Can be built with -Werror, has been multiarched.
12716 * value.h (unpack_long): Make buffer parameter constant.
12717 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12718 * scm-lang.h (scm_parse): Ditto.
12719 * defs.h (extract_typed_address, extract_address): Ditto.
12720 (extract_long_unsigned_integer): Ditto.
12721 * inferior.h (unsigned_pointer_to_address): Ditto.
12722 (signed_pointer_to_address): Ditto.
12723 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12724 * gdbarch.h, gdbarch.c: Regenerate.
12725 * findvar.c (extract_long_unsigned_integer): Update.
12726 (extract_address): Update.
12727 (extract_typed_address): Update.
12728 (unsigned_pointer_to_address): Update.
12729 * values.c (unpack_long): Update.
12730 (unpack_double): Update.
12731 (unpack_pointer): Update.
12732 (unpack_field_as_long): Update.
12733 * d10v-tdep.c (d10v_pointer_to_address): Update.
12734 * avr-tdep.c (avr_pointer_to_address): Update.
12735 * scm-lang.c (scm_unpack): Update.
12736 * findvar.c (signed_pointer_to_address): Update.
12738 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12740 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12741 since it is in i386-tdep.c.
12743 2003-01-06 J. Brobecker <brobecker@gnat.com>
12745 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12746 failure introduced in the previous change.
12748 2003-01-05 Michael Chastain <mec@shout.net>
12750 * README: Remove references to deleted remote-*.c files:
12751 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12752 remote-nrom.c, remote-os9k.c, remote-udi.c.
12754 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12756 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12757 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12758 i386_get_longjmp_target.
12760 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12762 * arm-tdep.c (prologue_cache): Change to a pointer.
12763 (_initialize_arm_tdep): Allocate prologue_cache.
12764 (check_prologue_cache): Update.
12765 (save_prologue_cache): Update.
12766 (arm_gdbarch_init): Update.
12768 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12770 * stabsread.c (update_method_name_from_physname): Call complaint()
12773 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12775 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12776 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12777 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12779 * blockframe.c: Include "gdbcmd.h" and "command.h".
12780 (backtrace_below_main): New variable.
12781 (file_frame_chain_valid, func_frame_chain_valid)
12782 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12783 (generic_func_frame_chain_valid): Remove functions.
12784 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12785 (_initialize_blockframe): New function.
12786 * Makefile.in (blockframe.o): Update dependencies.
12787 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12788 comment. Call frame_chain_valid ().
12789 * frame.h: Remove old prototypes. Add prototype for
12790 frame_chain_valid and update comments to match.
12791 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12792 Remove old comment.
12793 * gdbarch.h: Regenerated.
12794 * gdbarch.c: Regenerated.
12796 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12797 set_gdbarch_frame_chain_valid.
12798 * avr-tdep.c (avr_gdbarch_init): Likewise.
12799 * cris-tdep.c (cris_gdbarch_init): Likewise.
12800 * frv-tdep.c (frv_gdbarch_init): Likewise.
12801 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12802 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12803 (i386_nw_init_abi): Likewise.
12804 (i386_gdbarch_init): Likewise.
12805 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12807 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12808 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12809 * mips-tdep.c (mips_gdbarch_init): Likewise.
12810 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12811 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12812 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12813 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12814 * s390-tdep.c (s390_gdbarch_init): Likewise.
12815 * sh-tdep.c (sh_gdbarch_init): Likewise.
12816 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12817 * v850-tdep.c (v850_gdbarch_init): Likewise.
12818 * vax-tdep.c (vax_gdbarch_init): Likewise.
12819 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12821 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12822 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12823 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12824 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12825 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12826 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12827 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12828 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12830 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12832 * Makefile.in (acconfig_h): Remove incorrect macro.
12833 (config_h): Define.
12834 (osabi.o): Update dependencies.
12835 * configure.tgt: Set gdb_osabi based on target triplet.
12836 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12837 * configure: Regenerated.
12838 * config.in: Regenerated.
12839 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12840 (GDB_OSABI_DEFAULT): Define if not already defined.
12841 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12842 (set_osabi_string): New variables.
12843 (gdbarch_register_osabi): Add new OS ABI to
12844 gdb_osabi_available_names.
12845 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12846 (set_osabi, show_osabi): New functions.
12847 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12849 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12851 * arch-utils.c (gdbarch_info_init): Set osabi to
12852 GDB_OSABI_UNINITIALIZED.
12853 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12854 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12855 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12856 * gdbarch.c: Regenerated.
12857 * gdbarch.h: Regenerated.
12858 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12860 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12861 * osabi.h (enum gdb_osabi): Move to defs.h.
12862 (gdbarch_init_osabi): Update prototype.
12863 * defs.h (enum gdb_osabi): Moved here.
12864 * Makefile.in: Update dependencies.
12866 * alpha-tdep.h: Don't include "osabi.h".
12867 (struct gdbarch_tdep): Remove osabi member.
12868 * alpha-tdep.c: Include "osabi.h".
12869 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12870 iterate over arches. Update call to gdbarch_init_osabi.
12871 (alpha_dump_tdep): Don't dump osabi.
12872 * alpha-linux-tdep.c: Include "osabi.h".
12873 * alpha-osf1-tdep.c: Include "osabi.h".
12874 * alphafbsd-tdep.c: Include "osabi.h".
12875 * alphanbsd-tdep.c: Include "osabi.h".
12877 * arm-tdep.h: Don't include "osabi.h".
12878 (struct gdbarch_tdep): Remove osabi member.
12879 * arm-tdep.c: Include "osabi.h".
12880 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12881 iterate over arches. Update call to gdbarch_init_osabi.
12882 (arm_dump_tdep): Don't dump osabi.
12883 * arm-linux-tdep.c: Include "osabi.h".
12884 * armnbsd-tdep.c: Include "osabi.h".
12886 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12887 Update call to gdbarch_init_osabi.
12889 * i386-tdep.h: Don't include "osabi.h".
12890 (struct gdbarch_tdep): Remove osabi member.
12891 * i386-tdep.c: Include "osabi.h".
12892 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12893 iterate over arches. Update call to gdbarch_init_osabi.
12894 (i386_dump_tdep): Don't dump osabi.
12895 * i386-linux-tdep.c: Include "osabi.h".
12896 * i386-sol2-tdep.c: Include "osabi.h".
12897 * i386bsd-tdep.c: Include "osabi.h".
12898 * i386gnu-tdep.c: Include "osabi.h".
12899 * i386ly-tdep.c: Include "osabi.h".
12900 * i386nbsd-tdep.c: Include "osabi.h".
12901 * i386obsd-tdep.c: Include "osabi.h".
12903 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12904 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12905 check osabi when iterating over arches. Update call to
12906 gdbarch_init_osabi.
12907 (mips_dump_tdep): Don't dump osabi.
12909 * ns32k-tdep.h: Don't include "osabi.h".
12910 (struct gdbarch_tdep): Remove.
12911 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12912 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12913 allocate tdep. Update call to gdbarch_init_osabi.
12914 (ns32k_dump_tdep): Remove.
12915 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12916 * ns32knbsd-tdep.c: Include "osabi.h".
12918 * ppc-tdep.h: Don't include "osabi.h".
12919 (struct gdbarch_tdep): Remove osabi member.
12920 * rs6000-tdep.c: Include "osabi.h".
12921 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12922 osabi when iterating over arches. Update call to
12923 gdbarch_init_osabi.
12924 (rs6000_dump_tdep): Don't dump osabi.
12925 * ppc-linux-tdep.c: Include "osabi.h".
12926 * ppcnbsd-tdep.c: Include "osabi.h".
12928 * sh-tdep.h: Don't include "osabi.h".
12929 (struct gdbarch_tdep): Remove osabi member.
12930 * sh-tdep.c: Include "osabi.h".
12931 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12932 iterate over arches. Update call to gdbarch_init_osabi.
12933 (sh_dump_tdep): Don't dump osabi.
12934 * shnbsd-tdep.c: Include "osabi.h".
12936 * sparc-tdep.c: Include "osabi.h".
12937 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12938 iterate over arches. Update call to gdbarch_init_osabi.
12939 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12942 * vax-tdep.h: Don't include "osabi.h".
12943 (struct gdbarch_tdep): Remove.
12944 * vax-tdep.c: Include "osabi.h".
12945 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12946 iterate over arches. Don't allocate tdep. Update call
12947 to gdbarch_init_osabi.
12948 (vax_dump_tdep): Remove.
12949 (_initialize_vax_tdep): Update call to gdbarch_register.
12951 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12953 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12955 (breakpoint_re_set_one): Don't fetch the value for a disabled
12958 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12960 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12961 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12962 (COERCE_FLOAT_TO_DOUBLE): Remove.
12963 * gdbarch.c: Regenerate.
12964 * gdbarch.h: Regenerate.
12965 * Makefile.in: Remove value_h from gdbarch_h.
12966 * valops.c (coerce_float_to_double): New variable.
12967 (default_coerce_float_to_double): Remove.
12968 (standard_coerce_float_to_double): Remove.
12969 (value_arg_coerce): Use coerce_float_to_double.
12970 (_initialize_valops): Add "set coerce-float-to-double".
12971 * value.h (default_coerce_float_to_double): Remove prototype.
12972 (standard_coerce_float_to_double): Remove prototype.
12974 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12976 * mdebugread.c (parse_symbol): Likewise.
12977 * stabsread.c (define_symbol): Mark all functions as prototyped.
12979 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12980 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12981 set_gdbarch_coerce_float_to_double.
12982 * arm-tdep.c (arm_gdbarch_init): Likewise.
12983 * frv-tdep.c (frv_gdbarch_init): Likewise.
12984 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12985 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12986 * mips-tdep.c (mips_gdbarch_init): Likewise.
12987 (mips_coerce_float_to_double): Remove.
12988 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12989 (rs6000_coerce_float_to_double): Remove.
12990 * s390-tdep.c (s390_gdbarch_init): Likewise.
12991 * sh-tdep.c (sh_gdbarch_init): Likewise.
12992 (sh_coerce_float_to_double): Remove.
12993 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12994 (sparc_coerce_float_to_double): Remove.
12995 * v850-tdep.c (v850_gdbarch_init): Likewise.
12996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12997 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12998 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12999 (hppa_coerce_float_to_double): Remove prototype.
13000 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
13002 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13004 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
13006 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
13008 Suggested by Stewart Brown <sb24@avaya.com>:
13009 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
13010 in recursive calls. Handle TYPE_CODE_TYPEDEF.
13011 (c_type_print_varspec_suffix): Likewise.
13013 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13015 * configure.in: Don't set and AC_SUBST SUBDIRS.
13016 * configure: Regenerated.
13018 * configure.in: Remove code dealing with shared libraries.
13019 * Makefile.in: Remove HLDFLAGS and HLDENV.
13020 * configure: Regenerated.
13022 2003-01-04 Andrew Cagney <ac131313@redhat.com>
13024 * frame.c (deprecated_frame_xmalloc): New function.
13025 (deprecated_set_frame_saved_regs_hack): New function.
13026 (deprecated_set_frame_extra_info_hack): New function.
13027 * frame.h (deprecated_frame_xmalloc): Declare.
13028 (deprecated_set_frame_saved_regs_hack): Declare.
13029 (deprecated_set_frame_extra_info_hack): Declare.
13031 2003-01-04 Mark Kettenis <kettenis@gnu.org>
13033 * configure.in: Move code that provides the --enable-gdbtk option
13034 right after the code that handles the --enable-tui option, and
13035 polish it somewhat.
13036 * configure: Regenerated.
13038 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
13039 AC_CHECK_FUNCS and remove the old check for pread64.
13040 * acinclude.m4 (AC_GNU_SOURCE): New macro.
13041 * acconfig.h (_GNU_SOURCE): Add.
13042 (HAVE_PREAD64): Remove.
13043 * configure, aclocal.m4, config.in: Regenerated.
13045 2003-01-03 Andrew Cagney <ac131313@redhat.com>
13047 * alpha-tdep.c: Use get_frame_saved_regs.
13048 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13049 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
13050 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
13051 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
13052 * vax-tdep.c, xstormy16-tdep.c: Ditto.
13054 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13056 * configure.in: Remove all use of the SUBDIRS variable; add
13057 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
13058 code providing the --enable-multi-ice option, and move it right in
13059 front of the code that checks whether gdbserver is supported.
13061 * configure: Regenerated.
13062 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13065 2003-01-03 Andrew Cagney <cagney@redhat.com>
13067 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13068 * avr-tdep.c, cris-tdep.c: Ditto.
13069 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13070 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13072 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13074 * configure.in: Remove --enable-netrom option.
13075 * configure: Regenerated.
13077 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13079 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13080 declaration for `struct re_pattern_buffer' instead.
13081 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13083 2003-01-03 J. Brobecker <brobecker@gnat.com>
13085 * mdebugread.c (parse_symbol): Count until the stEnd matching
13086 the structure name.
13088 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13090 * configure.in: Remove --with-cpu option.
13091 subscripts. Remove evil changequotes here.
13092 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13093 * config.in, configure: Regenerated.
13095 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13096 * configure.in: Cleanup section that sources GDB and BFD configure
13097 subscripts. Remove evil changequotes here.
13098 * config.in, configure: Regenerated.
13100 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13102 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13103 frame accessor methods.
13104 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13105 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13106 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13107 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13108 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13109 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13110 * z8k-tdep.c: Ditto.
13112 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13114 * configure.in: Remove UI_OUT configuration code.
13115 * ada-lang.c: Update assuming UI_OUT is always true.
13116 * Makefile.in (UIOUT_CFLAGS): Remove.
13117 * configure: Regenerated.
13118 * TODO: Remove blurb about elimination of -DUI_OUT.
13120 * configure.in: Move code that provides the --enable-gdbcli,
13121 --enable-gdbmi options right before the code that handles the
13122 --enable-tui option. Polish a bit.
13123 * configure: Regenerated.
13125 * configure.in: Rewrite check for GNU regex and the
13126 --without-included regex option, and move it into the "Checks for
13127 library functions" section. This makes us use the system regex
13128 again by default on systems with version 2 of the GNU C library.
13129 This was apparently broken.
13130 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13131 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13132 * config.in, configure: Regenerated.
13134 * configure.in: Move code that provides the --enable-tui option
13135 before the "Checks for libraries" section. Polish the code
13136 somewhat and set need_curses to yes if we build the TUI. Rewrite
13137 code that looks for a library providing termcap functionality to
13138 match more closely what's done in the Readline library, and move
13139 it into to the "Checks for libraries" section.
13140 * configure: Regenerated.
13141 * Makefile.in (TERMCAP): Remove variable.
13142 * config/i386/go32.mh (TERMCAP): Remove variable.
13144 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13146 * MAINTAINERS: Mention gdb_mbuild.sh.
13147 * gdb_mbuild.sh: Rewrite.
13149 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13151 * configure.in: Fix typo in last change.
13152 * config.in, configure: Regenerated.
13154 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13156 * valarith.c (value_binop): Delete obsolete code and comments.
13157 * configure.host: Ditto.
13158 * buildsym.h (make_blockvector): Ditto.
13159 * buildsym.c (make_blockvector): Ditto.
13160 * defs.h (enum language): Ditto.
13161 (chill_demangle): Ditto.
13162 * elfread.c (elf_symtab_read): Ditto.
13163 * dwarfread.c (CHILL_PRODUCER): Ditto.
13164 (set_cu_language): Ditto.
13165 (handle_producer): Ditto.
13166 * expprint.c (print_subexp): Ditto.
13167 * gdbtypes.c (chill_varying_type): Ditto.
13168 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13169 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13170 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13171 (chill_varying_type): Ditto.
13172 * language.h (_LANG_chill): Ditto.
13173 * language.c (binop_result_type, integral_type): Ditto.
13174 (character_type, string_type, structured_type): Ditto.
13175 (lang_bool_type, binop_type_check): Ditto.
13176 * stabsread.h (os9k_stabs): Ditto.
13177 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13178 (define_symbol, read_type, read_struct_fields): Ditto.
13179 (read_array_type, read_enum_type, read_huge_number): Ditto.
13180 (read_range_type, start_stabs): Ditto.
13181 * symfile.c (init_filename_language_table): Ditto.
13182 (add_psymbol_with_dem_name_to_list): Ditto.
13183 * symtab.c (symbol_init_language_specific): Ditto.
13184 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13185 * symtab.h (struct general_symbol_info): Ditto.
13186 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13187 * typeprint.c (typedef_print): Ditto.
13188 * utils.c (fprintf_symbol_filtered): Ditto.
13189 * valops.c (value_cast, search_struct_field, value_slice): Delete
13191 (varying_to_slice): Delete function.
13192 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13193 (varying_to_slice): Delete declaration.
13194 * MAINTAINERS: Update.
13196 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13198 * configure.in: Reorganize "Checks for library functions section"
13199 a bit. Remove check for `btowc' and `isascii' functions.
13200 * configure: Regenerated.
13202 * acconfig.h (_MSE_INT_H): Remove.
13203 * configure.in: Create "Checks for header files" section, and move
13204 appropriate tests there. Don't check for objlist.h, wchar.h,
13205 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13206 misdetection fix. Also add "Checks for types", "Checks for
13207 compiler characteristics" and "Checks for library functions"
13209 * config.in, configure: Regenerated.
13211 * configure.in: Create "Checks for programs" section, and move
13212 appropriate tests there.
13214 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13216 * configure.in: Create "Checks for libraries" section, and move
13217 appropriate tests there. Cleanup check for wctype in libw. Use
13218 AC_SEARCH_LIBS to see whether we need libsocket.
13219 * configure: Regenerated.
13221 For older changes see ChangeLog-2002
13227 version-control: never