1 2003-10-15 Andrew Cagney <cagney@redhat.com>
3 * remote.c (remote_search): Delete function.
4 * target.h (target_search): Delete disabled macro.
5 (struct target_ops): Delete disabled field "to_search".
7 2003-10-14 Kevin Buettner <kevinb@redhat.com>
9 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
10 instead of deprecated_inside_entry_file().
12 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
14 * sh-tdep.c: Fix copy/paste hangover in comment.
15 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
17 (sh3e_sh4_extract_return_value): Ditto.
19 2003-10-13 Richard Henderson <rth@redhat.com>
21 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
22 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
23 match c_val_print a bit closer.
25 2003-10-13 Kevin Buettner <kevinb@redhat.com>
27 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
28 (frv_gdbarch_adjust_breakpoint_address): New function.
29 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
32 2003-10-13 Kevin Buettner <kevinb@redhat.com>
34 * breakpoint.h (struct breakpoint): Add new member
35 ``requested_address''.
36 * breakpoint.c (breakpoint_adjustment_warning)
37 (adjust_breakpoint_address): New static functions.
38 (print_it_typical): Issue warning if breakpoint's address is different
39 from its requested address.
40 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
41 (breakpoint_re_set_one): Set breakpoint's
42 ``requested_address'' field. Set ``address'' field to the
43 result of calling adjust_breakpoint_address() on the requested
46 2003-10-13 Kevin Buettner <kevinb@redhat.com>
48 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
49 * gdbarch.h, gdbarch.c: Regenerate.
51 2003-10-11 Mark Kettenis <kettenis@gnu.org>
53 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
56 * i386fbsd-tdep.c: New file.
57 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
58 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
59 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
61 (_initialize_i386fbsd_tdep): New function.
62 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
63 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
64 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
65 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
67 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
68 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
69 to initialize TDEP->sc_num_regs.
70 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
71 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
72 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
73 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
74 FreeBSD ELF OS/ABI's here.
75 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
76 (i386fbsd-tdep.o): New target.
77 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
78 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
80 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
81 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
82 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
83 in initialization of TDEP->sc_num_regs.
85 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
86 (x86_64_init_abi): Initialize regset_from_core_section if
89 * i386-tdep.c (i386_regset_from_core_section): New function.
90 (i386_gdbarch_init): Initialize regset_from_core_section if
92 * i386-tdep.h (i386_regset_from_core_section): New declaration.
94 * i386-tdep.h (struct regset): Declare opaque.
96 * gdbarch.sh (regset_from_core_section): New method.
97 (struct regset): Declare opaque.
98 * gdbarch.c, gdbarch.h: Regenerated.
100 2003-10-11 Alan Modra <amodra@bigpond.net.au>
102 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
103 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
104 Correct test for pc within section.
106 2003-10-11 Mark Kettenis <kettenis@gnu.org>
108 * gdbarch.sh: Remove trailing whitepsace from comments.
110 2003-10-08 Roland McGrath <roland@redhat.com>
112 * gcore.c (make_mem_sec): Function removed, folded into ...
113 (gcore_create_callback): ... here. To omit a section, clear its
114 SEC_LOAD bit rather than zeroing its size.
115 Omit read-only sections only if they correspond to a known disk file.
116 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
118 2003-10-10 Michael Snyder <msnyder@redhat.com>
120 * d10v-tdep.c: Fix typo in comment.
122 2003-10-10 Andrew Cagney <cagney@redhat.com>
124 * rs6000-tdep.c (e500_store_return_value): Delete function.
125 (e500_extract_return_value): Delete function.
126 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
127 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
128 "ppc_sysv_abi_restore_return_value" where applicable.
129 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
130 (ppc_sysv_abi_extract_return_value): Declare.
131 (ppc_sysv_abi_broken_store_return_value): Declare.
132 (ppc_sysv_abi_broken_extract_return_value): Declare.
133 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
134 * ppc-sysv-tdep.c (return_value_convention): Move definition to
136 (do_ppc_sysv_return_value): New function.
137 (ppc_sysv_abi_extract_return_value): New function.
138 (ppc_sysv_abi_store_return_value): New function.
139 (ppc_sysv_abi_broken_extract_return_value): New function.
140 (ppc_sysv_abi_broken_store_return_value): New function.
141 (ppc_sysv_abi_use_struct_convention): Call
142 do_ppc_sysv_return_value.
144 2003-10-10 J. Brobecker <brobecker@gnat.com>
146 * blockframe.c (inside_main_func): No longer use symbol_lookup()
147 to lookup the main function symbol.
149 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
151 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
153 (sh_push_dummy_call_fpu): Fix argument passing rules.
154 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
156 (sh3e_sh4_store_return_value): Ditto.
158 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
160 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
163 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
165 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
166 more readable code. Accomodate passing of bitfields.
168 2003-10-10 Andrew Cagney <cagney@redhat.com>
170 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
171 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
172 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
173 * ppc-sysv-tdep.c: Include "gdb_assert.h".
174 (ppc64_sysv_abi_push_dummy_call): New function.
175 (ppc64_sysv_abi_broken_push_dummy_call): New function.
176 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
177 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
179 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
181 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
183 * d10v-tdep.c: Ditto.
184 * h8300-tdep.c: Ditto.
185 * remote-e7000.c: Ditto.
186 * remote-hms.c: Ditto.
187 * ser-e7kpc.c: Ditto.
192 * sh64-tdep.c: Ditto.
195 * config/d10v/d10v.mt: Ditto.
196 * config/sh/embed.mt: Ditto.
197 * config/sh/linux.mt: Ditto.
198 * config/sh/tm-linux.h: Ditto.
199 * config/sh/tm-sh.h: Ditto.
200 * config/sh/wince.mt: Ditto.
202 2003-10-09 Andrew Cagney <cagney@redhat.com>
204 * ppc-tdep.h (struct type): Declare opaque.
205 * x86-64-tdep.h (struct regcache): Declare opaque.
206 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
209 2003-10-09 Andrew Cagney <cagney@redhat.com>
211 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
212 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
213 (SOFTWARE_SINGLE_STEP_P): Ditto.
214 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
215 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
216 (SOFTWARE_SINGLE_STEP_P): Ditto.
217 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
218 software_single_step to rs6000_software_single_step.
220 2003-10-09 Andrew Cagney <cagney@redhat.com>
222 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
224 2003-10-09 Michael Snyder <msnyder@redhat.com>
226 * frame.h: Fix typo in comment.
227 * dummy-frame.c: Fix typo in comment.
228 * d10v-tdep.c: Random whitespace/comment tweaks.
230 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
232 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
233 (sh_push_dummy_code): Delete function, it's only used for dummy calls
236 Based on input by Stephen Clarke (stephen.clarke@superh.com):
237 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
240 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
242 * remote-mips.c (mips_initialize): Remove unneeded call to
243 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
245 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
247 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
250 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
252 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
253 for any lwp we resume.
254 (running_callback): Add lwps that have pending status events
255 against them to be considered running.
257 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
259 * m32r-tdep.c : Include "dis-asm.h".
260 * Makefile.in (m32r-tdep.o): Update dependencies.
262 2003-10-06 J. Brobecker <brobecker@gnat.com>
264 * completer.h (get_gdb_completer_word_break_characters): Delete.
265 * completer.c: include language.h.
266 (gdb_completer_word_break_characters): Delete.
267 (get_gdb_completer_word_break_characters): Delete.
268 (location_completer): Use the word break characters of the current
270 (complete_line): Likewise.
271 (line_completion_function): Likewise.
272 (skip_quoted_chars): Likewise.
273 * Makefile.in (completer.o): Add dependency on language.h.
274 * top.c (init_main): Set the readline word break characters
275 to GDB's default word break characters.
277 2003-10-06 J. Brobecker <brobecker@gnat.com>
279 * language.h (language_defn): new field, la_word_break_characters.
280 * language.c (unknown_language_defn): Set new field to
281 default_word_break_characters.
282 (auto_language_defn): Likewise.
283 (local_language_defn): Likewise.
284 * ada-lang.c (ada_language_defn): Likewise.
285 * c-lang.c (c_language_defn): Likewise.
286 (cplus_language_defn): Likewise.
287 (asm_language_defn): Likewise.
288 (minimal_language_defn): Likewise.
289 * f-lang.c (f_language_defn): Likewise.
290 * jv-lang.c (java_language_defn): Likewise.
291 * m2-lang.c (m2_language_defn): Likewise.
292 * objc-lang.c (objc_language_defn): Likewise.
293 * p-lang.c (pascal_language_defn): Likewise.
294 * scm-lang.c (scm_language_defn): Likewise.
296 2003-10-06 Andrew Cagney <cagney@redhat.com>
298 * ppc-sysv-tdep.c: Re-indent.
300 2003-10-06 J. Brobecker <brobecker@gnat.com>
302 * language.h (default_word_break_characters): Add prototype.
303 * language.c (default_word_break_characters): New function.
305 2003-10-06 Andreas Schwab <schwab@suse.de>
307 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
310 2003-10-06 Andrew Cagney <cagney@redhat.com>
312 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
314 (z8k-tdep.o): Delete custom build rule.
316 2003-10-06 Andrew Cagney <cagney@redhat.com>
318 * Makefile.in: Update all dependencies.
320 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
321 No longer list PA as as obsolete candidate. List m32r as
322 broken instead of obsolete.
324 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
325 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
326 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
327 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
328 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
329 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
330 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
331 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
332 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
333 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
334 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
335 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
336 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
337 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
338 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
339 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
340 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
341 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
342 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
343 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
344 * config/z8k/z8k.mt: Ditto.
346 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
347 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
348 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
349 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
350 sparclite were removed.
351 * configure.host, configure.tgt: Remove corresponding tuples.
353 * breakpoint.c, breakpoint.h: Remove obsolete code.
354 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
355 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
356 * stabsread.h, xcoffread.c: Ditto.
358 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
359 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
360 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
361 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
363 2003-10-06 David Lecomber <dsl@sources.redhat.com>
365 * f-valprint.c: Reformatting
367 2003-10-06 Mark Kettenis <kettenis@gnu.org>
369 * x86-64-tdep.c: Remove duplicate comment.
371 * x86-64-tdep.c (x86_64_store_return_value): Don't use
372 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
373 names for return values. This fixes a bug since we looked at %rbx
376 2003-10-05 Mark Kettenis <kettenis@gnu.org>
378 * x86-64-tdep.c: Include "regset.h".
380 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
381 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
383 * i386-tdep.c: Include "regset.h".
384 (i386_supply_gregset): New function.
385 (i386_supply_fpregset): New function.
386 (i386_gdbarch_init): Initialze register set-related members of
388 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
389 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
391 2003-10-03 Andrew Cagney <cagney@redhat.com>
393 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
394 set extract_return_value, store_return_value and
395 use_struct_convention to ppc64_sysv_abi_extract_return_value,
396 ppc64_sysv_abi_store_return_value and
397 ppc64_sysv_abi_use_struct_convention.
398 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
399 (ppc64_sysv_abi_store_return_value): Declare.
400 (ppc64_sysv_abi_use_struct_convention): Declare.
401 * ppc-sysv-tdep.c (enum return_value_convention): Define.
402 (ppc64_sysv_abi_extract_return_value): New function.
403 (ppc64_sysv_abi_store_return_value): New function.
404 (ppc64_sysv_abi_use_struct_convention): New function.
405 (ppc64_sysv_abi_return_value): New function.
407 2003-10-03 Andrew Cagney <cagney@redhat.com>
409 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
410 convert a descriptor to a function when it's in the ".opd"
413 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
415 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
416 reg_size to keep GCC silent.
418 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
420 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
421 base for DW_EH_PE_textrel encodings.
422 (read_encoded_value): Add a DW_EH_PE_textrel case.
423 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
426 2003-10-03 Mark Kettenis <kettenis@gnu.org>
428 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
430 2003-10-02 Andrew Cagney <cagney@redhat.com>
432 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
434 * gdbarch.h, gdbarch.c: Re-generate.
435 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
436 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
437 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
438 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
439 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
440 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
441 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
442 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
443 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
444 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
445 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
446 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
447 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
448 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
449 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
450 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
452 2003-10-02 Jim Blandy <jimb@redhat.com>
454 * dwarf2read.c (struct die_info): Doc fix.
456 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
458 * sh-tdep.c: Running thru gdb_indent.sh.
460 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
462 * sh-tdep.c (sh_justify_value_in_reg): New function.
463 (sh_stack_allocsize): Ditto.
464 (flt_argreg_array): New array used for floating point argument
466 (sh_init_flt_argreg): New function.
467 (sh_next_flt_argreg): Ditto.
468 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
469 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
470 Fix argument passing strategy.
471 (sh_push_dummy_call_nofpu): Ditto.
473 2003-10-01 Andrew Cagney <cagney@redhat.com>
475 * value.h (register_value_being_returned): Declare. Replace
476 "value_being_returned".
477 * infcall.c (call_function_by_hand): Use
478 register_value_being_returned.
479 * infcmd.c (print_return_value): Call
480 "register_value_being_returned", handle struct return locally.
481 * values.c (register_value_being_returned): New function. Replace
482 "value_being_returned".
484 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
486 * linux-proc.c (linux_do_registers): New function.
487 (linux_make_note_section): Use linux_do_registers in case of
488 single threaded inferior programs.
490 2003-10-01 Andrew Cagney <cagney@redhat.com>
492 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
493 use STRUCT_ADDR. When not using "struct return convention", pass
494 "0" to "value_being_returned". Add FIXMEs.
495 * infcmd.c (print_return_value): Pass an explicit 0/1 to
496 value_being_returned. Add comments.
497 * values.c (value_being_returned): Add fixme.
498 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
499 (hppa_value_returned_from_stack): Add FIXME.
501 2003-09-30 David Carlton <carlton@kealia.com>
503 * dwarf2read.c (struct die_info): Add 'parent' field; replace
504 'has_children' and 'next' by 'child' and 'sibling'.
505 (read_comp_unit): Rework algorithm, breaking body into
506 read_die_and_children and read_die_and_siblings.
507 (read_die_and_children, read_die_and_siblings): New.
508 (read_full_die): Add 'has_children' argument; set it instead of
509 the die's 'has_children' field. Minor formatting cleanup.
510 (free_die_list): Use die->child and die->sibling instead of
512 (dump_die_list): Ditto.
513 (sibling_die): Use die->sibling.
514 (psymtab_to_symtab_1): Use die's 'child' field in place of its
515 'has_children' and 'next' fields.
516 (process_die, read_file_scope, read_func_scope)
517 (read_lexical_block_scope, read_structure_scope)
518 (read_enumeration, read_array_type, read_common_block)
519 (read_namespace, read_subroutine_type, dump_die): Ditto.
521 2003-09-30 Andrew Cagney <cagney@redhat.com>
523 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
526 2003-09-30 Andrew Cagney <cagney@redhat.com>
528 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
529 REGISTER_VIRTUAL_SIZE.
530 * gdbarch.h, gdbarch.c: Regenerate.
531 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
532 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
533 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
535 2003-09-29 Andrew Cagney <cagney@redhat.com>
537 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
538 DEPRECATED_REGISTER_VIRTUAL_TYPE.
539 * gdbarch.h, gdbarch.c: Regenerate.
540 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
541 * sh64-tdep.c, sparc-tdep.c: Update.
543 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
544 * remote-vxmips.c (vx_read_register): Ditto.
545 * remote-vx68.c (vx_read_register): Ditto.
546 * gnu-nat.c (inf_validate_procs): Ditto.
548 2003-09-29 J. Brobecker <brobecker@gnat.com>
550 * infcall.c (call_function_by_hand): Fix build failure
551 introduced in the previous change to this file.
553 2003-09-29 Andrew Cagney <cagney@redhat.com>
555 * NEWS: Mention Objective-C.
557 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
559 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
560 test if the register has been saved on the stack.
561 (arm_scan_prologue_cache): When analysing the instruction
562 "str lr, [sp, #-4]", save the address where lr has been stored.
564 2003-09-28 Andrew Cagney <cagney@redhat.com>
566 * frame.c (frame_read_unsigned_register): Delete function.
567 * frame.h (frame_read_unsigned_register): Delete declaration.
568 * sparc-tdep.c (sparc_init_extra_frame_info): Use
569 get_frame_register_unsigned.
570 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
571 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
572 * d10v-tdep.c (d10v_print_registers_info): Ditto.
574 * frame.h (frame_read_register): Delete declaration.
575 * frame.c (frame_read_register): Delete function.
576 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
577 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
578 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
579 * mips-tdep.c (mips_register_to_value): Ditto.
580 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
581 * d10v-tdep.c (d10v_print_registers_info): Ditto.
583 * frame.c (frame_read_signed_register): Delete function.
584 (frame_read_unsigned_register): Update comments.
585 * frame.h (frame_read_signed_register): Delete declaration.
586 * h8300-tdep.c (h8300_print_register): Use
587 get_frame_register_signed.
588 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
590 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
591 Rename VALUE_RETURNED_FROM_STACK.
592 * infcmd.c (print_return_value): Update.
593 * infcall.c (call_function_by_hand): Update.
595 2003-09-28 Mark Kettenis <kettenis@gnu.org>
597 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
598 regcache argument and reverse the order of the other two
599 arguments. Remove local regcache variable. Determine
600 architecture from REGCACHE. Update comments.
601 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
602 reverse the order of the other two arguments. Remove local
603 regcache variable. Determine architecture from REGCACHE. Update
605 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
606 prototypes. Update comments.
607 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
609 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
611 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
612 * i386-interix-nat.c (supply_fpregset): Update.
613 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
614 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
615 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
616 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
617 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
619 * i386obsd-tdep.c (fetch_core_registers): Update.
620 * i386v4-nat.c (supply_fpregset): Update.
621 * x86-64-linux-nat.c (supply_fpregset): Update.
622 * x86-64-linux-tdep.c (fetch_core_registers): Update.
624 2003-09-27 Mark Kettenis <kettenis@gnu.org>
626 * i386-tdep.h: Put opaque declarations in alphabetical
627 order. Remove spurious whitespace.
628 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
629 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
630 * i386-tdep.c (MM0_REGNUM): Remove define.
631 (i386_mmx_regnum_p): Add gdbarch argument.
632 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
633 Rewrite using new macro definitions for FPU/SSE registers.
634 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
635 definitions from i387-tdep.h.
636 (i386_register_name): Update.
637 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
638 new macro definitions for FPU/SSE registers.
639 (i386_extract_return_value): Determine whether floating-point
640 registers are present by examining REGCACHE's architecture.
641 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
642 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
644 (i386_register_type): Update.
645 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
646 definitions for FPU registers. Use REGCACHE's architecture to
647 determine the appropriate register numbers.
648 (i386_pseudo_register_read, i386_pseudo_register_write,
649 i386_register_reggroup_p): Update.
650 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
652 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
653 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
654 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
655 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
656 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
657 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
659 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
660 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
661 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
662 definitions for FPU/SSE registers.
663 (FXSAVE_MXCSR_ADDR): New define.
664 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
666 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
667 (I387_ST0_REGNUM): Define.
669 * regcache.h (get_regcache_arch): New prototype.
670 * regcache.c (get_regcache_arch): New function.
672 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
675 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
676 Initialize using ARRAY_SIZE.
678 2003-09-27 Andrew Cagney <cagney@redhat.com>
680 * arch-utils.c (deprecated_init_frame_pc_default): Rename
681 "init_frame_pc_default".
682 * arch-utils.h (deprecated_init_frame_pc_default): Update.
683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
684 * vax-tdep.c (vax_gdbarch_init): Update.
685 * v850-tdep.c (v850_gdbarch_init): Update.
686 * sh64-tdep.c (sh64_gdbarch_init): Update.
687 * s390-tdep.c (s390_gdbarch_init): Update.
688 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
689 * mcore-tdep.c (mcore_gdbarch_init): Update.
690 * h8300-tdep.c (h8300_gdbarch_init): Update.
691 * cris-tdep.c (cris_gdbarch_init): Update.
692 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
694 2003-09-26 Mark Kettenis <kettenis@gnu.org>
696 * regset.h: New file.
697 * Makefile.in (regset_h): Add.
699 2003-09-25 Andrew Cagney <cagney@redhat.com>
701 * frame.h (deprecated_frame_saved_regs): Rename
702 get_frame_saved_regs.
703 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
704 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
705 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
706 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
707 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
709 2003-09-25 Andrew Cagney <cagney@redhat.com>
711 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
712 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
714 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
715 arm*-*-* do not use the new frame code.
717 2003-09-25 David Carlton <carlton@kealia.com>
719 * c-exp.y: Remove 'register' declarations.
720 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
722 2003-09-25 David Carlton <carlton@kealia.com>
724 * c-exp.y: Include cp-support.h. Add qualified_type.
725 (yylex): Delete nested type hack; add comments.
726 * cp-namespace.c (cp_lookup_nested_type): New function.
727 * cp-support.h: Declare cp_lookup_nested_type.
728 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
729 instead of value_struct_elt_for_reference.
730 * valops.c: Include cp-support.h.
731 (value_aggregate_elt): New function.
732 (value_namespace_elt): Ditto.
733 (value_struct_elt_for_reference): Make static.
734 * value.h: Delete declaration of value_struct_elt_for_reference;
735 add declaration for value_aggregate_elt.
736 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
739 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
741 * stack.c: Include "reggroups.h".
742 (frame_info): Only display registers in all_reggroup.
743 * Makefile.in (stack.o): Update dependencies.
745 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
747 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
748 "add ip, sp #n" in the prologue.
749 (arm_scan_prologue): Ditto.
751 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
753 * MAINTAINERS (write after approval): Add myself.
755 2003-09-25 Andreas Schwab <schwab@suse.de>
757 * m68k-tdep.c: Include "dwarf2-frame.h".
758 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
759 * Makefile.in (m68k-tdep.o): Update dependencies.
761 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
763 * sh-tdep.c (struct frame_extra_info): Remove.
764 (struct sh_frame_cache): New structure.
765 (GET_SOURCE_REG): New macro extracting source register of an opcode.
766 (GET_TARGET_REG): Ditto but target register.
767 (GET_PUSHED_REG): Remove.
768 (IS_MOV_ARG_TO_REG): New macro.
769 (IS_MOV_ARG_TO_IND_R14): New macro.
770 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
771 (IS_MOVW_PCREL_TO_REG): New macro.
772 (IS_MOVL_PCREL_TO_REG): New macro.
773 (IS_SUB_REG_FROM_SP): New macro.
774 (IS_ARG_MOV): Remove.
775 (IS_MOV_TO_R14): Remove.
776 (IS_RESTORE_FP): New macro.
779 (IS_MOV_FP_SP): New macro.
780 (IS_ADD_REG_TO_FP): New macro.
781 (IS_ADD_IMM_FP): New macro.
782 (sh_skip_prologue_hard_way): Remove.
783 (sh_saved_pc_after_call): Remove.
784 (sh_frame_chain): Remove.
785 (sh_find_callers_reg): Remove.
786 (sh_nofp_frame_init_saved_regs): Remove.
787 (sh_fp_frame_init_saved_regs): Remove.
788 (sh_init_extra_frame_info): Remove.
789 (sh_analyze_prologue): New function.
790 (sh_skip_prologue): Remove deprecated code. Rely on new function
791 sh_analyze_prologue when after_prologue fails.
792 (sh_frame_saved_pc): Remove.
793 (sh_alloc_frame_cache): New function.
794 (sh_frame_cache): Ditto.
795 (sh_frame_prev_register): Ditto.
796 (sh_frame_this_id): Ditto.
797 (sh_frame_unwind): New structure defining the heuristic frame
799 (sh_frame_sniffer): New function.
800 (sh_unwind_sp): Ditto.
801 (sh_unwind_pc): Ditto.
802 (sh_unwind_dummy_id): Ditto.
803 (sh_frame_base_address): Ditto.
804 (sh_frame_base): New structure defining new frame base code.
805 (sh_in_function_epilogue_p): New function.
806 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
807 code and to call all new code instead. Initialize dwarf2 and
808 heuristic frame sniffer.
810 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
812 * parser-defs.h (struct exp_descriptor): New definition, containing
813 language-specific info for printing, prefixifying, dumping, and
814 evaluating expressions.
815 (exp_descriptor_standard): Declare new variable.
816 (print_subexp): Make global and declare here (from expprint.c).
817 (dump_subexp): Ditto.
818 (dump_subexp_body_standard): Declare.
819 (operator_length_standard): Declare.
820 (op_name_standard): Declare.
821 (print_subexp): Declare.
822 (print_subexp_standard): Declare.
824 * language.h (struct language_defn): Add la_exp_desc field to hold
825 pointer to table for language-specific operators.
826 Remove evaluate_exp field, which is now in struct exp_descriptor.
828 * parse.c (operator_length): Move most code to new
829 operator_length_standard function. Use language-specific information.
830 (operator_length_standard): New function taking most code from
832 (exp_descriptor_standard): New constant.
834 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
835 and OP_EXTENDED_LAST.
837 * expprint.c (print_subexp): Use language-specific print_subexp.
838 Make global; remove static declaration.
839 Move most code to print_subexp_standard.
840 (print_subexp_standard): New function, containing code formerly in
842 (op_name): Add expression to argument signature.
843 Use langauge-specific op_name.
844 Move most code to op_name_standard.
845 (op_name_standard): New function, containing code formerly in op_name.
846 (dump_subexp): Use new version of op_name function.
847 Use language-specific dump_subexp_body, and move most existing code to
848 dump_subexp_body_standard.
849 (dump_raw_expression): Use new op_name interface.
850 (dump_subexp_body): Move most code to dump_subexp_body_standard.
851 (dump_subexp_body_standard): New function, containing code formerly
854 * language.c (unknown_language): Add default la_exp_desc field and
855 remove evaluate_exp field.
856 (auto_language): Ditto.
857 (local_language): Ditto.
858 * f-lang.c (f_language_defn): Ditto.
859 * c-lang.c (c_language_defn): Ditto.
860 (cplus_language_defn): Ditto.
861 (asm_language_defn): Ditto.
862 (minimal_language_defn): Ditto.
863 * p-lang.c (pascal_language_defn): Ditto.
864 * m2-lang.c (m2_language_defn): Ditto.
865 * objc-lang.c (objc_language_defn): Ditto.
867 * jv-lang.c (exp_descriptor_java): New variable, containing
868 Java-specific expression evaluator.
869 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
871 * scm-lang.c (exp_descriptor_scm): New variable, containing
872 Scheme-specific expression evaluator.
873 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
875 * objc-lang.c (print_object_command): Take evaluate_exp from the
878 * Makefile.in (eval.o): Add dependency on parser-defs.h.
880 * eval.c: Include parser-defs.h for the full declaration of
882 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
884 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
886 * parser-defs.h (operator_length): Declare.
888 * parse.c (length_of_subexp): Use operator_length to get operator
889 lengths and arities for operators.
890 Move most code to new operator_length function.
891 (operator_length): New function absorbing most code from
893 (prefixify_subexp): Remove large case and use operator_length instead.
894 (parse_exp_1): Use renamings:
895 dump_prefix_expression => dump_raw_expression and
896 dump_postfix_expression => dump_prefix_expression.
898 * expression.h (dump_prefix_expression): Rename to ...
899 (dump_raw_expression): New name.
900 (dump_postfix_expression): Rename to ...
901 (dump_prefix_expression): New name.
903 * expprint.c (dump_subexp): Make global. Add comment.
904 Move most existing code to dump_subexp_body.
905 (dump_subexp_body): New function.
906 (dump_prefix_expression): Rename to dump_raw_expression.
907 Remove attempt to print the expression via print_expression: it can't
908 work before the expression is prefixified.
909 (dump_raw_expression): Renamed from dump_prefix_expression.
910 (dump_postfix_expression): Rename to dump_prefix_expression, since
912 Remove 'note' parameter, since this routine must be used on
913 prefixified expression.
914 (dump_prefix_expression): Renamed from dump_postfix_expression.
916 2003-09-22 Jim Blandy <jimb@redhat.com>
918 * dwarf2read.c (read_array_type): When building the type for an
919 array of unspecified length, make sure to choose the upper bound
920 so that the array's total length comes out to be zero --- that's
921 how we represent such arrays.
923 2003-09-22 Michael Chastain <mec@shout.net>
925 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
927 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
929 * top.c (quit_force): Fix indirect call to quit_target so
930 a struct qt_args pointer is passed.
932 2003-09-22 Andrew Cagney <cagney@redhat.com>
934 * arch-utils.h (init_frame_pc_noop): Delete declaration.
935 * arch-utils.c (init_frame_pc_noop): Delete function.
936 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
938 * mips-tdep.c (mips_gdbarch_init): Ditto.
939 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
940 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
942 (DEPRECATED_INIT_FRAME_PC): Delete macro.
943 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
945 (DEPRECATED_INIT_FRAME_PC): Delete macro.
947 2003-09-22 Anthony Green <green@redhat.com>
949 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
952 2003-09-20 Andrew Cagney <cagney@redhat.com>
954 * breakpoint.c: Eliminate ARGSUSED.
955 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
956 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
957 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
958 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
959 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
960 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
961 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
962 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
963 * wince.c, remote-vx.c: Ditto.
965 * cli/cli-script.c: Remove "register" attributes.
966 * config/pa/tm-hppa.h: Ditto.
967 * cli/cli-decode.c: Ditto.
968 * cli/cli-cmds.c: Ditto.
970 2003-09-19 Andrew Cagney <cagney@redhat.com>
972 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
973 DEPRECATED_NPC_REGNUM.
974 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
976 2003-09-19 Christopher Faylor <cgf@redhat.com>
978 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
980 2003-09-19 Jim Blandy <jimb@redhat.com>
982 * macrotab.c (macro_include): Use the correct comparison to find
983 the appropriate place for this inclusion in the list.
985 2003-09-19 Andrew Cagney <cagney@redhat.com>
987 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
988 (DEPRECATED_HPUX_TEXT_END): Define.
989 (deprecated_hpux_text_end): Declare.
990 (struct target_ops): Declare opaque.
991 * hppah-nat.c (text_end): Make static.
992 (deprecated_hpux_text_end): New function.
993 * exec.c (text_end): Delete global variable.
994 (NEED_TEXT_START_END): Do not define.
995 (exec_file_attach): Replace code computing "text_end" code with
996 call to DEPRECATED_HPUX_TEXT_END.
998 2003-09-19 Andrew Cagney <cagney@redhat.com>
1000 * utils.c (align_up, align_down): New functions.
1001 * defs.h (align_up, align_down): Declare.
1002 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
1003 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
1005 (round_up, round_down): Delete functions.
1006 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1008 (ROUND_DOWN, ROUND_UP): Delete macros.
1009 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
1010 * h8300-tdep.c: Replace "round_up" and "round_down" with
1011 "align_up" and "align_down".
1012 (round_up, round_down): Delete macros.
1013 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
1015 (ROUND_UP, ROUND_DOWN): Delete macros.
1017 2003-09-18 J. Brobecker <brobecker@gnat.com>
1019 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
1020 hard-coded constant. Use the proper machine name instead.
1022 2003-09-17 Andrew Cagney <cagney@redhat.com>
1024 * sparc-tdep.c (legacy_register_name): Delete function.
1025 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
1026 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
1027 * infcmd.c (gdb_register_name): Delete variable.
1028 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
1029 REGISTER_NAME and "tm.h".
1030 * gdbarch.h, gdbarch.c: Regenerate.
1031 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
1032 REGISTER_NAMES in comments.
1033 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
1034 * m68klinux-nat.c (regmap): Ditto.
1036 2003-09-17 Jim Blandy <jimb@redhat.com>
1038 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
1040 2003-09-17 Andrew Cagney <cagney@redhat.com>
1042 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
1043 (ppcnbsd_init_abi): Set "use_struct_convention" to
1044 "ppcnbsd_use_struct_convention".
1046 2003-09-17 Mark Kettenis <kettenis@gnu.org>
1048 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1049 * gdbarch.h, gdbarch.c: Regenerate.
1050 (stabs_argument_has_addr): New architecture method.
1051 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1052 * arch-utils.c: Include "buildsym.h".
1053 (default_stabs_argument_has_addr): New function.
1054 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1055 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1057 2003-09-17 Andrew Cagney <cagney@redhat.com>
1059 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
1060 * gdbarch.h, gdbarch.c: Regenerate.
1061 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
1062 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
1063 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
1064 * sparcnbsd-tdep.c: Update.
1066 2003-09-17 Andrew Cagney <cagney@redhat.com>
1068 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
1069 * gdbarch.h, gdbarch.c: Regenerate.
1070 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
1071 * d10v-tdep.c, frame.c: Update.
1072 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
1073 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
1074 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
1075 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
1076 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1077 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
1078 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
1079 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
1080 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
1081 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
1082 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
1083 * config/pa/nm-hppah.h: Update.
1085 2003-09-16 Andrew Cagney <cagney@redhat.com>
1087 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
1088 "use_struct_convention" to "ppc_linux_use_struct_convention".
1089 (ppc_linux_use_struct_convention): New function.
1090 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
1091 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
1092 "rs6000_use_struct_convention".
1093 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
1095 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1098 2003-09-16 Andrew Cagney <cagney@redhat.com>
1100 * buildsym.c: Remove more occurances of "register".
1101 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
1102 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
1103 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
1104 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
1105 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
1106 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
1107 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
1108 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
1110 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
1112 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
1113 numbers to enumeration values.
1114 * sh-tdep.c: Accomodate above change.
1115 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
1116 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
1117 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
1118 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
1119 (IS_FPUSH): Rename from IS_FMOV.
1120 (sh_extract_struct_value_address): Remove useless comment.
1121 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
1122 instead of own local values.
1123 (sh_dump_tdep): Remove.
1124 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
1125 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
1127 2003-09-15 Andrew Cagney <cagney@redhat.com>
1129 * doublest.c (convert_floatformat_to_doublest): No longer need to
1130 cast "exp_bias" to an int. Reverts 2002-12-04 change.
1132 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
1134 * values.c (unpack_double): Call floatformat_is_valid.
1136 2003-09-15 Mark Kettenis <kettenis@gnu.org>
1138 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
1139 ps_strings into a long.
1141 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
1142 _initialize_am64fbsd_nat.
1144 2003-09-15 Kevin Buettner <kevinb@redhat.com>
1146 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
1147 associated with DW_AT_ranges attribute is out of bounds.
1149 2003-09-15 David Lecomber <dsl@sources.redhat.com>
1151 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
1153 2003-09-14 Michael Chastain <mec@shout.net>
1155 * config/m68k/nm-apollo68v.h: Delete.
1156 * config/m68k/xm-apollo68v.h: Delete.
1158 2003-09-14 Andrew Cagney <cagney@redhat.com>
1160 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
1161 * dcache.c: Update copyrights and descriptions.
1162 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
1164 2003-09-14 Andrew Cagney <cagney@redhat.com>
1166 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
1167 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
1169 2003-09-14 Andrew Cagney <cagney@redhat.com>
1171 * alpha-nat.c: Remove some occurances of "register".
1172 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
1173 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
1174 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
1175 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
1176 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
1177 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
1178 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
1179 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
1180 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
1181 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
1182 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
1183 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
1184 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
1185 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
1186 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
1187 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
1188 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
1189 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
1190 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
1191 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
1192 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
1193 * values.c, vax-tdep.c, xcoffread.c: Ditto.
1195 2003-09-13 Andrew Cagney <cagney@redhat.com>
1197 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
1198 * ppc-tdep.h (struct regcache): Declare opaque.
1199 * objfiles.h (struct objfile_data): Declare opaque.
1200 * cp-support.h (struct objfile): Declare opaque.
1201 * linux-nat.h (target_waitstatus): Declare opaque.
1203 2003-09-14 Mark Kettenis <kettenis@gnu.org>
1205 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
1206 (stabs_argument_has_addr): New architecture method.
1207 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
1208 * arch-utils.c: Include "buildsym.h".
1209 (default_stabs_argument_has_addr): New function.
1210 * stabsread.c (define_symbol): Use stabs_argument_has_addr
1211 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
1213 * cris-tdep.c (cris_gdbarch_init): Set
1214 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
1215 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
1216 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
1217 * mips-tdep.c (mips_gdbarch_init): Likewise.
1218 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1219 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
1221 2003-09-13 Andrew Cagney <cagney@redhat.com>
1223 * values.c (using_struct_return): Delete "function" and "funcaddr"
1225 * value.h (using_struct_return): Update declaration.
1226 * infcmd.c (finish_command_continuation): Update.
1227 (finish_command): Update.
1228 * infcall.c (call_function_by_hand): Update.
1229 * eval.c (evaluate_subexp_standard): Update.
1231 2003-09-13 Christopher Faylor <cgf@redhat.com>
1233 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
1234 SSE registers since gdb will not operate correctly without this.
1235 Restore include file ordering munged in previous change.
1236 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
1238 2003-09-13 Mark Kettenis <kettenis@gnu.org>
1240 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
1241 REG_STRUCT_HAS_ADDR.
1242 * gdbarch.c, gdbarch.h: Updated.
1243 * infcall.c (call_function_by_hand): Update.
1244 * stabsread.c (define_symbol): Updated.
1246 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
1248 2003-09-12 Christopher Faylor <cgf@redhat.com>
1250 * win32-nat.c: Reorganize so that defines used by target headers are
1251 actually defined by the system headers.
1252 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
1253 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
1255 2003-09-12 Jim Blandy <jimb@redhat.com>
1257 * dbxread.c (read_dbx_symtab): Don't report an internal error if
1258 the file has no .data, .bss, or .rodata sections. Instead wait
1259 until we see a variable alleged to live in one of those sections.
1261 * dbxread.c (read_dbx_symtab): If we have no .data section and no
1262 .bss section, presume that any variables we find live in the
1265 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
1266 offsets for global and static variables.
1268 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
1269 symbol types are, by definition, in the .data section, so it is
1270 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
1271 If there is no .data section, there should be no N_DATA or N_DATA
1274 2003-09-12 Mark Kettenis <kettenis@gnu.org>
1276 * amd64fbsd-tdep.c: Fix sigtramp recognition.
1277 (amd64fbsd_sigcontext_addr): Rewrite.
1278 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
1279 with correct values.
1280 (amd64fbsd_sc_reg_offset): Initialize with correct values.
1281 (amd64fbsd_init_abi): Fix typo.
1283 2003-09-12 Andrew Cagney <cagney@redhat.com>
1285 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
1286 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
1288 2003-09-12 Andrew Cagney <cagney@redhat.com>
1290 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
1291 "entry_file_highpc". Update comments.
1292 * defs.h (deprecated_inside_entry_file): Rename
1293 "inside_entry_file".
1294 * blockframe.c (deprecated_inside_entry_file): Rename
1295 "inside_entry_file".
1296 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
1297 * vax-tdep.c (vax_frame_chain): Update.
1298 * sh64-tdep.c (sh64_frame_chain): Update.
1299 * sh-tdep.c (sh_frame_chain): Update.
1300 * rs6000-tdep.c (rs6000_frame_chain): Update.
1301 * ns32k-tdep.c (ns32k_frame_chain): Update.
1302 * mips-tdep.c (mips_frame_chain): Update.
1303 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
1304 * m32r-tdep.c (m32r_frame_this_id): Update.
1305 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
1306 * frv-tdep.c (frv_frame_this_id): Update.
1307 * d10v-tdep.c (d10v_frame_this_id): Update.
1308 * cris-tdep.c (cris_frame_chain): Update.
1309 * blockframe.c (legacy_frame_chain_valid): Update.
1310 * avr-tdep.c (avr_frame_this_id): Update.
1311 * arm-tdep.c (arm_prologue_this_id): Update.
1312 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
1313 * objfiles.c (objfile_relocate): Update.
1314 * mipsread.c (mipscoff_symfile_read): Update.
1315 (mipscoff_symfile_read): Update.
1316 * mdebugread.c (parse_partial_symbols): Update.
1317 * dwarfread.c (read_file_scope): Update.
1318 * dwarf2read.c (read_file_scope): Update.
1319 * dbxread.c (read_dbx_symtab): Update.
1320 (read_dbx_symtab): Update.
1321 * coffread.c (complete_symtab): Update.
1323 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
1325 * top.c (quit_target): New static helper function.
1326 (quit_force): Moved code to quit_target(). Call quit_target()
1327 via catch_errors() to catch errors during quit.
1329 2003-09-11 David Carlton <carlton@kealia.com>
1331 * buildsym.c (finish_block): Use allocate_block to allocate the
1333 * mdebugread.c (new_block): Add FIXME.
1335 2003-09-11 David Carlton <carlton@kealia.com>
1337 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
1338 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
1339 (recursive_dump_type): Ditto.
1340 * printcmd.c (print_formatted): Ditto.
1341 * typeprint.c (print_type_scalar): Ditto.
1342 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
1343 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
1344 * cp-support.h: Declare cp_check_possible_namespace_symbols,
1345 maint_cplus_cmd_list.
1346 * cp-support.c: Make maint_cplus_cmd_list extern.
1347 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
1349 (lookup_symbol_file): Look in possible namespace blocks when
1351 (initialize_namespace_symtab): New.
1352 (get_possible_namespace_block, free_namespace_block)
1353 (check_possible_namespace_symbols)
1354 (check_possible_namespace_symbols_loop)
1355 (check_one_possible_namespace_symbol)
1356 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
1357 (_initialize_cp_namespace): Ditto.
1358 * block.h: Declare allocate_block.
1359 * block.c (allocate_block): New.
1360 * jv-lang.c (get_java_class_symtab): Allocate blocks via
1362 * symfile.h: Update declaration of add_psymbol_to_list.
1363 * symfile.c (add_psymbol_to_list): Return the partial symbol in
1365 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
1366 scan_partial_symbols_call.
1367 (scan_partial_symbols): Add NAMESPACE argument; update calls to
1369 (add_partial_symbol): If necessary, scan mangled names for names
1371 (add_partial_namespace): Add NAMESPACE argument; generate partial
1372 symbols associated to namespaces.
1373 (add_partial_enumeration): Add NAMESPACE argument.
1374 (new_symbol): Allow namespace syms.
1375 (read_namespace): Generate namespace syms.
1376 * objfiles.h: Add opaque declaration of struct symtab.
1377 (struct objfile): Add cp_namespace_symtab member.
1378 * objfiles.c (allocate_objfile): Set
1379 objfile->cp_namespace_symtab.
1380 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
1381 dictionary_h, command_h.
1383 2003-09-11 Andrew Cagney <cagney@redhat.com>
1385 * rs6000-tdep.c (rs6000_push_dummy_call): Use
1386 regcache_raw_write_signed to set SP_REGNUM, move the operation to
1387 near the function's end.
1388 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
1389 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
1390 regcache_raw_write_signed to set SP_REGNUM.
1392 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
1394 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
1395 orig_addrs is set up properly.
1397 2003-09-11 Andrew Cagney <cagney@redhat.com>
1399 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
1400 * gdbarch.h, gdbarch.c: Re-generate.
1401 * infcall.c (call_function_by_hand): Update.
1402 * hppa-tdep.c (hppa_push_arguments): Update.
1403 * ada-lang.c (place_on_stack): Update.
1404 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1405 * sparc-tdep.c (sparc_gdbarch_init): Update.
1406 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1407 * hppa-tdep.c (hppa_gdbarch_init): Update.
1408 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
1411 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
1413 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
1414 register do need a frame.
1416 2003-09-11 Andrew Cagney <cagney@redhat.com>
1418 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
1419 buildable since GDB 5.0.
1420 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
1421 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
1422 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
1423 * irix4-nat.c: Delete file.
1424 * config/mips/irix4.mh: Delete file.
1425 * config/mips/irix3.mh: Delete file.
1426 * config/mips/irix3.mt: Delete file.
1427 * config/mips/tm-irix3.h: Delete file.
1428 * config/mips/nm-irix3.h: Delete file.
1429 * config/mips/xm-irix3.h: Delete file.
1430 * config/mips/nm-irix4.h: Delete file.
1431 * config/mips/xm-irix4.h: Delete file.
1432 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
1434 2003-09-10 J. Brobecker <brobecker@gnat.com>
1436 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
1437 * Makefile.in (hppa-tdep.o): Update dependencies.
1439 2003-09-10 James E Wilson <wilson@specifixinc.com>
1441 * MAINTAINERS: Change my e-mail address. Move to paper trail
1444 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1446 * MAINTAINERS (frv): New ISA entry.
1448 2003-09-10 Kevin Buettner <kevinb@redhat.com>
1450 * frv-tdep.c (dis-asm.h): Include.
1451 * Makefile.in (frv-tdep.o): Update dependencies.
1453 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
1455 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
1456 Fix typo for high range of floating registers.
1458 2003-09-09 David Carlton <carlton@kealia.com>
1460 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
1461 highpc initialization here out of scan_partial_symbols.
1462 (scan_partial_symbols): Restructure into a recursive version,
1463 calling add_partial_namespace and add_partial_enumeration when
1465 (add_partial_namespace): New.
1466 (add_partial_enumeration, locate_pdi_sibling): Ditto.
1468 2003-09-09 Andrew Cagney <cagney@redhat.com>
1470 * rs6000-tdep.c (ppc_push_return_address): Delete function.
1471 (rs6000_push_dummy_call): Set LR to BP_ADDR.
1472 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
1473 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1475 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
1476 (rs6000_push_dummy_call): Set the "TOC" register.
1478 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
1479 methods "max_register_raw_size", "max_register_virtual_size" or
1480 "register_virtual_size".
1482 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
1484 * MAINTAINERS: Update my e-mail address.
1486 2003-09-09 Andrew Cagney <cagney@redhat.com>
1488 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
1489 (rs6000_push_dummy_call): Store the struct return address.
1490 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
1492 2003-09-09 Andrew Cagney <cagney@redhat.com>
1494 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
1495 "ppc_sysv_abi_push_arguments".
1496 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
1497 "ppc_sysv_abi_push_arguments".
1498 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
1499 instead of "push_arguments".
1500 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
1502 2003-09-09 Andrew Cagney <cagney@redhat.com>
1504 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
1505 instead of CALL_DUMMY_ADDRESS.
1507 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
1509 * p-lang.c: Eliminate "register".
1511 * expprint.c: Ditto.
1514 * language.c: Ditto.
1517 * scm-lang.c: Ditto.
1518 * objc-lang.c: Ditto.
1520 2003-09-09 Nick Clifton <nickc@redhat.com>
1522 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
1524 2003-09-04 Andrew Cagney <cagney@redhat.com>
1526 * avr-tdep.c: Include "dis-asm.h".
1527 * cris-tdep.c: Include "dis-asm.h".
1528 (cris_delayed_get_disassembler): Use "struct disassemble_info"
1529 instead of corresponding typedef.
1530 * h8300-tdep.c: Include "dis-asm.h".
1531 * ia64-tdep.c: Include "dis-asm.h".
1532 * i386-tdep.c: Include "dis-asm.h".
1533 (i386_print_insn): Use "struct disassemble_info" instead of
1534 corresponding typedef.
1535 * m68k-tdep.c: Include "dis-asm.h".
1536 * mcore-tdep.c: Include "dis-asm.h".
1537 * mips-tdep.c: Include "dis-asm.h".
1538 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
1539 instead of corresponding typedef.
1540 * ns32k-tdep.c: Include "dis-asm.h".
1541 * s390-tdep.c: Include "dis-asm.h".
1542 * sparc-tdep.c: Include "dis-asm.h".
1543 * vax-tdep.c: Include "dis-asm.h".
1544 * v850-tdep.c: Include "dis-asm.h".
1545 * mn10300-tdep.c: Include "dis-asm.h".
1546 * rs6000-tdep.c: Include "dis-asm.h".
1547 * xstormy16-tdep.c: Include "dis-asm.h".
1548 (_initialize_xstormy16_tdep): Delete "extern" declaration of
1549 print_insn_xstormy16.
1550 * Makefile.in (v850-tdep.o): Update dependencies.
1551 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
1552 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
1553 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
1554 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
1555 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
1556 (gdbarch_h): Remove $(dis_asm_h).
1557 * disasm.c: Include "dis-asm.h".
1558 (dis_asm_read_memory): Use "struct disassemble_info" instead of
1559 corresponding typedef.
1560 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
1561 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
1562 * gdbarch.sh: Do not include "dis-asm.h".
1563 (struct disassemble_info): Declare opaque.
1564 (TARGET_PRINT_INSN): Update declaration.
1565 * gdbarch.h, gdbarch.c: Re-generate.
1567 2003-09-08 Andrew Cagney <cagney@redhat.com>
1569 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
1570 CALL_DUMMY_ADDRESS, change to a predicate.
1571 * gdbarch.h, gdbarch.c: Re-generate.
1572 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
1573 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
1574 * infcall.c (call_function_by_hand): Ditto.
1575 * sparc-tdep.c (sparc_push_return_address): Ditto.
1576 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
1577 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
1578 CALL_DUMMY_ADDRESS with entry_point_address.
1579 * v850-tdep.c (v850_push_return_address): Ditto.
1580 * s390-tdep.c (s390_push_return_address): Ditto.
1581 * rs6000-tdep.c (ppc_push_return_address): Ditto.
1582 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
1583 * mcore-tdep.c (mcore_push_return_address): Ditto.
1584 * cris-tdep.c (cris_push_return_address): Ditto.
1585 * arm-tdep.c (arm_push_return_address): Ditto.
1587 2003-09-08 Andrew Cagney <cagney@redhat.com>
1589 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
1590 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
1591 and REG_UNMODIFIED to REG_SAME_VALUE.
1592 (execute_cfa_program): Update.
1593 (dwarf2_frame_cache): Update. Initialize table to
1594 REG_UNSPECIFIED, complain if CFI fails to specify a register's
1596 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
1598 2003-09-08 Andrew Cagney <cagney@redhat.com>
1600 * gnu-nat.c: Remove "inline" function attribute.
1601 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
1603 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1605 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
1608 2003-09-08 Kevin Buettner <kevinb@redhat.com>
1610 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
1611 (frame_extra_info): Rename this struct to frv_unwind_cache.
1612 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
1613 Add fields ``prev_sp'' and ``base''.
1614 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
1615 (frv_saved_pc_after_call, frv_init_extra_frame_info)
1616 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
1618 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
1619 Revise all callers. Fill in the unwind cache argument and make
1620 other adjustments to account for new frame mechanisms.
1621 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
1622 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
1623 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
1624 (frv_frame_unwind, frv_frame_base): New structs.
1625 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
1626 additional arguments expected by this method and adjust function
1628 (frv_gdbarch_init): Remove calls to the following functions:
1629 set_gdbarch_deprecated_init_frame_pc(),
1630 set_gdbarch_deprecated_saved_pc_after_call(),
1631 set_gdbarch_deprecated_frame_chain(),
1632 set_gdbarch_deprecated_frame_saved_pc(),
1633 set_gdbarch_deprecated_frame_init_saved_regs(),
1634 set_gdbarch_deprecated_push_arguments(),
1635 set_gdbarch_deprecated_push_return_address(),
1636 set_gdbarch_deprecated_pop_frame(),
1637 set_gdbarch_deprecated_call_dummy_words(),
1638 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1639 set_gdbarch_deprecated_init_extra_frame_info(),
1640 set_gdbarch_deprecated_dummy_write_sp(), and
1641 set_gdbarch_deprecated_pc_in_call_dummy().
1642 Add calls to the following functions:
1643 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
1644 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
1645 frame_base_set_default().
1646 * Makefile.in (frv-tdep.o): Update dependencies.
1648 2003-09-09 Mark Kettenis <kettenis@gnu.org>
1650 * dwarf2-frame.c (read_encoded_value): Add support for
1651 DW_EH_PE_aligned encoding.
1653 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1655 * infrun.c (normal_stop): Don't print a message if the inferior
1658 2003-09-08 Jim Blandy <jimb@redhat.com>
1660 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
1661 * dbxread.c: #include "gdb_assert.h".
1662 (read_dbx_symtab): If the objfile has no .data section, use the
1663 section index for the .bss section instead.
1665 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
1667 * frame.c (deprecated_safe_get_selected_frame): New function.
1668 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
1669 * findvar.c (read_var_value): Call it.
1671 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
1673 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
1674 (sh64-tdep.o): Add dependencies.
1675 * configure.tgt: Add FIXME to sh-*-linux*.
1676 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
1677 (sh_gdbarch_init): Always set correct sh_show_regs function
1678 pointer. Call sh64_gdbarch_init() if machine type is sh5.
1679 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
1680 * sh64-tdep.c: New file, containing all sh64 related code from
1682 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
1683 * config/sh/linux.mt (TDEPFILES): Ditto.
1684 * config/sh/nbsd.mt (TDEPFILES): Ditto.
1685 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
1686 * config/sh/wince.mt (TDEPFILES): Ditto.
1688 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1690 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
1691 (stop_wait_callback): Handle !lp->signalled also.
1692 (lin_lwp_has_pending, flush_callback): New functions.
1693 (lin_lwp_wait): Call flush_callback.
1694 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
1695 (linux_proc_pending_signals): New function.
1696 * linux-nat.h (linux_proc_pending_signals): Add prototype.
1698 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
1700 From Nick Kelsey <nickk@ubicom.com>:
1701 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
1702 when the stop PC is at the beginning of a function also.
1704 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
1706 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
1707 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
1709 2003-09-06 Mark Kettenis <kettenis@gnu.org>
1711 * sol-thread.c: Include "gdb_string.h".
1713 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
1715 * gcore.c: Reorder include files in alphabetical order. Include
1716 "gdb_assert.h". Various coding style fixes.
1717 (derive_stack_segment, derive_heap_segment): Replace check for
1718 non-null BOTTOM and TOP with gdb_assert.
1719 (derive_heap_segment): Replace check for successful creation of
1720 ZERO with gdb_assert.
1721 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
1723 2003-09-04 Andrew Cagney <cagney@redhat.com>
1725 * thread-db.c (verbose_dlsym): New function.
1726 (thread_db_load): Use verbose_dlsym
1727 (thread_db_new_objfile): Print that libthread_db was loaded, and
1728 that thread debugging was enabled.
1730 2003-09-04 Andrew Cagney <cagney@redhat.com>
1732 * configure.tgt: Add "mips64*-*-*" target. Delete
1733 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
1734 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
1735 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
1736 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
1737 mips*-sony-*, and mips64*-*-elf* targets.
1738 * config/mips/embedl.mt: Delete file.
1739 * config/mips/embedl64.mt: Delete file.
1740 * config/mips/mips.mt: Delete file.
1741 * config/mips/mips64.mt: Delete file.
1742 * config/mips/tm-embed.h: Delete file.
1743 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
1744 * config/mips/embed64.mt: Delete out-of-date comment.
1746 2003-09-04 Andrew Cagney <cagney@redhat.com>
1748 * hppa-tdep.c (hppa_gdbarch_init): Set
1749 "have_nonsteppable_watchpoint".
1750 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1751 * mips-tdep.c (mips_dump_tdep): Do not print
1752 HAVE_NONSTEPPABLE_WATCHPOINT.
1753 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
1754 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1755 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1756 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
1758 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1760 * breakpoint.c (watchpoint_check): Remove accidentally checked in
1761 unused code. Add comment.
1763 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
1765 * breakpoint.c (watchpoint_check): Check for pc being in an
1766 epilogue if watchpoint frame couldn't be found.
1768 2003-09-04 Andrew Cagney <cagney@redhat.com>
1770 * Makefile.in: Re-generate all dependencies.
1772 2003-09-03 Andrew Cagney <cagney@redhat.com>
1774 * arch-utils.h (legacy_print_insn): Delete declaration.
1775 * arch-utils.c (legacy_print_insn): Delete function.
1776 * disasm.c (deprecated_tm_print_insn_info): Delete.
1777 (_initialize_disasm): Delete function, contained code initializing
1778 deprecated_tm_print_insn_info.
1779 * gdbarch.sh (deprecated_tm_print_insn): Delete.
1780 (deprecated_tm_print_insn_info): Delete.
1781 (TARGET_PRINT_INSN): Do not provide a default.
1782 * gdbarch.h, gdbarch.c: Re-generate.
1784 2003-09-03 Andrew Cagney <cagney@redhat.com>
1786 * disasm.c (fprintf_disasm): New function.
1787 (gdb_disassemble_info): Call "init_disassemble_info", instead of
1788 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
1789 reverts 2003-08-14 change.
1790 (_initialize_disasm): Call "init_disassemble_info", instead of
1791 INIT_DISASSEMBLE_INFO_NO_ARCH.
1793 2003-09-03 Michael Snyder <msnyder@redhat.com>
1795 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
1797 2003-09-03 Andrew Cagney <cagney@redhat.com>
1799 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
1800 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
1801 * symfile.c (syms_from_objfile): Update.
1802 (reread_symbols): `Update
1803 * exec.c (exec_file_attach): Update.
1804 (exec_file_attach): Update.
1805 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
1807 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
1809 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1811 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
1813 (arm_get_cache): Delete macro.
1814 (struct arm_prologue_cache): Update comments. Make saved_regs into
1815 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
1817 (thumb_scan_prologue): Update for cache changes. Don't call
1818 DEPRECATED_PC_IN_CALL_DUMMY.
1819 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
1820 argument and use it in desperation search for our prologue. Do not
1821 search past the specified PC.
1822 (arm_make_prologue_cache): Simplify.
1824 (arm_prologue_this_id, arm_prologue_prev_register)
1825 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
1826 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
1827 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
1828 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
1829 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
1831 (arm_frame_chain_valid, arm_find_callers_reg)
1832 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
1833 (arm_pop_frame): Delete obsolete methods.
1834 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
1836 (arm_gdbarch_init): Update for new frame methods. Register prologue
1837 and sigtramp unwinders. Set the default frame base method.
1839 * Makefile.in (arm-tdep.o): Update dependencies.
1840 * varobj.c (find_frame_addr_in_frame_chain): Call
1841 get_frame_base_address.
1842 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
1844 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1846 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
1847 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
1848 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
1849 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
1850 Take NEXT_FRAME and CACHE arguments. Call
1851 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
1852 Set unwound_pc in CACHE instead of modifying the frame argument.
1853 Don't bother checking the frame type when looking for sigtramp
1855 (arm_make_prologue_cache, arm_frame_chain)
1856 (arm_init_extra_frame_info): New functions.
1858 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
1860 * arm-tdep.c (arm_get_cache): Define.
1861 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
1862 unwound_sp, unwound_pc, and saved_regs.
1863 (thumb_scan_prologue): Take a cache instead of the frame.
1864 (arm_scan_prologue): Likewise.
1865 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
1866 instead of a temporary frame.
1867 (arm_init_extra_frame_info): Allocate and use a cache.
1868 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
1870 2003-09-03 Andrew Cagney <cagney@redhat.com>
1872 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
1873 * config/mips/wince.mt (TM_CLIBS): Ditto.
1874 * config/sh/wince.mt (TM_CLIBS): Ditto.
1875 * config/pa/hppa64.mt (TM_CLIBS): Delete.
1876 * config/sparc/sp64.mt (CC): Delete.
1878 2003-09-03 Andrew Cagney <cagney@redhat.com>
1880 * defs.h: Do not include "arch-utils.h".
1881 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
1882 GDB_MULTI_ARCH_PURE.
1883 * configure.in (GDB_MULTI_ARCH): Do not define.
1884 * configure, config.in: Regenerate.
1885 * configure.tgt: Do not set variable "gdb_multi_arch".
1886 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
1887 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
1888 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
1889 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
1890 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
1891 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
1892 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
1893 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
1894 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
1895 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
1896 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
1897 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
1898 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
1899 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
1900 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
1901 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
1902 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
1903 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
1905 2003-08-30 Michael Chastain <mec@shout.net>
1907 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
1908 * config/m68k/nm-hp300hpux.h: Delete.
1909 * config/m68k/tm-hp300hpux.h: Delete.
1910 * config/m68k/xm-hp300hpux.h: Delete.
1911 * config/m68k/xm-hp300bsd.h: Delete.
1912 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
1913 tm-hp300hpux.h, xm-hp300hpux.h.
1914 * somsolib.c: Remove comment about hp300 shared libraries.
1916 2003-08-31 Mark Kettenis <kettenis@gnu.org>
1918 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
1919 Only define PTRACE_GET_THREAD_AREA is not already defined.
1920 Various style fixes in code and comments and some additional
1921 spelling fixes in comments. Move after functions dealing with
1923 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
1926 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
1927 frame_unwind_register_unsigned instead of
1928 frame_unwind_unsigned_register.
1930 2003-08-30 Mark Kettenis <kettenis@gnu.org>
1932 * configure.in: Search for gethostbyname in libnsl.
1933 * configure: Regenerated.
1935 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1937 * configure.in: Remove redundant AC_MSG_RESULT in check for
1938 uintptr_t in stdint.h.
1939 * configure: Regenerated.
1941 * amd64-nat.h (struct regcache): Add opaque declaration.
1943 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
1944 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
1945 Change "register array" to "register cache" in comments.
1946 (x86_64_linux_gregset64_reg_offset): New variable.
1947 (GETREGS_SUPPLIES): Remove macro.
1948 (supply_gregset): Call amd64_supply_native_gregset instead of
1949 x86_64_linux_supply_gregset.
1950 (fill_gregset): Rename `regno' to `regnum'. Call
1951 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
1952 (store_regs): Rename `regno' to `regnum'.
1953 (store_fpregs): Rename `regno' to `regnum'.
1954 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
1955 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1956 Reorganize function a bit.
1957 (store_inferior_registers): Rename `regno' to `regnum'. Use
1958 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
1959 Reorganize function a bit.
1960 (_initialize_x86_64_linux_nat): New function.
1961 * config/i386/x86-64linux.mh.
1963 2003-08-29 Andrew Cagney <cagney@redhat.com>
1965 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
1966 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
1967 (target_remove_watchpoint): Delete macro.
1968 (target_insert_watchpoint): Delete macro.
1969 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
1970 (remote_mips_stopped_by_watchpoint): Delete declaration.
1971 (remote_mips_remove_watchpoint): Delete declaration.
1972 (remote_mips_set_watchpoint): Delete declaration.
1973 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
1974 * remote-mips.c (_initialize_remote_mips): Set
1975 "to_insert_watchpoint", "to_stopped_by_watchpoint",
1976 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
1977 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
1978 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
1979 (mips_stopped_by_watchpoint): Rename
1980 remote_mips_stopped_by_watchpoint.
1981 (mips_can_hardware_watchpoint): Rename
1982 remote_mips_can_use_hardware_watchpoint, update function
1985 2003-08-29 Mark Kettenis <kettenis@gnu.org>
1987 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
1988 USER_DS. We haven't given them a register number yet.
1990 * amd64-nat.h: New file.
1991 * amd64-nat.c: New file.
1992 * amd64fbsd-nat.c: Include "amd64-nat.h".
1993 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
1994 (amd64fbsd32_r_reg_offset): New variable.
1995 (supply_gregset): Simply call amd64_supply_native_gregset.
1996 (fill_gregset): Rename `regno' to `regnum'. Simply call
1997 amd64_collect_native_gregset.
1998 (fill_fpregset): Rename `regno' to `regnum'.
1999 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
2000 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2001 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2002 `fpregset_t'. Call amd64_supply_native_gregset instead of
2003 supply_gregset. Call x86_64_supply_fxsave instead of
2005 (store_inferior_registers): Rename `regno' to `regnum'. Replace
2006 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
2007 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
2008 `fpregset_t'. Call amd64_collect_native_gregset instead of
2009 fill_gregset. Call x86_64_collect_fxsave instead of
2011 (_initialize_am64fbsd_nat): Initialize
2012 amd64_native_gregset32_reg_offset and
2013 amd64_native_gregset64_reg_offset.
2014 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
2016 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
2017 null pointer. Fix typo in comment.
2019 * regcache.c (supply_register): Reimplement to call
2020 regcache_raw_supply.
2021 (regcache_collect): Reimplement by calling regcache_raw_collect.
2023 2003-08-28 Mark Kettenis <kettenis@gnu.org>
2025 * regcache.c (register_buffer): Consitify first argument.
2026 (regcache_raw_supply, regcache_raw_collect): New
2029 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2031 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
2032 by Nathan J. Williams.
2034 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
2036 * lin-lwp.c (wait_lwp): New function, copied from
2037 stop_wait_callback. Clean up.
2038 (stop_wait_callback): Use wait_lwp.
2040 2003-08-28 Andrew Cagney <cagney@redhat.com>
2042 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
2043 flavour and disassembler options.
2044 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
2045 (mips_gdbarch_init): Set "print_insn". Delete initialization of
2046 deprecated_tm_print_insn_info.
2048 2003-08-27 Andrew Cagney <cagney@redhat.com>
2050 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
2051 Use target_read_memory.
2052 (s390_get_frame_info): Update. Do not reference
2053 deprecated_tm_print_insn_info.
2054 (s390_check_function_end, s390_is_sigreturn): Ditto.
2056 2003-08-27 Andrew Cagney <cagney@redhat.com>
2058 * Makefile.in (cris-tdep.o): Update dependencies.
2059 * cris-tdep.c: Include "gdb_assert.h".
2060 (cris_gdbarch_init): Set print_insn.
2061 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
2062 (cris_delayed_get_disassembler): Simplify, directly call the
2063 disassembler returned by cris_get_disassembler.
2064 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
2065 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
2066 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
2067 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
2068 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
2069 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
2070 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
2071 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
2072 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
2073 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
2074 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
2075 (gdb_print_insn_sparc): Delete function.
2076 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
2077 deprecated_tm_print_insn_info.
2078 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
2079 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
2080 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
2081 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
2082 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
2083 * s390-tdep.c (gdb_print_insn_s390): Delete function.
2084 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
2085 (s390_gdbarch_init): Set print_insn.
2087 2003-08-27 Andrew Cagney <cagney@redhat.com>
2089 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
2090 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
2091 * infcall.c (call_function_by_hand): Convert the entry point
2092 address into a code address.
2094 2003-08-27 Andrew Cagney <cagney@redhat.com>
2096 * dsrec.c: Include "gdb_string.h".
2097 * Makefile.in (dsrec.o): Update dependencies.
2099 2003-08-27 Michael Chastain <mec@shout.net>
2101 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
2103 2003-08-27 Andrew Cagney <cagney@redhat.com>
2105 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
2106 (alpha_osf1_init_abi): Do not set call_dummy_address.
2108 2003-08-27 David Carlton <carlton@kealia.com>
2110 From Randolph Chung <tausq@debian.org>:
2111 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
2112 compiles with -Wformat-nonliteral -Werror.
2114 2003-08-26 Jim Blandy <jimb@redhat.com>
2116 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
2117 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
2118 bfd_lookup_symbol, since we only want symbols in code sections.
2119 (look_for_base): Pass zero as the SECT_FLAGS argument to
2120 bfd_lookup_symbol, since we're not concerned about which section
2123 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2125 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
2126 we are frameless or the return address register is already known.
2128 2003-08-26 Andrew Cagney <cagney@redhat.com>
2130 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
2131 in size. Add comments.
2133 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
2135 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
2136 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
2138 2003-08-26 Jason Merrill <jason@redhat.com>
2140 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
2141 case out of #ifdef MIPS block.
2143 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
2146 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
2147 available before calling SECT_OFF_TEXT.
2148 * PROBLEMS: Remove description of java/1322.
2150 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
2152 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
2153 bof, and nat0-nat127 as pseudo-registers.
2154 (ia64_frame_cache): New struct used to cache frame info.
2155 (ia64_register_reggroup_p): New routine used to override default
2156 register grouping so registers without names are still saved and
2158 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
2160 (ia64_pseudo_register_read): New routine to read pseudo-registers.
2161 (ia64_pseudo_register_write): New routine to write pseudo-registers.
2162 (ia64_alloc_frame_cache): New routine to create a new
2164 (examine_prologue): Change prototype to add next_frame pointer.
2165 Assume frameless until otherwise proven. Verify that the cfm for
2166 current frame matches the cfm that should occur for the prologues
2167 alloc insn and if equal, mark as not frameless. At end of routine,
2168 if not frameless, calculate registers for the previous frame and store
2169 in the cache, if a cache is provided.
2170 (ia64_skip_prologue): Use new prototype when calling examine_prologue
2171 and pass 0 for next_frame.
2172 (ia64_store_return_value): Change to use convert_typed_floating()
2173 instead of calling ia64_convert_to_raw().
2174 (ia64_extract_return_value): Change to use convert_typed_floating()
2175 instead of calling ia64_convert_to_virtual().
2176 (ia64_frame_cache): New routine to support new frame model.
2177 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
2178 (ia64_frame_sniffer): Ditto.
2179 (ia64_sigtramp_frame_init_saved_regs): Ditto.
2180 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
2181 (ia64_sigtramp_frame_prev_register): Ditto.
2182 (ia64_sigtramp_frame_sniffer): Ditto.
2183 (ia64_frame_base_address): Ditto.
2184 (ia64_extract_struct_value_address): Change to issue error message.
2185 (ia64_frame_align): New routine to align sp.
2186 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
2187 (ia64_push_arguments): Removed. Logic moved to
2188 ia64_push_dummy_call().
2189 (ia64_push_return_address): Ditto.
2190 (ia64_unwind_dummy_id): New function.
2191 (ia64_unwind_pc): Ditto.
2192 (ia64_convert_register_p): Ditto.
2193 (ia64_register_to_value): Ditto.
2194 (ia64_value_to_register): Ditto.
2195 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
2196 (ia64_register_byte, ia64_register_raw_size): Ditto.
2197 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
2198 (ia64_saved_pc_after_call): Ditto.
2199 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
2200 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
2201 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
2202 (ia64_register_convert_to_raw): Ditto.
2203 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
2204 (ia64_init_extra_frame_info): Ditto.
2205 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
2206 (ia64_gdbarch_init): Remove registering of deprecated functions that
2207 are no longer used. Add registration of new gdbarch functions.
2208 Remove registering deprecated_write_sp. Replace
2209 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
2210 Delete set_gdbarch_deprecated_register_convertible(),
2211 set_gdbarch_deprecated_register_convert_to_virtual(), and
2212 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
2213 set_gdbarch_deprecated_register_size(),
2214 set_gdbarch_deprecated_register_bytes(),
2215 set_gdbarch_pcregnum(),
2216 set_gdbarch_deprecated_register_byte(),
2217 set_gdbarch_deprecated_register_raw_size(),
2218 set_gdbarch_deprecated_max_register_raw_size(),
2219 set_gdbarch_deprecated_register_virtual_size(),
2220 and set_gdbarch_deprecated_max_register_virtual_size() calls.
2221 Replace set_gdbarch_deprecated_extract_return_value() with
2222 set_gdbarch_extract_return_value(). Remove calls to:
2223 set_gdbarch_deprecated_saved_pc_after_call();
2224 set_gdbarch_deprecated_frame_chain(),
2225 set_gdbarch_deprecated_frame_saved_pc(),
2226 set_gdbarch_deprecated_frame_init_saved_regs(),
2227 set_gdbarch_deprecated_get_saved_register(),
2228 set_gdbarch_deprecated_call_dummy_words(),
2229 set_gdbarch_deprecated_sizeof_call_dummy_words(),
2230 set_gdbarch_deprecated_init_extra_frame_info(),
2231 set_gdbarch_deprecated_frame_args_address(),
2232 set_gdbarch_deprecated_frame_locals_address(),
2233 and set_gdbarch_deprecated_dummy_write_sp().
2234 Add set_gdbarch_convert_register_p(),
2235 set_gdbarch_register_to_value(),
2236 set_gdbarch_value_to_register(),
2237 set_gdbarch_push_dummy_call(),
2238 set_gdbarch_frame_align(),
2239 set_gdbarch_unwind_dummy_id(),
2240 set_gdbarch_unwind_pc(),
2241 frame_unwind_append_sniffer(),
2242 frame_unwind_append_sniffer(),
2243 and frame_base_set_default().
2245 2003-08-25 Chris Demetriou <cgd@broadcom.com>
2247 * configure.tgt: Document need for special "mipsisa64" handling.
2248 (mipsisa64*-*-linux64): Handle as target linux64.
2249 (mipsisa64*-*-*): Handle as target embed64.
2251 2003-08-18 Michael Chastain <mec@shout.net>
2253 * PROBLEMS: Document pr gdb/1322, the Java anonymous
2256 2003-08-24 Mark Kettenis <kettenis@gnu.org>
2258 * i387-tdep.h: Update copyright date.
2259 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
2261 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
2262 CFLAGS games to reflect reality.
2264 2003-08-24 Andrew Cagney <cagney@redhat.com>
2266 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
2267 GDB_MULTI_ARCH is always non-zero.
2268 * osabi.c (_initialize_gdb_osabi): Ditto.
2269 (gdbarch_init_osabi): Ditto.
2270 * sparc-tdep.c: Ditto for #if code.
2272 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2274 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
2276 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
2278 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
2279 x86_64_supply_fxsave.
2280 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
2281 x86_64_supply_fxsave.
2282 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
2283 x86_64_supply_fxsave.
2285 2003-08-23 Andreas Jaeger <aj@suse.de>
2287 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
2290 2003-08-23 Mark Kettenis <kettenis@gnu.org>
2292 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
2293 i387_supply_register.
2294 (go32_fetch_registers): Adjust call to i387_supply_fsave.
2295 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
2297 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
2299 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
2301 * i386bsd-nat.c (supply_fpregset): Adjust call to
2303 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
2304 call to i387_supply_fxsave. Call i387_supply_fsave instead of
2306 (store_inferior_registers): Remove extraneous whitespace. Call
2307 i387_fill_fsave instead of fill_fpregset.
2308 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
2309 (supply_fpregset): Likewise.
2310 * i386v4-nat.c (supply_fpregset): Adjust call to
2312 * i386-interix-nat.c (supply_fpregset): Adjust call to
2314 * i386-linux-nat.c (supply_fpregset): Adjust call to
2316 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
2317 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
2318 i387supply_fsave and i387_supply_fxsave.
2319 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
2320 Incorporate code from `i387_supply_register.
2321 (i387_supply_register): Remove.
2322 (i387_supply_fxsave): Add `regnum' argument.
2324 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
2326 (i387_supply_register): remove prototype.
2329 2003-08-22 Michael Chastain <mec@shout.net>
2331 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
2332 Add lines for files in gdb/testsuite/gdb.cp/* that are
2333 still not 8.3 unique.
2335 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
2337 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
2338 TYPE_VPTR_FIELDNO is valid.
2340 2003-08-19 Mark Kettenis <kettenis@gnu.org>
2342 * utils.c (set_width_command): Remove prototypes.
2343 (set_screen_size): New prototype.
2344 (init_page_info): Simplify by fetching the screen size from
2345 Readline. Call set_screen_size.
2346 (set_screen_size): New function.
2347 (set_width): Add missing whitespace in comment.
2348 (set_width_command): Call set_screen_size.
2349 (set_height_command): New function.
2350 (initialize_utils): Fix formatting. Make "set height" command
2351 call set_height_command. Remove redundant code that turns off
2352 pagination if output isn't a terminal. Remove redundant call to
2355 2003-08-22 Mark Kettenis <kettenis@gnu.org>
2357 * sparc64-tdep.h (sparc64_regnum): Fix comment.
2358 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
2359 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
2360 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
2362 (sparc64_register_info): Give the reister with number
2363 SPARC64_STATE_REGNUM a name.
2364 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
2366 (sparc64_push_dummy_call): Take BIAS into account when checking
2368 (sparc_software_single_step): Remove assertions that check whether
2369 NPC and NNPC were zero.
2370 (sparc_supply_rwindow): Make public. Merge functionality with
2371 sparc64_supply_rwindow.
2372 (sparc_fill_rwindow): Make public. Merge functionality with
2373 sparc64_fill_rwindow.
2374 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
2375 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
2376 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
2377 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
2378 sparc_supply_rwindow instead of sparc64_supply_rwindow.
2380 * reggroups.c: Add whitespace after declarations of local
2381 variables in functions.
2383 2003-08-21 Michael Chastain <mec@shout.net>
2385 * gdbtypes.h: Change array bound type from an int to enum.
2387 2003-08-21 Andrew Cagney <cagney@redhat.com>
2389 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
2390 * config/sparc/tm-sparc.h: Ditto.
2391 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
2393 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
2395 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2397 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
2398 (register_objfile_data, set_objfile_data, objfile_data): New
2400 * objfiles.c (objfile_alloc_data, objfile_free_data): New
2402 (allocate_objfile): Call objfile_alloc_data.
2403 (free_objfile): Call objfile_free_data.
2404 (struct objfile_data): New.
2405 (struct objfile_data_registration): New.
2406 (struct objfile_data_registry): New.
2407 (objfile_data_registry): New variable.
2408 (register_objfile_data): New function.
2409 (objfile_alloc_data, objfile_free_data): New functions.
2410 (set_objfile_data, objfile_data): New functions.
2411 * dwarf2-frame.c (dwarf2_frame_data): New variable.
2412 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
2413 (_initialize_dwarf2_frame): New function and prototype.
2415 2003-08-21 Andrew Cagney <cagney@redhat.com>
2417 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
2418 a specific architecture.
2419 * arch-utils.h (set_architecture_from_arch_mach): Delete
2421 (target_architecture_hook): Delete declaration.
2422 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
2423 (default_float_format): Assume GDB_MULTI_ARCH.
2424 (default_double_format): Assume GDB_MULTI_ARCH.
2425 (set_endian_from_file): Delete function.
2426 (arch_ok): Delete function.
2427 (set_arch): Delete function.
2428 (set_architecture_from_arch_mach): Delete function.
2429 (set_architecture_from_file): Delete function.
2430 (set_architecture): Assume GDB_MULTI_ARCH.
2431 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
2433 2003-08-21 Mark Kettenis <kettenis@gnu.org>
2435 Rewrite FreeBSD/sparc64 native configuration.
2436 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
2437 * sparc64fbsd-nat.c: New file.
2438 * sparc64fbsd-tdep.c: New file.
2439 * sparc64-tdep.c sparc64-tdep.h: New files.
2440 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
2441 sparc64fbsd-tdep.o): New dependencies.
2442 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
2443 and sparc64fbsd-tdep.c.
2444 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
2445 * config/sparc/fbsd.mh: Remove copyright notice.
2446 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
2448 * config/sparc/fbsd.mt: Remove copyright notice.
2449 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
2450 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
2451 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
2452 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
2453 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
2454 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
2455 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
2456 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
2458 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
2459 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
2461 2003-08-21 Michael Chastain <mec@shout.net>
2463 * symtab.h: Add doco on the space critical structures and
2464 some measurements of space usage.
2466 2003-08-21 Michael Snyder <msnyder@redhat.com>
2468 * tracepoint.c (trace_dump_command): Trace break address
2469 is subject to DECR_PC_AFTER_BREAK.
2470 (set_traceframe_context): Make "trace_line" an int.
2471 Fixes suggested by Mark Newman <mark.newman@lmco.com>
2473 2003-08-20 Michael Snyder <msnyder@redhat.com>
2475 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
2476 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
2477 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
2479 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
2480 functions, replace sh_push_dummy_call.
2481 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
2483 2003-08-20 Michael Chastain <mec@shout.net>
2485 * gdbtypes.h (struct main_type): Rearrange to save space.
2487 2003-08-20 Michael Snyder <msnyder@redhat.com>
2489 * trad-frame.c: Comment typo fix.
2491 2003-08-20 Michael Snyder <msnyder@redhat.com>
2492 Kevin Buettner <kevinb@redhat.com>
2494 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
2495 (frv_frame_init_saved_regs): Add declaration.
2496 (frame_extra_info): Add new field ``saved_regs''.
2497 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
2498 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
2499 Update frame related code.
2500 (frv_extract_struct_value_address): Adjust formatting.
2501 * Makefile.in (frv-tdep.o): Update dependencies.
2502 * config/frv/tm-frv.h (target_insert_watchpoint)
2503 (target_remove_watchpoint, target_insert_hw_breakpoint)
2504 (target_remove_hw_breakpoint): Delete these macros.
2505 (remote_insert_watchpoint, remote_remove_watchpoint)
2506 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
2509 2003-08-20 Michael Chastain <mec@shout.net>
2511 * defs.h (ENUM_BITFIELD): New macro.
2512 * symtab.h (ENUM_BITFIELD): Use it.
2513 (BYTE_BITFIELD): Remove old macro, which was already disabled.
2515 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
2517 * MAINTAINERS (write after approval): Add myself.
2519 2003-08-18 Andrew Cagney <cagney@redhat.com>
2521 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
2522 * gdbarch.h, gdbarch.c: Re-generate.
2523 * infcall.c (call_function_by_hand): Adjust the SP by
2524 frame_red_zone_size before allocating any stack space.
2525 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
2526 * x86-64-tdep.c (x86_64_frame_align): New function.
2527 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
2529 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
2530 Remove code adjusting SP so that it skips over the Red Zone.
2532 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2534 * NEWS (New native configurations): Mention FreeBSD/amd64.
2536 2003-08-18 Andrew Cagney <cagney@redhat.com>
2538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
2539 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
2541 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
2543 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2545 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
2547 2003-08-18 Michal Ludvig <mludvig@suse.cz>
2549 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
2551 * i386-linux-nat.c: Include "linux-nat.h".
2552 (child_post_startup_inferior): New function.
2554 2003-08-18 Mark Kettenis <kettenis@gnu.org>
2556 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
2557 at the start of a frameless function. This probably fixes PR
2560 2003-08-17 Michael Chastain <mec@shout.net>
2562 * symfile.c (find_sym_fns): Remove special case for apollo target.
2564 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2566 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
2567 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
2568 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
2569 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
2570 (linux_supports_tracevforkdone): New function.
2571 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
2573 (child_follow_fork): Handle vfork.
2574 (linux_handle_extended_wait): Likewise. Also handle exec.
2575 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
2576 * NEWS: Mention fork tracing.
2578 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2580 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
2582 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
2584 * Makefile.in (i386-linux-nat.o): Update dependencies.
2585 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
2586 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
2587 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
2588 * i386-linux-nat.c: Include "linux-nat.h".
2589 (child_post_startup_inferior): New function.
2590 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
2591 * infptrace.c (kill_inferior): Wrap in #ifdef.
2592 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
2593 attaching to each LWP.
2594 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
2595 (init_lin_lwp_ops): Fill in some more operations.
2596 * linux-nat.h (linux_enable_event_reporting)
2597 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
2599 * linux-nat.c (linux_enable_event_reporting): New function.
2600 (child_post_attach, linux_child_post_startup_inferior)
2601 (child_post_startup_inferior, child_follow_fork)
2602 (linux_handle_extended_wait, kill_inferior): New functions.
2604 2003-08-16 Andrew Cagney <cagney@redhat.com>
2606 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
2607 * gdbarch.h, gdbarch.c: Re-generate.
2609 2003-08-16 Mark Kettenis <kettenis@gnu.org>
2611 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
2613 2003-08-16 Andrew Cagney <cagney@redhat.com>
2615 * NEWS: Mention that "set prompt-escape-char" was deleted.
2616 * top.c (get_prompt_1): Delete function.
2617 (gdb_prompt_escape):
2618 (init_main): Do not clear "gdb_prompt_escape". Delete "set
2619 prompt-escape-char" command.
2620 (MAX_PROMPT_SIZE): Delete macro.
2621 (get_prompt): Simplify, do not call get_prompt_1.
2623 2003-08-16 Andrew Cagney <cagney@redhat.com>
2625 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
2626 -Werror. -Wformat-nonliteral problems.
2628 2003-08-15 J. Brobecker <brobecker@gnat.com>
2630 Further multiarching work mostly for hppa64-*-hpux11:
2631 * hppa-tdep.h: New file.
2632 * hppa-tdep.c: #include hppa-tdep.c.
2633 (hppa32_num_regs): Renamed from hppa_num_regs.
2634 (hppa64_num_regs): New constant.
2635 (hppa64_call_dummy_breakpoint_offset): New constant.
2636 (hppa32_call_dummy_length): New constant.
2637 (hppa64_call_dummy_length): New constant.
2638 (hppa32_stack_align): Make name 32bit explicit.
2639 (hppa32_register_virtual_type): Likewise.
2640 (hppa32_extract_return_value): Likewise.
2641 (hppa32_use_struct_convention): Likewise.
2642 (hppa32_store_return_value): Likewise.
2643 (hppa64_register_virtual_type): New function.
2644 (hppa64_extract_return_value): New function.
2645 (hppa64_use_struct_convention): New function.
2646 (hppa64_store_return_value): New function.
2647 (hppa_frame_locals_address): Remove declaration, function does
2649 (hppa_register_byte): Add support for PA64 ABI.
2650 (hppa_gdbarch_init): Add support for PA64 ABI.
2651 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
2652 Make name 32bit explicit.
2653 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
2654 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
2655 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
2656 (hppa64_hpux_frame_base_before_sigtramp): New function.
2657 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
2658 * config/pa/tm-hppa64.h: Remove macros that are no longer
2659 necessary now that the gdbarch vector is properly setup.
2660 Transform some macros into function calls. Some minor cleanup.
2661 * config/pa/tm-hppah.h: Update function calls in macros
2662 following the function renaming in hppa-hpux-tdep.c.
2663 * Makefile.in (hppa_tdep_h): New variable.
2664 (hppa-tdep.o): Add dependency over hppa_tdep_h.
2666 2003-08-14 Michael Snyder <msnyder@redhat.com>
2668 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
2670 2003-08-13 J. Brobecker <brobecker@gnat.com>
2672 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
2673 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
2676 2003-08-13 Michael Snyder <msnyder@redhat.com>
2678 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
2679 (frv_saved_pc_after_call): Use deprecated ftype.
2680 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
2681 (frv_remote_translate_xfer_address): Remove.
2682 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
2684 2003-08-13 J. Brobecker <brobecker@gnat.com>
2686 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
2687 initialization after the common gdbarch initialization, not before.
2689 2003-08-13 J. Brobecker <brobecker@gnat.com>
2691 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
2692 (ADDR_BITS_REMOVE): Remove, redundant.
2694 2003-08-13 J. Brobecker <brobecker@gnat.com>
2696 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
2697 gdbarch method to clear the 2 low bits of text addresses.
2699 2003-08-12 Andrew Cagney <cagney@redhat.com>
2701 * Makefile.in (dsrec.o): Update dependencies.
2702 * dsrec.c: Include "gdb_assert.h".
2703 (make_srec): Use snprintf instead of sprintf, use a literal format
2706 2003-08-12 Andrew Cagney <cagney@redhat.com>
2708 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
2709 FRAME_OBSTACK_ZALLOC.
2711 2003-08-12 Kevin Buettner <kevinb@redhat.com>
2713 * i386-tdep.c (i386_gdbarch_init): Enable default support for
2716 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2718 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
2719 amd64fbsd_sc_reg_offset): Add extern declarations.
2720 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
2723 2003-08-11 Ben Elliston <bje@wasabisystems.com>
2725 * MAINTAINERS (write after approval): Update my mail address.
2727 2003-08-10 Andrew Cagney <cagney@redhat.com>
2729 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
2731 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2733 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
2734 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
2735 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
2736 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
2737 i386bsd_sc_reg_offset): Add extern declarations.
2738 * i386obsd-nat.c: Include "i386-tdep.h"
2739 (_initialize_i386obsd_nat): Remove extern declarations.
2740 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
2742 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
2745 * i386-tdep.c (i386_register_to_value): Use get_frame_register
2746 instead of frame_read_register.
2747 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
2748 instead of frame_read_register. Use I386_ESP_REGNUM instead of
2750 (i386_frame_prev_register): Use frame_unwind_register_unsigned
2751 instead of frame_unwind_unsigned_register. Use
2752 I386_EFLAGS_REGISTER instead of PS_REGNUM.
2753 (i386_get_longjmp_target): Use regcache_read_unsigned_register
2754 instead of read_register. Use builtin_type_void_data_ptr instead
2755 of builtin_type_void_func_ptr when extracting the address of the
2757 (i386_extract_return_value, i386_store_return_value,
2758 i386_pseudo_register_read, i386_pseudo_register_write): Use
2759 register_size instead REGISTER_RAW_SIZE.
2761 2003-08-10 Andrew Cagney <cagney@redhat.com>
2763 * infcall.c (call_function_by_hand): Use xstrprintf instead of
2764 sprintf. Make "name" constant.
2766 2003-08-10 Mark Kettenis <kettenis@gnu.org>
2768 * i387-tdep.c (i387_register_to_value): Use get_frame_register
2769 instead of frame_read_register.
2770 (i387_print_float_info): Use get_frame_register and
2771 get_frame_register_unsigned instead of frame_register_read.
2773 * i386fbsd-nat.c: Include "i386-tdep.h".
2774 (child_resume): Make `eflags' an ULONGEST. Use
2775 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
2776 instead of register_read and register_write.
2778 * i386bsd-nat.c (fetch_inferior_registers,
2779 store_inferior_registers): Don't use && at the end of a line.
2780 (_initialize_i386bsd_nat): Fix typo.
2782 * frame.c (_initialize_frame): Add missing backslash.
2784 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2785 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
2786 and supply_register instead of manipulating the register buffer
2789 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
2790 * config/i386/nm-i386sol2.h
2791 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
2793 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
2794 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
2795 instructions that GCC likes to mingle into the prologue. Fixes
2796 gdb/1253 and gdb/1255.
2798 2003-08-09 Andrew Cagney <cagney@redhat.com>
2801 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
2802 * command.h (add_setshow_uinteger_cmd): Declare.
2803 * frame.c (set_backtrace_cmd): New function.
2804 (show_backtrace_cmd): New function.
2805 * frame.c (_initialize_frame): Replace "set/show
2806 backtrace-below-main" with "set/show backtrace past-main". Add
2807 command "set/show backtrace limit".
2808 (backtrace_past_main): Rename "backtrace_below_main".
2809 (backtrace_limit): New variable.
2810 (get_prev_frame): Update. Check the backtrace_limit.
2812 2003-08-09 Andrew Cagney <cagney@redhat.com>
2814 * defs.h (xstrprintf): Declare.
2815 * utils.c (xstrprintf): New function.
2816 * breakpoint.c (insert_breakpoints): Replace sprintf and
2817 non-literal format strings, with xstrprintf and cleanups.
2818 (delete_breakpoint,breakpoint_re_set): Ditto.
2819 (commands_command, insert_breakpoints): Ditto.
2820 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
2821 (break_at_finish_command_1): Ditto.
2823 2003-08-09 Andrew Cagney <cagney@redhat.com>
2825 * MAINTAINERS (language support): List Adam Fedor as Objective C
2828 2003-08-08 J. Brobecker <brobecker@gnat.com>
2830 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
2831 are now multiarched.
2833 2003-08-08 J. Brobecker <brobecker@gnat.com>
2835 * config/pa/tm-hppa64.h: Remove lots of macros that are no
2836 longer necessary now that hppa64 is partially multiarch'ed.
2838 2003-08-08 Andrew Cagney <cagney@redhat.com>
2840 * interps.c (interp_set): Check for a NULL "old_interp".
2842 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
2844 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
2845 (install-only): Support DESTDIR.
2846 (uninstall): Likewise.
2847 (install-gdbtk): Likewise.
2849 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
2851 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
2852 contains something meaningful at all times.
2854 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
2856 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
2858 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
2860 * MAINTAINERS (write after approval): Added self.
2862 2003-08-07 Andrew Cagney <cagney@redhat.com>
2864 * inferior.h (AT_SYMBOL): Define.
2865 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
2866 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
2867 * mips-tdep.c (mips_call_dummy_address): Delete function.
2868 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
2869 set call_dummy_address.
2871 2003-08-07 Andrew Cagney <cagney@redhat.com>
2873 * language.c (op_error): Delete function.
2874 (binop_type_check): Delete function.
2875 * language.h (type_op_error, range_op_error): Delete macros.
2876 (op_error): Delete declaration.
2878 2003-08-07 Andrew Cagney <cagney@redhat.com>
2880 * interps.h (INTERP_MI2, INTERP_MI3): Define.
2882 2003-08-07 Michal Ludvig <mludvig@suse.cz>
2884 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
2885 (x86_64_push_arguments): Skip the red zone.
2887 2003-08-05 Andrew Cagney <cagney@redhat.com>
2889 * reggroups.c (reggroup_next): Check for the final entry.
2891 2003-08-04 Andrew Cagney <cagney@redhat.com>
2893 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
2894 * cli/cli-script.c (define_command): Call query directly, instead
2895 of passing it a buffer.
2896 * ocd.c (ocd_error): Pass error a constant format string.
2897 * remote-mips.c (mips_error): Use fputs_filtered.
2899 * solib-svr4.c (_initialize_svr4_solib): Update
2900 register_gdbarch_data call.
2901 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
2903 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
2904 (register_gdbarch_data): Delete "free" parameter. Update
2906 * gdbarch.h, gdbarch.c: Re-generate.
2907 * reggroups.c (_initialize_reggroup): Update.
2908 * gnu-v3-abi.c (init_gnuv3_ops): Update.
2909 * frame-base.c (_initialize_frame_base): Update.
2910 * frame-unwind.c (_initialize_frame_unwind): Update.
2911 * user-regs.c (_initialize_user_regs): Update.
2912 * remote.c (_initialize_remote): Update.
2913 * regcache.c (_initialize_regcache): Update.
2915 * regcache.c (xfree_regcache_descr): Delete function.
2916 (_initialize_regcache): Update call to register_gdbarch_data.
2917 (init_regcache_descr, init_legacy_regcache_descr): Use
2918 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
2920 * remote.c (free_remote_state): Delete function.
2921 (_initialize_remote): Update register_gdbarch_data.
2922 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
2923 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
2925 2003-08-04 Andrew Cagney <cagney@redhat.com>
2927 * reggroups.c (struct reggroup_el): Define.
2928 (struct reggroups): Delete field "nr_group". Replace array
2929 "group" with a "first" to "last" linked list.
2930 (reggroups_init): Update. Allocate using gdbarch's obstack.
2931 (reggroups_free): Delete function.
2932 (add_group): Update. Add "el" parameter.
2933 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
2934 (default_groups): Update.
2935 (reggroup_next): Replace reggroups.
2936 (reggroups_dump): Update.
2937 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
2938 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
2939 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
2941 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
2943 * Makefile.in (tui-interp.o): Update dependencies.
2945 2003-08-04 David Carlton <carlton@kealia.com>
2947 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
2948 to internal_error call.
2949 * source.c (forward_search_command): Add "%s" format argument.
2950 (reverse_search_command): Ditto.
2951 * top.c (quit_confirm): Ditto.
2952 * cli/cli-setshow.c (do_setshow_command): Ditto.
2953 * cp-valprint.c (cp_print_class_method): Replace
2954 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
2955 (cp_print_class_member): Ditto.
2956 * event-top.c (command_line_handler): Ditto.
2957 * linux-proc.c (linux_info_proc_cmd): Ditto.
2958 * p-typeprint.c (pascal_type_print_base): Ditto.
2959 * p-valprint.c (pascal_object_print_class_method): Ditto.
2960 (pascal_object_print_class_member): Ditto.
2961 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
2962 * remote.c (remote_cisco_section_offsets): Ditto.
2963 * top.c (command_line_input): Ditto.
2964 * utils.c (vwarning,error_stream,quit): Ditto.
2965 * valprint.c (print_floating,print_binary_chars)
2966 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
2968 2003-08-04 Andrew Cagney <cagney@redhat.com>
2970 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
2972 2003-08-02 Andrew Cagney <cagney@redhat.com>
2974 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
2975 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
2978 2003-08-02 Andrew Cagney <cagney@redhat.com>
2980 * Makefile.in: Update all dependencies and definitions.
2982 2003-08-02 Adam Fedor <fedor@gnu.org>
2984 * linespec.c (is_objc_method_format): New function
2985 (decode_line_1, locate_first_half): Use it.
2988 2003-08-01 Andrew Cagney <cagney@redhat.com>
2990 * NEWS: Mention that m32r is multi-arch.
2991 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
2992 * configure.tgt: Recognize m32r-*-*.
2993 * config/m32r/tm-m32r.h: Delete file.
2994 * config/m32r/m32r.mt: New file.
2995 * m32r-rom.c (m32r_upload_command): Use hostent only when
2996 gethostname succeeds, in order to avoid a compilation
2998 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
3001 2003-08-01 Michael Snyder <msnyder@redhat.com>
3003 * sh-tdep.c (sh_frame_align): New gdbarch method.
3004 (sh_gdbarch_init): Set up frame_align method.
3006 2003-07-31 Michael Snyder <msnyder@redhat.com>
3008 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
3009 which is already covered by the new frames infrastructure.
3011 2003-07-31 Andrew Cagney <cagney@redhat.com>
3013 * user-regs.c (struct user_reg): Add "next" link.
3014 (struct user_regs): Replace "user" with "first" and "last" links.
3015 (append_user_reg): Add pre-allocated "reg" parameter.
3016 (builtin_user_regs): Provide initial value for "last".
3017 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
3018 (user_regs_init): Allocate memory from the gdbarch obstack.
3019 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
3020 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
3022 (usernum_to_user_reg): New function.
3023 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
3024 (value_of_user_reg): Use usernum_to_user_reg.
3025 (user_regs_free): Delete function.
3026 (_initialize_user_regs): Update register_gdbarch_data call.
3028 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
3030 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
3032 2003-07-30 Michael Snyder <msnyder@redhat.com>
3034 * value.h (value_being_returned): Add a struct_addr argument.
3035 * infcall.c (call_function_by_hand): Pass struct_addr to
3036 value_being_returned.
3037 * infcmd.c (print_return_value): Pass zero as struct_addr.
3038 * values.c (value_being_returned): If struct_addr is passed,
3039 use it instead of trying to recover it from the inferior.
3041 2003-07-30 Kevin Buettner <kevinb@redhat.com>
3043 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
3044 the prologue analyzer won't need to attempt to extract the pc
3045 value from the woefully incomplete dummy frame.
3046 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
3047 possible. Disable code which modifies the frame.
3049 2003-07-28 Andrew Cagney <cagney@redhat.com>
3051 * annotate.c (annotate_breakpoints_headers): Restrict annotation
3053 (annotate_breakpoints_table, annotate_record): Ditto.
3054 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
3055 (annotate_field_name_end, annotate_field_value): Ditto.
3056 (annotate_field_end, annotate_frame_source_begin): Ditto.
3057 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
3058 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
3059 (annotate_frame_begin, annotate_frame_function_name): Ditto.
3060 (annotate_frame_address_end, annotate_frame_address): Ditto.
3061 (annotate_frame_args, annotate_frame_end): Ditto.
3062 (annotate_frame_where, annotate_arg_begin): Ditto.
3063 (annotate_arg_name_end, annotate_arg_value): Ditto.
3064 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
3065 (annotate_function_call, annotate_signal_name): Ditto.
3066 (annotate_signal_string, annotate_signal_name_end): Ditto.
3067 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
3068 (annotate_value_begin, annotate_value_history_value): Ditto.
3069 (annotate_value_history_end, annotate_value_end): Ditto.
3070 (annotate_display_begin, annotate_display_number_end): Ditto.
3071 (annotate_display_format, annotate_display_expression): Ditto.
3072 (annotate_display_expression_end, annotate_display_value): Ditto.
3073 (annotate_display_end, annotate_array_section_begin): Ditto.
3074 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
3075 (annotate_elt, annotate_array_section_end): Ditto.
3077 2003-07-28 Andrew Cagney <cagney@redhat.com>
3079 * regcache.c (struct regcache_descr): Update comments on
3081 (init_legacy_regcache_descr): Don't set nr_raw_registers or
3082 sizeof_raw_register_valid_p.
3083 (init_regcache_descr): Set nr_raw_registers and
3084 sizeof_raw_register_valid_p before calling
3085 init_legacy_regcache_descr.
3087 2003-07-28 Andrew Cagney <cagney@redhat.com>
3089 * mips-tdep.c (print_gp_register_row): Print the GPR's register
3092 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
3094 * thread.c (info_threads_command): Use get_selected_frame ().
3095 Check that there is at least one non-sentinel frame.
3097 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3099 * m68hc11-tdep.c (struct frame_extra_info): Remove.
3100 (m68hc11_pop_frame): Remove.
3101 (m68hc11_frame_saved_pc): Remove.
3102 (m68hc11_frame_chain): Remove.
3103 (m68hc11_frame_init_saved_regs): Remove.
3104 (m68hc11_init_extra_frame_info): Remove.
3105 (m68hc11_store_struct_return): Remove.
3106 (m68hc11_saved_pc_after_call): Remove.
3108 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3110 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
3111 frame unwind information.
3112 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
3113 and adapted for frame unwinding.
3114 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
3115 (m68hc11_unwind_pc): New function.
3116 (m68hc11_frame_unwind_cache): New function to analyze frames.
3117 (m68hc11_frame_this_id): New function to create new frame struct.
3118 (m68hc11_frame_prev_register): New function to unwind a register from
3120 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
3121 (m68hc11_frame_p): New function for the above.
3122 (m68hc11_frame_base_address): New function to return fp of frame.
3123 (m68hc11_frame_args_address): Update for frame.
3124 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
3125 (m68hc11_unwind_sp): New function.
3126 (m68hc11_unwind_dummy_id): New function.
3127 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
3130 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3132 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
3133 (m68hc11_guess_from_prologue): Advance the pc and frame size only
3134 when we are beyond the current pc.
3136 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
3138 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
3139 from m68hc11_push_arguments.
3140 (m68hc11_push_arguments): Remove.
3141 (m68hc11_push_return_address): Remove.
3142 (m68hc11_gdbarch_init): Install the above; remove above deprecated
3143 handlers; remove deprecated_extra_stack_alignment_needed.
3145 2003-07-27 Andrew Cagney <cagney@redhat.com>
3147 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
3148 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
3149 REAL_PC and not the pointer.
3150 * hppa-hpux-tdep.c: Include frame.h
3152 2003-07-27 Andrew Cagney <cagney@redhat.com>
3154 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
3155 GDB_MULTI_ACH_PARTIAL.
3157 2003-07-27 Andrew Cagney <cagney@redhat.com>
3159 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
3160 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
3161 operator at start and not end of line.
3162 (decode_prologue): Ditto.
3163 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
3164 frame_unwind_register_unsigned instead of
3165 frame_unwind_unsigned_register.
3166 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
3168 (m32r_push_dummy_call): Use register_size instead of
3170 (m32r_frame_sniffer): Replace m32r_frame_p.
3171 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
3172 * m32r-rom.c (report_transfer_performance): Delete extern
3174 (m32r_load, m32r_upload_command): Use print_transfer_performance
3175 instead of report_transfer_performance.
3176 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
3177 / add_show_from_set.
3179 2003-07-26 Andrew Cagney <cagney@redhat.com>
3181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
3182 store_return_value and extract_struct_value_address.
3184 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
3187 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
3188 NULL, default to the section containing PC.
3190 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
3192 * NEWS: Mention "regs" deprecated for m68hc11 too.
3194 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
3195 (m68hc11_print_register): New function to print out one register.
3196 (m68hc11_print_registers_info): New function to print registers.
3197 (show_regs): Deprecate and use the above.
3198 (m68hc11_gdbarch_init): Install the print_registers_info.
3200 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
3202 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
3203 that we have a SIGTRAP before returning non-zero.
3205 2003-07-23 Michal Ludvig <mludvig@suse.cz>
3206 Elena Zannoni <ezannoni@redhat.com>
3208 * linespec.c (decode_line_2): Avoid crash if
3209 find_function_start_sal() returns empty record.
3211 2003-07-23 Andreas Schwab <schwab@suse.de>
3213 * ia64-tdep.c (ia64_print_insn): New function.
3214 (ia64_gdbarch_init): Set print_insn to it.
3215 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
3216 deprecated_tm_print_insn_info.
3218 2003-07-22 Michael Snyder <msnyder@redhat.com>
3220 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
3221 handle 8-bit returns (long long).
3222 (h8300h_extract_return_value): Ditto.
3223 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
3225 2003-07-22 Andrew Cagney <cagney@redhat.com>
3227 * gdbarch.c Include "gdb_obstack.h".
3228 (struct gdbarch): Add an "obstack".
3229 (alloc_gdbarch_data): Allocate the gdbarch data using
3230 GDBARCH_OBSTACK_CALLOC.
3231 (free_gdbarch_data): Delete function.
3232 (gdbarch_obstack_zalloc): New function.
3233 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
3234 Assert that the architecture is not initialized.
3235 (gdbarch_alloc): Allocate an obstack, allocate the architecture
3236 vector from the obstack.
3237 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
3238 architecture obstack.
3239 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
3240 (set_gdbarch_data): Assert that the data is not initialized.
3241 (struct gdbarch_data): Delete member "free".
3242 (register_gdbarch_data): Do not initialize "free".
3243 * gdbarch.h, gdbarch.c: Re-generate.
3245 2003-07-22 Andrew Cagney <cagney@redhat.com>
3247 * configure.in (build_warnings): Add -Wformat-nonliteral.
3248 * configure: Re-generate.
3250 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3252 * dwarf2loc.c (locexpr_describe_location): Fix typos.
3254 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
3256 * findvar.c (read_var_value): Remove case for thread local storage
3257 variables. It is now entirely handled by the dwarf2 location
3259 * printcmd.c (address_info): Ditto.
3260 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
3262 (struct symbol): Remove objfile field, which was used by
3263 LOC_THREAD_LOCAL_STATIC only.
3264 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
3265 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
3266 usage of objfile pointer.
3267 * dwarf2loc.c (locexpr_describe_location): Add case to handle
3268 thread local variables.
3269 Add include of objfiles.h.
3270 * dwarf2expr.c (execute_stack_op): Add comments about thread local
3272 * Makefile.in (dwarf2loc.o): Update dependencies.
3274 2003-07-22 Andrew Cagney <cagney@redhat.com>
3276 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
3278 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
3279 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
3280 (struct value): Add opaque declaration.
3281 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
3283 2003-07-21 Andrew Cagney <cagney@redhat.com>
3285 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3286 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
3288 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3290 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
3291 regcache_cooked_read_unsigned instead of read_register.
3292 (m68hc11_saved_pc_after_call): Likewise.
3293 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
3294 instead of write_register.
3295 (m68hc11_register_type): New function.
3296 (m68hc11_register_virtual_type): Remove.
3297 (m68hc11_store_return_value): Convert to use the regcache.
3298 (m68hc11_extract_struct_value_address): Likewise.
3299 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
3300 m68hc11_register_type; undeprecate store_return_value and
3301 extract_struct_value_address.
3303 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
3305 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
3306 and translate to use regcache.
3307 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
3309 2003-07-18 Andrew Cagney <cagney@redhat.com>
3311 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
3312 * gdbarch.h, gdbarch.c: Re-generate.
3313 * i386-tdep.c (i386_gdbarch_init): Do not set
3314 DWARF2_BUILD_FRAME_INFO.
3315 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
3317 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
3318 DWARF2_BUILD_FRAME_INFO.
3320 2003-07-18 Andrew Cagney <cagney@redhat.com>
3322 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
3323 * disasm.c (gdb_disassemble_info): Initilize di.arch.
3325 2003-07-18 Andrew Cagney <cagney@redhat.com>
3327 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
3328 frame_unwind_address_in_block, instead of frame_pc_unwind.
3329 (dwarf2_frame_cache): Ditto.
3331 2003-07-18 Andrew Cagney <cagney@redhat.com>
3333 * user-regs.h (struct gdbarch): Declare opaque.
3334 * ui-out.h (struct ui_file): Declare opaque.
3335 * dwarf2-frame.h (struct frame_info): Declare opaque.
3337 2003-07-18 Kris Warkentin <kewarken@qnx.com>
3339 * nto-procfs.c: Clean ARI hits. Change #include <..> to
3341 (procfs_meminfo): Change strerror to safe_strerror.
3342 (procfs_can_run): Remove K&R badness.
3344 2003-07-17 Michael Snyder <msnyder@redhat.com>
3346 * remote-sim.c: Comment typo fix.
3348 2003-07-17 Andrew Cagney <cagney@redhat.com>
3350 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
3352 * sparc-tdep.c (sparc_intreg_size): Make non-static.
3353 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
3354 GDB_MULTI_ARCH_PARTIAL.
3356 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
3358 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
3359 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
3360 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
3362 2003-07-16 Theodore A. Roth <troth@openavr.org>
3364 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
3366 (avr_frame_unwind_cache): Don't unwind FP for main.
3368 Save the computed prev_sp.
3369 (avr_saved_regs_unwinder): Remove function.
3370 (avr_frame_prev_register): Use PC unwind logic from
3371 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
3373 2003-07-16 Andrew Cagney <cagney@redhat.com>
3375 * frame-base.h (frame_base_p_ftype): Delete definition.
3376 (frame_base_append_predicate): Delete declaration.
3377 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
3378 (frame_unwind_append_predicate): Delete declaration.
3379 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
3380 (append_predicate): Delete parameter "p".
3381 (frame_unwind_append_predicate): Delete function.
3382 (frame_unwind_append_sniffer): Update call to append_predicate.
3383 (frame_unwind_free): Delete function.
3384 (_initialize_frame_unwind): Pass NULL as "free" to
3385 register_gdbarch_data.
3386 (frame_unwind_init): Append the dummy_frame_sniffer.
3387 (frame_unwind_find_by_frame): Simplify.
3388 * frame-base.c (struct frame_base_table): Delete field "p".
3389 (append_predicate): Delete parameter "p".
3390 (frame_base_append_predicate): Delete function.
3391 (frame_base_append_sniffer): Update call to append_predicate.
3392 (frame_base_free): Delete function.
3393 (frame_base_find_by_frame): Simplify.
3394 (_initialize_frame_base): Pass NULL as "free" to
3395 register_gdbarch_data.
3396 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
3397 (x86_64_sigtramp_frame_sniffer): Replace
3398 "x86_64_sigtramp_frame_p".
3399 (x86_64_init_abi): Set the frame unwind sniffers.
3400 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
3401 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
3402 (m68k_gdbarch_init): Set the frame unwind sniffers.
3403 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
3404 "i386_sigtramp_frame_p".
3405 (i386_frame_sniffer): Replace "i386_frame_p".
3406 (i386_gdbarch_init): Set the frame unwind sniffers.
3407 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
3408 (avr_gdbarch_init): Set the frame unwind sniffers.
3409 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
3410 "alpha_sigtramp_frame_p"
3411 (alpha_heuristic_frame_sniffer): Replace
3412 "alpha_heuristic_frame_p".
3413 (alpha_gdbarch_init): Set the frame unwind sniffers.
3414 (alpha_dwarf2_init_abi): Ditto.
3415 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
3416 "alpha_debug_frame_p".
3417 (alpha_mdebug_frame_base_sniffer): Replace
3418 "alpha_mdebug_frame_base_p".
3419 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
3420 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
3421 (d10v_gdbarch_init): Set the frame unwind sniffer.
3422 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3423 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3424 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
3425 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
3426 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
3427 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
3429 2003-07-16 Michael Snyder <msnyder@redhat.com>
3431 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
3432 should go thru sh_dsp_register_sim_regno, else the dsp regs
3433 will not get the right values.
3435 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3437 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
3438 deprecated_store_floating by call to store_typed_floating.
3439 (sh_sh4_register_convert_to_raw): Substitute call to
3440 deprecated_extract_floating by call to extract_typed_floating.
3442 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3444 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
3446 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
3448 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
3449 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
3450 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
3452 (do_pseudo_register): Remove.
3453 (sh_push_dummy_code): New function.
3454 (sh64_store_struct_return): Rename from sh_store_struct_return.
3455 Only called for sh64 now.
3456 (sh_extract_struct_value_address): Regcache'ify.
3457 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
3458 and accomodate new tasks.
3459 (sh64_push_return_address): Rename from sh_push_return_address.
3460 Only called for sh64 now.
3461 (sh_default_extract_return_value): Rename from sh_extract_return_value.
3463 (sh3e_sh4_extract_return_value): Regcache'ify.
3464 (sh_default_store_return_value): Ditto.
3465 (sh3e_sh4_store_return_value): Ditto.
3466 (sh_default_register_byte): Remove.
3467 (sh_sh4_register_byte): Remove.
3468 (sh_default_register_raw_size): Remove.
3469 (sh_sh4_register_raw_size): Remove.
3470 (sh_register_virtual_size): Remove.
3471 (sh_sh3e_register_virtual_type): Remove.
3472 (sh_sh3e_register_type): New function.
3473 (sh_sh4_register_virtual_type): Remove.
3474 (sh_sh4_register_type): New function.
3475 (sh_default_register_virtual_type): Remove.
3476 (sh_default_register_type): New function.
3477 (do_fv_register_info): Add parameters to accomodate call from
3478 sh_print_registers_info.
3479 (do_dr_register_info): Ditto.
3480 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
3481 Add parameters to accomodate call from sh_print_registers_info.
3482 (sh_do_fp_register): Ditto.
3483 (sh64_do_pseudo_register): Call do_dr_register_info,
3484 do_fv_register_info and sh_do_fp_register with default parameters.
3485 (sh_do_register): Add parameters to accomodate call from
3486 sh_print_registers_info.
3487 (sh_print_register): Ditto.
3488 (sh_print_registers_info): Rename from sh_do_registers_info.
3489 Add parameters to be used as gdbarch_print_registers_info
3490 implementation. Accomodate removed do_pseudo_register function
3492 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
3493 function pointer. Call sh_print_register with default parameters.
3494 (sh64_do_registers_info): Call sh_print_registers_info instead of
3495 sh_do_registers_info.
3496 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
3497 detection of deprecated vs. non-deprecated functionality.
3498 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
3499 function pointer assignments by direct function calls.
3501 2003-07-15 Andrew Cagney <cagney@redhat.com>
3503 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
3504 (frame_register_unwind, create_new_frame): Ditto.
3505 (legacy_get_prev_frame, get_frame_type): Ditto.
3506 (get_frame_base_address): Use frame_base_find_by_frame.
3507 (get_frame_locals_address): Use frame_base_find_by_frame.
3508 (get_frame_args_address): Use frame_base_find_by_frame.
3509 * frame-base.h (frame_base_sniffer_ftype): Declare.
3510 (frame_base_append_sniffer): Declare.
3511 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
3512 * frame-base.c (append_predicate): Add a "sniffer" parameter.
3513 (frame_base_append_sniffer): New function.
3514 (frame_base_append_predicate): Add a NULL sniffer.
3515 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
3516 (struct frame_base_table): Add "sniffer".
3517 (frame_base_free): Free the "sniffer" table.
3518 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
3519 (frame_unwind_append_sniffer): Declare.
3520 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3521 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
3522 (struct frame_unwind_table): Add "sniffer", delete "middle".
3523 (append_predicate): Add "sniffer" parameter, append the sniffer.
3524 (frame_unwind_init): Update append_predicate call.
3525 (frame_unwind_append_sniffer): New function.
3526 (frame_unwind_append_predicate): Update append_predicate call.
3527 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
3529 2003-07-15 Andrew Cagney <cagney@redhat.com>
3531 * frame.c (get_prev_frame): Move disabled inside_entry_func to
3532 before code inhibiting repeated unwind attempts. Add to
3533 commentary on that test's problems.
3534 * blockframe.c (inside_main_func): Look for "main" in the minimal
3536 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
3539 2003-07-15 Andrew Cagney <cagney@redhat.com>
3541 * complaints.c (struct explanation): Define.
3542 (struct complaints): Change type of "explanation" to "struct
3544 (symfile_explanations): Convert to a "struct explanation" table.
3545 (vcomplaint): Update.
3547 2003-07-15 Michal Ludvig <mludvig@suse.cz>
3549 * x86-64-linux-nat.c (regmap): Removed.
3550 (supply_gregset, fill_gregset): Call
3551 x86_64_linux_(fill,supply)_gregset functions.
3552 * x86-64-linux-tdep.c (USER_*): New defines.
3553 (user_to_gdb_regmap, x86_64_core_fns): New structure.
3554 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
3556 (fetch_core_registers): Ditto.
3557 (_initialize_x86_64_linux_tdep): Call add_core_fns().
3558 * x86-64-linux-tdep.h: New file.
3559 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
3561 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
3563 2003-07-13 Mark Kettenis <kettenis@gnu.org>
3565 * x86-64-tdep.c (x86_64_store_return_value): Use
3566 regcache_cooked_write_part instead of regcache_cooked_write.
3568 * configure.host: Add x86_64-*-freebsd*.
3569 * configure.tgt: Add x86_64-*-freebsd*.
3570 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
3571 * amd64fbsd-nat.c: New file.
3572 * amd64fbsd-tdep.c: New file.
3573 * config/i386/nm-fbsd64.h: New file.
3574 * config/i386/fbsd64.mh: New file.
3575 * config/i386/fbsd64.mt: New file.
3577 2003-07-11 Mark Kettenis <kettenis@gnu.org>
3579 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
3580 `sc_regs_offset' and `sc_fpregs_offset'.
3581 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
3582 SIGFRAME_FPREGSAVE_OFF): Remove defines.
3583 (alpha_sigtramp_register_address): Rewrite to use new members of
3584 `struct gdbarch_tdep'.
3585 (alpha_gdbarch_init): Initialize new members of struct
3587 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
3588 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
3589 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
3590 (alphafbsd_pc_in_sigtramp): Implement.
3591 (alphafbsd_sigtramp_offset): New function.
3592 (alphafbsd_sigcontext_addr): New function.
3593 (alphafbsd_init_abi): Initialize signal trampoline related members
3594 of `struct gdbarch_tdep'.
3595 (_initialize_alphafbsd_tdep): Add prototype.
3597 2003-07-11 Theodore A. Roth <troth@openavr.org>
3599 * Makefile.in (install-only): Quote sed expression when generating
3602 2003-07-11 Richard Henderson <rth@redhat.com>
3604 * Makefile.in (dwarf2-frame.o): Add complaints_h.
3605 * dwarf2-frame.c: Include complaints.h.
3606 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
3607 variable initialization; return NULL on error.
3608 (decode_frame_entry): New.
3610 2003-07-11 Andrew Cagney <cagney@redhat.com>
3612 * frame.h (frame_address_in_block): Delete declaration.
3613 * blockframe.c (frame_address_in_block): Delete function.
3614 (get_frame_block): Use get_frame_address_in_block.
3615 (block_innermost_frame): Ditto.
3616 * stack.c (print_frame, backtrace_command_1): Ditto.
3618 * frame.h (get_frame_address_in_block): Declare.
3619 (frame_unwind_address_in_block): Declare.
3620 * frame.c (frame_unwind_address_in_block): New function.
3621 (get_frame_address_in_block): New function.
3623 2003-07-10 Andrew Cagney <cagney@redhat.com>
3625 * gdbarch.sh: Simplify predicate methods. Remove need to provide
3626 pre-default. Note: re-generate has no effect.
3628 2003-07-10 Andrew Cagney <cagney@redhat.com>
3630 * gdbarch.sh: When a variable, but not a function, compare against
3631 0. Fix problem in previous patch.
3632 * gdbarch.c: Re-generate.
3634 2003-07-10 Andrew Cagney <cagney@redhat.com>
3636 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
3637 functions against NULL, not 0.
3638 * gdbarch.c: Re-generate.
3640 2003-07-10 Fred Fish <fnf@ninemoons.com>
3642 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
3643 null string instead of a null pointer.
3644 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
3646 2003-07-09 Michael Snyder <msnyder@redhat.com>
3648 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
3650 2003-07-09 Mark Kettenis <kettenis@gnu.org>
3652 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
3653 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
3654 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
3655 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
3656 * x86-64-tdep.c: ... from here.
3658 2003-07-09 Andreas Schwab <schwab@suse.de>
3660 * m68k-tdep.h (enum struct_return): Define.
3661 (struct gdbarch_tdep): Add struct_return.
3662 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
3663 bytes are padded to the right, not to the left. Pass struct value
3664 address in register %a1, not on stack.
3665 (m68k_use_struct_convention): New function.
3666 (m68k_gdbarch_init): Set use_struct_convention. Initialize
3667 struct_return in tdep to pcc_struct_return.
3668 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
3671 2003-07-09 Joel Brobecker <brobecker@gnat.com>
3673 * somread.c (som_symfile_offsets): Fix compilation error.
3675 2003-07-09 Andrew Cagney <cagney@redhat.com>
3677 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
3678 Add comments about the checks.
3680 2003-07-08 Andrew Cagney <cagney@redhat.com>
3682 * Makefile.in: Make dependency section headers consistent.
3683 (config_h): Move to $BUILD headers section.
3684 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
3685 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
3686 (ada-exp.tab.c): Move to YACC/LEX section.
3687 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
3688 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
3690 2003-07-08 Kris Warkentin <kewarken@qnx.com>
3692 * nto-procfs.c: Cleaned up a bunch of ARI hits.
3693 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
3694 of strerror with safe_strerror, use ISO C function definitions,
3695 and replace instances of sprintf with snprintf.
3697 2003-07-07 Andrew Cagney <cagney@redhat.com>
3699 * frame.c (get_prev_frame): Enable check for identical frames.
3700 Update comments. Update error messages.
3702 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3704 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
3706 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3708 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
3709 sort_symtab_syms, no longer necessary.
3711 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3713 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
3715 2003-07-07 Joel Brobecker <brobecker@gnat.com>
3717 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
3718 (mips_register_byte): Likewise.
3720 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3722 * Makefile.in (sparc_tdep_h): New.
3723 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
3724 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
3725 * sparc-linux-nat.c: Include "sparc-tdep.h".
3726 * sparc-nat.c: Likewise.
3727 * sparc-tdep.c: Likewise.
3728 * sparc64nbsd-nat.c: Likewise.
3729 * sparcnbsd-nat.c: Likewise.
3730 * sparcnbsd-tdep.c: Likewise.
3731 * sparc-tdep.h: New file.
3732 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
3733 and sparc_npc_regnum.
3735 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3737 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
3738 (mips_linux_cannot_store_register): List supported instead of
3739 unsupported registers.
3741 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
3743 * disasm.c (dump_insns): Separate instructions from addresses.
3745 2003-07-07 Andreas Schwab <schwab@suse.de>
3747 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
3749 * m68k-tdep.c (NUM_FREGS): Delete.
3750 (SIG_PC_FP_OFFSET): Delete.
3751 (TARGET_M68K): Delete.
3752 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
3753 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
3754 P_MOVEL_SP, P_MOVEML_SP): Define.
3755 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
3757 (m68k_register_raw_size): Delete.
3758 (m68k_register_virtual_size): Delete.
3759 (m68k_register_type): Renamed from m68k_register_virtual_type and
3760 add gdbarch argument.
3761 (m68k_store_struct_return): Delete.
3762 (m68k_deprecated_extract_return_value): Delete.
3763 (m68k_deprecated_extract_struct_value_address): Delete.
3764 (m68k_frame_chain): Delete.
3765 (m68k_frame_saved_pc): Delete.
3766 (m68k_fix_call_dummy): Delete.
3767 (m68k_push_dummy_frame): Delete.
3768 (m68k_pop_frame): Delete.
3769 (m68k_extract_return_value): New function.
3770 (m68k_store_return_value): Rewrite using regcache.
3771 (m68k_extract_struct_value_address): Rewrite using regcache.
3772 (m68k_push_dummy_call): New function.
3773 (struct m68k_frame_cache): Define.
3774 (m68k_alloc_frame_cache): New function.
3775 (m68k_analyze_frame_setup): New function.
3776 (m68k_analyze_register_saves): New function.
3777 (m68k_analyze_prologue): New function.
3778 (m68k_skip_prologue): Rewrite using above functions.
3779 (m68k_unwind_pc): New function.
3780 (m68k_frame_cache): New function.
3781 (m68k_frame_this_id): New function.
3782 (m68k_frame_prev_register): New function.
3783 (m68k_frame_unwind): New variable.
3784 (m68k_frame_p): New function.
3785 (m68k_sigtramp_frame_cache): New function.
3786 (m68k_sigtramp_frame_this_id): New function.
3787 (m68k_sigtramp_frame_prev_register): New function.
3788 (m68k_sigtramp_frame_unwind): New variable.
3789 (m68k_sigtramp_frame_p): New function.
3790 (m68k_frame_base_address): New function.
3791 (m68k_frame_base): New function.
3792 (m68k_unwind_dummy_id): New function.
3793 (fill_gregset): Use regcache_collect.
3794 (fill_fpregset): Likewise.
3795 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
3797 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
3798 deprecated_init_frame_pc, deprecated_store_struct_return,
3799 deprecated_extract_return_value, deprecated_store_return_value,
3800 deprecated_frame_chain, deprecated_frame_saved_pc,
3801 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
3802 deprecated_register_virtual_size,
3803 deprecated_max_register_raw_size,
3804 deprecated_max_register_virtual_size,
3805 deprecated_register_virtual_type, deprecated_register_size,
3806 deprecated_register_byte, deprecated_register_bytes,
3807 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
3808 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
3809 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
3810 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
3811 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
3812 deprecated_push_dummy_frame, deprecated_pop_frame,
3813 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
3814 only if SYSCALL_TRAP is defined. Set extract_return_value,
3815 store_return_value, extract_struct_value_address, register_type,
3816 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
3818 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
3819 M68K_MAX_REGISTER_SIZE): Define.
3820 (struct m68k_sigtramp_info): Define.
3821 (struct gdbarch_tdep): Add get_sigtramp_info.
3822 * m68klinux-nat.c (fetch_register): Use register_size instead of
3823 REGISTER_RAW_SIZE. Don't put assignment in if.
3824 (store_register): Likewise.
3825 (fetch_inferior_registers): Likewise.
3826 (store_inferior_registers): Likewise.
3827 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
3828 (m68k_linux_frame_saved_pc): Delete.
3829 (m68k_linux_sigcontext_reg_offset,
3830 m68k_linux_ucontext_reg_offset): Define.
3831 (m68k_linux_get_sigtramp_info): New function.
3832 (m68k_linux_extract_return_value): Rewrite using regcache.
3833 (m68k_linux_store_return_value): Likewise.
3834 (m68k_linux_extract_struct_value_address): Likewise.
3835 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
3836 Don't set deprecated_frame_saved_pc,
3837 deprecated_extract_return_value, deprecated_store_return_value,
3838 deprecated_extract_struct_value_address. Set
3839 extract_return_value, store_return_value,
3840 extract_struct_value_address.
3842 2003-07-07 Andrew Cagney <cagney@redhat.com>
3844 * expprint.c: Include "user-regs.h" instead of "frame.h".
3845 (print_subexp): Use user_reg_map_regnum_to_name, instead of
3846 frame_map_regnum_to_name.
3847 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
3848 (frame_map_name_to_regnum): Simplify, call
3849 user_reg_map_name_to_regnum.
3850 (frame_map_regnum_to_name): Simplify, call
3851 user_reg_map_regnum_to_name.
3852 (frame_register_unwind): Update.
3853 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
3854 (_initialize_frame_reg): Call user_reg_add_builtin.
3855 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
3856 (value_of_register): Use value_of_user_reg.
3857 * eval.c (evaluate_subexp_standard): Update.
3858 * parse.c (write_dollar_variable): Update.
3859 * d10v-tdep.c (d10v_print_registers_info): Update.
3860 * infcmd.c (registers_info): Update.
3861 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
3862 (builtin_regs_h): Delete macro.
3863 (user_regs_h): Define.
3864 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
3865 (builtin-regs.o): Delete target.
3866 (user-regs.o): Specify dependencies.
3867 (expprint.o): Update dependencies.
3868 (findvar.o): Update dependencies.
3869 (frame.o): Update dependencies.
3870 (std-regs.o): Update dependencies.
3872 2003-07-06 Christopher Faylor <cgf@redhat.com>
3874 * win32-nat.c (solib_symbols_add): Use one variable for all section
3875 address stuff. Pass variable rather than address of variable to
3876 safe_symbol_file_add.
3878 2003-07-06 Andreas Schwab <schwab@suse.de>
3880 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
3882 2003-07-04 Joel Brobecker <brobecker@gnat.com>
3884 * rs6000-nat.c (vmap_symtab): Fix compilation error.
3886 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3888 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
3890 2003-07-04 Kris Warkentin <kewarken@qnx.com>
3892 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
3893 * config/i386/nto.mh: New file.
3894 * config/i386/nm-nto.h: New file.
3895 * configure.host: Add i[3456]86-*-nto*.
3897 2003-07-03 Joel Brobecker <brobecker@gnat.com>
3899 * remote-vx.c (vx_add_symbols): Fix compilation error.
3901 2003-07-03 Andrew Cagney <cagney@redhat.com>
3903 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
3904 * gdbarch.h, gdbarch.c: Re-generate.
3905 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
3906 (legacy_register_name): Declare.
3907 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
3908 (REGISTER_NAME): Define.
3909 * sparc-tdep.c (legacy_register_name): New function.
3910 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
3911 (REGISTER_NAME): Define.
3912 (hppa64_register_name): Declare.
3913 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
3914 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
3915 (hppa64_register_name): New function.
3916 (hppa_register_name): New function.
3917 * arch-utils.c (legacy_register_name): Delete.
3918 * arch-utils.h (legacy_register_name): Delete.
3920 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
3922 * cli/cli-interp.c (cli_interpreter_resume): Update the
3923 cli_uiout's stream to gdb_stdout.
3925 2003-07-03 Andrew Cagney <cagney@redhat.com>
3927 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
3929 * gdbarch.h, gdbarch.c: Re-generate.
3930 * regcache.c (init_regcache_descr): Use legacy code when either
3931 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
3933 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3935 * NEWS: Move "set logging" entry into GDB 6.0 section.
3937 2003-07-02 Jim Blandy <jimb@redhat.com>
3939 * s390-tdep.c (struct frame_extra_info): new member:
3940 'stack_bought_valid'.
3941 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
3942 initialize fextra_info->stack_bought.
3943 (s390_frameless_function_invocation): Don't trust the value of
3944 fextra_info_ptr->stack_bought unless
3945 fextra_info->stack_bought_valid is set.
3947 New S390 prologue analyzer.
3948 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
3949 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
3950 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
3951 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
3952 compute_x_addr, s390_on_stack, s390_store,
3953 s390_get_signal_frame_info): New functions.
3954 (S390_NUM_SPILL_SLOTS): New macro.
3955 (s390_get_frame_info): Rewritten.
3956 (is_arg_reg): Deleted.
3958 Break out the decoding of S/390 instructions into separate
3959 functions, to make it more legible, and easier to check
3961 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
3962 is_rx, is_rxe): New functions.
3963 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
3964 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
3965 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
3966 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
3967 enums for opcode values. (Is this an improvement?)
3969 2003-07-02 Andrew Cagney <cagney@redhat.com>
3971 * i386-tdep.c: Revert change committed as part of trad-frame code
3974 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
3976 * breakpoint.c (insert_catchpoint): Make static.
3978 2003-07-02 Andreas Schwab <schwab@suse.de>
3980 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
3981 former ia64_push_arguments and ia64_push_return_address, and use
3982 regcache functions instead of read/write_register.
3983 (ia64_gdbarch_init): Set push_dummy_call instead of
3984 deprecated_push_arguments and deprecated_push_return_address.
3986 2003-07-01 Andreas Jaeger <aj@suse.de>
3988 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
3990 Set %rax only to number of SSE registers used.
3992 2003-07-01 Andrew Cagney <cagney@redhat.com>
3994 * trad-frame.h: Update comments, a -1 .addr is reserved.
3995 (trad_frame_value_p, trad_frame_addr_p): Declare.
3996 (trad_frame_reg_p): Declare.
3997 (trad_frame_set_value): Rename trad_frame_register_value.
3998 (trad_frame_set_unknown): Declare.
3999 * trad-frame.c (trad_frame_realreg_p): New function.
4000 (trad_frame_addr_p, trad_frame_value_p): New function.
4001 (trad_frame_set_unknown): New function.
4002 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
4003 (trad_frame_prev_register): Use trad_frame_realreg_p,
4004 trad_frame_addr_p and trad_frame_value_p.
4005 (trad_frame_set_value): Rename trad_frame_register_value.
4006 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
4007 and trad_frame_set_value.
4009 2003-06-30 Jim Blandy <jimb@redhat.com>
4011 Patch from IBM (authors unspecified, probably Ulrich Weigand and
4012 Gerhard Tonn) for argument passing on the S/390 and S/390x:
4013 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
4014 for 16 registers, and then 32 more bytes.
4015 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
4017 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
4018 Move up in the file, since it's now used by is_simple_arg.
4019 (is_simple_arg): Don't assume registers are four bytes long.
4020 Exclude all double arguments. Extended floats are not simple
4022 (is_power_of_two): New function.
4023 (pass_by_copy_ref): Call is_power_of_two, and check that the
4024 length fits in a register, rather than listing all the acceptable
4025 sizes. Extended floats are not passed by reference.
4026 (s390_push_arguments): Don't assume registers are four bytes long.
4027 Reserve an argument register to point to the buffer for structures
4028 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
4029 S390_STACK_FRAME_OVERHEAD.
4031 2003-06-30 Andreas Schwab <schwab@suse.de>
4033 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
4034 format error message.
4036 2003-06-30 Joel Brobecker <brobecker@gnat.com>
4038 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
4040 2003-06-30 David Carlton <carlton@kealia.com>
4042 Band-aid for PR c++/1245.
4043 * Makefile.in (cp-support.o): Depend on complaints_h.
4044 * cp-support.c: Include complaints.h. Add declaration for
4045 find_last_component.
4046 (cp_find_first_component): Separate code into
4047 cp_find_first_component_aux.
4048 (cp_find_first_component_aux): Call demangled_name_complaint.
4049 (demangled_name_complaint): New.
4051 2003-06-30 Andrew Cagney <cagney@redhat.com>
4053 * remote.c (remote_write_bytes): Explicitly compute and then use
4054 the payload size. Update comments to reflect. Fixes problem of
4055 GDB not sending small packets as found by Fred Fish.
4057 2003-06-30 Andrew Cagney <cagney@redhat.com>
4059 * remote.c (remote_async_wait): Fix -Wformat problem.
4061 2003-06-29 Andrew Cagney <cagney@redhat.com>
4063 * remote.c (remote_wait): Call error, and not warning, when the
4065 (remote_async_wait): Ditto.
4067 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4069 * sparc-tdep.c (sparc_y_regnum): Make external again.
4071 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
4073 * cli/cli-logging.c (pop_output_files): Add void to function
4076 2003-06-29 Andrew Cagney <cagney@redhat.com>
4078 * frame.c (frame_register_unwind): Use unsigned char when dumping
4079 the buffer contents.
4081 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
4083 * cli/cli-logging.c: New file.
4084 * cli-out.c (struct ui_out_data): Add original_stream.
4085 (cli_redirect): New function.
4086 (cli_ui_out_impl): Add cli_redirect.
4087 (cli_out_new): Initialize original_stream.
4088 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
4089 (uo_redirect, ui_out_redirect): New.
4090 * ui-out.h (struct ui_out_impl): Add redirect member.
4091 (redirect_ftype): New.
4092 (ui_out_redirect): Add prototype.
4093 * Makefile.in: Add rules for cli-logging.c.
4094 * NEWS: Mention "set logging".
4096 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4098 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
4100 2003-06-27 Andrew Cagney <cagney@redhat.com>
4102 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
4103 (m68hc11_gdbarch_init): Do not set call_dummy_address.
4104 * avr-tdep.c (avr_call_dummy_address): Delete function.
4105 (avr_gdbarch_init): Do not set call_dummy_address.
4107 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4109 * symfile.c (syms_from_objfile): Move variables to inner block.
4110 Move the checks for the non-mainline case a bit earlier to avoid
4111 doing some useless computations.
4113 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
4115 * dwarfread.c (decode_modified_type): Gag new compiler warning.
4117 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
4119 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
4122 2003-06-26 Michael Chastain <mec@shout.net>
4124 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
4125 gdb/testsuite/gdb.c++/pr-1210.exp.
4127 2003-06-26 Andrew Cagney <cagney@redhat.com>
4129 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
4130 altivec_expression.h and altivec_registers.h.
4132 2003-06-26 Andrew Cagney <cagney@redhat.com>
4134 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
4135 info->mach when MIPS16. Patch suggested by Fred Fish.
4137 2003-06-26 Andrew Cagney <cagney@redhat.com>
4139 * utils.c (internal_vproblem): Print the problem to a reason
4140 buffer and then pass to query. Make the msg variable more local.
4142 2003-06-26 Andrew Cagney <cagney@redhat.com>
4144 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
4145 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
4146 * gdbarch.h, gdbarch.c: Re-generate.
4147 * frame-base.c (default_frame_args_address): Update. Use
4148 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
4150 (default_frame_locals_address): Ditto for
4151 DEPRECATED_FRAME_LOCALS_ADDRESS.
4152 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
4153 (vax_frame_num_args): Update.
4154 (vax_gdbarch_init): Update.
4155 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4156 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4157 * mcore-tdep.c (mcore_gdbarch_init): Update.
4158 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4159 * ia64-tdep.c (ia64_gdbarch_init): Update.
4160 * symtab.h (address_class): Update comments.
4161 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
4162 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4163 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4164 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4165 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4166 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
4167 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
4168 * alpha-mdebug-tdep.c: Update.
4169 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
4171 2003-06-26 Andreas Jaeger <aj@suse.de>
4173 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
4174 of SSE registers so that varargs functions work. Rework handling
4175 of passing arguments on the stack.
4176 (x86_64_store_return_value): Return double and float values in SSE
4179 2003-06-24 Michael Chastain <mec@shout.net>
4181 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
4182 the "constructor breakpoints ignored" bug.
4184 2003-06-25 David Carlton <carlton@kealia.com>
4186 * MAINTAINERS: Update e-mail address.
4188 2003-06-24 Jim Blandy <jimb@redhat.com>
4190 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
4192 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
4194 (ppc_linux_init_abi): Register it as the
4195 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
4197 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
4198 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
4201 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
4202 (ppc64_standard_linkage_target): Use it.
4204 2003-06-23 Andrew Cagney <cagney@redhat.com>
4206 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
4207 for 0 "int0" and 4 "int32" sized registers.
4208 * gdbtypes.c (builtin_type_int0): Define.
4209 (build_gdbtypes): Initialize builtin_type_int0.
4210 * gdbtypes.h (builtin_type_int0): Declare.
4212 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
4214 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
4215 as characters are unsigned.
4217 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4220 * dwarfread.c (struct_type): Skip static fields without crashing.
4222 2003-06-22 Andrew Cagney <cagney@redhat.com>
4224 GDB 6.0 branch created.
4226 * PROBLEMS: Update. Empty.
4229 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4231 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
4232 Suggested by Nick Hibma <n_hibma@webweaving.org>.
4234 2003-06-22 Andrew Cagney <cagney@redhat.com>
4236 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
4237 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
4240 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
4242 * cli/cli-cmds.c (shell_escape): Silence warnings from old
4245 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4247 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
4248 argument of val_print.
4249 * cp-valprint.c (cp_print_value): Don't add the offset parameter
4250 to the address argument of baseclass_offset or target_read_memory.
4251 Do add it to the argument of cp_print_value_fields.
4253 2003-06-21 Andrew Cagney <cagney@redhat.com>
4255 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
4256 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
4257 instead of 0..NUM_REGS.
4258 (mips_register_reggroup_p): New function.
4259 (mips_pseudo_register_write): New function.
4260 (mips_pseudo_register_read): New function.
4261 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
4262 based on the register's type.
4263 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
4265 (mips_get_saved_register): Simplify. Assert that REGNO is a
4267 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
4268 (mips_register_type): Replace mips_register_virtual_type. Map
4269 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
4271 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
4272 that the register is cooked / virtual.
4273 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
4274 Only get the extra info when needed.
4275 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
4276 (mips32_heuristic_proc_desc): Fetch the cooked register.
4277 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
4278 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
4279 (mips_print_register): Use gdbarch_register_type, instead of
4280 REGISTER_VIRTUAL_TYPE.
4281 (print_gp_register_row): Use gdbarch_register_type, instead of
4282 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
4283 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4284 Print the pseudo / cooked registers.
4285 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
4286 Print the pseudo / cooked registers.
4287 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
4288 REG_NUM is pseudo / cooked.
4289 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
4290 (mips_n32n64_xfer_return_value): Ditto.
4291 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
4292 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
4293 (mips_register_sim_regno): New function.
4294 (mips_gdbarch_init): Set deprecated_register_byte,
4295 register_group_p, pseudo_register_write, pseudo_register_read,
4296 register_sim_regno, and num_pseudo_regs. Set register_type,
4297 instead of register_virtual_type.
4298 * Makefile.in (mips-tdep.o): Update dependencies.
4299 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
4300 REGISTER_VIRTUAL_TYPE.
4301 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
4302 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
4303 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
4304 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
4305 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
4307 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
4309 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
4310 * cli/cli-cmds.c: Include "gdb_vfork.h".
4311 (shell_escape): Use vfork.
4313 2003-06-21 Andrew Cagney <cagney@redhat.com>
4315 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
4316 32 bit floating-point register saves.
4318 * frame.h (deprecated_unwind_get_saved_register): Delete.
4319 * frame.c (deprecated_unwind_get_saved_register): Delete function.
4320 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
4321 and deprecated_get_next_frame_hack instead of
4322 deprecated_unwind_get_saved_register.
4324 * mips-tdep.c (mips_dump_tdep): Do not print
4325 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
4327 * frame.c (get_frame_register): New function.
4328 (frame_unwind_register_signed): New function.
4329 (get_frame_register_signed): New function.
4330 (frame_unwind_register_unsigned): New function.
4331 (get_frame_register_unsigned): New function.
4332 * frame.h: Add comments on naming schema.
4333 (get_frame_register, frame_unwind_register_signed): Declare.
4334 (get_frame_register_signed, get_frame_register_signed): Declare.
4335 (frame_unwind_register_unsigned): Declare.
4336 (get_frame_register_unsigned): Declare.
4338 2003-06-20 Theodore A. Roth <troth@openavr.org>
4340 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
4342 2003-06-20 Theodore A. Roth <troth@openavr.org>
4344 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
4345 (avr_read_sp): Ditto.
4347 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
4349 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
4350 * config/arm/nm-linux.h: Likewise.
4351 * config/arm/tm-linux.h: Likewise.
4352 * config/ia64/nm-linux.h: Likewise.
4353 * config/ia64/tm-ia64.h: Likewise.
4354 * config/s390/tm-linux.h: Likewise.
4355 * config/s390/tm-s390.h: Likewise.
4356 * s390-nat.c: Likewise.
4357 * s390-tdep.c: Likewise.
4359 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
4360 * config/ia64/linux.mt: Likewise.
4361 * config/m68k/linux.mh: Likewise.
4362 * config/mips/linux.mt: Likewise.
4363 * config/powerpc/linux.mh: Likewise.
4364 * config/sh/linux.mt: Likewise.
4366 2003-06-19 Kris Warkentin <kewarken@qnx.com>
4368 * solib.c (solib_open): Change tests for whether to search
4369 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
4372 2003-06-19 Theodore A. Roth <troth@openavr.org>
4374 * avr-tdep.c (avr_frame_address): Delete function.
4375 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
4376 set_gdbarch_frame_args_address.
4378 2003-06-19 Andrew Cagney <cagney@redhat.com>
4380 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
4381 (REGISTER_CONVERT_FROM_TYPE): Delete.
4382 (mips_register_convert_to_type): Delete declaration.
4383 (mips_register_convert_from_type): Delete declaration.
4384 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
4387 2003-06-19 Michael Snyder <msnyder@redhat.com>
4389 * linux-nat.h: New file.
4390 * linux-nat.c: Include linux-nat.h.
4391 * lin-lwp.c: Include linux-nat.h.
4392 Move struct lwp_info def to linux-nat.h.
4393 * linux-proc.c: Include linux-nat.h.
4394 (linux_make_note_section): Iterate over lwps instead of threads.
4395 (linux_do_thread_registers): Use lwp instead of merged pid.
4396 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
4397 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
4398 Add dependency on linux_nat_h.
4400 2003-06-19 Theodore A. Roth <troth@openavr.org>
4402 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
4404 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4406 * varobj.c (get_type, get_target_type): Use check_typedef.
4408 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4410 * breakpoint.c (insert_catchpoint): Call internal_error.
4412 2003-06-19 Theodore A. Roth <troth@openavr.org>
4414 * avr-tdep.c (avr_push_dummy_code): Delete function.
4415 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
4417 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
4419 * arch-utils.c (default_prepare_to_proceed): Remove.
4420 (generic_prepare_to_proceed): Remove.
4421 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
4422 (generic_prepare_to_proceed): Remove prototype.
4423 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
4424 * gdbarch.c: Regenerate.
4425 * gdbarch.h: Regenerate.
4426 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
4427 * hppah-nat.c (hppa_switched_threads): Remove.
4428 * infrun.c (prepare_to_proceed): New static function, copied from
4429 generic_prepare_to_proceed. Remove select_it argument.
4430 (proceed): Call prepare_to_proceed.
4431 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
4433 (ptrace_wait): Don't set the removed variables.
4434 (hppa_switched_threads): Remove.
4435 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
4436 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
4437 (lin_lwp_prepare_to_proceed): Remove prototype.
4438 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
4439 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
4441 2003-06-18 Theodore A. Roth <troth@openavr.org>
4443 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
4445 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
4446 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
4447 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
4448 (AVR_PROLOGUE_*): Enumerate prologue types.
4449 (struct frame_extra_info): Remove.
4450 (struct avr_unwind_cache): Define.
4451 (avr_write_sp): Delete function.
4452 (avr_read_fp): Ditto.
4453 (avr_init_extra_frame_info): Ditto.
4454 (avr_pop_frame): Ditto.
4455 (avr_frame_saved_pc): Ditto.
4456 (avr_saved_pc_after_call): Ditto.
4457 (avr_push_return_address): Ditto.
4458 (avr_frame_chain): Ditto.
4459 (avr_store_struct_return): Ditto.
4460 (avr_push_arguments): Ditto.
4461 (avr_scan_prologue): Update comments. Changed to set up the info for
4462 cache unwinding. Now returns end of prologue PC.
4463 (avr_skip_prologue): Better handling of functions lacking a prologue
4464 by using avr_scan_prologue.
4465 (avr_scan_arg_moves): New function.
4466 (avr_saved_regs_unwinder): Ditto.
4467 (avr_frame_unwind_cache): Ditto.
4468 (avr_unwind_pc): Ditto.
4469 (avr_frame_this_id): Ditto.
4470 (avr_frame_prev_register): Ditto.
4471 (avr_frame_p): Ditto.
4472 (avr_frame_base_address ): Ditto.
4473 (avr_unwind_dummy_id): Ditto.
4474 (avr_push_dummy_code): Ditto.
4475 (push_stack_item): Ditto.
4476 (pop_stack_item): Ditto.
4477 (avr_push_dummy_call): Ditto.
4478 (struct stack_item): Define.
4479 (avr_frame_unwind): Declare structure.
4480 (avr_frame_base): Ditto.
4481 (avr_gdbarch_init): Remove calls to
4482 set_gdbarch_deprecated_init_frame_pc,
4483 set_gdbarch_deprecated_target_read_fp,
4484 set_gdbarch_deprecated_dummy_write_sp,
4485 set_gdbarch_deprecated_fp_regnum,
4486 set_gdbarch_deprecated_push_arguments,
4487 set_gdbarch_deprecated_push_return_address,
4488 set_gdbarch_deprecated_pop_frame,
4489 set_gdbarch_deprecated_store_struct_return,
4490 set_gdbarch_deprecated_frame_init_saved_regs,
4491 set_gdbarch_deprecated_init_extra_frame_info,
4492 set_gdbarch_deprecated_frame_chain,
4493 set_gdbarch_deprecated_frame_saved_pc,
4494 set_gdbarch_deprecated_saved_pc_after_call.
4495 Add calls to set_gdbarch_push_dummy_call,
4496 set_gdbarch_push_dummy_code,
4497 frame_unwind_append_predicate,
4498 frame_base_set_default,
4499 set_gdbarch_unwind_dummy_id,
4500 set_gdbarch_unwind_pc.
4503 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
4505 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
4506 registers for H8/300S.
4507 (h8300_print_registers_info): Ditto.
4508 (h8300_gdbarch_init): Accommodate register count for H8/300S.
4510 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
4512 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
4513 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4514 (lin_lwp_wait): Likewise. Update comments.
4515 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
4516 (pull_pid_from_list, linux_record_stopped_pid): New.
4518 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4520 * ada-lang.c (scan_discrim_bound): Name first argument.
4521 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
4522 declared by ALL_BLOCK_SYMBOLS.
4524 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
4526 * ada-tasks.c (find_function_in_inferior): Don't declare it.
4527 ("regcache.h"): Include it.
4528 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
4530 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4532 * NEWS: Mention gdbserver detach change and "disconnect" command.
4533 * infcmd.c (disconnect_command): New function.
4534 (_initialize_infcmd): Add ``disconnect'' command.
4535 * remote.c (remote_async_detach): Delete.
4536 (remote_detach): Merge remote_async_detach.
4537 (remote_disconnect): New.
4538 (init_remote_ops): Set to_disconnect.
4539 (init_remote_cisco_ops): Likewise.
4540 (init_remote_async_ops): Likewise. Use remote_detach.
4541 * target.c (cleanup_target): Default to_disconnect.
4542 (update_current_target): Inherit to_disconnect.
4543 (target_disconnect, debug_to_disconnect): New functions.
4544 (setup_target_debug): Set to_disconnect.
4545 * target.h (struct target_ops): Add to_disconnect.
4546 (target_disconnect): Add prototype.
4548 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4550 * breakpoint.c (insert_catchpoint): New function.
4551 (insert_breakpoints): Use catch_exceptions to call
4552 insert_catchpoint. Disable catchpoints if they fail to insert.
4554 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4556 * symfile.c (reread_symbols): Clear sym_private.
4558 2003-06-17 Andrew Cagney <cagney@redhat.com>
4560 * trad-frame.h (struct frame_info): Add opaque declaration.
4561 * remote-fileio.h (struct cmd_list_element): Add opaque
4563 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
4566 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
4568 * remote.c (remote_prepare_to_store): Replace call to
4569 deprecated_read_register_bytes with multiple regcache_raw_read
4572 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4574 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
4575 (nto_find_and_open_solib): Likewise.
4576 (nto_init_solib_absolute_prefix): Likewise.
4577 (_initialize_nto_tdep): Fix indentation.
4579 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4581 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
4583 2003-06-17 Kris Warkentin <kewarken@qnx.com>
4585 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
4587 2003-06-17 Jim Blandy <jimb@redhat.com>
4589 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
4591 2003-06-16 Theodore A. Roth <troth@openavr.org>
4593 * avr-tdep.c (avr_extract_return_value): New function.
4594 (avr_gdbarch_init): Set extract_return_value method.
4596 2003-06-16 Andrew Cagney <cagney@redhat.com>
4598 * frame.h (deprecated_get_next_frame_hack): Declare.
4599 * frame.c (legacy_saved_regs_prev_register): Only require
4600 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
4601 there are always saved regs.
4602 (deprecated_generic_get_saved_register): Do not require
4603 DEPRECATED_FRAME_INIT_SAVED_REGS.
4604 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
4605 use frame ID unwind instead.
4606 (deprecated_get_next_frame_hack): New function.
4608 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4610 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
4611 (h8300_push_dummy_call): ...this function. Some minor optimization.
4612 (h8300_push_return_address): Remove.
4613 (h8300_gdbarch_init): Remove calls to
4614 set_gdbarch_deprecated_dummy_write_sp,
4615 set_gdbarch_deprecated_push_arguments and
4616 set_gdbarch_deprecated_push_return_address.
4617 Add call to set_gdbarch_push_dummy_call.
4619 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
4621 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
4622 (E_PSEUDO_EXR_REGNUM): Ditto.
4623 (h8300_is_argument_spill): Check for instructions moving argument
4624 registers into safe registers.
4625 (h8300_skip_prologue): Check for stm instruction to push registers
4626 used for register variables onto stack.
4627 (gdb_print_insn_h8300): Remove.
4628 (h8300_examine_prologue): Add a comment.
4629 (h8300_register_name): Take pseudo registers into account.
4630 (h8300s_register_name): Ditto.
4631 (h8300sx_register_name): Ditto.
4632 (h8300_print_register): Ditto.
4633 (h8300_print_registers_info): Define "nice" printing order.
4634 (h8300_saved_pc_after_call): Take pseudo registers into account.
4635 (h8300_register_type): Ditto. Return type used for remote connection
4636 when requesting real CCR or EXR register, return actual type when
4637 requesting pseudo CCR or EXR.
4638 (h8300_pseudo_register_read): New function.
4639 (h8300_pseudo_register_write): Ditto.
4640 (h8300_dbg_reg_to_regnum): Ditto.
4641 (h8300s_dbg_reg_to_regnum): Ditto.
4642 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
4643 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
4644 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
4645 set_gdbarch_print_insn architecture dependent.
4646 Call set_gdbarch_pseudo_register_read and
4647 set_gdbarch_pseudo_register_write.
4648 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
4650 2003-06-16 Andrew Cagney <cagney@redhat.com>
4652 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
4653 * gdbarch.h, gdbarch.c: Re-generate.
4654 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4655 * s390-tdep.c (s390_gdbarch_init): Update.
4656 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4657 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4658 * mips-tdep.c (mips_gdbarch_init): Update.
4659 * mcore-tdep.c (mcore_gdbarch_init): Update.
4660 * cris-tdep.c (cris_gdbarch_init): Update.
4661 * infcall.c (call_function_by_hand): Update.
4662 * ia64-tdep.c (ia64_push_arguments): Update comment.
4663 * frame.c (legacy_get_prev_frame): Do not assume
4664 SAVE_DUMMY_FRAME_TOS_P.
4665 * dummy-frame.c (find_dummy_frame): Update comment.
4667 2003-06-16 Andrew Cagney <cagney@redhat.com>
4669 * regcache.c (do_cooked_read): Do not use register_valid_p.
4671 2003-06-15 Theodore A. Roth <troth@openavr.org>
4673 * avr-tdep.c (avr_register_type): Remove a blank line.
4674 (avr_scan_prologue): Correct some comments.
4676 2003-06-15 Theodore A. Roth <troth@openavr.org>
4678 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
4680 Properly scan prologues generated by gcc with the -mcall-prologues
4682 Add code to scan -mcall-prologues for mega devices.
4684 2003-06-15 Theodore A. Roth <troth@openavr.org>
4686 * avr-tdep.c (avr_register_byte): Delete function.
4687 (avr_register_raw_size): Delete function.
4688 (avr_register_virtual_size): Delete function.
4689 (avr_register_virtual_type): Delete function.
4690 (avr_register_type): New function.
4691 (avr_address_to_pointer): Remove unused code.
4692 (avr_read_fp): Need to read FP as two separate bytes due to change to
4693 avr_register_type() usage.
4694 (avr_gdbarch_init): Don't set deprecated_register_size.
4695 Don't set deprecated_register_bytes.
4696 Don't set deprecated_register_byte.
4697 Don't set deprecated_register_raw_size.
4698 Don't set deprecated_max_register_raw_size.
4699 Don't set deprecated_register_virtual_size.
4700 Don't set deprecated_max_register_virtual_size.
4701 Don't set deprecated_register_virtual_type.
4702 Set register_type method.
4704 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
4706 * Makefile.in (linux-nat.o): Add rule.
4707 * linux-nat.c: New file.
4708 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
4709 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
4710 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
4711 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
4712 * config/arm/linux.mh (NATDEPFILES): Likewise.
4713 * config/i386/linux.mh (NATDEPFILES): Likewise.
4714 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
4715 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4716 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4717 * config/mips/linux.mh (NATDEPFILES): Likewise.
4718 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4719 * config/s390/s390.mh (NATDEPFILES): Likewise.
4720 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4722 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4724 * i387-tdep.c: Reorder includes, fix some whitespace issues and
4725 replace out-of-date comment.
4727 2003-06-15 Andrew Cagney <cagney@redhat.com>
4729 * rdi-share/host.h (Fail): Change to a varargs function.
4730 * remote-rdi.c (Fail): Update.
4732 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4734 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
4735 (i386_convert_register_p, i386_register_to_value,
4736 i386_register_from_value): Handle types longer than 8 bytes.
4738 2003-06-15 Mark Kettenis <kettenis@gnu.org>
4740 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
4741 Move floating-point code to new function in i387-tdep.c.
4742 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
4743 New functions containing code moved here from i386-tdep.c.
4744 * i387-tdep.h: Add opaque declaration for `struct type'.
4745 (i387_register_to_value, i387_value_to_register): New prototypes.
4746 * x86-64-tdep.c (x86_64_convert_register_p): New function.
4747 (x86_64_init_abi): Set convert_register_p, register_to_value and
4748 value_to_register here.
4750 2003-06-14 Andrew Cagney <cagney@redhat.com>
4752 * mips-tdep.c (mips_register_to_value): Make static.
4753 (mips_value_to_register): Make static.
4754 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
4755 * ia64-tdep.c (ia64_register_raw_size): Make static.
4756 (ia64_register_virtual_size): Make static.
4757 (ia64_register_byte): Make static.
4758 * i387-tdep.c: Include "i387-tdep.h".
4759 (print_387_control_word): Delete function.
4760 (print_387_status_word): Delete function.
4761 (print_387_status_bits): Delete function.
4762 (print_387_control_bits): Delete function.
4763 * Makefile.in (i387-tdep.o): Update dependencies.
4764 * rdi-share/host.h (Fail): Declare.
4765 * remote-rdi.c (Fail): Update to match declaration.
4767 2003-06-14 Andrew Cagney <cagney@redhat.com>
4769 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
4770 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
4771 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
4772 * config/djgpp/fnchange.lst: Delete "remote-array.c".
4773 * README: Delete reference to remote-array.
4774 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
4775 (remote-array.o): Delete target.
4776 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
4777 * remote-array.c: Delete file.
4779 2003-06-14 Andrew Cagney <cagney@redhat.com>
4780 Mark Kettenis <kettenis@gnu.org>
4782 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
4783 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
4784 parameter with "frame".
4785 * gdbarch.h, gdbarch.c: Re-generate.
4786 * frame.h (put_frame_register): Declare.
4787 * frame.c (put_frame_register): New function.
4788 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
4789 (legacy_register_to_value): Rewrite, use "frame" to get the
4791 (legacy_value_to_register): Rewrite, use "frame" to find the
4792 register's location before storing.
4793 * arch-utils.h (legacy_convert_register_p): Update.
4794 (legacy_register_to_value, legacy_value_to_register): Update.
4795 * findvar.c (value_from_register): Rewrite, eliminate use of
4796 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
4797 "frame" to REGISTER_TO_VALUE.
4798 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
4799 lval_reg_frame_relative + lval_register branch of the switch. Do
4800 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
4801 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
4802 I386_EDI_REGNUM): New defines.
4803 (i386_next_regnum, i386_convert_register_p,
4804 i386_register_to_value, i386_value_to_register): New functions.
4805 (i386_register_convertible, i386_register_convert_to_virtual,
4806 i386_convert_to_raw): Remove functions.
4807 (i386_gdbarch_init): Set convert_register_p, register_to_value and
4808 value_to_register instead of register_convertible,
4809 register_convert_to_virtual and register_convert_to_raw.
4810 * mips-tdep.c (mips_convert_register_p): New function.
4811 (mips_value_to_register): Replace mips_register_convert_from_type.
4812 (mips_register_to_value): Replace mips_register_convert_to_type.
4813 (mips_gdbarch_init): Set conver_register_p, value_to_register and
4815 * alpha-tdep.c (alpha_convert_register_p): Update.
4816 (alpha_value_to_register): Update, store the register.
4817 (alpha_register_to_value): Update, fetch the register.
4819 2003-06-14 Theodore A. Roth <troth@openavr.org>
4821 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
4822 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
4823 Don't set deprecated_call_dummy_words.
4824 Remove commented out set_gdbarch_believe_pcc_promotion() call.
4825 Don't set remote_translate_xfer_address.
4826 (avr_io_reg_read_command): Remove commented out debug printf.
4829 2003-06-14 Theodore A. Roth <troth@openavr.org>
4831 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
4832 causes gdb to seg fault.
4834 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
4836 * sparc-nat.c (fetch_inferior_registers): Correct
4837 a reference to "registers".
4839 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
4841 * Makefile.in (exc_request_U_h): Define
4842 (exc_request_S_h): Likewise.
4843 (msg_reply_S_h): Likewise.
4844 (msg_U_h): Likewise.
4845 (notify_S_h): Likewise.
4846 (process_reply_S_h): Likewise.
4847 (gnu-nat.o): Depend on gdb_obstack_h
4848 * gnu-nat.c: Include "gdb_obstack.h".
4850 2003-06-13 Andrew Cagney <cagney@redhat.com>
4852 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
4853 * gdbarch.h, gdbarch.c: Re-generate.
4855 2003-06-13 Andrew Cagney <cagney@redhat.com>
4857 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
4858 when deprecated REGISTER macros can be deleted.
4859 * gdbarch.h, gdbarch.c: Re-generate.
4861 2003-06-13 Jim Blandy <jimb@redhat.com>
4863 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
4864 Linux entry point symbols for _dl_debug_state, too.
4866 2003-06-13 Andrew Cagney <cagney@redhat.com>
4868 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
4869 available, do not use the FP register, and always save the TOS.
4870 * dummy-frame.c (dummy_frame_this_id): Do not assert
4871 SAVE_DUMMY_FRAME_TOS.
4872 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
4873 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
4874 (i386_push_dummy_call): Add 8 to the returned SP.
4875 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
4876 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
4877 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
4878 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
4879 (x86_64_push_dummy_call): Return "sp + 16".
4880 (x86_64_init_abi): Do not set save_dummy_frame_tos.
4881 * alpha-tdep.c (alpha_gdbarch_init): Do not set
4882 save_dummy_frame_tos.
4884 2003-06-13 Jim Blandy <jimb@redhat.com>
4886 * frv-tdep.c (frv_use_struct_convention): Delete static
4887 declaration for function deleted in my change of 2003-06-12.
4889 2003-06-13 Theodore A. Roth <troth@openavr.org>
4891 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
4892 (avr_pointer_to_address): Shift code addrs left 1 bit.
4893 (avr_convert_from_func_ptr_addr): Delete function since operation is
4894 better handled by avr_address_to_pointer and avr_pointer_to_address.
4895 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
4897 2003-06-13 Mark Kettenis <kettenis@gnu.org>
4899 From Kelley Cook <kelleycook@wideopenwest.com>:
4900 * configure.host: Accept i[34567]86 variants.
4901 * configure.tgt: Likewise.
4902 * nlm/configure.in: Likewise.
4903 * nlm/configure: Regenerated.
4905 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
4907 * arm-tdep.c (solib-svr4.h): Dont' include it.
4908 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
4909 * arm-linux-tdep.c: ... here. Make static.
4910 (arm_linux_init_abi): Register it.
4911 (solib-svr4.h): Include it.
4912 * Makefile.in: Update dependencies.
4913 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
4914 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
4916 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4918 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
4919 indicate registers used for return values.
4920 (struct frame_extra_info): Drop args_pointer and locals_pointer.
4921 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
4923 (h8300_init_extra_frame_info): Ditto.
4924 (h8300_frame_locals_address): Removed.
4925 (h8300_frame_args_address): Removed.
4926 (h8300_extract_return_value): Use new regcache structure. Only care
4928 (h8300h_extract_return_value): Same function for 32 bit CPUs.
4929 (h8300_store_return_value): Use new regcache structure. Only care
4931 (h8300h_store_return_value): Same function for 32 bit CPUs.
4932 (h8300_store_struct_return): Removed.
4933 (h8300_extract_struct_value_address): Use new regcache structure.
4934 (h8300h_extract_struct_value_address): Removed.
4935 (h8300_push_dummy_code): New function.
4936 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
4937 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
4938 set_gdbarch_store_return_value architecture dependent.
4939 Call set_gdbarch_push_dummy_code and
4940 set_gdbarch_extract_struct_value_address.
4941 Remove calls to set_gdbarch_frame_args_address,
4942 set_gdbarch_frame_locals_address,
4943 set_gdbarch_deprecated_store_struct_return,
4944 set_gdbarch_deprecated_extract_return_value,
4945 set_gdbarch_deprecated_extract_struct_value_address,
4946 set_gdbarch_deprecated_call_dummy_words and
4947 set_gdbarch_deprecated_sizeof_call_dummy_words.
4949 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
4951 * h8300-tdep.c (h8300_register_byte): Remove.
4952 (h8300h_register_byte): Remove.
4953 (h8300_register_virtual_type): Remove. Substitute by...
4954 (h8300_register_type): New function.
4955 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
4956 (h8300h_extract_struct_value_address): Ditto.
4957 (h8300_gdbarch_init): Drop calls to
4958 set_gdbarch_deprecated_register_byte and
4959 set_gdbarch_deprecated_register_virtual_type.
4960 Add call to set_gdbarch_register_type.
4962 2003-06-13 Andrew Cagney <cagney@redhat.com>
4964 * gdbarch.sh: Update comments on registers.
4965 (deprecated_register_byte): Rename register_byte.
4966 (deprecated_register_raw_size): Rename register_raw_size.
4967 (deprecated_register_virtual_size): Rename register_virtual_size.
4968 (deprecated_register_virtual_type): Rename register_virtual_type.
4969 * gdbarch.h, gdbarch.c: Re-generate.
4970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4971 * vax-tdep.c (vax_gdbarch_init): Update.
4972 * v850-tdep.c (v850_gdbarch_init): Update.
4973 * sparc-tdep.c (sparc_gdbarch_init): Update.
4974 * sh-tdep.c (sh_gdbarch_init): Update.
4975 * s390-tdep.c (s390_gdbarch_init): Update.
4976 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4977 * ns32k-tdep.c: Update.
4978 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4979 * mips-tdep.c (mips_gdbarch_init): Update.
4980 * mcore-tdep.c (mcore_gdbarch_init): Update.
4981 * m68k-tdep.c (m68k_gdbarch_init): Update.
4982 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4983 * ia64-tdep.c (ia64_gdbarch_init): Update.
4984 * hppa-tdep.c (hppa_gdbarch_init): Update.
4985 * h8300-tdep.c (h8300_gdbarch_init): Update.
4986 * frv-tdep.c (frv_gdbarch_init): Update.
4987 * cris-tdep.c (cris_gdbarch_init): Update.
4988 * avr-tdep.c (avr_gdbarch_init): Update.
4989 * alpha-tdep.c (alpha_gdbarch_init): Update.
4990 * arm-tdep.c (arm_gdbarch_init): Update.
4992 2003-06-13 Andrew Cagney <cagney@redhat.com>
4994 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
4995 mips_o32_use_struct_convention with always_use_struct_convention.
4997 2003-06-12 David Carlton <carlton@kealia.com>
4999 * cp-namespace.c (cp_set_block_scope): Comment out
5000 processing_has_namespace_info branch.
5002 2003-06-12 Jim Blandy <jimb@redhat.com>
5004 Recognize and skip 64-bit PowerPC Linux linkage functions.
5005 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
5006 insn_pattern, insns_match_pattern, d_field, ds_field): New
5007 functions, macros, and types for working with PPC instructions.
5008 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
5009 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
5010 ppc64_skip_trampoline_code): New functions, variables, and macros
5011 for recognizing and skipping linkage functions.
5012 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
5013 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
5015 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
5016 register offsets for both the 32- and 64-bit interfaces.
5018 Actually finish the job started by my change of 2003-05-29.
5019 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
5020 other #definition of this.
5021 (ppc_linux_skip_trampoline_code): Remove declaration.
5022 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
5024 (ppc_linux_init_abi): Register it as the skip_trampoline_code
5027 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
5028 'long' on ppc64-*-linux*.
5030 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
5031 isn't #defined, assume the register doesn't exist: act as if
5032 tdep->ppc_mq_regnum were -1.
5034 * configure.host, configure.tgt: Add entries for
5035 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
5037 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
5040 * arch-utils.c (always_use_struct_convention): New function.
5041 * arch-utils.h (always_use_struct_convention): New prototype.
5042 * alpha-tdep.c (alpha_use_struct_convention): Delete.
5043 (alpha_gdbarch_init): Register always_use_struct_convention,
5044 instead of alpha_use_struct_convention.
5045 * cris-tdep.c (cris_use_struct_convention): Delete.
5046 (cris_gdbarch_init): Register always_use_struct_convention,
5047 instead of cris_use_struct_convention.
5048 * frv-tdep.c (frv_use_struct_convention): Delete.
5049 (frv_gdbarch_init): Register always_use_struct_convention,
5050 instead of frv_use_struct_convention.
5051 * h8300-tdep.c (h8300_use_struct_convention): Delete.
5052 (h8300_gdbarch_init): Register always_use_struct_convention,
5053 instead of h8300_use_struct_convention.
5054 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
5055 (mips_o32_gdbarch_init): Register always_use_struct_convention,
5056 instead of mips_o32_use_struct_convention.
5058 2003-06-12 Andrew Cagney <cagney@redhat.com>
5060 * wince.c: Include "mips-tdep.h".
5061 * mips-tdep.h (mips_next_pc): Declare.
5062 * mcore-tdep.c: Make more local functions static.
5063 * Makefile.in (wince.o): Update dependencies.
5065 2003-06-12 David Carlton <carlton@kealia.com>
5067 * symtab.c (lookup_symbol_aux_minsyms): Replace
5068 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
5069 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
5070 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
5071 SYMBOL_NATURAL_NAME.
5073 2003-06-12 Andreas Schwab <schwab@suse.de>
5075 * Makefile.in (tuiDisassem.o): Update dependencies.
5077 2003-06-12 David Carlton <carlton@bactrian.org>
5079 * symtab.h: Delete declaration of make_symbol_overload_list.
5080 Add declaration of lookup_partial_symbol.
5081 * symtab.c (remove_params): Move to cp-support.c.
5082 (overload_list_add_symbol, make_symbol_overload_list)
5083 (sym_return_val_size, sym_return_val_index): Ditto.
5084 (lookup_partial_symbol): Make extern.
5085 * cp-support.h: Add declaration of make_symbol_overload_list.
5086 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
5087 symtab.h, and block.h.
5088 (remove_params): Move here from symtab.c.
5089 (overload_list_add_symbol, make_symbol_overload_list)
5090 (sym_return_val_size, sym_return_val_index): Ditto.
5091 * valops.c: Include cp-support.h.
5092 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
5093 frame_h, and block_h.
5094 (valops.o): Depend on cp_support_h.
5096 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
5098 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
5099 substitute by NUM_REGS throughout.
5100 (h8300_register_name): Only care for H8/300 and H8/300H registers.
5101 (h8300s_register_name): New function for H8S registers.
5102 (h8300sx_register_name): Ditto for H8SX registers.
5103 (h8300_print_register): Revise register printing, avoid depending
5105 (h8300_register_byte): Only care for H8/300 registers.
5106 (h8300h_register_byte): New function for any other architecture.
5107 (h8300_register_raw_size): Remove.
5108 (h8300_register_virtual_type): Revise to return actually useful
5110 (h8300_extract_struct_value_address): Only care for H8/300 registers.
5111 (h8300h_extract_struct_value_address): New function for any other
5113 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
5114 set_gdbarch_register_name, set_gdbarch_register_byte,
5115 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
5116 Remove calls to set_gdbarch_deprecated_register_size,
5117 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
5118 set_gdbarch_deprecated_max_register_raw_size,
5119 set_gdbarch_register_virtual_size and
5120 set_gdbarch_deprecated_max_register_virtual_size entirely.
5121 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
5122 set_gdbarch_long_double_bit.
5124 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5126 * doublest.c (convert_doublest_to_floatformat): When dealing
5127 with the implied integer bit, only alter mant_bits if we are
5128 processing a full 32 bits of mantissa.
5130 2003-06-11 David Carlton <carlton@bactrian.org>
5132 * dictionary.h: New.
5133 * dictionary.c: New.
5134 * block.h: Add opaque declaration for struct dictionary.
5135 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
5137 (BLOCK_DICT): New macro.
5138 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
5139 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
5141 (ALL_BLOCK_SYMBOLS): Update definition.
5142 * Makefile.in (SFILES): Add dictionary.c.
5143 (dictionary_h): New.
5144 (COMMON_OBS): Add dictionary.o.
5145 (dictionary.o): New.
5146 (ada-lang.o): Depend on dictionary_h.
5147 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
5148 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
5149 (mi-cmd-stack.o): Ditto.
5150 (gdbtk-cmds.o): Update dependencies.
5151 (gdbtk-stack.o): Ditto.
5152 * ada-lang.c: Include dictionary.h.
5153 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
5154 (fill_in_ada_prototype, debug_print_block): Ditto.
5155 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
5156 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
5158 * mdebugread.c: Include dictionary.h.
5159 (struct parse_stack): Delete 'maxsyms' member.
5160 (parse_symbol): Update calls to new_block. Delete calls to
5161 shrink_block. Use dictionary methods.
5162 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
5163 Update calls to new_symtab. Don't maintain maxsyms data.
5164 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
5165 (add_symbol): Just call dict_add_symbol.
5166 (new_symtab): Delete 'maxsyms' argument.
5167 (new_symtab): Update calls to new_block.
5168 (new_block): Delete 'maxsyms' argument; add 'function' argument.
5169 (shrink_block): Delete function.
5170 (fixup_sigtramp): Update call to new_block. Add symbol via
5172 * jv-lang.c: Include dictionary.h.
5173 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
5174 appropriately. Set class_symtab->free_func. Make sure the
5175 blockvector is big enough to hold two blocks.
5176 (add_class_symtab_symbol): Use dictionary methods.
5177 (free_class_block): New function.
5178 (type_from_class): Replace explicit iteration by
5180 * symtab.h (struct symtab): Replace 'free_ptr' method by
5182 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
5184 * dwarfread.c (psymtab_to_symtab_1): Delete call to
5186 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
5187 Include dictionary.h.
5188 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
5189 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
5191 * objfiles.c: Include dictionary.h.
5192 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
5193 * buildsym.c: Include dictionary.h.
5194 (finish_block): Use dictionary methods.
5195 (end_symtab): Set free_func to NULL, not free_ptr.
5196 * tracepoint.c: Include dictionary.h.
5197 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
5198 (scope_info): Ditto.
5199 * stack.c: Include dictionary.h.
5200 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
5201 (print_block_frame_labels, print_frame_arg_vars)
5202 (print_frame_args): Ditto.
5203 * symmisc.c (free_symtab_block): Use dictionary methods.
5204 (dump_symtab): Ditto.
5205 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
5206 Include dictionary.h.
5207 * symfile.h: Delete declarations of sort_block_syms,
5209 * symfile.c (sort_block_syms): Delete.
5210 (sort_symtab_syms): Delete.
5211 * symtab.c: Include dictionary.h.
5212 (lookup_block_symbol): Use dictionary iterators.
5213 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
5214 (search_symbols, make_symbol_completion_list): Ditto.
5215 (make_symbol_overload_list): Ditto.
5216 * valops.c (value_of_local): Use dict_empty.
5217 Include dictionary.h.
5219 2003-06-11 J. Brobecker <brobecker@gnat.com>
5221 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
5223 2003-06-11 David Carlton <carlton@bactrian.org>
5225 * block.h (BLOCK_SHOULD_SORT): Delete.
5226 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
5228 * ada-lang.c (ada_add_block_symbols): Ditto.
5229 * symfile.c (sort_block_syms): Delete.
5230 (sort_symtab_syms): Ditto.
5231 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
5233 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
5234 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
5235 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
5236 * dwarfread.c (psymtab_to_symtab_1): Ditto.
5237 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
5238 * mdebugread.c (psymtab_to_symtab_1): Ditto.
5239 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
5241 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
5243 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
5246 2003-06-11 Andrew Cagney <cagney@redhat.com>
5248 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
5249 REGISTER_CONVERTIBLE.
5250 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
5251 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
5252 * gdbarch.h, gdbarch.c: Re-generate.
5253 * arch-utils.h (deprecated_register_convertible_not): Rename
5254 generic_register_convertible_not.
5255 * arch-utils.c (deprecated_register_convertible_not): Rename
5256 generic_register_convertible.
5257 (legacy_convert_register_p, legacy_register_to_value): Update.
5258 * sh-tdep.c (sh64_push_arguments): Update.
5259 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
5260 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
5261 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
5262 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
5263 * arch-utils.c (legacy_value_to_register): Update.
5264 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5265 (rs6000_register_convert_to_raw): Make parameter "from" const.
5266 * mips-tdep.c (mips_gdbarch_init): Update.
5267 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
5268 * infcmd.c (default_print_registers_info): Update.
5269 * ia64-tdep.c (ia64_gdbarch_init): Update.
5270 (ia64_register_convert_to_raw): Make parameter "from" const.
5271 * i386-tdep.c (i386_gdbarch_init): Update.
5272 (i386_register_convert_to_raw): Update.
5274 2003-06-11 Andrew Cagney <cagney@redhat.com>
5276 * remote-fileio.c: Include "remote-fileio.h".
5277 * Makefile.in (remote-fileio.o): Update dependencies.
5278 (remote_fileio_h): Fix typo.
5280 2003-06-11 Andrew Cagney <cagney@redhat.com>
5282 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
5283 (xstormy16_save_dummy_frame_tos): Make static.
5284 (_initialize_xstormy16_tdep): Add declaration.
5285 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5286 * v850-tdep.c: Make local functions static.
5287 (_initialize_v850_tdep): Add declaration.
5288 * sparc-tdep.c: Make local functions static.
5289 (_initialize_sparc_tdep): Add declaration.
5290 * sh-tdep.c: Make local functions static.
5291 (_initialize_sh_tdep): Add declaration.
5292 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
5293 * s390-tdep.c: Make local functions static.
5294 (_initialize_s390_tdep): Add declaration.
5295 * dbxread.c (find_stab_function_addr): Make static.
5296 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
5297 * ocd.c (_initialize_remote_ocd): Add declaration.
5298 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
5299 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
5300 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
5301 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
5302 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5303 * remote-array.c (_initialize_array): Add declaration.
5304 (_initialize_remote_monitors): Add declaration.
5305 * remote-mips.c: Make local functions static.
5306 (_initialize_remote_mips): Add declaration.
5307 * mcore-tdep.c: Make all local functions static.
5308 (_initialize_mcore_tdep): Add declaration.
5309 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
5310 * abug-rom.c (_initialize_abug_rom): Add declaration.
5311 * rom68k-rom.c (_initialize_rom68k): Add declaration.
5312 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
5313 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5314 * remote-est.c (_initialize_est): Add declaration.
5315 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5316 (m68hc11_call_dummy_address): Make static.
5317 * ia64-tdep.c: Make local functions static.
5318 (_initialize_ia64_tdep): Add declaration.
5319 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
5320 * monitor.c (monitor_wait_filter): Make static.
5321 (_initialize_remote_monitors): Add declaration.
5322 * remote-hms.c (_initialize_remote_hms): Add declaration.
5323 * remote-e7000.c (fetch_regs_from_dump): Make static.
5324 (expect_n): Make static.
5325 (_initialize_remote_e7000): Add declaration.
5326 * ser-e7kpc.c: Always include "defs.h".
5327 (_initialize_ser_e7000pc): Add declaration.
5328 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5329 * cris-tdep.c: Make all but one function static.
5330 (_initialize_cris_tdep): Add declaration.
5331 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5332 * solib.c (update_solib_list): Make static.
5333 (_initialize_solib): Add declaration.
5334 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
5335 (_initialize_avr_tdep): Add declaration.
5336 * remote-rdi.c (voiddummy): Make static.
5337 (_initialize_remote_rdi): Add declaration.
5338 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5339 * remote-rdp.c (send_rdp): Make static.
5340 (_initialize_remote_rdp): Add declaration.
5341 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5343 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
5345 * remote-fileio.c: Make ari happy.
5347 2003-06-10 J. Brobecker <brobecker@gnat.com>
5349 * rs6000-nat.c (child_xfer_memory): Compute the right address when
5350 fetching the trailing bytes of the buffer we are about to write.
5352 2003-06-10 Andrew Cagney <cagney@redhat.com>
5354 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
5355 * Makefile.in (remote-fileio.o): Update dependencies.
5356 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
5357 include <setjmp.h>, or <sys/types.h> conditional on USG.
5358 (remote_fio_jmp_buf): Delete global variable.
5360 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
5361 Martin M. Hunt <hunt@redhat.com>
5363 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
5364 (SFILES): Add remote-fileio.c.
5365 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
5366 dependencies for building remote.o.
5367 * remote-fileio.c: New file implementing the remote File-I/O protocol.
5368 * remote-fileio.h: New header file defining remote File-I/O interface.
5369 * remote.c (remote_write_bytes, remote_read_bytes): Remove
5370 static storage class.
5371 (remote_wait, remote_async_wait): Call remote_fileio_request() on
5373 (_initialize_remote): Call initialize_remote_fileio().
5374 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
5375 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5376 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
5377 (captured_main): Initialize new ui_files.
5378 * ui-file.c: Add read and fgets input functions.
5379 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
5380 (null_file_read): New function.
5381 (ui_file_read): New function.
5382 (set_ui_file_read): New function.
5383 (stdio_file_read): New function.
5384 * ui-file.h: New type ui_file_read_ftype.
5385 (set_ui_file_read): Declare.
5386 (ui_file_read): Declare.
5388 2003-06-09 Andrew Cagney <cagney@redhat.com>
5390 * frame.h (deprecated_unwind_get_saved_register): Rename
5391 generic_unwind_get_saved_register, update comments.
5392 * mips-tdep.c (mips_get_saved_register): Update.
5393 * frame.c (deprecated_unwind_get_saved_register): Update.
5395 2003-06-09 Andrew Cagney <cagney@redhat.com>
5397 * vax-tdep.c (vax_frame_locals_address): Delete function.
5398 (vax_gdbarch_init): Do not set frame_locals_address.
5399 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
5400 (m68hc11_gdbarch_init): Do not set frame_locals_address.
5401 * s390-tdep.c (s390_frame_args_address): Delete function.
5402 (s390_gdbarch_init): Do not set frame_args_address or
5403 frame_locals_address.
5404 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
5405 (ns32k_gdbarch_init): Do not set frame_locals_address.
5406 * hppa-tdep.c (hppa_frame_args_address): Delete function.
5407 (hppa_frame_locals_address): Delete function.
5408 (hppa_gdbarch_init): Do not set frame_args_address, or
5409 frame_locals_address.
5410 * arm-tdep.c (arm_frame_args_address): Delete.
5411 (arm_frame_locals_address): Delete.
5412 (arm_gdbarch_init): Do not set frame_args_address, or
5413 frame_locals_address.
5415 2003-06-09 Andrew Cagney <cagney@redhat.com>
5417 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
5418 * gdbarch.h, gdbarch.c: Re-generate.
5419 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
5420 * arch-utils.c (frame_num_args_unknown): Delete function.
5421 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
5422 (frame_info): Use FRAME_NUM_ARGS_P.
5423 * arm-tdep.c (arm_frame_num_args): Delete function.
5424 (arm_gdbarch_init): Do not set frame_num_args.
5425 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
5426 * hppa-tdep.c (hppa_frame_num_args): Delete function.
5427 (hppa_gdbarch_init): Do not set frame_num_args.
5428 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
5429 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
5430 frame_num_args to default frame_num_args_unknown.
5431 * v850-tdep.c (v850_gdbarch_init): Ditto.
5432 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5433 * sh-tdep.c (sh_gdbarch_init): Ditto.
5434 * s390-tdep.c (s390_gdbarch_init): Ditto.
5435 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5436 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5437 * mips-tdep.c (mips_gdbarch_init): Ditto.
5438 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5439 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5441 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5442 * i386-tdep.c (i386_gdbarch_init): Ditto.
5443 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5444 * frv-tdep.c (frv_gdbarch_init): Ditto.
5445 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5446 * cris-tdep.c (cris_gdbarch_init): Ditto.
5447 * avr-tdep.c (avr_gdbarch_init): Ditto.
5448 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5450 2003-06-09 Andrew Cagney <cagney@redhat.com>
5452 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
5453 (print_frame_args): Moved to "stack.c".
5454 * stack.c: Include "gdb_assert.h".
5455 (print_frame_nameless_args): Moved from "printcmd.c", made static.
5456 (print_frame_args): Moved from "printcmd.c".
5457 * frame.h (print_frame_args): Delete declaration.
5458 * Makefile.in (stack.o): Update dependencies.
5460 2003-06-08 Andrew Cagney <cagney@redhat.com>
5462 * frame.c (get_prev_frame): Remove reference to
5463 frame_args_address_correct in comments.
5464 * frame-base.c (default_frame_args_address): Delete code
5465 conditional on FRAME_ARGS_ADDRESS_CORRECT.
5466 * vax-tdep.c (vax_frame_args_address_correct): Delete.
5467 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
5468 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
5469 (vax_frame_args_address_correct): Delete declaration.
5471 2003-06-08 Andrew Cagney <cagney@redhat.com>
5473 * gdbarch.sh (UNWIND_SP): Add.
5474 * gdbarch.h, gdbarch.c: Re-generate.
5475 * frame.c (frame_sp_unwind): New function.
5476 (get_frame_sp): New function.
5477 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
5478 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
5479 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
5481 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
5482 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
5484 2003-06-08 Andrew Cagney <cagney@redhat.com>
5486 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
5489 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
5490 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
5491 * config/m68k/tm-sun3.h: Update.
5492 * config/m68k/tm-m68klynx.h: Update.
5493 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
5495 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
5496 trad_frame". Update comments.
5497 * d10v-tdep.c (struct d10v_unwind_cache): Update.
5498 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
5499 (trad_frame_register_value, trad_frame_prev_register): Update.
5501 2003-06-08 Andrew Cagney <cagney@redhat.com>
5503 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
5504 from GCC's acinclude.m4.
5505 * configure.in: Check for getopt's delcaration.
5506 * aclocal.m4, config.in, configure: Re-generate.
5507 * main.c (error_init): Delete declaration.
5508 * defs.h (error_init): Declare.
5509 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
5510 (rs6000_convert_from_func_ptr_addr): Make static.
5511 (_initialize_rs6000_tdep): Add declaration.
5512 * cli/cli-cmds.c (dont_repeat): Delete declaration.
5513 (show_commands, set_verbose, show_history): Delete declaration.
5514 * top.h (set_verbose): Add declaration.
5515 (show_history, set_history, show_commands): Add declaration.
5516 (do_restore_instream_cleanup): Add declaration.
5517 * objc-lang.c (specialcmp): Make static.
5518 (print_object_command): Make static.
5519 (find_objc_msgsend): Make static.
5520 (find_objc_msgcall_submethod_helper): Make static.
5521 (find_objc_msgcall_submethod): Make static.
5522 (_initialize_objc_language): Add declaration.
5523 (find_implementation_from_class): Make static.
5524 (find_implementation): Make static.
5525 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
5526 * objc-lang.h (lookup_struct_typedef): Add declaration.
5527 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5528 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
5529 (do_restore_user_call_depth): Make static.
5530 (do_restore_instream_cleanup): Delete declaration.
5531 (dont_repeat): Delete declaration.
5532 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
5533 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5534 * reggroups.c (_initialize_reggroup): Add declaration.
5535 * cp-support.c (_initialize_cp_support): Add declaration.
5536 * cp-abi.c (_initialize_cp_abi): Add declaration.
5537 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
5538 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
5539 (_initialize_gnu_v3_abi): Add declaration.
5540 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
5541 (_initialize_gnu_v2_abi): Add declaration.
5542 * frame-base.c (_initialize_frame_base): Add declaration.
5543 * doublest.c (floatformat_from_length): Make static.
5544 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5545 * frame.c (create_sentinel_frame): Make static.
5546 (_initialize_frame): Add declaration.
5547 * top.c (do_catch_errors): Make static.
5548 (gdb_rl_operate_and_get_next_completion): Make static.
5549 * typeprint.c: Include "typeprint.h".
5550 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
5551 (sentinel_frame_this_id): Make static.
5552 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5553 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
5554 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
5555 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
5556 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
5557 * maint.c (maintenance_print_architecture): Make static.
5558 * signals/signals.c (_initialize_signals): Add declaration.
5559 * std-regs.c (_initialize_frame_reg): Add declaration.
5560 * jv-exp.y (push_variable): ISO C definition.
5561 (push_qualified_expression_name): Ditto.
5562 * memattr.c (_initialize_mem): Add declaration.
5563 * remote.c (remote_check_watch_resources): Make static.
5564 (remote_stopped_by_watchpoint): Make static.
5565 (remote_stopped_data_address): Make static.
5566 * d10v-tdep.c (nr_dmap_regs): Make static.
5567 (a0_regnum): Make static.
5568 (d10v_frame_unwind_cache): Make static.
5569 (d10v_frame_p): Make static.
5570 * osabi.c (show_osabi): Make static.
5571 (_initialize_gdb_osabi): Add extern declaration.
5572 * gdbtypes.c (make_qualified_type): Make static.
5573 (safe_parse_type): Make static.
5574 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
5575 * macrotab.c (macro_bcache_free): Make static.
5576 * interps.c (interp_set_quiet): Make static.
5577 (interpreter_exec_cmd): Make static.
5578 * stack.h (select_frame_command): New file.
5579 * stack.c: Include "stack.h".
5580 (select_frame_command_wrapper): Delete function.
5581 (select_frame_command): Make global.
5582 * infcall.c: Include "infcall.h".
5583 * linespec.c: Include "linespec.h".
5584 * symfile.c (sections_overlap): Make static.
5585 * cp-support.h (cp_initialize_namespace): ISO C declaration.
5586 * charset.c (_initialize_charset): Add missing prototype.
5587 * regcache.c (init_legacy_regcache_descr): Make static.
5588 (do_regcache_xfree): Make static.
5589 (regcache_xfer_part): Make static.
5590 (_initialize_regcache): Add missing prototype.
5591 * breakpoint.c (parse_breakpoint_sals): Make static.
5592 (breakpoint_sals_to_pc): Make static.
5593 * interps.h (clear_interpreter_hooks): ISO C declaration.
5594 * Makefile.in (stack_h): Define.
5595 (stack.o, typeprint.o, mi-main.o): Update dependencies.
5596 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
5598 2003-06-08 Andrew Cagney <cagney@redhat.com>
5600 * Makefile.in (d10v-tdep.o): Update dependencies.
5601 (SFILES): Add trad-frame.c.
5602 (trad_frame_h): Define.
5603 (COMMON_OBS): Add trad-frame.o.
5604 (trad-frame.o): Specify dependencies.
5605 * d10v-tdep.c: Include "trad-frame.h".
5606 (saved_regs_unwinder): Delete function.
5607 (d10v_frame_prev_register): Use trad_frame_prev_register.
5608 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
5609 trad_frame", delete "regs" and "prev_sp".
5610 (prologue_find_regs): Use trad-frame.
5611 * trad-frame.h, trad-frame.c: New files.
5613 2003-06-08 Mark Kettenis <kettenis@gnu.org>
5615 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5617 2003-06-07 Adam Fedor <fedor@gnu.org>
5619 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
5620 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5621 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
5622 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
5623 resolve_msgsend_super, resolve_msgsend_super_stret):
5626 2003-06-07 Andrew Cagney <cagney@redhat.com>
5628 * symfile.h: Re-indent, clean up comments.
5630 2003-06-07 Andrew Cagney <cagney@redhat.com>
5632 * inferior.h (deprecated_write_sp): Replace
5633 generic_target_write_sp.
5634 * regcache.c (deprecated_write_sp): Replace
5635 generic_target_write_sp.
5636 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5637 * vax-tdep.c (vax_gdbarch_init): Update.
5638 * v850-tdep.c (v850_gdbarch_init): Update.
5639 * sparc-tdep.c (sparc_gdbarch_init): Update.
5640 * sh-tdep.c (sh_gdbarch_init): Update.
5641 * s390-tdep.c (s390_gdbarch_init): Update.
5642 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5643 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5644 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5645 * mcore-tdep.c (mcore_gdbarch_init): Update.
5646 * m68k-tdep.c (m68k_gdbarch_init): Update.
5647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5648 * ia64-tdep.c (ia64_gdbarch_init): Update.
5649 * h8300-tdep.c (h8300_gdbarch_init): Update.
5650 * frv-tdep.c (frv_gdbarch_init): Update.
5651 * cris-tdep.c (cris_gdbarch_init): Update.
5652 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
5654 2003-06-07 Andrew Cagney <cagney@redhat.com>
5656 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
5657 Assert that PC_REGNUM is valid.
5658 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
5660 2003-06-07 Andrew Cagney <cagney@redhat.com>
5662 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
5663 * gdbarch.h, gdbarch.c: Regenerate.
5664 * mn10300-tdep.c: Include "gdb_assert.h".
5665 (mn10300_read_fp): New function.
5666 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
5667 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
5668 * ia64-tdep.c: Include "gdb_assert.h".
5669 (ia64_read_fp): New function.
5670 (ia64_gdbarch_init): Set deprecated_target_read_fp to
5671 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
5672 * regcache.c (generic_target_read_sp): Delete function.
5673 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
5674 * inferior.h (generic_target_read_sp): Delete declaration.
5675 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
5676 generic_target_read_sp.
5677 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5678 * sparc-tdep.c (sparc_gdbarch_init): Ditto
5679 * sh-tdep.c (sh_gdbarch_init): Ditto.
5680 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5681 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
5683 2003-06-07 Andrew Cagney <cagney@redhat.com>
5685 * gdbarch.sh: Comment each field of startup_gdbarch.
5686 * gdbarch.h, gdbarch.c: Re-generate.
5688 2003-06-07 Andrew Cagney <cagney@redhat.com>
5690 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
5691 * gdbarch.h, gdbarch.c: Re-generate.
5692 * regcache.c: Update comments on read_pc et.al.
5693 (generic_target_read_pc): Delete function.
5694 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
5695 * inferior.h (generic_target_read_pc): Delete declaration.
5696 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
5697 generic_target_read_pc.
5698 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5699 * sh-tdep.c (sh_gdbarch_init): Ditto.
5700 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5701 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5703 2003-06-07 Andrew Cagney <cagney@redhat.com>
5705 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
5706 "index" with "special_local_sect". Use strcmp instead of STREQ.
5707 Append period to coments.
5709 2003-06-06 Mark Mitchell <mark@codesourcery.com>
5711 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
5712 (elfstab_offset_sections): Likewise.
5713 * gdb-stabs.h (stab_section_info): Likewise.
5714 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
5715 * objfiles.c (objfile_relocate): Likewise.
5716 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
5717 * remote.c (get_offsets): Likewise.
5718 (remote_cisco_objfile_relocate): Likewise.
5719 * somread.c (som_symfile_offsets): Likewise.
5720 * symfile.c (alloc_section_addr_info): New function.
5721 (build_section_addr_info_from_section_tab): Use it.
5722 (free_section_addr_info): Adjust.
5723 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
5724 (syms_from_objfile): Allocate local_addr dynamically.
5725 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
5727 (add_symbol_file_command): Allocate sect_opts dynamically.
5728 (reread_symbols): Avoid use of SECT_OFF_MAX.
5729 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
5730 (alloc_section_addr_info): Declare it.
5731 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
5732 * win32-nat.c (solib_symbols_add): Allocate section_addrs
5734 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
5736 2003-06-06 Andrew Cagney <cagney@redhat.com>
5738 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
5739 (d10v_frame_unwind_cache): Do not set "return_pc".
5741 2003-06-06 Michael Snyder <msnyder@redhat.com>
5743 * h8300-tdep.c: Make tidy (long lines).
5745 2003-06-06 Michal Ludvig <mludvig@suse.cz>
5747 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
5748 to regcache_collect().
5750 2003-06-05 J. Brobecker <brobecker@gnat.com>
5752 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
5753 pc_in_sigtramp multiarch method.
5754 (hppa_hpux_som_init_abi): Use it.
5755 (hppa_hpux_elf_init_abi): Likewise.
5756 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
5757 macro has been multiarched.
5758 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
5759 macro here, as hppa64 isn't multiarched yet.
5761 2003-06-05 Andrew Cagney <cagney@redhat.com>
5763 * Makefile.in (value_h): Add $(frame_h).
5764 * value.h: Include "frame.h".
5765 (struct value): Replace "frame_addr" with "frame_id".
5766 (VALUE_FRAME_ID): Replace VALUE_FRAME.
5767 * values.c (allocate_value): Use VALUE_FRAME_ID.
5768 (value_copy): Use VALUE_FRAME_ID.
5769 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
5770 * valops.c (value_assign): Update. Use frame_find_by_id.
5772 2003-06-05 Michal Ludvig <mludvig@suse.cz>
5774 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
5777 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
5779 * thread-db.c (check_event): For create/death event breakpoints,
5780 loop through all messages to ensure that we read the message
5781 corresponding to the breakpoint we are at.
5783 2003-06-04 Michael Snyder <msnyder@redhat.com>
5785 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
5787 2003-06-04 Mark Kettenis <kettenis@gnu.org>
5789 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
5790 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
5791 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
5792 when handling .eh_frame sections.
5794 2003-06-04 J. Brobecker <brobecker@gnat.com>
5796 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
5797 prepare_to_proceed procedure instead of the hppa-specific one.
5798 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
5800 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
5802 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
5803 * config.in: Regenerated.
5804 * configure.in: Add test for syscall function and check for
5805 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
5806 * configure: Regenerated.
5807 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
5809 (kill_lwp): New function that uses tkill syscall or
5810 uses kill, depending on whether threading model is nptl or not.
5811 All callers of kill() changed to use kill_lwp().
5812 (lin_lwp_wait): Make special check when WIFEXITED occurs to
5813 see if all threads have already exited in the nptl model.
5814 (stop_and_resume_callback): New callback function used by the
5815 lin_lwp_wait thread exit handling code.
5816 (stop_wait_callback): Check for threads already having exited and
5817 delete such threads fromt the lwp list when discovered.
5818 (stop_callback): Don't assert retcode of kill call.
5820 Roland McGrath <roland@redhat.com>
5821 * i386-linux-nat.c (ps_get_thread_area): New function needed by
5824 2003-06-03 Richard Henderson <rth@redhat.com>
5826 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
5827 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
5828 (alpha_sigtramp_frame_prev_register): Likewise.
5829 (alpha_heuristic_frame_prev_register): Likewise.
5830 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
5832 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
5833 alpha-specific register id names.
5834 (alpha_mdebug_frame_unwind_cache): Likewise.
5835 (alpha_mdebug_frame_prev_register): Likewise.
5837 2003-06-03 Richard Henderson <rth@redhat.com>
5839 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
5840 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
5841 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
5842 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
5844 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
5845 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5846 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5848 * alpha-linux-tdep.c: Remove unnecessary includes.
5849 * Makefile.in (alpha-linux-tdep.o): Update.
5851 2003-06-03 Richard Henderson <rth@redhat.com>
5853 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
5854 (alphabsd_fill_fpreg): Likewise.
5856 2003-06-03 J. Brobecker <brobecker@gnat.com>
5858 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
5859 references to struct frame_info fields by calls to the equivalent
5860 accessors. Necessary now that frame_info is opaque.
5862 2003-06-03 J. Brobecker <brobecker@gnat.com>
5864 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
5865 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5866 structure, field no longer exists.
5868 2003-06-03 J. Brobecker <brobecker@gnat.com>
5870 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5871 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
5873 2003-06-03 J. Brobecker <brobecker@gnat.com>
5875 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
5876 references to struct frame_info fields by calls to the equivalent
5877 accessors. Necessary now that frame_info is opaque.
5879 2003-06-03 J. Brobecker <brobecker@gnat.com>
5881 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
5882 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
5883 structure, field no longer exists.
5885 2003-06-03 Theodore A. Roth <troth@openavr.org>
5887 * remote.c (init_remote_state): Compute sizeof_g_packet by
5888 accumulation of the size of all registers instead of blindly using
5889 DEPRECATED_REGISTER_BYTES.
5891 2003-06-03 Michael Snyder <msnyder@redhat.com>
5893 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
5894 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
5897 2003-06-03 J. Brobecker <brobecker@gnat.com>
5899 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
5900 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
5902 2003-06-03 Andrew Cagney <cagney@redhat.com>
5904 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
5905 (sparc_convert_to_raw): Delete function.
5906 (sparc_gdbarch_init): Do not set register_convert_to_raw or
5907 register_convert_to_virtual.
5909 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
5911 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
5912 layer if not dealing with a statically-linked threaded program.
5914 2003-06-03 Kris Warkentin <kewarken@qnx.com>
5916 * solib.c (solib_open): Update comment to reflect actual search order.
5918 2003-06-03 Andrew Cagney <cagney@redhat.com>
5920 * frame.c (get_frame_memory_signed): New function.
5921 (get_frame_memory, get_frame_memory_unsigned): New function.
5922 (get_frame_arch): New function.
5923 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
5924 (get_frame_memory, get_frame_unsigned_memory): Declare.
5925 * d10v-tdep.c (d10v_frame_unwind_cache): Use
5926 get_frame_memory_unsigned and get_frame_arch.
5927 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
5929 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
5931 * MAINTAINERS (write after approval): Add myself.
5933 2003-06-03 Jim Blandy <jimb@redhat.com>
5935 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
5936 elements of gregset_t are 64 bits each, but access registers
5937 are still 32 bits, so they're packed two per gregset_t
5938 element. Unpack/pack them properly.
5940 2003-06-02 David Carlton <carlton@bactrian.org>
5942 * linespec.c (find_methods): Break out code into
5943 add_matching_methods and add_constructors.
5944 (add_matching_methods): New.
5945 (add_constructors): Ditto.
5947 2003-06-02 Andrew Cagney <cagney@redhat.com>
5949 * sparc-tdep.c (sparc_print_registers): Delete call to
5950 REGISTER_CONVERTIBLE.
5951 (sparc_gdbarch_init): Do not set register_convertible.
5952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5953 * frv-tdep.c (frv_gdbarch_init): Ditto.
5954 * cris-tdep.c (cris_gdbarch_init): Ditto.
5956 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
5958 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
5959 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
5960 (syms_from_objfile): Ditto.
5962 2003-06-03 Andreas Schwab <schwab@suse.de>
5964 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
5965 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
5967 2003-06-02 Richard Henderson <rth@redhat.com>
5969 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
5970 a member of all_reggroup.
5972 2003-06-02 Richard Henderson <rth@redhat.com>
5974 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
5975 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
5976 (alpha_lds, alpha_sts): New.
5977 (alpha_convert_register_p): Change from _register_convertible.
5978 (alpha_register_to_value): Change from _convert_to_virtual;
5979 restructure and fail for type sizes other than 4 or 8.
5980 (alpha_value_to_register): Similarly.
5981 (alpha_extract_return_value): Use alpha_sts.
5982 (alpha_store_return_value): Use alpha_lds.
5983 (alpha_gdbarch_init): Update hooks.
5985 2003-06-02 Richard Henderson <rth@redhat.com>
5987 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
5989 (alpha_sigtramp_register_address): Likewise.
5991 2003-06-02 Richard Henderson <rth@redhat.com>
5993 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
5994 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
5995 * alpha-tdep.h: Declare them.
5997 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
5998 Remove zerobuf. Don't error on UNIQUE.
5999 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
6000 (ALPHA_REGSET_UNIQUE): Provide default.
6001 (supply_gregset): Use alpha_supply_int_regs.
6002 (fill_gregset): Use alpha_fill_int_regs.
6003 (supply_fpregset): Use alpha_supply_fp_regs.
6004 (fill_fpregset): Use alpha_fill_fp_regs.
6005 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
6006 (alphabsd_supply_reg): Use alpha_supply_int_regs.
6007 (alphabsd_fill_reg): Use alpha_fill_int_regs.
6008 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
6009 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
6010 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
6012 2003-06-02 Richard Henderson <rth@redhat.com>
6014 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
6016 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
6017 (alpha_store_return_value): Likewise.
6019 2003-06-02 David Carlton <carlton@math.stanford.edu>
6021 * block.c (contained_in): Add 'const' to arguments.
6022 (block_function): Ditto.
6023 * block.h: Update declarations for block_function and
6026 2003-06-02 David Carlton <carlton@math.stanford.edu>
6028 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
6029 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
6030 * p-valprint.c (pascal_val_print): Ditto.
6031 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
6033 2003-06-02 Richard Henderson <rth@redhat.com>
6035 * alpha-tdep.c (alpha_push_dummy_call): Use
6036 builtin_type_ieee_double_little instead of builtin_type_double.
6038 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
6039 sign-extension of 32-bit values.
6040 (alpha_store_return_value): Similarly.
6042 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
6043 (alpha_extract_return_value): Likewise.
6044 (alpha_store_return_value): Likewise.
6046 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
6047 (alpha_store_return_value): Error on IEEE Quad floats.
6049 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
6050 (alpha_extract_struct_value_address): Likewise.
6051 (alpha_store_return_value): Likewise.
6052 (alpha_store_struct_return): Remove.
6053 (alpha_gdbarch_init): Update hook registration to match.
6055 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
6056 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
6057 macros where appropriate.
6058 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
6059 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
6061 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
6062 for SP, GP; void_func_ptr for PC; non-language-specific types
6064 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
6066 2003-06-02 Richard Henderson <rth@redhat.com>
6068 * top.h (lim_at_start): Declare.
6069 * main.c (captured_main): Set it.
6070 * top.c (lim_at_start): Define.
6071 (command_loop): Use it instead of &environ.
6072 * event-top.c (command_handler): Likewise.
6074 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
6076 * mipsnbsd-tdep.c: Update copyright years.
6077 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
6079 2003-06-01 Richard Henderson <rth@redhat.com>
6081 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
6082 (alpha-linux-tdep.o): Update dependencies.
6083 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
6084 * alpha-mdebug-tdep.c: Remove unneeded includes.
6086 2003-06-01 Richard Henderson <rth@redhat.com>
6088 * alpha-tdep.c (alpha_register_reggroup_p): New.
6089 (alpha_gdbarch_init): Register it.
6091 2003-06-02 Andrew Cagney <cagney@redhat.com>
6093 * dwarfread.c: Eliminate "register"
6094 (decode_die_type): Eliminate assignment within "if".
6095 (struct_type, decode_array_element_type): Ditto.
6096 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
6097 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
6098 (decode_modified_type, completedieinfo): Ditto.
6099 * block.c: Eliminate "register".
6100 (blockvector_for_pc_sect): Eliminate assignment within "if".
6101 * cp-support.h (struct symbol): Opaque declaration.
6102 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
6104 2003-06-01 Richard Henderson <rth@redhat.com>
6106 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
6107 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
6109 2003-06-01 Adam Fedor <fedor@gnu.org>
6111 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
6112 * gdbarch.[ch]: Regenerate.
6113 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
6114 (hppa_gdbarch_init): Set it in the gdbarch vector.
6115 * i386-tdep.c (i386_fetch_pointer_argument): New
6116 (i386_gdbarch_init): Set it into gdbarch.
6117 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
6118 (rs6000_gdbarch_init): Set it in gdbarch.
6119 * sparc-tdep.c (sparc_fetch_pointer_argument): New
6120 (sparc_gdbarch_init): Set it in gdbarch.
6122 2003-06-01 Andrew Cagney <cagney@redhat.com>
6124 * defs.h (extract_address): Delete declaration.
6125 * findvar.c (extract_address): Delete function.
6126 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
6127 extract_address with the inline equivalent,
6128 extract_unsigned_integer.
6129 (xstormy16_extract_struct_value_address): Ditto.
6130 (xstormy16_pointer_to_address): Ditto.
6131 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
6132 * v850-tdep.c (v850_push_arguments): Ditto.
6133 (v850_extract_return_value): Ditto.
6134 (v850_extract_struct_value_address): Ditto.
6135 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
6136 (sparcnbsd_get_longjmp_target_64): Ditto.
6137 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
6138 (get_longjmp_target): Ditto.
6139 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
6140 (sh64_extract_struct_value_address): Ditto.
6141 (sh_push_arguments): Ditto.
6142 (sh64_push_arguments): Ditto.
6143 * remote-vxsparc.c (vx_read_register): Ditto.
6144 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
6145 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
6146 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
6147 * mipsv4-nat.c (get_longjmp_target): Ditto.
6148 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
6149 * mips-nat.c (get_longjmp_target): Ditto.
6150 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
6151 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
6152 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
6153 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
6154 * irix5-nat.c (get_longjmp_target): Ditto.
6155 * irix4-nat.c (get_longjmp_target): Ditto.
6156 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
6157 (ia64_push_arguments): Ditto.
6158 * hpux-thread.c (hpux_thread_store_registers): Ditto.
6159 * h8300-tdep.c (h8300_push_arguments): Ditto.
6160 (h8300_store_return_value): Ditto.
6161 (h8300_extract_struct_value_address): Ditto.
6162 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
6163 (frv_push_arguments): Ditto.
6164 * avr-tdep.c (avr_pointer_to_address): Ditto.
6165 (avr_push_arguments): Ditto.
6166 * arm-tdep.c (arm_push_dummy_call): Ditto.
6167 (arm_get_longjmp_target): Ditto.
6168 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6169 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
6170 (alpha_get_longjmp_target): Ditto.
6172 * solib-irix.c (extract_mips_address): Inline extract_address,
6173 replacing it with extract_signed_integer.
6174 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6175 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
6176 (first_link_map_member, open_symbol_file_object): Ditto.
6177 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
6178 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
6179 (LM_NEXT, LM_NAME): Ditto.
6181 2003-06-01 Richard Henderson <rth@redhat.com>
6183 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
6184 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
6185 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
6186 (alpha_cannot_store_register): Likewise.
6187 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
6188 * alpha-nat.c (supply_gregset): Likewise.
6189 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
6191 2003-06-01 Andrew Cagney <cagney@redhat.com>
6193 * infcall.c (call_function_by_hand): Update comment on
6194 DEPRECATED_DUMMY_WRITE_SP.
6196 * mips-tdep.c (mips_gdbarch_init): Do not set
6197 deprecated_dummy_write_sp.
6198 (mips_eabi_push_dummy_call): Set the SP register.
6199 (mips_o64_push_dummy_call): Set the SP register.
6200 (mips_o32_push_dummy_call): Set the SP register.
6201 (mips_n32n64_push_dummy_call): Set the SP register.
6203 2003-06-01 Richard Henderson <rth@redhat.com>
6205 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
6206 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
6207 (supply_gregset): Likewise.
6208 * alpha-tdep.c (alpha_store_return_value): Likewise.
6209 (alpha_get_longjmp_target): Likewise.
6210 (alpha_register_name): Constify array.
6211 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
6212 deprecated_register_size, deprecated_register_bytes,
6213 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
6214 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
6215 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
6217 2003-06-01 Richard Henderson <rth@redhat.com>
6219 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
6220 from arg_reg_buffer to regcache to avoid double conversion.
6222 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6224 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
6226 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
6227 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
6229 2003-06-01 Richard Henderson <rth@redhat.com>
6231 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
6232 (decode_frame_entry): Set it. Skip FDE augmentation.
6234 2003-06-01 Richard Henderson <rth@redhat.com>
6236 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
6237 not overlapping PC_REGNUM.
6239 2003-06-01 Richard Henderson <rth@redhat.com>
6241 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
6242 alpha_push_arguments. Don't dump argument register data to
6243 the target stack. Fix float and 128-bit long double semantics.
6244 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
6245 (alpha_fix_call_dummy): Remove.
6246 (alpha_call_dummy_words): Remove.
6247 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
6249 2003-06-01 Richard Henderson <rth@redhat.com>
6251 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
6253 2003-06-01 Andrew Cagney <cagney@redhat.com>
6255 * mips-tdep.c (is_mips16_addr): New function.
6256 (make_mips16_addr, unmake_mips16_addr): New functions.
6257 (pc_is_mips16, mips_fetch_instruction): Use.
6258 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
6259 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
6260 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
6261 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
6263 * config/mips/tm-mips.h: Update copyright.
6264 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
6265 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
6266 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
6267 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
6268 (TM_PRINT_INSN_MACH): Delete.
6269 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
6271 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
6272 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
6273 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
6274 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
6275 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
6276 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
6277 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
6278 mips*-*-riscos* and mips*-*-sysv* onto mips.
6279 * config/mips/mips64.mt: New file.
6280 * config/mips/mips.mt: New file.
6281 * config/mips/littlemips.mt: Delete file.
6282 * config/mips/decstation.mt: Delete file.
6283 * config/mips/vr4300el.mt: Delete file.
6284 * config/mips/vr5000el.mt: Delete file.
6285 * config/mips/vr5000.mt: Delete file.
6286 * config/mips/vr4100.mt: Delete file.
6287 * config/mips/vr4xxxel.mt: Delete file.
6288 * config/mips/vr4300.mt: Delete file.
6289 * config/mips/vr4xxx.mt: Delete file.
6290 * config/mips/bigmips.mt: Delete file.
6291 * config/mips/bigmips64.mt: Delete file.
6292 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
6293 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
6294 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
6295 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
6296 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
6298 * config/mips/tm-irix3.h: Ditto.
6299 * config/mips/tm-mipsv4.h: Ditto.
6300 * config/mips/tm-embed.h: Ditto.
6301 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
6303 * config/mips/tm-vr5000el.h: Delete file.
6304 * config/mips/tm-tx39l.h: Delete file.
6305 * config/mips/tm-vr4300el.h: Delete file.
6306 * config/mips/tm-vr4xxxel.h: Delete file.
6307 * config/mips/tm-vr4300.h: Delete file.
6308 * config/mips/tm-vr4100.h: Delete file.
6309 * config/mips/tm-vr4xxx.h: Delete file.
6310 * config/mips/tm-vr5000.h: Delete file.
6311 * config/mips/tm-embedl64.h: Delete file.
6312 * config/mips/tm-embedl.h: Delete file.
6313 * config/mips/tm-embed64.h: Delete file.
6314 * config/mips/tm-bigmips64.h: Delete file.
6315 * config/mips/tm-bigmips.h: Delete file.
6317 2003-06-01 Mark Kettenis <kettenis@gnu.org>
6320 * shnbsd-nat.c: Include "sh-tdep.h".
6322 From Richard Henderson <rth@redhat.com>:
6323 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
6325 2003-05-31 Andrew Cagney <cagney@redhat.com>
6327 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
6328 forward declaration.
6329 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6330 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
6331 (mips_find_saved_regs): Use set_reg_offset.
6332 (mips_frame_init_saved_regs): Delete function.
6333 (mips_pop_frame): Call mips_find_saved_regs instead of
6334 DEPRECATED_FRAME_INIT_SAVED_REGS.
6336 2003-05-31 Andrew Cagney <cagney@redhat.com>
6338 * mips-tdep.c (mips_gdbarch_init): Do not set
6339 deprecated_max_register_raw_size, register_virtual_size, and
6340 deprecated_max_register_virtual_size.
6342 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6344 * i386-tdep.c: Include "dwarf2-frame.h".
6345 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
6346 * Makefile.in (i386-tdep.o): Update dependencies.
6348 * dwarf2-frame.c, dwarf2-frame.h: New files.
6349 * Makefile.in (SFILES): Add dwarf2-frame.c.
6350 (dwarf2_frame_h): Define.
6351 (COMMON_OBS): Add dwarf2-frame.o.
6352 (dwarf2-frame.o): Add dependencies.
6354 2003-05-31 Andreas Jaeger <aj@suse.de>
6356 * x86-64-linux-nat.c: Fix comment.
6358 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6360 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
6363 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
6364 have a sigcontext_addr handler.
6365 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
6366 sigcontext_addr handler.
6368 2003-05-31 Andrew Cagney <cagney@redhat.com>
6370 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
6371 (print_fp_register_row): Replace do_fp_register_row.
6372 (mips_print_fp_register): Add "file" and "frame" parameters.
6373 (mips_print_register): Add "file" and "frame" parameters.
6374 (mips_print_registers_info): Replace mips_do_registers_info.
6375 (mips_gdbarch_init): Set print_registers_info instead of
6376 deprecated_do_registers_info.
6377 (mips_read_fp_register_single): Add "frame" parameter.
6378 (mips_read_fp_register_double): Add "frame" parameter.
6380 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6382 * i386-tdep.c (i386_register_name): Check for MMX registers first.
6383 Fixes a bug where GDB would print the wrong register names for
6384 targets without SSE.
6386 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
6387 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6390 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
6391 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
6392 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6395 From Michal Ludvig <mludvig@suse.cz>:
6396 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
6398 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6399 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6400 I386_ST0_REGNUM): Move here from...
6401 * i386-tdep.c: ... here.
6402 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
6403 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
6404 registers if possible.
6405 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
6406 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
6408 (i386bsd_sc_reg_offset): New variable.
6409 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
6410 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6412 (i386fbsd_sc_reg_offset): New variable.
6413 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
6415 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
6417 (i386fbsd4_sc_reg_offset): New variable.
6418 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
6419 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6421 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
6422 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
6423 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
6425 (i386nbsd_sc_reg_offset): New variable.
6426 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
6427 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6429 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
6431 (i386obsd_sc_reg_offset): New variable.
6432 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
6433 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
6435 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
6436 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
6437 for frame pointer offset in `struct sigcontext'.
6439 2003-05-31 Andrew Cagney <cagney@redhat.com>
6441 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
6442 architecture methods call_dummy_words, sizeof_call_dummy_words,
6443 push_return_address, store_struct_return, and fix_call_dummy. Set
6444 push_dummy_call instead of deprecated_push_arguments.
6445 (mips_store_struct_return): Delete function.
6446 (mips_fix_call_dummy): Delete function.
6447 (mips_push_return_address): Delete function.
6448 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
6449 RA_REGNUM and T9_REGNUM.
6450 (mips_n32n64_push_dummy_call): Ditto for
6451 mips_n32n64_push_arguments.
6452 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
6453 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
6455 2003-05-31 Andrew Cagney <cagney@redhat.com>
6457 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
6458 "dummy_addr" to "bp_addr".
6459 * infcall.c (call_function_by_hand): Pass "funaddr" to
6460 gdbarch_push_dummy_call.
6461 * gdbarch.h, gdbarch.c: Re-generate.
6462 * i386-tdep.c (i386_push_dummy_call): Update.
6463 * arm-tdep.c (arm_push_dummy_call): Update.
6464 * d10v-tdep.c (d10v_push_dummy_call): Update.
6466 2003-05-31 Mark Kettenis <kettenis@gnu.org>
6468 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
6469 variable declarations.
6470 (x86_64_register_number, x86_64_register_name): Remove prototypes.
6471 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
6472 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
6473 x86_64_init_frame_pc, x86_64_init_frame_pc,
6474 x86_64_function_has_prologue): Remove prototypes.
6475 (X86_64_NUM_GREGS): New define.
6476 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
6477 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
6478 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
6479 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
6480 XMM1_REGNUM): Remove defines.
6481 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
6482 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
6483 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
6484 X86_64_XMM1_REGNUM): New defines.
6485 (struct x86_64_register_info): Renamed from `struct
6486 register_info'. Remove `size' member.
6487 (x86_64_register_info_table): Remove variable.
6488 (x86_64_register_info): New variable.
6489 (X86_64_NUM_REGS): New define.
6490 (X86_64_NUM_GREGS): Remove define.
6491 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
6492 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
6494 (x86_54_dwarf2_reg_to_regnum): Remove function.
6495 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
6496 (x86_64_dwarf_reg_to_regnum): New function.
6497 (x86_64_register_name): Rewrite.
6498 (x86_64_register_raw_size): Remove function.
6499 (x86_64_register_byte_table): Remove variable.
6500 (x86_64_register_byte): Remove function.
6501 (x86_64_register_virtual_type): Remove function.
6502 (x86_64_register_type): New function.
6503 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
6504 x86_64_register_convert_to_raw): Remove functions.
6505 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
6506 (x86_64_use_struct_convention): Make static. Adjust for renamed
6508 (x86_64_frame_init_saved_regs): Remove function.
6509 (x86_64_push_arguments): Make static. Change to accept a regcache
6511 (x86_64_store_return_value, x86_64_extract_return_value): Make
6512 static. Rewrite based on i386 counterparts.
6513 (x86_64_push_dummy_call): New function.
6514 (X86_64_NUM_SAVED_REGS): New define.
6515 (x86_64_register_number): Remove function.
6516 (x86_64_store_struct_return): Remove function.
6517 (x86_64_frameless_function_invocation,
6518 x86_64_function_has_prologue): Remove functions.
6519 (PROLOG_BUFSIZE): Remove define.
6520 (struct x86_64_frame_cache): New structure.
6521 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
6522 x86_64_frame_cache, x86_64_frame_this_id,
6523 x86_64_frame_prev_register, x86_64_frame_p,
6524 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
6525 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
6527 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
6529 (x86_64_skip_prologue): Rewrite in terms of
6530 x86_64_analyze_prologue.
6531 (x86_64_frame_base_address): New function.
6532 (x86_64_frame_base): New variable.
6533 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
6534 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
6535 set deprecated_fp_regnum, deprecated_register_size,
6536 deprecated_register_bytes, register_raw_size, register_byte,
6537 register_virtual_type, register_convertiable,
6538 register_convert_to_virtual, convert_to_raw,
6539 deprecated_get_saved_register, deprecated_target_read_fp,
6540 deprecated_push_arguments, deprecated_push_return_address,
6541 deprecated_pop_frame, deprecated_store_struct_return,
6542 deprecated_frame_init_saved_regs, deprecated_frame_chain,
6543 frameless_function_invocation, deprecated_frame_saved_pc,
6544 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
6545 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
6546 deprecated_init_frame_pc and virtual_frame_pointer. Call
6547 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
6548 and x86_64_frame_p. Call frame_base_set_default to register
6550 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
6551 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
6552 (_initialize_x86_64_tdep): Remove function.
6553 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
6554 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
6555 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
6557 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
6558 (x86_64_linux_sigcontext_addr): Rewrite.
6559 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
6560 x86_64_linux_frame_saved_pc): Remove functions.
6561 (x86_64_linux_pc_in_sigtramp): Renamed from
6562 x86_64_linux_in_sigtramp. Try harder to recognize a signal
6564 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
6566 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
6567 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6568 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
6569 (x86_64_regmap): Rename to regmap.
6570 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
6572 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
6574 (x86_64_fxsave_offset): Remove function.
6575 (supply_fpregset): Simply call x86_64_supply_fxsave.
6576 (fill_fpregset): Simply call x86_64_fill_fxsave.
6577 (fetch_inferior_registers, store_inferior_registers): Avoid
6578 asignment in if-statement.
6579 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
6580 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
6581 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
6582 (fetch_core_registers): Remove function.
6583 (linux_elf_core_fns): Remove.
6584 (offsetoff): Don't define.
6585 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
6586 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
6587 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
6589 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
6590 protection against multiple includes instead of NM_X86_64_h. Add
6591 various comments. Include "config/nm-linux.h". Don't include
6593 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
6594 GET_THREAD_SIGNALS): Remove defines.
6595 (x86_64_register_u_addr, kernel_u_size,
6596 lin_thread_get_thread_signals): Remove prototypes.
6597 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
6598 [HAVE_LINK_H]: Don't include "solib.h".
6599 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
6600 * config/i386/tm-x86-64linux.h: Fix comments.
6601 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
6602 x86-64-tdep.o): Update dependencies.
6604 2003-05-30 Andrew Cagney <cagney@redhat.com>
6606 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
6607 Change parameter type to a "struct regcache *".
6609 * gdbarch.sh: Regardless of the multi-arch level, always define
6610 the macro when not already defined.
6611 * gdbarch.h, gdbarch.c: Re-generate.
6613 2003-05-30 Richard Henderson <rth@redhat.com>
6615 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
6616 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
6617 (alpha_mdebug_frame_this_id): Likewise.
6618 (alpha_mdebug_frame_prev_register): Likewise.
6619 (alpha_mdebug_frame_base_address): Likewise.
6620 (alpha_mdebug_frame_locals_address): Likewise.
6621 (alpha_mdebug_frame_args_address): Likewise.
6622 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
6623 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
6624 (alpha_heuristic_frame_unwind_cache): Make static; add missing
6626 (alpha_heuristic_frame_this_id): Make static.
6627 (alpha_heuristic_frame_prev_register): Likewise.
6628 (alpha_heuristic_frame_base_address): Likewise.
6629 * alpha-tdep.h: Update.
6631 2003-05-30 Mark Kettenis <kettenis@gnu.org>
6633 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
6634 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
6636 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
6637 * i386-tdep.c: Mark functions that are 64-bit safe as such.
6638 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
6639 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
6640 I386_ST0_REGNUM): New defines.
6641 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
6642 codestream_get): Remove define.
6643 (codestream_next_addr, condestream_addr, condestream_buf,
6644 codestream_off, codestream_cnt): Remove variables.
6645 (codestream_fill, codestream_seek, codestream_read): Remove
6647 (i386_follow_jump): Rewrite to avoid usage of removed codestream
6649 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
6650 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
6651 i386_frame_saved_pc, i386_saved_pc_after_call,
6652 i386_frame_num_args, i386_frame_init_saved_regs,
6653 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
6654 i386_push_arguments): Remove functions.
6655 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
6656 functionality. Use i386_analyze_prologue instead of
6657 i386_get_frame_setup.
6658 (I386_NUM_SAVED_REGS): New define.
6659 (struct i386_frame_cache): New structure.
6660 (i386_alloc_frame_cache, i386_analyze_struct_return,
6661 i386_skip_probe, i386_analyze_frame_setup,
6662 i386_analyze_register_saves, i386_analyze_prologue,
6663 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
6664 i386_frame_prev_register, i386_sigtramp_frame_cache,
6665 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
6666 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
6667 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
6669 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
6671 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
6672 I386_EAX_REGNUM and I386_EDX_REGNUM.
6673 (i386_extract_return_value, i386_store_return_value): Use
6674 I386_ST0_REGNUM where appropriate.
6675 (i386_extract_struct_value_address): Rewrite to use extract_address.
6676 (i386_svr4_pc_in_sigtramp): Add comment.
6677 (i386_svr4_sigcontext_addr): Rewrite.
6678 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
6680 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
6681 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
6682 of new defines. Set push_dummy_call, don't set
6683 deprecated_push_arguments, deprecated_push_return_address,
6684 deprecated_pop_frame. Don't set parm_boundary. Don't set
6685 deprecated_frame_chain, deprecated_frame_saved_pc,
6686 deprecated_saved_pc_after_call. Set unwind_dummy_id,
6687 save_dummy_frame_tos, unwind_pc. Call
6688 frame_unwind_append_predicate and frame_base_set_default. Don't
6689 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
6690 Don't set frameless_function_invocation. Don't set
6691 deprecated_register_bytes, deprecated_register_size,
6692 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
6693 * i386-linux-tdep.c: Fix formatting in some comments.
6694 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
6695 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
6696 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
6697 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
6698 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
6699 redundant parentheses.
6700 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
6701 (i386_linux_sigcontext_addr): Use it. Rewrite.
6702 (find_minsym_and_objfile): Change name of second argument.
6703 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
6704 changed. Use frame_pc_unwind instead of
6705 DEPRECATED_SAVED_PC_AFTER_CALL.
6706 (i386_linux_init_abi): Don't set deprecated_register_bytes.
6707 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
6708 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
6710 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
6712 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
6713 (_initialize_i386_cygwin_tdep): New prototype.
6714 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
6715 deprecated_frame_chain_valid.
6716 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
6717 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
6718 Rely on the SVR4 defaults.
6719 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
6720 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
6722 2003-05-30 Andrew Cagney <cagney@redhat.com>
6724 * infcall.c (call_function_by_hand): Always call
6725 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
6727 2003-05-30 Richard Henderson <rth@redhat.com>
6729 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
6732 2003-05-29 Jim Blandy <jimb@redhat.com>
6734 Use gdbarch methods for solib stuff on PowerPC Linux.
6735 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
6736 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
6738 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
6739 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
6740 giving the same effect as the #definitions above.
6742 2003-05-29 Adam Fedor <fedor@gnu.org>
6744 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
6745 (find_implementation_from_class): Replace it with the standard
6746 case i.e. do nothing.
6748 2003-05-29 Richard Henderson <rth@redhat.com>
6750 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
6751 (alpha_linux_sigtramp_offset): Use it. Make static.
6752 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
6753 update for new frame model.
6754 * alpha-mdebug-tdep.c: New file.
6755 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
6756 (alpha_osf1_init_abi): Install it.
6757 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
6758 (linked_proc_desc_table): Remove.
6759 (alpha_frame_past_sigtramp_frame): Remove.
6760 (alpha_dynamic_sigtramp_offset): Remove.
6761 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
6762 (alpha_proc_desc_is_dyn_sigtramp): Remove.
6763 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
6764 (push_sigtramp_desc): Remove.
6765 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
6766 (alpha_cannot_store_register): Likewise.
6767 (alpha_sigcontext_addr): Remove.
6768 (alpha_find_saved_regs): Remove.
6769 (alpha_frame_init_saved_regs): Remove.
6770 (alpha_init_frame_pc_first): Remove.
6771 (read_next_frame_reg): Remove.
6772 (alpha_frame_saved_pc): Remove.
6773 (alpha_saved_pc_after_call): Remove.
6774 (temp_proc_desc, temp_saved_regs): Remove.
6775 (alpha_about_to_return): Remove.
6776 (cached_proc_desc): Remove.
6777 (alpha_frame_chain): Remove.
6778 (alpha_print_extra_frame_info): Remove.
6779 (alpha_init_extra_frame_info): Remove.
6780 (alpha_frame_locals_address): Remove.
6781 (alpha_frame_args_address): Remove.
6782 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
6783 (alpha_push_dummy_frame): Remove.
6784 (alpha_pop_frame): Remove.
6785 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
6786 (alpha_read_insn): New.
6787 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
6788 for different insn encodings.
6789 (alpha_in_lenient_prologue): Remove.
6790 (struct alpha_sigtramp_unwind_cache): New.
6791 (alpha_sigtramp_frame_unwind_cache): New.
6792 (alpha_sigtramp_register_address): New.
6793 (alpha_sigtramp_frame_this_id): New.
6794 (alpha_sigtramp_frame_prev_register): New.
6795 (alpha_sigtramp_frame_unwind): New.
6796 (alpha_sigtramp_frame_p): New.
6797 (struct alpha_heuristic_unwind_cache): New.
6798 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
6799 don't count nop insns that occur between functions.
6800 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
6801 heuristic_proc_desc, but without the mdebug wrapping.
6802 (alpha_heuristic_frame_this_id): New.
6803 (alpha_heuristic_frame_prev_register): New.
6804 (alpha_heuristic_frame_unwind): New.
6805 (alpha_heuristic_frame_p): New.
6806 (alpha_heuristic_frame_base_address): New.
6807 (alpha_heuristic_frame_base): New.
6808 (alpha_unwind_dummy_id): New.
6809 (alpha_unwind_pc): New.
6810 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
6811 frame related deprecated initializations; install replacements.
6812 (alpha_dump_tdep): Remove.
6813 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
6814 (alpha_read_insn, alpha_after_prologue,
6815 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
6816 alpha_heuristic_frame_prev_register,
6817 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
6818 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
6819 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
6820 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
6822 2003-05-29 Andrew Cagney <cagney@redhat.com>
6824 * gdb_assert.h (gdb_assert_fail): Provide different definitions
6825 dependant on the availability of ASSERT_FUNCTION.
6826 (ASSERT_FUNCTION): Do not define when there is no function name.
6828 2003-05-29 Kevin Buettner <kevinb@redhat.com>
6830 From Jimi X <jimix@watson.ibm.com>:
6831 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
6833 2003-05-28 Jim Blandy <jimb@redhat.com>
6835 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
6836 argument to ptrace to int; the system headers should give it the
6837 right type, and pointers don't fit in ints on powerpc64-*-*.
6839 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
6841 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6844 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6846 * stabsread.c (dbx_lookup_type): Make static.
6848 (add_undefined_type): Ditto.
6849 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
6852 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
6854 * hpread.c (hpread_has_name): Make static.
6855 (hpread_psymtab_to_symtab): Ditto.
6856 (file_exists): Ditto.
6857 (hpread_call_pxdb): Ditto.
6858 (hpread_pxdb_needed): Ditto.
6859 (hpread_quick_traverse): Ditto.
6860 (hpread_get_header): Ditto.
6861 (hpread_get_lntt): Ditto.
6862 (hpread_get_slt): Ditto.
6865 2003-05-25 Andreas Schwab <schwab@suse.de>
6867 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
6868 stack_align and deprecated_extra_stack_alignment_needed.
6869 (m68k_stack_align): Delete.
6871 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
6872 (m68k_register_virtual_size): Likewise.
6873 (altos_skip_prologue): Remove obsolete function.
6874 (isi_frame_num_args): Likewise.
6875 (news_frame_num_args): Likewise.
6876 (m68k_fix_call_dummy): Make static.
6877 (m68k_push_dummy_frame): Likewise.
6878 (m68k_pop_frame): Likewise.
6879 (m68k_skip_prologue): Likewise.
6880 (m68k_frame_init_saved_regs): Likewise.
6881 (m68k_saved_pc_after_call): Likewise.
6882 (m68k_get_longjmp_target): Make multi-arch.
6883 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
6884 structure. Register m68k_get_longjmp_target if enabled.
6885 * m68k-tdep.h (struct gdbarch_tdep): Define.
6886 * config/m68k/tm-m68k.h: Don't include "regcache.h".
6888 * Makefile.in (config.status): Also depend on configure.tgt
6890 (m68klinux-tdep.o): Update dependencies.
6891 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
6892 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
6893 (M68K_LINUX_JB_PC): Define.
6894 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
6895 and take additional parameter.
6896 (m68k_linux_sigtramp_saved_pc): Update.
6897 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
6898 m68k_linux_pc_in_sigtramp, in_plt_section,
6899 find_solib_trampoline_target.
6900 * config/m68k/tm-linux.h: Don't include any tm headers.
6901 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
6902 (JB_ELEMENT_SIZE): Likewise.
6904 (GET_LONGJMP_TARGET): Likewise.
6905 (IN_SIGTRAMP): Likewise.
6906 (SVR4_SHARED_LIBS): Define this and include "solib.h".
6908 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6910 * sparc-tdep.c (sparc32_do_push_arguments): New function.
6911 (sparc32_push_arguments): Re-implement by calling
6912 sparc32_do_push_arguments.
6914 2003-05-25 Mark Kettenis <kettenis@gnu.org>
6916 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
6917 SPARC_O1_REGNUM): New defines.
6918 (sparc32_extract_return_value): Rewrite to operate on a regcache.
6919 (sparc32_store_return_value): New function.
6920 (sparc_extract_struct_value_address): Rewrite to operate on a
6922 (sparc_gdbarch_init): Don't set
6923 deprecated_extract_struct_value_address. Set
6924 extract_struct_value_address instead. Don't set
6925 deprecated_extract_return_value and deprecated_store_return_value
6926 for 32-bit targets. Set extract_return_value and
6927 store_return_value instead.
6928 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
6929 DEPRECTAED_EXTRACT_RETURN_VALUE,
6930 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
6931 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
6932 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
6933 (sparc_store_return_value): Remove prototype.
6934 (sparc32_store_return_value): New prototype.
6935 (sparc32_extract_return_value, sparc_extract_struct_value_address):
6938 2003-05-24 Mark Kettenis <kettenis@gnu.org>
6940 * sparcnbsd-tdep.c: Include "gdb_string.h".
6942 2003-05-23 Andrew Cagney <cagney@redhat.com>
6944 * p-valprint.c (pascal_val_print): Replace extract_address with
6945 the inline equivalent extract_unsigned_integer.
6946 * jv-valprint.c (java_value_print): Ditto.
6947 * ada-valprint.c (ada_val_print_1): Ditto.
6948 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
6950 2003-05-23 Theodore A. Roth <troth@openavr.org>
6952 * blockframe.c (frameless_look_for_prologue): Remove unused
6953 after_prologue variable.
6955 2003-05-23 Mark Kettenis <kettenis@gnu.org>
6957 * blockframe.c (get_pc_function_start): Rewrite to avoid
6958 asignments in if-statements.
6960 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
6962 Committed by Elena Zannoni <ezannoni@redhat.com>.
6963 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
6964 files, don't relocate absolute symbols (and do use mst_abs).
6966 2003-05-23 Andrew Cagney <cagney@redhat.com>
6968 * objc-lang.c: Include "gdb_assert.h".
6969 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
6970 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
6971 (gdb_check, gdb_check_fatal): Delete functions.
6972 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
6974 (parse_selector, parse_method, find_methods, find_imps): Ditto.
6975 * Makefile.in (objc-lang.o): Update dependencies.
6977 2003-05-22 Ian Lance Taylor <ian@airs.com>
6979 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
6980 with fprintf_filtered, not fprintf_unfiltered.
6982 2003-05-22 Andrew Cagney <cagney@redhat.com>
6984 * stack.c (frame_info): Inline extract_address, replacing it with
6985 extract_unsigned_integer.
6986 * findvar.c (unsigned_pointer_to_address): Ditto.
6987 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
6988 * dwarf2expr.c (dwarf2_read_address): Ditto.
6989 * frame.c (frame_pc_unwind): Update comment.
6990 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
6992 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
6994 * infptrace.c (detach): Call print_sys_errmsg rather than
6995 perror_with_name to issue warning message when errno is non-zero
6996 after calling ptrace detach.
6998 2003-05-21 J. Brobecker <brobecker@gnat.com>
7000 * config/pa/tm-hppa.h: Delete some unused macros. Move some
7001 macro definitions from here...
7002 * hppa-tdep.c: ...to there.
7004 2003-05-20 Kevin Buettner <kevinb@redhat.com>
7006 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
7007 register_ptrace_addr(). Fix all callers.
7009 2003-05-21 Andreas Schwab <schwab@suse.de>
7011 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
7013 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
7015 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
7016 (_initialize_m68k_linux_tdep): New function.
7017 (m68k_linux_frame_saved_pc): Make static.
7018 (m68k_linux_extract_return_value): Likewise.
7019 (m68k_linux_store_return_value): Likewise.
7020 (m68k_linux_extract_struct_value_address): Likewise.
7021 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
7023 (DEPRECATED_STORE_RETURN_VALUE): Remove.
7024 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7025 (DEPRECATED_FRAME_SAVED_PC): Remove.
7027 2003-05-20 Kris Warkentin <kewarken@qnx.com>
7029 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
7030 regset numbering rather than our own.
7032 2003-05-19 David Carlton <carlton@bactrian.org>
7034 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
7036 2003-05-19 David Carlton <carlton@bactrian.org>
7038 Partial fix for PR c++/827.
7039 * cp-support.h: Include symtab.h.
7040 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
7041 * cp-namespace.c: Update contributors.
7042 (cp_lookup_symbol_nonlocal): New.
7043 (lookup_namespace_scope, cp_lookup_symbol_namespace)
7044 (lookup_symbol_file): Ditto.
7045 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
7046 * block.h: Declare block_scope, block_using, block_global_block.
7047 * block.c (block_scope): New.
7048 (block_using, block_global_block): Ditto.
7049 * Makefile.in (cp_support_h): Depend on symtab_h.
7050 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
7052 2003-05-19 David Carlton <carlton@bactrian.org>
7054 * language.h (struct language_defn): Add 'la_value_of_this'
7055 and 'la_lookup_symbol_nonlocal' members.
7056 * symtab.h: Declare basic_lookup_symbol_nonlocal,
7057 lookup_symbol_static, lookup_symbol_global,
7058 lookup_symbol_aux_block.
7059 * symtab.c (lookup_symbol_aux): Call language hooks to determine
7060 if we should search fields of this and how to do static/global
7062 (lookup_symbol_aux_block): Make extern.
7063 (basic_lookup_symbol_nonlocal): New.
7064 (lookup_symbol_static, lookup_symbol_global): Ditto.
7065 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
7066 'la_lookup_symbol_nonlocal' members.
7067 * c-lang.c (c_language_defn, cplus_language_defn)
7068 (asm_language_defn, minimal_language_defn): Ditto.
7069 * jv-lang.c (java_language_defn): Ditto.
7070 * language.c (unknown_language_defn, auto_language_defn)
7071 (local_language_defn): Ditto.
7072 * m2-lang.c (m2_language_defn): Ditto.
7073 * objc-lang.c (objc_language_defn): Ditto.
7074 * scm-lang.c (scm_language_defn): Ditto.
7075 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
7076 * p-lang.c (pascal_language_defn): Ditto for both.
7077 * Makefile.in (f-lang.o): Depend on value_h.
7080 2003-05-19 David Carlton <carlton@bactrian.org>
7082 * block.h: Declare block_static_block.
7083 * block.c (block_static_block): New.
7084 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
7085 lookup_symbol_aux_local, calling block_static_block instead.
7086 (lookup_symbol_aux_local): Delete 'static_block' argument.
7088 2003-05-19 David Carlton <carlton@bactrian.org>
7090 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
7092 2003-05-19 Michal Ludvig <mludvig@suse.cz>
7094 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
7095 register numbers mapping.
7097 2003-05-18 Adam Fedor <fedor@gnu.org>
7099 * symtab.c (completion_list_objc_symbol): New function.
7100 (make_symbol_completion_list): Use it to add ObjC symbols
7101 when looking though the list.
7102 (language_search_unquoted_string): New function.
7103 (make_file_symbol_completion_list): Use it.
7105 2003-05-18 Andreas Schwab <schwab@suse.de>
7107 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
7109 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
7110 as m68k_linux_extract_return_value.
7111 (DEPRECATED_STORE_RETURN_VALUE): Define as
7112 m68k_linux_store_return_value.
7113 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7114 m68k_linux_extract_struct_value_address.
7115 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
7116 get_next_frame, get_frame_base, get_frame_pc.
7117 (m68k_linux_frame_saved_pc): Use get_frame_base.
7118 (m68k_linux_extract_return_value): New function.
7119 (m68k_linux_store_return_value): New function.
7120 (m68k_linux_extract_struct_value_address): New function.
7121 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
7123 * c-exp.y (typebase): Remove duplicate occurence of
7124 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
7125 of lookup_signed_typename.
7127 2003-05-18 Mark Kettenis <kettenis@gnu.org>
7129 * dwarf2loc.c (find_location_expression): Change type of second
7130 argument to `size_t *'.
7131 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
7134 2003-05-18 David Carlton <carlton@bactrian.org>
7136 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
7137 'linkage_name'. Add comment.
7138 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
7140 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7141 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
7142 (lookup_block_symbol): Ditto.
7144 2003-05-16 Andrew Cagney <cagney@redhat.com>
7146 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
7147 * gdbarch.h, gdbarch.c: Re-generate.
7148 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
7149 * TODO (REGISTER_BYTES): Delete reference.
7150 * alpha-tdep.c (alpha_gdbarch_init): Update.
7151 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7152 * x86-64-tdep.c (x86_64_init_abi): Update.
7153 * vax-tdep.c (vax_gdbarch_init): Update.
7154 * v850-tdep.c (v850_gdbarch_init): Update.
7155 * sparc-tdep.c (sparc_gdbarch_init): Update.
7156 * sh-tdep.c (sh_gdbarch_init): Update.
7157 * s390-tdep.c (s390_gdbarch_init): Update.
7158 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7159 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
7160 (ns32k_gdbarch_init_32382): Update.
7161 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7162 * mcore-tdep.c (mcore_gdbarch_init): Update.
7163 * m68k-tdep.c (m68k_gdbarch_init): Update.
7164 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7165 * ia64-tdep.c (ia64_gdbarch_init): Update.
7166 * i386-tdep.c (i386_gdbarch_init): Update.
7167 * i386-linux-tdep.c (i386_linux_init_abi): Update.
7168 * hppa-tdep.c (hppa_gdbarch_init): Update.
7169 * h8300-tdep.c (h8300_gdbarch_init): Update.
7170 * frv-tdep.c (frv_gdbarch_init): Update.
7171 * cris-tdep.c (cris_gdbarch_init): Update.
7172 * avr-tdep.c (avr_gdbarch_init): Update.
7173 * arm-tdep.c (arm_gdbarch_init): Update.
7174 * sparc-tdep.c (sparc_pop_frame): Update.
7175 * rs6000-tdep.c (rs6000_pop_frame): Update.
7176 * remote.c (init_remote_state): Update.
7177 (remote_prepare_to_store): Update.
7178 * remote-vx.c (vx_prepare_to_store): Update.
7179 * remote-sds.c (sds_fetch_registers): Update.
7180 (sds_prepare_to_store): Update.
7181 * remote-array.c: Update.
7182 * regcache.c (init_legacy_regcache_descr): Update.
7183 (init_regcache_descr): Update.
7184 * mips-tdep.c (mips_eabi_extract_return_value): Update.
7185 (mips_o64_extract_return_value): Update.
7186 * irix5-nat.c (fetch_core_registers): Update.
7187 * irix4-nat.c (fetch_core_registers): Update.
7188 * i386-tdep.h: Update.
7189 * hppa-tdep.c (pa_do_registers_info): Update.
7190 (pa_do_strcat_registers_info): Update.
7191 * cris-tdep.c (cris_register_bytes_ok): Update.
7192 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
7193 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
7194 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
7195 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
7196 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
7197 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
7198 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
7199 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
7200 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
7201 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
7202 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
7203 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
7204 (REGISTER_BYTES_OK): Update.
7205 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
7206 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
7208 2003-05-16 Ian Lance Taylor <ian@airs.com>
7210 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
7211 (vax_print_insn, print_insn_arg): Remove static functions.
7212 (vax_gdbarch_init): Call set_gdbarch_print_insn with
7213 print_insn_vax from opcodes library.
7214 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
7216 2003-05-15 Andrew Cagney <cagney@redhat.com>
7218 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
7219 * target.h (memory_breakpoint_from_pc): Delete declaration.
7220 * mem-break.c (memory_breakpoint_from_pc): Delete function.
7221 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
7222 * monitor.c (monitor_insert_breakpoint): Use
7223 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
7224 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
7225 * gdbarch.h, gdbarch.c: Re-generate.
7226 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
7227 (sparc_gdbarch_init): Set breakpoint_from_pc to
7228 sparc_breakpoint_from_pc.
7229 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
7230 (BREAKPOINT_FROM_PC): Define.
7231 (sparc_breakpoint_from_pc): Declare.
7232 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
7233 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
7234 (BREAKPOINT_FROM_PC): Define.
7235 (BREAKPOINT): Delete macro.
7236 * target.h: Update comment.
7237 * s390-tdep.c (s390_gdbarch_init): Update comments.
7238 * remote.c: Update comments.
7239 * remote-mips.c: Update comments.
7240 * proc-api.c (write_with_trace): Do not check for a breakpoint.
7241 * mem-break.c: Update comment.
7242 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
7243 (ia64_memory_insert_breakpoint): Update.
7244 * config/sparc/tm-sparc.h: Update comment.
7245 * config/pa/tm-hppa64.h: Update comment.
7246 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7247 (rs6000_breakpoint_from_pc): Update.
7248 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
7249 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
7250 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
7251 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
7252 (mips_breakpoint_from_pc): Update.
7253 (mips_dump_tdep): Update.
7255 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
7256 * minsyms.c (lookup_minimal_symbol): Inline
7257 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
7259 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
7260 * p-valprint.c (pascal_object_print_value_fields): Ditto.
7261 * p-lang.c (pascal_printstr): Ditto.
7262 * objc-lang.c (objc_printstr): Ditto.
7263 * m2-lang.c (m2_printstr): Ditto.
7264 * jv-valprint.c (java_print_value_fields): Ditto.
7265 * f-lang.c (f_printstr): Ditto.
7266 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
7267 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
7268 for repeat_count_threshold.
7269 * Makefile.in (cp-valprint.o): Update dependencies.
7271 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
7273 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
7274 (examine_prologue): Support looking through leaf functions, knowing
7275 they start with mov r2,r12. Support skipping over indirect stores
7276 of the input registers. Upon hitting a non-nop branch instruction
7277 or predicated instruction, bail out by setting lim_pc to the current
7278 pc value in the loop. At the end, if the lim_pc value is still
7279 beyond our calculated value and we have trust_limit set,
7280 use the lim_pc value.
7282 2003-05-15 Andrew Cagney <cagney@redhat.com>
7284 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
7285 generic_find_dummy_frame.
7286 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
7287 (deprecated_generic_find_dummy_frame): Update.
7288 (deprecated_read_register_dummy): Update.
7289 * frame.c (deprecated_generic_get_saved_register): Update.
7291 2003-05-15 Theodore A. Roth <troth@openavr.org>
7293 * avr-tdep.c (avr_breakpoint_from_pc): New function.
7294 (avr_gdbarch_init): Set breakpoint_from_pc method.
7296 2003-05-15 Andrew Cagney <cagney@redhat.com>
7298 * regcache.c (build_regcache): Set deprecated_register_valid
7300 (deprecated_grub_regcache_for_register_valid): Delete function.
7301 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
7304 2003-05-15 David Carlton <carlton@bactrian.org>
7306 Committed by Elena Zannoni <ezannoni@redhat.com>
7307 * symtab.c (lookup_symbol_aux): Delete calls to
7308 lookup_symbol_aux_minsyms.
7309 (lookup_symbol_aux_minsyms): Comment out function and
7310 prototype. Delete lookup by mangled name.
7312 2003-05-14 Kevin Buettner <kevinb@redhat.com>
7314 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
7315 correctly indicate an empty stack and ``stack_allocated'' to the
7316 indicate the number of elements initially allocated.
7317 (dwarf_expr_grow_stack): Simplify method for computing new
7318 stack size. Don't loop infinitely if ``stack_len'' is zero.
7319 (execute_stack_op): Move ``ctx->in_reg'' initialization
7320 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
7321 be used in conjuction with DW_OP_piece. Revise error message
7324 2003-05-14 Theodore A. Roth <troth@openavr.org>
7326 * MAINTAINERS: Update my email address.
7327 * avr-tdep.c: Ditto.
7329 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
7331 * symtab.h (enum domain_enum): Rename from namespace_enum.
7332 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
7333 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
7334 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
7335 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
7336 TYPES_NAMESPACE, METHODS_NAMESPACE.
7337 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
7338 (struct symbol, struct partial_symbol): Rename field
7339 'namespace_enum namespace' to 'domain_enum domain'.
7340 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
7341 Delete old define kludge for namespace.
7343 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
7344 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
7345 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
7346 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
7347 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
7348 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
7349 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
7350 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
7351 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
7352 occurrences of the above.
7354 2003-05-14 Ian Lance Taylor <ian@airs.com>
7356 * Makefile.in (install-only): Use $(SHELL) when running
7359 2003-05-13 Ian Lance Taylor <ian@airs.com>
7361 * MAINTAINERS (write after approval): Add myself.
7363 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
7364 second and third arguments.
7365 * ser-tcp.c (_initialize_ser_tcp): Likewise.
7366 * ser-unix.c (_initialize_ser_hardwire): Likewise.
7368 2003-05-13 Andrew Cagney <cagney@redhat.com>
7370 * defs.h (store_address): Delete declaration.
7371 findvar.c (store_address): Delete function.
7372 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
7373 store_unsigned_integer.
7374 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
7375 * v850-tdep.c (v850_push_arguments): Ditto.
7376 * sparc-tdep.c (sparc_get_saved_register): Ditto.
7377 * sh-tdep.c (sh64_get_saved_register): Ditto.
7378 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
7379 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
7380 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
7381 (mips_get_saved_register): Ditto.
7382 * ia64-tdep.c (ia64_get_saved_register): Ditto.
7383 (find_func_descr, ia64_push_arguments): Ditto.
7384 * i386-tdep.c (i386_push_arguments): Ditto.
7385 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
7386 * frv-tdep.c (frv_push_arguments): Ditto.
7387 * frame.c (legacy_saved_regs_prev_register): Ditto.
7388 (deprecated_generic_get_saved_register): Ditto.
7389 * findvar.c (unsigned_address_to_pointer): Ditto.
7390 * dwarf2read.c (dwarf2_const_value): Ditto.
7391 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7392 * alpha-tdep.c (alpha_push_arguments): Ditto.
7394 2003-05-12 J. Brobecker <brobecker@gnat.com>
7396 * NEWS: Mention that the hppa-hpux port has been partially
7397 multiarched (32bit ABIT only, so far).
7399 2003-05-11 Andrew Cagney <cagney@redhat.com>
7401 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
7402 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
7403 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
7404 sim/testsuite/sim/arm/misaligned2.ms, and
7405 sim/testsuite/sim/arm/misaligned3.ms.
7406 * disasm.h (struct ui_file): Add opaque struct declaration.
7407 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
7408 * frame.h (struct ui_file): Ditto.
7410 2003-05-11 Mark Kettenis <kettenis@gnu.org>
7412 * value.h: Pretty print.
7414 2003-05-10 Mark Kettenis <kettenis@gnu.org>
7416 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
7418 2003-05-08 Andrew Cagney <cagney@redhat.com>
7420 * regcache.h (max_register_size): Delete declaration.
7421 * regcache.c (max_register_size): Delete function.
7422 (struct regcache_descr): Delete field "max_register_size".
7423 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
7424 registers fit in MAX_REGISTER_SIZE.
7425 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
7426 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
7427 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
7428 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
7429 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
7430 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
7431 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
7432 * dve3900-rom.c, hppa-tdep.c: Ditto.
7434 2003-05-08 David Carlton <carlton@math.stanford.edu>
7436 * valops.c (push_word): Fix typo.
7438 2003-05-08 Andrew Cagney <cagney@redhat.com>
7440 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
7441 * gdbarch.h: Re-generate.
7442 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
7443 (legacy_max_register_raw_size): Delete declaration.
7444 * regcache.c (legacy_max_register_raw_size): Delete function.
7445 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
7446 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
7447 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
7448 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
7449 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
7450 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
7451 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
7452 * findvar.c, dwarf2cfi.c: Ditto.
7454 2003-05-08 Andrew Cagney <cagney@redhat.com>
7456 * mips-tdep.c (read_signed_register): New function, moved to here
7458 (read_signed_register_pid): Ditto.
7459 * regcache.c (read_signed_register_pid): Delete function, moved to
7461 (read_signed_register): Ditto.
7462 * regcache.h (read_signed_register): Delete declaration.
7463 (read_signed_register_pid): Delete declaration.
7465 2003-05-08 Andrew Cagney <cagney@redhat.com>
7467 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
7468 * gdbarch.h: Re-generate.
7469 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
7470 (legacy_max_register_virtual_size): Delete declaration.
7471 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
7472 * d10v-tdep.c (d10v_print_registers_info): Ditto.
7473 * tracepoint.c (memrange_sortmerge): Ditto.
7474 * sparc-tdep.c (sparc_print_registers): Ditto.
7475 * regcache.c (legacy_max_register_virtual_size): Delete function.
7477 2002-05-08 J. Brobecker <brobecker@gnat.com>
7479 * fork-child.c (escape_bang_in_quoted_argument): New function.
7480 (fork_inferior): Escape '!' characters in quoted arguments
7483 2003-05-08 J. Brobecker <brobecker@gnat.com>
7485 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
7486 the language of the CU is not currently supported by GDB.
7488 2003-05-08 J. Brobecker <brobecker@gnat.com>
7490 * defs.h (language): Add language_minimal enum value.
7491 * c-lang.c (minimal_language_defn): New language definition.
7492 (_initialize_c_language): Add the new minimal language to the list
7493 of languages known to GDB.
7495 2003-05-08 Kevin Buettner <kevinb@redhat.com>
7497 * frame.c (get_frame_type): Don't attempt to lazily initialize
7498 frame's unwinder for legacy frames.
7500 2003-05-07 Andrew Cagney <cagney@redhat.com>
7502 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
7503 and "regcache" parameters.
7504 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
7506 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7508 * dwarf2read.c (dwarf_decode_lines): Only use output of
7509 check_cu_functions() when calling record_line(). Do not update
7510 the current address.
7512 2003-05-07 Andrew Cagney <cagney@redhat.com>
7514 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
7517 2003-05-07 Jim Blandy <jimb@redhat.com>
7519 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
7520 'maint info symtabs' and 'maint info psymtabs'.
7521 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
7522 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
7523 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
7524 Declarations updated.
7525 * maint.c (maintenance_list_command): Delete.
7526 (_initialize_maint_cmds): Update calls to add_cmd.
7527 * gdbcmd.h (maintenancelistlist): Delete declaration.
7528 * cli/cli-cmds.c (maintenancelistlist): Delete.
7529 (init_cmd_lists): Don't initialize it.
7530 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
7532 2003-05-07 Andrew Cagney <cagney@redhat.com>
7534 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
7536 (d10v_print_registers_info): Update.
7537 (d10v_dmap_register, d10v_imap_register): Delete functions.
7538 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
7539 and "imap_register".
7540 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
7541 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
7542 * arch-utils.c (generic_remote_translate_xfer_address): Add
7543 "regcache" and "gdbarch" parameters.
7544 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
7545 parameter. Change class to multi-arch.
7546 * gdbarch.h, gdbarch.c: Re-generate.
7547 * remote.c (remote_xfer_memory): Use
7548 gdbarch_remote_translate_xfer_address.
7550 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
7552 * infrun.c (prev_pc): Move declaration ahead of proceed().
7553 (proceed): Refresh prev_pc value before resuming.
7554 (stop_stepping): Remove code to refresh prev_pc.
7556 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7558 * nto-tdep.c: Removed stray comment.
7560 2003-05-06 Kris Warkentin <kewarken@qnx.com>
7562 * i386-nto-tdep.c: Fix old K&R function definitions.
7563 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
7564 Also change add_show_from_set() call to add_setshow_cmd().
7565 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
7567 2003-05-05 Andrew Cagney <cagney@redhat.com>
7569 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
7570 (fprint_dummy_frames): New function.
7571 (maintenance_print_dummy_frames): New function.
7572 (_initialize_dummy_frame): Add command "maint print dummy-frames".
7573 * frame.c (fprint_frame_id): Make global.
7574 * frame.h (fprint_frame_id): Declare.
7575 * Makefile.in (dummy-frame.o): Update dependencies.
7577 2003-05-05 Andrew Cagney <cagney@redhat.com>
7579 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
7580 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
7581 SIZEOF_CALL_DUMMY_WORDS.
7582 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
7583 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
7584 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
7585 CALL_DUMMY_BREAKPOINT_OFFSET.
7586 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
7587 CALL_DUMMY_START_OFFSET.
7588 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
7589 * gdbarch.h, gdbarch.c: Re-generate.
7590 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
7591 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
7592 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
7593 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
7594 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
7595 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
7596 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
7597 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
7598 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
7599 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
7600 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
7601 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
7602 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
7603 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
7604 * config/sparc/tm-sparc.h: Update.
7606 2003-05-05 Kris Warkentin <kewarken@qnx.com>
7608 * configure.tgt: Add i[3456]86-*-nto*.
7609 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
7610 * nto-tdep.c: New file. Neutrino target support routines.
7611 * nto-tdep.h: New file. Neutrino target header.
7612 * config/tm-qnxnto.h: New file.
7613 * config/i386/i386nto.mt: New file.
7614 * config/i386/tm-i386nto.h: New file.
7616 2003-05-04 Andrew Cagney <cagney@redhat.com>
7618 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
7619 (load_infrun_state): Ditto.
7620 (struct thread_info): Drop "prev_func_name" field.
7621 * thread.c (load_infrun_state): Update.
7622 (save_infrun_state): Update.
7623 * infrun.c (prev_func_name): Delete variable.
7624 (init_wait_for_inferior): Do not clear prev_func_name.
7625 (stop_stepping, keep_going, context_switch): Do not swap
7627 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
7628 instead of PC_IN_SIGTRAMP.
7630 2003-05-04 Andrew Cagney <cagney@redhat.com>
7632 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7633 REGISTER_BYTE with register_offset_hack.
7634 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
7635 that REGISTER_BYTE is consistent with the regcache.
7636 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
7637 * gdbarch.h, gdbarch.c: Regenerate.
7639 2003-05-04 Mark Kettenis <kettenis@gnu.org>
7641 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
7642 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
7644 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
7646 2003-05-03 J. Brobecker <brobecker@gnat.com>
7648 From Thierry Schneider <tpschneider1@yahoo.com>
7649 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
7650 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
7651 (mi-cmd-symbol.o): Add rule.
7653 2003-05-03 Andrew Cagney <cagney@redhat.com>
7655 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
7656 comments noteing that it replaces the old FIX_CALL_DUMMY code.
7657 * gdbarch.h, gdbarch.c: Re-generate.
7658 * d10v-tdep.c (d10v_push_dummy_code): New function.
7659 (d10v_gdbarch_init): Set push_dummy_code.
7660 * infcall.c (legacy_push_dummy_code): New function.
7661 (generic_push_dummy_code): New function.
7662 (push_dummy_code): New function.
7663 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
7664 instead of dummy_addr, to push_dummy_call. Move call to
7665 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
7667 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
7669 2003-05-03 Andrew Cagney <cagney@redhat.com>
7671 * disasm.h (print_insn): Declare.
7672 * disasm.c (init_gdb_disassemble_info): New function.
7673 (gdb_disassembly): Call init_gdb_disassemble_info.
7674 (gdb_print_insn): New function.
7675 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
7676 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
7677 * mcore-tdep.c: Include "disasm.h"
7678 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
7679 * d10v-tdep.c: Include "disasm.h".
7680 (display_trace): Call gdb_print_insn, instead of print_insn.
7681 (print_insn): Delete function.
7682 * printcmd.c: Include "disasm.h".
7683 (print_insn): Delete function.
7684 (print_formatted): Call gdb_print_insn, instead of print_insn.
7685 * Makefile.in (printcmd.o): Update dependencies.
7686 (mcore-tdep.o, d10v-tdep.o): Ditto.
7688 2003-05-02 Andrew Cagney <cagney@redhat.com>
7690 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
7691 PC_REGNUM, re-indent.
7692 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
7693 PC_REGNUM isn't set.
7695 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
7696 * gdbarch.h, gdbarch.c: Re-generate.
7697 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
7698 register_virtual_size, pc_regnum, or register_bytes.
7699 (D10V_PC_REGNUM): Rename _PC_REGNUM.
7700 (d10v_register_type): Use D10V_PC_REGNUM.
7701 (d10v_print_registers_info, d10v_read_pc): Ditto.
7702 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
7703 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
7705 2003-05-02 David Carlton <carlton@bactrian.org>
7707 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
7708 the name with mstrsave.
7710 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
7712 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
7713 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
7714 (host_charset_name, target_charset_name): New vars for use by
7716 (host_charset_enum, target_charset_enum): New enums for set/show
7718 (set_charset_sfunc, set_host_charset_sfunc,
7719 set_target_charset_sfunc): New functions.
7720 (set_host_charset, set_target_charset): Make static.
7721 (list_charsets, set_host_charset_command,
7722 set_target_charset_command): Delete functions.
7723 (show_charset_command): Rewrite as....
7724 (show_charset): Hook this up with the set/show command mechanism.
7725 (_initialize_charset): Change names of charsets to match the
7726 set/show enums. Use host_charset_name and target_charset_name.
7727 Use set/show mechanism for charset, host-charset, target-charset
7728 commands. Do not make 'show host-charset' and 'show
7729 target-charset' be aliases of 'show charset'.
7731 * charset.h (set_host_charset, set_target_charset): Don't export,
7732 they are not used outside the file.
7734 2003-05-01 Andrew Cagney <cagney@redhat.com>
7736 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
7737 (gdb_disassembly): Make "di" non static, always initialize and
7738 cleanup. Always use dis_asm_read_memory.
7739 (gdb_dis_asm_read_memory): Delete function.
7741 2003-05-01 Andrew Cagney <cagney@redhat.com>
7743 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
7744 (d10v_gdbarch_init): Set frame_align instead of stack_align.
7746 2003-04-30 Andrew Cagney <cagney@redhat.com>
7748 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
7749 "tm_print_insn_info".
7750 (TARGET_PRINT_INSN_INFO): Delete macro.
7751 (dis_asm_read_memory): Delete function declaration.
7752 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7753 (tm_print_insn_info): Delete variable definition.
7754 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
7755 * gdbarch.h, gdbarch.c: Re-generate.
7756 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
7757 "deprecated_tm_print_insn_info".
7758 * mcore-tdep.c (mcore_dump_insn): Ditto.
7759 * mips-tdep.c (mips_gdbarch_init): Ditto.
7760 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
7761 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
7762 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
7763 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
7764 instead of TARGET_PRINT_INSN_INFO, add comment.
7765 * s390-tdep.c (s390_get_frame_info): Instead of
7766 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
7767 (s390_check_function_end, s390_is_sigreturn): Ditto.
7768 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
7769 (dis_asm_memory_error, dis_asm_print_address): Ditto.
7770 * disasm.c: Include "gdbcore.h".
7771 (_initialize_disasm): New function, initialize
7772 "deprecated_tm_print_insn_info".
7773 (deprecated_tm_print_insn_info): New variable.
7774 (dis_asm_read_memory): Moved from "corefile.c", made static.
7775 (dis_asm_print_address, dis_asm_memory_error): Ditto.
7776 * Makefile.in (disasm.o): Update dependencies.
7778 2003-04-30 Andrew Cagney <cagney@redhat.com>
7780 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
7782 2003-04-29 Adam Fedor <fedor@gnu.org>
7784 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
7785 * infcall.c (find_function_addr): Make non-static.
7786 * infcall.h (find_function_addr): Declare.
7787 * Makefile.in (eval.o): Update dependencies.
7789 2003-04-28 Adam Fedor <fedor@gnu.org>
7791 * symtab.c (symbol_find_demangled_name): Check for and demangle
7793 (symbol_init_demangled_name): Init for language_objc as well.
7795 2003-04-28 Andrew Cagney <cagney@redhat.com>
7797 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
7798 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
7799 * gdbarch.h, gdbarch.c: Re-generate.
7800 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
7801 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
7802 * inferior.h (deprecated_read_fp): Rename read_fp.
7803 (generic_target_read_fp): Delete declaration.
7804 * regcache.c (generic_target_read_fp): Delete function.
7805 (deprecated_read_fp): Replace read_fp, use
7806 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
7807 * d10v-tdep.c (d10v_read_fp): Delete function.
7808 (d10v_gdbarch_init): Do not set deprecated_read_fp.
7810 * sparc-tdep.c (sparc_gdbarch_init): Do not set
7811 deprecated_target_read_fp to generic_target_read_fp.
7812 * sh-tdep.c (sh_gdbarch_init): Ditto.
7813 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7814 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7815 * frv-tdep.c (frv_gdbarch_init): Ditto.
7817 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
7818 deprecated_fp_regnum.
7819 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7820 * vax-tdep.c (vax_gdbarch_init): Ditto.
7821 * v850-tdep.c (v850_gdbarch_init): Ditto.
7822 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7823 * sh-tdep.c (sh_gdbarch_init): Ditto.
7824 * s390-tdep.c (s390_gdbarch_init): Ditto.
7825 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7826 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7827 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7828 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7829 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7830 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7831 * i386-tdep.c (i386_gdbarch_init): Ditto.
7832 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7833 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7834 * frv-tdep.c (frv_gdbarch_init): Ditto.
7835 * cris-tdep.c (cris_gdbarch_init): Ditto.
7836 * avr-tdep.c (avr_gdbarch_init): Ditto.
7837 * arm-tdep.c (arm_gdbarch_init): Ditto.
7838 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7840 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
7841 * v850-tdep.c (v850_gdbarch_init): Ditto.
7842 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7843 * sh-tdep.c (sh_gdbarch_init): Ditto.
7844 * s390-tdep.c (s390_gdbarch_init): Ditto.
7845 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7846 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7847 * mips-tdep.c (mips_gdbarch_init): Ditto.
7848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7849 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7850 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7851 * frv-tdep.c (frv_gdbarch_init): Ditto.
7852 * avr-tdep.c (avr_gdbarch_init): Ditto.
7853 * arm-tdep.c (arm_gdbarch_init): Ditto.
7855 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
7856 DEPRECATED_FP_REGNUM.
7857 (vax_push_dummy_frame, vax_pop_frame): Ditto.
7858 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
7859 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
7860 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
7861 (sparc32_register_virtual_type): Ditto.
7862 * sh-tdep.c (sh64_frame_chain): Ditto.
7863 (sh64_get_saved_register, sh64_pop_frame): Ditto.
7864 (sh_nofp_frame_init_saved_regs): Ditto.
7865 (sh64_nofp_frame_init_saved_regs): Ditto.
7866 (sh_fp_frame_init_saved_regs): Ditto.
7867 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
7868 * remote-e7000.c (fetch_regs_from_dump): Ditto.
7869 * procfs.c (procfs_fetch_registers): Ditto.
7870 (procfs_store_registers): Ditto.
7871 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
7872 (store_inferior_registers, fetch_core_registers): Ditto.
7873 (fetch_kcore_registers, clear_regs): Ditto.
7874 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
7875 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
7876 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
7877 * nlm/i386.c (do_status): Ditto.
7878 * mipsv4-nat.c (supply_gregset): Ditto.
7879 * mips-tdep.c: Ditto for comments.
7880 * mips-nat.c (fetch_inferior_registers): Ditto.
7881 (store_inferior_registers, fetch_core_registers): Ditto.
7882 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
7883 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
7884 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
7885 (i386_do_pop_frame, i386_register_type): Ditto.
7886 * hppa-tdep.c (hppa_frame_chain): Ditto.
7887 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
7888 (hppa_pop_frame, hppa_read_fp): Ditto.
7889 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
7890 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
7891 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
7892 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
7893 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
7894 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
7895 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
7896 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
7897 * blockframe.c: Ditto for comments.
7898 * arch-utils.h: Ditto for comments.
7899 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
7900 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
7901 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
7902 * alpha-tdep.h: Ditto for comments.
7903 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
7904 (alpha_cannot_store_register): Ditto.
7905 (alpha_push_dummy_frame): Ditto.
7906 * alpha-nat.c (supply_gregset): Ditto.
7908 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
7909 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
7910 * config/sparc/tm-sparc.h: Update comment.
7912 * hppa-tdep.c (hppa_init_extra_frame_info): Use
7913 deprecated_read_fp instead of TARGET_READ_FP.
7914 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
7915 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
7916 * sparc-tdep.c (sparc_init_extra_frame_info): Use
7917 deprecated_read_fp instead of read_fp.
7918 * s390-tdep.c (s390_push_arguments): Ditto.
7919 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7920 * frame.h: Ditto in comments.
7921 * frame.c (legacy_get_prev_frame): Ditto.
7922 * dummy-frame.c (dummy_frame_this_id): Ditto.
7923 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7925 2003-04-28 Andrew Cagney <cagney@redhat.com>
7927 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
7928 * gdbarch.h, gdbarch.c: Re-generate.
7929 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
7930 * vax-tdep.c (_initialize_vax_tdep): Update.
7931 * v850-tdep.c (_initialize_v850_tdep): Update.
7932 * sparc-tdep.c (_initialize_sparc_tdep): Update.
7933 * s390-tdep.c (_initialize_s390_tdep): Update.
7934 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
7935 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
7936 * mips-tdep.c (_initialize_mips_tdep): Update.
7937 * mcore-tdep.c (_initialize_mcore_tdep): Update.
7938 * m68k-tdep.c (_initialize_m68k_tdep): Update.
7939 * ia64-tdep.c (_initialize_ia64_tdep): Update.
7940 * hppa-tdep.c (_initialize_hppa_tdep): Update.
7941 * h8300-tdep.c (_initialize_h8300_tdep): Update.
7942 * frv-tdep.c (_initialize_frv_tdep): Update.
7943 * cris-tdep.c (cris_delayed_get_disassembler): Update.
7944 (_initialize_cris_tdep): Update.
7945 * arch-utils.c (legacy_print_insn): Update.
7946 * alpha-tdep.c (_initialize_alpha_tdep): Update.
7948 2003-04-26 Adam Fedor <fedor@gnu.org>
7950 * linespec.c (decode_objc): New function to decode ObjC calls
7951 (decode_line_1): Check for ObjC calls (using decode_objc)
7952 * Makefile (linespec.o): Update dependencies.
7954 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
7956 * breakpoint.h (struct breakpoint_ops): New.
7957 (struct breakpoint): Add ops member.
7959 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
7960 (mention): Use new breakpoint ops member.
7961 (set_raw_breakpoint): Initialize ops field to NULL.
7962 (print_exception_catchpoint, print_one_exception_catchpoint)
7963 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
7964 (gnu_v3_exception_catchpoint_ops): New.
7965 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
7967 2003-04-25 Adam Fedor <fedor@gnu.org>
7969 * Makefile.in (COMMON_OBS): Add objc-lang.o
7971 2003-04-25 Andrew Cagney <cagney@redhat.com>
7973 * d10v-tdep.c (print_insn): Delete function.
7974 (display_trace): Use TARGET_PRINT_INSN.
7975 (_initialize_d10v_tdep): Do not set tm_print_insn.
7976 (d10v_gdbarch_init): Set print_insn.
7978 2003-04-25 Andrew Cagney <cagney@redhat.com>
7980 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
7981 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
7982 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
7983 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
7984 (nr_dmap_regs, a0_regnum): ... new functions.
7985 (d10v_print_registers_info): Use a0_regnum, use register_size.
7986 (d10v_register_byte): Delete function.
7987 (d10v_register_raw_size): Delete function.
7988 (d10v_register_type): Use a0_regnum.
7989 (d10v_print_registers_info): Use a0_regnum.
7990 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
7991 (d10v_gdbarch_init): Do not set register_byte or
7992 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
7993 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
7995 (trace_command): Use XCALLOC.
7996 (print_insn): Delete reference to tm_print_insn.
7997 (saved_regs_unwinder): Use store_unsigned_integer instead of
7999 * frame.h (FRAME_OBSTACK_CALLOC): Define
8001 2003-04-25 David Carlton <carlton@bactrian.org>
8003 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
8005 2003-04-24 Adam Fedor <fedor@gnu.org>
8007 * objc-lang.c: Include "valprint.h"
8008 * Makefile.in (objc-lang.o): Update dependencies.
8010 2003-04-24 Adam Fedor <fedor@gnu.org>
8012 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
8013 architecture dependant compilation and mark as unimplemented
8014 (until they get put in the gdbarch vector).
8016 2003-04-23 David Carlton <carlton@bactrian.org>
8018 * cp-support.c (cp_find_first_component): Accept 'operator' in
8021 2003-04-23 Andrew Cagney <cagney@redhat.com>
8023 * infcall.c (call_function_by_hand): Eliminate redundant
8024 indentation. Move "saved_async" and "old_cleanups" to where they
8027 2003-04-23 Andrew Cagney <cagney@redhat.com>
8029 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
8030 and "buffer". Move the "name" code to where it is needed.
8032 2003-04-23 Andrew Cagney <cagney@redhat.com>
8034 * infcall.c (call_function_by_hand): Move variables "start_sp",
8035 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
8036 code to ON_STACK switch branch.
8038 2003-04-23 Andrew Cagney <cagney@redhat.com>
8040 * infcall.c (call_function_by_hand): Make declaration of "i",
8041 "sal", "bpt" and "old_sp" more local to their use. Delete #if
8044 2003-04-23 Andrew Cagney <cagney@redhat.com>
8046 * infcall.c (call_function_by_hand): Delete variable
8047 "n_method_args". Localize "param_type"'s declaration to the loop
8048 that it is used. Reinstate code assigning to said variable -
8049 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
8050 Rationalize code using "param_type".
8052 2003-04-22 Andrew Cagney <cagney@redhat.com>
8054 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
8055 compute the breakpoint address. Only call FIX_CALL_DUMMY when
8056 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
8057 to DEPRECATED_PUSH_RETURN_ADDRESS.
8059 2003-04-22 Kevin Buettner <kevinb@redhat.com>
8061 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
8062 on the DWARF2 register number prior to fetching a register.
8064 2003-04-22 J. Brobecker <brobecker@gnat.com>
8066 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
8067 Update all the tests using SOFT_FLOAT considering the fact that
8068 this macro was always set to 0.
8069 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
8070 considering the fact that this macro was always set to 0.
8071 * hppa-tdep.h (hppa_store_return_value): Likewise.
8072 (hppa_extract_return_value): Likewise.
8074 2003-04-22 J. Brobecker <brobecker@gnat.com>
8076 * config/pa/tm-hppa.h: Remove obsolete code, was used by
8077 the hppa-pro target only.
8079 2003-04-21 J. Brobecker <brobecker@gnat.com>
8081 Ongoing multi-arch conversion effort for HP/UX:
8082 * config/pa/tm-hppa.h: Move all macro that are no longer
8083 defined now that GDB_MULTI_ARCH is now set to 1 from here...
8084 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
8086 2003-04-21 J. Brobecker <brobecker@gnat.com>
8088 * config/pa/tm-hppa.h: Obsolete a section that was only used
8091 2003-04-21 J. Brobecker <brobecker@gnat.com>
8093 Ongoing multi-arch conversion for HP/UX.
8094 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
8095 if already defined (allows hppa64 to stay non-multiarched for now).
8096 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
8098 2003-04-21 Andrew Cagney <cagney@redhat.com>
8100 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
8102 2003-04-21 Andrew Cagney <cagney@redhat.com>
8104 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
8105 "i386_num_mmx_regs".
8107 2003-04-21 Andrew Cagney <cagney@redhat.com>
8109 * infcall.c: New file.
8110 * infcall.h: New file.
8111 * valarith.c: Include "infcall.h".
8112 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
8113 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
8114 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
8115 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
8116 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
8117 (SFILES): Add "infcall.c"
8118 (COMMON_OBS): Add "infcall.o".
8119 (infcall.o): Specify dependencies.
8120 * value.h (call_function_by_hand): Delete declaration.
8121 * inferior.h (run_stack_dummy): Delete declaration.
8122 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
8123 (run_stack_dummy): Move to "infcall.c", merged into
8124 call_function_by_hand.
8125 * valops.c (call_function_by_hand): Moved to "infcall.c".
8126 (find_function_addr, value_arg_coerce): Ditto.
8127 (unwindonsignal_p, coerce_float_to_double): Ditto.
8128 (_initialize_valops): Move "set/show coerce-float-to-double", and
8129 "set/show unwindonsignal" commands to "infcall.c".
8130 * v850-tdep.c, target.h: Update comments.
8131 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
8132 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
8133 (sh64_init_extra_frame_info): Update comments.
8134 * mn10300-tdep.c: Update comments.
8135 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
8136 * config/sparc/tm-sparc.h: Update comments.
8137 * breakpoint.h: Update comments.
8138 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
8139 * arm-tdep.c: Update comment.
8141 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8143 * i386-tdep.c (i386_num_register_names): New variable.
8144 (i386_num_mmx_regs): Renamed from mmx_num_regs.
8145 (MM0_REGNUM): Remove redundant parentheses in define.
8146 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
8147 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
8148 i386_mxcsr_regnum_p): Remove redundant parentheses.
8149 (i386_register_name): Use i386_num_register_names.
8151 * i386-tdep.c (i386_extract_return_value,
8152 i386_store_return_value): Correct check for availability of
8153 floating-point registers.
8155 * i386-tdep.c (i386_frame_num_args): Remove function.
8156 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
8158 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
8159 mmx_regnum_to_fp_regnum. Adjust all callers.
8161 * i386-tdep.c (i386_get_longjmp_target): Use
8162 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
8163 and TARGET_CHAR_BIT. Use extract_typed_address instead of
8166 2003-04-19 Mark Kettenis <kettenis@gnu.org>
8168 * core-regset.c: Update comments to reflect reality. Re-order
8170 (fetch_core_registers): Use switch instead of if. Remove
8171 redundant prototype.
8173 2003-04-18 Jim Blandy <jimb@redhat.com>
8175 * s390-tdep.c (s390_frame_align): New function.
8176 (s390_gdbarch_init): Register it with the gdbarch object.
8178 2003-04-17 Richard Henderson <rth@redhat.com>
8180 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
8182 2003-04-17 Michael Snyder <msnyder@redhat.com>
8183 Karen Bennet <bennet@redhat.com>
8185 Committed by Elena Zannoni <ezannoni@redhat.com>
8186 * gdb_gcore.sh: New script to create a core dump of a process.
8188 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
8190 * values.c (value_being_returned): Don't fetch the return
8191 value if the return type is void.
8193 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8195 * thread-db.c: Reindented.
8197 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8199 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
8200 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
8227 2003-04-16 Kevin Buettner <kevinb@redhat.com>
8229 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
8230 the size of ``long double'' to 16, instead of 8.
8232 2003-04-16 Mark Kettenis <kettenis@gnu.org>
8234 * i386-linux-nat.c: Add some whitespace to make things more
8236 (fetch_register, store_register, fetch_inferior_registers,
8237 store_inferior_registers): Get rid of assignment in if-statement.
8238 (store_register): Fix typo in error message.
8240 2003-04-16 Andrew Cagney <cagney@redhat.com>
8242 * utils.c (xmmalloc): Always allocate something, matches
8243 libiberty/xmalloc's semantics.
8244 (xmrealloc, xmcalloc): Ditto.
8246 2003-04-16 Andrew Cagney <cagney@redhat.com>
8248 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
8250 (get_frame_type): Initialize unwind and type when needed.
8251 (get_frame_id, frame_register_unwind): Ditto.
8253 2003-04-16 Andrew Cagney <cagney@redhat.com>
8255 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
8257 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
8258 * sparcl-stub.c: Obsolete file.
8259 * config/sparc/tm-sparclet.h: Obsolete file.
8260 * sparclet-stub.c: Obsolete file.
8261 * sparclet-rom.c: Obsolete file.
8262 * sparcl-tdep.c: Obsolete file.
8263 * config/sparc/tm-sparclite.h: Obsolete file.
8264 * config/sparc/sparclite.mt: Obsolete file.
8265 * config/sparc/sparclet.mt: Obsolete file.
8266 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
8267 sparc86x-*-* obsolete.
8269 2003-04-15 David Carlton <carlton@math.stanford.edu>
8271 * Makefile.in (SFILES): Add cp-namespace.c.
8272 (COMMON_OBS): Add cp-namespace.o.
8273 (block.o): Depend on gdb_obstack_h and cp_support_h.
8274 (buildsym.o): Depend on cp_support_h.
8275 (cp-namespace.o): New.
8276 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
8277 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
8278 (dwarf2read.o): Depend on cp_support_h.
8279 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
8280 * dwarf2read.c (process_die): Set processing_has_namespace_info,
8281 processing_current_namespace.
8282 (read_namespace): Update processing_current_namespace; check for
8283 anonymous namespaces.
8284 (dwarf2_name): New function.
8285 (dwarf2_extension): Ditto.
8286 * cp-support.h: Update copyright, contributors.
8287 Add inclusion guards.
8288 Add opaque declaration for structs obstack, block, symbol.
8289 (struct using_direct): New struct.
8290 Add declarations for cp_find_first_component,
8291 cp_entire_prefix_len, processing_has_namespace_info,
8292 processing_current_namespace, cp_is_anonymous,
8293 cp_add_using_directive, cp_initialize_namespace,
8294 cp_finalize_namespace, cp_set_block_scope,
8295 cp_scan_for_anonymous_namespaces.
8296 * cp-namespace.c: New file.
8297 * cp-support.c: Update copyright.
8298 Include ctype.h, gdb_assert.h, gdbcmd.h.
8299 New variable maint_cplus_cmd_list.
8300 (cp_find_first_component): New function.
8301 (cp_entire_prefix_len, maint_cplus_command)
8302 (first_component_command, _initialize_cp_support): Ditto.
8303 * buildsym.c: Include cp-support.h.
8304 New variable using_list.
8305 (add_symbol_to_list): Check for anonymous namespaces.
8306 (finish_block): Set block's scope.
8307 (start_symtab): Initialize C++ namespace support.
8308 (end_symtab): Finalize C++ namespace support.
8309 * block.h: Add opaque declarations for structs
8310 block_namespace_info, using_direct, and obstack.
8311 Add declarations for block_set_scope and block_set_using.
8312 (struct block): Add 'language_specific' member.
8313 (BLOCK_NAMESPACE): New macro.
8314 * block.c: Include gdb_obstack.h and cp-support.h.
8315 (struct block_namespace_info): New struct.
8316 (block_set_scope): New function.
8317 (block_set_using, block_initialize_namespace): Ditto.
8319 2003-04-14 Kevin Buettner <kevinb@redhat.com>
8321 * solib-svr4.c (svr4_have_link_map_offsets): New function.
8322 (locate_base): Return early if there aren't any link map offsets.
8323 (svr4_solib_create_inferior_hook): Warn if shared library support
8326 2003-04-14 David Carlton <carlton@math.stanford.edu>
8328 * symtab.c (symbol_set_names): Add prefix when storing Java names
8329 in hash table. Fix for PR java/1039.
8331 2003-04-14 David Carlton <carlton@math.stanford.edu>
8333 * symtab.c (symbol_set_names): Rename 'name' arg to
8334 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
8335 * symtab.h: Change 'name' argument in declaration of
8336 symbol_set_names to 'linkage_name'.
8337 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
8339 2003-04-14 Andrew Cagney <cagney@redhat.com>
8341 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
8342 return the fully sign-extended register value.
8343 (get_frame_pointer): Ditto.
8344 (mips_pop_frame): Initialize "proc_desc" after checking for a
8347 2003-04-14 Andrew Cagney <cagney@redhat.com>
8349 * mips-tdep.c (mips_push_dummy_frame): Delete function.
8350 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
8351 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
8352 (mips_push_register): Delete function.
8353 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
8356 2003-04-14 Jim Blandy <jimb@redhat.com>
8358 * symmisc.c: #include "gdb_regex.h".
8359 (maintenance_list_symtabs, maintenance_list_psymtabs): New
8361 * maint.c (maintenance_list_command): New function.
8362 (_initialize_maint_cmds): Register the above as commands.
8363 * symtab.h (maintenance_list_symtabs,
8364 maintenance_list_psymtabs): New declarations.
8365 * cli/cli-cmds.c (maintenancelistlist): New variable.
8366 (init_cmd_lists): Initialize it.
8367 * cli/cli-cmds.h (maintenancelistlist): New declaration.
8368 * gdbcmd.h (maintenancelistlist): New declaration.
8369 * Makefile.in (symmisc.o): Update dependencies.
8371 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
8373 * s390-nat.c: Include asm/types.h for addr_t.
8375 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
8377 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
8378 actually incoming type.
8380 2003-04-13 Andrew Cagney <cagney@redhat.com>
8382 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
8383 get_next_frame and get_frame_saved_regs.
8385 2003-04-13 Andrew Cagney <cagney@redhat.com>
8387 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
8388 of gdbarch_num_regs.
8390 2003-04-13 Andrew Cagney <cagney@redhat.com>
8392 * frame.h: Mention what replaced what in "struct frame_info".
8393 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
8394 deprecated_update_frame_base_hack and
8395 deprecated_update_frame_pc_hack.
8396 * hppa-tdep.c: Ditto.
8398 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8400 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
8401 to read_reg and update its comment. Remove regnum member.
8402 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
8403 Don't call read_reg when setting in_reg. Call read_reg to get
8404 the frame base if it's in a register. Return the register number
8405 on the stack instead of in the context. Remove extra arguments
8407 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
8408 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
8409 the register number on the expression stack.
8410 (needs_frame_read_reg): Remove extra arguments.
8412 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8414 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
8416 (execute_stack_op): All callers updated.
8417 * dwarf2expr.h: Add prototype for dwarf2_read_address.
8418 * dwarf2loc.c (find_location_expression): New function.
8419 (dwarf_expr_frame_base): Call it.
8420 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
8421 (dwarf2_tracepoint_var_ref): New function, broken out from
8422 locexpr_tracepoint_var_ref.
8423 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
8425 (loclist_read_variable, loclist_read_needs_frame): New functions.
8426 (loclist_describe_location, loclist_tracepoint_var_ref): New
8428 (dwarf2_loclist_funcs): New struct location_funcs.
8429 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
8430 (struct dwarf2_locexpr_baton): Add comments.
8431 (dwarf2_loclist_funcs): New extern.
8432 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
8433 base_address and base_known.
8434 (dwarf_loc_buffer): New variable.
8435 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
8436 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
8437 (dwarf2_has_info): Initialize dwarf_loc_offset.
8438 (dwarf2_build_psymtabs): Read in .debug_loc.
8439 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
8441 (psymtab_to_symtab_1): Likewise. Move base address calculation
8443 (dwarf2_get_pc_bounds): ... here. Use the base address from
8445 (dwarf2_symbol_mark_computed): Handle location lists.
8447 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
8449 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
8450 if the linkage name demangled successfully.
8452 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8454 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
8455 disassmbly_flavour): Removed.
8457 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
8459 2003-04-13 Mark Kettenis <kettenis@gnu.org>
8461 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
8463 2003-04-12 Andrew Cagney <cagney@redhat.com>
8465 * frame.h (struct frame_info): Move definition from here ...
8466 * frame.c (struct frame_info): ... to here.
8468 2003-04-12 Andrew Cagney <cagney@redhat.com>
8470 * gdbthread.h (save_infrun_state): Delete parameter
8472 (struct thread_info): Delete field "prev_func_start".
8473 (load_infrun_state): Ditto.
8474 * thread.c (load_infrun_state, save_infrun_state): Update.
8475 * infrun.c (prev_func_start): Delete variable.
8476 (context_switch, init_wait_for_inferior): Update.
8477 (stop_stepping, keep_going): Update.
8479 2003-04-12 Andrew Cagney <cagney@redhat.com>
8481 * gdbarch.sh: Add missing opaque declarations.
8482 * gdbarch.h: Regnerate.
8483 * symtab.h: Add missing opaque declarations.
8484 * value.h, target.h, symfile.h, stabsread.h: Ditto.
8485 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
8486 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
8487 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
8488 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
8489 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
8490 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
8491 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
8492 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
8493 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
8494 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
8495 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
8496 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
8498 2003-04-11 Andrew Cagney <cagney@redhat.com>
8500 * frame.c (get_frame_id): Return this frame's "id".
8501 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
8503 (legacy_saved_regs_this_id): Replace function body with
8505 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
8506 FRAME_OBSTACK_ZALLOC.
8507 (create_new_frame): Mark the frame ID as valid.
8509 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
8511 * Makefile.in (libbfd_h): Added missing setting.
8512 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
8513 according to the selected ABI.
8515 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
8517 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
8519 2003-04-11 Andrew Cagney <cagney@redhat.com>
8521 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
8522 SAVED_PC_AFTER_CALL.
8523 * gdbarch.h, gdbarch.c: Regenerate.
8524 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8525 * x86-64-tdep.c (x86_64_init_abi): Update.
8526 * vax-tdep.c (vax_gdbarch_init): Update.
8527 * v850-tdep.c (v850_gdbarch_init): Update.
8528 * sparc-tdep.c (sparc_gdbarch_init): Update.
8529 * sh-tdep.c (sh_gdbarch_init): Update.
8530 * s390-tdep.c (s390_gdbarch_init): Update.
8531 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8532 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8533 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8534 * mips-tdep.c (mips_gdbarch_init): Update.
8535 * mcore-tdep.c (mcore_gdbarch_init): Update.
8536 * m68k-tdep.c (m68k_gdbarch_init): Update.
8537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8538 * ia64-tdep.c (ia64_gdbarch_init): Update.
8539 (ia64_saved_pc_after_call): Update declaration.
8540 * i386ly-tdep.c (i386lynx_init_abi): Update.
8541 * i386-tdep.c (i386_gdbarch_init): Update.
8542 * hppa-tdep.c (hppa_gdbarch_init): Update.
8543 * h8300-tdep.c (h8300_gdbarch_init): Update.
8544 * frv-tdep.c (frv_gdbarch_init): Update.
8545 * cris-tdep.c (cris_gdbarch_init): Update.
8546 * avr-tdep.c (avr_gdbarch_init): Update.
8547 * arm-tdep.c (arm_gdbarch_init): Update.
8548 * alpha-tdep.c (alpha_gdbarch_init): Update.
8549 * ns32knbsd-nat.c (frame_num_args): Update.
8550 * ns32k-tdep.c (umax_frame_num_args): Update.
8551 * mips-tdep.c (mips_init_frame_pc_first): Update.
8552 * infrun.c (step_over_function): Update.
8553 * i386-linux-tdep.c (skip_hurd_resolver): Update.
8554 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
8555 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8556 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8557 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8558 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
8559 * arm-linux-tdep.c (skip_hurd_resolver): Update.
8560 * arch-utils.c (init_frame_pc_default): Update.
8561 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8562 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
8565 2003-04-11 Andrew Cagney <cagney@redhat.com>
8567 * i387-tdep.c: Update copyright.
8568 (i387_to_double): Delete function.
8569 (double_to_i387): Delete function.
8571 2003-04-10 Andrew Cagney <cagney@redhat.com>
8573 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
8574 frame's function's address. Simplify.
8575 (d10v_frame_unwind_cache): Check that the frame's function is
8578 2003-04-10 Jim Blandy <jimb@redhat.com>
8580 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
8581 call to set_gdbarch_deprecated_push_arguments.
8583 2003-04-10 Andrew Cagney <cagney@redhat.com>
8585 * frame.c (fprint_frame_id): New function.
8586 (fprint_frame_type, fprint_frame): New function.
8587 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
8588 (create_sentinel_frame, get_frame_id): Ditto.
8589 (frame_id_p, frame_id_eq): Ditto.
8590 (frame_id_inner, create_new_frame): Ditto.
8591 (legacy_get_prev_frame, get_prev_frame): Ditto.
8592 (deprecated_update_frame_pc_hack): Ditto.
8593 (frame_register_unwind): Ditto.
8594 (deprecated_update_frame_base_hack): Ditto.
8596 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8598 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
8599 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
8600 frame_chain function.
8601 * Makefile.in: Add dependencies due to above change.
8603 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
8605 * blockframe.c (legacy_frame_chain_valid): Move call to
8606 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
8609 2003-04-09 Andrew Cagney <cagney@redhat.com>
8611 * frame.h (struct frame_id): Replace "pc" and "base" with
8612 "stack_addr" and "code_addr". Update comments.
8613 (frame_id_build): Update parameter names and comment.
8614 (struct frame_info): Replace "id_p" and "id" with "this_id".
8615 * dummy-frame.c (dummy_frame_this_id): Update.
8616 * breakpoint.c (print_one_breakpoint): Update.
8617 * frame.c (get_frame_id): Update.
8618 (get_frame_base, frame_id_build): Update.
8619 (create_sentinel_frame, legacy_get_prev_frame): Update.
8620 (deprecated_update_frame_base_hack): Update.
8621 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
8622 (frame_id_inner): Ditto.
8624 2003-04-09 Andrew Cagney <cagney@redhat.com>
8626 * defs.h (gdb_print_host_address): Make "addr" parameter a
8628 * utils.c (gdb_print_host_address): Update.
8630 2003-04-09 Kevin Buettner <kevinb@redhat.com>
8632 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
8633 register number for R0 is 0.
8635 2003-04-09 J. Brobecker <brobecker@gnat.com>
8637 * frame.h (struct gdbarch): Add opaque structure definition
8638 to avoid a compilation warning on LynxOS 4.0.
8640 2003-04-09 Andrew Cagney <cagney@redhat.com>
8642 * frame.h (struct frame_info): Delete field "pc". Replace
8643 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
8645 * frame.c (frame_pc_unwind): Update.
8646 (create_sentinel_frame): Do not set "pc".
8647 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
8648 (get_frame_pc): Call frame_pc_unwind.
8649 (deprecated_update_frame_pc_hack): Update.
8650 (create_new_frame): Use "pc" not "->pc".
8652 2003-04-09 Andrew Cagney <cagney@redhat.com>
8654 * frame.c (get_frame_id): Eliminate code updating "frame".
8655 (legacy_get_prev_frame): Ditto.
8656 (get_frame_base): Return id.base directly.
8657 (deprecated_update_frame_base_hack): Update "id.base".
8658 * frame.h (struct frame_info): Delete field "frame".
8660 2003-04-09 Andrew Cagney <cagney@redhat.com>
8662 * NEWS: Mention that the "Sequent family" is obsolete.
8663 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
8664 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8665 * configure.host: Obsolete i[3456]86-sequent-bsd*,
8666 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
8667 * config/i386/tm-ptx4.h: Obsolete file.
8668 * config/i386/tm-ptx.h: Obsolete file.
8669 * symm-tdep.c: Obsolete file.
8670 * config/i386/symmetry.mt: Obsolete file.
8671 * config/i386/tm-symmetry.h: Obsolete file.
8672 * symm-nat.c: Obsolete file.
8673 * config/i386/nm-symmetry.h: Obsolete file.
8674 * config/i386/xm-symmetry.h: Obsolete file.
8675 * config/i386/symmetry.mh: Obsolete file.
8676 * config/i386/nm-ptx4.h: Obsolete file.
8677 * config/i386/ptx4.mh: Obsolete file.
8678 * config/i386/ptx.mt: Obsolete file.
8679 * config/i386/ptx.mh: Obsolete file.
8680 * config/i386/xm-ptx4.h: Obsolete file.
8681 * config/i386/xm-ptx.h: Obsolete file.
8683 2003-04-09 Andrew Cagney <cagney@redhat.com>
8685 Obsolete mips*-*-mach3*.
8686 * NEWS: Mention that mips*-*-mach3* is obsolete.
8687 * m3-nat.c: Obsolete file.
8688 * config/nm-m3.h: Obsolete file.
8689 * config/mips/tm-mipsm3.h: Obsolete file.
8690 * config/mips/mipsm3.mt: Obsolete file.
8691 * config/mips/mipsm3.mh: Obsolete file.
8692 * config/mips/xm-mipsm3.h: Obsolete file.
8693 * mipsm3-nat.c: Obsolete file.
8694 * configure.host: Obsolete mips-dec-mach3*.
8695 * configure.tgt: Obsolete mips*-*-mach3*.
8697 2003-04-09 Andrew Cagney <cagney@redhat.com>
8699 * doublest.h: Update copyright.
8700 (deprecated_store_floating, deprecated_extract_floating): Rename
8701 store_floating and extract_floating. Update comments.
8702 * doublest.c: Update copyright.
8703 (extract_floating_by_length): Replace extract_floating.
8704 (store_floating_by_length): Replace store_floating.
8705 (deprecated_extract_floating): New function.
8706 (deprecated_store_floating): New function.
8707 (extract_typed_floating): Call extract_floating_by_length.
8708 (store_typed_floating): Call store_floating_by_length.
8709 * x86-64-tdep.c (x86_64_store_return_value): Update.
8710 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
8711 (sh64_extract_return_value): Update.
8712 (sh_sh4_register_convert_to_virtual): Update.
8713 (sh_sh64_register_convert_to_virtual): Update.
8714 (sh_sh4_register_convert_to_raw): Update.
8715 (sh_sh64_register_convert_to_raw): Update.
8716 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
8717 (rs6000_register_convert_to_raw): Update.
8718 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
8719 (ia64_register_convert_to_raw): Update.
8720 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
8721 (REGISTER_CONVERT_TO_VIRTUAL): Update.
8722 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
8723 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
8724 (alpha_register_convert_to_raw): Update.
8726 2003-04-08 Andrew Cagney <cagney@redhat.com>
8728 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
8729 * gdbarch.h, gdbarch.c: Re-generate.
8730 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
8731 (d10v_gdbarch_init): Do not set saved_pc_after_call.
8732 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
8733 conditionally, use frame_pc_unwind as an alternative. Add
8735 * arch-utils.c (init_frame_pc_default): Only call
8736 SAVED_PC_AFTER_CALL when available.
8738 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8740 * infrun.c (stop_soon): Rename from stop_soon_quietly.
8741 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
8742 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
8743 (start_remote): Ditto.
8744 (handle_inferior_event): Ditto.
8745 (save_inferior_status): Ditto.
8746 (restore_inferior_status): Ditto.
8747 * infcmd.c (attach_command): Ditto.
8748 * fork-child.c (startup_inferior): Ditto.
8749 * inferior.h (stop_soon): Rename from stop_soon_quietly.
8750 * alpha-tdep.c (heuristic_proc_start): Ditto.
8751 * mips-tdep.c (heuristic_proc_start): Ditto.
8752 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
8753 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
8754 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
8755 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
8756 * remote-vx.c (vx_create_inferior): Ditto.
8758 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
8760 * infrun.c (stop_soon_quietly): Make it an enum, to better
8761 override the default behavior of handle_inferior_event.
8762 (clear_proceed_status): Update uses of stop_soon_quietly to
8763 reflect that it is now an enum.
8764 (start_remote): Ditto.
8765 (handle_inferior_event): Change logic a bit if stop_soon_quietly
8766 is set to handle the new GNU/Linux kernel behavior for
8767 attach/sigstop. Update uses of stop_soon_quietly.
8768 * inferior.h (enum stop_kind): New enum.
8769 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
8770 Reset normal handle_inferior_event behavior, afterwards.
8771 * fork-child.c (startup_inferior): Update.
8772 * alpha-tdep.c (heuristic_proc_start): Update.
8773 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
8774 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
8775 * solib-osf.c (osf_solib_create_inferior_hook): Update.
8776 * solib-irix.c (irix_solib_create_inferior_hook): Update.
8777 * remote-vx.c (vx_create_inferior): Update.
8778 * mips-tdep.c (heuristic_proc_start): Update.
8780 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
8782 * disasm.c (dump_insns): Move variables inside loop, or they will
8783 be freed more than once, causing wild memory corruptions.
8784 (gdb_disassembly): Look for the substring "-thread",
8785 instead of "-threads" in the target name, to make sure to find
8786 the 'multi-thread' target. Also, make sure we do the right thing
8787 with the "core" target.
8789 2003-04-07 Kevin Buettner <kevinb@redhat.com>
8791 * mips-tdep.c (mips_print_fp_register): New function, created from
8792 do_fp_register_row(). Registers are now (also) printed as hex.
8793 Only one register is printed per row.
8794 (mips_print_register, do_fp_register_row): Print floating point
8795 registers with mips_print_fp_register().
8797 2003-04-06 Andrew Cagney <cagney@redhat.com>
8799 * valprint.h (inspect_it): Add extern declaration.
8800 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
8801 (selectors_info, classes_info): Ditto.
8802 (find_objc_msgcall): Fix indentation.
8803 (objc_printstr): Delete extern declarations.
8805 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
8807 2003-04-06 Andrew Cagney <cagney@redhat.com>
8809 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
8811 * frame.c (legacy_saved_regs_this_id): Update.
8812 (legacy_get_prev_frame): Update.
8813 * xstormy16-tdep.c: Update comment.
8814 * sparc-tdep.c (sparc_frame_chain): Update comment.
8815 * blockframe.c (legacy_frame_chain_valid): Update.
8817 2003-04-06 Andrew Cagney <cagney@redhat.com>
8819 * valprint.c (val_print_type_code_int): Delete #ifdef
8820 PRINT_TYPELESS_INTEGER code.
8822 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
8823 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
8824 multi-arch definition.
8825 * gdbarch.h: Re-generate.
8827 2003-04-05 Andrew Cagney <cagney@redhat.com>
8829 Eliminate FRAME_FIND_SAVED_REGS.
8830 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8831 Change FSR parameter to a pointer.
8832 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
8833 Assume FSR parameter is a pointer.
8834 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
8836 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
8837 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
8838 saved_regs a pointer.
8839 (hppa_frame_saved_pc): Ditto.
8840 (find_dummy_frame_regs): Make frame_saved_regs a pointer
8841 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
8843 (restore_pc_queue): Make fsr a pointer.
8844 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
8845 (hppa_frame_chain): Make saved_regs a pointer, call
8846 hppa_frame_init_saved_regs.
8847 * sparc-tdep.c: Include "gdb_assert.h".
8848 (sparc_frame_find_saved_regs): Replace internal_error with
8850 * remote-vxsparc.c (vx_read_register): Delete reference to
8851 FRAME_FIND_SAVED_REGS.
8852 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
8853 * gdbarch.h: Regenerate.
8854 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8855 (deprecated_get_frame_saved_regs): Delete declaration.
8856 (struct frame_saved_regs): Delete definition.
8857 * frame.c (deprecated_get_frame_saved_regs): Delete function.
8858 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
8859 (hppa_frame_find_saved_regs): Delete declaration.
8860 (FRAME_FIND_SAVED_REGS): Delete macro.
8861 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
8862 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
8863 FRAME_FIND_SAVED_REGS in comment.
8865 2003-04-05 Andrew Cagney <cagney@redhat.com>
8867 * frame.c (frame_func_unwind, get_frame_func): New functions.
8868 * frame.h (get_frame_func, frame_func_unwind): Declare.
8869 (struct frame_info): Add field "prev_func" for caching the
8870 previous frame's function address.
8871 * arm-tdep.c (arm_frameless_function_invocation): Combine
8872 get_pc_function_start and get_frame_pc into get_frame_func.
8873 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
8874 (sh64_nofp_frame_init_saved_regs): Ditto.
8875 * s390-tdep.c (s390_function_start): Ditto.
8876 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
8877 (rs6000_frameless_function_invocation): Ditto.
8878 (rs6000_frame_saved_pc): Ditto.
8879 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
8880 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
8881 * i386-tdep.c (i386_frameless_signal_p): Ditto.
8882 (i386_frame_init_saved_regs): Ditto.
8883 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
8884 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
8885 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
8886 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8887 * blockframe.c (frameless_look_for_prologue): Ditto.
8889 2003-04-05 Andrew Cagney <cagney@redhat.com>
8891 * frame.c (legacy_get_prev_frame): Link prev to next at the
8892 function start. Update comments.
8894 2003-04-05 Andrew Cagney <cagney@redhat.com>
8896 * frame.c (get_frame_id): Update comment.
8897 (legacy_get_prev_frame): Update comment.
8898 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
8899 * gdbarch.h: Regenerate.
8900 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
8901 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
8903 2003-04-05 Andrew Cagney <cagney@redhat.com>
8905 * stack.c (print_frame_info): Use get_frame_pc.
8907 2003-04-04 Andrew Cagney <cagney@redhat.com>
8909 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
8910 the frame's type from the unwinder.
8911 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
8912 (create_new_frame, legacy_get_prev_frame): When the unwinder's
8913 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
8914 (get_frame_base_address): Use get_frame_type.
8915 (get_frame_locals_address, get_frame_args_address): Ditto.
8916 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
8917 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
8918 (struct frame_info): Add comment explaining why the frame contains
8920 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
8921 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
8922 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
8924 * frame-unwind.h: Include "frame.h".
8925 (struct frame_unwind): Add "type" field.
8926 * Makefile.in (frame_unwind_h): Add $(frame_h).
8928 2003-04-04 Andrew Cagney <cagney@redhat.com>
8930 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
8931 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
8932 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
8934 (d10v_unwind_dummy_id): Use frame_id_build.
8935 * frame.c (find_frame_sal): Use get_frame_pc.
8936 (create_new_frame): Use deprecated_update_frame_pc_hack and
8937 deprecated_update_frame_base_hack.
8938 (create_sentinel_frame): Add comment about ->pc going away.
8939 (get_prev_frame): Add comment about ->pc going away.
8940 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
8941 frame_id_build, deprecated_update_frame_pc_hack and
8942 deprecated_update_frame_base_hack.
8943 (select_frame): Use get_frame_pc.
8944 (legacy_saved_regs_this_id): Use frame_id_build.
8946 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
8948 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
8949 signed integer case.
8950 (classify_argument): Handle enumerations and references.
8952 2003-04-04 Andrew Cagney <cagney@redhat.com>
8954 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
8957 2003-04-01 Adam Fedor <fedor@gnu.org>
8959 * gdb/objc-lang.c (selectors_info): Replace calls to
8960 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
8961 SYMBOL_NATURAL_NAME.
8962 (classes_info, find_methods): Likewise.
8964 2003-04-03 Kevin Buettner <kevinb@redhat.com>
8966 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
8967 ``mach'' to the value determined by bfd_default_set_arch_mach().
8969 2003-04-02 Bob Rossi <bob_rossi@cox.net>
8971 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
8972 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
8973 (mi-cmd-file.o): Update dependencies.
8975 2003-04-01 Kevin Buettner <kevinb@redhat.com>
8977 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
8978 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
8980 2003-04-01 Adam Fedor <fedor@gnu.org>
8982 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
8983 * language.h (struct language_defn): Add la_demangle.
8984 (language_demangle): Declare.
8985 * language.c (language_demangle): New function.
8986 (unk_lang_demangle): Likewise.
8987 (unknown_language_defn, auto_language_defn, local_language_defn):
8988 Add ukn_lang_demangle.
8989 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
8990 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
8991 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
8992 (cplus_language_defn): Add cplus_demangle for la_demangle element.
8993 * jv-lang.c (java_demangle): New function
8994 (java_language_defn): Use it for la_demangle element.
8995 * objc-lang.c (objc_demangle): Add options argument
8996 (objc_language_defn): Use objc_demangle for la_demangle element.
8997 * maint.c (maintenance_demangle): Replace switch with
8998 call to language_demangle.
8999 * utils.c (fprintf_symbol_filtered): Likewise.
9001 2003-04-01 Andrew Cagney <cagney@redhat.com>
9003 * printcmd.c (print_frame_nameless_args): Delete #ifdef
9004 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
9005 PRINT_TYPELESS_INTEGER.
9006 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
9007 PUSH_RETURN_ADDRESS.
9009 2003-04-01 Andrew Cagney <cagney@redhat.com>
9011 * Makefile.in (d10v-tdep.o): Update dependencies.
9012 * d10v-tdep.c: Include "frame-base.h".
9013 (d10v_frame_unwind): Make constant.
9014 (d10v_frame_base_address): New function.
9015 (d10v_frame_base): New variable.
9016 (d10v_gdbarch_init): Set frame_base default.
9017 (struct d10v_unwind_cache): Add the field "prev_sp". Update
9019 (d10v_frame_unwind_cache): Set and use "prev_sp".
9020 (d10v_frame_this_id): Use the previous frame's inner most stack
9021 address and this frame's func address for the frame ID. Use
9022 frame_id_build. Don't analyze beyond the current instruction.
9024 2003-04-01 Andrew Cagney <cagney@redhat.com>
9026 * frame.h (get_frame_locals_address, get_frame_args_address):
9027 Refer to the base address, instead of the address of the first
9030 2003-04-01 Andrew Cagney <cagney@redhat.com>
9032 Add frame debug info addresses:
9033 * frame-base.c: New file.
9034 * frame-base.h: New file.
9035 * frame.h (struct frame_base): Add opaque declaration.
9036 (get_frame_base): Update comment.
9037 (get_frame_base_address): Declare.
9038 (get_frame_locals_address): Declare.
9039 (get_frame_args_address): Declare.
9040 (struct frame_info): Add "base" and "base_cache". Update
9041 comments on the unwinder.
9042 * frame.c: Include "frame-base.h".
9043 (get_frame_locals_address): New function.
9044 (get_frame_base_address): New function.
9045 (get_frame_args_address): New function.
9046 * findvar.c (read_var_value): Use get_frame_locals_address and
9047 get_frame_args_address.
9048 * stack.c (frame_info): Use get_frame_locals_address and
9049 get_frame_args_address.
9050 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
9051 moved to "frame-base.c".
9052 * printcmd.c (print_frame_nameless_args): Ditto.
9053 * symtab.h (address_class): Update comments.
9054 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
9055 get_frame_base_address.
9056 * dwarf2expr.c (execute_stack_op): Ditto.
9057 * Makefile.in (frame_base_h): Define.
9058 (frame.o): Update dependencies.
9059 (frame-base.o): Add dependencies.
9060 (SFILES): Add frame-base.c.
9061 (COMMON_OBS): Add frame-base.o.
9063 2003-04-01 Andrew Cagney <cagney@redhat.com>
9065 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
9066 CALL_DUMMY_LENGTH): Ditto.
9067 * gdbarch.c: Re-generate.
9068 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
9069 (CALL_DUMMY_LENGTH): Delete macro.
9070 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
9071 * arm-tdep.c (arm_gdbarch_init): Ditto.
9072 * avr-tdep.c (avr_gdbarch_init): Ditto.
9073 * cris-tdep.c (cris_gdbarch_init): Ditto.
9074 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9075 * frv-tdep.c (frv_gdbarch_init): Ditto.
9076 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9077 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9078 * i386-tdep.c (i386_gdbarch_init): Ditto.
9079 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9081 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9082 * mips-tdep.c (mips_gdbarch_init): Ditto.
9083 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9084 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9085 * s390-tdep.c (s390_gdbarch_init): Ditto.
9086 * sh-tdep.c (sh_gdbarch_init): Ditto.
9087 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9088 * v850-tdep.c (v850_gdbarch_init): Ditto.
9089 * vax-tdep.c (vax_gdbarch_init): Ditto.
9090 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9092 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
9094 * frame.c (get_prev_frame): Disable call to inside_entry_file().
9096 2003-04-01 Andrew Cagney <cagney@redhat.com>
9098 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
9099 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9100 * gdbarch.h, gdbarch.c: Re-generate.
9101 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9102 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9103 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9104 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9105 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
9106 * infcmd.c (run_stack_dummy): Simplify assuming
9107 CALL_DUMMY_BREAKPOINT_OFFSET_P.
9108 * infrun.c (handle_inferior_event): Ditto.
9109 * alpha-tdep.c (alpha_gdbarch_init): Do not set
9110 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
9111 * arm-tdep.c (arm_gdbarch_init): Ditto.
9112 * avr-tdep.c (avr_gdbarch_init): Ditto.
9113 * cris-tdep.c (cris_gdbarch_init): Ditto.
9114 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9115 * frv-tdep.c (frv_gdbarch_init): Ditto.
9116 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9117 * i386-tdep.c (i386_gdbarch_init): Ditto.
9118 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9120 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9121 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9122 * mips-tdep.c (mips_gdbarch_init): Ditto.
9123 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9124 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9125 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9126 * s390-tdep.c (s390_gdbarch_init): Ditto.
9127 * sh-tdep.c (sh_gdbarch_init): Ditto.
9128 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9129 * v850-tdep.c (v850_gdbarch_init): Ditto.
9130 * vax-tdep.c (vax_gdbarch_init): Ditto.
9131 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9133 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
9135 * symfile.c (symfile_relocate_debug_section): Update call to
9136 bfd_simple_get_relocated_section_contents.
9138 2003-03-31 Andrew Cagney <cagney@redhat.com>
9140 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
9141 * gdbarch.h, gdbarch.c: Regenerate.
9142 * inferior.h (FIX_CALL_DUMMY): Delete macro.
9143 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
9145 * frame.h (generic_fix_call_dummy): Delete declaration.
9146 * dummy-frame.h: Update comment.
9147 * dummy-frame.c (generic_fix_call_dummy): Delete function.
9148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9150 * sh-tdep.c (sh_gdbarch_init): Ditto.
9151 * s390-tdep.c (s390_gdbarch_init): Ditto.
9152 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9153 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9154 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9155 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9156 * i386-tdep.c (i386_gdbarch_init): Ditto.
9157 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9158 * frv-tdep.c (frv_gdbarch_init): Ditto.
9159 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9160 * cris-tdep.c (cris_gdbarch_init): Ditto.
9161 * avr-tdep.c (avr_gdbarch_init): Ditto.
9162 * arm-tdep.c (arm_gdbarch_init): Ditto.
9164 2003-03-31 J. Brobecker <brobecker@gnat.com>
9166 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
9167 (INIT_FRAME_AP): Likewise.
9168 (EXTRA_FRAME_INFO): Likewise.
9170 2003-03-31 Andrew Cagney <cagney@redhat.com>
9172 * gdbarch.sh: Include "symfile.h".
9173 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
9174 * gdbarch.h, gdbarch.c: Re-generate.
9175 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
9176 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9177 call_dummy_address, the default is at entry_point_address.
9178 * v850-tdep.c (v850_gdbarch_init): Ditto.
9179 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9180 * sh-tdep.c (sh_gdbarch_init): Ditto.
9181 * s390-tdep.c (s390_gdbarch_init): Ditto.
9182 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9183 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9184 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9185 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9186 * i386-tdep.c (i386_gdbarch_init): Ditto.
9187 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9188 * frv-tdep.c (frv_gdbarch_init): Ditto.
9189 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9190 * cris-tdep.c (cris_gdbarch_init): Ditto.
9191 * arm-tdep.c (arm_gdbarch_init): Ditto.
9193 2003-03-31 Andrew Cagney <cagney@redhat.com>
9195 * gdbarch.sh (CALL_DUMMY_P): Delete.
9196 * gdbarch.h, gdbarch.c: Re-generate.
9197 * inferior.h (CALL_DUMMY_P): Delete macro.
9198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9199 * vax-tdep.c (vax_gdbarch_init): Update.
9200 * v850-tdep.c (v850_gdbarch_init): Update.
9201 * sparc-tdep.c (sparc_gdbarch_init): Update.
9202 * sh-tdep.c (sh_gdbarch_init): Update.
9203 * s390-tdep.c (s390_gdbarch_init): Update.
9204 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9205 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9206 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9207 * mips-tdep.c (mips_gdbarch_init): Update.
9208 * mcore-tdep.c (mcore_gdbarch_init): Update.
9209 * m68k-tdep.c (m68k_gdbarch_init): Update.
9210 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9211 * ia64-tdep.c (ia64_gdbarch_init): Update.
9212 * i386-tdep.c (i386_gdbarch_init): Update.
9213 * h8300-tdep.c (h8300_gdbarch_init): Update.
9214 * frv-tdep.c (frv_gdbarch_init): Update.
9215 * d10v-tdep.c (d10v_gdbarch_init): Update.
9216 * cris-tdep.c (cris_gdbarch_init): Update.
9217 * breakpoint.c (deprecated_frame_in_dummy): Update.
9218 * avr-tdep.c (avr_gdbarch_init): Update.
9219 * alpha-tdep.c (alpha_gdbarch_init): Update.
9220 * arm-tdep.c (arm_gdbarch_init): Update.
9221 * dummy-frame.c (dummy_frame_this_id): Update comments.
9222 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
9223 * frame.c (legacy_get_prev_frame): Ditto.
9224 * valops.c (call_function_by_hand): Delete function.
9225 (hand_function_call): Rename to call_function_by_hand
9227 2003-03-30 Andrew Cagney <cagney@redhat.com>
9229 2002-11-10 Klee Dienes <kdienes@apple.com>
9230 * value.h (struct value): Update comment.
9232 2003-03-30 Andrew Cagney <cagney@redhat.com>
9234 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
9236 (d10v_gdbarch_init): Do not set fp_regnum.
9238 * frame.c (get_frame_base): Force ID initialization.
9239 (get_prev_frame): Move computation of the frame ID from here ...
9240 (get_frame_id): ... to here.
9241 (legacy_get_prev_frame): Mark the frame ID as valid.
9242 * frame.h (struct frame_info): Add field "id_p".
9244 2003-03-30 Mark Kettenis <kettenis@gnu.org>
9246 * i386-tdep.c (i386_store_struct_return): Removed.
9247 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
9249 2003-03-30 Andrew Cagney <cagney@redhat.com>
9251 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
9252 * gdbarch.h, gdbarch.c: Regenerate.
9253 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
9254 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
9255 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9256 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9257 * i386-tdep.c (i386_gdbarch_init): Ditto.
9258 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9259 * cris-tdep.c (cris_gdbarch_init): Ditto.
9260 * vax-tdep.c (vax_gdbarch_init): Ditto.
9261 * s390-tdep.c (s390_gdbarch_init): Ditto.
9262 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9263 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9264 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9265 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
9266 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
9267 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
9268 * sparc-tdep.c (sparc_gdbarch_init): Update.
9269 * sh-tdep.c (sh_gdbarch_init): Update.
9270 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9271 * mips-tdep.c (mips_gdbarch_init): Update.
9272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9273 * ia64-tdep.c (ia64_gdbarch_init): Update.
9274 * frv-tdep.c (frv_gdbarch_init): Update.
9275 * avr-tdep.c (avr_gdbarch_init): Update.
9276 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
9277 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
9278 instead of when push_dummy_call is not available.
9280 2003-03-30 Andrew Cagney <cagney@redhat.com>
9282 * infttrace.c: Include "gdbthread.h".
9283 (parent_attach_all): Fix function signature.
9284 (call_ptrace): Update call.
9285 * Makefile.in (infttrace.o): Update dependencies.
9287 2003-03-30 Andrew Cagney <cagney@redhat.com>
9289 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
9290 PUSH_RETURN_ADDRESS.
9291 * gdbarch.h, gdbarch.c: Regenerate.
9292 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9293 * x86-64-tdep.c (x86_64_init_abi): Update.
9294 * v850-tdep.c (v850_gdbarch_init): Update.
9295 * sparc-tdep.c (sparc_gdbarch_init): Update.
9296 * sh-tdep.c (sh_gdbarch_init): Update.
9297 * s390-tdep.c (s390_gdbarch_init): Update.
9298 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9299 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9300 * mips-tdep.c (mips_gdbarch_init): Update.
9301 * mcore-tdep.c (mcore_gdbarch_init): Update.
9302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9303 * ia64-tdep.c (ia64_gdbarch_init): Update.
9304 * i386-tdep.c (i386_gdbarch_init): Update.
9305 * h8300-tdep.c (h8300_gdbarch_init): Update.
9306 * frv-tdep.c (frv_gdbarch_init): Update.
9307 * cris-tdep.c (cris_gdbarch_init): Update.
9308 * avr-tdep.c (avr_gdbarch_init): Update.
9309 * arm-tdep.c (arm_gdbarch_init): Update.
9310 * valops.c (hand_function_call): Update.
9312 2003-03-29 Andrew Cagney <cagney@redhat.com>
9314 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
9315 sizeof_call_dummy_words.
9316 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
9318 * gdbarch.h: Regenerate.
9320 2003-03-29 Andrew Cagney <cagney@redhat.com>
9322 * infttrace.h: New file.
9323 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
9324 (hpread_get_textlow): Detect an uninitialized dn_bufp.
9325 (hpread_read_doc_function_type): Detect an initialized type1.
9326 (hpread_quick_traverse): Initialize mod_name_string.
9327 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
9328 (som_solib_get_solib_by_pc): Declare.
9329 (so_lib_thread_start_addr): Declare.
9330 (no_shared_libraries): Declare.
9331 * somread.c (init_import_symbols): Make static. Add forward
9333 * config/pa/nm-hppah.h: Include "infttrace.h" for
9335 (hppa_insert_hw_watchpoint): Declare.
9336 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
9337 * hppah-nat.c: Include "gdb_string.h".
9338 (parent_attach_all): Delete extern declaration, moved to
9340 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
9342 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
9343 * Makefile.in (infttrace_h): Define.
9344 (hpread.o): Update dependencies.
9345 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
9346 * hppa-hpux-tdep.c: Include "gdb_string.h".
9347 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
9348 * infrun.c (handle_inferior_event): Always initialize
9349 stepped_after_stopped_by_watchpoint. Add default and remove
9350 fallthrough in switch statement.
9351 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
9353 (hppa_remove_hw_watchpoint): Ditto.
9355 2003-03-29 Andrew Cagney <cagney@redhat.com>
9357 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
9360 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
9362 * arm-tdep.c (arm_push_arguments): Delete.
9363 (struct stack_item): New type.
9364 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
9365 (arm_store_struct_return): Delte.
9366 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
9367 arm_push_arguments or arm_store_struct_return.
9369 2003-03-28 Andrew Cagney <cagney@redhat.com>
9371 * Makefile.in (d10v-tdep.o): Update dependencies.
9372 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
9373 * d10v-tdep.c: Include "remote.h".
9374 (target_resume_hook): Delete extern declaration.
9375 (target_wait_loop_hook): Ditto.
9376 (tdisassemble_command): Eliminate assignment in "if" conditional.
9377 (d10v_ts2_register_sim_regno): Eliminate call to
9378 legacy_register_sim_regno.
9379 (d10v_ts3_register_sim_regno): Ditto.
9381 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
9383 * thread.c: Reindented.
9385 * linux-proc.c: Ditto.
9387 2003-03-28 Bob Rossi <bob_rossi@cox.net>
9389 * MAINTAINERS (write after approval): Add myself.
9391 2003-03-27 Theodore A. Roth <troth@openavr.org>
9393 * objc-exp.y: Add missing semi-colons.
9395 2003-03-27 Andrew Cagney <cagney@redhat.com>
9397 * regcache.c (write_sp): Delete function and references.
9398 * inferior.h (write_sp): Delete declaration.
9399 * valops.c (hand_function_call): Replace write_sp with
9401 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
9402 (sparc_pop_frame): Ditto.
9404 2003-03-27 Andrew Cagney <cagney@redhat.com>
9406 * NEWS: Mention removal of support for hppa*-*-bsd* and
9407 hppa*-*-osf* natives, and hppa*-*-pro* target.
9408 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
9409 * config/pa/xm-pa.h: Obsolete file.
9410 * config/pa/xm-hppab.h: Obsolete file.
9411 * config/pa/nm-hppab.h: Obsolete file.
9412 * config/pa/tm-hppab.h: Obsolete file.
9413 * config/pa/tm-hppao.h: Obsolete file.
9414 * config/pa/nm-hppao.h: Obsolete file.
9415 * config/pa/tm-pro.h: Obsolete file.
9416 * config/pa/hppaosf.mt: Obsolete file.
9417 * config/pa/hppaosf.mh: Obsolete file.
9418 * config/pa/hppapro.mt: Obsolete file.
9419 * config/pa/hppabsd.mt: Obsolete file.
9420 * config/pa/hppabsd.mh: Obsolete file.
9421 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
9422 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
9425 2003-03-27 Andrew Cagney <cagney@redhat.com>
9427 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
9428 push_arguments. Don't set push_return_address or write_sp.
9429 (d10v_push_dummy_call): Replace d10v_push_arguments.
9430 (d10v_push_return_address, d10v_write_sp): Delete function,
9431 handled by push_dummy_call.
9433 2003-03-26 Andrew Cagney <cagney@redhat.com>
9435 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
9436 (push_dummy_call): New pure multi-arch replacement with gdbarch,
9437 regcache and dummy_addr parameters.
9438 * gdbarch.h, gdbarch.c: Re-generate.
9439 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
9440 available; assume it will handle stack alignment and return
9441 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
9442 legacy_push_arguments.
9443 (legacy_push_arguments): Rename default_push_arguments.
9444 * value.h (legacy_push_arguments): Rename default_push_arguments.
9445 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
9446 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9447 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9448 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
9449 * config/i386/tm-symmetry.h: Update.
9450 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9451 * x86-64-tdep.c (x86_64_init_abi): Update.
9452 * v850-tdep.c (v850_gdbarch_init): Update.
9453 * sparc-tdep.c (sparc_gdbarch_init): Update.
9454 * sh-tdep.c (sh_gdbarch_init): Update.
9455 * s390-tdep.c (s390_gdbarch_init): Update.
9456 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9457 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9458 * mips-tdep.c (mips_gdbarch_init): Update.
9459 * mcore-tdep.c (mcore_gdbarch_init): Update.
9460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9461 * ia64-tdep.c (ia64_gdbarch_init): Update.
9462 * i386-tdep.c (i386_gdbarch_init): Update.
9463 * hppa-tdep.c (hppa_gdbarch_init): Update.
9464 * h8300-tdep.c (h8300_gdbarch_init): Update.
9465 * frv-tdep.c (frv_gdbarch_init): Update.
9466 * d10v-tdep.c (d10v_gdbarch_init): Update.
9467 * cris-tdep.c (cris_gdbarch_init): Update.
9468 * avr-tdep.c (avr_gdbarch_init): Update.
9469 * arm-tdep.c (arm_gdbarch_init): Update.
9470 * arm-linux-tdep.c (arm_linux_init_abi): Update.
9471 * alpha-tdep.c (alpha_gdbarch_init): Update.
9473 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9475 * signals/signals.c (do_target_signal_to_host): Correct realtime
9478 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9480 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
9481 (struct sal_chain, map_catch_names): Remove.
9482 (catch_exception_command_1): Don't call
9483 handle_gnu_4_16_catch_command.
9485 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9487 From Mark Dettinger <dettinge@de.ibm.com>:
9488 * dwarf2cfi.c (read_2u): Increment pointer by two.
9490 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9492 * signals/signals.c: Fix typos in last change.
9494 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
9496 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
9497 not already defined. Use __SIGRTMIN if available.
9498 (target_signal_from_host): Remove SIGRTMIN block.
9499 (do_target_signal_to_host): Remove SIGRTMIN block; check that
9500 the signal is within the realtime range.
9502 2003-03-25 Adam Fedor <fedor@gnu.org>
9504 * Makefile.in (infrun.o): Add $(language_h)
9505 * infrun.c (handle_inferior_event): Use skip_language_trampoline
9506 for language specific trampolines.
9507 * language.h (struct language_defn): Add skip_trampoline.
9508 (skip_language_trampoline): Declare.
9509 * language.c (unk_lang_trampoline, skip_language_trampoline):
9511 (unknown_language_defn, auto_language_defn, local_language_defn):
9512 Add ukn_lang_trampoline.
9513 * ada-lang.c (ada_language_defn): Add NULL for language
9514 specific skip_trampoline.
9515 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
9516 scm-lang.c: Likewise.
9517 * objc-lang.c (objc_skip_trampoline): New function.
9518 (objc_language_defn): Add objc_skip_trampoline.
9520 2003-03-25 Andrew Cagney <cagney@redhat.com>
9522 * frame.c (get_prev_frame): Delay validating a frame's ID -
9523 non-NULL, didn't go backwards - until an attempt to unwind it to
9526 2003-03-25 Andrew Cagney <cagney@redhat.com>
9528 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
9529 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
9530 * gdbarch.h, gdbarch.c: Re-generate.
9531 * config/sparc/tm-sparc.h
9532 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
9533 * sparc-tdep.c (sparc_gdbarch_init): Set
9534 deprecated_extra_stack_alignment_needed.
9535 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
9536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
9537 extra_stack_alignment_needed.
9538 * v850-tdep.c (v850_gdbarch_init): Ditto.
9539 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9540 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9541 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9542 * cris-tdep.c (cris_gdbarch_init): Ditto.
9543 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9546 2003-03-25 Andrew Cagney <cagney@redhat.com>
9548 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
9549 STORE_STRUCT_RETURN.
9550 * gdbarch.h, gdbarch.c: Regenerate.
9551 * d10v-tdep.c (d10v_store_struct_return): Delete function.
9552 (d10v_push_arguments): Set the struct return register.
9553 (d10v_gdbarch_init): Update.
9554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9555 * x86-64-tdep.c (x86_64_init_abi): Update.
9556 * vax-tdep.c (vax_gdbarch_init): Update.
9557 * v850-tdep.c (v850_gdbarch_init): Update.
9558 * sparc-tdep.c (sparc_gdbarch_init): Update.
9559 * sh-tdep.c (sh_gdbarch_init): Update.
9560 * s390-tdep.c (s390_gdbarch_init): Update.
9561 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9562 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9563 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9564 * mips-tdep.c (mips_gdbarch_init): Update.
9565 * mcore-tdep.c (mcore_gdbarch_init): Update.
9566 * m68k-tdep.c (m68k_gdbarch_init): Update.
9567 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9568 * ia64-tdep.c (ia64_gdbarch_init): Update.
9569 * i386-tdep.c (i386_gdbarch_init): Update.
9570 * hppa-tdep.c (hppa_gdbarch_init): Update.
9571 * h8300-tdep.c (h8300_gdbarch_init): Update.
9572 * frv-tdep.c (frv_gdbarch_init): Update.
9573 * cris-tdep.c (cris_gdbarch_init): Update.
9574 * avr-tdep.c (avr_gdbarch_init): Update.
9575 * arm-tdep.c (arm_gdbarch_init): Update.
9576 * alpha-tdep.c (alpha_gdbarch_init): Update.
9578 2003-03-25 Andrew Cagney <cagney@redhat.com>
9580 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
9581 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
9582 CALL_DUMMY_STACK_ADJUST with a predicate variable.
9583 * gdbarch.h, gdbarch.c: Regenerate.
9584 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
9585 call_dummy_stack_adjust_p.
9586 * vax-tdep.c (vax_gdbarch_init): Ditto.
9587 * v850-tdep.c (v850_gdbarch_init): Ditto.
9588 * sh-tdep.c (sh_gdbarch_init): Ditto.
9589 * s390-tdep.c (s390_gdbarch_init): Ditto.
9590 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9591 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
9592 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9593 * mips-tdep.c (mips_gdbarch_init): Ditto.
9594 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9595 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9596 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9597 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9598 * i386-tdep.c (i386_gdbarch_init): Ditto.
9599 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9600 * frv-tdep.c (frv_gdbarch_init): Ditto.
9601 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9602 * cris-tdep.c (cris_gdbarch_init): Ditto.
9603 * avr-tdep.c (avr_gdbarch_init): Ditto.
9604 * arm-tdep.c (arm_gdbarch_init): Ditto.
9605 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9606 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9607 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
9608 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
9609 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
9610 call_dummy_stack_adjust_p.
9611 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
9612 (CALL_DUMMY_STACK_ADJUST): Delete macro.
9613 * sparc-tdep.c (sparc32_push_arguments): Update.
9614 * valops.c (hand_function_call): Update.
9616 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
9618 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
9619 set_gdbarch_char_signed.
9621 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9624 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
9626 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
9628 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
9629 (_initialize_arm_tdep): Don't set tm_print_insn.
9631 2003-03-24 Adam Fedor <fedor@gnu.org>
9633 * Makefile.in (YYOBJ): Add objc-exp.tab.o
9634 * objc-lang.h: Add multiple inclusion protection.
9635 (start_msglist, add_msglist, end_msglist): Additional declarations.
9637 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
9639 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
9640 value was renamed to ARM_FLOAT_SOFT_FPA.
9642 2003-03-23 Andrew Cagney <cagney@redhat.com>
9644 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
9645 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
9646 * gdbarch.h, gdbarch.c: Regenerate.
9647 * valops.c (hand_function_call): Update.
9648 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9649 * frame.c (legacy_saved_regs_this_id): Update.
9650 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
9651 * dummy-frame.h: Update.
9652 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
9653 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
9654 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
9655 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
9656 * config/m68k/tm-sun3.h: Update.
9657 * blockframe.c (inside_main_func, frame_chain_valid): Update.
9658 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9659 * x86-64-tdep.c (x86_64_init_abi): Update.
9660 * vax-tdep.c (vax_gdbarch_init): Update.
9661 * v850-tdep.c (v850_gdbarch_init): Update.
9662 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
9663 * sh-tdep.c (sh_gdbarch_init): Update.
9664 * s390-tdep.c (s390_gdbarch_init): Update.
9665 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
9666 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
9667 (frame_get_saved_regs): Update.
9668 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9669 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9670 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9671 * mips-tdep.c (mips_gdbarch_init): Update.
9672 * mcore-tdep.c (mcore_gdbarch_init): Update.
9673 * m68k-tdep.c (m68k_gdbarch_init): Update.
9674 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9675 * ia64-tdep.c (ia64_gdbarch_init): Update.
9676 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
9677 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9678 (i386_interix_back_one_frame): Update.
9679 * hppa-tdep.c (hppa_gdbarch_init): Update.
9680 (hppa_init_extra_frame_info): Update.
9681 * h8300-tdep.c (h8300_gdbarch_init): Update.
9682 * frv-tdep.c (frv_gdbarch_init): Update.
9683 * cris-tdep.c (cris_gdbarch_init): Update.
9684 * avr-tdep.c (avr_gdbarch_init): Update.
9685 * arm-tdep.c (arm_gdbarch_init): Update.
9686 * alpha-tdep.c (alpha_gdbarch_init): Update.
9688 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9690 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
9691 (arm_get_fp_model): Declare.
9692 * arm-tdep.c (fp_model_strings): New string array.
9693 (arm_fp_model, current_fp_model): New variables.
9694 (arm_get_fp_model): New function.
9695 (arm_set_fp): New function.
9696 (set_fp_model_sfunc): New function.
9697 (show_fp_model): New function.
9698 (_initialize_arm_tdep): Add new command to set/show the FPU.
9699 (arm_extract_return_value): Use arm_get_fp_model.
9700 (arm_store_return_value): Likewise.
9701 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
9702 to initialize the floating-point data types.
9703 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
9706 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9708 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
9709 the current setting of each value.
9710 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
9711 new_set and new_show. Use add_setshow_cmd_full and
9712 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
9713 commands and add new version as subcommands of "set/show arm".
9715 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9717 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
9718 (set_arm_command, show_arm_command): New functions.
9719 (_initialize_arm_tdep): Add them.
9720 (num_disassembly_options): Renamed from num_flavor_options.
9721 (valid_disassembly_styles): Renamed from valid_flavors.
9722 (disassembly_style): Renamed from disassembly_flavor.
9723 (set_disassembly_style_sfunc): Renamed from
9724 set_disassembly_flavor_sfunc.
9725 (set_disassembly_style): Renamed from set_disassembly_flavor.
9726 (arm_othernames): Updated.
9727 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
9728 command. Add "set/show arm disassembly" commands. Deprecate
9729 "othernames" command.
9731 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9733 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
9734 (arm-tdep.o): Depend on elf_arm_h.
9736 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9738 * Makefile.in (coff_internal_h): Define.
9739 (arm-tdep.o): Update dependencies.
9741 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
9743 * arm-tdep.c (prologue_cache): Delete.
9744 (check_prologue_cache, save_prologue_cache): Delete.
9745 (arm_scan_prologue): Don't check or update the prologue_cache.
9746 (arm_gdb_arch_init): Don't initialize it.
9747 (_initialize_arm_tdep): Likewise.
9749 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
9751 * MAINTAINERS (tui): Maintainer of tui code.
9753 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
9755 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
9756 (i386-cygwin-tdep.o): Add dependencies.
9757 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
9758 * i386-cygwin-tdep.c: New file.
9759 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
9760 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
9762 2003-03-20 Andrew Cagney <cagney@redhat.com>
9764 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
9765 (handle_inferior_event): Remove code calling
9766 DYNAMIC_TRAMPOLINE_NEXTPC.
9768 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
9769 already has a full path.
9771 * main.c (gdb_main): Return 1.
9772 (captured_main): Call error to report an invalid interpreter.
9774 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
9775 * alpha-osf1-tdep.c: Include "gdb_string.h".
9777 2003-03-19 J. Brobecker <brobecker@gnat.com>
9779 Continuing work to convert the hppa targets to multiarch partial.
9781 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
9782 method, now that hppa_push_dummy_frame has a conformant prototype.
9783 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
9784 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
9785 for the switch to multiarch partial.
9787 2003-03-19 Kevin Buettner <kevinb@redhat.com>
9789 * mdebugread.c (parse_symbol): For stEnd, we're done counting
9790 when iss is issNull.
9792 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9794 * mips-tdep.c (mips_register_name): Fix fencepost error involving
9795 NUM_REGS bounds check.
9797 2003-03-18 Kevin Buettner <kevinb@redhat.com>
9799 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
9800 * mips-tdep.c (gdb_assert.h): Include.
9801 (mips_generic_reg_names, mips_processor_reg_names): Make static.
9802 (mips_register_name): Handle integer registers explicitly. Add
9804 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
9805 (mips_lsi33k_reg_names): Don't list integer registers; they're
9806 handled by mips_register_name() now.
9807 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
9808 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
9809 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
9810 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
9811 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
9813 2003-03-18 Andrew Cagney <cagney@redhat.com>
9815 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
9817 * gdbtypes.h (print_scalar_formatted): Update declaration.
9818 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
9820 2003-03-18 J. Brobecker <brobecker@gnat.com>
9822 * infrun.c (observer.h): Add #include.
9823 (normal_stop): Add call to observer_notify_normal_stop.
9824 * Makefile.in (infrun.o): Add dependency on observer.h.
9826 2003-03-18 J. Brobecker <brobecker@gnat.com>
9828 Continuing work to convert the hppa targets to multiarch partial.
9829 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
9830 parameter. Reformat comment.
9831 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
9832 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
9833 to match new profile.
9835 2003-03-18 J. Brobecker <brobecker@gnat.com>
9837 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
9838 appear to be working in any case.
9840 2003-03-18 J. Brobecker <brobecker@gnat.com>
9842 * observer.c (observer_test_first_observer): New static variable.
9843 (observer_test_second_observer): Likewise.
9844 (observer_test_third_observer): Likewise.
9845 (observer_test_first_notification_function): New static function.
9846 (observer_test_second_notification_function): Likewise.
9847 (observer_test_third_notification_function): Likewise.
9849 2003-03-17 J. Brobecker <brobecker@gnat.com>
9851 * hppa-tdep.c (gdb_assert.h): Add missing #include.
9852 * somsolib.c (gdb_assert.h): Likewise.
9853 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
9854 (somsolib.o): Likewise.
9856 2003-03-17 Andrew Cagney <cagney@redhat.com>
9858 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
9859 BFD. Simplify setting of di.endian.
9861 2003-03-17 Andrew Cagney <cagney@redhat.com>
9863 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
9864 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
9866 From Elena Zannoni <ezannoni@redhat.com>
9867 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
9868 vector and floating-point parameters.
9869 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
9871 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
9873 2003-03-17 Fernando Nasser <fnasser@redhat.com>
9875 * MAINTAINERS: Remove my name from several maintainership roles.
9877 2003-03-17 Andrew Cagney <cagney@redhat.com>
9879 Fix frame off-by-one bug.
9880 * frame-unwind.h (frame_this_id_ftype): Replace
9881 frame_unwind_id_ftype.
9882 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
9883 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
9884 with "prev_register".
9885 * frame-unwind.c (frame_unwind_find_by_pc): Return
9886 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
9888 * dummy-frame.c (cached_find_dummy_frame): Delete function.
9889 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
9890 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
9891 (dummy_frame_unwind): Update.
9892 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9893 sentinel_frame_register_unwind.
9894 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
9895 (sentinel_frame_unwinder): Update.
9896 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9897 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
9898 * frame.c (create_sentinel_frame): Update. Initialize
9899 "prologue_cache" instead of "unwind_cache".
9900 (frame_register_unwind): Call this frame's prev_register with the
9901 next frame and this frame's prologue cache.
9902 (get_prev_frame): Simplify. Always call prev frame's this_id with
9903 this frame and prev frame's prologue cache. Document that this
9904 call is shifted one to the left when compared to the
9905 frame_register_unwind call.
9906 (legacy_saved_regs_prev_register): Replace
9907 frame_saved_regs_register_unwind.
9908 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
9909 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
9910 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
9911 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
9912 (d10v_frame_unwind): Update.
9913 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
9914 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
9915 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
9916 "saved_regs" with "this_saved_regs".
9918 2003-03-16 Andrew Cagney <cagney@redhat.com>
9920 * frame.c (frame_pop): Don't call target_store_registers. Fix
9921 problem reported by Mark Kettenis.
9923 2003-03-16 Mark Kettenis <kettenis@gnu.org>
9925 * i386-tdep.c (i386_register_type): Renamed from
9926 i386_register_virtual_type. Adjust function signature.
9927 (i386_gdbarch_init): Set register_type instead of
9928 deprecated_max_register_raw_size,
9929 deprecated_max_register_virtual_size and register_virtual_type.
9931 2003-03-14 Andrew Cagney <cagney@redhat.com>
9933 * frame.c (get_prev_frame): When a legacy frame, always call
9934 legacy_get_prev_frame. Simplify unwind code using assumption that
9935 the unwinder is new.
9936 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
9937 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
9938 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
9940 2003-03-14 Andrew Cagney <cagney@redhat.com>
9942 * frame.c (get_saved_register): Delete function.
9943 * frame.h (get_saved_register): Delete declaration.
9944 * xstormy16-tdep.c: Update comment.
9945 * regcache.h: Update comments.
9946 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
9947 get_saved_register and extract_address, use
9948 frame_read_unsigned_register.
9949 (sparc_frame_saved_pc): Ditto.
9950 (sparc_get_saved_register): Instead of get_saved_register, use
9952 (sparc_pop_frame): Ditto.
9953 * findvar.c: Update comments.
9954 (value_of_register): Call frame_register instead of
9956 (value_from_register): Ditto.
9957 * config/sparc/tm-sparc.h: Update comment.
9958 * breakpoint.c: Update comment.
9960 2003-03-14 Andrew Cagney <cagney@redhat.com>
9962 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
9964 * gdbarch.h, gdbarch.c: Re-generate.
9965 * frame.h: Update comments.
9966 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9967 * x86-64-tdep.c (x86_64_init_abi): Update.
9968 * sparc-tdep.c (sparc_gdbarch_init): Update.
9969 * sh-tdep.c (sh_gdbarch_init): Update.
9970 * mips-tdep.c (mips_gdbarch_init): Update.
9971 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9972 * cris-tdep.c (cris_gdbarch_init): Update.
9973 * ia64-tdep.c (ia64_gdbarch_init): Update.
9974 * frame.c (frame_register): Update.
9975 (get_saved_register): Update.
9976 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
9978 2003-03-13 Andrew Cagney <cagney@redhat.com>
9980 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
9981 * gdbarch.h, gdbarch.c: Regenerate.
9982 * valops.c (hand_function_call): Update comment.
9983 * stack.c (return_command): Update comment.
9984 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
9985 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
9986 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9987 * x86-64-tdep.c (x86_64_init_abi): Update.
9988 * vax-tdep.c (vax_gdbarch_init): Update.
9989 * v850-tdep.c (v850_gdbarch_init): Update.
9990 * sparc-tdep.c (sparc_gdbarch_init): Update.
9991 * sh-tdep.c (sh_gdbarch_init): Update.
9992 * s390-tdep.c (s390_gdbarch_init): Update.
9993 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9994 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9995 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9996 * mips-tdep.c (mips_gdbarch_init): Update.
9997 * mcore-tdep.c (mcore_gdbarch_init): Update.
9998 * m68k-tdep.c (m68k_gdbarch_init): Update.
9999 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10000 * ia64-tdep.c (ia64_gdbarch_init): Update.
10001 * i386-tdep.c (i386_gdbarch_init): Update.
10002 * hppa-tdep.c (hppa_gdbarch_init): Update.
10003 * h8300-tdep.c (h8300_gdbarch_init): Update.
10004 * frv-tdep.c (frv_gdbarch_init): Update.
10005 * cris-tdep.c (cris_gdbarch_init): Update.
10006 * avr-tdep.c (avr_gdbarch_init): Update.
10007 * arm-tdep.c (arm_gdbarch_init): Update.
10008 * alpha-tdep.c (alpha_gdbarch_init): Update.
10010 2003-03-13 Andrew Cagney <cagney@redhat.com>
10012 * frame.c (legacy_frame_p): New function.
10013 (get_prev_frame): Use legacy_frame_p.
10014 * frame.h (legacy_frame_p): Declare.
10016 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10018 * MAINTAINERS (write after approval): Alphabetically
10021 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
10023 * MAINTAINERS (write after approval): Add myself.
10025 2003-03-12 Andrew Cagney <cagney@redhat.com>
10027 * frame.c (get_prev_frame): Rename the frame parameter to
10029 (get_next_frame, legacy_get_prev_frame): Ditto.
10031 2003-03-12 Andrew Cagney <cagney@redhat.com>
10033 * frame.c (get_current_frame): Check target_has_registers before
10034 checking target_has_stack.
10035 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
10036 instead of deprecated_selected_frame.
10037 * findvar.c (value_of_register): Pass "frame", not
10038 deprecated_selected_frame, to value_of_builtin_reg.
10040 2003-03-12 Andrew Cagney <cagney@redhat.com>
10042 * regcache.c (regcache_cooked_write_signed): New function.
10043 (regcache_cooked_write_unsigned): New function.
10044 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
10045 (regcache_cooked_read_signed): Fix regnum in range assertion.
10046 * regcache.h (regcache_cooked_write_signed): Declare.
10047 (regcache_cooked_write_unsigned): Declare.
10049 2003-03-12 Andrew Cagney <cagney@redhat.com>
10051 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10052 * gdbarch.h, gdbarch.c: Re-generate.
10053 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10054 * x86-64-tdep.h: Update.
10055 * x86-64-tdep.c (x86_64_init_abi): Update.
10056 * v850-tdep.c (v850_gdbarch_init): Update.
10057 * sparc-tdep.c (sparc_gdbarch_init): Update.
10058 * sh-tdep.c (sh_gdbarch_init): Update.
10059 * s390-tdep.c (s390_gdbarch_init): Update.
10060 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10061 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10062 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10063 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10064 * mips-tdep.c (mips_gdbarch_init): Update.
10065 * mcore-tdep.c (mcore_gdbarch_init): Update.
10066 * m68k-tdep.c (m68k_gdbarch_init): Update.
10067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10068 * ia64-tdep.c (ia64_gdbarch_init): Update.
10069 * i386-tdep.c (i386_gdbarch_init): Update.
10070 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10071 * hppa-tdep.c (hppa_gdbarch_init): Update.
10072 * h8300-tdep.c (h8300_gdbarch_init): Update.
10073 * frv-tdep.c (frv_gdbarch_init): Update.
10074 * cris-tdep.c (cris_gdbarch_init): Update.
10075 * avr-tdep.c (avr_gdbarch_init): Update.
10076 * arm-tdep.c (arm_gdbarch_init): Update.
10077 * alpha-tdep.c (alpha_gdbarch_init): Update.
10078 * sh-tdep.c (sh_init_extra_frame_info): Update.
10079 (sh64_init_extra_frame_info): Update.
10080 * ns32knbsd-nat.c (frame_num_args): Update.
10081 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10082 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10083 (xstormy16_frame_chain_valid): Update.
10084 * vax-tdep.c (vax_saved_pc_after_call): Update.
10085 * v850-tdep.c (v850_frame_chain): Update.
10086 (v850_pop_frame): Update.
10087 (v850_init_extra_frame_info): Update.
10088 * sparc-tdep.c (setup_arbitrary_frame): Update.
10089 * ns32k-tdep.c (umax_frame_num_args): Update.
10090 * s390-tdep.c (s390_pop_frame_regular): Update.
10091 * mn10300-tdep.c (mn10300_frame_chain): Update.
10092 (mn10300_pop_frame_regular): Update.
10093 (mn10300_init_extra_frame_info): Update.
10094 * mips-tdep.c (mips_init_frame_pc_first): Update.
10095 (mips_frame_chain): Update.
10096 (mips_pop_frame): Update.
10097 * mcore-tdep.c (mcore_frame_chain): Update.
10098 (mcore_pop_frame): Update.
10099 (mcore_init_extra_frame_info): Update.
10100 * arch-utils.c (init_frame_pc_default): Update.
10101 * m68k-tdep.c (isi_frame_num_args): Update.
10102 (delta68_frame_num_args): Update.
10103 (news_frame_num_args): Update.
10104 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10105 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10106 (alpha_frame_chain): Update.
10107 (alpha_pop_frame): Update.
10108 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10109 (hppa_init_extra_frame_info): Update.
10110 (hppa_frame_chain): Update.
10111 (hppa_frame_chain_valid): Update.
10112 * cris-tdep.c (cris_init_extra_frame_info): Update.
10113 * avr-tdep.c (avr_init_extra_frame_info): Update.
10114 * arm-tdep.c (arm_frame_chain_valid): Update.
10115 (arm_init_extra_frame_info): Update.
10116 (arm_pop_frame): Update.
10117 * frame.c (frame_pc_unwind): Update.
10118 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10119 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10120 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10121 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10122 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10123 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10125 2003-03-12 Andrew Cagney <cagney@redhat.com>
10127 Eliminate the need for POP_FRAME.
10128 * frame.c (do_frame_unwind_register): New function.
10129 (frame_pop): When no POP_FRAME, pop the frame using register
10130 unwind and a scratch regcache.
10131 (frame_saved_regs_pop): Delete function.
10132 (trad_frame_unwinder): Update.
10133 * d10v-tdep.c (d10v_frame_pop): Delete function.
10134 (d10v_frame_unwind): Update.
10135 * sentinel-frame.c (sentinel_frame_pop): Delete function.
10136 (sentinel_frame_unwinder): Update.
10137 * dummy-frame.c (dummy_frame_pop): Delete function.
10138 (dummy_frame_unwind): Update.
10139 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
10140 (struct frame_unwind): Update.
10142 2003-03-11 Kevin Buettner <kevinb@redhat.com>
10144 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
10145 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
10146 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
10147 Do range checks on register number obtained from debugging info.
10148 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
10149 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
10150 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
10152 (do_fp_register_row): Fix typo which caused double type to be
10153 used when attempting to unpack a float.
10155 2003-03-11 J. Brobecker <brobecker@gnat.com>
10157 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
10159 2003-03-11 Andrew Cagney <cagney@redhat.com>
10161 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
10162 frame. Problem found by Corinna Vinschen.
10164 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
10166 * doublest.c (floatformat_from_length): Accept also
10167 the real size of 'long double' type.
10169 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
10171 From Klee Dienes <kdienes@apple.com>:
10172 * breakpoint.c (bpstat_copy): Copy the command lines as well
10173 as the old value, to match what is freed in bpstat_clear.
10175 2003-03-10 David Carlton <carlton@math.stanford.edu>
10177 * minsyms.c (add_minsym_to_hash_table): Replace
10178 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
10179 (compare_minimal_symbols, compact_minimal_symbols)
10180 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
10181 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
10182 of DEPRECATED_SYMBOL_MATCHES_NAME.
10183 (lookup_minimal_symbol_solib_trampoline): Ditto.
10185 2003-03-10 Andrew Cagney <cagney@redhat.com>
10187 * regcache.h (regcache_cooked_read_ftype): Define.
10188 (regcache_save, regcache_restore): Add a cooked_read parameter.
10189 * regcache.c (regcache_save, regcache_restore): Update.
10190 (do_cooked_read): New function.
10191 (regcache_cpy): Pass do_cooked_read to regcache_save and
10194 2003-03-10 Andrew Cagney <cagney@redhat.com>
10196 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
10197 * gdbarch.h, gdbarch.c: Re-generate.
10198 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10199 * x86-64-tdep.h: Update.
10200 * x86-64-tdep.c (x86_64_init_abi): Update.
10201 * v850-tdep.c (v850_gdbarch_init): Update.
10202 * sparc-tdep.c (sparc_gdbarch_init): Update.
10203 * sh-tdep.c (sh_gdbarch_init): Update.
10204 * s390-tdep.c (s390_gdbarch_init): Update.
10205 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10206 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10207 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10208 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10209 * mips-tdep.c (mips_gdbarch_init): Update.
10210 * mcore-tdep.c (mcore_gdbarch_init): Update.
10211 * m68k-tdep.c (m68k_gdbarch_init): Update.
10212 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10213 * ia64-tdep.c (ia64_gdbarch_init): Update.
10214 * i386-tdep.c (i386_gdbarch_init): Update.
10215 * i386-interix-tdep.c (i386_interix_init_abi): Update.
10216 * hppa-tdep.c (hppa_gdbarch_init): Update.
10217 * h8300-tdep.c (h8300_gdbarch_init): Update.
10218 * frv-tdep.c (frv_gdbarch_init): Update.
10219 * cris-tdep.c (cris_gdbarch_init): Update.
10220 * avr-tdep.c (avr_gdbarch_init): Update.
10221 * arm-tdep.c (arm_gdbarch_init): Update.
10222 * alpha-tdep.c (alpha_gdbarch_init): Update.
10223 * sh-tdep.c (sh_init_extra_frame_info): Update.
10224 (sh64_init_extra_frame_info): Update.
10225 * ns32knbsd-nat.c (frame_num_args): Update.
10226 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
10227 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
10228 (xstormy16_frame_chain_valid): Update.
10229 * vax-tdep.c (vax_saved_pc_after_call): Update.
10230 * v850-tdep.c (v850_frame_chain): Update.
10231 (v850_pop_frame): Update.
10232 (v850_init_extra_frame_info): Update.
10233 * sparc-tdep.c (setup_arbitrary_frame): Update.
10234 * ns32k-tdep.c (umax_frame_num_args): Update.
10235 * s390-tdep.c (s390_pop_frame_regular): Update.
10236 * mn10300-tdep.c (mn10300_frame_chain): Update.
10237 (mn10300_pop_frame_regular): Update.
10238 (mn10300_init_extra_frame_info): Update.
10239 * mips-tdep.c (mips_init_frame_pc_first): Update.
10240 (mips_frame_chain): Update.
10241 (mips_pop_frame): Update.
10242 * mcore-tdep.c (mcore_frame_chain): Update.
10243 (mcore_pop_frame): Update.
10244 (mcore_init_extra_frame_info): Update.
10245 * arch-utils.c (init_frame_pc_default): Update.
10246 * m68k-tdep.c (isi_frame_num_args): Update.
10247 (delta68_frame_num_args): Update.
10248 (news_frame_num_args): Update.
10249 * ia64-tdep.c (ia64_pop_frame_regular): Update.
10250 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10251 (alpha_frame_chain): Update.
10252 (alpha_pop_frame): Update.
10253 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
10254 (hppa_init_extra_frame_info): Update.
10255 (hppa_frame_chain): Update.
10256 (hppa_frame_chain_valid): Update.
10257 * cris-tdep.c (cris_init_extra_frame_info): Update.
10258 * avr-tdep.c (avr_init_extra_frame_info): Update.
10259 * arm-tdep.c (arm_frame_chain_valid): Update.
10260 (arm_init_extra_frame_info): Update.
10261 (arm_pop_frame): Update.
10262 * frame.c (frame_pc_unwind): Update.
10263 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
10264 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10265 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10266 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
10267 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
10268 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
10270 2003-03-10 Andrew Cagney <cagney@redhat.com>
10272 * gdbarch.sh (gdbarch_unwind_pc): New method.
10273 * gdbarch.h, gdbarch.c: Regenerate.
10274 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
10275 but use read_pc and FRAME_SAVED_PC as fall backs.
10276 (frame_saved_regs_pc_unwind): Delete function.
10277 (trad_frame_unwinder): Update.
10278 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
10279 (struct frame_unwind): Update.
10280 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
10281 (dummy_frame_unwind): Update.
10282 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
10283 (sentinel_frame_unwinder): Update.
10284 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
10285 (d10v_frame_unwind): Update.
10286 (d10v_unwind_pc): New function.
10287 (d10v_gdbarch_init): Set unwind_pc.
10289 2003-03-10 Andrew Cagney <cagney@redhat.com>
10291 * gdbarch.h: Re-generate.
10293 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
10295 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
10298 2003-03-08 Mark Kettenis <kettenis@gnu.org>
10300 * gdbarch.sh (save_dummy_frame_tos): Add comment.
10302 2003-03-08 Andrew Cagney <cagney@redhat.com>
10304 * cli-out.c: Update copyright.
10305 (cli_out_data): Define typedef. Use instead of ui_out_data.
10307 2003-03-08 Andrew Cagney <cagney@redhat.com>
10309 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
10312 2003-03-07 Andrew Cagney <cagney@redhat.com>
10314 * gdbarch.sh: Don't generate two macro definitions when an
10315 undefined macro taking no arguments.
10316 * gdbarch.h: Regenerate.
10318 2002-03-07 Michal Ludvig <mludvig@suse.cz>
10320 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
10321 (x86_64_unwind_dummy_id): New functions.
10322 (x86_64_init_abi): Register these two new functions.
10324 2003-03-07 Michal Ludvig <mludvig@suse.cz>
10326 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
10327 (x86_64_skip_prologue): Move prologue detection to
10329 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
10331 2003-03-05 Andrew Cagney <cagney@redhat.com>
10333 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
10334 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
10335 * frame.c (get_prev_frame): Restructure the frame ID unwind code
10336 to use unwind_dummy_id when a dummy frame.
10337 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
10339 * gdbarch.h, gdbarch.c: Regneerate.
10341 2003-03-05 Andrew Cagney <cagney@redhat.com>
10343 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
10344 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
10345 Do not use d10v_read_sp or d10v_read_fp when obtaining register
10348 2003-03-05 Andrew Cagney <cagney@redhat.com>
10350 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
10351 (struct d10v_unwind_cache): Delete field "frameless". Replace
10352 "next_addr" with "sp_offset". Add "r11_offset".
10353 (d10v_frame_unwind_cache): Update.
10354 (prologue_find_regs): Update. When "mv r11, sp", save the
10355 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
10356 RN was saved in r11_offset.
10358 2003-03-05 Andrew Cagney <cagney@redhat.com>
10360 * frame.c (deprecated_update_frame_pc_hack): Also update the the
10361 cached PC value in the next frame.
10363 2003-03-05 Andrew Cagney <cagney@redhat.com>
10365 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
10366 "id_unwind_cache" with "id".
10367 (frame_id_unwind): Delete declaration.
10368 * frame.c (frame_id_unwind): Delete function.
10369 (get_prev_frame): Call the frame id unwind method directly. Store
10370 the returned next frame's ID value in NEXT_FRAME. Note that there
10371 is a problem with the wrong unwind ID being called with the wrong
10374 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10376 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
10378 2003-03-05 James Ingham <jingham@apple.com>
10379 Daniel Jacobowitz <drow@mvista.com>
10381 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
10382 (auto_cp_abi): New variable.
10383 (current_cp_abi, num_cp_abis): Make static.
10384 (CP_ABI_MAX): Define.
10385 (cp_abis): Turn into an array.
10386 (value_virtual_fn_field): Fix formatting.
10387 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
10389 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
10390 (list_cp_abis, _initialize_cp_abi): New functions.
10391 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
10392 declarations for cp_abis, num_cp_abis, current_cp_abi, and
10393 switch_to_cp_abi. Update prototype for register_cp_abi.
10394 * Makefile.in (cp-abi.o): Update dependencies.
10395 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
10396 instead of switch_to_cp_abi.
10397 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
10399 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
10401 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
10403 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
10405 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
10406 * dwarf2loc.c: Include "regcache.h".
10407 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
10409 * Makefile.in (dwarf2loc.o): Update dependencies.
10411 2003-03-04 Theodore A. Roth <troth@openavr.org>
10413 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
10414 number of io registers reported by remote target is not a multiple of
10417 2003-03-04 David Carlton <carlton@math.stanford.edu>
10419 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
10420 (lookup_symbol_aux_psymtabs): Update call to
10421 lookup_partial_symbol.
10422 (lookup_transparent_type, find_main_psymtab)
10423 (make_symbol_overload_list): Ditto.
10425 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
10427 * MAINTAINERS (Write after approval): Update my email address.
10429 2003-03-03 Andrew Cagney <cagney@redhat.com>
10431 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
10432 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
10433 predicate. Replace MAX_REGISTER_RAW_SIZE.
10434 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
10435 MAX_REGISTER_VIRTUAL_SIZE.
10436 * regcache.c (legacy_max_register_raw_size): New function.
10437 (legacy_max_register_virtual_size): New function.
10438 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
10439 (MAX_REGISTER_RAW_SIZE): Define.
10440 (legacy_max_register_raw_size): Declare.
10441 (legacy_max_register_virtual_size): Declare.
10442 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10443 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
10444 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10445 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10446 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
10447 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
10448 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10449 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10450 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
10451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10452 * vax-tdep.c (vax_gdbarch_init): Update.
10453 * v850-tdep.c (v850_gdbarch_init): Update.
10454 * sparc-tdep.c (sparc_gdbarch_init): Update.
10455 * sh-tdep.c (sh_gdbarch_init): Update.
10456 * s390-tdep.c (s390_gdbarch_init): Update.
10457 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10458 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10459 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10460 * mips-tdep.c (mips_gdbarch_init): Update.
10461 * mcore-tdep.c (mcore_gdbarch_init): Update.
10462 * m68k-tdep.c (m68k_gdbarch_init): Update.
10463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10464 * ia64-tdep.c (ia64_gdbarch_init): Update.
10465 * i386-tdep.c (i386_gdbarch_init): Update.
10466 * hppa-tdep.c (hppa_gdbarch_init): Update.
10467 * h8300-tdep.c (h8300_gdbarch_init): Update.
10468 * frv-tdep.c (frv_gdbarch_init): Update.
10469 * cris-tdep.c (cris_gdbarch_init): Update.
10470 * avr-tdep.c (avr_gdbarch_init): Update.
10471 * arm-tdep.c (arm_gdbarch_init): Update.
10472 * alpha-tdep.c (alpha_gdbarch_init): Update.
10473 * d10v-tdep.c (d10v_gdbarch_init): Do not set
10474 max_register_raw_size or max_register_virtual_size.
10476 2003-03-03 David Carlton <carlton@math.stanford.edu>
10478 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
10479 SYMBOL_MATCHES_NAME, add comment.
10480 (SYMBOL_MATCHES_NATURAL_NAME): New.
10481 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
10482 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
10483 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
10484 * symtab.c (lookup_partial_symbol): Use
10485 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
10487 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
10488 SYMBOL_MATCHES_NAME.
10491 2003-03-03 David Carlton <carlton@math.stanford.edu>
10493 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
10494 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
10495 by regexp matching against SYMBOL_NATURAL_NAME.
10497 2003-03-03 David Carlton <carlton@math.stanford.edu>
10499 * linespec.c (find_method): Extract code into collect_methods.
10500 (collect_methods): New.
10502 2003-03-02 Mark Kettenis <kettenis@gnu.org>
10504 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
10507 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
10508 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10510 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
10512 * arch-utils.c (generic_register_byte): Fix to use the loop index
10513 and not regnum when summing the size of all registers up to regnum.
10515 2003-03-01 Andrew Cagney <cagney@redhat.com>
10517 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
10518 FRAME_INIT_SAVED_REGS.
10519 * gdbarch.h, gdbarch.c: Regenerate.
10520 * stack.c (frame_info): Update.
10521 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
10522 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
10523 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
10524 * ns32k-tdep.c (ns32k_pop_frame): Update.
10525 * mips-tdep.c (mips_pop_frame): Update.
10526 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
10527 * ia64-tdep.c (ia64_frame_chain): Update.
10528 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
10529 (ia64_frameless_function_invocation): Update.
10530 (ia64_init_extra_frame_info): Update.
10531 (ia64_pop_frame_regular): Update.
10532 * frame.h (struct frame_info): Update comment.
10533 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
10534 * frame.c (frame_saved_regs_register_unwind): Update.
10535 (frame_saved_regs_register_unwind): Update.
10536 (deprecated_generic_get_saved_register): Update.
10537 * cris-tdep.c: Update comment.
10538 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
10540 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10541 * x86-64-tdep.c (x86_64_init_abi): Update.
10542 * vax-tdep.c (vax_gdbarch_init): Update.
10543 * v850-tdep.c (v850_gdbarch_init): Update.
10544 * sparc-tdep.c (sparc_gdbarch_init): Update.
10545 * sh-tdep.c (sh_gdbarch_init): Update.
10546 * s390-tdep.c (s390_gdbarch_init): Update.
10547 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10548 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
10549 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10550 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10551 * mips-tdep.c (mips_gdbarch_init): Update.
10552 * mcore-tdep.c (mcore_gdbarch_init): Update.
10553 * m68k-tdep.c (m68k_gdbarch_init): Update.
10554 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10555 * ia64-tdep.c (ia64_gdbarch_init): Update.
10556 * i386-tdep.c (i386_gdbarch_init): Update.
10557 * frv-tdep.c (frv_gdbarch_init): Update.
10558 * avr-tdep.c (avr_gdbarch_init): Update.
10559 * arm-tdep.c (arm_gdbarch_init): Update.
10560 * alpha-tdep.c (alpha_gdbarch_init): Update.
10562 2003-03-01 Andrew Cagney <cagney@redhat.com>
10564 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
10565 option enum and switch. When no windows, set the interpreter to
10568 2003-03-01 Andrew Cagney <cagney@redhat.com>
10570 * main.c (captured_main): Replace magic option characters with an
10573 2003-03-01 Andrew Cagney <cagney@redhat.com>
10575 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
10576 INIT_EXTRA_FRAME_INFO.
10577 * gdbarch.h, gdbarch.c: Regenerate.
10578 * arm-tdep.c: Update comments.
10579 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
10580 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
10581 * frame.h, avr-tdep.c: Ditto.
10582 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
10583 (create_new_frame, legacy_get_prev_frame): Ditto.
10584 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10585 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
10586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
10587 deprecated_init_extra_frame_info instead of init_extra_frame_info.
10588 * x86-64-tdep.c (x86_64_init_abi): Ditto.
10589 * v850-tdep.c (v850_gdbarch_init): Ditto.
10590 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10591 * sh-tdep.c (sh_gdbarch_init): Ditto.
10592 * s390-tdep.c (s390_gdbarch_init): Ditto.
10593 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
10594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10595 * mips-tdep.c (mips_gdbarch_init): Ditto.
10596 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10597 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10598 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10599 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10600 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10601 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10602 * frv-tdep.c (frv_gdbarch_init): Ditto.
10603 * cris-tdep.c (cris_gdbarch_init): Ditto.
10604 * avr-tdep.c (avr_gdbarch_init): Ditto.
10605 * arm-tdep.c (arm_gdbarch_init): Ditto.
10606 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10607 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10609 2003-03-01 Andrew Cagney <cagney@redhat.com>
10611 * gdbarch.sh (register_type): New function with predicate.
10612 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
10613 * gdbarch.h, gdbarch.c: Re-generate.
10614 * arch-utils.c (generic_register_byte): Use generic_register_size.
10615 (generic_register_size): When available, use
10616 gdbarch_register_type.
10617 * regcache.c (init_regcache_descr): When available, initialize the
10618 register type array using gdbarch_register_type. If the
10619 architecture supplies gdbarch_register_type, do not use the legacy
10621 * d10v-tdep.c (d10v_register_type): Replace
10622 d10v_register_virtual_type.
10623 (d10v_gdbarch_init): Set register_type instead of
10624 register_virtual_type.
10626 2003-03-01 Andrew Cagney <cagney@redhat.com>
10628 * Makefile.in (ax-gdb.o): Update dependencies.
10629 * ax-gdb.c: Include "regcache.h".
10630 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
10631 * findvar.c (value_of_register): Ditto.
10632 * infcmd.c (default_print_registers_info): Ditto.
10634 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10636 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
10637 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
10639 2003-03-01 Mark Kettenis <kettenis@gnu.org>
10641 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
10644 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
10646 * Makefile.in (dwarf2loc.o): Update dependencies.
10647 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
10648 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
10649 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
10650 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
10651 (locexpr_tracepoint_var_ref): New function.
10652 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
10654 2003-02-28 Andrew Cagney <cagney@redhat.com>
10656 * regcache.c (register_size): New function.
10657 * regcache.h (register_size): Declare
10658 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
10659 max_register_size instead of MAX_REGISTER_RAW_SIZE.
10661 2003-02-28 David Carlton <carlton@math.stanford.edu>
10663 * linespec.c (decode_compound): Extract code into find_method.
10664 (find_method): New.
10666 2003-02-28 J. Brobecker <brobecker@gnat.com>
10668 * Makefile.in: Add rules to build and link in observer.o.
10670 2003-02-27 J. Brobecker <brobecker@gnat.com>
10672 * observer.c: Minor comments edits.
10674 2003-02-27 J. Brobecker <brobecker@gnat.com>
10676 * observer.h, observer.c: New file.
10678 2003-02-27 Andrew Cagney <cagney@redhat.com>
10680 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
10682 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
10684 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
10685 (M6812_OP_STS_EXT): Likewise.
10686 (m6811_prologue): Use the above to recognize prologue.
10687 (m6812_prologue): Likewise.
10689 2003-02-27 David Carlton <carlton@math.stanford.edu>
10691 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
10693 (compare_psymbols): Ditto.
10694 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
10696 2003-02-27 Michael Snyder <msnyder@redhat.com>
10698 * f-lang.c (build_fortran_types): New function.
10699 (_initialize_f_language): Gdbarch-register built-in fortran types.
10700 * doublest.c (extract_floating): Fix warning text.
10702 2003-02-27 Andrew Cagney <cagney@redhat.com>
10704 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
10705 predicate. Replaces PUSH_DUMMY_FRAME.
10706 * gdbarch.h, gdbarch.c: Regnerate.
10707 * valops.c (hand_function_call): Update. Call
10708 generic_push_dummy_frame directly.
10709 * vax-tdep.c (vax_gdbarch_init): Update.
10710 * sparc-tdep.c (sparc_gdbarch_init): Update.
10711 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10712 * m68k-tdep.c (m68k_gdbarch_init): Update.
10713 * hppa-tdep.c (hppa_gdbarch_init): Update.
10714 * alpha-tdep.c (alpha_gdbarch_init): Update.
10715 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10716 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
10717 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
10718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
10719 push_dummy_frame to generic_push_dummy_frame.
10720 * v850-tdep.c (v850_gdbarch_init): Ditto.
10721 * sh-tdep.c (sh_gdbarch_init): Ditto.
10722 * s390-tdep.c (s390_gdbarch_init): Ditto.
10723 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10724 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10725 * mips-tdep.c (mips_gdbarch_init): Ditto.
10726 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10727 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10728 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10729 * i386-tdep.c (i386_gdbarch_init): Ditto.
10730 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10731 * frv-tdep.c (frv_gdbarch_init): Ditto.
10732 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10733 * cris-tdep.c (cris_gdbarch_init): Ditto.
10734 * avr-tdep.c (avr_gdbarch_init): Ditto.
10735 * arm-tdep.c (arm_gdbarch_init): Ditto.
10737 2003-02-26 Kevin Buettner <kevinb@redhat.com>
10739 * mips-tdep.c (show_mips_abi): New function.
10740 (_initialize_mips_tdep): Use show_mips_abi() to implement the
10741 command ``show mips abi''.
10743 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
10745 From Elena Zannoni <ezannoni@redhat.com>
10746 * dbxread.c (process_one_symbol): Only record line 0 if one or
10747 more sline entries have been seen for the function.
10749 2003-02-26 Michael Chastain <mec@shout.net>
10751 * configure: Regenerate with autoconf 000227.
10753 2003-02-26 Michael Chastain <mec@shout.net>
10755 Close PR build/660.
10756 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
10757 for old libc5/glibc.
10758 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
10760 2003-02-26 Kris Warkentin <kewarken@qnx.com>
10762 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
10763 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
10765 2003-02-26 Michael Chastain <mec@shout.net>
10767 * configure.in: New variable HAVE_UINTPTR_T.
10768 * configure, config.in: Regenerated.
10770 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
10773 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
10775 2003-02-25 Andrew Cagney <cagney@redhat.com>
10777 * frame.c (get_prev_frame): Add comment on check for
10778 inside_entry_func. Only check for inside_entry_file when not a
10779 dummy and not a sentinel. Check that the new frame is not inner
10782 2003-02-25 Andrew Cagney <cagney@redhat.com>
10784 * frame.c (frame_debug): New variable.
10785 (_initialize_frame): Add "set/show debug frame" command.
10786 (get_prev_frame): When frame_debug, print reason why unwind
10789 2003-02-25 Michael Chastain <mec@shout.net>
10791 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
10792 to avoid uintptr_t definition problems.
10794 2003-02-25 David Carlton <carlton@math.stanford.edu>
10796 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
10797 (SYMBOL_LINKAGE_NAME): Ditto.
10798 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
10799 SYMBOL_LINKAGE_NAME.
10800 (struct general_symbol_info): Expand comment.
10801 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
10802 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
10803 (SYMBOL_MATCHES_REGEXP): Ditto.
10804 * symtab.c (symbol_natural_name): New function.
10805 * objfiles.h: Replace all uses of SYMBOL_NAME by
10806 DEPRECATED_SYMBOL_NAME.
10807 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
10808 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
10809 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
10810 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
10811 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
10812 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
10813 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
10814 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
10815 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
10816 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
10817 * ada-exp.y: Ditto.
10818 * ada-exp.y: Update copyright.
10819 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
10820 * cp-valprint.c: Ditto.
10822 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
10824 * infptrace.c (detach): Do not flag error if ptrace detach fails
10825 and errno is set to ESRCH.
10827 2003-02-24 Andrew Cagney <cagney@redhat.com>
10829 * infptrace.c (udot_info): Change type of udot_off to long. Use
10830 paddr when printing udot_off's value.
10832 2003-02-24 David Carlton <carlton@math.stanford.edu>
10834 * symtab.c (make_symbol_overload_list): Only read in partial
10835 symtabs containing a matching partial symbol.
10837 2003-02-24 David Carlton <carlton@math.stanford.edu>
10839 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
10840 do the comparison, not strcmp.
10841 * symfile.c (compare_psymbols): Ditto.
10842 * defs.h: Declare strcmp_iw_ordered.
10843 * utils.c (strcmp_iw_ordered): New function.
10845 2003-02-24 Jim Blandy <jimb@redhat.com>
10847 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
10848 support, shared libs): Remove my name from here, to better reflect
10851 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10853 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
10854 (target_ops): Add to_have_continuable_watchpoint.
10855 * target.c (update_current_target): Add INHERIT line for
10856 to_have_continuable_watchpoint.
10857 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
10858 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
10859 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
10860 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
10862 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
10864 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
10867 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10869 * solib.c (solib_open): Call target defined search function after
10870 failing with solib-search-path.
10871 * solist.h (target_so_ops): Add find_and_open_solib function hook and
10872 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
10874 2003-02-24 Kris Warkentin <kewarken@qnx.com>
10876 * MAINTAINERS: Add myself to Write After section.
10878 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
10880 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
10882 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
10884 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
10885 (m68hc11_add_reggroups): New function.
10886 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
10887 (m68hc11_gdbarch_init): Install the reggroups.
10888 (_initialize_m68hc11_tdep): Initialize them.
10890 2003-02-21 James E Wilson <wilson@tuliptree.org>
10892 * MAINTAINERS: Update my email address.
10894 2003-02-21 David Carlton <carlton@math.stanford.edu>
10896 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
10898 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
10900 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
10901 * symtab.h: Add opaque declarations of struct axs_value and
10903 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
10904 (struct location_funcs): New type.
10905 (struct symbol): Add "loc" to aux_value.
10906 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
10907 * dwarf2read.c: Include "dwarf2expr.h".
10908 (dwarf2_symbol_mark_computed): New function.
10909 (read_func_scope): Use it.
10910 (var_decode_location): New function.
10911 (new_symbol): Use it.
10912 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
10914 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
10915 (dwarf2expr_h, dwarf2loc_h): New variables.
10916 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
10917 (dwarf2expr.o, dwarf2loc.o): New rules.
10918 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
10919 * buildsym.c (finish_block): Handle LOC_COMPUTED and
10921 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
10922 * m2-exp.y (yylex): Likewise.
10923 * printcmd.c (address_info, print_frame_args): Likewise.
10924 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
10925 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
10926 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
10927 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
10928 * symtab.c (lookup_block_symbol): Likewise.
10930 2003-02-20 Adam Fedor <fedor@gnu.org>
10932 * symtab.h: Remove objc_specific struct
10933 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
10934 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
10935 Have language_objc use cplus_specific struct.
10937 2003-02-20 Tom Tromey <tromey@redhat.com>
10939 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
10940 TYPE_NAME, when printing a String value. PR java/1075.
10942 2003-02-20 Adam Fedor <fedor@gnu.org>
10944 * objc-lang.h (find_methods): Remove declaration.
10945 * objc-lang.c (find_methods): Make static.
10947 2003-02-20 Christopher Faylor <cgf@redhat.com>
10949 * win32-nat.c (get_image_name): Check return value from
10951 (child_xfer_memory): Ditto.
10953 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
10955 * configure.in (TARGET_SYSTEM_ROOT): Set default to
10956 ${exec_prefix}/${target_alias}/sys-root. Match explicit
10957 '${exec_prefix}' (in addition to the expansion thereof) as
10959 * configure: Rebuilt.
10961 2003-02-20 David Carlton <carlton@math.stanford.edu>
10963 * symtab.c (search_symbols): Revert the search_symbols part of my
10964 2002-12-23 patch. Add comment.
10966 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10968 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
10969 * dbxread.c (elfstab_build_psymtabs): Don't call
10970 install_minimal_symbols.
10971 (stabsect_build_psymtabs): Likewise.
10972 * elfread.c (elf_symfile_read): Call install_minimal_symbols
10974 * somread.c (som_symfile_read): Call install_minimal_symbols
10975 and do_cleanups earlier.
10976 * nlmread.c (nlm_symfile_read): Likewise.
10977 * mdebugread.c (elfmdebug_build_psymtabs): Call
10978 install_minimal_symbols and make appropriate cleanups.
10980 2003-02-20 Kevin Buettner <kevinb@redhat.com>
10982 * solib.c (reload_shared_libraries): New function.
10983 (_initialize_solib): Add callbacks for ``set solib-search-path''
10984 and ``set solib-absolute-prefix''.
10986 2003-02-20 David Carlton <carlton@math.stanford.edu>
10988 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
10990 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
10991 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
10992 * ada-typeprint.c (ada_typedef_print): Ditto.
10993 * ax-gdb.c (gen_var_ref): Ditto.
10994 * breakpoint.c (print_one_breakpoint): Ditto.
10995 * buildsym.c (finish_block): Ditto.
10996 * c-valprint.c (c_val_print): Ditto.
10997 * expprint.c (print_subexp): Ditto.
10998 * findvar.c (locate_var_value): Ditto.
10999 * infcmd.c (jump_command): Ditto.
11000 * linespec.c (decode_line_2, decode_compound): Ditto.
11001 * maint.c (maintenance_translate_address): Ditto.
11002 * objc-lang.c (compare_selectors, compare_classes): Ditto.
11003 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
11005 * p-valprint.c (pascal_val_print): Ditto.
11006 * stabsread.c (define_symbol): Ditto.
11007 * stack.c (print_frame, frame_info, print_block_frame_locals)
11008 (print_frame_arg_vars, return_command): Ditto.
11009 * symfile.c (compare_symbols, compare_psymbols): Ditto.
11010 * symmisc.c (print_symbol): Ditto.
11011 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
11012 (compare_search_syms, print_symbol_info, print_msymbol_info)
11013 (rbreak_command): Ditto.
11014 * tracepoint.c (tracepoints_info): Ditto.
11015 * typeprint.c (typedef_print): Ditto.
11016 * valops.c (value_of_variable, hand_function_call): Ditto.
11017 * cli/cli-cmds.c (edit_command, list_command): Ditto.
11018 * ada-typeprint.c: Update Copyright.
11019 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
11020 * tracepoint.c, cli/cli-cmds.c: Ditto.
11022 2003-02-20 Kevin Buettner <kevinb@redhat.com>
11024 * frame.c (generic_unwind_get_saved_register): Make non-static.
11025 * frame.h (generic_unwind_get_saved_register): Declare.
11026 * mips-tdep.c (read_next_frame_reg): Fetch register from
11027 current regcache when frame is NULL.
11028 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
11030 (mips_get_saved_register): Call generic_unwind_get_saved_register()
11031 instead of frame_register_unwind().
11033 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11035 * remote-sim.c (gdbsim_insert_breakpoint)
11036 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
11039 2003-02-20 Andrew Cagney <ac131313@redhat.com>
11041 * remote.c (_initialize_remote): Add commands "set/show remote
11042 hardware-watchpoint-limit" and "set/show remote
11043 hardware-breakpoint-limit".
11044 (remote_hw_watchpoint_limit): Initialize to -1.
11045 (remote_hw_breakpoint_limit): Ditto.
11046 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
11048 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
11050 * coff-pe-read.c: New file - support reading of minimal symbols from a
11051 portable executable using the export table.
11052 * coff-pe-read.h: New file.
11053 * coffread.c: Include coff-pe-read.h.
11054 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
11055 debugging symbols found.
11056 * Makefile.in (SFILES): Add coff-pe-read.o.
11057 (coff_pe_read_h): Define.
11058 (COMMON_OBS): Add coff-pe-read.o.
11059 (coffread.o): Add coff_pe_read_h dependency.
11060 (coff-pe-read.o): New target.
11062 2003-02-19 David Carlton <carlton@math.stanford.edu>
11064 * Makefile.in (SFILES): Add block.c.
11066 (COMMON_OBS): Add block.o.
11068 (x86-64-tdep.o): Add $(block_h).
11069 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
11070 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
11071 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
11072 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
11073 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
11074 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
11075 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
11076 * value.h: Add opaque declaration for struct block.
11077 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
11078 * ada-lang.h: Ditto.
11079 * x86-64-tdep.c: #include "block.h"
11080 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
11081 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
11082 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
11083 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
11084 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
11085 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
11086 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
11087 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
11088 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
11089 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
11090 * symtab.c (block_function): Ditto.
11091 (contained_in): Ditto.
11092 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
11093 block.h. Add opaque declaration for struct block.
11094 * symtab.h: Move block_function and contained_in declarations to
11095 block.h. Add opaque declarations for struct block, struct
11097 (struct block): Move to block.h.
11098 (struct blockvector): Ditto.
11099 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
11100 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
11101 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
11102 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
11103 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
11105 * block.c: New file.
11106 * block.h: New file.
11108 2003-02-19 Theodore A. Roth <troth@openavr.org>
11110 * avr-tdep.c (avr_extract_return_value): Remove function.
11111 (avr_store_return_value): Remove function.
11112 (avr_extract_struct_value_address): Remove function.
11113 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
11115 2003-02-19 Andrew Cagney <ac131313@redhat.com>
11117 * rs6000-tdep.c: Include "gdb_assert.h".
11118 (registers_e500): Add "acc" and "spefscr".
11119 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
11120 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
11121 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
11123 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
11125 2003-02-18 Keith Seitz <keiths@redhat.com>
11127 * Makefile.in: Add gdbtk-interps.c.
11129 2003-02-18 Kevin Buettner <kevinb@redhat.com>
11131 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
11132 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
11134 2003-02-18 Andrew Cagney <cagney@redhat.com>
11136 * symtab.h (struct objfile): Add opaque declaration.
11138 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
11140 From Jim Ingham <jingham@apple.com>:
11141 * dbxread.c (process_one_symbol): Use last_function_start rather
11142 than function_start_offset to find the real beginning of the
11143 current function. The latter is just the text section offset on
11144 some systems, the former is always the real function start.
11146 2003-02-17 Andrew Cagney <cagney@redhat.com>
11148 * configure.in: Revert ${target} != ${host}.
11150 2003-02-17 Andrew Cagney <ac131313@redhat.com>
11152 * configure.in (Makefile): Use the test ${target} != ${host},
11153 instead of the absence of the "nm.h" file, to determine of the
11154 configuration non-native.
11155 * configure: Regenerate.
11157 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
11159 From Brian Ford <ford@vss.fsi.com>
11161 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
11162 conditionalize tui_active test.
11163 (lookup_cmd_1): Ditto.
11165 2003-02-14 Mark Kettenis <kettenis@gnu.org>
11167 * configure.in: Add check for _etext.
11168 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
11170 * config.in, configure: regenerated.
11172 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
11174 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
11176 2003-02-14 Andrew Cagney <ac131313@redhat.com>
11178 * main.c (tui_version): Delete variable.
11179 (captured_main): When --tui, set interpreter_p to "tui" instead of
11180 enabling tui_version.
11181 * printcmd.c (display_command) [TUI]: Test tui_active instead of
11183 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
11184 * cli/cli-cmds.c (disassemble_command): Ditto.
11185 * defs.h (tui_version): Delete declaration.
11186 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
11187 (tui-interp.o): Add rules.
11188 (SUBDIR_TUI_OBS): Add "tui-interp.o".
11190 2003-02-14 Christopher Faylor <cgf@redhat.com>
11192 * win32-nat.c (register_loaded_dll): Correctly set address range for
11195 2003-02-12 Jason Molenda (jmolenda@apple.com)
11197 * symmisc.c (print_objfile_statistics): Include information about
11198 the number of psymtabs and symtabs in each object file.
11200 2003-02-13 Keith R Seitz <keiths@redhat.com>
11202 * main.h (struct captured_main_args): Add interpreter_p.
11203 * main.c (captured_main): Initialize interpreter_p from context.
11204 * gdb.c (main): Set interpreter_p argument.
11205 * Makefile.in (gdb.o): Add dependency for interps.h.
11207 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11209 * event-top.c (cli_command_loop): Delete declaration.
11210 (_initialize_event_loop): Delete function setting event_loop_hook.
11211 * event-top.h (cli_command_loop): Declare. Update copyright.
11212 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
11213 * interps.c (current_interp_command_loop): When event_loop_p, call
11216 2003-02-12 Andrew Cagney <ac131313@redhat.com>
11218 * interps.h (interp_command_loop_ftype): Change return type to
11221 2003-02-12 Michal Ludvig <mludvig@suse.cz>
11223 * x86-64-tdep.c (x86_64_extract_return_value)
11224 (x86_64_store_return_value): Use regcache instead of regbuf.
11225 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
11226 * x86-64-linux-nat.c (fill_gregset): Use regcache.
11228 2003-02-11 Andrew Cagney <ac131313@redhat.com>
11230 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
11231 * aclocal.m4: Regenerate.
11232 * configure: Regenerate.
11234 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
11235 TCL_LD_SEARCH_FLAGS.
11237 2003-02-10 Michal Ludvig <mludvig@suse.cz>
11239 * dwarf2cfi.c: Reindented.
11241 2003-02-09 Andrew Cagney <ac131313@redhat.com>
11243 * interps.c (clear_interpreter_hooks): Convert function definition
11246 2003-02-07 David Carlton <carlton@math.stanford.edu>
11248 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
11250 2003-02-07 Kevin Buettner <kevinb@redhat.com>
11252 * gdbtypes.h (struct main_type): Move ``length'' field from here...
11253 (struct type): ...to here.
11254 (TYPE_LENGTH): Adjust to reflect different location of ``length''
11256 * gdbtypes.c (make_qualified_type): Set length on newly created type.
11257 (replace_type): Set length on all type variants for a given type.
11259 2003-02-07 Andrew Cagney <ac131313@redhat.com>
11261 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
11263 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
11265 2003-02-06 Andrew Cagney <ac131313@redhat.com>
11267 * Makefile.in (symm-nat.o): Update dependencies.
11268 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
11269 (lynx-nat.o, ia64-linux-nat.): Ditto.
11270 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
11271 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
11272 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
11274 * Makefile.in (inflow_h): Define.
11275 (procfs.o, inflow.o, procfs.o): Update dependencies.
11276 * inftarg.c (child_stop): Delete extern declaration of
11277 inferior_process_group. Include "inflow.h".
11278 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
11279 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
11280 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
11281 (our_process_group, inferior_process_group): Extern declarations.
11283 * procfs.c: Include "gdb_assert.h".
11285 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11286 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
11287 * jv-typeprint.c (java_type_print_base): Ditto.
11288 * typeprint.c (typedef_print): Eliminate STREQ.
11289 * cli/cli-script.c (define_command, define_command): Ditto.
11290 * main.c (captured_main): Ditto.
11291 * values.c (lookup_internalvar): Ditto.
11292 * utils.c (safe_strerror, parse_escape): Eliminate assignment
11293 within `if' conditional.
11294 * linespec.c (decode_line_2): Ditto.
11295 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
11296 (bfd_openw_with_cleanup): Ditto.
11298 2003-02-07 Mark Kettenis <kettenis@gnu.org>
11300 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
11301 legacy_extract_return_value and store_return_value to
11302 legacy_return_value.
11304 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
11306 * win32-nat.c (get_relocated_section_addrs): New function. Find
11307 section load addresses for symbol handling in relocated DLLs.
11308 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
11310 2003-02-05 Fred Fish <fnf@intrinsity.com>
11312 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
11314 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
11316 (angel_RDI_info): Ditto.
11317 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
11319 (threads_continue_all_with_signals): Ditto.
11321 2003-02-05 Jim Ingham <jingham@apple.com>
11322 Keith Seitz <keiths@redhat.com>
11323 Elena Zannoni <ezannoni@redhat.com>
11324 Andrew Cagney <ac131313@redhat.com>
11326 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
11327 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
11328 (SUBDIR_MI_OBS): Add "mi-interp.o".
11329 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
11330 (SFILES): Add "interps.c".
11331 (COMMON_OBS): Add "interps.o".
11332 (interps_h, mi_main_h): Define.
11333 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
11334 (mi-main.o, main.o, event-top.o): Update dependencies.
11335 * cli/cli-interp.c: New file.
11336 * interps.h, interps.c: New files.
11337 * top.c: (gdb_init): Don't install the default interpreter, handed
11339 * main.c: Include "interps.h".
11340 (interpreter_p): Note that it should malloc'ed.
11341 (captured_command_loop): Call current_interp_command_loop.
11342 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
11343 xfree and xstrdup when updating interpreter_p. Install the
11344 default interpreter. Add hack to stop mi1's copyright notice
11346 * event-top.h (gdb_setup_readline): Declare.
11347 (gdb_disable_readline): Declare.
11348 * event-top.c: Include "interps.h".
11349 (display_gdb_prompt): Call current_interp_display_prompt_p.
11350 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
11351 gdb_stdlog, and gdb_stdtarg.
11352 (_initialize_event_loop): Don't call gdb_setup_readline.
11353 * cli-out.c (cli_out_set_stream): New function.
11354 * cli-out.h (cli_out_set_stream): Declare.
11356 2003-02-06 Mark Kettenis <kettenis@gnu.org>
11358 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
11359 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
11360 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
11361 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
11362 config/i386/i386v42mp.mt: Removed.
11364 2003-02-05 Mark Kettenis <kettenis@gnu.org>
11366 * configure.tgt (*-*-solaris*): Set gdb_osabi to
11369 2003-02-05 Michael Chastain <mec@shout.net>
11371 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
11372 2.12.1 and earlier versions.
11374 2003-02-05 Andrew Cagney <ac131313@redhat.com>
11376 Remove orphaned hosts, targets and files.
11377 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
11378 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
11379 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
11380 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
11381 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
11382 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
11383 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
11384 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
11385 * config/sparc/tm-sp64sim.h: Delete.
11386 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
11388 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
11389 mips*-dec-mach3* targets.
11391 2003-02-04 Michael Chastain <mec@shout.net>
11393 * NEWS: Fix typo: sepcifying -> specifying.
11395 2003-02-04 Michael Chastain <mec@shout.net>
11397 * dwarfread.c: Add documentation on the state of dwarf-1,
11398 looking towards obsoletion.
11400 2003-02-03 Michael Chastain <mec@shout.net>
11402 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
11403 gdb/testsuite/gdb.c++/pr-1023.exp.
11405 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11407 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
11408 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
11410 * utils.c (init_page_info): Delete reference to MPW in comments.
11411 * main.c (captured_main): Delete #ifdef MPW.
11413 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11415 * NEWS: Note that the m32r-*-elf* is obsolete.
11416 * monitor.c (monitor_expect): Obsolete reference to m32r.
11417 * configure.tgt: Mark m32r-*-elf* as obsolete.
11418 * MAINTAINERS: Mark m32k as obsolete.
11419 * m32r-rom.c: Obsolete file.
11420 * config/m32r/m32r.mt: Obsolete file.
11421 * config/m32r/tm-m32r.h: Obsolete file.
11422 * m32r-stub.c: Obsolete file.
11423 * m32r-tdep.c: Obsolete file.
11425 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11427 * NEWS: Mention that the z8k-zilog-none is obsolete.
11428 * MAINTAINERS: Mark z8k as obsolete.
11429 * configure.tgt: Obsolete the z8k-*-coff* target.
11430 * config/z8k/z8k.mt: Obsolete file.
11431 * config/z8k/tm-z8k.h: Obsolete file.
11432 * z8k-tdep.c: Obsolete file.
11434 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11436 * NEWS: Mention that the mn10200-elf is obsolete.
11437 * configure.tgt: Obsolete mn10200-*-* target.
11438 * breakpoint.c (update_breakpoints_after_exec): Update comment to
11439 mention that the mn10200 is obsolete.
11440 * breakpoint.h: Ditto.
11441 * MAINTAINERS: Mark the mn10200-elf as obsolete.
11442 * config/mn10200/mn10200.mt: Obsolete file.
11443 * config/mn10200/tm-mn10200.h: Obsolete file.
11444 * mn10200-tdep.c: Obsolete file.
11446 2003-02-04 Andrew Cagney <ac131313@redhat.com>
11448 * MAINTAINERS: Mark h8500 as obsolete.
11449 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
11450 * findvar.c (value_from_register): Ditto.
11451 * h8500-tdep.c: Mark file as obsolete.
11452 * config/h8500/h8500.mt: Ditto.
11453 * config/h8500/tm-h8500.h: Ditto.
11454 * NEWS: Mention that h8500 is obsolete.
11456 2003-02-04 David Carlton <carlton@math.stanford.edu>
11458 * objfiles.c (allocate_objfile): Always set name. Add comment at
11460 * jv-lang.c (get_dynamics_objfile): Add comment.
11462 2003-02-04 David Carlton <carlton@math.stanford.edu>
11464 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
11465 * printcmd.c (build_address_symbolic): Replace uses of
11466 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
11467 SYMBOL_NAME, and asm_demangle.
11470 2003-02-04 David Carlton <carlton@math.stanford.edu>
11472 * linespec.c (decode_compound): Extract code into
11474 (lookup_prefix_sym): New function.
11476 2003-02-04 David Carlton <carlton@math.stanford.edu>
11478 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
11479 FLOAT_COERCION_BADNESS.
11480 * gdbtypes.c (rank_one_type): Replace all uses of
11481 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
11483 2003-02-04 Jim Blandy <jimb@redhat.com>
11485 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
11486 section, let dwarf_macinfo_section point to it, not
11489 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11491 Pointed out by Anton Blanchard <anton@samba.org>.
11492 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
11493 (ppc_linux_at_sigtramp_return_path): Use it.
11495 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
11497 * defs.h (streq): Add prototype.
11498 * utils.c (streq): New function.
11500 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
11501 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
11502 * mdebugread.c (new_symbol): Likewise.
11503 * stabsread.c (define_symbol): Likewise.
11504 * coffread.c (process_coff_symbol): Likewise.
11505 * dwarfread.c (new_symbol): Likewise.
11507 * minsyms.c (prim_record_minimal_symbol_and_info): Use
11508 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
11510 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
11511 SYMBOL_INIT_DEMANGLED_NAME.
11512 * objfiles.c: Include "hashtab.h".
11513 (allocate_objfile): Call htab_set_functions_ex for the
11514 demangled_names_hash.
11515 (free_objfile): Call htab_delete for the demangled_names_hash.
11516 * objfiles.h (struct htab): Add declaration.
11517 (struct objfile): Add demangled_names_hash.
11518 * symfile.c: Include "hashtab.h".
11519 (reread_symbols): Call htab_delete for the demangled_names_hash.
11520 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
11521 SYMBOL_NAME in the bcache.
11522 * symtab.c: Include "hashtab.h". Update comments.
11523 (create_demangled_names_hash, symbol_set_names): New functions.
11524 (symbol_find_demangled_name): New function, broken out from
11525 symbol_init_demangled_names.
11526 (symbol_init_demangled_names): Use it.
11527 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
11528 (SYMBOL_SET_NAMES): New macro.
11529 (symbol_set_names): Add prototype.
11531 2003-02-03 Jim Blandy <jimb@redhat.com>
11533 Use a single, consistent representation for an empty minimal
11534 symbol table in an objfile.
11535 * objfiles.c (terminate_minimal_symbol_table): New function.
11536 (allocate_objfile): Call it.
11537 * objfiles.h (terminate_minimal_symbol_table): New declaration.
11538 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
11540 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
11541 objfile has minimal symbols, compare minimal_symbol_count to zero,
11542 instead of comparing msymbols with NULL.
11543 * objfiles.c (have_minimal_symbols): Same.
11544 * solib-sunos.c (solib_add_common_symbols): Call
11545 terminate_minimal_symbol_table.
11546 * symfile.c (reread_symbols): Same.
11548 2003-02-03 Kevin Buettner <kevinb@redhat.com>
11550 * s390-tdep.c (s390_address_class_type_flags)
11551 (s390_address_class_type_flags_to_name)
11552 (s390_address_class_name_to_type_flags): New functions.
11553 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
11554 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
11556 2003-02-03 Michael Snyder <msnyder@redhat.com>
11558 * arm-tdep.c: Fix spell-o in comment.
11560 2003-02-03 Michal Ludvig <mludvig@suse.cz>
11562 * dwarf2cfi.c (pointer_encoding): Added new parameter.
11563 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
11564 error messages to contain BFD filename.
11566 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
11568 Fix PR gdb/742 gdb/743 gdb/877
11569 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
11570 (do_mixed_source_and_assembly): Use
11571 make_cleanup_ui_out_tuple_begin_end and
11572 make_cleanup_ui_out_tuple_begin_end.
11573 (do_mixed_source_and_assembly): Ditto.
11574 * thread.c (do_captured_list_thread_ids): Ditto.
11575 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
11576 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
11577 ui_out_tuple_end): Delete prototypes.
11578 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
11579 ui_out_list_end, ui_out_tuple_end): Delete.
11581 From Kevin Buettner <kevinb@redhat.com>:
11582 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
11583 * ui-out.c (make_cleanup_ui_out_table_begin_end)
11584 (do_cleanup_table_end): New functions.
11585 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
11586 Use cleanups to invoke_ui_out_tuple_end().
11587 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
11588 * cli/cli-setshow.c (cmd_show_list): Use
11589 make_cleanup_ui_out_tuple_begin_end.
11591 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11593 * frame.c (frame_unwind_register): New function.
11594 (frame_unwind_unsigned_register): Use.
11595 (frame_unwind_signed_register): Use.
11596 (frame_read_register): New function.
11597 * frame.h (frame_unwind_register): Declare.
11598 (frame_read_register): Declare.
11600 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
11601 and frame_unwind_register instead of read_memory, write_register
11602 and deprecated_write_register_bytes.
11604 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11606 * frame.h: Note that namelen can be negative.
11607 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
11610 * NEWS: Mention that the d10v's `regs' command is deprecated.
11611 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
11612 (d10v_print_registers_info): New function.
11613 (show_regs): Call d10v_print_registers_info.
11614 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
11616 2003-02-02 Mark Kettenis <kettenis@gnu.org>
11618 * stack.c (print_frame_info): Restore call to annotate_frame_begin
11619 lost in the previous patch.
11621 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11623 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
11624 * stack.c (print_frame_info_base): Output complete FRAME tuple
11625 for synthesized frames.
11627 2003-02-02 Andrew Cagney <ac131313@redhat.com>
11629 * mips-nat.c (zerobuf): Delete.
11630 (fetch_inferior_registers): Alloc local zerobuf.
11631 (fetch_core_registers): Alloc local zerobuf.
11632 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
11633 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
11634 * thread-db.c (thread_db_store_registers): Ditto.
11635 * sh-tdep.c (sh_do_register): Ditto.
11636 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
11637 * remote-sim.c (gdbsim_store_register): Ditto.
11638 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
11639 * remote-e7000.c (fetch_regs_from_dump): Ditto.
11640 * monitor.c (monitor_supply_register): Ditto.
11641 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
11642 * mips-nat.c (fetch_inferior_registers): Ditto.
11643 * m68klinux-nat.c (fetch_register): Ditto.
11644 * lynx-nat.c (fetch_inferior_registers): Ditto.
11645 (fetch_inferior_registers): Ditto.
11646 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
11647 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
11648 (hpux_thread_store_registers): Ditto.
11649 * hppah-nat.c (fetch_register): Ditto.
11650 * hppab-nat.c (fetch_register): Ditto.
11651 * hppa-tdep.c (pa_register_look_aside): Ditto.
11652 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
11653 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
11655 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11657 * gdbarch.sh: Explictly specify all method levels. When a
11658 variable with an empty level, provide a non-multi-arch default.
11659 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
11660 * gdbarch.h: Re-generate.
11661 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
11662 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
11664 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11666 * defs.h (host_pointer_to_address): Delete declaration.
11667 (address_to_host_pointer): Delete declaration.
11668 * utils.c (host_pointer_to_address): Delete function.
11669 (address_to_host_pointer): Delete function.
11670 * procfs.c (procfs_address_to_host_pointer): New function.
11671 * procfs.c (proc_set_watchpoint): Use.
11672 (procfs_can_use_hw_breakpoint): Update comments.
11673 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
11674 (som_solib_add): Use.
11675 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
11676 * hppa-tdep.c (unwind_command): Use.
11678 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11680 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
11683 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
11684 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
11685 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
11686 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
11687 (define_symbol): Update.
11688 * symfile.c (generic_load): Remove references to nindy.
11689 * symtab.c: Remove references to nindy.
11691 2003-02-01 Andrew Cagney <ac131313@redhat.com>
11693 * infcmd.c (print_float_info): Delete code conditional on
11695 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
11696 * config/m68k/nm-apollo68b.h: Ditto.
11697 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
11698 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
11699 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
11701 2003-02-01 Mark Kettenis <kettenis@gnu.org>
11703 * config/i386/tm-i386os9k.h: Removed.
11705 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
11706 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
11707 they're identical to i[3456]86-*-sysv* now.
11708 * config/i386/i386v32.mh: Removed.
11709 * config/i386/xm-i386v32.h: Removed.
11710 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
11712 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
11714 * config/i386/i386dgux.mh: Removed.
11715 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
11717 * configure.in: Fix typo.
11718 * configure: Regenerated.
11720 2003-01-31 David Carlton <carlton@math.stanford.edu>
11722 * dwarf2read.c (dwarf2_locate_sections): Set
11723 dwarf_ranges_section.
11725 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11727 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
11728 * utils.c: Update comments documenting legitimate uses of PTR.
11730 * utils.c: Re-indent.
11732 * config/djgpp/fnchange.lst: Delete nindy files.
11733 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
11734 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
11735 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
11736 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
11737 * nindy-share/README, nindy-share/Onindy.c: Delete files.
11738 * nindy-tdep.c, nindy-share/Makefile: Delete files.
11739 * Makefile.in (init.c): Remove nindy references.
11740 (saber_gdb): Delete rule.
11741 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
11742 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
11744 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
11745 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
11746 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
11747 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
11748 nindy-share/stop.h.
11749 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
11750 * saber.suppress: Delete file.
11752 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
11754 * dbxread.c (stabs_data): New static variable.
11755 (fill_symbuf): Support an in-memory buffer for stabs data.
11756 (stabs_seek): New function.
11757 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
11758 (read_ofile_symtab): Use stabs_seek.
11759 (elfstab_build_psymtabs): Take an asection* instead of
11760 an offset and size. Relocate the stabs data if necessary.
11761 Save the section* for dbx_psymtab_to_symtab.
11762 * dwarf2read.c: Add section variables for each debug section.
11763 (dwarf2_locate_sections): Fill them in.
11764 (dwarf2_read_section): Take an asection* argument.
11765 Relocate the section contents if necessary.
11766 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
11767 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
11768 it to dwarf2_read_section.
11769 (dwarf2_build_frame_info): Update callers.
11770 * elfread.c (elf_symfile_read): Update call to
11771 elfstab_build_psymtabs.
11772 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
11773 (DBX_STAB_SECTION): New macro.
11774 * stabsread.h (elfstab_build_psymtabs): Update prototype.
11775 * symfile.c (symfile_dummy_outputs): New function.
11776 (symfile_relocate_debug_section): New function.
11777 * symfile.h (symfile_relocate_debug_section): Add prototype.
11779 2003-01-31 Richard Henderson <rth@redhat.com>
11781 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
11782 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
11783 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
11784 * alpha-tdep.c (alpha_register_name): Add "unique".
11785 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
11786 (ALPHA_UNIQUE_REGNUM): New.
11787 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
11789 2003-01-31 Andrew Cagney <ac131313@redhat.com>
11791 * README: Remove reference to Ericsson 1800 monitor.
11792 * Makefile.in (remote-es.o): Delete rule.
11793 (ALLDEPFILES): Delete remote-es.c.
11794 * remote-es.c: Delete file.
11795 * config/m68k/es1800.mt: Delete file.
11796 * config/djgpp/fnchange.lst: Update.
11797 * configure.tgt: Delete m68*-ericsson-* target.
11799 2003-01-31 Adam Fedor <fedor@gnu.org>
11801 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
11802 Remove duplicate/shadowing variable of same name.
11804 2003-01-30 Jim Blandy <jimb@redhat.com>
11806 * symfile.c (find_separate_debug_file): Assert that the objfile's
11807 directory name we compute ends with a slash, and then assume that
11808 that's so everywhere we use it.
11810 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
11812 * valops.c (value_assign): Flush frame cache after stores to memory
11815 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11817 * Makefile.in (mon960-rom.o): Delete rule.
11818 * mon960-rom.c: Delete file.
11820 2003-01-30 Andrew Cagney <ac131313@redhat.com>
11822 * d10v-tdep.c: Include "frame-unwind.h".
11823 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
11825 (next_addr, uses_frame): Delete.
11826 (struct d10v_unwind_cache): Define.
11827 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
11828 Use info instead of next_addr and uses_frame globals.
11829 (d10v_frame_init_saved_regs): Delete function.
11830 (d10v_init_extra_frame_info): Delete function.
11831 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
11832 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
11833 init_frame_pc or frame_saved_pc.
11834 (d10v_pop_frame): Delete function.
11835 (do_d10v_pop_frame): Delete function.
11836 (d10v_frame_chain): Delete function.
11837 (d10v_frame_chain_valid): Delete function.
11838 (d10v_frame_pc_unwind): New function.
11839 (d10v_frame_id_unwind): New function.
11840 (saved_regs_unwinder): New function.
11841 (d10v_frame_register_unwind): New function.
11842 (d10v_frame_pop): New function.
11843 (d10v_frame_unwind): New variable.
11844 (d10v_frame_p): New function.
11845 (d10v_frame_saved_pc): Delete function.
11846 * Makefile.in (d10v-tdep.o): Update dependencies.
11848 2003-01-30 J. Brobecker <brobecker@gnat.com>
11850 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
11851 causing some regressions due to a change in the default value
11854 2003-01-29 Richard Henderson <rth@redhat.com>
11855 Elena Zannoni <ezannoni@redhat.com>
11856 Daniel Jacobowitz <drow@mvista.com>
11859 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
11861 (RANGES_SECTION): New.
11862 (dwarf_ranges_buffer): New variable.
11863 (struct comp_unit_head): Add member "die".
11864 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
11865 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
11866 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
11867 (dwarf2_locate_sections): Likewise.
11868 (dwarf2_build_psymtabs): Read .debug_ranges.
11869 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
11870 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
11871 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
11872 Look for DW_AT_ranges and return the bounding box.
11874 2003-01-29 Brian Ford <ford@vss.fsi.com>
11876 * win32-nat.c (cygwin_pid): Removed as unused.
11877 (child_attach): Try fall back to Cygwin pid.
11879 2003-01-29 Jim Blandy <jimb@redhat.com>
11881 * objfiles.h (struct objfile): Doc fix.
11883 2003-01-29 Andrew Cagney <ac131313@redhat.com>
11885 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
11886 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
11887 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
11888 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
11889 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
11890 (FRAME_SAVED_PC): Change to a function with predicate.
11891 * gdbarch.h, gdbarch.c: Re-generate.
11893 2003-01-28 Andrew Cagney <ac131313@redhat.com>
11895 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
11897 * complaints.c (complain): Delete function.
11898 * complaints.h (struct deprecated_complaint): Delete definition.
11899 (complain): Delete declaration.
11901 2003-01-28 Kevin Buettner <kevinb@redhat.com>
11903 * mips-tdep.c (mips_init_extra_frame_info): Return early for
11906 2003-01-27 Andrew Cagney <ac131313@redhat.com>
11908 * sentinel-frame.h, sentinel-frame.c: New files.
11909 * Makefile.in (frame.o): Update dependencies.
11910 (SFILES): Add sentinel-frame.c.
11911 (sentinel_frame_h): Define.
11912 (COMMON_OBS): Add sentinel-frame.o.
11913 (sentinel-frame.o): Specify dependencies.
11914 * frame.c: Include "sentinel-frame.h".
11915 (frame_register_unwind): Rewrite assuming that there is always a a
11917 (frame_register, generic_unwind_get_saved_register): Ditto.
11918 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
11919 (create_sentinel_frame, unwind_to_current_frame): New functions.
11920 (get_current_frame): Rewrite using create_sentinel_frame and
11921 unwind_to_current_frame. When possible, always create a frame.
11922 (create_new_frame): Set next to the sentinel frame.
11923 (get_next_frame): Rewrite. Don't go below the level 0 frame.
11924 (deprecated_update_frame_pc_hack): Update the next frame's PC and
11925 ID cache when necessary.
11926 (frame_saved_regs_id_unwind): Use frame_relative_level.
11927 (deprecated_generic_get_saved_register): Use frame_relative_level,
11928 get_frame_saved_regs, get_frame_pc, get_frame_base and
11930 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
11933 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11935 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
11937 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11939 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
11940 (maintenance_set_profile_cmd): Use error () instead of warning ().
11942 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
11944 * configure.in: Check that -pg works if using --enable-profiling.
11945 Check for monstartup and _mcleanup regardless of --enable-profiling.
11946 * maint.c: Check for monstartup and _mcleanup before using them.
11947 * config.in: Regenerated.
11948 * configure: Regenerated.
11950 2003-01-24 Nick Clifton <nickc@redhat.com>
11952 * Add sh2e support:
11954 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
11956 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
11957 (sh2e_show_regs): New.
11958 (sh_gdbarch_init): Handle bfd_mach_sh2e.
11959 * config/sh/tm-sh.h: Added sh2e to comments.
11961 2003-01-23 Jim Blandy <jimb@redhat.com>
11963 * symfile.c (syms_from_objfile): Don't print the "(no debugging
11964 symbols found)" message here; we haven't checked for a separate
11965 debug info file yet, so we don't know yet.
11966 (symbol_file_add_with_addrs_or_offsets): Print it here, after
11967 we've looked everywhere. Also, there's no need to print a special
11968 message when we're loading the separate debug info file: the one
11969 symbol_file_add prints is fine.
11971 2003-01-23 Alexander Larsson <alexl@redhat.com>
11972 Jim Blandy <jimb@redhat.com>
11974 Add support for executables whose debug info has been separated
11975 out into a separate file, leaving only a link behind.
11976 * objfiles.h (struct objfile): New fields: separate_debug_objfile
11977 and separate_debug_objfile_backlink.
11978 (put_objfile_before): New declaration.
11979 * symfile.c: #include "filenames.h".
11980 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
11981 debug info in a separate file, read that, too. Save the addrs
11982 argument, so we can use it again to read the separated debug info;
11983 syms_from_objfile modifies the table we pass it.
11984 (reread_symbols): After re-reading an objfile, call
11985 reread_separate_symbols to refresh its separate debug info
11986 objfile, if it has one.
11987 (reread_separate_symbols, find_separate_debug_file,
11988 get_debug_link_info, separate_debug_file_exists): New functions.
11989 (debug_file_directory): New global var.
11990 (_initialize_symfile): Initialize debug_file_directory, and
11991 provide the new `set debug-file-directory' command to let the user
11993 * objfiles.c (free_objfile): If this objfile has its debug info in
11994 a separate objfile, free that one too. If this is itself a
11995 separate debug info objfile, clear our parent's backlink.
11996 (put_objfile_before): New function.
11997 * utils.c (gnu_debuglink_crc32): New function.
11998 * defs.h (gnu_debuglink_crc32): New declaration.
11999 * Makefile.in (symfile.o): Note dependency on "filenames.h".
12000 * configure.in: Handle --with-separate-debug-dir config option.
12001 * acinclude.m4 (AC_DEFINE_DIR): New macro.
12002 * acconfig.h (DEBUGDIR): New macro.
12003 * configure, aclocal.m4, config.in: Regenerated.
12005 2003-01-22 Jim Blandy <jimb@redhat.com>
12007 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
12008 like the old symbol_file_add, but taking new arguments: you can
12009 now pass in either a `struct section_addr_info' list to say where
12010 each section is loaded, or a `struct section_offsets' table. Pass
12011 these new arguments through to syms_from_objfile as appropriate.
12012 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
12013 with the appropriate quiescent values for the new arguments.
12015 * symfile.c: #include "gdb_assert.h".
12016 (syms_from_objfile): Add the ability to pass in a section offset
12017 table directly, as an alternative to the section_addr_info table.
12018 Document arguments better.
12019 (symbol_file_add): Pass extra arguments to syms_from_objfile.
12020 * symfile.h (syms_from_objfile): Update declaration.
12021 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
12023 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
12025 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
12027 Original patch by Tom Tromey <tromey@cygnus.com> and
12028 Jason Molenda <jmolenda@apple.com>.
12029 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
12030 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
12031 * NEWS: Mention profiling.
12032 * configure.in (--enable-gdbtk): Fix typo.
12033 (--enable-profiling): New. Set PROFILE_CFLAGS.
12034 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
12036 (profiling_state): New variable.
12037 (mcleanup_wrapper): New function.
12038 (_initialize_maint): Remove NOTYET, fix call to
12039 add_setshow_boolean_cmd for "maint set profile".
12040 * configure: Regenerated.
12042 2003-01-21 Martin M. Hunt <hunt@redhat.com>
12044 * Makefile.in (install-gdbtk): Install PNG images too.
12046 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12048 * exec.c (text_start): Delete global variable.
12049 (exec_file_attach): Make text_start local to the function.
12050 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
12051 * valops.c (hand_function_call): Delete code that handles
12052 BEFORE_TEXT_END and AFTER_TEXT_END.
12053 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
12054 of CALL_DUMMY_LOCATION.
12055 * gdbarch.c: Regenerate.
12056 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
12057 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
12058 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
12059 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
12060 (text_end): Delete extern declaration.
12062 2003-01-21 Andrew Cagney <ac131313@redhat.com>
12064 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
12065 * blockframe.c (backtrace_below_main): Move to "frame.c".
12066 (frame_chain_valid): Delete check for backtrace_below_main.
12067 (_initialize_blockframe): Delete initialization, move ``set
12068 backtrace-below-main'' command to "frame.c".
12069 (do_flush_frames_sfunc): Delete function.
12070 * frame.c: Include "command.h" and "gdbcmd.h".
12071 (frame_type_from_pc): New function.
12072 (create_new_frame): Use frame_type_from_pc.
12073 (legacy_get_prev_frame): New function.
12074 (get_prev_frame): Rewrite. When an old style frame, call
12075 legacy_get_prev_frame. Otherwize, unwind the PC first.
12076 (_initialize_frame): Add ``set backtrace-below-main'' command.
12077 * Makefile.in (frame.o): Update dependencies.
12079 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12081 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
12082 DEPRECATED_REGISTERS_INFO.
12084 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12086 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
12087 Maintainers'. Update `Various Maintainers'.
12089 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12091 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
12092 * gdbarch.sh (POP_FRAME): Change to function with predicate.
12093 Suppress actual parameters when `-'.
12094 * gdbarch.h, gdbarch.c: Regenerate.
12096 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12098 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
12099 code handling dummy frames.
12101 2003-01-19 Andrew Cagney <ac131313@redhat.com>
12103 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
12104 (struct frame_unwind): Add field pop.
12105 * frame.h (frame_pop): Declare.
12106 * frame.c (frame_saved_regs_pop): New function.
12107 (trad_frame_unwinder): Add frame_saved_regs_pop.
12108 (frame_pop): New function.
12109 * dummy-frame.c (dummy_frame_pop): New function.
12110 (discard_innermost_dummy): New function.
12111 (generic_pop_dummy_frame): Use discard_innermost_dummy.
12112 (dummy_frame_unwind): Add dummy_frame_pop.
12113 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
12114 * valops.c (hand_function_call): Ditto.
12115 * stack.c (return_command): Ditto.
12117 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12119 * cris-tdep.c: Fix function declaration indentation.
12120 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
12121 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
12122 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
12123 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
12124 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
12125 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
12127 2003-01-18 Michael Chastain <mec@shout.net>
12129 * README (Unpacking and Installation -- quick overview):
12130 Warn against ".../gdb-5.3/gdb/configure".
12132 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12134 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
12135 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12136 (struct frame_unwind): Declare opaque.
12137 (dummy_frame_p): Declare function.
12138 * dummy-frame.c (dummy_frame_id_unwind): Make static.
12139 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
12140 * dummy-frame.c: Include "frame-unwind.h".
12141 (dummy_frame_p): New function.
12142 (dummy_frame_unwind): New variable.
12143 * frame.c: Include "frame-unwind.h".
12144 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
12145 to use the new unwind field.
12146 (set_unwind_by_pc): Delete function.
12147 (create_new_frame, get_prev_frame): Set unwind field using
12148 frame_unwind_find_by_pc.
12149 (trad_frame_unwind, trad_frame_unwinder): New variables.
12150 * frame.h (trad_frame_unwind): Declare variable.
12151 (frame_id_unwind_ftype): Delete declaration.
12152 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
12153 (struct frame_unwind): Declare opaque.
12154 (struct frame_info): Replace the fields id_unwind, pc_unwind and
12155 register_unwind with a single unwind pointer.
12156 * frame-unwind.h, frame-unwind.c: New files.
12157 * Makefile.in (SFILES): Add frame-unwind.c.
12158 (frame_unwind_h): Define.
12159 (COMMON_OBS): Add frame-unwind.o.
12160 (frame-unwind.o): Specify dependencies.
12161 (frame.o, dummy-frame.o): Update dependencies.
12163 2003-01-18 Andrew Cagney <ac131313@redhat.com>
12165 * ada-valprint.c: Eliminate PTR.
12166 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
12167 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
12168 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
12169 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
12170 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
12171 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
12172 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
12174 2003-01-17 Andrew Cagney <ac131313@redhat.com>
12176 * main.c (captured_main): Don't use PTR.
12177 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
12178 * gdbtypes.c (lookup_primitive_typename): Ditto.
12179 (lookup_struct_elt_type): Ditto.
12180 * f-valprint.c (info_common_command): Ditto.
12181 (list_all_visible_commons): Ditto.
12182 * jv-typeprint.c (java_type_print_base): Ditto.
12184 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
12185 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
12186 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
12187 i386-interix-nat.c and i386-interix-tdep.c. Rename
12188 m68klinux-nat.c and m68klinux-tdep.c. Rename
12189 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
12190 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
12191 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
12192 * main.c (captured_main): Use xfree, not free.
12194 2003-01-16 Andrew Cagney <ac131313@redhat.com>
12196 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
12197 ID back using a parameter.
12198 * frame.c (frame_id_unwind): Update call.
12199 (frame_saved_regs_id_unwind): Update.
12200 * dummy-frame.c (dummy_frame_id_unwind): Update function.
12201 * dummy-frame.h (struct frame_id): Add opaque declaration.
12202 (dummy_frame_id_unwind): Update declaration.
12204 2003-01-15 Andrew Cagney <ac131313@redhat.com>
12206 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
12208 2003-01-15 Stephen P. Smith <ischis2@cox.net>
12210 * MAINTAINERS (Stephen P. Smith): Updated email address.
12212 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
12215 * breakpoint.c (until_break_command): Add new argument. Use it to
12216 decide whether to stop only at the current frame or not.
12217 * breakpoint.h (until_break_command): Update prototype.
12218 * infcmd.c (until_command): Add new argument to until_break_command
12220 (advance_command): New function.
12221 (_initialize_infcmd): Update help string for 'until' command.
12222 Add new 'advance' command.
12224 2003-01-14 David Carlton <carlton@math.stanford.edu>
12226 * linespec.c (decode_line_1): Normalize comments.
12227 (set_flags): Ditto.
12228 (locate_first_half): Ditto.
12229 (decode_compound): Ditto.
12230 (symtab_from_filename): Ditto.
12231 (decode_all_digits): Ditto.
12232 (decode_dollar): Ditto.
12233 (find_methods): Ditto.
12234 (find_toplevel_char): Ditto.
12236 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12238 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
12239 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
12240 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
12241 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
12242 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
12243 * language.c, language.h, m32r-tdep.c: Update copyright.
12244 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
12245 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
12246 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
12247 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
12248 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
12249 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
12251 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12253 * stabsread.h (process_later, resolve_cfront_continuation):
12255 Update copyright years.
12256 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
12257 Update copyright year.
12258 * dbxread.c(struct cont_elem): Obsolete.
12259 (process_later, process_now): Obsolete functions.
12260 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
12261 Update copyright year.
12262 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
12263 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
12264 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
12265 (parse_partial_symbols): Obsolete cfront support.
12267 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
12269 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
12270 read_cfront_baseclasses, read_cfront_member_functions,
12271 resolve_cfront_continuation,read_cfront_static_fields,
12272 copy_cfront_struct_fields): Obsolete functions.
12273 (define_symbol, read_one_struct_field): Obsolete cfront support.
12274 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
12275 Update Copyright year.
12277 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
12279 * stack.c (print_frame_info, print_stack_frame_base_stub,
12280 print_stack_frame_base, show_and_print_stack_frame_stub,
12281 show_and_print_stack_frame, print_only_stack_frame_stub,
12282 print_only_stack_frame): Delete functions.
12283 (print_stack_frame_stub): Call print_frame_info instead of
12284 print_frame_info_base.
12285 (print_frame_info_base): Rename to print_frame_info.
12286 (backtrace_command_1): Call print_frame_info, instead of
12287 print_frame_info_base.
12288 (current_frame_command): Call print_stack_frame, instead of
12289 print_only_stack_frame.
12290 (frame_command): Call print_stack_frame, instead of
12291 show_and_print_stack_frame.
12292 (up_command): Ditto.
12293 (down_command): Ditto.
12294 * frame.h (print_only_stack_frame): Delete prototype.
12295 * infrun.c (normal_stop): Call print_stack_frame, instead of
12296 show_and_print_stack_frame.
12297 * thread.c (info_threads_command): Call print_stack_frame, instead
12298 of print_only_stack_frame.
12300 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12302 * README (Graphical interface to GDB): Update URL. Point at
12305 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
12308 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12310 * symtab.c (find_pc_sect_line): Don't consider end-of-function
12313 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12315 * thread-db.c (attach_thread): Prototype.
12316 (struct private_thread_info): Remove lwpid. Add thread handle (th),
12317 thread information (ti), and valid flags (th_valid, ti_valid).
12318 (attach_thread): Move target_pid_to_str call to after the thread
12319 is added to GDB's list. Initialize the cache.
12320 (thread_get_info_callback, thread_db_map_id2thr)
12321 (thread_db_get_info): New functions.
12322 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
12323 (thread_db_store_registers, thread_db_thread_alive)
12324 (thread_db_get_thread_local_address): Use them.
12325 (thread_db_pid_to_str): Likewise. Return "Missing" instead
12326 of calling error() for threads in unknown state.
12328 (clear_lwpid_callback): New function.
12329 (thread_db_resume): Use it to clear the cache.
12331 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12333 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
12334 (resume_callback): Remove dead code.
12336 2003-01-13 Andrew Cagney <ac131313@redhat.com>
12338 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
12340 * gdbarch.h, gdbarch.c: Regenerate.
12341 * stack.c (frame_info): Only initialize the saved registers when
12342 FRAME_INIT_SAVED_REGS_P.
12343 * frame.c (frame_saved_regs_register_unwind): Assert
12344 FRAME_INIT_SAVED_REGS_P.
12345 (deprecated_generic_get_saved_register): Ditto.
12347 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12349 * source.c (openp): Squelch warning about "filename".
12351 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12353 * source.c (openp): If the file does not exist don't necessarily
12356 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12359 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
12360 (integer_types_same_name_p): New function.
12361 (rank_one_type): Use it.
12362 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
12364 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
12366 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
12368 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
12369 * configure.in: Add --with-sysroot.
12370 * configure: Regenerated.
12371 * main.c (gdb_sysroot): New variable.
12372 (captured_main): Initialize gdb_sysroot.
12373 * defs.h (gdb_sysroot): New extern declaration.
12374 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
12376 2003-01-12 Michael Chastain <mec@shout.net>
12378 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
12380 2003-01-12 Michael Chastain <mec@shout.net>
12382 * top.c (print_gdb_version): Bump copyright year to 2003.
12384 2003-01-12 David Carlton <carlton@bactrian.org>
12386 * linespec.c (symtab_from_filename): Rename variable 's' to
12389 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12391 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
12393 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
12395 2003-01-12 Andrew Cagney <ac131313@redhat.com>
12397 * d10v-tdep.c: Include "gdb_assert.h".
12398 (d10v_store_return_value): Rewrite to match current interface.
12399 (d10v_extract_struct_value_address): Ditto.
12400 (d10v_extract_return_value): Ditto.
12401 (d10v_gdbarch_init): Set store_restore_value,
12402 extract_struct_value_address and extract_return_value.
12404 2003-01-12 J. Brobecker <brobecker@gnat.com>
12406 * hpread.c (set_namestring): New procedure replacing the
12407 SET_NAMESTRING macro.
12408 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
12409 by calls to set_namestring.
12411 2003-01-11 J. Brobecker <brobecker@gnat.com>
12413 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
12414 a compilation warning.
12415 (hpread_process_one_debug_symbol): Likewise.
12417 2003-01-10 David Carlton <carlton@math.stanford.edu>
12419 * linespec.c (decode_line_1): Rename variable 's' to
12421 (decode_all_digits): Rename argument 's' to 'file_symtab'.
12422 (decode_dollar): Ditto.
12423 (decode_variable): Ditto.
12424 (symbol_found): Ditto.
12426 2003-01-09 Michael Chastain <mec@shout.net>
12428 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
12430 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
12432 * win32-nat.c (set_process_privilege): New function.
12433 (child_attach): Call set_process_privilege() to enable the
12434 SE_DEBUG_NAME user privilege if available in process token.
12436 2003-01-10 J. Brobecker <brobecker@gnat.com>
12438 * hpread.c (hpread_process_one_debug_symbol): Fix a small
12439 compilation error in the previous revision.
12441 2003-01-09 David Carlton <carlton@math.stanford.edu>
12443 * linespec.c: Update copyright.
12445 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
12447 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
12448 than inferior_ptid.
12449 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
12451 2003-01-09 Andrew Cagney <ac131313@redhat.com>
12453 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
12455 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
12456 (frame_saved_regs_zalloc): Update.
12457 (frame_saved_regs_register_unwind): Update.
12458 (create_new_frame): Update.
12459 (get_prev_frame): Update.
12460 (frame_extra_info_zalloc): Update.
12461 (deprecated_get_frame_saved_regs): Update.
12462 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
12463 * cris-tdep.c: Update comment.
12465 * somsolib.h: Fix function indentation.
12466 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
12467 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
12468 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
12469 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
12470 * somsolib.c, inftarg.c: Remove assignment in if conditional.
12472 * infrun.c (follow_fork): Use ISO C definition.
12473 * expprint.c (print_subexp): Use xfree instead of free.
12474 * charset.c: Include "gdb_string.h" instead of <string.h>.
12475 (register_iconv_charsets): Use ISO C definition.
12476 (host_charset, target_charset): Ditto.
12477 * Makefile.in (charset.o): Update dependencies.
12478 (mi-cmd-env.o): Update dependencies.
12480 2003-01-08 Andrew Cagney <cagney@redhat.com>
12482 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
12485 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12487 * gdb_mbuild.sh: Add --keep option. When specified, keep the
12488 build directories. Save edited gdb output in Mbuild.log. If a
12489 build fails, remove any final GDB executable.
12491 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12493 * gdb_mbuild.sh: Edit the output of `maint print architecture'
12494 replacing hex constants with function names and stripping leading
12495 file name directory prefixes.
12497 2003-01-08 Andrew Cagney <cagney@redhat.com>
12499 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
12502 2003-01-08 David Carlton <carlton@math.stanford.edu>
12504 * linespec.c (decode_line_1): Move code into decode_variable.
12505 (decode_variable): New function.
12507 2003-01-08 Andrew Cagney <ac131313@redhat.com>
12509 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
12511 2003-01-08 Andrew Cagney <cagney@redhat.com>
12513 * cris-tdep.c (cris_frame_init_saved_regs): Use
12514 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
12516 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
12517 (sh64_nofp_frame_init_saved_regs): Ditto.
12518 (sh_fp_frame_init_saved_regs): Ditto.
12519 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
12520 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12521 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12522 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12524 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
12526 * minsyms.c (lookup_minimal_symbol): Update comment.
12527 (lookup_minimal_symbol_text): Update comment. Use the hash table.
12528 (lookup_minimal_symbol_solib_trampoline): Likewise.
12530 2003-01-08 Andrew Cagney <cagney@redhat.com>
12532 * d10v-tdep.c (d10v_init_extra_frame_info): Use
12533 frame_relative_level.
12535 * alpha-tdep.c: Use get_frame_extra_info.
12536 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12537 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
12538 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12539 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
12541 * alpha-tdep.c: Use get_next_frame.
12542 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12543 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
12544 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
12545 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
12546 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
12547 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
12548 * xstormy16-tdep.c: Ditto.
12550 2003-01-07 Andrew Cagney <cagney@redhat.com>
12552 * alpha-tdep.c: Use get_frame_base.
12553 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12554 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12555 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
12556 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
12557 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
12558 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
12559 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
12560 * config/sparc/tm-sparc.h: Ditto.
12562 2003-01-07 Andrew Cagney <cagney@redhat.com>
12564 * frame.c (deprecated_get_frame_context): New function.
12565 (deprecated_set_frame_context): New function.
12566 * frame.h (deprecated_get_frame_context): Declare.
12567 (deprecated_set_frame_context): Declare.
12568 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
12569 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
12571 2003-01-07 Andrew Cagney <cagney@redhat.com>
12573 * frame.c (deprecated_set_frame_next_hack): New function.
12574 (deprecated_set_frame_prev_hack): New function.
12575 * frame.h (deprecated_set_frame_next_hack): Declare.
12576 (deprecated_set_frame_prev_hack): Declare.
12577 * mcore-tdep.c (analyze_dummy_frame): Use
12578 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
12579 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12581 2003-01-07 David Carlton <carlton@math.stanford.edu>
12583 * linespec.c (decode_line_1): Move code into decode_dollar.
12584 (decode_dollar): New function.
12586 2003-01-07 Andrew Cagney <cagney@redhat.com>
12588 * arm-tdep.c (arm_init_extra_frame_info): Use
12589 deprecated_update_frame_base_hack.
12590 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
12591 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
12592 (fix_frame_pointer): Ditto.
12593 (mn10300_analyze_prologue): Ditto.
12595 2003-01-07 Andrew Cagney <cagney@redhat.com>
12597 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
12598 extra_info using frame_extra_info_zalloc.
12599 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
12600 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
12601 (sh64_init_extra_frame_info): Ditto.
12602 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
12603 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
12604 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
12605 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
12606 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
12607 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
12608 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
12609 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
12610 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
12611 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
12612 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
12613 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
12615 * mn10300-tdep.c (analyze_dummy_frame): Use
12616 deprecated_set_frame_extra_info_hack.
12617 * mcore-tdep.c (analyze_dummy_frame): Ditto.
12619 2003-01-07 J. Brobecker <brobecker@gnat.com>
12621 * mdebugread.c (parse_symbol): Skip stProc entries which storage
12622 class is not scText. These do not define "real" procedures.
12623 (parse_partial_symbols): Likewise.
12625 2003-01-06 Michael Snyder <msnyder@redhat.com>
12627 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
12629 2003-01-06 Andrew Cagney <ac131313@redhat.com>
12631 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
12632 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
12633 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
12634 deprecated_frame_xmalloc_with_cleanup.
12635 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12636 deprecated_frame_xmalloc.
12637 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
12638 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
12640 2003-01-06 Andrew Cagney <cagney@redhat.com>
12642 * x86-64-linux-tdep.c: Include "osabi.h".
12643 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
12645 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
12647 2003-01-06 Andrew Cagney <cagney@redhat.com>
12649 * MAINTAINERS (Target Instruction Set Architectures): Update
12650 arm-elf. Can be built with -Werror, has been multiarched.
12652 * value.h (unpack_long): Make buffer parameter constant.
12653 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
12654 * scm-lang.h (scm_parse): Ditto.
12655 * defs.h (extract_typed_address, extract_address): Ditto.
12656 (extract_long_unsigned_integer): Ditto.
12657 * inferior.h (unsigned_pointer_to_address): Ditto.
12658 (signed_pointer_to_address): Ditto.
12659 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
12660 * gdbarch.h, gdbarch.c: Regenerate.
12661 * findvar.c (extract_long_unsigned_integer): Update.
12662 (extract_address): Update.
12663 (extract_typed_address): Update.
12664 (unsigned_pointer_to_address): Update.
12665 * values.c (unpack_long): Update.
12666 (unpack_double): Update.
12667 (unpack_pointer): Update.
12668 (unpack_field_as_long): Update.
12669 * d10v-tdep.c (d10v_pointer_to_address): Update.
12670 * avr-tdep.c (avr_pointer_to_address): Update.
12671 * scm-lang.c (scm_unpack): Update.
12672 * findvar.c (signed_pointer_to_address): Update.
12674 2003-01-06 Michal Ludvig <mludvig@suse.cz>
12676 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
12677 since it is in i386-tdep.c.
12679 2003-01-06 J. Brobecker <brobecker@gnat.com>
12681 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
12682 failure introduced in the previous change.
12684 2003-01-05 Michael Chastain <mec@shout.net>
12686 * README: Remove references to deleted remote-*.c files:
12687 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
12688 remote-nrom.c, remote-os9k.c, remote-udi.c.
12690 2003-01-05 Mark Kettenis <kettenis@gnu.org>
12692 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
12693 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
12694 i386_get_longjmp_target.
12696 2003-01-05 Andrew Cagney <ac131313@redhat.com>
12698 * arm-tdep.c (prologue_cache): Change to a pointer.
12699 (_initialize_arm_tdep): Allocate prologue_cache.
12700 (check_prologue_cache): Update.
12701 (save_prologue_cache): Update.
12702 (arm_gdbarch_init): Update.
12704 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12706 * stabsread.c (update_method_name_from_physname): Call complaint()
12709 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12711 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
12712 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
12713 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
12715 * blockframe.c: Include "gdbcmd.h" and "command.h".
12716 (backtrace_below_main): New variable.
12717 (file_frame_chain_valid, func_frame_chain_valid)
12718 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
12719 (generic_func_frame_chain_valid): Remove functions.
12720 (frame_chain_valid, do_flush_frames_sfunc): New functions.
12721 (_initialize_blockframe): New function.
12722 * Makefile.in (blockframe.o): Update dependencies.
12723 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
12724 comment. Call frame_chain_valid ().
12725 * frame.h: Remove old prototypes. Add prototype for
12726 frame_chain_valid and update comments to match.
12727 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
12728 Remove old comment.
12729 * gdbarch.h: Regenerated.
12730 * gdbarch.c: Regenerated.
12732 * alpha-tdep.c (alpha_gdbarch_init): Don't call
12733 set_gdbarch_frame_chain_valid.
12734 * avr-tdep.c (avr_gdbarch_init): Likewise.
12735 * cris-tdep.c (cris_gdbarch_init): Likewise.
12736 * frv-tdep.c (frv_gdbarch_init): Likewise.
12737 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
12738 * i386-tdep.c (i386_svr4_init_abi): Likewise.
12739 (i386_nw_init_abi): Likewise.
12740 (i386_gdbarch_init): Likewise.
12741 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
12742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
12743 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
12744 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
12745 * mips-tdep.c (mips_gdbarch_init): Likewise.
12746 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
12747 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
12748 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12749 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12750 * s390-tdep.c (s390_gdbarch_init): Likewise.
12751 * sh-tdep.c (sh_gdbarch_init): Likewise.
12752 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12753 * v850-tdep.c (v850_gdbarch_init): Likewise.
12754 * vax-tdep.c (vax_gdbarch_init): Likewise.
12755 * x86-64-tdep.c (x86_64_init_abi): Likewise.
12757 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
12758 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
12759 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
12760 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
12761 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
12762 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
12763 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
12764 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
12766 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
12768 * Makefile.in (acconfig_h): Remove incorrect macro.
12769 (config_h): Define.
12770 (osabi.o): Update dependencies.
12771 * configure.tgt: Set gdb_osabi based on target triplet.
12772 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
12773 * configure: Regenerated.
12774 * config.in: Regenerated.
12775 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
12776 (GDB_OSABI_DEFAULT): Define if not already defined.
12777 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
12778 (set_osabi_string): New variables.
12779 (gdbarch_register_osabi): Add new OS ABI to
12780 gdb_osabi_available_names.
12781 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
12782 (set_osabi, show_osabi): New functions.
12783 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
12785 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12787 * arch-utils.c (gdbarch_info_init): Set osabi to
12788 GDB_OSABI_UNINITIALIZED.
12789 * gdbarch.sh: Add osabi to struct gdbarch and to struct
12790 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
12791 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
12792 * gdbarch.c: Regenerated.
12793 * gdbarch.h: Regenerated.
12794 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
12796 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
12797 * osabi.h (enum gdb_osabi): Move to defs.h.
12798 (gdbarch_init_osabi): Update prototype.
12799 * defs.h (enum gdb_osabi): Moved here.
12800 * Makefile.in: Update dependencies.
12802 * alpha-tdep.h: Don't include "osabi.h".
12803 (struct gdbarch_tdep): Remove osabi member.
12804 * alpha-tdep.c: Include "osabi.h".
12805 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12806 iterate over arches. Update call to gdbarch_init_osabi.
12807 (alpha_dump_tdep): Don't dump osabi.
12808 * alpha-linux-tdep.c: Include "osabi.h".
12809 * alpha-osf1-tdep.c: Include "osabi.h".
12810 * alphafbsd-tdep.c: Include "osabi.h".
12811 * alphanbsd-tdep.c: Include "osabi.h".
12813 * arm-tdep.h: Don't include "osabi.h".
12814 (struct gdbarch_tdep): Remove osabi member.
12815 * arm-tdep.c: Include "osabi.h".
12816 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12817 iterate over arches. Update call to gdbarch_init_osabi.
12818 (arm_dump_tdep): Don't dump osabi.
12819 * arm-linux-tdep.c: Include "osabi.h".
12820 * armnbsd-tdep.c: Include "osabi.h".
12822 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
12823 Update call to gdbarch_init_osabi.
12825 * i386-tdep.h: Don't include "osabi.h".
12826 (struct gdbarch_tdep): Remove osabi member.
12827 * i386-tdep.c: Include "osabi.h".
12828 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12829 iterate over arches. Update call to gdbarch_init_osabi.
12830 (i386_dump_tdep): Don't dump osabi.
12831 * i386-linux-tdep.c: Include "osabi.h".
12832 * i386-sol2-tdep.c: Include "osabi.h".
12833 * i386bsd-tdep.c: Include "osabi.h".
12834 * i386gnu-tdep.c: Include "osabi.h".
12835 * i386ly-tdep.c: Include "osabi.h".
12836 * i386nbsd-tdep.c: Include "osabi.h".
12837 * i386obsd-tdep.c: Include "osabi.h".
12839 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
12840 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12841 check osabi when iterating over arches. Update call to
12842 gdbarch_init_osabi.
12843 (mips_dump_tdep): Don't dump osabi.
12845 * ns32k-tdep.h: Don't include "osabi.h".
12846 (struct gdbarch_tdep): Remove.
12847 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
12848 gdbarch_lookup_osabi. Don't iterate over arches. Don't
12849 allocate tdep. Update call to gdbarch_init_osabi.
12850 (ns32k_dump_tdep): Remove.
12851 (_initialize_ns32k_tdep): Update call to gdbarch_register.
12852 * ns32knbsd-tdep.c: Include "osabi.h".
12854 * ppc-tdep.h: Don't include "osabi.h".
12855 (struct gdbarch_tdep): Remove osabi member.
12856 * rs6000-tdep.c: Include "osabi.h".
12857 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
12858 osabi when iterating over arches. Update call to
12859 gdbarch_init_osabi.
12860 (rs6000_dump_tdep): Don't dump osabi.
12861 * ppc-linux-tdep.c: Include "osabi.h".
12862 * ppcnbsd-tdep.c: Include "osabi.h".
12864 * sh-tdep.h: Don't include "osabi.h".
12865 (struct gdbarch_tdep): Remove osabi member.
12866 * sh-tdep.c: Include "osabi.h".
12867 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12868 iterate over arches. Update call to gdbarch_init_osabi.
12869 (sh_dump_tdep): Don't dump osabi.
12870 * shnbsd-tdep.c: Include "osabi.h".
12872 * sparc-tdep.c: Include "osabi.h".
12873 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12874 iterate over arches. Update call to gdbarch_init_osabi.
12875 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
12878 * vax-tdep.h: Don't include "osabi.h".
12879 (struct gdbarch_tdep): Remove.
12880 * vax-tdep.c: Include "osabi.h".
12881 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
12882 iterate over arches. Don't allocate tdep. Update call
12883 to gdbarch_init_osabi.
12884 (vax_dump_tdep): Remove.
12885 (_initialize_vax_tdep): Update call to gdbarch_register.
12887 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12889 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
12891 (breakpoint_re_set_one): Don't fetch the value for a disabled
12894 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12896 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
12897 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
12898 (COERCE_FLOAT_TO_DOUBLE): Remove.
12899 * gdbarch.c: Regenerate.
12900 * gdbarch.h: Regenerate.
12901 * Makefile.in: Remove value_h from gdbarch_h.
12902 * valops.c (coerce_float_to_double): New variable.
12903 (default_coerce_float_to_double): Remove.
12904 (standard_coerce_float_to_double): Remove.
12905 (value_arg_coerce): Use coerce_float_to_double.
12906 (_initialize_valops): Add "set coerce-float-to-double".
12907 * value.h (default_coerce_float_to_double): Remove prototype.
12908 (standard_coerce_float_to_double): Remove prototype.
12910 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
12912 * mdebugread.c (parse_symbol): Likewise.
12913 * stabsread.c (define_symbol): Mark all functions as prototyped.
12915 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
12916 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
12917 set_gdbarch_coerce_float_to_double.
12918 * arm-tdep.c (arm_gdbarch_init): Likewise.
12919 * frv-tdep.c (frv_gdbarch_init): Likewise.
12920 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
12921 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
12922 * mips-tdep.c (mips_gdbarch_init): Likewise.
12923 (mips_coerce_float_to_double): Remove.
12924 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
12925 (rs6000_coerce_float_to_double): Remove.
12926 * s390-tdep.c (s390_gdbarch_init): Likewise.
12927 * sh-tdep.c (sh_gdbarch_init): Likewise.
12928 (sh_coerce_float_to_double): Remove.
12929 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
12930 (sparc_coerce_float_to_double): Remove.
12931 * v850-tdep.c (v850_gdbarch_init): Likewise.
12932 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
12933 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12934 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
12935 (hppa_coerce_float_to_double): Remove prototype.
12936 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
12938 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12940 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
12942 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
12944 Suggested by Stewart Brown <sb24@avaya.com>:
12945 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
12946 in recursive calls. Handle TYPE_CODE_TYPEDEF.
12947 (c_type_print_varspec_suffix): Likewise.
12949 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12951 * configure.in: Don't set and AC_SUBST SUBDIRS.
12952 * configure: Regenerated.
12954 * configure.in: Remove code dealing with shared libraries.
12955 * Makefile.in: Remove HLDFLAGS and HLDENV.
12956 * configure: Regenerated.
12958 2003-01-04 Andrew Cagney <ac131313@redhat.com>
12960 * frame.c (deprecated_frame_xmalloc): New function.
12961 (deprecated_set_frame_saved_regs_hack): New function.
12962 (deprecated_set_frame_extra_info_hack): New function.
12963 * frame.h (deprecated_frame_xmalloc): Declare.
12964 (deprecated_set_frame_saved_regs_hack): Declare.
12965 (deprecated_set_frame_extra_info_hack): Declare.
12967 2003-01-04 Mark Kettenis <kettenis@gnu.org>
12969 * configure.in: Move code that provides the --enable-gdbtk option
12970 right after the code that handles the --enable-tui option, and
12971 polish it somewhat.
12972 * configure: Regenerated.
12974 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
12975 AC_CHECK_FUNCS and remove the old check for pread64.
12976 * acinclude.m4 (AC_GNU_SOURCE): New macro.
12977 * acconfig.h (_GNU_SOURCE): Add.
12978 (HAVE_PREAD64): Remove.
12979 * configure, aclocal.m4, config.in: Regenerated.
12981 2003-01-03 Andrew Cagney <ac131313@redhat.com>
12983 * alpha-tdep.c: Use get_frame_saved_regs.
12984 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
12985 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
12986 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
12987 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
12988 * vax-tdep.c, xstormy16-tdep.c: Ditto.
12990 2003-01-03 Mark Kettenis <kettenis@gnu.org>
12992 * configure.in: Remove all use of the SUBDIRS variable; add
12993 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
12994 code providing the --enable-multi-ice option, and move it right in
12995 front of the code that checks whether gdbserver is supported.
12997 * configure: Regenerated.
12998 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
13001 2003-01-03 Andrew Cagney <cagney@redhat.com>
13003 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
13004 * avr-tdep.c, cris-tdep.c: Ditto.
13005 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
13006 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13008 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13010 * configure.in: Remove --enable-netrom option.
13011 * configure: Regenerated.
13013 2003-01-03 Mark Kettenis <kettenis@gnu.org>
13015 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
13016 declaration for `struct re_pattern_buffer' instead.
13017 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
13019 2003-01-03 J. Brobecker <brobecker@gnat.com>
13021 * mdebugread.c (parse_symbol): Count until the stEnd matching
13022 the structure name.
13024 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13026 * configure.in: Remove --with-cpu option.
13027 subscripts. Remove evil changequotes here.
13028 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
13029 * config.in, configure: Regenerated.
13031 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
13032 * configure.in: Cleanup section that sources GDB and BFD configure
13033 subscripts. Remove evil changequotes here.
13034 * config.in, configure: Regenerated.
13036 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13038 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
13039 frame accessor methods.
13040 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
13041 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
13042 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
13043 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
13044 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
13045 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
13046 * z8k-tdep.c: Ditto.
13048 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13050 * configure.in: Remove UI_OUT configuration code.
13051 * ada-lang.c: Update assuming UI_OUT is always true.
13052 * Makefile.in (UIOUT_CFLAGS): Remove.
13053 * configure: Regenerated.
13054 * TODO: Remove blurb about elimination of -DUI_OUT.
13056 * configure.in: Move code that provides the --enable-gdbcli,
13057 --enable-gdbmi options right before the code that handles the
13058 --enable-tui option. Polish a bit.
13059 * configure: Regenerated.
13061 * configure.in: Rewrite check for GNU regex and the
13062 --without-included regex option, and move it into the "Checks for
13063 library functions" section. This makes us use the system regex
13064 again by default on systems with version 2 of the GNU C library.
13065 This was apparently broken.
13066 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
13067 * acconfig.h (USE_INCLUDED_REGEX): Remove.
13068 * config.in, configure: Regenerated.
13070 * configure.in: Move code that provides the --enable-tui option
13071 before the "Checks for libraries" section. Polish the code
13072 somewhat and set need_curses to yes if we build the TUI. Rewrite
13073 code that looks for a library providing termcap functionality to
13074 match more closely what's done in the Readline library, and move
13075 it into to the "Checks for libraries" section.
13076 * configure: Regenerated.
13077 * Makefile.in (TERMCAP): Remove variable.
13078 * config/i386/go32.mh (TERMCAP): Remove variable.
13080 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13082 * MAINTAINERS: Mention gdb_mbuild.sh.
13083 * gdb_mbuild.sh: Rewrite.
13085 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13087 * configure.in: Fix typo in last change.
13088 * config.in, configure: Regenerated.
13090 2003-01-02 Andrew Cagney <ac131313@redhat.com>
13092 * valarith.c (value_binop): Delete obsolete code and comments.
13093 * configure.host: Ditto.
13094 * buildsym.h (make_blockvector): Ditto.
13095 * buildsym.c (make_blockvector): Ditto.
13096 * defs.h (enum language): Ditto.
13097 (chill_demangle): Ditto.
13098 * elfread.c (elf_symtab_read): Ditto.
13099 * dwarfread.c (CHILL_PRODUCER): Ditto.
13100 (set_cu_language): Ditto.
13101 (handle_producer): Ditto.
13102 * expprint.c (print_subexp): Ditto.
13103 * gdbtypes.c (chill_varying_type): Ditto.
13104 * gdbtypes.h (builtin_type_chill_bool): Ditto.
13105 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
13106 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
13107 (chill_varying_type): Ditto.
13108 * language.h (_LANG_chill): Ditto.
13109 * language.c (binop_result_type, integral_type): Ditto.
13110 (character_type, string_type, structured_type): Ditto.
13111 (lang_bool_type, binop_type_check): Ditto.
13112 * stabsread.h (os9k_stabs): Ditto.
13113 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
13114 (define_symbol, read_type, read_struct_fields): Ditto.
13115 (read_array_type, read_enum_type, read_huge_number): Ditto.
13116 (read_range_type, start_stabs): Ditto.
13117 * symfile.c (init_filename_language_table): Ditto.
13118 (add_psymbol_with_dem_name_to_list): Ditto.
13119 * symtab.c (symbol_init_language_specific): Ditto.
13120 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
13121 * symtab.h (struct general_symbol_info): Ditto.
13122 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
13123 * typeprint.c (typedef_print): Ditto.
13124 * utils.c (fprintf_symbol_filtered): Ditto.
13125 * valops.c (value_cast, search_struct_field, value_slice): Delete
13127 (varying_to_slice): Delete function.
13128 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
13129 (varying_to_slice): Delete declaration.
13130 * MAINTAINERS: Update.
13132 2003-01-02 Mark Kettenis <kettenis@gnu.org>
13134 * configure.in: Reorganize "Checks for library functions section"
13135 a bit. Remove check for `btowc' and `isascii' functions.
13136 * configure: Regenerated.
13138 * acconfig.h (_MSE_INT_H): Remove.
13139 * configure.in: Create "Checks for header files" section, and move
13140 appropriate tests there. Don't check for objlist.h, wchar.h,
13141 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
13142 misdetection fix. Also add "Checks for types", "Checks for
13143 compiler characteristics" and "Checks for library functions"
13145 * config.in, configure: Regenerated.
13147 * configure.in: Create "Checks for programs" section, and move
13148 appropriate tests there.
13150 2003-01-01 Mark Kettenis <kettenis@gnu.org>
13152 * configure.in: Create "Checks for libraries" section, and move
13153 appropriate tests there. Cleanup check for wctype in libw. Use
13154 AC_SEARCH_LIBS to see whether we need libsocket.
13155 * configure: Regenerated.
13157 For older changes see ChangeLog-2002
13163 version-control: never