1 2003-09-15 Mark Kettenis <kettenis@gnu.org>
3 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
4 ps_strings into a long.
6 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
7 _initialize_am64fbsd_nat.
9 2003-09-15 Kevin Buettner <kevinb@redhat.com>
11 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
12 associated with DW_AT_ranges attribute is out of bounds.
14 2003-09-15 David Lecomber <dsl@sources.redhat.com>
16 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
18 2003-09-14 Michael Chastain <mec@shout.net>
20 * config/m68k/nm-apollo68v.h: Delete.
21 * config/m68k/xm-apollo68v.h: Delete.
23 2003-09-14 Andrew Cagney <cagney@redhat.com>
25 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
26 * dcache.c: Update copyrights and descriptions.
27 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
29 2003-09-14 Andrew Cagney <cagney@redhat.com>
31 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
32 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
34 2003-09-14 Andrew Cagney <cagney@redhat.com>
36 * alpha-nat.c: Remove some occurances of "register".
37 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
38 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
39 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
40 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
41 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
42 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
43 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
44 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
45 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
46 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
47 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
48 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
49 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
50 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
51 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
52 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
53 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
54 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
55 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
56 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
57 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
58 * values.c, vax-tdep.c, xcoffread.c: Ditto.
60 2003-09-13 Andrew Cagney <cagney@redhat.com>
62 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
63 * ppc-tdep.h (struct regcache): Declare opaque.
64 * objfiles.h (struct objfile_data): Declare opaque.
65 * cp-support.h (struct objfile): Declare opaque.
66 * linux-nat.h (target_waitstatus): Declare opaque.
68 2003-09-14 Mark Kettenis <kettenis@gnu.org>
70 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
71 (stabs_argument_has_addr): New architecture method.
72 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
73 * arch-utils.c: Include "buildsym.h".
74 (default_stabs_argument_has_addr): New function.
75 * stabsread.c (define_symbol): Use stabs_argument_has_addr
76 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
78 * cris-tdep.c (cris_gdbarch_init): Set
79 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
80 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
81 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
82 * mips-tdep.c (mips_gdbarch_init): Likewise.
83 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
84 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
86 2003-09-13 Andrew Cagney <cagney@redhat.com>
88 * values.c (using_struct_return): Delete "function" and "funcaddr"
90 * value.h (using_struct_return): Update declaration.
91 * infcmd.c (finish_command_continuation): Update.
92 (finish_command): Update.
93 * infcall.c (call_function_by_hand): Update.
94 * eval.c (evaluate_subexp_standard): Update.
96 2003-09-13 Christopher Faylor <cgf@redhat.com>
98 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
99 SSE registers since gdb will not operate correctly without this.
100 Restore include file ordering munged in previous change.
101 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
103 2003-09-13 Mark Kettenis <kettenis@gnu.org>
105 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
107 * gdbarch.c, gdbarch.h: Updated.
108 * infcall.c (call_function_by_hand): Update.
109 * stabsread.c (define_symbol): Updated.
111 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
113 2003-09-12 Christopher Faylor <cgf@redhat.com>
115 * win32-nat.c: Reorganize so that defines used by target headers are
116 actually defined by the system headers.
117 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
118 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
120 2003-09-12 Jim Blandy <jimb@redhat.com>
122 * dbxread.c (read_dbx_symtab): Don't report an internal error if
123 the file has no .data, .bss, or .rodata sections. Instead wait
124 until we see a variable alleged to live in one of those sections.
126 * dbxread.c (read_dbx_symtab): If we have no .data section and no
127 .bss section, presume that any variables we find live in the
130 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
131 offsets for global and static variables.
133 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
134 symbol types are, by definition, in the .data section, so it is
135 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
136 If there is no .data section, there should be no N_DATA or N_DATA
139 2003-09-12 Mark Kettenis <kettenis@gnu.org>
141 * amd64fbsd-tdep.c: Fix sigtramp recognition.
142 (amd64fbsd_sigcontext_addr): Rewrite.
143 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
145 (amd64fbsd_sc_reg_offset): Initialize with correct values.
146 (amd64fbsd_init_abi): Fix typo.
148 2003-09-12 Andrew Cagney <cagney@redhat.com>
150 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
151 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
153 2003-09-12 Andrew Cagney <cagney@redhat.com>
155 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
156 "entry_file_highpc". Update comments.
157 * defs.h (deprecated_inside_entry_file): Rename
159 * blockframe.c (deprecated_inside_entry_file): Rename
161 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
162 * vax-tdep.c (vax_frame_chain): Update.
163 * sh64-tdep.c (sh64_frame_chain): Update.
164 * sh-tdep.c (sh_frame_chain): Update.
165 * rs6000-tdep.c (rs6000_frame_chain): Update.
166 * ns32k-tdep.c (ns32k_frame_chain): Update.
167 * mips-tdep.c (mips_frame_chain): Update.
168 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
169 * m32r-tdep.c (m32r_frame_this_id): Update.
170 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
171 * frv-tdep.c (frv_frame_this_id): Update.
172 * d10v-tdep.c (d10v_frame_this_id): Update.
173 * cris-tdep.c (cris_frame_chain): Update.
174 * blockframe.c (legacy_frame_chain_valid): Update.
175 * avr-tdep.c (avr_frame_this_id): Update.
176 * arm-tdep.c (arm_prologue_this_id): Update.
177 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
178 * objfiles.c (objfile_relocate): Update.
179 * mipsread.c (mipscoff_symfile_read): Update.
180 (mipscoff_symfile_read): Update.
181 * mdebugread.c (parse_partial_symbols): Update.
182 * dwarfread.c (read_file_scope): Update.
183 * dwarf2read.c (read_file_scope): Update.
184 * dbxread.c (read_dbx_symtab): Update.
185 (read_dbx_symtab): Update.
186 * coffread.c (complete_symtab): Update.
188 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
190 * top.c (quit_target): New static helper function.
191 (quit_force): Moved code to quit_target(). Call quit_target()
192 via catch_errors() to catch errors during quit.
194 2003-09-11 David Carlton <carlton@kealia.com>
196 * buildsym.c (finish_block): Use allocate_block to allocate the
198 * mdebugread.c (new_block): Add FIXME.
200 2003-09-11 David Carlton <carlton@kealia.com>
202 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
203 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
204 (recursive_dump_type): Ditto.
205 * printcmd.c (print_formatted): Ditto.
206 * typeprint.c (print_type_scalar): Ditto.
207 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
208 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
209 * cp-support.h: Declare cp_check_possible_namespace_symbols,
210 maint_cplus_cmd_list.
211 * cp-support.c: Make maint_cplus_cmd_list extern.
212 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
214 (lookup_symbol_file): Look in possible namespace blocks when
216 (initialize_namespace_symtab): New.
217 (get_possible_namespace_block, free_namespace_block)
218 (check_possible_namespace_symbols)
219 (check_possible_namespace_symbols_loop)
220 (check_one_possible_namespace_symbol)
221 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
222 (_initialize_cp_namespace): Ditto.
223 * block.h: Declare allocate_block.
224 * block.c (allocate_block): New.
225 * jv-lang.c (get_java_class_symtab): Allocate blocks via
227 * symfile.h: Update declaration of add_psymbol_to_list.
228 * symfile.c (add_psymbol_to_list): Return the partial symbol in
230 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
231 scan_partial_symbols_call.
232 (scan_partial_symbols): Add NAMESPACE argument; update calls to
234 (add_partial_symbol): If necessary, scan mangled names for names
236 (add_partial_namespace): Add NAMESPACE argument; generate partial
237 symbols associated to namespaces.
238 (add_partial_enumeration): Add NAMESPACE argument.
239 (new_symbol): Allow namespace syms.
240 (read_namespace): Generate namespace syms.
241 * objfiles.h: Add opaque declaration of struct symtab.
242 (struct objfile): Add cp_namespace_symtab member.
243 * objfiles.c (allocate_objfile): Set
244 objfile->cp_namespace_symtab.
245 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
246 dictionary_h, command_h.
248 2003-09-11 Andrew Cagney <cagney@redhat.com>
250 * rs6000-tdep.c (rs6000_push_dummy_call): Use
251 regcache_raw_write_signed to set SP_REGNUM, move the operation to
252 near the function's end.
253 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
254 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
255 regcache_raw_write_signed to set SP_REGNUM.
257 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
259 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
260 orig_addrs is set up properly.
262 2003-09-11 Andrew Cagney <cagney@redhat.com>
264 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
265 * gdbarch.h, gdbarch.c: Re-generate.
266 * infcall.c (call_function_by_hand): Update.
267 * hppa-tdep.c (hppa_push_arguments): Update.
268 * ada-lang.c (place_on_stack): Update.
269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
270 * sparc-tdep.c (sparc_gdbarch_init): Update.
271 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
272 * hppa-tdep.c (hppa_gdbarch_init): Update.
273 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
276 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
278 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
279 register do need a frame.
281 2003-09-11 Andrew Cagney <cagney@redhat.com>
283 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
284 buildable since GDB 5.0.
285 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
286 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
287 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
288 * irix4-nat.c: Delete file.
289 * config/mips/irix4.mh: Delete file.
290 * config/mips/irix3.mh: Delete file.
291 * config/mips/irix3.mt: Delete file.
292 * config/mips/tm-irix3.h: Delete file.
293 * config/mips/nm-irix3.h: Delete file.
294 * config/mips/xm-irix3.h: Delete file.
295 * config/mips/nm-irix4.h: Delete file.
296 * config/mips/xm-irix4.h: Delete file.
297 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
299 2003-09-10 J. Brobecker <brobecker@gnat.com>
301 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
302 * Makefile.in (hppa-tdep.o): Update dependencies.
304 2003-09-10 James E Wilson <wilson@specifixinc.com>
306 * MAINTAINERS: Change my e-mail address. Move to paper trail
309 2003-09-10 Kevin Buettner <kevinb@redhat.com>
311 * MAINTAINERS (frv): New ISA entry.
313 2003-09-10 Kevin Buettner <kevinb@redhat.com>
315 * frv-tdep.c (dis-asm.h): Include.
316 * Makefile.in (frv-tdep.o): Update dependencies.
318 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
320 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
321 Fix typo for high range of floating registers.
323 2003-09-09 David Carlton <carlton@kealia.com>
325 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
326 highpc initialization here out of scan_partial_symbols.
327 (scan_partial_symbols): Restructure into a recursive version,
328 calling add_partial_namespace and add_partial_enumeration when
330 (add_partial_namespace): New.
331 (add_partial_enumeration, locate_pdi_sibling): Ditto.
333 2003-09-09 Andrew Cagney <cagney@redhat.com>
335 * rs6000-tdep.c (ppc_push_return_address): Delete function.
336 (rs6000_push_dummy_call): Set LR to BP_ADDR.
337 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
338 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
340 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
341 (rs6000_push_dummy_call): Set the "TOC" register.
343 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
344 methods "max_register_raw_size", "max_register_virtual_size" or
345 "register_virtual_size".
347 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
349 * MAINTAINERS: Update my e-mail address.
351 2003-09-09 Andrew Cagney <cagney@redhat.com>
353 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
354 (rs6000_push_dummy_call): Store the struct return address.
355 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
357 2003-09-09 Andrew Cagney <cagney@redhat.com>
359 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
360 "ppc_sysv_abi_push_arguments".
361 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
362 "ppc_sysv_abi_push_arguments".
363 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
364 instead of "push_arguments".
365 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
367 2003-09-09 Andrew Cagney <cagney@redhat.com>
369 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
370 instead of CALL_DUMMY_ADDRESS.
372 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
374 * p-lang.c: Eliminate "register".
383 * objc-lang.c: Ditto.
385 2003-09-09 Nick Clifton <nickc@redhat.com>
387 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
389 2003-09-04 Andrew Cagney <cagney@redhat.com>
391 * avr-tdep.c: Include "dis-asm.h".
392 * cris-tdep.c: Include "dis-asm.h".
393 (cris_delayed_get_disassembler): Use "struct disassemble_info"
394 instead of corresponding typedef.
395 * h8300-tdep.c: Include "dis-asm.h".
396 * ia64-tdep.c: Include "dis-asm.h".
397 * i386-tdep.c: Include "dis-asm.h".
398 (i386_print_insn): Use "struct disassemble_info" instead of
399 corresponding typedef.
400 * m68k-tdep.c: Include "dis-asm.h".
401 * mcore-tdep.c: Include "dis-asm.h".
402 * mips-tdep.c: Include "dis-asm.h".
403 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
404 instead of corresponding typedef.
405 * ns32k-tdep.c: Include "dis-asm.h".
406 * s390-tdep.c: Include "dis-asm.h".
407 * sparc-tdep.c: Include "dis-asm.h".
408 * vax-tdep.c: Include "dis-asm.h".
409 * v850-tdep.c: Include "dis-asm.h".
410 * mn10300-tdep.c: Include "dis-asm.h".
411 * rs6000-tdep.c: Include "dis-asm.h".
412 * xstormy16-tdep.c: Include "dis-asm.h".
413 (_initialize_xstormy16_tdep): Delete "extern" declaration of
414 print_insn_xstormy16.
415 * Makefile.in (v850-tdep.o): Update dependencies.
416 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
417 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
418 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
419 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
420 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
421 (gdbarch_h): Remove $(dis_asm_h).
422 * disasm.c: Include "dis-asm.h".
423 (dis_asm_read_memory): Use "struct disassemble_info" instead of
424 corresponding typedef.
425 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
426 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
427 * gdbarch.sh: Do not include "dis-asm.h".
428 (struct disassemble_info): Declare opaque.
429 (TARGET_PRINT_INSN): Update declaration.
430 * gdbarch.h, gdbarch.c: Re-generate.
432 2003-09-08 Andrew Cagney <cagney@redhat.com>
434 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
435 CALL_DUMMY_ADDRESS, change to a predicate.
436 * gdbarch.h, gdbarch.c: Re-generate.
437 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
438 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
439 * infcall.c (call_function_by_hand): Ditto.
440 * sparc-tdep.c (sparc_push_return_address): Ditto.
441 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
442 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
443 CALL_DUMMY_ADDRESS with entry_point_address.
444 * v850-tdep.c (v850_push_return_address): Ditto.
445 * s390-tdep.c (s390_push_return_address): Ditto.
446 * rs6000-tdep.c (ppc_push_return_address): Ditto.
447 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
448 * mcore-tdep.c (mcore_push_return_address): Ditto.
449 * cris-tdep.c (cris_push_return_address): Ditto.
450 * arm-tdep.c (arm_push_return_address): Ditto.
452 2003-09-08 Andrew Cagney <cagney@redhat.com>
454 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
455 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
456 and REG_UNMODIFIED to REG_SAME_VALUE.
457 (execute_cfa_program): Update.
458 (dwarf2_frame_cache): Update. Initialize table to
459 REG_UNSPECIFIED, complain if CFI fails to specify a register's
461 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
463 2003-09-08 Andrew Cagney <cagney@redhat.com>
465 * gnu-nat.c: Remove "inline" function attribute.
466 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
468 2003-09-08 Kevin Buettner <kevinb@redhat.com>
470 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
473 2003-09-08 Kevin Buettner <kevinb@redhat.com>
475 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
476 (frame_extra_info): Rename this struct to frv_unwind_cache.
477 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
478 Add fields ``prev_sp'' and ``base''.
479 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
480 (frv_saved_pc_after_call, frv_init_extra_frame_info)
481 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
483 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
484 Revise all callers. Fill in the unwind cache argument and make
485 other adjustments to account for new frame mechanisms.
486 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
487 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
488 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
489 (frv_frame_unwind, frv_frame_base): New structs.
490 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
491 additional arguments expected by this method and adjust function
493 (frv_gdbarch_init): Remove calls to the following functions:
494 set_gdbarch_deprecated_init_frame_pc(),
495 set_gdbarch_deprecated_saved_pc_after_call(),
496 set_gdbarch_deprecated_frame_chain(),
497 set_gdbarch_deprecated_frame_saved_pc(),
498 set_gdbarch_deprecated_frame_init_saved_regs(),
499 set_gdbarch_deprecated_push_arguments(),
500 set_gdbarch_deprecated_push_return_address(),
501 set_gdbarch_deprecated_pop_frame(),
502 set_gdbarch_deprecated_call_dummy_words(),
503 set_gdbarch_deprecated_sizeof_call_dummy_words(),
504 set_gdbarch_deprecated_init_extra_frame_info(),
505 set_gdbarch_deprecated_dummy_write_sp(), and
506 set_gdbarch_deprecated_pc_in_call_dummy().
507 Add calls to the following functions:
508 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
509 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
510 frame_base_set_default().
511 * Makefile.in (frv-tdep.o): Update dependencies.
513 2003-09-09 Mark Kettenis <kettenis@gnu.org>
515 * dwarf2-frame.c (read_encoded_value): Add support for
516 DW_EH_PE_aligned encoding.
518 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
520 * infrun.c (normal_stop): Don't print a message if the inferior
523 2003-09-08 Jim Blandy <jimb@redhat.com>
525 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
526 * dbxread.c: #include "gdb_assert.h".
527 (read_dbx_symtab): If the objfile has no .data section, use the
528 section index for the .bss section instead.
530 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
532 * frame.c (deprecated_safe_get_selected_frame): New function.
533 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
534 * findvar.c (read_var_value): Call it.
536 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
538 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
539 (sh64-tdep.o): Add dependencies.
540 * configure.tgt: Add FIXME to sh-*-linux*.
541 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
542 (sh_gdbarch_init): Always set correct sh_show_regs function
543 pointer. Call sh64_gdbarch_init() if machine type is sh5.
544 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
545 * sh64-tdep.c: New file, containing all sh64 related code from
547 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
548 * config/sh/linux.mt (TDEPFILES): Ditto.
549 * config/sh/nbsd.mt (TDEPFILES): Ditto.
550 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
551 * config/sh/wince.mt (TDEPFILES): Ditto.
553 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
555 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
556 (stop_wait_callback): Handle !lp->signalled also.
557 (lin_lwp_has_pending, flush_callback): New functions.
558 (lin_lwp_wait): Call flush_callback.
559 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
560 (linux_proc_pending_signals): New function.
561 * linux-nat.h (linux_proc_pending_signals): Add prototype.
563 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
565 From Nick Kelsey <nickk@ubicom.com>:
566 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
567 when the stop PC is at the beginning of a function also.
569 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
571 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
572 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
574 2003-09-06 Mark Kettenis <kettenis@gnu.org>
576 * sol-thread.c: Include "gdb_string.h".
578 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
580 * gcore.c: Reorder include files in alphabetical order. Include
581 "gdb_assert.h". Various coding style fixes.
582 (derive_stack_segment, derive_heap_segment): Replace check for
583 non-null BOTTOM and TOP with gdb_assert.
584 (derive_heap_segment): Replace check for successful creation of
585 ZERO with gdb_assert.
586 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
588 2003-09-04 Andrew Cagney <cagney@redhat.com>
590 * thread-db.c (verbose_dlsym): New function.
591 (thread_db_load): Use verbose_dlsym
592 (thread_db_new_objfile): Print that libthread_db was loaded, and
593 that thread debugging was enabled.
595 2003-09-04 Andrew Cagney <cagney@redhat.com>
597 * configure.tgt: Add "mips64*-*-*" target. Delete
598 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
599 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
600 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
601 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
602 mips*-sony-*, and mips64*-*-elf* targets.
603 * config/mips/embedl.mt: Delete file.
604 * config/mips/embedl64.mt: Delete file.
605 * config/mips/mips.mt: Delete file.
606 * config/mips/mips64.mt: Delete file.
607 * config/mips/tm-embed.h: Delete file.
608 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
609 * config/mips/embed64.mt: Delete out-of-date comment.
611 2003-09-04 Andrew Cagney <cagney@redhat.com>
613 * hppa-tdep.c (hppa_gdbarch_init): Set
614 "have_nonsteppable_watchpoint".
615 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
616 * mips-tdep.c (mips_dump_tdep): Do not print
617 HAVE_NONSTEPPABLE_WATCHPOINT.
618 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
619 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
620 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
621 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
623 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
625 * breakpoint.c (watchpoint_check): Remove accidentally checked in
626 unused code. Add comment.
628 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
630 * breakpoint.c (watchpoint_check): Check for pc being in an
631 epilogue if watchpoint frame couldn't be found.
633 2003-09-04 Andrew Cagney <cagney@redhat.com>
635 * Makefile.in: Re-generate all dependencies.
637 2003-09-03 Andrew Cagney <cagney@redhat.com>
639 * arch-utils.h (legacy_print_insn): Delete declaration.
640 * arch-utils.c (legacy_print_insn): Delete function.
641 * disasm.c (deprecated_tm_print_insn_info): Delete.
642 (_initialize_disasm): Delete function, contained code initializing
643 deprecated_tm_print_insn_info.
644 * gdbarch.sh (deprecated_tm_print_insn): Delete.
645 (deprecated_tm_print_insn_info): Delete.
646 (TARGET_PRINT_INSN): Do not provide a default.
647 * gdbarch.h, gdbarch.c: Re-generate.
649 2003-09-03 Andrew Cagney <cagney@redhat.com>
651 * disasm.c (fprintf_disasm): New function.
652 (gdb_disassemble_info): Call "init_disassemble_info", instead of
653 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
654 reverts 2003-08-14 change.
655 (_initialize_disasm): Call "init_disassemble_info", instead of
656 INIT_DISASSEMBLE_INFO_NO_ARCH.
658 2003-09-03 Michael Snyder <msnyder@redhat.com>
660 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
662 2003-09-03 Andrew Cagney <cagney@redhat.com>
664 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
665 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
666 * symfile.c (syms_from_objfile): Update.
667 (reread_symbols): `Update
668 * exec.c (exec_file_attach): Update.
669 (exec_file_attach): Update.
670 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
672 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
674 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
676 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
678 (arm_get_cache): Delete macro.
679 (struct arm_prologue_cache): Update comments. Make saved_regs into
680 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
682 (thumb_scan_prologue): Update for cache changes. Don't call
683 DEPRECATED_PC_IN_CALL_DUMMY.
684 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
685 argument and use it in desperation search for our prologue. Do not
686 search past the specified PC.
687 (arm_make_prologue_cache): Simplify.
689 (arm_prologue_this_id, arm_prologue_prev_register)
690 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
691 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
692 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
693 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
694 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
696 (arm_frame_chain_valid, arm_find_callers_reg)
697 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
698 (arm_pop_frame): Delete obsolete methods.
699 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
701 (arm_gdbarch_init): Update for new frame methods. Register prologue
702 and sigtramp unwinders. Set the default frame base method.
704 * Makefile.in (arm-tdep.o): Update dependencies.
705 * varobj.c (find_frame_addr_in_frame_chain): Call
706 get_frame_base_address.
707 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
709 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
711 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
712 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
713 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
714 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
715 Take NEXT_FRAME and CACHE arguments. Call
716 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
717 Set unwound_pc in CACHE instead of modifying the frame argument.
718 Don't bother checking the frame type when looking for sigtramp
720 (arm_make_prologue_cache, arm_frame_chain)
721 (arm_init_extra_frame_info): New functions.
723 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
725 * arm-tdep.c (arm_get_cache): Define.
726 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
727 unwound_sp, unwound_pc, and saved_regs.
728 (thumb_scan_prologue): Take a cache instead of the frame.
729 (arm_scan_prologue): Likewise.
730 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
731 instead of a temporary frame.
732 (arm_init_extra_frame_info): Allocate and use a cache.
733 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
735 2003-09-03 Andrew Cagney <cagney@redhat.com>
737 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
738 * config/mips/wince.mt (TM_CLIBS): Ditto.
739 * config/sh/wince.mt (TM_CLIBS): Ditto.
740 * config/pa/hppa64.mt (TM_CLIBS): Delete.
741 * config/sparc/sp64.mt (CC): Delete.
743 2003-09-03 Andrew Cagney <cagney@redhat.com>
745 * defs.h: Do not include "arch-utils.h".
746 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
748 * configure.in (GDB_MULTI_ARCH): Do not define.
749 * configure, config.in: Regenerate.
750 * configure.tgt: Do not set variable "gdb_multi_arch".
751 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
752 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
753 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
754 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
755 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
756 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
757 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
758 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
759 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
760 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
761 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
762 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
763 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
764 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
765 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
766 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
767 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
768 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
770 2003-08-30 Michael Chastain <mec@shout.net>
772 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
773 * config/m68k/nm-hp300hpux.h: Delete.
774 * config/m68k/tm-hp300hpux.h: Delete.
775 * config/m68k/xm-hp300hpux.h: Delete.
776 * config/m68k/xm-hp300bsd.h: Delete.
777 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
778 tm-hp300hpux.h, xm-hp300hpux.h.
779 * somsolib.c: Remove comment about hp300 shared libraries.
781 2003-08-31 Mark Kettenis <kettenis@gnu.org>
783 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
784 Only define PTRACE_GET_THREAD_AREA is not already defined.
785 Various style fixes in code and comments and some additional
786 spelling fixes in comments. Move after functions dealing with
788 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
791 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
792 frame_unwind_register_unsigned instead of
793 frame_unwind_unsigned_register.
795 2003-08-30 Mark Kettenis <kettenis@gnu.org>
797 * configure.in: Search for gethostbyname in libnsl.
798 * configure: Regenerated.
800 2003-08-29 Mark Kettenis <kettenis@gnu.org>
802 * configure.in: Remove redundant AC_MSG_RESULT in check for
803 uintptr_t in stdint.h.
804 * configure: Regenerated.
806 * amd64-nat.h (struct regcache): Add opaque declaration.
808 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
809 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
810 Change "register array" to "register cache" in comments.
811 (x86_64_linux_gregset64_reg_offset): New variable.
812 (GETREGS_SUPPLIES): Remove macro.
813 (supply_gregset): Call amd64_supply_native_gregset instead of
814 x86_64_linux_supply_gregset.
815 (fill_gregset): Rename `regno' to `regnum'. Call
816 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
817 (store_regs): Rename `regno' to `regnum'.
818 (store_fpregs): Rename `regno' to `regnum'.
819 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
820 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
821 Reorganize function a bit.
822 (store_inferior_registers): Rename `regno' to `regnum'. Use
823 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
824 Reorganize function a bit.
825 (_initialize_x86_64_linux_nat): New function.
826 * config/i386/x86-64linux.mh.
828 2003-08-29 Andrew Cagney <cagney@redhat.com>
830 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
831 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
832 (target_remove_watchpoint): Delete macro.
833 (target_insert_watchpoint): Delete macro.
834 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
835 (remote_mips_stopped_by_watchpoint): Delete declaration.
836 (remote_mips_remove_watchpoint): Delete declaration.
837 (remote_mips_set_watchpoint): Delete declaration.
838 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
839 * remote-mips.c (_initialize_remote_mips): Set
840 "to_insert_watchpoint", "to_stopped_by_watchpoint",
841 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
842 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
843 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
844 (mips_stopped_by_watchpoint): Rename
845 remote_mips_stopped_by_watchpoint.
846 (mips_can_hardware_watchpoint): Rename
847 remote_mips_can_use_hardware_watchpoint, update function
850 2003-08-29 Mark Kettenis <kettenis@gnu.org>
852 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
853 USER_DS. We haven't given them a register number yet.
855 * amd64-nat.h: New file.
856 * amd64-nat.c: New file.
857 * amd64fbsd-nat.c: Include "amd64-nat.h".
858 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
859 (amd64fbsd32_r_reg_offset): New variable.
860 (supply_gregset): Simply call amd64_supply_native_gregset.
861 (fill_gregset): Rename `regno' to `regnum'. Simply call
862 amd64_collect_native_gregset.
863 (fill_fpregset): Rename `regno' to `regnum'.
864 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
865 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
866 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
867 `fpregset_t'. Call amd64_supply_native_gregset instead of
868 supply_gregset. Call x86_64_supply_fxsave instead of
870 (store_inferior_registers): Rename `regno' to `regnum'. Replace
871 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
872 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
873 `fpregset_t'. Call amd64_collect_native_gregset instead of
874 fill_gregset. Call x86_64_collect_fxsave instead of
876 (_initialize_am64fbsd_nat): Initialize
877 amd64_native_gregset32_reg_offset and
878 amd64_native_gregset64_reg_offset.
879 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
881 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
882 null pointer. Fix typo in comment.
884 * regcache.c (supply_register): Reimplement to call
886 (regcache_collect): Reimplement by calling regcache_raw_collect.
888 2003-08-28 Mark Kettenis <kettenis@gnu.org>
890 * regcache.c (register_buffer): Consitify first argument.
891 (regcache_raw_supply, regcache_raw_collect): New
894 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
896 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
897 by Nathan J. Williams.
899 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
901 * lin-lwp.c (wait_lwp): New function, copied from
902 stop_wait_callback. Clean up.
903 (stop_wait_callback): Use wait_lwp.
905 2003-08-28 Andrew Cagney <cagney@redhat.com>
907 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
908 flavour and disassembler options.
909 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
910 (mips_gdbarch_init): Set "print_insn". Delete initialization of
911 deprecated_tm_print_insn_info.
913 2003-08-27 Andrew Cagney <cagney@redhat.com>
915 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
916 Use target_read_memory.
917 (s390_get_frame_info): Update. Do not reference
918 deprecated_tm_print_insn_info.
919 (s390_check_function_end, s390_is_sigreturn): Ditto.
921 2003-08-27 Andrew Cagney <cagney@redhat.com>
923 * Makefile.in (cris-tdep.o): Update dependencies.
924 * cris-tdep.c: Include "gdb_assert.h".
925 (cris_gdbarch_init): Set print_insn.
926 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
927 (cris_delayed_get_disassembler): Simplify, directly call the
928 disassembler returned by cris_get_disassembler.
929 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
930 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
931 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
932 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
933 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
934 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
935 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
936 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
937 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
938 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
939 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
940 (gdb_print_insn_sparc): Delete function.
941 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
942 deprecated_tm_print_insn_info.
943 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
944 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
945 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
946 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
947 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
948 * s390-tdep.c (gdb_print_insn_s390): Delete function.
949 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
950 (s390_gdbarch_init): Set print_insn.
952 2003-08-27 Andrew Cagney <cagney@redhat.com>
954 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
955 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
956 * infcall.c (call_function_by_hand): Convert the entry point
957 address into a code address.
959 2003-08-27 Andrew Cagney <cagney@redhat.com>
961 * dsrec.c: Include "gdb_string.h".
962 * Makefile.in (dsrec.o): Update dependencies.
964 2003-08-27 Michael Chastain <mec@shout.net>
966 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
968 2003-08-27 Andrew Cagney <cagney@redhat.com>
970 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
971 (alpha_osf1_init_abi): Do not set call_dummy_address.
973 2003-08-27 David Carlton <carlton@kealia.com>
975 From Randolph Chung <tausq@debian.org>:
976 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
977 compiles with -Wformat-nonliteral -Werror.
979 2003-08-26 Jim Blandy <jimb@redhat.com>
981 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
982 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
983 bfd_lookup_symbol, since we only want symbols in code sections.
984 (look_for_base): Pass zero as the SECT_FLAGS argument to
985 bfd_lookup_symbol, since we're not concerned about which section
988 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
990 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
991 we are frameless or the return address register is already known.
993 2003-08-26 Andrew Cagney <cagney@redhat.com>
995 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
996 in size. Add comments.
998 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
1000 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
1001 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
1003 2003-08-26 Jason Merrill <jason@redhat.com>
1005 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
1006 case out of #ifdef MIPS block.
1008 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
1011 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
1012 available before calling SECT_OFF_TEXT.
1013 * PROBLEMS: Remove description of java/1322.
1015 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
1017 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
1018 bof, and nat0-nat127 as pseudo-registers.
1019 (ia64_frame_cache): New struct used to cache frame info.
1020 (ia64_register_reggroup_p): New routine used to override default
1021 register grouping so registers without names are still saved and
1023 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
1025 (ia64_pseudo_register_read): New routine to read pseudo-registers.
1026 (ia64_pseudo_register_write): New routine to write pseudo-registers.
1027 (ia64_alloc_frame_cache): New routine to create a new
1029 (examine_prologue): Change prototype to add next_frame pointer.
1030 Assume frameless until otherwise proven. Verify that the cfm for
1031 current frame matches the cfm that should occur for the prologues
1032 alloc insn and if equal, mark as not frameless. At end of routine,
1033 if not frameless, calculate registers for the previous frame and store
1034 in the cache, if a cache is provided.
1035 (ia64_skip_prologue): Use new prototype when calling examine_prologue
1036 and pass 0 for next_frame.
1037 (ia64_store_return_value): Change to use convert_typed_floating()
1038 instead of calling ia64_convert_to_raw().
1039 (ia64_extract_return_value): Change to use convert_typed_floating()
1040 instead of calling ia64_convert_to_virtual().
1041 (ia64_frame_cache): New routine to support new frame model.
1042 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
1043 (ia64_frame_sniffer): Ditto.
1044 (ia64_sigtramp_frame_init_saved_regs): Ditto.
1045 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
1046 (ia64_sigtramp_frame_prev_register): Ditto.
1047 (ia64_sigtramp_frame_sniffer): Ditto.
1048 (ia64_frame_base_address): Ditto.
1049 (ia64_extract_struct_value_address): Change to issue error message.
1050 (ia64_frame_align): New routine to align sp.
1051 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
1052 (ia64_push_arguments): Removed. Logic moved to
1053 ia64_push_dummy_call().
1054 (ia64_push_return_address): Ditto.
1055 (ia64_unwind_dummy_id): New function.
1056 (ia64_unwind_pc): Ditto.
1057 (ia64_convert_register_p): Ditto.
1058 (ia64_register_to_value): Ditto.
1059 (ia64_value_to_register): Ditto.
1060 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
1061 (ia64_register_byte, ia64_register_raw_size): Ditto.
1062 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
1063 (ia64_saved_pc_after_call): Ditto.
1064 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
1065 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
1066 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
1067 (ia64_register_convert_to_raw): Ditto.
1068 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
1069 (ia64_init_extra_frame_info): Ditto.
1070 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
1071 (ia64_gdbarch_init): Remove registering of deprecated functions that
1072 are no longer used. Add registration of new gdbarch functions.
1073 Remove registering deprecated_write_sp. Replace
1074 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
1075 Delete set_gdbarch_deprecated_register_convertible(),
1076 set_gdbarch_deprecated_register_convert_to_virtual(), and
1077 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
1078 set_gdbarch_deprecated_register_size(),
1079 set_gdbarch_deprecated_register_bytes(),
1080 set_gdbarch_pcregnum(),
1081 set_gdbarch_deprecated_register_byte(),
1082 set_gdbarch_deprecated_register_raw_size(),
1083 set_gdbarch_deprecated_max_register_raw_size(),
1084 set_gdbarch_deprecated_register_virtual_size(),
1085 and set_gdbarch_deprecated_max_register_virtual_size() calls.
1086 Replace set_gdbarch_deprecated_extract_return_value() with
1087 set_gdbarch_extract_return_value(). Remove calls to:
1088 set_gdbarch_deprecated_saved_pc_after_call();
1089 set_gdbarch_deprecated_frame_chain(),
1090 set_gdbarch_deprecated_frame_saved_pc(),
1091 set_gdbarch_deprecated_frame_init_saved_regs(),
1092 set_gdbarch_deprecated_get_saved_register(),
1093 set_gdbarch_deprecated_call_dummy_words(),
1094 set_gdbarch_deprecated_sizeof_call_dummy_words(),
1095 set_gdbarch_deprecated_init_extra_frame_info(),
1096 set_gdbarch_deprecated_frame_args_address(),
1097 set_gdbarch_deprecated_frame_locals_address(),
1098 and set_gdbarch_deprecated_dummy_write_sp().
1099 Add set_gdbarch_convert_register_p(),
1100 set_gdbarch_register_to_value(),
1101 set_gdbarch_value_to_register(),
1102 set_gdbarch_push_dummy_call(),
1103 set_gdbarch_frame_align(),
1104 set_gdbarch_unwind_dummy_id(),
1105 set_gdbarch_unwind_pc(),
1106 frame_unwind_append_sniffer(),
1107 frame_unwind_append_sniffer(),
1108 and frame_base_set_default().
1110 2003-08-25 Chris Demetriou <cgd@broadcom.com>
1112 * configure.tgt: Document need for special "mipsisa64" handling.
1113 (mipsisa64*-*-linux64): Handle as target linux64.
1114 (mipsisa64*-*-*): Handle as target embed64.
1116 2003-08-18 Michael Chastain <mec@shout.net>
1118 * PROBLEMS: Document pr gdb/1322, the Java anonymous
1121 2003-08-24 Mark Kettenis <kettenis@gnu.org>
1123 * i387-tdep.h: Update copyright date.
1124 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
1126 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
1127 CFLAGS games to reflect reality.
1129 2003-08-24 Andrew Cagney <cagney@redhat.com>
1131 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
1132 GDB_MULTI_ARCH is always non-zero.
1133 * osabi.c (_initialize_gdb_osabi): Ditto.
1134 (gdbarch_init_osabi): Ditto.
1135 * sparc-tdep.c: Ditto for #if code.
1137 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1139 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
1141 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
1143 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
1144 x86_64_supply_fxsave.
1145 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
1146 x86_64_supply_fxsave.
1147 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
1148 x86_64_supply_fxsave.
1150 2003-08-23 Andreas Jaeger <aj@suse.de>
1152 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
1155 2003-08-23 Mark Kettenis <kettenis@gnu.org>
1157 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
1158 i387_supply_register.
1159 (go32_fetch_registers): Adjust call to i387_supply_fsave.
1160 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
1162 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
1164 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
1166 * i386bsd-nat.c (supply_fpregset): Adjust call to
1168 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
1169 call to i387_supply_fxsave. Call i387_supply_fsave instead of
1171 (store_inferior_registers): Remove extraneous whitespace. Call
1172 i387_fill_fsave instead of fill_fpregset.
1173 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
1174 (supply_fpregset): Likewise.
1175 * i386v4-nat.c (supply_fpregset): Adjust call to
1177 * i386-interix-nat.c (supply_fpregset): Adjust call to
1179 * i386-linux-nat.c (supply_fpregset): Adjust call to
1181 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
1182 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
1183 i387supply_fsave and i387_supply_fxsave.
1184 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
1185 Incorporate code from `i387_supply_register.
1186 (i387_supply_register): Remove.
1187 (i387_supply_fxsave): Add `regnum' argument.
1189 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
1191 (i387_supply_register): remove prototype.
1194 2003-08-22 Michael Chastain <mec@shout.net>
1196 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
1197 Add lines for files in gdb/testsuite/gdb.cp/* that are
1198 still not 8.3 unique.
1200 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
1202 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
1203 TYPE_VPTR_FIELDNO is valid.
1205 2003-08-19 Mark Kettenis <kettenis@gnu.org>
1207 * utils.c (set_width_command): Remove prototypes.
1208 (set_screen_size): New prototype.
1209 (init_page_info): Simplify by fetching the screen size from
1210 Readline. Call set_screen_size.
1211 (set_screen_size): New function.
1212 (set_width): Add missing whitespace in comment.
1213 (set_width_command): Call set_screen_size.
1214 (set_height_command): New function.
1215 (initialize_utils): Fix formatting. Make "set height" command
1216 call set_height_command. Remove redundant code that turns off
1217 pagination if output isn't a terminal. Remove redundant call to
1220 2003-08-22 Mark Kettenis <kettenis@gnu.org>
1222 * sparc64-tdep.h (sparc64_regnum): Fix comment.
1223 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
1224 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
1225 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
1227 (sparc64_register_info): Give the reister with number
1228 SPARC64_STATE_REGNUM a name.
1229 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
1231 (sparc64_push_dummy_call): Take BIAS into account when checking
1233 (sparc_software_single_step): Remove assertions that check whether
1234 NPC and NNPC were zero.
1235 (sparc_supply_rwindow): Make public. Merge functionality with
1236 sparc64_supply_rwindow.
1237 (sparc_fill_rwindow): Make public. Merge functionality with
1238 sparc64_fill_rwindow.
1239 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
1240 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
1241 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
1242 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
1243 sparc_supply_rwindow instead of sparc64_supply_rwindow.
1245 * reggroups.c: Add whitespace after declarations of local
1246 variables in functions.
1248 2003-08-21 Michael Chastain <mec@shout.net>
1250 * gdbtypes.h: Change array bound type from an int to enum.
1252 2003-08-21 Andrew Cagney <cagney@redhat.com>
1254 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
1255 * config/sparc/tm-sparc.h: Ditto.
1256 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
1258 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
1260 2003-07-13 Mark Kettenis <kettenis@gnu.org>
1262 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
1263 (register_objfile_data, set_objfile_data, objfile_data): New
1265 * objfiles.c (objfile_alloc_data, objfile_free_data): New
1267 (allocate_objfile): Call objfile_alloc_data.
1268 (free_objfile): Call objfile_free_data.
1269 (struct objfile_data): New.
1270 (struct objfile_data_registration): New.
1271 (struct objfile_data_registry): New.
1272 (objfile_data_registry): New variable.
1273 (register_objfile_data): New function.
1274 (objfile_alloc_data, objfile_free_data): New functions.
1275 (set_objfile_data, objfile_data): New functions.
1276 * dwarf2-frame.c (dwarf2_frame_data): New variable.
1277 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
1278 (_initialize_dwarf2_frame): New function and prototype.
1280 2003-08-21 Andrew Cagney <cagney@redhat.com>
1282 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
1283 a specific architecture.
1284 * arch-utils.h (set_architecture_from_arch_mach): Delete
1286 (target_architecture_hook): Delete declaration.
1287 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
1288 (default_float_format): Assume GDB_MULTI_ARCH.
1289 (default_double_format): Assume GDB_MULTI_ARCH.
1290 (set_endian_from_file): Delete function.
1291 (arch_ok): Delete function.
1292 (set_arch): Delete function.
1293 (set_architecture_from_arch_mach): Delete function.
1294 (set_architecture_from_file): Delete function.
1295 (set_architecture): Assume GDB_MULTI_ARCH.
1296 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
1298 2003-08-21 Mark Kettenis <kettenis@gnu.org>
1300 Rewrite FreeBSD/sparc64 native configuration.
1301 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
1302 * sparc64fbsd-nat.c: New file.
1303 * sparc64fbsd-tdep.c: New file.
1304 * sparc64-tdep.c sparc64-tdep.h: New files.
1305 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
1306 sparc64fbsd-tdep.o): New dependencies.
1307 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
1308 and sparc64fbsd-tdep.c.
1309 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
1310 * config/sparc/fbsd.mh: Remove copyright notice.
1311 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
1313 * config/sparc/fbsd.mt: Remove copyright notice.
1314 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
1315 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
1316 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
1317 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
1318 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
1319 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
1320 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
1321 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
1323 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
1324 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
1326 2003-08-21 Michael Chastain <mec@shout.net>
1328 * symtab.h: Add doco on the space critical structures and
1329 some measurements of space usage.
1331 2003-08-21 Michael Snyder <msnyder@redhat.com>
1333 * tracepoint.c (trace_dump_command): Trace break address
1334 is subject to DECR_PC_AFTER_BREAK.
1335 (set_traceframe_context): Make "trace_line" an int.
1336 Fixes suggested by Mark Newman <mark.newman@lmco.com>
1338 2003-08-20 Michael Snyder <msnyder@redhat.com>
1340 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
1341 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
1342 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
1344 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
1345 functions, replace sh_push_dummy_call.
1346 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
1348 2003-08-20 Michael Chastain <mec@shout.net>
1350 * gdbtypes.h (struct main_type): Rearrange to save space.
1352 2003-08-20 Michael Snyder <msnyder@redhat.com>
1354 * trad-frame.c: Comment typo fix.
1356 2003-08-20 Michael Snyder <msnyder@redhat.com>
1357 Kevin Buettner <kevinb@redhat.com>
1359 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
1360 (frv_frame_init_saved_regs): Add declaration.
1361 (frame_extra_info): Add new field ``saved_regs''.
1362 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
1363 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
1364 Update frame related code.
1365 (frv_extract_struct_value_address): Adjust formatting.
1366 * Makefile.in (frv-tdep.o): Update dependencies.
1367 * config/frv/tm-frv.h (target_insert_watchpoint)
1368 (target_remove_watchpoint, target_insert_hw_breakpoint)
1369 (target_remove_hw_breakpoint): Delete these macros.
1370 (remote_insert_watchpoint, remote_remove_watchpoint)
1371 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
1374 2003-08-20 Michael Chastain <mec@shout.net>
1376 * defs.h (ENUM_BITFIELD): New macro.
1377 * symtab.h (ENUM_BITFIELD): Use it.
1378 (BYTE_BITFIELD): Remove old macro, which was already disabled.
1380 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
1382 * MAINTAINERS (write after approval): Add myself.
1384 2003-08-18 Andrew Cagney <cagney@redhat.com>
1386 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
1387 * gdbarch.h, gdbarch.c: Re-generate.
1388 * infcall.c (call_function_by_hand): Adjust the SP by
1389 frame_red_zone_size before allocating any stack space.
1390 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
1391 * x86-64-tdep.c (x86_64_frame_align): New function.
1392 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
1394 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
1395 Remove code adjusting SP so that it skips over the Red Zone.
1397 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1399 * NEWS (New native configurations): Mention FreeBSD/amd64.
1401 2003-08-18 Andrew Cagney <cagney@redhat.com>
1403 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
1404 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
1406 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
1408 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1410 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
1412 2003-08-18 Michal Ludvig <mludvig@suse.cz>
1414 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
1416 * i386-linux-nat.c: Include "linux-nat.h".
1417 (child_post_startup_inferior): New function.
1419 2003-08-18 Mark Kettenis <kettenis@gnu.org>
1421 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
1422 at the start of a frameless function. This probably fixes PR
1425 2003-08-17 Michael Chastain <mec@shout.net>
1427 * symfile.c (find_sym_fns): Remove special case for apollo target.
1429 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1431 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
1432 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
1433 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
1434 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
1435 (linux_supports_tracevforkdone): New function.
1436 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
1438 (child_follow_fork): Handle vfork.
1439 (linux_handle_extended_wait): Likewise. Also handle exec.
1440 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
1441 * NEWS: Mention fork tracing.
1443 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1445 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1447 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
1449 * Makefile.in (i386-linux-nat.o): Update dependencies.
1450 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
1451 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
1452 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
1453 * i386-linux-nat.c: Include "linux-nat.h".
1454 (child_post_startup_inferior): New function.
1455 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
1456 * infptrace.c (kill_inferior): Wrap in #ifdef.
1457 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
1458 attaching to each LWP.
1459 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
1460 (init_lin_lwp_ops): Fill in some more operations.
1461 * linux-nat.h (linux_enable_event_reporting)
1462 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
1464 * linux-nat.c (linux_enable_event_reporting): New function.
1465 (child_post_attach, linux_child_post_startup_inferior)
1466 (child_post_startup_inferior, child_follow_fork)
1467 (linux_handle_extended_wait, kill_inferior): New functions.
1469 2003-08-16 Andrew Cagney <cagney@redhat.com>
1471 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
1472 * gdbarch.h, gdbarch.c: Re-generate.
1474 2003-08-16 Mark Kettenis <kettenis@gnu.org>
1476 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
1478 2003-08-16 Andrew Cagney <cagney@redhat.com>
1480 * NEWS: Mention that "set prompt-escape-char" was deleted.
1481 * top.c (get_prompt_1): Delete function.
1482 (gdb_prompt_escape):
1483 (init_main): Do not clear "gdb_prompt_escape". Delete "set
1484 prompt-escape-char" command.
1485 (MAX_PROMPT_SIZE): Delete macro.
1486 (get_prompt): Simplify, do not call get_prompt_1.
1488 2003-08-16 Andrew Cagney <cagney@redhat.com>
1490 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
1491 -Werror. -Wformat-nonliteral problems.
1493 2003-08-15 J. Brobecker <brobecker@gnat.com>
1495 Further multiarching work mostly for hppa64-*-hpux11:
1496 * hppa-tdep.h: New file.
1497 * hppa-tdep.c: #include hppa-tdep.c.
1498 (hppa32_num_regs): Renamed from hppa_num_regs.
1499 (hppa64_num_regs): New constant.
1500 (hppa64_call_dummy_breakpoint_offset): New constant.
1501 (hppa32_call_dummy_length): New constant.
1502 (hppa64_call_dummy_length): New constant.
1503 (hppa32_stack_align): Make name 32bit explicit.
1504 (hppa32_register_virtual_type): Likewise.
1505 (hppa32_extract_return_value): Likewise.
1506 (hppa32_use_struct_convention): Likewise.
1507 (hppa32_store_return_value): Likewise.
1508 (hppa64_register_virtual_type): New function.
1509 (hppa64_extract_return_value): New function.
1510 (hppa64_use_struct_convention): New function.
1511 (hppa64_store_return_value): New function.
1512 (hppa_frame_locals_address): Remove declaration, function does
1514 (hppa_register_byte): Add support for PA64 ABI.
1515 (hppa_gdbarch_init): Add support for PA64 ABI.
1516 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
1517 Make name 32bit explicit.
1518 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
1519 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
1520 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
1521 (hppa64_hpux_frame_base_before_sigtramp): New function.
1522 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
1523 * config/pa/tm-hppa64.h: Remove macros that are no longer
1524 necessary now that the gdbarch vector is properly setup.
1525 Transform some macros into function calls. Some minor cleanup.
1526 * config/pa/tm-hppah.h: Update function calls in macros
1527 following the function renaming in hppa-hpux-tdep.c.
1528 * Makefile.in (hppa_tdep_h): New variable.
1529 (hppa-tdep.o): Add dependency over hppa_tdep_h.
1531 2003-08-14 Michael Snyder <msnyder@redhat.com>
1533 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
1535 2003-08-13 J. Brobecker <brobecker@gnat.com>
1537 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
1538 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
1541 2003-08-13 Michael Snyder <msnyder@redhat.com>
1543 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
1544 (frv_saved_pc_after_call): Use deprecated ftype.
1545 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
1546 (frv_remote_translate_xfer_address): Remove.
1547 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
1549 2003-08-13 J. Brobecker <brobecker@gnat.com>
1551 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
1552 initialization after the common gdbarch initialization, not before.
1554 2003-08-13 J. Brobecker <brobecker@gnat.com>
1556 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
1557 (ADDR_BITS_REMOVE): Remove, redundant.
1559 2003-08-13 J. Brobecker <brobecker@gnat.com>
1561 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
1562 gdbarch method to clear the 2 low bits of text addresses.
1564 2003-08-12 Andrew Cagney <cagney@redhat.com>
1566 * Makefile.in (dsrec.o): Update dependencies.
1567 * dsrec.c: Include "gdb_assert.h".
1568 (make_srec): Use snprintf instead of sprintf, use a literal format
1571 2003-08-12 Andrew Cagney <cagney@redhat.com>
1573 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
1574 FRAME_OBSTACK_ZALLOC.
1576 2003-08-12 Kevin Buettner <kevinb@redhat.com>
1578 * i386-tdep.c (i386_gdbarch_init): Enable default support for
1581 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1583 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
1584 amd64fbsd_sc_reg_offset): Add extern declarations.
1585 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
1588 2003-08-11 Ben Elliston <bje@wasabisystems.com>
1590 * MAINTAINERS (write after approval): Update my mail address.
1592 2003-08-10 Andrew Cagney <cagney@redhat.com>
1594 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
1596 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1598 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1599 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
1600 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
1601 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
1602 i386bsd_sc_reg_offset): Add extern declarations.
1603 * i386obsd-nat.c: Include "i386-tdep.h"
1604 (_initialize_i386obsd_nat): Remove extern declarations.
1605 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
1607 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
1610 * i386-tdep.c (i386_register_to_value): Use get_frame_register
1611 instead of frame_read_register.
1612 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
1613 instead of frame_read_register. Use I386_ESP_REGNUM instead of
1615 (i386_frame_prev_register): Use frame_unwind_register_unsigned
1616 instead of frame_unwind_unsigned_register. Use
1617 I386_EFLAGS_REGISTER instead of PS_REGNUM.
1618 (i386_get_longjmp_target): Use regcache_read_unsigned_register
1619 instead of read_register. Use builtin_type_void_data_ptr instead
1620 of builtin_type_void_func_ptr when extracting the address of the
1622 (i386_extract_return_value, i386_store_return_value,
1623 i386_pseudo_register_read, i386_pseudo_register_write): Use
1624 register_size instead REGISTER_RAW_SIZE.
1626 2003-08-10 Andrew Cagney <cagney@redhat.com>
1628 * infcall.c (call_function_by_hand): Use xstrprintf instead of
1629 sprintf. Make "name" constant.
1631 2003-08-10 Mark Kettenis <kettenis@gnu.org>
1633 * i387-tdep.c (i387_register_to_value): Use get_frame_register
1634 instead of frame_read_register.
1635 (i387_print_float_info): Use get_frame_register and
1636 get_frame_register_unsigned instead of frame_register_read.
1638 * i386fbsd-nat.c: Include "i386-tdep.h".
1639 (child_resume): Make `eflags' an ULONGEST. Use
1640 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
1641 instead of register_read and register_write.
1643 * i386bsd-nat.c (fetch_inferior_registers,
1644 store_inferior_registers): Don't use && at the end of a line.
1645 (_initialize_i386bsd_nat): Fix typo.
1647 * frame.c (_initialize_frame): Add missing backslash.
1649 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1650 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
1651 and supply_register instead of manipulating the register buffer
1654 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
1655 * config/i386/nm-i386sol2.h
1656 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
1658 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
1659 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
1660 instructions that GCC likes to mingle into the prologue. Fixes
1661 gdb/1253 and gdb/1255.
1663 2003-08-09 Andrew Cagney <cagney@redhat.com>
1666 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
1667 * command.h (add_setshow_uinteger_cmd): Declare.
1668 * frame.c (set_backtrace_cmd): New function.
1669 (show_backtrace_cmd): New function.
1670 * frame.c (_initialize_frame): Replace "set/show
1671 backtrace-below-main" with "set/show backtrace past-main". Add
1672 command "set/show backtrace limit".
1673 (backtrace_past_main): Rename "backtrace_below_main".
1674 (backtrace_limit): New variable.
1675 (get_prev_frame): Update. Check the backtrace_limit.
1677 2003-08-09 Andrew Cagney <cagney@redhat.com>
1679 * defs.h (xstrprintf): Declare.
1680 * utils.c (xstrprintf): New function.
1681 * breakpoint.c (insert_breakpoints): Replace sprintf and
1682 non-literal format strings, with xstrprintf and cleanups.
1683 (delete_breakpoint,breakpoint_re_set): Ditto.
1684 (commands_command, insert_breakpoints): Ditto.
1685 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
1686 (break_at_finish_command_1): Ditto.
1688 2003-08-09 Andrew Cagney <cagney@redhat.com>
1690 * MAINTAINERS (language support): List Adam Fedor as Objective C
1693 2003-08-08 J. Brobecker <brobecker@gnat.com>
1695 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
1696 are now multiarched.
1698 2003-08-08 J. Brobecker <brobecker@gnat.com>
1700 * config/pa/tm-hppa64.h: Remove lots of macros that are no
1701 longer necessary now that hppa64 is partially multiarch'ed.
1703 2003-08-08 Andrew Cagney <cagney@redhat.com>
1705 * interps.c (interp_set): Check for a NULL "old_interp".
1707 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
1709 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
1710 (install-only): Support DESTDIR.
1711 (uninstall): Likewise.
1712 (install-gdbtk): Likewise.
1714 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
1716 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
1717 contains something meaningful at all times.
1719 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
1721 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
1723 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
1725 * MAINTAINERS (write after approval): Added self.
1727 2003-08-07 Andrew Cagney <cagney@redhat.com>
1729 * inferior.h (AT_SYMBOL): Define.
1730 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
1731 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
1732 * mips-tdep.c (mips_call_dummy_address): Delete function.
1733 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
1734 set call_dummy_address.
1736 2003-08-07 Andrew Cagney <cagney@redhat.com>
1738 * language.c (op_error): Delete function.
1739 (binop_type_check): Delete function.
1740 * language.h (type_op_error, range_op_error): Delete macros.
1741 (op_error): Delete declaration.
1743 2003-08-07 Andrew Cagney <cagney@redhat.com>
1745 * interps.h (INTERP_MI2, INTERP_MI3): Define.
1747 2003-08-07 Michal Ludvig <mludvig@suse.cz>
1749 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
1750 (x86_64_push_arguments): Skip the red zone.
1752 2003-08-05 Andrew Cagney <cagney@redhat.com>
1754 * reggroups.c (reggroup_next): Check for the final entry.
1756 2003-08-04 Andrew Cagney <cagney@redhat.com>
1758 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
1759 * cli/cli-script.c (define_command): Call query directly, instead
1760 of passing it a buffer.
1761 * ocd.c (ocd_error): Pass error a constant format string.
1762 * remote-mips.c (mips_error): Use fputs_filtered.
1764 * solib-svr4.c (_initialize_svr4_solib): Update
1765 register_gdbarch_data call.
1766 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
1768 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
1769 (register_gdbarch_data): Delete "free" parameter. Update
1771 * gdbarch.h, gdbarch.c: Re-generate.
1772 * reggroups.c (_initialize_reggroup): Update.
1773 * gnu-v3-abi.c (init_gnuv3_ops): Update.
1774 * frame-base.c (_initialize_frame_base): Update.
1775 * frame-unwind.c (_initialize_frame_unwind): Update.
1776 * user-regs.c (_initialize_user_regs): Update.
1777 * remote.c (_initialize_remote): Update.
1778 * regcache.c (_initialize_regcache): Update.
1780 * regcache.c (xfree_regcache_descr): Delete function.
1781 (_initialize_regcache): Update call to register_gdbarch_data.
1782 (init_regcache_descr, init_legacy_regcache_descr): Use
1783 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
1785 * remote.c (free_remote_state): Delete function.
1786 (_initialize_remote): Update register_gdbarch_data.
1787 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
1788 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
1790 2003-08-04 Andrew Cagney <cagney@redhat.com>
1792 * reggroups.c (struct reggroup_el): Define.
1793 (struct reggroups): Delete field "nr_group". Replace array
1794 "group" with a "first" to "last" linked list.
1795 (reggroups_init): Update. Allocate using gdbarch's obstack.
1796 (reggroups_free): Delete function.
1797 (add_group): Update. Add "el" parameter.
1798 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
1799 (default_groups): Update.
1800 (reggroup_next): Replace reggroups.
1801 (reggroups_dump): Update.
1802 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
1803 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
1804 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
1806 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
1808 * Makefile.in (tui-interp.o): Update dependencies.
1810 2003-08-04 David Carlton <carlton@kealia.com>
1812 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
1813 to internal_error call.
1814 * source.c (forward_search_command): Add "%s" format argument.
1815 (reverse_search_command): Ditto.
1816 * top.c (quit_confirm): Ditto.
1817 * cli/cli-setshow.c (do_setshow_command): Ditto.
1818 * cp-valprint.c (cp_print_class_method): Replace
1819 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
1820 (cp_print_class_member): Ditto.
1821 * event-top.c (command_line_handler): Ditto.
1822 * linux-proc.c (linux_info_proc_cmd): Ditto.
1823 * p-typeprint.c (pascal_type_print_base): Ditto.
1824 * p-valprint.c (pascal_object_print_class_method): Ditto.
1825 (pascal_object_print_class_member): Ditto.
1826 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
1827 * remote.c (remote_cisco_section_offsets): Ditto.
1828 * top.c (command_line_input): Ditto.
1829 * utils.c (vwarning,error_stream,quit): Ditto.
1830 * valprint.c (print_floating,print_binary_chars)
1831 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
1833 2003-08-04 Andrew Cagney <cagney@redhat.com>
1835 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
1837 2003-08-02 Andrew Cagney <cagney@redhat.com>
1839 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
1840 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
1843 2003-08-02 Andrew Cagney <cagney@redhat.com>
1845 * Makefile.in: Update all dependencies and definitions.
1847 2003-08-02 Adam Fedor <fedor@gnu.org>
1849 * linespec.c (is_objc_method_format): New function
1850 (decode_line_1, locate_first_half): Use it.
1853 2003-08-01 Andrew Cagney <cagney@redhat.com>
1855 * NEWS: Mention that m32r is multi-arch.
1856 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
1857 * configure.tgt: Recognize m32r-*-*.
1858 * config/m32r/tm-m32r.h: Delete file.
1859 * config/m32r/m32r.mt: New file.
1860 * m32r-rom.c (m32r_upload_command): Use hostent only when
1861 gethostname succeeds, in order to avoid a compilation
1863 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
1866 2003-08-01 Michael Snyder <msnyder@redhat.com>
1868 * sh-tdep.c (sh_frame_align): New gdbarch method.
1869 (sh_gdbarch_init): Set up frame_align method.
1871 2003-07-31 Michael Snyder <msnyder@redhat.com>
1873 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
1874 which is already covered by the new frames infrastructure.
1876 2003-07-31 Andrew Cagney <cagney@redhat.com>
1878 * user-regs.c (struct user_reg): Add "next" link.
1879 (struct user_regs): Replace "user" with "first" and "last" links.
1880 (append_user_reg): Add pre-allocated "reg" parameter.
1881 (builtin_user_regs): Provide initial value for "last".
1882 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
1883 (user_regs_init): Allocate memory from the gdbarch obstack.
1884 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
1885 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
1887 (usernum_to_user_reg): New function.
1888 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
1889 (value_of_user_reg): Use usernum_to_user_reg.
1890 (user_regs_free): Delete function.
1891 (_initialize_user_regs): Update register_gdbarch_data call.
1893 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
1895 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
1897 2003-07-30 Michael Snyder <msnyder@redhat.com>
1899 * value.h (value_being_returned): Add a struct_addr argument.
1900 * infcall.c (call_function_by_hand): Pass struct_addr to
1901 value_being_returned.
1902 * infcmd.c (print_return_value): Pass zero as struct_addr.
1903 * values.c (value_being_returned): If struct_addr is passed,
1904 use it instead of trying to recover it from the inferior.
1906 2003-07-30 Kevin Buettner <kevinb@redhat.com>
1908 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
1909 the prologue analyzer won't need to attempt to extract the pc
1910 value from the woefully incomplete dummy frame.
1911 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
1912 possible. Disable code which modifies the frame.
1914 2003-07-28 Andrew Cagney <cagney@redhat.com>
1916 * annotate.c (annotate_breakpoints_headers): Restrict annotation
1918 (annotate_breakpoints_table, annotate_record): Ditto.
1919 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
1920 (annotate_field_name_end, annotate_field_value): Ditto.
1921 (annotate_field_end, annotate_frame_source_begin): Ditto.
1922 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
1923 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
1924 (annotate_frame_begin, annotate_frame_function_name): Ditto.
1925 (annotate_frame_address_end, annotate_frame_address): Ditto.
1926 (annotate_frame_args, annotate_frame_end): Ditto.
1927 (annotate_frame_where, annotate_arg_begin): Ditto.
1928 (annotate_arg_name_end, annotate_arg_value): Ditto.
1929 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
1930 (annotate_function_call, annotate_signal_name): Ditto.
1931 (annotate_signal_string, annotate_signal_name_end): Ditto.
1932 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
1933 (annotate_value_begin, annotate_value_history_value): Ditto.
1934 (annotate_value_history_end, annotate_value_end): Ditto.
1935 (annotate_display_begin, annotate_display_number_end): Ditto.
1936 (annotate_display_format, annotate_display_expression): Ditto.
1937 (annotate_display_expression_end, annotate_display_value): Ditto.
1938 (annotate_display_end, annotate_array_section_begin): Ditto.
1939 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
1940 (annotate_elt, annotate_array_section_end): Ditto.
1942 2003-07-28 Andrew Cagney <cagney@redhat.com>
1944 * regcache.c (struct regcache_descr): Update comments on
1946 (init_legacy_regcache_descr): Don't set nr_raw_registers or
1947 sizeof_raw_register_valid_p.
1948 (init_regcache_descr): Set nr_raw_registers and
1949 sizeof_raw_register_valid_p before calling
1950 init_legacy_regcache_descr.
1952 2003-07-28 Andrew Cagney <cagney@redhat.com>
1954 * mips-tdep.c (print_gp_register_row): Print the GPR's register
1957 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
1959 * thread.c (info_threads_command): Use get_selected_frame ().
1960 Check that there is at least one non-sentinel frame.
1962 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1964 * m68hc11-tdep.c (struct frame_extra_info): Remove.
1965 (m68hc11_pop_frame): Remove.
1966 (m68hc11_frame_saved_pc): Remove.
1967 (m68hc11_frame_chain): Remove.
1968 (m68hc11_frame_init_saved_regs): Remove.
1969 (m68hc11_init_extra_frame_info): Remove.
1970 (m68hc11_store_struct_return): Remove.
1971 (m68hc11_saved_pc_after_call): Remove.
1973 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1975 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
1976 frame unwind information.
1977 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
1978 and adapted for frame unwinding.
1979 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
1980 (m68hc11_unwind_pc): New function.
1981 (m68hc11_frame_unwind_cache): New function to analyze frames.
1982 (m68hc11_frame_this_id): New function to create new frame struct.
1983 (m68hc11_frame_prev_register): New function to unwind a register from
1985 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
1986 (m68hc11_frame_p): New function for the above.
1987 (m68hc11_frame_base_address): New function to return fp of frame.
1988 (m68hc11_frame_args_address): Update for frame.
1989 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
1990 (m68hc11_unwind_sp): New function.
1991 (m68hc11_unwind_dummy_id): New function.
1992 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
1995 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
1997 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
1998 (m68hc11_guess_from_prologue): Advance the pc and frame size only
1999 when we are beyond the current pc.
2001 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
2003 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
2004 from m68hc11_push_arguments.
2005 (m68hc11_push_arguments): Remove.
2006 (m68hc11_push_return_address): Remove.
2007 (m68hc11_gdbarch_init): Install the above; remove above deprecated
2008 handlers; remove deprecated_extra_stack_alignment_needed.
2010 2003-07-27 Andrew Cagney <cagney@redhat.com>
2012 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
2013 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
2014 REAL_PC and not the pointer.
2015 * hppa-hpux-tdep.c: Include frame.h
2017 2003-07-27 Andrew Cagney <cagney@redhat.com>
2019 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
2020 GDB_MULTI_ACH_PARTIAL.
2022 2003-07-27 Andrew Cagney <cagney@redhat.com>
2024 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
2025 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
2026 operator at start and not end of line.
2027 (decode_prologue): Ditto.
2028 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
2029 frame_unwind_register_unsigned instead of
2030 frame_unwind_unsigned_register.
2031 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
2033 (m32r_push_dummy_call): Use register_size instead of
2035 (m32r_frame_sniffer): Replace m32r_frame_p.
2036 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
2037 * m32r-rom.c (report_transfer_performance): Delete extern
2039 (m32r_load, m32r_upload_command): Use print_transfer_performance
2040 instead of report_transfer_performance.
2041 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
2042 / add_show_from_set.
2044 2003-07-26 Andrew Cagney <cagney@redhat.com>
2046 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
2047 store_return_value and extract_struct_value_address.
2049 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
2052 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
2053 NULL, default to the section containing PC.
2055 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
2057 * NEWS: Mention "regs" deprecated for m68hc11 too.
2059 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
2060 (m68hc11_print_register): New function to print out one register.
2061 (m68hc11_print_registers_info): New function to print registers.
2062 (show_regs): Deprecate and use the above.
2063 (m68hc11_gdbarch_init): Install the print_registers_info.
2065 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
2067 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
2068 that we have a SIGTRAP before returning non-zero.
2070 2003-07-23 Michal Ludvig <mludvig@suse.cz>
2071 Elena Zannoni <ezannoni@redhat.com>
2073 * linespec.c (decode_line_2): Avoid crash if
2074 find_function_start_sal() returns empty record.
2076 2003-07-23 Andreas Schwab <schwab@suse.de>
2078 * ia64-tdep.c (ia64_print_insn): New function.
2079 (ia64_gdbarch_init): Set print_insn to it.
2080 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
2081 deprecated_tm_print_insn_info.
2083 2003-07-22 Michael Snyder <msnyder@redhat.com>
2085 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
2086 handle 8-bit returns (long long).
2087 (h8300h_extract_return_value): Ditto.
2088 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
2090 2003-07-22 Andrew Cagney <cagney@redhat.com>
2092 * gdbarch.c Include "gdb_obstack.h".
2093 (struct gdbarch): Add an "obstack".
2094 (alloc_gdbarch_data): Allocate the gdbarch data using
2095 GDBARCH_OBSTACK_CALLOC.
2096 (free_gdbarch_data): Delete function.
2097 (gdbarch_obstack_zalloc): New function.
2098 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
2099 Assert that the architecture is not initialized.
2100 (gdbarch_alloc): Allocate an obstack, allocate the architecture
2101 vector from the obstack.
2102 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
2103 architecture obstack.
2104 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
2105 (set_gdbarch_data): Assert that the data is not initialized.
2106 (struct gdbarch_data): Delete member "free".
2107 (register_gdbarch_data): Do not initialize "free".
2108 * gdbarch.h, gdbarch.c: Re-generate.
2110 2003-07-22 Andrew Cagney <cagney@redhat.com>
2112 * configure.in (build_warnings): Add -Wformat-nonliteral.
2113 * configure: Re-generate.
2115 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2117 * dwarf2loc.c (locexpr_describe_location): Fix typos.
2119 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
2121 * findvar.c (read_var_value): Remove case for thread local storage
2122 variables. It is now entirely handled by the dwarf2 location
2124 * printcmd.c (address_info): Ditto.
2125 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
2127 (struct symbol): Remove objfile field, which was used by
2128 LOC_THREAD_LOCAL_STATIC only.
2129 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
2130 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
2131 usage of objfile pointer.
2132 * dwarf2loc.c (locexpr_describe_location): Add case to handle
2133 thread local variables.
2134 Add include of objfiles.h.
2135 * dwarf2expr.c (execute_stack_op): Add comments about thread local
2137 * Makefile.in (dwarf2loc.o): Update dependencies.
2139 2003-07-22 Andrew Cagney <cagney@redhat.com>
2141 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
2143 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
2144 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
2145 (struct value): Add opaque declaration.
2146 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
2148 2003-07-21 Andrew Cagney <cagney@redhat.com>
2150 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2151 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
2153 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2155 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
2156 regcache_cooked_read_unsigned instead of read_register.
2157 (m68hc11_saved_pc_after_call): Likewise.
2158 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
2159 instead of write_register.
2160 (m68hc11_register_type): New function.
2161 (m68hc11_register_virtual_type): Remove.
2162 (m68hc11_store_return_value): Convert to use the regcache.
2163 (m68hc11_extract_struct_value_address): Likewise.
2164 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
2165 m68hc11_register_type; undeprecate store_return_value and
2166 extract_struct_value_address.
2168 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
2170 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
2171 and translate to use regcache.
2172 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
2174 2003-07-18 Andrew Cagney <cagney@redhat.com>
2176 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
2177 * gdbarch.h, gdbarch.c: Re-generate.
2178 * i386-tdep.c (i386_gdbarch_init): Do not set
2179 DWARF2_BUILD_FRAME_INFO.
2180 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
2182 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
2183 DWARF2_BUILD_FRAME_INFO.
2185 2003-07-18 Andrew Cagney <cagney@redhat.com>
2187 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
2188 * disasm.c (gdb_disassemble_info): Initilize di.arch.
2190 2003-07-18 Andrew Cagney <cagney@redhat.com>
2192 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
2193 frame_unwind_address_in_block, instead of frame_pc_unwind.
2194 (dwarf2_frame_cache): Ditto.
2196 2003-07-18 Andrew Cagney <cagney@redhat.com>
2198 * user-regs.h (struct gdbarch): Declare opaque.
2199 * ui-out.h (struct ui_file): Declare opaque.
2200 * dwarf2-frame.h (struct frame_info): Declare opaque.
2202 2003-07-18 Kris Warkentin <kewarken@qnx.com>
2204 * nto-procfs.c: Clean ARI hits. Change #include <..> to
2206 (procfs_meminfo): Change strerror to safe_strerror.
2207 (procfs_can_run): Remove K&R badness.
2209 2003-07-17 Michael Snyder <msnyder@redhat.com>
2211 * remote-sim.c: Comment typo fix.
2213 2003-07-17 Andrew Cagney <cagney@redhat.com>
2215 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
2217 * sparc-tdep.c (sparc_intreg_size): Make non-static.
2218 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
2219 GDB_MULTI_ARCH_PARTIAL.
2221 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
2223 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
2224 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
2225 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
2227 2003-07-16 Theodore A. Roth <troth@openavr.org>
2229 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
2231 (avr_frame_unwind_cache): Don't unwind FP for main.
2233 Save the computed prev_sp.
2234 (avr_saved_regs_unwinder): Remove function.
2235 (avr_frame_prev_register): Use PC unwind logic from
2236 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
2238 2003-07-16 Andrew Cagney <cagney@redhat.com>
2240 * frame-base.h (frame_base_p_ftype): Delete definition.
2241 (frame_base_append_predicate): Delete declaration.
2242 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
2243 (frame_unwind_append_predicate): Delete declaration.
2244 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
2245 (append_predicate): Delete parameter "p".
2246 (frame_unwind_append_predicate): Delete function.
2247 (frame_unwind_append_sniffer): Update call to append_predicate.
2248 (frame_unwind_free): Delete function.
2249 (_initialize_frame_unwind): Pass NULL as "free" to
2250 register_gdbarch_data.
2251 (frame_unwind_init): Append the dummy_frame_sniffer.
2252 (frame_unwind_find_by_frame): Simplify.
2253 * frame-base.c (struct frame_base_table): Delete field "p".
2254 (append_predicate): Delete parameter "p".
2255 (frame_base_append_predicate): Delete function.
2256 (frame_base_append_sniffer): Update call to append_predicate.
2257 (frame_base_free): Delete function.
2258 (frame_base_find_by_frame): Simplify.
2259 (_initialize_frame_base): Pass NULL as "free" to
2260 register_gdbarch_data.
2261 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
2262 (x86_64_sigtramp_frame_sniffer): Replace
2263 "x86_64_sigtramp_frame_p".
2264 (x86_64_init_abi): Set the frame unwind sniffers.
2265 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
2266 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
2267 (m68k_gdbarch_init): Set the frame unwind sniffers.
2268 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
2269 "i386_sigtramp_frame_p".
2270 (i386_frame_sniffer): Replace "i386_frame_p".
2271 (i386_gdbarch_init): Set the frame unwind sniffers.
2272 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
2273 (avr_gdbarch_init): Set the frame unwind sniffers.
2274 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
2275 "alpha_sigtramp_frame_p"
2276 (alpha_heuristic_frame_sniffer): Replace
2277 "alpha_heuristic_frame_p".
2278 (alpha_gdbarch_init): Set the frame unwind sniffers.
2279 (alpha_dwarf2_init_abi): Ditto.
2280 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
2281 "alpha_debug_frame_p".
2282 (alpha_mdebug_frame_base_sniffer): Replace
2283 "alpha_mdebug_frame_base_p".
2284 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
2285 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
2286 (d10v_gdbarch_init): Set the frame unwind sniffer.
2287 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2288 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2289 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
2290 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
2291 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
2292 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
2294 2003-07-16 Michael Snyder <msnyder@redhat.com>
2296 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
2297 should go thru sh_dsp_register_sim_regno, else the dsp regs
2298 will not get the right values.
2300 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2302 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
2303 deprecated_store_floating by call to store_typed_floating.
2304 (sh_sh4_register_convert_to_raw): Substitute call to
2305 deprecated_extract_floating by call to extract_typed_floating.
2307 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2309 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
2311 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
2313 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
2314 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
2315 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
2317 (do_pseudo_register): Remove.
2318 (sh_push_dummy_code): New function.
2319 (sh64_store_struct_return): Rename from sh_store_struct_return.
2320 Only called for sh64 now.
2321 (sh_extract_struct_value_address): Regcache'ify.
2322 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
2323 and accomodate new tasks.
2324 (sh64_push_return_address): Rename from sh_push_return_address.
2325 Only called for sh64 now.
2326 (sh_default_extract_return_value): Rename from sh_extract_return_value.
2328 (sh3e_sh4_extract_return_value): Regcache'ify.
2329 (sh_default_store_return_value): Ditto.
2330 (sh3e_sh4_store_return_value): Ditto.
2331 (sh_default_register_byte): Remove.
2332 (sh_sh4_register_byte): Remove.
2333 (sh_default_register_raw_size): Remove.
2334 (sh_sh4_register_raw_size): Remove.
2335 (sh_register_virtual_size): Remove.
2336 (sh_sh3e_register_virtual_type): Remove.
2337 (sh_sh3e_register_type): New function.
2338 (sh_sh4_register_virtual_type): Remove.
2339 (sh_sh4_register_type): New function.
2340 (sh_default_register_virtual_type): Remove.
2341 (sh_default_register_type): New function.
2342 (do_fv_register_info): Add parameters to accomodate call from
2343 sh_print_registers_info.
2344 (do_dr_register_info): Ditto.
2345 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
2346 Add parameters to accomodate call from sh_print_registers_info.
2347 (sh_do_fp_register): Ditto.
2348 (sh64_do_pseudo_register): Call do_dr_register_info,
2349 do_fv_register_info and sh_do_fp_register with default parameters.
2350 (sh_do_register): Add parameters to accomodate call from
2351 sh_print_registers_info.
2352 (sh_print_register): Ditto.
2353 (sh_print_registers_info): Rename from sh_do_registers_info.
2354 Add parameters to be used as gdbarch_print_registers_info
2355 implementation. Accomodate removed do_pseudo_register function
2357 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
2358 function pointer. Call sh_print_register with default parameters.
2359 (sh64_do_registers_info): Call sh_print_registers_info instead of
2360 sh_do_registers_info.
2361 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
2362 detection of deprecated vs. non-deprecated functionality.
2363 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
2364 function pointer assignments by direct function calls.
2366 2003-07-15 Andrew Cagney <cagney@redhat.com>
2368 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
2369 (frame_register_unwind, create_new_frame): Ditto.
2370 (legacy_get_prev_frame, get_frame_type): Ditto.
2371 (get_frame_base_address): Use frame_base_find_by_frame.
2372 (get_frame_locals_address): Use frame_base_find_by_frame.
2373 (get_frame_args_address): Use frame_base_find_by_frame.
2374 * frame-base.h (frame_base_sniffer_ftype): Declare.
2375 (frame_base_append_sniffer): Declare.
2376 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
2377 * frame-base.c (append_predicate): Add a "sniffer" parameter.
2378 (frame_base_append_sniffer): New function.
2379 (frame_base_append_predicate): Add a NULL sniffer.
2380 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
2381 (struct frame_base_table): Add "sniffer".
2382 (frame_base_free): Free the "sniffer" table.
2383 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
2384 (frame_unwind_append_sniffer): Declare.
2385 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2386 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
2387 (struct frame_unwind_table): Add "sniffer", delete "middle".
2388 (append_predicate): Add "sniffer" parameter, append the sniffer.
2389 (frame_unwind_init): Update append_predicate call.
2390 (frame_unwind_append_sniffer): New function.
2391 (frame_unwind_append_predicate): Update append_predicate call.
2392 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
2394 2003-07-15 Andrew Cagney <cagney@redhat.com>
2396 * frame.c (get_prev_frame): Move disabled inside_entry_func to
2397 before code inhibiting repeated unwind attempts. Add to
2398 commentary on that test's problems.
2399 * blockframe.c (inside_main_func): Look for "main" in the minimal
2401 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
2404 2003-07-15 Andrew Cagney <cagney@redhat.com>
2406 * complaints.c (struct explanation): Define.
2407 (struct complaints): Change type of "explanation" to "struct
2409 (symfile_explanations): Convert to a "struct explanation" table.
2410 (vcomplaint): Update.
2412 2003-07-15 Michal Ludvig <mludvig@suse.cz>
2414 * x86-64-linux-nat.c (regmap): Removed.
2415 (supply_gregset, fill_gregset): Call
2416 x86_64_linux_(fill,supply)_gregset functions.
2417 * x86-64-linux-tdep.c (USER_*): New defines.
2418 (user_to_gdb_regmap, x86_64_core_fns): New structure.
2419 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
2421 (fetch_core_registers): Ditto.
2422 (_initialize_x86_64_linux_tdep): Call add_core_fns().
2423 * x86-64-linux-tdep.h: New file.
2424 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
2426 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
2428 2003-07-13 Mark Kettenis <kettenis@gnu.org>
2430 * x86-64-tdep.c (x86_64_store_return_value): Use
2431 regcache_cooked_write_part instead of regcache_cooked_write.
2433 * configure.host: Add x86_64-*-freebsd*.
2434 * configure.tgt: Add x86_64-*-freebsd*.
2435 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
2436 * amd64fbsd-nat.c: New file.
2437 * amd64fbsd-tdep.c: New file.
2438 * config/i386/nm-fbsd64.h: New file.
2439 * config/i386/fbsd64.mh: New file.
2440 * config/i386/fbsd64.mt: New file.
2442 2003-07-11 Mark Kettenis <kettenis@gnu.org>
2444 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
2445 `sc_regs_offset' and `sc_fpregs_offset'.
2446 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
2447 SIGFRAME_FPREGSAVE_OFF): Remove defines.
2448 (alpha_sigtramp_register_address): Rewrite to use new members of
2449 `struct gdbarch_tdep'.
2450 (alpha_gdbarch_init): Initialize new members of struct
2452 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
2453 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
2454 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
2455 (alphafbsd_pc_in_sigtramp): Implement.
2456 (alphafbsd_sigtramp_offset): New function.
2457 (alphafbsd_sigcontext_addr): New function.
2458 (alphafbsd_init_abi): Initialize signal trampoline related members
2459 of `struct gdbarch_tdep'.
2460 (_initialize_alphafbsd_tdep): Add prototype.
2462 2003-07-11 Theodore A. Roth <troth@openavr.org>
2464 * Makefile.in (install-only): Quote sed expression when generating
2467 2003-07-11 Richard Henderson <rth@redhat.com>
2469 * Makefile.in (dwarf2-frame.o): Add complaints_h.
2470 * dwarf2-frame.c: Include complaints.h.
2471 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
2472 variable initialization; return NULL on error.
2473 (decode_frame_entry): New.
2475 2003-07-11 Andrew Cagney <cagney@redhat.com>
2477 * frame.h (frame_address_in_block): Delete declaration.
2478 * blockframe.c (frame_address_in_block): Delete function.
2479 (get_frame_block): Use get_frame_address_in_block.
2480 (block_innermost_frame): Ditto.
2481 * stack.c (print_frame, backtrace_command_1): Ditto.
2483 * frame.h (get_frame_address_in_block): Declare.
2484 (frame_unwind_address_in_block): Declare.
2485 * frame.c (frame_unwind_address_in_block): New function.
2486 (get_frame_address_in_block): New function.
2488 2003-07-10 Andrew Cagney <cagney@redhat.com>
2490 * gdbarch.sh: Simplify predicate methods. Remove need to provide
2491 pre-default. Note: re-generate has no effect.
2493 2003-07-10 Andrew Cagney <cagney@redhat.com>
2495 * gdbarch.sh: When a variable, but not a function, compare against
2496 0. Fix problem in previous patch.
2497 * gdbarch.c: Re-generate.
2499 2003-07-10 Andrew Cagney <cagney@redhat.com>
2501 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
2502 functions against NULL, not 0.
2503 * gdbarch.c: Re-generate.
2505 2003-07-10 Fred Fish <fnf@ninemoons.com>
2507 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
2508 null string instead of a null pointer.
2509 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
2511 2003-07-09 Michael Snyder <msnyder@redhat.com>
2513 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
2515 2003-07-09 Mark Kettenis <kettenis@gnu.org>
2517 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
2518 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
2519 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
2520 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
2521 * x86-64-tdep.c: ... from here.
2523 2003-07-09 Andreas Schwab <schwab@suse.de>
2525 * m68k-tdep.h (enum struct_return): Define.
2526 (struct gdbarch_tdep): Add struct_return.
2527 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
2528 bytes are padded to the right, not to the left. Pass struct value
2529 address in register %a1, not on stack.
2530 (m68k_use_struct_convention): New function.
2531 (m68k_gdbarch_init): Set use_struct_convention. Initialize
2532 struct_return in tdep to pcc_struct_return.
2533 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
2536 2003-07-09 Joel Brobecker <brobecker@gnat.com>
2538 * somread.c (som_symfile_offsets): Fix compilation error.
2540 2003-07-09 Andrew Cagney <cagney@redhat.com>
2542 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
2543 Add comments about the checks.
2545 2003-07-08 Andrew Cagney <cagney@redhat.com>
2547 * Makefile.in: Make dependency section headers consistent.
2548 (config_h): Move to $BUILD headers section.
2549 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
2550 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
2551 (ada-exp.tab.c): Move to YACC/LEX section.
2552 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
2553 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
2555 2003-07-08 Kris Warkentin <kewarken@qnx.com>
2557 * nto-procfs.c: Cleaned up a bunch of ARI hits.
2558 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
2559 of strerror with safe_strerror, use ISO C function definitions,
2560 and replace instances of sprintf with snprintf.
2562 2003-07-07 Andrew Cagney <cagney@redhat.com>
2564 * frame.c (get_prev_frame): Enable check for identical frames.
2565 Update comments. Update error messages.
2567 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2569 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
2571 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2573 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
2574 sort_symtab_syms, no longer necessary.
2576 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2578 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
2580 2003-07-07 Joel Brobecker <brobecker@gnat.com>
2582 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
2583 (mips_register_byte): Likewise.
2585 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2587 * Makefile.in (sparc_tdep_h): New.
2588 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
2589 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
2590 * sparc-linux-nat.c: Include "sparc-tdep.h".
2591 * sparc-nat.c: Likewise.
2592 * sparc-tdep.c: Likewise.
2593 * sparc64nbsd-nat.c: Likewise.
2594 * sparcnbsd-nat.c: Likewise.
2595 * sparcnbsd-tdep.c: Likewise.
2596 * sparc-tdep.h: New file.
2597 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
2598 and sparc_npc_regnum.
2600 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2602 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
2603 (mips_linux_cannot_store_register): List supported instead of
2604 unsupported registers.
2606 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
2608 * disasm.c (dump_insns): Separate instructions from addresses.
2610 2003-07-07 Andreas Schwab <schwab@suse.de>
2612 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
2614 * m68k-tdep.c (NUM_FREGS): Delete.
2615 (SIG_PC_FP_OFFSET): Delete.
2616 (TARGET_M68K): Delete.
2617 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
2618 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
2619 P_MOVEL_SP, P_MOVEML_SP): Define.
2620 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
2622 (m68k_register_raw_size): Delete.
2623 (m68k_register_virtual_size): Delete.
2624 (m68k_register_type): Renamed from m68k_register_virtual_type and
2625 add gdbarch argument.
2626 (m68k_store_struct_return): Delete.
2627 (m68k_deprecated_extract_return_value): Delete.
2628 (m68k_deprecated_extract_struct_value_address): Delete.
2629 (m68k_frame_chain): Delete.
2630 (m68k_frame_saved_pc): Delete.
2631 (m68k_fix_call_dummy): Delete.
2632 (m68k_push_dummy_frame): Delete.
2633 (m68k_pop_frame): Delete.
2634 (m68k_extract_return_value): New function.
2635 (m68k_store_return_value): Rewrite using regcache.
2636 (m68k_extract_struct_value_address): Rewrite using regcache.
2637 (m68k_push_dummy_call): New function.
2638 (struct m68k_frame_cache): Define.
2639 (m68k_alloc_frame_cache): New function.
2640 (m68k_analyze_frame_setup): New function.
2641 (m68k_analyze_register_saves): New function.
2642 (m68k_analyze_prologue): New function.
2643 (m68k_skip_prologue): Rewrite using above functions.
2644 (m68k_unwind_pc): New function.
2645 (m68k_frame_cache): New function.
2646 (m68k_frame_this_id): New function.
2647 (m68k_frame_prev_register): New function.
2648 (m68k_frame_unwind): New variable.
2649 (m68k_frame_p): New function.
2650 (m68k_sigtramp_frame_cache): New function.
2651 (m68k_sigtramp_frame_this_id): New function.
2652 (m68k_sigtramp_frame_prev_register): New function.
2653 (m68k_sigtramp_frame_unwind): New variable.
2654 (m68k_sigtramp_frame_p): New function.
2655 (m68k_frame_base_address): New function.
2656 (m68k_frame_base): New function.
2657 (m68k_unwind_dummy_id): New function.
2658 (fill_gregset): Use regcache_collect.
2659 (fill_fpregset): Likewise.
2660 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
2662 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
2663 deprecated_init_frame_pc, deprecated_store_struct_return,
2664 deprecated_extract_return_value, deprecated_store_return_value,
2665 deprecated_frame_chain, deprecated_frame_saved_pc,
2666 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
2667 deprecated_register_virtual_size,
2668 deprecated_max_register_raw_size,
2669 deprecated_max_register_virtual_size,
2670 deprecated_register_virtual_type, deprecated_register_size,
2671 deprecated_register_byte, deprecated_register_bytes,
2672 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
2673 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
2674 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
2675 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
2676 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
2677 deprecated_push_dummy_frame, deprecated_pop_frame,
2678 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
2679 only if SYSCALL_TRAP is defined. Set extract_return_value,
2680 store_return_value, extract_struct_value_address, register_type,
2681 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
2683 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
2684 M68K_MAX_REGISTER_SIZE): Define.
2685 (struct m68k_sigtramp_info): Define.
2686 (struct gdbarch_tdep): Add get_sigtramp_info.
2687 * m68klinux-nat.c (fetch_register): Use register_size instead of
2688 REGISTER_RAW_SIZE. Don't put assignment in if.
2689 (store_register): Likewise.
2690 (fetch_inferior_registers): Likewise.
2691 (store_inferior_registers): Likewise.
2692 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
2693 (m68k_linux_frame_saved_pc): Delete.
2694 (m68k_linux_sigcontext_reg_offset,
2695 m68k_linux_ucontext_reg_offset): Define.
2696 (m68k_linux_get_sigtramp_info): New function.
2697 (m68k_linux_extract_return_value): Rewrite using regcache.
2698 (m68k_linux_store_return_value): Likewise.
2699 (m68k_linux_extract_struct_value_address): Likewise.
2700 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
2701 Don't set deprecated_frame_saved_pc,
2702 deprecated_extract_return_value, deprecated_store_return_value,
2703 deprecated_extract_struct_value_address. Set
2704 extract_return_value, store_return_value,
2705 extract_struct_value_address.
2707 2003-07-07 Andrew Cagney <cagney@redhat.com>
2709 * expprint.c: Include "user-regs.h" instead of "frame.h".
2710 (print_subexp): Use user_reg_map_regnum_to_name, instead of
2711 frame_map_regnum_to_name.
2712 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
2713 (frame_map_name_to_regnum): Simplify, call
2714 user_reg_map_name_to_regnum.
2715 (frame_map_regnum_to_name): Simplify, call
2716 user_reg_map_regnum_to_name.
2717 (frame_register_unwind): Update.
2718 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
2719 (_initialize_frame_reg): Call user_reg_add_builtin.
2720 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
2721 (value_of_register): Use value_of_user_reg.
2722 * eval.c (evaluate_subexp_standard): Update.
2723 * parse.c (write_dollar_variable): Update.
2724 * d10v-tdep.c (d10v_print_registers_info): Update.
2725 * infcmd.c (registers_info): Update.
2726 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
2727 (builtin_regs_h): Delete macro.
2728 (user_regs_h): Define.
2729 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
2730 (builtin-regs.o): Delete target.
2731 (user-regs.o): Specify dependencies.
2732 (expprint.o): Update dependencies.
2733 (findvar.o): Update dependencies.
2734 (frame.o): Update dependencies.
2735 (std-regs.o): Update dependencies.
2737 2003-07-06 Christopher Faylor <cgf@redhat.com>
2739 * win32-nat.c (solib_symbols_add): Use one variable for all section
2740 address stuff. Pass variable rather than address of variable to
2741 safe_symbol_file_add.
2743 2003-07-06 Andreas Schwab <schwab@suse.de>
2745 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
2747 2003-07-04 Joel Brobecker <brobecker@gnat.com>
2749 * rs6000-nat.c (vmap_symtab): Fix compilation error.
2751 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2753 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
2755 2003-07-04 Kris Warkentin <kewarken@qnx.com>
2757 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
2758 * config/i386/nto.mh: New file.
2759 * config/i386/nm-nto.h: New file.
2760 * configure.host: Add i[3456]86-*-nto*.
2762 2003-07-03 Joel Brobecker <brobecker@gnat.com>
2764 * remote-vx.c (vx_add_symbols): Fix compilation error.
2766 2003-07-03 Andrew Cagney <cagney@redhat.com>
2768 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
2769 * gdbarch.h, gdbarch.c: Re-generate.
2770 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
2771 (legacy_register_name): Declare.
2772 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
2773 (REGISTER_NAME): Define.
2774 * sparc-tdep.c (legacy_register_name): New function.
2775 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
2776 (REGISTER_NAME): Define.
2777 (hppa64_register_name): Declare.
2778 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
2779 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
2780 (hppa64_register_name): New function.
2781 (hppa_register_name): New function.
2782 * arch-utils.c (legacy_register_name): Delete.
2783 * arch-utils.h (legacy_register_name): Delete.
2785 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
2787 * cli/cli-interp.c (cli_interpreter_resume): Update the
2788 cli_uiout's stream to gdb_stdout.
2790 2003-07-03 Andrew Cagney <cagney@redhat.com>
2792 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
2794 * gdbarch.h, gdbarch.c: Re-generate.
2795 * regcache.c (init_regcache_descr): Use legacy code when either
2796 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
2798 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2800 * NEWS: Move "set logging" entry into GDB 6.0 section.
2802 2003-07-02 Jim Blandy <jimb@redhat.com>
2804 * s390-tdep.c (struct frame_extra_info): new member:
2805 'stack_bought_valid'.
2806 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
2807 initialize fextra_info->stack_bought.
2808 (s390_frameless_function_invocation): Don't trust the value of
2809 fextra_info_ptr->stack_bought unless
2810 fextra_info->stack_bought_valid is set.
2812 New S390 prologue analyzer.
2813 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
2814 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
2815 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
2816 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
2817 compute_x_addr, s390_on_stack, s390_store,
2818 s390_get_signal_frame_info): New functions.
2819 (S390_NUM_SPILL_SLOTS): New macro.
2820 (s390_get_frame_info): Rewritten.
2821 (is_arg_reg): Deleted.
2823 Break out the decoding of S/390 instructions into separate
2824 functions, to make it more legible, and easier to check
2826 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
2827 is_rx, is_rxe): New functions.
2828 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
2829 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
2830 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
2831 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
2832 enums for opcode values. (Is this an improvement?)
2834 2003-07-02 Andrew Cagney <cagney@redhat.com>
2836 * i386-tdep.c: Revert change committed as part of trad-frame code
2839 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
2841 * breakpoint.c (insert_catchpoint): Make static.
2843 2003-07-02 Andreas Schwab <schwab@suse.de>
2845 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
2846 former ia64_push_arguments and ia64_push_return_address, and use
2847 regcache functions instead of read/write_register.
2848 (ia64_gdbarch_init): Set push_dummy_call instead of
2849 deprecated_push_arguments and deprecated_push_return_address.
2851 2003-07-01 Andreas Jaeger <aj@suse.de>
2853 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
2855 Set %rax only to number of SSE registers used.
2857 2003-07-01 Andrew Cagney <cagney@redhat.com>
2859 * trad-frame.h: Update comments, a -1 .addr is reserved.
2860 (trad_frame_value_p, trad_frame_addr_p): Declare.
2861 (trad_frame_reg_p): Declare.
2862 (trad_frame_set_value): Rename trad_frame_register_value.
2863 (trad_frame_set_unknown): Declare.
2864 * trad-frame.c (trad_frame_realreg_p): New function.
2865 (trad_frame_addr_p, trad_frame_value_p): New function.
2866 (trad_frame_set_unknown): New function.
2867 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
2868 (trad_frame_prev_register): Use trad_frame_realreg_p,
2869 trad_frame_addr_p and trad_frame_value_p.
2870 (trad_frame_set_value): Rename trad_frame_register_value.
2871 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
2872 and trad_frame_set_value.
2874 2003-06-30 Jim Blandy <jimb@redhat.com>
2876 Patch from IBM (authors unspecified, probably Ulrich Weigand and
2877 Gerhard Tonn) for argument passing on the S/390 and S/390x:
2878 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
2879 for 16 registers, and then 32 more bytes.
2880 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
2882 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
2883 Move up in the file, since it's now used by is_simple_arg.
2884 (is_simple_arg): Don't assume registers are four bytes long.
2885 Exclude all double arguments. Extended floats are not simple
2887 (is_power_of_two): New function.
2888 (pass_by_copy_ref): Call is_power_of_two, and check that the
2889 length fits in a register, rather than listing all the acceptable
2890 sizes. Extended floats are not passed by reference.
2891 (s390_push_arguments): Don't assume registers are four bytes long.
2892 Reserve an argument register to point to the buffer for structures
2893 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
2894 S390_STACK_FRAME_OVERHEAD.
2896 2003-06-30 Andreas Schwab <schwab@suse.de>
2898 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
2899 format error message.
2901 2003-06-30 Joel Brobecker <brobecker@gnat.com>
2903 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
2905 2003-06-30 David Carlton <carlton@kealia.com>
2907 Band-aid for PR c++/1245.
2908 * Makefile.in (cp-support.o): Depend on complaints_h.
2909 * cp-support.c: Include complaints.h. Add declaration for
2910 find_last_component.
2911 (cp_find_first_component): Separate code into
2912 cp_find_first_component_aux.
2913 (cp_find_first_component_aux): Call demangled_name_complaint.
2914 (demangled_name_complaint): New.
2916 2003-06-30 Andrew Cagney <cagney@redhat.com>
2918 * remote.c (remote_write_bytes): Explicitly compute and then use
2919 the payload size. Update comments to reflect. Fixes problem of
2920 GDB not sending small packets as found by Fred Fish.
2922 2003-06-30 Andrew Cagney <cagney@redhat.com>
2924 * remote.c (remote_async_wait): Fix -Wformat problem.
2926 2003-06-29 Andrew Cagney <cagney@redhat.com>
2928 * remote.c (remote_wait): Call error, and not warning, when the
2930 (remote_async_wait): Ditto.
2932 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2934 * sparc-tdep.c (sparc_y_regnum): Make external again.
2936 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
2938 * cli/cli-logging.c (pop_output_files): Add void to function
2941 2003-06-29 Andrew Cagney <cagney@redhat.com>
2943 * frame.c (frame_register_unwind): Use unsigned char when dumping
2944 the buffer contents.
2946 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
2948 * cli/cli-logging.c: New file.
2949 * cli-out.c (struct ui_out_data): Add original_stream.
2950 (cli_redirect): New function.
2951 (cli_ui_out_impl): Add cli_redirect.
2952 (cli_out_new): Initialize original_stream.
2953 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
2954 (uo_redirect, ui_out_redirect): New.
2955 * ui-out.h (struct ui_out_impl): Add redirect member.
2956 (redirect_ftype): New.
2957 (ui_out_redirect): Add prototype.
2958 * Makefile.in: Add rules for cli-logging.c.
2959 * NEWS: Mention "set logging".
2961 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2963 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
2965 2003-06-27 Andrew Cagney <cagney@redhat.com>
2967 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
2968 (m68hc11_gdbarch_init): Do not set call_dummy_address.
2969 * avr-tdep.c (avr_call_dummy_address): Delete function.
2970 (avr_gdbarch_init): Do not set call_dummy_address.
2972 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2974 * symfile.c (syms_from_objfile): Move variables to inner block.
2975 Move the checks for the non-mainline case a bit earlier to avoid
2976 doing some useless computations.
2978 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
2980 * dwarfread.c (decode_modified_type): Gag new compiler warning.
2982 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
2984 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
2987 2003-06-26 Michael Chastain <mec@shout.net>
2989 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
2990 gdb/testsuite/gdb.c++/pr-1210.exp.
2992 2003-06-26 Andrew Cagney <cagney@redhat.com>
2994 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
2995 altivec_expression.h and altivec_registers.h.
2997 2003-06-26 Andrew Cagney <cagney@redhat.com>
2999 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
3000 info->mach when MIPS16. Patch suggested by Fred Fish.
3002 2003-06-26 Andrew Cagney <cagney@redhat.com>
3004 * utils.c (internal_vproblem): Print the problem to a reason
3005 buffer and then pass to query. Make the msg variable more local.
3007 2003-06-26 Andrew Cagney <cagney@redhat.com>
3009 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
3010 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
3011 * gdbarch.h, gdbarch.c: Re-generate.
3012 * frame-base.c (default_frame_args_address): Update. Use
3013 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
3015 (default_frame_locals_address): Ditto for
3016 DEPRECATED_FRAME_LOCALS_ADDRESS.
3017 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
3018 (vax_frame_num_args): Update.
3019 (vax_gdbarch_init): Update.
3020 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3021 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3022 * mcore-tdep.c (mcore_gdbarch_init): Update.
3023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3024 * ia64-tdep.c (ia64_gdbarch_init): Update.
3025 * symtab.h (address_class): Update comments.
3026 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
3027 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3028 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3029 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3030 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3031 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
3032 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
3033 * alpha-mdebug-tdep.c: Update.
3034 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
3036 2003-06-26 Andreas Jaeger <aj@suse.de>
3038 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
3039 of SSE registers so that varargs functions work. Rework handling
3040 of passing arguments on the stack.
3041 (x86_64_store_return_value): Return double and float values in SSE
3044 2003-06-24 Michael Chastain <mec@shout.net>
3046 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
3047 the "constructor breakpoints ignored" bug.
3049 2003-06-25 David Carlton <carlton@kealia.com>
3051 * MAINTAINERS: Update e-mail address.
3053 2003-06-24 Jim Blandy <jimb@redhat.com>
3055 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
3057 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
3059 (ppc_linux_init_abi): Register it as the
3060 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
3062 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
3063 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
3066 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
3067 (ppc64_standard_linkage_target): Use it.
3069 2003-06-23 Andrew Cagney <cagney@redhat.com>
3071 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
3072 for 0 "int0" and 4 "int32" sized registers.
3073 * gdbtypes.c (builtin_type_int0): Define.
3074 (build_gdbtypes): Initialize builtin_type_int0.
3075 * gdbtypes.h (builtin_type_int0): Declare.
3077 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
3079 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
3080 as characters are unsigned.
3082 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3085 * dwarfread.c (struct_type): Skip static fields without crashing.
3087 2003-06-22 Andrew Cagney <cagney@redhat.com>
3089 GDB 6.0 branch created.
3091 * PROBLEMS: Update. Empty.
3094 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3096 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
3097 Suggested by Nick Hibma <n_hibma@webweaving.org>.
3099 2003-06-22 Andrew Cagney <cagney@redhat.com>
3101 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
3102 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
3105 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
3107 * cli/cli-cmds.c (shell_escape): Silence warnings from old
3110 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3112 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
3113 argument of val_print.
3114 * cp-valprint.c (cp_print_value): Don't add the offset parameter
3115 to the address argument of baseclass_offset or target_read_memory.
3116 Do add it to the argument of cp_print_value_fields.
3118 2003-06-21 Andrew Cagney <cagney@redhat.com>
3120 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
3121 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
3122 instead of 0..NUM_REGS.
3123 (mips_register_reggroup_p): New function.
3124 (mips_pseudo_register_write): New function.
3125 (mips_pseudo_register_read): New function.
3126 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
3127 based on the register's type.
3128 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
3130 (mips_get_saved_register): Simplify. Assert that REGNO is a
3132 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
3133 (mips_register_type): Replace mips_register_virtual_type. Map
3134 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
3136 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
3137 that the register is cooked / virtual.
3138 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
3139 Only get the extra info when needed.
3140 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
3141 (mips32_heuristic_proc_desc): Fetch the cooked register.
3142 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
3143 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
3144 (mips_print_register): Use gdbarch_register_type, instead of
3145 REGISTER_VIRTUAL_TYPE.
3146 (print_gp_register_row): Use gdbarch_register_type, instead of
3147 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
3148 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3149 Print the pseudo / cooked registers.
3150 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
3151 Print the pseudo / cooked registers.
3152 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
3153 REG_NUM is pseudo / cooked.
3154 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
3155 (mips_n32n64_xfer_return_value): Ditto.
3156 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
3157 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
3158 (mips_register_sim_regno): New function.
3159 (mips_gdbarch_init): Set deprecated_register_byte,
3160 register_group_p, pseudo_register_write, pseudo_register_read,
3161 register_sim_regno, and num_pseudo_regs. Set register_type,
3162 instead of register_virtual_type.
3163 * Makefile.in (mips-tdep.o): Update dependencies.
3164 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
3165 REGISTER_VIRTUAL_TYPE.
3166 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
3167 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
3168 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
3169 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
3170 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
3172 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
3174 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
3175 * cli/cli-cmds.c: Include "gdb_vfork.h".
3176 (shell_escape): Use vfork.
3178 2003-06-21 Andrew Cagney <cagney@redhat.com>
3180 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
3181 32 bit floating-point register saves.
3183 * frame.h (deprecated_unwind_get_saved_register): Delete.
3184 * frame.c (deprecated_unwind_get_saved_register): Delete function.
3185 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
3186 and deprecated_get_next_frame_hack instead of
3187 deprecated_unwind_get_saved_register.
3189 * mips-tdep.c (mips_dump_tdep): Do not print
3190 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
3192 * frame.c (get_frame_register): New function.
3193 (frame_unwind_register_signed): New function.
3194 (get_frame_register_signed): New function.
3195 (frame_unwind_register_unsigned): New function.
3196 (get_frame_register_unsigned): New function.
3197 * frame.h: Add comments on naming schema.
3198 (get_frame_register, frame_unwind_register_signed): Declare.
3199 (get_frame_register_signed, get_frame_register_signed): Declare.
3200 (frame_unwind_register_unsigned): Declare.
3201 (get_frame_register_unsigned): Declare.
3203 2003-06-20 Theodore A. Roth <troth@openavr.org>
3205 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
3207 2003-06-20 Theodore A. Roth <troth@openavr.org>
3209 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
3210 (avr_read_sp): Ditto.
3212 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
3214 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
3215 * config/arm/nm-linux.h: Likewise.
3216 * config/arm/tm-linux.h: Likewise.
3217 * config/ia64/nm-linux.h: Likewise.
3218 * config/ia64/tm-ia64.h: Likewise.
3219 * config/s390/tm-linux.h: Likewise.
3220 * config/s390/tm-s390.h: Likewise.
3221 * s390-nat.c: Likewise.
3222 * s390-tdep.c: Likewise.
3224 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
3225 * config/ia64/linux.mt: Likewise.
3226 * config/m68k/linux.mh: Likewise.
3227 * config/mips/linux.mt: Likewise.
3228 * config/powerpc/linux.mh: Likewise.
3229 * config/sh/linux.mt: Likewise.
3231 2003-06-19 Kris Warkentin <kewarken@qnx.com>
3233 * solib.c (solib_open): Change tests for whether to search
3234 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
3237 2003-06-19 Theodore A. Roth <troth@openavr.org>
3239 * avr-tdep.c (avr_frame_address): Delete function.
3240 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
3241 set_gdbarch_frame_args_address.
3243 2003-06-19 Andrew Cagney <cagney@redhat.com>
3245 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
3246 (REGISTER_CONVERT_FROM_TYPE): Delete.
3247 (mips_register_convert_to_type): Delete declaration.
3248 (mips_register_convert_from_type): Delete declaration.
3249 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
3252 2003-06-19 Michael Snyder <msnyder@redhat.com>
3254 * linux-nat.h: New file.
3255 * linux-nat.c: Include linux-nat.h.
3256 * lin-lwp.c: Include linux-nat.h.
3257 Move struct lwp_info def to linux-nat.h.
3258 * linux-proc.c: Include linux-nat.h.
3259 (linux_make_note_section): Iterate over lwps instead of threads.
3260 (linux_do_thread_registers): Use lwp instead of merged pid.
3261 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
3262 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
3263 Add dependency on linux_nat_h.
3265 2003-06-19 Theodore A. Roth <troth@openavr.org>
3267 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
3269 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3271 * varobj.c (get_type, get_target_type): Use check_typedef.
3273 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3275 * breakpoint.c (insert_catchpoint): Call internal_error.
3277 2003-06-19 Theodore A. Roth <troth@openavr.org>
3279 * avr-tdep.c (avr_push_dummy_code): Delete function.
3280 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
3282 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
3284 * arch-utils.c (default_prepare_to_proceed): Remove.
3285 (generic_prepare_to_proceed): Remove.
3286 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
3287 (generic_prepare_to_proceed): Remove prototype.
3288 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
3289 * gdbarch.c: Regenerate.
3290 * gdbarch.h: Regenerate.
3291 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
3292 * hppah-nat.c (hppa_switched_threads): Remove.
3293 * infrun.c (prepare_to_proceed): New static function, copied from
3294 generic_prepare_to_proceed. Remove select_it argument.
3295 (proceed): Call prepare_to_proceed.
3296 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
3298 (ptrace_wait): Don't set the removed variables.
3299 (hppa_switched_threads): Remove.
3300 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
3301 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
3302 (lin_lwp_prepare_to_proceed): Remove prototype.
3303 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
3304 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
3306 2003-06-18 Theodore A. Roth <troth@openavr.org>
3308 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
3310 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
3311 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
3312 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
3313 (AVR_PROLOGUE_*): Enumerate prologue types.
3314 (struct frame_extra_info): Remove.
3315 (struct avr_unwind_cache): Define.
3316 (avr_write_sp): Delete function.
3317 (avr_read_fp): Ditto.
3318 (avr_init_extra_frame_info): Ditto.
3319 (avr_pop_frame): Ditto.
3320 (avr_frame_saved_pc): Ditto.
3321 (avr_saved_pc_after_call): Ditto.
3322 (avr_push_return_address): Ditto.
3323 (avr_frame_chain): Ditto.
3324 (avr_store_struct_return): Ditto.
3325 (avr_push_arguments): Ditto.
3326 (avr_scan_prologue): Update comments. Changed to set up the info for
3327 cache unwinding. Now returns end of prologue PC.
3328 (avr_skip_prologue): Better handling of functions lacking a prologue
3329 by using avr_scan_prologue.
3330 (avr_scan_arg_moves): New function.
3331 (avr_saved_regs_unwinder): Ditto.
3332 (avr_frame_unwind_cache): Ditto.
3333 (avr_unwind_pc): Ditto.
3334 (avr_frame_this_id): Ditto.
3335 (avr_frame_prev_register): Ditto.
3336 (avr_frame_p): Ditto.
3337 (avr_frame_base_address ): Ditto.
3338 (avr_unwind_dummy_id): Ditto.
3339 (avr_push_dummy_code): Ditto.
3340 (push_stack_item): Ditto.
3341 (pop_stack_item): Ditto.
3342 (avr_push_dummy_call): Ditto.
3343 (struct stack_item): Define.
3344 (avr_frame_unwind): Declare structure.
3345 (avr_frame_base): Ditto.
3346 (avr_gdbarch_init): Remove calls to
3347 set_gdbarch_deprecated_init_frame_pc,
3348 set_gdbarch_deprecated_target_read_fp,
3349 set_gdbarch_deprecated_dummy_write_sp,
3350 set_gdbarch_deprecated_fp_regnum,
3351 set_gdbarch_deprecated_push_arguments,
3352 set_gdbarch_deprecated_push_return_address,
3353 set_gdbarch_deprecated_pop_frame,
3354 set_gdbarch_deprecated_store_struct_return,
3355 set_gdbarch_deprecated_frame_init_saved_regs,
3356 set_gdbarch_deprecated_init_extra_frame_info,
3357 set_gdbarch_deprecated_frame_chain,
3358 set_gdbarch_deprecated_frame_saved_pc,
3359 set_gdbarch_deprecated_saved_pc_after_call.
3360 Add calls to set_gdbarch_push_dummy_call,
3361 set_gdbarch_push_dummy_code,
3362 frame_unwind_append_predicate,
3363 frame_base_set_default,
3364 set_gdbarch_unwind_dummy_id,
3365 set_gdbarch_unwind_pc.
3368 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
3370 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
3371 registers for H8/300S.
3372 (h8300_print_registers_info): Ditto.
3373 (h8300_gdbarch_init): Accommodate register count for H8/300S.
3375 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
3377 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
3378 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
3379 (lin_lwp_wait): Likewise. Update comments.
3380 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
3381 (pull_pid_from_list, linux_record_stopped_pid): New.
3383 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3385 * ada-lang.c (scan_discrim_bound): Name first argument.
3386 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
3387 declared by ALL_BLOCK_SYMBOLS.
3389 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
3391 * ada-tasks.c (find_function_in_inferior): Don't declare it.
3392 ("regcache.h"): Include it.
3393 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
3395 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3397 * NEWS: Mention gdbserver detach change and "disconnect" command.
3398 * infcmd.c (disconnect_command): New function.
3399 (_initialize_infcmd): Add ``disconnect'' command.
3400 * remote.c (remote_async_detach): Delete.
3401 (remote_detach): Merge remote_async_detach.
3402 (remote_disconnect): New.
3403 (init_remote_ops): Set to_disconnect.
3404 (init_remote_cisco_ops): Likewise.
3405 (init_remote_async_ops): Likewise. Use remote_detach.
3406 * target.c (cleanup_target): Default to_disconnect.
3407 (update_current_target): Inherit to_disconnect.
3408 (target_disconnect, debug_to_disconnect): New functions.
3409 (setup_target_debug): Set to_disconnect.
3410 * target.h (struct target_ops): Add to_disconnect.
3411 (target_disconnect): Add prototype.
3413 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3415 * breakpoint.c (insert_catchpoint): New function.
3416 (insert_breakpoints): Use catch_exceptions to call
3417 insert_catchpoint. Disable catchpoints if they fail to insert.
3419 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3421 * symfile.c (reread_symbols): Clear sym_private.
3423 2003-06-17 Andrew Cagney <cagney@redhat.com>
3425 * trad-frame.h (struct frame_info): Add opaque declaration.
3426 * remote-fileio.h (struct cmd_list_element): Add opaque
3428 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
3431 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
3433 * remote.c (remote_prepare_to_store): Replace call to
3434 deprecated_read_register_bytes with multiple regcache_raw_read
3437 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3439 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
3440 (nto_find_and_open_solib): Likewise.
3441 (nto_init_solib_absolute_prefix): Likewise.
3442 (_initialize_nto_tdep): Fix indentation.
3444 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3446 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
3448 2003-06-17 Kris Warkentin <kewarken@qnx.com>
3450 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
3452 2003-06-17 Jim Blandy <jimb@redhat.com>
3454 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
3456 2003-06-16 Theodore A. Roth <troth@openavr.org>
3458 * avr-tdep.c (avr_extract_return_value): New function.
3459 (avr_gdbarch_init): Set extract_return_value method.
3461 2003-06-16 Andrew Cagney <cagney@redhat.com>
3463 * frame.h (deprecated_get_next_frame_hack): Declare.
3464 * frame.c (legacy_saved_regs_prev_register): Only require
3465 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
3466 there are always saved regs.
3467 (deprecated_generic_get_saved_register): Do not require
3468 DEPRECATED_FRAME_INIT_SAVED_REGS.
3469 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
3470 use frame ID unwind instead.
3471 (deprecated_get_next_frame_hack): New function.
3473 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3475 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
3476 (h8300_push_dummy_call): ...this function. Some minor optimization.
3477 (h8300_push_return_address): Remove.
3478 (h8300_gdbarch_init): Remove calls to
3479 set_gdbarch_deprecated_dummy_write_sp,
3480 set_gdbarch_deprecated_push_arguments and
3481 set_gdbarch_deprecated_push_return_address.
3482 Add call to set_gdbarch_push_dummy_call.
3484 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
3486 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
3487 (E_PSEUDO_EXR_REGNUM): Ditto.
3488 (h8300_is_argument_spill): Check for instructions moving argument
3489 registers into safe registers.
3490 (h8300_skip_prologue): Check for stm instruction to push registers
3491 used for register variables onto stack.
3492 (gdb_print_insn_h8300): Remove.
3493 (h8300_examine_prologue): Add a comment.
3494 (h8300_register_name): Take pseudo registers into account.
3495 (h8300s_register_name): Ditto.
3496 (h8300sx_register_name): Ditto.
3497 (h8300_print_register): Ditto.
3498 (h8300_print_registers_info): Define "nice" printing order.
3499 (h8300_saved_pc_after_call): Take pseudo registers into account.
3500 (h8300_register_type): Ditto. Return type used for remote connection
3501 when requesting real CCR or EXR register, return actual type when
3502 requesting pseudo CCR or EXR.
3503 (h8300_pseudo_register_read): New function.
3504 (h8300_pseudo_register_write): Ditto.
3505 (h8300_dbg_reg_to_regnum): Ditto.
3506 (h8300s_dbg_reg_to_regnum): Ditto.
3507 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
3508 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
3509 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
3510 set_gdbarch_print_insn architecture dependent.
3511 Call set_gdbarch_pseudo_register_read and
3512 set_gdbarch_pseudo_register_write.
3513 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
3515 2003-06-16 Andrew Cagney <cagney@redhat.com>
3517 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
3518 * gdbarch.h, gdbarch.c: Re-generate.
3519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3520 * s390-tdep.c (s390_gdbarch_init): Update.
3521 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3522 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3523 * mips-tdep.c (mips_gdbarch_init): Update.
3524 * mcore-tdep.c (mcore_gdbarch_init): Update.
3525 * cris-tdep.c (cris_gdbarch_init): Update.
3526 * infcall.c (call_function_by_hand): Update.
3527 * ia64-tdep.c (ia64_push_arguments): Update comment.
3528 * frame.c (legacy_get_prev_frame): Do not assume
3529 SAVE_DUMMY_FRAME_TOS_P.
3530 * dummy-frame.c (find_dummy_frame): Update comment.
3532 2003-06-16 Andrew Cagney <cagney@redhat.com>
3534 * regcache.c (do_cooked_read): Do not use register_valid_p.
3536 2003-06-15 Theodore A. Roth <troth@openavr.org>
3538 * avr-tdep.c (avr_register_type): Remove a blank line.
3539 (avr_scan_prologue): Correct some comments.
3541 2003-06-15 Theodore A. Roth <troth@openavr.org>
3543 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
3545 Properly scan prologues generated by gcc with the -mcall-prologues
3547 Add code to scan -mcall-prologues for mega devices.
3549 2003-06-15 Theodore A. Roth <troth@openavr.org>
3551 * avr-tdep.c (avr_register_byte): Delete function.
3552 (avr_register_raw_size): Delete function.
3553 (avr_register_virtual_size): Delete function.
3554 (avr_register_virtual_type): Delete function.
3555 (avr_register_type): New function.
3556 (avr_address_to_pointer): Remove unused code.
3557 (avr_read_fp): Need to read FP as two separate bytes due to change to
3558 avr_register_type() usage.
3559 (avr_gdbarch_init): Don't set deprecated_register_size.
3560 Don't set deprecated_register_bytes.
3561 Don't set deprecated_register_byte.
3562 Don't set deprecated_register_raw_size.
3563 Don't set deprecated_max_register_raw_size.
3564 Don't set deprecated_register_virtual_size.
3565 Don't set deprecated_max_register_virtual_size.
3566 Don't set deprecated_register_virtual_type.
3567 Set register_type method.
3569 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
3571 * Makefile.in (linux-nat.o): Add rule.
3572 * linux-nat.c: New file.
3573 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
3574 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
3575 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
3576 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
3577 * config/arm/linux.mh (NATDEPFILES): Likewise.
3578 * config/i386/linux.mh (NATDEPFILES): Likewise.
3579 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
3580 * config/ia64/linux.mh (NATDEPFILES): Likewise.
3581 * config/m68k/linux.mh (NATDEPFILES): Likewise.
3582 * config/mips/linux.mh (NATDEPFILES): Likewise.
3583 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
3584 * config/s390/s390.mh (NATDEPFILES): Likewise.
3585 * config/sparc/linux.mh (NATDEPFILES): Likewise.
3587 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3589 * i387-tdep.c: Reorder includes, fix some whitespace issues and
3590 replace out-of-date comment.
3592 2003-06-15 Andrew Cagney <cagney@redhat.com>
3594 * rdi-share/host.h (Fail): Change to a varargs function.
3595 * remote-rdi.c (Fail): Update.
3597 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3599 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
3600 (i386_convert_register_p, i386_register_to_value,
3601 i386_register_from_value): Handle types longer than 8 bytes.
3603 2003-06-15 Mark Kettenis <kettenis@gnu.org>
3605 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
3606 Move floating-point code to new function in i387-tdep.c.
3607 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
3608 New functions containing code moved here from i386-tdep.c.
3609 * i387-tdep.h: Add opaque declaration for `struct type'.
3610 (i387_register_to_value, i387_value_to_register): New prototypes.
3611 * x86-64-tdep.c (x86_64_convert_register_p): New function.
3612 (x86_64_init_abi): Set convert_register_p, register_to_value and
3613 value_to_register here.
3615 2003-06-14 Andrew Cagney <cagney@redhat.com>
3617 * mips-tdep.c (mips_register_to_value): Make static.
3618 (mips_value_to_register): Make static.
3619 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
3620 * ia64-tdep.c (ia64_register_raw_size): Make static.
3621 (ia64_register_virtual_size): Make static.
3622 (ia64_register_byte): Make static.
3623 * i387-tdep.c: Include "i387-tdep.h".
3624 (print_387_control_word): Delete function.
3625 (print_387_status_word): Delete function.
3626 (print_387_status_bits): Delete function.
3627 (print_387_control_bits): Delete function.
3628 * Makefile.in (i387-tdep.o): Update dependencies.
3629 * rdi-share/host.h (Fail): Declare.
3630 * remote-rdi.c (Fail): Update to match declaration.
3632 2003-06-14 Andrew Cagney <cagney@redhat.com>
3634 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
3635 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
3636 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
3637 * config/djgpp/fnchange.lst: Delete "remote-array.c".
3638 * README: Delete reference to remote-array.
3639 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
3640 (remote-array.o): Delete target.
3641 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
3642 * remote-array.c: Delete file.
3644 2003-06-14 Andrew Cagney <cagney@redhat.com>
3645 Mark Kettenis <kettenis@gnu.org>
3647 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
3648 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
3649 parameter with "frame".
3650 * gdbarch.h, gdbarch.c: Re-generate.
3651 * frame.h (put_frame_register): Declare.
3652 * frame.c (put_frame_register): New function.
3653 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
3654 (legacy_register_to_value): Rewrite, use "frame" to get the
3656 (legacy_value_to_register): Rewrite, use "frame" to find the
3657 register's location before storing.
3658 * arch-utils.h (legacy_convert_register_p): Update.
3659 (legacy_register_to_value, legacy_value_to_register): Update.
3660 * findvar.c (value_from_register): Rewrite, eliminate use of
3661 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
3662 "frame" to REGISTER_TO_VALUE.
3663 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
3664 lval_reg_frame_relative + lval_register branch of the switch. Do
3665 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
3666 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
3667 I386_EDI_REGNUM): New defines.
3668 (i386_next_regnum, i386_convert_register_p,
3669 i386_register_to_value, i386_value_to_register): New functions.
3670 (i386_register_convertible, i386_register_convert_to_virtual,
3671 i386_convert_to_raw): Remove functions.
3672 (i386_gdbarch_init): Set convert_register_p, register_to_value and
3673 value_to_register instead of register_convertible,
3674 register_convert_to_virtual and register_convert_to_raw.
3675 * mips-tdep.c (mips_convert_register_p): New function.
3676 (mips_value_to_register): Replace mips_register_convert_from_type.
3677 (mips_register_to_value): Replace mips_register_convert_to_type.
3678 (mips_gdbarch_init): Set conver_register_p, value_to_register and
3680 * alpha-tdep.c (alpha_convert_register_p): Update.
3681 (alpha_value_to_register): Update, store the register.
3682 (alpha_register_to_value): Update, fetch the register.
3684 2003-06-14 Theodore A. Roth <troth@openavr.org>
3686 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
3687 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
3688 Don't set deprecated_call_dummy_words.
3689 Remove commented out set_gdbarch_believe_pcc_promotion() call.
3690 Don't set remote_translate_xfer_address.
3691 (avr_io_reg_read_command): Remove commented out debug printf.
3694 2003-06-14 Theodore A. Roth <troth@openavr.org>
3696 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
3697 causes gdb to seg fault.
3699 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
3701 * sparc-nat.c (fetch_inferior_registers): Correct
3702 a reference to "registers".
3704 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
3706 * Makefile.in (exc_request_U_h): Define
3707 (exc_request_S_h): Likewise.
3708 (msg_reply_S_h): Likewise.
3709 (msg_U_h): Likewise.
3710 (notify_S_h): Likewise.
3711 (process_reply_S_h): Likewise.
3712 (gnu-nat.o): Depend on gdb_obstack_h
3713 * gnu-nat.c: Include "gdb_obstack.h".
3715 2003-06-13 Andrew Cagney <cagney@redhat.com>
3717 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
3718 * gdbarch.h, gdbarch.c: Re-generate.
3720 2003-06-13 Andrew Cagney <cagney@redhat.com>
3722 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
3723 when deprecated REGISTER macros can be deleted.
3724 * gdbarch.h, gdbarch.c: Re-generate.
3726 2003-06-13 Jim Blandy <jimb@redhat.com>
3728 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
3729 Linux entry point symbols for _dl_debug_state, too.
3731 2003-06-13 Andrew Cagney <cagney@redhat.com>
3733 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
3734 available, do not use the FP register, and always save the TOS.
3735 * dummy-frame.c (dummy_frame_this_id): Do not assert
3736 SAVE_DUMMY_FRAME_TOS.
3737 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
3738 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
3739 (i386_push_dummy_call): Add 8 to the returned SP.
3740 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
3741 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
3742 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
3743 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
3744 (x86_64_push_dummy_call): Return "sp + 16".
3745 (x86_64_init_abi): Do not set save_dummy_frame_tos.
3746 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3747 save_dummy_frame_tos.
3749 2003-06-13 Jim Blandy <jimb@redhat.com>
3751 * frv-tdep.c (frv_use_struct_convention): Delete static
3752 declaration for function deleted in my change of 2003-06-12.
3754 2003-06-13 Theodore A. Roth <troth@openavr.org>
3756 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
3757 (avr_pointer_to_address): Shift code addrs left 1 bit.
3758 (avr_convert_from_func_ptr_addr): Delete function since operation is
3759 better handled by avr_address_to_pointer and avr_pointer_to_address.
3760 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
3762 2003-06-13 Mark Kettenis <kettenis@gnu.org>
3764 From Kelley Cook <kelleycook@wideopenwest.com>:
3765 * configure.host: Accept i[34567]86 variants.
3766 * configure.tgt: Likewise.
3767 * nlm/configure.in: Likewise.
3768 * nlm/configure: Regenerated.
3770 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
3772 * arm-tdep.c (solib-svr4.h): Dont' include it.
3773 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
3774 * arm-linux-tdep.c: ... here. Make static.
3775 (arm_linux_init_abi): Register it.
3776 (solib-svr4.h): Include it.
3777 * Makefile.in: Update dependencies.
3778 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
3779 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
3781 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3783 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
3784 indicate registers used for return values.
3785 (struct frame_extra_info): Drop args_pointer and locals_pointer.
3786 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
3788 (h8300_init_extra_frame_info): Ditto.
3789 (h8300_frame_locals_address): Removed.
3790 (h8300_frame_args_address): Removed.
3791 (h8300_extract_return_value): Use new regcache structure. Only care
3793 (h8300h_extract_return_value): Same function for 32 bit CPUs.
3794 (h8300_store_return_value): Use new regcache structure. Only care
3796 (h8300h_store_return_value): Same function for 32 bit CPUs.
3797 (h8300_store_struct_return): Removed.
3798 (h8300_extract_struct_value_address): Use new regcache structure.
3799 (h8300h_extract_struct_value_address): Removed.
3800 (h8300_push_dummy_code): New function.
3801 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
3802 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
3803 set_gdbarch_store_return_value architecture dependent.
3804 Call set_gdbarch_push_dummy_code and
3805 set_gdbarch_extract_struct_value_address.
3806 Remove calls to set_gdbarch_frame_args_address,
3807 set_gdbarch_frame_locals_address,
3808 set_gdbarch_deprecated_store_struct_return,
3809 set_gdbarch_deprecated_extract_return_value,
3810 set_gdbarch_deprecated_extract_struct_value_address,
3811 set_gdbarch_deprecated_call_dummy_words and
3812 set_gdbarch_deprecated_sizeof_call_dummy_words.
3814 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
3816 * h8300-tdep.c (h8300_register_byte): Remove.
3817 (h8300h_register_byte): Remove.
3818 (h8300_register_virtual_type): Remove. Substitute by...
3819 (h8300_register_type): New function.
3820 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
3821 (h8300h_extract_struct_value_address): Ditto.
3822 (h8300_gdbarch_init): Drop calls to
3823 set_gdbarch_deprecated_register_byte and
3824 set_gdbarch_deprecated_register_virtual_type.
3825 Add call to set_gdbarch_register_type.
3827 2003-06-13 Andrew Cagney <cagney@redhat.com>
3829 * gdbarch.sh: Update comments on registers.
3830 (deprecated_register_byte): Rename register_byte.
3831 (deprecated_register_raw_size): Rename register_raw_size.
3832 (deprecated_register_virtual_size): Rename register_virtual_size.
3833 (deprecated_register_virtual_type): Rename register_virtual_type.
3834 * gdbarch.h, gdbarch.c: Re-generate.
3835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3836 * vax-tdep.c (vax_gdbarch_init): Update.
3837 * v850-tdep.c (v850_gdbarch_init): Update.
3838 * sparc-tdep.c (sparc_gdbarch_init): Update.
3839 * sh-tdep.c (sh_gdbarch_init): Update.
3840 * s390-tdep.c (s390_gdbarch_init): Update.
3841 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3842 * ns32k-tdep.c: Update.
3843 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3844 * mips-tdep.c (mips_gdbarch_init): Update.
3845 * mcore-tdep.c (mcore_gdbarch_init): Update.
3846 * m68k-tdep.c (m68k_gdbarch_init): Update.
3847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3848 * ia64-tdep.c (ia64_gdbarch_init): Update.
3849 * hppa-tdep.c (hppa_gdbarch_init): Update.
3850 * h8300-tdep.c (h8300_gdbarch_init): Update.
3851 * frv-tdep.c (frv_gdbarch_init): Update.
3852 * cris-tdep.c (cris_gdbarch_init): Update.
3853 * avr-tdep.c (avr_gdbarch_init): Update.
3854 * alpha-tdep.c (alpha_gdbarch_init): Update.
3855 * arm-tdep.c (arm_gdbarch_init): Update.
3857 2003-06-13 Andrew Cagney <cagney@redhat.com>
3859 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
3860 mips_o32_use_struct_convention with always_use_struct_convention.
3862 2003-06-12 David Carlton <carlton@kealia.com>
3864 * cp-namespace.c (cp_set_block_scope): Comment out
3865 processing_has_namespace_info branch.
3867 2003-06-12 Jim Blandy <jimb@redhat.com>
3869 Recognize and skip 64-bit PowerPC Linux linkage functions.
3870 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
3871 insn_pattern, insns_match_pattern, d_field, ds_field): New
3872 functions, macros, and types for working with PPC instructions.
3873 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
3874 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
3875 ppc64_skip_trampoline_code): New functions, variables, and macros
3876 for recognizing and skipping linkage functions.
3877 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
3878 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
3880 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
3881 register offsets for both the 32- and 64-bit interfaces.
3883 Actually finish the job started by my change of 2003-05-29.
3884 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
3885 other #definition of this.
3886 (ppc_linux_skip_trampoline_code): Remove declaration.
3887 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
3889 (ppc_linux_init_abi): Register it as the skip_trampoline_code
3892 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
3893 'long' on ppc64-*-linux*.
3895 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
3896 isn't #defined, assume the register doesn't exist: act as if
3897 tdep->ppc_mq_regnum were -1.
3899 * configure.host, configure.tgt: Add entries for
3900 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
3902 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
3905 * arch-utils.c (always_use_struct_convention): New function.
3906 * arch-utils.h (always_use_struct_convention): New prototype.
3907 * alpha-tdep.c (alpha_use_struct_convention): Delete.
3908 (alpha_gdbarch_init): Register always_use_struct_convention,
3909 instead of alpha_use_struct_convention.
3910 * cris-tdep.c (cris_use_struct_convention): Delete.
3911 (cris_gdbarch_init): Register always_use_struct_convention,
3912 instead of cris_use_struct_convention.
3913 * frv-tdep.c (frv_use_struct_convention): Delete.
3914 (frv_gdbarch_init): Register always_use_struct_convention,
3915 instead of frv_use_struct_convention.
3916 * h8300-tdep.c (h8300_use_struct_convention): Delete.
3917 (h8300_gdbarch_init): Register always_use_struct_convention,
3918 instead of h8300_use_struct_convention.
3919 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
3920 (mips_o32_gdbarch_init): Register always_use_struct_convention,
3921 instead of mips_o32_use_struct_convention.
3923 2003-06-12 Andrew Cagney <cagney@redhat.com>
3925 * wince.c: Include "mips-tdep.h".
3926 * mips-tdep.h (mips_next_pc): Declare.
3927 * mcore-tdep.c: Make more local functions static.
3928 * Makefile.in (wince.o): Update dependencies.
3930 2003-06-12 David Carlton <carlton@kealia.com>
3932 * symtab.c (lookup_symbol_aux_minsyms): Replace
3933 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3934 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
3935 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
3936 SYMBOL_NATURAL_NAME.
3938 2003-06-12 Andreas Schwab <schwab@suse.de>
3940 * Makefile.in (tuiDisassem.o): Update dependencies.
3942 2003-06-12 David Carlton <carlton@bactrian.org>
3944 * symtab.h: Delete declaration of make_symbol_overload_list.
3945 Add declaration of lookup_partial_symbol.
3946 * symtab.c (remove_params): Move to cp-support.c.
3947 (overload_list_add_symbol, make_symbol_overload_list)
3948 (sym_return_val_size, sym_return_val_index): Ditto.
3949 (lookup_partial_symbol): Make extern.
3950 * cp-support.h: Add declaration of make_symbol_overload_list.
3951 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
3952 symtab.h, and block.h.
3953 (remove_params): Move here from symtab.c.
3954 (overload_list_add_symbol, make_symbol_overload_list)
3955 (sym_return_val_size, sym_return_val_index): Ditto.
3956 * valops.c: Include cp-support.h.
3957 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
3958 frame_h, and block_h.
3959 (valops.o): Depend on cp_support_h.
3961 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
3963 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
3964 substitute by NUM_REGS throughout.
3965 (h8300_register_name): Only care for H8/300 and H8/300H registers.
3966 (h8300s_register_name): New function for H8S registers.
3967 (h8300sx_register_name): Ditto for H8SX registers.
3968 (h8300_print_register): Revise register printing, avoid depending
3970 (h8300_register_byte): Only care for H8/300 registers.
3971 (h8300h_register_byte): New function for any other architecture.
3972 (h8300_register_raw_size): Remove.
3973 (h8300_register_virtual_type): Revise to return actually useful
3975 (h8300_extract_struct_value_address): Only care for H8/300 registers.
3976 (h8300h_extract_struct_value_address): New function for any other
3978 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
3979 set_gdbarch_register_name, set_gdbarch_register_byte,
3980 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
3981 Remove calls to set_gdbarch_deprecated_register_size,
3982 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
3983 set_gdbarch_deprecated_max_register_raw_size,
3984 set_gdbarch_register_virtual_size and
3985 set_gdbarch_deprecated_max_register_virtual_size entirely.
3986 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
3987 set_gdbarch_long_double_bit.
3989 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
3991 * doublest.c (convert_doublest_to_floatformat): When dealing
3992 with the implied integer bit, only alter mant_bits if we are
3993 processing a full 32 bits of mantissa.
3995 2003-06-11 David Carlton <carlton@bactrian.org>
3997 * dictionary.h: New.
3998 * dictionary.c: New.
3999 * block.h: Add opaque declaration for struct dictionary.
4000 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
4002 (BLOCK_DICT): New macro.
4003 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
4004 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
4006 (ALL_BLOCK_SYMBOLS): Update definition.
4007 * Makefile.in (SFILES): Add dictionary.c.
4008 (dictionary_h): New.
4009 (COMMON_OBS): Add dictionary.o.
4010 (dictionary.o): New.
4011 (ada-lang.o): Depend on dictionary_h.
4012 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
4013 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
4014 (mi-cmd-stack.o): Ditto.
4015 (gdbtk-cmds.o): Update dependencies.
4016 (gdbtk-stack.o): Ditto.
4017 * ada-lang.c: Include dictionary.h.
4018 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
4019 (fill_in_ada_prototype, debug_print_block): Ditto.
4020 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
4021 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
4023 * mdebugread.c: Include dictionary.h.
4024 (struct parse_stack): Delete 'maxsyms' member.
4025 (parse_symbol): Update calls to new_block. Delete calls to
4026 shrink_block. Use dictionary methods.
4027 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
4028 Update calls to new_symtab. Don't maintain maxsyms data.
4029 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
4030 (add_symbol): Just call dict_add_symbol.
4031 (new_symtab): Delete 'maxsyms' argument.
4032 (new_symtab): Update calls to new_block.
4033 (new_block): Delete 'maxsyms' argument; add 'function' argument.
4034 (shrink_block): Delete function.
4035 (fixup_sigtramp): Update call to new_block. Add symbol via
4037 * jv-lang.c: Include dictionary.h.
4038 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
4039 appropriately. Set class_symtab->free_func. Make sure the
4040 blockvector is big enough to hold two blocks.
4041 (add_class_symtab_symbol): Use dictionary methods.
4042 (free_class_block): New function.
4043 (type_from_class): Replace explicit iteration by
4045 * symtab.h (struct symtab): Replace 'free_ptr' method by
4047 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
4049 * dwarfread.c (psymtab_to_symtab_1): Delete call to
4051 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
4052 Include dictionary.h.
4053 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
4054 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
4056 * objfiles.c: Include dictionary.h.
4057 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
4058 * buildsym.c: Include dictionary.h.
4059 (finish_block): Use dictionary methods.
4060 (end_symtab): Set free_func to NULL, not free_ptr.
4061 * tracepoint.c: Include dictionary.h.
4062 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
4063 (scope_info): Ditto.
4064 * stack.c: Include dictionary.h.
4065 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
4066 (print_block_frame_labels, print_frame_arg_vars)
4067 (print_frame_args): Ditto.
4068 * symmisc.c (free_symtab_block): Use dictionary methods.
4069 (dump_symtab): Ditto.
4070 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
4071 Include dictionary.h.
4072 * symfile.h: Delete declarations of sort_block_syms,
4074 * symfile.c (sort_block_syms): Delete.
4075 (sort_symtab_syms): Delete.
4076 * symtab.c: Include dictionary.h.
4077 (lookup_block_symbol): Use dictionary iterators.
4078 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
4079 (search_symbols, make_symbol_completion_list): Ditto.
4080 (make_symbol_overload_list): Ditto.
4081 * valops.c (value_of_local): Use dict_empty.
4082 Include dictionary.h.
4084 2003-06-11 J. Brobecker <brobecker@gnat.com>
4086 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
4088 2003-06-11 David Carlton <carlton@bactrian.org>
4090 * block.h (BLOCK_SHOULD_SORT): Delete.
4091 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
4093 * ada-lang.c (ada_add_block_symbols): Ditto.
4094 * symfile.c (sort_block_syms): Delete.
4095 (sort_symtab_syms): Ditto.
4096 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
4098 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
4099 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
4100 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
4101 * dwarfread.c (psymtab_to_symtab_1): Ditto.
4102 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
4103 * mdebugread.c (psymtab_to_symtab_1): Ditto.
4104 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
4106 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
4108 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
4111 2003-06-11 Andrew Cagney <cagney@redhat.com>
4113 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
4114 REGISTER_CONVERTIBLE.
4115 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
4116 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
4117 * gdbarch.h, gdbarch.c: Re-generate.
4118 * arch-utils.h (deprecated_register_convertible_not): Rename
4119 generic_register_convertible_not.
4120 * arch-utils.c (deprecated_register_convertible_not): Rename
4121 generic_register_convertible.
4122 (legacy_convert_register_p, legacy_register_to_value): Update.
4123 * sh-tdep.c (sh64_push_arguments): Update.
4124 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
4125 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
4126 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
4127 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
4128 * arch-utils.c (legacy_value_to_register): Update.
4129 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4130 (rs6000_register_convert_to_raw): Make parameter "from" const.
4131 * mips-tdep.c (mips_gdbarch_init): Update.
4132 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
4133 * infcmd.c (default_print_registers_info): Update.
4134 * ia64-tdep.c (ia64_gdbarch_init): Update.
4135 (ia64_register_convert_to_raw): Make parameter "from" const.
4136 * i386-tdep.c (i386_gdbarch_init): Update.
4137 (i386_register_convert_to_raw): Update.
4139 2003-06-11 Andrew Cagney <cagney@redhat.com>
4141 * remote-fileio.c: Include "remote-fileio.h".
4142 * Makefile.in (remote-fileio.o): Update dependencies.
4143 (remote_fileio_h): Fix typo.
4145 2003-06-11 Andrew Cagney <cagney@redhat.com>
4147 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
4148 (xstormy16_save_dummy_frame_tos): Make static.
4149 (_initialize_xstormy16_tdep): Add declaration.
4150 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
4151 * v850-tdep.c: Make local functions static.
4152 (_initialize_v850_tdep): Add declaration.
4153 * sparc-tdep.c: Make local functions static.
4154 (_initialize_sparc_tdep): Add declaration.
4155 * sh-tdep.c: Make local functions static.
4156 (_initialize_sh_tdep): Add declaration.
4157 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
4158 * s390-tdep.c: Make local functions static.
4159 (_initialize_s390_tdep): Add declaration.
4160 * dbxread.c (find_stab_function_addr): Make static.
4161 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
4162 * ocd.c (_initialize_remote_ocd): Add declaration.
4163 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
4164 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
4165 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
4166 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
4167 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
4168 * remote-array.c (_initialize_array): Add declaration.
4169 (_initialize_remote_monitors): Add declaration.
4170 * remote-mips.c: Make local functions static.
4171 (_initialize_remote_mips): Add declaration.
4172 * mcore-tdep.c: Make all local functions static.
4173 (_initialize_mcore_tdep): Add declaration.
4174 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
4175 * abug-rom.c (_initialize_abug_rom): Add declaration.
4176 * rom68k-rom.c (_initialize_rom68k): Add declaration.
4177 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
4178 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
4179 * remote-est.c (_initialize_est): Add declaration.
4180 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
4181 (m68hc11_call_dummy_address): Make static.
4182 * ia64-tdep.c: Make local functions static.
4183 (_initialize_ia64_tdep): Add declaration.
4184 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
4185 * monitor.c (monitor_wait_filter): Make static.
4186 (_initialize_remote_monitors): Add declaration.
4187 * remote-hms.c (_initialize_remote_hms): Add declaration.
4188 * remote-e7000.c (fetch_regs_from_dump): Make static.
4189 (expect_n): Make static.
4190 (_initialize_remote_e7000): Add declaration.
4191 * ser-e7kpc.c: Always include "defs.h".
4192 (_initialize_ser_e7000pc): Add declaration.
4193 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
4194 * cris-tdep.c: Make all but one function static.
4195 (_initialize_cris_tdep): Add declaration.
4196 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
4197 * solib.c (update_solib_list): Make static.
4198 (_initialize_solib): Add declaration.
4199 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
4200 (_initialize_avr_tdep): Add declaration.
4201 * remote-rdi.c (voiddummy): Make static.
4202 (_initialize_remote_rdi): Add declaration.
4203 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
4204 * remote-rdp.c (send_rdp): Make static.
4205 (_initialize_remote_rdp): Add declaration.
4206 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
4208 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
4210 * remote-fileio.c: Make ari happy.
4212 2003-06-10 J. Brobecker <brobecker@gnat.com>
4214 * rs6000-nat.c (child_xfer_memory): Compute the right address when
4215 fetching the trailing bytes of the buffer we are about to write.
4217 2003-06-10 Andrew Cagney <cagney@redhat.com>
4219 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
4220 * Makefile.in (remote-fileio.o): Update dependencies.
4221 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
4222 include <setjmp.h>, or <sys/types.h> conditional on USG.
4223 (remote_fio_jmp_buf): Delete global variable.
4225 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
4226 Martin M. Hunt <hunt@redhat.com>
4228 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
4229 (SFILES): Add remote-fileio.c.
4230 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
4231 dependencies for building remote.o.
4232 * remote-fileio.c: New file implementing the remote File-I/O protocol.
4233 * remote-fileio.h: New header file defining remote File-I/O interface.
4234 * remote.c (remote_write_bytes, remote_read_bytes): Remove
4235 static storage class.
4236 (remote_wait, remote_async_wait): Call remote_fileio_request() on
4238 (_initialize_remote): Call initialize_remote_fileio().
4239 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
4240 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4241 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
4242 (captured_main): Initialize new ui_files.
4243 * ui-file.c: Add read and fgets input functions.
4244 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
4245 (null_file_read): New function.
4246 (ui_file_read): New function.
4247 (set_ui_file_read): New function.
4248 (stdio_file_read): New function.
4249 * ui-file.h: New type ui_file_read_ftype.
4250 (set_ui_file_read): Declare.
4251 (ui_file_read): Declare.
4253 2003-06-09 Andrew Cagney <cagney@redhat.com>
4255 * frame.h (deprecated_unwind_get_saved_register): Rename
4256 generic_unwind_get_saved_register, update comments.
4257 * mips-tdep.c (mips_get_saved_register): Update.
4258 * frame.c (deprecated_unwind_get_saved_register): Update.
4260 2003-06-09 Andrew Cagney <cagney@redhat.com>
4262 * vax-tdep.c (vax_frame_locals_address): Delete function.
4263 (vax_gdbarch_init): Do not set frame_locals_address.
4264 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
4265 (m68hc11_gdbarch_init): Do not set frame_locals_address.
4266 * s390-tdep.c (s390_frame_args_address): Delete function.
4267 (s390_gdbarch_init): Do not set frame_args_address or
4268 frame_locals_address.
4269 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
4270 (ns32k_gdbarch_init): Do not set frame_locals_address.
4271 * hppa-tdep.c (hppa_frame_args_address): Delete function.
4272 (hppa_frame_locals_address): Delete function.
4273 (hppa_gdbarch_init): Do not set frame_args_address, or
4274 frame_locals_address.
4275 * arm-tdep.c (arm_frame_args_address): Delete.
4276 (arm_frame_locals_address): Delete.
4277 (arm_gdbarch_init): Do not set frame_args_address, or
4278 frame_locals_address.
4280 2003-06-09 Andrew Cagney <cagney@redhat.com>
4282 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
4283 * gdbarch.h, gdbarch.c: Re-generate.
4284 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
4285 * arch-utils.c (frame_num_args_unknown): Delete function.
4286 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
4287 (frame_info): Use FRAME_NUM_ARGS_P.
4288 * arm-tdep.c (arm_frame_num_args): Delete function.
4289 (arm_gdbarch_init): Do not set frame_num_args.
4290 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
4291 * hppa-tdep.c (hppa_frame_num_args): Delete function.
4292 (hppa_gdbarch_init): Do not set frame_num_args.
4293 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
4294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
4295 frame_num_args to default frame_num_args_unknown.
4296 * v850-tdep.c (v850_gdbarch_init): Ditto.
4297 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4298 * sh-tdep.c (sh_gdbarch_init): Ditto.
4299 * s390-tdep.c (s390_gdbarch_init): Ditto.
4300 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4301 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4302 * mips-tdep.c (mips_gdbarch_init): Ditto.
4303 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4304 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
4305 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4306 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4307 * i386-tdep.c (i386_gdbarch_init): Ditto.
4308 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4309 * frv-tdep.c (frv_gdbarch_init): Ditto.
4310 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4311 * cris-tdep.c (cris_gdbarch_init): Ditto.
4312 * avr-tdep.c (avr_gdbarch_init): Ditto.
4313 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4315 2003-06-09 Andrew Cagney <cagney@redhat.com>
4317 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
4318 (print_frame_args): Moved to "stack.c".
4319 * stack.c: Include "gdb_assert.h".
4320 (print_frame_nameless_args): Moved from "printcmd.c", made static.
4321 (print_frame_args): Moved from "printcmd.c".
4322 * frame.h (print_frame_args): Delete declaration.
4323 * Makefile.in (stack.o): Update dependencies.
4325 2003-06-08 Andrew Cagney <cagney@redhat.com>
4327 * frame.c (get_prev_frame): Remove reference to
4328 frame_args_address_correct in comments.
4329 * frame-base.c (default_frame_args_address): Delete code
4330 conditional on FRAME_ARGS_ADDRESS_CORRECT.
4331 * vax-tdep.c (vax_frame_args_address_correct): Delete.
4332 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
4333 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
4334 (vax_frame_args_address_correct): Delete declaration.
4336 2003-06-08 Andrew Cagney <cagney@redhat.com>
4338 * gdbarch.sh (UNWIND_SP): Add.
4339 * gdbarch.h, gdbarch.c: Re-generate.
4340 * frame.c (frame_sp_unwind): New function.
4341 (get_frame_sp): New function.
4342 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
4343 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
4344 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
4346 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
4347 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
4349 2003-06-08 Andrew Cagney <cagney@redhat.com>
4351 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
4354 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
4355 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
4356 * config/m68k/tm-sun3.h: Update.
4357 * config/m68k/tm-m68klynx.h: Update.
4358 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
4360 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
4361 trad_frame". Update comments.
4362 * d10v-tdep.c (struct d10v_unwind_cache): Update.
4363 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
4364 (trad_frame_register_value, trad_frame_prev_register): Update.
4366 2003-06-08 Andrew Cagney <cagney@redhat.com>
4368 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
4369 from GCC's acinclude.m4.
4370 * configure.in: Check for getopt's delcaration.
4371 * aclocal.m4, config.in, configure: Re-generate.
4372 * main.c (error_init): Delete declaration.
4373 * defs.h (error_init): Declare.
4374 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
4375 (rs6000_convert_from_func_ptr_addr): Make static.
4376 (_initialize_rs6000_tdep): Add declaration.
4377 * cli/cli-cmds.c (dont_repeat): Delete declaration.
4378 (show_commands, set_verbose, show_history): Delete declaration.
4379 * top.h (set_verbose): Add declaration.
4380 (show_history, set_history, show_commands): Add declaration.
4381 (do_restore_instream_cleanup): Add declaration.
4382 * objc-lang.c (specialcmp): Make static.
4383 (print_object_command): Make static.
4384 (find_objc_msgsend): Make static.
4385 (find_objc_msgcall_submethod_helper): Make static.
4386 (find_objc_msgcall_submethod): Make static.
4387 (_initialize_objc_language): Add declaration.
4388 (find_implementation_from_class): Make static.
4389 (find_implementation): Make static.
4390 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
4391 * objc-lang.h (lookup_struct_typedef): Add declaration.
4392 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
4393 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
4394 (do_restore_user_call_depth): Make static.
4395 (do_restore_instream_cleanup): Delete declaration.
4396 (dont_repeat): Delete declaration.
4397 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
4398 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
4399 * reggroups.c (_initialize_reggroup): Add declaration.
4400 * cp-support.c (_initialize_cp_support): Add declaration.
4401 * cp-abi.c (_initialize_cp_abi): Add declaration.
4402 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
4403 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
4404 (_initialize_gnu_v3_abi): Add declaration.
4405 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
4406 (_initialize_gnu_v2_abi): Add declaration.
4407 * frame-base.c (_initialize_frame_base): Add declaration.
4408 * doublest.c (floatformat_from_length): Make static.
4409 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
4410 * frame.c (create_sentinel_frame): Make static.
4411 (_initialize_frame): Add declaration.
4412 * top.c (do_catch_errors): Make static.
4413 (gdb_rl_operate_and_get_next_completion): Make static.
4414 * typeprint.c: Include "typeprint.h".
4415 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
4416 (sentinel_frame_this_id): Make static.
4417 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
4418 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
4419 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
4420 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
4421 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
4422 * maint.c (maintenance_print_architecture): Make static.
4423 * signals/signals.c (_initialize_signals): Add declaration.
4424 * std-regs.c (_initialize_frame_reg): Add declaration.
4425 * jv-exp.y (push_variable): ISO C definition.
4426 (push_qualified_expression_name): Ditto.
4427 * memattr.c (_initialize_mem): Add declaration.
4428 * remote.c (remote_check_watch_resources): Make static.
4429 (remote_stopped_by_watchpoint): Make static.
4430 (remote_stopped_data_address): Make static.
4431 * d10v-tdep.c (nr_dmap_regs): Make static.
4432 (a0_regnum): Make static.
4433 (d10v_frame_unwind_cache): Make static.
4434 (d10v_frame_p): Make static.
4435 * osabi.c (show_osabi): Make static.
4436 (_initialize_gdb_osabi): Add extern declaration.
4437 * gdbtypes.c (make_qualified_type): Make static.
4438 (safe_parse_type): Make static.
4439 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
4440 * macrotab.c (macro_bcache_free): Make static.
4441 * interps.c (interp_set_quiet): Make static.
4442 (interpreter_exec_cmd): Make static.
4443 * stack.h (select_frame_command): New file.
4444 * stack.c: Include "stack.h".
4445 (select_frame_command_wrapper): Delete function.
4446 (select_frame_command): Make global.
4447 * infcall.c: Include "infcall.h".
4448 * linespec.c: Include "linespec.h".
4449 * symfile.c (sections_overlap): Make static.
4450 * cp-support.h (cp_initialize_namespace): ISO C declaration.
4451 * charset.c (_initialize_charset): Add missing prototype.
4452 * regcache.c (init_legacy_regcache_descr): Make static.
4453 (do_regcache_xfree): Make static.
4454 (regcache_xfer_part): Make static.
4455 (_initialize_regcache): Add missing prototype.
4456 * breakpoint.c (parse_breakpoint_sals): Make static.
4457 (breakpoint_sals_to_pc): Make static.
4458 * interps.h (clear_interpreter_hooks): ISO C declaration.
4459 * Makefile.in (stack_h): Define.
4460 (stack.o, typeprint.o, mi-main.o): Update dependencies.
4461 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
4463 2003-06-08 Andrew Cagney <cagney@redhat.com>
4465 * Makefile.in (d10v-tdep.o): Update dependencies.
4466 (SFILES): Add trad-frame.c.
4467 (trad_frame_h): Define.
4468 (COMMON_OBS): Add trad-frame.o.
4469 (trad-frame.o): Specify dependencies.
4470 * d10v-tdep.c: Include "trad-frame.h".
4471 (saved_regs_unwinder): Delete function.
4472 (d10v_frame_prev_register): Use trad_frame_prev_register.
4473 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
4474 trad_frame", delete "regs" and "prev_sp".
4475 (prologue_find_regs): Use trad-frame.
4476 * trad-frame.h, trad-frame.c: New files.
4478 2003-06-08 Mark Kettenis <kettenis@gnu.org>
4480 * dwarf2cfi.c, dwarf2cfi.h: Remove.
4482 2003-06-07 Adam Fedor <fedor@gnu.org>
4484 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4485 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
4486 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
4487 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
4488 resolve_msgsend_super, resolve_msgsend_super_stret):
4491 2003-06-07 Andrew Cagney <cagney@redhat.com>
4493 * symfile.h: Re-indent, clean up comments.
4495 2003-06-07 Andrew Cagney <cagney@redhat.com>
4497 * inferior.h (deprecated_write_sp): Replace
4498 generic_target_write_sp.
4499 * regcache.c (deprecated_write_sp): Replace
4500 generic_target_write_sp.
4501 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4502 * vax-tdep.c (vax_gdbarch_init): Update.
4503 * v850-tdep.c (v850_gdbarch_init): Update.
4504 * sparc-tdep.c (sparc_gdbarch_init): Update.
4505 * sh-tdep.c (sh_gdbarch_init): Update.
4506 * s390-tdep.c (s390_gdbarch_init): Update.
4507 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4508 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4509 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4510 * mcore-tdep.c (mcore_gdbarch_init): Update.
4511 * m68k-tdep.c (m68k_gdbarch_init): Update.
4512 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4513 * ia64-tdep.c (ia64_gdbarch_init): Update.
4514 * h8300-tdep.c (h8300_gdbarch_init): Update.
4515 * frv-tdep.c (frv_gdbarch_init): Update.
4516 * cris-tdep.c (cris_gdbarch_init): Update.
4517 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
4519 2003-06-07 Andrew Cagney <cagney@redhat.com>
4521 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
4522 Assert that PC_REGNUM is valid.
4523 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
4525 2003-06-07 Andrew Cagney <cagney@redhat.com>
4527 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
4528 * gdbarch.h, gdbarch.c: Regenerate.
4529 * mn10300-tdep.c: Include "gdb_assert.h".
4530 (mn10300_read_fp): New function.
4531 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
4532 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
4533 * ia64-tdep.c: Include "gdb_assert.h".
4534 (ia64_read_fp): New function.
4535 (ia64_gdbarch_init): Set deprecated_target_read_fp to
4536 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
4537 * regcache.c (generic_target_read_sp): Delete function.
4538 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
4539 * inferior.h (generic_target_read_sp): Delete declaration.
4540 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
4541 generic_target_read_sp.
4542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4543 * sparc-tdep.c (sparc_gdbarch_init): Ditto
4544 * sh-tdep.c (sh_gdbarch_init): Ditto.
4545 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4546 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
4548 2003-06-07 Andrew Cagney <cagney@redhat.com>
4550 * gdbarch.sh: Comment each field of startup_gdbarch.
4551 * gdbarch.h, gdbarch.c: Re-generate.
4553 2003-06-07 Andrew Cagney <cagney@redhat.com>
4555 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
4556 * gdbarch.h, gdbarch.c: Re-generate.
4557 * regcache.c: Update comments on read_pc et.al.
4558 (generic_target_read_pc): Delete function.
4559 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
4560 * inferior.h (generic_target_read_pc): Delete declaration.
4561 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
4562 generic_target_read_pc.
4563 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4564 * sh-tdep.c (sh_gdbarch_init): Ditto.
4565 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4568 2003-06-07 Andrew Cagney <cagney@redhat.com>
4570 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
4571 "index" with "special_local_sect". Use strcmp instead of STREQ.
4572 Append period to coments.
4574 2003-06-06 Mark Mitchell <mark@codesourcery.com>
4576 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
4577 (elfstab_offset_sections): Likewise.
4578 * gdb-stabs.h (stab_section_info): Likewise.
4579 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
4580 * objfiles.c (objfile_relocate): Likewise.
4581 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
4582 * remote.c (get_offsets): Likewise.
4583 (remote_cisco_objfile_relocate): Likewise.
4584 * somread.c (som_symfile_offsets): Likewise.
4585 * symfile.c (alloc_section_addr_info): New function.
4586 (build_section_addr_info_from_section_tab): Use it.
4587 (free_section_addr_info): Adjust.
4588 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
4589 (syms_from_objfile): Allocate local_addr dynamically.
4590 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
4592 (add_symbol_file_command): Allocate sect_opts dynamically.
4593 (reread_symbols): Avoid use of SECT_OFF_MAX.
4594 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
4595 (alloc_section_addr_info): Declare it.
4596 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
4597 * win32-nat.c (solib_symbols_add): Allocate section_addrs
4599 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
4601 2003-06-06 Andrew Cagney <cagney@redhat.com>
4603 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
4604 (d10v_frame_unwind_cache): Do not set "return_pc".
4606 2003-06-06 Michael Snyder <msnyder@redhat.com>
4608 * h8300-tdep.c: Make tidy (long lines).
4610 2003-06-06 Michal Ludvig <mludvig@suse.cz>
4612 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
4613 to regcache_collect().
4615 2003-06-05 J. Brobecker <brobecker@gnat.com>
4617 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
4618 pc_in_sigtramp multiarch method.
4619 (hppa_hpux_som_init_abi): Use it.
4620 (hppa_hpux_elf_init_abi): Likewise.
4621 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
4622 macro has been multiarched.
4623 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
4624 macro here, as hppa64 isn't multiarched yet.
4626 2003-06-05 Andrew Cagney <cagney@redhat.com>
4628 * Makefile.in (value_h): Add $(frame_h).
4629 * value.h: Include "frame.h".
4630 (struct value): Replace "frame_addr" with "frame_id".
4631 (VALUE_FRAME_ID): Replace VALUE_FRAME.
4632 * values.c (allocate_value): Use VALUE_FRAME_ID.
4633 (value_copy): Use VALUE_FRAME_ID.
4634 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
4635 * valops.c (value_assign): Update. Use frame_find_by_id.
4637 2003-06-05 Michal Ludvig <mludvig@suse.cz>
4639 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
4642 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
4644 * thread-db.c (check_event): For create/death event breakpoints,
4645 loop through all messages to ensure that we read the message
4646 corresponding to the breakpoint we are at.
4648 2003-06-04 Michael Snyder <msnyder@redhat.com>
4650 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
4652 2003-06-04 Mark Kettenis <kettenis@gnu.org>
4654 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
4655 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
4656 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
4657 when handling .eh_frame sections.
4659 2003-06-04 J. Brobecker <brobecker@gnat.com>
4661 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
4662 prepare_to_proceed procedure instead of the hppa-specific one.
4663 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
4665 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
4667 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
4668 * config.in: Regenerated.
4669 * configure.in: Add test for syscall function and check for
4670 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
4671 * configure: Regenerated.
4672 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
4674 (kill_lwp): New function that uses tkill syscall or
4675 uses kill, depending on whether threading model is nptl or not.
4676 All callers of kill() changed to use kill_lwp().
4677 (lin_lwp_wait): Make special check when WIFEXITED occurs to
4678 see if all threads have already exited in the nptl model.
4679 (stop_and_resume_callback): New callback function used by the
4680 lin_lwp_wait thread exit handling code.
4681 (stop_wait_callback): Check for threads already having exited and
4682 delete such threads fromt the lwp list when discovered.
4683 (stop_callback): Don't assert retcode of kill call.
4685 Roland McGrath <roland@redhat.com>
4686 * i386-linux-nat.c (ps_get_thread_area): New function needed by
4689 2003-06-03 Richard Henderson <rth@redhat.com>
4691 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
4692 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
4693 (alpha_sigtramp_frame_prev_register): Likewise.
4694 (alpha_heuristic_frame_prev_register): Likewise.
4695 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
4697 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
4698 alpha-specific register id names.
4699 (alpha_mdebug_frame_unwind_cache): Likewise.
4700 (alpha_mdebug_frame_prev_register): Likewise.
4702 2003-06-03 Richard Henderson <rth@redhat.com>
4704 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
4705 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
4706 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
4707 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
4709 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
4710 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4711 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
4713 * alpha-linux-tdep.c: Remove unnecessary includes.
4714 * Makefile.in (alpha-linux-tdep.o): Update.
4716 2003-06-03 Richard Henderson <rth@redhat.com>
4718 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
4719 (alphabsd_fill_fpreg): Likewise.
4721 2003-06-03 J. Brobecker <brobecker@gnat.com>
4723 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
4724 references to struct frame_info fields by calls to the equivalent
4725 accessors. Necessary now that frame_info is opaque.
4727 2003-06-03 J. Brobecker <brobecker@gnat.com>
4729 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4730 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
4731 structure, field no longer exists.
4733 2003-06-03 J. Brobecker <brobecker@gnat.com>
4735 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
4736 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
4738 2003-06-03 J. Brobecker <brobecker@gnat.com>
4740 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
4741 references to struct frame_info fields by calls to the equivalent
4742 accessors. Necessary now that frame_info is opaque.
4744 2003-06-03 J. Brobecker <brobecker@gnat.com>
4746 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
4747 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
4748 structure, field no longer exists.
4750 2003-06-03 Theodore A. Roth <troth@openavr.org>
4752 * remote.c (init_remote_state): Compute sizeof_g_packet by
4753 accumulation of the size of all registers instead of blindly using
4754 DEPRECATED_REGISTER_BYTES.
4756 2003-06-03 Michael Snyder <msnyder@redhat.com>
4758 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
4759 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
4762 2003-06-03 J. Brobecker <brobecker@gnat.com>
4764 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
4765 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4767 2003-06-03 Andrew Cagney <cagney@redhat.com>
4769 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
4770 (sparc_convert_to_raw): Delete function.
4771 (sparc_gdbarch_init): Do not set register_convert_to_raw or
4772 register_convert_to_virtual.
4774 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
4776 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
4777 layer if not dealing with a statically-linked threaded program.
4779 2003-06-03 Kris Warkentin <kewarken@qnx.com>
4781 * solib.c (solib_open): Update comment to reflect actual search order.
4783 2003-06-03 Andrew Cagney <cagney@redhat.com>
4785 * frame.c (get_frame_memory_signed): New function.
4786 (get_frame_memory, get_frame_memory_unsigned): New function.
4787 (get_frame_arch): New function.
4788 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
4789 (get_frame_memory, get_frame_unsigned_memory): Declare.
4790 * d10v-tdep.c (d10v_frame_unwind_cache): Use
4791 get_frame_memory_unsigned and get_frame_arch.
4792 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
4794 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
4796 * MAINTAINERS (write after approval): Add myself.
4798 2003-06-03 Jim Blandy <jimb@redhat.com>
4800 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
4801 elements of gregset_t are 64 bits each, but access registers
4802 are still 32 bits, so they're packed two per gregset_t
4803 element. Unpack/pack them properly.
4805 2003-06-02 David Carlton <carlton@bactrian.org>
4807 * linespec.c (find_methods): Break out code into
4808 add_matching_methods and add_constructors.
4809 (add_matching_methods): New.
4810 (add_constructors): Ditto.
4812 2003-06-02 Andrew Cagney <cagney@redhat.com>
4814 * sparc-tdep.c (sparc_print_registers): Delete call to
4815 REGISTER_CONVERTIBLE.
4816 (sparc_gdbarch_init): Do not set register_convertible.
4817 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4818 * frv-tdep.c (frv_gdbarch_init): Ditto.
4819 * cris-tdep.c (cris_gdbarch_init): Ditto.
4821 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
4823 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
4824 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
4825 (syms_from_objfile): Ditto.
4827 2003-06-03 Andreas Schwab <schwab@suse.de>
4829 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
4830 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
4832 2003-06-02 Richard Henderson <rth@redhat.com>
4834 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
4835 a member of all_reggroup.
4837 2003-06-02 Richard Henderson <rth@redhat.com>
4839 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
4840 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
4841 (alpha_lds, alpha_sts): New.
4842 (alpha_convert_register_p): Change from _register_convertible.
4843 (alpha_register_to_value): Change from _convert_to_virtual;
4844 restructure and fail for type sizes other than 4 or 8.
4845 (alpha_value_to_register): Similarly.
4846 (alpha_extract_return_value): Use alpha_sts.
4847 (alpha_store_return_value): Use alpha_lds.
4848 (alpha_gdbarch_init): Update hooks.
4850 2003-06-02 Richard Henderson <rth@redhat.com>
4852 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
4854 (alpha_sigtramp_register_address): Likewise.
4856 2003-06-02 Richard Henderson <rth@redhat.com>
4858 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
4859 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
4860 * alpha-tdep.h: Declare them.
4862 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
4863 Remove zerobuf. Don't error on UNIQUE.
4864 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
4865 (ALPHA_REGSET_UNIQUE): Provide default.
4866 (supply_gregset): Use alpha_supply_int_regs.
4867 (fill_gregset): Use alpha_fill_int_regs.
4868 (supply_fpregset): Use alpha_supply_fp_regs.
4869 (fill_fpregset): Use alpha_fill_fp_regs.
4870 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
4871 (alphabsd_supply_reg): Use alpha_supply_int_regs.
4872 (alphabsd_fill_reg): Use alpha_fill_int_regs.
4873 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
4874 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
4875 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
4877 2003-06-02 Richard Henderson <rth@redhat.com>
4879 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
4881 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
4882 (alpha_store_return_value): Likewise.
4884 2003-06-02 David Carlton <carlton@math.stanford.edu>
4886 * block.c (contained_in): Add 'const' to arguments.
4887 (block_function): Ditto.
4888 * block.h: Update declarations for block_function and
4891 2003-06-02 David Carlton <carlton@math.stanford.edu>
4893 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
4894 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
4895 * p-valprint.c (pascal_val_print): Ditto.
4896 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
4898 2003-06-02 Richard Henderson <rth@redhat.com>
4900 * alpha-tdep.c (alpha_push_dummy_call): Use
4901 builtin_type_ieee_double_little instead of builtin_type_double.
4903 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
4904 sign-extension of 32-bit values.
4905 (alpha_store_return_value): Similarly.
4907 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
4908 (alpha_extract_return_value): Likewise.
4909 (alpha_store_return_value): Likewise.
4911 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
4912 (alpha_store_return_value): Error on IEEE Quad floats.
4914 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
4915 (alpha_extract_struct_value_address): Likewise.
4916 (alpha_store_return_value): Likewise.
4917 (alpha_store_struct_return): Remove.
4918 (alpha_gdbarch_init): Update hook registration to match.
4920 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
4921 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
4922 macros where appropriate.
4923 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
4924 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
4926 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
4927 for SP, GP; void_func_ptr for PC; non-language-specific types
4929 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
4931 2003-06-02 Richard Henderson <rth@redhat.com>
4933 * top.h (lim_at_start): Declare.
4934 * main.c (captured_main): Set it.
4935 * top.c (lim_at_start): Define.
4936 (command_loop): Use it instead of &environ.
4937 * event-top.c (command_handler): Likewise.
4939 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
4941 * mipsnbsd-tdep.c: Update copyright years.
4942 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
4944 2003-06-01 Richard Henderson <rth@redhat.com>
4946 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
4947 (alpha-linux-tdep.o): Update dependencies.
4948 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
4949 * alpha-mdebug-tdep.c: Remove unneeded includes.
4951 2003-06-01 Richard Henderson <rth@redhat.com>
4953 * alpha-tdep.c (alpha_register_reggroup_p): New.
4954 (alpha_gdbarch_init): Register it.
4956 2003-06-02 Andrew Cagney <cagney@redhat.com>
4958 * dwarfread.c: Eliminate "register"
4959 (decode_die_type): Eliminate assignment within "if".
4960 (struct_type, decode_array_element_type): Ditto.
4961 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
4962 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
4963 (decode_modified_type, completedieinfo): Ditto.
4964 * block.c: Eliminate "register".
4965 (blockvector_for_pc_sect): Eliminate assignment within "if".
4966 * cp-support.h (struct symbol): Opaque declaration.
4967 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
4969 2003-06-01 Richard Henderson <rth@redhat.com>
4971 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
4972 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
4974 2003-06-01 Adam Fedor <fedor@gnu.org>
4976 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
4977 * gdbarch.[ch]: Regenerate.
4978 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
4979 (hppa_gdbarch_init): Set it in the gdbarch vector.
4980 * i386-tdep.c (i386_fetch_pointer_argument): New
4981 (i386_gdbarch_init): Set it into gdbarch.
4982 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
4983 (rs6000_gdbarch_init): Set it in gdbarch.
4984 * sparc-tdep.c (sparc_fetch_pointer_argument): New
4985 (sparc_gdbarch_init): Set it in gdbarch.
4987 2003-06-01 Andrew Cagney <cagney@redhat.com>
4989 * defs.h (extract_address): Delete declaration.
4990 * findvar.c (extract_address): Delete function.
4991 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
4992 extract_address with the inline equivalent,
4993 extract_unsigned_integer.
4994 (xstormy16_extract_struct_value_address): Ditto.
4995 (xstormy16_pointer_to_address): Ditto.
4996 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
4997 * v850-tdep.c (v850_push_arguments): Ditto.
4998 (v850_extract_return_value): Ditto.
4999 (v850_extract_struct_value_address): Ditto.
5000 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
5001 (sparcnbsd_get_longjmp_target_64): Ditto.
5002 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
5003 (get_longjmp_target): Ditto.
5004 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
5005 (sh64_extract_struct_value_address): Ditto.
5006 (sh_push_arguments): Ditto.
5007 (sh64_push_arguments): Ditto.
5008 * remote-vxsparc.c (vx_read_register): Ditto.
5009 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
5010 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
5011 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
5012 * mipsv4-nat.c (get_longjmp_target): Ditto.
5013 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
5014 * mips-nat.c (get_longjmp_target): Ditto.
5015 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
5016 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
5017 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
5018 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
5019 * irix5-nat.c (get_longjmp_target): Ditto.
5020 * irix4-nat.c (get_longjmp_target): Ditto.
5021 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
5022 (ia64_push_arguments): Ditto.
5023 * hpux-thread.c (hpux_thread_store_registers): Ditto.
5024 * h8300-tdep.c (h8300_push_arguments): Ditto.
5025 (h8300_store_return_value): Ditto.
5026 (h8300_extract_struct_value_address): Ditto.
5027 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
5028 (frv_push_arguments): Ditto.
5029 * avr-tdep.c (avr_pointer_to_address): Ditto.
5030 (avr_push_arguments): Ditto.
5031 * arm-tdep.c (arm_push_dummy_call): Ditto.
5032 (arm_get_longjmp_target): Ditto.
5033 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
5034 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
5035 (alpha_get_longjmp_target): Ditto.
5037 * solib-irix.c (extract_mips_address): Inline extract_address,
5038 replacing it with extract_signed_integer.
5039 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5040 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
5041 (first_link_map_member, open_symbol_file_object): Ditto.
5042 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
5043 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
5044 (LM_NEXT, LM_NAME): Ditto.
5046 2003-06-01 Richard Henderson <rth@redhat.com>
5048 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
5049 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
5050 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
5051 (alpha_cannot_store_register): Likewise.
5052 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
5053 * alpha-nat.c (supply_gregset): Likewise.
5054 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
5056 2003-06-01 Andrew Cagney <cagney@redhat.com>
5058 * infcall.c (call_function_by_hand): Update comment on
5059 DEPRECATED_DUMMY_WRITE_SP.
5061 * mips-tdep.c (mips_gdbarch_init): Do not set
5062 deprecated_dummy_write_sp.
5063 (mips_eabi_push_dummy_call): Set the SP register.
5064 (mips_o64_push_dummy_call): Set the SP register.
5065 (mips_o32_push_dummy_call): Set the SP register.
5066 (mips_n32n64_push_dummy_call): Set the SP register.
5068 2003-06-01 Richard Henderson <rth@redhat.com>
5070 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
5071 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
5072 (supply_gregset): Likewise.
5073 * alpha-tdep.c (alpha_store_return_value): Likewise.
5074 (alpha_get_longjmp_target): Likewise.
5075 (alpha_register_name): Constify array.
5076 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
5077 deprecated_register_size, deprecated_register_bytes,
5078 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
5079 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
5080 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5082 2003-06-01 Richard Henderson <rth@redhat.com>
5084 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
5085 from arg_reg_buffer to regcache to avoid double conversion.
5087 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5089 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
5091 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
5092 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
5094 2003-06-01 Richard Henderson <rth@redhat.com>
5096 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
5097 (decode_frame_entry): Set it. Skip FDE augmentation.
5099 2003-06-01 Richard Henderson <rth@redhat.com>
5101 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
5102 not overlapping PC_REGNUM.
5104 2003-06-01 Richard Henderson <rth@redhat.com>
5106 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
5107 alpha_push_arguments. Don't dump argument register data to
5108 the target stack. Fix float and 128-bit long double semantics.
5109 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
5110 (alpha_fix_call_dummy): Remove.
5111 (alpha_call_dummy_words): Remove.
5112 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
5114 2003-06-01 Richard Henderson <rth@redhat.com>
5116 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
5118 2003-06-01 Andrew Cagney <cagney@redhat.com>
5120 * mips-tdep.c (is_mips16_addr): New function.
5121 (make_mips16_addr, unmake_mips16_addr): New functions.
5122 (pc_is_mips16, mips_fetch_instruction): Use.
5123 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
5124 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
5125 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
5126 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
5128 * config/mips/tm-mips.h: Update copyright.
5129 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
5130 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
5131 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
5132 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
5133 (TM_PRINT_INSN_MACH): Delete.
5134 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
5136 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
5137 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
5138 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
5139 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
5140 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
5141 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
5142 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
5143 mips*-*-riscos* and mips*-*-sysv* onto mips.
5144 * config/mips/mips64.mt: New file.
5145 * config/mips/mips.mt: New file.
5146 * config/mips/littlemips.mt: Delete file.
5147 * config/mips/decstation.mt: Delete file.
5148 * config/mips/vr4300el.mt: Delete file.
5149 * config/mips/vr5000el.mt: Delete file.
5150 * config/mips/vr5000.mt: Delete file.
5151 * config/mips/vr4100.mt: Delete file.
5152 * config/mips/vr4xxxel.mt: Delete file.
5153 * config/mips/vr4300.mt: Delete file.
5154 * config/mips/vr4xxx.mt: Delete file.
5155 * config/mips/bigmips.mt: Delete file.
5156 * config/mips/bigmips64.mt: Delete file.
5157 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
5158 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
5159 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
5160 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
5161 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
5163 * config/mips/tm-irix3.h: Ditto.
5164 * config/mips/tm-mipsv4.h: Ditto.
5165 * config/mips/tm-embed.h: Ditto.
5166 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
5168 * config/mips/tm-vr5000el.h: Delete file.
5169 * config/mips/tm-tx39l.h: Delete file.
5170 * config/mips/tm-vr4300el.h: Delete file.
5171 * config/mips/tm-vr4xxxel.h: Delete file.
5172 * config/mips/tm-vr4300.h: Delete file.
5173 * config/mips/tm-vr4100.h: Delete file.
5174 * config/mips/tm-vr4xxx.h: Delete file.
5175 * config/mips/tm-vr5000.h: Delete file.
5176 * config/mips/tm-embedl64.h: Delete file.
5177 * config/mips/tm-embedl.h: Delete file.
5178 * config/mips/tm-embed64.h: Delete file.
5179 * config/mips/tm-bigmips64.h: Delete file.
5180 * config/mips/tm-bigmips.h: Delete file.
5182 2003-06-01 Mark Kettenis <kettenis@gnu.org>
5185 * shnbsd-nat.c: Include "sh-tdep.h".
5187 From Richard Henderson <rth@redhat.com>:
5188 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
5190 2003-05-31 Andrew Cagney <cagney@redhat.com>
5192 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
5193 forward declaration.
5194 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5195 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
5196 (mips_find_saved_regs): Use set_reg_offset.
5197 (mips_frame_init_saved_regs): Delete function.
5198 (mips_pop_frame): Call mips_find_saved_regs instead of
5199 DEPRECATED_FRAME_INIT_SAVED_REGS.
5201 2003-05-31 Andrew Cagney <cagney@redhat.com>
5203 * mips-tdep.c (mips_gdbarch_init): Do not set
5204 deprecated_max_register_raw_size, register_virtual_size, and
5205 deprecated_max_register_virtual_size.
5207 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5209 * i386-tdep.c: Include "dwarf2-frame.h".
5210 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
5211 * Makefile.in (i386-tdep.o): Update dependencies.
5213 * dwarf2-frame.c, dwarf2-frame.h: New files.
5214 * Makefile.in (SFILES): Add dwarf2-frame.c.
5215 (dwarf2_frame_h): Define.
5216 (COMMON_OBS): Add dwarf2-frame.o.
5217 (dwarf2-frame.o): Add dependencies.
5219 2003-05-31 Andreas Jaeger <aj@suse.de>
5221 * x86-64-linux-nat.c: Fix comment.
5223 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5225 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
5228 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
5229 have a sigcontext_addr handler.
5230 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
5231 sigcontext_addr handler.
5233 2003-05-31 Andrew Cagney <cagney@redhat.com>
5235 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
5236 (print_fp_register_row): Replace do_fp_register_row.
5237 (mips_print_fp_register): Add "file" and "frame" parameters.
5238 (mips_print_register): Add "file" and "frame" parameters.
5239 (mips_print_registers_info): Replace mips_do_registers_info.
5240 (mips_gdbarch_init): Set print_registers_info instead of
5241 deprecated_do_registers_info.
5242 (mips_read_fp_register_single): Add "frame" parameter.
5243 (mips_read_fp_register_double): Add "frame" parameter.
5245 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5247 * i386-tdep.c (i386_register_name): Check for MMX registers first.
5248 Fixes a bug where GDB would print the wrong register names for
5249 targets without SSE.
5251 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
5252 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5255 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
5256 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
5257 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5260 From Michal Ludvig <mludvig@suse.cz>:
5261 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
5263 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5264 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5265 I386_ST0_REGNUM): Move here from...
5266 * i386-tdep.c: ... here.
5267 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
5268 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
5269 registers if possible.
5270 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
5271 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
5273 (i386bsd_sc_reg_offset): New variable.
5274 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
5275 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5277 (i386fbsd_sc_reg_offset): New variable.
5278 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
5280 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
5282 (i386fbsd4_sc_reg_offset): New variable.
5283 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
5284 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5286 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
5287 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
5288 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
5290 (i386nbsd_sc_reg_offset): New variable.
5291 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
5292 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5294 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
5296 (i386obsd_sc_reg_offset): New variable.
5297 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
5298 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
5300 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
5301 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
5302 for frame pointer offset in `struct sigcontext'.
5304 2003-05-31 Andrew Cagney <cagney@redhat.com>
5306 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
5307 architecture methods call_dummy_words, sizeof_call_dummy_words,
5308 push_return_address, store_struct_return, and fix_call_dummy. Set
5309 push_dummy_call instead of deprecated_push_arguments.
5310 (mips_store_struct_return): Delete function.
5311 (mips_fix_call_dummy): Delete function.
5312 (mips_push_return_address): Delete function.
5313 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
5314 RA_REGNUM and T9_REGNUM.
5315 (mips_n32n64_push_dummy_call): Ditto for
5316 mips_n32n64_push_arguments.
5317 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
5318 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
5320 2003-05-31 Andrew Cagney <cagney@redhat.com>
5322 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
5323 "dummy_addr" to "bp_addr".
5324 * infcall.c (call_function_by_hand): Pass "funaddr" to
5325 gdbarch_push_dummy_call.
5326 * gdbarch.h, gdbarch.c: Re-generate.
5327 * i386-tdep.c (i386_push_dummy_call): Update.
5328 * arm-tdep.c (arm_push_dummy_call): Update.
5329 * d10v-tdep.c (d10v_push_dummy_call): Update.
5331 2003-05-31 Mark Kettenis <kettenis@gnu.org>
5333 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
5334 variable declarations.
5335 (x86_64_register_number, x86_64_register_name): Remove prototypes.
5336 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
5337 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
5338 x86_64_init_frame_pc, x86_64_init_frame_pc,
5339 x86_64_function_has_prologue): Remove prototypes.
5340 (X86_64_NUM_GREGS): New define.
5341 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
5342 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
5343 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
5344 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
5345 XMM1_REGNUM): Remove defines.
5346 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
5347 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
5348 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
5349 X86_64_XMM1_REGNUM): New defines.
5350 (struct x86_64_register_info): Renamed from `struct
5351 register_info'. Remove `size' member.
5352 (x86_64_register_info_table): Remove variable.
5353 (x86_64_register_info): New variable.
5354 (X86_64_NUM_REGS): New define.
5355 (X86_64_NUM_GREGS): Remove define.
5356 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
5357 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
5359 (x86_54_dwarf2_reg_to_regnum): Remove function.
5360 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
5361 (x86_64_dwarf_reg_to_regnum): New function.
5362 (x86_64_register_name): Rewrite.
5363 (x86_64_register_raw_size): Remove function.
5364 (x86_64_register_byte_table): Remove variable.
5365 (x86_64_register_byte): Remove function.
5366 (x86_64_register_virtual_type): Remove function.
5367 (x86_64_register_type): New function.
5368 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
5369 x86_64_register_convert_to_raw): Remove functions.
5370 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
5371 (x86_64_use_struct_convention): Make static. Adjust for renamed
5373 (x86_64_frame_init_saved_regs): Remove function.
5374 (x86_64_push_arguments): Make static. Change to accept a regcache
5376 (x86_64_store_return_value, x86_64_extract_return_value): Make
5377 static. Rewrite based on i386 counterparts.
5378 (x86_64_push_dummy_call): New function.
5379 (X86_64_NUM_SAVED_REGS): New define.
5380 (x86_64_register_number): Remove function.
5381 (x86_64_store_struct_return): Remove function.
5382 (x86_64_frameless_function_invocation,
5383 x86_64_function_has_prologue): Remove functions.
5384 (PROLOG_BUFSIZE): Remove define.
5385 (struct x86_64_frame_cache): New structure.
5386 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
5387 x86_64_frame_cache, x86_64_frame_this_id,
5388 x86_64_frame_prev_register, x86_64_frame_p,
5389 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
5390 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
5392 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
5394 (x86_64_skip_prologue): Rewrite in terms of
5395 x86_64_analyze_prologue.
5396 (x86_64_frame_base_address): New function.
5397 (x86_64_frame_base): New variable.
5398 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
5399 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
5400 set deprecated_fp_regnum, deprecated_register_size,
5401 deprecated_register_bytes, register_raw_size, register_byte,
5402 register_virtual_type, register_convertiable,
5403 register_convert_to_virtual, convert_to_raw,
5404 deprecated_get_saved_register, deprecated_target_read_fp,
5405 deprecated_push_arguments, deprecated_push_return_address,
5406 deprecated_pop_frame, deprecated_store_struct_return,
5407 deprecated_frame_init_saved_regs, deprecated_frame_chain,
5408 frameless_function_invocation, deprecated_frame_saved_pc,
5409 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
5410 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
5411 deprecated_init_frame_pc and virtual_frame_pointer. Call
5412 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
5413 and x86_64_frame_p. Call frame_base_set_default to register
5415 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
5416 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
5417 (_initialize_x86_64_tdep): Remove function.
5418 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
5419 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
5420 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
5422 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
5423 (x86_64_linux_sigcontext_addr): Rewrite.
5424 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
5425 x86_64_linux_frame_saved_pc): Remove functions.
5426 (x86_64_linux_pc_in_sigtramp): Renamed from
5427 x86_64_linux_in_sigtramp. Try harder to recognize a signal
5429 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
5431 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
5432 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5433 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
5434 (x86_64_regmap): Rename to regmap.
5435 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
5437 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
5439 (x86_64_fxsave_offset): Remove function.
5440 (supply_fpregset): Simply call x86_64_supply_fxsave.
5441 (fill_fpregset): Simply call x86_64_fill_fxsave.
5442 (fetch_inferior_registers, store_inferior_registers): Avoid
5443 asignment in if-statement.
5444 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
5445 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
5446 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
5447 (fetch_core_registers): Remove function.
5448 (linux_elf_core_fns): Remove.
5449 (offsetoff): Don't define.
5450 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
5451 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
5452 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
5454 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
5455 protection against multiple includes instead of NM_X86_64_h. Add
5456 various comments. Include "config/nm-linux.h". Don't include
5458 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
5459 GET_THREAD_SIGNALS): Remove defines.
5460 (x86_64_register_u_addr, kernel_u_size,
5461 lin_thread_get_thread_signals): Remove prototypes.
5462 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
5463 [HAVE_LINK_H]: Don't include "solib.h".
5464 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
5465 * config/i386/tm-x86-64linux.h: Fix comments.
5466 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
5467 x86-64-tdep.o): Update dependencies.
5469 2003-05-30 Andrew Cagney <cagney@redhat.com>
5471 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
5472 Change parameter type to a "struct regcache *".
5474 * gdbarch.sh: Regardless of the multi-arch level, always define
5475 the macro when not already defined.
5476 * gdbarch.h, gdbarch.c: Re-generate.
5478 2003-05-30 Richard Henderson <rth@redhat.com>
5480 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
5481 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
5482 (alpha_mdebug_frame_this_id): Likewise.
5483 (alpha_mdebug_frame_prev_register): Likewise.
5484 (alpha_mdebug_frame_base_address): Likewise.
5485 (alpha_mdebug_frame_locals_address): Likewise.
5486 (alpha_mdebug_frame_args_address): Likewise.
5487 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
5488 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
5489 (alpha_heuristic_frame_unwind_cache): Make static; add missing
5491 (alpha_heuristic_frame_this_id): Make static.
5492 (alpha_heuristic_frame_prev_register): Likewise.
5493 (alpha_heuristic_frame_base_address): Likewise.
5494 * alpha-tdep.h: Update.
5496 2003-05-30 Mark Kettenis <kettenis@gnu.org>
5498 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
5499 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
5501 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
5502 * i386-tdep.c: Mark functions that are 64-bit safe as such.
5503 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
5504 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
5505 I386_ST0_REGNUM): New defines.
5506 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
5507 codestream_get): Remove define.
5508 (codestream_next_addr, condestream_addr, condestream_buf,
5509 codestream_off, codestream_cnt): Remove variables.
5510 (codestream_fill, codestream_seek, codestream_read): Remove
5512 (i386_follow_jump): Rewrite to avoid usage of removed codestream
5514 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
5515 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
5516 i386_frame_saved_pc, i386_saved_pc_after_call,
5517 i386_frame_num_args, i386_frame_init_saved_regs,
5518 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
5519 i386_push_arguments): Remove functions.
5520 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
5521 functionality. Use i386_analyze_prologue instead of
5522 i386_get_frame_setup.
5523 (I386_NUM_SAVED_REGS): New define.
5524 (struct i386_frame_cache): New structure.
5525 (i386_alloc_frame_cache, i386_analyze_struct_return,
5526 i386_skip_probe, i386_analyze_frame_setup,
5527 i386_analyze_register_saves, i386_analyze_prologue,
5528 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
5529 i386_frame_prev_register, i386_sigtramp_frame_cache,
5530 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
5531 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
5532 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
5534 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
5536 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
5537 I386_EAX_REGNUM and I386_EDX_REGNUM.
5538 (i386_extract_return_value, i386_store_return_value): Use
5539 I386_ST0_REGNUM where appropriate.
5540 (i386_extract_struct_value_address): Rewrite to use extract_address.
5541 (i386_svr4_pc_in_sigtramp): Add comment.
5542 (i386_svr4_sigcontext_addr): Rewrite.
5543 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
5545 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
5546 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
5547 of new defines. Set push_dummy_call, don't set
5548 deprecated_push_arguments, deprecated_push_return_address,
5549 deprecated_pop_frame. Don't set parm_boundary. Don't set
5550 deprecated_frame_chain, deprecated_frame_saved_pc,
5551 deprecated_saved_pc_after_call. Set unwind_dummy_id,
5552 save_dummy_frame_tos, unwind_pc. Call
5553 frame_unwind_append_predicate and frame_base_set_default. Don't
5554 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
5555 Don't set frameless_function_invocation. Don't set
5556 deprecated_register_bytes, deprecated_register_size,
5557 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
5558 * i386-linux-tdep.c: Fix formatting in some comments.
5559 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
5560 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
5561 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
5562 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
5563 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
5564 redundant parentheses.
5565 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
5566 (i386_linux_sigcontext_addr): Use it. Rewrite.
5567 (find_minsym_and_objfile): Change name of second argument.
5568 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
5569 changed. Use frame_pc_unwind instead of
5570 DEPRECATED_SAVED_PC_AFTER_CALL.
5571 (i386_linux_init_abi): Don't set deprecated_register_bytes.
5572 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
5573 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
5575 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
5577 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
5578 (_initialize_i386_cygwin_tdep): New prototype.
5579 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
5580 deprecated_frame_chain_valid.
5581 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
5582 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
5583 Rely on the SVR4 defaults.
5584 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
5585 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
5587 2003-05-30 Andrew Cagney <cagney@redhat.com>
5589 * infcall.c (call_function_by_hand): Always call
5590 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
5592 2003-05-30 Richard Henderson <rth@redhat.com>
5594 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
5597 2003-05-29 Jim Blandy <jimb@redhat.com>
5599 Use gdbarch methods for solib stuff on PowerPC Linux.
5600 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
5601 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
5603 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
5604 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
5605 giving the same effect as the #definitions above.
5607 2003-05-29 Adam Fedor <fedor@gnu.org>
5609 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
5610 (find_implementation_from_class): Replace it with the standard
5611 case i.e. do nothing.
5613 2003-05-29 Richard Henderson <rth@redhat.com>
5615 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
5616 (alpha_linux_sigtramp_offset): Use it. Make static.
5617 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
5618 update for new frame model.
5619 * alpha-mdebug-tdep.c: New file.
5620 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
5621 (alpha_osf1_init_abi): Install it.
5622 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
5623 (linked_proc_desc_table): Remove.
5624 (alpha_frame_past_sigtramp_frame): Remove.
5625 (alpha_dynamic_sigtramp_offset): Remove.
5626 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
5627 (alpha_proc_desc_is_dyn_sigtramp): Remove.
5628 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
5629 (push_sigtramp_desc): Remove.
5630 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
5631 (alpha_cannot_store_register): Likewise.
5632 (alpha_sigcontext_addr): Remove.
5633 (alpha_find_saved_regs): Remove.
5634 (alpha_frame_init_saved_regs): Remove.
5635 (alpha_init_frame_pc_first): Remove.
5636 (read_next_frame_reg): Remove.
5637 (alpha_frame_saved_pc): Remove.
5638 (alpha_saved_pc_after_call): Remove.
5639 (temp_proc_desc, temp_saved_regs): Remove.
5640 (alpha_about_to_return): Remove.
5641 (cached_proc_desc): Remove.
5642 (alpha_frame_chain): Remove.
5643 (alpha_print_extra_frame_info): Remove.
5644 (alpha_init_extra_frame_info): Remove.
5645 (alpha_frame_locals_address): Remove.
5646 (alpha_frame_args_address): Remove.
5647 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
5648 (alpha_push_dummy_frame): Remove.
5649 (alpha_pop_frame): Remove.
5650 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
5651 (alpha_read_insn): New.
5652 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
5653 for different insn encodings.
5654 (alpha_in_lenient_prologue): Remove.
5655 (struct alpha_sigtramp_unwind_cache): New.
5656 (alpha_sigtramp_frame_unwind_cache): New.
5657 (alpha_sigtramp_register_address): New.
5658 (alpha_sigtramp_frame_this_id): New.
5659 (alpha_sigtramp_frame_prev_register): New.
5660 (alpha_sigtramp_frame_unwind): New.
5661 (alpha_sigtramp_frame_p): New.
5662 (struct alpha_heuristic_unwind_cache): New.
5663 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
5664 don't count nop insns that occur between functions.
5665 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
5666 heuristic_proc_desc, but without the mdebug wrapping.
5667 (alpha_heuristic_frame_this_id): New.
5668 (alpha_heuristic_frame_prev_register): New.
5669 (alpha_heuristic_frame_unwind): New.
5670 (alpha_heuristic_frame_p): New.
5671 (alpha_heuristic_frame_base_address): New.
5672 (alpha_heuristic_frame_base): New.
5673 (alpha_unwind_dummy_id): New.
5674 (alpha_unwind_pc): New.
5675 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
5676 frame related deprecated initializations; install replacements.
5677 (alpha_dump_tdep): Remove.
5678 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
5679 (alpha_read_insn, alpha_after_prologue,
5680 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
5681 alpha_heuristic_frame_prev_register,
5682 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
5683 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
5684 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
5685 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
5687 2003-05-29 Andrew Cagney <cagney@redhat.com>
5689 * gdb_assert.h (gdb_assert_fail): Provide different definitions
5690 dependant on the availability of ASSERT_FUNCTION.
5691 (ASSERT_FUNCTION): Do not define when there is no function name.
5693 2003-05-29 Kevin Buettner <kevinb@redhat.com>
5695 From Jimi X <jimix@watson.ibm.com>:
5696 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
5698 2003-05-28 Jim Blandy <jimb@redhat.com>
5700 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
5701 argument to ptrace to int; the system headers should give it the
5702 right type, and pointers don't fit in ints on powerpc64-*-*.
5704 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
5706 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
5709 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5711 * stabsread.c (dbx_lookup_type): Make static.
5713 (add_undefined_type): Ditto.
5714 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
5717 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
5719 * hpread.c (hpread_has_name): Make static.
5720 (hpread_psymtab_to_symtab): Ditto.
5721 (file_exists): Ditto.
5722 (hpread_call_pxdb): Ditto.
5723 (hpread_pxdb_needed): Ditto.
5724 (hpread_quick_traverse): Ditto.
5725 (hpread_get_header): Ditto.
5726 (hpread_get_lntt): Ditto.
5727 (hpread_get_slt): Ditto.
5730 2003-05-25 Andreas Schwab <schwab@suse.de>
5732 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
5733 stack_align and deprecated_extra_stack_alignment_needed.
5734 (m68k_stack_align): Delete.
5736 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
5737 (m68k_register_virtual_size): Likewise.
5738 (altos_skip_prologue): Remove obsolete function.
5739 (isi_frame_num_args): Likewise.
5740 (news_frame_num_args): Likewise.
5741 (m68k_fix_call_dummy): Make static.
5742 (m68k_push_dummy_frame): Likewise.
5743 (m68k_pop_frame): Likewise.
5744 (m68k_skip_prologue): Likewise.
5745 (m68k_frame_init_saved_regs): Likewise.
5746 (m68k_saved_pc_after_call): Likewise.
5747 (m68k_get_longjmp_target): Make multi-arch.
5748 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
5749 structure. Register m68k_get_longjmp_target if enabled.
5750 * m68k-tdep.h (struct gdbarch_tdep): Define.
5751 * config/m68k/tm-m68k.h: Don't include "regcache.h".
5753 * Makefile.in (config.status): Also depend on configure.tgt
5755 (m68klinux-tdep.o): Update dependencies.
5756 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
5757 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
5758 (M68K_LINUX_JB_PC): Define.
5759 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
5760 and take additional parameter.
5761 (m68k_linux_sigtramp_saved_pc): Update.
5762 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
5763 m68k_linux_pc_in_sigtramp, in_plt_section,
5764 find_solib_trampoline_target.
5765 * config/m68k/tm-linux.h: Don't include any tm headers.
5766 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
5767 (JB_ELEMENT_SIZE): Likewise.
5769 (GET_LONGJMP_TARGET): Likewise.
5770 (IN_SIGTRAMP): Likewise.
5771 (SVR4_SHARED_LIBS): Define this and include "solib.h".
5773 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5775 * sparc-tdep.c (sparc32_do_push_arguments): New function.
5776 (sparc32_push_arguments): Re-implement by calling
5777 sparc32_do_push_arguments.
5779 2003-05-25 Mark Kettenis <kettenis@gnu.org>
5781 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
5782 SPARC_O1_REGNUM): New defines.
5783 (sparc32_extract_return_value): Rewrite to operate on a regcache.
5784 (sparc32_store_return_value): New function.
5785 (sparc_extract_struct_value_address): Rewrite to operate on a
5787 (sparc_gdbarch_init): Don't set
5788 deprecated_extract_struct_value_address. Set
5789 extract_struct_value_address instead. Don't set
5790 deprecated_extract_return_value and deprecated_store_return_value
5791 for 32-bit targets. Set extract_return_value and
5792 store_return_value instead.
5793 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
5794 DEPRECTAED_EXTRACT_RETURN_VALUE,
5795 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
5796 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
5797 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
5798 (sparc_store_return_value): Remove prototype.
5799 (sparc32_store_return_value): New prototype.
5800 (sparc32_extract_return_value, sparc_extract_struct_value_address):
5803 2003-05-24 Mark Kettenis <kettenis@gnu.org>
5805 * sparcnbsd-tdep.c: Include "gdb_string.h".
5807 2003-05-23 Andrew Cagney <cagney@redhat.com>
5809 * p-valprint.c (pascal_val_print): Replace extract_address with
5810 the inline equivalent extract_unsigned_integer.
5811 * jv-valprint.c (java_value_print): Ditto.
5812 * ada-valprint.c (ada_val_print_1): Ditto.
5813 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
5815 2003-05-23 Theodore A. Roth <troth@openavr.org>
5817 * blockframe.c (frameless_look_for_prologue): Remove unused
5818 after_prologue variable.
5820 2003-05-23 Mark Kettenis <kettenis@gnu.org>
5822 * blockframe.c (get_pc_function_start): Rewrite to avoid
5823 asignments in if-statements.
5825 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
5827 Committed by Elena Zannoni <ezannoni@redhat.com>.
5828 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
5829 files, don't relocate absolute symbols (and do use mst_abs).
5831 2003-05-23 Andrew Cagney <cagney@redhat.com>
5833 * objc-lang.c: Include "gdb_assert.h".
5834 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
5835 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
5836 (gdb_check, gdb_check_fatal): Delete functions.
5837 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
5839 (parse_selector, parse_method, find_methods, find_imps): Ditto.
5840 * Makefile.in (objc-lang.o): Update dependencies.
5842 2003-05-22 Ian Lance Taylor <ian@airs.com>
5844 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
5845 with fprintf_filtered, not fprintf_unfiltered.
5847 2003-05-22 Andrew Cagney <cagney@redhat.com>
5849 * stack.c (frame_info): Inline extract_address, replacing it with
5850 extract_unsigned_integer.
5851 * findvar.c (unsigned_pointer_to_address): Ditto.
5852 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
5853 * dwarf2expr.c (dwarf2_read_address): Ditto.
5854 * frame.c (frame_pc_unwind): Update comment.
5855 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
5857 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
5859 * infptrace.c (detach): Call print_sys_errmsg rather than
5860 perror_with_name to issue warning message when errno is non-zero
5861 after calling ptrace detach.
5863 2003-05-21 J. Brobecker <brobecker@gnat.com>
5865 * config/pa/tm-hppa.h: Delete some unused macros. Move some
5866 macro definitions from here...
5867 * hppa-tdep.c: ...to there.
5869 2003-05-20 Kevin Buettner <kevinb@redhat.com>
5871 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
5872 register_ptrace_addr(). Fix all callers.
5874 2003-05-21 Andreas Schwab <schwab@suse.de>
5876 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5878 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
5880 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
5881 (_initialize_m68k_linux_tdep): New function.
5882 (m68k_linux_frame_saved_pc): Make static.
5883 (m68k_linux_extract_return_value): Likewise.
5884 (m68k_linux_store_return_value): Likewise.
5885 (m68k_linux_extract_struct_value_address): Likewise.
5886 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
5888 (DEPRECATED_STORE_RETURN_VALUE): Remove.
5889 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5890 (DEPRECATED_FRAME_SAVED_PC): Remove.
5892 2003-05-20 Kris Warkentin <kewarken@qnx.com>
5894 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
5895 regset numbering rather than our own.
5897 2003-05-19 David Carlton <carlton@bactrian.org>
5899 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
5901 2003-05-19 David Carlton <carlton@bactrian.org>
5903 Partial fix for PR c++/827.
5904 * cp-support.h: Include symtab.h.
5905 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
5906 * cp-namespace.c: Update contributors.
5907 (cp_lookup_symbol_nonlocal): New.
5908 (lookup_namespace_scope, cp_lookup_symbol_namespace)
5909 (lookup_symbol_file): Ditto.
5910 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
5911 * block.h: Declare block_scope, block_using, block_global_block.
5912 * block.c (block_scope): New.
5913 (block_using, block_global_block): Ditto.
5914 * Makefile.in (cp_support_h): Depend on symtab_h.
5915 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
5917 2003-05-19 David Carlton <carlton@bactrian.org>
5919 * language.h (struct language_defn): Add 'la_value_of_this'
5920 and 'la_lookup_symbol_nonlocal' members.
5921 * symtab.h: Declare basic_lookup_symbol_nonlocal,
5922 lookup_symbol_static, lookup_symbol_global,
5923 lookup_symbol_aux_block.
5924 * symtab.c (lookup_symbol_aux): Call language hooks to determine
5925 if we should search fields of this and how to do static/global
5927 (lookup_symbol_aux_block): Make extern.
5928 (basic_lookup_symbol_nonlocal): New.
5929 (lookup_symbol_static, lookup_symbol_global): Ditto.
5930 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
5931 'la_lookup_symbol_nonlocal' members.
5932 * c-lang.c (c_language_defn, cplus_language_defn)
5933 (asm_language_defn, minimal_language_defn): Ditto.
5934 * jv-lang.c (java_language_defn): Ditto.
5935 * language.c (unknown_language_defn, auto_language_defn)
5936 (local_language_defn): Ditto.
5937 * m2-lang.c (m2_language_defn): Ditto.
5938 * objc-lang.c (objc_language_defn): Ditto.
5939 * scm-lang.c (scm_language_defn): Ditto.
5940 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
5941 * p-lang.c (pascal_language_defn): Ditto for both.
5942 * Makefile.in (f-lang.o): Depend on value_h.
5945 2003-05-19 David Carlton <carlton@bactrian.org>
5947 * block.h: Declare block_static_block.
5948 * block.c (block_static_block): New.
5949 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
5950 lookup_symbol_aux_local, calling block_static_block instead.
5951 (lookup_symbol_aux_local): Delete 'static_block' argument.
5953 2003-05-19 David Carlton <carlton@bactrian.org>
5955 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
5957 2003-05-19 Michal Ludvig <mludvig@suse.cz>
5959 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
5960 register numbers mapping.
5962 2003-05-18 Adam Fedor <fedor@gnu.org>
5964 * symtab.c (completion_list_objc_symbol): New function.
5965 (make_symbol_completion_list): Use it to add ObjC symbols
5966 when looking though the list.
5967 (language_search_unquoted_string): New function.
5968 (make_file_symbol_completion_list): Use it.
5970 2003-05-18 Andreas Schwab <schwab@suse.de>
5972 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
5974 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
5975 as m68k_linux_extract_return_value.
5976 (DEPRECATED_STORE_RETURN_VALUE): Define as
5977 m68k_linux_store_return_value.
5978 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
5979 m68k_linux_extract_struct_value_address.
5980 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
5981 get_next_frame, get_frame_base, get_frame_pc.
5982 (m68k_linux_frame_saved_pc): Use get_frame_base.
5983 (m68k_linux_extract_return_value): New function.
5984 (m68k_linux_store_return_value): New function.
5985 (m68k_linux_extract_struct_value_address): New function.
5986 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
5988 * c-exp.y (typebase): Remove duplicate occurence of
5989 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
5990 of lookup_signed_typename.
5992 2003-05-18 Mark Kettenis <kettenis@gnu.org>
5994 * dwarf2loc.c (find_location_expression): Change type of second
5995 argument to `size_t *'.
5996 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
5999 2003-05-18 David Carlton <carlton@bactrian.org>
6001 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
6002 'linkage_name'. Add comment.
6003 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
6005 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
6006 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
6007 (lookup_block_symbol): Ditto.
6009 2003-05-16 Andrew Cagney <cagney@redhat.com>
6011 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
6012 * gdbarch.h, gdbarch.c: Re-generate.
6013 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
6014 * TODO (REGISTER_BYTES): Delete reference.
6015 * alpha-tdep.c (alpha_gdbarch_init): Update.
6016 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6017 * x86-64-tdep.c (x86_64_init_abi): Update.
6018 * vax-tdep.c (vax_gdbarch_init): Update.
6019 * v850-tdep.c (v850_gdbarch_init): Update.
6020 * sparc-tdep.c (sparc_gdbarch_init): Update.
6021 * sh-tdep.c (sh_gdbarch_init): Update.
6022 * s390-tdep.c (s390_gdbarch_init): Update.
6023 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6024 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
6025 (ns32k_gdbarch_init_32382): Update.
6026 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6027 * mcore-tdep.c (mcore_gdbarch_init): Update.
6028 * m68k-tdep.c (m68k_gdbarch_init): Update.
6029 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6030 * ia64-tdep.c (ia64_gdbarch_init): Update.
6031 * i386-tdep.c (i386_gdbarch_init): Update.
6032 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6033 * hppa-tdep.c (hppa_gdbarch_init): Update.
6034 * h8300-tdep.c (h8300_gdbarch_init): Update.
6035 * frv-tdep.c (frv_gdbarch_init): Update.
6036 * cris-tdep.c (cris_gdbarch_init): Update.
6037 * avr-tdep.c (avr_gdbarch_init): Update.
6038 * arm-tdep.c (arm_gdbarch_init): Update.
6039 * sparc-tdep.c (sparc_pop_frame): Update.
6040 * rs6000-tdep.c (rs6000_pop_frame): Update.
6041 * remote.c (init_remote_state): Update.
6042 (remote_prepare_to_store): Update.
6043 * remote-vx.c (vx_prepare_to_store): Update.
6044 * remote-sds.c (sds_fetch_registers): Update.
6045 (sds_prepare_to_store): Update.
6046 * remote-array.c: Update.
6047 * regcache.c (init_legacy_regcache_descr): Update.
6048 (init_regcache_descr): Update.
6049 * mips-tdep.c (mips_eabi_extract_return_value): Update.
6050 (mips_o64_extract_return_value): Update.
6051 * irix5-nat.c (fetch_core_registers): Update.
6052 * irix4-nat.c (fetch_core_registers): Update.
6053 * i386-tdep.h: Update.
6054 * hppa-tdep.c (pa_do_registers_info): Update.
6055 (pa_do_strcat_registers_info): Update.
6056 * cris-tdep.c (cris_register_bytes_ok): Update.
6057 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
6058 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
6059 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
6060 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
6061 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
6062 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
6063 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
6064 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
6065 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
6066 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
6067 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
6068 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
6069 (REGISTER_BYTES_OK): Update.
6070 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
6071 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
6073 2003-05-16 Ian Lance Taylor <ian@airs.com>
6075 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
6076 (vax_print_insn, print_insn_arg): Remove static functions.
6077 (vax_gdbarch_init): Call set_gdbarch_print_insn with
6078 print_insn_vax from opcodes library.
6079 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
6081 2003-05-15 Andrew Cagney <cagney@redhat.com>
6083 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
6084 * target.h (memory_breakpoint_from_pc): Delete declaration.
6085 * mem-break.c (memory_breakpoint_from_pc): Delete function.
6086 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
6087 * monitor.c (monitor_insert_breakpoint): Use
6088 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
6089 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
6090 * gdbarch.h, gdbarch.c: Re-generate.
6091 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
6092 (sparc_gdbarch_init): Set breakpoint_from_pc to
6093 sparc_breakpoint_from_pc.
6094 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
6095 (BREAKPOINT_FROM_PC): Define.
6096 (sparc_breakpoint_from_pc): Declare.
6097 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
6098 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
6099 (BREAKPOINT_FROM_PC): Define.
6100 (BREAKPOINT): Delete macro.
6101 * target.h: Update comment.
6102 * s390-tdep.c (s390_gdbarch_init): Update comments.
6103 * remote.c: Update comments.
6104 * remote-mips.c: Update comments.
6105 * proc-api.c (write_with_trace): Do not check for a breakpoint.
6106 * mem-break.c: Update comment.
6107 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
6108 (ia64_memory_insert_breakpoint): Update.
6109 * config/sparc/tm-sparc.h: Update comment.
6110 * config/pa/tm-hppa64.h: Update comment.
6111 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6112 (rs6000_breakpoint_from_pc): Update.
6113 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
6114 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
6115 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
6116 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
6117 (mips_breakpoint_from_pc): Update.
6118 (mips_dump_tdep): Update.
6120 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
6121 * minsyms.c (lookup_minimal_symbol): Inline
6122 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
6124 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
6125 * p-valprint.c (pascal_object_print_value_fields): Ditto.
6126 * p-lang.c (pascal_printstr): Ditto.
6127 * objc-lang.c (objc_printstr): Ditto.
6128 * m2-lang.c (m2_printstr): Ditto.
6129 * jv-valprint.c (java_print_value_fields): Ditto.
6130 * f-lang.c (f_printstr): Ditto.
6131 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
6132 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
6133 for repeat_count_threshold.
6134 * Makefile.in (cp-valprint.o): Update dependencies.
6136 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
6138 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
6139 (examine_prologue): Support looking through leaf functions, knowing
6140 they start with mov r2,r12. Support skipping over indirect stores
6141 of the input registers. Upon hitting a non-nop branch instruction
6142 or predicated instruction, bail out by setting lim_pc to the current
6143 pc value in the loop. At the end, if the lim_pc value is still
6144 beyond our calculated value and we have trust_limit set,
6145 use the lim_pc value.
6147 2003-05-15 Andrew Cagney <cagney@redhat.com>
6149 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
6150 generic_find_dummy_frame.
6151 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
6152 (deprecated_generic_find_dummy_frame): Update.
6153 (deprecated_read_register_dummy): Update.
6154 * frame.c (deprecated_generic_get_saved_register): Update.
6156 2003-05-15 Theodore A. Roth <troth@openavr.org>
6158 * avr-tdep.c (avr_breakpoint_from_pc): New function.
6159 (avr_gdbarch_init): Set breakpoint_from_pc method.
6161 2003-05-15 Andrew Cagney <cagney@redhat.com>
6163 * regcache.c (build_regcache): Set deprecated_register_valid
6165 (deprecated_grub_regcache_for_register_valid): Delete function.
6166 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
6169 2003-05-15 David Carlton <carlton@bactrian.org>
6171 Committed by Elena Zannoni <ezannoni@redhat.com>
6172 * symtab.c (lookup_symbol_aux): Delete calls to
6173 lookup_symbol_aux_minsyms.
6174 (lookup_symbol_aux_minsyms): Comment out function and
6175 prototype. Delete lookup by mangled name.
6177 2003-05-14 Kevin Buettner <kevinb@redhat.com>
6179 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
6180 correctly indicate an empty stack and ``stack_allocated'' to the
6181 indicate the number of elements initially allocated.
6182 (dwarf_expr_grow_stack): Simplify method for computing new
6183 stack size. Don't loop infinitely if ``stack_len'' is zero.
6184 (execute_stack_op): Move ``ctx->in_reg'' initialization
6185 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
6186 be used in conjuction with DW_OP_piece. Revise error message
6189 2003-05-14 Theodore A. Roth <troth@openavr.org>
6191 * MAINTAINERS: Update my email address.
6192 * avr-tdep.c: Ditto.
6194 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
6196 * symtab.h (enum domain_enum): Rename from namespace_enum.
6197 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
6198 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
6199 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
6200 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
6201 TYPES_NAMESPACE, METHODS_NAMESPACE.
6202 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
6203 (struct symbol, struct partial_symbol): Rename field
6204 'namespace_enum namespace' to 'domain_enum domain'.
6205 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
6206 Delete old define kludge for namespace.
6208 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
6209 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
6210 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
6211 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
6212 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
6213 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
6214 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
6215 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
6216 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
6217 occurrences of the above.
6219 2003-05-14 Ian Lance Taylor <ian@airs.com>
6221 * Makefile.in (install-only): Use $(SHELL) when running
6224 2003-05-13 Ian Lance Taylor <ian@airs.com>
6226 * MAINTAINERS (write after approval): Add myself.
6228 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
6229 second and third arguments.
6230 * ser-tcp.c (_initialize_ser_tcp): Likewise.
6231 * ser-unix.c (_initialize_ser_hardwire): Likewise.
6233 2003-05-13 Andrew Cagney <cagney@redhat.com>
6235 * defs.h (store_address): Delete declaration.
6236 findvar.c (store_address): Delete function.
6237 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
6238 store_unsigned_integer.
6239 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
6240 * v850-tdep.c (v850_push_arguments): Ditto.
6241 * sparc-tdep.c (sparc_get_saved_register): Ditto.
6242 * sh-tdep.c (sh64_get_saved_register): Ditto.
6243 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
6244 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
6245 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
6246 (mips_get_saved_register): Ditto.
6247 * ia64-tdep.c (ia64_get_saved_register): Ditto.
6248 (find_func_descr, ia64_push_arguments): Ditto.
6249 * i386-tdep.c (i386_push_arguments): Ditto.
6250 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6251 * frv-tdep.c (frv_push_arguments): Ditto.
6252 * frame.c (legacy_saved_regs_prev_register): Ditto.
6253 (deprecated_generic_get_saved_register): Ditto.
6254 * findvar.c (unsigned_address_to_pointer): Ditto.
6255 * dwarf2read.c (dwarf2_const_value): Ditto.
6256 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
6257 * alpha-tdep.c (alpha_push_arguments): Ditto.
6259 2003-05-12 J. Brobecker <brobecker@gnat.com>
6261 * NEWS: Mention that the hppa-hpux port has been partially
6262 multiarched (32bit ABIT only, so far).
6264 2003-05-11 Andrew Cagney <cagney@redhat.com>
6266 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
6267 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
6268 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
6269 sim/testsuite/sim/arm/misaligned2.ms, and
6270 sim/testsuite/sim/arm/misaligned3.ms.
6271 * disasm.h (struct ui_file): Add opaque struct declaration.
6272 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
6273 * frame.h (struct ui_file): Ditto.
6275 2003-05-11 Mark Kettenis <kettenis@gnu.org>
6277 * value.h: Pretty print.
6279 2003-05-10 Mark Kettenis <kettenis@gnu.org>
6281 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
6283 2003-05-08 Andrew Cagney <cagney@redhat.com>
6285 * regcache.h (max_register_size): Delete declaration.
6286 * regcache.c (max_register_size): Delete function.
6287 (struct regcache_descr): Delete field "max_register_size".
6288 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
6289 registers fit in MAX_REGISTER_SIZE.
6290 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
6291 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
6292 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
6293 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
6294 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
6295 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
6296 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
6297 * dve3900-rom.c, hppa-tdep.c: Ditto.
6299 2003-05-08 David Carlton <carlton@math.stanford.edu>
6301 * valops.c (push_word): Fix typo.
6303 2003-05-08 Andrew Cagney <cagney@redhat.com>
6305 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
6306 * gdbarch.h: Re-generate.
6307 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
6308 (legacy_max_register_raw_size): Delete declaration.
6309 * regcache.c (legacy_max_register_raw_size): Delete function.
6310 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
6311 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
6312 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
6313 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
6314 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
6315 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
6316 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
6317 * findvar.c, dwarf2cfi.c: Ditto.
6319 2003-05-08 Andrew Cagney <cagney@redhat.com>
6321 * mips-tdep.c (read_signed_register): New function, moved to here
6323 (read_signed_register_pid): Ditto.
6324 * regcache.c (read_signed_register_pid): Delete function, moved to
6326 (read_signed_register): Ditto.
6327 * regcache.h (read_signed_register): Delete declaration.
6328 (read_signed_register_pid): Delete declaration.
6330 2003-05-08 Andrew Cagney <cagney@redhat.com>
6332 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
6333 * gdbarch.h: Re-generate.
6334 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
6335 (legacy_max_register_virtual_size): Delete declaration.
6336 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
6337 * d10v-tdep.c (d10v_print_registers_info): Ditto.
6338 * tracepoint.c (memrange_sortmerge): Ditto.
6339 * sparc-tdep.c (sparc_print_registers): Ditto.
6340 * regcache.c (legacy_max_register_virtual_size): Delete function.
6342 2002-05-08 J. Brobecker <brobecker@gnat.com>
6344 * fork-child.c (escape_bang_in_quoted_argument): New function.
6345 (fork_inferior): Escape '!' characters in quoted arguments
6348 2003-05-08 J. Brobecker <brobecker@gnat.com>
6350 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
6351 the language of the CU is not currently supported by GDB.
6353 2003-05-08 J. Brobecker <brobecker@gnat.com>
6355 * defs.h (language): Add language_minimal enum value.
6356 * c-lang.c (minimal_language_defn): New language definition.
6357 (_initialize_c_language): Add the new minimal language to the list
6358 of languages known to GDB.
6360 2003-05-08 Kevin Buettner <kevinb@redhat.com>
6362 * frame.c (get_frame_type): Don't attempt to lazily initialize
6363 frame's unwinder for legacy frames.
6365 2003-05-07 Andrew Cagney <cagney@redhat.com>
6367 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
6368 and "regcache" parameters.
6369 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
6371 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6373 * dwarf2read.c (dwarf_decode_lines): Only use output of
6374 check_cu_functions() when calling record_line(). Do not update
6375 the current address.
6377 2003-05-07 Andrew Cagney <cagney@redhat.com>
6379 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
6382 2003-05-07 Jim Blandy <jimb@redhat.com>
6384 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
6385 'maint info symtabs' and 'maint info psymtabs'.
6386 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
6387 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
6388 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
6389 Declarations updated.
6390 * maint.c (maintenance_list_command): Delete.
6391 (_initialize_maint_cmds): Update calls to add_cmd.
6392 * gdbcmd.h (maintenancelistlist): Delete declaration.
6393 * cli/cli-cmds.c (maintenancelistlist): Delete.
6394 (init_cmd_lists): Don't initialize it.
6395 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
6397 2003-05-07 Andrew Cagney <cagney@redhat.com>
6399 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
6401 (d10v_print_registers_info): Update.
6402 (d10v_dmap_register, d10v_imap_register): Delete functions.
6403 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
6404 and "imap_register".
6405 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
6406 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
6407 * arch-utils.c (generic_remote_translate_xfer_address): Add
6408 "regcache" and "gdbarch" parameters.
6409 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
6410 parameter. Change class to multi-arch.
6411 * gdbarch.h, gdbarch.c: Re-generate.
6412 * remote.c (remote_xfer_memory): Use
6413 gdbarch_remote_translate_xfer_address.
6415 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
6417 * infrun.c (prev_pc): Move declaration ahead of proceed().
6418 (proceed): Refresh prev_pc value before resuming.
6419 (stop_stepping): Remove code to refresh prev_pc.
6421 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6423 * nto-tdep.c: Removed stray comment.
6425 2003-05-06 Kris Warkentin <kewarken@qnx.com>
6427 * i386-nto-tdep.c: Fix old K&R function definitions.
6428 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
6429 Also change add_show_from_set() call to add_setshow_cmd().
6430 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
6432 2003-05-05 Andrew Cagney <cagney@redhat.com>
6434 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
6435 (fprint_dummy_frames): New function.
6436 (maintenance_print_dummy_frames): New function.
6437 (_initialize_dummy_frame): Add command "maint print dummy-frames".
6438 * frame.c (fprint_frame_id): Make global.
6439 * frame.h (fprint_frame_id): Declare.
6440 * Makefile.in (dummy-frame.o): Update dependencies.
6442 2003-05-05 Andrew Cagney <cagney@redhat.com>
6444 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
6445 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
6446 SIZEOF_CALL_DUMMY_WORDS.
6447 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
6448 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
6449 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
6450 CALL_DUMMY_BREAKPOINT_OFFSET.
6451 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
6452 CALL_DUMMY_START_OFFSET.
6453 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
6454 * gdbarch.h, gdbarch.c: Re-generate.
6455 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
6456 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
6457 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
6458 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
6459 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
6460 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
6461 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
6462 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
6463 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
6464 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
6465 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
6466 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
6467 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
6468 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
6469 * config/sparc/tm-sparc.h: Update.
6471 2003-05-05 Kris Warkentin <kewarken@qnx.com>
6473 * configure.tgt: Add i[3456]86-*-nto*.
6474 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
6475 * nto-tdep.c: New file. Neutrino target support routines.
6476 * nto-tdep.h: New file. Neutrino target header.
6477 * config/tm-qnxnto.h: New file.
6478 * config/i386/i386nto.mt: New file.
6479 * config/i386/tm-i386nto.h: New file.
6481 2003-05-04 Andrew Cagney <cagney@redhat.com>
6483 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
6484 (load_infrun_state): Ditto.
6485 (struct thread_info): Drop "prev_func_name" field.
6486 * thread.c (load_infrun_state): Update.
6487 (save_infrun_state): Update.
6488 * infrun.c (prev_func_name): Delete variable.
6489 (init_wait_for_inferior): Do not clear prev_func_name.
6490 (stop_stepping, keep_going, context_switch): Do not swap
6492 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
6493 instead of PC_IN_SIGTRAMP.
6495 2003-05-04 Andrew Cagney <cagney@redhat.com>
6497 * sentinel-frame.c (sentinel_frame_prev_register): Replace
6498 REGISTER_BYTE with register_offset_hack.
6499 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
6500 that REGISTER_BYTE is consistent with the regcache.
6501 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
6502 * gdbarch.h, gdbarch.c: Regenerate.
6504 2003-05-04 Mark Kettenis <kettenis@gnu.org>
6506 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
6507 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
6509 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
6511 2003-05-03 J. Brobecker <brobecker@gnat.com>
6513 From Thierry Schneider <tpschneider1@yahoo.com>
6514 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
6515 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
6516 (mi-cmd-symbol.o): Add rule.
6518 2003-05-03 Andrew Cagney <cagney@redhat.com>
6520 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
6521 comments noteing that it replaces the old FIX_CALL_DUMMY code.
6522 * gdbarch.h, gdbarch.c: Re-generate.
6523 * d10v-tdep.c (d10v_push_dummy_code): New function.
6524 (d10v_gdbarch_init): Set push_dummy_code.
6525 * infcall.c (legacy_push_dummy_code): New function.
6526 (generic_push_dummy_code): New function.
6527 (push_dummy_code): New function.
6528 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
6529 instead of dummy_addr, to push_dummy_call. Move call to
6530 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
6532 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
6534 2003-05-03 Andrew Cagney <cagney@redhat.com>
6536 * disasm.h (print_insn): Declare.
6537 * disasm.c (init_gdb_disassemble_info): New function.
6538 (gdb_disassembly): Call init_gdb_disassemble_info.
6539 (gdb_print_insn): New function.
6540 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
6541 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
6542 * mcore-tdep.c: Include "disasm.h"
6543 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
6544 * d10v-tdep.c: Include "disasm.h".
6545 (display_trace): Call gdb_print_insn, instead of print_insn.
6546 (print_insn): Delete function.
6547 * printcmd.c: Include "disasm.h".
6548 (print_insn): Delete function.
6549 (print_formatted): Call gdb_print_insn, instead of print_insn.
6550 * Makefile.in (printcmd.o): Update dependencies.
6551 (mcore-tdep.o, d10v-tdep.o): Ditto.
6553 2003-05-02 Andrew Cagney <cagney@redhat.com>
6555 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
6556 PC_REGNUM, re-indent.
6557 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
6558 PC_REGNUM isn't set.
6560 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
6561 * gdbarch.h, gdbarch.c: Re-generate.
6562 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
6563 register_virtual_size, pc_regnum, or register_bytes.
6564 (D10V_PC_REGNUM): Rename _PC_REGNUM.
6565 (d10v_register_type): Use D10V_PC_REGNUM.
6566 (d10v_print_registers_info, d10v_read_pc): Ditto.
6567 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
6568 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
6570 2003-05-02 David Carlton <carlton@bactrian.org>
6572 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
6573 the name with mstrsave.
6575 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
6577 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
6578 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
6579 (host_charset_name, target_charset_name): New vars for use by
6581 (host_charset_enum, target_charset_enum): New enums for set/show
6583 (set_charset_sfunc, set_host_charset_sfunc,
6584 set_target_charset_sfunc): New functions.
6585 (set_host_charset, set_target_charset): Make static.
6586 (list_charsets, set_host_charset_command,
6587 set_target_charset_command): Delete functions.
6588 (show_charset_command): Rewrite as....
6589 (show_charset): Hook this up with the set/show command mechanism.
6590 (_initialize_charset): Change names of charsets to match the
6591 set/show enums. Use host_charset_name and target_charset_name.
6592 Use set/show mechanism for charset, host-charset, target-charset
6593 commands. Do not make 'show host-charset' and 'show
6594 target-charset' be aliases of 'show charset'.
6596 * charset.h (set_host_charset, set_target_charset): Don't export,
6597 they are not used outside the file.
6599 2003-05-01 Andrew Cagney <cagney@redhat.com>
6601 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
6602 (gdb_disassembly): Make "di" non static, always initialize and
6603 cleanup. Always use dis_asm_read_memory.
6604 (gdb_dis_asm_read_memory): Delete function.
6606 2003-05-01 Andrew Cagney <cagney@redhat.com>
6608 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
6609 (d10v_gdbarch_init): Set frame_align instead of stack_align.
6611 2003-04-30 Andrew Cagney <cagney@redhat.com>
6613 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
6614 "tm_print_insn_info".
6615 (TARGET_PRINT_INSN_INFO): Delete macro.
6616 (dis_asm_read_memory): Delete function declaration.
6617 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6618 (tm_print_insn_info): Delete variable definition.
6619 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
6620 * gdbarch.h, gdbarch.c: Re-generate.
6621 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
6622 "deprecated_tm_print_insn_info".
6623 * mcore-tdep.c (mcore_dump_insn): Ditto.
6624 * mips-tdep.c (mips_gdbarch_init): Ditto.
6625 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
6626 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
6627 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
6628 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
6629 instead of TARGET_PRINT_INSN_INFO, add comment.
6630 * s390-tdep.c (s390_get_frame_info): Instead of
6631 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
6632 (s390_check_function_end, s390_is_sigreturn): Ditto.
6633 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
6634 (dis_asm_memory_error, dis_asm_print_address): Ditto.
6635 * disasm.c: Include "gdbcore.h".
6636 (_initialize_disasm): New function, initialize
6637 "deprecated_tm_print_insn_info".
6638 (deprecated_tm_print_insn_info): New variable.
6639 (dis_asm_read_memory): Moved from "corefile.c", made static.
6640 (dis_asm_print_address, dis_asm_memory_error): Ditto.
6641 * Makefile.in (disasm.o): Update dependencies.
6643 2003-04-30 Andrew Cagney <cagney@redhat.com>
6645 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
6647 2003-04-29 Adam Fedor <fedor@gnu.org>
6649 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
6650 * infcall.c (find_function_addr): Make non-static.
6651 * infcall.h (find_function_addr): Declare.
6652 * Makefile.in (eval.o): Update dependencies.
6654 2003-04-28 Adam Fedor <fedor@gnu.org>
6656 * symtab.c (symbol_find_demangled_name): Check for and demangle
6658 (symbol_init_demangled_name): Init for language_objc as well.
6660 2003-04-28 Andrew Cagney <cagney@redhat.com>
6662 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
6663 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
6664 * gdbarch.h, gdbarch.c: Re-generate.
6665 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
6666 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
6667 * inferior.h (deprecated_read_fp): Rename read_fp.
6668 (generic_target_read_fp): Delete declaration.
6669 * regcache.c (generic_target_read_fp): Delete function.
6670 (deprecated_read_fp): Replace read_fp, use
6671 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
6672 * d10v-tdep.c (d10v_read_fp): Delete function.
6673 (d10v_gdbarch_init): Do not set deprecated_read_fp.
6675 * sparc-tdep.c (sparc_gdbarch_init): Do not set
6676 deprecated_target_read_fp to generic_target_read_fp.
6677 * sh-tdep.c (sh_gdbarch_init): Ditto.
6678 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6679 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6680 * frv-tdep.c (frv_gdbarch_init): Ditto.
6682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
6683 deprecated_fp_regnum.
6684 * x86-64-tdep.c (x86_64_init_abi): Ditto.
6685 * vax-tdep.c (vax_gdbarch_init): Ditto.
6686 * v850-tdep.c (v850_gdbarch_init): Ditto.
6687 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6688 * sh-tdep.c (sh_gdbarch_init): Ditto.
6689 * s390-tdep.c (s390_gdbarch_init): Ditto.
6690 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6691 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6692 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6693 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6695 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6696 * i386-tdep.c (i386_gdbarch_init): Ditto.
6697 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6698 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6699 * frv-tdep.c (frv_gdbarch_init): Ditto.
6700 * cris-tdep.c (cris_gdbarch_init): Ditto.
6701 * avr-tdep.c (avr_gdbarch_init): Ditto.
6702 * arm-tdep.c (arm_gdbarch_init): Ditto.
6703 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6705 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
6706 * v850-tdep.c (v850_gdbarch_init): Ditto.
6707 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6708 * sh-tdep.c (sh_gdbarch_init): Ditto.
6709 * s390-tdep.c (s390_gdbarch_init): Ditto.
6710 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6711 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6712 * mips-tdep.c (mips_gdbarch_init): Ditto.
6713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6714 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6715 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6716 * frv-tdep.c (frv_gdbarch_init): Ditto.
6717 * avr-tdep.c (avr_gdbarch_init): Ditto.
6718 * arm-tdep.c (arm_gdbarch_init): Ditto.
6720 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
6721 DEPRECATED_FP_REGNUM.
6722 (vax_push_dummy_frame, vax_pop_frame): Ditto.
6723 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
6724 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6725 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
6726 (sparc32_register_virtual_type): Ditto.
6727 * sh-tdep.c (sh64_frame_chain): Ditto.
6728 (sh64_get_saved_register, sh64_pop_frame): Ditto.
6729 (sh_nofp_frame_init_saved_regs): Ditto.
6730 (sh64_nofp_frame_init_saved_regs): Ditto.
6731 (sh_fp_frame_init_saved_regs): Ditto.
6732 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6733 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6734 * procfs.c (procfs_fetch_registers): Ditto.
6735 (procfs_store_registers): Ditto.
6736 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
6737 (store_inferior_registers, fetch_core_registers): Ditto.
6738 (fetch_kcore_registers, clear_regs): Ditto.
6739 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
6740 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
6741 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
6742 * nlm/i386.c (do_status): Ditto.
6743 * mipsv4-nat.c (supply_gregset): Ditto.
6744 * mips-tdep.c: Ditto for comments.
6745 * mips-nat.c (fetch_inferior_registers): Ditto.
6746 (store_inferior_registers, fetch_core_registers): Ditto.
6747 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
6748 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
6749 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
6750 (i386_do_pop_frame, i386_register_type): Ditto.
6751 * hppa-tdep.c (hppa_frame_chain): Ditto.
6752 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
6753 (hppa_pop_frame, hppa_read_fp): Ditto.
6754 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
6755 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
6756 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
6757 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
6758 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
6759 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
6760 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
6761 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
6762 * blockframe.c: Ditto for comments.
6763 * arch-utils.h: Ditto for comments.
6764 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
6765 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
6766 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
6767 * alpha-tdep.h: Ditto for comments.
6768 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
6769 (alpha_cannot_store_register): Ditto.
6770 (alpha_push_dummy_frame): Ditto.
6771 * alpha-nat.c (supply_gregset): Ditto.
6773 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
6774 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
6775 * config/sparc/tm-sparc.h: Update comment.
6777 * hppa-tdep.c (hppa_init_extra_frame_info): Use
6778 deprecated_read_fp instead of TARGET_READ_FP.
6779 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
6780 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
6781 * sparc-tdep.c (sparc_init_extra_frame_info): Use
6782 deprecated_read_fp instead of read_fp.
6783 * s390-tdep.c (s390_push_arguments): Ditto.
6784 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6785 * frame.h: Ditto in comments.
6786 * frame.c (legacy_get_prev_frame): Ditto.
6787 * dummy-frame.c (dummy_frame_this_id): Ditto.
6788 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6790 2003-04-28 Andrew Cagney <cagney@redhat.com>
6792 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
6793 * gdbarch.h, gdbarch.c: Re-generate.
6794 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
6795 * vax-tdep.c (_initialize_vax_tdep): Update.
6796 * v850-tdep.c (_initialize_v850_tdep): Update.
6797 * sparc-tdep.c (_initialize_sparc_tdep): Update.
6798 * s390-tdep.c (_initialize_s390_tdep): Update.
6799 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
6800 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
6801 * mips-tdep.c (_initialize_mips_tdep): Update.
6802 * mcore-tdep.c (_initialize_mcore_tdep): Update.
6803 * m68k-tdep.c (_initialize_m68k_tdep): Update.
6804 * ia64-tdep.c (_initialize_ia64_tdep): Update.
6805 * hppa-tdep.c (_initialize_hppa_tdep): Update.
6806 * h8300-tdep.c (_initialize_h8300_tdep): Update.
6807 * frv-tdep.c (_initialize_frv_tdep): Update.
6808 * cris-tdep.c (cris_delayed_get_disassembler): Update.
6809 (_initialize_cris_tdep): Update.
6810 * arch-utils.c (legacy_print_insn): Update.
6811 * alpha-tdep.c (_initialize_alpha_tdep): Update.
6813 2003-04-26 Adam Fedor <fedor@gnu.org>
6815 * linespec.c (decode_objc): New function to decode ObjC calls
6816 (decode_line_1): Check for ObjC calls (using decode_objc)
6817 * Makefile (linespec.o): Update dependencies.
6819 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
6821 * breakpoint.h (struct breakpoint_ops): New.
6822 (struct breakpoint): Add ops member.
6824 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
6825 (mention): Use new breakpoint ops member.
6826 (set_raw_breakpoint): Initialize ops field to NULL.
6827 (print_exception_catchpoint, print_one_exception_catchpoint)
6828 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
6829 (gnu_v3_exception_catchpoint_ops): New.
6830 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
6832 2003-04-25 Adam Fedor <fedor@gnu.org>
6834 * Makefile.in (COMMON_OBS): Add objc-lang.o
6836 2003-04-25 Andrew Cagney <cagney@redhat.com>
6838 * d10v-tdep.c (print_insn): Delete function.
6839 (display_trace): Use TARGET_PRINT_INSN.
6840 (_initialize_d10v_tdep): Do not set tm_print_insn.
6841 (d10v_gdbarch_init): Set print_insn.
6843 2003-04-25 Andrew Cagney <cagney@redhat.com>
6845 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
6846 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
6847 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
6848 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
6849 (nr_dmap_regs, a0_regnum): ... new functions.
6850 (d10v_print_registers_info): Use a0_regnum, use register_size.
6851 (d10v_register_byte): Delete function.
6852 (d10v_register_raw_size): Delete function.
6853 (d10v_register_type): Use a0_regnum.
6854 (d10v_print_registers_info): Use a0_regnum.
6855 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
6856 (d10v_gdbarch_init): Do not set register_byte or
6857 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
6858 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
6860 (trace_command): Use XCALLOC.
6861 (print_insn): Delete reference to tm_print_insn.
6862 (saved_regs_unwinder): Use store_unsigned_integer instead of
6864 * frame.h (FRAME_OBSTACK_CALLOC): Define
6866 2003-04-25 David Carlton <carlton@bactrian.org>
6868 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
6870 2003-04-24 Adam Fedor <fedor@gnu.org>
6872 * objc-lang.c: Include "valprint.h"
6873 * Makefile.in (objc-lang.o): Update dependencies.
6875 2003-04-24 Adam Fedor <fedor@gnu.org>
6877 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
6878 architecture dependant compilation and mark as unimplemented
6879 (until they get put in the gdbarch vector).
6881 2003-04-23 David Carlton <carlton@bactrian.org>
6883 * cp-support.c (cp_find_first_component): Accept 'operator' in
6886 2003-04-23 Andrew Cagney <cagney@redhat.com>
6888 * infcall.c (call_function_by_hand): Eliminate redundant
6889 indentation. Move "saved_async" and "old_cleanups" to where they
6892 2003-04-23 Andrew Cagney <cagney@redhat.com>
6894 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
6895 and "buffer". Move the "name" code to where it is needed.
6897 2003-04-23 Andrew Cagney <cagney@redhat.com>
6899 * infcall.c (call_function_by_hand): Move variables "start_sp",
6900 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
6901 code to ON_STACK switch branch.
6903 2003-04-23 Andrew Cagney <cagney@redhat.com>
6905 * infcall.c (call_function_by_hand): Make declaration of "i",
6906 "sal", "bpt" and "old_sp" more local to their use. Delete #if
6909 2003-04-23 Andrew Cagney <cagney@redhat.com>
6911 * infcall.c (call_function_by_hand): Delete variable
6912 "n_method_args". Localize "param_type"'s declaration to the loop
6913 that it is used. Reinstate code assigning to said variable -
6914 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
6915 Rationalize code using "param_type".
6917 2003-04-22 Andrew Cagney <cagney@redhat.com>
6919 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
6920 compute the breakpoint address. Only call FIX_CALL_DUMMY when
6921 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
6922 to DEPRECATED_PUSH_RETURN_ADDRESS.
6924 2003-04-22 Kevin Buettner <kevinb@redhat.com>
6926 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
6927 on the DWARF2 register number prior to fetching a register.
6929 2003-04-22 J. Brobecker <brobecker@gnat.com>
6931 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
6932 Update all the tests using SOFT_FLOAT considering the fact that
6933 this macro was always set to 0.
6934 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
6935 considering the fact that this macro was always set to 0.
6936 * hppa-tdep.h (hppa_store_return_value): Likewise.
6937 (hppa_extract_return_value): Likewise.
6939 2003-04-22 J. Brobecker <brobecker@gnat.com>
6941 * config/pa/tm-hppa.h: Remove obsolete code, was used by
6942 the hppa-pro target only.
6944 2003-04-21 J. Brobecker <brobecker@gnat.com>
6946 Ongoing multi-arch conversion effort for HP/UX:
6947 * config/pa/tm-hppa.h: Move all macro that are no longer
6948 defined now that GDB_MULTI_ARCH is now set to 1 from here...
6949 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
6951 2003-04-21 J. Brobecker <brobecker@gnat.com>
6953 * config/pa/tm-hppa.h: Obsolete a section that was only used
6956 2003-04-21 J. Brobecker <brobecker@gnat.com>
6958 Ongoing multi-arch conversion for HP/UX.
6959 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
6960 if already defined (allows hppa64 to stay non-multiarched for now).
6961 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
6963 2003-04-21 Andrew Cagney <cagney@redhat.com>
6965 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
6967 2003-04-21 Andrew Cagney <cagney@redhat.com>
6969 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
6970 "i386_num_mmx_regs".
6972 2003-04-21 Andrew Cagney <cagney@redhat.com>
6974 * infcall.c: New file.
6975 * infcall.h: New file.
6976 * valarith.c: Include "infcall.h".
6977 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
6978 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
6979 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
6980 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
6981 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
6982 (SFILES): Add "infcall.c"
6983 (COMMON_OBS): Add "infcall.o".
6984 (infcall.o): Specify dependencies.
6985 * value.h (call_function_by_hand): Delete declaration.
6986 * inferior.h (run_stack_dummy): Delete declaration.
6987 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
6988 (run_stack_dummy): Move to "infcall.c", merged into
6989 call_function_by_hand.
6990 * valops.c (call_function_by_hand): Moved to "infcall.c".
6991 (find_function_addr, value_arg_coerce): Ditto.
6992 (unwindonsignal_p, coerce_float_to_double): Ditto.
6993 (_initialize_valops): Move "set/show coerce-float-to-double", and
6994 "set/show unwindonsignal" commands to "infcall.c".
6995 * v850-tdep.c, target.h: Update comments.
6996 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
6997 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
6998 (sh64_init_extra_frame_info): Update comments.
6999 * mn10300-tdep.c: Update comments.
7000 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
7001 * config/sparc/tm-sparc.h: Update comments.
7002 * breakpoint.h: Update comments.
7003 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
7004 * arm-tdep.c: Update comment.
7006 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7008 * i386-tdep.c (i386_num_register_names): New variable.
7009 (i386_num_mmx_regs): Renamed from mmx_num_regs.
7010 (MM0_REGNUM): Remove redundant parentheses in define.
7011 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
7012 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
7013 i386_mxcsr_regnum_p): Remove redundant parentheses.
7014 (i386_register_name): Use i386_num_register_names.
7016 * i386-tdep.c (i386_extract_return_value,
7017 i386_store_return_value): Correct check for availability of
7018 floating-point registers.
7020 * i386-tdep.c (i386_frame_num_args): Remove function.
7021 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
7023 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
7024 mmx_regnum_to_fp_regnum. Adjust all callers.
7026 * i386-tdep.c (i386_get_longjmp_target): Use
7027 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
7028 and TARGET_CHAR_BIT. Use extract_typed_address instead of
7031 2003-04-19 Mark Kettenis <kettenis@gnu.org>
7033 * core-regset.c: Update comments to reflect reality. Re-order
7035 (fetch_core_registers): Use switch instead of if. Remove
7036 redundant prototype.
7038 2003-04-18 Jim Blandy <jimb@redhat.com>
7040 * s390-tdep.c (s390_frame_align): New function.
7041 (s390_gdbarch_init): Register it with the gdbarch object.
7043 2003-04-17 Richard Henderson <rth@redhat.com>
7045 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
7047 2003-04-17 Michael Snyder <msnyder@redhat.com>
7048 Karen Bennet <bennet@redhat.com>
7050 Committed by Elena Zannoni <ezannoni@redhat.com>
7051 * gdb_gcore.sh: New script to create a core dump of a process.
7053 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
7055 * values.c (value_being_returned): Don't fetch the return
7056 value if the return type is void.
7058 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7060 * thread-db.c: Reindented.
7062 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
7064 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
7065 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
7092 2003-04-16 Kevin Buettner <kevinb@redhat.com>
7094 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
7095 the size of ``long double'' to 16, instead of 8.
7097 2003-04-16 Mark Kettenis <kettenis@gnu.org>
7099 * i386-linux-nat.c: Add some whitespace to make things more
7101 (fetch_register, store_register, fetch_inferior_registers,
7102 store_inferior_registers): Get rid of assignment in if-statement.
7103 (store_register): Fix typo in error message.
7105 2003-04-16 Andrew Cagney <cagney@redhat.com>
7107 * utils.c (xmmalloc): Always allocate something, matches
7108 libiberty/xmalloc's semantics.
7109 (xmrealloc, xmcalloc): Ditto.
7111 2003-04-16 Andrew Cagney <cagney@redhat.com>
7113 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
7115 (get_frame_type): Initialize unwind and type when needed.
7116 (get_frame_id, frame_register_unwind): Ditto.
7118 2003-04-16 Andrew Cagney <cagney@redhat.com>
7120 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
7122 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
7123 * sparcl-stub.c: Obsolete file.
7124 * config/sparc/tm-sparclet.h: Obsolete file.
7125 * sparclet-stub.c: Obsolete file.
7126 * sparclet-rom.c: Obsolete file.
7127 * sparcl-tdep.c: Obsolete file.
7128 * config/sparc/tm-sparclite.h: Obsolete file.
7129 * config/sparc/sparclite.mt: Obsolete file.
7130 * config/sparc/sparclet.mt: Obsolete file.
7131 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
7132 sparc86x-*-* obsolete.
7134 2003-04-15 David Carlton <carlton@math.stanford.edu>
7136 * Makefile.in (SFILES): Add cp-namespace.c.
7137 (COMMON_OBS): Add cp-namespace.o.
7138 (block.o): Depend on gdb_obstack_h and cp_support_h.
7139 (buildsym.o): Depend on cp_support_h.
7140 (cp-namespace.o): New.
7141 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
7142 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
7143 (dwarf2read.o): Depend on cp_support_h.
7144 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
7145 * dwarf2read.c (process_die): Set processing_has_namespace_info,
7146 processing_current_namespace.
7147 (read_namespace): Update processing_current_namespace; check for
7148 anonymous namespaces.
7149 (dwarf2_name): New function.
7150 (dwarf2_extension): Ditto.
7151 * cp-support.h: Update copyright, contributors.
7152 Add inclusion guards.
7153 Add opaque declaration for structs obstack, block, symbol.
7154 (struct using_direct): New struct.
7155 Add declarations for cp_find_first_component,
7156 cp_entire_prefix_len, processing_has_namespace_info,
7157 processing_current_namespace, cp_is_anonymous,
7158 cp_add_using_directive, cp_initialize_namespace,
7159 cp_finalize_namespace, cp_set_block_scope,
7160 cp_scan_for_anonymous_namespaces.
7161 * cp-namespace.c: New file.
7162 * cp-support.c: Update copyright.
7163 Include ctype.h, gdb_assert.h, gdbcmd.h.
7164 New variable maint_cplus_cmd_list.
7165 (cp_find_first_component): New function.
7166 (cp_entire_prefix_len, maint_cplus_command)
7167 (first_component_command, _initialize_cp_support): Ditto.
7168 * buildsym.c: Include cp-support.h.
7169 New variable using_list.
7170 (add_symbol_to_list): Check for anonymous namespaces.
7171 (finish_block): Set block's scope.
7172 (start_symtab): Initialize C++ namespace support.
7173 (end_symtab): Finalize C++ namespace support.
7174 * block.h: Add opaque declarations for structs
7175 block_namespace_info, using_direct, and obstack.
7176 Add declarations for block_set_scope and block_set_using.
7177 (struct block): Add 'language_specific' member.
7178 (BLOCK_NAMESPACE): New macro.
7179 * block.c: Include gdb_obstack.h and cp-support.h.
7180 (struct block_namespace_info): New struct.
7181 (block_set_scope): New function.
7182 (block_set_using, block_initialize_namespace): Ditto.
7184 2003-04-14 Kevin Buettner <kevinb@redhat.com>
7186 * solib-svr4.c (svr4_have_link_map_offsets): New function.
7187 (locate_base): Return early if there aren't any link map offsets.
7188 (svr4_solib_create_inferior_hook): Warn if shared library support
7191 2003-04-14 David Carlton <carlton@math.stanford.edu>
7193 * symtab.c (symbol_set_names): Add prefix when storing Java names
7194 in hash table. Fix for PR java/1039.
7196 2003-04-14 David Carlton <carlton@math.stanford.edu>
7198 * symtab.c (symbol_set_names): Rename 'name' arg to
7199 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
7200 * symtab.h: Change 'name' argument in declaration of
7201 symbol_set_names to 'linkage_name'.
7202 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
7204 2003-04-14 Andrew Cagney <cagney@redhat.com>
7206 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
7207 return the fully sign-extended register value.
7208 (get_frame_pointer): Ditto.
7209 (mips_pop_frame): Initialize "proc_desc" after checking for a
7212 2003-04-14 Andrew Cagney <cagney@redhat.com>
7214 * mips-tdep.c (mips_push_dummy_frame): Delete function.
7215 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
7216 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
7217 (mips_push_register): Delete function.
7218 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
7221 2003-04-14 Jim Blandy <jimb@redhat.com>
7223 * symmisc.c: #include "gdb_regex.h".
7224 (maintenance_list_symtabs, maintenance_list_psymtabs): New
7226 * maint.c (maintenance_list_command): New function.
7227 (_initialize_maint_cmds): Register the above as commands.
7228 * symtab.h (maintenance_list_symtabs,
7229 maintenance_list_psymtabs): New declarations.
7230 * cli/cli-cmds.c (maintenancelistlist): New variable.
7231 (init_cmd_lists): Initialize it.
7232 * cli/cli-cmds.h (maintenancelistlist): New declaration.
7233 * gdbcmd.h (maintenancelistlist): New declaration.
7234 * Makefile.in (symmisc.o): Update dependencies.
7236 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
7238 * s390-nat.c: Include asm/types.h for addr_t.
7240 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
7242 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
7243 actually incoming type.
7245 2003-04-13 Andrew Cagney <cagney@redhat.com>
7247 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
7248 get_next_frame and get_frame_saved_regs.
7250 2003-04-13 Andrew Cagney <cagney@redhat.com>
7252 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
7253 of gdbarch_num_regs.
7255 2003-04-13 Andrew Cagney <cagney@redhat.com>
7257 * frame.h: Mention what replaced what in "struct frame_info".
7258 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
7259 deprecated_update_frame_base_hack and
7260 deprecated_update_frame_pc_hack.
7261 * hppa-tdep.c: Ditto.
7263 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7265 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
7266 to read_reg and update its comment. Remove regnum member.
7267 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
7268 Don't call read_reg when setting in_reg. Call read_reg to get
7269 the frame base if it's in a register. Return the register number
7270 on the stack instead of in the context. Remove extra arguments
7272 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
7273 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
7274 the register number on the expression stack.
7275 (needs_frame_read_reg): Remove extra arguments.
7277 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7279 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
7281 (execute_stack_op): All callers updated.
7282 * dwarf2expr.h: Add prototype for dwarf2_read_address.
7283 * dwarf2loc.c (find_location_expression): New function.
7284 (dwarf_expr_frame_base): Call it.
7285 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
7286 (dwarf2_tracepoint_var_ref): New function, broken out from
7287 locexpr_tracepoint_var_ref.
7288 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
7290 (loclist_read_variable, loclist_read_needs_frame): New functions.
7291 (loclist_describe_location, loclist_tracepoint_var_ref): New
7293 (dwarf2_loclist_funcs): New struct location_funcs.
7294 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
7295 (struct dwarf2_locexpr_baton): Add comments.
7296 (dwarf2_loclist_funcs): New extern.
7297 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
7298 base_address and base_known.
7299 (dwarf_loc_buffer): New variable.
7300 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
7301 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
7302 (dwarf2_has_info): Initialize dwarf_loc_offset.
7303 (dwarf2_build_psymtabs): Read in .debug_loc.
7304 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
7306 (psymtab_to_symtab_1): Likewise. Move base address calculation
7308 (dwarf2_get_pc_bounds): ... here. Use the base address from
7310 (dwarf2_symbol_mark_computed): Handle location lists.
7312 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
7314 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
7315 if the linkage name demangled successfully.
7317 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7319 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
7320 disassmbly_flavour): Removed.
7322 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
7324 2003-04-13 Mark Kettenis <kettenis@gnu.org>
7326 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
7328 2003-04-12 Andrew Cagney <cagney@redhat.com>
7330 * frame.h (struct frame_info): Move definition from here ...
7331 * frame.c (struct frame_info): ... to here.
7333 2003-04-12 Andrew Cagney <cagney@redhat.com>
7335 * gdbthread.h (save_infrun_state): Delete parameter
7337 (struct thread_info): Delete field "prev_func_start".
7338 (load_infrun_state): Ditto.
7339 * thread.c (load_infrun_state, save_infrun_state): Update.
7340 * infrun.c (prev_func_start): Delete variable.
7341 (context_switch, init_wait_for_inferior): Update.
7342 (stop_stepping, keep_going): Update.
7344 2003-04-12 Andrew Cagney <cagney@redhat.com>
7346 * gdbarch.sh: Add missing opaque declarations.
7347 * gdbarch.h: Regnerate.
7348 * symtab.h: Add missing opaque declarations.
7349 * value.h, target.h, symfile.h, stabsread.h: Ditto.
7350 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
7351 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
7352 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
7353 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
7354 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
7355 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
7356 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
7357 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
7358 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
7359 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
7360 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
7361 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
7363 2003-04-11 Andrew Cagney <cagney@redhat.com>
7365 * frame.c (get_frame_id): Return this frame's "id".
7366 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
7368 (legacy_saved_regs_this_id): Replace function body with
7370 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
7371 FRAME_OBSTACK_ZALLOC.
7372 (create_new_frame): Mark the frame ID as valid.
7374 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
7376 * Makefile.in (libbfd_h): Added missing setting.
7377 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
7378 according to the selected ABI.
7380 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
7382 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
7384 2003-04-11 Andrew Cagney <cagney@redhat.com>
7386 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
7387 SAVED_PC_AFTER_CALL.
7388 * gdbarch.h, gdbarch.c: Regenerate.
7389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7390 * x86-64-tdep.c (x86_64_init_abi): Update.
7391 * vax-tdep.c (vax_gdbarch_init): Update.
7392 * v850-tdep.c (v850_gdbarch_init): Update.
7393 * sparc-tdep.c (sparc_gdbarch_init): Update.
7394 * sh-tdep.c (sh_gdbarch_init): Update.
7395 * s390-tdep.c (s390_gdbarch_init): Update.
7396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7397 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7398 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7399 * mips-tdep.c (mips_gdbarch_init): Update.
7400 * mcore-tdep.c (mcore_gdbarch_init): Update.
7401 * m68k-tdep.c (m68k_gdbarch_init): Update.
7402 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7403 * ia64-tdep.c (ia64_gdbarch_init): Update.
7404 (ia64_saved_pc_after_call): Update declaration.
7405 * i386ly-tdep.c (i386lynx_init_abi): Update.
7406 * i386-tdep.c (i386_gdbarch_init): Update.
7407 * hppa-tdep.c (hppa_gdbarch_init): Update.
7408 * h8300-tdep.c (h8300_gdbarch_init): Update.
7409 * frv-tdep.c (frv_gdbarch_init): Update.
7410 * cris-tdep.c (cris_gdbarch_init): Update.
7411 * avr-tdep.c (avr_gdbarch_init): Update.
7412 * arm-tdep.c (arm_gdbarch_init): Update.
7413 * alpha-tdep.c (alpha_gdbarch_init): Update.
7414 * ns32knbsd-nat.c (frame_num_args): Update.
7415 * ns32k-tdep.c (umax_frame_num_args): Update.
7416 * mips-tdep.c (mips_init_frame_pc_first): Update.
7417 * infrun.c (step_over_function): Update.
7418 * i386-linux-tdep.c (skip_hurd_resolver): Update.
7419 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
7420 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7421 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7422 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7423 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
7424 * arm-linux-tdep.c (skip_hurd_resolver): Update.
7425 * arch-utils.c (init_frame_pc_default): Update.
7426 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7427 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
7430 2003-04-11 Andrew Cagney <cagney@redhat.com>
7432 * i387-tdep.c: Update copyright.
7433 (i387_to_double): Delete function.
7434 (double_to_i387): Delete function.
7436 2003-04-10 Andrew Cagney <cagney@redhat.com>
7438 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
7439 frame's function's address. Simplify.
7440 (d10v_frame_unwind_cache): Check that the frame's function is
7443 2003-04-10 Jim Blandy <jimb@redhat.com>
7445 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
7446 call to set_gdbarch_deprecated_push_arguments.
7448 2003-04-10 Andrew Cagney <cagney@redhat.com>
7450 * frame.c (fprint_frame_id): New function.
7451 (fprint_frame_type, fprint_frame): New function.
7452 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
7453 (create_sentinel_frame, get_frame_id): Ditto.
7454 (frame_id_p, frame_id_eq): Ditto.
7455 (frame_id_inner, create_new_frame): Ditto.
7456 (legacy_get_prev_frame, get_prev_frame): Ditto.
7457 (deprecated_update_frame_pc_hack): Ditto.
7458 (frame_register_unwind): Ditto.
7459 (deprecated_update_frame_base_hack): Ditto.
7461 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7463 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
7464 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
7465 frame_chain function.
7466 * Makefile.in: Add dependencies due to above change.
7468 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
7470 * blockframe.c (legacy_frame_chain_valid): Move call to
7471 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
7474 2003-04-09 Andrew Cagney <cagney@redhat.com>
7476 * frame.h (struct frame_id): Replace "pc" and "base" with
7477 "stack_addr" and "code_addr". Update comments.
7478 (frame_id_build): Update parameter names and comment.
7479 (struct frame_info): Replace "id_p" and "id" with "this_id".
7480 * dummy-frame.c (dummy_frame_this_id): Update.
7481 * breakpoint.c (print_one_breakpoint): Update.
7482 * frame.c (get_frame_id): Update.
7483 (get_frame_base, frame_id_build): Update.
7484 (create_sentinel_frame, legacy_get_prev_frame): Update.
7485 (deprecated_update_frame_base_hack): Update.
7486 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
7487 (frame_id_inner): Ditto.
7489 2003-04-09 Andrew Cagney <cagney@redhat.com>
7491 * defs.h (gdb_print_host_address): Make "addr" parameter a
7493 * utils.c (gdb_print_host_address): Update.
7495 2003-04-09 Kevin Buettner <kevinb@redhat.com>
7497 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
7498 register number for R0 is 0.
7500 2003-04-09 J. Brobecker <brobecker@gnat.com>
7502 * frame.h (struct gdbarch): Add opaque structure definition
7503 to avoid a compilation warning on LynxOS 4.0.
7505 2003-04-09 Andrew Cagney <cagney@redhat.com>
7507 * frame.h (struct frame_info): Delete field "pc". Replace
7508 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
7510 * frame.c (frame_pc_unwind): Update.
7511 (create_sentinel_frame): Do not set "pc".
7512 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
7513 (get_frame_pc): Call frame_pc_unwind.
7514 (deprecated_update_frame_pc_hack): Update.
7515 (create_new_frame): Use "pc" not "->pc".
7517 2003-04-09 Andrew Cagney <cagney@redhat.com>
7519 * frame.c (get_frame_id): Eliminate code updating "frame".
7520 (legacy_get_prev_frame): Ditto.
7521 (get_frame_base): Return id.base directly.
7522 (deprecated_update_frame_base_hack): Update "id.base".
7523 * frame.h (struct frame_info): Delete field "frame".
7525 2003-04-09 Andrew Cagney <cagney@redhat.com>
7527 * NEWS: Mention that the "Sequent family" is obsolete.
7528 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
7529 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7530 * configure.host: Obsolete i[3456]86-sequent-bsd*,
7531 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
7532 * config/i386/tm-ptx4.h: Obsolete file.
7533 * config/i386/tm-ptx.h: Obsolete file.
7534 * symm-tdep.c: Obsolete file.
7535 * config/i386/symmetry.mt: Obsolete file.
7536 * config/i386/tm-symmetry.h: Obsolete file.
7537 * symm-nat.c: Obsolete file.
7538 * config/i386/nm-symmetry.h: Obsolete file.
7539 * config/i386/xm-symmetry.h: Obsolete file.
7540 * config/i386/symmetry.mh: Obsolete file.
7541 * config/i386/nm-ptx4.h: Obsolete file.
7542 * config/i386/ptx4.mh: Obsolete file.
7543 * config/i386/ptx.mt: Obsolete file.
7544 * config/i386/ptx.mh: Obsolete file.
7545 * config/i386/xm-ptx4.h: Obsolete file.
7546 * config/i386/xm-ptx.h: Obsolete file.
7548 2003-04-09 Andrew Cagney <cagney@redhat.com>
7550 Obsolete mips*-*-mach3*.
7551 * NEWS: Mention that mips*-*-mach3* is obsolete.
7552 * m3-nat.c: Obsolete file.
7553 * config/nm-m3.h: Obsolete file.
7554 * config/mips/tm-mipsm3.h: Obsolete file.
7555 * config/mips/mipsm3.mt: Obsolete file.
7556 * config/mips/mipsm3.mh: Obsolete file.
7557 * config/mips/xm-mipsm3.h: Obsolete file.
7558 * mipsm3-nat.c: Obsolete file.
7559 * configure.host: Obsolete mips-dec-mach3*.
7560 * configure.tgt: Obsolete mips*-*-mach3*.
7562 2003-04-09 Andrew Cagney <cagney@redhat.com>
7564 * doublest.h: Update copyright.
7565 (deprecated_store_floating, deprecated_extract_floating): Rename
7566 store_floating and extract_floating. Update comments.
7567 * doublest.c: Update copyright.
7568 (extract_floating_by_length): Replace extract_floating.
7569 (store_floating_by_length): Replace store_floating.
7570 (deprecated_extract_floating): New function.
7571 (deprecated_store_floating): New function.
7572 (extract_typed_floating): Call extract_floating_by_length.
7573 (store_typed_floating): Call store_floating_by_length.
7574 * x86-64-tdep.c (x86_64_store_return_value): Update.
7575 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
7576 (sh64_extract_return_value): Update.
7577 (sh_sh4_register_convert_to_virtual): Update.
7578 (sh_sh64_register_convert_to_virtual): Update.
7579 (sh_sh4_register_convert_to_raw): Update.
7580 (sh_sh64_register_convert_to_raw): Update.
7581 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
7582 (rs6000_register_convert_to_raw): Update.
7583 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
7584 (ia64_register_convert_to_raw): Update.
7585 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
7586 (REGISTER_CONVERT_TO_VIRTUAL): Update.
7587 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
7588 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
7589 (alpha_register_convert_to_raw): Update.
7591 2003-04-08 Andrew Cagney <cagney@redhat.com>
7593 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
7594 * gdbarch.h, gdbarch.c: Re-generate.
7595 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
7596 (d10v_gdbarch_init): Do not set saved_pc_after_call.
7597 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
7598 conditionally, use frame_pc_unwind as an alternative. Add
7600 * arch-utils.c (init_frame_pc_default): Only call
7601 SAVED_PC_AFTER_CALL when available.
7603 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7605 * infrun.c (stop_soon): Rename from stop_soon_quietly.
7606 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
7607 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
7608 (start_remote): Ditto.
7609 (handle_inferior_event): Ditto.
7610 (save_inferior_status): Ditto.
7611 (restore_inferior_status): Ditto.
7612 * infcmd.c (attach_command): Ditto.
7613 * fork-child.c (startup_inferior): Ditto.
7614 * inferior.h (stop_soon): Rename from stop_soon_quietly.
7615 * alpha-tdep.c (heuristic_proc_start): Ditto.
7616 * mips-tdep.c (heuristic_proc_start): Ditto.
7617 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
7618 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
7619 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
7620 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
7621 * remote-vx.c (vx_create_inferior): Ditto.
7623 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
7625 * infrun.c (stop_soon_quietly): Make it an enum, to better
7626 override the default behavior of handle_inferior_event.
7627 (clear_proceed_status): Update uses of stop_soon_quietly to
7628 reflect that it is now an enum.
7629 (start_remote): Ditto.
7630 (handle_inferior_event): Change logic a bit if stop_soon_quietly
7631 is set to handle the new GNU/Linux kernel behavior for
7632 attach/sigstop. Update uses of stop_soon_quietly.
7633 * inferior.h (enum stop_kind): New enum.
7634 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
7635 Reset normal handle_inferior_event behavior, afterwards.
7636 * fork-child.c (startup_inferior): Update.
7637 * alpha-tdep.c (heuristic_proc_start): Update.
7638 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
7639 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
7640 * solib-osf.c (osf_solib_create_inferior_hook): Update.
7641 * solib-irix.c (irix_solib_create_inferior_hook): Update.
7642 * remote-vx.c (vx_create_inferior): Update.
7643 * mips-tdep.c (heuristic_proc_start): Update.
7645 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
7647 * disasm.c (dump_insns): Move variables inside loop, or they will
7648 be freed more than once, causing wild memory corruptions.
7649 (gdb_disassembly): Look for the substring "-thread",
7650 instead of "-threads" in the target name, to make sure to find
7651 the 'multi-thread' target. Also, make sure we do the right thing
7652 with the "core" target.
7654 2003-04-07 Kevin Buettner <kevinb@redhat.com>
7656 * mips-tdep.c (mips_print_fp_register): New function, created from
7657 do_fp_register_row(). Registers are now (also) printed as hex.
7658 Only one register is printed per row.
7659 (mips_print_register, do_fp_register_row): Print floating point
7660 registers with mips_print_fp_register().
7662 2003-04-06 Andrew Cagney <cagney@redhat.com>
7664 * valprint.h (inspect_it): Add extern declaration.
7665 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
7666 (selectors_info, classes_info): Ditto.
7667 (find_objc_msgcall): Fix indentation.
7668 (objc_printstr): Delete extern declarations.
7670 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
7672 2003-04-06 Andrew Cagney <cagney@redhat.com>
7674 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
7676 * frame.c (legacy_saved_regs_this_id): Update.
7677 (legacy_get_prev_frame): Update.
7678 * xstormy16-tdep.c: Update comment.
7679 * sparc-tdep.c (sparc_frame_chain): Update comment.
7680 * blockframe.c (legacy_frame_chain_valid): Update.
7682 2003-04-06 Andrew Cagney <cagney@redhat.com>
7684 * valprint.c (val_print_type_code_int): Delete #ifdef
7685 PRINT_TYPELESS_INTEGER code.
7687 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
7688 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
7689 multi-arch definition.
7690 * gdbarch.h: Re-generate.
7692 2003-04-05 Andrew Cagney <cagney@redhat.com>
7694 Eliminate FRAME_FIND_SAVED_REGS.
7695 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7696 Change FSR parameter to a pointer.
7697 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
7698 Assume FSR parameter is a pointer.
7699 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
7701 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
7702 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
7703 saved_regs a pointer.
7704 (hppa_frame_saved_pc): Ditto.
7705 (find_dummy_frame_regs): Make frame_saved_regs a pointer
7706 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
7708 (restore_pc_queue): Make fsr a pointer.
7709 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
7710 (hppa_frame_chain): Make saved_regs a pointer, call
7711 hppa_frame_init_saved_regs.
7712 * sparc-tdep.c: Include "gdb_assert.h".
7713 (sparc_frame_find_saved_regs): Replace internal_error with
7715 * remote-vxsparc.c (vx_read_register): Delete reference to
7716 FRAME_FIND_SAVED_REGS.
7717 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
7718 * gdbarch.h: Regenerate.
7719 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
7720 (deprecated_get_frame_saved_regs): Delete declaration.
7721 (struct frame_saved_regs): Delete definition.
7722 * frame.c (deprecated_get_frame_saved_regs): Delete function.
7723 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
7724 (hppa_frame_find_saved_regs): Delete declaration.
7725 (FRAME_FIND_SAVED_REGS): Delete macro.
7726 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
7727 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
7728 FRAME_FIND_SAVED_REGS in comment.
7730 2003-04-05 Andrew Cagney <cagney@redhat.com>
7732 * frame.c (frame_func_unwind, get_frame_func): New functions.
7733 * frame.h (get_frame_func, frame_func_unwind): Declare.
7734 (struct frame_info): Add field "prev_func" for caching the
7735 previous frame's function address.
7736 * arm-tdep.c (arm_frameless_function_invocation): Combine
7737 get_pc_function_start and get_frame_pc into get_frame_func.
7738 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
7739 (sh64_nofp_frame_init_saved_regs): Ditto.
7740 * s390-tdep.c (s390_function_start): Ditto.
7741 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
7742 (rs6000_frameless_function_invocation): Ditto.
7743 (rs6000_frame_saved_pc): Ditto.
7744 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
7745 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
7746 * i386-tdep.c (i386_frameless_signal_p): Ditto.
7747 (i386_frame_init_saved_regs): Ditto.
7748 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
7749 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
7750 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
7751 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7752 * blockframe.c (frameless_look_for_prologue): Ditto.
7754 2003-04-05 Andrew Cagney <cagney@redhat.com>
7756 * frame.c (legacy_get_prev_frame): Link prev to next at the
7757 function start. Update comments.
7759 2003-04-05 Andrew Cagney <cagney@redhat.com>
7761 * frame.c (get_frame_id): Update comment.
7762 (legacy_get_prev_frame): Update comment.
7763 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
7764 * gdbarch.h: Regenerate.
7765 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
7766 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
7768 2003-04-05 Andrew Cagney <cagney@redhat.com>
7770 * stack.c (print_frame_info): Use get_frame_pc.
7772 2003-04-04 Andrew Cagney <cagney@redhat.com>
7774 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
7775 the frame's type from the unwinder.
7776 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
7777 (create_new_frame, legacy_get_prev_frame): When the unwinder's
7778 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
7779 (get_frame_base_address): Use get_frame_type.
7780 (get_frame_locals_address, get_frame_args_address): Ditto.
7781 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
7782 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
7783 (struct frame_info): Add comment explaining why the frame contains
7785 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
7786 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
7787 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
7789 * frame-unwind.h: Include "frame.h".
7790 (struct frame_unwind): Add "type" field.
7791 * Makefile.in (frame_unwind_h): Add $(frame_h).
7793 2003-04-04 Andrew Cagney <cagney@redhat.com>
7795 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
7796 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
7797 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
7799 (d10v_unwind_dummy_id): Use frame_id_build.
7800 * frame.c (find_frame_sal): Use get_frame_pc.
7801 (create_new_frame): Use deprecated_update_frame_pc_hack and
7802 deprecated_update_frame_base_hack.
7803 (create_sentinel_frame): Add comment about ->pc going away.
7804 (get_prev_frame): Add comment about ->pc going away.
7805 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
7806 frame_id_build, deprecated_update_frame_pc_hack and
7807 deprecated_update_frame_base_hack.
7808 (select_frame): Use get_frame_pc.
7809 (legacy_saved_regs_this_id): Use frame_id_build.
7811 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
7813 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
7814 signed integer case.
7815 (classify_argument): Handle enumerations and references.
7817 2003-04-04 Andrew Cagney <cagney@redhat.com>
7819 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
7822 2003-04-01 Adam Fedor <fedor@gnu.org>
7824 * gdb/objc-lang.c (selectors_info): Replace calls to
7825 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
7826 SYMBOL_NATURAL_NAME.
7827 (classes_info, find_methods): Likewise.
7829 2003-04-03 Kevin Buettner <kevinb@redhat.com>
7831 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
7832 ``mach'' to the value determined by bfd_default_set_arch_mach().
7834 2003-04-02 Bob Rossi <bob_rossi@cox.net>
7836 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
7837 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
7838 (mi-cmd-file.o): Update dependencies.
7840 2003-04-01 Kevin Buettner <kevinb@redhat.com>
7842 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
7843 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
7845 2003-04-01 Adam Fedor <fedor@gnu.org>
7847 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
7848 * language.h (struct language_defn): Add la_demangle.
7849 (language_demangle): Declare.
7850 * language.c (language_demangle): New function.
7851 (unk_lang_demangle): Likewise.
7852 (unknown_language_defn, auto_language_defn, local_language_defn):
7853 Add ukn_lang_demangle.
7854 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
7855 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
7856 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
7857 (cplus_language_defn): Add cplus_demangle for la_demangle element.
7858 * jv-lang.c (java_demangle): New function
7859 (java_language_defn): Use it for la_demangle element.
7860 * objc-lang.c (objc_demangle): Add options argument
7861 (objc_language_defn): Use objc_demangle for la_demangle element.
7862 * maint.c (maintenance_demangle): Replace switch with
7863 call to language_demangle.
7864 * utils.c (fprintf_symbol_filtered): Likewise.
7866 2003-04-01 Andrew Cagney <cagney@redhat.com>
7868 * printcmd.c (print_frame_nameless_args): Delete #ifdef
7869 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
7870 PRINT_TYPELESS_INTEGER.
7871 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
7872 PUSH_RETURN_ADDRESS.
7874 2003-04-01 Andrew Cagney <cagney@redhat.com>
7876 * Makefile.in (d10v-tdep.o): Update dependencies.
7877 * d10v-tdep.c: Include "frame-base.h".
7878 (d10v_frame_unwind): Make constant.
7879 (d10v_frame_base_address): New function.
7880 (d10v_frame_base): New variable.
7881 (d10v_gdbarch_init): Set frame_base default.
7882 (struct d10v_unwind_cache): Add the field "prev_sp". Update
7884 (d10v_frame_unwind_cache): Set and use "prev_sp".
7885 (d10v_frame_this_id): Use the previous frame's inner most stack
7886 address and this frame's func address for the frame ID. Use
7887 frame_id_build. Don't analyze beyond the current instruction.
7889 2003-04-01 Andrew Cagney <cagney@redhat.com>
7891 * frame.h (get_frame_locals_address, get_frame_args_address):
7892 Refer to the base address, instead of the address of the first
7895 2003-04-01 Andrew Cagney <cagney@redhat.com>
7897 Add frame debug info addresses:
7898 * frame-base.c: New file.
7899 * frame-base.h: New file.
7900 * frame.h (struct frame_base): Add opaque declaration.
7901 (get_frame_base): Update comment.
7902 (get_frame_base_address): Declare.
7903 (get_frame_locals_address): Declare.
7904 (get_frame_args_address): Declare.
7905 (struct frame_info): Add "base" and "base_cache". Update
7906 comments on the unwinder.
7907 * frame.c: Include "frame-base.h".
7908 (get_frame_locals_address): New function.
7909 (get_frame_base_address): New function.
7910 (get_frame_args_address): New function.
7911 * findvar.c (read_var_value): Use get_frame_locals_address and
7912 get_frame_args_address.
7913 * stack.c (frame_info): Use get_frame_locals_address and
7914 get_frame_args_address.
7915 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
7916 moved to "frame-base.c".
7917 * printcmd.c (print_frame_nameless_args): Ditto.
7918 * symtab.h (address_class): Update comments.
7919 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
7920 get_frame_base_address.
7921 * dwarf2expr.c (execute_stack_op): Ditto.
7922 * Makefile.in (frame_base_h): Define.
7923 (frame.o): Update dependencies.
7924 (frame-base.o): Add dependencies.
7925 (SFILES): Add frame-base.c.
7926 (COMMON_OBS): Add frame-base.o.
7928 2003-04-01 Andrew Cagney <cagney@redhat.com>
7930 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
7931 CALL_DUMMY_LENGTH): Ditto.
7932 * gdbarch.c: Re-generate.
7933 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
7934 (CALL_DUMMY_LENGTH): Delete macro.
7935 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
7936 * arm-tdep.c (arm_gdbarch_init): Ditto.
7937 * avr-tdep.c (avr_gdbarch_init): Ditto.
7938 * cris-tdep.c (cris_gdbarch_init): Ditto.
7939 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7940 * frv-tdep.c (frv_gdbarch_init): Ditto.
7941 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7942 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7943 * i386-tdep.c (i386_gdbarch_init): Ditto.
7944 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7946 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7947 * mips-tdep.c (mips_gdbarch_init): Ditto.
7948 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7949 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7950 * s390-tdep.c (s390_gdbarch_init): Ditto.
7951 * sh-tdep.c (sh_gdbarch_init): Ditto.
7952 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7953 * v850-tdep.c (v850_gdbarch_init): Ditto.
7954 * vax-tdep.c (vax_gdbarch_init): Ditto.
7955 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7957 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
7959 * frame.c (get_prev_frame): Disable call to inside_entry_file().
7961 2003-04-01 Andrew Cagney <cagney@redhat.com>
7963 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
7964 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7965 * gdbarch.h, gdbarch.c: Re-generate.
7966 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7967 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7968 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7969 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7970 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
7971 * infcmd.c (run_stack_dummy): Simplify assuming
7972 CALL_DUMMY_BREAKPOINT_OFFSET_P.
7973 * infrun.c (handle_inferior_event): Ditto.
7974 * alpha-tdep.c (alpha_gdbarch_init): Do not set
7975 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
7976 * arm-tdep.c (arm_gdbarch_init): Ditto.
7977 * avr-tdep.c (avr_gdbarch_init): Ditto.
7978 * cris-tdep.c (cris_gdbarch_init): Ditto.
7979 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7980 * frv-tdep.c (frv_gdbarch_init): Ditto.
7981 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7982 * i386-tdep.c (i386_gdbarch_init): Ditto.
7983 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7985 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7986 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7987 * mips-tdep.c (mips_gdbarch_init): Ditto.
7988 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7989 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7990 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7991 * s390-tdep.c (s390_gdbarch_init): Ditto.
7992 * sh-tdep.c (sh_gdbarch_init): Ditto.
7993 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7994 * v850-tdep.c (v850_gdbarch_init): Ditto.
7995 * vax-tdep.c (vax_gdbarch_init): Ditto.
7996 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
7998 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
8000 * symfile.c (symfile_relocate_debug_section): Update call to
8001 bfd_simple_get_relocated_section_contents.
8003 2003-03-31 Andrew Cagney <cagney@redhat.com>
8005 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
8006 * gdbarch.h, gdbarch.c: Regenerate.
8007 * inferior.h (FIX_CALL_DUMMY): Delete macro.
8008 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8010 * frame.h (generic_fix_call_dummy): Delete declaration.
8011 * dummy-frame.h: Update comment.
8012 * dummy-frame.c (generic_fix_call_dummy): Delete function.
8013 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8015 * sh-tdep.c (sh_gdbarch_init): Ditto.
8016 * s390-tdep.c (s390_gdbarch_init): Ditto.
8017 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8018 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8019 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8020 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8021 * i386-tdep.c (i386_gdbarch_init): Ditto.
8022 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8023 * frv-tdep.c (frv_gdbarch_init): Ditto.
8024 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8025 * cris-tdep.c (cris_gdbarch_init): Ditto.
8026 * avr-tdep.c (avr_gdbarch_init): Ditto.
8027 * arm-tdep.c (arm_gdbarch_init): Ditto.
8029 2003-03-31 J. Brobecker <brobecker@gnat.com>
8031 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
8032 (INIT_FRAME_AP): Likewise.
8033 (EXTRA_FRAME_INFO): Likewise.
8035 2003-03-31 Andrew Cagney <cagney@redhat.com>
8037 * gdbarch.sh: Include "symfile.h".
8038 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
8039 * gdbarch.h, gdbarch.c: Re-generate.
8040 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
8041 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8042 call_dummy_address, the default is at entry_point_address.
8043 * v850-tdep.c (v850_gdbarch_init): Ditto.
8044 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
8045 * sh-tdep.c (sh_gdbarch_init): Ditto.
8046 * s390-tdep.c (s390_gdbarch_init): Ditto.
8047 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8048 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8049 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8050 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8051 * i386-tdep.c (i386_gdbarch_init): Ditto.
8052 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8053 * frv-tdep.c (frv_gdbarch_init): Ditto.
8054 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8055 * cris-tdep.c (cris_gdbarch_init): Ditto.
8056 * arm-tdep.c (arm_gdbarch_init): Ditto.
8058 2003-03-31 Andrew Cagney <cagney@redhat.com>
8060 * gdbarch.sh (CALL_DUMMY_P): Delete.
8061 * gdbarch.h, gdbarch.c: Re-generate.
8062 * inferior.h (CALL_DUMMY_P): Delete macro.
8063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8064 * vax-tdep.c (vax_gdbarch_init): Update.
8065 * v850-tdep.c (v850_gdbarch_init): Update.
8066 * sparc-tdep.c (sparc_gdbarch_init): Update.
8067 * sh-tdep.c (sh_gdbarch_init): Update.
8068 * s390-tdep.c (s390_gdbarch_init): Update.
8069 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8070 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8071 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8072 * mips-tdep.c (mips_gdbarch_init): Update.
8073 * mcore-tdep.c (mcore_gdbarch_init): Update.
8074 * m68k-tdep.c (m68k_gdbarch_init): Update.
8075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8076 * ia64-tdep.c (ia64_gdbarch_init): Update.
8077 * i386-tdep.c (i386_gdbarch_init): Update.
8078 * h8300-tdep.c (h8300_gdbarch_init): Update.
8079 * frv-tdep.c (frv_gdbarch_init): Update.
8080 * d10v-tdep.c (d10v_gdbarch_init): Update.
8081 * cris-tdep.c (cris_gdbarch_init): Update.
8082 * breakpoint.c (deprecated_frame_in_dummy): Update.
8083 * avr-tdep.c (avr_gdbarch_init): Update.
8084 * alpha-tdep.c (alpha_gdbarch_init): Update.
8085 * arm-tdep.c (arm_gdbarch_init): Update.
8086 * dummy-frame.c (dummy_frame_this_id): Update comments.
8087 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
8088 * frame.c (legacy_get_prev_frame): Ditto.
8089 * valops.c (call_function_by_hand): Delete function.
8090 (hand_function_call): Rename to call_function_by_hand
8092 2003-03-30 Andrew Cagney <cagney@redhat.com>
8094 2002-11-10 Klee Dienes <kdienes@apple.com>
8095 * value.h (struct value): Update comment.
8097 2003-03-30 Andrew Cagney <cagney@redhat.com>
8099 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
8101 (d10v_gdbarch_init): Do not set fp_regnum.
8103 * frame.c (get_frame_base): Force ID initialization.
8104 (get_prev_frame): Move computation of the frame ID from here ...
8105 (get_frame_id): ... to here.
8106 (legacy_get_prev_frame): Mark the frame ID as valid.
8107 * frame.h (struct frame_info): Add field "id_p".
8109 2003-03-30 Mark Kettenis <kettenis@gnu.org>
8111 * i386-tdep.c (i386_store_struct_return): Removed.
8112 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
8114 2003-03-30 Andrew Cagney <cagney@redhat.com>
8116 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
8117 * gdbarch.h, gdbarch.c: Regenerate.
8118 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
8119 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
8120 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8121 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8122 * i386-tdep.c (i386_gdbarch_init): Ditto.
8123 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8124 * cris-tdep.c (cris_gdbarch_init): Ditto.
8125 * vax-tdep.c (vax_gdbarch_init): Ditto.
8126 * s390-tdep.c (s390_gdbarch_init): Ditto.
8127 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8128 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8129 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8130 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
8131 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
8132 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
8133 * sparc-tdep.c (sparc_gdbarch_init): Update.
8134 * sh-tdep.c (sh_gdbarch_init): Update.
8135 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8136 * mips-tdep.c (mips_gdbarch_init): Update.
8137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8138 * ia64-tdep.c (ia64_gdbarch_init): Update.
8139 * frv-tdep.c (frv_gdbarch_init): Update.
8140 * avr-tdep.c (avr_gdbarch_init): Update.
8141 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
8142 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
8143 instead of when push_dummy_call is not available.
8145 2003-03-30 Andrew Cagney <cagney@redhat.com>
8147 * infttrace.c: Include "gdbthread.h".
8148 (parent_attach_all): Fix function signature.
8149 (call_ptrace): Update call.
8150 * Makefile.in (infttrace.o): Update dependencies.
8152 2003-03-30 Andrew Cagney <cagney@redhat.com>
8154 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
8155 PUSH_RETURN_ADDRESS.
8156 * gdbarch.h, gdbarch.c: Regenerate.
8157 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8158 * x86-64-tdep.c (x86_64_init_abi): Update.
8159 * v850-tdep.c (v850_gdbarch_init): Update.
8160 * sparc-tdep.c (sparc_gdbarch_init): Update.
8161 * sh-tdep.c (sh_gdbarch_init): Update.
8162 * s390-tdep.c (s390_gdbarch_init): Update.
8163 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8164 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8165 * mips-tdep.c (mips_gdbarch_init): Update.
8166 * mcore-tdep.c (mcore_gdbarch_init): Update.
8167 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8168 * ia64-tdep.c (ia64_gdbarch_init): Update.
8169 * i386-tdep.c (i386_gdbarch_init): Update.
8170 * h8300-tdep.c (h8300_gdbarch_init): Update.
8171 * frv-tdep.c (frv_gdbarch_init): Update.
8172 * cris-tdep.c (cris_gdbarch_init): Update.
8173 * avr-tdep.c (avr_gdbarch_init): Update.
8174 * arm-tdep.c (arm_gdbarch_init): Update.
8175 * valops.c (hand_function_call): Update.
8177 2003-03-29 Andrew Cagney <cagney@redhat.com>
8179 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
8180 sizeof_call_dummy_words.
8181 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
8183 * gdbarch.h: Regenerate.
8185 2003-03-29 Andrew Cagney <cagney@redhat.com>
8187 * infttrace.h: New file.
8188 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
8189 (hpread_get_textlow): Detect an uninitialized dn_bufp.
8190 (hpread_read_doc_function_type): Detect an initialized type1.
8191 (hpread_quick_traverse): Initialize mod_name_string.
8192 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
8193 (som_solib_get_solib_by_pc): Declare.
8194 (so_lib_thread_start_addr): Declare.
8195 (no_shared_libraries): Declare.
8196 * somread.c (init_import_symbols): Make static. Add forward
8198 * config/pa/nm-hppah.h: Include "infttrace.h" for
8200 (hppa_insert_hw_watchpoint): Declare.
8201 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
8202 * hppah-nat.c: Include "gdb_string.h".
8203 (parent_attach_all): Delete extern declaration, moved to
8205 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
8207 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
8208 * Makefile.in (infttrace_h): Define.
8209 (hpread.o): Update dependencies.
8210 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
8211 * hppa-hpux-tdep.c: Include "gdb_string.h".
8212 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
8213 * infrun.c (handle_inferior_event): Always initialize
8214 stepped_after_stopped_by_watchpoint. Add default and remove
8215 fallthrough in switch statement.
8216 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
8218 (hppa_remove_hw_watchpoint): Ditto.
8220 2003-03-29 Andrew Cagney <cagney@redhat.com>
8222 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
8225 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
8227 * arm-tdep.c (arm_push_arguments): Delete.
8228 (struct stack_item): New type.
8229 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
8230 (arm_store_struct_return): Delte.
8231 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
8232 arm_push_arguments or arm_store_struct_return.
8234 2003-03-28 Andrew Cagney <cagney@redhat.com>
8236 * Makefile.in (d10v-tdep.o): Update dependencies.
8237 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
8238 * d10v-tdep.c: Include "remote.h".
8239 (target_resume_hook): Delete extern declaration.
8240 (target_wait_loop_hook): Ditto.
8241 (tdisassemble_command): Eliminate assignment in "if" conditional.
8242 (d10v_ts2_register_sim_regno): Eliminate call to
8243 legacy_register_sim_regno.
8244 (d10v_ts3_register_sim_regno): Ditto.
8246 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
8248 * thread.c: Reindented.
8250 * linux-proc.c: Ditto.
8252 2003-03-28 Bob Rossi <bob_rossi@cox.net>
8254 * MAINTAINERS (write after approval): Add myself.
8256 2003-03-27 Theodore A. Roth <troth@openavr.org>
8258 * objc-exp.y: Add missing semi-colons.
8260 2003-03-27 Andrew Cagney <cagney@redhat.com>
8262 * regcache.c (write_sp): Delete function and references.
8263 * inferior.h (write_sp): Delete declaration.
8264 * valops.c (hand_function_call): Replace write_sp with
8266 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
8267 (sparc_pop_frame): Ditto.
8269 2003-03-27 Andrew Cagney <cagney@redhat.com>
8271 * NEWS: Mention removal of support for hppa*-*-bsd* and
8272 hppa*-*-osf* natives, and hppa*-*-pro* target.
8273 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
8274 * config/pa/xm-pa.h: Obsolete file.
8275 * config/pa/xm-hppab.h: Obsolete file.
8276 * config/pa/nm-hppab.h: Obsolete file.
8277 * config/pa/tm-hppab.h: Obsolete file.
8278 * config/pa/tm-hppao.h: Obsolete file.
8279 * config/pa/nm-hppao.h: Obsolete file.
8280 * config/pa/tm-pro.h: Obsolete file.
8281 * config/pa/hppaosf.mt: Obsolete file.
8282 * config/pa/hppaosf.mh: Obsolete file.
8283 * config/pa/hppapro.mt: Obsolete file.
8284 * config/pa/hppabsd.mt: Obsolete file.
8285 * config/pa/hppabsd.mh: Obsolete file.
8286 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
8287 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
8290 2003-03-27 Andrew Cagney <cagney@redhat.com>
8292 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
8293 push_arguments. Don't set push_return_address or write_sp.
8294 (d10v_push_dummy_call): Replace d10v_push_arguments.
8295 (d10v_push_return_address, d10v_write_sp): Delete function,
8296 handled by push_dummy_call.
8298 2003-03-26 Andrew Cagney <cagney@redhat.com>
8300 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
8301 (push_dummy_call): New pure multi-arch replacement with gdbarch,
8302 regcache and dummy_addr parameters.
8303 * gdbarch.h, gdbarch.c: Re-generate.
8304 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
8305 available; assume it will handle stack alignment and return
8306 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
8307 legacy_push_arguments.
8308 (legacy_push_arguments): Rename default_push_arguments.
8309 * value.h (legacy_push_arguments): Rename default_push_arguments.
8310 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
8311 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8312 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8313 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
8314 * config/i386/tm-symmetry.h: Update.
8315 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8316 * x86-64-tdep.c (x86_64_init_abi): Update.
8317 * v850-tdep.c (v850_gdbarch_init): Update.
8318 * sparc-tdep.c (sparc_gdbarch_init): Update.
8319 * sh-tdep.c (sh_gdbarch_init): Update.
8320 * s390-tdep.c (s390_gdbarch_init): Update.
8321 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8322 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8323 * mips-tdep.c (mips_gdbarch_init): Update.
8324 * mcore-tdep.c (mcore_gdbarch_init): Update.
8325 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8326 * ia64-tdep.c (ia64_gdbarch_init): Update.
8327 * i386-tdep.c (i386_gdbarch_init): Update.
8328 * hppa-tdep.c (hppa_gdbarch_init): Update.
8329 * h8300-tdep.c (h8300_gdbarch_init): Update.
8330 * frv-tdep.c (frv_gdbarch_init): Update.
8331 * d10v-tdep.c (d10v_gdbarch_init): Update.
8332 * cris-tdep.c (cris_gdbarch_init): Update.
8333 * avr-tdep.c (avr_gdbarch_init): Update.
8334 * arm-tdep.c (arm_gdbarch_init): Update.
8335 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8336 * alpha-tdep.c (alpha_gdbarch_init): Update.
8338 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8340 * signals/signals.c (do_target_signal_to_host): Correct realtime
8343 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8345 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
8346 (struct sal_chain, map_catch_names): Remove.
8347 (catch_exception_command_1): Don't call
8348 handle_gnu_4_16_catch_command.
8350 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8352 From Mark Dettinger <dettinge@de.ibm.com>:
8353 * dwarf2cfi.c (read_2u): Increment pointer by two.
8355 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8357 * signals/signals.c: Fix typos in last change.
8359 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
8361 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
8362 not already defined. Use __SIGRTMIN if available.
8363 (target_signal_from_host): Remove SIGRTMIN block.
8364 (do_target_signal_to_host): Remove SIGRTMIN block; check that
8365 the signal is within the realtime range.
8367 2003-03-25 Adam Fedor <fedor@gnu.org>
8369 * Makefile.in (infrun.o): Add $(language_h)
8370 * infrun.c (handle_inferior_event): Use skip_language_trampoline
8371 for language specific trampolines.
8372 * language.h (struct language_defn): Add skip_trampoline.
8373 (skip_language_trampoline): Declare.
8374 * language.c (unk_lang_trampoline, skip_language_trampoline):
8376 (unknown_language_defn, auto_language_defn, local_language_defn):
8377 Add ukn_lang_trampoline.
8378 * ada-lang.c (ada_language_defn): Add NULL for language
8379 specific skip_trampoline.
8380 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
8381 scm-lang.c: Likewise.
8382 * objc-lang.c (objc_skip_trampoline): New function.
8383 (objc_language_defn): Add objc_skip_trampoline.
8385 2003-03-25 Andrew Cagney <cagney@redhat.com>
8387 * frame.c (get_prev_frame): Delay validating a frame's ID -
8388 non-NULL, didn't go backwards - until an attempt to unwind it to
8391 2003-03-25 Andrew Cagney <cagney@redhat.com>
8393 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
8394 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
8395 * gdbarch.h, gdbarch.c: Re-generate.
8396 * config/sparc/tm-sparc.h
8397 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
8398 * sparc-tdep.c (sparc_gdbarch_init): Set
8399 deprecated_extra_stack_alignment_needed.
8400 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
8402 extra_stack_alignment_needed.
8403 * v850-tdep.c (v850_gdbarch_init): Ditto.
8404 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
8405 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8406 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8407 * cris-tdep.c (cris_gdbarch_init): Ditto.
8408 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8411 2003-03-25 Andrew Cagney <cagney@redhat.com>
8413 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
8414 STORE_STRUCT_RETURN.
8415 * gdbarch.h, gdbarch.c: Regenerate.
8416 * d10v-tdep.c (d10v_store_struct_return): Delete function.
8417 (d10v_push_arguments): Set the struct return register.
8418 (d10v_gdbarch_init): Update.
8419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8420 * x86-64-tdep.c (x86_64_init_abi): Update.
8421 * vax-tdep.c (vax_gdbarch_init): Update.
8422 * v850-tdep.c (v850_gdbarch_init): Update.
8423 * sparc-tdep.c (sparc_gdbarch_init): Update.
8424 * sh-tdep.c (sh_gdbarch_init): Update.
8425 * s390-tdep.c (s390_gdbarch_init): Update.
8426 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8427 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8428 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8429 * mips-tdep.c (mips_gdbarch_init): Update.
8430 * mcore-tdep.c (mcore_gdbarch_init): Update.
8431 * m68k-tdep.c (m68k_gdbarch_init): Update.
8432 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8433 * ia64-tdep.c (ia64_gdbarch_init): Update.
8434 * i386-tdep.c (i386_gdbarch_init): Update.
8435 * hppa-tdep.c (hppa_gdbarch_init): Update.
8436 * h8300-tdep.c (h8300_gdbarch_init): Update.
8437 * frv-tdep.c (frv_gdbarch_init): Update.
8438 * cris-tdep.c (cris_gdbarch_init): Update.
8439 * avr-tdep.c (avr_gdbarch_init): Update.
8440 * arm-tdep.c (arm_gdbarch_init): Update.
8441 * alpha-tdep.c (alpha_gdbarch_init): Update.
8443 2003-03-25 Andrew Cagney <cagney@redhat.com>
8445 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
8446 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
8447 CALL_DUMMY_STACK_ADJUST with a predicate variable.
8448 * gdbarch.h, gdbarch.c: Regenerate.
8449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
8450 call_dummy_stack_adjust_p.
8451 * vax-tdep.c (vax_gdbarch_init): Ditto.
8452 * v850-tdep.c (v850_gdbarch_init): Ditto.
8453 * sh-tdep.c (sh_gdbarch_init): Ditto.
8454 * s390-tdep.c (s390_gdbarch_init): Ditto.
8455 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8456 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8457 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
8458 * mips-tdep.c (mips_gdbarch_init): Ditto.
8459 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
8460 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
8461 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8462 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
8463 * i386-tdep.c (i386_gdbarch_init): Ditto.
8464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
8465 * frv-tdep.c (frv_gdbarch_init): Ditto.
8466 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8467 * cris-tdep.c (cris_gdbarch_init): Ditto.
8468 * avr-tdep.c (avr_gdbarch_init): Ditto.
8469 * arm-tdep.c (arm_gdbarch_init): Ditto.
8470 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
8471 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8472 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
8473 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
8474 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
8475 call_dummy_stack_adjust_p.
8476 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
8477 (CALL_DUMMY_STACK_ADJUST): Delete macro.
8478 * sparc-tdep.c (sparc32_push_arguments): Update.
8479 * valops.c (hand_function_call): Update.
8481 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
8483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
8484 set_gdbarch_char_signed.
8486 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8489 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
8491 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
8493 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
8494 (_initialize_arm_tdep): Don't set tm_print_insn.
8496 2003-03-24 Adam Fedor <fedor@gnu.org>
8498 * Makefile.in (YYOBJ): Add objc-exp.tab.o
8499 * objc-lang.h: Add multiple inclusion protection.
8500 (start_msglist, add_msglist, end_msglist): Additional declarations.
8502 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
8504 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
8505 value was renamed to ARM_FLOAT_SOFT_FPA.
8507 2003-03-23 Andrew Cagney <cagney@redhat.com>
8509 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
8510 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
8511 * gdbarch.h, gdbarch.c: Regenerate.
8512 * valops.c (hand_function_call): Update.
8513 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8514 * frame.c (legacy_saved_regs_this_id): Update.
8515 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
8516 * dummy-frame.h: Update.
8517 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
8518 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
8519 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
8520 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
8521 * config/m68k/tm-sun3.h: Update.
8522 * blockframe.c (inside_main_func, frame_chain_valid): Update.
8523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8524 * x86-64-tdep.c (x86_64_init_abi): Update.
8525 * vax-tdep.c (vax_gdbarch_init): Update.
8526 * v850-tdep.c (v850_gdbarch_init): Update.
8527 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
8528 * sh-tdep.c (sh_gdbarch_init): Update.
8529 * s390-tdep.c (s390_gdbarch_init): Update.
8530 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
8531 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
8532 (frame_get_saved_regs): Update.
8533 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8534 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8535 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8536 * mips-tdep.c (mips_gdbarch_init): Update.
8537 * mcore-tdep.c (mcore_gdbarch_init): Update.
8538 * m68k-tdep.c (m68k_gdbarch_init): Update.
8539 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8540 * ia64-tdep.c (ia64_gdbarch_init): Update.
8541 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
8542 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8543 (i386_interix_back_one_frame): Update.
8544 * hppa-tdep.c (hppa_gdbarch_init): Update.
8545 (hppa_init_extra_frame_info): Update.
8546 * h8300-tdep.c (h8300_gdbarch_init): Update.
8547 * frv-tdep.c (frv_gdbarch_init): Update.
8548 * cris-tdep.c (cris_gdbarch_init): Update.
8549 * avr-tdep.c (avr_gdbarch_init): Update.
8550 * arm-tdep.c (arm_gdbarch_init): Update.
8551 * alpha-tdep.c (alpha_gdbarch_init): Update.
8553 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8555 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
8556 (arm_get_fp_model): Declare.
8557 * arm-tdep.c (fp_model_strings): New string array.
8558 (arm_fp_model, current_fp_model): New variables.
8559 (arm_get_fp_model): New function.
8560 (arm_set_fp): New function.
8561 (set_fp_model_sfunc): New function.
8562 (show_fp_model): New function.
8563 (_initialize_arm_tdep): Add new command to set/show the FPU.
8564 (arm_extract_return_value): Use arm_get_fp_model.
8565 (arm_store_return_value): Likewise.
8566 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
8567 to initialize the floating-point data types.
8568 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
8571 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8573 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
8574 the current setting of each value.
8575 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8576 new_set and new_show. Use add_setshow_cmd_full and
8577 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
8578 commands and add new version as subcommands of "set/show arm".
8580 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8582 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
8583 (set_arm_command, show_arm_command): New functions.
8584 (_initialize_arm_tdep): Add them.
8585 (num_disassembly_options): Renamed from num_flavor_options.
8586 (valid_disassembly_styles): Renamed from valid_flavors.
8587 (disassembly_style): Renamed from disassembly_flavor.
8588 (set_disassembly_style_sfunc): Renamed from
8589 set_disassembly_flavor_sfunc.
8590 (set_disassembly_style): Renamed from set_disassembly_flavor.
8591 (arm_othernames): Updated.
8592 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
8593 command. Add "set/show arm disassembly" commands. Deprecate
8594 "othernames" command.
8596 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8598 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
8599 (arm-tdep.o): Depend on elf_arm_h.
8601 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8603 * Makefile.in (coff_internal_h): Define.
8604 (arm-tdep.o): Update dependencies.
8606 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
8608 * arm-tdep.c (prologue_cache): Delete.
8609 (check_prologue_cache, save_prologue_cache): Delete.
8610 (arm_scan_prologue): Don't check or update the prologue_cache.
8611 (arm_gdb_arch_init): Don't initialize it.
8612 (_initialize_arm_tdep): Likewise.
8614 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
8616 * MAINTAINERS (tui): Maintainer of tui code.
8618 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
8620 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
8621 (i386-cygwin-tdep.o): Add dependencies.
8622 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
8623 * i386-cygwin-tdep.c: New file.
8624 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
8625 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
8627 2003-03-20 Andrew Cagney <cagney@redhat.com>
8629 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
8630 (handle_inferior_event): Remove code calling
8631 DYNAMIC_TRAMPOLINE_NEXTPC.
8633 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
8634 already has a full path.
8636 * main.c (gdb_main): Return 1.
8637 (captured_main): Call error to report an invalid interpreter.
8639 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
8640 * alpha-osf1-tdep.c: Include "gdb_string.h".
8642 2003-03-19 J. Brobecker <brobecker@gnat.com>
8644 Continuing work to convert the hppa targets to multiarch partial.
8646 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
8647 method, now that hppa_push_dummy_frame has a conformant prototype.
8648 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
8649 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
8650 for the switch to multiarch partial.
8652 2003-03-19 Kevin Buettner <kevinb@redhat.com>
8654 * mdebugread.c (parse_symbol): For stEnd, we're done counting
8655 when iss is issNull.
8657 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8659 * mips-tdep.c (mips_register_name): Fix fencepost error involving
8660 NUM_REGS bounds check.
8662 2003-03-18 Kevin Buettner <kevinb@redhat.com>
8664 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
8665 * mips-tdep.c (gdb_assert.h): Include.
8666 (mips_generic_reg_names, mips_processor_reg_names): Make static.
8667 (mips_register_name): Handle integer registers explicitly. Add
8669 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
8670 (mips_lsi33k_reg_names): Don't list integer registers; they're
8671 handled by mips_register_name() now.
8672 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
8673 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
8674 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
8675 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
8676 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
8678 2003-03-18 Andrew Cagney <cagney@redhat.com>
8680 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
8682 * gdbtypes.h (print_scalar_formatted): Update declaration.
8683 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
8685 2003-03-18 J. Brobecker <brobecker@gnat.com>
8687 * infrun.c (observer.h): Add #include.
8688 (normal_stop): Add call to observer_notify_normal_stop.
8689 * Makefile.in (infrun.o): Add dependency on observer.h.
8691 2003-03-18 J. Brobecker <brobecker@gnat.com>
8693 Continuing work to convert the hppa targets to multiarch partial.
8694 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
8695 parameter. Reformat comment.
8696 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
8697 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
8698 to match new profile.
8700 2003-03-18 J. Brobecker <brobecker@gnat.com>
8702 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
8703 appear to be working in any case.
8705 2003-03-18 J. Brobecker <brobecker@gnat.com>
8707 * observer.c (observer_test_first_observer): New static variable.
8708 (observer_test_second_observer): Likewise.
8709 (observer_test_third_observer): Likewise.
8710 (observer_test_first_notification_function): New static function.
8711 (observer_test_second_notification_function): Likewise.
8712 (observer_test_third_notification_function): Likewise.
8714 2003-03-17 J. Brobecker <brobecker@gnat.com>
8716 * hppa-tdep.c (gdb_assert.h): Add missing #include.
8717 * somsolib.c (gdb_assert.h): Likewise.
8718 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
8719 (somsolib.o): Likewise.
8721 2003-03-17 Andrew Cagney <cagney@redhat.com>
8723 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
8724 BFD. Simplify setting of di.endian.
8726 2003-03-17 Andrew Cagney <cagney@redhat.com>
8728 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
8729 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
8731 From Elena Zannoni <ezannoni@redhat.com>
8732 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
8733 vector and floating-point parameters.
8734 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
8736 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
8738 2003-03-17 Fernando Nasser <fnasser@redhat.com>
8740 * MAINTAINERS: Remove my name from several maintainership roles.
8742 2003-03-17 Andrew Cagney <cagney@redhat.com>
8744 Fix frame off-by-one bug.
8745 * frame-unwind.h (frame_this_id_ftype): Replace
8746 frame_unwind_id_ftype.
8747 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
8748 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
8749 with "prev_register".
8750 * frame-unwind.c (frame_unwind_find_by_pc): Return
8751 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
8753 * dummy-frame.c (cached_find_dummy_frame): Delete function.
8754 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
8755 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
8756 (dummy_frame_unwind): Update.
8757 * sentinel-frame.c (sentinel_frame_prev_register): Replace
8758 sentinel_frame_register_unwind.
8759 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
8760 (sentinel_frame_unwinder): Update.
8761 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8762 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
8763 * frame.c (create_sentinel_frame): Update. Initialize
8764 "prologue_cache" instead of "unwind_cache".
8765 (frame_register_unwind): Call this frame's prev_register with the
8766 next frame and this frame's prologue cache.
8767 (get_prev_frame): Simplify. Always call prev frame's this_id with
8768 this frame and prev frame's prologue cache. Document that this
8769 call is shifted one to the left when compared to the
8770 frame_register_unwind call.
8771 (legacy_saved_regs_prev_register): Replace
8772 frame_saved_regs_register_unwind.
8773 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
8774 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
8775 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
8776 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
8777 (d10v_frame_unwind): Update.
8778 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
8779 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
8780 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
8781 "saved_regs" with "this_saved_regs".
8783 2003-03-16 Andrew Cagney <cagney@redhat.com>
8785 * frame.c (frame_pop): Don't call target_store_registers. Fix
8786 problem reported by Mark Kettenis.
8788 2003-03-16 Mark Kettenis <kettenis@gnu.org>
8790 * i386-tdep.c (i386_register_type): Renamed from
8791 i386_register_virtual_type. Adjust function signature.
8792 (i386_gdbarch_init): Set register_type instead of
8793 deprecated_max_register_raw_size,
8794 deprecated_max_register_virtual_size and register_virtual_type.
8796 2003-03-14 Andrew Cagney <cagney@redhat.com>
8798 * frame.c (get_prev_frame): When a legacy frame, always call
8799 legacy_get_prev_frame. Simplify unwind code using assumption that
8800 the unwinder is new.
8801 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
8802 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
8803 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
8805 2003-03-14 Andrew Cagney <cagney@redhat.com>
8807 * frame.c (get_saved_register): Delete function.
8808 * frame.h (get_saved_register): Delete declaration.
8809 * xstormy16-tdep.c: Update comment.
8810 * regcache.h: Update comments.
8811 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
8812 get_saved_register and extract_address, use
8813 frame_read_unsigned_register.
8814 (sparc_frame_saved_pc): Ditto.
8815 (sparc_get_saved_register): Instead of get_saved_register, use
8817 (sparc_pop_frame): Ditto.
8818 * findvar.c: Update comments.
8819 (value_of_register): Call frame_register instead of
8821 (value_from_register): Ditto.
8822 * config/sparc/tm-sparc.h: Update comment.
8823 * breakpoint.c: Update comment.
8825 2003-03-14 Andrew Cagney <cagney@redhat.com>
8827 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
8829 * gdbarch.h, gdbarch.c: Re-generate.
8830 * frame.h: Update comments.
8831 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8832 * x86-64-tdep.c (x86_64_init_abi): Update.
8833 * sparc-tdep.c (sparc_gdbarch_init): Update.
8834 * sh-tdep.c (sh_gdbarch_init): Update.
8835 * mips-tdep.c (mips_gdbarch_init): Update.
8836 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8837 * cris-tdep.c (cris_gdbarch_init): Update.
8838 * ia64-tdep.c (ia64_gdbarch_init): Update.
8839 * frame.c (frame_register): Update.
8840 (get_saved_register): Update.
8841 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8843 2003-03-13 Andrew Cagney <cagney@redhat.com>
8845 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
8846 * gdbarch.h, gdbarch.c: Regenerate.
8847 * valops.c (hand_function_call): Update comment.
8848 * stack.c (return_command): Update comment.
8849 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
8850 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
8851 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8852 * x86-64-tdep.c (x86_64_init_abi): Update.
8853 * vax-tdep.c (vax_gdbarch_init): Update.
8854 * v850-tdep.c (v850_gdbarch_init): Update.
8855 * sparc-tdep.c (sparc_gdbarch_init): Update.
8856 * sh-tdep.c (sh_gdbarch_init): Update.
8857 * s390-tdep.c (s390_gdbarch_init): Update.
8858 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8859 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8860 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8861 * mips-tdep.c (mips_gdbarch_init): Update.
8862 * mcore-tdep.c (mcore_gdbarch_init): Update.
8863 * m68k-tdep.c (m68k_gdbarch_init): Update.
8864 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8865 * ia64-tdep.c (ia64_gdbarch_init): Update.
8866 * i386-tdep.c (i386_gdbarch_init): Update.
8867 * hppa-tdep.c (hppa_gdbarch_init): Update.
8868 * h8300-tdep.c (h8300_gdbarch_init): Update.
8869 * frv-tdep.c (frv_gdbarch_init): Update.
8870 * cris-tdep.c (cris_gdbarch_init): Update.
8871 * avr-tdep.c (avr_gdbarch_init): Update.
8872 * arm-tdep.c (arm_gdbarch_init): Update.
8873 * alpha-tdep.c (alpha_gdbarch_init): Update.
8875 2003-03-13 Andrew Cagney <cagney@redhat.com>
8877 * frame.c (legacy_frame_p): New function.
8878 (get_prev_frame): Use legacy_frame_p.
8879 * frame.h (legacy_frame_p): Declare.
8881 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8883 * MAINTAINERS (write after approval): Alphabetically
8886 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
8888 * MAINTAINERS (write after approval): Add myself.
8890 2003-03-12 Andrew Cagney <cagney@redhat.com>
8892 * frame.c (get_prev_frame): Rename the frame parameter to
8894 (get_next_frame, legacy_get_prev_frame): Ditto.
8896 2003-03-12 Andrew Cagney <cagney@redhat.com>
8898 * frame.c (get_current_frame): Check target_has_registers before
8899 checking target_has_stack.
8900 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
8901 instead of deprecated_selected_frame.
8902 * findvar.c (value_of_register): Pass "frame", not
8903 deprecated_selected_frame, to value_of_builtin_reg.
8905 2003-03-12 Andrew Cagney <cagney@redhat.com>
8907 * regcache.c (regcache_cooked_write_signed): New function.
8908 (regcache_cooked_write_unsigned): New function.
8909 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
8910 (regcache_cooked_read_signed): Fix regnum in range assertion.
8911 * regcache.h (regcache_cooked_write_signed): Declare.
8912 (regcache_cooked_write_unsigned): Declare.
8914 2003-03-12 Andrew Cagney <cagney@redhat.com>
8916 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
8917 * gdbarch.h, gdbarch.c: Re-generate.
8918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8919 * x86-64-tdep.h: Update.
8920 * x86-64-tdep.c (x86_64_init_abi): Update.
8921 * v850-tdep.c (v850_gdbarch_init): Update.
8922 * sparc-tdep.c (sparc_gdbarch_init): Update.
8923 * sh-tdep.c (sh_gdbarch_init): Update.
8924 * s390-tdep.c (s390_gdbarch_init): Update.
8925 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8926 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8927 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8928 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8929 * mips-tdep.c (mips_gdbarch_init): Update.
8930 * mcore-tdep.c (mcore_gdbarch_init): Update.
8931 * m68k-tdep.c (m68k_gdbarch_init): Update.
8932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8933 * ia64-tdep.c (ia64_gdbarch_init): Update.
8934 * i386-tdep.c (i386_gdbarch_init): Update.
8935 * i386-interix-tdep.c (i386_interix_init_abi): Update.
8936 * hppa-tdep.c (hppa_gdbarch_init): Update.
8937 * h8300-tdep.c (h8300_gdbarch_init): Update.
8938 * frv-tdep.c (frv_gdbarch_init): Update.
8939 * cris-tdep.c (cris_gdbarch_init): Update.
8940 * avr-tdep.c (avr_gdbarch_init): Update.
8941 * arm-tdep.c (arm_gdbarch_init): Update.
8942 * alpha-tdep.c (alpha_gdbarch_init): Update.
8943 * sh-tdep.c (sh_init_extra_frame_info): Update.
8944 (sh64_init_extra_frame_info): Update.
8945 * ns32knbsd-nat.c (frame_num_args): Update.
8946 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
8947 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
8948 (xstormy16_frame_chain_valid): Update.
8949 * vax-tdep.c (vax_saved_pc_after_call): Update.
8950 * v850-tdep.c (v850_frame_chain): Update.
8951 (v850_pop_frame): Update.
8952 (v850_init_extra_frame_info): Update.
8953 * sparc-tdep.c (setup_arbitrary_frame): Update.
8954 * ns32k-tdep.c (umax_frame_num_args): Update.
8955 * s390-tdep.c (s390_pop_frame_regular): Update.
8956 * mn10300-tdep.c (mn10300_frame_chain): Update.
8957 (mn10300_pop_frame_regular): Update.
8958 (mn10300_init_extra_frame_info): Update.
8959 * mips-tdep.c (mips_init_frame_pc_first): Update.
8960 (mips_frame_chain): Update.
8961 (mips_pop_frame): Update.
8962 * mcore-tdep.c (mcore_frame_chain): Update.
8963 (mcore_pop_frame): Update.
8964 (mcore_init_extra_frame_info): Update.
8965 * arch-utils.c (init_frame_pc_default): Update.
8966 * m68k-tdep.c (isi_frame_num_args): Update.
8967 (delta68_frame_num_args): Update.
8968 (news_frame_num_args): Update.
8969 * ia64-tdep.c (ia64_pop_frame_regular): Update.
8970 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
8971 (alpha_frame_chain): Update.
8972 (alpha_pop_frame): Update.
8973 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
8974 (hppa_init_extra_frame_info): Update.
8975 (hppa_frame_chain): Update.
8976 (hppa_frame_chain_valid): Update.
8977 * cris-tdep.c (cris_init_extra_frame_info): Update.
8978 * avr-tdep.c (avr_init_extra_frame_info): Update.
8979 * arm-tdep.c (arm_frame_chain_valid): Update.
8980 (arm_init_extra_frame_info): Update.
8981 (arm_pop_frame): Update.
8982 * frame.c (frame_pc_unwind): Update.
8983 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
8984 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8985 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
8986 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
8987 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
8988 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8990 2003-03-12 Andrew Cagney <cagney@redhat.com>
8992 Eliminate the need for POP_FRAME.
8993 * frame.c (do_frame_unwind_register): New function.
8994 (frame_pop): When no POP_FRAME, pop the frame using register
8995 unwind and a scratch regcache.
8996 (frame_saved_regs_pop): Delete function.
8997 (trad_frame_unwinder): Update.
8998 * d10v-tdep.c (d10v_frame_pop): Delete function.
8999 (d10v_frame_unwind): Update.
9000 * sentinel-frame.c (sentinel_frame_pop): Delete function.
9001 (sentinel_frame_unwinder): Update.
9002 * dummy-frame.c (dummy_frame_pop): Delete function.
9003 (dummy_frame_unwind): Update.
9004 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
9005 (struct frame_unwind): Update.
9007 2003-03-11 Kevin Buettner <kevinb@redhat.com>
9009 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
9010 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
9011 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
9012 Do range checks on register number obtained from debugging info.
9013 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
9014 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
9015 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
9017 (do_fp_register_row): Fix typo which caused double type to be
9018 used when attempting to unpack a float.
9020 2003-03-11 J. Brobecker <brobecker@gnat.com>
9022 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
9024 2003-03-11 Andrew Cagney <cagney@redhat.com>
9026 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
9027 frame. Problem found by Corinna Vinschen.
9029 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
9031 * doublest.c (floatformat_from_length): Accept also
9032 the real size of 'long double' type.
9034 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
9036 From Klee Dienes <kdienes@apple.com>:
9037 * breakpoint.c (bpstat_copy): Copy the command lines as well
9038 as the old value, to match what is freed in bpstat_clear.
9040 2003-03-10 David Carlton <carlton@math.stanford.edu>
9042 * minsyms.c (add_minsym_to_hash_table): Replace
9043 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
9044 (compare_minimal_symbols, compact_minimal_symbols)
9045 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
9046 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
9047 of DEPRECATED_SYMBOL_MATCHES_NAME.
9048 (lookup_minimal_symbol_solib_trampoline): Ditto.
9050 2003-03-10 Andrew Cagney <cagney@redhat.com>
9052 * regcache.h (regcache_cooked_read_ftype): Define.
9053 (regcache_save, regcache_restore): Add a cooked_read parameter.
9054 * regcache.c (regcache_save, regcache_restore): Update.
9055 (do_cooked_read): New function.
9056 (regcache_cpy): Pass do_cooked_read to regcache_save and
9059 2003-03-10 Andrew Cagney <cagney@redhat.com>
9061 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
9062 * gdbarch.h, gdbarch.c: Re-generate.
9063 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9064 * x86-64-tdep.h: Update.
9065 * x86-64-tdep.c (x86_64_init_abi): Update.
9066 * v850-tdep.c (v850_gdbarch_init): Update.
9067 * sparc-tdep.c (sparc_gdbarch_init): Update.
9068 * sh-tdep.c (sh_gdbarch_init): Update.
9069 * s390-tdep.c (s390_gdbarch_init): Update.
9070 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9071 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9072 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9073 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9074 * mips-tdep.c (mips_gdbarch_init): Update.
9075 * mcore-tdep.c (mcore_gdbarch_init): Update.
9076 * m68k-tdep.c (m68k_gdbarch_init): Update.
9077 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9078 * ia64-tdep.c (ia64_gdbarch_init): Update.
9079 * i386-tdep.c (i386_gdbarch_init): Update.
9080 * i386-interix-tdep.c (i386_interix_init_abi): Update.
9081 * hppa-tdep.c (hppa_gdbarch_init): Update.
9082 * h8300-tdep.c (h8300_gdbarch_init): Update.
9083 * frv-tdep.c (frv_gdbarch_init): Update.
9084 * cris-tdep.c (cris_gdbarch_init): Update.
9085 * avr-tdep.c (avr_gdbarch_init): Update.
9086 * arm-tdep.c (arm_gdbarch_init): Update.
9087 * alpha-tdep.c (alpha_gdbarch_init): Update.
9088 * sh-tdep.c (sh_init_extra_frame_info): Update.
9089 (sh64_init_extra_frame_info): Update.
9090 * ns32knbsd-nat.c (frame_num_args): Update.
9091 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
9092 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
9093 (xstormy16_frame_chain_valid): Update.
9094 * vax-tdep.c (vax_saved_pc_after_call): Update.
9095 * v850-tdep.c (v850_frame_chain): Update.
9096 (v850_pop_frame): Update.
9097 (v850_init_extra_frame_info): Update.
9098 * sparc-tdep.c (setup_arbitrary_frame): Update.
9099 * ns32k-tdep.c (umax_frame_num_args): Update.
9100 * s390-tdep.c (s390_pop_frame_regular): Update.
9101 * mn10300-tdep.c (mn10300_frame_chain): Update.
9102 (mn10300_pop_frame_regular): Update.
9103 (mn10300_init_extra_frame_info): Update.
9104 * mips-tdep.c (mips_init_frame_pc_first): Update.
9105 (mips_frame_chain): Update.
9106 (mips_pop_frame): Update.
9107 * mcore-tdep.c (mcore_frame_chain): Update.
9108 (mcore_pop_frame): Update.
9109 (mcore_init_extra_frame_info): Update.
9110 * arch-utils.c (init_frame_pc_default): Update.
9111 * m68k-tdep.c (isi_frame_num_args): Update.
9112 (delta68_frame_num_args): Update.
9113 (news_frame_num_args): Update.
9114 * ia64-tdep.c (ia64_pop_frame_regular): Update.
9115 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
9116 (alpha_frame_chain): Update.
9117 (alpha_pop_frame): Update.
9118 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
9119 (hppa_init_extra_frame_info): Update.
9120 (hppa_frame_chain): Update.
9121 (hppa_frame_chain_valid): Update.
9122 * cris-tdep.c (cris_init_extra_frame_info): Update.
9123 * avr-tdep.c (avr_init_extra_frame_info): Update.
9124 * arm-tdep.c (arm_frame_chain_valid): Update.
9125 (arm_init_extra_frame_info): Update.
9126 (arm_pop_frame): Update.
9127 * frame.c (frame_pc_unwind): Update.
9128 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
9129 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9130 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
9131 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
9132 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
9133 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
9135 2003-03-10 Andrew Cagney <cagney@redhat.com>
9137 * gdbarch.sh (gdbarch_unwind_pc): New method.
9138 * gdbarch.h, gdbarch.c: Regenerate.
9139 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
9140 but use read_pc and FRAME_SAVED_PC as fall backs.
9141 (frame_saved_regs_pc_unwind): Delete function.
9142 (trad_frame_unwinder): Update.
9143 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
9144 (struct frame_unwind): Update.
9145 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
9146 (dummy_frame_unwind): Update.
9147 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
9148 (sentinel_frame_unwinder): Update.
9149 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
9150 (d10v_frame_unwind): Update.
9151 (d10v_unwind_pc): New function.
9152 (d10v_gdbarch_init): Set unwind_pc.
9154 2003-03-10 Andrew Cagney <cagney@redhat.com>
9156 * gdbarch.h: Re-generate.
9158 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
9160 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
9163 2003-03-08 Mark Kettenis <kettenis@gnu.org>
9165 * gdbarch.sh (save_dummy_frame_tos): Add comment.
9167 2003-03-08 Andrew Cagney <cagney@redhat.com>
9169 * cli-out.c: Update copyright.
9170 (cli_out_data): Define typedef. Use instead of ui_out_data.
9172 2003-03-08 Andrew Cagney <cagney@redhat.com>
9174 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
9177 2003-03-07 Andrew Cagney <cagney@redhat.com>
9179 * gdbarch.sh: Don't generate two macro definitions when an
9180 undefined macro taking no arguments.
9181 * gdbarch.h: Regenerate.
9183 2002-03-07 Michal Ludvig <mludvig@suse.cz>
9185 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
9186 (x86_64_unwind_dummy_id): New functions.
9187 (x86_64_init_abi): Register these two new functions.
9189 2003-03-07 Michal Ludvig <mludvig@suse.cz>
9191 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
9192 (x86_64_skip_prologue): Move prologue detection to
9194 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
9196 2003-03-05 Andrew Cagney <cagney@redhat.com>
9198 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
9199 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
9200 * frame.c (get_prev_frame): Restructure the frame ID unwind code
9201 to use unwind_dummy_id when a dummy frame.
9202 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
9204 * gdbarch.h, gdbarch.c: Regneerate.
9206 2003-03-05 Andrew Cagney <cagney@redhat.com>
9208 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
9209 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
9210 Do not use d10v_read_sp or d10v_read_fp when obtaining register
9213 2003-03-05 Andrew Cagney <cagney@redhat.com>
9215 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
9216 (struct d10v_unwind_cache): Delete field "frameless". Replace
9217 "next_addr" with "sp_offset". Add "r11_offset".
9218 (d10v_frame_unwind_cache): Update.
9219 (prologue_find_regs): Update. When "mv r11, sp", save the
9220 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
9221 RN was saved in r11_offset.
9223 2003-03-05 Andrew Cagney <cagney@redhat.com>
9225 * frame.c (deprecated_update_frame_pc_hack): Also update the the
9226 cached PC value in the next frame.
9228 2003-03-05 Andrew Cagney <cagney@redhat.com>
9230 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
9231 "id_unwind_cache" with "id".
9232 (frame_id_unwind): Delete declaration.
9233 * frame.c (frame_id_unwind): Delete function.
9234 (get_prev_frame): Call the frame id unwind method directly. Store
9235 the returned next frame's ID value in NEXT_FRAME. Note that there
9236 is a problem with the wrong unwind ID being called with the wrong
9239 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9241 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
9243 2003-03-05 James Ingham <jingham@apple.com>
9244 Daniel Jacobowitz <drow@mvista.com>
9246 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
9247 (auto_cp_abi): New variable.
9248 (current_cp_abi, num_cp_abis): Make static.
9249 (CP_ABI_MAX): Define.
9250 (cp_abis): Turn into an array.
9251 (value_virtual_fn_field): Fix formatting.
9252 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
9254 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
9255 (list_cp_abis, _initialize_cp_abi): New functions.
9256 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
9257 declarations for cp_abis, num_cp_abis, current_cp_abi, and
9258 switch_to_cp_abi. Update prototype for register_cp_abi.
9259 * Makefile.in (cp-abi.o): Update dependencies.
9260 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
9261 instead of switch_to_cp_abi.
9262 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
9264 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
9266 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
9268 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
9270 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
9271 * dwarf2loc.c: Include "regcache.h".
9272 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
9274 * Makefile.in (dwarf2loc.o): Update dependencies.
9276 2003-03-04 Theodore A. Roth <troth@openavr.org>
9278 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
9279 number of io registers reported by remote target is not a multiple of
9282 2003-03-04 David Carlton <carlton@math.stanford.edu>
9284 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
9285 (lookup_symbol_aux_psymtabs): Update call to
9286 lookup_partial_symbol.
9287 (lookup_transparent_type, find_main_psymtab)
9288 (make_symbol_overload_list): Ditto.
9290 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
9292 * MAINTAINERS (Write after approval): Update my email address.
9294 2003-03-03 Andrew Cagney <cagney@redhat.com>
9296 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
9297 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
9298 predicate. Replace MAX_REGISTER_RAW_SIZE.
9299 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
9300 MAX_REGISTER_VIRTUAL_SIZE.
9301 * regcache.c (legacy_max_register_raw_size): New function.
9302 (legacy_max_register_virtual_size): New function.
9303 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
9304 (MAX_REGISTER_RAW_SIZE): Define.
9305 (legacy_max_register_raw_size): Declare.
9306 (legacy_max_register_virtual_size): Declare.
9307 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9308 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
9309 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9310 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9311 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
9312 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
9313 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9314 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9315 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
9316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9317 * vax-tdep.c (vax_gdbarch_init): Update.
9318 * v850-tdep.c (v850_gdbarch_init): Update.
9319 * sparc-tdep.c (sparc_gdbarch_init): Update.
9320 * sh-tdep.c (sh_gdbarch_init): Update.
9321 * s390-tdep.c (s390_gdbarch_init): Update.
9322 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9323 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9324 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9325 * mips-tdep.c (mips_gdbarch_init): Update.
9326 * mcore-tdep.c (mcore_gdbarch_init): Update.
9327 * m68k-tdep.c (m68k_gdbarch_init): Update.
9328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9329 * ia64-tdep.c (ia64_gdbarch_init): Update.
9330 * i386-tdep.c (i386_gdbarch_init): Update.
9331 * hppa-tdep.c (hppa_gdbarch_init): Update.
9332 * h8300-tdep.c (h8300_gdbarch_init): Update.
9333 * frv-tdep.c (frv_gdbarch_init): Update.
9334 * cris-tdep.c (cris_gdbarch_init): Update.
9335 * avr-tdep.c (avr_gdbarch_init): Update.
9336 * arm-tdep.c (arm_gdbarch_init): Update.
9337 * alpha-tdep.c (alpha_gdbarch_init): Update.
9338 * d10v-tdep.c (d10v_gdbarch_init): Do not set
9339 max_register_raw_size or max_register_virtual_size.
9341 2003-03-03 David Carlton <carlton@math.stanford.edu>
9343 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
9344 SYMBOL_MATCHES_NAME, add comment.
9345 (SYMBOL_MATCHES_NATURAL_NAME): New.
9346 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
9347 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
9348 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
9349 * symtab.c (lookup_partial_symbol): Use
9350 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
9352 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
9353 SYMBOL_MATCHES_NAME.
9356 2003-03-03 David Carlton <carlton@math.stanford.edu>
9358 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
9359 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
9360 by regexp matching against SYMBOL_NATURAL_NAME.
9362 2003-03-03 David Carlton <carlton@math.stanford.edu>
9364 * linespec.c (find_method): Extract code into collect_methods.
9365 (collect_methods): New.
9367 2003-03-02 Mark Kettenis <kettenis@gnu.org>
9369 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
9372 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
9373 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9375 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
9377 * arch-utils.c (generic_register_byte): Fix to use the loop index
9378 and not regnum when summing the size of all registers up to regnum.
9380 2003-03-01 Andrew Cagney <cagney@redhat.com>
9382 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
9383 FRAME_INIT_SAVED_REGS.
9384 * gdbarch.h, gdbarch.c: Regenerate.
9385 * stack.c (frame_info): Update.
9386 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
9387 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
9388 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
9389 * ns32k-tdep.c (ns32k_pop_frame): Update.
9390 * mips-tdep.c (mips_pop_frame): Update.
9391 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
9392 * ia64-tdep.c (ia64_frame_chain): Update.
9393 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
9394 (ia64_frameless_function_invocation): Update.
9395 (ia64_init_extra_frame_info): Update.
9396 (ia64_pop_frame_regular): Update.
9397 * frame.h (struct frame_info): Update comment.
9398 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
9399 * frame.c (frame_saved_regs_register_unwind): Update.
9400 (frame_saved_regs_register_unwind): Update.
9401 (deprecated_generic_get_saved_register): Update.
9402 * cris-tdep.c: Update comment.
9403 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
9405 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9406 * x86-64-tdep.c (x86_64_init_abi): Update.
9407 * vax-tdep.c (vax_gdbarch_init): Update.
9408 * v850-tdep.c (v850_gdbarch_init): Update.
9409 * sparc-tdep.c (sparc_gdbarch_init): Update.
9410 * sh-tdep.c (sh_gdbarch_init): Update.
9411 * s390-tdep.c (s390_gdbarch_init): Update.
9412 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9413 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
9414 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9415 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9416 * mips-tdep.c (mips_gdbarch_init): Update.
9417 * mcore-tdep.c (mcore_gdbarch_init): Update.
9418 * m68k-tdep.c (m68k_gdbarch_init): Update.
9419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9420 * ia64-tdep.c (ia64_gdbarch_init): Update.
9421 * i386-tdep.c (i386_gdbarch_init): Update.
9422 * frv-tdep.c (frv_gdbarch_init): Update.
9423 * avr-tdep.c (avr_gdbarch_init): Update.
9424 * arm-tdep.c (arm_gdbarch_init): Update.
9425 * alpha-tdep.c (alpha_gdbarch_init): Update.
9427 2003-03-01 Andrew Cagney <cagney@redhat.com>
9429 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
9430 option enum and switch. When no windows, set the interpreter to
9433 2003-03-01 Andrew Cagney <cagney@redhat.com>
9435 * main.c (captured_main): Replace magic option characters with an
9438 2003-03-01 Andrew Cagney <cagney@redhat.com>
9440 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
9441 INIT_EXTRA_FRAME_INFO.
9442 * gdbarch.h, gdbarch.c: Regenerate.
9443 * arm-tdep.c: Update comments.
9444 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
9445 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
9446 * frame.h, avr-tdep.c: Ditto.
9447 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
9448 (create_new_frame, legacy_get_prev_frame): Ditto.
9449 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9450 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
9451 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
9452 deprecated_init_extra_frame_info instead of init_extra_frame_info.
9453 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9454 * v850-tdep.c (v850_gdbarch_init): Ditto.
9455 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9456 * sh-tdep.c (sh_gdbarch_init): Ditto.
9457 * s390-tdep.c (s390_gdbarch_init): Ditto.
9458 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
9459 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9460 * mips-tdep.c (mips_gdbarch_init): Ditto.
9461 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9463 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9464 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
9465 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9466 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9467 * frv-tdep.c (frv_gdbarch_init): Ditto.
9468 * cris-tdep.c (cris_gdbarch_init): Ditto.
9469 * avr-tdep.c (avr_gdbarch_init): Ditto.
9470 * arm-tdep.c (arm_gdbarch_init): Ditto.
9471 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9472 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9474 2003-03-01 Andrew Cagney <cagney@redhat.com>
9476 * gdbarch.sh (register_type): New function with predicate.
9477 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
9478 * gdbarch.h, gdbarch.c: Re-generate.
9479 * arch-utils.c (generic_register_byte): Use generic_register_size.
9480 (generic_register_size): When available, use
9481 gdbarch_register_type.
9482 * regcache.c (init_regcache_descr): When available, initialize the
9483 register type array using gdbarch_register_type. If the
9484 architecture supplies gdbarch_register_type, do not use the legacy
9486 * d10v-tdep.c (d10v_register_type): Replace
9487 d10v_register_virtual_type.
9488 (d10v_gdbarch_init): Set register_type instead of
9489 register_virtual_type.
9491 2003-03-01 Andrew Cagney <cagney@redhat.com>
9493 * Makefile.in (ax-gdb.o): Update dependencies.
9494 * ax-gdb.c: Include "regcache.h".
9495 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
9496 * findvar.c (value_of_register): Ditto.
9497 * infcmd.c (default_print_registers_info): Ditto.
9499 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9501 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
9502 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
9504 2003-03-01 Mark Kettenis <kettenis@gnu.org>
9506 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
9509 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
9511 * Makefile.in (dwarf2loc.o): Update dependencies.
9512 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
9513 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
9514 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
9515 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
9516 (locexpr_tracepoint_var_ref): New function.
9517 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
9519 2003-02-28 Andrew Cagney <cagney@redhat.com>
9521 * regcache.c (register_size): New function.
9522 * regcache.h (register_size): Declare
9523 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
9524 max_register_size instead of MAX_REGISTER_RAW_SIZE.
9526 2003-02-28 David Carlton <carlton@math.stanford.edu>
9528 * linespec.c (decode_compound): Extract code into find_method.
9531 2003-02-28 J. Brobecker <brobecker@gnat.com>
9533 * Makefile.in: Add rules to build and link in observer.o.
9535 2003-02-27 J. Brobecker <brobecker@gnat.com>
9537 * observer.c: Minor comments edits.
9539 2003-02-27 J. Brobecker <brobecker@gnat.com>
9541 * observer.h, observer.c: New file.
9543 2003-02-27 Andrew Cagney <cagney@redhat.com>
9545 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
9547 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
9549 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
9550 (M6812_OP_STS_EXT): Likewise.
9551 (m6811_prologue): Use the above to recognize prologue.
9552 (m6812_prologue): Likewise.
9554 2003-02-27 David Carlton <carlton@math.stanford.edu>
9556 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
9558 (compare_psymbols): Ditto.
9559 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
9561 2003-02-27 Michael Snyder <msnyder@redhat.com>
9563 * f-lang.c (build_fortran_types): New function.
9564 (_initialize_f_language): Gdbarch-register built-in fortran types.
9565 * doublest.c (extract_floating): Fix warning text.
9567 2003-02-27 Andrew Cagney <cagney@redhat.com>
9569 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
9570 predicate. Replaces PUSH_DUMMY_FRAME.
9571 * gdbarch.h, gdbarch.c: Regnerate.
9572 * valops.c (hand_function_call): Update. Call
9573 generic_push_dummy_frame directly.
9574 * vax-tdep.c (vax_gdbarch_init): Update.
9575 * sparc-tdep.c (sparc_gdbarch_init): Update.
9576 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
9577 * m68k-tdep.c (m68k_gdbarch_init): Update.
9578 * hppa-tdep.c (hppa_gdbarch_init): Update.
9579 * alpha-tdep.c (alpha_gdbarch_init): Update.
9580 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9581 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
9582 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
9583 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
9584 push_dummy_frame to generic_push_dummy_frame.
9585 * v850-tdep.c (v850_gdbarch_init): Ditto.
9586 * sh-tdep.c (sh_gdbarch_init): Ditto.
9587 * s390-tdep.c (s390_gdbarch_init): Ditto.
9588 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9589 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9590 * mips-tdep.c (mips_gdbarch_init): Ditto.
9591 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9593 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9594 * i386-tdep.c (i386_gdbarch_init): Ditto.
9595 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9596 * frv-tdep.c (frv_gdbarch_init): Ditto.
9597 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
9598 * cris-tdep.c (cris_gdbarch_init): Ditto.
9599 * avr-tdep.c (avr_gdbarch_init): Ditto.
9600 * arm-tdep.c (arm_gdbarch_init): Ditto.
9602 2003-02-26 Kevin Buettner <kevinb@redhat.com>
9604 * mips-tdep.c (show_mips_abi): New function.
9605 (_initialize_mips_tdep): Use show_mips_abi() to implement the
9606 command ``show mips abi''.
9608 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
9610 From Elena Zannoni <ezannoni@redhat.com>
9611 * dbxread.c (process_one_symbol): Only record line 0 if one or
9612 more sline entries have been seen for the function.
9614 2003-02-26 Michael Chastain <mec@shout.net>
9616 * configure: Regenerate with autoconf 000227.
9618 2003-02-26 Michael Chastain <mec@shout.net>
9621 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
9622 for old libc5/glibc.
9623 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
9625 2003-02-26 Kris Warkentin <kewarken@qnx.com>
9627 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
9628 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
9630 2003-02-26 Michael Chastain <mec@shout.net>
9632 * configure.in: New variable HAVE_UINTPTR_T.
9633 * configure, config.in: Regenerated.
9635 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
9638 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
9640 2003-02-25 Andrew Cagney <cagney@redhat.com>
9642 * frame.c (get_prev_frame): Add comment on check for
9643 inside_entry_func. Only check for inside_entry_file when not a
9644 dummy and not a sentinel. Check that the new frame is not inner
9647 2003-02-25 Andrew Cagney <cagney@redhat.com>
9649 * frame.c (frame_debug): New variable.
9650 (_initialize_frame): Add "set/show debug frame" command.
9651 (get_prev_frame): When frame_debug, print reason why unwind
9654 2003-02-25 Michael Chastain <mec@shout.net>
9656 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
9657 to avoid uintptr_t definition problems.
9659 2003-02-25 David Carlton <carlton@math.stanford.edu>
9661 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
9662 (SYMBOL_LINKAGE_NAME): Ditto.
9663 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
9664 SYMBOL_LINKAGE_NAME.
9665 (struct general_symbol_info): Expand comment.
9666 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
9667 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
9668 (SYMBOL_MATCHES_REGEXP): Ditto.
9669 * symtab.c (symbol_natural_name): New function.
9670 * objfiles.h: Replace all uses of SYMBOL_NAME by
9671 DEPRECATED_SYMBOL_NAME.
9672 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
9673 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
9674 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
9675 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
9676 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
9677 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
9678 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
9679 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
9680 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
9681 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
9683 * ada-exp.y: Update copyright.
9684 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
9685 * cp-valprint.c: Ditto.
9687 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
9689 * infptrace.c (detach): Do not flag error if ptrace detach fails
9690 and errno is set to ESRCH.
9692 2003-02-24 Andrew Cagney <cagney@redhat.com>
9694 * infptrace.c (udot_info): Change type of udot_off to long. Use
9695 paddr when printing udot_off's value.
9697 2003-02-24 David Carlton <carlton@math.stanford.edu>
9699 * symtab.c (make_symbol_overload_list): Only read in partial
9700 symtabs containing a matching partial symbol.
9702 2003-02-24 David Carlton <carlton@math.stanford.edu>
9704 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
9705 do the comparison, not strcmp.
9706 * symfile.c (compare_psymbols): Ditto.
9707 * defs.h: Declare strcmp_iw_ordered.
9708 * utils.c (strcmp_iw_ordered): New function.
9710 2003-02-24 Jim Blandy <jimb@redhat.com>
9712 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
9713 support, shared libs): Remove my name from here, to better reflect
9716 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9718 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
9719 (target_ops): Add to_have_continuable_watchpoint.
9720 * target.c (update_current_target): Add INHERIT line for
9721 to_have_continuable_watchpoint.
9722 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
9723 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
9724 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
9725 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
9727 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
9729 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
9732 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9734 * solib.c (solib_open): Call target defined search function after
9735 failing with solib-search-path.
9736 * solist.h (target_so_ops): Add find_and_open_solib function hook and
9737 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
9739 2003-02-24 Kris Warkentin <kewarken@qnx.com>
9741 * MAINTAINERS: Add myself to Write After section.
9743 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
9745 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
9747 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
9749 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
9750 (m68hc11_add_reggroups): New function.
9751 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
9752 (m68hc11_gdbarch_init): Install the reggroups.
9753 (_initialize_m68hc11_tdep): Initialize them.
9755 2003-02-21 James E Wilson <wilson@tuliptree.org>
9757 * MAINTAINERS: Update my email address.
9759 2003-02-21 David Carlton <carlton@math.stanford.edu>
9761 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
9763 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
9765 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
9766 * symtab.h: Add opaque declarations of struct axs_value and
9768 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
9769 (struct location_funcs): New type.
9770 (struct symbol): Add "loc" to aux_value.
9771 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
9772 * dwarf2read.c: Include "dwarf2expr.h".
9773 (dwarf2_symbol_mark_computed): New function.
9774 (read_func_scope): Use it.
9775 (var_decode_location): New function.
9776 (new_symbol): Use it.
9777 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
9779 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
9780 (dwarf2expr_h, dwarf2loc_h): New variables.
9781 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
9782 (dwarf2expr.o, dwarf2loc.o): New rules.
9783 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
9784 * buildsym.c (finish_block): Handle LOC_COMPUTED and
9786 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
9787 * m2-exp.y (yylex): Likewise.
9788 * printcmd.c (address_info, print_frame_args): Likewise.
9789 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
9790 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
9791 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
9792 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
9793 * symtab.c (lookup_block_symbol): Likewise.
9795 2003-02-20 Adam Fedor <fedor@gnu.org>
9797 * symtab.h: Remove objc_specific struct
9798 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
9799 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
9800 Have language_objc use cplus_specific struct.
9802 2003-02-20 Tom Tromey <tromey@redhat.com>
9804 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
9805 TYPE_NAME, when printing a String value. PR java/1075.
9807 2003-02-20 Adam Fedor <fedor@gnu.org>
9809 * objc-lang.h (find_methods): Remove declaration.
9810 * objc-lang.c (find_methods): Make static.
9812 2003-02-20 Christopher Faylor <cgf@redhat.com>
9814 * win32-nat.c (get_image_name): Check return value from
9816 (child_xfer_memory): Ditto.
9818 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
9820 * configure.in (TARGET_SYSTEM_ROOT): Set default to
9821 ${exec_prefix}/${target_alias}/sys-root. Match explicit
9822 '${exec_prefix}' (in addition to the expansion thereof) as
9824 * configure: Rebuilt.
9826 2003-02-20 David Carlton <carlton@math.stanford.edu>
9828 * symtab.c (search_symbols): Revert the search_symbols part of my
9829 2002-12-23 patch. Add comment.
9831 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
9833 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
9834 * dbxread.c (elfstab_build_psymtabs): Don't call
9835 install_minimal_symbols.
9836 (stabsect_build_psymtabs): Likewise.
9837 * elfread.c (elf_symfile_read): Call install_minimal_symbols
9839 * somread.c (som_symfile_read): Call install_minimal_symbols
9840 and do_cleanups earlier.
9841 * nlmread.c (nlm_symfile_read): Likewise.
9842 * mdebugread.c (elfmdebug_build_psymtabs): Call
9843 install_minimal_symbols and make appropriate cleanups.
9845 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9847 * solib.c (reload_shared_libraries): New function.
9848 (_initialize_solib): Add callbacks for ``set solib-search-path''
9849 and ``set solib-absolute-prefix''.
9851 2003-02-20 David Carlton <carlton@math.stanford.edu>
9853 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
9855 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
9856 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
9857 * ada-typeprint.c (ada_typedef_print): Ditto.
9858 * ax-gdb.c (gen_var_ref): Ditto.
9859 * breakpoint.c (print_one_breakpoint): Ditto.
9860 * buildsym.c (finish_block): Ditto.
9861 * c-valprint.c (c_val_print): Ditto.
9862 * expprint.c (print_subexp): Ditto.
9863 * findvar.c (locate_var_value): Ditto.
9864 * infcmd.c (jump_command): Ditto.
9865 * linespec.c (decode_line_2, decode_compound): Ditto.
9866 * maint.c (maintenance_translate_address): Ditto.
9867 * objc-lang.c (compare_selectors, compare_classes): Ditto.
9868 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
9870 * p-valprint.c (pascal_val_print): Ditto.
9871 * stabsread.c (define_symbol): Ditto.
9872 * stack.c (print_frame, frame_info, print_block_frame_locals)
9873 (print_frame_arg_vars, return_command): Ditto.
9874 * symfile.c (compare_symbols, compare_psymbols): Ditto.
9875 * symmisc.c (print_symbol): Ditto.
9876 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
9877 (compare_search_syms, print_symbol_info, print_msymbol_info)
9878 (rbreak_command): Ditto.
9879 * tracepoint.c (tracepoints_info): Ditto.
9880 * typeprint.c (typedef_print): Ditto.
9881 * valops.c (value_of_variable, hand_function_call): Ditto.
9882 * cli/cli-cmds.c (edit_command, list_command): Ditto.
9883 * ada-typeprint.c: Update Copyright.
9884 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
9885 * tracepoint.c, cli/cli-cmds.c: Ditto.
9887 2003-02-20 Kevin Buettner <kevinb@redhat.com>
9889 * frame.c (generic_unwind_get_saved_register): Make non-static.
9890 * frame.h (generic_unwind_get_saved_register): Declare.
9891 * mips-tdep.c (read_next_frame_reg): Fetch register from
9892 current regcache when frame is NULL.
9893 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
9895 (mips_get_saved_register): Call generic_unwind_get_saved_register()
9896 instead of frame_register_unwind().
9898 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9900 * remote-sim.c (gdbsim_insert_breakpoint)
9901 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
9904 2003-02-20 Andrew Cagney <ac131313@redhat.com>
9906 * remote.c (_initialize_remote): Add commands "set/show remote
9907 hardware-watchpoint-limit" and "set/show remote
9908 hardware-breakpoint-limit".
9909 (remote_hw_watchpoint_limit): Initialize to -1.
9910 (remote_hw_breakpoint_limit): Ditto.
9911 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
9913 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
9915 * coff-pe-read.c: New file - support reading of minimal symbols from a
9916 portable executable using the export table.
9917 * coff-pe-read.h: New file.
9918 * coffread.c: Include coff-pe-read.h.
9919 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
9920 debugging symbols found.
9921 * Makefile.in (SFILES): Add coff-pe-read.o.
9922 (coff_pe_read_h): Define.
9923 (COMMON_OBS): Add coff-pe-read.o.
9924 (coffread.o): Add coff_pe_read_h dependency.
9925 (coff-pe-read.o): New target.
9927 2003-02-19 David Carlton <carlton@math.stanford.edu>
9929 * Makefile.in (SFILES): Add block.c.
9931 (COMMON_OBS): Add block.o.
9933 (x86-64-tdep.o): Add $(block_h).
9934 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
9935 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
9936 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
9937 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
9938 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
9939 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
9940 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
9941 * value.h: Add opaque declaration for struct block.
9942 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
9943 * ada-lang.h: Ditto.
9944 * x86-64-tdep.c: #include "block.h"
9945 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
9946 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
9947 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
9948 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
9949 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
9950 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
9951 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
9952 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
9953 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
9954 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
9955 * symtab.c (block_function): Ditto.
9956 (contained_in): Ditto.
9957 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
9958 block.h. Add opaque declaration for struct block.
9959 * symtab.h: Move block_function and contained_in declarations to
9960 block.h. Add opaque declarations for struct block, struct
9962 (struct block): Move to block.h.
9963 (struct blockvector): Ditto.
9964 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
9965 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
9966 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
9967 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
9968 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
9970 * block.c: New file.
9971 * block.h: New file.
9973 2003-02-19 Theodore A. Roth <troth@openavr.org>
9975 * avr-tdep.c (avr_extract_return_value): Remove function.
9976 (avr_store_return_value): Remove function.
9977 (avr_extract_struct_value_address): Remove function.
9978 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
9980 2003-02-19 Andrew Cagney <ac131313@redhat.com>
9982 * rs6000-tdep.c: Include "gdb_assert.h".
9983 (registers_e500): Add "acc" and "spefscr".
9984 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
9985 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
9986 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
9988 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
9990 2003-02-18 Keith Seitz <keiths@redhat.com>
9992 * Makefile.in: Add gdbtk-interps.c.
9994 2003-02-18 Kevin Buettner <kevinb@redhat.com>
9996 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
9997 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
9999 2003-02-18 Andrew Cagney <cagney@redhat.com>
10001 * symtab.h (struct objfile): Add opaque declaration.
10003 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
10005 From Jim Ingham <jingham@apple.com>:
10006 * dbxread.c (process_one_symbol): Use last_function_start rather
10007 than function_start_offset to find the real beginning of the
10008 current function. The latter is just the text section offset on
10009 some systems, the former is always the real function start.
10011 2003-02-17 Andrew Cagney <cagney@redhat.com>
10013 * configure.in: Revert ${target} != ${host}.
10015 2003-02-17 Andrew Cagney <ac131313@redhat.com>
10017 * configure.in (Makefile): Use the test ${target} != ${host},
10018 instead of the absence of the "nm.h" file, to determine of the
10019 configuration non-native.
10020 * configure: Regenerate.
10022 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
10024 From Brian Ford <ford@vss.fsi.com>
10026 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
10027 conditionalize tui_active test.
10028 (lookup_cmd_1): Ditto.
10030 2003-02-14 Mark Kettenis <kettenis@gnu.org>
10032 * configure.in: Add check for _etext.
10033 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
10035 * config.in, configure: regenerated.
10037 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
10039 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
10041 2003-02-14 Andrew Cagney <ac131313@redhat.com>
10043 * main.c (tui_version): Delete variable.
10044 (captured_main): When --tui, set interpreter_p to "tui" instead of
10045 enabling tui_version.
10046 * printcmd.c (display_command) [TUI]: Test tui_active instead of
10048 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
10049 * cli/cli-cmds.c (disassemble_command): Ditto.
10050 * defs.h (tui_version): Delete declaration.
10051 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
10052 (tui-interp.o): Add rules.
10053 (SUBDIR_TUI_OBS): Add "tui-interp.o".
10055 2003-02-14 Christopher Faylor <cgf@redhat.com>
10057 * win32-nat.c (register_loaded_dll): Correctly set address range for
10060 2003-02-12 Jason Molenda (jmolenda@apple.com)
10062 * symmisc.c (print_objfile_statistics): Include information about
10063 the number of psymtabs and symtabs in each object file.
10065 2003-02-13 Keith R Seitz <keiths@redhat.com>
10067 * main.h (struct captured_main_args): Add interpreter_p.
10068 * main.c (captured_main): Initialize interpreter_p from context.
10069 * gdb.c (main): Set interpreter_p argument.
10070 * Makefile.in (gdb.o): Add dependency for interps.h.
10072 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10074 * event-top.c (cli_command_loop): Delete declaration.
10075 (_initialize_event_loop): Delete function setting event_loop_hook.
10076 * event-top.h (cli_command_loop): Declare. Update copyright.
10077 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
10078 * interps.c (current_interp_command_loop): When event_loop_p, call
10081 2003-02-12 Andrew Cagney <ac131313@redhat.com>
10083 * interps.h (interp_command_loop_ftype): Change return type to
10086 2003-02-12 Michal Ludvig <mludvig@suse.cz>
10088 * x86-64-tdep.c (x86_64_extract_return_value)
10089 (x86_64_store_return_value): Use regcache instead of regbuf.
10090 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
10091 * x86-64-linux-nat.c (fill_gregset): Use regcache.
10093 2003-02-11 Andrew Cagney <ac131313@redhat.com>
10095 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
10096 * aclocal.m4: Regenerate.
10097 * configure: Regenerate.
10099 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
10100 TCL_LD_SEARCH_FLAGS.
10102 2003-02-10 Michal Ludvig <mludvig@suse.cz>
10104 * dwarf2cfi.c: Reindented.
10106 2003-02-09 Andrew Cagney <ac131313@redhat.com>
10108 * interps.c (clear_interpreter_hooks): Convert function definition
10111 2003-02-07 David Carlton <carlton@math.stanford.edu>
10113 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
10115 2003-02-07 Kevin Buettner <kevinb@redhat.com>
10117 * gdbtypes.h (struct main_type): Move ``length'' field from here...
10118 (struct type): ...to here.
10119 (TYPE_LENGTH): Adjust to reflect different location of ``length''
10121 * gdbtypes.c (make_qualified_type): Set length on newly created type.
10122 (replace_type): Set length on all type variants for a given type.
10124 2003-02-07 Andrew Cagney <ac131313@redhat.com>
10126 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
10128 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
10130 2003-02-06 Andrew Cagney <ac131313@redhat.com>
10132 * Makefile.in (symm-nat.o): Update dependencies.
10133 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
10134 (lynx-nat.o, ia64-linux-nat.): Ditto.
10135 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
10136 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
10137 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
10139 * Makefile.in (inflow_h): Define.
10140 (procfs.o, inflow.o, procfs.o): Update dependencies.
10141 * inftarg.c (child_stop): Delete extern declaration of
10142 inferior_process_group. Include "inflow.h".
10143 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
10144 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
10145 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
10146 (our_process_group, inferior_process_group): Extern declarations.
10148 * procfs.c: Include "gdb_assert.h".
10150 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10151 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
10152 * jv-typeprint.c (java_type_print_base): Ditto.
10153 * typeprint.c (typedef_print): Eliminate STREQ.
10154 * cli/cli-script.c (define_command, define_command): Ditto.
10155 * main.c (captured_main): Ditto.
10156 * values.c (lookup_internalvar): Ditto.
10157 * utils.c (safe_strerror, parse_escape): Eliminate assignment
10158 within `if' conditional.
10159 * linespec.c (decode_line_2): Ditto.
10160 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
10161 (bfd_openw_with_cleanup): Ditto.
10163 2003-02-07 Mark Kettenis <kettenis@gnu.org>
10165 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
10166 legacy_extract_return_value and store_return_value to
10167 legacy_return_value.
10169 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
10171 * win32-nat.c (get_relocated_section_addrs): New function. Find
10172 section load addresses for symbol handling in relocated DLLs.
10173 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
10175 2003-02-05 Fred Fish <fnf@intrinsity.com>
10177 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
10179 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
10181 (angel_RDI_info): Ditto.
10182 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
10184 (threads_continue_all_with_signals): Ditto.
10186 2003-02-05 Jim Ingham <jingham@apple.com>
10187 Keith Seitz <keiths@redhat.com>
10188 Elena Zannoni <ezannoni@redhat.com>
10189 Andrew Cagney <ac131313@redhat.com>
10191 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
10192 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
10193 (SUBDIR_MI_OBS): Add "mi-interp.o".
10194 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
10195 (SFILES): Add "interps.c".
10196 (COMMON_OBS): Add "interps.o".
10197 (interps_h, mi_main_h): Define.
10198 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
10199 (mi-main.o, main.o, event-top.o): Update dependencies.
10200 * cli/cli-interp.c: New file.
10201 * interps.h, interps.c: New files.
10202 * top.c: (gdb_init): Don't install the default interpreter, handed
10204 * main.c: Include "interps.h".
10205 (interpreter_p): Note that it should malloc'ed.
10206 (captured_command_loop): Call current_interp_command_loop.
10207 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
10208 xfree and xstrdup when updating interpreter_p. Install the
10209 default interpreter. Add hack to stop mi1's copyright notice
10211 * event-top.h (gdb_setup_readline): Declare.
10212 (gdb_disable_readline): Declare.
10213 * event-top.c: Include "interps.h".
10214 (display_gdb_prompt): Call current_interp_display_prompt_p.
10215 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
10216 gdb_stdlog, and gdb_stdtarg.
10217 (_initialize_event_loop): Don't call gdb_setup_readline.
10218 * cli-out.c (cli_out_set_stream): New function.
10219 * cli-out.h (cli_out_set_stream): Declare.
10221 2003-02-06 Mark Kettenis <kettenis@gnu.org>
10223 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
10224 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
10225 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
10226 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
10227 config/i386/i386v42mp.mt: Removed.
10229 2003-02-05 Mark Kettenis <kettenis@gnu.org>
10231 * configure.tgt (*-*-solaris*): Set gdb_osabi to
10234 2003-02-05 Michael Chastain <mec@shout.net>
10236 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
10237 2.12.1 and earlier versions.
10239 2003-02-05 Andrew Cagney <ac131313@redhat.com>
10241 Remove orphaned hosts, targets and files.
10242 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
10243 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
10244 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
10245 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
10246 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
10247 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
10248 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
10249 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
10250 * config/sparc/tm-sp64sim.h: Delete.
10251 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
10253 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
10254 mips*-dec-mach3* targets.
10256 2003-02-04 Michael Chastain <mec@shout.net>
10258 * NEWS: Fix typo: sepcifying -> specifying.
10260 2003-02-04 Michael Chastain <mec@shout.net>
10262 * dwarfread.c: Add documentation on the state of dwarf-1,
10263 looking towards obsoletion.
10265 2003-02-03 Michael Chastain <mec@shout.net>
10267 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
10268 gdb/testsuite/gdb.c++/pr-1023.exp.
10270 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10272 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
10273 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
10275 * utils.c (init_page_info): Delete reference to MPW in comments.
10276 * main.c (captured_main): Delete #ifdef MPW.
10278 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10280 * NEWS: Note that the m32r-*-elf* is obsolete.
10281 * monitor.c (monitor_expect): Obsolete reference to m32r.
10282 * configure.tgt: Mark m32r-*-elf* as obsolete.
10283 * MAINTAINERS: Mark m32k as obsolete.
10284 * m32r-rom.c: Obsolete file.
10285 * config/m32r/m32r.mt: Obsolete file.
10286 * config/m32r/tm-m32r.h: Obsolete file.
10287 * m32r-stub.c: Obsolete file.
10288 * m32r-tdep.c: Obsolete file.
10290 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10292 * NEWS: Mention that the z8k-zilog-none is obsolete.
10293 * MAINTAINERS: Mark z8k as obsolete.
10294 * configure.tgt: Obsolete the z8k-*-coff* target.
10295 * config/z8k/z8k.mt: Obsolete file.
10296 * config/z8k/tm-z8k.h: Obsolete file.
10297 * z8k-tdep.c: Obsolete file.
10299 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10301 * NEWS: Mention that the mn10200-elf is obsolete.
10302 * configure.tgt: Obsolete mn10200-*-* target.
10303 * breakpoint.c (update_breakpoints_after_exec): Update comment to
10304 mention that the mn10200 is obsolete.
10305 * breakpoint.h: Ditto.
10306 * MAINTAINERS: Mark the mn10200-elf as obsolete.
10307 * config/mn10200/mn10200.mt: Obsolete file.
10308 * config/mn10200/tm-mn10200.h: Obsolete file.
10309 * mn10200-tdep.c: Obsolete file.
10311 2003-02-04 Andrew Cagney <ac131313@redhat.com>
10313 * MAINTAINERS: Mark h8500 as obsolete.
10314 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
10315 * findvar.c (value_from_register): Ditto.
10316 * h8500-tdep.c: Mark file as obsolete.
10317 * config/h8500/h8500.mt: Ditto.
10318 * config/h8500/tm-h8500.h: Ditto.
10319 * NEWS: Mention that h8500 is obsolete.
10321 2003-02-04 David Carlton <carlton@math.stanford.edu>
10323 * objfiles.c (allocate_objfile): Always set name. Add comment at
10325 * jv-lang.c (get_dynamics_objfile): Add comment.
10327 2003-02-04 David Carlton <carlton@math.stanford.edu>
10329 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
10330 * printcmd.c (build_address_symbolic): Replace uses of
10331 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
10332 SYMBOL_NAME, and asm_demangle.
10335 2003-02-04 David Carlton <carlton@math.stanford.edu>
10337 * linespec.c (decode_compound): Extract code into
10339 (lookup_prefix_sym): New function.
10341 2003-02-04 David Carlton <carlton@math.stanford.edu>
10343 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
10344 FLOAT_COERCION_BADNESS.
10345 * gdbtypes.c (rank_one_type): Replace all uses of
10346 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
10348 2003-02-04 Jim Blandy <jimb@redhat.com>
10350 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
10351 section, let dwarf_macinfo_section point to it, not
10354 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10356 Pointed out by Anton Blanchard <anton@samba.org>.
10357 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
10358 (ppc_linux_at_sigtramp_return_path): Use it.
10360 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
10362 * defs.h (streq): Add prototype.
10363 * utils.c (streq): New function.
10365 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
10366 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
10367 * mdebugread.c (new_symbol): Likewise.
10368 * stabsread.c (define_symbol): Likewise.
10369 * coffread.c (process_coff_symbol): Likewise.
10370 * dwarfread.c (new_symbol): Likewise.
10372 * minsyms.c (prim_record_minimal_symbol_and_info): Use
10373 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
10375 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
10376 SYMBOL_INIT_DEMANGLED_NAME.
10377 * objfiles.c: Include "hashtab.h".
10378 (allocate_objfile): Call htab_set_functions_ex for the
10379 demangled_names_hash.
10380 (free_objfile): Call htab_delete for the demangled_names_hash.
10381 * objfiles.h (struct htab): Add declaration.
10382 (struct objfile): Add demangled_names_hash.
10383 * symfile.c: Include "hashtab.h".
10384 (reread_symbols): Call htab_delete for the demangled_names_hash.
10385 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
10386 SYMBOL_NAME in the bcache.
10387 * symtab.c: Include "hashtab.h". Update comments.
10388 (create_demangled_names_hash, symbol_set_names): New functions.
10389 (symbol_find_demangled_name): New function, broken out from
10390 symbol_init_demangled_names.
10391 (symbol_init_demangled_names): Use it.
10392 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
10393 (SYMBOL_SET_NAMES): New macro.
10394 (symbol_set_names): Add prototype.
10396 2003-02-03 Jim Blandy <jimb@redhat.com>
10398 Use a single, consistent representation for an empty minimal
10399 symbol table in an objfile.
10400 * objfiles.c (terminate_minimal_symbol_table): New function.
10401 (allocate_objfile): Call it.
10402 * objfiles.h (terminate_minimal_symbol_table): New declaration.
10403 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
10405 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
10406 objfile has minimal symbols, compare minimal_symbol_count to zero,
10407 instead of comparing msymbols with NULL.
10408 * objfiles.c (have_minimal_symbols): Same.
10409 * solib-sunos.c (solib_add_common_symbols): Call
10410 terminate_minimal_symbol_table.
10411 * symfile.c (reread_symbols): Same.
10413 2003-02-03 Kevin Buettner <kevinb@redhat.com>
10415 * s390-tdep.c (s390_address_class_type_flags)
10416 (s390_address_class_type_flags_to_name)
10417 (s390_address_class_name_to_type_flags): New functions.
10418 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
10419 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
10421 2003-02-03 Michael Snyder <msnyder@redhat.com>
10423 * arm-tdep.c: Fix spell-o in comment.
10425 2003-02-03 Michal Ludvig <mludvig@suse.cz>
10427 * dwarf2cfi.c (pointer_encoding): Added new parameter.
10428 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
10429 error messages to contain BFD filename.
10431 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
10433 Fix PR gdb/742 gdb/743 gdb/877
10434 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
10435 (do_mixed_source_and_assembly): Use
10436 make_cleanup_ui_out_tuple_begin_end and
10437 make_cleanup_ui_out_tuple_begin_end.
10438 (do_mixed_source_and_assembly): Ditto.
10439 * thread.c (do_captured_list_thread_ids): Ditto.
10440 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
10441 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
10442 ui_out_tuple_end): Delete prototypes.
10443 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
10444 ui_out_list_end, ui_out_tuple_end): Delete.
10446 From Kevin Buettner <kevinb@redhat.com>:
10447 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
10448 * ui-out.c (make_cleanup_ui_out_table_begin_end)
10449 (do_cleanup_table_end): New functions.
10450 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
10451 Use cleanups to invoke_ui_out_tuple_end().
10452 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
10453 * cli/cli-setshow.c (cmd_show_list): Use
10454 make_cleanup_ui_out_tuple_begin_end.
10456 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10458 * frame.c (frame_unwind_register): New function.
10459 (frame_unwind_unsigned_register): Use.
10460 (frame_unwind_signed_register): Use.
10461 (frame_read_register): New function.
10462 * frame.h (frame_unwind_register): Declare.
10463 (frame_read_register): Declare.
10465 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
10466 and frame_unwind_register instead of read_memory, write_register
10467 and deprecated_write_register_bytes.
10469 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10471 * frame.h: Note that namelen can be negative.
10472 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
10475 * NEWS: Mention that the d10v's `regs' command is deprecated.
10476 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
10477 (d10v_print_registers_info): New function.
10478 (show_regs): Call d10v_print_registers_info.
10479 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
10481 2003-02-02 Mark Kettenis <kettenis@gnu.org>
10483 * stack.c (print_frame_info): Restore call to annotate_frame_begin
10484 lost in the previous patch.
10486 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10488 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
10489 * stack.c (print_frame_info_base): Output complete FRAME tuple
10490 for synthesized frames.
10492 2003-02-02 Andrew Cagney <ac131313@redhat.com>
10494 * mips-nat.c (zerobuf): Delete.
10495 (fetch_inferior_registers): Alloc local zerobuf.
10496 (fetch_core_registers): Alloc local zerobuf.
10497 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
10498 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
10499 * thread-db.c (thread_db_store_registers): Ditto.
10500 * sh-tdep.c (sh_do_register): Ditto.
10501 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
10502 * remote-sim.c (gdbsim_store_register): Ditto.
10503 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
10504 * remote-e7000.c (fetch_regs_from_dump): Ditto.
10505 * monitor.c (monitor_supply_register): Ditto.
10506 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
10507 * mips-nat.c (fetch_inferior_registers): Ditto.
10508 * m68klinux-nat.c (fetch_register): Ditto.
10509 * lynx-nat.c (fetch_inferior_registers): Ditto.
10510 (fetch_inferior_registers): Ditto.
10511 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
10512 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
10513 (hpux_thread_store_registers): Ditto.
10514 * hppah-nat.c (fetch_register): Ditto.
10515 * hppab-nat.c (fetch_register): Ditto.
10516 * hppa-tdep.c (pa_register_look_aside): Ditto.
10517 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
10518 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
10520 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10522 * gdbarch.sh: Explictly specify all method levels. When a
10523 variable with an empty level, provide a non-multi-arch default.
10524 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
10525 * gdbarch.h: Re-generate.
10526 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
10527 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
10529 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10531 * defs.h (host_pointer_to_address): Delete declaration.
10532 (address_to_host_pointer): Delete declaration.
10533 * utils.c (host_pointer_to_address): Delete function.
10534 (address_to_host_pointer): Delete function.
10535 * procfs.c (procfs_address_to_host_pointer): New function.
10536 * procfs.c (proc_set_watchpoint): Use.
10537 (procfs_can_use_hw_breakpoint): Update comments.
10538 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
10539 (som_solib_add): Use.
10540 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
10541 * hppa-tdep.c (unwind_command): Use.
10543 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10545 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
10548 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
10549 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
10550 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
10551 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
10552 (define_symbol): Update.
10553 * symfile.c (generic_load): Remove references to nindy.
10554 * symtab.c: Remove references to nindy.
10556 2003-02-01 Andrew Cagney <ac131313@redhat.com>
10558 * infcmd.c (print_float_info): Delete code conditional on
10560 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
10561 * config/m68k/nm-apollo68b.h: Ditto.
10562 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
10563 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
10564 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
10566 2003-02-01 Mark Kettenis <kettenis@gnu.org>
10568 * config/i386/tm-i386os9k.h: Removed.
10570 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
10571 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
10572 they're identical to i[3456]86-*-sysv* now.
10573 * config/i386/i386v32.mh: Removed.
10574 * config/i386/xm-i386v32.h: Removed.
10575 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
10577 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
10579 * config/i386/i386dgux.mh: Removed.
10580 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
10582 * configure.in: Fix typo.
10583 * configure: Regenerated.
10585 2003-01-31 David Carlton <carlton@math.stanford.edu>
10587 * dwarf2read.c (dwarf2_locate_sections): Set
10588 dwarf_ranges_section.
10590 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10592 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
10593 * utils.c: Update comments documenting legitimate uses of PTR.
10595 * utils.c: Re-indent.
10597 * config/djgpp/fnchange.lst: Delete nindy files.
10598 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
10599 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
10600 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
10601 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
10602 * nindy-share/README, nindy-share/Onindy.c: Delete files.
10603 * nindy-tdep.c, nindy-share/Makefile: Delete files.
10604 * Makefile.in (init.c): Remove nindy references.
10605 (saber_gdb): Delete rule.
10606 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
10607 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
10609 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
10610 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
10611 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
10612 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
10613 nindy-share/stop.h.
10614 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
10615 * saber.suppress: Delete file.
10617 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
10619 * dbxread.c (stabs_data): New static variable.
10620 (fill_symbuf): Support an in-memory buffer for stabs data.
10621 (stabs_seek): New function.
10622 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
10623 (read_ofile_symtab): Use stabs_seek.
10624 (elfstab_build_psymtabs): Take an asection* instead of
10625 an offset and size. Relocate the stabs data if necessary.
10626 Save the section* for dbx_psymtab_to_symtab.
10627 * dwarf2read.c: Add section variables for each debug section.
10628 (dwarf2_locate_sections): Fill them in.
10629 (dwarf2_read_section): Take an asection* argument.
10630 Relocate the section contents if necessary.
10631 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
10632 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
10633 it to dwarf2_read_section.
10634 (dwarf2_build_frame_info): Update callers.
10635 * elfread.c (elf_symfile_read): Update call to
10636 elfstab_build_psymtabs.
10637 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
10638 (DBX_STAB_SECTION): New macro.
10639 * stabsread.h (elfstab_build_psymtabs): Update prototype.
10640 * symfile.c (symfile_dummy_outputs): New function.
10641 (symfile_relocate_debug_section): New function.
10642 * symfile.h (symfile_relocate_debug_section): Add prototype.
10644 2003-01-31 Richard Henderson <rth@redhat.com>
10646 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
10647 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
10648 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
10649 * alpha-tdep.c (alpha_register_name): Add "unique".
10650 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
10651 (ALPHA_UNIQUE_REGNUM): New.
10652 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
10654 2003-01-31 Andrew Cagney <ac131313@redhat.com>
10656 * README: Remove reference to Ericsson 1800 monitor.
10657 * Makefile.in (remote-es.o): Delete rule.
10658 (ALLDEPFILES): Delete remote-es.c.
10659 * remote-es.c: Delete file.
10660 * config/m68k/es1800.mt: Delete file.
10661 * config/djgpp/fnchange.lst: Update.
10662 * configure.tgt: Delete m68*-ericsson-* target.
10664 2003-01-31 Adam Fedor <fedor@gnu.org>
10666 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
10667 Remove duplicate/shadowing variable of same name.
10669 2003-01-30 Jim Blandy <jimb@redhat.com>
10671 * symfile.c (find_separate_debug_file): Assert that the objfile's
10672 directory name we compute ends with a slash, and then assume that
10673 that's so everywhere we use it.
10675 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
10677 * valops.c (value_assign): Flush frame cache after stores to memory
10680 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10682 * Makefile.in (mon960-rom.o): Delete rule.
10683 * mon960-rom.c: Delete file.
10685 2003-01-30 Andrew Cagney <ac131313@redhat.com>
10687 * d10v-tdep.c: Include "frame-unwind.h".
10688 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
10690 (next_addr, uses_frame): Delete.
10691 (struct d10v_unwind_cache): Define.
10692 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
10693 Use info instead of next_addr and uses_frame globals.
10694 (d10v_frame_init_saved_regs): Delete function.
10695 (d10v_init_extra_frame_info): Delete function.
10696 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
10697 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
10698 init_frame_pc or frame_saved_pc.
10699 (d10v_pop_frame): Delete function.
10700 (do_d10v_pop_frame): Delete function.
10701 (d10v_frame_chain): Delete function.
10702 (d10v_frame_chain_valid): Delete function.
10703 (d10v_frame_pc_unwind): New function.
10704 (d10v_frame_id_unwind): New function.
10705 (saved_regs_unwinder): New function.
10706 (d10v_frame_register_unwind): New function.
10707 (d10v_frame_pop): New function.
10708 (d10v_frame_unwind): New variable.
10709 (d10v_frame_p): New function.
10710 (d10v_frame_saved_pc): Delete function.
10711 * Makefile.in (d10v-tdep.o): Update dependencies.
10713 2003-01-30 J. Brobecker <brobecker@gnat.com>
10715 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
10716 causing some regressions due to a change in the default value
10719 2003-01-29 Richard Henderson <rth@redhat.com>
10720 Elena Zannoni <ezannoni@redhat.com>
10721 Daniel Jacobowitz <drow@mvista.com>
10724 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
10726 (RANGES_SECTION): New.
10727 (dwarf_ranges_buffer): New variable.
10728 (struct comp_unit_head): Add member "die".
10729 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
10730 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
10731 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
10732 (dwarf2_locate_sections): Likewise.
10733 (dwarf2_build_psymtabs): Read .debug_ranges.
10734 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
10735 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
10736 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
10737 Look for DW_AT_ranges and return the bounding box.
10739 2003-01-29 Brian Ford <ford@vss.fsi.com>
10741 * win32-nat.c (cygwin_pid): Removed as unused.
10742 (child_attach): Try fall back to Cygwin pid.
10744 2003-01-29 Jim Blandy <jimb@redhat.com>
10746 * objfiles.h (struct objfile): Doc fix.
10748 2003-01-29 Andrew Cagney <ac131313@redhat.com>
10750 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
10751 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
10752 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
10753 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
10754 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
10755 (FRAME_SAVED_PC): Change to a function with predicate.
10756 * gdbarch.h, gdbarch.c: Re-generate.
10758 2003-01-28 Andrew Cagney <ac131313@redhat.com>
10760 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
10762 * complaints.c (complain): Delete function.
10763 * complaints.h (struct deprecated_complaint): Delete definition.
10764 (complain): Delete declaration.
10766 2003-01-28 Kevin Buettner <kevinb@redhat.com>
10768 * mips-tdep.c (mips_init_extra_frame_info): Return early for
10771 2003-01-27 Andrew Cagney <ac131313@redhat.com>
10773 * sentinel-frame.h, sentinel-frame.c: New files.
10774 * Makefile.in (frame.o): Update dependencies.
10775 (SFILES): Add sentinel-frame.c.
10776 (sentinel_frame_h): Define.
10777 (COMMON_OBS): Add sentinel-frame.o.
10778 (sentinel-frame.o): Specify dependencies.
10779 * frame.c: Include "sentinel-frame.h".
10780 (frame_register_unwind): Rewrite assuming that there is always a a
10782 (frame_register, generic_unwind_get_saved_register): Ditto.
10783 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
10784 (create_sentinel_frame, unwind_to_current_frame): New functions.
10785 (get_current_frame): Rewrite using create_sentinel_frame and
10786 unwind_to_current_frame. When possible, always create a frame.
10787 (create_new_frame): Set next to the sentinel frame.
10788 (get_next_frame): Rewrite. Don't go below the level 0 frame.
10789 (deprecated_update_frame_pc_hack): Update the next frame's PC and
10790 ID cache when necessary.
10791 (frame_saved_regs_id_unwind): Use frame_relative_level.
10792 (deprecated_generic_get_saved_register): Use frame_relative_level,
10793 get_frame_saved_regs, get_frame_pc, get_frame_base and
10795 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
10798 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10800 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
10802 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10804 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
10805 (maintenance_set_profile_cmd): Use error () instead of warning ().
10807 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
10809 * configure.in: Check that -pg works if using --enable-profiling.
10810 Check for monstartup and _mcleanup regardless of --enable-profiling.
10811 * maint.c: Check for monstartup and _mcleanup before using them.
10812 * config.in: Regenerated.
10813 * configure: Regenerated.
10815 2003-01-24 Nick Clifton <nickc@redhat.com>
10817 * Add sh2e support:
10819 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
10821 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
10822 (sh2e_show_regs): New.
10823 (sh_gdbarch_init): Handle bfd_mach_sh2e.
10824 * config/sh/tm-sh.h: Added sh2e to comments.
10826 2003-01-23 Jim Blandy <jimb@redhat.com>
10828 * symfile.c (syms_from_objfile): Don't print the "(no debugging
10829 symbols found)" message here; we haven't checked for a separate
10830 debug info file yet, so we don't know yet.
10831 (symbol_file_add_with_addrs_or_offsets): Print it here, after
10832 we've looked everywhere. Also, there's no need to print a special
10833 message when we're loading the separate debug info file: the one
10834 symbol_file_add prints is fine.
10836 2003-01-23 Alexander Larsson <alexl@redhat.com>
10837 Jim Blandy <jimb@redhat.com>
10839 Add support for executables whose debug info has been separated
10840 out into a separate file, leaving only a link behind.
10841 * objfiles.h (struct objfile): New fields: separate_debug_objfile
10842 and separate_debug_objfile_backlink.
10843 (put_objfile_before): New declaration.
10844 * symfile.c: #include "filenames.h".
10845 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
10846 debug info in a separate file, read that, too. Save the addrs
10847 argument, so we can use it again to read the separated debug info;
10848 syms_from_objfile modifies the table we pass it.
10849 (reread_symbols): After re-reading an objfile, call
10850 reread_separate_symbols to refresh its separate debug info
10851 objfile, if it has one.
10852 (reread_separate_symbols, find_separate_debug_file,
10853 get_debug_link_info, separate_debug_file_exists): New functions.
10854 (debug_file_directory): New global var.
10855 (_initialize_symfile): Initialize debug_file_directory, and
10856 provide the new `set debug-file-directory' command to let the user
10858 * objfiles.c (free_objfile): If this objfile has its debug info in
10859 a separate objfile, free that one too. If this is itself a
10860 separate debug info objfile, clear our parent's backlink.
10861 (put_objfile_before): New function.
10862 * utils.c (gnu_debuglink_crc32): New function.
10863 * defs.h (gnu_debuglink_crc32): New declaration.
10864 * Makefile.in (symfile.o): Note dependency on "filenames.h".
10865 * configure.in: Handle --with-separate-debug-dir config option.
10866 * acinclude.m4 (AC_DEFINE_DIR): New macro.
10867 * acconfig.h (DEBUGDIR): New macro.
10868 * configure, aclocal.m4, config.in: Regenerated.
10870 2003-01-22 Jim Blandy <jimb@redhat.com>
10872 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
10873 like the old symbol_file_add, but taking new arguments: you can
10874 now pass in either a `struct section_addr_info' list to say where
10875 each section is loaded, or a `struct section_offsets' table. Pass
10876 these new arguments through to syms_from_objfile as appropriate.
10877 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
10878 with the appropriate quiescent values for the new arguments.
10880 * symfile.c: #include "gdb_assert.h".
10881 (syms_from_objfile): Add the ability to pass in a section offset
10882 table directly, as an alternative to the section_addr_info table.
10883 Document arguments better.
10884 (symbol_file_add): Pass extra arguments to syms_from_objfile.
10885 * symfile.h (syms_from_objfile): Update declaration.
10886 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
10888 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
10890 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
10892 Original patch by Tom Tromey <tromey@cygnus.com> and
10893 Jason Molenda <jmolenda@apple.com>.
10894 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
10895 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
10896 * NEWS: Mention profiling.
10897 * configure.in (--enable-gdbtk): Fix typo.
10898 (--enable-profiling): New. Set PROFILE_CFLAGS.
10899 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
10901 (profiling_state): New variable.
10902 (mcleanup_wrapper): New function.
10903 (_initialize_maint): Remove NOTYET, fix call to
10904 add_setshow_boolean_cmd for "maint set profile".
10905 * configure: Regenerated.
10907 2003-01-21 Martin M. Hunt <hunt@redhat.com>
10909 * Makefile.in (install-gdbtk): Install PNG images too.
10911 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10913 * exec.c (text_start): Delete global variable.
10914 (exec_file_attach): Make text_start local to the function.
10915 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
10916 * valops.c (hand_function_call): Delete code that handles
10917 BEFORE_TEXT_END and AFTER_TEXT_END.
10918 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
10919 of CALL_DUMMY_LOCATION.
10920 * gdbarch.c: Regenerate.
10921 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
10922 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
10923 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
10924 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
10925 (text_end): Delete extern declaration.
10927 2003-01-21 Andrew Cagney <ac131313@redhat.com>
10929 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
10930 * blockframe.c (backtrace_below_main): Move to "frame.c".
10931 (frame_chain_valid): Delete check for backtrace_below_main.
10932 (_initialize_blockframe): Delete initialization, move ``set
10933 backtrace-below-main'' command to "frame.c".
10934 (do_flush_frames_sfunc): Delete function.
10935 * frame.c: Include "command.h" and "gdbcmd.h".
10936 (frame_type_from_pc): New function.
10937 (create_new_frame): Use frame_type_from_pc.
10938 (legacy_get_prev_frame): New function.
10939 (get_prev_frame): Rewrite. When an old style frame, call
10940 legacy_get_prev_frame. Otherwize, unwind the PC first.
10941 (_initialize_frame): Add ``set backtrace-below-main'' command.
10942 * Makefile.in (frame.o): Update dependencies.
10944 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10946 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
10947 DEPRECATED_REGISTERS_INFO.
10949 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10951 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
10952 Maintainers'. Update `Various Maintainers'.
10954 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10956 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
10957 * gdbarch.sh (POP_FRAME): Change to function with predicate.
10958 Suppress actual parameters when `-'.
10959 * gdbarch.h, gdbarch.c: Regenerate.
10961 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10963 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
10964 code handling dummy frames.
10966 2003-01-19 Andrew Cagney <ac131313@redhat.com>
10968 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
10969 (struct frame_unwind): Add field pop.
10970 * frame.h (frame_pop): Declare.
10971 * frame.c (frame_saved_regs_pop): New function.
10972 (trad_frame_unwinder): Add frame_saved_regs_pop.
10973 (frame_pop): New function.
10974 * dummy-frame.c (dummy_frame_pop): New function.
10975 (discard_innermost_dummy): New function.
10976 (generic_pop_dummy_frame): Use discard_innermost_dummy.
10977 (dummy_frame_unwind): Add dummy_frame_pop.
10978 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
10979 * valops.c (hand_function_call): Ditto.
10980 * stack.c (return_command): Ditto.
10982 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10984 * cris-tdep.c: Fix function declaration indentation.
10985 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
10986 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
10987 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
10988 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
10989 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
10990 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
10992 2003-01-18 Michael Chastain <mec@shout.net>
10994 * README (Unpacking and Installation -- quick overview):
10995 Warn against ".../gdb-5.3/gdb/configure".
10997 2003-01-18 Andrew Cagney <ac131313@redhat.com>
10999 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
11000 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11001 (struct frame_unwind): Declare opaque.
11002 (dummy_frame_p): Declare function.
11003 * dummy-frame.c (dummy_frame_id_unwind): Make static.
11004 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
11005 * dummy-frame.c: Include "frame-unwind.h".
11006 (dummy_frame_p): New function.
11007 (dummy_frame_unwind): New variable.
11008 * frame.c: Include "frame-unwind.h".
11009 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
11010 to use the new unwind field.
11011 (set_unwind_by_pc): Delete function.
11012 (create_new_frame, get_prev_frame): Set unwind field using
11013 frame_unwind_find_by_pc.
11014 (trad_frame_unwind, trad_frame_unwinder): New variables.
11015 * frame.h (trad_frame_unwind): Declare variable.
11016 (frame_id_unwind_ftype): Delete declaration.
11017 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
11018 (struct frame_unwind): Declare opaque.
11019 (struct frame_info): Replace the fields id_unwind, pc_unwind and
11020 register_unwind with a single unwind pointer.
11021 * frame-unwind.h, frame-unwind.c: New files.
11022 * Makefile.in (SFILES): Add frame-unwind.c.
11023 (frame_unwind_h): Define.
11024 (COMMON_OBS): Add frame-unwind.o.
11025 (frame-unwind.o): Specify dependencies.
11026 (frame.o, dummy-frame.o): Update dependencies.
11028 2003-01-18 Andrew Cagney <ac131313@redhat.com>
11030 * ada-valprint.c: Eliminate PTR.
11031 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
11032 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
11033 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
11034 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
11035 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
11036 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
11037 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
11039 2003-01-17 Andrew Cagney <ac131313@redhat.com>
11041 * main.c (captured_main): Don't use PTR.
11042 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
11043 * gdbtypes.c (lookup_primitive_typename): Ditto.
11044 (lookup_struct_elt_type): Ditto.
11045 * f-valprint.c (info_common_command): Ditto.
11046 (list_all_visible_commons): Ditto.
11047 * jv-typeprint.c (java_type_print_base): Ditto.
11049 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
11050 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
11051 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
11052 i386-interix-nat.c and i386-interix-tdep.c. Rename
11053 m68klinux-nat.c and m68klinux-tdep.c. Rename
11054 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
11055 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
11056 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
11057 * main.c (captured_main): Use xfree, not free.
11059 2003-01-16 Andrew Cagney <ac131313@redhat.com>
11061 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
11062 ID back using a parameter.
11063 * frame.c (frame_id_unwind): Update call.
11064 (frame_saved_regs_id_unwind): Update.
11065 * dummy-frame.c (dummy_frame_id_unwind): Update function.
11066 * dummy-frame.h (struct frame_id): Add opaque declaration.
11067 (dummy_frame_id_unwind): Update declaration.
11069 2003-01-15 Andrew Cagney <ac131313@redhat.com>
11071 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
11073 2003-01-15 Stephen P. Smith <ischis2@cox.net>
11075 * MAINTAINERS (Stephen P. Smith): Updated email address.
11077 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
11080 * breakpoint.c (until_break_command): Add new argument. Use it to
11081 decide whether to stop only at the current frame or not.
11082 * breakpoint.h (until_break_command): Update prototype.
11083 * infcmd.c (until_command): Add new argument to until_break_command
11085 (advance_command): New function.
11086 (_initialize_infcmd): Update help string for 'until' command.
11087 Add new 'advance' command.
11089 2003-01-14 David Carlton <carlton@math.stanford.edu>
11091 * linespec.c (decode_line_1): Normalize comments.
11092 (set_flags): Ditto.
11093 (locate_first_half): Ditto.
11094 (decode_compound): Ditto.
11095 (symtab_from_filename): Ditto.
11096 (decode_all_digits): Ditto.
11097 (decode_dollar): Ditto.
11098 (find_methods): Ditto.
11099 (find_toplevel_char): Ditto.
11101 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11103 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
11104 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
11105 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
11106 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
11107 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
11108 * language.c, language.h, m32r-tdep.c: Update copyright.
11109 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
11110 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
11111 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
11112 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
11113 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
11114 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
11116 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11118 * stabsread.h (process_later, resolve_cfront_continuation):
11120 Update copyright years.
11121 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
11122 Update copyright year.
11123 * dbxread.c(struct cont_elem): Obsolete.
11124 (process_later, process_now): Obsolete functions.
11125 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
11126 Update copyright year.
11127 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
11128 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
11129 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
11130 (parse_partial_symbols): Obsolete cfront support.
11132 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
11134 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
11135 read_cfront_baseclasses, read_cfront_member_functions,
11136 resolve_cfront_continuation,read_cfront_static_fields,
11137 copy_cfront_struct_fields): Obsolete functions.
11138 (define_symbol, read_one_struct_field): Obsolete cfront support.
11139 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
11140 Update Copyright year.
11142 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
11144 * stack.c (print_frame_info, print_stack_frame_base_stub,
11145 print_stack_frame_base, show_and_print_stack_frame_stub,
11146 show_and_print_stack_frame, print_only_stack_frame_stub,
11147 print_only_stack_frame): Delete functions.
11148 (print_stack_frame_stub): Call print_frame_info instead of
11149 print_frame_info_base.
11150 (print_frame_info_base): Rename to print_frame_info.
11151 (backtrace_command_1): Call print_frame_info, instead of
11152 print_frame_info_base.
11153 (current_frame_command): Call print_stack_frame, instead of
11154 print_only_stack_frame.
11155 (frame_command): Call print_stack_frame, instead of
11156 show_and_print_stack_frame.
11157 (up_command): Ditto.
11158 (down_command): Ditto.
11159 * frame.h (print_only_stack_frame): Delete prototype.
11160 * infrun.c (normal_stop): Call print_stack_frame, instead of
11161 show_and_print_stack_frame.
11162 * thread.c (info_threads_command): Call print_stack_frame, instead
11163 of print_only_stack_frame.
11165 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11167 * README (Graphical interface to GDB): Update URL. Point at
11170 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
11173 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11175 * symtab.c (find_pc_sect_line): Don't consider end-of-function
11178 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11180 * thread-db.c (attach_thread): Prototype.
11181 (struct private_thread_info): Remove lwpid. Add thread handle (th),
11182 thread information (ti), and valid flags (th_valid, ti_valid).
11183 (attach_thread): Move target_pid_to_str call to after the thread
11184 is added to GDB's list. Initialize the cache.
11185 (thread_get_info_callback, thread_db_map_id2thr)
11186 (thread_db_get_info): New functions.
11187 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
11188 (thread_db_store_registers, thread_db_thread_alive)
11189 (thread_db_get_thread_local_address): Use them.
11190 (thread_db_pid_to_str): Likewise. Return "Missing" instead
11191 of calling error() for threads in unknown state.
11193 (clear_lwpid_callback): New function.
11194 (thread_db_resume): Use it to clear the cache.
11196 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11198 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
11199 (resume_callback): Remove dead code.
11201 2003-01-13 Andrew Cagney <ac131313@redhat.com>
11203 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
11205 * gdbarch.h, gdbarch.c: Regenerate.
11206 * stack.c (frame_info): Only initialize the saved registers when
11207 FRAME_INIT_SAVED_REGS_P.
11208 * frame.c (frame_saved_regs_register_unwind): Assert
11209 FRAME_INIT_SAVED_REGS_P.
11210 (deprecated_generic_get_saved_register): Ditto.
11212 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11214 * source.c (openp): Squelch warning about "filename".
11216 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11218 * source.c (openp): If the file does not exist don't necessarily
11221 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11224 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
11225 (integer_types_same_name_p): New function.
11226 (rank_one_type): Use it.
11227 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
11229 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
11231 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
11233 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
11234 * configure.in: Add --with-sysroot.
11235 * configure: Regenerated.
11236 * main.c (gdb_sysroot): New variable.
11237 (captured_main): Initialize gdb_sysroot.
11238 * defs.h (gdb_sysroot): New extern declaration.
11239 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
11241 2003-01-12 Michael Chastain <mec@shout.net>
11243 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
11245 2003-01-12 Michael Chastain <mec@shout.net>
11247 * top.c (print_gdb_version): Bump copyright year to 2003.
11249 2003-01-12 David Carlton <carlton@bactrian.org>
11251 * linespec.c (symtab_from_filename): Rename variable 's' to
11254 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11256 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
11258 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
11260 2003-01-12 Andrew Cagney <ac131313@redhat.com>
11262 * d10v-tdep.c: Include "gdb_assert.h".
11263 (d10v_store_return_value): Rewrite to match current interface.
11264 (d10v_extract_struct_value_address): Ditto.
11265 (d10v_extract_return_value): Ditto.
11266 (d10v_gdbarch_init): Set store_restore_value,
11267 extract_struct_value_address and extract_return_value.
11269 2003-01-12 J. Brobecker <brobecker@gnat.com>
11271 * hpread.c (set_namestring): New procedure replacing the
11272 SET_NAMESTRING macro.
11273 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
11274 by calls to set_namestring.
11276 2003-01-11 J. Brobecker <brobecker@gnat.com>
11278 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
11279 a compilation warning.
11280 (hpread_process_one_debug_symbol): Likewise.
11282 2003-01-10 David Carlton <carlton@math.stanford.edu>
11284 * linespec.c (decode_line_1): Rename variable 's' to
11286 (decode_all_digits): Rename argument 's' to 'file_symtab'.
11287 (decode_dollar): Ditto.
11288 (decode_variable): Ditto.
11289 (symbol_found): Ditto.
11291 2003-01-09 Michael Chastain <mec@shout.net>
11293 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
11295 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
11297 * win32-nat.c (set_process_privilege): New function.
11298 (child_attach): Call set_process_privilege() to enable the
11299 SE_DEBUG_NAME user privilege if available in process token.
11301 2003-01-10 J. Brobecker <brobecker@gnat.com>
11303 * hpread.c (hpread_process_one_debug_symbol): Fix a small
11304 compilation error in the previous revision.
11306 2003-01-09 David Carlton <carlton@math.stanford.edu>
11308 * linespec.c: Update copyright.
11310 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
11312 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
11313 than inferior_ptid.
11314 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
11316 2003-01-09 Andrew Cagney <ac131313@redhat.com>
11318 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
11320 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
11321 (frame_saved_regs_zalloc): Update.
11322 (frame_saved_regs_register_unwind): Update.
11323 (create_new_frame): Update.
11324 (get_prev_frame): Update.
11325 (frame_extra_info_zalloc): Update.
11326 (deprecated_get_frame_saved_regs): Update.
11327 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
11328 * cris-tdep.c: Update comment.
11330 * somsolib.h: Fix function indentation.
11331 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
11332 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
11333 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
11334 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
11335 * somsolib.c, inftarg.c: Remove assignment in if conditional.
11337 * infrun.c (follow_fork): Use ISO C definition.
11338 * expprint.c (print_subexp): Use xfree instead of free.
11339 * charset.c: Include "gdb_string.h" instead of <string.h>.
11340 (register_iconv_charsets): Use ISO C definition.
11341 (host_charset, target_charset): Ditto.
11342 * Makefile.in (charset.o): Update dependencies.
11343 (mi-cmd-env.o): Update dependencies.
11345 2003-01-08 Andrew Cagney <cagney@redhat.com>
11347 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
11350 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11352 * gdb_mbuild.sh: Add --keep option. When specified, keep the
11353 build directories. Save edited gdb output in Mbuild.log. If a
11354 build fails, remove any final GDB executable.
11356 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11358 * gdb_mbuild.sh: Edit the output of `maint print architecture'
11359 replacing hex constants with function names and stripping leading
11360 file name directory prefixes.
11362 2003-01-08 Andrew Cagney <cagney@redhat.com>
11364 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
11367 2003-01-08 David Carlton <carlton@math.stanford.edu>
11369 * linespec.c (decode_line_1): Move code into decode_variable.
11370 (decode_variable): New function.
11372 2003-01-08 Andrew Cagney <ac131313@redhat.com>
11374 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
11376 2003-01-08 Andrew Cagney <cagney@redhat.com>
11378 * cris-tdep.c (cris_frame_init_saved_regs): Use
11379 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
11381 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11382 (sh64_nofp_frame_init_saved_regs): Ditto.
11383 (sh_fp_frame_init_saved_regs): Ditto.
11384 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
11385 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11386 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11387 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11389 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
11391 * minsyms.c (lookup_minimal_symbol): Update comment.
11392 (lookup_minimal_symbol_text): Update comment. Use the hash table.
11393 (lookup_minimal_symbol_solib_trampoline): Likewise.
11395 2003-01-08 Andrew Cagney <cagney@redhat.com>
11397 * d10v-tdep.c (d10v_init_extra_frame_info): Use
11398 frame_relative_level.
11400 * alpha-tdep.c: Use get_frame_extra_info.
11401 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11402 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
11403 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11404 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
11406 * alpha-tdep.c: Use get_next_frame.
11407 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11408 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11409 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
11410 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
11411 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
11412 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
11413 * xstormy16-tdep.c: Ditto.
11415 2003-01-07 Andrew Cagney <cagney@redhat.com>
11417 * alpha-tdep.c: Use get_frame_base.
11418 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11419 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11420 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11421 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
11422 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
11423 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11424 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
11425 * config/sparc/tm-sparc.h: Ditto.
11427 2003-01-07 Andrew Cagney <cagney@redhat.com>
11429 * frame.c (deprecated_get_frame_context): New function.
11430 (deprecated_set_frame_context): New function.
11431 * frame.h (deprecated_get_frame_context): Declare.
11432 (deprecated_set_frame_context): Declare.
11433 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
11434 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
11436 2003-01-07 Andrew Cagney <cagney@redhat.com>
11438 * frame.c (deprecated_set_frame_next_hack): New function.
11439 (deprecated_set_frame_prev_hack): New function.
11440 * frame.h (deprecated_set_frame_next_hack): Declare.
11441 (deprecated_set_frame_prev_hack): Declare.
11442 * mcore-tdep.c (analyze_dummy_frame): Use
11443 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
11444 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11446 2003-01-07 David Carlton <carlton@math.stanford.edu>
11448 * linespec.c (decode_line_1): Move code into decode_dollar.
11449 (decode_dollar): New function.
11451 2003-01-07 Andrew Cagney <cagney@redhat.com>
11453 * arm-tdep.c (arm_init_extra_frame_info): Use
11454 deprecated_update_frame_base_hack.
11455 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
11456 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
11457 (fix_frame_pointer): Ditto.
11458 (mn10300_analyze_prologue): Ditto.
11460 2003-01-07 Andrew Cagney <cagney@redhat.com>
11462 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
11463 extra_info using frame_extra_info_zalloc.
11464 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
11465 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
11466 (sh64_init_extra_frame_info): Ditto.
11467 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
11468 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
11469 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
11470 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
11471 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
11472 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
11473 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
11474 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
11475 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
11476 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
11477 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
11478 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
11480 * mn10300-tdep.c (analyze_dummy_frame): Use
11481 deprecated_set_frame_extra_info_hack.
11482 * mcore-tdep.c (analyze_dummy_frame): Ditto.
11484 2003-01-07 J. Brobecker <brobecker@gnat.com>
11486 * mdebugread.c (parse_symbol): Skip stProc entries which storage
11487 class is not scText. These do not define "real" procedures.
11488 (parse_partial_symbols): Likewise.
11490 2003-01-06 Michael Snyder <msnyder@redhat.com>
11492 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
11494 2003-01-06 Andrew Cagney <ac131313@redhat.com>
11496 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
11497 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
11498 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
11499 deprecated_frame_xmalloc_with_cleanup.
11500 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
11501 deprecated_frame_xmalloc.
11502 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
11503 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
11505 2003-01-06 Andrew Cagney <cagney@redhat.com>
11507 * x86-64-linux-tdep.c: Include "osabi.h".
11508 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
11510 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
11512 2003-01-06 Andrew Cagney <cagney@redhat.com>
11514 * MAINTAINERS (Target Instruction Set Architectures): Update
11515 arm-elf. Can be built with -Werror, has been multiarched.
11517 * value.h (unpack_long): Make buffer parameter constant.
11518 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
11519 * scm-lang.h (scm_parse): Ditto.
11520 * defs.h (extract_typed_address, extract_address): Ditto.
11521 (extract_long_unsigned_integer): Ditto.
11522 * inferior.h (unsigned_pointer_to_address): Ditto.
11523 (signed_pointer_to_address): Ditto.
11524 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
11525 * gdbarch.h, gdbarch.c: Regenerate.
11526 * findvar.c (extract_long_unsigned_integer): Update.
11527 (extract_address): Update.
11528 (extract_typed_address): Update.
11529 (unsigned_pointer_to_address): Update.
11530 * values.c (unpack_long): Update.
11531 (unpack_double): Update.
11532 (unpack_pointer): Update.
11533 (unpack_field_as_long): Update.
11534 * d10v-tdep.c (d10v_pointer_to_address): Update.
11535 * avr-tdep.c (avr_pointer_to_address): Update.
11536 * scm-lang.c (scm_unpack): Update.
11537 * findvar.c (signed_pointer_to_address): Update.
11539 2003-01-06 Michal Ludvig <mludvig@suse.cz>
11541 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
11542 since it is in i386-tdep.c.
11544 2003-01-06 J. Brobecker <brobecker@gnat.com>
11546 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
11547 failure introduced in the previous change.
11549 2003-01-05 Michael Chastain <mec@shout.net>
11551 * README: Remove references to deleted remote-*.c files:
11552 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
11553 remote-nrom.c, remote-os9k.c, remote-udi.c.
11555 2003-01-05 Mark Kettenis <kettenis@gnu.org>
11557 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
11558 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
11559 i386_get_longjmp_target.
11561 2003-01-05 Andrew Cagney <ac131313@redhat.com>
11563 * arm-tdep.c (prologue_cache): Change to a pointer.
11564 (_initialize_arm_tdep): Allocate prologue_cache.
11565 (check_prologue_cache): Update.
11566 (save_prologue_cache): Update.
11567 (arm_gdbarch_init): Update.
11569 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11571 * stabsread.c (update_method_name_from_physname): Call complaint()
11574 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11576 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
11577 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
11578 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
11580 * blockframe.c: Include "gdbcmd.h" and "command.h".
11581 (backtrace_below_main): New variable.
11582 (file_frame_chain_valid, func_frame_chain_valid)
11583 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
11584 (generic_func_frame_chain_valid): Remove functions.
11585 (frame_chain_valid, do_flush_frames_sfunc): New functions.
11586 (_initialize_blockframe): New function.
11587 * Makefile.in (blockframe.o): Update dependencies.
11588 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
11589 comment. Call frame_chain_valid ().
11590 * frame.h: Remove old prototypes. Add prototype for
11591 frame_chain_valid and update comments to match.
11592 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
11593 Remove old comment.
11594 * gdbarch.h: Regenerated.
11595 * gdbarch.c: Regenerated.
11597 * alpha-tdep.c (alpha_gdbarch_init): Don't call
11598 set_gdbarch_frame_chain_valid.
11599 * avr-tdep.c (avr_gdbarch_init): Likewise.
11600 * cris-tdep.c (cris_gdbarch_init): Likewise.
11601 * frv-tdep.c (frv_gdbarch_init): Likewise.
11602 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
11603 * i386-tdep.c (i386_svr4_init_abi): Likewise.
11604 (i386_nw_init_abi): Likewise.
11605 (i386_gdbarch_init): Likewise.
11606 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
11607 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
11608 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
11609 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
11610 * mips-tdep.c (mips_gdbarch_init): Likewise.
11611 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
11612 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
11613 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11614 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11615 * s390-tdep.c (s390_gdbarch_init): Likewise.
11616 * sh-tdep.c (sh_gdbarch_init): Likewise.
11617 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11618 * v850-tdep.c (v850_gdbarch_init): Likewise.
11619 * vax-tdep.c (vax_gdbarch_init): Likewise.
11620 * x86-64-tdep.c (x86_64_init_abi): Likewise.
11622 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
11623 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
11624 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
11625 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
11626 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
11627 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
11628 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
11629 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
11631 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11633 * Makefile.in (acconfig_h): Remove incorrect macro.
11634 (config_h): Define.
11635 (osabi.o): Update dependencies.
11636 * configure.tgt: Set gdb_osabi based on target triplet.
11637 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
11638 * configure: Regenerated.
11639 * config.in: Regenerated.
11640 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
11641 (GDB_OSABI_DEFAULT): Define if not already defined.
11642 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
11643 (set_osabi_string): New variables.
11644 (gdbarch_register_osabi): Add new OS ABI to
11645 gdb_osabi_available_names.
11646 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
11647 (set_osabi, show_osabi): New functions.
11648 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
11650 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11652 * arch-utils.c (gdbarch_info_init): Set osabi to
11653 GDB_OSABI_UNINITIALIZED.
11654 * gdbarch.sh: Add osabi to struct gdbarch and to struct
11655 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
11656 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
11657 * gdbarch.c: Regenerated.
11658 * gdbarch.h: Regenerated.
11659 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
11661 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
11662 * osabi.h (enum gdb_osabi): Move to defs.h.
11663 (gdbarch_init_osabi): Update prototype.
11664 * defs.h (enum gdb_osabi): Moved here.
11665 * Makefile.in: Update dependencies.
11667 * alpha-tdep.h: Don't include "osabi.h".
11668 (struct gdbarch_tdep): Remove osabi member.
11669 * alpha-tdep.c: Include "osabi.h".
11670 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11671 iterate over arches. Update call to gdbarch_init_osabi.
11672 (alpha_dump_tdep): Don't dump osabi.
11673 * alpha-linux-tdep.c: Include "osabi.h".
11674 * alpha-osf1-tdep.c: Include "osabi.h".
11675 * alphafbsd-tdep.c: Include "osabi.h".
11676 * alphanbsd-tdep.c: Include "osabi.h".
11678 * arm-tdep.h: Don't include "osabi.h".
11679 (struct gdbarch_tdep): Remove osabi member.
11680 * arm-tdep.c: Include "osabi.h".
11681 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11682 iterate over arches. Update call to gdbarch_init_osabi.
11683 (arm_dump_tdep): Don't dump osabi.
11684 * arm-linux-tdep.c: Include "osabi.h".
11685 * armnbsd-tdep.c: Include "osabi.h".
11687 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
11688 Update call to gdbarch_init_osabi.
11690 * i386-tdep.h: Don't include "osabi.h".
11691 (struct gdbarch_tdep): Remove osabi member.
11692 * i386-tdep.c: Include "osabi.h".
11693 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11694 iterate over arches. Update call to gdbarch_init_osabi.
11695 (i386_dump_tdep): Don't dump osabi.
11696 * i386-linux-tdep.c: Include "osabi.h".
11697 * i386-sol2-tdep.c: Include "osabi.h".
11698 * i386bsd-tdep.c: Include "osabi.h".
11699 * i386gnu-tdep.c: Include "osabi.h".
11700 * i386ly-tdep.c: Include "osabi.h".
11701 * i386nbsd-tdep.c: Include "osabi.h".
11702 * i386obsd-tdep.c: Include "osabi.h".
11704 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
11705 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11706 check osabi when iterating over arches. Update call to
11707 gdbarch_init_osabi.
11708 (mips_dump_tdep): Don't dump osabi.
11710 * ns32k-tdep.h: Don't include "osabi.h".
11711 (struct gdbarch_tdep): Remove.
11712 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
11713 gdbarch_lookup_osabi. Don't iterate over arches. Don't
11714 allocate tdep. Update call to gdbarch_init_osabi.
11715 (ns32k_dump_tdep): Remove.
11716 (_initialize_ns32k_tdep): Update call to gdbarch_register.
11717 * ns32knbsd-tdep.c: Include "osabi.h".
11719 * ppc-tdep.h: Don't include "osabi.h".
11720 (struct gdbarch_tdep): Remove osabi member.
11721 * rs6000-tdep.c: Include "osabi.h".
11722 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
11723 osabi when iterating over arches. Update call to
11724 gdbarch_init_osabi.
11725 (rs6000_dump_tdep): Don't dump osabi.
11726 * ppc-linux-tdep.c: Include "osabi.h".
11727 * ppcnbsd-tdep.c: Include "osabi.h".
11729 * sh-tdep.h: Don't include "osabi.h".
11730 (struct gdbarch_tdep): Remove osabi member.
11731 * sh-tdep.c: Include "osabi.h".
11732 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11733 iterate over arches. Update call to gdbarch_init_osabi.
11734 (sh_dump_tdep): Don't dump osabi.
11735 * shnbsd-tdep.c: Include "osabi.h".
11737 * sparc-tdep.c: Include "osabi.h".
11738 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11739 iterate over arches. Update call to gdbarch_init_osabi.
11740 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
11743 * vax-tdep.h: Don't include "osabi.h".
11744 (struct gdbarch_tdep): Remove.
11745 * vax-tdep.c: Include "osabi.h".
11746 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
11747 iterate over arches. Don't allocate tdep. Update call
11748 to gdbarch_init_osabi.
11749 (vax_dump_tdep): Remove.
11750 (_initialize_vax_tdep): Update call to gdbarch_register.
11752 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11754 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
11756 (breakpoint_re_set_one): Don't fetch the value for a disabled
11759 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11761 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
11762 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
11763 (COERCE_FLOAT_TO_DOUBLE): Remove.
11764 * gdbarch.c: Regenerate.
11765 * gdbarch.h: Regenerate.
11766 * Makefile.in: Remove value_h from gdbarch_h.
11767 * valops.c (coerce_float_to_double): New variable.
11768 (default_coerce_float_to_double): Remove.
11769 (standard_coerce_float_to_double): Remove.
11770 (value_arg_coerce): Use coerce_float_to_double.
11771 (_initialize_valops): Add "set coerce-float-to-double".
11772 * value.h (default_coerce_float_to_double): Remove prototype.
11773 (standard_coerce_float_to_double): Remove prototype.
11775 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
11777 * mdebugread.c (parse_symbol): Likewise.
11778 * stabsread.c (define_symbol): Mark all functions as prototyped.
11780 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
11781 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
11782 set_gdbarch_coerce_float_to_double.
11783 * arm-tdep.c (arm_gdbarch_init): Likewise.
11784 * frv-tdep.c (frv_gdbarch_init): Likewise.
11785 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
11786 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
11787 * mips-tdep.c (mips_gdbarch_init): Likewise.
11788 (mips_coerce_float_to_double): Remove.
11789 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
11790 (rs6000_coerce_float_to_double): Remove.
11791 * s390-tdep.c (s390_gdbarch_init): Likewise.
11792 * sh-tdep.c (sh_gdbarch_init): Likewise.
11793 (sh_coerce_float_to_double): Remove.
11794 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
11795 (sparc_coerce_float_to_double): Remove.
11796 * v850-tdep.c (v850_gdbarch_init): Likewise.
11797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
11798 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11799 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
11800 (hppa_coerce_float_to_double): Remove prototype.
11801 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11803 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11805 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
11807 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
11809 Suggested by Stewart Brown <sb24@avaya.com>:
11810 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
11811 in recursive calls. Handle TYPE_CODE_TYPEDEF.
11812 (c_type_print_varspec_suffix): Likewise.
11814 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11816 * configure.in: Don't set and AC_SUBST SUBDIRS.
11817 * configure: Regenerated.
11819 * configure.in: Remove code dealing with shared libraries.
11820 * Makefile.in: Remove HLDFLAGS and HLDENV.
11821 * configure: Regenerated.
11823 2003-01-04 Andrew Cagney <ac131313@redhat.com>
11825 * frame.c (deprecated_frame_xmalloc): New function.
11826 (deprecated_set_frame_saved_regs_hack): New function.
11827 (deprecated_set_frame_extra_info_hack): New function.
11828 * frame.h (deprecated_frame_xmalloc): Declare.
11829 (deprecated_set_frame_saved_regs_hack): Declare.
11830 (deprecated_set_frame_extra_info_hack): Declare.
11832 2003-01-04 Mark Kettenis <kettenis@gnu.org>
11834 * configure.in: Move code that provides the --enable-gdbtk option
11835 right after the code that handles the --enable-tui option, and
11836 polish it somewhat.
11837 * configure: Regenerated.
11839 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
11840 AC_CHECK_FUNCS and remove the old check for pread64.
11841 * acinclude.m4 (AC_GNU_SOURCE): New macro.
11842 * acconfig.h (_GNU_SOURCE): Add.
11843 (HAVE_PREAD64): Remove.
11844 * configure, aclocal.m4, config.in: Regenerated.
11846 2003-01-03 Andrew Cagney <ac131313@redhat.com>
11848 * alpha-tdep.c: Use get_frame_saved_regs.
11849 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11850 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
11851 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
11852 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
11853 * vax-tdep.c, xstormy16-tdep.c: Ditto.
11855 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11857 * configure.in: Remove all use of the SUBDIRS variable; add
11858 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
11859 code providing the --enable-multi-ice option, and move it right in
11860 front of the code that checks whether gdbserver is supported.
11862 * configure: Regenerated.
11863 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
11866 2003-01-03 Andrew Cagney <cagney@redhat.com>
11868 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
11869 * avr-tdep.c, cris-tdep.c: Ditto.
11870 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
11871 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11873 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11875 * configure.in: Remove --enable-netrom option.
11876 * configure: Regenerated.
11878 2003-01-03 Mark Kettenis <kettenis@gnu.org>
11880 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
11881 declaration for `struct re_pattern_buffer' instead.
11882 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
11884 2003-01-03 J. Brobecker <brobecker@gnat.com>
11886 * mdebugread.c (parse_symbol): Count until the stEnd matching
11887 the structure name.
11889 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11891 * configure.in: Remove --with-cpu option.
11892 subscripts. Remove evil changequotes here.
11893 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
11894 * config.in, configure: Regenerated.
11896 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
11897 * configure.in: Cleanup section that sources GDB and BFD configure
11898 subscripts. Remove evil changequotes here.
11899 * config.in, configure: Regenerated.
11901 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11903 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
11904 frame accessor methods.
11905 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
11906 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
11907 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
11908 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
11909 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
11910 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
11911 * z8k-tdep.c: Ditto.
11913 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11915 * configure.in: Remove UI_OUT configuration code.
11916 * ada-lang.c: Update assuming UI_OUT is always true.
11917 * Makefile.in (UIOUT_CFLAGS): Remove.
11918 * configure: Regenerated.
11919 * TODO: Remove blurb about elimination of -DUI_OUT.
11921 * configure.in: Move code that provides the --enable-gdbcli,
11922 --enable-gdbmi options right before the code that handles the
11923 --enable-tui option. Polish a bit.
11924 * configure: Regenerated.
11926 * configure.in: Rewrite check for GNU regex and the
11927 --without-included regex option, and move it into the "Checks for
11928 library functions" section. This makes us use the system regex
11929 again by default on systems with version 2 of the GNU C library.
11930 This was apparently broken.
11931 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
11932 * acconfig.h (USE_INCLUDED_REGEX): Remove.
11933 * config.in, configure: Regenerated.
11935 * configure.in: Move code that provides the --enable-tui option
11936 before the "Checks for libraries" section. Polish the code
11937 somewhat and set need_curses to yes if we build the TUI. Rewrite
11938 code that looks for a library providing termcap functionality to
11939 match more closely what's done in the Readline library, and move
11940 it into to the "Checks for libraries" section.
11941 * configure: Regenerated.
11942 * Makefile.in (TERMCAP): Remove variable.
11943 * config/i386/go32.mh (TERMCAP): Remove variable.
11945 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11947 * MAINTAINERS: Mention gdb_mbuild.sh.
11948 * gdb_mbuild.sh: Rewrite.
11950 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11952 * configure.in: Fix typo in last change.
11953 * config.in, configure: Regenerated.
11955 2003-01-02 Andrew Cagney <ac131313@redhat.com>
11957 * valarith.c (value_binop): Delete obsolete code and comments.
11958 * configure.host: Ditto.
11959 * buildsym.h (make_blockvector): Ditto.
11960 * buildsym.c (make_blockvector): Ditto.
11961 * defs.h (enum language): Ditto.
11962 (chill_demangle): Ditto.
11963 * elfread.c (elf_symtab_read): Ditto.
11964 * dwarfread.c (CHILL_PRODUCER): Ditto.
11965 (set_cu_language): Ditto.
11966 (handle_producer): Ditto.
11967 * expprint.c (print_subexp): Ditto.
11968 * gdbtypes.c (chill_varying_type): Ditto.
11969 * gdbtypes.h (builtin_type_chill_bool): Ditto.
11970 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
11971 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
11972 (chill_varying_type): Ditto.
11973 * language.h (_LANG_chill): Ditto.
11974 * language.c (binop_result_type, integral_type): Ditto.
11975 (character_type, string_type, structured_type): Ditto.
11976 (lang_bool_type, binop_type_check): Ditto.
11977 * stabsread.h (os9k_stabs): Ditto.
11978 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
11979 (define_symbol, read_type, read_struct_fields): Ditto.
11980 (read_array_type, read_enum_type, read_huge_number): Ditto.
11981 (read_range_type, start_stabs): Ditto.
11982 * symfile.c (init_filename_language_table): Ditto.
11983 (add_psymbol_with_dem_name_to_list): Ditto.
11984 * symtab.c (symbol_init_language_specific): Ditto.
11985 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
11986 * symtab.h (struct general_symbol_info): Ditto.
11987 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
11988 * typeprint.c (typedef_print): Ditto.
11989 * utils.c (fprintf_symbol_filtered): Ditto.
11990 * valops.c (value_cast, search_struct_field, value_slice): Delete
11992 (varying_to_slice): Delete function.
11993 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
11994 (varying_to_slice): Delete declaration.
11995 * MAINTAINERS: Update.
11997 2003-01-02 Mark Kettenis <kettenis@gnu.org>
11999 * configure.in: Reorganize "Checks for library functions section"
12000 a bit. Remove check for `btowc' and `isascii' functions.
12001 * configure: Regenerated.
12003 * acconfig.h (_MSE_INT_H): Remove.
12004 * configure.in: Create "Checks for header files" section, and move
12005 appropriate tests there. Don't check for objlist.h, wchar.h,
12006 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
12007 misdetection fix. Also add "Checks for types", "Checks for
12008 compiler characteristics" and "Checks for library functions"
12010 * config.in, configure: Regenerated.
12012 * configure.in: Create "Checks for programs" section, and move
12013 appropriate tests there.
12015 2003-01-01 Mark Kettenis <kettenis@gnu.org>
12017 * configure.in: Create "Checks for libraries" section, and move
12018 appropriate tests there. Cleanup check for wctype in libw. Use
12019 AC_SEARCH_LIBS to see whether we need libsocket.
12020 * configure: Regenerated.
12022 For older changes see ChangeLog-2002
12028 version-control: never