1 2003-10-13 Kevin Buettner <kevinb@redhat.com>
3 * breakpoint.h (struct breakpoint): Add new member
5 * breakpoint.c (breakpoint_adjustment_warning)
6 (adjust_breakpoint_address): New static functions.
7 (print_it_typical): Issue warning if breakpoint's address is different
8 from its requested address.
9 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
10 (breakpoint_re_set_one): Set breakpoint's
11 ``requested_address'' field. Set ``address'' field to the
12 result of calling adjust_breakpoint_address() on the requested
15 2003-10-13 Kevin Buettner <kevinb@redhat.com>
17 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
18 * gdbarch.h, gdbarch.c: Regenerate.
20 2003-10-11 Mark Kettenis <kettenis@gnu.org>
22 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
25 * i386fbsd-tdep.c: New file.
26 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
27 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
28 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
30 (_initialize_i386fbsd_tdep): New function.
31 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
32 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
33 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
34 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
36 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
37 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
38 to initialize TDEP->sc_num_regs.
39 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
40 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
41 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
42 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
43 FreeBSD ELF OS/ABI's here.
44 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
45 (i386fbsd-tdep.o): New target.
46 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
47 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
49 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
50 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
51 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
52 in initialization of TDEP->sc_num_regs.
54 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
55 (x86_64_init_abi): Initialize regset_from_core_section if
58 * i386-tdep.c (i386_regset_from_core_section): New function.
59 (i386_gdbarch_init): Initialize regset_from_core_section if
61 * i386-tdep.h (i386_regset_from_core_section): New declaration.
63 * i386-tdep.h (struct regset): Declare opaque.
65 * gdbarch.sh (regset_from_core_section): New method.
66 (struct regset): Declare opaque.
67 * gdbarch.c, gdbarch.h: Regenerated.
69 2003-10-11 Alan Modra <amodra@bigpond.net.au>
71 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
72 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
73 Correct test for pc within section.
75 2003-10-11 Mark Kettenis <kettenis@gnu.org>
77 * gdbarch.sh: Remove trailing whitepsace from comments.
79 2003-10-08 Roland McGrath <roland@redhat.com>
81 * gcore.c (make_mem_sec): Function removed, folded into ...
82 (gcore_create_callback): ... here. To omit a section, clear its
83 SEC_LOAD bit rather than zeroing its size.
84 Omit read-only sections only if they correspond to a known disk file.
85 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
87 2003-10-10 Michael Snyder <msnyder@redhat.com>
89 * d10v-tdep.c: Fix typo in comment.
91 2003-10-10 Andrew Cagney <cagney@redhat.com>
93 * rs6000-tdep.c (e500_store_return_value): Delete function.
94 (e500_extract_return_value): Delete function.
95 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
96 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
97 "ppc_sysv_abi_restore_return_value" where applicable.
98 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
99 (ppc_sysv_abi_extract_return_value): Declare.
100 (ppc_sysv_abi_broken_store_return_value): Declare.
101 (ppc_sysv_abi_broken_extract_return_value): Declare.
102 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
103 * ppc-sysv-tdep.c (return_value_convention): Move definition to
105 (do_ppc_sysv_return_value): New function.
106 (ppc_sysv_abi_extract_return_value): New function.
107 (ppc_sysv_abi_store_return_value): New function.
108 (ppc_sysv_abi_broken_extract_return_value): New function.
109 (ppc_sysv_abi_broken_store_return_value): New function.
110 (ppc_sysv_abi_use_struct_convention): Call
111 do_ppc_sysv_return_value.
113 2003-10-10 J. Brobecker <brobecker@gnat.com>
115 * blockframe.c (inside_main_func): No longer use symbol_lookup()
116 to lookup the main function symbol.
118 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
120 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
122 (sh_push_dummy_call_fpu): Fix argument passing rules.
123 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
125 (sh3e_sh4_store_return_value): Ditto.
127 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
129 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
132 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
134 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
135 more readable code. Accomodate passing of bitfields.
137 2003-10-10 Andrew Cagney <cagney@redhat.com>
139 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
140 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
141 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
142 * ppc-sysv-tdep.c: Include "gdb_assert.h".
143 (ppc64_sysv_abi_push_dummy_call): New function.
144 (ppc64_sysv_abi_broken_push_dummy_call): New function.
145 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
146 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
148 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
150 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
152 * d10v-tdep.c: Ditto.
153 * h8300-tdep.c: Ditto.
154 * remote-e7000.c: Ditto.
155 * remote-hms.c: Ditto.
156 * ser-e7kpc.c: Ditto.
161 * sh64-tdep.c: Ditto.
164 * config/d10v/d10v.mt: Ditto.
165 * config/sh/embed.mt: Ditto.
166 * config/sh/linux.mt: Ditto.
167 * config/sh/tm-linux.h: Ditto.
168 * config/sh/tm-sh.h: Ditto.
169 * config/sh/wince.mt: Ditto.
171 2003-10-09 Andrew Cagney <cagney@redhat.com>
173 * ppc-tdep.h (struct type): Declare opaque.
174 * x86-64-tdep.h (struct regcache): Declare opaque.
175 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
178 2003-10-09 Andrew Cagney <cagney@redhat.com>
180 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
181 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
182 (SOFTWARE_SINGLE_STEP_P): Ditto.
183 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
184 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
185 (SOFTWARE_SINGLE_STEP_P): Ditto.
186 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
187 software_single_step to rs6000_software_single_step.
189 2003-10-09 Andrew Cagney <cagney@redhat.com>
191 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
193 2003-10-09 Michael Snyder <msnyder@redhat.com>
195 * frame.h: Fix typo in comment.
196 * dummy-frame.c: Fix typo in comment.
197 * d10v-tdep.c: Random whitespace/comment tweaks.
199 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
201 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
202 (sh_push_dummy_code): Delete function, it's only used for dummy calls
205 Based on input by Stephen Clarke (stephen.clarke@superh.com):
206 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
209 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
211 * remote-mips.c (mips_initialize): Remove unneeded call to
212 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
214 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
216 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
219 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
221 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
222 for any lwp we resume.
223 (running_callback): Add lwps that have pending status events
224 against them to be considered running.
226 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
228 * m32r-tdep.c : Include "dis-asm.h".
229 * Makefile.in (m32r-tdep.o): Update dependencies.
231 2003-10-06 J. Brobecker <brobecker@gnat.com>
233 * completer.h (get_gdb_completer_word_break_characters): Delete.
234 * completer.c: include language.h.
235 (gdb_completer_word_break_characters): Delete.
236 (get_gdb_completer_word_break_characters): Delete.
237 (location_completer): Use the word break characters of the current
239 (complete_line): Likewise.
240 (line_completion_function): Likewise.
241 (skip_quoted_chars): Likewise.
242 * Makefile.in (completer.o): Add dependency on language.h.
243 * top.c (init_main): Set the readline word break characters
244 to GDB's default word break characters.
246 2003-10-06 J. Brobecker <brobecker@gnat.com>
248 * language.h (language_defn): new field, la_word_break_characters.
249 * language.c (unknown_language_defn): Set new field to
250 default_word_break_characters.
251 (auto_language_defn): Likewise.
252 (local_language_defn): Likewise.
253 * ada-lang.c (ada_language_defn): Likewise.
254 * c-lang.c (c_language_defn): Likewise.
255 (cplus_language_defn): Likewise.
256 (asm_language_defn): Likewise.
257 (minimal_language_defn): Likewise.
258 * f-lang.c (f_language_defn): Likewise.
259 * jv-lang.c (java_language_defn): Likewise.
260 * m2-lang.c (m2_language_defn): Likewise.
261 * objc-lang.c (objc_language_defn): Likewise.
262 * p-lang.c (pascal_language_defn): Likewise.
263 * scm-lang.c (scm_language_defn): Likewise.
265 2003-10-06 Andrew Cagney <cagney@redhat.com>
267 * ppc-sysv-tdep.c: Re-indent.
269 2003-10-06 J. Brobecker <brobecker@gnat.com>
271 * language.h (default_word_break_characters): Add prototype.
272 * language.c (default_word_break_characters): New function.
274 2003-10-06 Andreas Schwab <schwab@suse.de>
276 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
279 2003-10-06 Andrew Cagney <cagney@redhat.com>
281 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
283 (z8k-tdep.o): Delete custom build rule.
285 2003-10-06 Andrew Cagney <cagney@redhat.com>
287 * Makefile.in: Update all dependencies.
289 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
290 No longer list PA as as obsolete candidate. List m32r as
291 broken instead of obsolete.
293 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
294 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
295 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
296 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
297 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
298 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
299 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
300 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
301 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
302 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
303 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
304 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
305 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
306 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
307 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
308 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
309 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
310 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
311 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
312 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
313 * config/z8k/z8k.mt: Ditto.
315 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
316 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
317 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
318 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
319 sparclite were removed.
320 * configure.host, configure.tgt: Remove corresponding tuples.
322 * breakpoint.c, breakpoint.h: Remove obsolete code.
323 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
324 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
325 * stabsread.h, xcoffread.c: Ditto.
327 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
328 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
329 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
330 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
332 2003-10-06 David Lecomber <dsl@sources.redhat.com>
334 * f-valprint.c: Reformatting
336 2003-10-06 Mark Kettenis <kettenis@gnu.org>
338 * x86-64-tdep.c: Remove duplicate comment.
340 * x86-64-tdep.c (x86_64_store_return_value): Don't use
341 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
342 names for return values. This fixes a bug since we looked at %rbx
345 2003-10-05 Mark Kettenis <kettenis@gnu.org>
347 * x86-64-tdep.c: Include "regset.h".
349 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
350 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
352 * i386-tdep.c: Include "regset.h".
353 (i386_supply_gregset): New function.
354 (i386_supply_fpregset): New function.
355 (i386_gdbarch_init): Initialze register set-related members of
357 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
358 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
360 2003-10-03 Andrew Cagney <cagney@redhat.com>
362 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
363 set extract_return_value, store_return_value and
364 use_struct_convention to ppc64_sysv_abi_extract_return_value,
365 ppc64_sysv_abi_store_return_value and
366 ppc64_sysv_abi_use_struct_convention.
367 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
368 (ppc64_sysv_abi_store_return_value): Declare.
369 (ppc64_sysv_abi_use_struct_convention): Declare.
370 * ppc-sysv-tdep.c (enum return_value_convention): Define.
371 (ppc64_sysv_abi_extract_return_value): New function.
372 (ppc64_sysv_abi_store_return_value): New function.
373 (ppc64_sysv_abi_use_struct_convention): New function.
374 (ppc64_sysv_abi_return_value): New function.
376 2003-10-03 Andrew Cagney <cagney@redhat.com>
378 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
379 convert a descriptor to a function when it's in the ".opd"
382 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
384 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
385 reg_size to keep GCC silent.
387 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
389 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
390 base for DW_EH_PE_textrel encodings.
391 (read_encoded_value): Add a DW_EH_PE_textrel case.
392 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
395 2003-10-03 Mark Kettenis <kettenis@gnu.org>
397 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
399 2003-10-02 Andrew Cagney <cagney@redhat.com>
401 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
403 * gdbarch.h, gdbarch.c: Re-generate.
404 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
405 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
406 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
407 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
408 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
409 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
410 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
411 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
412 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
413 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
414 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
415 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
416 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
417 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
418 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
419 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
421 2003-10-02 Jim Blandy <jimb@redhat.com>
423 * dwarf2read.c (struct die_info): Doc fix.
425 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
427 * sh-tdep.c: Running thru gdb_indent.sh.
429 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
431 * sh-tdep.c (sh_justify_value_in_reg): New function.
432 (sh_stack_allocsize): Ditto.
433 (flt_argreg_array): New array used for floating point argument
435 (sh_init_flt_argreg): New function.
436 (sh_next_flt_argreg): Ditto.
437 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
438 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
439 Fix argument passing strategy.
440 (sh_push_dummy_call_nofpu): Ditto.
442 2003-10-01 Andrew Cagney <cagney@redhat.com>
444 * value.h (register_value_being_returned): Declare. Replace
445 "value_being_returned".
446 * infcall.c (call_function_by_hand): Use
447 register_value_being_returned.
448 * infcmd.c (print_return_value): Call
449 "register_value_being_returned", handle struct return locally.
450 * values.c (register_value_being_returned): New function. Replace
451 "value_being_returned".
453 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
455 * linux-proc.c (linux_do_registers): New function.
456 (linux_make_note_section): Use linux_do_registers in case of
457 single threaded inferior programs.
459 2003-10-01 Andrew Cagney <cagney@redhat.com>
461 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
462 use STRUCT_ADDR. When not using "struct return convention", pass
463 "0" to "value_being_returned". Add FIXMEs.
464 * infcmd.c (print_return_value): Pass an explicit 0/1 to
465 value_being_returned. Add comments.
466 * values.c (value_being_returned): Add fixme.
467 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
468 (hppa_value_returned_from_stack): Add FIXME.
470 2003-09-30 David Carlton <carlton@kealia.com>
472 * dwarf2read.c (struct die_info): Add 'parent' field; replace
473 'has_children' and 'next' by 'child' and 'sibling'.
474 (read_comp_unit): Rework algorithm, breaking body into
475 read_die_and_children and read_die_and_siblings.
476 (read_die_and_children, read_die_and_siblings): New.
477 (read_full_die): Add 'has_children' argument; set it instead of
478 the die's 'has_children' field. Minor formatting cleanup.
479 (free_die_list): Use die->child and die->sibling instead of
481 (dump_die_list): Ditto.
482 (sibling_die): Use die->sibling.
483 (psymtab_to_symtab_1): Use die's 'child' field in place of its
484 'has_children' and 'next' fields.
485 (process_die, read_file_scope, read_func_scope)
486 (read_lexical_block_scope, read_structure_scope)
487 (read_enumeration, read_array_type, read_common_block)
488 (read_namespace, read_subroutine_type, dump_die): Ditto.
490 2003-09-30 Andrew Cagney <cagney@redhat.com>
492 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
495 2003-09-30 Andrew Cagney <cagney@redhat.com>
497 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
498 REGISTER_VIRTUAL_SIZE.
499 * gdbarch.h, gdbarch.c: Regenerate.
500 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
501 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
502 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
504 2003-09-29 Andrew Cagney <cagney@redhat.com>
506 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
507 DEPRECATED_REGISTER_VIRTUAL_TYPE.
508 * gdbarch.h, gdbarch.c: Regenerate.
509 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
510 * sh64-tdep.c, sparc-tdep.c: Update.
512 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
513 * remote-vxmips.c (vx_read_register): Ditto.
514 * remote-vx68.c (vx_read_register): Ditto.
515 * gnu-nat.c (inf_validate_procs): Ditto.
517 2003-09-29 J. Brobecker <brobecker@gnat.com>
519 * infcall.c (call_function_by_hand): Fix build failure
520 introduced in the previous change to this file.
522 2003-09-29 Andrew Cagney <cagney@redhat.com>
524 * NEWS: Mention Objective-C.
526 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
528 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
529 test if the register has been saved on the stack.
530 (arm_scan_prologue_cache): When analysing the instruction
531 "str lr, [sp, #-4]", save the address where lr has been stored.
533 2003-09-28 Andrew Cagney <cagney@redhat.com>
535 * frame.c (frame_read_unsigned_register): Delete function.
536 * frame.h (frame_read_unsigned_register): Delete declaration.
537 * sparc-tdep.c (sparc_init_extra_frame_info): Use
538 get_frame_register_unsigned.
539 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
540 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
541 * d10v-tdep.c (d10v_print_registers_info): Ditto.
543 * frame.h (frame_read_register): Delete declaration.
544 * frame.c (frame_read_register): Delete function.
545 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
546 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
547 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
548 * mips-tdep.c (mips_register_to_value): Ditto.
549 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
550 * d10v-tdep.c (d10v_print_registers_info): Ditto.
552 * frame.c (frame_read_signed_register): Delete function.
553 (frame_read_unsigned_register): Update comments.
554 * frame.h (frame_read_signed_register): Delete declaration.
555 * h8300-tdep.c (h8300_print_register): Use
556 get_frame_register_signed.
557 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
559 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
560 Rename VALUE_RETURNED_FROM_STACK.
561 * infcmd.c (print_return_value): Update.
562 * infcall.c (call_function_by_hand): Update.
564 2003-09-28 Mark Kettenis <kettenis@gnu.org>
566 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
567 regcache argument and reverse the order of the other two
568 arguments. Remove local regcache variable. Determine
569 architecture from REGCACHE. Update comments.
570 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
571 reverse the order of the other two arguments. Remove local
572 regcache variable. Determine architecture from REGCACHE. Update
574 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
575 prototypes. Update comments.
576 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
578 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
580 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
581 * i386-interix-nat.c (supply_fpregset): Update.
582 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
583 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
584 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
585 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
586 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
588 * i386obsd-tdep.c (fetch_core_registers): Update.
589 * i386v4-nat.c (supply_fpregset): Update.
590 * x86-64-linux-nat.c (supply_fpregset): Update.
591 * x86-64-linux-tdep.c (fetch_core_registers): Update.
593 2003-09-27 Mark Kettenis <kettenis@gnu.org>
595 * i386-tdep.h: Put opaque declarations in alphabetical
596 order. Remove spurious whitespace.
597 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
598 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
599 * i386-tdep.c (MM0_REGNUM): Remove define.
600 (i386_mmx_regnum_p): Add gdbarch argument.
601 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
602 Rewrite using new macro definitions for FPU/SSE registers.
603 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
604 definitions from i387-tdep.h.
605 (i386_register_name): Update.
606 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
607 new macro definitions for FPU/SSE registers.
608 (i386_extract_return_value): Determine whether floating-point
609 registers are present by examining REGCACHE's architecture.
610 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
611 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
613 (i386_register_type): Update.
614 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
615 definitions for FPU registers. Use REGCACHE's architecture to
616 determine the appropriate register numbers.
617 (i386_pseudo_register_read, i386_pseudo_register_write,
618 i386_register_reggroup_p): Update.
619 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
621 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
622 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
623 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
624 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
625 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
626 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
628 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
629 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
630 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
631 definitions for FPU/SSE registers.
632 (FXSAVE_MXCSR_ADDR): New define.
633 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
635 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
636 (I387_ST0_REGNUM): Define.
638 * regcache.h (get_regcache_arch): New prototype.
639 * regcache.c (get_regcache_arch): New function.
641 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
644 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
645 Initialize using ARRAY_SIZE.
647 2003-09-27 Andrew Cagney <cagney@redhat.com>
649 * arch-utils.c (deprecated_init_frame_pc_default): Rename
650 "init_frame_pc_default".
651 * arch-utils.h (deprecated_init_frame_pc_default): Update.
652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
653 * vax-tdep.c (vax_gdbarch_init): Update.
654 * v850-tdep.c (v850_gdbarch_init): Update.
655 * sh64-tdep.c (sh64_gdbarch_init): Update.
656 * s390-tdep.c (s390_gdbarch_init): Update.
657 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
658 * mcore-tdep.c (mcore_gdbarch_init): Update.
659 * h8300-tdep.c (h8300_gdbarch_init): Update.
660 * cris-tdep.c (cris_gdbarch_init): Update.
661 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
663 2003-09-26 Mark Kettenis <kettenis@gnu.org>
665 * regset.h: New file.
666 * Makefile.in (regset_h): Add.
668 2003-09-25 Andrew Cagney <cagney@redhat.com>
670 * frame.h (deprecated_frame_saved_regs): Rename
671 get_frame_saved_regs.
672 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
673 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
674 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
675 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
676 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
678 2003-09-25 Andrew Cagney <cagney@redhat.com>
680 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
681 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
683 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
684 arm*-*-* do not use the new frame code.
686 2003-09-25 David Carlton <carlton@kealia.com>
688 * c-exp.y: Remove 'register' declarations.
689 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
691 2003-09-25 David Carlton <carlton@kealia.com>
693 * c-exp.y: Include cp-support.h. Add qualified_type.
694 (yylex): Delete nested type hack; add comments.
695 * cp-namespace.c (cp_lookup_nested_type): New function.
696 * cp-support.h: Declare cp_lookup_nested_type.
697 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
698 instead of value_struct_elt_for_reference.
699 * valops.c: Include cp-support.h.
700 (value_aggregate_elt): New function.
701 (value_namespace_elt): Ditto.
702 (value_struct_elt_for_reference): Make static.
703 * value.h: Delete declaration of value_struct_elt_for_reference;
704 add declaration for value_aggregate_elt.
705 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
708 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
710 * stack.c: Include "reggroups.h".
711 (frame_info): Only display registers in all_reggroup.
712 * Makefile.in (stack.o): Update dependencies.
714 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
716 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
717 "add ip, sp #n" in the prologue.
718 (arm_scan_prologue): Ditto.
720 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
722 * MAINTAINERS (write after approval): Add myself.
724 2003-09-25 Andreas Schwab <schwab@suse.de>
726 * m68k-tdep.c: Include "dwarf2-frame.h".
727 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
728 * Makefile.in (m68k-tdep.o): Update dependencies.
730 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
732 * sh-tdep.c (struct frame_extra_info): Remove.
733 (struct sh_frame_cache): New structure.
734 (GET_SOURCE_REG): New macro extracting source register of an opcode.
735 (GET_TARGET_REG): Ditto but target register.
736 (GET_PUSHED_REG): Remove.
737 (IS_MOV_ARG_TO_REG): New macro.
738 (IS_MOV_ARG_TO_IND_R14): New macro.
739 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
740 (IS_MOVW_PCREL_TO_REG): New macro.
741 (IS_MOVL_PCREL_TO_REG): New macro.
742 (IS_SUB_REG_FROM_SP): New macro.
743 (IS_ARG_MOV): Remove.
744 (IS_MOV_TO_R14): Remove.
745 (IS_RESTORE_FP): New macro.
748 (IS_MOV_FP_SP): New macro.
749 (IS_ADD_REG_TO_FP): New macro.
750 (IS_ADD_IMM_FP): New macro.
751 (sh_skip_prologue_hard_way): Remove.
752 (sh_saved_pc_after_call): Remove.
753 (sh_frame_chain): Remove.
754 (sh_find_callers_reg): Remove.
755 (sh_nofp_frame_init_saved_regs): Remove.
756 (sh_fp_frame_init_saved_regs): Remove.
757 (sh_init_extra_frame_info): Remove.
758 (sh_analyze_prologue): New function.
759 (sh_skip_prologue): Remove deprecated code. Rely on new function
760 sh_analyze_prologue when after_prologue fails.
761 (sh_frame_saved_pc): Remove.
762 (sh_alloc_frame_cache): New function.
763 (sh_frame_cache): Ditto.
764 (sh_frame_prev_register): Ditto.
765 (sh_frame_this_id): Ditto.
766 (sh_frame_unwind): New structure defining the heuristic frame
768 (sh_frame_sniffer): New function.
769 (sh_unwind_sp): Ditto.
770 (sh_unwind_pc): Ditto.
771 (sh_unwind_dummy_id): Ditto.
772 (sh_frame_base_address): Ditto.
773 (sh_frame_base): New structure defining new frame base code.
774 (sh_in_function_epilogue_p): New function.
775 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
776 code and to call all new code instead. Initialize dwarf2 and
777 heuristic frame sniffer.
779 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
781 * parser-defs.h (struct exp_descriptor): New definition, containing
782 language-specific info for printing, prefixifying, dumping, and
783 evaluating expressions.
784 (exp_descriptor_standard): Declare new variable.
785 (print_subexp): Make global and declare here (from expprint.c).
786 (dump_subexp): Ditto.
787 (dump_subexp_body_standard): Declare.
788 (operator_length_standard): Declare.
789 (op_name_standard): Declare.
790 (print_subexp): Declare.
791 (print_subexp_standard): Declare.
793 * language.h (struct language_defn): Add la_exp_desc field to hold
794 pointer to table for language-specific operators.
795 Remove evaluate_exp field, which is now in struct exp_descriptor.
797 * parse.c (operator_length): Move most code to new
798 operator_length_standard function. Use language-specific information.
799 (operator_length_standard): New function taking most code from
801 (exp_descriptor_standard): New constant.
803 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
804 and OP_EXTENDED_LAST.
806 * expprint.c (print_subexp): Use language-specific print_subexp.
807 Make global; remove static declaration.
808 Move most code to print_subexp_standard.
809 (print_subexp_standard): New function, containing code formerly in
811 (op_name): Add expression to argument signature.
812 Use langauge-specific op_name.
813 Move most code to op_name_standard.
814 (op_name_standard): New function, containing code formerly in op_name.
815 (dump_subexp): Use new version of op_name function.
816 Use language-specific dump_subexp_body, and move most existing code to
817 dump_subexp_body_standard.
818 (dump_raw_expression): Use new op_name interface.
819 (dump_subexp_body): Move most code to dump_subexp_body_standard.
820 (dump_subexp_body_standard): New function, containing code formerly
823 * language.c (unknown_language): Add default la_exp_desc field and
824 remove evaluate_exp field.
825 (auto_language): Ditto.
826 (local_language): Ditto.
827 * f-lang.c (f_language_defn): Ditto.
828 * c-lang.c (c_language_defn): Ditto.
829 (cplus_language_defn): Ditto.
830 (asm_language_defn): Ditto.
831 (minimal_language_defn): Ditto.
832 * p-lang.c (pascal_language_defn): Ditto.
833 * m2-lang.c (m2_language_defn): Ditto.
834 * objc-lang.c (objc_language_defn): Ditto.
836 * jv-lang.c (exp_descriptor_java): New variable, containing
837 Java-specific expression evaluator.
838 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
840 * scm-lang.c (exp_descriptor_scm): New variable, containing
841 Scheme-specific expression evaluator.
842 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
844 * objc-lang.c (print_object_command): Take evaluate_exp from the
847 * Makefile.in (eval.o): Add dependency on parser-defs.h.
849 * eval.c: Include parser-defs.h for the full declaration of
851 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
853 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
855 * parser-defs.h (operator_length): Declare.
857 * parse.c (length_of_subexp): Use operator_length to get operator
858 lengths and arities for operators.
859 Move most code to new operator_length function.
860 (operator_length): New function absorbing most code from
862 (prefixify_subexp): Remove large case and use operator_length instead.
863 (parse_exp_1): Use renamings:
864 dump_prefix_expression => dump_raw_expression and
865 dump_postfix_expression => dump_prefix_expression.
867 * expression.h (dump_prefix_expression): Rename to ...
868 (dump_raw_expression): New name.
869 (dump_postfix_expression): Rename to ...
870 (dump_prefix_expression): New name.
872 * expprint.c (dump_subexp): Make global. Add comment.
873 Move most existing code to dump_subexp_body.
874 (dump_subexp_body): New function.
875 (dump_prefix_expression): Rename to dump_raw_expression.
876 Remove attempt to print the expression via print_expression: it can't
877 work before the expression is prefixified.
878 (dump_raw_expression): Renamed from dump_prefix_expression.
879 (dump_postfix_expression): Rename to dump_prefix_expression, since
881 Remove 'note' parameter, since this routine must be used on
882 prefixified expression.
883 (dump_prefix_expression): Renamed from dump_postfix_expression.
885 2003-09-22 Jim Blandy <jimb@redhat.com>
887 * dwarf2read.c (read_array_type): When building the type for an
888 array of unspecified length, make sure to choose the upper bound
889 so that the array's total length comes out to be zero --- that's
890 how we represent such arrays.
892 2003-09-22 Michael Chastain <mec@shout.net>
894 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
896 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
898 * top.c (quit_force): Fix indirect call to quit_target so
899 a struct qt_args pointer is passed.
901 2003-09-22 Andrew Cagney <cagney@redhat.com>
903 * arch-utils.h (init_frame_pc_noop): Delete declaration.
904 * arch-utils.c (init_frame_pc_noop): Delete function.
905 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
907 * mips-tdep.c (mips_gdbarch_init): Ditto.
908 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
909 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
911 (DEPRECATED_INIT_FRAME_PC): Delete macro.
912 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
914 (DEPRECATED_INIT_FRAME_PC): Delete macro.
916 2003-09-22 Anthony Green <green@redhat.com>
918 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
921 2003-09-20 Andrew Cagney <cagney@redhat.com>
923 * breakpoint.c: Eliminate ARGSUSED.
924 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
925 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
926 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
927 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
928 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
929 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
930 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
931 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
932 * wince.c, remote-vx.c: Ditto.
934 * cli/cli-script.c: Remove "register" attributes.
935 * config/pa/tm-hppa.h: Ditto.
936 * cli/cli-decode.c: Ditto.
937 * cli/cli-cmds.c: Ditto.
939 2003-09-19 Andrew Cagney <cagney@redhat.com>
941 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
942 DEPRECATED_NPC_REGNUM.
943 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
945 2003-09-19 Christopher Faylor <cgf@redhat.com>
947 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
949 2003-09-19 Jim Blandy <jimb@redhat.com>
951 * macrotab.c (macro_include): Use the correct comparison to find
952 the appropriate place for this inclusion in the list.
954 2003-09-19 Andrew Cagney <cagney@redhat.com>
956 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
957 (DEPRECATED_HPUX_TEXT_END): Define.
958 (deprecated_hpux_text_end): Declare.
959 (struct target_ops): Declare opaque.
960 * hppah-nat.c (text_end): Make static.
961 (deprecated_hpux_text_end): New function.
962 * exec.c (text_end): Delete global variable.
963 (NEED_TEXT_START_END): Do not define.
964 (exec_file_attach): Replace code computing "text_end" code with
965 call to DEPRECATED_HPUX_TEXT_END.
967 2003-09-19 Andrew Cagney <cagney@redhat.com>
969 * utils.c (align_up, align_down): New functions.
970 * defs.h (align_up, align_down): Declare.
971 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
972 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
974 (round_up, round_down): Delete functions.
975 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
977 (ROUND_DOWN, ROUND_UP): Delete macros.
978 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
979 * h8300-tdep.c: Replace "round_up" and "round_down" with
980 "align_up" and "align_down".
981 (round_up, round_down): Delete macros.
982 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
984 (ROUND_UP, ROUND_DOWN): Delete macros.
986 2003-09-18 J. Brobecker <brobecker@gnat.com>
988 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
989 hard-coded constant. Use the proper machine name instead.
991 2003-09-17 Andrew Cagney <cagney@redhat.com>
993 * sparc-tdep.c (legacy_register_name): Delete function.
994 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
995 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
996 * infcmd.c (gdb_register_name): Delete variable.
997 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
998 REGISTER_NAME and "tm.h".
999 * gdbarch.h, gdbarch.c: Regenerate.
1000 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1001 REGISTER_NAMES in comments.
1002 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1003 * m68klinux-nat.c (regmap): Ditto.
1005 2003-09-17 Jim Blandy <jimb@redhat.com>
1007 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1009 2003-09-17 Andrew Cagney <cagney@redhat.com>
1011 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1012 (ppcnbsd_init_abi): Set "use_struct_convention" to
1013 "ppcnbsd_use_struct_convention".
1015 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1017 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1018 * gdbarch.h, gdbarch.c: Regenerate.
1019 (stabs_argument_has_addr): New architecture method.
1020 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1021 * arch-utils.c: Include "buildsym.h".
1022 (default_stabs_argument_has_addr): New function.
1023 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1024 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1026 2003-09-17 Andrew Cagney <cagney@redhat.com>
1028 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1029 * gdbarch.h, gdbarch.c: Regenerate.
1030 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1031 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1032 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1033 * sparcnbsd-tdep.c: Update.
1035 2003-09-17 Andrew Cagney <cagney@redhat.com>
1037 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1038 * gdbarch.h, gdbarch.c: Regenerate.
1039 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1040 * d10v-tdep.c, frame.c: Update.
1041 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1042 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1043 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1044 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1045 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1046 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1047 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1048 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1049 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1050 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1051 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1052 * config/pa/nm-hppah.h: Update.
1054 2003-09-16 Andrew Cagney <cagney@redhat.com>
1056 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1057 "use_struct_convention" to "ppc_linux_use_struct_convention".
1058 (ppc_linux_use_struct_convention): New function.
1059 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1060 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1061 "rs6000_use_struct_convention".
1062 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1064 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1067 2003-09-16 Andrew Cagney <cagney@redhat.com>
1069 * buildsym.c: Remove more occurances of "register".
1070 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1071 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1072 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1073 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1074 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1075 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1076 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1077 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1079 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1081 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1082 numbers to enumeration values.
1083 * sh-tdep.c: Accomodate above change.
1084 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1085 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1086 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1087 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1088 (IS_FPUSH): Rename from IS_FMOV.
1089 (sh_extract_struct_value_address): Remove useless comment.
1090 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1091 instead of own local values.
1092 (sh_dump_tdep): Remove.
1093 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1094 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1096 2003-09-15 Andrew Cagney <cagney@redhat.com>
1098 * doublest.c (convert_floatformat_to_doublest): No longer need to
1099 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1101 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1103 * values.c (unpack_double): Call floatformat_is_valid.
1105 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1107 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1108 ps_strings into a long.
1110 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1111 _initialize_am64fbsd_nat.
1113 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1115 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1116 associated with DW_AT_ranges attribute is out of bounds.
1118 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1120 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1122 2003-09-14 Michael Chastain <mec@shout.net>
1124 * config/m68k/nm-apollo68v.h: Delete.
1125 * config/m68k/xm-apollo68v.h: Delete.
1127 2003-09-14 Andrew Cagney <cagney@redhat.com>
1129 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1130 * dcache.c: Update copyrights and descriptions.
1131 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1133 2003-09-14 Andrew Cagney <cagney@redhat.com>
1135 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1136 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1138 2003-09-14 Andrew Cagney <cagney@redhat.com>
1140 * alpha-nat.c: Remove some occurances of "register".
1141 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1142 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1143 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1144 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1145 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1146 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1147 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1148 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1149 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1150 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1151 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1152 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1153 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1154 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1155 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1156 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1157 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1158 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1159 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1160 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1161 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1162 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1164 2003-09-13 Andrew Cagney <cagney@redhat.com>
1166 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1167 * ppc-tdep.h (struct regcache): Declare opaque.
1168 * objfiles.h (struct objfile_data): Declare opaque.
1169 * cp-support.h (struct objfile): Declare opaque.
1170 * linux-nat.h (target_waitstatus): Declare opaque.
1172 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1174 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1175 (stabs_argument_has_addr): New architecture method.
1176 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1177 * arch-utils.c: Include "buildsym.h".
1178 (default_stabs_argument_has_addr): New function.
1179 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1180 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1182 * cris-tdep.c (cris_gdbarch_init): Set
1183 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1184 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1185 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1186 * mips-tdep.c (mips_gdbarch_init): Likewise.
1187 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1188 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1190 2003-09-13 Andrew Cagney <cagney@redhat.com>
1192 * values.c (using_struct_return): Delete "function" and "funcaddr"
1194 * value.h (using_struct_return): Update declaration.
1195 * infcmd.c (finish_command_continuation): Update.
1196 (finish_command): Update.
1197 * infcall.c (call_function_by_hand): Update.
1198 * eval.c (evaluate_subexp_standard): Update.
1200 2003-09-13 Christopher Faylor <cgf@redhat.com>
1202 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1203 SSE registers since gdb will not operate correctly without this.
1204 Restore include file ordering munged in previous change.
1205 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1207 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1209 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1210 REG_STRUCT_HAS_ADDR.
1211 * gdbarch.c, gdbarch.h: Updated.
1212 * infcall.c (call_function_by_hand): Update.
1213 * stabsread.c (define_symbol): Updated.
1215 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1217 2003-09-12 Christopher Faylor <cgf@redhat.com>
1219 * win32-nat.c: Reorganize so that defines used by target headers are
1220 actually defined by the system headers.
1221 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1222 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1224 2003-09-12 Jim Blandy <jimb@redhat.com>
1226 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1227 the file has no .data, .bss, or .rodata sections. Instead wait
1228 until we see a variable alleged to live in one of those sections.
1230 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1231 .bss section, presume that any variables we find live in the
1234 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1235 offsets for global and static variables.
1237 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1238 symbol types are, by definition, in the .data section, so it is
1239 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1240 If there is no .data section, there should be no N_DATA or N_DATA
1243 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1245 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1246 (amd64fbsd_sigcontext_addr): Rewrite.
1247 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1248 with correct values.
1249 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1250 (amd64fbsd_init_abi): Fix typo.
1252 2003-09-12 Andrew Cagney <cagney@redhat.com>
1254 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1255 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1257 2003-09-12 Andrew Cagney <cagney@redhat.com>
1259 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1260 "entry_file_highpc". Update comments.
1261 * defs.h (deprecated_inside_entry_file): Rename
1262 "inside_entry_file".
1263 * blockframe.c (deprecated_inside_entry_file): Rename
1264 "inside_entry_file".
1265 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1266 * vax-tdep.c (vax_frame_chain): Update.
1267 * sh64-tdep.c (sh64_frame_chain): Update.
1268 * sh-tdep.c (sh_frame_chain): Update.
1269 * rs6000-tdep.c (rs6000_frame_chain): Update.
1270 * ns32k-tdep.c (ns32k_frame_chain): Update.
1271 * mips-tdep.c (mips_frame_chain): Update.
1272 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1273 * m32r-tdep.c (m32r_frame_this_id): Update.
1274 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1275 * frv-tdep.c (frv_frame_this_id): Update.
1276 * d10v-tdep.c (d10v_frame_this_id): Update.
1277 * cris-tdep.c (cris_frame_chain): Update.
1278 * blockframe.c (legacy_frame_chain_valid): Update.
1279 * avr-tdep.c (avr_frame_this_id): Update.
1280 * arm-tdep.c (arm_prologue_this_id): Update.
1281 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1282 * objfiles.c (objfile_relocate): Update.
1283 * mipsread.c (mipscoff_symfile_read): Update.
1284 (mipscoff_symfile_read): Update.
1285 * mdebugread.c (parse_partial_symbols): Update.
1286 * dwarfread.c (read_file_scope): Update.
1287 * dwarf2read.c (read_file_scope): Update.
1288 * dbxread.c (read_dbx_symtab): Update.
1289 (read_dbx_symtab): Update.
1290 * coffread.c (complete_symtab): Update.
1292 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1294 * top.c (quit_target): New static helper function.
1295 (quit_force): Moved code to quit_target(). Call quit_target()
1296 via catch_errors() to catch errors during quit.
1298 2003-09-11 David Carlton <carlton@kealia.com>
1300 * buildsym.c (finish_block): Use allocate_block to allocate the
1302 * mdebugread.c (new_block): Add FIXME.
1304 2003-09-11 David Carlton <carlton@kealia.com>
1306 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1307 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1308 (recursive_dump_type): Ditto.
1309 * printcmd.c (print_formatted): Ditto.
1310 * typeprint.c (print_type_scalar): Ditto.
1311 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1312 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1313 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1314 maint_cplus_cmd_list.
1315 * cp-support.c: Make maint_cplus_cmd_list extern.
1316 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1318 (lookup_symbol_file): Look in possible namespace blocks when
1320 (initialize_namespace_symtab): New.
1321 (get_possible_namespace_block, free_namespace_block)
1322 (check_possible_namespace_symbols)
1323 (check_possible_namespace_symbols_loop)
1324 (check_one_possible_namespace_symbol)
1325 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1326 (_initialize_cp_namespace): Ditto.
1327 * block.h: Declare allocate_block.
1328 * block.c (allocate_block): New.
1329 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1331 * symfile.h: Update declaration of add_psymbol_to_list.
1332 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1334 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1335 scan_partial_symbols_call.
1336 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1338 (add_partial_symbol): If necessary, scan mangled names for names
1340 (add_partial_namespace): Add NAMESPACE argument; generate partial
1341 symbols associated to namespaces.
1342 (add_partial_enumeration): Add NAMESPACE argument.
1343 (new_symbol): Allow namespace syms.
1344 (read_namespace): Generate namespace syms.
1345 * objfiles.h: Add opaque declaration of struct symtab.
1346 (struct objfile): Add cp_namespace_symtab member.
1347 * objfiles.c (allocate_objfile): Set
1348 objfile->cp_namespace_symtab.
1349 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1350 dictionary_h, command_h.
1352 2003-09-11 Andrew Cagney <cagney@redhat.com>
1354 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1355 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1356 near the function's end.
1357 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1358 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1359 regcache_raw_write_signed to set SP_REGNUM.
1361 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1363 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1364 orig_addrs is set up properly.
1366 2003-09-11 Andrew Cagney <cagney@redhat.com>
1368 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1369 * gdbarch.h, gdbarch.c: Re-generate.
1370 * infcall.c (call_function_by_hand): Update.
1371 * hppa-tdep.c (hppa_push_arguments): Update.
1372 * ada-lang.c (place_on_stack): Update.
1373 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1374 * sparc-tdep.c (sparc_gdbarch_init): Update.
1375 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1376 * hppa-tdep.c (hppa_gdbarch_init): Update.
1377 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1380 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1382 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1383 register do need a frame.
1385 2003-09-11 Andrew Cagney <cagney@redhat.com>
1387 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1388 buildable since GDB 5.0.
1389 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1390 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1391 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1392 * irix4-nat.c: Delete file.
1393 * config/mips/irix4.mh: Delete file.
1394 * config/mips/irix3.mh: Delete file.
1395 * config/mips/irix3.mt: Delete file.
1396 * config/mips/tm-irix3.h: Delete file.
1397 * config/mips/nm-irix3.h: Delete file.
1398 * config/mips/xm-irix3.h: Delete file.
1399 * config/mips/nm-irix4.h: Delete file.
1400 * config/mips/xm-irix4.h: Delete file.
1401 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1403 2003-09-10 J. Brobecker <brobecker@gnat.com>
1405 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1406 * Makefile.in (hppa-tdep.o): Update dependencies.
1408 2003-09-10 James E Wilson <wilson@specifixinc.com>
1410 * MAINTAINERS: Change my e-mail address. Move to paper trail
1413 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1415 * MAINTAINERS (frv): New ISA entry.
1417 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1419 * frv-tdep.c (dis-asm.h): Include.
1420 * Makefile.in (frv-tdep.o): Update dependencies.
1422 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1424 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1425 Fix typo for high range of floating registers.
1427 2003-09-09 David Carlton <carlton@kealia.com>
1429 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1430 highpc initialization here out of scan_partial_symbols.
1431 (scan_partial_symbols): Restructure into a recursive version,
1432 calling add_partial_namespace and add_partial_enumeration when
1434 (add_partial_namespace): New.
1435 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1437 2003-09-09 Andrew Cagney <cagney@redhat.com>
1439 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1440 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1441 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1442 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1444 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1445 (rs6000_push_dummy_call): Set the "TOC" register.
1447 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1448 methods "max_register_raw_size", "max_register_virtual_size" or
1449 "register_virtual_size".
1451 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1453 * MAINTAINERS: Update my e-mail address.
1455 2003-09-09 Andrew Cagney <cagney@redhat.com>
1457 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1458 (rs6000_push_dummy_call): Store the struct return address.
1459 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1461 2003-09-09 Andrew Cagney <cagney@redhat.com>
1463 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1464 "ppc_sysv_abi_push_arguments".
1465 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1466 "ppc_sysv_abi_push_arguments".
1467 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1468 instead of "push_arguments".
1469 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1471 2003-09-09 Andrew Cagney <cagney@redhat.com>
1473 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1474 instead of CALL_DUMMY_ADDRESS.
1476 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1478 * p-lang.c: Eliminate "register".
1480 * expprint.c: Ditto.
1483 * language.c: Ditto.
1486 * scm-lang.c: Ditto.
1487 * objc-lang.c: Ditto.
1489 2003-09-09 Nick Clifton <nickc@redhat.com>
1491 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1493 2003-09-04 Andrew Cagney <cagney@redhat.com>
1495 * avr-tdep.c: Include "dis-asm.h".
1496 * cris-tdep.c: Include "dis-asm.h".
1497 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1498 instead of corresponding typedef.
1499 * h8300-tdep.c: Include "dis-asm.h".
1500 * ia64-tdep.c: Include "dis-asm.h".
1501 * i386-tdep.c: Include "dis-asm.h".
1502 (i386_print_insn): Use "struct disassemble_info" instead of
1503 corresponding typedef.
1504 * m68k-tdep.c: Include "dis-asm.h".
1505 * mcore-tdep.c: Include "dis-asm.h".
1506 * mips-tdep.c: Include "dis-asm.h".
1507 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1508 instead of corresponding typedef.
1509 * ns32k-tdep.c: Include "dis-asm.h".
1510 * s390-tdep.c: Include "dis-asm.h".
1511 * sparc-tdep.c: Include "dis-asm.h".
1512 * vax-tdep.c: Include "dis-asm.h".
1513 * v850-tdep.c: Include "dis-asm.h".
1514 * mn10300-tdep.c: Include "dis-asm.h".
1515 * rs6000-tdep.c: Include "dis-asm.h".
1516 * xstormy16-tdep.c: Include "dis-asm.h".
1517 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1518 print_insn_xstormy16.
1519 * Makefile.in (v850-tdep.o): Update dependencies.
1520 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1521 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1522 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1523 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1524 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1525 (gdbarch_h): Remove $(dis_asm_h).
1526 * disasm.c: Include "dis-asm.h".
1527 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1528 corresponding typedef.
1529 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1530 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1531 * gdbarch.sh: Do not include "dis-asm.h".
1532 (struct disassemble_info): Declare opaque.
1533 (TARGET_PRINT_INSN): Update declaration.
1534 * gdbarch.h, gdbarch.c: Re-generate.
1536 2003-09-08 Andrew Cagney <cagney@redhat.com>
1538 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1539 CALL_DUMMY_ADDRESS, change to a predicate.
1540 * gdbarch.h, gdbarch.c: Re-generate.
1541 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1542 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1543 * infcall.c (call_function_by_hand): Ditto.
1544 * sparc-tdep.c (sparc_push_return_address): Ditto.
1545 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1546 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1547 CALL_DUMMY_ADDRESS with entry_point_address.
1548 * v850-tdep.c (v850_push_return_address): Ditto.
1549 * s390-tdep.c (s390_push_return_address): Ditto.
1550 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1551 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1552 * mcore-tdep.c (mcore_push_return_address): Ditto.
1553 * cris-tdep.c (cris_push_return_address): Ditto.
1554 * arm-tdep.c (arm_push_return_address): Ditto.
1556 2003-09-08 Andrew Cagney <cagney@redhat.com>
1558 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1559 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1560 and REG_UNMODIFIED to REG_SAME_VALUE.
1561 (execute_cfa_program): Update.
1562 (dwarf2_frame_cache): Update. Initialize table to
1563 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1565 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1567 2003-09-08 Andrew Cagney <cagney@redhat.com>
1569 * gnu-nat.c: Remove "inline" function attribute.
1570 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1572 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1574 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1577 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1579 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1580 (frame_extra_info): Rename this struct to frv_unwind_cache.
1581 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1582 Add fields ``prev_sp'' and ``base''.
1583 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1584 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1585 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1587 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1588 Revise all callers. Fill in the unwind cache argument and make
1589 other adjustments to account for new frame mechanisms.
1590 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1591 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1592 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1593 (frv_frame_unwind, frv_frame_base): New structs.
1594 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1595 additional arguments expected by this method and adjust function
1597 (frv_gdbarch_init): Remove calls to the following functions:
1598 set_gdbarch_deprecated_init_frame_pc(),
1599 set_gdbarch_deprecated_saved_pc_after_call(),
1600 set_gdbarch_deprecated_frame_chain(),
1601 set_gdbarch_deprecated_frame_saved_pc(),
1602 set_gdbarch_deprecated_frame_init_saved_regs(),
1603 set_gdbarch_deprecated_push_arguments(),
1604 set_gdbarch_deprecated_push_return_address(),
1605 set_gdbarch_deprecated_pop_frame(),
1606 set_gdbarch_deprecated_call_dummy_words(),
1607 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1608 set_gdbarch_deprecated_init_extra_frame_info(),
1609 set_gdbarch_deprecated_dummy_write_sp(), and
1610 set_gdbarch_deprecated_pc_in_call_dummy().
1611 Add calls to the following functions:
1612 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1613 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1614 frame_base_set_default().
1615 * Makefile.in (frv-tdep.o): Update dependencies.
1617 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1619 * dwarf2-frame.c (read_encoded_value): Add support for
1620 DW_EH_PE_aligned encoding.
1622 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1624 * infrun.c (normal_stop): Don't print a message if the inferior
1627 2003-09-08 Jim Blandy <jimb@redhat.com>
1629 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1630 * dbxread.c: #include "gdb_assert.h".
1631 (read_dbx_symtab): If the objfile has no .data section, use the
1632 section index for the .bss section instead.
1634 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1636 * frame.c (deprecated_safe_get_selected_frame): New function.
1637 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1638 * findvar.c (read_var_value): Call it.
1640 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1642 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1643 (sh64-tdep.o): Add dependencies.
1644 * configure.tgt: Add FIXME to sh-*-linux*.
1645 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1646 (sh_gdbarch_init): Always set correct sh_show_regs function
1647 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1648 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1649 * sh64-tdep.c: New file, containing all sh64 related code from
1651 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1652 * config/sh/linux.mt (TDEPFILES): Ditto.
1653 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1654 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1655 * config/sh/wince.mt (TDEPFILES): Ditto.
1657 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1659 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1660 (stop_wait_callback): Handle !lp->signalled also.
1661 (lin_lwp_has_pending, flush_callback): New functions.
1662 (lin_lwp_wait): Call flush_callback.
1663 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1664 (linux_proc_pending_signals): New function.
1665 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1667 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1669 From Nick Kelsey <nickk@ubicom.com>:
1670 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1671 when the stop PC is at the beginning of a function also.
1673 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1675 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1676 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1678 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1680 * sol-thread.c: Include "gdb_string.h".
1682 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1684 * gcore.c: Reorder include files in alphabetical order. Include
1685 "gdb_assert.h". Various coding style fixes.
1686 (derive_stack_segment, derive_heap_segment): Replace check for
1687 non-null BOTTOM and TOP with gdb_assert.
1688 (derive_heap_segment): Replace check for successful creation of
1689 ZERO with gdb_assert.
1690 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1692 2003-09-04 Andrew Cagney <cagney@redhat.com>
1694 * thread-db.c (verbose_dlsym): New function.
1695 (thread_db_load): Use verbose_dlsym
1696 (thread_db_new_objfile): Print that libthread_db was loaded, and
1697 that thread debugging was enabled.
1699 2003-09-04 Andrew Cagney <cagney@redhat.com>
1701 * configure.tgt: Add "mips64*-*-*" target. Delete
1702 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1703 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1704 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1705 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1706 mips*-sony-*, and mips64*-*-elf* targets.
1707 * config/mips/embedl.mt: Delete file.
1708 * config/mips/embedl64.mt: Delete file.
1709 * config/mips/mips.mt: Delete file.
1710 * config/mips/mips64.mt: Delete file.
1711 * config/mips/tm-embed.h: Delete file.
1712 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1713 * config/mips/embed64.mt: Delete out-of-date comment.
1715 2003-09-04 Andrew Cagney <cagney@redhat.com>
1717 * hppa-tdep.c (hppa_gdbarch_init): Set
1718 "have_nonsteppable_watchpoint".
1719 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1720 * mips-tdep.c (mips_dump_tdep): Do not print
1721 HAVE_NONSTEPPABLE_WATCHPOINT.
1722 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1723 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1724 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1725 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1727 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1729 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1730 unused code. Add comment.
1732 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1734 * breakpoint.c (watchpoint_check): Check for pc being in an
1735 epilogue if watchpoint frame couldn't be found.
1737 2003-09-04 Andrew Cagney <cagney@redhat.com>
1739 * Makefile.in: Re-generate all dependencies.
1741 2003-09-03 Andrew Cagney <cagney@redhat.com>
1743 * arch-utils.h (legacy_print_insn): Delete declaration.
1744 * arch-utils.c (legacy_print_insn): Delete function.
1745 * disasm.c (deprecated_tm_print_insn_info): Delete.
1746 (_initialize_disasm): Delete function, contained code initializing
1747 deprecated_tm_print_insn_info.
1748 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1749 (deprecated_tm_print_insn_info): Delete.
1750 (TARGET_PRINT_INSN): Do not provide a default.
1751 * gdbarch.h, gdbarch.c: Re-generate.
1753 2003-09-03 Andrew Cagney <cagney@redhat.com>
1755 * disasm.c (fprintf_disasm): New function.
1756 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1757 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1758 reverts 2003-08-14 change.
1759 (_initialize_disasm): Call "init_disassemble_info", instead of
1760 INIT_DISASSEMBLE_INFO_NO_ARCH.
1762 2003-09-03 Michael Snyder <msnyder@redhat.com>
1764 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1766 2003-09-03 Andrew Cagney <cagney@redhat.com>
1768 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1769 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1770 * symfile.c (syms_from_objfile): Update.
1771 (reread_symbols): `Update
1772 * exec.c (exec_file_attach): Update.
1773 (exec_file_attach): Update.
1774 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1776 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1778 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1780 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1782 (arm_get_cache): Delete macro.
1783 (struct arm_prologue_cache): Update comments. Make saved_regs into
1784 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1786 (thumb_scan_prologue): Update for cache changes. Don't call
1787 DEPRECATED_PC_IN_CALL_DUMMY.
1788 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1789 argument and use it in desperation search for our prologue. Do not
1790 search past the specified PC.
1791 (arm_make_prologue_cache): Simplify.
1793 (arm_prologue_this_id, arm_prologue_prev_register)
1794 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1795 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1796 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1797 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1798 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1800 (arm_frame_chain_valid, arm_find_callers_reg)
1801 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1802 (arm_pop_frame): Delete obsolete methods.
1803 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1805 (arm_gdbarch_init): Update for new frame methods. Register prologue
1806 and sigtramp unwinders. Set the default frame base method.
1808 * Makefile.in (arm-tdep.o): Update dependencies.
1809 * varobj.c (find_frame_addr_in_frame_chain): Call
1810 get_frame_base_address.
1811 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1813 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1815 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1816 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1817 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1818 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1819 Take NEXT_FRAME and CACHE arguments. Call
1820 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1821 Set unwound_pc in CACHE instead of modifying the frame argument.
1822 Don't bother checking the frame type when looking for sigtramp
1824 (arm_make_prologue_cache, arm_frame_chain)
1825 (arm_init_extra_frame_info): New functions.
1827 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1829 * arm-tdep.c (arm_get_cache): Define.
1830 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1831 unwound_sp, unwound_pc, and saved_regs.
1832 (thumb_scan_prologue): Take a cache instead of the frame.
1833 (arm_scan_prologue): Likewise.
1834 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1835 instead of a temporary frame.
1836 (arm_init_extra_frame_info): Allocate and use a cache.
1837 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1839 2003-09-03 Andrew Cagney <cagney@redhat.com>
1841 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1842 * config/mips/wince.mt (TM_CLIBS): Ditto.
1843 * config/sh/wince.mt (TM_CLIBS): Ditto.
1844 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1845 * config/sparc/sp64.mt (CC): Delete.
1847 2003-09-03 Andrew Cagney <cagney@redhat.com>
1849 * defs.h: Do not include "arch-utils.h".
1850 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1851 GDB_MULTI_ARCH_PURE.
1852 * configure.in (GDB_MULTI_ARCH): Do not define.
1853 * configure, config.in: Regenerate.
1854 * configure.tgt: Do not set variable "gdb_multi_arch".
1855 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1856 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1857 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1858 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1859 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1860 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1861 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1862 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1863 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1864 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1865 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1866 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1867 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1868 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1869 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1870 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1871 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1872 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1874 2003-08-30 Michael Chastain <mec@shout.net>
1876 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1877 * config/m68k/nm-hp300hpux.h: Delete.
1878 * config/m68k/tm-hp300hpux.h: Delete.
1879 * config/m68k/xm-hp300hpux.h: Delete.
1880 * config/m68k/xm-hp300bsd.h: Delete.
1881 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1882 tm-hp300hpux.h, xm-hp300hpux.h.
1883 * somsolib.c: Remove comment about hp300 shared libraries.
1885 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1887 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1888 Only define PTRACE_GET_THREAD_AREA is not already defined.
1889 Various style fixes in code and comments and some additional
1890 spelling fixes in comments. Move after functions dealing with
1892 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1895 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1896 frame_unwind_register_unsigned instead of
1897 frame_unwind_unsigned_register.
1899 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1901 * configure.in: Search for gethostbyname in libnsl.
1902 * configure: Regenerated.
1904 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1906 * configure.in: Remove redundant AC_MSG_RESULT in check for
1907 uintptr_t in stdint.h.
1908 * configure: Regenerated.
1910 * amd64-nat.h (struct regcache): Add opaque declaration.
1912 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1913 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1914 Change "register array" to "register cache" in comments.
1915 (x86_64_linux_gregset64_reg_offset): New variable.
1916 (GETREGS_SUPPLIES): Remove macro.
1917 (supply_gregset): Call amd64_supply_native_gregset instead of
1918 x86_64_linux_supply_gregset.
1919 (fill_gregset): Rename `regno' to `regnum'. Call
1920 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1921 (store_regs): Rename `regno' to `regnum'.
1922 (store_fpregs): Rename `regno' to `regnum'.
1923 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1924 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1925 Reorganize function a bit.
1926 (store_inferior_registers): Rename `regno' to `regnum'. Use
1927 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1928 Reorganize function a bit.
1929 (_initialize_x86_64_linux_nat): New function.
1930 * config/i386/x86-64linux.mh.
1932 2003-08-29 Andrew Cagney <cagney@redhat.com>
1934 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1935 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1936 (target_remove_watchpoint): Delete macro.
1937 (target_insert_watchpoint): Delete macro.
1938 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1939 (remote_mips_stopped_by_watchpoint): Delete declaration.
1940 (remote_mips_remove_watchpoint): Delete declaration.
1941 (remote_mips_set_watchpoint): Delete declaration.
1942 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1943 * remote-mips.c (_initialize_remote_mips): Set
1944 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1945 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1946 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1947 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1948 (mips_stopped_by_watchpoint): Rename
1949 remote_mips_stopped_by_watchpoint.
1950 (mips_can_hardware_watchpoint): Rename
1951 remote_mips_can_use_hardware_watchpoint, update function
1954 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1956 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1957 USER_DS. We haven't given them a register number yet.
1959 * amd64-nat.h: New file.
1960 * amd64-nat.c: New file.
1961 * amd64fbsd-nat.c: Include "amd64-nat.h".
1962 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1963 (amd64fbsd32_r_reg_offset): New variable.
1964 (supply_gregset): Simply call amd64_supply_native_gregset.
1965 (fill_gregset): Rename `regno' to `regnum'. Simply call
1966 amd64_collect_native_gregset.
1967 (fill_fpregset): Rename `regno' to `regnum'.
1968 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
1969 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1970 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1971 `fpregset_t'. Call amd64_supply_native_gregset instead of
1972 supply_gregset. Call x86_64_supply_fxsave instead of
1974 (store_inferior_registers): Rename `regno' to `regnum'. Replace
1975 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
1976 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
1977 `fpregset_t'. Call amd64_collect_native_gregset instead of
1978 fill_gregset. Call x86_64_collect_fxsave instead of
1980 (_initialize_am64fbsd_nat): Initialize
1981 amd64_native_gregset32_reg_offset and
1982 amd64_native_gregset64_reg_offset.
1983 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
1985 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
1986 null pointer. Fix typo in comment.
1988 * regcache.c (supply_register): Reimplement to call
1989 regcache_raw_supply.
1990 (regcache_collect): Reimplement by calling regcache_raw_collect.
1992 2003-08-28 Mark Kettenis <kettenis@gnu.org>
1994 * regcache.c (register_buffer): Consitify first argument.
1995 (regcache_raw_supply, regcache_raw_collect): New
1998 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2000 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2001 by Nathan J. Williams.
2003 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2005 * lin-lwp.c (wait_lwp): New function, copied from
2006 stop_wait_callback. Clean up.
2007 (stop_wait_callback): Use wait_lwp.
2009 2003-08-28 Andrew Cagney <cagney@redhat.com>
2011 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2012 flavour and disassembler options.
2013 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2014 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2015 deprecated_tm_print_insn_info.
2017 2003-08-27 Andrew Cagney <cagney@redhat.com>
2019 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2020 Use target_read_memory.
2021 (s390_get_frame_info): Update. Do not reference
2022 deprecated_tm_print_insn_info.
2023 (s390_check_function_end, s390_is_sigreturn): Ditto.
2025 2003-08-27 Andrew Cagney <cagney@redhat.com>
2027 * Makefile.in (cris-tdep.o): Update dependencies.
2028 * cris-tdep.c: Include "gdb_assert.h".
2029 (cris_gdbarch_init): Set print_insn.
2030 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2031 (cris_delayed_get_disassembler): Simplify, directly call the
2032 disassembler returned by cris_get_disassembler.
2033 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2034 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2035 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2036 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2037 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2038 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2039 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2040 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2041 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2042 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2043 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2044 (gdb_print_insn_sparc): Delete function.
2045 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2046 deprecated_tm_print_insn_info.
2047 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2048 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2049 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2050 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2051 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2052 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2053 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2054 (s390_gdbarch_init): Set print_insn.
2056 2003-08-27 Andrew Cagney <cagney@redhat.com>
2058 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2059 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2060 * infcall.c (call_function_by_hand): Convert the entry point
2061 address into a code address.
2063 2003-08-27 Andrew Cagney <cagney@redhat.com>
2065 * dsrec.c: Include "gdb_string.h".
2066 * Makefile.in (dsrec.o): Update dependencies.
2068 2003-08-27 Michael Chastain <mec@shout.net>
2070 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2072 2003-08-27 Andrew Cagney <cagney@redhat.com>
2074 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2075 (alpha_osf1_init_abi): Do not set call_dummy_address.
2077 2003-08-27 David Carlton <carlton@kealia.com>
2079 From Randolph Chung <tausq@debian.org>:
2080 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2081 compiles with -Wformat-nonliteral -Werror.
2083 2003-08-26 Jim Blandy <jimb@redhat.com>
2085 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2086 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2087 bfd_lookup_symbol, since we only want symbols in code sections.
2088 (look_for_base): Pass zero as the SECT_FLAGS argument to
2089 bfd_lookup_symbol, since we're not concerned about which section
2092 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2094 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2095 we are frameless or the return address register is already known.
2097 2003-08-26 Andrew Cagney <cagney@redhat.com>
2099 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2100 in size. Add comments.
2102 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2104 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2105 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2107 2003-08-26 Jason Merrill <jason@redhat.com>
2109 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2110 case out of #ifdef MIPS block.
2112 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2115 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2116 available before calling SECT_OFF_TEXT.
2117 * PROBLEMS: Remove description of java/1322.
2119 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2121 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2122 bof, and nat0-nat127 as pseudo-registers.
2123 (ia64_frame_cache): New struct used to cache frame info.
2124 (ia64_register_reggroup_p): New routine used to override default
2125 register grouping so registers without names are still saved and
2127 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2129 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2130 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2131 (ia64_alloc_frame_cache): New routine to create a new
2133 (examine_prologue): Change prototype to add next_frame pointer.
2134 Assume frameless until otherwise proven. Verify that the cfm for
2135 current frame matches the cfm that should occur for the prologues
2136 alloc insn and if equal, mark as not frameless. At end of routine,
2137 if not frameless, calculate registers for the previous frame and store
2138 in the cache, if a cache is provided.
2139 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2140 and pass 0 for next_frame.
2141 (ia64_store_return_value): Change to use convert_typed_floating()
2142 instead of calling ia64_convert_to_raw().
2143 (ia64_extract_return_value): Change to use convert_typed_floating()
2144 instead of calling ia64_convert_to_virtual().
2145 (ia64_frame_cache): New routine to support new frame model.
2146 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2147 (ia64_frame_sniffer): Ditto.
2148 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2149 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2150 (ia64_sigtramp_frame_prev_register): Ditto.
2151 (ia64_sigtramp_frame_sniffer): Ditto.
2152 (ia64_frame_base_address): Ditto.
2153 (ia64_extract_struct_value_address): Change to issue error message.
2154 (ia64_frame_align): New routine to align sp.
2155 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2156 (ia64_push_arguments): Removed. Logic moved to
2157 ia64_push_dummy_call().
2158 (ia64_push_return_address): Ditto.
2159 (ia64_unwind_dummy_id): New function.
2160 (ia64_unwind_pc): Ditto.
2161 (ia64_convert_register_p): Ditto.
2162 (ia64_register_to_value): Ditto.
2163 (ia64_value_to_register): Ditto.
2164 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2165 (ia64_register_byte, ia64_register_raw_size): Ditto.
2166 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2167 (ia64_saved_pc_after_call): Ditto.
2168 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2169 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2170 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2171 (ia64_register_convert_to_raw): Ditto.
2172 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2173 (ia64_init_extra_frame_info): Ditto.
2174 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2175 (ia64_gdbarch_init): Remove registering of deprecated functions that
2176 are no longer used. Add registration of new gdbarch functions.
2177 Remove registering deprecated_write_sp. Replace
2178 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2179 Delete set_gdbarch_deprecated_register_convertible(),
2180 set_gdbarch_deprecated_register_convert_to_virtual(), and
2181 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2182 set_gdbarch_deprecated_register_size(),
2183 set_gdbarch_deprecated_register_bytes(),
2184 set_gdbarch_pcregnum(),
2185 set_gdbarch_deprecated_register_byte(),
2186 set_gdbarch_deprecated_register_raw_size(),
2187 set_gdbarch_deprecated_max_register_raw_size(),
2188 set_gdbarch_deprecated_register_virtual_size(),
2189 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2190 Replace set_gdbarch_deprecated_extract_return_value() with
2191 set_gdbarch_extract_return_value(). Remove calls to:
2192 set_gdbarch_deprecated_saved_pc_after_call();
2193 set_gdbarch_deprecated_frame_chain(),
2194 set_gdbarch_deprecated_frame_saved_pc(),
2195 set_gdbarch_deprecated_frame_init_saved_regs(),
2196 set_gdbarch_deprecated_get_saved_register(),
2197 set_gdbarch_deprecated_call_dummy_words(),
2198 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2199 set_gdbarch_deprecated_init_extra_frame_info(),
2200 set_gdbarch_deprecated_frame_args_address(),
2201 set_gdbarch_deprecated_frame_locals_address(),
2202 and set_gdbarch_deprecated_dummy_write_sp().
2203 Add set_gdbarch_convert_register_p(),
2204 set_gdbarch_register_to_value(),
2205 set_gdbarch_value_to_register(),
2206 set_gdbarch_push_dummy_call(),
2207 set_gdbarch_frame_align(),
2208 set_gdbarch_unwind_dummy_id(),
2209 set_gdbarch_unwind_pc(),
2210 frame_unwind_append_sniffer(),
2211 frame_unwind_append_sniffer(),
2212 and frame_base_set_default().
2214 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2216 * configure.tgt: Document need for special "mipsisa64" handling.
2217 (mipsisa64*-*-linux64): Handle as target linux64.
2218 (mipsisa64*-*-*): Handle as target embed64.
2220 2003-08-18 Michael Chastain <mec@shout.net>
2222 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2225 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2227 * i387-tdep.h: Update copyright date.
2228 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2230 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2231 CFLAGS games to reflect reality.
2233 2003-08-24 Andrew Cagney <cagney@redhat.com>
2235 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2236 GDB_MULTI_ARCH is always non-zero.
2237 * osabi.c (_initialize_gdb_osabi): Ditto.
2238 (gdbarch_init_osabi): Ditto.
2239 * sparc-tdep.c: Ditto for #if code.
2241 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2243 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2245 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2247 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2248 x86_64_supply_fxsave.
2249 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2250 x86_64_supply_fxsave.
2251 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2252 x86_64_supply_fxsave.
2254 2003-08-23 Andreas Jaeger <aj@suse.de>
2256 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2259 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2261 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2262 i387_supply_register.
2263 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2264 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2266 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2268 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2270 * i386bsd-nat.c (supply_fpregset): Adjust call to
2272 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2273 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2275 (store_inferior_registers): Remove extraneous whitespace. Call
2276 i387_fill_fsave instead of fill_fpregset.
2277 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2278 (supply_fpregset): Likewise.
2279 * i386v4-nat.c (supply_fpregset): Adjust call to
2281 * i386-interix-nat.c (supply_fpregset): Adjust call to
2283 * i386-linux-nat.c (supply_fpregset): Adjust call to
2285 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2286 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2287 i387supply_fsave and i387_supply_fxsave.
2288 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2289 Incorporate code from `i387_supply_register.
2290 (i387_supply_register): Remove.
2291 (i387_supply_fxsave): Add `regnum' argument.
2293 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2295 (i387_supply_register): remove prototype.
2298 2003-08-22 Michael Chastain <mec@shout.net>
2300 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2301 Add lines for files in gdb/testsuite/gdb.cp/* that are
2302 still not 8.3 unique.
2304 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2306 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2307 TYPE_VPTR_FIELDNO is valid.
2309 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2311 * utils.c (set_width_command): Remove prototypes.
2312 (set_screen_size): New prototype.
2313 (init_page_info): Simplify by fetching the screen size from
2314 Readline. Call set_screen_size.
2315 (set_screen_size): New function.
2316 (set_width): Add missing whitespace in comment.
2317 (set_width_command): Call set_screen_size.
2318 (set_height_command): New function.
2319 (initialize_utils): Fix formatting. Make "set height" command
2320 call set_height_command. Remove redundant code that turns off
2321 pagination if output isn't a terminal. Remove redundant call to
2324 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2326 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2327 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2328 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2329 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2331 (sparc64_register_info): Give the reister with number
2332 SPARC64_STATE_REGNUM a name.
2333 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2335 (sparc64_push_dummy_call): Take BIAS into account when checking
2337 (sparc_software_single_step): Remove assertions that check whether
2338 NPC and NNPC were zero.
2339 (sparc_supply_rwindow): Make public. Merge functionality with
2340 sparc64_supply_rwindow.
2341 (sparc_fill_rwindow): Make public. Merge functionality with
2342 sparc64_fill_rwindow.
2343 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2344 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2345 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2346 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2347 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2349 * reggroups.c: Add whitespace after declarations of local
2350 variables in functions.
2352 2003-08-21 Michael Chastain <mec@shout.net>
2354 * gdbtypes.h: Change array bound type from an int to enum.
2356 2003-08-21 Andrew Cagney <cagney@redhat.com>
2358 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2359 * config/sparc/tm-sparc.h: Ditto.
2360 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2362 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2364 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2366 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2367 (register_objfile_data, set_objfile_data, objfile_data): New
2369 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2371 (allocate_objfile): Call objfile_alloc_data.
2372 (free_objfile): Call objfile_free_data.
2373 (struct objfile_data): New.
2374 (struct objfile_data_registration): New.
2375 (struct objfile_data_registry): New.
2376 (objfile_data_registry): New variable.
2377 (register_objfile_data): New function.
2378 (objfile_alloc_data, objfile_free_data): New functions.
2379 (set_objfile_data, objfile_data): New functions.
2380 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2381 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2382 (_initialize_dwarf2_frame): New function and prototype.
2384 2003-08-21 Andrew Cagney <cagney@redhat.com>
2386 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2387 a specific architecture.
2388 * arch-utils.h (set_architecture_from_arch_mach): Delete
2390 (target_architecture_hook): Delete declaration.
2391 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2392 (default_float_format): Assume GDB_MULTI_ARCH.
2393 (default_double_format): Assume GDB_MULTI_ARCH.
2394 (set_endian_from_file): Delete function.
2395 (arch_ok): Delete function.
2396 (set_arch): Delete function.
2397 (set_architecture_from_arch_mach): Delete function.
2398 (set_architecture_from_file): Delete function.
2399 (set_architecture): Assume GDB_MULTI_ARCH.
2400 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2402 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2404 Rewrite FreeBSD/sparc64 native configuration.
2405 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2406 * sparc64fbsd-nat.c: New file.
2407 * sparc64fbsd-tdep.c: New file.
2408 * sparc64-tdep.c sparc64-tdep.h: New files.
2409 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2410 sparc64fbsd-tdep.o): New dependencies.
2411 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2412 and sparc64fbsd-tdep.c.
2413 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2414 * config/sparc/fbsd.mh: Remove copyright notice.
2415 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2417 * config/sparc/fbsd.mt: Remove copyright notice.
2418 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2419 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2420 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2421 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2422 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2423 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2424 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2425 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2427 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2428 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2430 2003-08-21 Michael Chastain <mec@shout.net>
2432 * symtab.h: Add doco on the space critical structures and
2433 some measurements of space usage.
2435 2003-08-21 Michael Snyder <msnyder@redhat.com>
2437 * tracepoint.c (trace_dump_command): Trace break address
2438 is subject to DECR_PC_AFTER_BREAK.
2439 (set_traceframe_context): Make "trace_line" an int.
2440 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2442 2003-08-20 Michael Snyder <msnyder@redhat.com>
2444 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2445 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2446 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2448 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2449 functions, replace sh_push_dummy_call.
2450 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2452 2003-08-20 Michael Chastain <mec@shout.net>
2454 * gdbtypes.h (struct main_type): Rearrange to save space.
2456 2003-08-20 Michael Snyder <msnyder@redhat.com>
2458 * trad-frame.c: Comment typo fix.
2460 2003-08-20 Michael Snyder <msnyder@redhat.com>
2461 Kevin Buettner <kevinb@redhat.com>
2463 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2464 (frv_frame_init_saved_regs): Add declaration.
2465 (frame_extra_info): Add new field ``saved_regs''.
2466 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2467 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2468 Update frame related code.
2469 (frv_extract_struct_value_address): Adjust formatting.
2470 * Makefile.in (frv-tdep.o): Update dependencies.
2471 * config/frv/tm-frv.h (target_insert_watchpoint)
2472 (target_remove_watchpoint, target_insert_hw_breakpoint)
2473 (target_remove_hw_breakpoint): Delete these macros.
2474 (remote_insert_watchpoint, remote_remove_watchpoint)
2475 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2478 2003-08-20 Michael Chastain <mec@shout.net>
2480 * defs.h (ENUM_BITFIELD): New macro.
2481 * symtab.h (ENUM_BITFIELD): Use it.
2482 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2484 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2486 * MAINTAINERS (write after approval): Add myself.
2488 2003-08-18 Andrew Cagney <cagney@redhat.com>
2490 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2491 * gdbarch.h, gdbarch.c: Re-generate.
2492 * infcall.c (call_function_by_hand): Adjust the SP by
2493 frame_red_zone_size before allocating any stack space.
2494 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2495 * x86-64-tdep.c (x86_64_frame_align): New function.
2496 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2498 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2499 Remove code adjusting SP so that it skips over the Red Zone.
2501 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2503 * NEWS (New native configurations): Mention FreeBSD/amd64.
2505 2003-08-18 Andrew Cagney <cagney@redhat.com>
2507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2508 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2510 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2512 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2514 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2516 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2518 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2520 * i386-linux-nat.c: Include "linux-nat.h".
2521 (child_post_startup_inferior): New function.
2523 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2525 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2526 at the start of a frameless function. This probably fixes PR
2529 2003-08-17 Michael Chastain <mec@shout.net>
2531 * symfile.c (find_sym_fns): Remove special case for apollo target.
2533 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2535 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2536 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2537 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2538 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2539 (linux_supports_tracevforkdone): New function.
2540 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2542 (child_follow_fork): Handle vfork.
2543 (linux_handle_extended_wait): Likewise. Also handle exec.
2544 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2545 * NEWS: Mention fork tracing.
2547 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2549 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2551 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2553 * Makefile.in (i386-linux-nat.o): Update dependencies.
2554 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2555 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2556 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2557 * i386-linux-nat.c: Include "linux-nat.h".
2558 (child_post_startup_inferior): New function.
2559 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2560 * infptrace.c (kill_inferior): Wrap in #ifdef.
2561 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2562 attaching to each LWP.
2563 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2564 (init_lin_lwp_ops): Fill in some more operations.
2565 * linux-nat.h (linux_enable_event_reporting)
2566 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2568 * linux-nat.c (linux_enable_event_reporting): New function.
2569 (child_post_attach, linux_child_post_startup_inferior)
2570 (child_post_startup_inferior, child_follow_fork)
2571 (linux_handle_extended_wait, kill_inferior): New functions.
2573 2003-08-16 Andrew Cagney <cagney@redhat.com>
2575 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2576 * gdbarch.h, gdbarch.c: Re-generate.
2578 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2580 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2582 2003-08-16 Andrew Cagney <cagney@redhat.com>
2584 * NEWS: Mention that "set prompt-escape-char" was deleted.
2585 * top.c (get_prompt_1): Delete function.
2586 (gdb_prompt_escape):
2587 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2588 prompt-escape-char" command.
2589 (MAX_PROMPT_SIZE): Delete macro.
2590 (get_prompt): Simplify, do not call get_prompt_1.
2592 2003-08-16 Andrew Cagney <cagney@redhat.com>
2594 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2595 -Werror. -Wformat-nonliteral problems.
2597 2003-08-15 J. Brobecker <brobecker@gnat.com>
2599 Further multiarching work mostly for hppa64-*-hpux11:
2600 * hppa-tdep.h: New file.
2601 * hppa-tdep.c: #include hppa-tdep.c.
2602 (hppa32_num_regs): Renamed from hppa_num_regs.
2603 (hppa64_num_regs): New constant.
2604 (hppa64_call_dummy_breakpoint_offset): New constant.
2605 (hppa32_call_dummy_length): New constant.
2606 (hppa64_call_dummy_length): New constant.
2607 (hppa32_stack_align): Make name 32bit explicit.
2608 (hppa32_register_virtual_type): Likewise.
2609 (hppa32_extract_return_value): Likewise.
2610 (hppa32_use_struct_convention): Likewise.
2611 (hppa32_store_return_value): Likewise.
2612 (hppa64_register_virtual_type): New function.
2613 (hppa64_extract_return_value): New function.
2614 (hppa64_use_struct_convention): New function.
2615 (hppa64_store_return_value): New function.
2616 (hppa_frame_locals_address): Remove declaration, function does
2618 (hppa_register_byte): Add support for PA64 ABI.
2619 (hppa_gdbarch_init): Add support for PA64 ABI.
2620 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2621 Make name 32bit explicit.
2622 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2623 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2624 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2625 (hppa64_hpux_frame_base_before_sigtramp): New function.
2626 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2627 * config/pa/tm-hppa64.h: Remove macros that are no longer
2628 necessary now that the gdbarch vector is properly setup.
2629 Transform some macros into function calls. Some minor cleanup.
2630 * config/pa/tm-hppah.h: Update function calls in macros
2631 following the function renaming in hppa-hpux-tdep.c.
2632 * Makefile.in (hppa_tdep_h): New variable.
2633 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2635 2003-08-14 Michael Snyder <msnyder@redhat.com>
2637 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2639 2003-08-13 J. Brobecker <brobecker@gnat.com>
2641 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2642 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2645 2003-08-13 Michael Snyder <msnyder@redhat.com>
2647 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2648 (frv_saved_pc_after_call): Use deprecated ftype.
2649 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2650 (frv_remote_translate_xfer_address): Remove.
2651 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2653 2003-08-13 J. Brobecker <brobecker@gnat.com>
2655 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2656 initialization after the common gdbarch initialization, not before.
2658 2003-08-13 J. Brobecker <brobecker@gnat.com>
2660 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2661 (ADDR_BITS_REMOVE): Remove, redundant.
2663 2003-08-13 J. Brobecker <brobecker@gnat.com>
2665 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2666 gdbarch method to clear the 2 low bits of text addresses.
2668 2003-08-12 Andrew Cagney <cagney@redhat.com>
2670 * Makefile.in (dsrec.o): Update dependencies.
2671 * dsrec.c: Include "gdb_assert.h".
2672 (make_srec): Use snprintf instead of sprintf, use a literal format
2675 2003-08-12 Andrew Cagney <cagney@redhat.com>
2677 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2678 FRAME_OBSTACK_ZALLOC.
2680 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2682 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2685 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2687 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2688 amd64fbsd_sc_reg_offset): Add extern declarations.
2689 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2692 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2694 * MAINTAINERS (write after approval): Update my mail address.
2696 2003-08-10 Andrew Cagney <cagney@redhat.com>
2698 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2700 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2702 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2703 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2704 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2705 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2706 i386bsd_sc_reg_offset): Add extern declarations.
2707 * i386obsd-nat.c: Include "i386-tdep.h"
2708 (_initialize_i386obsd_nat): Remove extern declarations.
2709 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2711 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2714 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2715 instead of frame_read_register.
2716 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2717 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2719 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2720 instead of frame_unwind_unsigned_register. Use
2721 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2722 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2723 instead of read_register. Use builtin_type_void_data_ptr instead
2724 of builtin_type_void_func_ptr when extracting the address of the
2726 (i386_extract_return_value, i386_store_return_value,
2727 i386_pseudo_register_read, i386_pseudo_register_write): Use
2728 register_size instead REGISTER_RAW_SIZE.
2730 2003-08-10 Andrew Cagney <cagney@redhat.com>
2732 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2733 sprintf. Make "name" constant.
2735 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2737 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2738 instead of frame_read_register.
2739 (i387_print_float_info): Use get_frame_register and
2740 get_frame_register_unsigned instead of frame_register_read.
2742 * i386fbsd-nat.c: Include "i386-tdep.h".
2743 (child_resume): Make `eflags' an ULONGEST. Use
2744 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2745 instead of register_read and register_write.
2747 * i386bsd-nat.c (fetch_inferior_registers,
2748 store_inferior_registers): Don't use && at the end of a line.
2749 (_initialize_i386bsd_nat): Fix typo.
2751 * frame.c (_initialize_frame): Add missing backslash.
2753 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2754 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2755 and supply_register instead of manipulating the register buffer
2758 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2759 * config/i386/nm-i386sol2.h
2760 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2762 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2763 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2764 instructions that GCC likes to mingle into the prologue. Fixes
2765 gdb/1253 and gdb/1255.
2767 2003-08-09 Andrew Cagney <cagney@redhat.com>
2770 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2771 * command.h (add_setshow_uinteger_cmd): Declare.
2772 * frame.c (set_backtrace_cmd): New function.
2773 (show_backtrace_cmd): New function.
2774 * frame.c (_initialize_frame): Replace "set/show
2775 backtrace-below-main" with "set/show backtrace past-main". Add
2776 command "set/show backtrace limit".
2777 (backtrace_past_main): Rename "backtrace_below_main".
2778 (backtrace_limit): New variable.
2779 (get_prev_frame): Update. Check the backtrace_limit.
2781 2003-08-09 Andrew Cagney <cagney@redhat.com>
2783 * defs.h (xstrprintf): Declare.
2784 * utils.c (xstrprintf): New function.
2785 * breakpoint.c (insert_breakpoints): Replace sprintf and
2786 non-literal format strings, with xstrprintf and cleanups.
2787 (delete_breakpoint,breakpoint_re_set): Ditto.
2788 (commands_command, insert_breakpoints): Ditto.
2789 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2790 (break_at_finish_command_1): Ditto.
2792 2003-08-09 Andrew Cagney <cagney@redhat.com>
2794 * MAINTAINERS (language support): List Adam Fedor as Objective C
2797 2003-08-08 J. Brobecker <brobecker@gnat.com>
2799 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2800 are now multiarched.
2802 2003-08-08 J. Brobecker <brobecker@gnat.com>
2804 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2805 longer necessary now that hppa64 is partially multiarch'ed.
2807 2003-08-08 Andrew Cagney <cagney@redhat.com>
2809 * interps.c (interp_set): Check for a NULL "old_interp".
2811 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2813 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2814 (install-only): Support DESTDIR.
2815 (uninstall): Likewise.
2816 (install-gdbtk): Likewise.
2818 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2820 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2821 contains something meaningful at all times.
2823 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2825 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2827 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2829 * MAINTAINERS (write after approval): Added self.
2831 2003-08-07 Andrew Cagney <cagney@redhat.com>
2833 * inferior.h (AT_SYMBOL): Define.
2834 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2835 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2836 * mips-tdep.c (mips_call_dummy_address): Delete function.
2837 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2838 set call_dummy_address.
2840 2003-08-07 Andrew Cagney <cagney@redhat.com>
2842 * language.c (op_error): Delete function.
2843 (binop_type_check): Delete function.
2844 * language.h (type_op_error, range_op_error): Delete macros.
2845 (op_error): Delete declaration.
2847 2003-08-07 Andrew Cagney <cagney@redhat.com>
2849 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2851 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2853 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2854 (x86_64_push_arguments): Skip the red zone.
2856 2003-08-05 Andrew Cagney <cagney@redhat.com>
2858 * reggroups.c (reggroup_next): Check for the final entry.
2860 2003-08-04 Andrew Cagney <cagney@redhat.com>
2862 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2863 * cli/cli-script.c (define_command): Call query directly, instead
2864 of passing it a buffer.
2865 * ocd.c (ocd_error): Pass error a constant format string.
2866 * remote-mips.c (mips_error): Use fputs_filtered.
2868 * solib-svr4.c (_initialize_svr4_solib): Update
2869 register_gdbarch_data call.
2870 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2872 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2873 (register_gdbarch_data): Delete "free" parameter. Update
2875 * gdbarch.h, gdbarch.c: Re-generate.
2876 * reggroups.c (_initialize_reggroup): Update.
2877 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2878 * frame-base.c (_initialize_frame_base): Update.
2879 * frame-unwind.c (_initialize_frame_unwind): Update.
2880 * user-regs.c (_initialize_user_regs): Update.
2881 * remote.c (_initialize_remote): Update.
2882 * regcache.c (_initialize_regcache): Update.
2884 * regcache.c (xfree_regcache_descr): Delete function.
2885 (_initialize_regcache): Update call to register_gdbarch_data.
2886 (init_regcache_descr, init_legacy_regcache_descr): Use
2887 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2889 * remote.c (free_remote_state): Delete function.
2890 (_initialize_remote): Update register_gdbarch_data.
2891 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2892 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2894 2003-08-04 Andrew Cagney <cagney@redhat.com>
2896 * reggroups.c (struct reggroup_el): Define.
2897 (struct reggroups): Delete field "nr_group". Replace array
2898 "group" with a "first" to "last" linked list.
2899 (reggroups_init): Update. Allocate using gdbarch's obstack.
2900 (reggroups_free): Delete function.
2901 (add_group): Update. Add "el" parameter.
2902 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2903 (default_groups): Update.
2904 (reggroup_next): Replace reggroups.
2905 (reggroups_dump): Update.
2906 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2907 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2908 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2910 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2912 * Makefile.in (tui-interp.o): Update dependencies.
2914 2003-08-04 David Carlton <carlton@kealia.com>
2916 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2917 to internal_error call.
2918 * source.c (forward_search_command): Add "%s" format argument.
2919 (reverse_search_command): Ditto.
2920 * top.c (quit_confirm): Ditto.
2921 * cli/cli-setshow.c (do_setshow_command): Ditto.
2922 * cp-valprint.c (cp_print_class_method): Replace
2923 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2924 (cp_print_class_member): Ditto.
2925 * event-top.c (command_line_handler): Ditto.
2926 * linux-proc.c (linux_info_proc_cmd): Ditto.
2927 * p-typeprint.c (pascal_type_print_base): Ditto.
2928 * p-valprint.c (pascal_object_print_class_method): Ditto.
2929 (pascal_object_print_class_member): Ditto.
2930 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2931 * remote.c (remote_cisco_section_offsets): Ditto.
2932 * top.c (command_line_input): Ditto.
2933 * utils.c (vwarning,error_stream,quit): Ditto.
2934 * valprint.c (print_floating,print_binary_chars)
2935 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2937 2003-08-04 Andrew Cagney <cagney@redhat.com>
2939 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2941 2003-08-02 Andrew Cagney <cagney@redhat.com>
2943 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2944 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2947 2003-08-02 Andrew Cagney <cagney@redhat.com>
2949 * Makefile.in: Update all dependencies and definitions.
2951 2003-08-02 Adam Fedor <fedor@gnu.org>
2953 * linespec.c (is_objc_method_format): New function
2954 (decode_line_1, locate_first_half): Use it.
2957 2003-08-01 Andrew Cagney <cagney@redhat.com>
2959 * NEWS: Mention that m32r is multi-arch.
2960 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2961 * configure.tgt: Recognize m32r-*-*.
2962 * config/m32r/tm-m32r.h: Delete file.
2963 * config/m32r/m32r.mt: New file.
2964 * m32r-rom.c (m32r_upload_command): Use hostent only when
2965 gethostname succeeds, in order to avoid a compilation
2967 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
2970 2003-08-01 Michael Snyder <msnyder@redhat.com>
2972 * sh-tdep.c (sh_frame_align): New gdbarch method.
2973 (sh_gdbarch_init): Set up frame_align method.
2975 2003-07-31 Michael Snyder <msnyder@redhat.com>
2977 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
2978 which is already covered by the new frames infrastructure.
2980 2003-07-31 Andrew Cagney <cagney@redhat.com>
2982 * user-regs.c (struct user_reg): Add "next" link.
2983 (struct user_regs): Replace "user" with "first" and "last" links.
2984 (append_user_reg): Add pre-allocated "reg" parameter.
2985 (builtin_user_regs): Provide initial value for "last".
2986 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
2987 (user_regs_init): Allocate memory from the gdbarch obstack.
2988 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
2989 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
2991 (usernum_to_user_reg): New function.
2992 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
2993 (value_of_user_reg): Use usernum_to_user_reg.
2994 (user_regs_free): Delete function.
2995 (_initialize_user_regs): Update register_gdbarch_data call.
2997 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
2999 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3001 2003-07-30 Michael Snyder <msnyder@redhat.com>
3003 * value.h (value_being_returned): Add a struct_addr argument.
3004 * infcall.c (call_function_by_hand): Pass struct_addr to
3005 value_being_returned.
3006 * infcmd.c (print_return_value): Pass zero as struct_addr.
3007 * values.c (value_being_returned): If struct_addr is passed,
3008 use it instead of trying to recover it from the inferior.
3010 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3012 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3013 the prologue analyzer won't need to attempt to extract the pc
3014 value from the woefully incomplete dummy frame.
3015 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3016 possible. Disable code which modifies the frame.
3018 2003-07-28 Andrew Cagney <cagney@redhat.com>
3020 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3022 (annotate_breakpoints_table, annotate_record): Ditto.
3023 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3024 (annotate_field_name_end, annotate_field_value): Ditto.
3025 (annotate_field_end, annotate_frame_source_begin): Ditto.
3026 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3027 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3028 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3029 (annotate_frame_address_end, annotate_frame_address): Ditto.
3030 (annotate_frame_args, annotate_frame_end): Ditto.
3031 (annotate_frame_where, annotate_arg_begin): Ditto.
3032 (annotate_arg_name_end, annotate_arg_value): Ditto.
3033 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3034 (annotate_function_call, annotate_signal_name): Ditto.
3035 (annotate_signal_string, annotate_signal_name_end): Ditto.
3036 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3037 (annotate_value_begin, annotate_value_history_value): Ditto.
3038 (annotate_value_history_end, annotate_value_end): Ditto.
3039 (annotate_display_begin, annotate_display_number_end): Ditto.
3040 (annotate_display_format, annotate_display_expression): Ditto.
3041 (annotate_display_expression_end, annotate_display_value): Ditto.
3042 (annotate_display_end, annotate_array_section_begin): Ditto.
3043 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3044 (annotate_elt, annotate_array_section_end): Ditto.
3046 2003-07-28 Andrew Cagney <cagney@redhat.com>
3048 * regcache.c (struct regcache_descr): Update comments on
3050 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3051 sizeof_raw_register_valid_p.
3052 (init_regcache_descr): Set nr_raw_registers and
3053 sizeof_raw_register_valid_p before calling
3054 init_legacy_regcache_descr.
3056 2003-07-28 Andrew Cagney <cagney@redhat.com>
3058 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3061 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3063 * thread.c (info_threads_command): Use get_selected_frame ().
3064 Check that there is at least one non-sentinel frame.
3066 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3068 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3069 (m68hc11_pop_frame): Remove.
3070 (m68hc11_frame_saved_pc): Remove.
3071 (m68hc11_frame_chain): Remove.
3072 (m68hc11_frame_init_saved_regs): Remove.
3073 (m68hc11_init_extra_frame_info): Remove.
3074 (m68hc11_store_struct_return): Remove.
3075 (m68hc11_saved_pc_after_call): Remove.
3077 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3079 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3080 frame unwind information.
3081 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3082 and adapted for frame unwinding.
3083 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3084 (m68hc11_unwind_pc): New function.
3085 (m68hc11_frame_unwind_cache): New function to analyze frames.
3086 (m68hc11_frame_this_id): New function to create new frame struct.
3087 (m68hc11_frame_prev_register): New function to unwind a register from
3089 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3090 (m68hc11_frame_p): New function for the above.
3091 (m68hc11_frame_base_address): New function to return fp of frame.
3092 (m68hc11_frame_args_address): Update for frame.
3093 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3094 (m68hc11_unwind_sp): New function.
3095 (m68hc11_unwind_dummy_id): New function.
3096 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3099 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3101 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3102 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3103 when we are beyond the current pc.
3105 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3107 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3108 from m68hc11_push_arguments.
3109 (m68hc11_push_arguments): Remove.
3110 (m68hc11_push_return_address): Remove.
3111 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3112 handlers; remove deprecated_extra_stack_alignment_needed.
3114 2003-07-27 Andrew Cagney <cagney@redhat.com>
3116 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3117 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3118 REAL_PC and not the pointer.
3119 * hppa-hpux-tdep.c: Include frame.h
3121 2003-07-27 Andrew Cagney <cagney@redhat.com>
3123 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3124 GDB_MULTI_ACH_PARTIAL.
3126 2003-07-27 Andrew Cagney <cagney@redhat.com>
3128 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3129 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3130 operator at start and not end of line.
3131 (decode_prologue): Ditto.
3132 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3133 frame_unwind_register_unsigned instead of
3134 frame_unwind_unsigned_register.
3135 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3137 (m32r_push_dummy_call): Use register_size instead of
3139 (m32r_frame_sniffer): Replace m32r_frame_p.
3140 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3141 * m32r-rom.c (report_transfer_performance): Delete extern
3143 (m32r_load, m32r_upload_command): Use print_transfer_performance
3144 instead of report_transfer_performance.
3145 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3146 / add_show_from_set.
3148 2003-07-26 Andrew Cagney <cagney@redhat.com>
3150 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3151 store_return_value and extract_struct_value_address.
3153 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3156 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3157 NULL, default to the section containing PC.
3159 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3161 * NEWS: Mention "regs" deprecated for m68hc11 too.
3163 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3164 (m68hc11_print_register): New function to print out one register.
3165 (m68hc11_print_registers_info): New function to print registers.
3166 (show_regs): Deprecate and use the above.
3167 (m68hc11_gdbarch_init): Install the print_registers_info.
3169 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3171 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3172 that we have a SIGTRAP before returning non-zero.
3174 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3175 Elena Zannoni <ezannoni@redhat.com>
3177 * linespec.c (decode_line_2): Avoid crash if
3178 find_function_start_sal() returns empty record.
3180 2003-07-23 Andreas Schwab <schwab@suse.de>
3182 * ia64-tdep.c (ia64_print_insn): New function.
3183 (ia64_gdbarch_init): Set print_insn to it.
3184 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3185 deprecated_tm_print_insn_info.
3187 2003-07-22 Michael Snyder <msnyder@redhat.com>
3189 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3190 handle 8-bit returns (long long).
3191 (h8300h_extract_return_value): Ditto.
3192 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3194 2003-07-22 Andrew Cagney <cagney@redhat.com>
3196 * gdbarch.c Include "gdb_obstack.h".
3197 (struct gdbarch): Add an "obstack".
3198 (alloc_gdbarch_data): Allocate the gdbarch data using
3199 GDBARCH_OBSTACK_CALLOC.
3200 (free_gdbarch_data): Delete function.
3201 (gdbarch_obstack_zalloc): New function.
3202 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3203 Assert that the architecture is not initialized.
3204 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3205 vector from the obstack.
3206 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3207 architecture obstack.
3208 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3209 (set_gdbarch_data): Assert that the data is not initialized.
3210 (struct gdbarch_data): Delete member "free".
3211 (register_gdbarch_data): Do not initialize "free".
3212 * gdbarch.h, gdbarch.c: Re-generate.
3214 2003-07-22 Andrew Cagney <cagney@redhat.com>
3216 * configure.in (build_warnings): Add -Wformat-nonliteral.
3217 * configure: Re-generate.
3219 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3221 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3223 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3225 * findvar.c (read_var_value): Remove case for thread local storage
3226 variables. It is now entirely handled by the dwarf2 location
3228 * printcmd.c (address_info): Ditto.
3229 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3231 (struct symbol): Remove objfile field, which was used by
3232 LOC_THREAD_LOCAL_STATIC only.
3233 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3234 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3235 usage of objfile pointer.
3236 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3237 thread local variables.
3238 Add include of objfiles.h.
3239 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3241 * Makefile.in (dwarf2loc.o): Update dependencies.
3243 2003-07-22 Andrew Cagney <cagney@redhat.com>
3245 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3247 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3248 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3249 (struct value): Add opaque declaration.
3250 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3252 2003-07-21 Andrew Cagney <cagney@redhat.com>
3254 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3255 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3257 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3259 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3260 regcache_cooked_read_unsigned instead of read_register.
3261 (m68hc11_saved_pc_after_call): Likewise.
3262 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3263 instead of write_register.
3264 (m68hc11_register_type): New function.
3265 (m68hc11_register_virtual_type): Remove.
3266 (m68hc11_store_return_value): Convert to use the regcache.
3267 (m68hc11_extract_struct_value_address): Likewise.
3268 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3269 m68hc11_register_type; undeprecate store_return_value and
3270 extract_struct_value_address.
3272 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3274 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3275 and translate to use regcache.
3276 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3278 2003-07-18 Andrew Cagney <cagney@redhat.com>
3280 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3281 * gdbarch.h, gdbarch.c: Re-generate.
3282 * i386-tdep.c (i386_gdbarch_init): Do not set
3283 DWARF2_BUILD_FRAME_INFO.
3284 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3286 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3287 DWARF2_BUILD_FRAME_INFO.
3289 2003-07-18 Andrew Cagney <cagney@redhat.com>
3291 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3292 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3294 2003-07-18 Andrew Cagney <cagney@redhat.com>
3296 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3297 frame_unwind_address_in_block, instead of frame_pc_unwind.
3298 (dwarf2_frame_cache): Ditto.
3300 2003-07-18 Andrew Cagney <cagney@redhat.com>
3302 * user-regs.h (struct gdbarch): Declare opaque.
3303 * ui-out.h (struct ui_file): Declare opaque.
3304 * dwarf2-frame.h (struct frame_info): Declare opaque.
3306 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3308 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3310 (procfs_meminfo): Change strerror to safe_strerror.
3311 (procfs_can_run): Remove K&R badness.
3313 2003-07-17 Michael Snyder <msnyder@redhat.com>
3315 * remote-sim.c: Comment typo fix.
3317 2003-07-17 Andrew Cagney <cagney@redhat.com>
3319 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3321 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3322 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3323 GDB_MULTI_ARCH_PARTIAL.
3325 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3327 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3328 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3329 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3331 2003-07-16 Theodore A. Roth <troth@openavr.org>
3333 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3335 (avr_frame_unwind_cache): Don't unwind FP for main.
3337 Save the computed prev_sp.
3338 (avr_saved_regs_unwinder): Remove function.
3339 (avr_frame_prev_register): Use PC unwind logic from
3340 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3342 2003-07-16 Andrew Cagney <cagney@redhat.com>
3344 * frame-base.h (frame_base_p_ftype): Delete definition.
3345 (frame_base_append_predicate): Delete declaration.
3346 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3347 (frame_unwind_append_predicate): Delete declaration.
3348 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3349 (append_predicate): Delete parameter "p".
3350 (frame_unwind_append_predicate): Delete function.
3351 (frame_unwind_append_sniffer): Update call to append_predicate.
3352 (frame_unwind_free): Delete function.
3353 (_initialize_frame_unwind): Pass NULL as "free" to
3354 register_gdbarch_data.
3355 (frame_unwind_init): Append the dummy_frame_sniffer.
3356 (frame_unwind_find_by_frame): Simplify.
3357 * frame-base.c (struct frame_base_table): Delete field "p".
3358 (append_predicate): Delete parameter "p".
3359 (frame_base_append_predicate): Delete function.
3360 (frame_base_append_sniffer): Update call to append_predicate.
3361 (frame_base_free): Delete function.
3362 (frame_base_find_by_frame): Simplify.
3363 (_initialize_frame_base): Pass NULL as "free" to
3364 register_gdbarch_data.
3365 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3366 (x86_64_sigtramp_frame_sniffer): Replace
3367 "x86_64_sigtramp_frame_p".
3368 (x86_64_init_abi): Set the frame unwind sniffers.
3369 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3370 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3371 (m68k_gdbarch_init): Set the frame unwind sniffers.
3372 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3373 "i386_sigtramp_frame_p".
3374 (i386_frame_sniffer): Replace "i386_frame_p".
3375 (i386_gdbarch_init): Set the frame unwind sniffers.
3376 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3377 (avr_gdbarch_init): Set the frame unwind sniffers.
3378 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3379 "alpha_sigtramp_frame_p"
3380 (alpha_heuristic_frame_sniffer): Replace
3381 "alpha_heuristic_frame_p".
3382 (alpha_gdbarch_init): Set the frame unwind sniffers.
3383 (alpha_dwarf2_init_abi): Ditto.
3384 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3385 "alpha_debug_frame_p".
3386 (alpha_mdebug_frame_base_sniffer): Replace
3387 "alpha_mdebug_frame_base_p".
3388 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3389 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3390 (d10v_gdbarch_init): Set the frame unwind sniffer.
3391 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3392 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3393 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3394 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3395 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3396 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3398 2003-07-16 Michael Snyder <msnyder@redhat.com>
3400 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3401 should go thru sh_dsp_register_sim_regno, else the dsp regs
3402 will not get the right values.
3404 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3406 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3407 deprecated_store_floating by call to store_typed_floating.
3408 (sh_sh4_register_convert_to_raw): Substitute call to
3409 deprecated_extract_floating by call to extract_typed_floating.
3411 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3413 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3415 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3417 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3418 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3419 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3421 (do_pseudo_register): Remove.
3422 (sh_push_dummy_code): New function.
3423 (sh64_store_struct_return): Rename from sh_store_struct_return.
3424 Only called for sh64 now.
3425 (sh_extract_struct_value_address): Regcache'ify.
3426 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3427 and accomodate new tasks.
3428 (sh64_push_return_address): Rename from sh_push_return_address.
3429 Only called for sh64 now.
3430 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3432 (sh3e_sh4_extract_return_value): Regcache'ify.
3433 (sh_default_store_return_value): Ditto.
3434 (sh3e_sh4_store_return_value): Ditto.
3435 (sh_default_register_byte): Remove.
3436 (sh_sh4_register_byte): Remove.
3437 (sh_default_register_raw_size): Remove.
3438 (sh_sh4_register_raw_size): Remove.
3439 (sh_register_virtual_size): Remove.
3440 (sh_sh3e_register_virtual_type): Remove.
3441 (sh_sh3e_register_type): New function.
3442 (sh_sh4_register_virtual_type): Remove.
3443 (sh_sh4_register_type): New function.
3444 (sh_default_register_virtual_type): Remove.
3445 (sh_default_register_type): New function.
3446 (do_fv_register_info): Add parameters to accomodate call from
3447 sh_print_registers_info.
3448 (do_dr_register_info): Ditto.
3449 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3450 Add parameters to accomodate call from sh_print_registers_info.
3451 (sh_do_fp_register): Ditto.
3452 (sh64_do_pseudo_register): Call do_dr_register_info,
3453 do_fv_register_info and sh_do_fp_register with default parameters.
3454 (sh_do_register): Add parameters to accomodate call from
3455 sh_print_registers_info.
3456 (sh_print_register): Ditto.
3457 (sh_print_registers_info): Rename from sh_do_registers_info.
3458 Add parameters to be used as gdbarch_print_registers_info
3459 implementation. Accomodate removed do_pseudo_register function
3461 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3462 function pointer. Call sh_print_register with default parameters.
3463 (sh64_do_registers_info): Call sh_print_registers_info instead of
3464 sh_do_registers_info.
3465 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3466 detection of deprecated vs. non-deprecated functionality.
3467 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3468 function pointer assignments by direct function calls.
3470 2003-07-15 Andrew Cagney <cagney@redhat.com>
3472 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3473 (frame_register_unwind, create_new_frame): Ditto.
3474 (legacy_get_prev_frame, get_frame_type): Ditto.
3475 (get_frame_base_address): Use frame_base_find_by_frame.
3476 (get_frame_locals_address): Use frame_base_find_by_frame.
3477 (get_frame_args_address): Use frame_base_find_by_frame.
3478 * frame-base.h (frame_base_sniffer_ftype): Declare.
3479 (frame_base_append_sniffer): Declare.
3480 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3481 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3482 (frame_base_append_sniffer): New function.
3483 (frame_base_append_predicate): Add a NULL sniffer.
3484 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3485 (struct frame_base_table): Add "sniffer".
3486 (frame_base_free): Free the "sniffer" table.
3487 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3488 (frame_unwind_append_sniffer): Declare.
3489 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3490 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3491 (struct frame_unwind_table): Add "sniffer", delete "middle".
3492 (append_predicate): Add "sniffer" parameter, append the sniffer.
3493 (frame_unwind_init): Update append_predicate call.
3494 (frame_unwind_append_sniffer): New function.
3495 (frame_unwind_append_predicate): Update append_predicate call.
3496 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3498 2003-07-15 Andrew Cagney <cagney@redhat.com>
3500 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3501 before code inhibiting repeated unwind attempts. Add to
3502 commentary on that test's problems.
3503 * blockframe.c (inside_main_func): Look for "main" in the minimal
3505 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3508 2003-07-15 Andrew Cagney <cagney@redhat.com>
3510 * complaints.c (struct explanation): Define.
3511 (struct complaints): Change type of "explanation" to "struct
3513 (symfile_explanations): Convert to a "struct explanation" table.
3514 (vcomplaint): Update.
3516 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3518 * x86-64-linux-nat.c (regmap): Removed.
3519 (supply_gregset, fill_gregset): Call
3520 x86_64_linux_(fill,supply)_gregset functions.
3521 * x86-64-linux-tdep.c (USER_*): New defines.
3522 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3523 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3525 (fetch_core_registers): Ditto.
3526 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3527 * x86-64-linux-tdep.h: New file.
3528 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3530 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3532 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3534 * x86-64-tdep.c (x86_64_store_return_value): Use
3535 regcache_cooked_write_part instead of regcache_cooked_write.
3537 * configure.host: Add x86_64-*-freebsd*.
3538 * configure.tgt: Add x86_64-*-freebsd*.
3539 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3540 * amd64fbsd-nat.c: New file.
3541 * amd64fbsd-tdep.c: New file.
3542 * config/i386/nm-fbsd64.h: New file.
3543 * config/i386/fbsd64.mh: New file.
3544 * config/i386/fbsd64.mt: New file.
3546 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3548 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3549 `sc_regs_offset' and `sc_fpregs_offset'.
3550 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3551 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3552 (alpha_sigtramp_register_address): Rewrite to use new members of
3553 `struct gdbarch_tdep'.
3554 (alpha_gdbarch_init): Initialize new members of struct
3556 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3557 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3558 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3559 (alphafbsd_pc_in_sigtramp): Implement.
3560 (alphafbsd_sigtramp_offset): New function.
3561 (alphafbsd_sigcontext_addr): New function.
3562 (alphafbsd_init_abi): Initialize signal trampoline related members
3563 of `struct gdbarch_tdep'.
3564 (_initialize_alphafbsd_tdep): Add prototype.
3566 2003-07-11 Theodore A. Roth <troth@openavr.org>
3568 * Makefile.in (install-only): Quote sed expression when generating
3571 2003-07-11 Richard Henderson <rth@redhat.com>
3573 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3574 * dwarf2-frame.c: Include complaints.h.
3575 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3576 variable initialization; return NULL on error.
3577 (decode_frame_entry): New.
3579 2003-07-11 Andrew Cagney <cagney@redhat.com>
3581 * frame.h (frame_address_in_block): Delete declaration.
3582 * blockframe.c (frame_address_in_block): Delete function.
3583 (get_frame_block): Use get_frame_address_in_block.
3584 (block_innermost_frame): Ditto.
3585 * stack.c (print_frame, backtrace_command_1): Ditto.
3587 * frame.h (get_frame_address_in_block): Declare.
3588 (frame_unwind_address_in_block): Declare.
3589 * frame.c (frame_unwind_address_in_block): New function.
3590 (get_frame_address_in_block): New function.
3592 2003-07-10 Andrew Cagney <cagney@redhat.com>
3594 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3595 pre-default. Note: re-generate has no effect.
3597 2003-07-10 Andrew Cagney <cagney@redhat.com>
3599 * gdbarch.sh: When a variable, but not a function, compare against
3600 0. Fix problem in previous patch.
3601 * gdbarch.c: Re-generate.
3603 2003-07-10 Andrew Cagney <cagney@redhat.com>
3605 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3606 functions against NULL, not 0.
3607 * gdbarch.c: Re-generate.
3609 2003-07-10 Fred Fish <fnf@ninemoons.com>
3611 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3612 null string instead of a null pointer.
3613 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3615 2003-07-09 Michael Snyder <msnyder@redhat.com>
3617 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3619 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3621 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3622 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3623 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3624 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3625 * x86-64-tdep.c: ... from here.
3627 2003-07-09 Andreas Schwab <schwab@suse.de>
3629 * m68k-tdep.h (enum struct_return): Define.
3630 (struct gdbarch_tdep): Add struct_return.
3631 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3632 bytes are padded to the right, not to the left. Pass struct value
3633 address in register %a1, not on stack.
3634 (m68k_use_struct_convention): New function.
3635 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3636 struct_return in tdep to pcc_struct_return.
3637 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3640 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3642 * somread.c (som_symfile_offsets): Fix compilation error.
3644 2003-07-09 Andrew Cagney <cagney@redhat.com>
3646 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3647 Add comments about the checks.
3649 2003-07-08 Andrew Cagney <cagney@redhat.com>
3651 * Makefile.in: Make dependency section headers consistent.
3652 (config_h): Move to $BUILD headers section.
3653 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3654 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3655 (ada-exp.tab.c): Move to YACC/LEX section.
3656 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3657 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3659 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3661 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3662 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3663 of strerror with safe_strerror, use ISO C function definitions,
3664 and replace instances of sprintf with snprintf.
3666 2003-07-07 Andrew Cagney <cagney@redhat.com>
3668 * frame.c (get_prev_frame): Enable check for identical frames.
3669 Update comments. Update error messages.
3671 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3673 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3675 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3677 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3678 sort_symtab_syms, no longer necessary.
3680 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3682 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3684 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3686 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3687 (mips_register_byte): Likewise.
3689 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3691 * Makefile.in (sparc_tdep_h): New.
3692 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3693 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3694 * sparc-linux-nat.c: Include "sparc-tdep.h".
3695 * sparc-nat.c: Likewise.
3696 * sparc-tdep.c: Likewise.
3697 * sparc64nbsd-nat.c: Likewise.
3698 * sparcnbsd-nat.c: Likewise.
3699 * sparcnbsd-tdep.c: Likewise.
3700 * sparc-tdep.h: New file.
3701 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3702 and sparc_npc_regnum.
3704 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3706 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3707 (mips_linux_cannot_store_register): List supported instead of
3708 unsupported registers.
3710 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3712 * disasm.c (dump_insns): Separate instructions from addresses.
3714 2003-07-07 Andreas Schwab <schwab@suse.de>
3716 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3718 * m68k-tdep.c (NUM_FREGS): Delete.
3719 (SIG_PC_FP_OFFSET): Delete.
3720 (TARGET_M68K): Delete.
3721 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3722 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3723 P_MOVEL_SP, P_MOVEML_SP): Define.
3724 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3726 (m68k_register_raw_size): Delete.
3727 (m68k_register_virtual_size): Delete.
3728 (m68k_register_type): Renamed from m68k_register_virtual_type and
3729 add gdbarch argument.
3730 (m68k_store_struct_return): Delete.
3731 (m68k_deprecated_extract_return_value): Delete.
3732 (m68k_deprecated_extract_struct_value_address): Delete.
3733 (m68k_frame_chain): Delete.
3734 (m68k_frame_saved_pc): Delete.
3735 (m68k_fix_call_dummy): Delete.
3736 (m68k_push_dummy_frame): Delete.
3737 (m68k_pop_frame): Delete.
3738 (m68k_extract_return_value): New function.
3739 (m68k_store_return_value): Rewrite using regcache.
3740 (m68k_extract_struct_value_address): Rewrite using regcache.
3741 (m68k_push_dummy_call): New function.
3742 (struct m68k_frame_cache): Define.
3743 (m68k_alloc_frame_cache): New function.
3744 (m68k_analyze_frame_setup): New function.
3745 (m68k_analyze_register_saves): New function.
3746 (m68k_analyze_prologue): New function.
3747 (m68k_skip_prologue): Rewrite using above functions.
3748 (m68k_unwind_pc): New function.
3749 (m68k_frame_cache): New function.
3750 (m68k_frame_this_id): New function.
3751 (m68k_frame_prev_register): New function.
3752 (m68k_frame_unwind): New variable.
3753 (m68k_frame_p): New function.
3754 (m68k_sigtramp_frame_cache): New function.
3755 (m68k_sigtramp_frame_this_id): New function.
3756 (m68k_sigtramp_frame_prev_register): New function.
3757 (m68k_sigtramp_frame_unwind): New variable.
3758 (m68k_sigtramp_frame_p): New function.
3759 (m68k_frame_base_address): New function.
3760 (m68k_frame_base): New function.
3761 (m68k_unwind_dummy_id): New function.
3762 (fill_gregset): Use regcache_collect.
3763 (fill_fpregset): Likewise.
3764 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3766 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3767 deprecated_init_frame_pc, deprecated_store_struct_return,
3768 deprecated_extract_return_value, deprecated_store_return_value,
3769 deprecated_frame_chain, deprecated_frame_saved_pc,
3770 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3771 deprecated_register_virtual_size,
3772 deprecated_max_register_raw_size,
3773 deprecated_max_register_virtual_size,
3774 deprecated_register_virtual_type, deprecated_register_size,
3775 deprecated_register_byte, deprecated_register_bytes,
3776 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3777 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3778 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3779 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3780 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3781 deprecated_push_dummy_frame, deprecated_pop_frame,
3782 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3783 only if SYSCALL_TRAP is defined. Set extract_return_value,
3784 store_return_value, extract_struct_value_address, register_type,
3785 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3787 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3788 M68K_MAX_REGISTER_SIZE): Define.
3789 (struct m68k_sigtramp_info): Define.
3790 (struct gdbarch_tdep): Add get_sigtramp_info.
3791 * m68klinux-nat.c (fetch_register): Use register_size instead of
3792 REGISTER_RAW_SIZE. Don't put assignment in if.
3793 (store_register): Likewise.
3794 (fetch_inferior_registers): Likewise.
3795 (store_inferior_registers): Likewise.
3796 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3797 (m68k_linux_frame_saved_pc): Delete.
3798 (m68k_linux_sigcontext_reg_offset,
3799 m68k_linux_ucontext_reg_offset): Define.
3800 (m68k_linux_get_sigtramp_info): New function.
3801 (m68k_linux_extract_return_value): Rewrite using regcache.
3802 (m68k_linux_store_return_value): Likewise.
3803 (m68k_linux_extract_struct_value_address): Likewise.
3804 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3805 Don't set deprecated_frame_saved_pc,
3806 deprecated_extract_return_value, deprecated_store_return_value,
3807 deprecated_extract_struct_value_address. Set
3808 extract_return_value, store_return_value,
3809 extract_struct_value_address.
3811 2003-07-07 Andrew Cagney <cagney@redhat.com>
3813 * expprint.c: Include "user-regs.h" instead of "frame.h".
3814 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3815 frame_map_regnum_to_name.
3816 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3817 (frame_map_name_to_regnum): Simplify, call
3818 user_reg_map_name_to_regnum.
3819 (frame_map_regnum_to_name): Simplify, call
3820 user_reg_map_regnum_to_name.
3821 (frame_register_unwind): Update.
3822 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3823 (_initialize_frame_reg): Call user_reg_add_builtin.
3824 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3825 (value_of_register): Use value_of_user_reg.
3826 * eval.c (evaluate_subexp_standard): Update.
3827 * parse.c (write_dollar_variable): Update.
3828 * d10v-tdep.c (d10v_print_registers_info): Update.
3829 * infcmd.c (registers_info): Update.
3830 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3831 (builtin_regs_h): Delete macro.
3832 (user_regs_h): Define.
3833 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3834 (builtin-regs.o): Delete target.
3835 (user-regs.o): Specify dependencies.
3836 (expprint.o): Update dependencies.
3837 (findvar.o): Update dependencies.
3838 (frame.o): Update dependencies.
3839 (std-regs.o): Update dependencies.
3841 2003-07-06 Christopher Faylor <cgf@redhat.com>
3843 * win32-nat.c (solib_symbols_add): Use one variable for all section
3844 address stuff. Pass variable rather than address of variable to
3845 safe_symbol_file_add.
3847 2003-07-06 Andreas Schwab <schwab@suse.de>
3849 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3851 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3853 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3855 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3857 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3859 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3861 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3862 * config/i386/nto.mh: New file.
3863 * config/i386/nm-nto.h: New file.
3864 * configure.host: Add i[3456]86-*-nto*.
3866 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3868 * remote-vx.c (vx_add_symbols): Fix compilation error.
3870 2003-07-03 Andrew Cagney <cagney@redhat.com>
3872 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3873 * gdbarch.h, gdbarch.c: Re-generate.
3874 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3875 (legacy_register_name): Declare.
3876 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3877 (REGISTER_NAME): Define.
3878 * sparc-tdep.c (legacy_register_name): New function.
3879 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3880 (REGISTER_NAME): Define.
3881 (hppa64_register_name): Declare.
3882 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3883 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3884 (hppa64_register_name): New function.
3885 (hppa_register_name): New function.
3886 * arch-utils.c (legacy_register_name): Delete.
3887 * arch-utils.h (legacy_register_name): Delete.
3889 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3891 * cli/cli-interp.c (cli_interpreter_resume): Update the
3892 cli_uiout's stream to gdb_stdout.
3894 2003-07-03 Andrew Cagney <cagney@redhat.com>
3896 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3898 * gdbarch.h, gdbarch.c: Re-generate.
3899 * regcache.c (init_regcache_descr): Use legacy code when either
3900 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3902 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3904 * NEWS: Move "set logging" entry into GDB 6.0 section.
3906 2003-07-02 Jim Blandy <jimb@redhat.com>
3908 * s390-tdep.c (struct frame_extra_info): new member:
3909 'stack_bought_valid'.
3910 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3911 initialize fextra_info->stack_bought.
3912 (s390_frameless_function_invocation): Don't trust the value of
3913 fextra_info_ptr->stack_bought unless
3914 fextra_info->stack_bought_valid is set.
3916 New S390 prologue analyzer.
3917 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3918 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3919 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3920 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3921 compute_x_addr, s390_on_stack, s390_store,
3922 s390_get_signal_frame_info): New functions.
3923 (S390_NUM_SPILL_SLOTS): New macro.
3924 (s390_get_frame_info): Rewritten.
3925 (is_arg_reg): Deleted.
3927 Break out the decoding of S/390 instructions into separate
3928 functions, to make it more legible, and easier to check
3930 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3931 is_rx, is_rxe): New functions.
3932 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3933 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3934 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3935 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3936 enums for opcode values. (Is this an improvement?)
3938 2003-07-02 Andrew Cagney <cagney@redhat.com>
3940 * i386-tdep.c: Revert change committed as part of trad-frame code
3943 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3945 * breakpoint.c (insert_catchpoint): Make static.
3947 2003-07-02 Andreas Schwab <schwab@suse.de>
3949 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3950 former ia64_push_arguments and ia64_push_return_address, and use
3951 regcache functions instead of read/write_register.
3952 (ia64_gdbarch_init): Set push_dummy_call instead of
3953 deprecated_push_arguments and deprecated_push_return_address.
3955 2003-07-01 Andreas Jaeger <aj@suse.de>
3957 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3959 Set %rax only to number of SSE registers used.
3961 2003-07-01 Andrew Cagney <cagney@redhat.com>
3963 * trad-frame.h: Update comments, a -1 .addr is reserved.
3964 (trad_frame_value_p, trad_frame_addr_p): Declare.
3965 (trad_frame_reg_p): Declare.
3966 (trad_frame_set_value): Rename trad_frame_register_value.
3967 (trad_frame_set_unknown): Declare.
3968 * trad-frame.c (trad_frame_realreg_p): New function.
3969 (trad_frame_addr_p, trad_frame_value_p): New function.
3970 (trad_frame_set_unknown): New function.
3971 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
3972 (trad_frame_prev_register): Use trad_frame_realreg_p,
3973 trad_frame_addr_p and trad_frame_value_p.
3974 (trad_frame_set_value): Rename trad_frame_register_value.
3975 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
3976 and trad_frame_set_value.
3978 2003-06-30 Jim Blandy <jimb@redhat.com>
3980 Patch from IBM (authors unspecified, probably Ulrich Weigand and
3981 Gerhard Tonn) for argument passing on the S/390 and S/390x:
3982 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
3983 for 16 registers, and then 32 more bytes.
3984 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
3986 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
3987 Move up in the file, since it's now used by is_simple_arg.
3988 (is_simple_arg): Don't assume registers are four bytes long.
3989 Exclude all double arguments. Extended floats are not simple
3991 (is_power_of_two): New function.
3992 (pass_by_copy_ref): Call is_power_of_two, and check that the
3993 length fits in a register, rather than listing all the acceptable
3994 sizes. Extended floats are not passed by reference.
3995 (s390_push_arguments): Don't assume registers are four bytes long.
3996 Reserve an argument register to point to the buffer for structures
3997 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
3998 S390_STACK_FRAME_OVERHEAD.
4000 2003-06-30 Andreas Schwab <schwab@suse.de>
4002 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4003 format error message.
4005 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4007 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4009 2003-06-30 David Carlton <carlton@kealia.com>
4011 Band-aid for PR c++/1245.
4012 * Makefile.in (cp-support.o): Depend on complaints_h.
4013 * cp-support.c: Include complaints.h. Add declaration for
4014 find_last_component.
4015 (cp_find_first_component): Separate code into
4016 cp_find_first_component_aux.
4017 (cp_find_first_component_aux): Call demangled_name_complaint.
4018 (demangled_name_complaint): New.
4020 2003-06-30 Andrew Cagney <cagney@redhat.com>
4022 * remote.c (remote_write_bytes): Explicitly compute and then use
4023 the payload size. Update comments to reflect. Fixes problem of
4024 GDB not sending small packets as found by Fred Fish.
4026 2003-06-30 Andrew Cagney <cagney@redhat.com>
4028 * remote.c (remote_async_wait): Fix -Wformat problem.
4030 2003-06-29 Andrew Cagney <cagney@redhat.com>
4032 * remote.c (remote_wait): Call error, and not warning, when the
4034 (remote_async_wait): Ditto.
4036 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4038 * sparc-tdep.c (sparc_y_regnum): Make external again.
4040 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4042 * cli/cli-logging.c (pop_output_files): Add void to function
4045 2003-06-29 Andrew Cagney <cagney@redhat.com>
4047 * frame.c (frame_register_unwind): Use unsigned char when dumping
4048 the buffer contents.
4050 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4052 * cli/cli-logging.c: New file.
4053 * cli-out.c (struct ui_out_data): Add original_stream.
4054 (cli_redirect): New function.
4055 (cli_ui_out_impl): Add cli_redirect.
4056 (cli_out_new): Initialize original_stream.
4057 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4058 (uo_redirect, ui_out_redirect): New.
4059 * ui-out.h (struct ui_out_impl): Add redirect member.
4060 (redirect_ftype): New.
4061 (ui_out_redirect): Add prototype.
4062 * Makefile.in: Add rules for cli-logging.c.
4063 * NEWS: Mention "set logging".
4065 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4067 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4069 2003-06-27 Andrew Cagney <cagney@redhat.com>
4071 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4072 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4073 * avr-tdep.c (avr_call_dummy_address): Delete function.
4074 (avr_gdbarch_init): Do not set call_dummy_address.
4076 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4078 * symfile.c (syms_from_objfile): Move variables to inner block.
4079 Move the checks for the non-mainline case a bit earlier to avoid
4080 doing some useless computations.
4082 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4084 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4086 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4088 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4091 2003-06-26 Michael Chastain <mec@shout.net>
4093 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4094 gdb/testsuite/gdb.c++/pr-1210.exp.
4096 2003-06-26 Andrew Cagney <cagney@redhat.com>
4098 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4099 altivec_expression.h and altivec_registers.h.
4101 2003-06-26 Andrew Cagney <cagney@redhat.com>
4103 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4104 info->mach when MIPS16. Patch suggested by Fred Fish.
4106 2003-06-26 Andrew Cagney <cagney@redhat.com>
4108 * utils.c (internal_vproblem): Print the problem to a reason
4109 buffer and then pass to query. Make the msg variable more local.
4111 2003-06-26 Andrew Cagney <cagney@redhat.com>
4113 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4114 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4115 * gdbarch.h, gdbarch.c: Re-generate.
4116 * frame-base.c (default_frame_args_address): Update. Use
4117 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4119 (default_frame_locals_address): Ditto for
4120 DEPRECATED_FRAME_LOCALS_ADDRESS.
4121 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4122 (vax_frame_num_args): Update.
4123 (vax_gdbarch_init): Update.
4124 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4125 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4126 * mcore-tdep.c (mcore_gdbarch_init): Update.
4127 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4128 * ia64-tdep.c (ia64_gdbarch_init): Update.
4129 * symtab.h (address_class): Update comments.
4130 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4131 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4132 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4133 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4134 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4135 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4136 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4137 * alpha-mdebug-tdep.c: Update.
4138 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4140 2003-06-26 Andreas Jaeger <aj@suse.de>
4142 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4143 of SSE registers so that varargs functions work. Rework handling
4144 of passing arguments on the stack.
4145 (x86_64_store_return_value): Return double and float values in SSE
4148 2003-06-24 Michael Chastain <mec@shout.net>
4150 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4151 the "constructor breakpoints ignored" bug.
4153 2003-06-25 David Carlton <carlton@kealia.com>
4155 * MAINTAINERS: Update e-mail address.
4157 2003-06-24 Jim Blandy <jimb@redhat.com>
4159 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4161 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4163 (ppc_linux_init_abi): Register it as the
4164 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4166 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4167 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4170 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4171 (ppc64_standard_linkage_target): Use it.
4173 2003-06-23 Andrew Cagney <cagney@redhat.com>
4175 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4176 for 0 "int0" and 4 "int32" sized registers.
4177 * gdbtypes.c (builtin_type_int0): Define.
4178 (build_gdbtypes): Initialize builtin_type_int0.
4179 * gdbtypes.h (builtin_type_int0): Declare.
4181 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4183 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4184 as characters are unsigned.
4186 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4189 * dwarfread.c (struct_type): Skip static fields without crashing.
4191 2003-06-22 Andrew Cagney <cagney@redhat.com>
4193 GDB 6.0 branch created.
4195 * PROBLEMS: Update. Empty.
4198 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4200 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4201 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4203 2003-06-22 Andrew Cagney <cagney@redhat.com>
4205 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4206 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4209 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4211 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4214 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4216 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4217 argument of val_print.
4218 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4219 to the address argument of baseclass_offset or target_read_memory.
4220 Do add it to the argument of cp_print_value_fields.
4222 2003-06-21 Andrew Cagney <cagney@redhat.com>
4224 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4225 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4226 instead of 0..NUM_REGS.
4227 (mips_register_reggroup_p): New function.
4228 (mips_pseudo_register_write): New function.
4229 (mips_pseudo_register_read): New function.
4230 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4231 based on the register's type.
4232 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4234 (mips_get_saved_register): Simplify. Assert that REGNO is a
4236 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4237 (mips_register_type): Replace mips_register_virtual_type. Map
4238 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4240 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4241 that the register is cooked / virtual.
4242 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4243 Only get the extra info when needed.
4244 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4245 (mips32_heuristic_proc_desc): Fetch the cooked register.
4246 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4247 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4248 (mips_print_register): Use gdbarch_register_type, instead of
4249 REGISTER_VIRTUAL_TYPE.
4250 (print_gp_register_row): Use gdbarch_register_type, instead of
4251 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4252 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4253 Print the pseudo / cooked registers.
4254 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4255 Print the pseudo / cooked registers.
4256 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4257 REG_NUM is pseudo / cooked.
4258 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4259 (mips_n32n64_xfer_return_value): Ditto.
4260 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4261 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4262 (mips_register_sim_regno): New function.
4263 (mips_gdbarch_init): Set deprecated_register_byte,
4264 register_group_p, pseudo_register_write, pseudo_register_read,
4265 register_sim_regno, and num_pseudo_regs. Set register_type,
4266 instead of register_virtual_type.
4267 * Makefile.in (mips-tdep.o): Update dependencies.
4268 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4269 REGISTER_VIRTUAL_TYPE.
4270 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4271 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4272 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4273 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4274 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4276 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4278 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4279 * cli/cli-cmds.c: Include "gdb_vfork.h".
4280 (shell_escape): Use vfork.
4282 2003-06-21 Andrew Cagney <cagney@redhat.com>
4284 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4285 32 bit floating-point register saves.
4287 * frame.h (deprecated_unwind_get_saved_register): Delete.
4288 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4289 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4290 and deprecated_get_next_frame_hack instead of
4291 deprecated_unwind_get_saved_register.
4293 * mips-tdep.c (mips_dump_tdep): Do not print
4294 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4296 * frame.c (get_frame_register): New function.
4297 (frame_unwind_register_signed): New function.
4298 (get_frame_register_signed): New function.
4299 (frame_unwind_register_unsigned): New function.
4300 (get_frame_register_unsigned): New function.
4301 * frame.h: Add comments on naming schema.
4302 (get_frame_register, frame_unwind_register_signed): Declare.
4303 (get_frame_register_signed, get_frame_register_signed): Declare.
4304 (frame_unwind_register_unsigned): Declare.
4305 (get_frame_register_unsigned): Declare.
4307 2003-06-20 Theodore A. Roth <troth@openavr.org>
4309 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4311 2003-06-20 Theodore A. Roth <troth@openavr.org>
4313 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4314 (avr_read_sp): Ditto.
4316 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4318 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4319 * config/arm/nm-linux.h: Likewise.
4320 * config/arm/tm-linux.h: Likewise.
4321 * config/ia64/nm-linux.h: Likewise.
4322 * config/ia64/tm-ia64.h: Likewise.
4323 * config/s390/tm-linux.h: Likewise.
4324 * config/s390/tm-s390.h: Likewise.
4325 * s390-nat.c: Likewise.
4326 * s390-tdep.c: Likewise.
4328 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4329 * config/ia64/linux.mt: Likewise.
4330 * config/m68k/linux.mh: Likewise.
4331 * config/mips/linux.mt: Likewise.
4332 * config/powerpc/linux.mh: Likewise.
4333 * config/sh/linux.mt: Likewise.
4335 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4337 * solib.c (solib_open): Change tests for whether to search
4338 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4341 2003-06-19 Theodore A. Roth <troth@openavr.org>
4343 * avr-tdep.c (avr_frame_address): Delete function.
4344 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4345 set_gdbarch_frame_args_address.
4347 2003-06-19 Andrew Cagney <cagney@redhat.com>
4349 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4350 (REGISTER_CONVERT_FROM_TYPE): Delete.
4351 (mips_register_convert_to_type): Delete declaration.
4352 (mips_register_convert_from_type): Delete declaration.
4353 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4356 2003-06-19 Michael Snyder <msnyder@redhat.com>
4358 * linux-nat.h: New file.
4359 * linux-nat.c: Include linux-nat.h.
4360 * lin-lwp.c: Include linux-nat.h.
4361 Move struct lwp_info def to linux-nat.h.
4362 * linux-proc.c: Include linux-nat.h.
4363 (linux_make_note_section): Iterate over lwps instead of threads.
4364 (linux_do_thread_registers): Use lwp instead of merged pid.
4365 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4366 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4367 Add dependency on linux_nat_h.
4369 2003-06-19 Theodore A. Roth <troth@openavr.org>
4371 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4373 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4375 * varobj.c (get_type, get_target_type): Use check_typedef.
4377 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4379 * breakpoint.c (insert_catchpoint): Call internal_error.
4381 2003-06-19 Theodore A. Roth <troth@openavr.org>
4383 * avr-tdep.c (avr_push_dummy_code): Delete function.
4384 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4386 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4388 * arch-utils.c (default_prepare_to_proceed): Remove.
4389 (generic_prepare_to_proceed): Remove.
4390 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4391 (generic_prepare_to_proceed): Remove prototype.
4392 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4393 * gdbarch.c: Regenerate.
4394 * gdbarch.h: Regenerate.
4395 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4396 * hppah-nat.c (hppa_switched_threads): Remove.
4397 * infrun.c (prepare_to_proceed): New static function, copied from
4398 generic_prepare_to_proceed. Remove select_it argument.
4399 (proceed): Call prepare_to_proceed.
4400 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4402 (ptrace_wait): Don't set the removed variables.
4403 (hppa_switched_threads): Remove.
4404 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4405 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4406 (lin_lwp_prepare_to_proceed): Remove prototype.
4407 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4408 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4410 2003-06-18 Theodore A. Roth <troth@openavr.org>
4412 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4414 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4415 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4416 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4417 (AVR_PROLOGUE_*): Enumerate prologue types.
4418 (struct frame_extra_info): Remove.
4419 (struct avr_unwind_cache): Define.
4420 (avr_write_sp): Delete function.
4421 (avr_read_fp): Ditto.
4422 (avr_init_extra_frame_info): Ditto.
4423 (avr_pop_frame): Ditto.
4424 (avr_frame_saved_pc): Ditto.
4425 (avr_saved_pc_after_call): Ditto.
4426 (avr_push_return_address): Ditto.
4427 (avr_frame_chain): Ditto.
4428 (avr_store_struct_return): Ditto.
4429 (avr_push_arguments): Ditto.
4430 (avr_scan_prologue): Update comments. Changed to set up the info for
4431 cache unwinding. Now returns end of prologue PC.
4432 (avr_skip_prologue): Better handling of functions lacking a prologue
4433 by using avr_scan_prologue.
4434 (avr_scan_arg_moves): New function.
4435 (avr_saved_regs_unwinder): Ditto.
4436 (avr_frame_unwind_cache): Ditto.
4437 (avr_unwind_pc): Ditto.
4438 (avr_frame_this_id): Ditto.
4439 (avr_frame_prev_register): Ditto.
4440 (avr_frame_p): Ditto.
4441 (avr_frame_base_address ): Ditto.
4442 (avr_unwind_dummy_id): Ditto.
4443 (avr_push_dummy_code): Ditto.
4444 (push_stack_item): Ditto.
4445 (pop_stack_item): Ditto.
4446 (avr_push_dummy_call): Ditto.
4447 (struct stack_item): Define.
4448 (avr_frame_unwind): Declare structure.
4449 (avr_frame_base): Ditto.
4450 (avr_gdbarch_init): Remove calls to
4451 set_gdbarch_deprecated_init_frame_pc,
4452 set_gdbarch_deprecated_target_read_fp,
4453 set_gdbarch_deprecated_dummy_write_sp,
4454 set_gdbarch_deprecated_fp_regnum,
4455 set_gdbarch_deprecated_push_arguments,
4456 set_gdbarch_deprecated_push_return_address,
4457 set_gdbarch_deprecated_pop_frame,
4458 set_gdbarch_deprecated_store_struct_return,
4459 set_gdbarch_deprecated_frame_init_saved_regs,
4460 set_gdbarch_deprecated_init_extra_frame_info,
4461 set_gdbarch_deprecated_frame_chain,
4462 set_gdbarch_deprecated_frame_saved_pc,
4463 set_gdbarch_deprecated_saved_pc_after_call.
4464 Add calls to set_gdbarch_push_dummy_call,
4465 set_gdbarch_push_dummy_code,
4466 frame_unwind_append_predicate,
4467 frame_base_set_default,
4468 set_gdbarch_unwind_dummy_id,
4469 set_gdbarch_unwind_pc.
4472 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4474 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4475 registers for H8/300S.
4476 (h8300_print_registers_info): Ditto.
4477 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4479 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4481 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4482 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4483 (lin_lwp_wait): Likewise. Update comments.
4484 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4485 (pull_pid_from_list, linux_record_stopped_pid): New.
4487 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4489 * ada-lang.c (scan_discrim_bound): Name first argument.
4490 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4491 declared by ALL_BLOCK_SYMBOLS.
4493 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4495 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4496 ("regcache.h"): Include it.
4497 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4499 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4501 * NEWS: Mention gdbserver detach change and "disconnect" command.
4502 * infcmd.c (disconnect_command): New function.
4503 (_initialize_infcmd): Add ``disconnect'' command.
4504 * remote.c (remote_async_detach): Delete.
4505 (remote_detach): Merge remote_async_detach.
4506 (remote_disconnect): New.
4507 (init_remote_ops): Set to_disconnect.
4508 (init_remote_cisco_ops): Likewise.
4509 (init_remote_async_ops): Likewise. Use remote_detach.
4510 * target.c (cleanup_target): Default to_disconnect.
4511 (update_current_target): Inherit to_disconnect.
4512 (target_disconnect, debug_to_disconnect): New functions.
4513 (setup_target_debug): Set to_disconnect.
4514 * target.h (struct target_ops): Add to_disconnect.
4515 (target_disconnect): Add prototype.
4517 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4519 * breakpoint.c (insert_catchpoint): New function.
4520 (insert_breakpoints): Use catch_exceptions to call
4521 insert_catchpoint. Disable catchpoints if they fail to insert.
4523 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4525 * symfile.c (reread_symbols): Clear sym_private.
4527 2003-06-17 Andrew Cagney <cagney@redhat.com>
4529 * trad-frame.h (struct frame_info): Add opaque declaration.
4530 * remote-fileio.h (struct cmd_list_element): Add opaque
4532 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4535 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4537 * remote.c (remote_prepare_to_store): Replace call to
4538 deprecated_read_register_bytes with multiple regcache_raw_read
4541 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4543 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4544 (nto_find_and_open_solib): Likewise.
4545 (nto_init_solib_absolute_prefix): Likewise.
4546 (_initialize_nto_tdep): Fix indentation.
4548 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4550 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4552 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4554 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4556 2003-06-17 Jim Blandy <jimb@redhat.com>
4558 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4560 2003-06-16 Theodore A. Roth <troth@openavr.org>
4562 * avr-tdep.c (avr_extract_return_value): New function.
4563 (avr_gdbarch_init): Set extract_return_value method.
4565 2003-06-16 Andrew Cagney <cagney@redhat.com>
4567 * frame.h (deprecated_get_next_frame_hack): Declare.
4568 * frame.c (legacy_saved_regs_prev_register): Only require
4569 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4570 there are always saved regs.
4571 (deprecated_generic_get_saved_register): Do not require
4572 DEPRECATED_FRAME_INIT_SAVED_REGS.
4573 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4574 use frame ID unwind instead.
4575 (deprecated_get_next_frame_hack): New function.
4577 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4579 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4580 (h8300_push_dummy_call): ...this function. Some minor optimization.
4581 (h8300_push_return_address): Remove.
4582 (h8300_gdbarch_init): Remove calls to
4583 set_gdbarch_deprecated_dummy_write_sp,
4584 set_gdbarch_deprecated_push_arguments and
4585 set_gdbarch_deprecated_push_return_address.
4586 Add call to set_gdbarch_push_dummy_call.
4588 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4590 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4591 (E_PSEUDO_EXR_REGNUM): Ditto.
4592 (h8300_is_argument_spill): Check for instructions moving argument
4593 registers into safe registers.
4594 (h8300_skip_prologue): Check for stm instruction to push registers
4595 used for register variables onto stack.
4596 (gdb_print_insn_h8300): Remove.
4597 (h8300_examine_prologue): Add a comment.
4598 (h8300_register_name): Take pseudo registers into account.
4599 (h8300s_register_name): Ditto.
4600 (h8300sx_register_name): Ditto.
4601 (h8300_print_register): Ditto.
4602 (h8300_print_registers_info): Define "nice" printing order.
4603 (h8300_saved_pc_after_call): Take pseudo registers into account.
4604 (h8300_register_type): Ditto. Return type used for remote connection
4605 when requesting real CCR or EXR register, return actual type when
4606 requesting pseudo CCR or EXR.
4607 (h8300_pseudo_register_read): New function.
4608 (h8300_pseudo_register_write): Ditto.
4609 (h8300_dbg_reg_to_regnum): Ditto.
4610 (h8300s_dbg_reg_to_regnum): Ditto.
4611 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4612 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4613 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4614 set_gdbarch_print_insn architecture dependent.
4615 Call set_gdbarch_pseudo_register_read and
4616 set_gdbarch_pseudo_register_write.
4617 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4619 2003-06-16 Andrew Cagney <cagney@redhat.com>
4621 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4622 * gdbarch.h, gdbarch.c: Re-generate.
4623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4624 * s390-tdep.c (s390_gdbarch_init): Update.
4625 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4626 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4627 * mips-tdep.c (mips_gdbarch_init): Update.
4628 * mcore-tdep.c (mcore_gdbarch_init): Update.
4629 * cris-tdep.c (cris_gdbarch_init): Update.
4630 * infcall.c (call_function_by_hand): Update.
4631 * ia64-tdep.c (ia64_push_arguments): Update comment.
4632 * frame.c (legacy_get_prev_frame): Do not assume
4633 SAVE_DUMMY_FRAME_TOS_P.
4634 * dummy-frame.c (find_dummy_frame): Update comment.
4636 2003-06-16 Andrew Cagney <cagney@redhat.com>
4638 * regcache.c (do_cooked_read): Do not use register_valid_p.
4640 2003-06-15 Theodore A. Roth <troth@openavr.org>
4642 * avr-tdep.c (avr_register_type): Remove a blank line.
4643 (avr_scan_prologue): Correct some comments.
4645 2003-06-15 Theodore A. Roth <troth@openavr.org>
4647 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4649 Properly scan prologues generated by gcc with the -mcall-prologues
4651 Add code to scan -mcall-prologues for mega devices.
4653 2003-06-15 Theodore A. Roth <troth@openavr.org>
4655 * avr-tdep.c (avr_register_byte): Delete function.
4656 (avr_register_raw_size): Delete function.
4657 (avr_register_virtual_size): Delete function.
4658 (avr_register_virtual_type): Delete function.
4659 (avr_register_type): New function.
4660 (avr_address_to_pointer): Remove unused code.
4661 (avr_read_fp): Need to read FP as two separate bytes due to change to
4662 avr_register_type() usage.
4663 (avr_gdbarch_init): Don't set deprecated_register_size.
4664 Don't set deprecated_register_bytes.
4665 Don't set deprecated_register_byte.
4666 Don't set deprecated_register_raw_size.
4667 Don't set deprecated_max_register_raw_size.
4668 Don't set deprecated_register_virtual_size.
4669 Don't set deprecated_max_register_virtual_size.
4670 Don't set deprecated_register_virtual_type.
4671 Set register_type method.
4673 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4675 * Makefile.in (linux-nat.o): Add rule.
4676 * linux-nat.c: New file.
4677 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4678 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4679 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4680 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4681 * config/arm/linux.mh (NATDEPFILES): Likewise.
4682 * config/i386/linux.mh (NATDEPFILES): Likewise.
4683 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4684 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4685 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4686 * config/mips/linux.mh (NATDEPFILES): Likewise.
4687 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4688 * config/s390/s390.mh (NATDEPFILES): Likewise.
4689 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4691 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4693 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4694 replace out-of-date comment.
4696 2003-06-15 Andrew Cagney <cagney@redhat.com>
4698 * rdi-share/host.h (Fail): Change to a varargs function.
4699 * remote-rdi.c (Fail): Update.
4701 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4703 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4704 (i386_convert_register_p, i386_register_to_value,
4705 i386_register_from_value): Handle types longer than 8 bytes.
4707 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4709 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4710 Move floating-point code to new function in i387-tdep.c.
4711 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4712 New functions containing code moved here from i386-tdep.c.
4713 * i387-tdep.h: Add opaque declaration for `struct type'.
4714 (i387_register_to_value, i387_value_to_register): New prototypes.
4715 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4716 (x86_64_init_abi): Set convert_register_p, register_to_value and
4717 value_to_register here.
4719 2003-06-14 Andrew Cagney <cagney@redhat.com>
4721 * mips-tdep.c (mips_register_to_value): Make static.
4722 (mips_value_to_register): Make static.
4723 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4724 * ia64-tdep.c (ia64_register_raw_size): Make static.
4725 (ia64_register_virtual_size): Make static.
4726 (ia64_register_byte): Make static.
4727 * i387-tdep.c: Include "i387-tdep.h".
4728 (print_387_control_word): Delete function.
4729 (print_387_status_word): Delete function.
4730 (print_387_status_bits): Delete function.
4731 (print_387_control_bits): Delete function.
4732 * Makefile.in (i387-tdep.o): Update dependencies.
4733 * rdi-share/host.h (Fail): Declare.
4734 * remote-rdi.c (Fail): Update to match declaration.
4736 2003-06-14 Andrew Cagney <cagney@redhat.com>
4738 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4739 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4740 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4741 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4742 * README: Delete reference to remote-array.
4743 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4744 (remote-array.o): Delete target.
4745 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4746 * remote-array.c: Delete file.
4748 2003-06-14 Andrew Cagney <cagney@redhat.com>
4749 Mark Kettenis <kettenis@gnu.org>
4751 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4752 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4753 parameter with "frame".
4754 * gdbarch.h, gdbarch.c: Re-generate.
4755 * frame.h (put_frame_register): Declare.
4756 * frame.c (put_frame_register): New function.
4757 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4758 (legacy_register_to_value): Rewrite, use "frame" to get the
4760 (legacy_value_to_register): Rewrite, use "frame" to find the
4761 register's location before storing.
4762 * arch-utils.h (legacy_convert_register_p): Update.
4763 (legacy_register_to_value, legacy_value_to_register): Update.
4764 * findvar.c (value_from_register): Rewrite, eliminate use of
4765 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4766 "frame" to REGISTER_TO_VALUE.
4767 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4768 lval_reg_frame_relative + lval_register branch of the switch. Do
4769 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4770 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4771 I386_EDI_REGNUM): New defines.
4772 (i386_next_regnum, i386_convert_register_p,
4773 i386_register_to_value, i386_value_to_register): New functions.
4774 (i386_register_convertible, i386_register_convert_to_virtual,
4775 i386_convert_to_raw): Remove functions.
4776 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4777 value_to_register instead of register_convertible,
4778 register_convert_to_virtual and register_convert_to_raw.
4779 * mips-tdep.c (mips_convert_register_p): New function.
4780 (mips_value_to_register): Replace mips_register_convert_from_type.
4781 (mips_register_to_value): Replace mips_register_convert_to_type.
4782 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4784 * alpha-tdep.c (alpha_convert_register_p): Update.
4785 (alpha_value_to_register): Update, store the register.
4786 (alpha_register_to_value): Update, fetch the register.
4788 2003-06-14 Theodore A. Roth <troth@openavr.org>
4790 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4791 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4792 Don't set deprecated_call_dummy_words.
4793 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4794 Don't set remote_translate_xfer_address.
4795 (avr_io_reg_read_command): Remove commented out debug printf.
4798 2003-06-14 Theodore A. Roth <troth@openavr.org>
4800 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4801 causes gdb to seg fault.
4803 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4805 * sparc-nat.c (fetch_inferior_registers): Correct
4806 a reference to "registers".
4808 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4810 * Makefile.in (exc_request_U_h): Define
4811 (exc_request_S_h): Likewise.
4812 (msg_reply_S_h): Likewise.
4813 (msg_U_h): Likewise.
4814 (notify_S_h): Likewise.
4815 (process_reply_S_h): Likewise.
4816 (gnu-nat.o): Depend on gdb_obstack_h
4817 * gnu-nat.c: Include "gdb_obstack.h".
4819 2003-06-13 Andrew Cagney <cagney@redhat.com>
4821 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4822 * gdbarch.h, gdbarch.c: Re-generate.
4824 2003-06-13 Andrew Cagney <cagney@redhat.com>
4826 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4827 when deprecated REGISTER macros can be deleted.
4828 * gdbarch.h, gdbarch.c: Re-generate.
4830 2003-06-13 Jim Blandy <jimb@redhat.com>
4832 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4833 Linux entry point symbols for _dl_debug_state, too.
4835 2003-06-13 Andrew Cagney <cagney@redhat.com>
4837 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4838 available, do not use the FP register, and always save the TOS.
4839 * dummy-frame.c (dummy_frame_this_id): Do not assert
4840 SAVE_DUMMY_FRAME_TOS.
4841 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4842 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4843 (i386_push_dummy_call): Add 8 to the returned SP.
4844 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4845 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4846 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4847 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4848 (x86_64_push_dummy_call): Return "sp + 16".
4849 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4850 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4851 save_dummy_frame_tos.
4853 2003-06-13 Jim Blandy <jimb@redhat.com>
4855 * frv-tdep.c (frv_use_struct_convention): Delete static
4856 declaration for function deleted in my change of 2003-06-12.
4858 2003-06-13 Theodore A. Roth <troth@openavr.org>
4860 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4861 (avr_pointer_to_address): Shift code addrs left 1 bit.
4862 (avr_convert_from_func_ptr_addr): Delete function since operation is
4863 better handled by avr_address_to_pointer and avr_pointer_to_address.
4864 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4866 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4868 From Kelley Cook <kelleycook@wideopenwest.com>:
4869 * configure.host: Accept i[34567]86 variants.
4870 * configure.tgt: Likewise.
4871 * nlm/configure.in: Likewise.
4872 * nlm/configure: Regenerated.
4874 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4876 * arm-tdep.c (solib-svr4.h): Dont' include it.
4877 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4878 * arm-linux-tdep.c: ... here. Make static.
4879 (arm_linux_init_abi): Register it.
4880 (solib-svr4.h): Include it.
4881 * Makefile.in: Update dependencies.
4882 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4883 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4885 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4887 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4888 indicate registers used for return values.
4889 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4890 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4892 (h8300_init_extra_frame_info): Ditto.
4893 (h8300_frame_locals_address): Removed.
4894 (h8300_frame_args_address): Removed.
4895 (h8300_extract_return_value): Use new regcache structure. Only care
4897 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4898 (h8300_store_return_value): Use new regcache structure. Only care
4900 (h8300h_store_return_value): Same function for 32 bit CPUs.
4901 (h8300_store_struct_return): Removed.
4902 (h8300_extract_struct_value_address): Use new regcache structure.
4903 (h8300h_extract_struct_value_address): Removed.
4904 (h8300_push_dummy_code): New function.
4905 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4906 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4907 set_gdbarch_store_return_value architecture dependent.
4908 Call set_gdbarch_push_dummy_code and
4909 set_gdbarch_extract_struct_value_address.
4910 Remove calls to set_gdbarch_frame_args_address,
4911 set_gdbarch_frame_locals_address,
4912 set_gdbarch_deprecated_store_struct_return,
4913 set_gdbarch_deprecated_extract_return_value,
4914 set_gdbarch_deprecated_extract_struct_value_address,
4915 set_gdbarch_deprecated_call_dummy_words and
4916 set_gdbarch_deprecated_sizeof_call_dummy_words.
4918 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4920 * h8300-tdep.c (h8300_register_byte): Remove.
4921 (h8300h_register_byte): Remove.
4922 (h8300_register_virtual_type): Remove. Substitute by...
4923 (h8300_register_type): New function.
4924 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4925 (h8300h_extract_struct_value_address): Ditto.
4926 (h8300_gdbarch_init): Drop calls to
4927 set_gdbarch_deprecated_register_byte and
4928 set_gdbarch_deprecated_register_virtual_type.
4929 Add call to set_gdbarch_register_type.
4931 2003-06-13 Andrew Cagney <cagney@redhat.com>
4933 * gdbarch.sh: Update comments on registers.
4934 (deprecated_register_byte): Rename register_byte.
4935 (deprecated_register_raw_size): Rename register_raw_size.
4936 (deprecated_register_virtual_size): Rename register_virtual_size.
4937 (deprecated_register_virtual_type): Rename register_virtual_type.
4938 * gdbarch.h, gdbarch.c: Re-generate.
4939 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4940 * vax-tdep.c (vax_gdbarch_init): Update.
4941 * v850-tdep.c (v850_gdbarch_init): Update.
4942 * sparc-tdep.c (sparc_gdbarch_init): Update.
4943 * sh-tdep.c (sh_gdbarch_init): Update.
4944 * s390-tdep.c (s390_gdbarch_init): Update.
4945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4946 * ns32k-tdep.c: Update.
4947 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4948 * mips-tdep.c (mips_gdbarch_init): Update.
4949 * mcore-tdep.c (mcore_gdbarch_init): Update.
4950 * m68k-tdep.c (m68k_gdbarch_init): Update.
4951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4952 * ia64-tdep.c (ia64_gdbarch_init): Update.
4953 * hppa-tdep.c (hppa_gdbarch_init): Update.
4954 * h8300-tdep.c (h8300_gdbarch_init): Update.
4955 * frv-tdep.c (frv_gdbarch_init): Update.
4956 * cris-tdep.c (cris_gdbarch_init): Update.
4957 * avr-tdep.c (avr_gdbarch_init): Update.
4958 * alpha-tdep.c (alpha_gdbarch_init): Update.
4959 * arm-tdep.c (arm_gdbarch_init): Update.
4961 2003-06-13 Andrew Cagney <cagney@redhat.com>
4963 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4964 mips_o32_use_struct_convention with always_use_struct_convention.
4966 2003-06-12 David Carlton <carlton@kealia.com>
4968 * cp-namespace.c (cp_set_block_scope): Comment out
4969 processing_has_namespace_info branch.
4971 2003-06-12 Jim Blandy <jimb@redhat.com>
4973 Recognize and skip 64-bit PowerPC Linux linkage functions.
4974 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
4975 insn_pattern, insns_match_pattern, d_field, ds_field): New
4976 functions, macros, and types for working with PPC instructions.
4977 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
4978 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
4979 ppc64_skip_trampoline_code): New functions, variables, and macros
4980 for recognizing and skipping linkage functions.
4981 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
4982 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
4984 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
4985 register offsets for both the 32- and 64-bit interfaces.
4987 Actually finish the job started by my change of 2003-05-29.
4988 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
4989 other #definition of this.
4990 (ppc_linux_skip_trampoline_code): Remove declaration.
4991 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
4993 (ppc_linux_init_abi): Register it as the skip_trampoline_code
4996 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
4997 'long' on ppc64-*-linux*.
4999 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5000 isn't #defined, assume the register doesn't exist: act as if
5001 tdep->ppc_mq_regnum were -1.
5003 * configure.host, configure.tgt: Add entries for
5004 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5006 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5009 * arch-utils.c (always_use_struct_convention): New function.
5010 * arch-utils.h (always_use_struct_convention): New prototype.
5011 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5012 (alpha_gdbarch_init): Register always_use_struct_convention,
5013 instead of alpha_use_struct_convention.
5014 * cris-tdep.c (cris_use_struct_convention): Delete.
5015 (cris_gdbarch_init): Register always_use_struct_convention,
5016 instead of cris_use_struct_convention.
5017 * frv-tdep.c (frv_use_struct_convention): Delete.
5018 (frv_gdbarch_init): Register always_use_struct_convention,
5019 instead of frv_use_struct_convention.
5020 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5021 (h8300_gdbarch_init): Register always_use_struct_convention,
5022 instead of h8300_use_struct_convention.
5023 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5024 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5025 instead of mips_o32_use_struct_convention.
5027 2003-06-12 Andrew Cagney <cagney@redhat.com>
5029 * wince.c: Include "mips-tdep.h".
5030 * mips-tdep.h (mips_next_pc): Declare.
5031 * mcore-tdep.c: Make more local functions static.
5032 * Makefile.in (wince.o): Update dependencies.
5034 2003-06-12 David Carlton <carlton@kealia.com>
5036 * symtab.c (lookup_symbol_aux_minsyms): Replace
5037 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5038 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5039 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5040 SYMBOL_NATURAL_NAME.
5042 2003-06-12 Andreas Schwab <schwab@suse.de>
5044 * Makefile.in (tuiDisassem.o): Update dependencies.
5046 2003-06-12 David Carlton <carlton@bactrian.org>
5048 * symtab.h: Delete declaration of make_symbol_overload_list.
5049 Add declaration of lookup_partial_symbol.
5050 * symtab.c (remove_params): Move to cp-support.c.
5051 (overload_list_add_symbol, make_symbol_overload_list)
5052 (sym_return_val_size, sym_return_val_index): Ditto.
5053 (lookup_partial_symbol): Make extern.
5054 * cp-support.h: Add declaration of make_symbol_overload_list.
5055 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5056 symtab.h, and block.h.
5057 (remove_params): Move here from symtab.c.
5058 (overload_list_add_symbol, make_symbol_overload_list)
5059 (sym_return_val_size, sym_return_val_index): Ditto.
5060 * valops.c: Include cp-support.h.
5061 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5062 frame_h, and block_h.
5063 (valops.o): Depend on cp_support_h.
5065 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5067 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5068 substitute by NUM_REGS throughout.
5069 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5070 (h8300s_register_name): New function for H8S registers.
5071 (h8300sx_register_name): Ditto for H8SX registers.
5072 (h8300_print_register): Revise register printing, avoid depending
5074 (h8300_register_byte): Only care for H8/300 registers.
5075 (h8300h_register_byte): New function for any other architecture.
5076 (h8300_register_raw_size): Remove.
5077 (h8300_register_virtual_type): Revise to return actually useful
5079 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5080 (h8300h_extract_struct_value_address): New function for any other
5082 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5083 set_gdbarch_register_name, set_gdbarch_register_byte,
5084 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5085 Remove calls to set_gdbarch_deprecated_register_size,
5086 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5087 set_gdbarch_deprecated_max_register_raw_size,
5088 set_gdbarch_register_virtual_size and
5089 set_gdbarch_deprecated_max_register_virtual_size entirely.
5090 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5091 set_gdbarch_long_double_bit.
5093 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5095 * doublest.c (convert_doublest_to_floatformat): When dealing
5096 with the implied integer bit, only alter mant_bits if we are
5097 processing a full 32 bits of mantissa.
5099 2003-06-11 David Carlton <carlton@bactrian.org>
5101 * dictionary.h: New.
5102 * dictionary.c: New.
5103 * block.h: Add opaque declaration for struct dictionary.
5104 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5106 (BLOCK_DICT): New macro.
5107 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5108 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5110 (ALL_BLOCK_SYMBOLS): Update definition.
5111 * Makefile.in (SFILES): Add dictionary.c.
5112 (dictionary_h): New.
5113 (COMMON_OBS): Add dictionary.o.
5114 (dictionary.o): New.
5115 (ada-lang.o): Depend on dictionary_h.
5116 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5117 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5118 (mi-cmd-stack.o): Ditto.
5119 (gdbtk-cmds.o): Update dependencies.
5120 (gdbtk-stack.o): Ditto.
5121 * ada-lang.c: Include dictionary.h.
5122 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5123 (fill_in_ada_prototype, debug_print_block): Ditto.
5124 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5125 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5127 * mdebugread.c: Include dictionary.h.
5128 (struct parse_stack): Delete 'maxsyms' member.
5129 (parse_symbol): Update calls to new_block. Delete calls to
5130 shrink_block. Use dictionary methods.
5131 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5132 Update calls to new_symtab. Don't maintain maxsyms data.
5133 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5134 (add_symbol): Just call dict_add_symbol.
5135 (new_symtab): Delete 'maxsyms' argument.
5136 (new_symtab): Update calls to new_block.
5137 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5138 (shrink_block): Delete function.
5139 (fixup_sigtramp): Update call to new_block. Add symbol via
5141 * jv-lang.c: Include dictionary.h.
5142 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5143 appropriately. Set class_symtab->free_func. Make sure the
5144 blockvector is big enough to hold two blocks.
5145 (add_class_symtab_symbol): Use dictionary methods.
5146 (free_class_block): New function.
5147 (type_from_class): Replace explicit iteration by
5149 * symtab.h (struct symtab): Replace 'free_ptr' method by
5151 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5153 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5155 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5156 Include dictionary.h.
5157 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5158 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5160 * objfiles.c: Include dictionary.h.
5161 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5162 * buildsym.c: Include dictionary.h.
5163 (finish_block): Use dictionary methods.
5164 (end_symtab): Set free_func to NULL, not free_ptr.
5165 * tracepoint.c: Include dictionary.h.
5166 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5167 (scope_info): Ditto.
5168 * stack.c: Include dictionary.h.
5169 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5170 (print_block_frame_labels, print_frame_arg_vars)
5171 (print_frame_args): Ditto.
5172 * symmisc.c (free_symtab_block): Use dictionary methods.
5173 (dump_symtab): Ditto.
5174 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5175 Include dictionary.h.
5176 * symfile.h: Delete declarations of sort_block_syms,
5178 * symfile.c (sort_block_syms): Delete.
5179 (sort_symtab_syms): Delete.
5180 * symtab.c: Include dictionary.h.
5181 (lookup_block_symbol): Use dictionary iterators.
5182 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5183 (search_symbols, make_symbol_completion_list): Ditto.
5184 (make_symbol_overload_list): Ditto.
5185 * valops.c (value_of_local): Use dict_empty.
5186 Include dictionary.h.
5188 2003-06-11 J. Brobecker <brobecker@gnat.com>
5190 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5192 2003-06-11 David Carlton <carlton@bactrian.org>
5194 * block.h (BLOCK_SHOULD_SORT): Delete.
5195 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5197 * ada-lang.c (ada_add_block_symbols): Ditto.
5198 * symfile.c (sort_block_syms): Delete.
5199 (sort_symtab_syms): Ditto.
5200 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5202 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5203 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5204 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5205 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5206 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5207 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5208 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5210 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5212 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5215 2003-06-11 Andrew Cagney <cagney@redhat.com>
5217 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5218 REGISTER_CONVERTIBLE.
5219 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5220 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5221 * gdbarch.h, gdbarch.c: Re-generate.
5222 * arch-utils.h (deprecated_register_convertible_not): Rename
5223 generic_register_convertible_not.
5224 * arch-utils.c (deprecated_register_convertible_not): Rename
5225 generic_register_convertible.
5226 (legacy_convert_register_p, legacy_register_to_value): Update.
5227 * sh-tdep.c (sh64_push_arguments): Update.
5228 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5229 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5230 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5231 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5232 * arch-utils.c (legacy_value_to_register): Update.
5233 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5234 (rs6000_register_convert_to_raw): Make parameter "from" const.
5235 * mips-tdep.c (mips_gdbarch_init): Update.
5236 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5237 * infcmd.c (default_print_registers_info): Update.
5238 * ia64-tdep.c (ia64_gdbarch_init): Update.
5239 (ia64_register_convert_to_raw): Make parameter "from" const.
5240 * i386-tdep.c (i386_gdbarch_init): Update.
5241 (i386_register_convert_to_raw): Update.
5243 2003-06-11 Andrew Cagney <cagney@redhat.com>
5245 * remote-fileio.c: Include "remote-fileio.h".
5246 * Makefile.in (remote-fileio.o): Update dependencies.
5247 (remote_fileio_h): Fix typo.
5249 2003-06-11 Andrew Cagney <cagney@redhat.com>
5251 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5252 (xstormy16_save_dummy_frame_tos): Make static.
5253 (_initialize_xstormy16_tdep): Add declaration.
5254 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5255 * v850-tdep.c: Make local functions static.
5256 (_initialize_v850_tdep): Add declaration.
5257 * sparc-tdep.c: Make local functions static.
5258 (_initialize_sparc_tdep): Add declaration.
5259 * sh-tdep.c: Make local functions static.
5260 (_initialize_sh_tdep): Add declaration.
5261 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5262 * s390-tdep.c: Make local functions static.
5263 (_initialize_s390_tdep): Add declaration.
5264 * dbxread.c (find_stab_function_addr): Make static.
5265 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5266 * ocd.c (_initialize_remote_ocd): Add declaration.
5267 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5268 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5269 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5270 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5271 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5272 * remote-array.c (_initialize_array): Add declaration.
5273 (_initialize_remote_monitors): Add declaration.
5274 * remote-mips.c: Make local functions static.
5275 (_initialize_remote_mips): Add declaration.
5276 * mcore-tdep.c: Make all local functions static.
5277 (_initialize_mcore_tdep): Add declaration.
5278 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5279 * abug-rom.c (_initialize_abug_rom): Add declaration.
5280 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5281 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5282 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5283 * remote-est.c (_initialize_est): Add declaration.
5284 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5285 (m68hc11_call_dummy_address): Make static.
5286 * ia64-tdep.c: Make local functions static.
5287 (_initialize_ia64_tdep): Add declaration.
5288 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5289 * monitor.c (monitor_wait_filter): Make static.
5290 (_initialize_remote_monitors): Add declaration.
5291 * remote-hms.c (_initialize_remote_hms): Add declaration.
5292 * remote-e7000.c (fetch_regs_from_dump): Make static.
5293 (expect_n): Make static.
5294 (_initialize_remote_e7000): Add declaration.
5295 * ser-e7kpc.c: Always include "defs.h".
5296 (_initialize_ser_e7000pc): Add declaration.
5297 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5298 * cris-tdep.c: Make all but one function static.
5299 (_initialize_cris_tdep): Add declaration.
5300 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5301 * solib.c (update_solib_list): Make static.
5302 (_initialize_solib): Add declaration.
5303 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5304 (_initialize_avr_tdep): Add declaration.
5305 * remote-rdi.c (voiddummy): Make static.
5306 (_initialize_remote_rdi): Add declaration.
5307 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5308 * remote-rdp.c (send_rdp): Make static.
5309 (_initialize_remote_rdp): Add declaration.
5310 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5312 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5314 * remote-fileio.c: Make ari happy.
5316 2003-06-10 J. Brobecker <brobecker@gnat.com>
5318 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5319 fetching the trailing bytes of the buffer we are about to write.
5321 2003-06-10 Andrew Cagney <cagney@redhat.com>
5323 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5324 * Makefile.in (remote-fileio.o): Update dependencies.
5325 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5326 include <setjmp.h>, or <sys/types.h> conditional on USG.
5327 (remote_fio_jmp_buf): Delete global variable.
5329 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5330 Martin M. Hunt <hunt@redhat.com>
5332 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5333 (SFILES): Add remote-fileio.c.
5334 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5335 dependencies for building remote.o.
5336 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5337 * remote-fileio.h: New header file defining remote File-I/O interface.
5338 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5339 static storage class.
5340 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5342 (_initialize_remote): Call initialize_remote_fileio().
5343 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5344 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5345 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5346 (captured_main): Initialize new ui_files.
5347 * ui-file.c: Add read and fgets input functions.
5348 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5349 (null_file_read): New function.
5350 (ui_file_read): New function.
5351 (set_ui_file_read): New function.
5352 (stdio_file_read): New function.
5353 * ui-file.h: New type ui_file_read_ftype.
5354 (set_ui_file_read): Declare.
5355 (ui_file_read): Declare.
5357 2003-06-09 Andrew Cagney <cagney@redhat.com>
5359 * frame.h (deprecated_unwind_get_saved_register): Rename
5360 generic_unwind_get_saved_register, update comments.
5361 * mips-tdep.c (mips_get_saved_register): Update.
5362 * frame.c (deprecated_unwind_get_saved_register): Update.
5364 2003-06-09 Andrew Cagney <cagney@redhat.com>
5366 * vax-tdep.c (vax_frame_locals_address): Delete function.
5367 (vax_gdbarch_init): Do not set frame_locals_address.
5368 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5369 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5370 * s390-tdep.c (s390_frame_args_address): Delete function.
5371 (s390_gdbarch_init): Do not set frame_args_address or
5372 frame_locals_address.
5373 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5374 (ns32k_gdbarch_init): Do not set frame_locals_address.
5375 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5376 (hppa_frame_locals_address): Delete function.
5377 (hppa_gdbarch_init): Do not set frame_args_address, or
5378 frame_locals_address.
5379 * arm-tdep.c (arm_frame_args_address): Delete.
5380 (arm_frame_locals_address): Delete.
5381 (arm_gdbarch_init): Do not set frame_args_address, or
5382 frame_locals_address.
5384 2003-06-09 Andrew Cagney <cagney@redhat.com>
5386 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5387 * gdbarch.h, gdbarch.c: Re-generate.
5388 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5389 * arch-utils.c (frame_num_args_unknown): Delete function.
5390 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5391 (frame_info): Use FRAME_NUM_ARGS_P.
5392 * arm-tdep.c (arm_frame_num_args): Delete function.
5393 (arm_gdbarch_init): Do not set frame_num_args.
5394 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5395 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5396 (hppa_gdbarch_init): Do not set frame_num_args.
5397 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5398 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5399 frame_num_args to default frame_num_args_unknown.
5400 * v850-tdep.c (v850_gdbarch_init): Ditto.
5401 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5402 * sh-tdep.c (sh_gdbarch_init): Ditto.
5403 * s390-tdep.c (s390_gdbarch_init): Ditto.
5404 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5405 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5406 * mips-tdep.c (mips_gdbarch_init): Ditto.
5407 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5408 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5410 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5411 * i386-tdep.c (i386_gdbarch_init): Ditto.
5412 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5413 * frv-tdep.c (frv_gdbarch_init): Ditto.
5414 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5415 * cris-tdep.c (cris_gdbarch_init): Ditto.
5416 * avr-tdep.c (avr_gdbarch_init): Ditto.
5417 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5419 2003-06-09 Andrew Cagney <cagney@redhat.com>
5421 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5422 (print_frame_args): Moved to "stack.c".
5423 * stack.c: Include "gdb_assert.h".
5424 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5425 (print_frame_args): Moved from "printcmd.c".
5426 * frame.h (print_frame_args): Delete declaration.
5427 * Makefile.in (stack.o): Update dependencies.
5429 2003-06-08 Andrew Cagney <cagney@redhat.com>
5431 * frame.c (get_prev_frame): Remove reference to
5432 frame_args_address_correct in comments.
5433 * frame-base.c (default_frame_args_address): Delete code
5434 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5435 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5436 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5437 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5438 (vax_frame_args_address_correct): Delete declaration.
5440 2003-06-08 Andrew Cagney <cagney@redhat.com>
5442 * gdbarch.sh (UNWIND_SP): Add.
5443 * gdbarch.h, gdbarch.c: Re-generate.
5444 * frame.c (frame_sp_unwind): New function.
5445 (get_frame_sp): New function.
5446 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5447 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5448 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5450 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5451 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5453 2003-06-08 Andrew Cagney <cagney@redhat.com>
5455 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5458 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5459 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5460 * config/m68k/tm-sun3.h: Update.
5461 * config/m68k/tm-m68klynx.h: Update.
5462 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5464 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5465 trad_frame". Update comments.
5466 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5467 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5468 (trad_frame_register_value, trad_frame_prev_register): Update.
5470 2003-06-08 Andrew Cagney <cagney@redhat.com>
5472 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5473 from GCC's acinclude.m4.
5474 * configure.in: Check for getopt's delcaration.
5475 * aclocal.m4, config.in, configure: Re-generate.
5476 * main.c (error_init): Delete declaration.
5477 * defs.h (error_init): Declare.
5478 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5479 (rs6000_convert_from_func_ptr_addr): Make static.
5480 (_initialize_rs6000_tdep): Add declaration.
5481 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5482 (show_commands, set_verbose, show_history): Delete declaration.
5483 * top.h (set_verbose): Add declaration.
5484 (show_history, set_history, show_commands): Add declaration.
5485 (do_restore_instream_cleanup): Add declaration.
5486 * objc-lang.c (specialcmp): Make static.
5487 (print_object_command): Make static.
5488 (find_objc_msgsend): Make static.
5489 (find_objc_msgcall_submethod_helper): Make static.
5490 (find_objc_msgcall_submethod): Make static.
5491 (_initialize_objc_language): Add declaration.
5492 (find_implementation_from_class): Make static.
5493 (find_implementation): Make static.
5494 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5495 * objc-lang.h (lookup_struct_typedef): Add declaration.
5496 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5497 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5498 (do_restore_user_call_depth): Make static.
5499 (do_restore_instream_cleanup): Delete declaration.
5500 (dont_repeat): Delete declaration.
5501 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5502 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5503 * reggroups.c (_initialize_reggroup): Add declaration.
5504 * cp-support.c (_initialize_cp_support): Add declaration.
5505 * cp-abi.c (_initialize_cp_abi): Add declaration.
5506 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5507 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5508 (_initialize_gnu_v3_abi): Add declaration.
5509 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5510 (_initialize_gnu_v2_abi): Add declaration.
5511 * frame-base.c (_initialize_frame_base): Add declaration.
5512 * doublest.c (floatformat_from_length): Make static.
5513 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5514 * frame.c (create_sentinel_frame): Make static.
5515 (_initialize_frame): Add declaration.
5516 * top.c (do_catch_errors): Make static.
5517 (gdb_rl_operate_and_get_next_completion): Make static.
5518 * typeprint.c: Include "typeprint.h".
5519 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5520 (sentinel_frame_this_id): Make static.
5521 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5522 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5523 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5524 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5525 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5526 * maint.c (maintenance_print_architecture): Make static.
5527 * signals/signals.c (_initialize_signals): Add declaration.
5528 * std-regs.c (_initialize_frame_reg): Add declaration.
5529 * jv-exp.y (push_variable): ISO C definition.
5530 (push_qualified_expression_name): Ditto.
5531 * memattr.c (_initialize_mem): Add declaration.
5532 * remote.c (remote_check_watch_resources): Make static.
5533 (remote_stopped_by_watchpoint): Make static.
5534 (remote_stopped_data_address): Make static.
5535 * d10v-tdep.c (nr_dmap_regs): Make static.
5536 (a0_regnum): Make static.
5537 (d10v_frame_unwind_cache): Make static.
5538 (d10v_frame_p): Make static.
5539 * osabi.c (show_osabi): Make static.
5540 (_initialize_gdb_osabi): Add extern declaration.
5541 * gdbtypes.c (make_qualified_type): Make static.
5542 (safe_parse_type): Make static.
5543 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5544 * macrotab.c (macro_bcache_free): Make static.
5545 * interps.c (interp_set_quiet): Make static.
5546 (interpreter_exec_cmd): Make static.
5547 * stack.h (select_frame_command): New file.
5548 * stack.c: Include "stack.h".
5549 (select_frame_command_wrapper): Delete function.
5550 (select_frame_command): Make global.
5551 * infcall.c: Include "infcall.h".
5552 * linespec.c: Include "linespec.h".
5553 * symfile.c (sections_overlap): Make static.
5554 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5555 * charset.c (_initialize_charset): Add missing prototype.
5556 * regcache.c (init_legacy_regcache_descr): Make static.
5557 (do_regcache_xfree): Make static.
5558 (regcache_xfer_part): Make static.
5559 (_initialize_regcache): Add missing prototype.
5560 * breakpoint.c (parse_breakpoint_sals): Make static.
5561 (breakpoint_sals_to_pc): Make static.
5562 * interps.h (clear_interpreter_hooks): ISO C declaration.
5563 * Makefile.in (stack_h): Define.
5564 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5565 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5567 2003-06-08 Andrew Cagney <cagney@redhat.com>
5569 * Makefile.in (d10v-tdep.o): Update dependencies.
5570 (SFILES): Add trad-frame.c.
5571 (trad_frame_h): Define.
5572 (COMMON_OBS): Add trad-frame.o.
5573 (trad-frame.o): Specify dependencies.
5574 * d10v-tdep.c: Include "trad-frame.h".
5575 (saved_regs_unwinder): Delete function.
5576 (d10v_frame_prev_register): Use trad_frame_prev_register.
5577 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5578 trad_frame", delete "regs" and "prev_sp".
5579 (prologue_find_regs): Use trad-frame.
5580 * trad-frame.h, trad-frame.c: New files.
5582 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5584 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5586 2003-06-07 Adam Fedor <fedor@gnu.org>
5588 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5589 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5590 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5591 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5592 resolve_msgsend_super, resolve_msgsend_super_stret):
5595 2003-06-07 Andrew Cagney <cagney@redhat.com>
5597 * symfile.h: Re-indent, clean up comments.
5599 2003-06-07 Andrew Cagney <cagney@redhat.com>
5601 * inferior.h (deprecated_write_sp): Replace
5602 generic_target_write_sp.
5603 * regcache.c (deprecated_write_sp): Replace
5604 generic_target_write_sp.
5605 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5606 * vax-tdep.c (vax_gdbarch_init): Update.
5607 * v850-tdep.c (v850_gdbarch_init): Update.
5608 * sparc-tdep.c (sparc_gdbarch_init): Update.
5609 * sh-tdep.c (sh_gdbarch_init): Update.
5610 * s390-tdep.c (s390_gdbarch_init): Update.
5611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5612 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5613 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5614 * mcore-tdep.c (mcore_gdbarch_init): Update.
5615 * m68k-tdep.c (m68k_gdbarch_init): Update.
5616 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5617 * ia64-tdep.c (ia64_gdbarch_init): Update.
5618 * h8300-tdep.c (h8300_gdbarch_init): Update.
5619 * frv-tdep.c (frv_gdbarch_init): Update.
5620 * cris-tdep.c (cris_gdbarch_init): Update.
5621 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5623 2003-06-07 Andrew Cagney <cagney@redhat.com>
5625 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5626 Assert that PC_REGNUM is valid.
5627 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5629 2003-06-07 Andrew Cagney <cagney@redhat.com>
5631 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5632 * gdbarch.h, gdbarch.c: Regenerate.
5633 * mn10300-tdep.c: Include "gdb_assert.h".
5634 (mn10300_read_fp): New function.
5635 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5636 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5637 * ia64-tdep.c: Include "gdb_assert.h".
5638 (ia64_read_fp): New function.
5639 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5640 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5641 * regcache.c (generic_target_read_sp): Delete function.
5642 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5643 * inferior.h (generic_target_read_sp): Delete declaration.
5644 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5645 generic_target_read_sp.
5646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5647 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5648 * sh-tdep.c (sh_gdbarch_init): Ditto.
5649 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5650 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5652 2003-06-07 Andrew Cagney <cagney@redhat.com>
5654 * gdbarch.sh: Comment each field of startup_gdbarch.
5655 * gdbarch.h, gdbarch.c: Re-generate.
5657 2003-06-07 Andrew Cagney <cagney@redhat.com>
5659 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5660 * gdbarch.h, gdbarch.c: Re-generate.
5661 * regcache.c: Update comments on read_pc et.al.
5662 (generic_target_read_pc): Delete function.
5663 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5664 * inferior.h (generic_target_read_pc): Delete declaration.
5665 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5666 generic_target_read_pc.
5667 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5668 * sh-tdep.c (sh_gdbarch_init): Ditto.
5669 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5670 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5672 2003-06-07 Andrew Cagney <cagney@redhat.com>
5674 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5675 "index" with "special_local_sect". Use strcmp instead of STREQ.
5676 Append period to coments.
5678 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5680 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5681 (elfstab_offset_sections): Likewise.
5682 * gdb-stabs.h (stab_section_info): Likewise.
5683 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5684 * objfiles.c (objfile_relocate): Likewise.
5685 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5686 * remote.c (get_offsets): Likewise.
5687 (remote_cisco_objfile_relocate): Likewise.
5688 * somread.c (som_symfile_offsets): Likewise.
5689 * symfile.c (alloc_section_addr_info): New function.
5690 (build_section_addr_info_from_section_tab): Use it.
5691 (free_section_addr_info): Adjust.
5692 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5693 (syms_from_objfile): Allocate local_addr dynamically.
5694 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5696 (add_symbol_file_command): Allocate sect_opts dynamically.
5697 (reread_symbols): Avoid use of SECT_OFF_MAX.
5698 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5699 (alloc_section_addr_info): Declare it.
5700 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5701 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5703 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5705 2003-06-06 Andrew Cagney <cagney@redhat.com>
5707 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5708 (d10v_frame_unwind_cache): Do not set "return_pc".
5710 2003-06-06 Michael Snyder <msnyder@redhat.com>
5712 * h8300-tdep.c: Make tidy (long lines).
5714 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5716 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5717 to regcache_collect().
5719 2003-06-05 J. Brobecker <brobecker@gnat.com>
5721 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5722 pc_in_sigtramp multiarch method.
5723 (hppa_hpux_som_init_abi): Use it.
5724 (hppa_hpux_elf_init_abi): Likewise.
5725 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5726 macro has been multiarched.
5727 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5728 macro here, as hppa64 isn't multiarched yet.
5730 2003-06-05 Andrew Cagney <cagney@redhat.com>
5732 * Makefile.in (value_h): Add $(frame_h).
5733 * value.h: Include "frame.h".
5734 (struct value): Replace "frame_addr" with "frame_id".
5735 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5736 * values.c (allocate_value): Use VALUE_FRAME_ID.
5737 (value_copy): Use VALUE_FRAME_ID.
5738 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5739 * valops.c (value_assign): Update. Use frame_find_by_id.
5741 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5743 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5746 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5748 * thread-db.c (check_event): For create/death event breakpoints,
5749 loop through all messages to ensure that we read the message
5750 corresponding to the breakpoint we are at.
5752 2003-06-04 Michael Snyder <msnyder@redhat.com>
5754 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5756 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5758 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5759 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5760 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5761 when handling .eh_frame sections.
5763 2003-06-04 J. Brobecker <brobecker@gnat.com>
5765 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5766 prepare_to_proceed procedure instead of the hppa-specific one.
5767 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5769 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5771 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5772 * config.in: Regenerated.
5773 * configure.in: Add test for syscall function and check for
5774 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5775 * configure: Regenerated.
5776 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5778 (kill_lwp): New function that uses tkill syscall or
5779 uses kill, depending on whether threading model is nptl or not.
5780 All callers of kill() changed to use kill_lwp().
5781 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5782 see if all threads have already exited in the nptl model.
5783 (stop_and_resume_callback): New callback function used by the
5784 lin_lwp_wait thread exit handling code.
5785 (stop_wait_callback): Check for threads already having exited and
5786 delete such threads fromt the lwp list when discovered.
5787 (stop_callback): Don't assert retcode of kill call.
5789 Roland McGrath <roland@redhat.com>
5790 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5793 2003-06-03 Richard Henderson <rth@redhat.com>
5795 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5796 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5797 (alpha_sigtramp_frame_prev_register): Likewise.
5798 (alpha_heuristic_frame_prev_register): Likewise.
5799 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5801 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5802 alpha-specific register id names.
5803 (alpha_mdebug_frame_unwind_cache): Likewise.
5804 (alpha_mdebug_frame_prev_register): Likewise.
5806 2003-06-03 Richard Henderson <rth@redhat.com>
5808 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5809 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5810 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5811 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5813 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5814 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5815 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5817 * alpha-linux-tdep.c: Remove unnecessary includes.
5818 * Makefile.in (alpha-linux-tdep.o): Update.
5820 2003-06-03 Richard Henderson <rth@redhat.com>
5822 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5823 (alphabsd_fill_fpreg): Likewise.
5825 2003-06-03 J. Brobecker <brobecker@gnat.com>
5827 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5828 references to struct frame_info fields by calls to the equivalent
5829 accessors. Necessary now that frame_info is opaque.
5831 2003-06-03 J. Brobecker <brobecker@gnat.com>
5833 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5834 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5835 structure, field no longer exists.
5837 2003-06-03 J. Brobecker <brobecker@gnat.com>
5839 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5840 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5842 2003-06-03 J. Brobecker <brobecker@gnat.com>
5844 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5845 references to struct frame_info fields by calls to the equivalent
5846 accessors. Necessary now that frame_info is opaque.
5848 2003-06-03 J. Brobecker <brobecker@gnat.com>
5850 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5851 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5852 structure, field no longer exists.
5854 2003-06-03 Theodore A. Roth <troth@openavr.org>
5856 * remote.c (init_remote_state): Compute sizeof_g_packet by
5857 accumulation of the size of all registers instead of blindly using
5858 DEPRECATED_REGISTER_BYTES.
5860 2003-06-03 Michael Snyder <msnyder@redhat.com>
5862 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5863 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5866 2003-06-03 J. Brobecker <brobecker@gnat.com>
5868 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5869 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5871 2003-06-03 Andrew Cagney <cagney@redhat.com>
5873 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5874 (sparc_convert_to_raw): Delete function.
5875 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5876 register_convert_to_virtual.
5878 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5880 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5881 layer if not dealing with a statically-linked threaded program.
5883 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5885 * solib.c (solib_open): Update comment to reflect actual search order.
5887 2003-06-03 Andrew Cagney <cagney@redhat.com>
5889 * frame.c (get_frame_memory_signed): New function.
5890 (get_frame_memory, get_frame_memory_unsigned): New function.
5891 (get_frame_arch): New function.
5892 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5893 (get_frame_memory, get_frame_unsigned_memory): Declare.
5894 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5895 get_frame_memory_unsigned and get_frame_arch.
5896 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5898 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5900 * MAINTAINERS (write after approval): Add myself.
5902 2003-06-03 Jim Blandy <jimb@redhat.com>
5904 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5905 elements of gregset_t are 64 bits each, but access registers
5906 are still 32 bits, so they're packed two per gregset_t
5907 element. Unpack/pack them properly.
5909 2003-06-02 David Carlton <carlton@bactrian.org>
5911 * linespec.c (find_methods): Break out code into
5912 add_matching_methods and add_constructors.
5913 (add_matching_methods): New.
5914 (add_constructors): Ditto.
5916 2003-06-02 Andrew Cagney <cagney@redhat.com>
5918 * sparc-tdep.c (sparc_print_registers): Delete call to
5919 REGISTER_CONVERTIBLE.
5920 (sparc_gdbarch_init): Do not set register_convertible.
5921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5922 * frv-tdep.c (frv_gdbarch_init): Ditto.
5923 * cris-tdep.c (cris_gdbarch_init): Ditto.
5925 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5927 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5928 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5929 (syms_from_objfile): Ditto.
5931 2003-06-03 Andreas Schwab <schwab@suse.de>
5933 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5934 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5936 2003-06-02 Richard Henderson <rth@redhat.com>
5938 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5939 a member of all_reggroup.
5941 2003-06-02 Richard Henderson <rth@redhat.com>
5943 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5944 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5945 (alpha_lds, alpha_sts): New.
5946 (alpha_convert_register_p): Change from _register_convertible.
5947 (alpha_register_to_value): Change from _convert_to_virtual;
5948 restructure and fail for type sizes other than 4 or 8.
5949 (alpha_value_to_register): Similarly.
5950 (alpha_extract_return_value): Use alpha_sts.
5951 (alpha_store_return_value): Use alpha_lds.
5952 (alpha_gdbarch_init): Update hooks.
5954 2003-06-02 Richard Henderson <rth@redhat.com>
5956 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5958 (alpha_sigtramp_register_address): Likewise.
5960 2003-06-02 Richard Henderson <rth@redhat.com>
5962 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5963 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5964 * alpha-tdep.h: Declare them.
5966 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5967 Remove zerobuf. Don't error on UNIQUE.
5968 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
5969 (ALPHA_REGSET_UNIQUE): Provide default.
5970 (supply_gregset): Use alpha_supply_int_regs.
5971 (fill_gregset): Use alpha_fill_int_regs.
5972 (supply_fpregset): Use alpha_supply_fp_regs.
5973 (fill_fpregset): Use alpha_fill_fp_regs.
5974 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
5975 (alphabsd_supply_reg): Use alpha_supply_int_regs.
5976 (alphabsd_fill_reg): Use alpha_fill_int_regs.
5977 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
5978 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
5979 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
5981 2003-06-02 Richard Henderson <rth@redhat.com>
5983 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
5985 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
5986 (alpha_store_return_value): Likewise.
5988 2003-06-02 David Carlton <carlton@math.stanford.edu>
5990 * block.c (contained_in): Add 'const' to arguments.
5991 (block_function): Ditto.
5992 * block.h: Update declarations for block_function and
5995 2003-06-02 David Carlton <carlton@math.stanford.edu>
5997 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
5998 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
5999 * p-valprint.c (pascal_val_print): Ditto.
6000 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6002 2003-06-02 Richard Henderson <rth@redhat.com>
6004 * alpha-tdep.c (alpha_push_dummy_call): Use
6005 builtin_type_ieee_double_little instead of builtin_type_double.
6007 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6008 sign-extension of 32-bit values.
6009 (alpha_store_return_value): Similarly.
6011 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6012 (alpha_extract_return_value): Likewise.
6013 (alpha_store_return_value): Likewise.
6015 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6016 (alpha_store_return_value): Error on IEEE Quad floats.
6018 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6019 (alpha_extract_struct_value_address): Likewise.
6020 (alpha_store_return_value): Likewise.
6021 (alpha_store_struct_return): Remove.
6022 (alpha_gdbarch_init): Update hook registration to match.
6024 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6025 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6026 macros where appropriate.
6027 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6028 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6030 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6031 for SP, GP; void_func_ptr for PC; non-language-specific types
6033 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6035 2003-06-02 Richard Henderson <rth@redhat.com>
6037 * top.h (lim_at_start): Declare.
6038 * main.c (captured_main): Set it.
6039 * top.c (lim_at_start): Define.
6040 (command_loop): Use it instead of &environ.
6041 * event-top.c (command_handler): Likewise.
6043 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6045 * mipsnbsd-tdep.c: Update copyright years.
6046 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6048 2003-06-01 Richard Henderson <rth@redhat.com>
6050 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6051 (alpha-linux-tdep.o): Update dependencies.
6052 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6053 * alpha-mdebug-tdep.c: Remove unneeded includes.
6055 2003-06-01 Richard Henderson <rth@redhat.com>
6057 * alpha-tdep.c (alpha_register_reggroup_p): New.
6058 (alpha_gdbarch_init): Register it.
6060 2003-06-02 Andrew Cagney <cagney@redhat.com>
6062 * dwarfread.c: Eliminate "register"
6063 (decode_die_type): Eliminate assignment within "if".
6064 (struct_type, decode_array_element_type): Ditto.
6065 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6066 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6067 (decode_modified_type, completedieinfo): Ditto.
6068 * block.c: Eliminate "register".
6069 (blockvector_for_pc_sect): Eliminate assignment within "if".
6070 * cp-support.h (struct symbol): Opaque declaration.
6071 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6073 2003-06-01 Richard Henderson <rth@redhat.com>
6075 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6076 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6078 2003-06-01 Adam Fedor <fedor@gnu.org>
6080 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6081 * gdbarch.[ch]: Regenerate.
6082 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6083 (hppa_gdbarch_init): Set it in the gdbarch vector.
6084 * i386-tdep.c (i386_fetch_pointer_argument): New
6085 (i386_gdbarch_init): Set it into gdbarch.
6086 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6087 (rs6000_gdbarch_init): Set it in gdbarch.
6088 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6089 (sparc_gdbarch_init): Set it in gdbarch.
6091 2003-06-01 Andrew Cagney <cagney@redhat.com>
6093 * defs.h (extract_address): Delete declaration.
6094 * findvar.c (extract_address): Delete function.
6095 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6096 extract_address with the inline equivalent,
6097 extract_unsigned_integer.
6098 (xstormy16_extract_struct_value_address): Ditto.
6099 (xstormy16_pointer_to_address): Ditto.
6100 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6101 * v850-tdep.c (v850_push_arguments): Ditto.
6102 (v850_extract_return_value): Ditto.
6103 (v850_extract_struct_value_address): Ditto.
6104 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6105 (sparcnbsd_get_longjmp_target_64): Ditto.
6106 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6107 (get_longjmp_target): Ditto.
6108 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6109 (sh64_extract_struct_value_address): Ditto.
6110 (sh_push_arguments): Ditto.
6111 (sh64_push_arguments): Ditto.
6112 * remote-vxsparc.c (vx_read_register): Ditto.
6113 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6114 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6115 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6116 * mipsv4-nat.c (get_longjmp_target): Ditto.
6117 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6118 * mips-nat.c (get_longjmp_target): Ditto.
6119 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6120 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6121 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6122 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6123 * irix5-nat.c (get_longjmp_target): Ditto.
6124 * irix4-nat.c (get_longjmp_target): Ditto.
6125 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6126 (ia64_push_arguments): Ditto.
6127 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6128 * h8300-tdep.c (h8300_push_arguments): Ditto.
6129 (h8300_store_return_value): Ditto.
6130 (h8300_extract_struct_value_address): Ditto.
6131 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6132 (frv_push_arguments): Ditto.
6133 * avr-tdep.c (avr_pointer_to_address): Ditto.
6134 (avr_push_arguments): Ditto.
6135 * arm-tdep.c (arm_push_dummy_call): Ditto.
6136 (arm_get_longjmp_target): Ditto.
6137 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6138 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6139 (alpha_get_longjmp_target): Ditto.
6141 * solib-irix.c (extract_mips_address): Inline extract_address,
6142 replacing it with extract_signed_integer.
6143 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6144 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6145 (first_link_map_member, open_symbol_file_object): Ditto.
6146 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6147 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6148 (LM_NEXT, LM_NAME): Ditto.
6150 2003-06-01 Richard Henderson <rth@redhat.com>
6152 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6153 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6154 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6155 (alpha_cannot_store_register): Likewise.
6156 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6157 * alpha-nat.c (supply_gregset): Likewise.
6158 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6160 2003-06-01 Andrew Cagney <cagney@redhat.com>
6162 * infcall.c (call_function_by_hand): Update comment on
6163 DEPRECATED_DUMMY_WRITE_SP.
6165 * mips-tdep.c (mips_gdbarch_init): Do not set
6166 deprecated_dummy_write_sp.
6167 (mips_eabi_push_dummy_call): Set the SP register.
6168 (mips_o64_push_dummy_call): Set the SP register.
6169 (mips_o32_push_dummy_call): Set the SP register.
6170 (mips_n32n64_push_dummy_call): Set the SP register.
6172 2003-06-01 Richard Henderson <rth@redhat.com>
6174 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6175 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6176 (supply_gregset): Likewise.
6177 * alpha-tdep.c (alpha_store_return_value): Likewise.
6178 (alpha_get_longjmp_target): Likewise.
6179 (alpha_register_name): Constify array.
6180 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6181 deprecated_register_size, deprecated_register_bytes,
6182 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6183 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6184 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6186 2003-06-01 Richard Henderson <rth@redhat.com>
6188 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6189 from arg_reg_buffer to regcache to avoid double conversion.
6191 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6193 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6195 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6196 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6198 2003-06-01 Richard Henderson <rth@redhat.com>
6200 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6201 (decode_frame_entry): Set it. Skip FDE augmentation.
6203 2003-06-01 Richard Henderson <rth@redhat.com>
6205 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6206 not overlapping PC_REGNUM.
6208 2003-06-01 Richard Henderson <rth@redhat.com>
6210 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6211 alpha_push_arguments. Don't dump argument register data to
6212 the target stack. Fix float and 128-bit long double semantics.
6213 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6214 (alpha_fix_call_dummy): Remove.
6215 (alpha_call_dummy_words): Remove.
6216 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6218 2003-06-01 Richard Henderson <rth@redhat.com>
6220 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6222 2003-06-01 Andrew Cagney <cagney@redhat.com>
6224 * mips-tdep.c (is_mips16_addr): New function.
6225 (make_mips16_addr, unmake_mips16_addr): New functions.
6226 (pc_is_mips16, mips_fetch_instruction): Use.
6227 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6228 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6229 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6230 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6232 * config/mips/tm-mips.h: Update copyright.
6233 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6234 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6235 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6236 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6237 (TM_PRINT_INSN_MACH): Delete.
6238 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6240 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6241 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6242 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6243 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6244 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6245 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6246 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6247 mips*-*-riscos* and mips*-*-sysv* onto mips.
6248 * config/mips/mips64.mt: New file.
6249 * config/mips/mips.mt: New file.
6250 * config/mips/littlemips.mt: Delete file.
6251 * config/mips/decstation.mt: Delete file.
6252 * config/mips/vr4300el.mt: Delete file.
6253 * config/mips/vr5000el.mt: Delete file.
6254 * config/mips/vr5000.mt: Delete file.
6255 * config/mips/vr4100.mt: Delete file.
6256 * config/mips/vr4xxxel.mt: Delete file.
6257 * config/mips/vr4300.mt: Delete file.
6258 * config/mips/vr4xxx.mt: Delete file.
6259 * config/mips/bigmips.mt: Delete file.
6260 * config/mips/bigmips64.mt: Delete file.
6261 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6262 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6263 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6264 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6265 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6267 * config/mips/tm-irix3.h: Ditto.
6268 * config/mips/tm-mipsv4.h: Ditto.
6269 * config/mips/tm-embed.h: Ditto.
6270 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6272 * config/mips/tm-vr5000el.h: Delete file.
6273 * config/mips/tm-tx39l.h: Delete file.
6274 * config/mips/tm-vr4300el.h: Delete file.
6275 * config/mips/tm-vr4xxxel.h: Delete file.
6276 * config/mips/tm-vr4300.h: Delete file.
6277 * config/mips/tm-vr4100.h: Delete file.
6278 * config/mips/tm-vr4xxx.h: Delete file.
6279 * config/mips/tm-vr5000.h: Delete file.
6280 * config/mips/tm-embedl64.h: Delete file.
6281 * config/mips/tm-embedl.h: Delete file.
6282 * config/mips/tm-embed64.h: Delete file.
6283 * config/mips/tm-bigmips64.h: Delete file.
6284 * config/mips/tm-bigmips.h: Delete file.
6286 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6289 * shnbsd-nat.c: Include "sh-tdep.h".
6291 From Richard Henderson <rth@redhat.com>:
6292 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6294 2003-05-31 Andrew Cagney <cagney@redhat.com>
6296 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6297 forward declaration.
6298 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6299 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6300 (mips_find_saved_regs): Use set_reg_offset.
6301 (mips_frame_init_saved_regs): Delete function.
6302 (mips_pop_frame): Call mips_find_saved_regs instead of
6303 DEPRECATED_FRAME_INIT_SAVED_REGS.
6305 2003-05-31 Andrew Cagney <cagney@redhat.com>
6307 * mips-tdep.c (mips_gdbarch_init): Do not set
6308 deprecated_max_register_raw_size, register_virtual_size, and
6309 deprecated_max_register_virtual_size.
6311 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6313 * i386-tdep.c: Include "dwarf2-frame.h".
6314 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6315 * Makefile.in (i386-tdep.o): Update dependencies.
6317 * dwarf2-frame.c, dwarf2-frame.h: New files.
6318 * Makefile.in (SFILES): Add dwarf2-frame.c.
6319 (dwarf2_frame_h): Define.
6320 (COMMON_OBS): Add dwarf2-frame.o.
6321 (dwarf2-frame.o): Add dependencies.
6323 2003-05-31 Andreas Jaeger <aj@suse.de>
6325 * x86-64-linux-nat.c: Fix comment.
6327 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6329 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6332 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6333 have a sigcontext_addr handler.
6334 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6335 sigcontext_addr handler.
6337 2003-05-31 Andrew Cagney <cagney@redhat.com>
6339 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6340 (print_fp_register_row): Replace do_fp_register_row.
6341 (mips_print_fp_register): Add "file" and "frame" parameters.
6342 (mips_print_register): Add "file" and "frame" parameters.
6343 (mips_print_registers_info): Replace mips_do_registers_info.
6344 (mips_gdbarch_init): Set print_registers_info instead of
6345 deprecated_do_registers_info.
6346 (mips_read_fp_register_single): Add "frame" parameter.
6347 (mips_read_fp_register_double): Add "frame" parameter.
6349 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6351 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6352 Fixes a bug where GDB would print the wrong register names for
6353 targets without SSE.
6355 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6356 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6359 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6360 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6361 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6364 From Michal Ludvig <mludvig@suse.cz>:
6365 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6367 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6368 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6369 I386_ST0_REGNUM): Move here from...
6370 * i386-tdep.c: ... here.
6371 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6372 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6373 registers if possible.
6374 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6375 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6377 (i386bsd_sc_reg_offset): New variable.
6378 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6379 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6381 (i386fbsd_sc_reg_offset): New variable.
6382 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6384 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6386 (i386fbsd4_sc_reg_offset): New variable.
6387 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6388 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6390 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6391 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6392 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6394 (i386nbsd_sc_reg_offset): New variable.
6395 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6396 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6398 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6400 (i386obsd_sc_reg_offset): New variable.
6401 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6402 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6404 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6405 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6406 for frame pointer offset in `struct sigcontext'.
6408 2003-05-31 Andrew Cagney <cagney@redhat.com>
6410 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6411 architecture methods call_dummy_words, sizeof_call_dummy_words,
6412 push_return_address, store_struct_return, and fix_call_dummy. Set
6413 push_dummy_call instead of deprecated_push_arguments.
6414 (mips_store_struct_return): Delete function.
6415 (mips_fix_call_dummy): Delete function.
6416 (mips_push_return_address): Delete function.
6417 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6418 RA_REGNUM and T9_REGNUM.
6419 (mips_n32n64_push_dummy_call): Ditto for
6420 mips_n32n64_push_arguments.
6421 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6422 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6424 2003-05-31 Andrew Cagney <cagney@redhat.com>
6426 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6427 "dummy_addr" to "bp_addr".
6428 * infcall.c (call_function_by_hand): Pass "funaddr" to
6429 gdbarch_push_dummy_call.
6430 * gdbarch.h, gdbarch.c: Re-generate.
6431 * i386-tdep.c (i386_push_dummy_call): Update.
6432 * arm-tdep.c (arm_push_dummy_call): Update.
6433 * d10v-tdep.c (d10v_push_dummy_call): Update.
6435 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6437 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6438 variable declarations.
6439 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6440 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6441 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6442 x86_64_init_frame_pc, x86_64_init_frame_pc,
6443 x86_64_function_has_prologue): Remove prototypes.
6444 (X86_64_NUM_GREGS): New define.
6445 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6446 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6447 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6448 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6449 XMM1_REGNUM): Remove defines.
6450 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6451 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6452 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6453 X86_64_XMM1_REGNUM): New defines.
6454 (struct x86_64_register_info): Renamed from `struct
6455 register_info'. Remove `size' member.
6456 (x86_64_register_info_table): Remove variable.
6457 (x86_64_register_info): New variable.
6458 (X86_64_NUM_REGS): New define.
6459 (X86_64_NUM_GREGS): Remove define.
6460 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6461 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6463 (x86_54_dwarf2_reg_to_regnum): Remove function.
6464 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6465 (x86_64_dwarf_reg_to_regnum): New function.
6466 (x86_64_register_name): Rewrite.
6467 (x86_64_register_raw_size): Remove function.
6468 (x86_64_register_byte_table): Remove variable.
6469 (x86_64_register_byte): Remove function.
6470 (x86_64_register_virtual_type): Remove function.
6471 (x86_64_register_type): New function.
6472 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6473 x86_64_register_convert_to_raw): Remove functions.
6474 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6475 (x86_64_use_struct_convention): Make static. Adjust for renamed
6477 (x86_64_frame_init_saved_regs): Remove function.
6478 (x86_64_push_arguments): Make static. Change to accept a regcache
6480 (x86_64_store_return_value, x86_64_extract_return_value): Make
6481 static. Rewrite based on i386 counterparts.
6482 (x86_64_push_dummy_call): New function.
6483 (X86_64_NUM_SAVED_REGS): New define.
6484 (x86_64_register_number): Remove function.
6485 (x86_64_store_struct_return): Remove function.
6486 (x86_64_frameless_function_invocation,
6487 x86_64_function_has_prologue): Remove functions.
6488 (PROLOG_BUFSIZE): Remove define.
6489 (struct x86_64_frame_cache): New structure.
6490 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6491 x86_64_frame_cache, x86_64_frame_this_id,
6492 x86_64_frame_prev_register, x86_64_frame_p,
6493 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6494 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6496 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6498 (x86_64_skip_prologue): Rewrite in terms of
6499 x86_64_analyze_prologue.
6500 (x86_64_frame_base_address): New function.
6501 (x86_64_frame_base): New variable.
6502 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6503 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6504 set deprecated_fp_regnum, deprecated_register_size,
6505 deprecated_register_bytes, register_raw_size, register_byte,
6506 register_virtual_type, register_convertiable,
6507 register_convert_to_virtual, convert_to_raw,
6508 deprecated_get_saved_register, deprecated_target_read_fp,
6509 deprecated_push_arguments, deprecated_push_return_address,
6510 deprecated_pop_frame, deprecated_store_struct_return,
6511 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6512 frameless_function_invocation, deprecated_frame_saved_pc,
6513 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6514 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6515 deprecated_init_frame_pc and virtual_frame_pointer. Call
6516 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6517 and x86_64_frame_p. Call frame_base_set_default to register
6519 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6520 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6521 (_initialize_x86_64_tdep): Remove function.
6522 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6523 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6524 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6526 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6527 (x86_64_linux_sigcontext_addr): Rewrite.
6528 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6529 x86_64_linux_frame_saved_pc): Remove functions.
6530 (x86_64_linux_pc_in_sigtramp): Renamed from
6531 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6533 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6535 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6536 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6537 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6538 (x86_64_regmap): Rename to regmap.
6539 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6541 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6543 (x86_64_fxsave_offset): Remove function.
6544 (supply_fpregset): Simply call x86_64_supply_fxsave.
6545 (fill_fpregset): Simply call x86_64_fill_fxsave.
6546 (fetch_inferior_registers, store_inferior_registers): Avoid
6547 asignment in if-statement.
6548 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6549 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6550 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6551 (fetch_core_registers): Remove function.
6552 (linux_elf_core_fns): Remove.
6553 (offsetoff): Don't define.
6554 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6555 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6556 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6558 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6559 protection against multiple includes instead of NM_X86_64_h. Add
6560 various comments. Include "config/nm-linux.h". Don't include
6562 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6563 GET_THREAD_SIGNALS): Remove defines.
6564 (x86_64_register_u_addr, kernel_u_size,
6565 lin_thread_get_thread_signals): Remove prototypes.
6566 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6567 [HAVE_LINK_H]: Don't include "solib.h".
6568 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6569 * config/i386/tm-x86-64linux.h: Fix comments.
6570 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6571 x86-64-tdep.o): Update dependencies.
6573 2003-05-30 Andrew Cagney <cagney@redhat.com>
6575 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6576 Change parameter type to a "struct regcache *".
6578 * gdbarch.sh: Regardless of the multi-arch level, always define
6579 the macro when not already defined.
6580 * gdbarch.h, gdbarch.c: Re-generate.
6582 2003-05-30 Richard Henderson <rth@redhat.com>
6584 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6585 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6586 (alpha_mdebug_frame_this_id): Likewise.
6587 (alpha_mdebug_frame_prev_register): Likewise.
6588 (alpha_mdebug_frame_base_address): Likewise.
6589 (alpha_mdebug_frame_locals_address): Likewise.
6590 (alpha_mdebug_frame_args_address): Likewise.
6591 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6592 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6593 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6595 (alpha_heuristic_frame_this_id): Make static.
6596 (alpha_heuristic_frame_prev_register): Likewise.
6597 (alpha_heuristic_frame_base_address): Likewise.
6598 * alpha-tdep.h: Update.
6600 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6602 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6603 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6605 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6606 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6607 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6608 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6609 I386_ST0_REGNUM): New defines.
6610 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6611 codestream_get): Remove define.
6612 (codestream_next_addr, condestream_addr, condestream_buf,
6613 codestream_off, codestream_cnt): Remove variables.
6614 (codestream_fill, codestream_seek, codestream_read): Remove
6616 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6618 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6619 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6620 i386_frame_saved_pc, i386_saved_pc_after_call,
6621 i386_frame_num_args, i386_frame_init_saved_regs,
6622 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6623 i386_push_arguments): Remove functions.
6624 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6625 functionality. Use i386_analyze_prologue instead of
6626 i386_get_frame_setup.
6627 (I386_NUM_SAVED_REGS): New define.
6628 (struct i386_frame_cache): New structure.
6629 (i386_alloc_frame_cache, i386_analyze_struct_return,
6630 i386_skip_probe, i386_analyze_frame_setup,
6631 i386_analyze_register_saves, i386_analyze_prologue,
6632 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6633 i386_frame_prev_register, i386_sigtramp_frame_cache,
6634 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6635 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6636 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6638 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6640 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6641 I386_EAX_REGNUM and I386_EDX_REGNUM.
6642 (i386_extract_return_value, i386_store_return_value): Use
6643 I386_ST0_REGNUM where appropriate.
6644 (i386_extract_struct_value_address): Rewrite to use extract_address.
6645 (i386_svr4_pc_in_sigtramp): Add comment.
6646 (i386_svr4_sigcontext_addr): Rewrite.
6647 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6649 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6650 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6651 of new defines. Set push_dummy_call, don't set
6652 deprecated_push_arguments, deprecated_push_return_address,
6653 deprecated_pop_frame. Don't set parm_boundary. Don't set
6654 deprecated_frame_chain, deprecated_frame_saved_pc,
6655 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6656 save_dummy_frame_tos, unwind_pc. Call
6657 frame_unwind_append_predicate and frame_base_set_default. Don't
6658 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6659 Don't set frameless_function_invocation. Don't set
6660 deprecated_register_bytes, deprecated_register_size,
6661 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6662 * i386-linux-tdep.c: Fix formatting in some comments.
6663 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6664 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6665 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6666 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6667 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6668 redundant parentheses.
6669 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6670 (i386_linux_sigcontext_addr): Use it. Rewrite.
6671 (find_minsym_and_objfile): Change name of second argument.
6672 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6673 changed. Use frame_pc_unwind instead of
6674 DEPRECATED_SAVED_PC_AFTER_CALL.
6675 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6676 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6677 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6679 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6681 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6682 (_initialize_i386_cygwin_tdep): New prototype.
6683 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6684 deprecated_frame_chain_valid.
6685 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6686 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6687 Rely on the SVR4 defaults.
6688 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6689 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6691 2003-05-30 Andrew Cagney <cagney@redhat.com>
6693 * infcall.c (call_function_by_hand): Always call
6694 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6696 2003-05-30 Richard Henderson <rth@redhat.com>
6698 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6701 2003-05-29 Jim Blandy <jimb@redhat.com>
6703 Use gdbarch methods for solib stuff on PowerPC Linux.
6704 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6705 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6707 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6708 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6709 giving the same effect as the #definitions above.
6711 2003-05-29 Adam Fedor <fedor@gnu.org>
6713 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6714 (find_implementation_from_class): Replace it with the standard
6715 case i.e. do nothing.
6717 2003-05-29 Richard Henderson <rth@redhat.com>
6719 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6720 (alpha_linux_sigtramp_offset): Use it. Make static.
6721 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6722 update for new frame model.
6723 * alpha-mdebug-tdep.c: New file.
6724 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6725 (alpha_osf1_init_abi): Install it.
6726 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6727 (linked_proc_desc_table): Remove.
6728 (alpha_frame_past_sigtramp_frame): Remove.
6729 (alpha_dynamic_sigtramp_offset): Remove.
6730 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6731 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6732 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6733 (push_sigtramp_desc): Remove.
6734 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6735 (alpha_cannot_store_register): Likewise.
6736 (alpha_sigcontext_addr): Remove.
6737 (alpha_find_saved_regs): Remove.
6738 (alpha_frame_init_saved_regs): Remove.
6739 (alpha_init_frame_pc_first): Remove.
6740 (read_next_frame_reg): Remove.
6741 (alpha_frame_saved_pc): Remove.
6742 (alpha_saved_pc_after_call): Remove.
6743 (temp_proc_desc, temp_saved_regs): Remove.
6744 (alpha_about_to_return): Remove.
6745 (cached_proc_desc): Remove.
6746 (alpha_frame_chain): Remove.
6747 (alpha_print_extra_frame_info): Remove.
6748 (alpha_init_extra_frame_info): Remove.
6749 (alpha_frame_locals_address): Remove.
6750 (alpha_frame_args_address): Remove.
6751 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6752 (alpha_push_dummy_frame): Remove.
6753 (alpha_pop_frame): Remove.
6754 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6755 (alpha_read_insn): New.
6756 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6757 for different insn encodings.
6758 (alpha_in_lenient_prologue): Remove.
6759 (struct alpha_sigtramp_unwind_cache): New.
6760 (alpha_sigtramp_frame_unwind_cache): New.
6761 (alpha_sigtramp_register_address): New.
6762 (alpha_sigtramp_frame_this_id): New.
6763 (alpha_sigtramp_frame_prev_register): New.
6764 (alpha_sigtramp_frame_unwind): New.
6765 (alpha_sigtramp_frame_p): New.
6766 (struct alpha_heuristic_unwind_cache): New.
6767 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6768 don't count nop insns that occur between functions.
6769 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6770 heuristic_proc_desc, but without the mdebug wrapping.
6771 (alpha_heuristic_frame_this_id): New.
6772 (alpha_heuristic_frame_prev_register): New.
6773 (alpha_heuristic_frame_unwind): New.
6774 (alpha_heuristic_frame_p): New.
6775 (alpha_heuristic_frame_base_address): New.
6776 (alpha_heuristic_frame_base): New.
6777 (alpha_unwind_dummy_id): New.
6778 (alpha_unwind_pc): New.
6779 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6780 frame related deprecated initializations; install replacements.
6781 (alpha_dump_tdep): Remove.
6782 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6783 (alpha_read_insn, alpha_after_prologue,
6784 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6785 alpha_heuristic_frame_prev_register,
6786 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6787 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6788 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6789 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6791 2003-05-29 Andrew Cagney <cagney@redhat.com>
6793 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6794 dependant on the availability of ASSERT_FUNCTION.
6795 (ASSERT_FUNCTION): Do not define when there is no function name.
6797 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6799 From Jimi X <jimix@watson.ibm.com>:
6800 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6802 2003-05-28 Jim Blandy <jimb@redhat.com>
6804 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6805 argument to ptrace to int; the system headers should give it the
6806 right type, and pointers don't fit in ints on powerpc64-*-*.
6808 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6810 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6813 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6815 * stabsread.c (dbx_lookup_type): Make static.
6817 (add_undefined_type): Ditto.
6818 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6821 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6823 * hpread.c (hpread_has_name): Make static.
6824 (hpread_psymtab_to_symtab): Ditto.
6825 (file_exists): Ditto.
6826 (hpread_call_pxdb): Ditto.
6827 (hpread_pxdb_needed): Ditto.
6828 (hpread_quick_traverse): Ditto.
6829 (hpread_get_header): Ditto.
6830 (hpread_get_lntt): Ditto.
6831 (hpread_get_slt): Ditto.
6834 2003-05-25 Andreas Schwab <schwab@suse.de>
6836 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6837 stack_align and deprecated_extra_stack_alignment_needed.
6838 (m68k_stack_align): Delete.
6840 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6841 (m68k_register_virtual_size): Likewise.
6842 (altos_skip_prologue): Remove obsolete function.
6843 (isi_frame_num_args): Likewise.
6844 (news_frame_num_args): Likewise.
6845 (m68k_fix_call_dummy): Make static.
6846 (m68k_push_dummy_frame): Likewise.
6847 (m68k_pop_frame): Likewise.
6848 (m68k_skip_prologue): Likewise.
6849 (m68k_frame_init_saved_regs): Likewise.
6850 (m68k_saved_pc_after_call): Likewise.
6851 (m68k_get_longjmp_target): Make multi-arch.
6852 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6853 structure. Register m68k_get_longjmp_target if enabled.
6854 * m68k-tdep.h (struct gdbarch_tdep): Define.
6855 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6857 * Makefile.in (config.status): Also depend on configure.tgt
6859 (m68klinux-tdep.o): Update dependencies.
6860 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6861 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6862 (M68K_LINUX_JB_PC): Define.
6863 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6864 and take additional parameter.
6865 (m68k_linux_sigtramp_saved_pc): Update.
6866 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6867 m68k_linux_pc_in_sigtramp, in_plt_section,
6868 find_solib_trampoline_target.
6869 * config/m68k/tm-linux.h: Don't include any tm headers.
6870 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6871 (JB_ELEMENT_SIZE): Likewise.
6873 (GET_LONGJMP_TARGET): Likewise.
6874 (IN_SIGTRAMP): Likewise.
6875 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6877 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6879 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6880 (sparc32_push_arguments): Re-implement by calling
6881 sparc32_do_push_arguments.
6883 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6885 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6886 SPARC_O1_REGNUM): New defines.
6887 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6888 (sparc32_store_return_value): New function.
6889 (sparc_extract_struct_value_address): Rewrite to operate on a
6891 (sparc_gdbarch_init): Don't set
6892 deprecated_extract_struct_value_address. Set
6893 extract_struct_value_address instead. Don't set
6894 deprecated_extract_return_value and deprecated_store_return_value
6895 for 32-bit targets. Set extract_return_value and
6896 store_return_value instead.
6897 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6898 DEPRECTAED_EXTRACT_RETURN_VALUE,
6899 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6900 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6901 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6902 (sparc_store_return_value): Remove prototype.
6903 (sparc32_store_return_value): New prototype.
6904 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6907 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6909 * sparcnbsd-tdep.c: Include "gdb_string.h".
6911 2003-05-23 Andrew Cagney <cagney@redhat.com>
6913 * p-valprint.c (pascal_val_print): Replace extract_address with
6914 the inline equivalent extract_unsigned_integer.
6915 * jv-valprint.c (java_value_print): Ditto.
6916 * ada-valprint.c (ada_val_print_1): Ditto.
6917 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6919 2003-05-23 Theodore A. Roth <troth@openavr.org>
6921 * blockframe.c (frameless_look_for_prologue): Remove unused
6922 after_prologue variable.
6924 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6926 * blockframe.c (get_pc_function_start): Rewrite to avoid
6927 asignments in if-statements.
6929 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6931 Committed by Elena Zannoni <ezannoni@redhat.com>.
6932 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6933 files, don't relocate absolute symbols (and do use mst_abs).
6935 2003-05-23 Andrew Cagney <cagney@redhat.com>
6937 * objc-lang.c: Include "gdb_assert.h".
6938 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6939 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6940 (gdb_check, gdb_check_fatal): Delete functions.
6941 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6943 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6944 * Makefile.in (objc-lang.o): Update dependencies.
6946 2003-05-22 Ian Lance Taylor <ian@airs.com>
6948 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6949 with fprintf_filtered, not fprintf_unfiltered.
6951 2003-05-22 Andrew Cagney <cagney@redhat.com>
6953 * stack.c (frame_info): Inline extract_address, replacing it with
6954 extract_unsigned_integer.
6955 * findvar.c (unsigned_pointer_to_address): Ditto.
6956 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6957 * dwarf2expr.c (dwarf2_read_address): Ditto.
6958 * frame.c (frame_pc_unwind): Update comment.
6959 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6961 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6963 * infptrace.c (detach): Call print_sys_errmsg rather than
6964 perror_with_name to issue warning message when errno is non-zero
6965 after calling ptrace detach.
6967 2003-05-21 J. Brobecker <brobecker@gnat.com>
6969 * config/pa/tm-hppa.h: Delete some unused macros. Move some
6970 macro definitions from here...
6971 * hppa-tdep.c: ...to there.
6973 2003-05-20 Kevin Buettner <kevinb@redhat.com>
6975 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
6976 register_ptrace_addr(). Fix all callers.
6978 2003-05-21 Andreas Schwab <schwab@suse.de>
6980 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
6982 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
6984 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
6985 (_initialize_m68k_linux_tdep): New function.
6986 (m68k_linux_frame_saved_pc): Make static.
6987 (m68k_linux_extract_return_value): Likewise.
6988 (m68k_linux_store_return_value): Likewise.
6989 (m68k_linux_extract_struct_value_address): Likewise.
6990 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
6992 (DEPRECATED_STORE_RETURN_VALUE): Remove.
6993 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6994 (DEPRECATED_FRAME_SAVED_PC): Remove.
6996 2003-05-20 Kris Warkentin <kewarken@qnx.com>
6998 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
6999 regset numbering rather than our own.
7001 2003-05-19 David Carlton <carlton@bactrian.org>
7003 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7005 2003-05-19 David Carlton <carlton@bactrian.org>
7007 Partial fix for PR c++/827.
7008 * cp-support.h: Include symtab.h.
7009 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7010 * cp-namespace.c: Update contributors.
7011 (cp_lookup_symbol_nonlocal): New.
7012 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7013 (lookup_symbol_file): Ditto.
7014 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7015 * block.h: Declare block_scope, block_using, block_global_block.
7016 * block.c (block_scope): New.
7017 (block_using, block_global_block): Ditto.
7018 * Makefile.in (cp_support_h): Depend on symtab_h.
7019 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7021 2003-05-19 David Carlton <carlton@bactrian.org>
7023 * language.h (struct language_defn): Add 'la_value_of_this'
7024 and 'la_lookup_symbol_nonlocal' members.
7025 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7026 lookup_symbol_static, lookup_symbol_global,
7027 lookup_symbol_aux_block.
7028 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7029 if we should search fields of this and how to do static/global
7031 (lookup_symbol_aux_block): Make extern.
7032 (basic_lookup_symbol_nonlocal): New.
7033 (lookup_symbol_static, lookup_symbol_global): Ditto.
7034 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7035 'la_lookup_symbol_nonlocal' members.
7036 * c-lang.c (c_language_defn, cplus_language_defn)
7037 (asm_language_defn, minimal_language_defn): Ditto.
7038 * jv-lang.c (java_language_defn): Ditto.
7039 * language.c (unknown_language_defn, auto_language_defn)
7040 (local_language_defn): Ditto.
7041 * m2-lang.c (m2_language_defn): Ditto.
7042 * objc-lang.c (objc_language_defn): Ditto.
7043 * scm-lang.c (scm_language_defn): Ditto.
7044 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7045 * p-lang.c (pascal_language_defn): Ditto for both.
7046 * Makefile.in (f-lang.o): Depend on value_h.
7049 2003-05-19 David Carlton <carlton@bactrian.org>
7051 * block.h: Declare block_static_block.
7052 * block.c (block_static_block): New.
7053 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7054 lookup_symbol_aux_local, calling block_static_block instead.
7055 (lookup_symbol_aux_local): Delete 'static_block' argument.
7057 2003-05-19 David Carlton <carlton@bactrian.org>
7059 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7061 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7063 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7064 register numbers mapping.
7066 2003-05-18 Adam Fedor <fedor@gnu.org>
7068 * symtab.c (completion_list_objc_symbol): New function.
7069 (make_symbol_completion_list): Use it to add ObjC symbols
7070 when looking though the list.
7071 (language_search_unquoted_string): New function.
7072 (make_file_symbol_completion_list): Use it.
7074 2003-05-18 Andreas Schwab <schwab@suse.de>
7076 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7078 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7079 as m68k_linux_extract_return_value.
7080 (DEPRECATED_STORE_RETURN_VALUE): Define as
7081 m68k_linux_store_return_value.
7082 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7083 m68k_linux_extract_struct_value_address.
7084 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7085 get_next_frame, get_frame_base, get_frame_pc.
7086 (m68k_linux_frame_saved_pc): Use get_frame_base.
7087 (m68k_linux_extract_return_value): New function.
7088 (m68k_linux_store_return_value): New function.
7089 (m68k_linux_extract_struct_value_address): New function.
7090 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7092 * c-exp.y (typebase): Remove duplicate occurence of
7093 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7094 of lookup_signed_typename.
7096 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7098 * dwarf2loc.c (find_location_expression): Change type of second
7099 argument to `size_t *'.
7100 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7103 2003-05-18 David Carlton <carlton@bactrian.org>
7105 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7106 'linkage_name'. Add comment.
7107 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7109 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7110 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7111 (lookup_block_symbol): Ditto.
7113 2003-05-16 Andrew Cagney <cagney@redhat.com>
7115 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7116 * gdbarch.h, gdbarch.c: Re-generate.
7117 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7118 * TODO (REGISTER_BYTES): Delete reference.
7119 * alpha-tdep.c (alpha_gdbarch_init): Update.
7120 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7121 * x86-64-tdep.c (x86_64_init_abi): Update.
7122 * vax-tdep.c (vax_gdbarch_init): Update.
7123 * v850-tdep.c (v850_gdbarch_init): Update.
7124 * sparc-tdep.c (sparc_gdbarch_init): Update.
7125 * sh-tdep.c (sh_gdbarch_init): Update.
7126 * s390-tdep.c (s390_gdbarch_init): Update.
7127 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7128 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7129 (ns32k_gdbarch_init_32382): Update.
7130 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7131 * mcore-tdep.c (mcore_gdbarch_init): Update.
7132 * m68k-tdep.c (m68k_gdbarch_init): Update.
7133 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7134 * ia64-tdep.c (ia64_gdbarch_init): Update.
7135 * i386-tdep.c (i386_gdbarch_init): Update.
7136 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7137 * hppa-tdep.c (hppa_gdbarch_init): Update.
7138 * h8300-tdep.c (h8300_gdbarch_init): Update.
7139 * frv-tdep.c (frv_gdbarch_init): Update.
7140 * cris-tdep.c (cris_gdbarch_init): Update.
7141 * avr-tdep.c (avr_gdbarch_init): Update.
7142 * arm-tdep.c (arm_gdbarch_init): Update.
7143 * sparc-tdep.c (sparc_pop_frame): Update.
7144 * rs6000-tdep.c (rs6000_pop_frame): Update.
7145 * remote.c (init_remote_state): Update.
7146 (remote_prepare_to_store): Update.
7147 * remote-vx.c (vx_prepare_to_store): Update.
7148 * remote-sds.c (sds_fetch_registers): Update.
7149 (sds_prepare_to_store): Update.
7150 * remote-array.c: Update.
7151 * regcache.c (init_legacy_regcache_descr): Update.
7152 (init_regcache_descr): Update.
7153 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7154 (mips_o64_extract_return_value): Update.
7155 * irix5-nat.c (fetch_core_registers): Update.
7156 * irix4-nat.c (fetch_core_registers): Update.
7157 * i386-tdep.h: Update.
7158 * hppa-tdep.c (pa_do_registers_info): Update.
7159 (pa_do_strcat_registers_info): Update.
7160 * cris-tdep.c (cris_register_bytes_ok): Update.
7161 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7162 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7163 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7164 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7165 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7166 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7167 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7168 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7169 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7170 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7171 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7172 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7173 (REGISTER_BYTES_OK): Update.
7174 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7175 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7177 2003-05-16 Ian Lance Taylor <ian@airs.com>
7179 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7180 (vax_print_insn, print_insn_arg): Remove static functions.
7181 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7182 print_insn_vax from opcodes library.
7183 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7185 2003-05-15 Andrew Cagney <cagney@redhat.com>
7187 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7188 * target.h (memory_breakpoint_from_pc): Delete declaration.
7189 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7190 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7191 * monitor.c (monitor_insert_breakpoint): Use
7192 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7193 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7194 * gdbarch.h, gdbarch.c: Re-generate.
7195 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7196 (sparc_gdbarch_init): Set breakpoint_from_pc to
7197 sparc_breakpoint_from_pc.
7198 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7199 (BREAKPOINT_FROM_PC): Define.
7200 (sparc_breakpoint_from_pc): Declare.
7201 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7202 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7203 (BREAKPOINT_FROM_PC): Define.
7204 (BREAKPOINT): Delete macro.
7205 * target.h: Update comment.
7206 * s390-tdep.c (s390_gdbarch_init): Update comments.
7207 * remote.c: Update comments.
7208 * remote-mips.c: Update comments.
7209 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7210 * mem-break.c: Update comment.
7211 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7212 (ia64_memory_insert_breakpoint): Update.
7213 * config/sparc/tm-sparc.h: Update comment.
7214 * config/pa/tm-hppa64.h: Update comment.
7215 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7216 (rs6000_breakpoint_from_pc): Update.
7217 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7218 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7219 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7220 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7221 (mips_breakpoint_from_pc): Update.
7222 (mips_dump_tdep): Update.
7224 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7225 * minsyms.c (lookup_minimal_symbol): Inline
7226 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7228 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7229 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7230 * p-lang.c (pascal_printstr): Ditto.
7231 * objc-lang.c (objc_printstr): Ditto.
7232 * m2-lang.c (m2_printstr): Ditto.
7233 * jv-valprint.c (java_print_value_fields): Ditto.
7234 * f-lang.c (f_printstr): Ditto.
7235 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7236 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7237 for repeat_count_threshold.
7238 * Makefile.in (cp-valprint.o): Update dependencies.
7240 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7242 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7243 (examine_prologue): Support looking through leaf functions, knowing
7244 they start with mov r2,r12. Support skipping over indirect stores
7245 of the input registers. Upon hitting a non-nop branch instruction
7246 or predicated instruction, bail out by setting lim_pc to the current
7247 pc value in the loop. At the end, if the lim_pc value is still
7248 beyond our calculated value and we have trust_limit set,
7249 use the lim_pc value.
7251 2003-05-15 Andrew Cagney <cagney@redhat.com>
7253 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7254 generic_find_dummy_frame.
7255 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7256 (deprecated_generic_find_dummy_frame): Update.
7257 (deprecated_read_register_dummy): Update.
7258 * frame.c (deprecated_generic_get_saved_register): Update.
7260 2003-05-15 Theodore A. Roth <troth@openavr.org>
7262 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7263 (avr_gdbarch_init): Set breakpoint_from_pc method.
7265 2003-05-15 Andrew Cagney <cagney@redhat.com>
7267 * regcache.c (build_regcache): Set deprecated_register_valid
7269 (deprecated_grub_regcache_for_register_valid): Delete function.
7270 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7273 2003-05-15 David Carlton <carlton@bactrian.org>
7275 Committed by Elena Zannoni <ezannoni@redhat.com>
7276 * symtab.c (lookup_symbol_aux): Delete calls to
7277 lookup_symbol_aux_minsyms.
7278 (lookup_symbol_aux_minsyms): Comment out function and
7279 prototype. Delete lookup by mangled name.
7281 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7283 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7284 correctly indicate an empty stack and ``stack_allocated'' to the
7285 indicate the number of elements initially allocated.
7286 (dwarf_expr_grow_stack): Simplify method for computing new
7287 stack size. Don't loop infinitely if ``stack_len'' is zero.
7288 (execute_stack_op): Move ``ctx->in_reg'' initialization
7289 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7290 be used in conjuction with DW_OP_piece. Revise error message
7293 2003-05-14 Theodore A. Roth <troth@openavr.org>
7295 * MAINTAINERS: Update my email address.
7296 * avr-tdep.c: Ditto.
7298 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7300 * symtab.h (enum domain_enum): Rename from namespace_enum.
7301 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7302 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7303 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7304 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7305 TYPES_NAMESPACE, METHODS_NAMESPACE.
7306 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7307 (struct symbol, struct partial_symbol): Rename field
7308 'namespace_enum namespace' to 'domain_enum domain'.
7309 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7310 Delete old define kludge for namespace.
7312 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7313 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7314 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7315 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7316 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7317 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7318 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7319 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7320 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7321 occurrences of the above.
7323 2003-05-14 Ian Lance Taylor <ian@airs.com>
7325 * Makefile.in (install-only): Use $(SHELL) when running
7328 2003-05-13 Ian Lance Taylor <ian@airs.com>
7330 * MAINTAINERS (write after approval): Add myself.
7332 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7333 second and third arguments.
7334 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7335 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7337 2003-05-13 Andrew Cagney <cagney@redhat.com>
7339 * defs.h (store_address): Delete declaration.
7340 findvar.c (store_address): Delete function.
7341 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7342 store_unsigned_integer.
7343 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7344 * v850-tdep.c (v850_push_arguments): Ditto.
7345 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7346 * sh-tdep.c (sh64_get_saved_register): Ditto.
7347 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7348 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7349 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7350 (mips_get_saved_register): Ditto.
7351 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7352 (find_func_descr, ia64_push_arguments): Ditto.
7353 * i386-tdep.c (i386_push_arguments): Ditto.
7354 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7355 * frv-tdep.c (frv_push_arguments): Ditto.
7356 * frame.c (legacy_saved_regs_prev_register): Ditto.
7357 (deprecated_generic_get_saved_register): Ditto.
7358 * findvar.c (unsigned_address_to_pointer): Ditto.
7359 * dwarf2read.c (dwarf2_const_value): Ditto.
7360 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7361 * alpha-tdep.c (alpha_push_arguments): Ditto.
7363 2003-05-12 J. Brobecker <brobecker@gnat.com>
7365 * NEWS: Mention that the hppa-hpux port has been partially
7366 multiarched (32bit ABIT only, so far).
7368 2003-05-11 Andrew Cagney <cagney@redhat.com>
7370 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7371 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7372 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7373 sim/testsuite/sim/arm/misaligned2.ms, and
7374 sim/testsuite/sim/arm/misaligned3.ms.
7375 * disasm.h (struct ui_file): Add opaque struct declaration.
7376 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7377 * frame.h (struct ui_file): Ditto.
7379 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7381 * value.h: Pretty print.
7383 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7385 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7387 2003-05-08 Andrew Cagney <cagney@redhat.com>
7389 * regcache.h (max_register_size): Delete declaration.
7390 * regcache.c (max_register_size): Delete function.
7391 (struct regcache_descr): Delete field "max_register_size".
7392 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7393 registers fit in MAX_REGISTER_SIZE.
7394 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7395 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7396 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7397 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7398 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7399 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7400 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7401 * dve3900-rom.c, hppa-tdep.c: Ditto.
7403 2003-05-08 David Carlton <carlton@math.stanford.edu>
7405 * valops.c (push_word): Fix typo.
7407 2003-05-08 Andrew Cagney <cagney@redhat.com>
7409 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7410 * gdbarch.h: Re-generate.
7411 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7412 (legacy_max_register_raw_size): Delete declaration.
7413 * regcache.c (legacy_max_register_raw_size): Delete function.
7414 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7415 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7416 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7417 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7418 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7419 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7420 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7421 * findvar.c, dwarf2cfi.c: Ditto.
7423 2003-05-08 Andrew Cagney <cagney@redhat.com>
7425 * mips-tdep.c (read_signed_register): New function, moved to here
7427 (read_signed_register_pid): Ditto.
7428 * regcache.c (read_signed_register_pid): Delete function, moved to
7430 (read_signed_register): Ditto.
7431 * regcache.h (read_signed_register): Delete declaration.
7432 (read_signed_register_pid): Delete declaration.
7434 2003-05-08 Andrew Cagney <cagney@redhat.com>
7436 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7437 * gdbarch.h: Re-generate.
7438 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7439 (legacy_max_register_virtual_size): Delete declaration.
7440 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7441 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7442 * tracepoint.c (memrange_sortmerge): Ditto.
7443 * sparc-tdep.c (sparc_print_registers): Ditto.
7444 * regcache.c (legacy_max_register_virtual_size): Delete function.
7446 2002-05-08 J. Brobecker <brobecker@gnat.com>
7448 * fork-child.c (escape_bang_in_quoted_argument): New function.
7449 (fork_inferior): Escape '!' characters in quoted arguments
7452 2003-05-08 J. Brobecker <brobecker@gnat.com>
7454 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7455 the language of the CU is not currently supported by GDB.
7457 2003-05-08 J. Brobecker <brobecker@gnat.com>
7459 * defs.h (language): Add language_minimal enum value.
7460 * c-lang.c (minimal_language_defn): New language definition.
7461 (_initialize_c_language): Add the new minimal language to the list
7462 of languages known to GDB.
7464 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7466 * frame.c (get_frame_type): Don't attempt to lazily initialize
7467 frame's unwinder for legacy frames.
7469 2003-05-07 Andrew Cagney <cagney@redhat.com>
7471 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7472 and "regcache" parameters.
7473 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7475 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7477 * dwarf2read.c (dwarf_decode_lines): Only use output of
7478 check_cu_functions() when calling record_line(). Do not update
7479 the current address.
7481 2003-05-07 Andrew Cagney <cagney@redhat.com>
7483 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7486 2003-05-07 Jim Blandy <jimb@redhat.com>
7488 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7489 'maint info symtabs' and 'maint info psymtabs'.
7490 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7491 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7492 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7493 Declarations updated.
7494 * maint.c (maintenance_list_command): Delete.
7495 (_initialize_maint_cmds): Update calls to add_cmd.
7496 * gdbcmd.h (maintenancelistlist): Delete declaration.
7497 * cli/cli-cmds.c (maintenancelistlist): Delete.
7498 (init_cmd_lists): Don't initialize it.
7499 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7501 2003-05-07 Andrew Cagney <cagney@redhat.com>
7503 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7505 (d10v_print_registers_info): Update.
7506 (d10v_dmap_register, d10v_imap_register): Delete functions.
7507 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7508 and "imap_register".
7509 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7510 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7511 * arch-utils.c (generic_remote_translate_xfer_address): Add
7512 "regcache" and "gdbarch" parameters.
7513 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7514 parameter. Change class to multi-arch.
7515 * gdbarch.h, gdbarch.c: Re-generate.
7516 * remote.c (remote_xfer_memory): Use
7517 gdbarch_remote_translate_xfer_address.
7519 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7521 * infrun.c (prev_pc): Move declaration ahead of proceed().
7522 (proceed): Refresh prev_pc value before resuming.
7523 (stop_stepping): Remove code to refresh prev_pc.
7525 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7527 * nto-tdep.c: Removed stray comment.
7529 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7531 * i386-nto-tdep.c: Fix old K&R function definitions.
7532 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7533 Also change add_show_from_set() call to add_setshow_cmd().
7534 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7536 2003-05-05 Andrew Cagney <cagney@redhat.com>
7538 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7539 (fprint_dummy_frames): New function.
7540 (maintenance_print_dummy_frames): New function.
7541 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7542 * frame.c (fprint_frame_id): Make global.
7543 * frame.h (fprint_frame_id): Declare.
7544 * Makefile.in (dummy-frame.o): Update dependencies.
7546 2003-05-05 Andrew Cagney <cagney@redhat.com>
7548 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7549 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7550 SIZEOF_CALL_DUMMY_WORDS.
7551 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7552 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7553 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7554 CALL_DUMMY_BREAKPOINT_OFFSET.
7555 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7556 CALL_DUMMY_START_OFFSET.
7557 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7558 * gdbarch.h, gdbarch.c: Re-generate.
7559 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7560 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7561 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7562 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7563 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7564 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7565 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7566 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7567 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7568 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7569 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7570 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7571 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7572 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7573 * config/sparc/tm-sparc.h: Update.
7575 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7577 * configure.tgt: Add i[3456]86-*-nto*.
7578 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7579 * nto-tdep.c: New file. Neutrino target support routines.
7580 * nto-tdep.h: New file. Neutrino target header.
7581 * config/tm-qnxnto.h: New file.
7582 * config/i386/i386nto.mt: New file.
7583 * config/i386/tm-i386nto.h: New file.
7585 2003-05-04 Andrew Cagney <cagney@redhat.com>
7587 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7588 (load_infrun_state): Ditto.
7589 (struct thread_info): Drop "prev_func_name" field.
7590 * thread.c (load_infrun_state): Update.
7591 (save_infrun_state): Update.
7592 * infrun.c (prev_func_name): Delete variable.
7593 (init_wait_for_inferior): Do not clear prev_func_name.
7594 (stop_stepping, keep_going, context_switch): Do not swap
7596 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7597 instead of PC_IN_SIGTRAMP.
7599 2003-05-04 Andrew Cagney <cagney@redhat.com>
7601 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7602 REGISTER_BYTE with register_offset_hack.
7603 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7604 that REGISTER_BYTE is consistent with the regcache.
7605 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7606 * gdbarch.h, gdbarch.c: Regenerate.
7608 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7610 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7611 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7613 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7615 2003-05-03 J. Brobecker <brobecker@gnat.com>
7617 From Thierry Schneider <tpschneider1@yahoo.com>
7618 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7619 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7620 (mi-cmd-symbol.o): Add rule.
7622 2003-05-03 Andrew Cagney <cagney@redhat.com>
7624 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7625 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7626 * gdbarch.h, gdbarch.c: Re-generate.
7627 * d10v-tdep.c (d10v_push_dummy_code): New function.
7628 (d10v_gdbarch_init): Set push_dummy_code.
7629 * infcall.c (legacy_push_dummy_code): New function.
7630 (generic_push_dummy_code): New function.
7631 (push_dummy_code): New function.
7632 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7633 instead of dummy_addr, to push_dummy_call. Move call to
7634 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7636 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7638 2003-05-03 Andrew Cagney <cagney@redhat.com>
7640 * disasm.h (print_insn): Declare.
7641 * disasm.c (init_gdb_disassemble_info): New function.
7642 (gdb_disassembly): Call init_gdb_disassemble_info.
7643 (gdb_print_insn): New function.
7644 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7645 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7646 * mcore-tdep.c: Include "disasm.h"
7647 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7648 * d10v-tdep.c: Include "disasm.h".
7649 (display_trace): Call gdb_print_insn, instead of print_insn.
7650 (print_insn): Delete function.
7651 * printcmd.c: Include "disasm.h".
7652 (print_insn): Delete function.
7653 (print_formatted): Call gdb_print_insn, instead of print_insn.
7654 * Makefile.in (printcmd.o): Update dependencies.
7655 (mcore-tdep.o, d10v-tdep.o): Ditto.
7657 2003-05-02 Andrew Cagney <cagney@redhat.com>
7659 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7660 PC_REGNUM, re-indent.
7661 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7662 PC_REGNUM isn't set.
7664 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7665 * gdbarch.h, gdbarch.c: Re-generate.
7666 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7667 register_virtual_size, pc_regnum, or register_bytes.
7668 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7669 (d10v_register_type): Use D10V_PC_REGNUM.
7670 (d10v_print_registers_info, d10v_read_pc): Ditto.
7671 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7672 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7674 2003-05-02 David Carlton <carlton@bactrian.org>
7676 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7677 the name with mstrsave.
7679 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7681 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7682 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7683 (host_charset_name, target_charset_name): New vars for use by
7685 (host_charset_enum, target_charset_enum): New enums for set/show
7687 (set_charset_sfunc, set_host_charset_sfunc,
7688 set_target_charset_sfunc): New functions.
7689 (set_host_charset, set_target_charset): Make static.
7690 (list_charsets, set_host_charset_command,
7691 set_target_charset_command): Delete functions.
7692 (show_charset_command): Rewrite as....
7693 (show_charset): Hook this up with the set/show command mechanism.
7694 (_initialize_charset): Change names of charsets to match the
7695 set/show enums. Use host_charset_name and target_charset_name.
7696 Use set/show mechanism for charset, host-charset, target-charset
7697 commands. Do not make 'show host-charset' and 'show
7698 target-charset' be aliases of 'show charset'.
7700 * charset.h (set_host_charset, set_target_charset): Don't export,
7701 they are not used outside the file.
7703 2003-05-01 Andrew Cagney <cagney@redhat.com>
7705 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7706 (gdb_disassembly): Make "di" non static, always initialize and
7707 cleanup. Always use dis_asm_read_memory.
7708 (gdb_dis_asm_read_memory): Delete function.
7710 2003-05-01 Andrew Cagney <cagney@redhat.com>
7712 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7713 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7715 2003-04-30 Andrew Cagney <cagney@redhat.com>
7717 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7718 "tm_print_insn_info".
7719 (TARGET_PRINT_INSN_INFO): Delete macro.
7720 (dis_asm_read_memory): Delete function declaration.
7721 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7722 (tm_print_insn_info): Delete variable definition.
7723 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7724 * gdbarch.h, gdbarch.c: Re-generate.
7725 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7726 "deprecated_tm_print_insn_info".
7727 * mcore-tdep.c (mcore_dump_insn): Ditto.
7728 * mips-tdep.c (mips_gdbarch_init): Ditto.
7729 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7730 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7731 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7732 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7733 instead of TARGET_PRINT_INSN_INFO, add comment.
7734 * s390-tdep.c (s390_get_frame_info): Instead of
7735 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7736 (s390_check_function_end, s390_is_sigreturn): Ditto.
7737 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7738 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7739 * disasm.c: Include "gdbcore.h".
7740 (_initialize_disasm): New function, initialize
7741 "deprecated_tm_print_insn_info".
7742 (deprecated_tm_print_insn_info): New variable.
7743 (dis_asm_read_memory): Moved from "corefile.c", made static.
7744 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7745 * Makefile.in (disasm.o): Update dependencies.
7747 2003-04-30 Andrew Cagney <cagney@redhat.com>
7749 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7751 2003-04-29 Adam Fedor <fedor@gnu.org>
7753 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7754 * infcall.c (find_function_addr): Make non-static.
7755 * infcall.h (find_function_addr): Declare.
7756 * Makefile.in (eval.o): Update dependencies.
7758 2003-04-28 Adam Fedor <fedor@gnu.org>
7760 * symtab.c (symbol_find_demangled_name): Check for and demangle
7762 (symbol_init_demangled_name): Init for language_objc as well.
7764 2003-04-28 Andrew Cagney <cagney@redhat.com>
7766 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7767 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7768 * gdbarch.h, gdbarch.c: Re-generate.
7769 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7770 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7771 * inferior.h (deprecated_read_fp): Rename read_fp.
7772 (generic_target_read_fp): Delete declaration.
7773 * regcache.c (generic_target_read_fp): Delete function.
7774 (deprecated_read_fp): Replace read_fp, use
7775 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7776 * d10v-tdep.c (d10v_read_fp): Delete function.
7777 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7779 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7780 deprecated_target_read_fp to generic_target_read_fp.
7781 * sh-tdep.c (sh_gdbarch_init): Ditto.
7782 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7783 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7784 * frv-tdep.c (frv_gdbarch_init): Ditto.
7786 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7787 deprecated_fp_regnum.
7788 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7789 * vax-tdep.c (vax_gdbarch_init): Ditto.
7790 * v850-tdep.c (v850_gdbarch_init): Ditto.
7791 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7792 * sh-tdep.c (sh_gdbarch_init): Ditto.
7793 * s390-tdep.c (s390_gdbarch_init): Ditto.
7794 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7795 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7796 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7797 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7798 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7799 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7800 * i386-tdep.c (i386_gdbarch_init): Ditto.
7801 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7802 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7803 * frv-tdep.c (frv_gdbarch_init): Ditto.
7804 * cris-tdep.c (cris_gdbarch_init): Ditto.
7805 * avr-tdep.c (avr_gdbarch_init): Ditto.
7806 * arm-tdep.c (arm_gdbarch_init): Ditto.
7807 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7809 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7810 * v850-tdep.c (v850_gdbarch_init): Ditto.
7811 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7812 * sh-tdep.c (sh_gdbarch_init): Ditto.
7813 * s390-tdep.c (s390_gdbarch_init): Ditto.
7814 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7815 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7816 * mips-tdep.c (mips_gdbarch_init): Ditto.
7817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7818 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7819 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7820 * frv-tdep.c (frv_gdbarch_init): Ditto.
7821 * avr-tdep.c (avr_gdbarch_init): Ditto.
7822 * arm-tdep.c (arm_gdbarch_init): Ditto.
7824 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7825 DEPRECATED_FP_REGNUM.
7826 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7827 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7828 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7829 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7830 (sparc32_register_virtual_type): Ditto.
7831 * sh-tdep.c (sh64_frame_chain): Ditto.
7832 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7833 (sh_nofp_frame_init_saved_regs): Ditto.
7834 (sh64_nofp_frame_init_saved_regs): Ditto.
7835 (sh_fp_frame_init_saved_regs): Ditto.
7836 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7837 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7838 * procfs.c (procfs_fetch_registers): Ditto.
7839 (procfs_store_registers): Ditto.
7840 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7841 (store_inferior_registers, fetch_core_registers): Ditto.
7842 (fetch_kcore_registers, clear_regs): Ditto.
7843 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7844 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7845 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7846 * nlm/i386.c (do_status): Ditto.
7847 * mipsv4-nat.c (supply_gregset): Ditto.
7848 * mips-tdep.c: Ditto for comments.
7849 * mips-nat.c (fetch_inferior_registers): Ditto.
7850 (store_inferior_registers, fetch_core_registers): Ditto.
7851 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7852 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7853 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7854 (i386_do_pop_frame, i386_register_type): Ditto.
7855 * hppa-tdep.c (hppa_frame_chain): Ditto.
7856 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7857 (hppa_pop_frame, hppa_read_fp): Ditto.
7858 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7859 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7860 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7861 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7862 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7863 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7864 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7865 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7866 * blockframe.c: Ditto for comments.
7867 * arch-utils.h: Ditto for comments.
7868 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7869 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7870 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7871 * alpha-tdep.h: Ditto for comments.
7872 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7873 (alpha_cannot_store_register): Ditto.
7874 (alpha_push_dummy_frame): Ditto.
7875 * alpha-nat.c (supply_gregset): Ditto.
7877 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7878 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7879 * config/sparc/tm-sparc.h: Update comment.
7881 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7882 deprecated_read_fp instead of TARGET_READ_FP.
7883 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7884 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7885 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7886 deprecated_read_fp instead of read_fp.
7887 * s390-tdep.c (s390_push_arguments): Ditto.
7888 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7889 * frame.h: Ditto in comments.
7890 * frame.c (legacy_get_prev_frame): Ditto.
7891 * dummy-frame.c (dummy_frame_this_id): Ditto.
7892 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7894 2003-04-28 Andrew Cagney <cagney@redhat.com>
7896 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7897 * gdbarch.h, gdbarch.c: Re-generate.
7898 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7899 * vax-tdep.c (_initialize_vax_tdep): Update.
7900 * v850-tdep.c (_initialize_v850_tdep): Update.
7901 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7902 * s390-tdep.c (_initialize_s390_tdep): Update.
7903 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7904 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7905 * mips-tdep.c (_initialize_mips_tdep): Update.
7906 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7907 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7908 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7909 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7910 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7911 * frv-tdep.c (_initialize_frv_tdep): Update.
7912 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7913 (_initialize_cris_tdep): Update.
7914 * arch-utils.c (legacy_print_insn): Update.
7915 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7917 2003-04-26 Adam Fedor <fedor@gnu.org>
7919 * linespec.c (decode_objc): New function to decode ObjC calls
7920 (decode_line_1): Check for ObjC calls (using decode_objc)
7921 * Makefile (linespec.o): Update dependencies.
7923 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7925 * breakpoint.h (struct breakpoint_ops): New.
7926 (struct breakpoint): Add ops member.
7928 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7929 (mention): Use new breakpoint ops member.
7930 (set_raw_breakpoint): Initialize ops field to NULL.
7931 (print_exception_catchpoint, print_one_exception_catchpoint)
7932 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7933 (gnu_v3_exception_catchpoint_ops): New.
7934 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7936 2003-04-25 Adam Fedor <fedor@gnu.org>
7938 * Makefile.in (COMMON_OBS): Add objc-lang.o
7940 2003-04-25 Andrew Cagney <cagney@redhat.com>
7942 * d10v-tdep.c (print_insn): Delete function.
7943 (display_trace): Use TARGET_PRINT_INSN.
7944 (_initialize_d10v_tdep): Do not set tm_print_insn.
7945 (d10v_gdbarch_init): Set print_insn.
7947 2003-04-25 Andrew Cagney <cagney@redhat.com>
7949 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7950 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7951 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7952 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7953 (nr_dmap_regs, a0_regnum): ... new functions.
7954 (d10v_print_registers_info): Use a0_regnum, use register_size.
7955 (d10v_register_byte): Delete function.
7956 (d10v_register_raw_size): Delete function.
7957 (d10v_register_type): Use a0_regnum.
7958 (d10v_print_registers_info): Use a0_regnum.
7959 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7960 (d10v_gdbarch_init): Do not set register_byte or
7961 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7962 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7964 (trace_command): Use XCALLOC.
7965 (print_insn): Delete reference to tm_print_insn.
7966 (saved_regs_unwinder): Use store_unsigned_integer instead of
7968 * frame.h (FRAME_OBSTACK_CALLOC): Define
7970 2003-04-25 David Carlton <carlton@bactrian.org>
7972 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
7974 2003-04-24 Adam Fedor <fedor@gnu.org>
7976 * objc-lang.c: Include "valprint.h"
7977 * Makefile.in (objc-lang.o): Update dependencies.
7979 2003-04-24 Adam Fedor <fedor@gnu.org>
7981 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
7982 architecture dependant compilation and mark as unimplemented
7983 (until they get put in the gdbarch vector).
7985 2003-04-23 David Carlton <carlton@bactrian.org>
7987 * cp-support.c (cp_find_first_component): Accept 'operator' in
7990 2003-04-23 Andrew Cagney <cagney@redhat.com>
7992 * infcall.c (call_function_by_hand): Eliminate redundant
7993 indentation. Move "saved_async" and "old_cleanups" to where they
7996 2003-04-23 Andrew Cagney <cagney@redhat.com>
7998 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
7999 and "buffer". Move the "name" code to where it is needed.
8001 2003-04-23 Andrew Cagney <cagney@redhat.com>
8003 * infcall.c (call_function_by_hand): Move variables "start_sp",
8004 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8005 code to ON_STACK switch branch.
8007 2003-04-23 Andrew Cagney <cagney@redhat.com>
8009 * infcall.c (call_function_by_hand): Make declaration of "i",
8010 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8013 2003-04-23 Andrew Cagney <cagney@redhat.com>
8015 * infcall.c (call_function_by_hand): Delete variable
8016 "n_method_args". Localize "param_type"'s declaration to the loop
8017 that it is used. Reinstate code assigning to said variable -
8018 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8019 Rationalize code using "param_type".
8021 2003-04-22 Andrew Cagney <cagney@redhat.com>
8023 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8024 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8025 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8026 to DEPRECATED_PUSH_RETURN_ADDRESS.
8028 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8030 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8031 on the DWARF2 register number prior to fetching a register.
8033 2003-04-22 J. Brobecker <brobecker@gnat.com>
8035 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8036 Update all the tests using SOFT_FLOAT considering the fact that
8037 this macro was always set to 0.
8038 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8039 considering the fact that this macro was always set to 0.
8040 * hppa-tdep.h (hppa_store_return_value): Likewise.
8041 (hppa_extract_return_value): Likewise.
8043 2003-04-22 J. Brobecker <brobecker@gnat.com>
8045 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8046 the hppa-pro target only.
8048 2003-04-21 J. Brobecker <brobecker@gnat.com>
8050 Ongoing multi-arch conversion effort for HP/UX:
8051 * config/pa/tm-hppa.h: Move all macro that are no longer
8052 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8053 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8055 2003-04-21 J. Brobecker <brobecker@gnat.com>
8057 * config/pa/tm-hppa.h: Obsolete a section that was only used
8060 2003-04-21 J. Brobecker <brobecker@gnat.com>
8062 Ongoing multi-arch conversion for HP/UX.
8063 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8064 if already defined (allows hppa64 to stay non-multiarched for now).
8065 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8067 2003-04-21 Andrew Cagney <cagney@redhat.com>
8069 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8071 2003-04-21 Andrew Cagney <cagney@redhat.com>
8073 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8074 "i386_num_mmx_regs".
8076 2003-04-21 Andrew Cagney <cagney@redhat.com>
8078 * infcall.c: New file.
8079 * infcall.h: New file.
8080 * valarith.c: Include "infcall.h".
8081 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8082 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8083 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8084 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8085 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8086 (SFILES): Add "infcall.c"
8087 (COMMON_OBS): Add "infcall.o".
8088 (infcall.o): Specify dependencies.
8089 * value.h (call_function_by_hand): Delete declaration.
8090 * inferior.h (run_stack_dummy): Delete declaration.
8091 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8092 (run_stack_dummy): Move to "infcall.c", merged into
8093 call_function_by_hand.
8094 * valops.c (call_function_by_hand): Moved to "infcall.c".
8095 (find_function_addr, value_arg_coerce): Ditto.
8096 (unwindonsignal_p, coerce_float_to_double): Ditto.
8097 (_initialize_valops): Move "set/show coerce-float-to-double", and
8098 "set/show unwindonsignal" commands to "infcall.c".
8099 * v850-tdep.c, target.h: Update comments.
8100 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8101 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8102 (sh64_init_extra_frame_info): Update comments.
8103 * mn10300-tdep.c: Update comments.
8104 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8105 * config/sparc/tm-sparc.h: Update comments.
8106 * breakpoint.h: Update comments.
8107 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8108 * arm-tdep.c: Update comment.
8110 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8112 * i386-tdep.c (i386_num_register_names): New variable.
8113 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8114 (MM0_REGNUM): Remove redundant parentheses in define.
8115 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8116 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8117 i386_mxcsr_regnum_p): Remove redundant parentheses.
8118 (i386_register_name): Use i386_num_register_names.
8120 * i386-tdep.c (i386_extract_return_value,
8121 i386_store_return_value): Correct check for availability of
8122 floating-point registers.
8124 * i386-tdep.c (i386_frame_num_args): Remove function.
8125 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8127 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8128 mmx_regnum_to_fp_regnum. Adjust all callers.
8130 * i386-tdep.c (i386_get_longjmp_target): Use
8131 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8132 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8135 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8137 * core-regset.c: Update comments to reflect reality. Re-order
8139 (fetch_core_registers): Use switch instead of if. Remove
8140 redundant prototype.
8142 2003-04-18 Jim Blandy <jimb@redhat.com>
8144 * s390-tdep.c (s390_frame_align): New function.
8145 (s390_gdbarch_init): Register it with the gdbarch object.
8147 2003-04-17 Richard Henderson <rth@redhat.com>
8149 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8151 2003-04-17 Michael Snyder <msnyder@redhat.com>
8152 Karen Bennet <bennet@redhat.com>
8154 Committed by Elena Zannoni <ezannoni@redhat.com>
8155 * gdb_gcore.sh: New script to create a core dump of a process.
8157 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8159 * values.c (value_being_returned): Don't fetch the return
8160 value if the return type is void.
8162 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8164 * thread-db.c: Reindented.
8166 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8168 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8169 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8196 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8198 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8199 the size of ``long double'' to 16, instead of 8.
8201 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8203 * i386-linux-nat.c: Add some whitespace to make things more
8205 (fetch_register, store_register, fetch_inferior_registers,
8206 store_inferior_registers): Get rid of assignment in if-statement.
8207 (store_register): Fix typo in error message.
8209 2003-04-16 Andrew Cagney <cagney@redhat.com>
8211 * utils.c (xmmalloc): Always allocate something, matches
8212 libiberty/xmalloc's semantics.
8213 (xmrealloc, xmcalloc): Ditto.
8215 2003-04-16 Andrew Cagney <cagney@redhat.com>
8217 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8219 (get_frame_type): Initialize unwind and type when needed.
8220 (get_frame_id, frame_register_unwind): Ditto.
8222 2003-04-16 Andrew Cagney <cagney@redhat.com>
8224 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8226 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8227 * sparcl-stub.c: Obsolete file.
8228 * config/sparc/tm-sparclet.h: Obsolete file.
8229 * sparclet-stub.c: Obsolete file.
8230 * sparclet-rom.c: Obsolete file.
8231 * sparcl-tdep.c: Obsolete file.
8232 * config/sparc/tm-sparclite.h: Obsolete file.
8233 * config/sparc/sparclite.mt: Obsolete file.
8234 * config/sparc/sparclet.mt: Obsolete file.
8235 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8236 sparc86x-*-* obsolete.
8238 2003-04-15 David Carlton <carlton@math.stanford.edu>
8240 * Makefile.in (SFILES): Add cp-namespace.c.
8241 (COMMON_OBS): Add cp-namespace.o.
8242 (block.o): Depend on gdb_obstack_h and cp_support_h.
8243 (buildsym.o): Depend on cp_support_h.
8244 (cp-namespace.o): New.
8245 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8246 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8247 (dwarf2read.o): Depend on cp_support_h.
8248 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8249 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8250 processing_current_namespace.
8251 (read_namespace): Update processing_current_namespace; check for
8252 anonymous namespaces.
8253 (dwarf2_name): New function.
8254 (dwarf2_extension): Ditto.
8255 * cp-support.h: Update copyright, contributors.
8256 Add inclusion guards.
8257 Add opaque declaration for structs obstack, block, symbol.
8258 (struct using_direct): New struct.
8259 Add declarations for cp_find_first_component,
8260 cp_entire_prefix_len, processing_has_namespace_info,
8261 processing_current_namespace, cp_is_anonymous,
8262 cp_add_using_directive, cp_initialize_namespace,
8263 cp_finalize_namespace, cp_set_block_scope,
8264 cp_scan_for_anonymous_namespaces.
8265 * cp-namespace.c: New file.
8266 * cp-support.c: Update copyright.
8267 Include ctype.h, gdb_assert.h, gdbcmd.h.
8268 New variable maint_cplus_cmd_list.
8269 (cp_find_first_component): New function.
8270 (cp_entire_prefix_len, maint_cplus_command)
8271 (first_component_command, _initialize_cp_support): Ditto.
8272 * buildsym.c: Include cp-support.h.
8273 New variable using_list.
8274 (add_symbol_to_list): Check for anonymous namespaces.
8275 (finish_block): Set block's scope.
8276 (start_symtab): Initialize C++ namespace support.
8277 (end_symtab): Finalize C++ namespace support.
8278 * block.h: Add opaque declarations for structs
8279 block_namespace_info, using_direct, and obstack.
8280 Add declarations for block_set_scope and block_set_using.
8281 (struct block): Add 'language_specific' member.
8282 (BLOCK_NAMESPACE): New macro.
8283 * block.c: Include gdb_obstack.h and cp-support.h.
8284 (struct block_namespace_info): New struct.
8285 (block_set_scope): New function.
8286 (block_set_using, block_initialize_namespace): Ditto.
8288 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8290 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8291 (locate_base): Return early if there aren't any link map offsets.
8292 (svr4_solib_create_inferior_hook): Warn if shared library support
8295 2003-04-14 David Carlton <carlton@math.stanford.edu>
8297 * symtab.c (symbol_set_names): Add prefix when storing Java names
8298 in hash table. Fix for PR java/1039.
8300 2003-04-14 David Carlton <carlton@math.stanford.edu>
8302 * symtab.c (symbol_set_names): Rename 'name' arg to
8303 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8304 * symtab.h: Change 'name' argument in declaration of
8305 symbol_set_names to 'linkage_name'.
8306 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8308 2003-04-14 Andrew Cagney <cagney@redhat.com>
8310 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8311 return the fully sign-extended register value.
8312 (get_frame_pointer): Ditto.
8313 (mips_pop_frame): Initialize "proc_desc" after checking for a
8316 2003-04-14 Andrew Cagney <cagney@redhat.com>
8318 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8319 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8320 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8321 (mips_push_register): Delete function.
8322 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8325 2003-04-14 Jim Blandy <jimb@redhat.com>
8327 * symmisc.c: #include "gdb_regex.h".
8328 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8330 * maint.c (maintenance_list_command): New function.
8331 (_initialize_maint_cmds): Register the above as commands.
8332 * symtab.h (maintenance_list_symtabs,
8333 maintenance_list_psymtabs): New declarations.
8334 * cli/cli-cmds.c (maintenancelistlist): New variable.
8335 (init_cmd_lists): Initialize it.
8336 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8337 * gdbcmd.h (maintenancelistlist): New declaration.
8338 * Makefile.in (symmisc.o): Update dependencies.
8340 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8342 * s390-nat.c: Include asm/types.h for addr_t.
8344 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8346 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8347 actually incoming type.
8349 2003-04-13 Andrew Cagney <cagney@redhat.com>
8351 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8352 get_next_frame and get_frame_saved_regs.
8354 2003-04-13 Andrew Cagney <cagney@redhat.com>
8356 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8357 of gdbarch_num_regs.
8359 2003-04-13 Andrew Cagney <cagney@redhat.com>
8361 * frame.h: Mention what replaced what in "struct frame_info".
8362 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8363 deprecated_update_frame_base_hack and
8364 deprecated_update_frame_pc_hack.
8365 * hppa-tdep.c: Ditto.
8367 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8369 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8370 to read_reg and update its comment. Remove regnum member.
8371 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8372 Don't call read_reg when setting in_reg. Call read_reg to get
8373 the frame base if it's in a register. Return the register number
8374 on the stack instead of in the context. Remove extra arguments
8376 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8377 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8378 the register number on the expression stack.
8379 (needs_frame_read_reg): Remove extra arguments.
8381 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8383 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8385 (execute_stack_op): All callers updated.
8386 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8387 * dwarf2loc.c (find_location_expression): New function.
8388 (dwarf_expr_frame_base): Call it.
8389 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8390 (dwarf2_tracepoint_var_ref): New function, broken out from
8391 locexpr_tracepoint_var_ref.
8392 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8394 (loclist_read_variable, loclist_read_needs_frame): New functions.
8395 (loclist_describe_location, loclist_tracepoint_var_ref): New
8397 (dwarf2_loclist_funcs): New struct location_funcs.
8398 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8399 (struct dwarf2_locexpr_baton): Add comments.
8400 (dwarf2_loclist_funcs): New extern.
8401 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8402 base_address and base_known.
8403 (dwarf_loc_buffer): New variable.
8404 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8405 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8406 (dwarf2_has_info): Initialize dwarf_loc_offset.
8407 (dwarf2_build_psymtabs): Read in .debug_loc.
8408 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8410 (psymtab_to_symtab_1): Likewise. Move base address calculation
8412 (dwarf2_get_pc_bounds): ... here. Use the base address from
8414 (dwarf2_symbol_mark_computed): Handle location lists.
8416 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8418 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8419 if the linkage name demangled successfully.
8421 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8423 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8424 disassmbly_flavour): Removed.
8426 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8428 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8430 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8432 2003-04-12 Andrew Cagney <cagney@redhat.com>
8434 * frame.h (struct frame_info): Move definition from here ...
8435 * frame.c (struct frame_info): ... to here.
8437 2003-04-12 Andrew Cagney <cagney@redhat.com>
8439 * gdbthread.h (save_infrun_state): Delete parameter
8441 (struct thread_info): Delete field "prev_func_start".
8442 (load_infrun_state): Ditto.
8443 * thread.c (load_infrun_state, save_infrun_state): Update.
8444 * infrun.c (prev_func_start): Delete variable.
8445 (context_switch, init_wait_for_inferior): Update.
8446 (stop_stepping, keep_going): Update.
8448 2003-04-12 Andrew Cagney <cagney@redhat.com>
8450 * gdbarch.sh: Add missing opaque declarations.
8451 * gdbarch.h: Regnerate.
8452 * symtab.h: Add missing opaque declarations.
8453 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8454 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8455 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8456 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8457 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8458 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8459 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8460 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8461 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8462 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8463 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8464 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8465 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8467 2003-04-11 Andrew Cagney <cagney@redhat.com>
8469 * frame.c (get_frame_id): Return this frame's "id".
8470 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8472 (legacy_saved_regs_this_id): Replace function body with
8474 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8475 FRAME_OBSTACK_ZALLOC.
8476 (create_new_frame): Mark the frame ID as valid.
8478 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8480 * Makefile.in (libbfd_h): Added missing setting.
8481 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8482 according to the selected ABI.
8484 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8486 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8488 2003-04-11 Andrew Cagney <cagney@redhat.com>
8490 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8491 SAVED_PC_AFTER_CALL.
8492 * gdbarch.h, gdbarch.c: Regenerate.
8493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8494 * x86-64-tdep.c (x86_64_init_abi): Update.
8495 * vax-tdep.c (vax_gdbarch_init): Update.
8496 * v850-tdep.c (v850_gdbarch_init): Update.
8497 * sparc-tdep.c (sparc_gdbarch_init): Update.
8498 * sh-tdep.c (sh_gdbarch_init): Update.
8499 * s390-tdep.c (s390_gdbarch_init): Update.
8500 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8501 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8502 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8503 * mips-tdep.c (mips_gdbarch_init): Update.
8504 * mcore-tdep.c (mcore_gdbarch_init): Update.
8505 * m68k-tdep.c (m68k_gdbarch_init): Update.
8506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8507 * ia64-tdep.c (ia64_gdbarch_init): Update.
8508 (ia64_saved_pc_after_call): Update declaration.
8509 * i386ly-tdep.c (i386lynx_init_abi): Update.
8510 * i386-tdep.c (i386_gdbarch_init): Update.
8511 * hppa-tdep.c (hppa_gdbarch_init): Update.
8512 * h8300-tdep.c (h8300_gdbarch_init): Update.
8513 * frv-tdep.c (frv_gdbarch_init): Update.
8514 * cris-tdep.c (cris_gdbarch_init): Update.
8515 * avr-tdep.c (avr_gdbarch_init): Update.
8516 * arm-tdep.c (arm_gdbarch_init): Update.
8517 * alpha-tdep.c (alpha_gdbarch_init): Update.
8518 * ns32knbsd-nat.c (frame_num_args): Update.
8519 * ns32k-tdep.c (umax_frame_num_args): Update.
8520 * mips-tdep.c (mips_init_frame_pc_first): Update.
8521 * infrun.c (step_over_function): Update.
8522 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8523 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8524 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8525 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8526 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8527 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8528 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8529 * arch-utils.c (init_frame_pc_default): Update.
8530 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8531 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8534 2003-04-11 Andrew Cagney <cagney@redhat.com>
8536 * i387-tdep.c: Update copyright.
8537 (i387_to_double): Delete function.
8538 (double_to_i387): Delete function.
8540 2003-04-10 Andrew Cagney <cagney@redhat.com>
8542 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8543 frame's function's address. Simplify.
8544 (d10v_frame_unwind_cache): Check that the frame's function is
8547 2003-04-10 Jim Blandy <jimb@redhat.com>
8549 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8550 call to set_gdbarch_deprecated_push_arguments.
8552 2003-04-10 Andrew Cagney <cagney@redhat.com>
8554 * frame.c (fprint_frame_id): New function.
8555 (fprint_frame_type, fprint_frame): New function.
8556 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8557 (create_sentinel_frame, get_frame_id): Ditto.
8558 (frame_id_p, frame_id_eq): Ditto.
8559 (frame_id_inner, create_new_frame): Ditto.
8560 (legacy_get_prev_frame, get_prev_frame): Ditto.
8561 (deprecated_update_frame_pc_hack): Ditto.
8562 (frame_register_unwind): Ditto.
8563 (deprecated_update_frame_base_hack): Ditto.
8565 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8567 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8568 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8569 frame_chain function.
8570 * Makefile.in: Add dependencies due to above change.
8572 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8574 * blockframe.c (legacy_frame_chain_valid): Move call to
8575 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8578 2003-04-09 Andrew Cagney <cagney@redhat.com>
8580 * frame.h (struct frame_id): Replace "pc" and "base" with
8581 "stack_addr" and "code_addr". Update comments.
8582 (frame_id_build): Update parameter names and comment.
8583 (struct frame_info): Replace "id_p" and "id" with "this_id".
8584 * dummy-frame.c (dummy_frame_this_id): Update.
8585 * breakpoint.c (print_one_breakpoint): Update.
8586 * frame.c (get_frame_id): Update.
8587 (get_frame_base, frame_id_build): Update.
8588 (create_sentinel_frame, legacy_get_prev_frame): Update.
8589 (deprecated_update_frame_base_hack): Update.
8590 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8591 (frame_id_inner): Ditto.
8593 2003-04-09 Andrew Cagney <cagney@redhat.com>
8595 * defs.h (gdb_print_host_address): Make "addr" parameter a
8597 * utils.c (gdb_print_host_address): Update.
8599 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8601 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8602 register number for R0 is 0.
8604 2003-04-09 J. Brobecker <brobecker@gnat.com>
8606 * frame.h (struct gdbarch): Add opaque structure definition
8607 to avoid a compilation warning on LynxOS 4.0.
8609 2003-04-09 Andrew Cagney <cagney@redhat.com>
8611 * frame.h (struct frame_info): Delete field "pc". Replace
8612 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8614 * frame.c (frame_pc_unwind): Update.
8615 (create_sentinel_frame): Do not set "pc".
8616 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8617 (get_frame_pc): Call frame_pc_unwind.
8618 (deprecated_update_frame_pc_hack): Update.
8619 (create_new_frame): Use "pc" not "->pc".
8621 2003-04-09 Andrew Cagney <cagney@redhat.com>
8623 * frame.c (get_frame_id): Eliminate code updating "frame".
8624 (legacy_get_prev_frame): Ditto.
8625 (get_frame_base): Return id.base directly.
8626 (deprecated_update_frame_base_hack): Update "id.base".
8627 * frame.h (struct frame_info): Delete field "frame".
8629 2003-04-09 Andrew Cagney <cagney@redhat.com>
8631 * NEWS: Mention that the "Sequent family" is obsolete.
8632 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8633 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8634 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8635 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8636 * config/i386/tm-ptx4.h: Obsolete file.
8637 * config/i386/tm-ptx.h: Obsolete file.
8638 * symm-tdep.c: Obsolete file.
8639 * config/i386/symmetry.mt: Obsolete file.
8640 * config/i386/tm-symmetry.h: Obsolete file.
8641 * symm-nat.c: Obsolete file.
8642 * config/i386/nm-symmetry.h: Obsolete file.
8643 * config/i386/xm-symmetry.h: Obsolete file.
8644 * config/i386/symmetry.mh: Obsolete file.
8645 * config/i386/nm-ptx4.h: Obsolete file.
8646 * config/i386/ptx4.mh: Obsolete file.
8647 * config/i386/ptx.mt: Obsolete file.
8648 * config/i386/ptx.mh: Obsolete file.
8649 * config/i386/xm-ptx4.h: Obsolete file.
8650 * config/i386/xm-ptx.h: Obsolete file.
8652 2003-04-09 Andrew Cagney <cagney@redhat.com>
8654 Obsolete mips*-*-mach3*.
8655 * NEWS: Mention that mips*-*-mach3* is obsolete.
8656 * m3-nat.c: Obsolete file.
8657 * config/nm-m3.h: Obsolete file.
8658 * config/mips/tm-mipsm3.h: Obsolete file.
8659 * config/mips/mipsm3.mt: Obsolete file.
8660 * config/mips/mipsm3.mh: Obsolete file.
8661 * config/mips/xm-mipsm3.h: Obsolete file.
8662 * mipsm3-nat.c: Obsolete file.
8663 * configure.host: Obsolete mips-dec-mach3*.
8664 * configure.tgt: Obsolete mips*-*-mach3*.
8666 2003-04-09 Andrew Cagney <cagney@redhat.com>
8668 * doublest.h: Update copyright.
8669 (deprecated_store_floating, deprecated_extract_floating): Rename
8670 store_floating and extract_floating. Update comments.
8671 * doublest.c: Update copyright.
8672 (extract_floating_by_length): Replace extract_floating.
8673 (store_floating_by_length): Replace store_floating.
8674 (deprecated_extract_floating): New function.
8675 (deprecated_store_floating): New function.
8676 (extract_typed_floating): Call extract_floating_by_length.
8677 (store_typed_floating): Call store_floating_by_length.
8678 * x86-64-tdep.c (x86_64_store_return_value): Update.
8679 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8680 (sh64_extract_return_value): Update.
8681 (sh_sh4_register_convert_to_virtual): Update.
8682 (sh_sh64_register_convert_to_virtual): Update.
8683 (sh_sh4_register_convert_to_raw): Update.
8684 (sh_sh64_register_convert_to_raw): Update.
8685 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8686 (rs6000_register_convert_to_raw): Update.
8687 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8688 (ia64_register_convert_to_raw): Update.
8689 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8690 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8691 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8692 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8693 (alpha_register_convert_to_raw): Update.
8695 2003-04-08 Andrew Cagney <cagney@redhat.com>
8697 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8698 * gdbarch.h, gdbarch.c: Re-generate.
8699 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8700 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8701 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8702 conditionally, use frame_pc_unwind as an alternative. Add
8704 * arch-utils.c (init_frame_pc_default): Only call
8705 SAVED_PC_AFTER_CALL when available.
8707 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8709 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8710 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8711 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8712 (start_remote): Ditto.
8713 (handle_inferior_event): Ditto.
8714 (save_inferior_status): Ditto.
8715 (restore_inferior_status): Ditto.
8716 * infcmd.c (attach_command): Ditto.
8717 * fork-child.c (startup_inferior): Ditto.
8718 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8719 * alpha-tdep.c (heuristic_proc_start): Ditto.
8720 * mips-tdep.c (heuristic_proc_start): Ditto.
8721 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8722 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8723 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8724 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8725 * remote-vx.c (vx_create_inferior): Ditto.
8727 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8729 * infrun.c (stop_soon_quietly): Make it an enum, to better
8730 override the default behavior of handle_inferior_event.
8731 (clear_proceed_status): Update uses of stop_soon_quietly to
8732 reflect that it is now an enum.
8733 (start_remote): Ditto.
8734 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8735 is set to handle the new GNU/Linux kernel behavior for
8736 attach/sigstop. Update uses of stop_soon_quietly.
8737 * inferior.h (enum stop_kind): New enum.
8738 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8739 Reset normal handle_inferior_event behavior, afterwards.
8740 * fork-child.c (startup_inferior): Update.
8741 * alpha-tdep.c (heuristic_proc_start): Update.
8742 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8743 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8744 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8745 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8746 * remote-vx.c (vx_create_inferior): Update.
8747 * mips-tdep.c (heuristic_proc_start): Update.
8749 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8751 * disasm.c (dump_insns): Move variables inside loop, or they will
8752 be freed more than once, causing wild memory corruptions.
8753 (gdb_disassembly): Look for the substring "-thread",
8754 instead of "-threads" in the target name, to make sure to find
8755 the 'multi-thread' target. Also, make sure we do the right thing
8756 with the "core" target.
8758 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8760 * mips-tdep.c (mips_print_fp_register): New function, created from
8761 do_fp_register_row(). Registers are now (also) printed as hex.
8762 Only one register is printed per row.
8763 (mips_print_register, do_fp_register_row): Print floating point
8764 registers with mips_print_fp_register().
8766 2003-04-06 Andrew Cagney <cagney@redhat.com>
8768 * valprint.h (inspect_it): Add extern declaration.
8769 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8770 (selectors_info, classes_info): Ditto.
8771 (find_objc_msgcall): Fix indentation.
8772 (objc_printstr): Delete extern declarations.
8774 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8776 2003-04-06 Andrew Cagney <cagney@redhat.com>
8778 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8780 * frame.c (legacy_saved_regs_this_id): Update.
8781 (legacy_get_prev_frame): Update.
8782 * xstormy16-tdep.c: Update comment.
8783 * sparc-tdep.c (sparc_frame_chain): Update comment.
8784 * blockframe.c (legacy_frame_chain_valid): Update.
8786 2003-04-06 Andrew Cagney <cagney@redhat.com>
8788 * valprint.c (val_print_type_code_int): Delete #ifdef
8789 PRINT_TYPELESS_INTEGER code.
8791 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8792 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8793 multi-arch definition.
8794 * gdbarch.h: Re-generate.
8796 2003-04-05 Andrew Cagney <cagney@redhat.com>
8798 Eliminate FRAME_FIND_SAVED_REGS.
8799 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8800 Change FSR parameter to a pointer.
8801 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8802 Assume FSR parameter is a pointer.
8803 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8805 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8806 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8807 saved_regs a pointer.
8808 (hppa_frame_saved_pc): Ditto.
8809 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8810 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8812 (restore_pc_queue): Make fsr a pointer.
8813 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8814 (hppa_frame_chain): Make saved_regs a pointer, call
8815 hppa_frame_init_saved_regs.
8816 * sparc-tdep.c: Include "gdb_assert.h".
8817 (sparc_frame_find_saved_regs): Replace internal_error with
8819 * remote-vxsparc.c (vx_read_register): Delete reference to
8820 FRAME_FIND_SAVED_REGS.
8821 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8822 * gdbarch.h: Regenerate.
8823 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8824 (deprecated_get_frame_saved_regs): Delete declaration.
8825 (struct frame_saved_regs): Delete definition.
8826 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8827 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8828 (hppa_frame_find_saved_regs): Delete declaration.
8829 (FRAME_FIND_SAVED_REGS): Delete macro.
8830 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8831 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8832 FRAME_FIND_SAVED_REGS in comment.
8834 2003-04-05 Andrew Cagney <cagney@redhat.com>
8836 * frame.c (frame_func_unwind, get_frame_func): New functions.
8837 * frame.h (get_frame_func, frame_func_unwind): Declare.
8838 (struct frame_info): Add field "prev_func" for caching the
8839 previous frame's function address.
8840 * arm-tdep.c (arm_frameless_function_invocation): Combine
8841 get_pc_function_start and get_frame_pc into get_frame_func.
8842 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8843 (sh64_nofp_frame_init_saved_regs): Ditto.
8844 * s390-tdep.c (s390_function_start): Ditto.
8845 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8846 (rs6000_frameless_function_invocation): Ditto.
8847 (rs6000_frame_saved_pc): Ditto.
8848 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8849 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8850 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8851 (i386_frame_init_saved_regs): Ditto.
8852 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8853 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8854 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8855 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8856 * blockframe.c (frameless_look_for_prologue): Ditto.
8858 2003-04-05 Andrew Cagney <cagney@redhat.com>
8860 * frame.c (legacy_get_prev_frame): Link prev to next at the
8861 function start. Update comments.
8863 2003-04-05 Andrew Cagney <cagney@redhat.com>
8865 * frame.c (get_frame_id): Update comment.
8866 (legacy_get_prev_frame): Update comment.
8867 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8868 * gdbarch.h: Regenerate.
8869 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8870 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8872 2003-04-05 Andrew Cagney <cagney@redhat.com>
8874 * stack.c (print_frame_info): Use get_frame_pc.
8876 2003-04-04 Andrew Cagney <cagney@redhat.com>
8878 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8879 the frame's type from the unwinder.
8880 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8881 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8882 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8883 (get_frame_base_address): Use get_frame_type.
8884 (get_frame_locals_address, get_frame_args_address): Ditto.
8885 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8886 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8887 (struct frame_info): Add comment explaining why the frame contains
8889 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8890 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8891 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8893 * frame-unwind.h: Include "frame.h".
8894 (struct frame_unwind): Add "type" field.
8895 * Makefile.in (frame_unwind_h): Add $(frame_h).
8897 2003-04-04 Andrew Cagney <cagney@redhat.com>
8899 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8900 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8901 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8903 (d10v_unwind_dummy_id): Use frame_id_build.
8904 * frame.c (find_frame_sal): Use get_frame_pc.
8905 (create_new_frame): Use deprecated_update_frame_pc_hack and
8906 deprecated_update_frame_base_hack.
8907 (create_sentinel_frame): Add comment about ->pc going away.
8908 (get_prev_frame): Add comment about ->pc going away.
8909 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8910 frame_id_build, deprecated_update_frame_pc_hack and
8911 deprecated_update_frame_base_hack.
8912 (select_frame): Use get_frame_pc.
8913 (legacy_saved_regs_this_id): Use frame_id_build.
8915 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8917 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8918 signed integer case.
8919 (classify_argument): Handle enumerations and references.
8921 2003-04-04 Andrew Cagney <cagney@redhat.com>
8923 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8926 2003-04-01 Adam Fedor <fedor@gnu.org>
8928 * gdb/objc-lang.c (selectors_info): Replace calls to
8929 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8930 SYMBOL_NATURAL_NAME.
8931 (classes_info, find_methods): Likewise.
8933 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8935 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8936 ``mach'' to the value determined by bfd_default_set_arch_mach().
8938 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8940 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8941 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8942 (mi-cmd-file.o): Update dependencies.
8944 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8946 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8947 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8949 2003-04-01 Adam Fedor <fedor@gnu.org>
8951 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8952 * language.h (struct language_defn): Add la_demangle.
8953 (language_demangle): Declare.
8954 * language.c (language_demangle): New function.
8955 (unk_lang_demangle): Likewise.
8956 (unknown_language_defn, auto_language_defn, local_language_defn):
8957 Add ukn_lang_demangle.
8958 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8959 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8960 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8961 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8962 * jv-lang.c (java_demangle): New function
8963 (java_language_defn): Use it for la_demangle element.
8964 * objc-lang.c (objc_demangle): Add options argument
8965 (objc_language_defn): Use objc_demangle for la_demangle element.
8966 * maint.c (maintenance_demangle): Replace switch with
8967 call to language_demangle.
8968 * utils.c (fprintf_symbol_filtered): Likewise.
8970 2003-04-01 Andrew Cagney <cagney@redhat.com>
8972 * printcmd.c (print_frame_nameless_args): Delete #ifdef
8973 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
8974 PRINT_TYPELESS_INTEGER.
8975 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
8976 PUSH_RETURN_ADDRESS.
8978 2003-04-01 Andrew Cagney <cagney@redhat.com>
8980 * Makefile.in (d10v-tdep.o): Update dependencies.
8981 * d10v-tdep.c: Include "frame-base.h".
8982 (d10v_frame_unwind): Make constant.
8983 (d10v_frame_base_address): New function.
8984 (d10v_frame_base): New variable.
8985 (d10v_gdbarch_init): Set frame_base default.
8986 (struct d10v_unwind_cache): Add the field "prev_sp". Update
8988 (d10v_frame_unwind_cache): Set and use "prev_sp".
8989 (d10v_frame_this_id): Use the previous frame's inner most stack
8990 address and this frame's func address for the frame ID. Use
8991 frame_id_build. Don't analyze beyond the current instruction.
8993 2003-04-01 Andrew Cagney <cagney@redhat.com>
8995 * frame.h (get_frame_locals_address, get_frame_args_address):
8996 Refer to the base address, instead of the address of the first
8999 2003-04-01 Andrew Cagney <cagney@redhat.com>
9001 Add frame debug info addresses:
9002 * frame-base.c: New file.
9003 * frame-base.h: New file.
9004 * frame.h (struct frame_base): Add opaque declaration.
9005 (get_frame_base): Update comment.
9006 (get_frame_base_address): Declare.
9007 (get_frame_locals_address): Declare.
9008 (get_frame_args_address): Declare.
9009 (struct frame_info): Add "base" and "base_cache". Update
9010 comments on the unwinder.
9011 * frame.c: Include "frame-base.h".
9012 (get_frame_locals_address): New function.
9013 (get_frame_base_address): New function.
9014 (get_frame_args_address): New function.
9015 * findvar.c (read_var_value): Use get_frame_locals_address and
9016 get_frame_args_address.
9017 * stack.c (frame_info): Use get_frame_locals_address and
9018 get_frame_args_address.
9019 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9020 moved to "frame-base.c".
9021 * printcmd.c (print_frame_nameless_args): Ditto.
9022 * symtab.h (address_class): Update comments.
9023 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9024 get_frame_base_address.
9025 * dwarf2expr.c (execute_stack_op): Ditto.
9026 * Makefile.in (frame_base_h): Define.
9027 (frame.o): Update dependencies.
9028 (frame-base.o): Add dependencies.
9029 (SFILES): Add frame-base.c.
9030 (COMMON_OBS): Add frame-base.o.
9032 2003-04-01 Andrew Cagney <cagney@redhat.com>
9034 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9035 CALL_DUMMY_LENGTH): Ditto.
9036 * gdbarch.c: Re-generate.
9037 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9038 (CALL_DUMMY_LENGTH): Delete macro.
9039 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9040 * arm-tdep.c (arm_gdbarch_init): Ditto.
9041 * avr-tdep.c (avr_gdbarch_init): Ditto.
9042 * cris-tdep.c (cris_gdbarch_init): Ditto.
9043 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9044 * frv-tdep.c (frv_gdbarch_init): Ditto.
9045 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9046 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9047 * i386-tdep.c (i386_gdbarch_init): Ditto.
9048 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9049 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9050 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9051 * mips-tdep.c (mips_gdbarch_init): Ditto.
9052 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9053 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9054 * s390-tdep.c (s390_gdbarch_init): Ditto.
9055 * sh-tdep.c (sh_gdbarch_init): Ditto.
9056 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9057 * v850-tdep.c (v850_gdbarch_init): Ditto.
9058 * vax-tdep.c (vax_gdbarch_init): Ditto.
9059 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9061 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9063 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9065 2003-04-01 Andrew Cagney <cagney@redhat.com>
9067 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9068 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9069 * gdbarch.h, gdbarch.c: Re-generate.
9070 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9071 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9072 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9073 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9074 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9075 * infcmd.c (run_stack_dummy): Simplify assuming
9076 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9077 * infrun.c (handle_inferior_event): Ditto.
9078 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9079 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9080 * arm-tdep.c (arm_gdbarch_init): Ditto.
9081 * avr-tdep.c (avr_gdbarch_init): Ditto.
9082 * cris-tdep.c (cris_gdbarch_init): Ditto.
9083 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9084 * frv-tdep.c (frv_gdbarch_init): Ditto.
9085 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9086 * i386-tdep.c (i386_gdbarch_init): Ditto.
9087 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9088 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9089 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9090 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9091 * mips-tdep.c (mips_gdbarch_init): Ditto.
9092 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9093 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9094 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9095 * s390-tdep.c (s390_gdbarch_init): Ditto.
9096 * sh-tdep.c (sh_gdbarch_init): Ditto.
9097 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9098 * v850-tdep.c (v850_gdbarch_init): Ditto.
9099 * vax-tdep.c (vax_gdbarch_init): Ditto.
9100 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9102 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9104 * symfile.c (symfile_relocate_debug_section): Update call to
9105 bfd_simple_get_relocated_section_contents.
9107 2003-03-31 Andrew Cagney <cagney@redhat.com>
9109 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9110 * gdbarch.h, gdbarch.c: Regenerate.
9111 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9112 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9114 * frame.h (generic_fix_call_dummy): Delete declaration.
9115 * dummy-frame.h: Update comment.
9116 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9119 * sh-tdep.c (sh_gdbarch_init): Ditto.
9120 * s390-tdep.c (s390_gdbarch_init): Ditto.
9121 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9122 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9123 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9124 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9125 * i386-tdep.c (i386_gdbarch_init): Ditto.
9126 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9127 * frv-tdep.c (frv_gdbarch_init): Ditto.
9128 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9129 * cris-tdep.c (cris_gdbarch_init): Ditto.
9130 * avr-tdep.c (avr_gdbarch_init): Ditto.
9131 * arm-tdep.c (arm_gdbarch_init): Ditto.
9133 2003-03-31 J. Brobecker <brobecker@gnat.com>
9135 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9136 (INIT_FRAME_AP): Likewise.
9137 (EXTRA_FRAME_INFO): Likewise.
9139 2003-03-31 Andrew Cagney <cagney@redhat.com>
9141 * gdbarch.sh: Include "symfile.h".
9142 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9143 * gdbarch.h, gdbarch.c: Re-generate.
9144 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9146 call_dummy_address, the default is at entry_point_address.
9147 * v850-tdep.c (v850_gdbarch_init): Ditto.
9148 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9149 * sh-tdep.c (sh_gdbarch_init): Ditto.
9150 * s390-tdep.c (s390_gdbarch_init): Ditto.
9151 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9152 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9153 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9154 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9155 * i386-tdep.c (i386_gdbarch_init): Ditto.
9156 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9157 * frv-tdep.c (frv_gdbarch_init): Ditto.
9158 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9159 * cris-tdep.c (cris_gdbarch_init): Ditto.
9160 * arm-tdep.c (arm_gdbarch_init): Ditto.
9162 2003-03-31 Andrew Cagney <cagney@redhat.com>
9164 * gdbarch.sh (CALL_DUMMY_P): Delete.
9165 * gdbarch.h, gdbarch.c: Re-generate.
9166 * inferior.h (CALL_DUMMY_P): Delete macro.
9167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9168 * vax-tdep.c (vax_gdbarch_init): Update.
9169 * v850-tdep.c (v850_gdbarch_init): Update.
9170 * sparc-tdep.c (sparc_gdbarch_init): Update.
9171 * sh-tdep.c (sh_gdbarch_init): Update.
9172 * s390-tdep.c (s390_gdbarch_init): Update.
9173 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9174 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9176 * mips-tdep.c (mips_gdbarch_init): Update.
9177 * mcore-tdep.c (mcore_gdbarch_init): Update.
9178 * m68k-tdep.c (m68k_gdbarch_init): Update.
9179 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9180 * ia64-tdep.c (ia64_gdbarch_init): Update.
9181 * i386-tdep.c (i386_gdbarch_init): Update.
9182 * h8300-tdep.c (h8300_gdbarch_init): Update.
9183 * frv-tdep.c (frv_gdbarch_init): Update.
9184 * d10v-tdep.c (d10v_gdbarch_init): Update.
9185 * cris-tdep.c (cris_gdbarch_init): Update.
9186 * breakpoint.c (deprecated_frame_in_dummy): Update.
9187 * avr-tdep.c (avr_gdbarch_init): Update.
9188 * alpha-tdep.c (alpha_gdbarch_init): Update.
9189 * arm-tdep.c (arm_gdbarch_init): Update.
9190 * dummy-frame.c (dummy_frame_this_id): Update comments.
9191 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9192 * frame.c (legacy_get_prev_frame): Ditto.
9193 * valops.c (call_function_by_hand): Delete function.
9194 (hand_function_call): Rename to call_function_by_hand
9196 2003-03-30 Andrew Cagney <cagney@redhat.com>
9198 2002-11-10 Klee Dienes <kdienes@apple.com>
9199 * value.h (struct value): Update comment.
9201 2003-03-30 Andrew Cagney <cagney@redhat.com>
9203 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9205 (d10v_gdbarch_init): Do not set fp_regnum.
9207 * frame.c (get_frame_base): Force ID initialization.
9208 (get_prev_frame): Move computation of the frame ID from here ...
9209 (get_frame_id): ... to here.
9210 (legacy_get_prev_frame): Mark the frame ID as valid.
9211 * frame.h (struct frame_info): Add field "id_p".
9213 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9215 * i386-tdep.c (i386_store_struct_return): Removed.
9216 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9218 2003-03-30 Andrew Cagney <cagney@redhat.com>
9220 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9221 * gdbarch.h, gdbarch.c: Regenerate.
9222 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9223 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9224 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9225 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9226 * i386-tdep.c (i386_gdbarch_init): Ditto.
9227 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9228 * cris-tdep.c (cris_gdbarch_init): Ditto.
9229 * vax-tdep.c (vax_gdbarch_init): Ditto.
9230 * s390-tdep.c (s390_gdbarch_init): Ditto.
9231 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9232 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9233 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9234 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9235 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9236 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9237 * sparc-tdep.c (sparc_gdbarch_init): Update.
9238 * sh-tdep.c (sh_gdbarch_init): Update.
9239 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9240 * mips-tdep.c (mips_gdbarch_init): Update.
9241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9242 * ia64-tdep.c (ia64_gdbarch_init): Update.
9243 * frv-tdep.c (frv_gdbarch_init): Update.
9244 * avr-tdep.c (avr_gdbarch_init): Update.
9245 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9246 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9247 instead of when push_dummy_call is not available.
9249 2003-03-30 Andrew Cagney <cagney@redhat.com>
9251 * infttrace.c: Include "gdbthread.h".
9252 (parent_attach_all): Fix function signature.
9253 (call_ptrace): Update call.
9254 * Makefile.in (infttrace.o): Update dependencies.
9256 2003-03-30 Andrew Cagney <cagney@redhat.com>
9258 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9259 PUSH_RETURN_ADDRESS.
9260 * gdbarch.h, gdbarch.c: Regenerate.
9261 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9262 * x86-64-tdep.c (x86_64_init_abi): Update.
9263 * v850-tdep.c (v850_gdbarch_init): Update.
9264 * sparc-tdep.c (sparc_gdbarch_init): Update.
9265 * sh-tdep.c (sh_gdbarch_init): Update.
9266 * s390-tdep.c (s390_gdbarch_init): Update.
9267 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9268 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9269 * mips-tdep.c (mips_gdbarch_init): Update.
9270 * mcore-tdep.c (mcore_gdbarch_init): Update.
9271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9272 * ia64-tdep.c (ia64_gdbarch_init): Update.
9273 * i386-tdep.c (i386_gdbarch_init): Update.
9274 * h8300-tdep.c (h8300_gdbarch_init): Update.
9275 * frv-tdep.c (frv_gdbarch_init): Update.
9276 * cris-tdep.c (cris_gdbarch_init): Update.
9277 * avr-tdep.c (avr_gdbarch_init): Update.
9278 * arm-tdep.c (arm_gdbarch_init): Update.
9279 * valops.c (hand_function_call): Update.
9281 2003-03-29 Andrew Cagney <cagney@redhat.com>
9283 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9284 sizeof_call_dummy_words.
9285 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9287 * gdbarch.h: Regenerate.
9289 2003-03-29 Andrew Cagney <cagney@redhat.com>
9291 * infttrace.h: New file.
9292 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9293 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9294 (hpread_read_doc_function_type): Detect an initialized type1.
9295 (hpread_quick_traverse): Initialize mod_name_string.
9296 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9297 (som_solib_get_solib_by_pc): Declare.
9298 (so_lib_thread_start_addr): Declare.
9299 (no_shared_libraries): Declare.
9300 * somread.c (init_import_symbols): Make static. Add forward
9302 * config/pa/nm-hppah.h: Include "infttrace.h" for
9304 (hppa_insert_hw_watchpoint): Declare.
9305 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9306 * hppah-nat.c: Include "gdb_string.h".
9307 (parent_attach_all): Delete extern declaration, moved to
9309 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9311 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9312 * Makefile.in (infttrace_h): Define.
9313 (hpread.o): Update dependencies.
9314 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9315 * hppa-hpux-tdep.c: Include "gdb_string.h".
9316 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9317 * infrun.c (handle_inferior_event): Always initialize
9318 stepped_after_stopped_by_watchpoint. Add default and remove
9319 fallthrough in switch statement.
9320 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9322 (hppa_remove_hw_watchpoint): Ditto.
9324 2003-03-29 Andrew Cagney <cagney@redhat.com>
9326 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9329 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9331 * arm-tdep.c (arm_push_arguments): Delete.
9332 (struct stack_item): New type.
9333 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9334 (arm_store_struct_return): Delte.
9335 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9336 arm_push_arguments or arm_store_struct_return.
9338 2003-03-28 Andrew Cagney <cagney@redhat.com>
9340 * Makefile.in (d10v-tdep.o): Update dependencies.
9341 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9342 * d10v-tdep.c: Include "remote.h".
9343 (target_resume_hook): Delete extern declaration.
9344 (target_wait_loop_hook): Ditto.
9345 (tdisassemble_command): Eliminate assignment in "if" conditional.
9346 (d10v_ts2_register_sim_regno): Eliminate call to
9347 legacy_register_sim_regno.
9348 (d10v_ts3_register_sim_regno): Ditto.
9350 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9352 * thread.c: Reindented.
9354 * linux-proc.c: Ditto.
9356 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9358 * MAINTAINERS (write after approval): Add myself.
9360 2003-03-27 Theodore A. Roth <troth@openavr.org>
9362 * objc-exp.y: Add missing semi-colons.
9364 2003-03-27 Andrew Cagney <cagney@redhat.com>
9366 * regcache.c (write_sp): Delete function and references.
9367 * inferior.h (write_sp): Delete declaration.
9368 * valops.c (hand_function_call): Replace write_sp with
9370 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9371 (sparc_pop_frame): Ditto.
9373 2003-03-27 Andrew Cagney <cagney@redhat.com>
9375 * NEWS: Mention removal of support for hppa*-*-bsd* and
9376 hppa*-*-osf* natives, and hppa*-*-pro* target.
9377 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9378 * config/pa/xm-pa.h: Obsolete file.
9379 * config/pa/xm-hppab.h: Obsolete file.
9380 * config/pa/nm-hppab.h: Obsolete file.
9381 * config/pa/tm-hppab.h: Obsolete file.
9382 * config/pa/tm-hppao.h: Obsolete file.
9383 * config/pa/nm-hppao.h: Obsolete file.
9384 * config/pa/tm-pro.h: Obsolete file.
9385 * config/pa/hppaosf.mt: Obsolete file.
9386 * config/pa/hppaosf.mh: Obsolete file.
9387 * config/pa/hppapro.mt: Obsolete file.
9388 * config/pa/hppabsd.mt: Obsolete file.
9389 * config/pa/hppabsd.mh: Obsolete file.
9390 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9391 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9394 2003-03-27 Andrew Cagney <cagney@redhat.com>
9396 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9397 push_arguments. Don't set push_return_address or write_sp.
9398 (d10v_push_dummy_call): Replace d10v_push_arguments.
9399 (d10v_push_return_address, d10v_write_sp): Delete function,
9400 handled by push_dummy_call.
9402 2003-03-26 Andrew Cagney <cagney@redhat.com>
9404 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9405 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9406 regcache and dummy_addr parameters.
9407 * gdbarch.h, gdbarch.c: Re-generate.
9408 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9409 available; assume it will handle stack alignment and return
9410 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9411 legacy_push_arguments.
9412 (legacy_push_arguments): Rename default_push_arguments.
9413 * value.h (legacy_push_arguments): Rename default_push_arguments.
9414 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9415 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9416 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9417 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9418 * config/i386/tm-symmetry.h: Update.
9419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9420 * x86-64-tdep.c (x86_64_init_abi): Update.
9421 * v850-tdep.c (v850_gdbarch_init): Update.
9422 * sparc-tdep.c (sparc_gdbarch_init): Update.
9423 * sh-tdep.c (sh_gdbarch_init): Update.
9424 * s390-tdep.c (s390_gdbarch_init): Update.
9425 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9426 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9427 * mips-tdep.c (mips_gdbarch_init): Update.
9428 * mcore-tdep.c (mcore_gdbarch_init): Update.
9429 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9430 * ia64-tdep.c (ia64_gdbarch_init): Update.
9431 * i386-tdep.c (i386_gdbarch_init): Update.
9432 * hppa-tdep.c (hppa_gdbarch_init): Update.
9433 * h8300-tdep.c (h8300_gdbarch_init): Update.
9434 * frv-tdep.c (frv_gdbarch_init): Update.
9435 * d10v-tdep.c (d10v_gdbarch_init): Update.
9436 * cris-tdep.c (cris_gdbarch_init): Update.
9437 * avr-tdep.c (avr_gdbarch_init): Update.
9438 * arm-tdep.c (arm_gdbarch_init): Update.
9439 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9440 * alpha-tdep.c (alpha_gdbarch_init): Update.
9442 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9444 * signals/signals.c (do_target_signal_to_host): Correct realtime
9447 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9449 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9450 (struct sal_chain, map_catch_names): Remove.
9451 (catch_exception_command_1): Don't call
9452 handle_gnu_4_16_catch_command.
9454 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9456 From Mark Dettinger <dettinge@de.ibm.com>:
9457 * dwarf2cfi.c (read_2u): Increment pointer by two.
9459 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9461 * signals/signals.c: Fix typos in last change.
9463 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9465 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9466 not already defined. Use __SIGRTMIN if available.
9467 (target_signal_from_host): Remove SIGRTMIN block.
9468 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9469 the signal is within the realtime range.
9471 2003-03-25 Adam Fedor <fedor@gnu.org>
9473 * Makefile.in (infrun.o): Add $(language_h)
9474 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9475 for language specific trampolines.
9476 * language.h (struct language_defn): Add skip_trampoline.
9477 (skip_language_trampoline): Declare.
9478 * language.c (unk_lang_trampoline, skip_language_trampoline):
9480 (unknown_language_defn, auto_language_defn, local_language_defn):
9481 Add ukn_lang_trampoline.
9482 * ada-lang.c (ada_language_defn): Add NULL for language
9483 specific skip_trampoline.
9484 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9485 scm-lang.c: Likewise.
9486 * objc-lang.c (objc_skip_trampoline): New function.
9487 (objc_language_defn): Add objc_skip_trampoline.
9489 2003-03-25 Andrew Cagney <cagney@redhat.com>
9491 * frame.c (get_prev_frame): Delay validating a frame's ID -
9492 non-NULL, didn't go backwards - until an attempt to unwind it to
9495 2003-03-25 Andrew Cagney <cagney@redhat.com>
9497 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9498 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9499 * gdbarch.h, gdbarch.c: Re-generate.
9500 * config/sparc/tm-sparc.h
9501 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9502 * sparc-tdep.c (sparc_gdbarch_init): Set
9503 deprecated_extra_stack_alignment_needed.
9504 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9505 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9506 extra_stack_alignment_needed.
9507 * v850-tdep.c (v850_gdbarch_init): Ditto.
9508 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9509 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9510 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9511 * cris-tdep.c (cris_gdbarch_init): Ditto.
9512 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9513 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9515 2003-03-25 Andrew Cagney <cagney@redhat.com>
9517 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9518 STORE_STRUCT_RETURN.
9519 * gdbarch.h, gdbarch.c: Regenerate.
9520 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9521 (d10v_push_arguments): Set the struct return register.
9522 (d10v_gdbarch_init): Update.
9523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9524 * x86-64-tdep.c (x86_64_init_abi): Update.
9525 * vax-tdep.c (vax_gdbarch_init): Update.
9526 * v850-tdep.c (v850_gdbarch_init): Update.
9527 * sparc-tdep.c (sparc_gdbarch_init): Update.
9528 * sh-tdep.c (sh_gdbarch_init): Update.
9529 * s390-tdep.c (s390_gdbarch_init): Update.
9530 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9531 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9532 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9533 * mips-tdep.c (mips_gdbarch_init): Update.
9534 * mcore-tdep.c (mcore_gdbarch_init): Update.
9535 * m68k-tdep.c (m68k_gdbarch_init): Update.
9536 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9537 * ia64-tdep.c (ia64_gdbarch_init): Update.
9538 * i386-tdep.c (i386_gdbarch_init): Update.
9539 * hppa-tdep.c (hppa_gdbarch_init): Update.
9540 * h8300-tdep.c (h8300_gdbarch_init): Update.
9541 * frv-tdep.c (frv_gdbarch_init): Update.
9542 * cris-tdep.c (cris_gdbarch_init): Update.
9543 * avr-tdep.c (avr_gdbarch_init): Update.
9544 * arm-tdep.c (arm_gdbarch_init): Update.
9545 * alpha-tdep.c (alpha_gdbarch_init): Update.
9547 2003-03-25 Andrew Cagney <cagney@redhat.com>
9549 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9550 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9551 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9552 * gdbarch.h, gdbarch.c: Regenerate.
9553 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9554 call_dummy_stack_adjust_p.
9555 * vax-tdep.c (vax_gdbarch_init): Ditto.
9556 * v850-tdep.c (v850_gdbarch_init): Ditto.
9557 * sh-tdep.c (sh_gdbarch_init): Ditto.
9558 * s390-tdep.c (s390_gdbarch_init): Ditto.
9559 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9560 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9561 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9562 * mips-tdep.c (mips_gdbarch_init): Ditto.
9563 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9564 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9565 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9566 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9567 * i386-tdep.c (i386_gdbarch_init): Ditto.
9568 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9569 * frv-tdep.c (frv_gdbarch_init): Ditto.
9570 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9571 * cris-tdep.c (cris_gdbarch_init): Ditto.
9572 * avr-tdep.c (avr_gdbarch_init): Ditto.
9573 * arm-tdep.c (arm_gdbarch_init): Ditto.
9574 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9575 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9576 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9577 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9578 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9579 call_dummy_stack_adjust_p.
9580 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9581 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9582 * sparc-tdep.c (sparc32_push_arguments): Update.
9583 * valops.c (hand_function_call): Update.
9585 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9587 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9588 set_gdbarch_char_signed.
9590 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9593 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9595 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9597 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9598 (_initialize_arm_tdep): Don't set tm_print_insn.
9600 2003-03-24 Adam Fedor <fedor@gnu.org>
9602 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9603 * objc-lang.h: Add multiple inclusion protection.
9604 (start_msglist, add_msglist, end_msglist): Additional declarations.
9606 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9608 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9609 value was renamed to ARM_FLOAT_SOFT_FPA.
9611 2003-03-23 Andrew Cagney <cagney@redhat.com>
9613 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9614 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9615 * gdbarch.h, gdbarch.c: Regenerate.
9616 * valops.c (hand_function_call): Update.
9617 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9618 * frame.c (legacy_saved_regs_this_id): Update.
9619 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9620 * dummy-frame.h: Update.
9621 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9622 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9623 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9624 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9625 * config/m68k/tm-sun3.h: Update.
9626 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9628 * x86-64-tdep.c (x86_64_init_abi): Update.
9629 * vax-tdep.c (vax_gdbarch_init): Update.
9630 * v850-tdep.c (v850_gdbarch_init): Update.
9631 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9632 * sh-tdep.c (sh_gdbarch_init): Update.
9633 * s390-tdep.c (s390_gdbarch_init): Update.
9634 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9635 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9636 (frame_get_saved_regs): Update.
9637 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9638 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9639 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9640 * mips-tdep.c (mips_gdbarch_init): Update.
9641 * mcore-tdep.c (mcore_gdbarch_init): Update.
9642 * m68k-tdep.c (m68k_gdbarch_init): Update.
9643 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9644 * ia64-tdep.c (ia64_gdbarch_init): Update.
9645 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9646 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9647 (i386_interix_back_one_frame): Update.
9648 * hppa-tdep.c (hppa_gdbarch_init): Update.
9649 (hppa_init_extra_frame_info): Update.
9650 * h8300-tdep.c (h8300_gdbarch_init): Update.
9651 * frv-tdep.c (frv_gdbarch_init): Update.
9652 * cris-tdep.c (cris_gdbarch_init): Update.
9653 * avr-tdep.c (avr_gdbarch_init): Update.
9654 * arm-tdep.c (arm_gdbarch_init): Update.
9655 * alpha-tdep.c (alpha_gdbarch_init): Update.
9657 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9659 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9660 (arm_get_fp_model): Declare.
9661 * arm-tdep.c (fp_model_strings): New string array.
9662 (arm_fp_model, current_fp_model): New variables.
9663 (arm_get_fp_model): New function.
9664 (arm_set_fp): New function.
9665 (set_fp_model_sfunc): New function.
9666 (show_fp_model): New function.
9667 (_initialize_arm_tdep): Add new command to set/show the FPU.
9668 (arm_extract_return_value): Use arm_get_fp_model.
9669 (arm_store_return_value): Likewise.
9670 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9671 to initialize the floating-point data types.
9672 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9675 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9677 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9678 the current setting of each value.
9679 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9680 new_set and new_show. Use add_setshow_cmd_full and
9681 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9682 commands and add new version as subcommands of "set/show arm".
9684 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9686 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9687 (set_arm_command, show_arm_command): New functions.
9688 (_initialize_arm_tdep): Add them.
9689 (num_disassembly_options): Renamed from num_flavor_options.
9690 (valid_disassembly_styles): Renamed from valid_flavors.
9691 (disassembly_style): Renamed from disassembly_flavor.
9692 (set_disassembly_style_sfunc): Renamed from
9693 set_disassembly_flavor_sfunc.
9694 (set_disassembly_style): Renamed from set_disassembly_flavor.
9695 (arm_othernames): Updated.
9696 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9697 command. Add "set/show arm disassembly" commands. Deprecate
9698 "othernames" command.
9700 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9702 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9703 (arm-tdep.o): Depend on elf_arm_h.
9705 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9707 * Makefile.in (coff_internal_h): Define.
9708 (arm-tdep.o): Update dependencies.
9710 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9712 * arm-tdep.c (prologue_cache): Delete.
9713 (check_prologue_cache, save_prologue_cache): Delete.
9714 (arm_scan_prologue): Don't check or update the prologue_cache.
9715 (arm_gdb_arch_init): Don't initialize it.
9716 (_initialize_arm_tdep): Likewise.
9718 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9720 * MAINTAINERS (tui): Maintainer of tui code.
9722 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9724 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9725 (i386-cygwin-tdep.o): Add dependencies.
9726 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9727 * i386-cygwin-tdep.c: New file.
9728 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9729 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9731 2003-03-20 Andrew Cagney <cagney@redhat.com>
9733 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9734 (handle_inferior_event): Remove code calling
9735 DYNAMIC_TRAMPOLINE_NEXTPC.
9737 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9738 already has a full path.
9740 * main.c (gdb_main): Return 1.
9741 (captured_main): Call error to report an invalid interpreter.
9743 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9744 * alpha-osf1-tdep.c: Include "gdb_string.h".
9746 2003-03-19 J. Brobecker <brobecker@gnat.com>
9748 Continuing work to convert the hppa targets to multiarch partial.
9750 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9751 method, now that hppa_push_dummy_frame has a conformant prototype.
9752 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9753 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9754 for the switch to multiarch partial.
9756 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9758 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9759 when iss is issNull.
9761 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9763 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9764 NUM_REGS bounds check.
9766 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9768 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9769 * mips-tdep.c (gdb_assert.h): Include.
9770 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9771 (mips_register_name): Handle integer registers explicitly. Add
9773 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9774 (mips_lsi33k_reg_names): Don't list integer registers; they're
9775 handled by mips_register_name() now.
9776 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9777 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9778 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9779 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9780 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9782 2003-03-18 Andrew Cagney <cagney@redhat.com>
9784 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9786 * gdbtypes.h (print_scalar_formatted): Update declaration.
9787 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9789 2003-03-18 J. Brobecker <brobecker@gnat.com>
9791 * infrun.c (observer.h): Add #include.
9792 (normal_stop): Add call to observer_notify_normal_stop.
9793 * Makefile.in (infrun.o): Add dependency on observer.h.
9795 2003-03-18 J. Brobecker <brobecker@gnat.com>
9797 Continuing work to convert the hppa targets to multiarch partial.
9798 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9799 parameter. Reformat comment.
9800 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9801 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9802 to match new profile.
9804 2003-03-18 J. Brobecker <brobecker@gnat.com>
9806 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9807 appear to be working in any case.
9809 2003-03-18 J. Brobecker <brobecker@gnat.com>
9811 * observer.c (observer_test_first_observer): New static variable.
9812 (observer_test_second_observer): Likewise.
9813 (observer_test_third_observer): Likewise.
9814 (observer_test_first_notification_function): New static function.
9815 (observer_test_second_notification_function): Likewise.
9816 (observer_test_third_notification_function): Likewise.
9818 2003-03-17 J. Brobecker <brobecker@gnat.com>
9820 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9821 * somsolib.c (gdb_assert.h): Likewise.
9822 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9823 (somsolib.o): Likewise.
9825 2003-03-17 Andrew Cagney <cagney@redhat.com>
9827 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9828 BFD. Simplify setting of di.endian.
9830 2003-03-17 Andrew Cagney <cagney@redhat.com>
9832 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9833 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9835 From Elena Zannoni <ezannoni@redhat.com>
9836 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9837 vector and floating-point parameters.
9838 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9840 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9842 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9844 * MAINTAINERS: Remove my name from several maintainership roles.
9846 2003-03-17 Andrew Cagney <cagney@redhat.com>
9848 Fix frame off-by-one bug.
9849 * frame-unwind.h (frame_this_id_ftype): Replace
9850 frame_unwind_id_ftype.
9851 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9852 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9853 with "prev_register".
9854 * frame-unwind.c (frame_unwind_find_by_pc): Return
9855 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9857 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9858 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9859 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9860 (dummy_frame_unwind): Update.
9861 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9862 sentinel_frame_register_unwind.
9863 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9864 (sentinel_frame_unwinder): Update.
9865 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9866 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9867 * frame.c (create_sentinel_frame): Update. Initialize
9868 "prologue_cache" instead of "unwind_cache".
9869 (frame_register_unwind): Call this frame's prev_register with the
9870 next frame and this frame's prologue cache.
9871 (get_prev_frame): Simplify. Always call prev frame's this_id with
9872 this frame and prev frame's prologue cache. Document that this
9873 call is shifted one to the left when compared to the
9874 frame_register_unwind call.
9875 (legacy_saved_regs_prev_register): Replace
9876 frame_saved_regs_register_unwind.
9877 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9878 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9879 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9880 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9881 (d10v_frame_unwind): Update.
9882 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9883 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9884 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9885 "saved_regs" with "this_saved_regs".
9887 2003-03-16 Andrew Cagney <cagney@redhat.com>
9889 * frame.c (frame_pop): Don't call target_store_registers. Fix
9890 problem reported by Mark Kettenis.
9892 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9894 * i386-tdep.c (i386_register_type): Renamed from
9895 i386_register_virtual_type. Adjust function signature.
9896 (i386_gdbarch_init): Set register_type instead of
9897 deprecated_max_register_raw_size,
9898 deprecated_max_register_virtual_size and register_virtual_type.
9900 2003-03-14 Andrew Cagney <cagney@redhat.com>
9902 * frame.c (get_prev_frame): When a legacy frame, always call
9903 legacy_get_prev_frame. Simplify unwind code using assumption that
9904 the unwinder is new.
9905 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9906 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9907 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9909 2003-03-14 Andrew Cagney <cagney@redhat.com>
9911 * frame.c (get_saved_register): Delete function.
9912 * frame.h (get_saved_register): Delete declaration.
9913 * xstormy16-tdep.c: Update comment.
9914 * regcache.h: Update comments.
9915 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9916 get_saved_register and extract_address, use
9917 frame_read_unsigned_register.
9918 (sparc_frame_saved_pc): Ditto.
9919 (sparc_get_saved_register): Instead of get_saved_register, use
9921 (sparc_pop_frame): Ditto.
9922 * findvar.c: Update comments.
9923 (value_of_register): Call frame_register instead of
9925 (value_from_register): Ditto.
9926 * config/sparc/tm-sparc.h: Update comment.
9927 * breakpoint.c: Update comment.
9929 2003-03-14 Andrew Cagney <cagney@redhat.com>
9931 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9933 * gdbarch.h, gdbarch.c: Re-generate.
9934 * frame.h: Update comments.
9935 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9936 * x86-64-tdep.c (x86_64_init_abi): Update.
9937 * sparc-tdep.c (sparc_gdbarch_init): Update.
9938 * sh-tdep.c (sh_gdbarch_init): Update.
9939 * mips-tdep.c (mips_gdbarch_init): Update.
9940 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9941 * cris-tdep.c (cris_gdbarch_init): Update.
9942 * ia64-tdep.c (ia64_gdbarch_init): Update.
9943 * frame.c (frame_register): Update.
9944 (get_saved_register): Update.
9945 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9947 2003-03-13 Andrew Cagney <cagney@redhat.com>
9949 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9950 * gdbarch.h, gdbarch.c: Regenerate.
9951 * valops.c (hand_function_call): Update comment.
9952 * stack.c (return_command): Update comment.
9953 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9954 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9956 * x86-64-tdep.c (x86_64_init_abi): Update.
9957 * vax-tdep.c (vax_gdbarch_init): Update.
9958 * v850-tdep.c (v850_gdbarch_init): Update.
9959 * sparc-tdep.c (sparc_gdbarch_init): Update.
9960 * sh-tdep.c (sh_gdbarch_init): Update.
9961 * s390-tdep.c (s390_gdbarch_init): Update.
9962 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9963 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9964 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9965 * mips-tdep.c (mips_gdbarch_init): Update.
9966 * mcore-tdep.c (mcore_gdbarch_init): Update.
9967 * m68k-tdep.c (m68k_gdbarch_init): Update.
9968 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9969 * ia64-tdep.c (ia64_gdbarch_init): Update.
9970 * i386-tdep.c (i386_gdbarch_init): Update.
9971 * hppa-tdep.c (hppa_gdbarch_init): Update.
9972 * h8300-tdep.c (h8300_gdbarch_init): Update.
9973 * frv-tdep.c (frv_gdbarch_init): Update.
9974 * cris-tdep.c (cris_gdbarch_init): Update.
9975 * avr-tdep.c (avr_gdbarch_init): Update.
9976 * arm-tdep.c (arm_gdbarch_init): Update.
9977 * alpha-tdep.c (alpha_gdbarch_init): Update.
9979 2003-03-13 Andrew Cagney <cagney@redhat.com>
9981 * frame.c (legacy_frame_p): New function.
9982 (get_prev_frame): Use legacy_frame_p.
9983 * frame.h (legacy_frame_p): Declare.
9985 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9987 * MAINTAINERS (write after approval): Alphabetically
9990 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
9992 * MAINTAINERS (write after approval): Add myself.
9994 2003-03-12 Andrew Cagney <cagney@redhat.com>
9996 * frame.c (get_prev_frame): Rename the frame parameter to
9998 (get_next_frame, legacy_get_prev_frame): Ditto.
10000 2003-03-12 Andrew Cagney <cagney@redhat.com>
10002 * frame.c (get_current_frame): Check target_has_registers before
10003 checking target_has_stack.
10004 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10005 instead of deprecated_selected_frame.
10006 * findvar.c (value_of_register): Pass "frame", not
10007 deprecated_selected_frame, to value_of_builtin_reg.
10009 2003-03-12 Andrew Cagney <cagney@redhat.com>
10011 * regcache.c (regcache_cooked_write_signed): New function.
10012 (regcache_cooked_write_unsigned): New function.
10013 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10014 (regcache_cooked_read_signed): Fix regnum in range assertion.
10015 * regcache.h (regcache_cooked_write_signed): Declare.
10016 (regcache_cooked_write_unsigned): Declare.
10018 2003-03-12 Andrew Cagney <cagney@redhat.com>
10020 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10021 * gdbarch.h, gdbarch.c: Re-generate.
10022 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10023 * x86-64-tdep.h: Update.
10024 * x86-64-tdep.c (x86_64_init_abi): Update.
10025 * v850-tdep.c (v850_gdbarch_init): Update.
10026 * sparc-tdep.c (sparc_gdbarch_init): Update.
10027 * sh-tdep.c (sh_gdbarch_init): Update.
10028 * s390-tdep.c (s390_gdbarch_init): Update.
10029 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10030 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10031 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10032 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10033 * mips-tdep.c (mips_gdbarch_init): Update.
10034 * mcore-tdep.c (mcore_gdbarch_init): Update.
10035 * m68k-tdep.c (m68k_gdbarch_init): Update.
10036 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10037 * ia64-tdep.c (ia64_gdbarch_init): Update.
10038 * i386-tdep.c (i386_gdbarch_init): Update.
10039 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10040 * hppa-tdep.c (hppa_gdbarch_init): Update.
10041 * h8300-tdep.c (h8300_gdbarch_init): Update.
10042 * frv-tdep.c (frv_gdbarch_init): Update.
10043 * cris-tdep.c (cris_gdbarch_init): Update.
10044 * avr-tdep.c (avr_gdbarch_init): Update.
10045 * arm-tdep.c (arm_gdbarch_init): Update.
10046 * alpha-tdep.c (alpha_gdbarch_init): Update.
10047 * sh-tdep.c (sh_init_extra_frame_info): Update.
10048 (sh64_init_extra_frame_info): Update.
10049 * ns32knbsd-nat.c (frame_num_args): Update.
10050 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10051 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10052 (xstormy16_frame_chain_valid): Update.
10053 * vax-tdep.c (vax_saved_pc_after_call): Update.
10054 * v850-tdep.c (v850_frame_chain): Update.
10055 (v850_pop_frame): Update.
10056 (v850_init_extra_frame_info): Update.
10057 * sparc-tdep.c (setup_arbitrary_frame): Update.
10058 * ns32k-tdep.c (umax_frame_num_args): Update.
10059 * s390-tdep.c (s390_pop_frame_regular): Update.
10060 * mn10300-tdep.c (mn10300_frame_chain): Update.
10061 (mn10300_pop_frame_regular): Update.
10062 (mn10300_init_extra_frame_info): Update.
10063 * mips-tdep.c (mips_init_frame_pc_first): Update.
10064 (mips_frame_chain): Update.
10065 (mips_pop_frame): Update.
10066 * mcore-tdep.c (mcore_frame_chain): Update.
10067 (mcore_pop_frame): Update.
10068 (mcore_init_extra_frame_info): Update.
10069 * arch-utils.c (init_frame_pc_default): Update.
10070 * m68k-tdep.c (isi_frame_num_args): Update.
10071 (delta68_frame_num_args): Update.
10072 (news_frame_num_args): Update.
10073 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10074 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10075 (alpha_frame_chain): Update.
10076 (alpha_pop_frame): Update.
10077 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10078 (hppa_init_extra_frame_info): Update.
10079 (hppa_frame_chain): Update.
10080 (hppa_frame_chain_valid): Update.
10081 * cris-tdep.c (cris_init_extra_frame_info): Update.
10082 * avr-tdep.c (avr_init_extra_frame_info): Update.
10083 * arm-tdep.c (arm_frame_chain_valid): Update.
10084 (arm_init_extra_frame_info): Update.
10085 (arm_pop_frame): Update.
10086 * frame.c (frame_pc_unwind): Update.
10087 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10088 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10089 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10090 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10091 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10092 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10094 2003-03-12 Andrew Cagney <cagney@redhat.com>
10096 Eliminate the need for POP_FRAME.
10097 * frame.c (do_frame_unwind_register): New function.
10098 (frame_pop): When no POP_FRAME, pop the frame using register
10099 unwind and a scratch regcache.
10100 (frame_saved_regs_pop): Delete function.
10101 (trad_frame_unwinder): Update.
10102 * d10v-tdep.c (d10v_frame_pop): Delete function.
10103 (d10v_frame_unwind): Update.
10104 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10105 (sentinel_frame_unwinder): Update.
10106 * dummy-frame.c (dummy_frame_pop): Delete function.
10107 (dummy_frame_unwind): Update.
10108 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10109 (struct frame_unwind): Update.
10111 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10113 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10114 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10115 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10116 Do range checks on register number obtained from debugging info.
10117 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10118 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10119 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10121 (do_fp_register_row): Fix typo which caused double type to be
10122 used when attempting to unpack a float.
10124 2003-03-11 J. Brobecker <brobecker@gnat.com>
10126 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10128 2003-03-11 Andrew Cagney <cagney@redhat.com>
10130 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10131 frame. Problem found by Corinna Vinschen.
10133 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10135 * doublest.c (floatformat_from_length): Accept also
10136 the real size of 'long double' type.
10138 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10140 From Klee Dienes <kdienes@apple.com>:
10141 * breakpoint.c (bpstat_copy): Copy the command lines as well
10142 as the old value, to match what is freed in bpstat_clear.
10144 2003-03-10 David Carlton <carlton@math.stanford.edu>
10146 * minsyms.c (add_minsym_to_hash_table): Replace
10147 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10148 (compare_minimal_symbols, compact_minimal_symbols)
10149 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10150 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10151 of DEPRECATED_SYMBOL_MATCHES_NAME.
10152 (lookup_minimal_symbol_solib_trampoline): Ditto.
10154 2003-03-10 Andrew Cagney <cagney@redhat.com>
10156 * regcache.h (regcache_cooked_read_ftype): Define.
10157 (regcache_save, regcache_restore): Add a cooked_read parameter.
10158 * regcache.c (regcache_save, regcache_restore): Update.
10159 (do_cooked_read): New function.
10160 (regcache_cpy): Pass do_cooked_read to regcache_save and
10163 2003-03-10 Andrew Cagney <cagney@redhat.com>
10165 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10166 * gdbarch.h, gdbarch.c: Re-generate.
10167 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10168 * x86-64-tdep.h: Update.
10169 * x86-64-tdep.c (x86_64_init_abi): Update.
10170 * v850-tdep.c (v850_gdbarch_init): Update.
10171 * sparc-tdep.c (sparc_gdbarch_init): Update.
10172 * sh-tdep.c (sh_gdbarch_init): Update.
10173 * s390-tdep.c (s390_gdbarch_init): Update.
10174 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10175 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10176 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10177 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10178 * mips-tdep.c (mips_gdbarch_init): Update.
10179 * mcore-tdep.c (mcore_gdbarch_init): Update.
10180 * m68k-tdep.c (m68k_gdbarch_init): Update.
10181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10182 * ia64-tdep.c (ia64_gdbarch_init): Update.
10183 * i386-tdep.c (i386_gdbarch_init): Update.
10184 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10185 * hppa-tdep.c (hppa_gdbarch_init): Update.
10186 * h8300-tdep.c (h8300_gdbarch_init): Update.
10187 * frv-tdep.c (frv_gdbarch_init): Update.
10188 * cris-tdep.c (cris_gdbarch_init): Update.
10189 * avr-tdep.c (avr_gdbarch_init): Update.
10190 * arm-tdep.c (arm_gdbarch_init): Update.
10191 * alpha-tdep.c (alpha_gdbarch_init): Update.
10192 * sh-tdep.c (sh_init_extra_frame_info): Update.
10193 (sh64_init_extra_frame_info): Update.
10194 * ns32knbsd-nat.c (frame_num_args): Update.
10195 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10196 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10197 (xstormy16_frame_chain_valid): Update.
10198 * vax-tdep.c (vax_saved_pc_after_call): Update.
10199 * v850-tdep.c (v850_frame_chain): Update.
10200 (v850_pop_frame): Update.
10201 (v850_init_extra_frame_info): Update.
10202 * sparc-tdep.c (setup_arbitrary_frame): Update.
10203 * ns32k-tdep.c (umax_frame_num_args): Update.
10204 * s390-tdep.c (s390_pop_frame_regular): Update.
10205 * mn10300-tdep.c (mn10300_frame_chain): Update.
10206 (mn10300_pop_frame_regular): Update.
10207 (mn10300_init_extra_frame_info): Update.
10208 * mips-tdep.c (mips_init_frame_pc_first): Update.
10209 (mips_frame_chain): Update.
10210 (mips_pop_frame): Update.
10211 * mcore-tdep.c (mcore_frame_chain): Update.
10212 (mcore_pop_frame): Update.
10213 (mcore_init_extra_frame_info): Update.
10214 * arch-utils.c (init_frame_pc_default): Update.
10215 * m68k-tdep.c (isi_frame_num_args): Update.
10216 (delta68_frame_num_args): Update.
10217 (news_frame_num_args): Update.
10218 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10219 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10220 (alpha_frame_chain): Update.
10221 (alpha_pop_frame): Update.
10222 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10223 (hppa_init_extra_frame_info): Update.
10224 (hppa_frame_chain): Update.
10225 (hppa_frame_chain_valid): Update.
10226 * cris-tdep.c (cris_init_extra_frame_info): Update.
10227 * avr-tdep.c (avr_init_extra_frame_info): Update.
10228 * arm-tdep.c (arm_frame_chain_valid): Update.
10229 (arm_init_extra_frame_info): Update.
10230 (arm_pop_frame): Update.
10231 * frame.c (frame_pc_unwind): Update.
10232 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10233 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10234 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10235 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10236 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10237 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10239 2003-03-10 Andrew Cagney <cagney@redhat.com>
10241 * gdbarch.sh (gdbarch_unwind_pc): New method.
10242 * gdbarch.h, gdbarch.c: Regenerate.
10243 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10244 but use read_pc and FRAME_SAVED_PC as fall backs.
10245 (frame_saved_regs_pc_unwind): Delete function.
10246 (trad_frame_unwinder): Update.
10247 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10248 (struct frame_unwind): Update.
10249 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10250 (dummy_frame_unwind): Update.
10251 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10252 (sentinel_frame_unwinder): Update.
10253 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10254 (d10v_frame_unwind): Update.
10255 (d10v_unwind_pc): New function.
10256 (d10v_gdbarch_init): Set unwind_pc.
10258 2003-03-10 Andrew Cagney <cagney@redhat.com>
10260 * gdbarch.h: Re-generate.
10262 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10264 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10267 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10269 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10271 2003-03-08 Andrew Cagney <cagney@redhat.com>
10273 * cli-out.c: Update copyright.
10274 (cli_out_data): Define typedef. Use instead of ui_out_data.
10276 2003-03-08 Andrew Cagney <cagney@redhat.com>
10278 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10281 2003-03-07 Andrew Cagney <cagney@redhat.com>
10283 * gdbarch.sh: Don't generate two macro definitions when an
10284 undefined macro taking no arguments.
10285 * gdbarch.h: Regenerate.
10287 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10289 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10290 (x86_64_unwind_dummy_id): New functions.
10291 (x86_64_init_abi): Register these two new functions.
10293 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10295 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10296 (x86_64_skip_prologue): Move prologue detection to
10298 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10300 2003-03-05 Andrew Cagney <cagney@redhat.com>
10302 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10303 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10304 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10305 to use unwind_dummy_id when a dummy frame.
10306 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10308 * gdbarch.h, gdbarch.c: Regneerate.
10310 2003-03-05 Andrew Cagney <cagney@redhat.com>
10312 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10313 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10314 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10317 2003-03-05 Andrew Cagney <cagney@redhat.com>
10319 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10320 (struct d10v_unwind_cache): Delete field "frameless". Replace
10321 "next_addr" with "sp_offset". Add "r11_offset".
10322 (d10v_frame_unwind_cache): Update.
10323 (prologue_find_regs): Update. When "mv r11, sp", save the
10324 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10325 RN was saved in r11_offset.
10327 2003-03-05 Andrew Cagney <cagney@redhat.com>
10329 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10330 cached PC value in the next frame.
10332 2003-03-05 Andrew Cagney <cagney@redhat.com>
10334 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10335 "id_unwind_cache" with "id".
10336 (frame_id_unwind): Delete declaration.
10337 * frame.c (frame_id_unwind): Delete function.
10338 (get_prev_frame): Call the frame id unwind method directly. Store
10339 the returned next frame's ID value in NEXT_FRAME. Note that there
10340 is a problem with the wrong unwind ID being called with the wrong
10343 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10345 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10347 2003-03-05 James Ingham <jingham@apple.com>
10348 Daniel Jacobowitz <drow@mvista.com>
10350 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10351 (auto_cp_abi): New variable.
10352 (current_cp_abi, num_cp_abis): Make static.
10353 (CP_ABI_MAX): Define.
10354 (cp_abis): Turn into an array.
10355 (value_virtual_fn_field): Fix formatting.
10356 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10358 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10359 (list_cp_abis, _initialize_cp_abi): New functions.
10360 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10361 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10362 switch_to_cp_abi. Update prototype for register_cp_abi.
10363 * Makefile.in (cp-abi.o): Update dependencies.
10364 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10365 instead of switch_to_cp_abi.
10366 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10368 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10370 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10372 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10374 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10375 * dwarf2loc.c: Include "regcache.h".
10376 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10378 * Makefile.in (dwarf2loc.o): Update dependencies.
10380 2003-03-04 Theodore A. Roth <troth@openavr.org>
10382 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10383 number of io registers reported by remote target is not a multiple of
10386 2003-03-04 David Carlton <carlton@math.stanford.edu>
10388 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10389 (lookup_symbol_aux_psymtabs): Update call to
10390 lookup_partial_symbol.
10391 (lookup_transparent_type, find_main_psymtab)
10392 (make_symbol_overload_list): Ditto.
10394 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10396 * MAINTAINERS (Write after approval): Update my email address.
10398 2003-03-03 Andrew Cagney <cagney@redhat.com>
10400 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10401 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10402 predicate. Replace MAX_REGISTER_RAW_SIZE.
10403 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10404 MAX_REGISTER_VIRTUAL_SIZE.
10405 * regcache.c (legacy_max_register_raw_size): New function.
10406 (legacy_max_register_virtual_size): New function.
10407 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10408 (MAX_REGISTER_RAW_SIZE): Define.
10409 (legacy_max_register_raw_size): Declare.
10410 (legacy_max_register_virtual_size): Declare.
10411 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10412 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10413 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10414 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10415 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10416 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10417 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10418 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10419 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10420 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10421 * vax-tdep.c (vax_gdbarch_init): Update.
10422 * v850-tdep.c (v850_gdbarch_init): Update.
10423 * sparc-tdep.c (sparc_gdbarch_init): Update.
10424 * sh-tdep.c (sh_gdbarch_init): Update.
10425 * s390-tdep.c (s390_gdbarch_init): Update.
10426 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10427 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10428 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10429 * mips-tdep.c (mips_gdbarch_init): Update.
10430 * mcore-tdep.c (mcore_gdbarch_init): Update.
10431 * m68k-tdep.c (m68k_gdbarch_init): Update.
10432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10433 * ia64-tdep.c (ia64_gdbarch_init): Update.
10434 * i386-tdep.c (i386_gdbarch_init): Update.
10435 * hppa-tdep.c (hppa_gdbarch_init): Update.
10436 * h8300-tdep.c (h8300_gdbarch_init): Update.
10437 * frv-tdep.c (frv_gdbarch_init): Update.
10438 * cris-tdep.c (cris_gdbarch_init): Update.
10439 * avr-tdep.c (avr_gdbarch_init): Update.
10440 * arm-tdep.c (arm_gdbarch_init): Update.
10441 * alpha-tdep.c (alpha_gdbarch_init): Update.
10442 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10443 max_register_raw_size or max_register_virtual_size.
10445 2003-03-03 David Carlton <carlton@math.stanford.edu>
10447 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10448 SYMBOL_MATCHES_NAME, add comment.
10449 (SYMBOL_MATCHES_NATURAL_NAME): New.
10450 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10451 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10452 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10453 * symtab.c (lookup_partial_symbol): Use
10454 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10456 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10457 SYMBOL_MATCHES_NAME.
10460 2003-03-03 David Carlton <carlton@math.stanford.edu>
10462 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10463 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10464 by regexp matching against SYMBOL_NATURAL_NAME.
10466 2003-03-03 David Carlton <carlton@math.stanford.edu>
10468 * linespec.c (find_method): Extract code into collect_methods.
10469 (collect_methods): New.
10471 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10473 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10476 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10477 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10479 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10481 * arch-utils.c (generic_register_byte): Fix to use the loop index
10482 and not regnum when summing the size of all registers up to regnum.
10484 2003-03-01 Andrew Cagney <cagney@redhat.com>
10486 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10487 FRAME_INIT_SAVED_REGS.
10488 * gdbarch.h, gdbarch.c: Regenerate.
10489 * stack.c (frame_info): Update.
10490 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10491 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10492 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10493 * ns32k-tdep.c (ns32k_pop_frame): Update.
10494 * mips-tdep.c (mips_pop_frame): Update.
10495 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10496 * ia64-tdep.c (ia64_frame_chain): Update.
10497 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10498 (ia64_frameless_function_invocation): Update.
10499 (ia64_init_extra_frame_info): Update.
10500 (ia64_pop_frame_regular): Update.
10501 * frame.h (struct frame_info): Update comment.
10502 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10503 * frame.c (frame_saved_regs_register_unwind): Update.
10504 (frame_saved_regs_register_unwind): Update.
10505 (deprecated_generic_get_saved_register): Update.
10506 * cris-tdep.c: Update comment.
10507 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10509 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10510 * x86-64-tdep.c (x86_64_init_abi): Update.
10511 * vax-tdep.c (vax_gdbarch_init): Update.
10512 * v850-tdep.c (v850_gdbarch_init): Update.
10513 * sparc-tdep.c (sparc_gdbarch_init): Update.
10514 * sh-tdep.c (sh_gdbarch_init): Update.
10515 * s390-tdep.c (s390_gdbarch_init): Update.
10516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10517 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10518 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10519 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10520 * mips-tdep.c (mips_gdbarch_init): Update.
10521 * mcore-tdep.c (mcore_gdbarch_init): Update.
10522 * m68k-tdep.c (m68k_gdbarch_init): Update.
10523 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10524 * ia64-tdep.c (ia64_gdbarch_init): Update.
10525 * i386-tdep.c (i386_gdbarch_init): Update.
10526 * frv-tdep.c (frv_gdbarch_init): Update.
10527 * avr-tdep.c (avr_gdbarch_init): Update.
10528 * arm-tdep.c (arm_gdbarch_init): Update.
10529 * alpha-tdep.c (alpha_gdbarch_init): Update.
10531 2003-03-01 Andrew Cagney <cagney@redhat.com>
10533 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10534 option enum and switch. When no windows, set the interpreter to
10537 2003-03-01 Andrew Cagney <cagney@redhat.com>
10539 * main.c (captured_main): Replace magic option characters with an
10542 2003-03-01 Andrew Cagney <cagney@redhat.com>
10544 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10545 INIT_EXTRA_FRAME_INFO.
10546 * gdbarch.h, gdbarch.c: Regenerate.
10547 * arm-tdep.c: Update comments.
10548 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10549 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10550 * frame.h, avr-tdep.c: Ditto.
10551 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10552 (create_new_frame, legacy_get_prev_frame): Ditto.
10553 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10554 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10556 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10557 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10558 * v850-tdep.c (v850_gdbarch_init): Ditto.
10559 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10560 * sh-tdep.c (sh_gdbarch_init): Ditto.
10561 * s390-tdep.c (s390_gdbarch_init): Ditto.
10562 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10563 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10564 * mips-tdep.c (mips_gdbarch_init): Ditto.
10565 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10567 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10568 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10569 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10570 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10571 * frv-tdep.c (frv_gdbarch_init): Ditto.
10572 * cris-tdep.c (cris_gdbarch_init): Ditto.
10573 * avr-tdep.c (avr_gdbarch_init): Ditto.
10574 * arm-tdep.c (arm_gdbarch_init): Ditto.
10575 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10576 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10578 2003-03-01 Andrew Cagney <cagney@redhat.com>
10580 * gdbarch.sh (register_type): New function with predicate.
10581 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10582 * gdbarch.h, gdbarch.c: Re-generate.
10583 * arch-utils.c (generic_register_byte): Use generic_register_size.
10584 (generic_register_size): When available, use
10585 gdbarch_register_type.
10586 * regcache.c (init_regcache_descr): When available, initialize the
10587 register type array using gdbarch_register_type. If the
10588 architecture supplies gdbarch_register_type, do not use the legacy
10590 * d10v-tdep.c (d10v_register_type): Replace
10591 d10v_register_virtual_type.
10592 (d10v_gdbarch_init): Set register_type instead of
10593 register_virtual_type.
10595 2003-03-01 Andrew Cagney <cagney@redhat.com>
10597 * Makefile.in (ax-gdb.o): Update dependencies.
10598 * ax-gdb.c: Include "regcache.h".
10599 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10600 * findvar.c (value_of_register): Ditto.
10601 * infcmd.c (default_print_registers_info): Ditto.
10603 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10605 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10606 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10608 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10610 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10613 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10615 * Makefile.in (dwarf2loc.o): Update dependencies.
10616 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10617 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10618 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10619 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10620 (locexpr_tracepoint_var_ref): New function.
10621 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10623 2003-02-28 Andrew Cagney <cagney@redhat.com>
10625 * regcache.c (register_size): New function.
10626 * regcache.h (register_size): Declare
10627 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10628 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10630 2003-02-28 David Carlton <carlton@math.stanford.edu>
10632 * linespec.c (decode_compound): Extract code into find_method.
10633 (find_method): New.
10635 2003-02-28 J. Brobecker <brobecker@gnat.com>
10637 * Makefile.in: Add rules to build and link in observer.o.
10639 2003-02-27 J. Brobecker <brobecker@gnat.com>
10641 * observer.c: Minor comments edits.
10643 2003-02-27 J. Brobecker <brobecker@gnat.com>
10645 * observer.h, observer.c: New file.
10647 2003-02-27 Andrew Cagney <cagney@redhat.com>
10649 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10651 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10653 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10654 (M6812_OP_STS_EXT): Likewise.
10655 (m6811_prologue): Use the above to recognize prologue.
10656 (m6812_prologue): Likewise.
10658 2003-02-27 David Carlton <carlton@math.stanford.edu>
10660 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10662 (compare_psymbols): Ditto.
10663 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10665 2003-02-27 Michael Snyder <msnyder@redhat.com>
10667 * f-lang.c (build_fortran_types): New function.
10668 (_initialize_f_language): Gdbarch-register built-in fortran types.
10669 * doublest.c (extract_floating): Fix warning text.
10671 2003-02-27 Andrew Cagney <cagney@redhat.com>
10673 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10674 predicate. Replaces PUSH_DUMMY_FRAME.
10675 * gdbarch.h, gdbarch.c: Regnerate.
10676 * valops.c (hand_function_call): Update. Call
10677 generic_push_dummy_frame directly.
10678 * vax-tdep.c (vax_gdbarch_init): Update.
10679 * sparc-tdep.c (sparc_gdbarch_init): Update.
10680 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10681 * m68k-tdep.c (m68k_gdbarch_init): Update.
10682 * hppa-tdep.c (hppa_gdbarch_init): Update.
10683 * alpha-tdep.c (alpha_gdbarch_init): Update.
10684 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10685 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10686 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10687 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10688 push_dummy_frame to generic_push_dummy_frame.
10689 * v850-tdep.c (v850_gdbarch_init): Ditto.
10690 * sh-tdep.c (sh_gdbarch_init): Ditto.
10691 * s390-tdep.c (s390_gdbarch_init): Ditto.
10692 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10693 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10694 * mips-tdep.c (mips_gdbarch_init): Ditto.
10695 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10697 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10698 * i386-tdep.c (i386_gdbarch_init): Ditto.
10699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10700 * frv-tdep.c (frv_gdbarch_init): Ditto.
10701 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10702 * cris-tdep.c (cris_gdbarch_init): Ditto.
10703 * avr-tdep.c (avr_gdbarch_init): Ditto.
10704 * arm-tdep.c (arm_gdbarch_init): Ditto.
10706 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10708 * mips-tdep.c (show_mips_abi): New function.
10709 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10710 command ``show mips abi''.
10712 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10714 From Elena Zannoni <ezannoni@redhat.com>
10715 * dbxread.c (process_one_symbol): Only record line 0 if one or
10716 more sline entries have been seen for the function.
10718 2003-02-26 Michael Chastain <mec@shout.net>
10720 * configure: Regenerate with autoconf 000227.
10722 2003-02-26 Michael Chastain <mec@shout.net>
10724 Close PR build/660.
10725 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10726 for old libc5/glibc.
10727 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10729 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10731 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10732 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10734 2003-02-26 Michael Chastain <mec@shout.net>
10736 * configure.in: New variable HAVE_UINTPTR_T.
10737 * configure, config.in: Regenerated.
10739 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10742 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10744 2003-02-25 Andrew Cagney <cagney@redhat.com>
10746 * frame.c (get_prev_frame): Add comment on check for
10747 inside_entry_func. Only check for inside_entry_file when not a
10748 dummy and not a sentinel. Check that the new frame is not inner
10751 2003-02-25 Andrew Cagney <cagney@redhat.com>
10753 * frame.c (frame_debug): New variable.
10754 (_initialize_frame): Add "set/show debug frame" command.
10755 (get_prev_frame): When frame_debug, print reason why unwind
10758 2003-02-25 Michael Chastain <mec@shout.net>
10760 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10761 to avoid uintptr_t definition problems.
10763 2003-02-25 David Carlton <carlton@math.stanford.edu>
10765 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10766 (SYMBOL_LINKAGE_NAME): Ditto.
10767 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10768 SYMBOL_LINKAGE_NAME.
10769 (struct general_symbol_info): Expand comment.
10770 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10771 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10772 (SYMBOL_MATCHES_REGEXP): Ditto.
10773 * symtab.c (symbol_natural_name): New function.
10774 * objfiles.h: Replace all uses of SYMBOL_NAME by
10775 DEPRECATED_SYMBOL_NAME.
10776 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10777 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10778 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10779 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10780 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10781 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10782 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10783 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10784 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10785 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10786 * ada-exp.y: Ditto.
10787 * ada-exp.y: Update copyright.
10788 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10789 * cp-valprint.c: Ditto.
10791 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10793 * infptrace.c (detach): Do not flag error if ptrace detach fails
10794 and errno is set to ESRCH.
10796 2003-02-24 Andrew Cagney <cagney@redhat.com>
10798 * infptrace.c (udot_info): Change type of udot_off to long. Use
10799 paddr when printing udot_off's value.
10801 2003-02-24 David Carlton <carlton@math.stanford.edu>
10803 * symtab.c (make_symbol_overload_list): Only read in partial
10804 symtabs containing a matching partial symbol.
10806 2003-02-24 David Carlton <carlton@math.stanford.edu>
10808 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10809 do the comparison, not strcmp.
10810 * symfile.c (compare_psymbols): Ditto.
10811 * defs.h: Declare strcmp_iw_ordered.
10812 * utils.c (strcmp_iw_ordered): New function.
10814 2003-02-24 Jim Blandy <jimb@redhat.com>
10816 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10817 support, shared libs): Remove my name from here, to better reflect
10820 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10822 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10823 (target_ops): Add to_have_continuable_watchpoint.
10824 * target.c (update_current_target): Add INHERIT line for
10825 to_have_continuable_watchpoint.
10826 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10827 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10828 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10829 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10831 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10833 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10836 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10838 * solib.c (solib_open): Call target defined search function after
10839 failing with solib-search-path.
10840 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10841 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10843 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10845 * MAINTAINERS: Add myself to Write After section.
10847 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10849 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10851 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10853 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10854 (m68hc11_add_reggroups): New function.
10855 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10856 (m68hc11_gdbarch_init): Install the reggroups.
10857 (_initialize_m68hc11_tdep): Initialize them.
10859 2003-02-21 James E Wilson <wilson@tuliptree.org>
10861 * MAINTAINERS: Update my email address.
10863 2003-02-21 David Carlton <carlton@math.stanford.edu>
10865 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10867 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10869 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10870 * symtab.h: Add opaque declarations of struct axs_value and
10872 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10873 (struct location_funcs): New type.
10874 (struct symbol): Add "loc" to aux_value.
10875 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10876 * dwarf2read.c: Include "dwarf2expr.h".
10877 (dwarf2_symbol_mark_computed): New function.
10878 (read_func_scope): Use it.
10879 (var_decode_location): New function.
10880 (new_symbol): Use it.
10881 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10883 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10884 (dwarf2expr_h, dwarf2loc_h): New variables.
10885 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10886 (dwarf2expr.o, dwarf2loc.o): New rules.
10887 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10888 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10890 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10891 * m2-exp.y (yylex): Likewise.
10892 * printcmd.c (address_info, print_frame_args): Likewise.
10893 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10894 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10895 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10896 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10897 * symtab.c (lookup_block_symbol): Likewise.
10899 2003-02-20 Adam Fedor <fedor@gnu.org>
10901 * symtab.h: Remove objc_specific struct
10902 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10903 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10904 Have language_objc use cplus_specific struct.
10906 2003-02-20 Tom Tromey <tromey@redhat.com>
10908 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10909 TYPE_NAME, when printing a String value. PR java/1075.
10911 2003-02-20 Adam Fedor <fedor@gnu.org>
10913 * objc-lang.h (find_methods): Remove declaration.
10914 * objc-lang.c (find_methods): Make static.
10916 2003-02-20 Christopher Faylor <cgf@redhat.com>
10918 * win32-nat.c (get_image_name): Check return value from
10920 (child_xfer_memory): Ditto.
10922 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10924 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10925 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10926 '${exec_prefix}' (in addition to the expansion thereof) as
10928 * configure: Rebuilt.
10930 2003-02-20 David Carlton <carlton@math.stanford.edu>
10932 * symtab.c (search_symbols): Revert the search_symbols part of my
10933 2002-12-23 patch. Add comment.
10935 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10937 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10938 * dbxread.c (elfstab_build_psymtabs): Don't call
10939 install_minimal_symbols.
10940 (stabsect_build_psymtabs): Likewise.
10941 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10943 * somread.c (som_symfile_read): Call install_minimal_symbols
10944 and do_cleanups earlier.
10945 * nlmread.c (nlm_symfile_read): Likewise.
10946 * mdebugread.c (elfmdebug_build_psymtabs): Call
10947 install_minimal_symbols and make appropriate cleanups.
10949 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10951 * solib.c (reload_shared_libraries): New function.
10952 (_initialize_solib): Add callbacks for ``set solib-search-path''
10953 and ``set solib-absolute-prefix''.
10955 2003-02-20 David Carlton <carlton@math.stanford.edu>
10957 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10959 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10960 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10961 * ada-typeprint.c (ada_typedef_print): Ditto.
10962 * ax-gdb.c (gen_var_ref): Ditto.
10963 * breakpoint.c (print_one_breakpoint): Ditto.
10964 * buildsym.c (finish_block): Ditto.
10965 * c-valprint.c (c_val_print): Ditto.
10966 * expprint.c (print_subexp): Ditto.
10967 * findvar.c (locate_var_value): Ditto.
10968 * infcmd.c (jump_command): Ditto.
10969 * linespec.c (decode_line_2, decode_compound): Ditto.
10970 * maint.c (maintenance_translate_address): Ditto.
10971 * objc-lang.c (compare_selectors, compare_classes): Ditto.
10972 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
10974 * p-valprint.c (pascal_val_print): Ditto.
10975 * stabsread.c (define_symbol): Ditto.
10976 * stack.c (print_frame, frame_info, print_block_frame_locals)
10977 (print_frame_arg_vars, return_command): Ditto.
10978 * symfile.c (compare_symbols, compare_psymbols): Ditto.
10979 * symmisc.c (print_symbol): Ditto.
10980 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
10981 (compare_search_syms, print_symbol_info, print_msymbol_info)
10982 (rbreak_command): Ditto.
10983 * tracepoint.c (tracepoints_info): Ditto.
10984 * typeprint.c (typedef_print): Ditto.
10985 * valops.c (value_of_variable, hand_function_call): Ditto.
10986 * cli/cli-cmds.c (edit_command, list_command): Ditto.
10987 * ada-typeprint.c: Update Copyright.
10988 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
10989 * tracepoint.c, cli/cli-cmds.c: Ditto.
10991 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10993 * frame.c (generic_unwind_get_saved_register): Make non-static.
10994 * frame.h (generic_unwind_get_saved_register): Declare.
10995 * mips-tdep.c (read_next_frame_reg): Fetch register from
10996 current regcache when frame is NULL.
10997 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
10999 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11000 instead of frame_register_unwind().
11002 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11004 * remote-sim.c (gdbsim_insert_breakpoint)
11005 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11008 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11010 * remote.c (_initialize_remote): Add commands "set/show remote
11011 hardware-watchpoint-limit" and "set/show remote
11012 hardware-breakpoint-limit".
11013 (remote_hw_watchpoint_limit): Initialize to -1.
11014 (remote_hw_breakpoint_limit): Ditto.
11015 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11017 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11019 * coff-pe-read.c: New file - support reading of minimal symbols from a
11020 portable executable using the export table.
11021 * coff-pe-read.h: New file.
11022 * coffread.c: Include coff-pe-read.h.
11023 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11024 debugging symbols found.
11025 * Makefile.in (SFILES): Add coff-pe-read.o.
11026 (coff_pe_read_h): Define.
11027 (COMMON_OBS): Add coff-pe-read.o.
11028 (coffread.o): Add coff_pe_read_h dependency.
11029 (coff-pe-read.o): New target.
11031 2003-02-19 David Carlton <carlton@math.stanford.edu>
11033 * Makefile.in (SFILES): Add block.c.
11035 (COMMON_OBS): Add block.o.
11037 (x86-64-tdep.o): Add $(block_h).
11038 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11039 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11040 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11041 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11042 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11043 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11044 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11045 * value.h: Add opaque declaration for struct block.
11046 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11047 * ada-lang.h: Ditto.
11048 * x86-64-tdep.c: #include "block.h"
11049 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11050 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11051 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11052 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11053 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11054 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11055 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11056 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11057 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11058 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11059 * symtab.c (block_function): Ditto.
11060 (contained_in): Ditto.
11061 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11062 block.h. Add opaque declaration for struct block.
11063 * symtab.h: Move block_function and contained_in declarations to
11064 block.h. Add opaque declarations for struct block, struct
11066 (struct block): Move to block.h.
11067 (struct blockvector): Ditto.
11068 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11069 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11070 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11071 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11072 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11074 * block.c: New file.
11075 * block.h: New file.
11077 2003-02-19 Theodore A. Roth <troth@openavr.org>
11079 * avr-tdep.c (avr_extract_return_value): Remove function.
11080 (avr_store_return_value): Remove function.
11081 (avr_extract_struct_value_address): Remove function.
11082 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11084 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11086 * rs6000-tdep.c: Include "gdb_assert.h".
11087 (registers_e500): Add "acc" and "spefscr".
11088 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11089 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11090 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11092 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11094 2003-02-18 Keith Seitz <keiths@redhat.com>
11096 * Makefile.in: Add gdbtk-interps.c.
11098 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11100 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11101 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11103 2003-02-18 Andrew Cagney <cagney@redhat.com>
11105 * symtab.h (struct objfile): Add opaque declaration.
11107 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11109 From Jim Ingham <jingham@apple.com>:
11110 * dbxread.c (process_one_symbol): Use last_function_start rather
11111 than function_start_offset to find the real beginning of the
11112 current function. The latter is just the text section offset on
11113 some systems, the former is always the real function start.
11115 2003-02-17 Andrew Cagney <cagney@redhat.com>
11117 * configure.in: Revert ${target} != ${host}.
11119 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11121 * configure.in (Makefile): Use the test ${target} != ${host},
11122 instead of the absence of the "nm.h" file, to determine of the
11123 configuration non-native.
11124 * configure: Regenerate.
11126 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11128 From Brian Ford <ford@vss.fsi.com>
11130 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11131 conditionalize tui_active test.
11132 (lookup_cmd_1): Ditto.
11134 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11136 * configure.in: Add check for _etext.
11137 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11139 * config.in, configure: regenerated.
11141 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11143 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11145 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11147 * main.c (tui_version): Delete variable.
11148 (captured_main): When --tui, set interpreter_p to "tui" instead of
11149 enabling tui_version.
11150 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11152 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11153 * cli/cli-cmds.c (disassemble_command): Ditto.
11154 * defs.h (tui_version): Delete declaration.
11155 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11156 (tui-interp.o): Add rules.
11157 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11159 2003-02-14 Christopher Faylor <cgf@redhat.com>
11161 * win32-nat.c (register_loaded_dll): Correctly set address range for
11164 2003-02-12 Jason Molenda (jmolenda@apple.com)
11166 * symmisc.c (print_objfile_statistics): Include information about
11167 the number of psymtabs and symtabs in each object file.
11169 2003-02-13 Keith R Seitz <keiths@redhat.com>
11171 * main.h (struct captured_main_args): Add interpreter_p.
11172 * main.c (captured_main): Initialize interpreter_p from context.
11173 * gdb.c (main): Set interpreter_p argument.
11174 * Makefile.in (gdb.o): Add dependency for interps.h.
11176 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11178 * event-top.c (cli_command_loop): Delete declaration.
11179 (_initialize_event_loop): Delete function setting event_loop_hook.
11180 * event-top.h (cli_command_loop): Declare. Update copyright.
11181 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11182 * interps.c (current_interp_command_loop): When event_loop_p, call
11185 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11187 * interps.h (interp_command_loop_ftype): Change return type to
11190 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11192 * x86-64-tdep.c (x86_64_extract_return_value)
11193 (x86_64_store_return_value): Use regcache instead of regbuf.
11194 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11195 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11197 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11199 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11200 * aclocal.m4: Regenerate.
11201 * configure: Regenerate.
11203 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11204 TCL_LD_SEARCH_FLAGS.
11206 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11208 * dwarf2cfi.c: Reindented.
11210 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11212 * interps.c (clear_interpreter_hooks): Convert function definition
11215 2003-02-07 David Carlton <carlton@math.stanford.edu>
11217 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11219 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11221 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11222 (struct type): ...to here.
11223 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11225 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11226 (replace_type): Set length on all type variants for a given type.
11228 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11230 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11232 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11234 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11236 * Makefile.in (symm-nat.o): Update dependencies.
11237 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11238 (lynx-nat.o, ia64-linux-nat.): Ditto.
11239 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11240 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11241 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11243 * Makefile.in (inflow_h): Define.
11244 (procfs.o, inflow.o, procfs.o): Update dependencies.
11245 * inftarg.c (child_stop): Delete extern declaration of
11246 inferior_process_group. Include "inflow.h".
11247 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11248 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11249 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11250 (our_process_group, inferior_process_group): Extern declarations.
11252 * procfs.c: Include "gdb_assert.h".
11254 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11255 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11256 * jv-typeprint.c (java_type_print_base): Ditto.
11257 * typeprint.c (typedef_print): Eliminate STREQ.
11258 * cli/cli-script.c (define_command, define_command): Ditto.
11259 * main.c (captured_main): Ditto.
11260 * values.c (lookup_internalvar): Ditto.
11261 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11262 within `if' conditional.
11263 * linespec.c (decode_line_2): Ditto.
11264 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11265 (bfd_openw_with_cleanup): Ditto.
11267 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11269 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11270 legacy_extract_return_value and store_return_value to
11271 legacy_return_value.
11273 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11275 * win32-nat.c (get_relocated_section_addrs): New function. Find
11276 section load addresses for symbol handling in relocated DLLs.
11277 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11279 2003-02-05 Fred Fish <fnf@intrinsity.com>
11281 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11283 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11285 (angel_RDI_info): Ditto.
11286 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11288 (threads_continue_all_with_signals): Ditto.
11290 2003-02-05 Jim Ingham <jingham@apple.com>
11291 Keith Seitz <keiths@redhat.com>
11292 Elena Zannoni <ezannoni@redhat.com>
11293 Andrew Cagney <ac131313@redhat.com>
11295 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11296 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11297 (SUBDIR_MI_OBS): Add "mi-interp.o".
11298 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11299 (SFILES): Add "interps.c".
11300 (COMMON_OBS): Add "interps.o".
11301 (interps_h, mi_main_h): Define.
11302 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11303 (mi-main.o, main.o, event-top.o): Update dependencies.
11304 * cli/cli-interp.c: New file.
11305 * interps.h, interps.c: New files.
11306 * top.c: (gdb_init): Don't install the default interpreter, handed
11308 * main.c: Include "interps.h".
11309 (interpreter_p): Note that it should malloc'ed.
11310 (captured_command_loop): Call current_interp_command_loop.
11311 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11312 xfree and xstrdup when updating interpreter_p. Install the
11313 default interpreter. Add hack to stop mi1's copyright notice
11315 * event-top.h (gdb_setup_readline): Declare.
11316 (gdb_disable_readline): Declare.
11317 * event-top.c: Include "interps.h".
11318 (display_gdb_prompt): Call current_interp_display_prompt_p.
11319 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11320 gdb_stdlog, and gdb_stdtarg.
11321 (_initialize_event_loop): Don't call gdb_setup_readline.
11322 * cli-out.c (cli_out_set_stream): New function.
11323 * cli-out.h (cli_out_set_stream): Declare.
11325 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11327 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11328 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11329 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11330 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11331 config/i386/i386v42mp.mt: Removed.
11333 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11335 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11338 2003-02-05 Michael Chastain <mec@shout.net>
11340 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11341 2.12.1 and earlier versions.
11343 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11345 Remove orphaned hosts, targets and files.
11346 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11347 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11348 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11349 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11350 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11351 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11352 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11353 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11354 * config/sparc/tm-sp64sim.h: Delete.
11355 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11357 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11358 mips*-dec-mach3* targets.
11360 2003-02-04 Michael Chastain <mec@shout.net>
11362 * NEWS: Fix typo: sepcifying -> specifying.
11364 2003-02-04 Michael Chastain <mec@shout.net>
11366 * dwarfread.c: Add documentation on the state of dwarf-1,
11367 looking towards obsoletion.
11369 2003-02-03 Michael Chastain <mec@shout.net>
11371 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11372 gdb/testsuite/gdb.c++/pr-1023.exp.
11374 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11376 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11377 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11379 * utils.c (init_page_info): Delete reference to MPW in comments.
11380 * main.c (captured_main): Delete #ifdef MPW.
11382 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11384 * NEWS: Note that the m32r-*-elf* is obsolete.
11385 * monitor.c (monitor_expect): Obsolete reference to m32r.
11386 * configure.tgt: Mark m32r-*-elf* as obsolete.
11387 * MAINTAINERS: Mark m32k as obsolete.
11388 * m32r-rom.c: Obsolete file.
11389 * config/m32r/m32r.mt: Obsolete file.
11390 * config/m32r/tm-m32r.h: Obsolete file.
11391 * m32r-stub.c: Obsolete file.
11392 * m32r-tdep.c: Obsolete file.
11394 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11396 * NEWS: Mention that the z8k-zilog-none is obsolete.
11397 * MAINTAINERS: Mark z8k as obsolete.
11398 * configure.tgt: Obsolete the z8k-*-coff* target.
11399 * config/z8k/z8k.mt: Obsolete file.
11400 * config/z8k/tm-z8k.h: Obsolete file.
11401 * z8k-tdep.c: Obsolete file.
11403 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11405 * NEWS: Mention that the mn10200-elf is obsolete.
11406 * configure.tgt: Obsolete mn10200-*-* target.
11407 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11408 mention that the mn10200 is obsolete.
11409 * breakpoint.h: Ditto.
11410 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11411 * config/mn10200/mn10200.mt: Obsolete file.
11412 * config/mn10200/tm-mn10200.h: Obsolete file.
11413 * mn10200-tdep.c: Obsolete file.
11415 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11417 * MAINTAINERS: Mark h8500 as obsolete.
11418 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11419 * findvar.c (value_from_register): Ditto.
11420 * h8500-tdep.c: Mark file as obsolete.
11421 * config/h8500/h8500.mt: Ditto.
11422 * config/h8500/tm-h8500.h: Ditto.
11423 * NEWS: Mention that h8500 is obsolete.
11425 2003-02-04 David Carlton <carlton@math.stanford.edu>
11427 * objfiles.c (allocate_objfile): Always set name. Add comment at
11429 * jv-lang.c (get_dynamics_objfile): Add comment.
11431 2003-02-04 David Carlton <carlton@math.stanford.edu>
11433 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11434 * printcmd.c (build_address_symbolic): Replace uses of
11435 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11436 SYMBOL_NAME, and asm_demangle.
11439 2003-02-04 David Carlton <carlton@math.stanford.edu>
11441 * linespec.c (decode_compound): Extract code into
11443 (lookup_prefix_sym): New function.
11445 2003-02-04 David Carlton <carlton@math.stanford.edu>
11447 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11448 FLOAT_COERCION_BADNESS.
11449 * gdbtypes.c (rank_one_type): Replace all uses of
11450 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11452 2003-02-04 Jim Blandy <jimb@redhat.com>
11454 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11455 section, let dwarf_macinfo_section point to it, not
11458 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11460 Pointed out by Anton Blanchard <anton@samba.org>.
11461 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11462 (ppc_linux_at_sigtramp_return_path): Use it.
11464 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11466 * defs.h (streq): Add prototype.
11467 * utils.c (streq): New function.
11469 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11470 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11471 * mdebugread.c (new_symbol): Likewise.
11472 * stabsread.c (define_symbol): Likewise.
11473 * coffread.c (process_coff_symbol): Likewise.
11474 * dwarfread.c (new_symbol): Likewise.
11476 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11477 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11479 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11480 SYMBOL_INIT_DEMANGLED_NAME.
11481 * objfiles.c: Include "hashtab.h".
11482 (allocate_objfile): Call htab_set_functions_ex for the
11483 demangled_names_hash.
11484 (free_objfile): Call htab_delete for the demangled_names_hash.
11485 * objfiles.h (struct htab): Add declaration.
11486 (struct objfile): Add demangled_names_hash.
11487 * symfile.c: Include "hashtab.h".
11488 (reread_symbols): Call htab_delete for the demangled_names_hash.
11489 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11490 SYMBOL_NAME in the bcache.
11491 * symtab.c: Include "hashtab.h". Update comments.
11492 (create_demangled_names_hash, symbol_set_names): New functions.
11493 (symbol_find_demangled_name): New function, broken out from
11494 symbol_init_demangled_names.
11495 (symbol_init_demangled_names): Use it.
11496 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11497 (SYMBOL_SET_NAMES): New macro.
11498 (symbol_set_names): Add prototype.
11500 2003-02-03 Jim Blandy <jimb@redhat.com>
11502 Use a single, consistent representation for an empty minimal
11503 symbol table in an objfile.
11504 * objfiles.c (terminate_minimal_symbol_table): New function.
11505 (allocate_objfile): Call it.
11506 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11507 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11509 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11510 objfile has minimal symbols, compare minimal_symbol_count to zero,
11511 instead of comparing msymbols with NULL.
11512 * objfiles.c (have_minimal_symbols): Same.
11513 * solib-sunos.c (solib_add_common_symbols): Call
11514 terminate_minimal_symbol_table.
11515 * symfile.c (reread_symbols): Same.
11517 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11519 * s390-tdep.c (s390_address_class_type_flags)
11520 (s390_address_class_type_flags_to_name)
11521 (s390_address_class_name_to_type_flags): New functions.
11522 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11523 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11525 2003-02-03 Michael Snyder <msnyder@redhat.com>
11527 * arm-tdep.c: Fix spell-o in comment.
11529 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11531 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11532 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11533 error messages to contain BFD filename.
11535 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11537 Fix PR gdb/742 gdb/743 gdb/877
11538 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11539 (do_mixed_source_and_assembly): Use
11540 make_cleanup_ui_out_tuple_begin_end and
11541 make_cleanup_ui_out_tuple_begin_end.
11542 (do_mixed_source_and_assembly): Ditto.
11543 * thread.c (do_captured_list_thread_ids): Ditto.
11544 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11545 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11546 ui_out_tuple_end): Delete prototypes.
11547 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11548 ui_out_list_end, ui_out_tuple_end): Delete.
11550 From Kevin Buettner <kevinb@redhat.com>:
11551 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11552 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11553 (do_cleanup_table_end): New functions.
11554 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11555 Use cleanups to invoke_ui_out_tuple_end().
11556 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11557 * cli/cli-setshow.c (cmd_show_list): Use
11558 make_cleanup_ui_out_tuple_begin_end.
11560 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11562 * frame.c (frame_unwind_register): New function.
11563 (frame_unwind_unsigned_register): Use.
11564 (frame_unwind_signed_register): Use.
11565 (frame_read_register): New function.
11566 * frame.h (frame_unwind_register): Declare.
11567 (frame_read_register): Declare.
11569 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11570 and frame_unwind_register instead of read_memory, write_register
11571 and deprecated_write_register_bytes.
11573 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11575 * frame.h: Note that namelen can be negative.
11576 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11579 * NEWS: Mention that the d10v's `regs' command is deprecated.
11580 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11581 (d10v_print_registers_info): New function.
11582 (show_regs): Call d10v_print_registers_info.
11583 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11585 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11587 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11588 lost in the previous patch.
11590 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11592 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11593 * stack.c (print_frame_info_base): Output complete FRAME tuple
11594 for synthesized frames.
11596 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11598 * mips-nat.c (zerobuf): Delete.
11599 (fetch_inferior_registers): Alloc local zerobuf.
11600 (fetch_core_registers): Alloc local zerobuf.
11601 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11602 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11603 * thread-db.c (thread_db_store_registers): Ditto.
11604 * sh-tdep.c (sh_do_register): Ditto.
11605 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11606 * remote-sim.c (gdbsim_store_register): Ditto.
11607 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11608 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11609 * monitor.c (monitor_supply_register): Ditto.
11610 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11611 * mips-nat.c (fetch_inferior_registers): Ditto.
11612 * m68klinux-nat.c (fetch_register): Ditto.
11613 * lynx-nat.c (fetch_inferior_registers): Ditto.
11614 (fetch_inferior_registers): Ditto.
11615 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11616 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11617 (hpux_thread_store_registers): Ditto.
11618 * hppah-nat.c (fetch_register): Ditto.
11619 * hppab-nat.c (fetch_register): Ditto.
11620 * hppa-tdep.c (pa_register_look_aside): Ditto.
11621 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11622 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11624 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11626 * gdbarch.sh: Explictly specify all method levels. When a
11627 variable with an empty level, provide a non-multi-arch default.
11628 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11629 * gdbarch.h: Re-generate.
11630 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11631 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11633 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11635 * defs.h (host_pointer_to_address): Delete declaration.
11636 (address_to_host_pointer): Delete declaration.
11637 * utils.c (host_pointer_to_address): Delete function.
11638 (address_to_host_pointer): Delete function.
11639 * procfs.c (procfs_address_to_host_pointer): New function.
11640 * procfs.c (proc_set_watchpoint): Use.
11641 (procfs_can_use_hw_breakpoint): Update comments.
11642 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11643 (som_solib_add): Use.
11644 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11645 * hppa-tdep.c (unwind_command): Use.
11647 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11649 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11652 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11653 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11654 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11655 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11656 (define_symbol): Update.
11657 * symfile.c (generic_load): Remove references to nindy.
11658 * symtab.c: Remove references to nindy.
11660 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11662 * infcmd.c (print_float_info): Delete code conditional on
11664 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11665 * config/m68k/nm-apollo68b.h: Ditto.
11666 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11667 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11668 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11670 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11672 * config/i386/tm-i386os9k.h: Removed.
11674 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11675 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11676 they're identical to i[3456]86-*-sysv* now.
11677 * config/i386/i386v32.mh: Removed.
11678 * config/i386/xm-i386v32.h: Removed.
11679 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11681 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11683 * config/i386/i386dgux.mh: Removed.
11684 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11686 * configure.in: Fix typo.
11687 * configure: Regenerated.
11689 2003-01-31 David Carlton <carlton@math.stanford.edu>
11691 * dwarf2read.c (dwarf2_locate_sections): Set
11692 dwarf_ranges_section.
11694 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11696 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11697 * utils.c: Update comments documenting legitimate uses of PTR.
11699 * utils.c: Re-indent.
11701 * config/djgpp/fnchange.lst: Delete nindy files.
11702 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11703 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11704 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11705 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11706 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11707 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11708 * Makefile.in (init.c): Remove nindy references.
11709 (saber_gdb): Delete rule.
11710 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11711 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11713 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11714 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11715 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11716 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11717 nindy-share/stop.h.
11718 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11719 * saber.suppress: Delete file.
11721 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11723 * dbxread.c (stabs_data): New static variable.
11724 (fill_symbuf): Support an in-memory buffer for stabs data.
11725 (stabs_seek): New function.
11726 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11727 (read_ofile_symtab): Use stabs_seek.
11728 (elfstab_build_psymtabs): Take an asection* instead of
11729 an offset and size. Relocate the stabs data if necessary.
11730 Save the section* for dbx_psymtab_to_symtab.
11731 * dwarf2read.c: Add section variables for each debug section.
11732 (dwarf2_locate_sections): Fill them in.
11733 (dwarf2_read_section): Take an asection* argument.
11734 Relocate the section contents if necessary.
11735 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11736 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11737 it to dwarf2_read_section.
11738 (dwarf2_build_frame_info): Update callers.
11739 * elfread.c (elf_symfile_read): Update call to
11740 elfstab_build_psymtabs.
11741 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11742 (DBX_STAB_SECTION): New macro.
11743 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11744 * symfile.c (symfile_dummy_outputs): New function.
11745 (symfile_relocate_debug_section): New function.
11746 * symfile.h (symfile_relocate_debug_section): Add prototype.
11748 2003-01-31 Richard Henderson <rth@redhat.com>
11750 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11751 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11752 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11753 * alpha-tdep.c (alpha_register_name): Add "unique".
11754 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11755 (ALPHA_UNIQUE_REGNUM): New.
11756 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11758 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11760 * README: Remove reference to Ericsson 1800 monitor.
11761 * Makefile.in (remote-es.o): Delete rule.
11762 (ALLDEPFILES): Delete remote-es.c.
11763 * remote-es.c: Delete file.
11764 * config/m68k/es1800.mt: Delete file.
11765 * config/djgpp/fnchange.lst: Update.
11766 * configure.tgt: Delete m68*-ericsson-* target.
11768 2003-01-31 Adam Fedor <fedor@gnu.org>
11770 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11771 Remove duplicate/shadowing variable of same name.
11773 2003-01-30 Jim Blandy <jimb@redhat.com>
11775 * symfile.c (find_separate_debug_file): Assert that the objfile's
11776 directory name we compute ends with a slash, and then assume that
11777 that's so everywhere we use it.
11779 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11781 * valops.c (value_assign): Flush frame cache after stores to memory
11784 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11786 * Makefile.in (mon960-rom.o): Delete rule.
11787 * mon960-rom.c: Delete file.
11789 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11791 * d10v-tdep.c: Include "frame-unwind.h".
11792 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11794 (next_addr, uses_frame): Delete.
11795 (struct d10v_unwind_cache): Define.
11796 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11797 Use info instead of next_addr and uses_frame globals.
11798 (d10v_frame_init_saved_regs): Delete function.
11799 (d10v_init_extra_frame_info): Delete function.
11800 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11801 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11802 init_frame_pc or frame_saved_pc.
11803 (d10v_pop_frame): Delete function.
11804 (do_d10v_pop_frame): Delete function.
11805 (d10v_frame_chain): Delete function.
11806 (d10v_frame_chain_valid): Delete function.
11807 (d10v_frame_pc_unwind): New function.
11808 (d10v_frame_id_unwind): New function.
11809 (saved_regs_unwinder): New function.
11810 (d10v_frame_register_unwind): New function.
11811 (d10v_frame_pop): New function.
11812 (d10v_frame_unwind): New variable.
11813 (d10v_frame_p): New function.
11814 (d10v_frame_saved_pc): Delete function.
11815 * Makefile.in (d10v-tdep.o): Update dependencies.
11817 2003-01-30 J. Brobecker <brobecker@gnat.com>
11819 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11820 causing some regressions due to a change in the default value
11823 2003-01-29 Richard Henderson <rth@redhat.com>
11824 Elena Zannoni <ezannoni@redhat.com>
11825 Daniel Jacobowitz <drow@mvista.com>
11828 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11830 (RANGES_SECTION): New.
11831 (dwarf_ranges_buffer): New variable.
11832 (struct comp_unit_head): Add member "die".
11833 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11834 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11835 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11836 (dwarf2_locate_sections): Likewise.
11837 (dwarf2_build_psymtabs): Read .debug_ranges.
11838 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11839 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11840 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11841 Look for DW_AT_ranges and return the bounding box.
11843 2003-01-29 Brian Ford <ford@vss.fsi.com>
11845 * win32-nat.c (cygwin_pid): Removed as unused.
11846 (child_attach): Try fall back to Cygwin pid.
11848 2003-01-29 Jim Blandy <jimb@redhat.com>
11850 * objfiles.h (struct objfile): Doc fix.
11852 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11854 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11855 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11856 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11857 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11858 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11859 (FRAME_SAVED_PC): Change to a function with predicate.
11860 * gdbarch.h, gdbarch.c: Re-generate.
11862 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11864 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11866 * complaints.c (complain): Delete function.
11867 * complaints.h (struct deprecated_complaint): Delete definition.
11868 (complain): Delete declaration.
11870 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11872 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11875 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11877 * sentinel-frame.h, sentinel-frame.c: New files.
11878 * Makefile.in (frame.o): Update dependencies.
11879 (SFILES): Add sentinel-frame.c.
11880 (sentinel_frame_h): Define.
11881 (COMMON_OBS): Add sentinel-frame.o.
11882 (sentinel-frame.o): Specify dependencies.
11883 * frame.c: Include "sentinel-frame.h".
11884 (frame_register_unwind): Rewrite assuming that there is always a a
11886 (frame_register, generic_unwind_get_saved_register): Ditto.
11887 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11888 (create_sentinel_frame, unwind_to_current_frame): New functions.
11889 (get_current_frame): Rewrite using create_sentinel_frame and
11890 unwind_to_current_frame. When possible, always create a frame.
11891 (create_new_frame): Set next to the sentinel frame.
11892 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11893 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11894 ID cache when necessary.
11895 (frame_saved_regs_id_unwind): Use frame_relative_level.
11896 (deprecated_generic_get_saved_register): Use frame_relative_level,
11897 get_frame_saved_regs, get_frame_pc, get_frame_base and
11899 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11902 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11904 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11906 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11908 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11909 (maintenance_set_profile_cmd): Use error () instead of warning ().
11911 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11913 * configure.in: Check that -pg works if using --enable-profiling.
11914 Check for monstartup and _mcleanup regardless of --enable-profiling.
11915 * maint.c: Check for monstartup and _mcleanup before using them.
11916 * config.in: Regenerated.
11917 * configure: Regenerated.
11919 2003-01-24 Nick Clifton <nickc@redhat.com>
11921 * Add sh2e support:
11923 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11925 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11926 (sh2e_show_regs): New.
11927 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11928 * config/sh/tm-sh.h: Added sh2e to comments.
11930 2003-01-23 Jim Blandy <jimb@redhat.com>
11932 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11933 symbols found)" message here; we haven't checked for a separate
11934 debug info file yet, so we don't know yet.
11935 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11936 we've looked everywhere. Also, there's no need to print a special
11937 message when we're loading the separate debug info file: the one
11938 symbol_file_add prints is fine.
11940 2003-01-23 Alexander Larsson <alexl@redhat.com>
11941 Jim Blandy <jimb@redhat.com>
11943 Add support for executables whose debug info has been separated
11944 out into a separate file, leaving only a link behind.
11945 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11946 and separate_debug_objfile_backlink.
11947 (put_objfile_before): New declaration.
11948 * symfile.c: #include "filenames.h".
11949 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11950 debug info in a separate file, read that, too. Save the addrs
11951 argument, so we can use it again to read the separated debug info;
11952 syms_from_objfile modifies the table we pass it.
11953 (reread_symbols): After re-reading an objfile, call
11954 reread_separate_symbols to refresh its separate debug info
11955 objfile, if it has one.
11956 (reread_separate_symbols, find_separate_debug_file,
11957 get_debug_link_info, separate_debug_file_exists): New functions.
11958 (debug_file_directory): New global var.
11959 (_initialize_symfile): Initialize debug_file_directory, and
11960 provide the new `set debug-file-directory' command to let the user
11962 * objfiles.c (free_objfile): If this objfile has its debug info in
11963 a separate objfile, free that one too. If this is itself a
11964 separate debug info objfile, clear our parent's backlink.
11965 (put_objfile_before): New function.
11966 * utils.c (gnu_debuglink_crc32): New function.
11967 * defs.h (gnu_debuglink_crc32): New declaration.
11968 * Makefile.in (symfile.o): Note dependency on "filenames.h".
11969 * configure.in: Handle --with-separate-debug-dir config option.
11970 * acinclude.m4 (AC_DEFINE_DIR): New macro.
11971 * acconfig.h (DEBUGDIR): New macro.
11972 * configure, aclocal.m4, config.in: Regenerated.
11974 2003-01-22 Jim Blandy <jimb@redhat.com>
11976 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
11977 like the old symbol_file_add, but taking new arguments: you can
11978 now pass in either a `struct section_addr_info' list to say where
11979 each section is loaded, or a `struct section_offsets' table. Pass
11980 these new arguments through to syms_from_objfile as appropriate.
11981 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
11982 with the appropriate quiescent values for the new arguments.
11984 * symfile.c: #include "gdb_assert.h".
11985 (syms_from_objfile): Add the ability to pass in a section offset
11986 table directly, as an alternative to the section_addr_info table.
11987 Document arguments better.
11988 (symbol_file_add): Pass extra arguments to syms_from_objfile.
11989 * symfile.h (syms_from_objfile): Update declaration.
11990 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
11992 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
11994 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
11996 Original patch by Tom Tromey <tromey@cygnus.com> and
11997 Jason Molenda <jmolenda@apple.com>.
11998 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
11999 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12000 * NEWS: Mention profiling.
12001 * configure.in (--enable-gdbtk): Fix typo.
12002 (--enable-profiling): New. Set PROFILE_CFLAGS.
12003 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12005 (profiling_state): New variable.
12006 (mcleanup_wrapper): New function.
12007 (_initialize_maint): Remove NOTYET, fix call to
12008 add_setshow_boolean_cmd for "maint set profile".
12009 * configure: Regenerated.
12011 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12013 * Makefile.in (install-gdbtk): Install PNG images too.
12015 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12017 * exec.c (text_start): Delete global variable.
12018 (exec_file_attach): Make text_start local to the function.
12019 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12020 * valops.c (hand_function_call): Delete code that handles
12021 BEFORE_TEXT_END and AFTER_TEXT_END.
12022 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12023 of CALL_DUMMY_LOCATION.
12024 * gdbarch.c: Regenerate.
12025 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12026 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12027 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12028 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12029 (text_end): Delete extern declaration.
12031 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12033 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12034 * blockframe.c (backtrace_below_main): Move to "frame.c".
12035 (frame_chain_valid): Delete check for backtrace_below_main.
12036 (_initialize_blockframe): Delete initialization, move ``set
12037 backtrace-below-main'' command to "frame.c".
12038 (do_flush_frames_sfunc): Delete function.
12039 * frame.c: Include "command.h" and "gdbcmd.h".
12040 (frame_type_from_pc): New function.
12041 (create_new_frame): Use frame_type_from_pc.
12042 (legacy_get_prev_frame): New function.
12043 (get_prev_frame): Rewrite. When an old style frame, call
12044 legacy_get_prev_frame. Otherwize, unwind the PC first.
12045 (_initialize_frame): Add ``set backtrace-below-main'' command.
12046 * Makefile.in (frame.o): Update dependencies.
12048 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12050 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12051 DEPRECATED_REGISTERS_INFO.
12053 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12055 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12056 Maintainers'. Update `Various Maintainers'.
12058 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12060 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12061 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12062 Suppress actual parameters when `-'.
12063 * gdbarch.h, gdbarch.c: Regenerate.
12065 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12067 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12068 code handling dummy frames.
12070 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12072 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12073 (struct frame_unwind): Add field pop.
12074 * frame.h (frame_pop): Declare.
12075 * frame.c (frame_saved_regs_pop): New function.
12076 (trad_frame_unwinder): Add frame_saved_regs_pop.
12077 (frame_pop): New function.
12078 * dummy-frame.c (dummy_frame_pop): New function.
12079 (discard_innermost_dummy): New function.
12080 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12081 (dummy_frame_unwind): Add dummy_frame_pop.
12082 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12083 * valops.c (hand_function_call): Ditto.
12084 * stack.c (return_command): Ditto.
12086 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12088 * cris-tdep.c: Fix function declaration indentation.
12089 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12090 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12091 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12092 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12093 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12094 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12096 2003-01-18 Michael Chastain <mec@shout.net>
12098 * README (Unpacking and Installation -- quick overview):
12099 Warn against ".../gdb-5.3/gdb/configure".
12101 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12103 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12104 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12105 (struct frame_unwind): Declare opaque.
12106 (dummy_frame_p): Declare function.
12107 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12108 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12109 * dummy-frame.c: Include "frame-unwind.h".
12110 (dummy_frame_p): New function.
12111 (dummy_frame_unwind): New variable.
12112 * frame.c: Include "frame-unwind.h".
12113 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12114 to use the new unwind field.
12115 (set_unwind_by_pc): Delete function.
12116 (create_new_frame, get_prev_frame): Set unwind field using
12117 frame_unwind_find_by_pc.
12118 (trad_frame_unwind, trad_frame_unwinder): New variables.
12119 * frame.h (trad_frame_unwind): Declare variable.
12120 (frame_id_unwind_ftype): Delete declaration.
12121 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12122 (struct frame_unwind): Declare opaque.
12123 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12124 register_unwind with a single unwind pointer.
12125 * frame-unwind.h, frame-unwind.c: New files.
12126 * Makefile.in (SFILES): Add frame-unwind.c.
12127 (frame_unwind_h): Define.
12128 (COMMON_OBS): Add frame-unwind.o.
12129 (frame-unwind.o): Specify dependencies.
12130 (frame.o, dummy-frame.o): Update dependencies.
12132 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12134 * ada-valprint.c: Eliminate PTR.
12135 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12136 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12137 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12138 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12139 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12140 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12141 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12143 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12145 * main.c (captured_main): Don't use PTR.
12146 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12147 * gdbtypes.c (lookup_primitive_typename): Ditto.
12148 (lookup_struct_elt_type): Ditto.
12149 * f-valprint.c (info_common_command): Ditto.
12150 (list_all_visible_commons): Ditto.
12151 * jv-typeprint.c (java_type_print_base): Ditto.
12153 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12154 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12155 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12156 i386-interix-nat.c and i386-interix-tdep.c. Rename
12157 m68klinux-nat.c and m68klinux-tdep.c. Rename
12158 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12159 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12160 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12161 * main.c (captured_main): Use xfree, not free.
12163 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12165 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12166 ID back using a parameter.
12167 * frame.c (frame_id_unwind): Update call.
12168 (frame_saved_regs_id_unwind): Update.
12169 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12170 * dummy-frame.h (struct frame_id): Add opaque declaration.
12171 (dummy_frame_id_unwind): Update declaration.
12173 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12175 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12177 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12179 * MAINTAINERS (Stephen P. Smith): Updated email address.
12181 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12184 * breakpoint.c (until_break_command): Add new argument. Use it to
12185 decide whether to stop only at the current frame or not.
12186 * breakpoint.h (until_break_command): Update prototype.
12187 * infcmd.c (until_command): Add new argument to until_break_command
12189 (advance_command): New function.
12190 (_initialize_infcmd): Update help string for 'until' command.
12191 Add new 'advance' command.
12193 2003-01-14 David Carlton <carlton@math.stanford.edu>
12195 * linespec.c (decode_line_1): Normalize comments.
12196 (set_flags): Ditto.
12197 (locate_first_half): Ditto.
12198 (decode_compound): Ditto.
12199 (symtab_from_filename): Ditto.
12200 (decode_all_digits): Ditto.
12201 (decode_dollar): Ditto.
12202 (find_methods): Ditto.
12203 (find_toplevel_char): Ditto.
12205 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12207 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12208 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12209 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12210 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12211 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12212 * language.c, language.h, m32r-tdep.c: Update copyright.
12213 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12214 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12215 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12216 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12217 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12218 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12220 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12222 * stabsread.h (process_later, resolve_cfront_continuation):
12224 Update copyright years.
12225 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12226 Update copyright year.
12227 * dbxread.c(struct cont_elem): Obsolete.
12228 (process_later, process_now): Obsolete functions.
12229 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12230 Update copyright year.
12231 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12232 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12233 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12234 (parse_partial_symbols): Obsolete cfront support.
12236 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12238 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12239 read_cfront_baseclasses, read_cfront_member_functions,
12240 resolve_cfront_continuation,read_cfront_static_fields,
12241 copy_cfront_struct_fields): Obsolete functions.
12242 (define_symbol, read_one_struct_field): Obsolete cfront support.
12243 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12244 Update Copyright year.
12246 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12248 * stack.c (print_frame_info, print_stack_frame_base_stub,
12249 print_stack_frame_base, show_and_print_stack_frame_stub,
12250 show_and_print_stack_frame, print_only_stack_frame_stub,
12251 print_only_stack_frame): Delete functions.
12252 (print_stack_frame_stub): Call print_frame_info instead of
12253 print_frame_info_base.
12254 (print_frame_info_base): Rename to print_frame_info.
12255 (backtrace_command_1): Call print_frame_info, instead of
12256 print_frame_info_base.
12257 (current_frame_command): Call print_stack_frame, instead of
12258 print_only_stack_frame.
12259 (frame_command): Call print_stack_frame, instead of
12260 show_and_print_stack_frame.
12261 (up_command): Ditto.
12262 (down_command): Ditto.
12263 * frame.h (print_only_stack_frame): Delete prototype.
12264 * infrun.c (normal_stop): Call print_stack_frame, instead of
12265 show_and_print_stack_frame.
12266 * thread.c (info_threads_command): Call print_stack_frame, instead
12267 of print_only_stack_frame.
12269 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12271 * README (Graphical interface to GDB): Update URL. Point at
12274 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12277 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12279 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12282 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12284 * thread-db.c (attach_thread): Prototype.
12285 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12286 thread information (ti), and valid flags (th_valid, ti_valid).
12287 (attach_thread): Move target_pid_to_str call to after the thread
12288 is added to GDB's list. Initialize the cache.
12289 (thread_get_info_callback, thread_db_map_id2thr)
12290 (thread_db_get_info): New functions.
12291 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12292 (thread_db_store_registers, thread_db_thread_alive)
12293 (thread_db_get_thread_local_address): Use them.
12294 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12295 of calling error() for threads in unknown state.
12297 (clear_lwpid_callback): New function.
12298 (thread_db_resume): Use it to clear the cache.
12300 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12302 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12303 (resume_callback): Remove dead code.
12305 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12307 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12309 * gdbarch.h, gdbarch.c: Regenerate.
12310 * stack.c (frame_info): Only initialize the saved registers when
12311 FRAME_INIT_SAVED_REGS_P.
12312 * frame.c (frame_saved_regs_register_unwind): Assert
12313 FRAME_INIT_SAVED_REGS_P.
12314 (deprecated_generic_get_saved_register): Ditto.
12316 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12318 * source.c (openp): Squelch warning about "filename".
12320 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12322 * source.c (openp): If the file does not exist don't necessarily
12325 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12328 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12329 (integer_types_same_name_p): New function.
12330 (rank_one_type): Use it.
12331 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12333 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12335 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12337 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12338 * configure.in: Add --with-sysroot.
12339 * configure: Regenerated.
12340 * main.c (gdb_sysroot): New variable.
12341 (captured_main): Initialize gdb_sysroot.
12342 * defs.h (gdb_sysroot): New extern declaration.
12343 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12345 2003-01-12 Michael Chastain <mec@shout.net>
12347 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12349 2003-01-12 Michael Chastain <mec@shout.net>
12351 * top.c (print_gdb_version): Bump copyright year to 2003.
12353 2003-01-12 David Carlton <carlton@bactrian.org>
12355 * linespec.c (symtab_from_filename): Rename variable 's' to
12358 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12360 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12362 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12364 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12366 * d10v-tdep.c: Include "gdb_assert.h".
12367 (d10v_store_return_value): Rewrite to match current interface.
12368 (d10v_extract_struct_value_address): Ditto.
12369 (d10v_extract_return_value): Ditto.
12370 (d10v_gdbarch_init): Set store_restore_value,
12371 extract_struct_value_address and extract_return_value.
12373 2003-01-12 J. Brobecker <brobecker@gnat.com>
12375 * hpread.c (set_namestring): New procedure replacing the
12376 SET_NAMESTRING macro.
12377 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12378 by calls to set_namestring.
12380 2003-01-11 J. Brobecker <brobecker@gnat.com>
12382 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12383 a compilation warning.
12384 (hpread_process_one_debug_symbol): Likewise.
12386 2003-01-10 David Carlton <carlton@math.stanford.edu>
12388 * linespec.c (decode_line_1): Rename variable 's' to
12390 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12391 (decode_dollar): Ditto.
12392 (decode_variable): Ditto.
12393 (symbol_found): Ditto.
12395 2003-01-09 Michael Chastain <mec@shout.net>
12397 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12399 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12401 * win32-nat.c (set_process_privilege): New function.
12402 (child_attach): Call set_process_privilege() to enable the
12403 SE_DEBUG_NAME user privilege if available in process token.
12405 2003-01-10 J. Brobecker <brobecker@gnat.com>
12407 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12408 compilation error in the previous revision.
12410 2003-01-09 David Carlton <carlton@math.stanford.edu>
12412 * linespec.c: Update copyright.
12414 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12416 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12417 than inferior_ptid.
12418 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12420 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12422 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12424 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12425 (frame_saved_regs_zalloc): Update.
12426 (frame_saved_regs_register_unwind): Update.
12427 (create_new_frame): Update.
12428 (get_prev_frame): Update.
12429 (frame_extra_info_zalloc): Update.
12430 (deprecated_get_frame_saved_regs): Update.
12431 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12432 * cris-tdep.c: Update comment.
12434 * somsolib.h: Fix function indentation.
12435 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12436 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12437 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12438 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12439 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12441 * infrun.c (follow_fork): Use ISO C definition.
12442 * expprint.c (print_subexp): Use xfree instead of free.
12443 * charset.c: Include "gdb_string.h" instead of <string.h>.
12444 (register_iconv_charsets): Use ISO C definition.
12445 (host_charset, target_charset): Ditto.
12446 * Makefile.in (charset.o): Update dependencies.
12447 (mi-cmd-env.o): Update dependencies.
12449 2003-01-08 Andrew Cagney <cagney@redhat.com>
12451 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12454 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12456 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12457 build directories. Save edited gdb output in Mbuild.log. If a
12458 build fails, remove any final GDB executable.
12460 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12462 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12463 replacing hex constants with function names and stripping leading
12464 file name directory prefixes.
12466 2003-01-08 Andrew Cagney <cagney@redhat.com>
12468 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12471 2003-01-08 David Carlton <carlton@math.stanford.edu>
12473 * linespec.c (decode_line_1): Move code into decode_variable.
12474 (decode_variable): New function.
12476 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12478 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12480 2003-01-08 Andrew Cagney <cagney@redhat.com>
12482 * cris-tdep.c (cris_frame_init_saved_regs): Use
12483 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12485 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12486 (sh64_nofp_frame_init_saved_regs): Ditto.
12487 (sh_fp_frame_init_saved_regs): Ditto.
12488 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12489 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12490 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12491 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12493 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12495 * minsyms.c (lookup_minimal_symbol): Update comment.
12496 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12497 (lookup_minimal_symbol_solib_trampoline): Likewise.
12499 2003-01-08 Andrew Cagney <cagney@redhat.com>
12501 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12502 frame_relative_level.
12504 * alpha-tdep.c: Use get_frame_extra_info.
12505 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12506 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12507 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12508 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12510 * alpha-tdep.c: Use get_next_frame.
12511 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12512 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12513 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12514 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12515 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12516 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12517 * xstormy16-tdep.c: Ditto.
12519 2003-01-07 Andrew Cagney <cagney@redhat.com>
12521 * alpha-tdep.c: Use get_frame_base.
12522 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12523 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12524 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12525 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12526 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12527 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12528 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12529 * config/sparc/tm-sparc.h: Ditto.
12531 2003-01-07 Andrew Cagney <cagney@redhat.com>
12533 * frame.c (deprecated_get_frame_context): New function.
12534 (deprecated_set_frame_context): New function.
12535 * frame.h (deprecated_get_frame_context): Declare.
12536 (deprecated_set_frame_context): Declare.
12537 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12538 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12540 2003-01-07 Andrew Cagney <cagney@redhat.com>
12542 * frame.c (deprecated_set_frame_next_hack): New function.
12543 (deprecated_set_frame_prev_hack): New function.
12544 * frame.h (deprecated_set_frame_next_hack): Declare.
12545 (deprecated_set_frame_prev_hack): Declare.
12546 * mcore-tdep.c (analyze_dummy_frame): Use
12547 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12548 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12550 2003-01-07 David Carlton <carlton@math.stanford.edu>
12552 * linespec.c (decode_line_1): Move code into decode_dollar.
12553 (decode_dollar): New function.
12555 2003-01-07 Andrew Cagney <cagney@redhat.com>
12557 * arm-tdep.c (arm_init_extra_frame_info): Use
12558 deprecated_update_frame_base_hack.
12559 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12560 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12561 (fix_frame_pointer): Ditto.
12562 (mn10300_analyze_prologue): Ditto.
12564 2003-01-07 Andrew Cagney <cagney@redhat.com>
12566 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12567 extra_info using frame_extra_info_zalloc.
12568 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12569 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12570 (sh64_init_extra_frame_info): Ditto.
12571 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12572 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12573 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12574 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12575 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12576 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12577 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12578 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12579 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12580 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12581 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12582 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12584 * mn10300-tdep.c (analyze_dummy_frame): Use
12585 deprecated_set_frame_extra_info_hack.
12586 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12588 2003-01-07 J. Brobecker <brobecker@gnat.com>
12590 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12591 class is not scText. These do not define "real" procedures.
12592 (parse_partial_symbols): Likewise.
12594 2003-01-06 Michael Snyder <msnyder@redhat.com>
12596 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12598 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12600 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12601 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12602 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12603 deprecated_frame_xmalloc_with_cleanup.
12604 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12605 deprecated_frame_xmalloc.
12606 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12607 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12609 2003-01-06 Andrew Cagney <cagney@redhat.com>
12611 * x86-64-linux-tdep.c: Include "osabi.h".
12612 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12614 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12616 2003-01-06 Andrew Cagney <cagney@redhat.com>
12618 * MAINTAINERS (Target Instruction Set Architectures): Update
12619 arm-elf. Can be built with -Werror, has been multiarched.
12621 * value.h (unpack_long): Make buffer parameter constant.
12622 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12623 * scm-lang.h (scm_parse): Ditto.
12624 * defs.h (extract_typed_address, extract_address): Ditto.
12625 (extract_long_unsigned_integer): Ditto.
12626 * inferior.h (unsigned_pointer_to_address): Ditto.
12627 (signed_pointer_to_address): Ditto.
12628 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12629 * gdbarch.h, gdbarch.c: Regenerate.
12630 * findvar.c (extract_long_unsigned_integer): Update.
12631 (extract_address): Update.
12632 (extract_typed_address): Update.
12633 (unsigned_pointer_to_address): Update.
12634 * values.c (unpack_long): Update.
12635 (unpack_double): Update.
12636 (unpack_pointer): Update.
12637 (unpack_field_as_long): Update.
12638 * d10v-tdep.c (d10v_pointer_to_address): Update.
12639 * avr-tdep.c (avr_pointer_to_address): Update.
12640 * scm-lang.c (scm_unpack): Update.
12641 * findvar.c (signed_pointer_to_address): Update.
12643 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12645 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12646 since it is in i386-tdep.c.
12648 2003-01-06 J. Brobecker <brobecker@gnat.com>
12650 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12651 failure introduced in the previous change.
12653 2003-01-05 Michael Chastain <mec@shout.net>
12655 * README: Remove references to deleted remote-*.c files:
12656 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12657 remote-nrom.c, remote-os9k.c, remote-udi.c.
12659 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12661 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12662 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12663 i386_get_longjmp_target.
12665 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12667 * arm-tdep.c (prologue_cache): Change to a pointer.
12668 (_initialize_arm_tdep): Allocate prologue_cache.
12669 (check_prologue_cache): Update.
12670 (save_prologue_cache): Update.
12671 (arm_gdbarch_init): Update.
12673 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12675 * stabsread.c (update_method_name_from_physname): Call complaint()
12678 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12680 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12681 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12682 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12684 * blockframe.c: Include "gdbcmd.h" and "command.h".
12685 (backtrace_below_main): New variable.
12686 (file_frame_chain_valid, func_frame_chain_valid)
12687 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12688 (generic_func_frame_chain_valid): Remove functions.
12689 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12690 (_initialize_blockframe): New function.
12691 * Makefile.in (blockframe.o): Update dependencies.
12692 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12693 comment. Call frame_chain_valid ().
12694 * frame.h: Remove old prototypes. Add prototype for
12695 frame_chain_valid and update comments to match.
12696 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12697 Remove old comment.
12698 * gdbarch.h: Regenerated.
12699 * gdbarch.c: Regenerated.
12701 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12702 set_gdbarch_frame_chain_valid.
12703 * avr-tdep.c (avr_gdbarch_init): Likewise.
12704 * cris-tdep.c (cris_gdbarch_init): Likewise.
12705 * frv-tdep.c (frv_gdbarch_init): Likewise.
12706 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12707 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12708 (i386_nw_init_abi): Likewise.
12709 (i386_gdbarch_init): Likewise.
12710 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12711 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12712 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12713 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12714 * mips-tdep.c (mips_gdbarch_init): Likewise.
12715 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12716 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12717 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12718 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12719 * s390-tdep.c (s390_gdbarch_init): Likewise.
12720 * sh-tdep.c (sh_gdbarch_init): Likewise.
12721 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12722 * v850-tdep.c (v850_gdbarch_init): Likewise.
12723 * vax-tdep.c (vax_gdbarch_init): Likewise.
12724 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12726 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12727 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12728 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12729 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12730 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12731 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12732 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12733 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12735 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12737 * Makefile.in (acconfig_h): Remove incorrect macro.
12738 (config_h): Define.
12739 (osabi.o): Update dependencies.
12740 * configure.tgt: Set gdb_osabi based on target triplet.
12741 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12742 * configure: Regenerated.
12743 * config.in: Regenerated.
12744 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12745 (GDB_OSABI_DEFAULT): Define if not already defined.
12746 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12747 (set_osabi_string): New variables.
12748 (gdbarch_register_osabi): Add new OS ABI to
12749 gdb_osabi_available_names.
12750 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12751 (set_osabi, show_osabi): New functions.
12752 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12754 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12756 * arch-utils.c (gdbarch_info_init): Set osabi to
12757 GDB_OSABI_UNINITIALIZED.
12758 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12759 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12760 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12761 * gdbarch.c: Regenerated.
12762 * gdbarch.h: Regenerated.
12763 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12765 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12766 * osabi.h (enum gdb_osabi): Move to defs.h.
12767 (gdbarch_init_osabi): Update prototype.
12768 * defs.h (enum gdb_osabi): Moved here.
12769 * Makefile.in: Update dependencies.
12771 * alpha-tdep.h: Don't include "osabi.h".
12772 (struct gdbarch_tdep): Remove osabi member.
12773 * alpha-tdep.c: Include "osabi.h".
12774 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12775 iterate over arches. Update call to gdbarch_init_osabi.
12776 (alpha_dump_tdep): Don't dump osabi.
12777 * alpha-linux-tdep.c: Include "osabi.h".
12778 * alpha-osf1-tdep.c: Include "osabi.h".
12779 * alphafbsd-tdep.c: Include "osabi.h".
12780 * alphanbsd-tdep.c: Include "osabi.h".
12782 * arm-tdep.h: Don't include "osabi.h".
12783 (struct gdbarch_tdep): Remove osabi member.
12784 * arm-tdep.c: Include "osabi.h".
12785 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12786 iterate over arches. Update call to gdbarch_init_osabi.
12787 (arm_dump_tdep): Don't dump osabi.
12788 * arm-linux-tdep.c: Include "osabi.h".
12789 * armnbsd-tdep.c: Include "osabi.h".
12791 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12792 Update call to gdbarch_init_osabi.
12794 * i386-tdep.h: Don't include "osabi.h".
12795 (struct gdbarch_tdep): Remove osabi member.
12796 * i386-tdep.c: Include "osabi.h".
12797 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12798 iterate over arches. Update call to gdbarch_init_osabi.
12799 (i386_dump_tdep): Don't dump osabi.
12800 * i386-linux-tdep.c: Include "osabi.h".
12801 * i386-sol2-tdep.c: Include "osabi.h".
12802 * i386bsd-tdep.c: Include "osabi.h".
12803 * i386gnu-tdep.c: Include "osabi.h".
12804 * i386ly-tdep.c: Include "osabi.h".
12805 * i386nbsd-tdep.c: Include "osabi.h".
12806 * i386obsd-tdep.c: Include "osabi.h".
12808 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12809 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12810 check osabi when iterating over arches. Update call to
12811 gdbarch_init_osabi.
12812 (mips_dump_tdep): Don't dump osabi.
12814 * ns32k-tdep.h: Don't include "osabi.h".
12815 (struct gdbarch_tdep): Remove.
12816 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12817 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12818 allocate tdep. Update call to gdbarch_init_osabi.
12819 (ns32k_dump_tdep): Remove.
12820 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12821 * ns32knbsd-tdep.c: Include "osabi.h".
12823 * ppc-tdep.h: Don't include "osabi.h".
12824 (struct gdbarch_tdep): Remove osabi member.
12825 * rs6000-tdep.c: Include "osabi.h".
12826 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12827 osabi when iterating over arches. Update call to
12828 gdbarch_init_osabi.
12829 (rs6000_dump_tdep): Don't dump osabi.
12830 * ppc-linux-tdep.c: Include "osabi.h".
12831 * ppcnbsd-tdep.c: Include "osabi.h".
12833 * sh-tdep.h: Don't include "osabi.h".
12834 (struct gdbarch_tdep): Remove osabi member.
12835 * sh-tdep.c: Include "osabi.h".
12836 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12837 iterate over arches. Update call to gdbarch_init_osabi.
12838 (sh_dump_tdep): Don't dump osabi.
12839 * shnbsd-tdep.c: Include "osabi.h".
12841 * sparc-tdep.c: Include "osabi.h".
12842 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12843 iterate over arches. Update call to gdbarch_init_osabi.
12844 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12847 * vax-tdep.h: Don't include "osabi.h".
12848 (struct gdbarch_tdep): Remove.
12849 * vax-tdep.c: Include "osabi.h".
12850 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12851 iterate over arches. Don't allocate tdep. Update call
12852 to gdbarch_init_osabi.
12853 (vax_dump_tdep): Remove.
12854 (_initialize_vax_tdep): Update call to gdbarch_register.
12856 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12858 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12860 (breakpoint_re_set_one): Don't fetch the value for a disabled
12863 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12865 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12866 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12867 (COERCE_FLOAT_TO_DOUBLE): Remove.
12868 * gdbarch.c: Regenerate.
12869 * gdbarch.h: Regenerate.
12870 * Makefile.in: Remove value_h from gdbarch_h.
12871 * valops.c (coerce_float_to_double): New variable.
12872 (default_coerce_float_to_double): Remove.
12873 (standard_coerce_float_to_double): Remove.
12874 (value_arg_coerce): Use coerce_float_to_double.
12875 (_initialize_valops): Add "set coerce-float-to-double".
12876 * value.h (default_coerce_float_to_double): Remove prototype.
12877 (standard_coerce_float_to_double): Remove prototype.
12879 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12881 * mdebugread.c (parse_symbol): Likewise.
12882 * stabsread.c (define_symbol): Mark all functions as prototyped.
12884 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12885 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12886 set_gdbarch_coerce_float_to_double.
12887 * arm-tdep.c (arm_gdbarch_init): Likewise.
12888 * frv-tdep.c (frv_gdbarch_init): Likewise.
12889 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12890 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12891 * mips-tdep.c (mips_gdbarch_init): Likewise.
12892 (mips_coerce_float_to_double): Remove.
12893 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12894 (rs6000_coerce_float_to_double): Remove.
12895 * s390-tdep.c (s390_gdbarch_init): Likewise.
12896 * sh-tdep.c (sh_gdbarch_init): Likewise.
12897 (sh_coerce_float_to_double): Remove.
12898 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12899 (sparc_coerce_float_to_double): Remove.
12900 * v850-tdep.c (v850_gdbarch_init): Likewise.
12901 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12902 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12903 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12904 (hppa_coerce_float_to_double): Remove prototype.
12905 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12907 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12909 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12911 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12913 Suggested by Stewart Brown <sb24@avaya.com>:
12914 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12915 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12916 (c_type_print_varspec_suffix): Likewise.
12918 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12920 * configure.in: Don't set and AC_SUBST SUBDIRS.
12921 * configure: Regenerated.
12923 * configure.in: Remove code dealing with shared libraries.
12924 * Makefile.in: Remove HLDFLAGS and HLDENV.
12925 * configure: Regenerated.
12927 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12929 * frame.c (deprecated_frame_xmalloc): New function.
12930 (deprecated_set_frame_saved_regs_hack): New function.
12931 (deprecated_set_frame_extra_info_hack): New function.
12932 * frame.h (deprecated_frame_xmalloc): Declare.
12933 (deprecated_set_frame_saved_regs_hack): Declare.
12934 (deprecated_set_frame_extra_info_hack): Declare.
12936 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12938 * configure.in: Move code that provides the --enable-gdbtk option
12939 right after the code that handles the --enable-tui option, and
12940 polish it somewhat.
12941 * configure: Regenerated.
12943 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12944 AC_CHECK_FUNCS and remove the old check for pread64.
12945 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12946 * acconfig.h (_GNU_SOURCE): Add.
12947 (HAVE_PREAD64): Remove.
12948 * configure, aclocal.m4, config.in: Regenerated.
12950 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12952 * alpha-tdep.c: Use get_frame_saved_regs.
12953 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12954 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12955 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12956 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12957 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12959 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12961 * configure.in: Remove all use of the SUBDIRS variable; add
12962 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12963 code providing the --enable-multi-ice option, and move it right in
12964 front of the code that checks whether gdbserver is supported.
12966 * configure: Regenerated.
12967 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
12970 2003-01-03 Andrew Cagney <cagney@redhat.com>
12972 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
12973 * avr-tdep.c, cris-tdep.c: Ditto.
12974 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12975 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
12977 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12979 * configure.in: Remove --enable-netrom option.
12980 * configure: Regenerated.
12982 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12984 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
12985 declaration for `struct re_pattern_buffer' instead.
12986 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
12988 2003-01-03 J. Brobecker <brobecker@gnat.com>
12990 * mdebugread.c (parse_symbol): Count until the stEnd matching
12991 the structure name.
12993 2003-01-02 Mark Kettenis <kettenis@gnu.org>
12995 * configure.in: Remove --with-cpu option.
12996 subscripts. Remove evil changequotes here.
12997 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
12998 * config.in, configure: Regenerated.
13000 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13001 * configure.in: Cleanup section that sources GDB and BFD configure
13002 subscripts. Remove evil changequotes here.
13003 * config.in, configure: Regenerated.
13005 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13007 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13008 frame accessor methods.
13009 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13010 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13011 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13012 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13013 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13014 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13015 * z8k-tdep.c: Ditto.
13017 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13019 * configure.in: Remove UI_OUT configuration code.
13020 * ada-lang.c: Update assuming UI_OUT is always true.
13021 * Makefile.in (UIOUT_CFLAGS): Remove.
13022 * configure: Regenerated.
13023 * TODO: Remove blurb about elimination of -DUI_OUT.
13025 * configure.in: Move code that provides the --enable-gdbcli,
13026 --enable-gdbmi options right before the code that handles the
13027 --enable-tui option. Polish a bit.
13028 * configure: Regenerated.
13030 * configure.in: Rewrite check for GNU regex and the
13031 --without-included regex option, and move it into the "Checks for
13032 library functions" section. This makes us use the system regex
13033 again by default on systems with version 2 of the GNU C library.
13034 This was apparently broken.
13035 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13036 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13037 * config.in, configure: Regenerated.
13039 * configure.in: Move code that provides the --enable-tui option
13040 before the "Checks for libraries" section. Polish the code
13041 somewhat and set need_curses to yes if we build the TUI. Rewrite
13042 code that looks for a library providing termcap functionality to
13043 match more closely what's done in the Readline library, and move
13044 it into to the "Checks for libraries" section.
13045 * configure: Regenerated.
13046 * Makefile.in (TERMCAP): Remove variable.
13047 * config/i386/go32.mh (TERMCAP): Remove variable.
13049 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13051 * MAINTAINERS: Mention gdb_mbuild.sh.
13052 * gdb_mbuild.sh: Rewrite.
13054 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13056 * configure.in: Fix typo in last change.
13057 * config.in, configure: Regenerated.
13059 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13061 * valarith.c (value_binop): Delete obsolete code and comments.
13062 * configure.host: Ditto.
13063 * buildsym.h (make_blockvector): Ditto.
13064 * buildsym.c (make_blockvector): Ditto.
13065 * defs.h (enum language): Ditto.
13066 (chill_demangle): Ditto.
13067 * elfread.c (elf_symtab_read): Ditto.
13068 * dwarfread.c (CHILL_PRODUCER): Ditto.
13069 (set_cu_language): Ditto.
13070 (handle_producer): Ditto.
13071 * expprint.c (print_subexp): Ditto.
13072 * gdbtypes.c (chill_varying_type): Ditto.
13073 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13074 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13075 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13076 (chill_varying_type): Ditto.
13077 * language.h (_LANG_chill): Ditto.
13078 * language.c (binop_result_type, integral_type): Ditto.
13079 (character_type, string_type, structured_type): Ditto.
13080 (lang_bool_type, binop_type_check): Ditto.
13081 * stabsread.h (os9k_stabs): Ditto.
13082 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13083 (define_symbol, read_type, read_struct_fields): Ditto.
13084 (read_array_type, read_enum_type, read_huge_number): Ditto.
13085 (read_range_type, start_stabs): Ditto.
13086 * symfile.c (init_filename_language_table): Ditto.
13087 (add_psymbol_with_dem_name_to_list): Ditto.
13088 * symtab.c (symbol_init_language_specific): Ditto.
13089 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13090 * symtab.h (struct general_symbol_info): Ditto.
13091 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13092 * typeprint.c (typedef_print): Ditto.
13093 * utils.c (fprintf_symbol_filtered): Ditto.
13094 * valops.c (value_cast, search_struct_field, value_slice): Delete
13096 (varying_to_slice): Delete function.
13097 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13098 (varying_to_slice): Delete declaration.
13099 * MAINTAINERS: Update.
13101 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13103 * configure.in: Reorganize "Checks for library functions section"
13104 a bit. Remove check for `btowc' and `isascii' functions.
13105 * configure: Regenerated.
13107 * acconfig.h (_MSE_INT_H): Remove.
13108 * configure.in: Create "Checks for header files" section, and move
13109 appropriate tests there. Don't check for objlist.h, wchar.h,
13110 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13111 misdetection fix. Also add "Checks for types", "Checks for
13112 compiler characteristics" and "Checks for library functions"
13114 * config.in, configure: Regenerated.
13116 * configure.in: Create "Checks for programs" section, and move
13117 appropriate tests there.
13119 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13121 * configure.in: Create "Checks for libraries" section, and move
13122 appropriate tests there. Cleanup check for wctype in libw. Use
13123 AC_SEARCH_LIBS to see whether we need libsocket.
13124 * configure: Regenerated.
13126 For older changes see ChangeLog-2002
13132 version-control: never